repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
jwren/intellij-community | plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/codeInsight/surroundWith/expression/KotlinStringTemplateSurrounder.java | 2228 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.codeInsight.surroundWith.expression;
import com.intellij.codeInsight.CodeInsightUtilBase;
import com.intellij.openapi.editor.... | apache-2.0 |
nelsonsilva/wave-protocol | src/org/waveprotocol/wave/client/editor/content/HTMLPretty.java | 6982 | /**
* 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 t... | apache-2.0 |
iharkhukhrakou/XPagesExtensionLibrary | extlib-des/lwp/openntf/design-test/eclipse/plugins/com.ibm.xsp.extlib.designer.tooling.test/src/xsp/extlib/designer/test/visualizations/dojoform/DjTextAreaVisualizerTest.java | 2762 | /*
* Copyright IBM Corp. 2011
*
* 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 |
jdel/clairctl | vendor/github.com/coreos/clair/worker/detectors/features.go | 2419 | // Copyright 2015 clair 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 i... | apache-2.0 |
spring-projects/spring-security | config/src/main/java/org/springframework/security/config/http/ChannelAttributeFactory.java | 2018 | /*
* Copyright 2002-2016 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | apache-2.0 |
joprsal/sshj | src/main/java/net/schmizz/sshj/xfer/FileTransfer.java | 2011 | /*
* Copyright (C)2009 - SSHJ Contributors
*
* 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 |
benmccann/playframework | core/play/src/main/java/play/inject/package-info.java | 156 | /*
* Copyright (C) Lightbend Inc. <https://www.lightbend.com>
*/
/** Provides dependency injection utilities for Play lifecycle. */
package play.inject;
| apache-2.0 |
milessabin/shapeless | core/src/main/scala/shapeless/syntax/sized.scala | 1454 | /*
* Copyright (c) 2011-18 Miles Sabin
*
* 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 |
shinh/kati | make-c/main.go | 1343 | // Copyright 2015 Google Inc. 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... | apache-2.0 |
wangsongpeng/jdk-src | src/main/java/java/lang/ThreadLocal.java | 25460 | /*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.lang;
import java.lang.ref.*;
import java.util.Objects;
import java.util.concurrent.atomic... | apache-2.0 |
fernandaoliveira12/php_avancado | autoload_composeer/vendor/respect/data/library/Respect/Data/Collections/Typed.php | 443 | <?php
namespace Respect\Data\Collections;
class Typed extends Collection
{
public static function __callStatic($name, $children)
{
$collection = new self();
$collection->extra('type', '');
return $collection->__call($name, $children);
}
public static function by($type)
... | apache-2.0 |
romankagan/DDBWorkbench | plugins/git4idea/tests/git4idea/repo/GitRepositoryTest.java | 9107 | /*
* Copyright 2000-2011 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 |
jeffbcross/closure-library | closure/goog/structs/linkedmap.js | 14803 | // Copyright 2007 The Closure Library 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 requ... | apache-2.0 |
humblec/glusterblock-provisioner | vendor/k8s.io/kubernetes/pkg/registry/extensions/deployment/etcd/etcd_test.go | 12652 | /*
Copyright 2015 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 |
mit-cml/appinventor-sources | appinventor/blocklyeditor/tests/com/google/appinventor/blocklyeditor/pictureCycleTest.js | 2432 | // -*- mode: javascript; js-indent-level: 2; -*-
// Copyright © 2013-2017 Massachusetts Institute of Technology, All rights reserved.
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
var fs = require('fs'); //Always required to read from files
var path = fs.absolute('.');... | apache-2.0 |
zlcnju/kettle | core/src/main/java/org/pentaho/di/core/logging/LogChannel.java | 11364 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | apache-2.0 |
langfr/camunda-bpm-platform | engine-dmn/engine/src/main/java/org/camunda/bpm/dmn/engine/impl/el/JuelExpression.java | 1770 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | apache-2.0 |
ksdperera/developer-studio | core/org.wso2.developerstudio.eclipse.platform.ui/src/org/wso2/developerstudio/eclipse/platform/ui/provider/ProjectContentProvider.java | 6105 | /*
* Copyright (c) 2010, WSO2 Inc. (http://www.wso2.org) 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
*
* ... | apache-2.0 |
jsdjayanga/product-cep | modules/distribution/repository/conf/ues/jaggeryapps/social/themes/default/helpers/comment-input.js | 202 | var resources = function () {
return {
js: ['lib/jquery-1.8.3.min.js', 'lib/jquery.rating.pack.js',
'lib/porthole.min.js', 'custom/windowProxy.js', 'custom/review.js']
};
};
| apache-2.0 |
gkGaneshR/maya | vendor/github.com/hashicorp/nomad/nomad/leader.go | 18931 | package nomad
import (
"context"
"errors"
"fmt"
"net"
"time"
"github.com/armon/go-metrics"
memdb "github.com/hashicorp/go-memdb"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/raft"
"github.com/hashicorp/serf/serf"
)
const (
// failedEvalUnblockInterval is the interval at which failed ev... | apache-2.0 |
hgschmie/presto | presto-main/src/main/java/io/prestosql/sql/planner/iterative/rule/PruneOutputSourceColumns.java | 1582 | /*
* 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 |
paulstapleton/flowable-engine | modules/flowable-idm-engine/src/main/java/org/flowable/idm/engine/impl/cmd/GetPropertiesCmd.java | 1604 | /* 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 |
aronsky/home-assistant | homeassistant/components/flick_electric/sensor.py | 2587 | """Support for Flick Electric Pricing data."""
from datetime import timedelta
import logging
import async_timeout
from pyflick import FlickAPI, FlickPrice
from homeassistant.components.sensor import SensorEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ATTR_ATTRIBUTION, ATT... | apache-2.0 |
brettsam/azure-mobile-apps-net-server | src/Microsoft.Azure.Mobile.Server/Cache/CacheOptionsHelper.cs | 1046 | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
namespace Microsoft.Azure.Mobile.Server.Cache
{
/// <summary>
/// Utility class used to... | apache-2.0 |
rajeevanWSO2/cloud-dev-studio | native/devs_cefclients/mac64/source/cefclient/libcef_dll/ctocpp/quota_callback_ctocpp.cc | 1200 | // Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translato... | apache-2.0 |
sandroboehme/publick-sling-blog | core/src/main/java/com/nateyolles/sling/publick/services/RecaptchaService.java | 2806 | package com.nateyolles.sling.publick.services;
import java.util.Map;
import org.apache.sling.api.SlingHttpServletRequest;
/**
* The APIs provided in order to create the reCAPTCHA service to
* provide the reCAPTCHA keys and communicate with the Google
* server to provide reCAPTCHA authentication.
*/
public interf... | apache-2.0 |
dain/presto | core/trino-main/src/main/java/io/trino/failuredetector/FailureDetectorModule.java | 1571 | /*
* 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 |
tantalic/cistatus | vendor/gobot.io/x/gobot/examples_test.go | 756 | package gobot_test
import (
"fmt"
"testing"
"time"
"gobot.io/x/gobot"
"gobot.io/x/gobot/gobottest"
)
func ExampleEvery() {
gobot.Every(1*time.Second, func() {
fmt.Println("Hello")
})
}
func ExampleAfter() {
gobot.After(1*time.Second, func() {
fmt.Println("Hello")
})
}
func ExampleRand() {
i := gobot.... | apache-2.0 |
deeplearning4j/nd4j | nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/dataset/api/preprocessor/serializer/StandardizeSerializerStrategy.java | 1619 | package org.nd4j.linalg.dataset.api.preprocessor.serializer;
import lombok.NonNull;
import org.nd4j.linalg.dataset.api.preprocessor.NormalizerStandardize;
import org.nd4j.linalg.factory.Nd4j;
import java.io.*;
/**
* Strategy for saving and restoring {@link NormalizerStandardize} instances in single binary files
*
... | apache-2.0 |
hansinator/watchmaker | framework/src/java/test/org/uncommons/watchmaker/framework/factories/StubIntegerFactory.java | 1112 | //=============================================================================
// Copyright 2006-2010 Daniel W. Dyer
//
// 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-2.0 |
doodelicious/cas | core/cas-server-core-tickets/src/test/java/org/apereo/cas/ticket/registry/DistributedTicketRegistryTests.java | 7129 | package org.apereo.cas.ticket.registry;
import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.authentication.CoreAuthenticationTestUtils;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.services.RegisteredServiceTestUtils;
import org.apereo.cas.ticket.AbstractTicketEx... | apache-2.0 |
Microsoft/TypeScript | tests/baselines/reference/interfaceImplementation8.js | 2479 | //// [interfaceImplementation8.ts]
/*
1
*/
interface i1 {
name: string;
}
class C1 implements i1 {
public name:string;
}
class C2 implements i1 {
private name:string;
}
class C3 {
private name:any;
}
class C4 extends C1 implements i1{ }
class C5 extends C2 implements i1{ }
class C6 extends C3 i... | apache-2.0 |
fincatto/nfe | src/main/java/com/fincatto/documentofiscal/nfe310/transformers/NFIndicadorIEDestinatarioTransformer.java | 580 | package com.fincatto.documentofiscal.nfe310.transformers;
import com.fincatto.documentofiscal.nfe310.classes.nota.NFIndicadorIEDestinatario;
import org.simpleframework.xml.transform.Transform;
public class NFIndicadorIEDestinatarioTransformer implements Transform<NFIndicadorIEDestinatario> {
@Override
public... | apache-2.0 |
agolPL/keycloak | services/src/main/java/org/keycloak/authentication/actiontoken/ActionTokenHandler.java | 3706 | /*
* Copyright 2017 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.apa... | apache-2.0 |
derekwaynecarr/kubedash | app/kubedash.js | 696 | // Copyright 2015 Google Inc. 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... | apache-2.0 |
google/google-ctf | third_party/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/AParser.cpp | 22712 | /* ANTLRParser.C
*
* SOFTWARE RIGHTS
*
* We reserve no LEGAL rights to the Purdue Compiler Construction Tool
* Set (PCCTS) -- PCCTS is in the public domain. An individual or
* company may do whatever they wish with source code distributed with
* PCCTS or the code generated by PCCTS, including the incorpo... | apache-2.0 |
QuantConnect/Lean | Common/Securities/IBuyingPowerModel.cs | 5565 | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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 ... | apache-2.0 |
nickopris/musicapp | www/core/modules/system/lib/Drupal/system/Plugin/Archiver/Tar.php | 519 | <?php
/**
* @file
* Contains \Drupal\system\Plugin\Core\Archiver\Tar.
*/
namespace Drupal\system\Plugin\Archiver;
use Drupal\Component\Archiver\Tar as BaseTar;
use Drupal\Component\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
/**
* Defines a archiver implementation for .tar files.
*
* @Plugin(
... | apache-2.0 |
hbdeshmukh/incubator-quickstep | query_optimizer/rules/ExtractCommonSubexpression.hpp | 6234 | /**
* 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 |
dgw/znc | modules/cyrusauth.cpp | 8213 | /*
* Copyright (C) 2004-2019 ZNC, see the NOTICE file for details.
* Copyright (C) 2008 Heiko Hund <heiko@ist.eigentlich.net>
*
* 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
*
* h... | apache-2.0 |
markprokoudine/docker | api/server/router/local/local.go | 6199 | package local
import (
"net/http"
"golang.org/x/net/context"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/api/server/httputils"
dkrouter "github.com/docker/docker/api/server/router"
"github.com/docker/docker/daemon"
"github.com/gorilla/mux"
)
// router is a docker router that talks with the local d... | apache-2.0 |
jumpstarter-io/neutron | neutron/plugins/cisco/cfg_agent/cfg_exceptions.py | 2280 | # Copyright 2014 Cisco Systems, Inc. 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 requir... | apache-2.0 |
darranl/keycloak | core/src/main/java/org/keycloak/representations/adapters/config/AdapterHttpClientConfig.java | 2119 | /*
* 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 |
BiryukovVA/ignite | modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheMultiUpdateLockSelfTest.java | 6399 | /*
* 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 |
jpodeszwik/mifos | application/src/main/java/org/mifos/application/importexport/struts/actionforms/ImportTransactionsActionForm.java | 5207 | /*
* Copyright (c) 2005-2011 Grameen Foundation USA
* 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
*
* Unl... | apache-2.0 |
knative-sandbox/net-kourier | vendor/github.com/cncf/xds/go/xds/type/matcher/v3/string.pb.validate.go | 5619 | // Code generated by protoc-gen-validate. DO NOT EDIT.
// source: xds/type/matcher/v3/string.proto
package v3
import (
"bytes"
"errors"
"fmt"
"net"
"net/mail"
"net/url"
"regexp"
"strings"
"time"
"unicode/utf8"
"google.golang.org/protobuf/types/known/anypb"
)
// ensure the imports are used
var (
_ = byte... | apache-2.0 |
jwren/intellij-community | java/java-structure-view/src/com/intellij/ide/structureView/impl/java/JavaVariableBaseTreeElement.java | 1601 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.structureView.impl.java;
import com.intellij.ide.util.treeView.smartTree.SortableTreeElement;
import com.intellij.openapi.project.DumbS... | apache-2.0 |
smmribeiro/intellij-community | plugins/hg4idea/testData/bin/hgext/narrow/narrowbundle2.py | 11641 | # narrowbundle2.py - bundle2 extensions for narrow repository support
#
# Copyright 2017 Google, Inc.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import
import errno
import struct
from mercuri... | apache-2.0 |
fceller/arangodb | 3rdParty/V8/v7.1.302.28/third_party/icu/source/tools/toolutil/ucbuf.cpp | 23388 | // Copyright (C) 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
*
* Copyright (C) 1998-2016, International Business Machines
* Corporation and others. All Rights Reserved.
... | apache-2.0 |
KiloBravoLima/roslyn | src/VisualStudio/Core/Impl/CodeModel/AbstractProjectCodeModel.cs | 3532 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.LanguageServices.Implementation.Interop;
using Microsoft.VisualStudio.LanguageSer... | apache-2.0 |
rohitsaboo/bazel | src/main/java/com/google/devtools/build/docgen/SourceFileReader.java | 12410 | // Copyright 2014 The Bazel 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 appl... | apache-2.0 |
jeoffman/helios | src/Helios/Util/Collections/DictionaryExtensions.cs | 1162 | using System;
using System.Collections.Generic;
namespace Helios.Util.Collections
{
/// <summary>
/// Static helper methods for working with dictionaries
/// </summary>
public static class DictionaryExtensions
{
/// <summary>
/// Dictionary helper that allows for idempotent updates... | apache-2.0 |
ilmax/core | samples/Mvc.Server/Program.cs | 791 | using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace Mvc.Server {
public static class Program {
public static void Main(string[] args) {
var configuration = new ConfigurationBuilder()
.AddEnvironmentVariable... | apache-2.0 |
enj/origin | test/extended/operators/clusteroperators.go | 2321 | package operators
import (
g "github.com/onsi/ginkgo"
o "github.com/onsi/gomega"
s "github.com/onsi/gomega/gstruct"
t "github.com/onsi/gomega/types"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/kube-openapi/pkg/util/sets"
e2e "k8s.io/kubernetes/test/e2e/framework"
config "github.com/openshift/api/co... | apache-2.0 |
hgschmie/presto | presto-bigquery/src/test/java/io/prestosql/plugin/bigquery/TestBigQueryConfig.java | 3989 | /*
* 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 |
rameshlamba/triospace | src/node_modules/ueberDB/node_modules/pg/lib/deprecate.js | 856 | var os = require('os');
var defaults = require(__dirname + '/defaults');
var hits = {
};
var deprecate = module.exports = function(methodName, message) {
if(defaults.hideDeprecationWarnings) return;
if(hits[deprecate.caller]) return;
hits[deprecate.caller] = true;
process.stderr.write(os.EOL);
process.stderr... | apache-2.0 |
bighaidao/lucene | lucene-core-test/src/test/java/org/apache/lucene/util/TestBitVector.java | 6769 | package org.apache.lucene.util;
/**
* 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, Versio... | apache-2.0 |
zofuthan/bbossgroups-3.5 | bboss-persistent/test/com/frameworkset/derby/TestQuery.java | 1342 | /*
* Copyright 2008 biaoping.yin
*
* 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 agr... | apache-2.0 |
ElliottMiller/azure-sdk-for-java | management-network2/src/main/java/com/microsoft/azure/management/network/models/ApplicationGatewayListResponse.java | 2469 | /**
*
* 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 r... | apache-2.0 |
noamher/obc-peer | openchain/chaincode/exectransaction.go | 6697 | /*
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 use this f... | apache-2.0 |
jakub-d/kubernetes | federation/cmd/federation-controller-manager/app/controllermanager.go | 9246 | /*
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 |
doodelicious/cas | core/cas-server-core-authentication/src/main/java/org/apereo/cas/authentication/handler/support/AbstractPreAndPostProcessingAuthenticationHandler.java | 3345 | package org.apereo.cas.authentication.handler.support;
import org.apereo.cas.authentication.AbstractAuthenticationHandler;
import org.apereo.cas.authentication.BasicCredentialMetaData;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.authentication.DefaultHandlerResult;
import org.apereo.cas.auth... | apache-2.0 |
11xor6/presto | core/trino-spi/src/main/java/io/trino/spi/type/TimestampParametricType.java | 1719 | /*
* 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 |
zpao/buck | python-dsl/buck_parser/deterministic_set_test.py | 1546 | # Copyright (c) Facebook, Inc. and 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 law or ... | apache-2.0 |
glamarre360/stagemonitor | stagemonitor-alerting/src/main/java/org/stagemonitor/alerting/alerter/TestAlertSenderServlet.java | 1145 | package org.stagemonitor.alerting.alerter;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.stagemonitor.alerting.AlertingPlugin;
import org.stagemonitor.al... | apache-2.0 |
noironetworks/horizon | openstack_dashboard/test/integration_tests/video_recorder.py | 2621 | # 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
# d... | apache-2.0 |
foxish/kubernetes | pkg/kubectl/cmd/edit_test.go | 9429 | /*
Copyright 2017 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 |
rustyhutchison/rustyhutchison.github.io | manager/controllers/default/element/plugin/update.class.php | 6750 | <?php
/**
* Load update plugin page
*
* @package modx
* @subpackage manager.controllers
*/
class ElementPluginUpdateManagerController extends modManagerController {
/** @var modCategory $category */
public $category;
/** @var modPlugin $plugin */
public $plugin;
/** @var array $pluginArray */
... | apache-2.0 |
donaldpipowitch/TypeScript | tests/cases/fourslash/completionsThisType.ts | 814 | /// <reference path="fourslash.ts" />
////class C {
//// "foo bar": number;
//// xyz() {
//// return (/**/)
//// }
////}
////
////function f(this: { x: number }) { /*f*/ }
const preferences: FourSlashInterface.UserPreferences = { includeInsertTextCompletions: true };
verify.completions(
{
... | apache-2.0 |
areitz/pants | src/python/pants/backend/project_info/tasks/depmap.py | 8198 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
from pants.backend.c... | apache-2.0 |
jtlibing/azure-powershell | src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Models/DataLakeStoreItem.cs | 2901 | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... | apache-2.0 |
manishgupta88/carbondata | integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BatchSortLoad1TestCase.scala | 25197 |
/*
* 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 |
winklerm/drools | drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/MyEnum.java | 1117 | /*
* Copyright 2021 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 ap... | apache-2.0 |
DLotts/incubator-rya | extras/indexing/src/main/java/org/apache/rya/indexing/external/matching/ExternalSetProvider.java | 2589 | /**
* 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 |
kencheung/js-symbolic-executor | cvc3/src/sat/minisat_types.cpp | 1924 | /*****************************************************************************/
/*!
*\file minisat_types.cpp
*\brief MiniSat internal types
*
* Author: Alexander Fuchs
*
* Created: Fri Sep 08 11:04:00 2006
*
* <hr>
*
* License to use, copy, modify, sell and/or distribute this software
* and its documentation... | apache-2.0 |
GBGamer/rust | src/test/run-pass/traits/traits-repeated-supertrait.rs | 1746 | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | apache-2.0 |
sksamuel/eel-sdk | eel-hive/src/main/scala/io/eels/component/hive/FilenameStrategy.scala | 294 | package io.eels.component.hive
/**
* Strategy responsible for the filenames created by eel when writing out data.
*/
trait FilenameStrategy {
def filename: String
}
object DefaultFilenameStrategy extends FilenameStrategy {
override def filename: String = "eel_" + System.nanoTime()
}
| apache-2.0 |
vipullakhani/mi-instrument | mi/instrument/nobska/mavs4/ooicore/test/test_driver.py | 55919 | #!/usr/bin/env python
"""
@package mi.instrument.nobska.mavs4.mavs4.test.test_driver
@file /Users/Bill/WorkSpace/marine-integrations/mi/instrument/nobska/mavs4/mavs4/driver.py
@author Bill Bollenbacher
@brief Test cases for mavs4 driver
USAGE:
Make tests verbose and provide stdout
* From the IDK
$ bin/test... | bsd-2-clause |
adrianchia/homebrew-cask | Casks/adobe-connect.rb | 876 | cask "adobe-connect" do
version "11,2021.11.22"
sha256 "62369795374e6d05b7b6799f265864707d2caa56a61b6858f50ba5f32b100d74"
url "https://download.adobe.com/pub/connect/updaters/meeting/#{version.before_comma.dots_to_underscores}/AdobeConnect_#{version.after_comma.dots_to_underscores}.dmg"
name "Adobe Connect"
... | bsd-2-clause |
nbari/homebrew-core | Formula/ntfs-3g.rb | 2908 | class Ntfs3g < Formula
desc "Read-write NTFS driver for FUSE"
homepage "https://www.tuxera.com/community/open-source-ntfs-3g/"
url "https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz"
sha256 "3e5a021d7b761261836dcb305370af299793eedbded731df3d6943802e1262d5"
revision 1
bottle do
cellar :any
... | bsd-2-clause |
GaborApatiNagy/xenadmin | XenAdmin/Wizards/NewNetworkWizard_Pages/NetWName.cs | 4965 | /* Copyright (c) Citrix Systems, 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... | bsd-2-clause |
L2G/homebrew-cask | Casks/undercover.rb | 787 | cask :v1 => 'undercover' do
version '6.0'
sha256 '07d9b20eba2a873e538e4f2ae4c1dcafafd282fb8af01f3374b08e54069d9932'
url "http://assets.undercoverhq.com/client/#{version}/undercover_mac.pkg"
homepage 'http://www.orbicule.com/undercover/mac/'
license :unknown
pkg 'undercover_mac.pkg'
uninstall :pkgutil =... | bsd-2-clause |
jkyeung/XlsxWriter | xlsxwriter/comments.py | 5268 | ###############################################################################
#
# Comments - A class for writing the Excel XLSX Worksheet file.
#
# Copyright 2013-2016, John McNamara, jmcnamara@cpan.org
#
import re
from . import xmlwriter
from .utility import xl_rowcol_to_cell
class Comments(xmlwriter.XMLwriter):... | bsd-2-clause |
TheTypoMaster/SPHERE-Framework | Library/Bootstrap.Checkbox/0.3.3/bower_components/jquery/src/attributes/attr.js | 4957 | define( [
"../core",
"../var/rnotwhite",
"../var/strundefined",
"../core/access",
"./support",
"../selector"
], function( jQuery, rnotwhite, strundefined, access, support )
{
var nodeHook, boolHook,
attrHandle = jQuery.expr.attrHandle;
jQuery.fn.extend( {
attr: function... | bsd-2-clause |
zmwangx/brew | Library/Homebrew/test/missing_formula_spec.rb | 3738 | require "missing_formula"
describe Homebrew::MissingFormula do
context "::reason" do
subject { described_class.reason("gem") }
it { is_expected.to_not be_nil }
end
context "::blacklisted_reason" do
matcher(:be_blacklisted) do
match(&Homebrew::MissingFormula.method(:blacklisted_reason))
en... | bsd-2-clause |
xight/homebrew-cask | Casks/lingon-x.rb | 799 | cask "lingon-x" do
if MacOS.version <= :high_sierra
version "6.6.5"
sha256 "b0231b1a98dcc8f5c4234b419c9f5331407b8cce29b33f0ea2e32b12595adfa8"
else
version "7.5.9"
sha256 "cc03c7c2bbb7b955af1a4a4ef60076e0dceb634ec5523681d3319b66b91d98e3"
end
url "https://www.peterborgapps.com/downloads/LingonX#{... | bsd-2-clause |
jorsol/pgjdbc | pgjdbc/src/main/java/org/postgresql/core/v3/SimpleQuery.java | 11764 | /*
* Copyright (c) 2004, PostgreSQL Global Development Group
* See the LICENSE file in the project root for more information.
*/
// Copyright (c) 2004, Open Cloud Limited.
package org.postgresql.core.v3;
import org.postgresql.core.Field;
import org.postgresql.core.NativeQuery;
import org.postgresql.core.Oid;
impor... | bsd-2-clause |
lantrix/homebrew-cask | Casks/omnioutliner.rb | 653 | cask 'omnioutliner' do
if MacOS.version <= :high_sierra
version '5.4.2(n)'
sha256 'a9364dcf2ee97a871a881530785fa54d269f5e95298e2e4d2e979c70b6365395'
url "https://downloads.omnigroup.com/software/MacOSX/10.13/OmniOutliner-#{version}.dmg"
else
version '5.6.1'
sha256 'b91ef743bafa080266e3422c7ab30... | bsd-2-clause |
spatialdev/onadata | onadata/libs/utils/viewer_tools.py | 8037 | import os
import traceback
import requests
import zipfile
from tempfile import NamedTemporaryFile
from urlparse import urljoin
from xml.dom import minidom
from django.conf import settings
from django.core.files.storage import get_storage_class
from django.core.files.uploadedfile import InMemoryUploadedFile
from djang... | bsd-2-clause |
happygiraffe/jslint4java | jslint4java/src/test/resources/com/googlecode/jslint4java/stubjslint.js | 119 | // A stub JSLINT that returns no errors.
function JSLINT(source, options) {
JSLINT.errors = [];
return true;
}
| bsd-2-clause |
404NetworkError/homebrew-versions | Casks/dash4.rb | 625 | cask "dash4" do
version "4.6.7"
sha256 "e2b5eb996645b25f12ccae15e24b1b0d8007bc5fed925e14ce7be45a2b693fb6"
url "https://kapeli.com/downloads/v#{version.major}/Dash.zip"
appcast "https://kapeli.com/Dash#{version.major}.xml"
name "Dash"
homepage "https://kapeli.com/dash"
auto_updates true
app "Dash.app"... | bsd-2-clause |
mathbunnyru/homebrew-cask | Casks/portfolioperformance.rb | 584 | cask "portfolioperformance" do
version "0.52.0"
sha256 "bd24488939981d1538d1b2f8b0d8b4819bdacf59cfdd6d98d2b73ec26e8840e5"
url "https://github.com/buchen/portfolio/releases/download/#{version}/PortfolioPerformance-#{version}.dmg",
verified: "github.com/buchen/portfolio/"
name "Portfolio Performance"
des... | bsd-2-clause |
wprl/homebrew-cask | Casks/onepassword.rb | 255 | class Onepassword < Cask
url 'http://i.agilebits.com/dist/1P/mac4/1Password-4.4.zip'
homepage 'https://agilebits.com/onepassword'
version '4.4'
sha256 '9e18401e4a06f272c6c4ad056c4e193e699bd9a2eb1f8bc0e0ced60c454930e8'
link '1Password 4.app'
end
| bsd-2-clause |
tacaswell/scikit-beam | skbeam/core/tests/test_image.py | 6106 | from __future__ import absolute_import, division, print_function
import numpy as np
from skbeam.core import roi
import numpy.random
import skimage.draw as skd
from scipy.ndimage.morphology import binary_dilation
import skbeam.core.image as nimage
import pytest
from numpy.testing import assert_equal, assert_array_almos... | bsd-3-clause |
salikjan/camel | platforms/spring-boot/components-starter/camel-tarfile-starter/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.java | 6209 | /**
* 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... | bsd-3-clause |
nwjs/blink | Source/modules/accessibility/AXList.cpp | 2542 | /*
* Copyright (C) 2008 Apple 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:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... | bsd-3-clause |
chromium/chromium | ui/ozone/platform/x11/x11_screen_ozone.cc | 6127 | // Copyright 2018 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 "ui/ozone/platform/x11/x11_screen_ozone.h"
#include "ui/base/linux/linux_desktop.h"
#include "ui/base/x/x11_idle_query.h"
#include "ui/base/x/x1... | bsd-3-clause |
amatyja/AliPhysics | PWGCF/FLOW/Forward/macros/AddTaskForwardNUE.C | 1080 | /**
* @file AddTaskForwardNUA.C
* @author Freja Thoresen <freja.thoresen@cern.ch>
*
* @brief Add Q-cummulant forward task to train
*
*
*/
AliAnalysisTaskSE* AddTaskForwardNUE()
{
// --- Get analysis manager ----------------------------------------
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysis... | bsd-3-clause |
rajvishah/TheiaSfM | src/theia/sfm/view_graph/orientations_from_view_graph_test.cc | 6365 | // Copyright (C) 2014 The Regents of the University of California (Regents).
// 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... | bsd-3-clause |
udrg/kalibr | aslam_cv/aslam_cameras/include/aslam/targets.hpp | 233 | #ifndef ASLAM_TARGETS_HPP
#define ASLAM_TARGETS_HPP
// Calibration targets
#include <aslam/cameras/GridCalibrationTargetCheckerboard.hpp>
#include <aslam/cameras/GridCalibrationTargetCirclegrid.hpp>
#endif /* ASLAM_TARGETS_HPP */
| bsd-3-clause |