code
stringlengths
3
1.04M
repo_name
stringlengths
5
109
path
stringlengths
6
306
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
3
1.04M
// 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...
GabrielBrascher/cloudstack
api/src/main/java/com/cloud/deploy/DeployDestination.java
Java
apache-2.0
5,276
/* * 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/sis
core/sis-feature/src/main/java/org/apache/sis/internal/coverage/j2d/ScaledColorSpace.java
Java
apache-2.0
8,084
package com.deliveredtechnologies.rulebook.lang; import com.deliveredtechnologies.rulebook.NameValueReferable; import com.deliveredtechnologies.rulebook.NameValueReferableMap; import com.deliveredtechnologies.rulebook.NameValueReferableTypeConvertibleMap; import com.deliveredtechnologies.rulebook.Result; import com.de...
Clayton7510/RuleBook
rulebook-core/src/test/java/com/deliveredtechnologies/rulebook/lang/SampleRuleWithFactAndResultTypes.java
Java
apache-2.0
2,073
/** * */ package com.github.nest.arcteryx.meta.beans.constraints; import java.util.Arrays; import com.github.nest.arcteryx.meta.beans.ConstraintApplyTo; import com.github.nest.arcteryx.meta.beans.annotation.Size; /** * size of collection or array.<br> * default value of {@linkplain #min} is 0, {@lin...
bradwoo8621/nest-old
arcteryx-meta-beans/src/main/java/com/github/nest/arcteryx/meta/beans/constraints/SizeConstraint.java
Java
apache-2.0
2,146
/* * Copyright (c) 2008-2016, 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 ...
hazelcast/hazelcast-simulator
simulator/src/main/java/com/hazelcast/simulator/worker/metronome/Metronome.java
Java
apache-2.0
1,212
package me.zsj.smile.utils; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; /** * Created by zsj on 2015/7/19 0019. */ public class NetUtils { public static boolean checkNet(Context context) { boolean mWifiConnected = isWifiConneted(context); ...
Assassinss/smile
src/main/java/me/zsj/smile/utils/NetUtils.java
Java
apache-2.0
1,308
/* * Copyright 2000-2012 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...
IllusionRom-deprecated/android_platform_tools_idea
plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/controlflow/NegatedEqualityExpressionInspection.java
Java
apache-2.0
4,357
/* * Copyright 2017 IBM 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 applicable law o...
JoshSharpe/java-sdk
examples/src/main/java/com/ibm/watson/developer_cloud/speech_to_text/v1/CustomizationExample.java
Java
apache-2.0
4,450
/* Generated by camel build tools - do NOT edit this file! */ package org.apache.camel.component.fhir; import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.spi.GeneratedPropertyConfigurer; import org.apache.camel.spi.PropertyConfigurerGetter; import org.apache.camel.util.CaseInsensitive...
adessaigne/camel
components/camel-fhir/camel-fhir-component/src/generated/java/org/apache/camel/component/fhir/FhirUpdateEndpointConfigurationConfigurer.java
Java
apache-2.0
11,436
package com.goodformentertainment.canary.frontier; public final class RegionUtil { public static final int BLOCKS_PER_CHUNK = 16; public static final int CHUNKS_PER_REGION = 32; public static final int BLOCKS_PER_REGION = CHUNKS_PER_REGION * BLOCKS_PER_CHUNK; // Region 0:0 = [0:0, 512:512) // Regi...
toddharrison/frontier
src/main/java/com/goodformentertainment/canary/frontier/RegionUtil.java
Java
apache-2.0
1,728
/* * 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...
coding0011/elasticsearch
server/src/main/java/org/elasticsearch/search/searchafter/SearchAfterBuilder.java
Java
apache-2.0
12,060
package edu.stanford.nlp.process.treebank; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.LineNumberReader; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util...
amark-india/eventspotter
src/edu/stanford/nlp/process/treebank/ConfigParser.java
Java
apache-2.0
10,977
/* * 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/logging-log4j2
log4j-api/src/test/java/org/apache/logging/log4j/LoggerSupplierTest.java
Java
apache-2.0
7,402
/* * 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/incubator-shardingsphere
shardingsphere-infra/shardingsphere-infra-binder/src/test/java/org/apache/shardingsphere/infra/binder/segment/select/projection/ProjectionsContextTest.java
Java
apache-2.0
7,196
/* * 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 ...
masaki-yamakawa/geode
geode-membership/src/main/java/org/apache/geode/distributed/internal/membership/gms/messages/InstallViewMessage.java
Java
apache-2.0
5,360
package org.pac4j.oidc.profile; import com.nimbusds.oauth2.sdk.Scope; import com.nimbusds.oauth2.sdk.token.BearerAccessToken; import org.apache.commons.lang3.SerializationUtils; import org.junit.Test; import org.pac4j.core.util.CommonHelper; /** * This class tests the serialization features for the {@link OidcProfil...
thesamet/pac4j
pac4j-oidc/src/test/java/org/pac4j/oidc/profile/TestOidcProfileSerialization.java
Java
apache-2.0
1,209
// Copyright 2014 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
gavares/bazel
src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandDispatcher.java
Java
apache-2.0
27,619
/* 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...
apache/cordova-plugin-media-capture
src/android/Capture.java
Java
apache-2.0
22,929
/* * Copyright 2012-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
lburgazzoli/spring-boot
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/testcontainers/RedisContainer.java
Java
apache-2.0
956
/* * 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/unneededThrows/RedundantThrowsDeclarationInspection.java
Java
apache-2.0
12,519
/* * 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/incubator-shardingsphere
shardingsphere-jdbc/shardingsphere-jdbc-core/src/main/java/org/apache/shardingsphere/driver/jdbc/core/datasource/ShardingSphereDataSource.java
Java
apache-2.0
6,056
/* * Autopsy Forensic Browser * * Copyright 2011-2017 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> 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...
millmanorama/autopsy
Core/src/org/sleuthkit/autopsy/directorytree/ExplorerNodeActionVisitor.java
Java
apache-2.0
7,833
package org.apache.lucene.facet.taxonomy.directory; import java.io.IOException; import org.apache.lucene.facet.taxonomy.ParallelTaxonomyArrays; import org.apache.lucene.facet.taxonomy.TaxonomyReader; import org.apache.lucene.index.CorruptIndexException; import org.apache.lucene.index.DocsAndPositionsEnum; import org....
visouza/solr-5.0.0
lucene/facet/src/java/org/apache/lucene/facet/taxonomy/directory/TaxonomyIndexArrays.java
Java
apache-2.0
8,056
/* * Copyright 2011 LMAX Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
lydonchandra/disruptor
src/perf/com/lmax/disruptor/support/LatencyStepEventHandler.java
Java
apache-2.0
1,911
/* * 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 ...
rvaleti/phoenix
phoenix-core/src/it/java/org/apache/phoenix/end2end/HashJoinMoreIT.java
Java
apache-2.0
34,761
// 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.rt.debugger.agent; import org.jetbrains.capture.org.objectweb.asm.*; import java.io.*; import java.lang.instrument.ClassFileTransformer; import java.lang.in...
allotria/intellij-community
java/debugger/debugger-agent/src/com/intellij/rt/debugger/agent/CaptureAgent.java
Java
apache-2.0
23,957
/* * 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...
s1monw/elasticsearch
server/src/test/java/org/elasticsearch/index/query/QueryStringQueryBuilderTests.java
Java
apache-2.0
55,659
/* * Copyright dmitry.zaicew@gmail.com Dmitry Zaitsev * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
gezihua/bosi-android
BosiChineseClass/src/com/bosi/chineseclass/han/view/CircleLayout.java
Java
apache-2.0
15,497
/****************************************************************** * * Copyright 2018 Samsung Electronics 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 * ...
iotivity/iotivity
test/src/automation/robot/device_lib/src/org/iotivity/test/rfw/common/devicecontroller/linux/LinuxNetworkController.java
Java
apache-2.0
3,582
/* * 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 ...
xiao-chen/hadoop
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/states/endpoint/HeartbeatEndpointTask.java
Java
apache-2.0
13,459
/* * Copyright (c) 2018 stnetix.com. 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 ...
vasap87/ariADDna
common-utils/src/test/java/com/stnetix/ariaddna/commonutils/datetime/DateTimeTest.java
Java
apache-2.0
1,987
/* * 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/tomcat
java/jakarta/el/StaticFieldELResolver.java
Java
apache-2.0
7,561
/* * Copyright 2015 JBoss 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 ...
padmaragl/drools-wb
drools-wb-screens/drools-wb-guided-dtable-editor/drools-wb-guided-dtable-editor-client/src/main/java/org/drools/workbench/screens/guided/dtable/client/widget/analysis/reporting/NoteBuilder.java
Java
apache-2.0
1,546
/* * Copyright (C) 2013-2017 microG Project Team * * 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 ...
microg/android_packages_apps_GmsCore
play-services-wearable-api/src/main/java/com/google/android/gms/wearable/internal/ChannelParcelable.java
Java
apache-2.0
1,339
/* * Copyright 2018, EnMasse authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.enmasse.systemtest; import io.vertx.core.Vertx; import io.vertx.core.VertxOptions; /** * Creates minimal vertx instances */ public class VertxFactory { publ...
EnMasseProject/enmasse
systemtests/src/main/java/io/enmasse/systemtest/VertxFactory.java
Java
apache-2.0
570
/* * 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/test/java/org/assertj/core/api/map/MapAssert_containsExactlyEntriesOf_Test.java
Java
apache-2.0
2,021
/** * $RCSfile$ * $Revision: $ * $Date: $ * * Copyright (C) 2005-2008 Jive Software. 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://...
coodeer/g3server
src/java/org/jivesoftware/util/cache/DefaultLocalCacheStrategy.java
Java
apache-2.0
5,384
/* 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...
tkaefer/camunda-bpm-platform
engine/src/test/java/org/camunda/bpm/engine/test/api/runtime/ExecutionQueryTest.java
Java
apache-2.0
54,598
/* * 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 ...
alibaba/weex
android/sdk/src/main/java/org/apache/weex/appfram/clipboard/IWXClipboard.java
Java
apache-2.0
1,119
/* * Copyright 2017 Realm 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 wr...
weiwenqiang/GitHub
expert/realm-java/library-benchmarks/src/androidTest/java/io/realm/benchmarks/entities/AllTypes.java
Java
apache-2.0
3,601
/* * 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 ...
ptupitsyn/ignite
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearAtomicCache.java
Java
apache-2.0
22,240
// ASM: a very small and fast Java bytecode manipulation framework // Copyright (c) 2000-2011 INRIA, France Telecom // 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 ...
drinkjava2/jBeanBox
jbeanbox/src/main/java/com/github/drinkjava2/asm/TypeReference.java
Java
apache-2.0
17,332
/* * 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 ...
heriram/incubator-asterixdb
hyracks-fullstack/hyracks/hyracks-maven-plugins/license-automation-plugin/src/main/java/org/apache/hyracks/maven/license/LicenseUtil.java
Java
apache-2.0
5,548
/* * Copyright 2011 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 re...
beav/netty-ant
src/main/java/org/jboss/netty/channel/ChannelHandler.java
Java
apache-2.0
8,836
/* * Copyright 2014 BrightTag, 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 applicabl...
signal/agathon
agathon-manager/src/main/java/com/brighttag/agathon/jmx/ScheduledServiceMBean.java
Java
apache-2.0
905
package com.ambergleam.android.photogallery; import android.app.Application; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.ConnectivityManager; import com.ambergleam.android.photogallery.manager.Broadcas...
rafaeltoledo/PhotoGalleryPlusPlus
app/src/main/java/com/ambergleam/android/photogallery/BaseApplication.java
Java
apache-2.0
2,143
package org.ovirt.engine.core.common.action; import java.io.Serializable; import javax.validation.constraints.NotNull; import org.ovirt.engine.core.common.businessentities.VmStatic; import org.ovirt.engine.core.compat.Guid; /** * Parameter class for AddVmFromSnapshot command */ public class AddVmFromSnapshotParam...
jbeecham/ovirt-engine
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/AddVmFromSnapshotParameters.java
Java
apache-2.0
1,130
package cn.xaut.shop.phoneAction; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.struts2.ServletActionContext; import org.springframework.beans.factory.annotation.Autowired; import cn.xaut....
wanliyang10010/Shop
src/cn/xaut/shop/phoneAction/GoodsActionPhone.java
Java
apache-2.0
9,840
/* * Copyright 2018 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...
etirelli/kie-wb-common
kie-wb-common-dmn/kie-wb-common-dmn-client/src/main/java/org/kie/workbench/common/dmn/client/widgets/grid/model/DMNSimpleGridColumn.java
Java
apache-2.0
2,297
/* * 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 ...
CasparLi/ftpserver
core/src/test/java/org/apache/ftpserver/clienttests/FtpMd5Test.java
Java
apache-2.0
6,352
package com.distimo.sdk; /** * Copyright (c) 2012 Distimo. 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 ...
platogo/DistimoSDK-PhoneGap-Plugin
src/android/Utils.java
Java
apache-2.0
4,850
/* * 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
config/config-api/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterialConfig.java
Java
apache-2.0
5,634
package com.mossle.disk.support; public class DiskInfoRequest { private String userId; private long folderCode; private String name; private long size; private String type; private boolean fileType; private String ref; public String getUserId() { return userId; } publi...
xuhuisheng/lemon
src/main/java/com/mossle/disk/support/DiskInfoRequest.java
Java
apache-2.0
1,219
/* * European Variation Archive (EVA) - Open-access database of all types of genetic * variation data from all species * * Copyright 2016 EMBL - European Bioinformatics Institute * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
EBIvariation/eva-ws
eva-server/src/test/java/uk/ac/ebi/eva/server/ws/RegionWSServerIntegrationTest.java
Java
apache-2.0
6,914
/** * 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...
sijie/incubator-distributedlog
distributedlog-core/src/test/java/org/apache/distributedlog/metadata/TestLogMetadata.java
Java
apache-2.0
2,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...
sijie/incubator-distributedlog
distributedlog-core/src/main/java/org/apache/distributedlog/zk/ZKWatcherManager.java
Java
apache-2.0
8,827
package com.nhl.link.move.unit.cayenne.t; import com.nhl.link.move.unit.cayenne.t.auto._Etl9t; public class Etl9t extends _Etl9t { private static final long serialVersionUID = 1L; }
atomashpolskiy/link-etl
link-move/src/test/java/com/nhl/link/move/unit/cayenne/t/Etl9t.java
Java
apache-2.0
191
package li.chee.reactive.plumber; import org.apache.commons.cli.*; import java.io.IOException; import java.net.URI; import java.nio.file.*; public class GraphGen { public static void main(String[] args) throws ParseException { Options opts = new Options(); opts.addOption(Option.builder("i").long...
lbovet/rx-plumber
reactive-plumber-core/src/main/java/li/chee/reactive/plumber/GraphGen.java
Java
apache-2.0
3,741
package forkjoin.cancle; import java.util.Random; /** * 功能: * 作者: ldl * 时间: 2016-08-05 22:29 */ public class ArrayGenerator { public int[] generateArray(int size){ int array[] = new int[size]; Random random = new Random(); for (int i = 0; i < size; i++) { array[i] = random...
wsldl123292/testeveryting
concurrency/src/main/java/forkjoin/cancle/ArrayGenerator.java
Java
apache-2.0
389
/* * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the...
kzganesan/PdfBox-Android
library/src/main/java/org/apache/javax/imageio/stream/MemoryCacheImageInputStream.java
Java
apache-2.0
5,077
/* * 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 ...
yanzhijun/jclouds-aliyun
apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/options/ListOptionsTest.java
Java
apache-2.0
1,865
package com.fanwu.chat.utils; import android.content.Intent; import com.fanwu.chat.mvp.BaseActivity; import java.util.ArrayList; import java.util.List; /** * Created by yuyidong on 15/8/9. */ public class ActivityCollector { private static final String TAG = ActivityCollector.class.getSimpleName(); priv...
fanwu123/mvptodo
Application/src/main/java/com/fanwu/chat/utils/ActivityCollector.java
Java
apache-2.0
1,411
/******************************************************************************* * Copyright 2015 Hewlett-Packard Development Company, L.P. * * 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 a...
borzamircea/verigreen
vg-common/src/com/verigreen/common/concurrency/GracefulThreadPoolExecutor.java
Java
apache-2.0
3,213
/* * 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...
jk1/intellij-community
python/src/com/jetbrains/python/inspections/PyChainedComparisonsInspection.java
Java
apache-2.0
10,490
package com.rs.game.npc.combat.impl; import java.util.ArrayList; import com.rs.game.Animation; import com.rs.game.Entity; import com.rs.game.Graphics; import com.rs.game.World; import com.rs.game.WorldTile; import com.rs.game.npc.NPC; import com.rs.game.npc.combat.CombatScript; import com.rs.game.npc.combat.NPCCombat...
calvinlotsberg/OurScape
src/com/rs/game/npc/combat/impl/CorporealBeastCombat.java
Java
apache-2.0
4,868
package eu.inloop.knight.name; import com.squareup.javapoet.ClassName; /** * Enum {@link GCN} * * @author FrantisekGazo * @version 2015-10-16 */ public enum GCN { KNIGHT("Knight"), INJECTOR("Injector"), NAVIGATOR("I"), APPLICATION_COMPONENT("ApplicationComponent"), APPLICATION_MODULE("Applic...
inloop/Knight
knight-compiler/src/main/java/eu/inloop/knight/name/GCN.java
Java
apache-2.0
1,178
// Copyright 2011-2016 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 ...
mayl8822/binnavi
src/main/java/com/google/security/zynamics/binnavi/Database/Exceptions/CouldntConnectException.java
Java
apache-2.0
1,957
/* * Autopsy Forensic Browser * * Copyright 2018 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> 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://ww...
sleuthkit/autopsy
Core/src/org/sleuthkit/autopsy/ingest/IngestProgressSnapshotProvider.java
Java
apache-2.0
1,480
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2011....
josealmeida/opereffa
openehr.xsd.processor/src/main/java/org/openehr/schemas/v1/CQUANTITYITEM.java
Java
apache-2.0
3,103
/* * Copyright 2019-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...
rmaz/buck
test/com/facebook/buck/core/rules/platform/AbstractDummyConfigurationRule.java
Java
apache-2.0
1,093
package com.memory.platform.test.core; import java.util.Arrays; public class TestEnum { public static void main(String[] args) { System.out.println(FlowEnum.FlOW_NAME.getValue()); System.out.println(Arrays.toString(FlowEnum.values())); } public enum FlowEnum { /** * */ FlOW_NAME("transition"), ...
rexlin600/BasicPlatform
Server-Platform/Hibernate/3.0/memory-root/modules/memory-core/src/test/java/com/memory/platform/test/core/TestEnum.java
Java
apache-2.0
568
/** * Copyright 2011-2019 Asakusa Framework Team. * * 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...
akirakw/asakusafw
utils-project/jsr199-testing/src/main/java/com/asakusafw/utils/java/jsr199/testing/VolatileClassFile.java
Java
apache-2.0
3,862
/** * Copyright 2011 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 ...
ahmedbodi/anycoinj
core/src/main/java/com/matthewmitchell/peercoinj/net/discovery/PeerDiscoveryException.java
Java
apache-2.0
1,110
/* * Copyright 2017-2017 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...
hellojavaer/ddal
ddal-sequence/src/main/java/org/hellojavaer/ddal/sequence/PollingGroupSequence.java
Java
apache-2.0
4,425
/** * Licensed to the Austrian Association for Software Tool Integration (AASTI) * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. The AASTI licenses this file to you under the Apache License, * Version 2...
openengsb-attic/openengsb-api
src/main/java/org/openengsb/core/api/security/service/PermissionSetNotFoundException.java
Java
apache-2.0
1,474
/** * Copyright 2005-2007 Xue Yong Zhi, Yu Su, Ye Zheng * Distributed under the Apache License */ package com.xruby.runtime.builtin; import com.xruby.runtime.lang.*; import com.xruby.runtime.lang.annotation.RubyLevelClass; import com.xruby.runtime.lang.annotation.RubyLevelMethod; import com.xruby.runtime...
rzel/xruby
src/com/xruby/runtime/builtin/RubyHash.java
Java
apache-2.0
7,916
package ru.aveselov.lesson4.producerconsumer; import org.junit.Test; /** * Tests for Producer-Consumer pattern. * * @author Veselov Alexey. * @version 1.00 * @since 27.01.2017 */ public class MyQueueTest { /** * Test of addProduct method, of class MyQueue. */ @Test public void testPattern...
CkimiHoK/JavaFromZeroToJunior
javalearning/Chapter7/src/test/java/ru/aveselov/lesson4/producerconsumer/MyQueueTest.java
Java
apache-2.0
846
/* * Copyright 2015, Zach Marshall. * * 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 ...
tejksat/docker-java
docker-java/src/test/java/com/github/dockerjava/api/model/PullResponseItemTest.java
Java
apache-2.0
2,302
/** * * Copyright 2004-2005 The Apache Software 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 require...
vibe13/geronimo
modules/interop/src/java/org/apache/geronimo/interop/generator/JPackage.java
Java
apache-2.0
1,139
/* * 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...
maduhu/mifos-head
application/src/test/java/org/mifos/customers/checklist/business/CheckListBOIntegrationTest.java
Java
apache-2.0
13,827
/* * 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 ...
GeLiXin/hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/helper/ResourceRequestsJsonVerifications.java
Java
apache-2.0
10,139
/* * 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 ...
sshcherbakov/incubator-geode
gemfire-core/src/main/java/com/gemstone/gemfire/management/internal/cli/CommandResponseBuilder.java
Java
apache-2.0
3,711
/* * 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 ...
spepping/fop-cs
src/java/org/apache/fop/area/BeforeFloat.java
Java
apache-2.0
2,282
/* * 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...
maduhu/mifos-head
application/src/main/java/org/mifos/accounts/savings/interest/PrincipalCalculationStrategy.java
Java
apache-2.0
1,004
/* * (c) Copyright 2019 EntIT Software LLC, a Micro Focus company, L.P. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License v2.0 which accompany this distribution. * * The Apache License is available at * http://www.apache.org/licenses/LICE...
CloudSlang/cs-actions
cs-couchbase/src/main/java/io/cloudslang/content/couchbase/actions/nodes/SetRecoveryType.java
Java
apache-2.0
13,961
package org.apereo.cas.web; import org.apereo.cas.CasProtocolConstants; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletR...
creamer/cas
support/cas-server-support-validation/src/main/java/org/apereo/cas/web/ProxyValidateController.java
Java
apache-2.0
1,023
/* * Copyright (C) 2015. The CloudKit 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 a...
icloudkit/example
net.cloudkit.flowportal/src/main/java/net/cloudkit/flowportal/infrastructure/utilities/ThreadHelper.java
Java
apache-2.0
4,569
package com.ztiany.sample2; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an Android d...
Ztiany/CodeRepository
Android/NDK/Sample2/app/src/androidTest/java/com/ztiany/sample2/ExampleInstrumentedTest.java
Java
apache-2.0
740
/* * Copyright 2016 SimplifyOps, Inc. (http://simplifyops.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 ...
variacode/rundeck
core/src/main/java/com/dtolabs/rundeck/core/plugins/PluginScanner.java
Java
apache-2.0
1,797
/* (c) British Telecommunications plc, 2009, All Rights Reserved */ package com.bt.pi.api.service; import java.util.ArrayList; import java.util.Collection; import java.util.concurrent.TimeUnit; import javax.annotation.Resource; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFac...
barnyard/p2p-api
src/main/java/com/bt/pi/api/service/RebootInstanceServiceHelper.java
Java
apache-2.0
3,163
/* * * Copyright 2016 Netflix, 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 ap...
irontable/genie
genie-web/src/test/java/com/netflix/genie/web/services/impl/HttpFileTransferImplTest.java
Java
apache-2.0
8,988
package FirstMissingPositive_41; /** * Given an unsorted integer array, find the first missing positive integer. * * For example, * Given [1,2,0] return 3, * and [3,4,-1,1] return 2. * * Your algorithm should run in O(n) time and uses constant space. */ public class Solution { // Solution below is inspire...
jasongzcity/algorithm
leetcode/src/FirstMissingPositive_41/Solution.java
Java
apache-2.0
1,192
package liquibase.configuration; import liquibase.Scope; import liquibase.configuration.core.DeprecatedConfigurationValueProvider; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; /** * @deprecated Use new {@link ConfigurationDefinition} style */ public abstract class...
mattbertolini/liquibase
liquibase-core/src/main/java/liquibase/configuration/AbstractConfigurationContainer.java
Java
apache-2.0
3,189
/* * 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
components/camel-quartz2/src/test/java/org/apache/camel/component/quartz2/QuartzRouteTest.java
Java
apache-2.0
1,881
/* * 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...
andy256/druid
server/src/test/java/io/druid/server/coordination/ServerManagerTest.java
Java
apache-2.0
24,169
package com.gyzj.core.ui.activity; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.apache.http.Header; import com.example.core.R; import com.google.gson.JsonArray; import com.gyzj.core.bean.c...
caixiaocheng/final
core/src/com/gyzj/core/ui/activity/ServerClassifyDialogActivity.java
Java
apache-2.0
6,915
/** * 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...
apurtell/hadoop
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DebugAdmin.java
Java
apache-2.0
16,815
/* * 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 ...
sankarh/hive
ql/src/java/org/apache/hadoop/hive/ql/hooks/PrivateHookContext.java
Java
apache-2.0
2,774
package fr.castorflex.android.smoothprogressbar.sample; import android.app.Activity; import android.content.res.Resources; import android.os.Bundle; import android.util.TypedValue; import android.view.View; import android.view.animation.AccelerateDecelerateInterpolator; import android.view.animation.AccelerateInterpol...
friederbluemle/SmoothProgressBar
sample/src/main/java/fr/castorflex/android/smoothprogressbar/sample/MakeCustomActivity.java
Java
apache-2.0
10,479
/* * 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/portals-pluto
demo/applicant-mvcbean-cdi-thymeleaf-portlet/src/main/java/org/apache/portals/pluto/demo/applicant/mvcbean/cdi/thymeleaf/portlet/PortletContainer.java
Java
apache-2.0
1,883