repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
wikimedia/phabricator | src/infrastructure/export/engine/PhabricatorCustomFieldExportEngineExtension.php | 1993 | <?php
final class PhabricatorCustomFieldExportEngineExtension
extends PhabricatorExportEngineExtension {
const EXTENSIONKEY = 'custom-field';
private $object;
public function supportsObject($object) {
$this->object = $object;
return ($object instanceof PhabricatorCustomFieldInterface);
}
public... | apache-2.0 |
leogoing/spring_jeesite | spring-context-4.0/org/springframework/stereotype/Service.java | 1947 | /*
* Copyright 2002-2011 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 ap... | apache-2.0 |
airbnb/airflow | airflow/www/blueprints.py | 984 | #
# 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 not... | apache-2.0 |
flingone/frameworks_base_cmds_remoted | libs/boost/libs/serialization/performance/xml/int64_test.cpp | 572 | /* /libs/serialization/xml_performance/int25_test.cpp **************************
(C) Copyright 2010 Bryce Lelbach
Use, modification and distribution is 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)
****************... | apache-2.0 |
darkforestzero/buck | test/com/facebook/buck/macho/SectionUtilsTest.java | 2346 | /*
* Copyright 2016-present Facebook, 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... | apache-2.0 |
droolsjbpm/droolsjbpm-knowledge | kie-internal/src/main/java/org/kie/internal/builder/conf/KBuilderSeverityOption.java | 3296 | /*
* Copyright 2011 Red Hat, Inc. and/or its affiliates
*
* 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 ... | apache-2.0 |
mglukhikh/intellij-community | platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/HighlightInfoProcessor.java | 3282 | /*
* 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 |
benos-9k/pbrt-v2-cmake | src/samplers/stratified.cpp | 5033 |
/*
pbrt source code Copyright(c) 1998-2012 Matt Pharr and Greg Humphreys.
This file is part of pbrt.
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... | bsd-2-clause |
Carllawrence/StarsMobileApp | www/bower_components/chart.js/src/scales/scale.linearbase.js | 5653 | 'use strict';
var helpers = require('../helpers/index');
/**
* Generate a set of linear ticks
* @param generationOptions the options used to generate the ticks
* @param dataRange the range of the data
* @returns {Array<Number>} array of tick values
*/
function generateTicks(generationOptions, dataRange) {
var t... | bsd-2-clause |
epiqc/ScaffCC | clang/test/SemaCXX/warn-pure-virtual-call-from-ctor-dtor.cpp | 785 | // RUN: %clang_cc1 %s -fsyntax-only -verify -Wcall-to-pure-virtual-from-ctor-dtor
struct A {
A() { f(); } // expected-warning {{call to pure virtual member function 'f' has undefined behavior; overrides of 'f' in subclasses are not available in the constructor of 'A'}}
~A() { f(); } // expected-warning {{call to pu... | bsd-2-clause |
chenmoshushi/vowpal_wabbit | vowpalwabbit/multilabel.cc | 4938 | #include "float.h"
#include "gd.h"
#include "vw.h"
namespace MULTILABEL {
bool is_test_label(labels& ld)
{
if (ld.label_v.size() == 0)
return true;
else
return false;
}
char* bufread_label(labels* ld, char* c, io_buf& cache)
{
size_t num = *(size_t *)c;
ld->label_v.erase();
... | bsd-3-clause |
laurentiustamate94/DefinitelyTyped | types/reactstrap/lib/Modal.d.ts | 736 | import { CSSModule } from '../index';
import { FadeProps } from './Fade';
export interface ModalProps extends React.HTMLAttributes<HTMLElement> {
isOpen?: boolean;
autoFocus?: boolean;
size?: string;
toggle?: () => void;
keyboard?: boolean;
backdrop?: boolean | 'static';
onEnter?: () => void;
onExit?: ... | mit |
LiuShulong/moco | moco-core/src/main/java/com/github/dreamhead/moco/MocoEvent.java | 75 | package com.github.dreamhead.moco;
public enum MocoEvent {
COMPLETE
}
| mit |
bluekylin/cocos2d-js | frameworks/js-bindings/bindings/auto/jsb_cocos2dx_builder_auto.hpp | 7093 | #ifndef __cocos2dx_builder_h__
#define __cocos2dx_builder_h__
#include "jsapi.h"
#include "jsfriendapi.h"
extern JSClass *jsb_cocosbuilder_CCBAnimationManager_class;
extern JSObject *jsb_cocosbuilder_CCBAnimationManager_prototype;
bool js_cocos2dx_builder_CCBAnimationManager_constructor(JSContext *cx, uint32_t arg... | mit |
hguenther/z3 | src/muz/base/dl_boogie_proof.cpp | 9701 | /**
Example from Boogie:
(derivation
(step s!4 (main_loop_LoopHead true true)
rule!3 (subst
(= assertsPassed@@1 true)
(= assertsPassed@2@@0 true)
(= main_loop_LoopHead_assertsPassed true)
)
(labels @950 +895 +668 +670 +893 +899 )
(ref true ))
(step s!3 (main true false)
rule!1 (subst
(= a... | mit |
Franky666/programmiersprachen-raytracer | external/boost_1_59_0/libs/serialization/src/polymorphic_iarchive.cpp | 944 | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// polymorphic_iarchive.cpp:
// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy a... | mit |
ndykman/CodeContracts | Microsoft.Research/Contracts/System.Web/System.Web.Util.IWebPropertyAccessor.cs | 2136 | // CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit... | mit |
Microsoft/CodeContracts | Microsoft.Research/Contracts/System.Web/System.Web.UI.ITextControl.cs | 2072 | // CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit... | mit |
tinfoil/LicenseFinder | lib/license_finder/cli/approvals.rb | 659 | module LicenseFinder
module CLI
class Approvals < Base
extend Subcommand
include MakesDecisions
auditable
desc "add DEPENDENCY...", "Approve one or more dependencies by name"
def add(*names)
assert_some names
modifying { names.each { |name| decisions.approve(name, tx... | mit |
Microsoft/CodeContracts | Microsoft.Research/Contracts/PresentationFramework/Sources/System.Windows.Resources.StreamResourceInfo.cs | 2502 | // CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit... | mit |
ningzhang422/Symfony2-sylius | src/Sylius/Bundle/CoreBundle/OrderProcessing/ShipmentFactoryInterface.php | 611 | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\CoreBundle\OrderProcessing;
use Sylius\Bundle\CoreBundle\Model\OrderInterface... | mit |
sdykes3/myrtleApp | app/bower_components/angular-strap/src/modal/modal.js | 12846 | 'use strict';
angular.module('mgcrea.ngStrap.modal', ['mgcrea.ngStrap.core', 'mgcrea.ngStrap.helpers.dimensions'])
.provider('$modal', function () {
var defaults = this.defaults = {
animation: 'am-fade',
backdropAnimation: 'am-fade',
customClass: '',
prefixClass: 'modal',
prefixEv... | mit |
tomzx/blog.tomrochette.com | system/src/Grav/Common/User/FlexUser/UserCollection.php | 2581 | <?php
/**
* @package Grav\Common\User
*
* @copyright Copyright (C) 2015 - 2019 Trilby Media, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Common\User\FlexUser;
use Grav\Common\User\Interfaces\UserCollectionInterface;
use Grav\Common\User\Interfaces\Use... | mit |
varadn/canvas | scripts/sketchpad.js | 8862 | // The MIT License (MIT)
//
// Copyright (c) 2014 YIOM
//
// 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 |
brianjking/sculpin | src/Sculpin/Bundle/SculpinBundle/DependencyInjection/Compiler/PathConfiguratorPass.php | 2223 | <?php
/*
* This file is a part of Sculpin.
*
* (c) Dragonfly Development Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sculpin\Bundle\SculpinBundle\DependencyInjection\Compiler;
use dflydev\util\antPathMatcher\A... | mit |
dapperAuteur/railscasts-episodes | episode-171/revised/mailit-after/db/schema.rb | 1605 | # encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative sou... | mit |
JeffreyCA/illacceptanything | code/Sharepoint2007/Sharepoint2007.Web/Global.asax.cs | 579 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace Sharepoint2007.Web
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
... | mit |
mojo-js/mojojs.com | app/browser/vendor/js/offline/snake.js | 2847 | (function() {
var canvas, dot, fill, hide, keyHandler, move, randDot, render, score, show, snake, speed, stop;
canvas = dot = score = speed = stop = snake = randDot = fill = null;
render = function() {
canvas = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
canvas.setAttribute('style', '... | mit |
ndykman/CodeContracts | Microsoft.Research/Contracts/PresentationFramework/Sources/System.Windows.Controls.Primitives.ToolBarOverflowPanel.cs | 3042 | // CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit... | mit |
jerodestapa/jerodestapa.github.io | vendor/cache/ruby/2.0.0/gems/travis-1.8.0/lib/travis/cli/setup/opsworks.rb | 704 | require 'travis/cli/setup'
module Travis
module CLI
class Setup
class OpsWorks < Service
description "deployment to OpsWorks"
def run
deploy 'opsworks' do |config|
config['access_key_id'] = ask("Access key ID: ").to_s
config['secret_access_key']... | mit |
henriqueiv/fastlane | spec/actions_list_spec.rb | 2116 | require 'fastlane/actions_list'
describe Fastlane do
describe "Action List" do
it "doesn't throw an exception" do
Fastlane::ActionsList.run nil
end
it "doesn't throw an exception with filter" do
Fastlane::ActionsList.run 'deliver'
end
it "shows all available actions if action can't ... | mit |
cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.14/node/CardMedia/CardMedia.js | 3982 | "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 _extends2 = _int... | mit |
cdnjs/cdnjs | ajax/libs/tsparticles/1.12.0/Classes/Options/Options.d.ts | 1124 | import type { IOptions } from "../../Interfaces/Options/IOptions";
import type { IInteractivity } from "../../Interfaces/Options/Interactivity/IInteractivity";
import type { IParticles } from "../../Interfaces/Options/Particles/IParticles";
import type { IPolygonMask } from "../../Interfaces/Options/PolygonMask/IPolygo... | mit |
nilmadhab/webtutplus | wp-content/themes/flexform/includes/meta-box/js/oembed.js | 781 | jQuery( document ).ready( function( $ )
{
$( '.rwmb-input' ).on( 'click', 'a.show-embed', function() {
var $this = $( this ),
$input = $this.siblings( ':input.rwmb-oembed' );
$embed_container = $this.siblings( '.embed-code' ),
data = {
action : 'rwmb_get_embed',
oembed_url: $input.val(),
... | gpl-2.0 |
erdincay/clamav-devel | win32/clamav-for-windows/sigui/wxWidgets-2.9.1/src/common/spinctrlcmn.cpp | 1113 | /////////////////////////////////////////////////////////////////////////////
// Name: src/common/spinctrlcmn.cpp
// Purpose: define wxSpinCtrl event types
// Author: Peter Most
// Created: 01.11.08
// RCS-ID: $Id$
// Copyright: (c) 2008-2009 wxWidgets team
// Licence: wxWindows licence
/... | gpl-2.0 |
nando/mundo-pepino | features/support/app/vendor/plugins/fixture_replacement2/lib/fixture_replacement/fixture_replacement.rb | 148 | module FixtureReplacement
class InclusionError < StandardError; end
class << self
include FixtureReplacement::ClassMethods
end
end
| gpl-2.0 |
zbv/tappMD-web | plugins/worker/lib/google-api-client/contrib/Google_YoutubeService.php | 30282 | <?php
/*
* 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, software
... | gpl-2.0 |
maskedjellybean/tee-prop | web/core/tests/Drupal/KernelTests/Core/Theme/BaseThemeDefaultDeprecationTest.php | 4336 | <?php
namespace Drupal\KernelTests\Core\Theme;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\Extension\ExtensionDiscovery;
use Drupal\Core\Extension\InfoParser;
use Drupal\Core\Extension\InfoParserInterface;
use Drupal\Core\Extension\ThemeExtensionList;
use Drupal\KernelTests\KernelTestBase;
u... | gpl-2.0 |
FioraAeterna/dolphin | Source/Core/AudioCommon/AlsaSoundStream.cpp | 5313 | // Copyright 2009 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "AudioCommon/AlsaSoundStream.h"
#include "Common/CommonTypes.h"
#include "Common/Thread.h"
#define FRAME_COUNT_MIN 256
#define BUFFER_SIZE_MAX 8192
#define BUFFER_SIZE_BYTES (BUFFER_SIZE_MAX*2*2)
A... | gpl-2.0 |
arrmo/librenms | includes/html/graphs/application/squid_cputime.inc.php | 642 | <?php
$name = 'squid';
$app_id = $app['app_id'];
$colours = 'mixed';
$unit_text = 'seconds';
$unitlen = 10;
$bigdescrlen = 10;
$smalldescrlen = 10;
$dostack = 0;
$printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id]);
if (Rrd::checkRrdExists($rrd_fi... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/zones/East_Ronfaure/mobs/Pugil.lua | 893 | -----------------------------------
-- Area: East Ronfaure
-- MOB: Pugil
-----------------------------------
require("/scripts/globals/fieldsofvalor");
require("scripts/zones/East_Ronfaure/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function ... | gpl-3.0 |
TeoTwawki/darkstar | scripts/zones/Windurst_Walls/npcs/Four_of_Diamonds.lua | 447 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Four of Diamonds
-- Type: Standard NPC
-- !pos -187.184 -3.545 151.092 239
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
... | gpl-3.0 |
kingland/consul | vendor/github.com/linode/linodego/profile.go | 3852 | package linodego
/*
- copy profile_test.go and do the same
- When updating Profile structs,
- use pointers where ever null'able would have a different meaning if the wrapper
supplied "" or 0 instead
- Add "NameOfResource" to client.go, resources.go, pagination.go
*/
import (
"context"
"encoding/json"
)
// ... | mpl-2.0 |
mconftec/mconf-web-uergs | db/migrate/20150130190018_recent_activity_move_user_from_parameters_to_recipient.rb | 585 | class RecentActivityMoveUserFromParametersToRecipient < ActiveRecord::Migration
def up
RecentActivity.all.each do |act|
if act.parameters[:user_id].present?
act.recipient_id = act.parameters[:user_id]
act.recipient_type = 'User'
act.parameters.delete(:user_id)
act.save!
... | agpl-3.0 |
chandresh/spot-us | db/migrate/001_create_users.rb | 626 | class CreateUsers < ActiveRecord::Migration
def self.up
create_table "users", :force => true do |t|
t.column :login, :string
t.column :email, :string
t.column :crypted_password, :string, :limit => 40
t.column :salt, :str... | agpl-3.0 |
jorgevbo/server | vendor/symfony/vendor/propel-generator/classes/propel/engine/database/model/NameFactory.php | 3877 | <?php
/*
* $Id: NameFactory.php 366 2006-05-23 13:00:30Z hans $
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIME... | agpl-3.0 |
smuzaffar/root | interpreter/llvm/src/lib/MC/SubtargetFeature.cpp | 9984 | //===- SubtargetFeature.cpp - CPU characteristics Implementation ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | lgpl-2.1 |
harterj/moose | modules/stochastic_tools/src/actions/AddCovarianceAction.C | 1049 | //* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#in... | lgpl-2.1 |
CodeDJ/qt5-hidpi | qt/qtscript/tests/auto/qscriptv8testsuite/tests/html-string-funcs.js | 2330 | // Copyright 2008 Google Inc. 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 conditions a... | lgpl-2.1 |
gideonmay/osg | src/osgVolume/FixedFunctionTechnique.cpp | 9645 | /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this... | lgpl-2.1 |
Dr15Jones/root | tutorials/graphs/zones.C | 753 | void zones() {
// example of script showing how to divide a canvas
// into adjacent subpads + axis labels on the top and right side
// of the pads.
//Author; Rene Brun
TCanvas *c1 = new TCanvas("c1","multipads",900,700);
gStyle->SetOptStat(0);
c1->Divide(2,2,0,0);
TH2F *h1 = new TH2F("h1","test1",10,0,1... | lgpl-2.1 |
sicily/qt4.8.4 | config.tests/unix/alsa/alsatest.cpp | 2171 | /****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees... | lgpl-2.1 |
xfun68/gocd | server/src/com/thoughtworks/go/server/persistence/MaterialRepository.java | 54293 | /*************************GO-LICENSE-START*********************************
* Copyright 2014 ThoughtWorks, 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... | apache-2.0 |
vovd/es-operating-system | os/npapi/src/thread.cpp | 1627 | /*
* Copyright 2008 Google 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 ... | apache-2.0 |
kevinyu98/spark | sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/csv/CSVExprUtils.scala | 5229 | /*
* 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 |
zetacomponents/Webdav | tests/client_test_suite.php | 830 | <?php
require_once 'Webdav/tests/client_test.php';
class ezcWebdavClientTestSuite extends PHPUnit_Framework_TestSuite
{
protected $testSets;
protected $setup;
public function __construct( $name, $dataFile, ezcWebdavClientTestSetup $setup = null )
{
$this->name = "Client: $name";
$thi... | apache-2.0 |
GunoH/intellij-community | java/java-impl/src/com/intellij/codeInspection/RedundantExplicitCloseInspection.java | 3216 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInspection;
import com.intellij.java.JavaBundle;
import com.intellij.openapi.project.Project;
import com.intellij.psi.*;
import com.intellij.psi.util.Psi... | apache-2.0 |
Ztiany/Repository | C&C++/cplusplus-program/_cpp_primer_source/GCC_4_7_0/18/spec.cc | 2074 | /*
* This file contains code from "C++ Primer, Fifth Edition", by Stanley B.
* Lippman, Josee Lajoie, and Barbara E. Moo, and is covered under the
* copyright and warranty notices given in that book:
*
* "Copyright (c) 2013 by Objectwrite, Inc., Josee Lajoie, and Barbara E. Moo."
*
*
* "The authors and publi... | apache-2.0 |
Dominator008/buck | test/com/facebook/buck/jvm/java/JavacErrorParserTest.java | 5143 | /*
* Copyright 2014-present Facebook, 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... | apache-2.0 |
Sauraus/jenkins | test/integration/jenkins_user_create/serverspec/assert_created_spec.rb | 556 | require 'spec_helper'
describe jenkins_user('sethvargo') do
it { should be_a_jenkins_user }
end
describe jenkins_user('schisamo') do
it { should be_a_jenkins_user }
it { should have_full_name('Seth Chisamore') }
it { should have_email('schisamo@chef.io') }
it { should have_public_key('ssh-rsa AAAAAAA') }
en... | apache-2.0 |
llhe/tensorflow | tensorflow/core/grappler/utils/topological_sort.cc | 2120 | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | apache-2.0 |
yiyiboy2010/androidpn-client | smack/org/jivesoftware/smackx/pubsub/SubscribeForm.java | 6968 | /**
* 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 agreed to in w... | apache-2.0 |
zdary/intellij-community | platform/testRunner/src/com/intellij/execution/testframework/ui/BaseTestsOutputConsoleView.java | 4780 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.testframework.ui;
import com.intellij.execution.filters.Filter;
import com.intellij.execution.filters.HyperlinkInfo;
import com.intellij.execution.... | apache-2.0 |
jameswnl/manageiq | lib/vmdb/loggers.rb | 5510 | require 'manageiq'
require 'manageiq-loggers'
require 'miq_environment'
require 'util/vmdb-logger'
module Vmdb
def self.logger
$log
end
def self.rails_logger
$rails_log
end
module Loggers
def self.init
return if @initialized
create_loggers
@initialized = true
end
def ... | apache-2.0 |
leechwin/webida-client | apps/ide/src/plugins/webida.editor.example.simple-editor/plugin.js | 851 | /*
* Copyright (c) 2012-2015 S-Core Co., Ltd.
*
* 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... | apache-2.0 |
gcberger/scalatest | scalatest-test/src/test-osgi/scala/org/scalatest/osgi/OsgiSuite.scala | 3806 | /*
* Copyright 2001-2013 Artima, 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 agre... | apache-2.0 |
hroyrh/origin | pkg/project/client/clientset_generated/release_1_3/typed/core/v1/core_client.go | 2082 | package v1
import (
api "k8s.io/kubernetes/pkg/api"
registered "k8s.io/kubernetes/pkg/apimachinery/registered"
restclient "k8s.io/kubernetes/pkg/client/restclient"
)
type CoreInterface interface {
GetRESTClient() *restclient.RESTClient
ProjectsGetter
}
// CoreClient is used to interact with features provided by... | apache-2.0 |
GIP-RECIA/cas | support/cas-server-support-oauth-api/src/main/java/org/apereo/cas/support/oauth/OAuth20ClaimTokenFormats.java | 537 | package org.apereo.cas.support.oauth;
import lombok.Getter;
/**
* This is {@link OAuth20ClaimTokenFormats}.
*
* @author Misagh Moayyed
* @since 6.0.0
*/
@Getter
public enum OAuth20ClaimTokenFormats {
/**
* JWT token format.
*/
JWT("urn:ietf:params:oauth:token-type:jwt"),
/**
* IDToken... | apache-2.0 |
acton393/incubator-weex | ios/playground/bundlejs/guide.weex.js | 89508 | // { "framework": "Vue" }
"use weex:vue";
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(i... | apache-2.0 |
jiangyifangh/presto | presto-main/src/main/java/com/facebook/presto/spiller/SingleStreamSpiller.java | 1826 | /*
* 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, software
* distribut... | apache-2.0 |
FrenchBen/infrakit | vendor/gopkg.in/juju/names.v2/user.go | 3730 | // Copyright 2013 Canonical Ltd.
// Licensed under the LGPLv3, see LICENCE file for details.
package names
import (
"fmt"
"regexp"
)
const (
UserTagKind = "user"
LocalUserDomain = "local"
)
var (
// TODO this does not allow single character usernames or
// domains. Is that deliberate?
// https://github.c... | apache-2.0 |
JingJunYin/tensorflow | tensorflow/contrib/crf/python/kernel_tests/crf_test.py | 12446 | # Copyright 2016 The TensorFlow 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 applica... | apache-2.0 |
winklerm/drools | kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNElementConverter.java | 3145 | /*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* 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 a... | apache-2.0 |
xhocquet/hummingbird | test/factories/anime.rb | 214 | FactoryGirl.define do
factory :anime do
title { Faker::Name.name }
#TODO: Fix fucking factory association
# after(:create) do |a|
# a.genres << create(:genre, anime: [a])
# end
end
end
| apache-2.0 |
jfernandosf/phoenix | phoenix-core/src/main/java/org/apache/phoenix/expression/function/NowFunction.java | 1837 | /*
* 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 ... | apache-2.0 |
codeaudit/mapdb | src/test/java/org/mapdb/BTreeMapExtendTest.java | 301377 | package org.mapdb;
/*
* 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
* ... | apache-2.0 |
jitsni/gateway | transport/http/src/main/java/org/kaazing/gateway/transport/http/bridge/filter/HttpHostHeaderFilter.java | 3447 | /**
* Copyright 2007-2016, Kaazing Corporation. 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 require... | apache-2.0 |
Nuclearfossil/ATF | Framework/Atf.Gui/Applications/NetworkTargetServices/TargetCommands.cs | 9237 | //Copyright © 2014 Sony Computer Entertainment America LLC. See License.txt.
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using Sce.Atf.Adaptation;
namespace Sce.Atf.Applications.NetworkTargetServices
{
/// <summary>
/// Commands to operate on currently selec... | apache-2.0 |
mayunSaicmotor/incubator-carbondata | common/src/test/java/org/apache/carbondata/common/logging/impl/StandardLogServiceTest_UT.java | 3728 | /*
* 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 |
topicusonderwijs/wicket | wicket-core/src/main/java/org/apache/wicket/request/resource/UrlResourceReference.java | 3761 | /*
* 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 |
iant-gmbh/jitsi | src/net/java/sip/communicator/service/notification/SoundNotificationAction.java | 6212 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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.o... | apache-2.0 |
vbrigand/api-cda-back | library/Zend/Service/Amazon/Ec2/Securitygroups.php | 12492 | <?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... | bsd-2-clause |
Pushjet/Pushjet-Android | gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/ide/org/gradle/plugins/ide/internal/tooling/eclipse/DefaultEclipseLinkedResource.java | 1379 | /*
* Copyright 2011 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... | bsd-2-clause |
JacopKane/homebrew-cask | Casks/indigo.rb | 1422 | cask 'indigo' do
version '7.2.0'
sha256 'bdba29f7903702613f46607683f614d8c9b9f5fccef23f5fd3b981e20358ab81'
# goprism.com was verified as official when first introduced to the cask
url "http://cloud.goprism.com/download/Indigo_#{version.dots_to_underscores}.dmg"
name 'Indigo'
name 'Indigo Domotics'
homepa... | bsd-2-clause |
talishte/ctigre | env/lib/python2.7/site-packages/tzlocal/unix.py | 4049 | from __future__ import with_statement
import os
import re
import pytz
_cache_tz = None
def _tz_from_env(tzenv):
if tzenv[0] == ':':
tzenv = tzenv[1:]
# TZ specifies a file
if os.path.exists(tzenv):
with open(tzenv, 'rb') as tzfile:
return pytz.tzfile.build_tzinfo('local', tzfi... | bsd-2-clause |
Niklas-Peter/NLog | src/NLog/Config/LoggingRule.cs | 11441 | //
// Copyright (c) 2004-2011 Jaroslaw Kowalski <jaak@jkowalski.net>
//
// 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 co... | bsd-3-clause |
chinmaygarde/flutter_engine | shell/platform/android/io/flutter/plugin/editing/FlutterTextUtils.java | 11941 | // Copyright 2013 The Flutter 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 io.flutter.plugin.editing;
import io.flutter.embedding.engine.FlutterJNI;
class FlutterTextUtils {
public static final int LINE_FEED = 0x0A;
... | bsd-3-clause |
Neomobile/zend-framework | tests/Zend/Form/Decorator/CallbackTest.php | 7522 | <?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... | bsd-3-clause |
cpmech/vismatrix | src/boost/serialization/access.hpp | 3759 | #ifndef BOOST_SERIALIZATION_ACCESS_HPP
#define BOOST_SERIALIZATION_ACCESS_HPP
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// access.hpp: interface for serialization sys... | bsd-3-clause |
wpopielarski/scala-ide | org.scala-ide.sdt.core/src/org/scalaide/core/internal/quickassist/abstractimpl/ImplAbstractMembers.scala | 2112 | package org.scalaide.core.internal.quickassist.abstractimpl
import scala.reflect.internal.util.SourceFile
import scala.tools.refactoring.implementations.AddToClosest
import org.scalaide.core.compiler.IScalaPresentationCompiler.Implicits._
import org.scalaide.core.compiler.InteractiveCompilationUnit
import org.scalaid... | bsd-3-clause |
Alwnikrotikz/cortex-vfx | src/IECorePython/FileSequenceFunctionsBinding.cpp | 4357 | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009-2010, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | bsd-3-clause |
smithk726/dig-4503-meanjs | app/tests/comment.server.routes.test.js | 6678 | 'use strict';
var should = require('should'),
request = require('supertest'),
app = require('../../server'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Comment = mongoose.model('Comment'),
agent = request.agent(app);
/**
* Globals
*/
var credentials, user, comment;
/**
* Comment routes t... | mit |
phofman/MIEngine | src/MICore/MIResults.cs | 30784 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Collections;... | mit |
manekinekko/angular | packages/localize/tools/src/translate/translation_files/message_serialization/target_message_renderer.ts | 1924 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {ɵmakeParsedTranslation, ɵParsedTranslation} from '@angular/localize';
import {MessageRenderer} from './messag... | mit |
zorosteven/mockito | src/test/java/org/mockitousage/customization/BDDMockitoTest.java | 11550 | /*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockitousage.customization;
import org.assertj.core.api.Assertions;
import org.junit.Test;
import org.mockito.InOrder;
import org.mockito.Mock;
import org.mockito.exceptions.misusing.NotA... | mit |
andersbll/deeppy_experimental | deeppy/siamese/siamese_network.py | 3931 | from copy import copy
import numpy as np
import itertools
from ..base import Model, ParamMixin, PhaseMixin, float_
from ..input import Input
class SiameseNetwork(Model, PhaseMixin):
def __init__(self, siamese_layers, loss):
self.layers = siamese_layers
self.loss = loss
# Create second arra... | mit |
cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.9/styles/makeStyles.d.ts | 830 | import { ClassNameMap, Styles, WithStylesOptions } from '@material-ui/styles/withStyles';
import { Omit } from '@material-ui/types';
import { Theme as DefaultTheme } from './createMuiTheme';
/**
* `makeStyles` where the passed `styles` do not depend on props
*/
export default function makeStyles<Theme = DefaultTheme... | mit |
BetterBetterBetter/B3App | components/com_komento/classes/markitup/sets/default/set.js | 2048 | // ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
... | gpl-2.0 |
summerpulse/openjdk7 | jdk/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java | 5302 | /*
* Copyright (c) 1999, 2008, 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 |
lyrasoft/lyrasoft.github.io | plugins/system/ezset/lib/asika/dom-parser/src/PHPHtmlParser/Exceptions/CircularException.php | 96 | <?php
namespace PHPHtmlParser\Exceptions;
final class CircularException extends \Exception {};
| gpl-2.0 |