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
/** * {@link org.bukkit.event.Event Events} relating to programmatic state * changes on the server. */ package org.bukkit.event.server;
GlowstonePlusPlus/Glowkit
src/main/javadoc/org/bukkit/event/server/package-info.java
Java
gpl-3.0
140
/* * 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/main/java/org/sonar/server/measure/custom/ws/MetricsAction.java
Java
lgpl-3.0
3,973
package crazypants.enderio.rail; import java.util.ArrayList; import java.util.List; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityList; import net.minecraft.entity.item.EntityMinecart; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecr...
MatthiasMann/EnderIO
src/main/java/crazypants/enderio/rail/TeleportUtil.java
Java
unlicense
6,493
/** * 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/server/blockmanagement/ReplicationWork.java
Java
apache-2.0
2,800
/* * 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 ...
wwjiang007/flink
flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/FactoryUtil.java
Java
apache-2.0
59,280
/* * 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 ...
jinglining/flink
flink-core/src/test/java/org/apache/flink/types/RowTest.java
Java
apache-2.0
2,914
/* * Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
SupunS/carbon-identity
components/identity/org.wso2.carbon.identity.mgt/src/main/java/org/wso2/carbon/identity/mgt/policy/PolicyRegistry.java
Java
apache-2.0
1,305
/* * Copyright 2012 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 applicable law...
szpak/spock
spock-core/src/main/java/org/spockframework/mock/runtime/FailingRealMethodInvoker.java
Java
apache-2.0
1,120
/******************************************************************************* * Copyright (c) 2005, 2012 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...
Drifftr/devstudio-tooling-bps
plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/uiextensionmodel/ActivityExtension.java
Java
apache-2.0
2,611
/* * Copyright 2020 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...
droolsjbpm/drools
drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IPerson.java
Java
apache-2.0
1,035
/* * 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 applica...
spring-projects/spring-android
spring-android-core/src/main/java/org/springframework/util/StreamUtils.java
Java
apache-2.0
5,809
/* * 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 ...
steveloughran/hadoop
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FutureDataInputStreamBuilder.java
Java
apache-2.0
2,288
package cn.zhaiyifan.rememberedittext; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationT...
xiaoshi316/RememberEditText
library/src/androidTest/java/cn/zhaiyifan/rememberedittext/ApplicationTest.java
Java
apache-2.0
372
/* * Copyright (C) 2013 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 ...
cmelchior/caliper
old/caliper/main/java/com/google/caliper/runner/ExperimentModule.java
Java
apache-2.0
4,964
/* * 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...
corochoone/elasticsearch
src/test/java/org/elasticsearch/transport/netty/KeyedLockTests.java
Java
apache-2.0
6,122
/* * 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 ...
Kast0rTr0y/jackrabbit
jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/qom/ColumnImpl.java
Java
apache-2.0
3,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...
four2five/hop
src/mapred/org/apache/hadoop/mapred/TaskLog.java
Java
apache-2.0
19,596
package org.zstack.sdk; import java.util.HashMap; import java.util.Map; public class UpdateDiskOfferingAction extends AbstractAction { private static final HashMap<String, Parameter> parameterMap = new HashMap<>(); public static class Result { public ErrorCode error; public UpdateDiskOfferin...
AlanJinTS/zstack
sdk/src/main/java/org/zstack/sdk/UpdateDiskOfferingAction.java
Java
apache-2.0
2,546
/* * 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...
vroyer/elassandra
server/src/test/java/org/elasticsearch/search/fieldcaps/FieldCapabilitiesIT.java
Java
apache-2.0
6,106
/* * 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 ...
smgoller/geode
geode-core/src/main/java/org/apache/geode/internal/cache/DestroyedEntry.java
Java
apache-2.0
2,174
/* * Copyright (c) 2014, 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 Free Softwa...
gavinying/kura
target-platform/jdk.dio-parent/src/dev/test/jdk/dio/uart/UARTConfigTest.java
Java
epl-1.0
11,684
package teammates.ui.template; import java.util.ArrayList; import java.util.List; public class ArchivedCoursesTable { private List<ArchivedCoursesTableRow> rows; public ArchivedCoursesTable() { rows = new ArrayList<ArchivedCoursesTableRow>(); } public List<ArchivedCoursesTableRow> getRows() ...
thenaesh/teammates
src/main/java/teammates/ui/template/ArchivedCoursesTable.java
Java
gpl-2.0
446
package com.artifex.mupdf; public class OutlineItem { public final int level; public final String title; public final int page; OutlineItem(int _level, String _title, int _page) { level = _level; title = _title; page = _page; } }
mabels/jmupdf
src/main/cpp/android/src/com/artifex/mupdf/OutlineItem.java
Java
gpl-2.0
251
package com.dotcms.h2; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import org.h2.tools.TriggerAdapter; public class FileVersionCheckTrigger extends TriggerAdapter { @Override public void fire(Connection conn, ResultSet oldF, ResultS...
zhiqinghuang/core
src/com/dotcms/h2/FileVersionCheckTrigger.java
Java
gpl-3.0
893
/* * 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/main/java/org/sonar/server/user/GroupMembershipService.java
Java
lgpl-3.0
2,400
/* * 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; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.xpack.eql.expression.function.scalar.str...
robin13/elasticsearch
x-pack/plugin/eql/src/test/java/org/elasticsearch/xpack/eql/expression/function/scalar/string/CIDRMatchFunctionProcessorTests.java
Java
apache-2.0
3,219
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.apache.samoa.topology.impl; /* * #%L * SAMOA * %% * Copyright (C) 2014 - 2015 Apache Software Foundation * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this f...
bhupeshchawda/incubator-samoa
samoa-local/src/main/java/org/apache/samoa/topology/impl/SimpleProcessingItem.java
Java
apache-2.0
2,941
/* * 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...
sneivandt/elasticsearch
core/src/main/java/org/elasticsearch/action/admin/indices/shards/TransportIndicesShardStoresAction.java
Java
apache-2.0
12,748
/* * Copyright 2015-present 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 appli...
Shashikanth-Huawei/bmp
apps/routing/src/test/java/org/onosproject/routing/bgp/PathSegmentTest.java
Java
apache-2.0
4,327
import org.junit.Test; public class MyJavaTest { @Test public void testA() { } @Test public void testB() { } }
jwren/intellij-community
plugins/kotlin/idea/tests/testData/runConfigurations/junit/Simple/module/test/MyJavaTest.java
Java
apache-2.0
136
/* * Copyright 2011 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 a...
droolsjbpm/drools
kie-pmml/src/test/java/org/kie/pmml/pmml_4_2/PMMLErrorTest.java
Java
apache-2.0
4,323
/* * 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 ...
nikhilvibhav/camel
components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanConstants.java
Java
apache-2.0
1,075
//statement i--;
jwren/intellij-community
plugins/kotlin/j2k/old/tests/testData/fileOrElement/postfixOperator/decrement.java
Java
apache-2.0
16
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
apache/flink
flink-kubernetes/src/test/java/org/apache/flink/kubernetes/kubeclient/decorators/CmdJobManagerDecoratorTest.java
Java
apache-2.0
3,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 may ...
samaitra/ignite
modules/ml/src/main/java/org/apache/ignite/ml/tree/boosting/GDBBinaryClassifierOnTreesTrainer.java
Java
apache-2.0
4,191
/* * 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 ...
kidaa/incubator-ignite
modules/schedule/src/main/java/org/apache/ignite/internal/processors/schedule/IgniteScheduleProcessor.java
Java
apache-2.0
3,765
/* * * 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 * distri...
serDrem/incubator-trafficcontrol
traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/dns/RRSetsBuilder.java
Java
apache-2.0
1,942
/* * 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 ...
irudyak/ignite
modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/GridCacheCountDownLatchImpl.java
Java
apache-2.0
12,100
/* * 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; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.xpack.core.ilm; import org.apache.loggin...
GlenRSmith/elasticsearch
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/CopySettingsStep.java
Java
apache-2.0
4,274
/** * generated by Xtext 2.9.2 */ package org.xtuml.bp.xtext.masl.masl.structure.impl; import java.util.Collection; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.e...
rmulvey/bridgepoint
src/org.xtuml.bp.xtext.masl.parent/org.xtuml.bp.xtext.masl/emf-gen/org/xtuml/bp/xtext/masl/masl/structure/impl/TransitionRowImpl.java
Java
apache-2.0
7,380
/* * 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...
dahlstrom-g/intellij-community
platform/platform-api/src/com/intellij/ui/components/JBPanelWithEmptyText.java
Java
apache-2.0
1,922
// "Fix all 'Comparator method can be simplified' problems in file" "true" import java.util.*; import java.util.Map.Entry; import java.util.stream.Collectors; class Test { void test() { Map<String, Integer> unsortMap = new HashMap<>(); unsortMap.put("z", 10); unsortMap.put("b", 5); unsortMap.put("a",...
siosio/intellij-community
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/comparatorCanBeSimplified/afterComparingMapEntry.java
Java
apache-2.0
890
package org.compiere.util; import java.util.Map; /** * Helper class for building {@link Object#hashCode()} method. * * This class is similar with apache commons HashCodeBuilder, but much more simple. * * @author tsa * */ public class HashcodeBuilder { private final static int prime = 31; ...
pplatek/adempiere
base/src/org/compiere/util/HashcodeBuilder.java
Java
gpl-2.0
820
/* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following lice...
jvanz/core
qadevOOo/tests/java/ifc/style/_CharacterStyle.java
Java
gpl-3.0
1,421
/* * Copyright (c) 2017 Memorial Sloan-Kettering Cancer Center. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS * FOR A PARTICULAR PURPOSE. The software and documentation provided hereunder * is on an "...
zhx828/cbioportal
security/security-spring/src/main/java/org/cbioportal/security/spring/PortalSavedRequestAwareAuthenticationSuccessHandler.java
Java
agpl-3.0
7,019
/** * Copyright (C) 2014-2015 LinkedIn Corp. (pinot-core@linkedin.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 * * Unle...
nkhuyu/pinot
pinot-core/src/main/java/com/linkedin/pinot/core/data/manager/offline/OfflineTableDataManager.java
Java
apache-2.0
12,343
/* * Copyright 2012-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
honestrock/light-admin
lightadmin-core/src/main/java/org/lightadmin/core/view/LightAdminTilesView.java
Java
apache-2.0
2,074
/* * Copyright 2000-2015 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...
akosyakov/intellij-community
platform/platform-impl/src/com/intellij/openapi/components/ServiceDescriptor.java
Java
apache-2.0
1,126
/* * 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-compute/v1/1.31.0/com/google/api/services/compute/model/ConsistentHashLoadBalancerSettingsHttpCookie.java
Java
apache-2.0
3,283
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
jomarko/kie-wb-common
kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-api/kie-wb-common-stunner-backend-api/src/main/java/org/kie/workbench/common/stunner/core/registry/BackendRegistryFactory.java
Java
apache-2.0
1,131
package com.rayo.core.verb; public class PublicCommand extends AbstractVerbCommand { }
mhd911/openfire
src/plugins/rayo/src/java/com/rayo/core/verb/PublicCommand.java
Java
apache-2.0
94
// Copyright 2013 Square, Inc. package org.assertj.android.api.graphics.drawable; import android.graphics.drawable.AnimationDrawable; import static org.assertj.core.api.Assertions.assertThat; /** Assertions for {@link AnimationDrawable} instances. */ public class AnimationDrawableAssert extends AbstractDrawableA...
MichaelEvans/assertj-android
assertj-android/src/main/java/org/assertj/android/api/graphics/drawable/AnimationDrawableAssert.java
Java
apache-2.0
1,673
/* * 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 ...
WangTaoTheTonic/flink
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/assigners/TumblingProcessingTimeWindows.java
Java
apache-2.0
4,774
/* * Copyright (C) 2006 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...
itamaker/android-vcard
src/a_vcard/android/text/SpannableStringBuilder.java
Java
apache-2.0
35,717
package com.aspose.words.model; public class LineStyle { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LineStyle {\n"); sb.append("}\n"); return sb.toString(); } }
asposewordscloud/Aspose.Words_Cloud_SDK_For_Java
src/main/java/com/aspose/words/model/LineStyle.java
Java
mit
237
/** * The MIT License * Copyright (c) 2014 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, ...
WeRockStar/java-design-patterns
factory-kit/src/main/java/com/iluwatar/factorykit/WeaponType.java
Java
mit
1,269
/* * Copyright (c) 2003, the JUNG Project and the Regents of the University * of California * All rights reserved. * * This software is open-source under the BSD license; see either * "license.txt" or * http://jung.sourceforge.net/license.txt for a description. */ /* * * Created on Oct 29, 2003 */ package ...
xiaohanz/softcontroller
third-party/net.sf.jung2/src/main/java/edu/uci/ics/jung/algorithms/util/MapBinaryHeap.java
Java
epl-1.0
10,002
/* * Copyright (c) 1997, 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 Public License version 2 only, as * published by the Free ...
FauxFaux/jdk9-jaxws
src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/schemagen/xmlschema/SimpleTypeHost.java
Java
gpl-2.0
1,573
/* * Copyright (c) 2010, 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 Public License version 2 only, as * published by the Free ...
malaporte/kaziranga
test/src/jdk/nashorn/internal/parser/test/ParserTest.java
Java
gpl-2.0
6,651
/* * 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/lang-impl/src/com/intellij/openapi/roots/libraries/ui/RootDetector.java
Java
apache-2.0
2,214
package io.mycat.server.config.loader.zkloader; import com.alibaba.fastjson.JSON; import io.mycat.server.config.ConfigException; import io.mycat.server.config.node.UserConfig; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.utils.ZKPaths; import org.slf4j.Logger; import org.slf4j.Logger...
tottiyq/Mycat-Server
src/main/java/io/mycat/server/config/loader/zkloader/ZkUserConfigLoader.java
Java
apache-2.0
1,767
/* * Copyright 2016-present 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 appli...
Phaneendra-Huawei/demo
protocols/ospf/api/src/main/java/org/onosproject/ospf/controller/OspfRouterListener.java
Java
apache-2.0
1,306
/** * 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...
jlpedrosa/camel
components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/converter/ElasticsearchActionRequestConverter.java
Java
apache-2.0
8,691
/* * 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/compiler/impl/src/com/intellij/packaging/impl/ui/properties/DirectoryElementPropertiesPanel.java
Java
apache-2.0
1,042
/* * 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 ...
nikhilvibhav/camel
core/camel-core/src/test/java/org/apache/camel/processor/EventNotifierExchangeSentExampleTest.java
Java
apache-2.0
2,185
/* * 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 ...
nikhilvibhav/camel
components/camel-file-watch/src/test/java/org/apache/camel/component/file/watch/FileWatchComponentRecursiveTest.java
Java
apache-2.0
2,405
/* * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
bhathiya/carbon-apimgt
components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/LCManagerFactory.java
Java
apache-2.0
2,897
/** * * 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"); ...
amyvmiwei/hbase
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogWriter.java
Java
apache-2.0
8,372
/** * */ package uk.co.jemos.podam.test.dto.annotations; import java.io.Serializable; import uk.co.jemos.podam.common.PodamCharValue; import uk.co.jemos.podam.test.utils.PodamTestConstants; /** * POJO to test {@link PodamCharValue} annotation * * @author mtedone * */ public class CharValuePojo implements S...
vaibhavbhatnagar/CrossoverProb
src/uk/co/jemos/podam/test/dto/annotations/CharValuePojo.java
Java
mit
6,363
/* * Copyright (c) 2011, 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 Free Softwa...
greghaskins/openjdk-jdk7u-jdk
src/macosx/classes/com/apple/laf/AquaButtonCheckBoxUI.java
Java
gpl-2.0
2,674
/* * Copyright (c) 2011, 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 Free Softwa...
greghaskins/openjdk-jdk7u-jdk
src/macosx/classes/com/apple/eawt/FullScreenAdapter.java
Java
gpl-2.0
2,062
/** * Copyright © 2002 Instituto Superior Técnico * * This file is part of FenixEdu Academic. * * FenixEdu Academic 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 3 of the License...
andre-nunes/fenixedu-academic
src/main/java/org/fenixedu/academic/ui/struts/action/administrativeOffice/studentEnrolment/CurriculumLinesLocationManagementDA.java
Java
lgpl-3.0
2,367
/* * Copyright 2005 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
jomarko/kie-wb-common
kie-wb-common-widgets/kie-wb-metadata-widget/src/main/java/org/kie/workbench/common/widgets/metadata/client/widget/TagWidget.java
Java
apache-2.0
2,542
/* * ModeShape (http://www.modeshape.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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
weebl2000/modeshape
modeshape-jdbc/src/main/java/org/modeshape/jdbc/rest/ItemDefinition.java
Java
apache-2.0
2,396
/******************************************************************************* * Copyright (c) 2009 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 is a...
vovagrechka/fucking-everything
phizdets/phizdets-idea/eclipse-src/org.eclipse.php.core/src/org/eclipse/php/core/codeassist/IElementFilter.java
Java
apache-2.0
1,053
/* * 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...
gingerwizard/elasticsearch
server/src/test/java/org/elasticsearch/search/suggest/SuggestBuilderTests.java
Java
apache-2.0
7,298
/** * 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...
jonmcewen/camel
camel-core/src/test/java/org/apache/camel/management/ManagedRouteNoAutoStartupTest.java
Java
apache-2.0
3,907
// "Transform body to single exit-point form" "true" class Test { String<caret> process(String s, int x) { if (x > 0) { if (x == 2) { return s.trim(); } System.out.println(s.substring(0)); } return s.substring(1); } }
dahlstrom-g/intellij-community
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convertToSingleReturn/beforeNonNulls.java
Java
apache-2.0
301
/* * 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 ...
mcgilman/nifi
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/QueryDatabaseTable.java
Java
apache-2.0
9,016
package test.functional; import org.compiere.model.MColumn; import org.compiere.model.MInvoice; import org.compiere.model.MProduct; import org.compiere.model.MTable; import org.compiere.model.X_AD_Reference; import org.compiere.util.Env; import test.AdempiereTestCase; public class TrifonTest extends Ademp...
armenrz/adempiere
extend/src/test/functional/TrifonTest.java
Java
gpl-2.0
1,444
package org.ovirt.engine.ui.common.widget.editor; import com.google.gwt.user.client.ui.TextBox; /** * A {@link TextBox} that uses a {@link ValueBoxEditorChanger} as the Editor */ public class TextBoxChanger extends TextBox { private ValueBoxEditorChanger<String> editor; @Override public ValueBoxEditor...
jtux270/translate
ovirt/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/editor/TextBoxChanger.java
Java
gpl-3.0
474
/** * Copyright © 2002 Instituto Superior Técnico * * This file is part of FenixEdu Academic. * * FenixEdu Academic 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 3 of the License...
andre-nunes/fenixedu-academic
src/main/java/org/fenixedu/academic/domain/candidacyProcess/IndividualCandidacySeriesGradeState.java
Java
lgpl-3.0
1,730
/* * 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 ...
xhoong/incubator-calcite
core/src/main/java/org/apache/calcite/sql/SqlInternalOperator.java
Java
apache-2.0
3,001
package org.keycloak.login.freemarker.model; /** * @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a> */ public class CodeBean { private final String code; private final String error; public CodeBean(String code, String error) { this.code = code; this.error = error; }...
anaerobic/keycloak
forms/login-freemarker/src/main/java/org/keycloak/login/freemarker/model/CodeBean.java
Java
apache-2.0
527
/* * 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...
nomoa/elasticsearch
core/src/test/java/org/elasticsearch/gateway/PriorityComparatorTests.java
Java
apache-2.0
8,439
/* * 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 ...
ascherbakoff/ignite
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/mvcc/DeadlockDetectionManager.java
Java
apache-2.0
13,876
// "Merge with 'case 1'" "GENERIC_ERROR_OR_WARNING" class C { String foo(int n) { switch (n) { case 1: case 3: throw new IllegalArgumentException("A"); case 2: throw new IllegalStateException("A"); } return ""; } }
paplorinc/intellij-community
java/java-tests/testData/inspection/duplicateBranchesInSwitchFix/afterThrow.java
Java
apache-2.0
314
/* * Copyright (c) 1996, 2010, 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 Free ...
rokn/Count_Words_2015
testing/openjdk/jdk/src/share/classes/java/awt/EventDispatchThread.java
Java
mit
11,656
package info.novatec.inspectit.cmr.spring.aop; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Marker for methods that will be logged and/or profiled, By placi...
kugelr/inspectIT
CMR/src/info/novatec/inspectit/cmr/spring/aop/MethodLog.java
Java
agpl-3.0
1,291
/* * File: TrackerSettings.java * * Copyright (C) 2010 The Humanitarian FOSS Project (http://www.hfoss.org) * * This file is part of POSIT, Portable Open Search and Identification Tool. * * POSIT is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
sanyaade-g2g-repos/posit-mobile.haiti
src/org/hfoss/posit/android/TrackerSettings.java
Java
lgpl-2.1
3,710
/** * Copyright 2005-2015 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by a...
geothomasp/kualico-rice-kc
rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/datadictionary/validation/constraint/provider/AttributeDefinitionConstraintProvider.java
Java
apache-2.0
4,361
/* * 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...
asedunov/intellij-community
plugins/git4idea/src/git4idea/commands/GitHttpAuthService.java
Java
apache-2.0
2,465
/* * Copyright 2000-2014 Vaadin 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...
jdahlstrom/vaadin.react
uitest/src/main/java/com/vaadin/tests/application/PreserveWithExpiredHeartbeat.java
Java
apache-2.0
1,360
/* * 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 * distribu...
WouterBanckenACA/aries
subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/GetDeploymentHeadersAction.java
Java
apache-2.0
1,399
/* * 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 ...
roele/sling
bundles/extensions/caconfig/impl/src/test/java/org/apache/sling/caconfig/impl/override/OsgiConfigurationOverrideProviderTest.java
Java
apache-2.0
2,278
/* * This is the source code of Telegram for Android v. 3.x.x. * It is licensed under GNU GPL v. 2 or later. * You should have received a copy of the license in this archive (see LICENSE). * * Copyright Nikolai Kudashov, 2013-2016. */ package org.telegram.ui.Components; import android.content.Context; import an...
7ShaYaN7/Telegram
TMessagesProj/src/main/java/org/telegram/ui/Components/NumberTextView.java
Java
gpl-2.0
5,881
package com.salesmanager.core.business.catalog.product.dao.availability; import org.springframework.stereotype.Repository; import com.salesmanager.core.business.catalog.product.model.availability.ProductAvailability; import com.salesmanager.core.business.generic.dao.SalesManagerEntityDaoImpl; @Repository("productAva...
asheshsaraf/ecommerce-simple
sm-core/src/main/java/com/salesmanager/core/business/catalog/product/dao/availability/ProductAvailabilityDaoImpl.java
Java
apache-2.0
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 ...
sdmcraft/sling
tooling/ide/eclipse-m2e-test/src/org/apache/sling/ide/eclipse/m2e/EmbeddedArchetypeInstallerTest.java
Java
apache-2.0
3,301
/* * Copyright 2006 Bradley Schatz. All rights reserved. * * This file is part of pasco2, the next generation Internet Explorer cache * and history record parser. * * pasco2 is free software; you can redistribute it and/or modify * under the terms of the GNU General Public License as published by the * Free Sof...
raman-bt/autopsy
thirdparty/pasco2/test/isi/pasco2/TestFileTime.java
Java
apache-2.0
4,159
/* * 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...
android-ia/platform_tools_idea
java/idea-ui/src/com/intellij/openapi/project/impl/convertors/Util.java
Java
apache-2.0
1,166