repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
dsebastien/DefinitelyTyped
types/react-native-share-menu/react-native-share-menu-tests.ts
124
import ShareMenu from 'react-native-share-menu'; ShareMenu.getSharedText((text: string) => { const message = text; });
mit
joomla-projects/cms-naked
tests/unit/suites/libraries/joomla/language/JLanguageStemmerTest.php
989
<?php /** * @package Joomla.UnitTest * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ /** * Test class for JLanguageStemmer. * * @package Joomla.UnitTest * @subpackage Language * @since...
gpl-2.0
summerpulse/openjdk7
jdk/src/share/classes/sun/nio/cs/ext/EUC_JP.java
15375
/* * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
gpl-2.0
nerzhul/ansible
lib/ansible/plugins/callback/junit.py
8269
# (c) 2016 Matt Clay <matt@mystile.com> # # This file is part of Ansible # # Ansible 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 # (at your option) any later version. # ...
gpl-3.0
saurabh6790/med_app_rels
patches/november_2012/gle_floating_point_issue.py
731
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt def execute(): import webnotes webnotes.conn.sql("""update `tabGL Entry` set debit = round(debit, 2), credit = round(credit, 2)""") gle = webnotes.conn.sql("""select voucher_type, ...
agpl-3.0
masterhou/OctoPrint
src/octoprint/static/js/app/viewmodels/loginstate.js
4414
$(function() { function LoginStateViewModel() { var self = this; self.loginUser = ko.observable(); self.loginPass = ko.observable(); self.loginRemember = ko.observable(false); self.loggedIn = ko.observable(false); self.username = ko.observable(undefined); se...
agpl-3.0
wxstars/phabricator
src/applications/feed/controller/PhabricatorFeedController.php
1091
<?php abstract class PhabricatorFeedController extends PhabricatorController { public function buildStandardPageResponse($view, array $data) { $page = $this->buildStandardPageView(); $page->setApplicationName(pht('Feed')); $page->setBaseURI('/feed/'); $page->setTitle(idx($data, 'title')); $page...
apache-2.0
zdary/intellij-community
java/java-tests/testData/inspection/redundantArrayForVarargs/RawArray.java
245
public class RawArray { { try { String.class.getConstructor(<warning descr="Redundant array creation for calling varargs method">new Class[]{String.class}</warning>); } catch (Exception e) { e.printStackTrace(); } } }
apache-2.0
xyb/homebrew-cask
Casks/jewelrybox.rb
338
cask "jewelrybox" do version "1.5" sha256 "96c0bae3cc0ce312ce3df290a4d1eddff2da781dfaafe4707b298dc17eb53993" url "https://github.com/remear/jewelrybox/releases/download/#{version}/JewelryBox_v#{version}.tar.bz2" name "JewelryBox" desc "RVM manager" homepage "https://github.com/remear/jewelrybox" app "Je...
bsd-2-clause
razvansividra/pnlzf2-1
vendor/ZF2/library/Zend/Mail/Storage/Part/PartInterface.php
3739
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ n...
bsd-3-clause
oggy/rubyspec
library/delegate/delegator/method_spec.rb
1964
require File.expand_path('../../../../spec_helper', __FILE__) require File.expand_path('../../fixtures/classes', __FILE__) describe "Delegator#method" do before :all do @simple = DelegateSpecs::Simple.new @delegate = DelegateSpecs::Delegator.new(@simple) end it "returns a method object for public method...
mit
Mileto/NiuShard
Scripts/Services/XmlSpawner/XMLSpawner Extras/XmlPoints/ChallengeGames/TeamLMSGauntlet.cs
17826
using System; using Server; using Server.Gumps; using Server.Network; using Server.Mobiles; using System.Collections; using Server.Targeting; using Server.Engines.XmlSpawner2; /* ** TeamLMSGauntlet ** ArteGordon ** updated 12/05/04 ** ** used to set up a team lms pvp challenge game through the XmlPoints system. */ na...
gpl-2.0
freedesktop-unofficial-mirror/gstreamer-sdk__gcc
libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/1.cc
2269
// Copyright (C) 2001, 2002, 2003, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library 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 versio...
gpl-2.0
irares/WirelessHart-Gateway
cpplib/trunk/boost_1_36_0/boost/tr1/memory.hpp
2166
// (C) Copyright John Maddock 2005. // Use, modification and distribution are subject to 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) #ifndef BOOST_TR1_MEMORY_HPP_INCLUDED # define BOOST_TR1_MEMORY_HPP_INCLUDED # include <b...
gpl-3.0
dNovo/shopware
engine/Shopware/Components/Migrations/AbstractMigration.php
2890
<?php /** * Shopware 5 * Copyright (c) shopware AG * * According to our dual licensing model, this program can be used either * under the terms of the GNU Affero General Public License, version 3, * or under a proprietary license. * * The texts of the GNU Affero General Public License with an additional * perm...
agpl-3.0
gaohoward/activemq-artemis
tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/nio/NIOTransportBrokerTest.java
1313
/** * 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 You under the Apache License, Version 2.0 * (the "License"); you may...
apache-2.0
MKrishtop/facebook-android-sdk
facebook/TestApp/src/com/facebook/sdk/StatusActivity.java
949
/** * Copyright 2010-present Facebook. * * 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 agre...
apache-2.0
signed/intellij-community
java/java-tests/testData/codeInsight/parameterInfo/OverloadWithVarargsSingleArg.java
118
class Main { static <T> void of(T t) {} static <T> void of(T... t) {} void foo(){ Main.of("<caret>"); } }
apache-2.0
baslr/ArangoDB
3rdParty/boost/1.62.0/libs/math/test/compile_test/sf_bernoulli_incl_test.cpp
1092
// Copyright John Maddock 2012. // Use, modification and distribution are subject to 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) // // Basic sanity check that header <boost/math/special_functions/bernoulli.hpp> // #includes a...
apache-2.0
adobe/chromium
base/i18n/icu_string_conversions_unittest.cc
14063
// Copyright (c) 2011 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 <math.h> #include <stdarg.h> #include <limits> #include <sstream> #include "base/basictypes.h" #include "base/format_macros.h" #include "ba...
bsd-3-clause
Jay5066/drupalDockerCompose
vendor/twig/twig/lib/Twig/Node/Expression/NullCoalesce.php
1838
<?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ class Twig_Node_Expression_NullCoalesce extends Twig_Node_Expression_Conditional { public function __construct(Twig...
gpl-2.0
amosdesigns/fmintroreact
node_modules/react-router-dom/es/Redirect.js
51
export { Redirect as default } from 'react-router';
mit
SonOfLilit/coffeescript
documentation/coffee/expressions_try.js
204
// Generated by CoffeeScript 1.9.3 var error; alert((function() { try { return nonexistent / void 0; } catch (_error) { error = _error; return "And the error is ... " + error; } })());
mit
prayuditb/tryout-01
websocket/client/Client/node_modules/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js
16951
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
mit
frnk94/material-ui
src/svg-icons/social/group.js
612
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialGroup = (props) => ( <SvgIcon {...props}> <path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.3...
mit
ralzate/Nuevo-Aerosanidad
vendor/bundle/ruby/2.2.0/gems/fog-aws-0.7.6/lib/fog/aws/models/storage/version.rb
1093
module Fog module Storage class AWS class Version < Fog::Model identity :version, :aliases => 'VersionId' attribute :key, :aliases => 'Key' attribute :last_modified, :aliases => ['Last-Modified', 'LastModified'] attribute :latest, ...
mit
rubengarcia0510/tienda
administrator/components/com_virtuemart/tables/rating_reviews.php
1917
<?php /** * * Product reviews table * * @package VirtueMart * @subpackage * @author RolandD * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version ...
gpl-2.0
robyrobot/LIRE
samples/liredemo/src/liredemo/ProgressMonitor.java
1658
package liredemo; import javax.swing.*; /* * This file is part of the Caliph and Emir project: http://www.SemanticMetadata.net. * * Caliph & Emir 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 v...
gpl-2.0
BackupGGCode/propgcc
gcc/gcc/testsuite/go.test/test/fixedbugs/bug116.go
698
// $G $D/$F.go && $L $F.$A && ./$A.out || echo BUG: bug116 // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main func main() { bad := false if (-5 >> 1) != -3 { println("-5>>1 =", -5>>1, "want -3...
gpl-3.0
rukhshanda/moodle-anmc
enrol/manual/edit_form.php
3534
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle 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 // (at your option) any later version. // // Moodle ...
gpl-3.0
ic3fox/jawr-spring
jawr-spring-integration-test/src/main/webapp/js/inclusion/global/global_1.js
25
function globalFunc1(){ }
apache-2.0
ajperalt/jstorm
jstorm-utility/jstorm-rocket-mq/src/main/java/com/alibaba/aloha/meta/MetaConsumerFactory.java
3550
package com.alibaba.aloha.meta; import java.util.Date; import java.util.HashMap; import java.util.Map; import org.apache.log4j.Logger; import com.alibaba.jstorm.utils.JStormUtils; import com.alibaba.rocketmq.client.consumer.listener.MessageListenerConcurrently; import com.alibaba.rocketmq.common.consumer.C...
apache-2.0
bizhao/kubernetes
pkg/kubelet/client/kubelet_client_test.go
3233
/* Copyright 2014 The Kubernetes 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 applicable law or agreed to in writing, ...
apache-2.0
hackbuteer59/sakai
msgcntr/messageforums-hbm/src/java/org/sakaiproject/component/app/messageforums/dao/hibernate/PrivateForumImpl.java
2757
/********************************************************************************** * $URL: https://source.sakaiproject.org/svn/msgcntr/trunk/messageforums-hbm/src/java/org/sakaiproject/component/app/messageforums/dao/hibernate/PrivateForumImpl.java $ * $Id: PrivateForumImpl.java 9227 2006-05-15 15:02:42Z cwen@iupui....
apache-2.0
menuka94/cdnjs
ajax/libs/parse/1.2.8/parse.js
266631
/*! * Parse JavaScript SDK * Version: 1.2.8 * Built: Fri Jul 05 2013 15:50:53 * http://parse.com * * Copyright 2013 Parse, Inc. * The Parse JavaScript SDK is freely distributable under the MIT license. * * Includes: Underscore.js * Copyright 2009-2012 Jeremy Ashkenas, DocumentCloud Inc. * Released under the ...
mit
ranr01/Presentations
MathJax/unpacked/jax/input/MathML/entities/l.js
4723
/************************************************************* * * MathJax/jax/output/HTML-CSS/entities/l.js * * Copyright (c) 2010-2017 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
mit
dnozay/testlink-code
third_party/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/abbr.js
653
/** * $Id: abbr.js,v 1.1 2007/12/03 08:53:30 franciscom Exp $ * * @author Moxiecode - based on work by Andrew Tetlaw * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. */ function preinit() { // Initialize tinyMCE.setWindowArg('mce_windowresize', false); } function init() { tinyMC...
gpl-2.0
RikoOphorst/blowbox-2017
deps/assimp-4.0.0/code/FBXDocumentUtil.cpp
4586
/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- Copyright (c) 2006-2017, assimp team All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions...
gpl-3.0
jlspyaozhongkai/Uter
third_party_backup/binutils-2.25/gold/testsuite/pie_copyrelocs_test.cc
1090
// pie_coprelocs_test.cc -- a test case for gold // Copyright (C) 2014 Free Software Foundation, Inc. // Written by Sriraman Tallam <tmsriram@google.com>. // This file is part of gold. // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as p...
gpl-3.0
blois/AndroidSDKCloneMin
ndk/tests/device/test-stlport/unit/cmath_test.cpp
7079
#define _STLP_DO_IMPORT_CSTD_FUNCTIONS #include <limits> #include <cmath> //We also test math functions imported from stdlib.h or //defined in cstdlib #include <cstdlib> #include "math_aux.h" #include "cppunit/cppunit_proxy.h" //This test purpose is to check the right import of math.h C symbols //into the std namesp...
apache-2.0
scheib/chromium
third_party/blink/web_tests/external/wpt/workers/interfaces/WorkerGlobalScope/onerror/propagate-to-window-onerror.js
28
function x() { y(); } x();
bsd-3-clause
growbots/mysqld_exporter
vendor/github.com/prometheus/client_golang/prometheus/untyped.go
4957
// Copyright 2014 The Prometheus 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 applicable law or agreed to...
apache-2.0
dbartolini/crown
3rdparty/bgfx/3rdparty/spirv-tools/source/reduce/merge_blocks_reduction_opportunity_finder.cpp
1734
// Copyright (c) 2019 Google LLC // // 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 agreed to ...
mit
ViktorHofer/corefx
src/System.Runtime.Serialization.Formatters/tests/FormatterServicesTests.cs
15173
// 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 System.Collections.Generic; using System.Reflection; using System.Runtime.InteropServices; using...
mit
fengshao0907/actor-platform
actor-apps/runtime/src/main/java/im/actor/runtime/json/JSONException.java
1139
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ package im.actor.runtime.json; /** * The JSONException is thrown by the JSON.org classes when things are amiss. * * @author JSON.org * @version 2014-05-03 */ public class JSONException extends RuntimeException { private static final long serialVersio...
mit
WY08271/node-mysql
test/unit/pool/test-end-ping.js
983
var common = require('../../common'); var assert = require('assert'); var pool = common.createPool({ connectionLimit : 1, port : common.fakeServerPort, queueLimit : 5, waitForConnections : true }); var conn1Err = null; var conn2Err = null; var poolEnded = false; var server = com...
mit
cdnjs/cdnjs
ajax/libs/simple-icons/5.15.0/thymeleaf.min.js
956
module.exports={title:"Thymeleaf",slug:"thymeleaf",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Thymeleaf</title><path d="M1.727 0C.782 0 .02.761.02 1.707v20.586C.02 23.24.782 24 1.727 24h20.546c.945 0 1.707-.761 1.707-1.707V1.707C23.98.76 23.218 0 22.273 0H1.727zm18.714 3.273c-1.8...
mit
alvarpoon/silverheritage.com
vendor/aws/aws-sdk-php/tests/Aws/Tests/Common/Waiter/CompositeWaiterFactoryTest.php
1156
<?php namespace Aws\Tests\Common\Waiter; use Aws\Common\Waiter\CompositeWaiterFactory; use Aws\Common\Waiter\WaiterConfigFactory; /** * @covers Aws\Common\Waiter\CompositeWaiterFactory */ class CompositeWaiterFactoryTest extends \Guzzle\Tests\GuzzleTestCase { /** * @expectedException \InvalidArgumentExcep...
gpl-2.0
phpwomen/wp-phpwomen
wp-content/plugins/wordpress-social-login/includes/services/wsl.mail.notification.php
2143
<?php /*! * WordPress Social Login * * http://miled.github.io/wordpress-social-login/ | https://github.com/miled/wordpress-social-login * (c) 2011-2014 Mohamed Mrassi and contributors | http://wordpress.org/plugins/wordpress-social-login/ */ /** * Email notifications to send. so far only the admin one is implemented...
gpl-2.0
koutheir/incinerator-hotspot
jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/handler/SOAPMessageContextImpl.java
4642
/* * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
gpl-2.0
kerr-huang/uwsgi
uwsgidsl.rb
2839
# based on uwsgidecorators.py if UWSGI.masterpid == 0 raise "you have to enable the uWSGI master process to use this module" end def get_free_signal() for signum in 0..255 if not UWSGI.signal_registered(signum) return signum end end end $postfork_chain = [] $mulefunc_list = [] $spoolfunc_list =...
gpl-2.0
fedyfausto/RaspberryWebPanel
editor/components/active/controller.php
2796
<?php /* * Copyright (c) Codiad & Kent Safranski (codiad.com), distributed * as-is and without warranty under the MIT License. See * [root]/license.txt for more. This information must remain intact. */ require_once('../../common.php'); require_once('class.active.php'); $Active = ne...
bsd-2-clause
sean-abbott/chamberlain
chamberlain/user/forms.py
1490
# -*- coding: utf-8 -*- """User forms.""" from flask_wtf import Form from wtforms import PasswordField, StringField from wtforms.validators import DataRequired, Email, EqualTo, Length from .models import User class RegisterForm(Form): """Register form.""" username = StringField('Username', ...
bsd-3-clause
heladio/my-blog
pelica-env/lib/python2.7/site-packages/pip/vcs/subversion.py
10496
from __future__ import absolute_import import logging import os import re from pip._vendor.six.moves.urllib import parse as urllib_parse from pip.index import Link from pip.utils import rmtree, display_path from pip.utils.logging import indent_log from pip.vcs import vcs, VersionControl _svn_xml_url_re = re.compile...
mit
LeChuck42/or1k-gcc
libstdc++-v3/testsuite/ext/pb_ds/regression/tree_set_rand_debug.cc
4096
// { dg-require-debug-mode "" } // { dg-require-time "" } // This can take long on simulators, timing out the test. // { dg-options "-DITERATIONS=5" { target simulator } } // { dg-timeout-factor 2.0 } // -*- C++ -*- // Copyright (C) 2011-2014 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ L...
gpl-2.0
GrandHsu/rt-thread
bsp/lpc178x/rtconfig.py
2122
import os # toolchains options ARCH='arm' CPU='cortex-m3' CROSS_TOOL='keil' if os.getenv('RTT_CC'): CROSS_TOOL = os.getenv('RTT_CC') if CROSS_TOOL == 'gcc': PLATFORM = 'gcc' EXEC_PATH = 'C:/Program Files/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin' elif CROSS_TOOL == 'keil': PLATFORM = 'armcc' EXE...
gpl-2.0
GuoyuHao/azure-xplat-cli
test/recordings/cli.mobile.job-tests/cli_DotNet_job_create.nock.js
1357
// This file has been autogenerated. var profile = require('../../../lib/util/profile'); exports.getMockedProfile = function () { var newProfile = new profile.Profile(); newProfile.addSubscription(new profile.Subscription({ id: '5e7d1bb6-4953-44fe-8a54-43fbdb53b989', managementCertificate: { key: '...
apache-2.0
alexlau811/azure-xplat-cli
lib/commands/asm/mobile/pipelineChannel.js
3279
// // Copyright (c) Microsoft and contributors. 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...
apache-2.0
dcrisan/origin
Godeps/_workspace/src/github.com/coreos/etcd/etcdserver/etcdhttp/client_test.go
48554
// Copyright 2015 CoreOS, Inc. // // 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 agreed to in...
apache-2.0
OpenCollabZA/sakai
search/search-tool/tool/src/java/org/sakaiproject/search/tool/SearchBeanFactoryImpl.java
5737
/********************************************************************************** * $URL$ * $Id$ *********************************************************************************** * * Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008 The Sakai Foundation * * Licensed under the Educational Community License, Ve...
apache-2.0
felixmulder/scala
test/files/pos/t2331.scala
168
trait C { def m[T]: T } object Test { val o /*: C --> no crash*/ = new C { def m[T]: Nothing /*: T --> no crash*/ = sys.error("omitted") } o.m[Nothing] }
bsd-3-clause
ROMFactory/android_external_chromium_org
content/test/run_all_unittests.cc
398
// 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 "content/test/content_test_suite.h" #include "content/public/test/unittest_test_suite.h" int main(int argc, char** argv) { return content:...
bsd-3-clause
TeamExodus/external_chromium_org
chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.cc
5292
// Copyright (c) 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 "chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.h" #include "base/memory/scoped_ptr.h" #include "base/memory/scoped_v...
bsd-3-clause
B130296/CoreNLP
src/edu/stanford/nlp/parser/shiftreduce/ShiftReduceParserQuery.java
9191
package edu.stanford.nlp.parser.shiftreduce; import java.io.PrintWriter; import java.util.Collection; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.PriorityQueue; import edu.stanford.nlp.ling.HasWord; import edu.stanford.nlp.ling.Label; import edu.stanford.nlp.ling....
gpl-2.0
greasydeal/darkstar
scripts/zones/Bostaunieux_Oubliette/mobs/Werebat.lua
326
----------------------------------- -- Area: Bostaunieux Oubliette -- MOB: Werebat ----------------------------------- require("scripts/globals/groundsofvalor"); ----------------------------------- -- onMobDeath ----------------------------------- function onMobDeath(mob,killer) checkGoVregime(killer,mob,611,2);...
gpl-3.0
Freedom-FD/freedom
upload/admin/controller/extension/payment/pp_express.php
61653
<?php class ControllerExtensionPaymentPPExpress extends Controller { private $error = array(); public function index() { $this->load->language('extension/payment/pp_express'); $this->document->setTitle($this->language->get('heading_title')); $this->load->model('setting/setting'); if (($this->request->serv...
gpl-3.0
royboy789/Stripe-for-WordPress
inc/stripe-api/stripe-lib/lib/BankAccount.php
73
<?php namespace Stripe; class BankAccount extends ExternalAccount { }
gpl-3.0
SerCeMan/intellij-community
jps/standalone-builder/src/org/jetbrains/jps/gant/Log4jFileLoggerFactory.java
3361
/* * Copyright 2000-2014 JetBrains s.r.o. * * 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 agre...
apache-2.0
skapi1992/jmonkeyengine
jme3-examples/src/main/java/jme3test/post/TestFBOPassthrough.java
3957
/* * Copyright (c) 2009-2012 jMonkeyEngine * 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 list of ...
bsd-3-clause
lateminer/bitcoin
src/crypto/siphash.cpp
3595
// Copyright (c) 2016-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <crypto/siphash.h> #define ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b)))) #define SIPROUND do { \ v...
mit
Tatermen/librenms
includes/polling/mempools/alteonos.inc.php
941
<?php /* * LibreNMS * * Copyright (c) 2017 Simone Fini <tomfordfirst@gmail.com> * 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 3 of the License, or (at your * option) any ...
gpl-3.0
alexandrul-ci/robotframework
atest/testdata/test_libraries/JavaLibUsingTimestamps.java
628
import java.util.GregorianCalendar; public class JavaLibUsingTimestamps { public void javaTimestamp() throws InterruptedException { long timestamp = 1308419034931L; GregorianCalendar calendar = new GregorianCalendar(); calendar.setTimeInMillis(timestamp); timestamp += 10800000 - c...
apache-2.0
pwoodworth/intellij-community
plugins/javaFX/src/org/jetbrains/plugins/javaFX/FxmlDataExternalizer.java
1604
/* * Copyright 2000-2015 JetBrains s.r.o. * * 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 agre...
apache-2.0
ashwinr/DefinitelyTyped
types/bintrees/bintrees-tests.ts
1210
/// <reference types="mocha" /> /// <reference types="node" /> import assert = require('assert'); import { BinTree, RBTree } from 'bintrees'; describe('bintrees', () => { it('builds a simple tree', () => { let treeA = new RBTree((a: number, b: number) => a - b); treeA.insert(5); treeA.inse...
mit
XieXianbin/openjdk
jaxp/src/com/sun/org/apache/xalan/internal/xsltc/compiler/CastCall.java
3535
/* * reserved comment block * DO NOT REMOVE OR ALTER! */ /* * Copyright 2001-2004 The Apache Software Foundation. * * 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....
gpl-2.0
ssilvert/keycloak
core/src/main/java/org/keycloak/representations/idm/authorization/ClientPolicyRepresentation.java
1411
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
apache-2.0
ocsbrandon/kubernetes
pkg/volume/iscsi/iscsi_util.go
5602
/* Copyright 2015 The Kubernetes 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 ag...
apache-2.0
NigelGreenway/phabricator
src/applications/doorkeeper/bridge/DoorkeeperBridgeJIRA.php
4178
<?php final class DoorkeeperBridgeJIRA extends DoorkeeperBridge { const APPTYPE_JIRA = 'jira'; const OBJTYPE_ISSUE = 'jira:issue'; public function canPullRef(DoorkeeperObjectRef $ref) { if ($ref->getApplicationType() != self::APPTYPE_JIRA) { return false; } $types = array( self::OBJTYP...
apache-2.0
redmunds/cdnjs
ajax/libs/bootstrap3-wysiwyg/0.3.0-alpha.2/locales/bootstrap-wysihtml5.il-HE.min.js
819
(function($){$.fn.wysihtml5.locale["il-HE"]={font_styles:{normal:"רגיל",h1:"כותרת 1",h2:"כותרת 2",h3:"כותרת 3",h4:"כותרת 4",h5:"כותרת 5",h6:"כותרת 6"},emphasis:{bold:"מודגש",italic:"טקסט נטוי",underline:"קו תחתון",small:"קטן"},lists:{unordered:"רשימה עם תבליטים",ordered:"רשימה ממוספרת",outdent:"הקטן כניסה",indent:"הגדל...
mit
FabriceAbbey/jesshotel
vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolverTest.php
8593
<?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\Tests\Controller; use Symfony\Component\Ht...
mit
dominics/predis
tests/Predis/Command/ListPopFirstTest.php
2704
<?php /* * This file is part of the Predis package. * * (c) Daniele Alessandri <suppakilla@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Predis\Command; use \PHPUnit_Framework_TestCase as StandardTestCase;...
mit
Pluto-tv/chromium-crosswalk
components/cronet/android/java/src/org/chromium/net/UploadDataSink.java
1221
// Copyright 2015 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. package org.chromium.net; /** * Interface with callbacks methods for {@link UploadDataProvider}. All methods * may be called synchronously or asynchron...
bsd-3-clause
nolsherry/cdnjs
ajax/libs/curl/0.5.2/curl-kitchen-sink/curl.js
12631
var v=null; (function(c,g,l){var o,j;function e(b,i){return T.call(b).indexOf("[object "+i)==0}function n(b){function i(i){if(i in b)return i=b[i].charAt(0)!="."?(!b.path||p(b.path)?b.path:b.path+"/")+b[i]:z(b[i],b.path),D(i)}e(b,"String")&&(b=D(b),b={name:b,path:b,main:o,lib:j});b.path=b.path||"";b.i=i("lib");b.j=i("m...
mit
chrissimpkins/jsdelivr
files/qoopido.nucleus/1.0.8/support/test/capability/touch.js
390
/*! /support/test/capability/touch 1.0.8 | http://nucleus.qoopido.com | (c) 2016 Dirk Lueth */ !function(e,n){"use strict";function o(o){var t=o.defer();return"ontouchstart"in e||"DocumentTouch"in e&&document instanceof DocumentTouch||n.maxTouchPoints>0||n.msMaxTouchPoints>0?t.resolve():t.reject(),t.pledge}provide(["/d...
mit
froala/cdnjs
ajax/libs/qoopido.nucleus/1.1.0/support/test/css/transition.js
304
/*! /support/test/css/transition 1.1.0 | http://nucleus.qoopido.com | (c) 2016 Dirk Lueth */ !function(){"use strict";function e(e,r){var t=e.defer(),n=r("transition");return n?t.resolve(n):t.reject(),t.pledge}provide(["/demand/pledge","../../css/property"],e)}(); //# sourceMappingURL=transition.js.map
mit
marchdoe/derose
core/test/integration/model/model_roles_spec.js
2658
/*globals describe, it, before, beforeEach, afterEach */ var testUtils = require('../../utils'), should = require('should'), errors = require('../../../server/errorHandling'), // Stuff we are testing Models = require('../../../server/models'); describe("Role Model", function () { var RoleModel = ...
mit
laincortes/dolphin
Externals/wxWidgets3/src/osx/imaglist.cpp
7829
///////////////////////////////////////////////////////////////////////////// // Name: src/osx/imaglist.cpp // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #includ...
gpl-2.0
kernow/ansible-modules-core
system/setup.py
5577
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible 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...
gpl-3.0
angelapper/edx-platform
lms/djangoapps/teams/static/teams/js/utils/team_analytics.js
643
/** * Utility methods for emitting teams events. See the event spec: * https://openedx.atlassian.net/wiki/display/AN/Teams+Feature+Event+Design */ (function(define) { 'use strict'; define([ 'logger' ], function(Logger) { var TeamAnalytics = { emitPageViewed: function(page_nam...
agpl-3.0
matsuu/server
vendor/symfony/vendor/phing/tasks/ext/XmlLintTask.php
3055
<?php require_once 'phing/Task.php'; /** * A XML lint task. Checking syntax of one or more XML files against an XML Schema using the DOM extension. * * @author Knut Urdalen <knut.urdalen@telio.no> * @package phing.tasks.ext */ class XmlLintTask extends Task { protected $file; // the source file (from xml a...
agpl-3.0
CodeDJ/qt5-hidpi
qt/qtbase/src/network/bearer/qbearerplugin.cpp
2239
/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtNetwork module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licens...
lgpl-2.1
lcp0578/kitcmf
vendor/ruflin/elastica/test/lib/Elastica/Test/Aggregation/StatsTest.php
1183
<?php namespace Elastica\Test\Aggregation; use Elastica\Aggregation\Stats; use Elastica\Document; use Elastica\Query; class StatsTest extends BaseAggregationTest { protected function _getIndexForTest() { $index = $this->_createIndex(); $index->getType('test')->addDocuments(array( ...
mit
Dackng/eh-unmsm-client
node_modules/@angular/compiler/src/expression_parser/lexer.d.ts
1047
export declare enum TokenType { Character = 0, Identifier = 1, Keyword = 2, String = 3, Operator = 4, Number = 5, Error = 6, } export declare class Lexer { tokenize(text: string): Token[]; } export declare class Token { index: number; type: TokenType; numValue: number; st...
mit
Masterjun3/dolphin
Externals/wxWidgets3/src/common/radiobtncmn.cpp
3384
///////////////////////////////////////////////////////////////////////////// // Name: src/common/radiobtncmn.cpp // Purpose: wxRadioButton common code // Author: Julian Smart // Modified by: // Created: 04/01/98 // Copyright: (c) Julian Smart // Licence: wxWindows licence ////////////////////...
gpl-2.0
dgoodwin/origin
cmd/cluster-capacity/go/src/github.com/kubernetes-incubator/cluster-capacity/vendor/k8s.io/kubernetes/pkg/kubelet/eviction/types.go
6002
/* Copyright 2016 The Kubernetes 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 applicable law or agreed to in writing, ...
apache-2.0
arowla/elasticsearch
src/main/java/org/elasticsearch/action/bench/BenchmarkExecutionException.java
1641
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
apache-2.0
kingsj/todomvc
examples/sammyjs/js/routes/active.js
154
/*global TodoApp */ (function () { 'use strict'; TodoApp.route('get', '#/active', function () { TodoApp.trigger('fetchTodos', 'active'); }); })();
mit
MingxuanChen/weiciyuan
src/org/qii/weiciyuan/support/file/FileUploaderHttpHelper.java
264
package org.qii.weiciyuan.support.file; public class FileUploaderHttpHelper { public static interface ProgressListener { public void transferred(long data); public void waitServerResponse(); public void completed(); } }
gpl-3.0
KanoComputing/nush
cherrypy/test/test_wsgi_vhost.py
1127
import cherrypy from cherrypy.test import helper class WSGI_VirtualHost_Test(helper.CPWebCase): def setup_server(): class ClassOfRoot(object): def __init__(self, name): self.name = name def index(self): return "Wel...
gpl-3.0
feisty2007/weiciyuan
src/org/qii/weiciyuan/dao/topic/UserTopicListDao.java
2516
package org.qii.weiciyuan.dao.topic; import com.google.gson.Gson; import com.google.gson.JsonSyntaxException; import com.google.gson.reflect.TypeToken; import org.qii.weiciyuan.dao.URLHelper; import org.qii.weiciyuan.support.debug.AppLogger; import org.qii.weiciyuan.support.error.WeiboException; import org.q...
gpl-3.0