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 |
|---|---|---|---|---|---|
/*
* 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 ... | dlnufox/ignite | modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtAffinityAssignmentResponse.java | Java | apache-2.0 | 6,291 |
/*
* Copyright 2002-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... | kazuki43zoo/spring-security | config/src/main/java/org/springframework/security/config/websocket/WebSocketMessageBrokerSecurityBeanDefinitionParser.java | Java | apache-2.0 | 15,241 |
package net.mgsx.game.core.binding;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.Group;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.ObjectMap;
import com.badlogic.gdx.utils.ObjectMap.Entry;
public class Bindin... | mgsx-dev/gdx-kit | core/src/net/mgsx/game/core/binding/BindingManager.java | Java | apache-2.0 | 1,782 |
/*
* Copyright (C) 2008 ZXing 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 agr... | peterdocter/zxing | android/src/com/google/zxing/client/android/share/ShareActivity.java | Java | apache-2.0 | 11,036 |
package org.ektorp.impl;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.ektorp.DbAccessException;
import org.ekto... | JMaltat/fragaria-ektorp | org.ektorp/src/main/java/org/ektorp/impl/DocIdResponseHandler.java | Java | apache-2.0 | 1,471 |
/**
* Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | locationtech/geowave | core/geotime/src/main/java/org/locationtech/geowave/core/geotime/adapter/SpatialFieldDescriptorBuilder.java | Java | apache-2.0 | 2,649 |
/*
* 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 under t... | xasx/assertj-core | src/main/java/org/assertj/core/api/ProxyableMapAssert.java | Java | apache-2.0 | 1,243 |
// This is a generated file. Not intended for manual editing.
package org.mule.tooling.lang.dw.parser.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface WeaveOutputDirective extends WeaveDirective {
@Nullable
WeaveDataType getDataType();
@Nulla... | machaval/mule-intellij-plugins | data-weave-plugin/src/main/gen/org/mule/tooling/lang/dw/parser/psi/WeaveOutputDirective.java | Java | apache-2.0 | 356 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Jo... | huluwa/superjokes | src/Joke.Data/Properties/AssemblyInfo.cs | C# | apache-2.0 | 1,394 |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright [2010] [Anso Labs, LLC]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | movmov/cc | nova/objectstore/image.py | Python | apache-2.0 | 6,265 |
using Cirrious.CrossCore.Plugins;
namespace AzureAccessControl.Sample.Droid.Bootstrap
{
public class VisibilityPluginBootstrap
: MvxPluginBootstrapAction<Cirrious.MvvmCross.Plugins.Visibility.PluginLoader>
{
}
} | softlion/Cheesebaron.MvxPlugins | Samples/AzureAccessControl.Sample.Droid/Bootstrap/VisibilityPluginBootstrap.cs | C# | apache-2.0 | 232 |
/*
* Copyright 2016-2020 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
*
* Unles... | jeffgbutler/mybatis-qbe | src/test/java/examples/springbatch/paging/PagingReaderBatchConfiguration.java | Java | apache-2.0 | 5,674 |
/*
* Copyright 2010-2016 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 "l... | nterry/aws-sdk-java | aws-java-sdk-datapipeline/src/main/java/com/amazonaws/services/datapipeline/model/transform/SetStatusRequestMarshaller.java | Java | apache-2.0 | 3,921 |
/*
* 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 ... | Fabryprog/camel | core/camel-base/src/main/java/org/apache/camel/processor/Pipeline.java | Java | apache-2.0 | 6,742 |
/*
* 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 ... | StyleTang/incubator-rocketmq-externals | rocketmq-flink/src/main/java/org/apache/rocketmq/flink/source/reader/deserializer/BytesMessage.java | Java | apache-2.0 | 1,571 |
//===--- LookupVisibleDecls - Swift Name Lookup Routines ------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | OscarSwanros/swift | lib/AST/LookupVisibleDecls.cpp | C++ | apache-2.0 | 36,523 |
#
# Author:: Panagiotis Papadomitsos (<pj@ezgr.net>)
#
# Cookbook Name:: php
# Recipe:: module_common
#
# Copyright 2009-2011, Opscode, 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
#... | VladimirTS/chef-php | recipes/module_common.rb | Ruby | apache-2.0 | 1,074 |
/*
* 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 ... | ServiceComb/java-chassis | demo/demo-jaxrs/jaxrs-server/src/main/java/org/apache/servicecomb/demo/jaxrs/server/beanParam/TestBeanParameterWithUpload.java | Java | apache-2.0 | 1,712 |
'use strict';
angular.module('publisherApp')
.factory('Register', function ($resource) {
return $resource('api/register', {}, {
});
});
| GIP-RECIA/esup-publisher-ui | src/main/webapp/scripts/components/auth/services/register.service.js | JavaScript | apache-2.0 | 163 |
/*
Copyright 2009 Ramnivas Laddad
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 writin... | sobkowiak/aspectj-in-action-code | ch02/workspace/Section2.6AspectJSpringIntegration/src/main/java/ajia/main/Main.java | Java | apache-2.0 | 1,245 |
/*
* 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/geronimo-yoko | yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectorSeqHolder.java | Java | apache-2.0 | 1,507 |
/*
* Copyright 2015 Open Networking Laboratory
*
* 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 la... | rvhub/onos | core/net/src/main/java/org/onosproject/app/impl/ApplicationManager.java | Java | apache-2.0 | 8,584 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/datafactoryManagement/lib/models/responsysObjectDataset.js | JavaScript | apache-2.0 | 3,288 |
/**
* 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 m... | apache/santuario-java | src/main/java/org/apache/xml/security/stax/impl/processor/output/AbstractSignatureOutputProcessor.java | Java | apache-2.0 | 14,441 |
/**
* @license
* 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
*/
CLASS({
pack... | mdittmer/foam | js/foam/ui/md/SectionView.js | JavaScript | apache-2.0 | 3,734 |
package threadmanagement.join;
import java.util.Date;
import java.util.concurrent.TimeUnit;
/**
* 功能:
* 作者: ldl
* 时间: 2016-07-29 17:51
*/
public class DataSourcesLoader implements Runnable {
@Override
public void run() {
System.out.printf("开始加载资源: %s\n", new Date());
try {
Ti... | wsldl123292/testeveryting | concurrency/src/main/java/threadmanagement/join/DataSourcesLoader.java | Java | apache-2.0 | 532 |
/*
* 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... | StefanoRaggi/Lean | ToolBox/Polygon/PolygonDownloaderProgram.cs | C# | apache-2.0 | 4,321 |
package com.zhaidaosi.game.jgframework.common.queue;
/**
* 可快速定位的FIFO队列
*/
public class BaseQueue<E> {
private BaseQueueElement<E> start = null;
private BaseQueueElement<E> end = null;
private Object lock = new Object();
private long putCount = 0;
private long takeCount = 0;
private long siz... | tempbottle/JgFramework | src/main/java/com/zhaidaosi/game/jgframework/common/queue/BaseQueue.java | Java | apache-2.0 | 4,050 |
/************************************************
* *
* Node.js v0.8.8 API *
* *
************************************************/
/************************************************
* ... | jonathanmarvens/typescript | samples/node/node.d.ts | TypeScript | apache-2.0 | 45,576 |
/**
* 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 u... | apache/manifoldcf | connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java | Java | apache-2.0 | 211,260 |
# 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 under the... | alexpilotti/python-keystoneclient | keystoneclient/v3/contrib/oauth1/request_tokens.py | Python | apache-2.0 | 2,659 |
public class Tetrahedron extends ThreeDimensionalShapes {
public Tetrahedron ( double s) { super ( s ); }
@Override
public double areaOf3DShapes ( ){
return Math.sqrt(3) * getSide() * getSide();
}
@Override
public double volumeOf3DShapes(){
return (Math.pow(getSide(),3))/ ( 6 ... | Kinza59/educate-for-oop | java/book-dietel/kinza/10_9_h_Tetrahedron.java | Java | apache-2.0 | 453 |
/*
* 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/pdfbox | examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateRadioButtons.java | Java | apache-2.0 | 8,207 |
/*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | google/auto | value/src/test/java/com/google/auto/value/processor/AutoValueCompilationTest.java | Java | apache-2.0 | 139,312 |
//
// Copyright 2011 Ekon Benefits
//
// 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... | curit/dynamitey | Dynamitey/Internal/Optimization/InvokeHelper.cs | C# | apache-2.0 | 42,310 |
/*
* Copyright 2010-2016 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 "l... | flofreud/aws-sdk-java | aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/ReEncryptResult.java | Java | apache-2.0 | 8,596 |
define(["jquery", "bootstrap", "d3","jnj_chart", "ohdsi_common", "datatables", "datatables-colvis", "colorbrewer", "tabletools"],
function ($, bootstrap, d3, jnj_chart, common, DataTables, DataTablesColvis, colorbrewer, TableTools) {
function ObservationsRenderer() {}
ObservationsRenderer.prototype... | OHDSI/Olympus | src/main/webapp/Heracles/src/js/charts/observations.js | JavaScript | apache-2.0 | 25,745 |
import responses
import unittest
from unittest import skipIf
from unittest.mock import mock_open, patch, ANY, call
from docopt import docopt, DocoptExit
from io import StringIO
from collections import OrderedDict
import sys
import nio_cli.cli as cli
from nio_cli.commands.base import Base
from nio.block.terminals impor... | nioinnovation/nio-cli | tests/test_cli.py | Python | apache-2.0 | 27,669 |
using System;
using System.ComponentModel.Composition;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using EnvDTE;
using EnvDTE80;
using Microsoft.VisualStudio.ComponentModelHost;
namespace NuGet.VisualStudio
{
[Export(typeof(IFileSystemProvider))]
public class VsFileSystemProvider : IF... | mdavid/nuget | src/VisualStudio/VsFileSystemProvider.cs | C# | apache-2.0 | 3,640 |
require 'spec_helper'
describe 'duplicity::profile' do
let(:title) { 'default' }
let(:facts) { {:concat_basedir => '/path/to/dir'} }
let(:default_config_file) { '/etc/duply/default/conf' }
let(:default_filelist) { '/etc/duply/default/exclude' }
describe 'by default' do
let(:params) { {} }
it {
... | adamcrews/puppet-duplicity | spec/defines/profile_spec.rb | Ruby | apache-2.0 | 10,421 |
/*
* 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 ... | vlsi/calcite | core/src/main/java/org/apache/calcite/prepare/RelOptTableImpl.java | Java | apache-2.0 | 17,920 |
/**
* Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | locationtech/geowave | core/store/src/main/java/org/locationtech/geowave/core/store/memory/MemoryAdapterStore.java | Java | apache-2.0 | 3,177 |
/*******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2012 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the ... | lihongqiang/kettle-4.4.0-stable | src/org/pentaho/di/trans/steps/metainject/MetaInjectMeta.java | Java | apache-2.0 | 16,453 |
/*
* Copyright (C) 2011 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... | android-art-intel/marshmallow | art-extension/runtime/arch/instruction_set.cc | C++ | apache-2.0 | 4,097 |
/**
* Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | locationtech/geowave | extensions/cli/sentinel2/src/main/java/org/locationtech/geowave/format/sentinel2/theia/TheiaImageryProvider.java | Java | apache-2.0 | 17,063 |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | Simran-B/arangodb | arangod/VocBase/Methods/UpgradeTasks.cpp | C++ | apache-2.0 | 23,269 |
/*
* 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... | snorden/parquet-mr-apache-parquet-1.7.0 | parquet-hadoop/src/test/java/org/apache/parquet/hadoop/TestParquetFileWriter.java | Java | apache-2.0 | 21,679 |
using Lucene.Net.Queries;
using Lucene.Net.Search;
using Lucene.Net.Spatial.Prefix.Tree;
using Lucene.Net.Spatial.Queries;
using Lucene.Net.Util;
using Spatial4n.Shapes;
using System;
using System.Collections.Generic;
namespace Lucene.Net.Spatial.Prefix
{
/*
* Licensed to the Apache Software Foundation (ASF)... | apache/lucenenet | src/Lucene.Net.Spatial/Prefix/TermQueryPrefixTreeStrategy.cs | C# | apache-2.0 | 2,939 |
/*
* Swift Parallel Scripting Language (http://swift-lang.org)
* Code from Java CoG Kit Project (see notice below) with modifications.
*
* Copyright 2005-2014 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... | swift-lang/swift-k | src/org/griphyn/vdl/karajan/monitor/processors/coasters/WorkerActiveProcessor.java | Java | apache-2.0 | 2,365 |
package org.mindinformatics.gwt.domeo.client.ui.annotation.forms;
/**
* @author Paolo Ciccarese <paolo.ciccarese@gmail.com>
*/
public interface IAllowsMultipleTargets {
}
| rkboyce/DomeoClient | src/org/mindinformatics/gwt/domeo/client/ui/annotation/forms/IAllowsMultipleTargets.java | Java | apache-2.0 | 175 |
/*global require*/
'use strict';
// Require.js allows us to configure shortcut alias
require.config({
// The shim config allows us to configure dependencies for
// scripts that do not call define() to register a module
shim: {
underscore: {
exports: '_'
},
backbone: {
deps: [
'underscore',
'jque... | jiangjianqing/flow-demo | activiti/activiti5.springmvc/src/main/webapp/app/main.js | JavaScript | apache-2.0 | 867 |
package org.apache.lucene.search.suggest.analyzing;
/*
* 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 Apa... | smartan/lucene | src/main/java/org/apache/lucene/search/suggest/analyzing/BlendedInfixSuggester.java | Java | apache-2.0 | 9,762 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.fieldsConflictMessage = fieldsConflictMessage;
exports.OverlappingFieldsCanBeMerged = OverlappingFieldsCanBeMerged;
var _error = require('../../error');
var _find = require('../../jsutils/find');
var _find2 = _interopRequireDefau... | Khan/khan-linter | node_modules/graphql/validation/rules/OverlappingFieldsCanBeMerged.js | JavaScript | apache-2.0 | 25,753 |
/*
* Copyright 2010-2017 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 "license" fil... | chiaming0914/awe-cpp-sdk | aws-cpp-sdk-datapipeline/source/model/DescribeObjectsRequest.cpp | C++ | apache-2.0 | 2,056 |
// 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/common/resource_messages.h"
#include "net/base/load_timing_info.h"
#include "net/http/http_response_headers.h"
#include "webkit/glu... | plxaye/chromium | src/content/common/resource_messages.cc | C++ | apache-2.0 | 9,210 |
/*
* #%L
* SparkCommerce Framework
* %%
* Copyright (C) 2009 - 2013 Spark Commerce
* %%
* 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... | akdasari/SparkCore | spark-framework/src/main/java/org/sparkcommerce/core/util/domain/CodeType.java | Java | apache-2.0 | 1,219 |
#include "search/geometry_utils.hpp"
#include "indexer/scales.hpp"
#include "geometry/mercator.hpp"
namespace search
{
double PointDistance(m2::PointD const & a, m2::PointD const & b)
{
return MercatorBounds::DistanceOnEarth(a, b);
}
bool IsEqualMercator(m2::RectD const & r1, m2::RectD const & r2, double eps)
{
... | VladiMihaylenko/omim | search/geometry_utils.cpp | C++ | apache-2.0 | 384 |
// 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... | helifu/kudu | java/kudu-client/src/test/java/org/apache/kudu/client/TestPartitionPruner.java | Java | apache-2.0 | 35,532 |
package com.cronutils.model.time.generator;
import com.cronutils.model.field.expression.FieldExpression;
import org.apache.commons.lang3.Validate;
import java.util.List;
/*
* Copyright 2015 jmrozanec
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance ... | ucpwang/cron-utils | src/main/java/com/cronutils/model/time/generator/FieldValueGenerator.java | Java | apache-2.0 | 2,439 |
/*
* 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 ... | jerrinot/hazelcast | hazelcast/src/main/java/com/hazelcast/jet/impl/JobCoordinationService.java | Java | apache-2.0 | 58,765 |
package zktopo
import (
"encoding/json"
"path"
"strings"
"github.com/golang/protobuf/proto"
topodatapb "github.com/youtube/vitess/go/vt/proto/topodata"
vschemapb "github.com/youtube/vitess/go/vt/proto/vschema"
)
// This file contains utility functions to maintain backward compatibility
// with old-style non-B... | theskyinflames/bpulse-go-client | vendor/github.com/youtube/vitess/go/vt/zktopo/convert.go | GO | apache-2.0 | 2,481 |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include "base/os.h"
#include <boost/assign/list_of.hpp>
#include <cfg/cfg_init.h>
#include <cfg/cfg_interface.h>
#include <oper/operdb_init.h>
#include <controller/controller_init.h>
#include <controller/controller_ifmap.h>
#include <pkt/pkt_in... | tcpcloud/contrail-controller | src/vnsw/agent/test/test_vmport_cfg.cc | C++ | apache-2.0 | 59,044 |
/**
* @preserve Copyright 2012 Martijn van de Rijdt & Modilabs
*
* 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... | alxndrsn/enketo-core | src/widget/note/notewidget.js | JavaScript | apache-2.0 | 2,293 |
/*
* Copyright 2010-2016 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 "l... | flofreud/aws-sdk-java | aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/transform/GetFunctionConfigurationRequestMarshaller.java | Java | apache-2.0 | 3,688 |
/*
*
* Copyright 2012-2014 Eurocommercial Properties NV
*
*
* 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... | kigsmtua/estatio | estatioapp/fixture/src/main/java/org/estatio/fixture/party/PersonAbstract.java | Java | apache-2.0 | 3,768 |
package wtf.pants.stamp.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Pants
*
* Currently only works for methods
*/
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.M... | Pants/stamp-java-obfuscator | src/main/java/wtf/pants/stamp/annotations/StampPreserve.java | Java | apache-2.0 | 364 |
/*
* Copyright 2019, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
// Code generated by go generate; DO NOT EDIT.
package watchers
import (
"fmt"
tp "github.com/enmasseproject/enmasse/pkg/apis/enmasse/v1beta1"
cp "github.com/enmasseproj... | EnMasseProject/enmasse | pkg/consolegraphql/watchers/resource_watcher_addressspaceschema.go | GO | apache-2.0 | 7,437 |
/*
* SessionFitFunctionsPresentationView.java
*
* Copyright 2006-2015 James F. Bowring and www.Earth-Time.org
*
* 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.a... | clementparizot/ET_Redux | src/main/java/org/earthtime/Tripoli/dataViews/fitFunctionPresentationViews/SessionFitFunctionsPresentationView.java | Java | apache-2.0 | 2,640 |
// Copyright 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 "license" file acco... | swipely/amazon-ecs-agent | agent/taskresource/fsxwindowsfileserver/fsxwindowsfileserverstatus.go | GO | apache-2.0 | 2,717 |
package com.couchbase.lite;
import com.couchbase.lite.internal.RevisionInternal;
import com.couchbase.lite.mockserver.MockDispatcher;
import com.couchbase.lite.mockserver.MockHelper;
import com.couchbase.lite.replicator.Replication;
import com.couchbase.lite.support.FileDirUtils;
import com.couchbase.lite.support.Revi... | vladoatanasov/couchbase-lite-android | src/androidTest/java/com/couchbase/lite/DatabaseTest.java | Java | apache-2.0 | 8,892 |
package uk.ac.ebi.pride.psmindex.search.model;
import org.apache.solr.client.solrj.beans.Field;
import uk.ac.ebi.pride.archive.dataprovider.identification.ModificationProvider;
import uk.ac.ebi.pride.archive.dataprovider.identification.PeptideSequenceProvider;
import uk.ac.ebi.pride.archive.dataprovider.param.CvParamP... | PRIDE-Archive/psm-index-service | src/main/java/uk/ac/ebi/pride/psmindex/search/model/Psm.java | Java | apache-2.0 | 2,617 |
/*
* Copyright (C) 2015 Intel 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 required... | zhaobob/libyami | common/surfacepool.cpp | C++ | apache-2.0 | 2,169 |
package cn.itcast_05;
public class SetThread implements Runnable {
private Student s;
private int x = 0;
public SetThread(Student s) {
this.s = s;
}
@Override
public void run() {
while (true) {
synchronized (s) {
//判断有没有
if(s.flag){
try {
s.wait(); //t1等着,释放锁
} catch (Interrupte... | aircjm/JavaSeStudy | day24/code/day24_Thread/src/cn/itcast_05/SetThread.java | Java | apache-2.0 | 748 |
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Blockly module for Node. It includes Blockly core,
* built-in blocks, all the generators and the English locale.
*/
/* eslint-disable */
'use strict';
// Include the EN Locale by default.
Bloc... | google/blockly | scripts/package/node/index.js | JavaScript | apache-2.0 | 339 |
/*
* Copyright 2018 ImpactDevelopment
*
* 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... | ImpactDevelopment/ClientAPI | src/main/java/clientapi/gui/widget/data/DefaultWidgetAlignment.java | Java | apache-2.0 | 1,076 |
import { Component, Input } from '@angular/core';
import { User } from 'ngx-login-client';
@Component({
selector: 'f8-assignee',
templateUrl: './assignee.component.html',
styleUrls: ['./assignee.component.less'],
})
export class AssigneesComponent {
private assignees: User[] = [];
@Input() truncateAfter: nu... | fabric8-ui/fabric8-ui | packages/planner/src/app/components_ngrx/assignee/assignee.component.ts | TypeScript | apache-2.0 | 502 |
package gwt.material.design.client.ui.html;
/*
* #%L
* GwtBootstrap3
* %%
* Copyright (C) 2013 GwtBootstrap3
* %%
* 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... | GwtMaterialDesign/gwt-material | gwt-material/src/main/java/gwt/material/design/client/ui/html/Code.java | Java | apache-2.0 | 1,196 |
// 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 ... | jay-hodgson/SynapseWebClient | src/main/webapp/js/goog/ui/editor/toolbarcontroller.js | JavaScript | apache-2.0 | 9,007 |
/*
* Copyright (c) 2017. HSJ
*
* 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... | ShengJunHu/FastAndroid | library/common/src/main/java/com/hsj/common/rxbus/BusThead.java | Java | apache-2.0 | 1,429 |
/*
* 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... | DavesMan/guava | guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java | Java | apache-2.0 | 4,820 |
# -*- coding: utf-8 -*-
"""
CSS Selectors based on XPath
============================
This module supports selecting XML/HTML elements based on CSS selectors.
See the `CSSSelector` class for details.
:copyright: (c) 2007-2012 Ian Bicking and contributors.
See AUTHORS for more deta... | frvannes16/Cops-Robbers-Coding-Challenge | src/competition_code/libs/cssselect/__init__.py | Python | apache-2.0 | 639 |
// 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 System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection.PortableExecutable;
usin... | furesoft/roslyn | src/Compilers/Core/Portable/PEWriter/PeWriter.cs | C# | apache-2.0 | 69,905 |
package gr.forth.ics.graph.event;
public interface GraphListener extends NodeListener, EdgeListener {
}
| DimitrisAndreou/flexigraph | src/gr/forth/ics/graph/event/GraphListener.java | Java | apache-2.0 | 105 |
/*
* Copyright 2016-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | k21/buck | test/com/facebook/buck/rules/CachingBuildEngineFactory.java | Java | apache-2.0 | 6,351 |
package org.finos.waltz.integration_test.inmem.helpers;
import org.finos.waltz.model.EntityKind;
import org.finos.waltz.model.EntityReference;
import org.finos.waltz.model.Operation;
import org.finos.waltz.model.involvement.EntityInvolvementChangeCommand;
import org.finos.waltz.model.involvement.ImmutableEntityInvolve... | khartec/waltz | waltz-integration-test/src/test/java/org/finos/waltz/integration_test/inmem/helpers/InvolvementHelper.java | Java | apache-2.0 | 2,071 |
/**
* Copyright © 2012-2016 <a href="https://github.com/tlkzzz/jeesite">JeeSite</a> All rights reserved.
*/
package com.tlkzzz.jeesite.modules.sys.service;
import java.util.List;
import com.tlkzzz.jeesite.common.service.CrudService;
import com.tlkzzz.jeesite.common.utils.CacheUtils;
import com.tlkzzz.jeesite.m... | tlkzzz/xpjfx | src/main/java/com/tlkzzz/jeesite/modules/sys/service/DictService.java | Java | apache-2.0 | 1,144 |
/*
* 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 ... | trekawek/jackrabbit-oak | oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/PrincipalACLTest.java | Java | apache-2.0 | 4,767 |
/*
* Copyright 2000-2017 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... | apixandru/intellij-community | java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/inliner/CollectionFactoryInliner.java | Java | apache-2.0 | 3,317 |
/*
* Copyright (C) 2014 The Android Open Source Project
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Publi... | life-beam/j2objc | jre_emul/android/platform/libcore/ojluni/src/main/java/java/io/PrintStream.java | Java | apache-2.0 | 41,821 |
/*
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... | swagiaal/kubernetes | test/e2e/resource_usage_gatherer.go | GO | apache-2.0 | 7,581 |
/*
* Copyright 2010-2017 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 "license" fil... | cedral/aws-sdk-cpp | aws-cpp-sdk-clouddirectory/source/model/BatchUpdateObjectAttributesResponse.cpp | C++ | apache-2.0 | 1,706 |
package com.ctrip.zeus.task.clean;
import com.ctrip.zeus.clean.CleanDbManager;
import com.ctrip.zeus.task.AbstractTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
/**
* Created by fanqq on 2016/1/5.
*/
@Co... | sdgdsffdsfff/zeus | slb/src/main/java/com/ctrip/zeus/task/clean/CleanDbTask.java | Java | apache-2.0 | 1,085 |
/*
* Copyright (c) 2005-2010 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... | vorburger/mifos-head | application/src/test/java/org/mifos/domain/builders/ClientPersonalDetailDtoBuilder.java | Java | apache-2.0 | 1,421 |
/*
* Copyright 2021 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | marques-work/gocd | server/src/test-integration/java/com/thoughtworks/go/fixture/DatabaseDiskIsLow.java | Java | apache-2.0 | 1,397 |
/*
* 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 m... | apache/xalan-c | src/xalanc/XercesParserLiaison/Deprecated/XercesBridgeHelper.cpp | C++ | apache-2.0 | 4,549 |
/*
* Copyright 2010-2017 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 "license" fil... | cedral/aws-sdk-cpp | aws-cpp-sdk-ds/source/model/UpdateConditionalForwarderRequest.cpp | C++ | apache-2.0 | 2,001 |
/*
* Copyright 2017-present Open Networking 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/LICENSE-2.0
*
* Unless required by applicabl... | atomix/atomix | utils/src/main/java/io/atomix/utils/logging/DelegatingLogger.java | Java | apache-2.0 | 7,703 |
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.xiaomi.infra.galaxy.common.model;
import com.xiaomi.infra.galaxy.common.GalaxyClientException;
import com.xiaomi.infra.galaxy.common... | vishnudevk/MiBandDecompiled | Original Files/source/src/com/xiaomi/infra/galaxy/common/model/Condition.java | Java | apache-2.0 | 8,239 |
package com.marvinlabs.widget.progresspanel.demo;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import com.marvinlabs.widget.progresspanel.demo.R;
public class DemoListActivity extends FragmentActivity implements Demo... | 0359xiaodong/android-progress-panel | demo/src/main/java/com/marvinlabs/widget/progresspanel/demo/DemoListActivity.java | Java | apache-2.0 | 2,294 |
/*
* 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 under t... | googleapis/google-api-java-client-services | clients/google-api-services-containeranalysis/v1alpha1/1.31.0/com/google/api/services/containeranalysis/v1alpha1/model/Basis.java | Java | apache-2.0 | 2,988 |