code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
cask 'boom' do
version '1.6.9,1575451705'
sha256 '444b5513c92eb0975494509908786a31f087a0af0e58fa5f312a156318be22f8'
# devmate.com/com.globaldelight.Boom2/ was verified as official when first introduced to the cask
url "https://dl.devmate.com/com.globaldelight.Boom2/#{version.before_comma}/#{version.after_comma... | sscotth/homebrew-cask | Casks/boom.rb | Ruby | bsd-2-clause | 1,400 |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 12.10.3
description: Invocation of `Symbol.toPrimitive` method during coercion
info: |
[...]
7. Return the result of performing Abstract Equality Comparison rval... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/equals/coerce-symbol-to-prim-invocation.js | JavaScript | bsd-2-clause | 1,426 |
cask 'jetbrains-toolbox' do
version '1.0.1569'
sha256 '5e47e404f7b9aa6e5d500eceb59801a9c1dc4da104e29fe1e392956188369b71'
url "https://download.jetbrains.com/toolbox/jetbrains-toolbox-#{version}.dmg"
name 'JetBrains Toolbox'
homepage 'https://www.jetbrains.com/'
license :gratis
app 'JetBrains Toolbox.app... | pacav69/homebrew-cask | Casks/jetbrains-toolbox.rb | Ruby | bsd-2-clause | 326 |
/*
* Copyright 2010 the original author or authors.
*
* 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 applica... | Pushjet/Pushjet-Android | gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/wrapper/org/gradle/wrapper/Install.java | Java | bsd-2-clause | 7,302 |
cask 'rubymine' do
version '2018.1.4,181.5281.41'
sha256 'e89880cfed154e01545063f830e444f0a9ae3509b177f254a92032544cffe24a'
url "https://download.jetbrains.com/ruby/RubyMine-#{version.before_comma}.dmg"
appcast 'https://data.services.jetbrains.com/products/releases?code=RM&latest=true&type=release'
name 'Rub... | goxberry/homebrew-cask | Casks/rubymine.rb | Ruby | bsd-2-clause | 1,013 |
var loopback = require('loopback'),
boot = require('loopback-boot');
var app = loopback();
boot(app, __dirname);
module.exports = app;
| maschinenbau/freecodecamp | client/loopbackClient.js | JavaScript | bsd-3-clause | 142 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/allocator/allocator_extension.h"
#include "base/logging.h"
namespace base {
namespace allocator {
bool GetProperty(const char* name,... | leighpauls/k2cro4 | base/allocator/allocator_extension.cc | C++ | bsd-3-clause | 1,997 |
"""
Generating and counting primes.
"""
from __future__ import print_function, division
import random
from bisect import bisect
# Using arrays for sieving instead of lists greatly reduces
# memory consumption
from array import array as _array
from sympy import Function, S
from sympy.core.compatibility import as_int,... | kaushik94/sympy | sympy/ntheory/generate.py | Python | bsd-3-clause | 28,626 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "android_webview/browser/net/aw_url_request_job_factory.h"
#include "net/base/net_errors.h"
#include "net/url_request/url_request_error_job.... | nacl-webkit/chrome_deps | android_webview/browser/net/aw_url_request_job_factory.cc | C++ | bsd-3-clause | 3,024 |
package com.tinkerpop.pipes.transform;
import com.tinkerpop.blueprints.Direction;
import com.tinkerpop.pipes.util.PipeHelper;
import java.util.Arrays;
/**
* BothEdgesPipe emits both the outgoing and incoming edges of a vertex.
*
* @author Marko A. Rodriguez (http://markorodriguez.com)
*/
public class BothEdgesPi... | whshev/pipes | src/main/java/com/tinkerpop/pipes/transform/BothEdgesPipe.java | Java | bsd-3-clause | 855 |
module SalesInvoiceSoapResponses
def sales_invoice_gettax_response(doc_code, line_item, shipment, time = Time.now)
{
transaction_id: "4314427373575624",
result_code: "Success",
doc_id: "56879220",
doc_type: "SalesInvoice",
doc_code: doc_code,
doc_date: time.to_date,
doc_s... | jordan-brough/solidus_avatax | spec/support/sales_invoice_soap_responses.rb | Ruby | bsd-3-clause | 7,800 |
/* @flow */
/* Flow declarations for express requests and responses */
/* eslint-disable no-unused-vars */
declare class Request {
method: String;
body: Object;
query: Object;
}
declare class Response {
status: (code: Number) => Response;
set: (field: String, value: String) => Response;
send: (body: String... | jamiehodge/express-graphql | resources/interfaces/express.js | JavaScript | bsd-3-clause | 333 |
import base64
import logging
import string
import warnings
from datetime import datetime, timedelta
from django.conf import settings
from django.contrib.sessions.exceptions import SuspiciousSession
from django.core import signing
from django.core.exceptions import SuspiciousOperation
from django.utils import timezone
... | wkschwartz/django | django/contrib/sessions/backends/base.py | Python | bsd-3-clause | 13,900 |
# -*- coding: utf-8 -*-
import os
CODE_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
def get_permdir():
return os.path.join(CODE_DIR, 'permdir')
def get_repo_root():
return get_permdir()
def get_tmpdir():
return os.path.join(CODE_DIR, 'tmpdir')
def init_permdir():
path = ge... | douban/code | vilya/libs/permdir.py | Python | bsd-3-clause | 407 |
from social_core.backends.upwork import UpworkOAuth
| cjltsod/python-social-auth | social/backends/upwork.py | Python | bsd-3-clause | 52 |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/web_resource/eula_accepted_notifier.h"
#include "base/macros.h"
#include "components/prefs/pref_registry_simple.h"
#include "compone... | ds-hwang/chromium-crosswalk | components/web_resource/eula_accepted_notifier_unittest.cc | C++ | bsd-3-clause | 2,473 |
"""
This module collects helper functions and classes that "span" multiple levels
of MVC. In other words, these functions/classes introduce controlled coupling
for convenience's sake.
"""
import warnings
from django.template import loader, RequestContext
from django.template.context import _current_app_undefined
from... | doismellburning/django | django/shortcuts.py | Python | bsd-3-clause | 7,865 |
from settings import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'denorm',
'HOST': 'localhost',
'USER': 'denorm',
'PASSWORD': 'denorm1',
}
}
| mjtamlyn/django-denorm | test_project/settings_mysql.py | Python | bsd-3-clause | 221 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/geolocation/geolocation_permission_context.h"
#include <set>
#include <string>
#include <utility>
#include "base/bind.h"
#i... | sgraham/nope | chrome/browser/geolocation/geolocation_permission_context_unittest.cc | C++ | bsd-3-clause | 37,152 |
// transform/fmllr-raw.cc
// Copyright 2013 Johns Hopkins University (author: Daniel Povey)
// See ../../COPYING for clarification regarding multiple authors
//
// 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 c... | hoangt/djinn | tonic-suite/asr/src/transform/fmllr-raw.cc | C++ | bsd-3-clause | 21,344 |
if (this.importScripts) {
importScripts('../../../fast/js/resources/js-test-pre.js');
importScripts('shared.js');
}
description("Test transaction aborts send the proper onabort messages..");
indexedDBTest(prepareDatabase, startTest);
function prepareDatabase()
{
db = event.target.result;
store = evalA... | leighpauls/k2cro4 | content/test/data/layout_tests/LayoutTests/storage/indexeddb/resources/transaction-abort.js | JavaScript | bsd-3-clause | 2,204 |
// Copyright (C) 2015 Intel Corporation All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
#if ENABLE(WEBCL)
#include "modules/webcl/WebCLContext.h"
#include "modules/webcl/WebCLObject.h"
namespace blink {
WebCLObject::~We... | XiaosongWei/blink-crosswalk | Source/modules/webcl/WebCLObject.cpp | C++ | bsd-3-clause | 970 |
#!/usr/bin/env python
import argparse
import time
from pytx import ThreatIndicator
from pytx.vocabulary import ThreatExchange as te
from pytx.vocabulary import ThreatType as tt
from pytx.vocabulary import Types as t
def get_results(options):
'''
Builds a query string based on the specified options and runs ... | arirubinstein/ThreatExchange | scripts/get_compromised_credentials.py | Python | bsd-3-clause | 2,285 |
// Copyright Peter Dimov 2001-2002
// Copyright Aleksey Gurtovoy 2001-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// *Preprocessed* version of the main "arg.hpp" header
// -- DO NOT modify by h... | cawka/packaging-ndn-cpp-dev | include/ndnboost/mpl/aux_/preprocessed/bcc_pre590/arg.hpp | C++ | bsd-3-clause | 2,771 |
package org.buildmlearn.toolkit.fragment;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import org.buildmlearn.toolkit.R;
import org.buildmlearn.toolkit.activity.TemplateActivity;
/**
... | vishwesh3/BuildmLearn-Toolkit-Android | source-code/app/src/main/java/org/buildmlearn/toolkit/fragment/HomeFragment.java | Java | bsd-3-clause | 1,033 |
package com.xeiam.xchange.btcchina;
import java.io.IOException;
import javax.ws.rs.Consumes;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.w... | cinjoff/XChange-1 | xchange-btcchina/src/main/java/com/xeiam/xchange/btcchina/BTCChina.java | Java | mit | 14,863 |
<?php
namespace Test\TestBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.c... | max05/bootstrap | src/Test/TestBundle/DependencyInjection/Configuration.php | PHP | mit | 873 |
function config ($logProvider) {
'ngInject';
// Enable log
$logProvider.debugEnabled(true);
}
export default config;
| mike1808/godtracks | src/app/index.config.js | JavaScript | mit | 124 |
package gforms
// Generate password input field: <input type="password" ...>
func PasswordInputWidget(attrs map[string]string) Widget {
w := new(textInputWidget)
w.Type = "password"
if attrs == nil {
attrs = map[string]string{}
}
w.Attrs = attrs
return w
}
| gernest/gforms | passwordinputwidget.go | GO | mit | 266 |
# -*- encoding : utf-8 -*-
# Use this setup block to configure all options available in SimpleForm.
SimpleForm.setup do |config|
# Wrappers are used by the form builder to generate a
# complete input. You can remove any component from the
# wrapper, change the order or even add your own to the
# stack. The opti... | soramugi/gistub | config/initializers/simple_form.rb | Ruby | mit | 6,878 |
/* Copyright 2012-2014 SpringSource.
*
* 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 agree... | arunabhdas/pizzashop | target/work/plugins/spring-security-core-2.0-RC4/src/java/grails/plugin/springsecurity/web/access/channel/HeaderCheckInsecureChannelProcessor.java | Java | mit | 2,217 |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'colorbutton', 'bs', {
auto: 'Automatska',
bgColorTitle: 'Boja pozadine',
colors: {
'000': 'Black',
'800000': 'Maroon',
'... | zweidner/hubzero-cms | core/plugins/editors/ckeditor/assets/plugins/colorbutton/lang/bs.js | JavaScript | mit | 2,069 |
# encoding: utf-8
#
require 'spec_helper'
describe 'country descriptions' do
def self.it_splits number, expected
it { Phony.split(number).should == expected }
end
describe 'regression' do
it_splits '33630588659', ["33", "6", "30", "58", "86", "59"]
end
describe 'splitting' do
describe 'Ascensi... | tpena/phony | spec/lib/phony/countries_spec.rb | Ruby | mit | 56,003 |
var http = require("http");
var url = require("url");
var server;
// Diese Funktion reagiert auf HTTP Requests,
// hier wird also die Web Anwendung implementiert!
var simpleHTTPResponder = function(req, res) {
// Routing bedeutet, anhand der URL Adresse
// unterschiedliche Funktionen zu steuern.
// Dazu wird zunäc... | MaximilianKucher/vs1Lab | Beispiele/nodejs_webserver/web.js | JavaScript | mit | 1,328 |
package engine.menu.managers;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.util.List;
import engine.dialogue.InteractionBox;
import engine.gridobject.person.Player;
import engine.images.ScaledImage;
import engine.item.Weapon;
import engine.menu.MenuInteractionMatrix;
import... | yomikaze/OOGASalad | src/engine/menu/managers/WeaponManager.java | Java | mit | 2,233 |
<?php
/*
* This file is part of the Sonata 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\BlockBundle\Tests\Block;
use Sonata\BlockBundle\Block\... | sonata-project/sandbox-build | vendor/sonata-project/block-bundle/Tests/Block/BlockServiceManagerTest.php | PHP | mit | 4,478 |
// 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.
#nullable disable
using System;
using System.Collections.Generic;
using System.Composition;
using System.Threading... | mavasani/roslyn | src/Features/CSharp/Portable/Highlighting/KeywordHighlighters/UsingStatementHighlighter.cs | C# | mit | 1,116 |
// 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 System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Completion;
using Microsoft.CodeAnalysis.H... | CyrusNajmabadi/roslyn | src/VisualStudio/IntegrationTest/TestUtilities/OutOfProcess/VisualStudioWorkspace_OutOfProc.cs | C# | mit | 5,369 |
<?php
namespace SMW\Tests\SPARQLStore;
use SMW\SPARQLStore\RedirectLookup;
use SMW\InMemoryPoolCache;
use SMW\DIWikiPage;
use SMW\DIProperty;
use SMW\Exporter\Escaper;
use SMWExpNsResource as ExpNsResource;
use SMWExpLiteral as ExpLiteral;
use SMWExpResource as ExpResource;
use SMWExporter as Exporter;
/**
* @cove... | stuartbman/mediawiki-vagrant | mediawiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/SPARQLStore/RedirectLookupTest.php | PHP | mit | 7,584 |
package xpath
//please check the search tests in gokogiri/xml and gokogiri/html
import "testing"
func TestCompileGoodExpr(t *testing.T) {
defer CheckXmlMemoryLeaks(t)
e := Compile(`./*`)
if e == nil {
t.Error("expr should be good")
}
e.Free()
}
func TestCompileBadExpr(t *testing.T) {
//defer CheckXmlMemoryLe... | jbowtie/gokogiri | xpath/xpath_test.go | GO | mit | 609 |
<?php
/*
* This file is part of the Sismo utility.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
use Sismo\Sismo;
use Sismo\BuildException;
use Symfony\Component\Console\Application;
use Symfony\C... | druid628/Sismo | src/console.php | PHP | mit | 9,948 |
#include "scripting/lua-bindings/manual/ui/lua_cocos2dx_experimental_video_manual.hpp"
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
#include "ui/UIVideoPlayer.h"
#include "scripting/lua-bindings/manual/tolua_fix.h"
#include "scripting/lua-bindings/manual/LuaBasicConversions... | tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/cocos/scripting/lua-bindings/manual/ui/lua_cocos2dx_experimental_video_manual.cpp | C++ | mit | 2,501 |
require File.expand_path('../../test_helper', __FILE__)
require 'mocha/metaclass'
class MetaclassTest < Test::Unit::TestCase
def test_should_return_objects_singleton_class
object = Object.new
assert_raises(NoMethodError) { object.success? }
object = Object.new
assert object.__metaclass__.ancestor... | natematias/Our-Things | vendor/gems/mocha-0.9.12/test/unit/metaclass_test.rb | Ruby | mit | 629 |
/*
_____ __ ___ __ ____ _ __
/ ___/__ ___ _ ___ / |/ /__ ___ / /_____ __ __/ __/_______(_)__ / /_
/ (_ / _ `/ ' \/ -_) /|_/ / _ \/ _ \/ '_/ -_) // /\ \/ __/ __/ / _ \/ __/
\___/\_,_/_/_/_/\__/_/ /_/\___/_//_/_/\_\\__/\_, /___/\__/_/ /_/ .__/\__/
... | LothusMarque/Furnarchy | furnarchy2/furnarchyskin/gm/gmDebug.cpp | C++ | mit | 22,124 |
module Jasminerice
module ApplicationHelper
end
end
| ajacksified/restful-clients-in-rails-demo | rack-proxy/ruby/1.9.1/gems/jasminerice-0.0.8/app/helpers/jasminerice/application_helper.rb | Ruby | mit | 56 |
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.control');
goog.require('ol.layer.Tile');
goog.require('ol.layer.Vector');
goog.require('ol.source.GeoJSON');
goog.require('ol.source.OSM');
var map = new ol.Map({
layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
}),
new ol.... | buddebej/ol3-dem | ol3/examples/export-map.js | JavaScript | mit | 1,180 |
'use strict';
angular.module('sumaAnalysis')
.factory('actsLocs', function () {
function calculateDepthAndTooltip (item, list, root, depth) {
var parent;
depth = depth || {depth: 0, tooltipTitle: item.title, ancestors: []};
if (parseInt(item.parent, 10) === parseInt(root, 10)) {
return... | cazzerson/Suma | analysis/src/scripts/services/actsLocs.js | JavaScript | mit | 3,247 |
"""
kombu.transport.pyamqp
======================
pure python amqp transport.
"""
from __future__ import absolute_import
import amqp
from kombu.five import items
from kombu.utils.amq_manager import get_manager
from kombu.utils.text import version_string_as_tuple
from . import base
DEFAULT_PORT = 5672
DEFAULT_SSL_... | sunze/py_flask | venv/lib/python3.4/site-packages/kombu/transport/pyamqp.py | Python | mit | 5,008 |
<?php
defined('C5_EXECUTE') or die("Access Denied.");
use Concrete\Core\Entity\Sharing\SocialNetwork\Link;
use Concrete\Core\Form\Service\Form;
use Concrete\Core\Sharing\SocialNetwork\Service;
use Concrete\Core\Support\Facade\Application;
use Concrete\Core\Support\Facade\Url;
/** @var Link[] $links */
/** @var Link[... | mlocati/concrete5 | concrete/blocks/social_links/form.php | PHP | mit | 2,919 |
#! /usr/bin/env ruby
require 'spec_helper'
require 'matchers/json'
require 'puppet/util/instrumentation'
require 'puppet/util/instrumentation/listener'
describe Puppet::Util::Instrumentation::Listener do
Listener = Puppet::Util::Instrumentation::Listener
before(:each) do
@delegate = stub 'listener', :notif... | kieran-bamforth/our-boxen | vendor/bundle/ruby/2.0.0/gems/puppet-3.4.3/spec/unit/util/instrumentation/listener_spec.rb | Ruby | mit | 3,283 |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | uspgamedev/3D-experiment | externals/Ogre/OgreMain/src/OgreWindowEventUtilities.cpp | C++ | mit | 14,140 |
#------------------------------------------------------------------------------
# pycparser: c_generator.py
#
# C code generator from pycparser AST nodes.
#
# Copyright (C) 2008-2012, Eli Bendersky
# License: BSD
#------------------------------------------------------------------------------
from . import c_ast
class... | bussiere/pypyjs | website/demo/home/rfk/repos/pypy/lib_pypy/cffi/_pycparser/c_generator.py | Python | mit | 13,798 |
import Ember from 'ember';
import { module, test } from 'qunit';
import startApp from '../../tests/helpers/start-app';
module('Acceptance | navs', {
beforeEach() {
this.application = startApp();
},
afterEach() {
Ember.run(this.application, 'destroy');
}
});
test('visiting /navs', function(assert) {
... | leoeuclids/ember-material-lite | tests/acceptance/navs-test.js | JavaScript | mit | 412 |
<?php
namespace N98\Magento\Command\Developer\Theme;
use N98\Magento\Command\TestCase;
use Symfony\Component\Console\Tester\CommandTester;
class ListCommandTest extends TestCase
{
public function testExecute()
{
$application = $this->getApplication();
$application->add(new ListCommand());
... | pocallaghan/n98-magerun | tests/N98/Magento/Command/Developer/Theme/ListCommandTest.php | PHP | mit | 653 |
//===----------------- lib/Jit/options.cpp ----------------------*- C++ -*-===//
//
// LLILC
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
// See LICENSE file in the project root for full license information.
//
//===--------------------------------------------------------------... | dotnet/llilc | lib/Jit/jitoptions.cpp | C++ | mit | 9,832 |
/**
* 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.appservice;
import com.fasterxml.jackson.annotat... | jianghaolu/azure-sdk-for-java | azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AutoHealActions.java | Java | mit | 2,569 |
using UnityEngine;
using System;
using LuaInterface;
using SLua;
using System.Collections.Generic;
public class Lua_UnityEngine_Bounds : LuaObject {
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static public int constructor(IntPtr l) {
LuaDLL.lua_remove(l,1);
UnityEngine.Bounds o;
if(matchType(l,1,typ... | idada/slua | Assets/Slua/LuaObject/Lua_UnityEngine_Bounds.cs | C# | mit | 8,284 |
namespace OJS.Workers.Checkers.Tests
{
using System;
using NUnit.Framework;
[TestFixture]
public class CSharpCodeCheckerTests
{
[Test]
[ExpectedException(typeof(InvalidOperationException))]
public void CallingCheckMethodBeforeSetParameterShouldThrowAnException()
{
... | nakov/OpenJudgeSystem | Open Judge System/Tests/OJS.Workers.Checkers.Tests/CSharpCodeCheckerTests.cs | C# | mit | 5,295 |
/*!
* screenfull
* v4.2.0 - 2019-04-01
* (c) Sindre Sorhus; MIT License
*/
(function () {
'use strict';
var document = typeof window !== 'undefined' && typeof window.document !== 'undefined' ? window.document : {};
var isCommonjs = typeof module !== 'undefined' && module.exports;
var keyboardAllowed = typeof Eleme... | quindar/quindar-ux | public/scripts/screenfull.js | JavaScript | mit | 4,129 |
class ExitStatus < Spinach::FeatureSteps
feature "Exit status"
include Integration::SpinachRunner
Given "I have a feature that has no error or failure" do
@feature = Integration::FeatureGenerator.success_feature
end
Given "I have a feature that has a failure" do
@feature = Integration::FeatureGene... | alkuzad/spinach | features/steps/exit_status.rb | Ruby | mit | 594 |
require 'rails/version'
require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'
module Rails
module Generators
class StrongParametersControllerGenerator < ScaffoldControllerGenerator
argument :attributes, :type => :array, :default => [], :banner => "field:type field:type"
s... | begriffs/strong_parameters | lib/generators/rails/strong_parameters_controller_generator.rb | Ruby | mit | 520 |
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to Y... | tobyclemson/msci-project | vendor/poi-3.6/src/java/org/apache/poi/hssf/usermodel/HSSFSimpleShape.java | Java | mit | 3,641 |
var stub = require('./fixtures/stub'),
constants = require('./../constants'),
Logger = require('./fixtures/stub_logger'),
utils = require('./../utils');
// huge hack here, but plugin tests need constants
constants.import(global);
function _set_up(callback) {
this.backup = {};
callback(... | jjz/Haraka | tests/utils.js | JavaScript | mit | 12,700 |
// Generated by LiveScript 1.5.0
var onmessage, this$ = this;
function addEventListener(event, cb){
return this.thread.on(event, cb);
}
function close(){
return this.thread.emit('close');
}
function importScripts(){
var i$, len$, p, results$ = [];
for (i$ = 0, len$ = (arguments).length; i$ < len$; ++i$) {
p... | romainmnr/chatboteseo | node_modules/webworker-threads/src/load.js | JavaScript | mit | 558 |
<?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 license an... | phphatesme/LiveTest | src/lib/Zend/Form/Decorator/Captcha/Word.php | PHP | mit | 2,410 |
package com.laytonsmith.abstraction.entities;
import com.laytonsmith.abstraction.MCEntity;
import com.laytonsmith.abstraction.MCLivingEntity;
public interface MCEvokerFangs extends MCEntity {
MCLivingEntity getOwner();
void setOwner(MCLivingEntity owner);
}
| sk89q/CommandHelper | src/main/java/com/laytonsmith/abstraction/entities/MCEvokerFangs.java | Java | mit | 262 |
<?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\Bundle\FrameworkBundle\Command;
use Symfony\Component\Console\C... | curry684/symfony | src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php | PHP | mit | 17,092 |
module.exports = {
"env": {
"browser": true
},
"plugins": [
"callback-function"
],
"globals": {
"_": true,
"$": true,
"ActErr": true,
"async": true,
"config": true,
"logger": true,
"moment": true,
"respondWithError": true,
"sendJSONResponse": true,
"util": true,... | himanshu0503/admiral | .eslintrc.js | JavaScript | mit | 1,174 |
//
// Copyright (c) 2008-2011, Kenneth Bell
//
// 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, m... | breezechen/DiscUtils | src/Vmdk/HostedSparseExtentStream.cs | C# | mit | 10,139 |
<?php
return [
'Names' => [
'Africa/Abidjan' => 'Waktu Greenwich (Abidjan)',
'Africa/Accra' => 'Waktu Greenwich (Accra)',
'Africa/Algiers' => 'Waktu Éropa Tengah (Algiers)',
'Africa/Bamako' => 'Waktu Greenwich (Bamako)',
'Africa/Banjul' => 'Waktu Greenwich (Banjul)',
... | Slamdunk/symfony | src/Symfony/Component/Intl/Resources/data/timezones/su.php | PHP | mit | 13,893 |
// textarea̳ðCu²ß·é
function adjustTextareaRows(obj, org, plus) {
var brlen = null;
if (obj.wrap) {
if (obj.wrap == 'virtual' || obj.wrap == 'soft') {
brlen = obj.cols;
}
}
var aLen = countLines(obj.value, brlen);
var aRows = aLen + plus;
var move = 0;
var scroll = 14;
if (org) {
if (Math... | okyada/p2-php | rep2/js/post_form.js | JavaScript | mit | 4,984 |
using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Used to filter issue comments.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class IssueCommentRequest : RequestParameters
{
/// <summary>
/// Initializes... | eriawan/octokit.net | Octokit/Models/Request/IssueCommentRequest.cs | C# | mit | 1,391 |
/*******************************************************************************
* Copyright (c) 2014 Salesforce.com, 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... | dipakmankumbare/idecore | com.salesforce.ide.ui.test/src/com/salesforce/ide/ui/views/log/LogViewTest_unit.java | Java | epl-1.0 | 1,175 |
/**
* Copyright (c) 2010-2018 by the respective copyright holders.
*
* 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
* http://www.eclipse.org/legal/epl-v10.html
*/... | johannrichard/openhab2-addons | addons/binding/org.openhab.binding.satel/src/main/java/org/openhab/binding/satel/internal/command/ControlCommand.java | Java | epl-1.0 | 2,159 |
/*******************************************************************************
* Copyright (c) 2013, 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 avail... | gorindn/ice | src/org.eclipse.ice.reactor.sfr/src/org/eclipse/ice/reactor/sfr/core/assembly/SFRAssembly.java | Java | epl-1.0 | 6,609 |
<?php
/**
* Test Generated example demonstrating the GroupNesting.delete API.
*
* @return array
* API result array
*/
function group_nesting_delete_example() {
$params = [
'id' => 1,
];
try{
$result = civicrm_api3('GroupNesting', 'delete', $params);
}
catch (CiviCRM_API3_Exception $e) {
//... | kreynen/civicrm-starterkit-drops-7 | profiles/civicrm_starterkit/modules/civicrm/api/v3/examples/GroupNesting/Delete.ex.php | PHP | gpl-2.0 | 1,670 |
/**
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*
* @author ralf57
* @author luciorota (lucio.rota@gmail.com)
* @author dugris (dugris@frxoops.fr)
*/
tinyMCEPopup.requireLangPack();
var XoopsimagemanagerDialog = {
preInit : f... | mambax7/XoopsCore25 | htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsimagemanager/js/xoopsimagemanager.js | JavaScript | gpl-2.0 | 16,092 |
<?php
/**
* @file
* Contains \Drupal\Core\Utility\UnroutedUrlAssembler.
*/
namespace Drupal\Core\Utility;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\GeneratedUrl;
use Drupal\Core\PathProcessor\OutboundPathProcesso... | cpjobling/proman-d8 | proman.swan.ac.uk/core/lib/Drupal/Core/Utility/UnroutedUrlAssembler.php | PHP | gpl-2.0 | 7,426 |
<?php
/**
* DmSetting filter form base class.
*
* @package retest
* @subpackage filter
* @author Your name here
* @version SVN: $Id: sfDoctrineFormFilterGeneratedTemplate.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $
*/
abstract class BaseDmSettingFormFilter extends BaseFormFilterDoctrine
{
public... | Teplitsa/bquest.ru | lib/vendor/diem/dmCorePlugin/test/project/lib/filter/doctrine/dmCorePlugin/base/BaseDmSettingFormFilter.class.php | PHP | gpl-2.0 | 2,784 |
/*
* Copyright (C) 2013-2015 DeathCore <http://www.noffearrdeathproject.net/>
*
* 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 Foundation; either version 2 of the License, or (at your
* option) any l... | ironhead123/DeathCore_3.3.5 | src/server/shared/Database/Field.cpp | C++ | gpl-2.0 | 1,759 |
<?php
/**
* @package JCE
* @copyright Copyright (c)2016 Ryan Demmer
* @license GNU General Public License version 2, or later
*/
defined('_JEXEC') or die;
/**
* Handle commercial extension update authorization
*
* @package Joomla.Plugin
* @subpackage Installer.Jce
* @since 2.6
*/
class plgInst... | khuongdang/dongtrungtruongsinh | plugins/installer/jce/jce.php | PHP | gpl-2.0 | 1,570 |
var express = require('express');
var leaderRouter = express.Router();
leaderRouter.route('/')
.all(function(req, res, next) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
next();
})
.get(function(req, res, next){
res.end('Will send all the leaders to you!');
})
.... | mikedanylov/full-stack-dev | NodeJS/week3/rest-server/routes/leaderRouter.js | JavaScript | gpl-2.0 | 1,220 |
# postgresql/pypostgresql.py
# Copyright (C) 2005-2020 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
.. dialect:: postgresql+pypostgresql
:name: py-postgresql
:dba... | gltn/stdm | stdm/third_party/sqlalchemy/dialects/postgresql/pypostgresql.py | Python | gpl-2.0 | 2,915 |
<?php
/**
* @package Joomla.UnitTest
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
jimport('joomla.filesystem.folder');
require_once __DIR__ . '/JLanguageInspector.php';
require_once __DIR__ ... | songxiafeng/joomla-platform | tests/suites/unit/joomla/language/JLanguageTest.php | PHP | gpl-2.0 | 26,706 |
<?php
/**
* Joomla! 1.5 component irbtools
*
* @version $Id: view.html.php 2010-10-13 07:12:40 svn $
* @author IRB Barcelona
* @package Joomla
* @subpackage irbtools
* @license GNU/GPL
*
* IRB Barcelona Tools
*
* This component file was created using the Joomla Component Creator by Not Web Design... | rbartolomeirb/joomlaatirb | tools/com_irbtools/build/administrator/components/com_irbtools/views/default/view.html.php | PHP | gpl-2.0 | 663 |
// $Id: Dynamic_Service_Dependency.cpp 96985 2013-04-11 15:50:32Z huangh $
#include "ace/ACE.h"
#include "ace/DLL_Manager.h"
#include "ace/Dynamic_Service_Dependency.h"
#include "ace/Service_Config.h"
#include "ace/Log_Category.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_Dynamic_Service_Dependency::ACE_Dynamic_Service... | xIchigox/ArkCORE-NG | dep/acelite/ace/Dynamic_Service_Dependency.cpp | C++ | gpl-2.0 | 1,326 |
<?php
/**
* @Project NUKEVIET 4.x
* @Author VINADES.,JSC (contact@vinades.vn)
* @Copyright (C) 2016 VINADES.,JSC. All rights reserved
* @Language Français
* @License CC BY-SA (http://creativecommons.org/licenses/by-sa/4.0/)
* @Createdate Jul 31, 2015, 09:30:00 AM
*/
if (! defined('NV_ADMIN') or ! defined('NV_MAINFILE... | nhatnhatnet/nukecms | modules/news/language/block.global.block_news_cat_fr.php | PHP | gpl-2.0 | 1,084 |
/* java.lang.Number
Copyright (C) 1998, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath 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 2, or (at your opti... | aosm/gcc3 | libjava/java/lang/Number.java | Java | gpl-2.0 | 3,524 |
<?php
require(__DATAGEN_META_CONTROLS__ . '/AssetModelCustomFieldHelperMetaControlGen.class.php');
/**
* This is a MetaControl customizable subclass, providing a QForm or QPanel access to event handlers
* and QControls to perform the Create, Edit, and Delete functionality of the
* AssetModelCustomFieldHelper c... | mmuir-ca/tracmor | includes/data_meta_controls/AssetModelCustomFieldHelperMetaControl.class.php | PHP | gpl-2.0 | 1,030 |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Various table operations
*
* @package PhpMyAdmin
*/
use PMA\libraries\Partition;
use PMA\libraries\Table;
use PMA\libraries\Response;
/**
*
*/
require_once 'libraries/common.inc.php';
/**
* functions implementation for this script
*/
require_once 'librarie... | ragnerok/phpmyadmin | tbl_operations.php | PHP | gpl-2.0 | 15,012 |
<?php
/**
* @file
* Contains \Drupal\config_translation\Tests\ConfigMapperManagerTest.
*/
namespace Drupal\config_translation\Tests;
use Drupal\config_translation\ConfigMapperManager;
use Drupal\Core\Language\Language;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\TypedData\TypedDataInterface;
use D... | fleeboy/tatt2tatt | core/modules/config_translation/tests/src/ConfigMapperManagerTest.php | PHP | gpl-2.0 | 6,236 |
//===--- Diagnostics.cpp - Helper class for error diagnostics -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------------------... | rutgers-apl/Atomicity-Violation-Detector | tdebug-llvm/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp | C++ | gpl-2.0 | 7,830 |
<?php
/**
*@file
* Corp theme's implementation to display a single drupal page.
*/
global $base_url;
$header_style = '';
//$header_bg_file = theme_get_setting('header_bg_file');
//if ($header_bg_file) {
// $header_style .= 'filter:;background: url(' . $header_bg_file . ') repeat ';
//}
$header_bg_... | billmagee/bottomline | sites/all/themes/corp/templates/page.tpl.php | PHP | gpl-2.0 | 6,771 |
/**
* \file Author.cpp
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Levon
*
* Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "Author.h"
#include "support/lassert.h"
#include "support/lstrin... | bpiwowar/lyx | src/Author.cpp | C++ | gpl-2.0 | 3,160 |
//@tag dom,core
//@define Ext-more
//@require Ext.EventManager
/**
* @class Ext
*
* Ext is the global namespace for the whole Sencha Touch framework. Every class, function and configuration for the
* whole framework exists under this single global variable. The Ext singleton itself contains a set of useful helper
... | hackathon-3d/team-gryffindor-repo | www/touch/src/core/Ext-more.js | JavaScript | gpl-2.0 | 50,756 |
/*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* 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 Foundation; either version 2, or (at your option)
* any later version.
*
* ... | yuvalt/xbmc | xbmc/video/windows/GUIWindowFullScreen.cpp | C++ | gpl-2.0 | 19,632 |
/*
* 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 Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will b... | hamzasheikh/Seagull | seagull/trunk/src/generator-model/C_ProtocolControl.cpp | C++ | gpl-2.0 | 14,839 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.2-147
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012... | palomagc/MovieChatter | src/icaro/infraestructura/entidadesBasicas/descEntidadesOrganizacion/jaxb/ObjectFactory.java | Java | gpl-2.0 | 6,481 |
<?php
namespace Yoast\WP\SEO\Conditionals;
/**
* Conditional that is met when the current request is an XML-RPC request.
*/
class XMLRPC_Conditional implements Conditional {
/**
* Returns whether the current request is an XML-RPC request.
*
* @return bool `true` when the current request is an XML-RPC reques... | TheThumbsupguy/Ross-Upholstery-Inc | wp-content/plugins/wordpress-seo/src/conditionals/xmlrpc-conditional.php | PHP | gpl-2.0 | 440 |
// Targeted by JavaCPP version 0.8-SNAPSHOT
package com.googlecode.javacpp;
import com.googlecode.javacpp.*;
import com.googlecode.javacpp.annotation.*;
import java.nio.*;
import static com.googlecode.javacpp.opencv_core.*;
import static com.googlecode.javacpp.opencv_imgproc.*;
public class opencv_highgui extends c... | duongtung4691/javacpp.presets | opencv/src/main/java/com/googlecode/javacpp/opencv_highgui.java | Java | gpl-2.0 | 75,386 |