code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
/*
* #%L
* Alfresco Repository
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the... | Alfresco/alfresco-repository | src/main/java/org/alfresco/repo/management/subsystems/SubsystemProxyFactory.java | Java | lgpl-3.0 | 9,452 |
/*
* SonarQube, open source software quality management tool.
* Copyright (C) 2008-2014 SonarSource
* mailto:contact AT sonarsource DOT com
*
* SonarQube is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Found... | abbeyj/sonarqube | it/it-tests/src/test/java/selenium/Retry.java | Java | lgpl-3.0 | 4,076 |
/*
* #%L
* Alfresco Repository
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the... | Alfresco/alfresco-repository | src/main/java/org/alfresco/repo/security/authentication/AbstractChainingFtpAuthenticator.java | Java | lgpl-3.0 | 2,217 |
/*
* #%L
* Alfresco Repository
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the... | Alfresco/alfresco-repository | src/main/java/org/alfresco/repo/search/impl/solr/DisabledFeatureException.java | Java | lgpl-3.0 | 1,375 |
# Copyright 2011 Hakan Kjellerstrand hakank@bonetmail.com
#
# 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 ... | WendellDuncan/or-tools | examples/python/volsay2.py | Python | apache-2.0 | 2,080 |
/*
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, ... | lichen2013/kubernetes | pkg/kubelet/cm/deviceplugin/endpoint.go | GO | apache-2.0 | 5,390 |
/*
* 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 ... | aditya1105/gobblin | gobblin-utility/src/test/java/org/apache/gobblin/util/test/TestStressTestingSource.java | Java | apache-2.0 | 6,917 |
"""Tests for the Verisure platform."""
from contextlib import contextmanager
from unittest.mock import call, patch
from homeassistant.components.lock import (
DOMAIN as LOCK_DOMAIN,
SERVICE_LOCK,
SERVICE_UNLOCK,
)
from homeassistant.components.verisure import DOMAIN as VERISURE_DOMAIN
from homeassistant.c... | partofthething/home-assistant | tests/components/verisure/test_lock.py | Python | apache-2.0 | 4,819 |
/*
* 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 ... | ullgren/camel | components/camel-spark-rest/src/main/java/org/apache/camel/component/sparkrest/SparkMessage.java | Java | apache-2.0 | 1,767 |
/*
* Copyright © 2015 Cask Data, 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... | chtyim/cdap | cdap-api/src/main/java/co/cask/cdap/api/dataset/lib/DynamicPartitioner.java | Java | apache-2.0 | 2,078 |
/**
* 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"... | WouterBanckenACA/aries | spi-fly/spi-fly-dynamic-bundle/src/test/java/org/apache/aries/spifly/dynamic/ClientWeavingHookTest.java | Java | apache-2.0 | 45,645 |
/**
* Copyright 2016 LinkedIn Corp. 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... | vgkholla/ambry | ambry-commons/src/test/java/com.github.ambry.commons/ByteBufferReadableStreamChannelTest.java | Java | apache-2.0 | 11,153 |
// Copyright 2012 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 in ... | wangming28/syzygy | syzygy/experimental/pdb_dumper/pdb_module_info_stream_dumper.cc | C++ | apache-2.0 | 8,662 |
/*
* 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... | camilojd/elasticsearch | core/src/main/java/org/elasticsearch/common/xcontent/smile/SmileXContent.java | Java | apache-2.0 | 4,170 |
/*
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, ... | danielromlein/dashboard | vendor/k8s.io/client-go/pkg/api/annotation_key_constants.go | GO | apache-2.0 | 3,584 |
# -*- coding: utf-8 -*-
###############################################################################
#
# FilterPlacesByTopLevelCategory
# Find places by top-level category and near specified latitude, longitude coordinates.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apa... | jordanemedlock/psychtruths | temboo/core/Library/Factual/FilterPlacesByTopLevelCategory.py | Python | apache-2.0 | 5,132 |
/*
* Copyright 2012-2014 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... | domix/spring-boot | spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/EnableAutoConfigurationImportSelector.java | Java | apache-2.0 | 3,065 |
/*
* Copyright 2004-2009 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... | baboune/compass | src/main/test/org/compass/annotations/test/property/A.java | Java | apache-2.0 | 973 |
package main
import "github.com/mackerelio/mackerel-plugin-gearmand/lib"
func main() {
mpgearmand.Do()
}
| mackerelio/mackerel-agent-plugins | mackerel-plugin-gearmand/main.go | GO | apache-2.0 | 108 |
##############################################################################
# Copyright (c) 2003 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTW... | smmribeiro/intellij-community | plugins/hg4idea/testData/bin/mercurial/thirdparty/zope/interface/declarations.py | Python | apache-2.0 | 30,880 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | pavel-sakun/pentaho-kettle | engine/src/test/java/org/pentaho/di/trans/steps/missing/MissingTransStepTest.java | Java | apache-2.0 | 3,423 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | robin13/elasticsearch | modules/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/GeoIpTaskStateSerializationTests.java | Java | apache-2.0 | 1,449 |
/*
* Copyright 2017 StreamSets 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... | rockmkd/datacollector | container/src/test/java/com/streamsets/datacollector/restapi/bean/TestConfigConfigurationBean.java | Java | apache-2.0 | 2,338 |
using System;
namespace Benchmarks.Models
{
public class User
{
public Guid Id { get; set; }
public string UserName { get; set; }
public string Email { get; set; }
public int Age { get; set; }
public string Address { get; set; }
public bool Active { get; set; }
... | Excommunicated/ExpressMapper | PerformanceTest/Models/User.cs | C# | apache-2.0 | 460 |
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '5.3.4',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
}; | tst-eclamar/earthenterprise | docs/geedocs/5.3.4/static/documentation_options.js | JavaScript | apache-2.0 | 275 |
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.aws2.eventbridge;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi... | pax95/camel | components/camel-aws/camel-aws2-eventbridge/src/generated/java/org/apache/camel/component/aws2/eventbridge/EventbridgeComponentConfigurer.java | Java | apache-2.0 | 8,583 |
/**
* 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... | korrelate/hadoop | hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java | Java | apache-2.0 | 107,785 |
/*
* Copyright (C) 2009 The Guava 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 agre... | rgoldberg/guava | guava-gwt/src-super/java/util/super/java/util/concurrent/ConcurrentHashMap.java | Java | apache-2.0 | 3,773 |
sap.ui.define(['sap/ui/core/mvc/Controller'],
function(Controller) {
"use strict";
var MBController = Controller.extend("sap.m.sample.MenuButton.MB", {
onDefaultAction: function() {
sap.m.MessageToast.show("Default action triggered");
},
onDefaultActionAccept: function() {
sap.m.MessageToast.show... | openui5/packaged-sap.m | test-resources/sap/m/demokit/sample/MenuButton/MB.controller.js | JavaScript | apache-2.0 | 760 |
/**
* 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 n... | WIgor/hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ContainerManagementProtocol.java | Java | apache-2.0 | 11,258 |
/*
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... | sflyphotobooks/crp-batik | sources/org/apache/batik/anim/timing/TimegraphAdapter.java | Java | apache-2.0 | 3,242 |
/*
* 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 ... | shroman/ignite | modules/core/src/test/java/org/apache/ignite/internal/processors/cache/binary/GridCacheBinaryObjectMetadataExchangeMultinodeTest.java | Java | apache-2.0 | 15,798 |
/*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you 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 ... | xiexingguang/simple-netty-source | src/main/java/org/jboss/netty/channel/core/FileRegion.java | Java | apache-2.0 | 3,614 |
/*
* #%L
* Wisdom-Framework
* %%
* Copyright (C) 2013 - 2014 Wisdom Framework
* %%
* 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... | torito/wisdom | core/content-manager/src/main/java/org/wisdom/content/bodyparsers/BodyParserForm.java | Java | apache-2.0 | 6,932 |
package org.apache.maven.model.profile;
/*
* 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 Lice... | olamy/maven | maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileInjector.java | Java | apache-2.0 | 9,121 |
/*
* 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/flink | flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/job/JobExceptionsHandler.java | Java | apache-2.0 | 11,142 |
// 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... | rangadi/beam | sdks/go/pkg/beam/core/runtime/exec/discard.go | GO | apache-2.0 | 1,532 |
#include "editor/osm_auth.hpp"
#include "platform/http_client.hpp"
#include "coding/url.hpp"
#include "base/assert.hpp"
#include "base/logging.hpp"
#include "base/string_utils.hpp"
#include <iostream>
#include <map>
#include "private.h"
#include "3party/liboauthcpp/include/liboauthcpp/liboauthcpp.h"
using namesp... | darina/omim | editor/osm_auth.cpp | C++ | apache-2.0 | 16,629 |
/*
* 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 ... | rmetzger/flink | flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/debezium/DebeziumJsonOptions.java | Java | apache-2.0 | 3,339 |
describe Hbc::Artifact::NestedContainer, :cask do
describe "install" do
it "extracts the specified paths as containers" do
cask = Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/nested-app.rb").tap do |c|
InstallHelper.install_without_artifacts(c)
end
shutup do
Hbc::... | ehsanfar/ofspy_Lite | bin/homebrew/Library/Homebrew/test/cask/artifact/nested_container_spec.rb | Ruby | apache-2.0 | 472 |
/*
* Copyright 2017 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 app... | mbiarnes/jbpm | jbpm-test-util/src/main/java/org/jbpm/test/persistence/scripts/quartzmockentities/QrtzPausedTriggerGrps.java | Java | apache-2.0 | 1,381 |
/*
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, ... | juanvallejo/kubernetes | pkg/scheduler/algorithm/predicates/predicates.go | GO | apache-2.0 | 68,284 |
package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
"strings"
"time"
)
type dockerHubTagMeta struct {
// we don't care what's in these -- we just need to be able to count them
Images []interface{} `json:"images"`
LastUpdated string `json:"last_updated"`
}
func (meta dockerHubTagMeta) lastUpdatedTim... | chorrell/official-images | bashbrew/go/src/bashbrew/hub.go | GO | apache-2.0 | 1,396 |
using OfficeDevPnP.PowerShell.Commands.Base.PipeBinds;
using Microsoft.SharePoint.Client;
using System.Management.Automation;
using System;
using OfficeDevPnP.Core.Entities;
using Microsoft.SharePoint.Client.Taxonomy;
using System.Collections.Generic;
using OfficeDevPnP.PowerShell.CmdletHelpAttributes;
using System.Li... | JonathanHuss/PnP | Solutions/PowerShell.Commands/Commands/Lists/SetDefaultColumnValues.cs | C# | apache-2.0 | 5,810 |
<?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
namespace Nette\Application;
use Nette;
/**
* Default presenter loader.
*/
class PresenterFactory implements IPresenterFactory
{
use Nette\SmartObject;
/** @var array[] of m... | MasaharuKomuro/kitakupics | vendor/nette/application/src/Application/PresenterFactory.php | PHP | apache-2.0 | 4,074 |
/**
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lic... | lyzxsc/aws-sdk-android-samples | CognitoSyncDemo/src/com/amazonaws/cognito/sync/devauth/client/GetTokenResponse.java | Java | apache-2.0 | 1,640 |
/*
* © Copyright IBM Corp. 2012
*
* 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 ... | iharkhukhrakou/XPagesExtensionLibrary | extlib/lwp/openntf/test/eclipse/plugins/com.ibm.xsp.test.framework/src/com/ibm/xsp/test/framework/setup/SkipFileContent.java | Java | apache-2.0 | 5,361 |
/*
* Copyright 2000-2009 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... | romankagan/DDBWorkbench | java/debugger/impl/src/com/intellij/debugger/settings/DebuggerSteppingConfigurable.java | Java | apache-2.0 | 5,766 |
// 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.ui.components;
import com.intellij.ide.ui.AntialiasingType;
import com.intellij.openapi.util.NlsContexts;
import com.intellij.openapi.util.text.StringUtil;
i... | smmribeiro/intellij-community | platform/platform-api/src/com/intellij/ui/components/JBLabel.java | Java | apache-2.0 | 13,575 |
/*
* 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 ... | RyanMagnusson/cassandra | src/java/org/apache/cassandra/db/lifecycle/Tracker.java | Java | apache-2.0 | 17,572 |
/*
* Copyright 2004-2009 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... | baboune/compass | src/main/test/org/apache/lucene/store/jdbc/index/FetchOnOpenInputRAMAndFileOutputBelowThresholdTests.java | Java | apache-2.0 | 1,229 |
/*
* 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 ... | dashorst/wicket | wicket-cdi-1.1/src/test/java/org/apache/wicket/cdi/testapp/TestConversationPage.java | Java | apache-2.0 | 2,394 |
/*
* Copyright (c) 2008-2021, Hazelcast, 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 ... | emre-aydin/hazelcast | hazelcast/src/main/java/com/hazelcast/transaction/impl/xa/TransactionAccessor.java | Java | apache-2.0 | 1,173 |
package action
import (
"errors"
boshas "github.com/cloudfoundry/bosh-agent/agent/applier/applyspec"
boshscript "github.com/cloudfoundry/bosh-agent/agent/script"
boshdrain "github.com/cloudfoundry/bosh-agent/agent/script/drain"
boshjobsuper "github.com/cloudfoundry/bosh-agent/jobsupervisor"
boshnotif "github.co... | cloudfoundry/bosh-init | vendor/github.com/cloudfoundry/bosh-agent/agent/action/drain.go | GO | apache-2.0 | 3,726 |
# coding=utf-8
# Copyright 2016 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)
import os
from textw... | 15Dkatz/pants | tests/python/pants_test/backend/python/tasks2/test_python_binary_create.py | Python | apache-2.0 | 2,644 |
package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
public class CguardProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
CguardProtocolDecoder decoder = new CguardProtocolDecoder(new CguardProtocol());
verifyNothin... | duke2906/traccar | test/org/traccar/protocol/CguardProtocolDecoderTest.java | Java | apache-2.0 | 1,939 |
from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
class DistCogdoCraneMoneyBagAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistCogdoCraneMoneyBagAI")
def setIndex(self, todo0):
pass
def reque... | silly-wacky-3-town-toon/SOURCE-COD | toontown/cogdominium/DistCogdoCraneMoneyBagAI.py | Python | apache-2.0 | 351 |
#
# Lexical analyzer for JSON
# Copyright (C) 2003,2005 Rafael R. Sevilla <dido@imperium.ph>
# This file is part of JSON for Ruby
#
# JSON for Ruby is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; e... | bizo/aws-tools | emr/elastic-mapreduce-ruby-20131216/json/lexer.rb | Ruby | apache-2.0 | 7,352 |
/*-
* * Copyright 2017 Skymind, 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
* *
* * Un... | shuodata/deeplearning4j | deeplearning4j-core/src/test/java/org/deeplearning4j/util/RandomUtils.java | Java | apache-2.0 | 1,403 |
package com.vaadin.tests.components.customcomponent;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.NativeButton;
public class CustomComponentSizeUpdate extends TestBase {
@... | jdahlstrom/vaadin.react | uitest/src/main/java/com/vaadin/tests/components/customcomponent/CustomComponentSizeUpdate.java | Java | apache-2.0 | 1,199 |
public interface I {
void foo();
} | smmribeiro/intellij-community | plugins/kotlin/idea/tests/testData/findUsages/kotlin/findFunctionUsages/highlightingOfSuperUsages.1.java | Java | apache-2.0 | 38 |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obta... | cesarpazguzman/The-Eternal-Sorrow | dependencies/Ogre/Tests/PlayPen/src/WindowEmbedding.cpp | C++ | apache-2.0 | 5,719 |
//===-- main.c --------------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | apple/swift-lldb | packages/Python/lldbsuite/test/python_api/process/main.cpp | C++ | apache-2.0 | 1,072 |
// 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 Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.CSharp.Test.Utilities;
using Microsoft.CodeAnalysis.Test.Utilities;
using Xunit;
na... | OmarTawfik/roslyn | src/Compilers/CSharp/Test/Semantic/IOperation/IOperationTests_IConditionalAccessExpression.cs | C# | apache-2.0 | 55,769 |
/*
* Copyright 2013 Red Hat Inc. and/or its affiliates and other 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 req... | tadayosi/switchyard | core/config/src/test/java/org/switchyard/config/model/switchyard/SCABindingExtensionTests.java | Java | apache-2.0 | 3,141 |
/* 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 fi... | lazyval/go_kafka_mirror | consumer_test.go | GO | apache-2.0 | 24,744 |
/*=========================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Li... | jhonj624/CTK | Libs/Core/Testing/Cpp/ctkHighPrecisionTimerTest.cpp | C++ | apache-2.0 | 1,432 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable enable
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using System.Threa... | reaction1989/roslyn | src/Features/Core/Portable/CodeRefactorings/CodeRefactoringContextExtensions.cs | C# | apache-2.0 | 2,593 |
var VERB_NEW = 1;
var VERB_CHANGED = 2;
var VERB_CURRENT = 3;
var VERB_NEW_CLASS = "verb-new";
var VERB_CHANGED_CLASS = "verb-changed";
var VERB_CURRENT_CLASS = "verb-current";
var EDITED_CLASS = "edited";
var NOT_STARTED_TRANSLATION = 0;
var VALID_TRANSLATION = 1;
var INVALID_TRANSLATION = 2;
function getVerbClassN... | UniMOOC/AAClassroom | modules/i18n_dashboard/templates/translation_console.js | JavaScript | apache-2.0 | 5,738 |
import os, sys
sys.path.insert(1, "../../../")
import h2o, tests
def deeplearning_multi():
print("Test checks if Deep Learning works fine with a multiclass training and test dataset")
prostate = h2o.import_file(h2o.locate("smalldata/logreg/prostate.csv"))
prostate[4] = prostate[4].asfactor()
h... | brightchen/h2o-3 | h2o-py/tests/testdir_algos/deeplearning/pyunit_multiclassDeepLearning.py | Python | apache-2.0 | 688 |
/*
* Copyright (c) 2016, 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
... | prabushi/devstudio-tooling-esb | plugins/org.wso2.developerstudio.esb.form.editors/src/org/wso2/developerstudio/esb/form/editors/article/rcp/Messages.java | Java | apache-2.0 | 1,304 |
// @@@ START COPYRIGHT @@@
//
// 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... | apache/incubator-trafodion | core/sqf/src/win/t.cpp | C++ | apache-2.0 | 910 |
/*
* Copyright (c) 2017, Adam <Adam@sigterm.info>
* 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
* li... | UniquePassive/runelite | http-api/src/main/java/net/runelite/http/api/account/AccountClient.java | Java | bsd-2-clause | 3,621 |
cask :v1 => 'moneywell' do
version '2.3.4'
sha256 'f4b900576657c669a40481d7c2ad1ad6d48a4468d16963d4e9c8ddeca9c1548a'
url "http://downloads.nothirst.com/MoneyWell_#{version.sub(%r{^(\d+)\.(\d+).*},'\1\2')}.zip"
appcast 'http://nothirst.com/feeds/MoneyWell2Appcast.xml',
:sha256 => '8de9519f9ff874d9baf6... | L2G/homebrew-cask | Casks/moneywell.rb | Ruby | bsd-2-clause | 456 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/installer/setup/install.h"
#include <windows.h>
#include <shlobj.h>
#include <time.h>
#include <string>
#include "base/files/file_... | CapOM/ChromiumGStreamerBackend | chrome/installer/setup/install.cc | C++ | bsd-3-clause | 29,451 |
/*
YUI 3.6.0 (build 5521)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('exec-command', function(Y) {
/**
* Plugin for the frame module to handle execCommands for Editor
* @class Plugin.ExecCommand
* @extends Base
* @c... | bretkikehara/wattdepot-visualization | src/main/webapp/yui/3.6.0/build/exec-command/exec-command-debug.js | JavaScript | bsd-3-clause | 31,671 |
from functools import wraps
from django.contrib import messages
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.contrib.auth.decorators import user_passes_test
from django.contrib.auth.views import redirect_to_login
from django.core.exceptions import PermissionDenied
from django.core.urlresolvers impor... | sonofatailor/django-oscar | src/oscar/views/decorators.py | Python | bsd-3-clause | 5,064 |
/*
* Copyright 2016 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.
*/
/* global PaymentRequest:false */
/**
* Launches the PaymentRequest UI that offers free shipping in California and
* $5.00 shipping in US. Does ... | chromium/chromium | components/test/data/payments/dynamic_shipping.js | JavaScript | bsd-3-clause | 3,140 |
// Copyright 2014 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 "net/socket/transport_client_socket_pool_test_util.h"
#include <stdint.h>
#include <string>
#include <utility>
#include "base/location.h"
#incl... | axinging/chromium-crosswalk | net/socket/transport_client_socket_pool_test_util.cc | C++ | bsd-3-clause | 16,065 |
//
(function (root) {
"use strict";
if (!root.lux)
root.lux = {};
// If a file assign http as protocol (https does not work with PhantomJS)
var protocol = root.location ? (root.location.protocol === 'file:' ? 'http:' : '') : '',
end = '.js',
ostring = Object.prototype.toString,... | dejlek/pulsar | examples/tweets/assets/tweets.js | JavaScript | bsd-3-clause | 10,267 |
//===- X86AvoidStoreForwardingBlockis.cpp - Avoid HW Store Forward Block --===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | endlessm/chromium-browser | third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp | C++ | bsd-3-clause | 28,773 |
/**
* Copyright (C) 2016 Turi
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
/*
* Copyright (c) 2009 Carnegie Mellon University.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (... | TobyRoseman/SFrame | oss_src/rpc/circular_iovec_buffer.hpp | C++ | bsd-3-clause | 4,545 |
<?php
// Name: /alert/confirm/index.php
// Author: Richard Allan richard@sheffieldhallam.org.uk
// Version: 0.5 beta
// Date: 6th Jan 2005
// Description: This file contains ALERT class.
// This the page users come to when they click the link in their
// confirmation email after joining the site.
// What happens? ... | NathanaelB/twfy | www/docs/alert/confirm/index.php | PHP | bsd-3-clause | 2,728 |
//===-- AMDGPUMachineFunctionInfo.cpp ---------------------------------------=//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | endlessm/chromium-browser | third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp | C++ | bsd-3-clause | 2,450 |
// Copyright 2014 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
package com.google.u2f.key.messages;
import java.util.Arrays;
public class AuthenticateResponse ... | jshufelt/u2f-ref-code | u2f-ref-code/java/src/com/google/u2f/key/messages/AuthenticateResponse.java | Java | bsd-3-clause | 2,086 |
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
const {session, contextGroup, Protocol} =
InspectorTest.start('Tests Runtime.RemoteObject.');
function evaluate(options) {
InspectorTest.log(`'${... | youtube/cobalt | third_party/v8/test/inspector/runtime/remote-object.js | JavaScript | bsd-3-clause | 21,188 |
#!/usr/bin/python
#----------------------------------------------------------------------
# This module is designed to live inside the "lldb" python package
# in the "lldb.macosx" package. To use this in the embedded python
# interpreter using "lldb" just import it:
#
# (lldb) script import lldb.macosx.heap
#-------... | endlessm/chromium-browser | third_party/llvm/lldb/examples/darwin/heap_find/heap.py | Python | bsd-3-clause | 61,273 |
// Copyright 2017 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.
import 'chrome://resources/cr_elements/md_select_css.m.js';
import './print_preview_shared_css.js';
import './settings_section.js';
import {PolymerElemen... | chromium/chromium | chrome/browser/resources/print_preview/ui/color_settings.ts | TypeScript | bsd-3-clause | 1,983 |
<?php
/**
* ezcCacheStorageFileEvalArrayTest
*
* @package Cache
* @subpackage Tests
* @version 1.5
* @copyright Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* Require parent test class.
*/
require_once 'storage_test.php';
/**
... | faclib/ezcomponents | Cache/tests/storage_file_evalarray_test.php | PHP | bsd-3-clause | 609 |
package org.apollo.game.message.impl;
import org.apollo.net.message.Message;
/**
* A {@link Message} sent to the client to open up the enter amount interface.
*
* @author Graham
*/
public final class EnterAmountMessage extends Message {
} | garyttierney/apollo | game/src/main/org/apollo/game/message/impl/EnterAmountMessage.java | Java | isc | 245 |
require 'spec_helper'
describe Gitlab::GithubImport::LabelFormatter, lib: true do
let(:project) { create(:project) }
let(:raw) { double(name: 'improvements', color: 'e6e6e6') }
subject { described_class.new(project, raw) }
describe '#attributes' do
it 'returns formatted attributes' do
expect(subjec... | shinexiao/gitlabhq | spec/lib/gitlab/github_import/label_formatter_spec.rb | Ruby | mit | 851 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.9.5.11_A2_T1;
* @section: 15.9.5.11;
* @assertion: The "length" property of the "getUTCFullYear" is 0;
* @description: The "length" property of the "getUTCFullYear" i... | seraum/nectarjs | tests/ES3/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.5_Properties_of_the_Date_Prototype_Object/15.9.5.11_Date.prototype.getUTCFullYear/S15.9.5.11_A2_T1.js | JavaScript | mit | 579 |
/*
Copyright (c) 2015, Marc Clifton
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 and the following ... | cliftonm/WebServersSuccinctly | Examples/Chapter 9/Clifton.WebServer/RouteEntry.cs | C# | mit | 2,183 |
class Admin::PublicationsController < Admin::EditionsController
before_filter :pre_fill_edition_from_statistics_announcement, only: :new, if: :statistics_announcement
private
def edition_class
Publication
end
def permitted_edition_attributes
super << :statistics_announcement_id
end
def pre_fil... | YOTOV-LIMITED/whitehall | app/controllers/admin/publications_controller.rb | Ruby | mit | 985 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | hansbonini/cloud9-magento | www/dev/tests/functional/tests/app/Mage/Directory/Test/Block/Currency/Switcher.php | PHP | mit | 2,153 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | hansbonini/cloud9-magento | www/app/code/core/Mage/Dataflow/Model/Resource/Import/Collection.php | PHP | mit | 1,372 |
<?php
CM_Db_Db::exec('ALTER TABLE `cm_actionLimit` CHANGE `actionType` `actionType` INT UNSIGNED DEFAULT NULL');
| zazabe/cm | resources/db/update/35.php | PHP | mit | 114 |
// Spart License (zlib/png)
//
//
// Copyright (c) 2003 Jonathan de Halleux
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from
// the use of this software.
//
// Permission is granted to anyone to use this softwar... | darcywong00/libpalaso | Palaso/Spart/Actions/Actions.cs | C# | mit | 1,724 |
<?php
/**
* phpDocumentor
*
* PHP Version 5.4
*
* @copyright 2010-2014 Mike van Riel / Naenius (http://www.naenius.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
namespace phpDocumentor\Transformer\Router;
use phpDocumentor\Configuration;
use phpDocu... | Maxim-Mazurok/phpDocumentor2 | tests/unit/phpDocumentor/Transformer/Router/ExternalRouterTest.php | PHP | mit | 2,689 |
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\TestModule4\Service\V1\Entity;
class NestedDataObjectRequest extends \Magento\Framework\Api\AbstractExtensibleObject
{
/**
* @return \Magento\TestModule4\Service\V1\Entity\DataOb... | j-froehlich/magento2_wk | vendor/magento/magento2-base/dev/tests/api-functional/_files/Magento/TestModule4/Service/V1/Entity/NestedDataObjectRequest.php | PHP | mit | 714 |