code stringlengths 572 46.5k | repo_name stringlengths 7 62 | path stringlengths 6 247 | language stringclasses 7
values | license stringclasses 15
values | size int64 572 46.5k |
|---|---|---|---|---|---|
/*
* Copyright (C) 2014 The Android Open Source Project
*
* 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... | kaltura/player-sdk-native-android | googlemediaframework/src/main/java/com/google/android/libraries/mediaframework/exoplayerextensions/ExtractorRendererBuilder.java | Java | agpl-3.0 | 5,699 |
package net.masterthought.cucumber.json.deserializers;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonNode;
import net.masterthoug... | seanBucholtz/cucumber-reporting | src/main/java/net/masterthought/cucumber/json/deserializers/CucumberJsonDeserializer.java | Java | lgpl-2.1 | 1,123 |
/* 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
* distributed... | dbmalkovsky/flowable-engine | modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/history/async/json/transformer/TaskDeletedHistoryJsonTransformer.java | Java | apache-2.0 | 2,150 |
/* 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
* distributed... | joansmith/camunda-bpm-platform | engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/dto/runtime/IncidentDto.java | Java | apache-2.0 | 2,745 |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | retomerz/intellij-community | platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionToolPresentation.java | Java | apache-2.0 | 4,365 |
/*
* 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 ... | superbstreak/drill | exec/java-exec/src/main/java/org/apache/drill/exec/util/StoragePluginTestUtils.java | Java | apache-2.0 | 6,642 |
package xml.launch;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import javax.xml.transform.sax.SAXSource;
import javax.xml.transform.stream.StreamSource;
import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import javax.xml.validation.Validator;
import o... | g-jourdan/profiling | Checker/src/xml/launch/QC306Camt054Checker.java | Java | apache-2.0 | 1,282 |
/*
* Copyright 2017 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 agreed to... | floxard/folly | folly/experimental/test/StringKeyedBenchmark.cpp | C++ | apache-2.0 | 3,744 |
/**
*
* 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"); ... | JingchengDu/hbase | hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterStatusServlet.java | Java | apache-2.0 | 3,558 |
/**
* 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... | acartapanis/camel | platforms/spring-boot/components-starter/camel-couchbase-starter/src/main/java/org/apache/camel/component/couchbase/springboot/CouchbaseComponentAutoConfiguration.java | Java | apache-2.0 | 4,063 |
package groups
import (
"github.com/gophercloud/gophercloud"
"github.com/gophercloud/gophercloud/pagination"
)
// ListOpts allows the filtering and sorting of paginated collections through
// the API. Filtering is achieved by passing in struct field values that map to
// the group attributes you want to see returne... | derekhiggins/installer | vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/security/groups/requests.go | GO | apache-2.0 | 5,144 |
/* 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
* distributed... | tkaefer/camunda-bpm-platform | distro/jbossas7/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationDeploymentService.java | Java | apache-2.0 | 9,156 |
/*
* Copyright (c) 2014 Spotify AB.
*
* 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... | gtonic/helios | helios-services/src/main/java/com/spotify/helios/rollingupdate/DefaultRolloutPlanner.java | Java | apache-2.0 | 3,528 |
/*
* Copyright (c) 2008-2020, 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 ... | mdogan/hazelcast | hazelcast/src/test/java/com/hazelcast/internal/metrics/impl/MetricsPropertiesTest.java | Java | apache-2.0 | 11,075 |
package marubinotto.piggydb.model.tags;
import static marubinotto.util.CollectionUtils.set;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.Set;
import marubinotto.piggydb.model.TagRepository;
import org.junit.Before;
import org.junit.Test;
publ... | marubinotto/Piggydb | src/test/java/marubinotto/piggydb/model/tags/GetAllSubordinateTagIdsTest.java | Java | apache-2.0 | 1,831 |
/*
* Copyright 2015 Space Dynamics Laboratory - Utah State University Research Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICEN... | tyler-travis/openstorefront | server/openstorefront/openstorefront-core/model/src/main/java/edu/usu/sdl/openstorefront/core/entity/Organization.java | Java | apache-2.0 | 5,750 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/sensors/sensors_provider_impl.h"
#include "base/memory/singleton.h"
#include "content/public/browser/sensors_listener.h"
n... | gavinp/chromium | content/browser/sensors/sensors_provider_impl.cc | C++ | bsd-3-clause | 1,103 |
/*****************************************************************************
* Copyright (c) 2012 CEA LIST.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* ht... | bmaggi/Papyrus-SysML11 | tests/org.eclipse.papyrus.sysml.diagram.parametric.tests/src/org/eclipse/papyrus/sysml/diagram/parametric/tests/creation/node/TestNodeCreationOnPartStructureCompartement.java | Java | epl-1.0 | 3,460 |
/* Copyright_License {
XCSoar Glide Computer - http://www.xcsoar.org/
Copyright (C) 2000-2013 The XCSoar Project
A detailed list of copyright holders can be found in the file "AUTHORS".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
... | DRNadler/DRN_TopHat | src/Engine/Task/ObservationZones/SectorZone.cpp | C++ | gpl-2.0 | 2,434 |
/*
jBilling - The Enterprise Open Source Billing System
Copyright (C) 2003-2011 Enterprise jBilling Software Ltd. and Emiliano Conde
This file is part of jbilling.
jbilling is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
... | zoranh/SeavusJB3 | src/java/com/sapienter/jbilling/server/pluggableTask/IPluggableTaskSessionBean.java | Java | agpl-3.0 | 2,255 |
/**
* Copyright (c) 2014, the Railo Company Ltd.
* Copyright (c) 2015, Lucee Assosication Switzerland
*
* This library 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; either
* version 2.1 of the... | lucee/unoffical-Lucee-no-jre | source/java/core/src/lucee/transformer/bytecode/expression/ExpressionInvoker.java | Java | lgpl-2.1 | 3,968 |
/*
* 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 ... | tillrohrmann/flink | flink-table/flink-table-runtime/src/test/java/org/apache/flink/table/runtime/operators/window/slicing/SliceAssignerTestBase.java | Java | apache-2.0 | 4,753 |
/*
* 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 ... | OpenSkywalking/skywalking | oap-server/server-storage-plugin/storage-jdbc-hikaricp-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/jdbc/postgresql/PostgreSQLStorageProvider.java | Java | apache-2.0 | 11,704 |
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package common
import (
"context"
"crypto/tls"
"io/ioutil"
"time"
pb "github.com/hyperledger/fabric-protos-go/peer"
"github.com/hyperledger/fabric/internal/pkg/comm"
"github.com/pkg/errors"
"github.com/spf13/viper"
)
// Peer... | hyperledger/fabric | internal/peer/common/peerclient.go | GO | apache-2.0 | 7,038 |
/*
* Copyright (c) 2008-2017, 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 ... | tombujok/hazelcast | hazelcast/src/main/java/com/hazelcast/config/NearCacheConfigReadOnly.java | Java | apache-2.0 | 3,637 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime/model/AssociatePhoneNumberWithUserRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Chime::Model;
using namespace Aws::Utils::Jso... | awslabs/aws-sdk-cpp | aws-cpp-sdk-chime/source/model/AssociatePhoneNumberWithUserRequest.cpp | C++ | apache-2.0 | 791 |
# 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... | eaplatanios/tensorflow | tensorflow/python/summary/summary.py | Python | apache-2.0 | 14,129 |
package org.apereo.cas.audit;
import lombok.extern.slf4j.Slf4j;
import org.apereo.cas.audit.config.CasSupportJdbcAuditConfiguration;
import org.apereo.cas.audit.spi.config.CasCoreAuditConfiguration;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.util.DateTimeUtils;
import org.ape... | dodok1/cas | support/cas-server-support-audit-jdbc/src/test/java/org/apereo/cas/audit/CasSupportJdbcAuditConfigurationTests.java | Java | apache-2.0 | 2,219 |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* 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... | ened/ExoPlayer | library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggExtractorNonParameterizedTest.java | Java | apache-2.0 | 4,112 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kinesis-video-signaling/model/GetIceServerConfigResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtil... | awslabs/aws-sdk-cpp | aws-cpp-sdk-kinesis-video-signaling/source/model/GetIceServerConfigResult.cpp | C++ | apache-2.0 | 1,266 |
/*
* Copyright 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | ghillert/spring-cloud-streams | spring-cloud-stream-reactive/src/test/java/org/springframework/cloud/stream/reactive/StreamListenerReactiveReturnWithMessageTests.java | Java | apache-2.0 | 5,870 |
package org.apereo.cas.config;
import org.apereo.cas.authentication.AuthenticationEventExecutionPlanConfigurer;
import org.apereo.cas.authentication.AuthenticationHandler;
import org.apereo.cas.authentication.principal.PrincipalFactory;
import org.apereo.cas.authentication.principal.PrincipalFactoryUtils;
import org.a... | fogbeam/cas_mirror | support/cas-server-support-token-authentication/src/main/java/org/apereo/cas/config/TokenAuthenticationConfiguration.java | Java | apache-2.0 | 2,931 |
/*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | apc999/alluxio | core/server/worker/src/main/java/alluxio/worker/netty/RPCHandler.java | Java | apache-2.0 | 3,432 |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/native_viewport/onscreen_context_provider.h"
#include "components/gles2/command_buffer_driver.h"
#include "components/gles2/command_... | guorendong/iridium-browser-ubuntu | components/native_viewport/onscreen_context_provider.cc | C++ | bsd-3-clause | 1,932 |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/android/net/external_estimate_provider_android.h"
#include <stdint.h>
#include "base/time/time.h"
#include "net/base/network_qu... | CapOM/ChromiumGStreamerBackend | chrome/browser/android/net/external_estimate_provider_android_unittest.cc | C++ | bsd-3-clause | 2,684 |
package com.ericsson.research.trap;
/*
* ##_BEGIN_LICENSE_##
* Transport Abstraction Package (trap)
* ----------
* Copyright (C) 2014 Ericsson AB
* ----------
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
*... | meledin/trap | trap-core/src/test/java/com/ericsson/research/trap/TrapFactoryTest.java | Java | bsd-3-clause | 8,058 |
/* Main interface for GDB, the GNU debugger.
Copyright (C) 2002-2020 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either v... | mattstock/binutils-bexkat1 | gdb/main.h | C | gpl-2.0 | 1,774 |
package org.molgenis.data.semanticsearch.service.impl;
import static java.util.Arrays.stream;
import static java.util.Objects.requireNonNull;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.u... | marieke-bijlsma/molgenis | molgenis-data-semanticsearch/src/main/java/org/molgenis/data/semanticsearch/service/impl/SemanticSearchServiceHelper.java | Java | lgpl-3.0 | 10,820 |
package org.molgenis.api.permissions.model.response;
import static com.google.common.base.Strings.isNullOrEmpty;
import com.google.auto.value.AutoValue;
import com.google.common.base.Strings;
import java.util.Set;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
import org.molgenis.gson.AutoGso... | sidohaakma/molgenis | molgenis-api-permissions/src/main/java/org/molgenis/api/permissions/model/response/LabelledPermissionResponse.java | Java | lgpl-3.0 | 2,778 |
/*******************************************************************************
* Copyright (c) 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | chanakaudaya/developer-studio | bps/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/properties/CorrSetImplSection.java | Java | apache-2.0 | 13,520 |
package org.apereo.cas.monitor.config;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.mongo.MongoDbConnectionFactory;
import org.apereo.cas.monitor.MongoDbHealthIndicator;
import lombok.val;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.bean... | fogbeam/cas_mirror | support/cas-server-support-mongo-monitor/src/main/java/org/apereo/cas/monitor/config/MongoDbMonitoringConfiguration.java | Java | apache-2.0 | 2,230 |
/*
* (c) Copyright Christian P. Fries, Germany. All rights reserved. Contact: email@christian-fries.de.
*
* Created on 10.02.2004
*/
package net.finmath.montecarlo;
import java.text.DecimalFormat;
import org.junit.Assert;
import org.junit.Test;
import net.finmath.functions.JarqueBeraTest;
import net.finmath.stoc... | NiklasRodi/finmath-lib | src/test/java6/net/finmath/montecarlo/BrownianMotionTest.java | Java | apache-2.0 | 6,128 |
/*
* 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 ... | milleruntime/accumulo | core/src/test/java/org/apache/accumulo/core/conf/SiteConfigurationTest.java | Java | apache-2.0 | 4,260 |
/*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.spec.testgen.declcontexts.gosuinterface;
import gw.spec.testgen.AccessModifier;
import gw.spec.testgen.ClassFileGenerator;
import gw.spec.testgen.CodeGenerationContext;
import gw.spec.testgen.DeclarationContext;
import gw.spec.testgen.Member;
import gw.spec... | gosu-lang/gosu-lang | gosu-test/src/test/java/gw/spec/testgen/declcontexts/gosuinterface/GosuInterfaceImplementorDeclarationContext.java | Java | apache-2.0 | 2,201 |
/* 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
* distributed... | AlexMinsk/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/AbstractInstantiationCmd.java | Java | apache-2.0 | 15,909 |
/*
* Copyright 2000-2010 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... | android-ia/platform_tools_idea | platform/platform-impl/src/com/intellij/openapi/diff/impl/util/TextDiffType.java | Java | apache-2.0 | 7,156 |
/*
* 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... | Sethtroll/runelite | cache-updater/src/main/java/net/runelite/cache/updater/CacheStorage.java | Java | bsd-2-clause | 4,633 |
/**
* @author mrdoob / http://mrdoob.com/
*/
Sidebar.Geometry.CylinderGeometry = function ( editor, object ) {
var strings = editor.strings;
var signals = editor.signals;
var container = new UI.Row();
var geometry = object.geometry;
var parameters = geometry.parameters;
// radiusTop
var radiusTopRow = n... | sherousee/three.js | editor/js/Sidebar.Geometry.CylinderGeometry.js | JavaScript | mit | 2,685 |
/**
* ***************************************************************************** Copyright (c) 2007,
* 2011 IBM Corporation and others. All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 which accompanies this
* distribution, a... | sleshchenko/che | plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/ClasspathChange.java | Java | epl-1.0 | 4,408 |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RRunjags(RPackage):
"""Interface Utilities, Model Templates, Parallel Computing Methods an... | LLNL/spack | var/spack/repos/builtin/packages/r-runjags/package.py | Python | lgpl-2.1 | 1,418 |
/*
* 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 ... | hongyuhong/flink | flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/metrics/MetricFetcherTest.java | Java | apache-2.0 | 10,331 |
/*
* Copyright 2000-2013 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... | liveqmock/platform-tools-idea | xml/impl/src/com/intellij/lang/html/structureView/Html5SectionTreeElement.java | Java | apache-2.0 | 2,216 |
/*
* 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... | GlenRSmith/elasticsearch | server/src/main/java/org/elasticsearch/rest/action/admin/cluster/RestCancelTasksAction.java | Java | apache-2.0 | 2,749 |
/*================================================================================
Copyright (c) 2013 Steve Jin. 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 re... | yavijava/yavijava | src/main/java/com/vmware/vim25/ArrayOfHostFileSystemMountInfo.java | Java | bsd-3-clause | 2,266 |
/**
* 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... | genericDataCompany/hsandbox | common/mahout-distribution-0.7-hadoop1/integration/src/test/java/org/apache/mahout/clustering/cdbw/TestCDbwEvaluator.java | Java | apache-2.0 | 18,782 |
/**
* 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... | ultratendency/hbase | hbase-procedure/src/test/java/org/apache/hadoop/hbase/procedure2/TestRemoteProcedureDispatcherUncaughtExceptionHandler.java | Java | apache-2.0 | 4,078 |
/**
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.service;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.Exec... | codeaudit/OG-Platform | projects/OG-Core/src/main/java/com/opengamma/service/ServiceContextAwareExecutorService.java | Java | apache-2.0 | 5,468 |
#
# This file is part of pyasn1-modules software.
#
# Created by Russ Housley with assistance from asn1ate v.0.6.0.
#
# Copyright (c) 2019, Vigil Security, LLC
# License: http://snmplabs.com/pyasn1/license.html
#
# CMS Firmware Wrapper
#
# ASN.1 source from:
# https://www.rfc-editor.org/rfc/rfc4108.txt
#
from pyasn1.... | catapult-project/catapult | third_party/pyasn1_modules/pyasn1_modules/rfc4108.py | Python | bsd-3-clause | 8,709 |
package aima.gui.demo.search;
import aima.core.environment.tictactoe.TicTacToeGame;
import aima.core.environment.tictactoe.TicTacToeState;
import aima.core.search.adversarial.AdversarialSearch;
import aima.core.search.adversarial.AlphaBetaSearch;
import aima.core.search.adversarial.MinimaxSearch;
import aima.co... | futuristixa/aima-java | aima-gui/src/main/java/aima/gui/demo/search/TicTacToeDemo.java | Java | mit | 1,887 |
/*
Copyright 2005-2014 Intel Corporation. All Rights Reserved.
This file is part of Threading Building Blocks. Threading Building Blocks is free software;
you can redistribute it and/or modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundat... | rutgers-apl/Atomicity-Violation-Detector | tbb-lib/examples/parallel_for/tachyon/src/ppm.h | C | gpl-2.0 | 3,341 |
/*
* 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 | server/sonar-server/src/test/java/org/sonar/server/platform/ViewsIntegrationTest.java | Java | lgpl-3.0 | 3,478 |
/*
* 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... | haozhun/presto | presto-main/src/main/java/com/facebook/presto/sql/planner/plan/IndexSourceNode.java | Java | apache-2.0 | 4,797 |
/*
* Copyright Terracotta, 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 ... | mingyaaaa/ehcache3 | 107/src/main/java/org/ehcache/jsr107/Eh107ReverseConfiguration.java | Java | apache-2.0 | 3,033 |
/**
* 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... | WANdisco/amplab-hive | ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFOPDivide.java | Java | apache-2.0 | 5,296 |
/**
* 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... | dennishuo/hadoop | hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/store/TestStateStoreRouterState.java | Java | apache-2.0 | 7,445 |
/* Native-dependent code for FreeBSD.
Copyright (C) 2004-2014 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version ... | zxombie/aarch64-freebsd-binutils | gdb/fbsd-nat.h | C | gpl-2.0 | 1,405 |
/*-------------------------------------------------------------------------
*
* cdbpersistentrelation.c
*
* Copyright (c) 2013-2014, Pivotal Software Inc.
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "access/xlogmm.h"
#include "cdb/cdbpersistent... | hornn/interviews | src/backend/cdb/cdbpersistentrelation.c | C | apache-2.0 | 30,441 |
package opentracing
import (
"encoding/base64"
"strings"
"github.com/opentracing/opentracing-go"
"github.com/opentracing/opentracing-go/ext"
"golang.org/x/net/context"
"google.golang.org/grpc/metadata"
"github.com/go-kit/kit/log"
)
// ToGRPCRequest returns a grpc RequestFunc that injects an OpenTracing Span
... | pinterb/armor | vendor/github.com/go-kit/kit/tracing/opentracing/grpc.go | GO | apache-2.0 | 2,388 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | jamezp/wildfly-core | patching/src/test/java/org/jboss/as/patching/tests/AbstractPatchTestBuilder.java | Java | lgpl-2.1 | 6,724 |
/*
Copyright 2019 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, ... | pweil-/origin | vendor/k8s.io/kubernetes/pkg/kubelet/cm/topologymanager/policy_none.go | GO | apache-2.0 | 1,226 |
/*
* Copyright 2000-2013 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... | jk1/intellij-community | plugins/javaFX/src/org/jetbrains/plugins/javaFX/codeInsight/JavaFxGetterSetterPrototypeProvider.java | Java | apache-2.0 | 5,527 |
/*
* 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 | server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestIndexDeleteAliasesAction.java | Java | apache-2.0 | 2,160 |
// Copyright (C) 2013 The Android Open Source Project
//
// 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 ... | netroby/gerrit | gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/project/ListChildProjectsIT.java | Java | apache-2.0 | 2,500 |
// 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 "storage/browser/fileapi/sandbox_file_system_backend.h"
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/bind.h"
#i... | danakj/chromium | storage/browser/fileapi/sandbox_file_system_backend.cc | C++ | bsd-3-clause | 6,129 |
/*
* 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... | siosio/intellij-community | platform/smRunner/src/com/intellij/execution/testframework/sm/ServiceMessageBuilder.java | Java | apache-2.0 | 3,093 |
/*
This file is part of Darling.
Copyright (C) 2013 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distr... | lebauce/darling | src/CoreServices/CoreEndian.h | C | gpl-3.0 | 2,703 |
/*!
* Copyright 2010 - 2016 Pentaho 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 requi... | AliaksandrShuhayeu/pentaho-kettle | plugins/pur/core/src/test/java/org/pentaho/di/repository/pur/PurRepository_Revisions_IT.java | Java | apache-2.0 | 6,398 |
/*
* 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... | siosio/intellij-community | java/java-impl/src/com/intellij/psi/filters/PsiMethodCallFilter.java | Java | apache-2.0 | 2,137 |
package com.ugurcan.springdemo.mvc;
import javax.servlet.http.HttpServletRequest;
import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annot... | ugurcancetin/Spring-Training | 38-Spring-MVC-Demo-Hibernate-Validation-CustomValidation/src/com/ugurcan/springdemo/mvc/HelloWorldController.java | Java | apache-2.0 | 1,634 |
/**
* 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... | ronny-macmaster/hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmnode/RMNodeStatusEvent.java | Java | apache-2.0 | 3,677 |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | mangeshpardeshiyahoo/druid | indexing-hadoop/src/test/java/io/druid/indexer/SortableBytesTest.java | Java | apache-2.0 | 4,430 |
/**
* 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... | songweijia/fffs | sources/hadoop-2.4.1-src/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/dao/ContainerInfo.java | Java | apache-2.0 | 3,949 |
/*
* 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 ... | yew1eb/flink | flink-optimizer/src/main/java/org/apache/flink/optimizer/dag/BinaryUnionNode.java | Java | apache-2.0 | 13,944 |
/*
* Copyright 2000-2016 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... | paplorinc/intellij-community | platform/dvcs-impl/src/com/intellij/dvcs/branch/BranchStorage.java | Java | apache-2.0 | 2,467 |
/*
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, ... | linzhaoming/origin | vendor/k8s.io/kubernetes/pkg/util/node/node.go | GO | apache-2.0 | 6,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/browser/notifications/balloon_notification_ui_manager.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "bas... | aospx-kitkat/platform_external_chromium_org | chrome/browser/notifications/balloon_notification_ui_manager.cc | C++ | bsd-3-clause | 6,371 |
/*
* KINGSTAR MEDIA SOLUTIONS Co.,LTD. Copyright c 2005-2013. All rights reserved.
*
* This source code is the property of KINGSTAR MEDIA SOLUTIONS LTD. It is intended
* only for the use of KINGSTAR MEDIA application development. Reengineering, reproduction
* arose from modification of the original source, or othe... | nesta97432/weixin-java-tools | weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpMassNewsGsonAdapter.java | Java | apache-2.0 | 1,962 |
/*
Copyright 2018 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, ... | sferich888/origin | vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook.go | GO | apache-2.0 | 6,679 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_resource_protocols.h"
#include "base/files/file_path.h"
#include "base/memory/weak_ptr.h"
#include "bas... | guorendong/iridium-browser-ubuntu | chrome/browser/extensions/extension_resource_protocols.cc | C++ | bsd-3-clause | 3,262 |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromecast/browser/media/cast_media_client_android.h"
#include "chromecast/media/base/key_systems_common.h"
namespace chromecast {
namespace m... | Teamxrtc/webrtc-streaming-node | third_party/webrtc/src/chromium/src/chromecast/browser/media/cast_media_client_android.cc | C++ | mit | 1,254 |
/*
Copyright 2014 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | haohonglin/kubernetes | pkg/client/conditions.go | GO | apache-2.0 | 1,222 |
// Reflect.deleteMetadata ( metadataKey, target [, propertyKey] )
// - https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#reflectdeletemetadata--metadatakey-target--propertykey-
require("../../Reflect");
var assert = require("assert");
function ReflectDeleteMetadataInvalidTarget() {
as... | lastmjs/asl-fingerspelling-2 | www/node_modules/reflect-metadata/temp/test/reflect/reflect-deletemetadata.js | JavaScript | mit | 2,038 |
// This project requires the v13 support library.
// See http://developer.android.com/tools/support-library/setup.html for more information
package course.examples.ui.viewpager;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
public class GalleryWithViewPagerActivit... | antoniobustorff/coursera-android-examples | catalog/UIViewPager/src/main/java/course/examples/ui/viewpager/GalleryWithViewPagerActivity.java | Java | mit | 925 |
/*
Copyright 2019 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, ... | pweil-/origin | vendor/k8s.io/kubernetes/pkg/controller/volume/attachdetach/config/types.go | GO | apache-2.0 | 1,261 |
/*
Copyright 2015 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | rhuss/gofabric8 | vendor/k8s.io/kubernetes/pkg/kubelet/types/types.go | GO | apache-2.0 | 2,270 |
/*
Copyright 2015 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | socaa/kubernetes | pkg/registry/componentstatus/rest.go | GO | apache-2.0 | 2,899 |
#ifndef __LINUX_USB_USB_WWAN
#define __LINUX_USB_USB_WWAN
extern void usb_wwan_dtr_rts(struct usb_serial_port *port, int on);
extern int usb_wwan_open(struct tty_struct *tty, struct usb_serial_port *port);
extern void usb_wwan_close(struct usb_serial_port *port);
extern int usb_wwan_startup(struct usb_serial *serial)... | Red680812/android_442_KitKat_kernel_htc_dlxub1 | drivers/usb/serial/usb-wwan.h | C | gpl-2.0 | 2,142 |
/*
* Copyright © 2016 <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | io7m/r2 | com.io7m.r2.shaders.light/src/main/java/com/io7m/r2/shaders/light/R2LightShaderSphericalLambertPhongSingle.java | Java | isc | 12,480 |
// /**
// * Created by preciousr on 07/01/2016.
// */
// module.exports = {
require('dotenv').config()
var cookiedomain = JSON.parse(process.env.COOKIEDOMAIN);
var sequelizeusers = JSON.parse(process.env.SEQUELIZEUSERS);
var servicesequelize = JSON.parse(process.env.SERVICESEQUELIZE);
var applicationserviceurl = JS... | UKForeignOffice/loi-user-service | config/environment.js | JavaScript | mit | 2,145 |
package org.knowm.xchange.independentreserve.service;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Date;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.Order;
import org.knowm.xchange.independentreserve.IndependentReserveAut... | gaborkolozsy/XChange | xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/service/IndependentReserveTradeServiceRaw.java | Java | mit | 7,886 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.