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
/* * 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...
jblievremont/sonarqube
server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/UserGroupsWsAction.java
Java
lgpl-3.0
1,043
// "Replace with text block" "true" class TextBlockMigration { void concatenationWithEscapedQuotesWithoutLineBreaks() { String div = """ <div lang="{{interpolation?.here}}"></div>"""; } }
siosio/intellij-community
java/java-tests/testData/inspection/textBlockMigration/afterConcatenationWithEscapedQuotesWithoutLineBreaks.java
Java
apache-2.0
210
/* * 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...
Lekanich/intellij-community
xml/dom-impl/src/com/intellij/util/xml/stubs/builder/DomStubBuilder.java
Java
apache-2.0
3,675
/* * 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...
dahlstrom-g/intellij-community
platform/lang-api/src/com/intellij/codeInsight/generation/MemberChooserObject.java
Java
apache-2.0
1,038
/* * 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
plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/junit/MakePublicStaticFix.java
Java
apache-2.0
2,298
/* * Licensed to ElasticSearch and Shay Banon 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...
Kreolwolf1/Elastic
src/main/java/org/elasticsearch/index/engine/EngineAlreadyStartedException.java
Java
apache-2.0
1,086
package org.nutz.lang.util; import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import java.util.ArrayList; import java.util.Collection; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.nutz.lang.Strings; /** *...
sdgdsffdsfff/nutz
src/org/nutz/lang/util/MultiLineProperties.java
Java
apache-2.0
3,986
/* * Copyright (C) 2011 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...
congdepeng/java-guava-lib-demo
guava-libraries/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/LongMath.java
Java
apache-2.0
12,327
/* * 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...
smmribeiro/intellij-community
java/compiler/impl/src/com/intellij/packaging/impl/elements/LibraryElementType.java
Java
apache-2.0
3,193
/* * 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 ...
nishantmonu51/druid
indexing-service/src/main/java/org/apache/druid/indexing/common/actions/SegmentInsertAction.java
Java
apache-2.0
2,825
/** * Copyright 2010 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 ...
DavidBate/taokeeper
taokeeper-common/src/main/java/org/I0Itec/zkclient/ContentWatcher.java
Java
apache-2.0
2,789
package org.rocksdb.util; public class Environment { private static String OS = System.getProperty("os.name").toLowerCase(); private static String ARCH = System.getProperty("os.arch").toLowerCase(); public static boolean isPowerPC() { return ARCH.contains("ppc"); } public static boolean isWindows() { ...
minifirocks/nifi-minifi-cpp
thirdparty/rocksdb/java/src/main/java/org/rocksdb/util/Environment.java
Java
apache-2.0
2,597
/** * 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, ...
DevFactory/java-design-patterns
mediator/src/test/java/com/iluwatar/mediator/PartyImplTest.java
Java
mit
2,258
/* =========================================================== * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * * (C) Copyright 2000-2014, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreech...
m-altieri/speedhouse
speedhouse/lib/jfreechart_src/org/jfree/chart/fx/interaction/ScrollHandlerFX.java
Java
mit
5,041
/* * Copyright (c) 2001, 2017, 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 ...
md-5/jdk10
test/jdk/javax/imageio/stream/StreamFlush.java
Java
gpl-2.0
4,104
/* * ProActive Parallel Suite(TM): * The Open Source library for parallel and distributed * Workflows & Scheduling, Orchestration, Cloud Automation * and Big Data Analysis on Enterprise Grids & Clouds. * * Copyright (c) 2007 - 2017 ActiveEon * Contact: contact@activeeon.com * * This library is free software: y...
tobwiens/scheduling
common/common-client/src/main/java/org/ow2/proactive/utils/OperatingSystemFamily.java
Java
agpl-3.0
1,216
/* * Copyright 2012-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Buzzardo/spring-boot
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/cache/CacheMetricsRegistrarConfiguration.java
Java
apache-2.0
3,324
/* * 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 ...
hsbhathiya/stratos
components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/data/publisher/exception/DataPublisherException.java
Java
apache-2.0
1,104
package org.jetbrains.annotations; import java.lang.annotation.*; @Retention(RetentionPolicy.CLASS) @Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE, ElementType.TYPE_USE}) public @interface Nullable { String value() default ""; }
siosio/intellij-community
java/java-tests/testData/compiler/notNullVerification/mixed/Nullable.java
Java
apache-2.0
283
/* * 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...
asedunov/intellij-community
platform/core-api/src/com/intellij/pom/Navigatable.java
Java
apache-2.0
1,619
/* * Copyright (c) 2019, 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 * * Unles...
ruks/carbon-apimgt
components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/utils/OpenAPIUtils.java
Java
apache-2.0
12,297
/** * Copyright 2010 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 ...
MetSystem/jbpm
jbpm-flow/src/main/java/org/jbpm/ruleflow/core/factory/BoundaryEventNodeFactory.java
Java
apache-2.0
4,212
package com.vaadin.tests.elements.radiobuttongroup; import java.util.ArrayList; import java.util.List; import com.vaadin.data.provider.ListDataProvider; import com.vaadin.server.VaadinRequest; import com.vaadin.tests.components.AbstractTestUI; import com.vaadin.ui.RadioButtonGroup; public class RadioButtonGroupSetVa...
Darsstar/framework
uitest/src/main/java/com/vaadin/tests/elements/radiobuttongroup/RadioButtonGroupSetValue.java
Java
apache-2.0
969
/* * #%L * Native ARchive plugin for Maven * %% * Copyright (C) 2002 - 2014 NAR Maven Plugin developers. * %% * 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.or...
dugilos/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/parser/LetterState.java
Java
apache-2.0
2,232
/** * 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...
ananthc/apex-malhar
examples/frauddetect/src/main/java/org/apache/apex/examples/frauddetect/TransactionStatsData.java
Java
apache-2.0
1,212
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
abstractj/keycloak
services/src/main/java/org/keycloak/storage/UserStorageManager.java
Java
apache-2.0
33,353
/** * Copyright (C) 2012-2015 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 b...
skyseazcq/ninja-1
ninja-servlet/src/main/java/ninja/servlet/util/ResponseExtractor.java
Java
apache-2.0
1,447
/* * Copyright 2014-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 applica...
packet-tracker/onos
cli/src/main/java/org/onosproject/cli/net/AddTestFlowsCommand.java
Java
apache-2.0
6,507
/** * 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...
rmarting/camel
components/camel-lra/src/main/java/org/apache/camel/service/lra/LRAConstants.java
Java
apache-2.0
1,666
/* * 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...
ipros-team/presto
presto-tpch/src/main/java/com/facebook/presto/tpch/TpchSplitManager.java
Java
apache-2.0
2,821
package com.intellij.openapi.externalSystem.model.project; import org.jetbrains.annotations.Nullable; /** * Enumerates module source types. * * @author Denis Zhdanov */ public enum ExternalSystemSourceType implements IExternalSystemSourceType { SOURCE(false, false, false, false), TEST(true, false, false, fa...
siosio/intellij-community
platform/external-system-rt/src/com/intellij/openapi/externalSystem/model/project/ExternalSystemSourceType.java
Java
apache-2.0
2,489
/* * 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/src/main/java/org/apache/camel/component/file/strategy/FileMoveExistingStrategy.java
Java
apache-2.0
2,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 ...
nikhilvibhav/camel
components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/HostnameVerifierCxfRsConfigurer.java
Java
apache-2.0
2,125
public class ReplaceGetterFromField { private int fi<caret>eld; public int getField() { System.out.println("some stub"); return 0; } public void setField(int field) { System.out.println("Additional monitoring"); this.field = field; } }
mplushnikov/lombok-intellij-plugin
testData/intention/replaceLombok/NotReplaceIncorrectAccessors.java
Java
bsd-3-clause
264
/* * Copyright (C) 2010-2012 The Async HBase Authors. All rights reserved. * This file is part of Async HBase. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * - Redistributions of source code must retain the...
tsuna/asynchbase
src/UnknownRowLockException.java
Java
bsd-3-clause
2,802
/* * 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 ...
plumer/codana
tomcat_files/7.0.61/SmapGenerator.java
Java
mit
5,996
/* * * 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...
jeffmart/incubator-trafficcontrol
traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/config/WatcherConfig.java
Java
apache-2.0
1,494
/* * IzPack - Copyright 2001-2010 Julien Ponge, All Rights Reserved. * * http://izpack.org/ * http://izpack.codehaus.org/ * * Copyright 2005,2009 Ivan SZKIBA * Copyright 2010,2011 Rene Krell * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance wi...
rsharipov/izpack
izpack-util/src/main/java/com/izforge/izpack/util/config/ConfigFileTask.java
Java
apache-2.0
2,446
/* * Copyright 2015 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...
jomarko/kie-wb-common
kie-wb-common-screens/kie-wb-common-data-modeller/kie-wb-common-data-modeller-client/src/main/java/org/kie/workbench/common/screens/datamodeller/client/widgets/editor/NewFieldPopupView.java
Java
apache-2.0
1,758
/* * 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 ...
samaitra/jena
jena-sdb/src/test/java/org/apache/jena/sdb/test/misc/TestExprMatch.java
Java
apache-2.0
9,795
/* * Copyright 2000-2013 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
asedunov/intellij-community
platform/vcs-log/impl/src/com/intellij/vcs/log/ui/actions/VcsLogQuickSettingsActions.java
Java
apache-2.0
867
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
abstractj/keycloak
server-spi-private/src/main/java/org/keycloak/utils/CredentialHelper.java
Java
apache-2.0
7,608
/* * [The "BSD license"] * Copyright (c) 2012 Terence Parr * Copyright (c) 2012 Sam Harwell * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code...
chienjchienj/antlr4
tool/src/org/antlr/v4/semantics/BasicSemanticChecks.java
Java
bsd-3-clause
20,118
/** * Copyright (c) 2010-2019 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
clinique/openhab2
bundles/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/PentairBindingConstants.java
Java
epl-1.0
4,844
/** * Product: Posterita Web-Based POS and Adempiere Plugin * Copyright (C) 2007 Posterita Ltd * This file is part of POSterita * * POSterita is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; eit...
erpcya/adempierePOS
posterita/posterita/src/main/org/posterita/beans/PaymentAllocationBean.java
Java
gpl-2.0
3,364
import static java.lang.System.out; import static java.lang.System.out; class DuplicateStaticImport { public static void main(String[] args) { <caret>out.println(""); // cannot resolve symbol 'out' } }
siosio/intellij-community
java/java-tests/testData/psi/resolve/var15/DuplicateStaticImport.java
Java
apache-2.0
218
/* * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
siosio/intellij-community
java/java-structure-view/src/com/intellij/ide/structureView/impl/java/KindSorter.java
Java
apache-2.0
2,619
// Copyright 2000-2018 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.java.refactoring.inline; import com.intellij.JavaTestUtil; import com.intellij.psi.PsiClass; import com.intellij.psi.PsiMethod; import com.intellij.refactori...
siosio/intellij-community
java/java-tests/testSrc/com/intellij/java/refactoring/inline/InlineMethodMultifileTest.java
Java
apache-2.0
1,694
/* * Copyright 2014 JBoss by Red Hat. * * 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...
Salaboy/jbpm
jbpm-services/jbpm-services-ejb/jbpm-services-ejb-impl/src/test/java/org/jbpm/services/ejb/test/identity/TestIdentityProvider.java
Java
apache-2.0
1,343
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
thomasdarimont/keycloak
server-spi-private/src/main/java/org/keycloak/protocol/LoginProtocol.java
Java
apache-2.0
3,730
/* gnu/regexp/UncheckedRE.java Copyright (C) 2001, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (a...
shaotuanchen/sunflower_exp
tools/source/gcc-4.2.4/libjava/classpath/gnu/java/util/regex/UncheckedRE.java
Java
bsd-3-clause
4,719
package org.motechproject.commcare.testutil; import org.motechproject.commcare.request.StockTransactionRequest; /** * Utility class for preparing sample stock transactions request. */ public class RequestTestUtils { public static final String CASE_ID = "caseId"; public static final String SECTION_ID = "s1"...
wstrzelczyk/modules
commcare/src/test/java/org/motechproject/commcare/testutil/RequestTestUtils.java
Java
bsd-3-clause
869
/** * 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/dto/InfoCoordinator.java
Java
lgpl-3.0
2,180
/********************************************************************************** * $URL$ * $Id$ *********************************************************************************** * * Copyright (c) 2005, 2006, 2008 The Sakai Foundation * * Licensed under the Educational Community License, Version 2.0 (the "Li...
ouit0408/sakai
login/login-tool/tool/src/java/org/sakaiproject/login/tool/ContainerLogin.java
Java
apache-2.0
4,830
/** * Copyright (C) 2012-2015 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 b...
skyseazcq/ninja-1
ninja-core/src/main/java/ninja/template/TemplateEngineXml.java
Java
apache-2.0
1,980
/* * 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 ...
afinka77/ignite
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CachePutEventListenerErrorSelfTest.java
Java
apache-2.0
6,263
/** * 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...
bhutchinson/rice
rice-middleware/core/api/src/main/java/org/kuali/rice/core/api/impex/xml/ZipXmlDoc.java
Java
apache-2.0
1,779
/* * * 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...
alficles/incubator-trafficcontrol
traffic_monitor_java/src/main/java/com/comcast/cdn/traffic_control/traffic_monitor/MonitorApplication.java
Java
apache-2.0
3,690
/* * 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 ...
samaitra/jena
jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/impl/Names.java
Java
apache-2.0
2,344
/* * 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
installer/providers/jcr/src/test/java/org/apache/sling/installer/provider/jcr/impl/ScanningLoopTest.java
Java
apache-2.0
6,177
/* * 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-core/src/test/java/org/apache/flink/api/common/typeutils/base/BigIntSerializerTest.java
Java
apache-2.0
1,893
/** Notice of modification as required by the LGPL * This file was modified by Gemstone Systems Inc. on * $Date$ **/ package com.gemstone.org.jgroups.blocks; import java.lang.reflect.Method; /** * @author Bela Ban * @version $Id: MethodLookup.java,v 1.3 2005/07/22 08:59:20 belaban Exp $ */ public interface Me...
papicella/snappy-store
lgpl/gemfire-jgroups/src/main/java/com/gemstone/org/jgroups/blocks/MethodLookup.java
Java
apache-2.0
368
package org.zstack.header.network.service; import org.zstack.header.network.l3.L3NetworkInventory; /** * Created with IntelliJ IDEA. * User: frank * Time: 10:34 PM * To change this template use File | Settings | File Templates. */ public class SnatStruct { private String guestIp; private String guestGate...
zxwing/zstack-1
header/src/main/java/org/zstack/header/network/service/SnatStruct.java
Java
apache-2.0
1,769
package org.zstack.core.progressbar; import org.zstack.header.message.APIEvent; public class InProgressEvent extends APIEvent { private String description; protected InProgressEvent(String apiId, String description) { super(apiId); this.description = description; } public InProgressEvent() { super(nu...
zstackorg/zstack
core/src/main/java/org/zstack/core/progressbar/InProgressEvent.java
Java
apache-2.0
490
/* * 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...
strahanjen/strahanjen.github.io
elasticsearch-master/core/src/main/java/org/elasticsearch/action/termvectors/MultiTermVectorsRequest.java
Java
bsd-3-clause
7,542
/* * Copyright (c) 1997, 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/javax/swing/JDialog.java
Java
mit
49,133
/** * Copyright (c) 2010-2016 by the respective copyright holders. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */...
mvolaart/openhab
bundles/binding/org.openhab.binding.tinkerforge/src/main/java/org/openhab/binding/tinkerforge/internal/model/impl/MBrickDCImpl.java
Java
epl-1.0
93,360
/****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 2009 SC ARHIPAC SERVICE SRL. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it ...
armenrz/adempiere
base/src/org/adempiere/exceptions/BPartnerNoAddressException.java
Java
gpl-2.0
1,621
/* * 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 ...
ibmsoe/pig
test/org/apache/pig/test/TestConversions.java
Java
apache-2.0
18,733
/* * Copyright (C) 2007 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...
rcpoison/guava
guava-tests/test/com/google/common/collect/HashBiMapTest.java
Java
apache-2.0
7,823
/* * Copyright 2013 Cloudera 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...
prazanna/kite
kite-morphlines/kite-morphlines-solr-core/src/main/java/org/kitesdk/morphline/solr/SanitizeUnknownSolrFieldsBuilder.java
Java
apache-2.0
4,102
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Stephen Connolly * * 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, i...
syl20bnr/jenkins
core/src/main/java/hudson/slaves/CommandLauncher.java
Java
mit
7,086
/** * 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...
PramodSSImmaneni/apex-malhar
library/src/test/java/com/datatorrent/lib/logs/ApacheLogParseMapOutputOperatorTest.java
Java
apache-2.0
4,593
/* * 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...
abhijitiitr/es
src/main/java/org/elasticsearch/action/mlt/MoreLikeThisRequestBuilder.java
Java
apache-2.0
8,425
/** * 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...
sriksun/falcon
addons/hivedr/src/main/java/org/apache/falcon/hive/DefaultPartitioner.java
Java
apache-2.0
14,693
//////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code for adherence to a set of rules. // Copyright (C) 2001-2015 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU ...
autermann/checkstyle
src/test/resources/com/puppycrawl/tools/checkstyle/InputEmptyCatchBlockCheck.java
Java
lgpl-2.1
5,932
/* * 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 ...
psadusumilli/ignite
modules/core/src/main/java/org/apache/ignite/marshaller/Marshaller.java
Java
apache-2.0
4,385
/* * 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 ...
mduerig/jackrabbit-oak
oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBBlobStoreFriend.java
Java
apache-2.0
2,992
/* * 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 ...
bruthe/hadoop-2.6.0r
src/yarn/registry/org/apache/hadoop/registry/server/services/package-info.java
Java
apache-2.0
1,637
/** * Copyright 2007-2016, Kaazing 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 require...
irina-mitrea-luxoft/gateway
mina.netty/src/main/java/org/kaazing/mina/netty/bootstrap/ConnectionlessClientBootstrap.java
Java
apache-2.0
2,672
// "Replace Optional.isPresent() condition with functional style expression" "GENERIC_ERROR_OR_WARNING" import java.util.Arrays; import java.util.List; import java.util.Optional; public class Main { void test(Optional<String> foo) { double bar = foo.isPresent<caret>() ? foo.get().length() * 1.2 : 0; } }
siosio/intellij-community
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/optionalIsPresent/beforeTernaryPrimitiveSimple.java
Java
apache-2.0
314
/* * 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 ...
cooldoger/cassandra
src/java/org/apache/cassandra/service/reads/repair/RepairedDataVerifier.java
Java
apache-2.0
4,139
package cz.metacentrum.perun.core.api.exceptions.rt; /** * Checked version of EmptyPasswordRuntimeException. * * @author Michal Prochazka */ public class EmptyPasswordRuntimeException extends PerunRuntimeException { static final long serialVersionUID = 0; public EmptyPasswordRuntimeException(String message) { ...
zlamalp/perun
perun-base/src/main/java/cz/metacentrum/perun/core/api/exceptions/rt/EmptyPasswordRuntimeException.java
Java
bsd-2-clause
521
/* This code is part of Freenet. It is distributed under the GNU General * Public License, version 2 (or at your option any later version). See * http://www.gnu.org/ for further details of the GPL. */ package freenet.client.events; import freenet.support.compress.Compressor.COMPRESSOR_TYPE; /** * Event indicating ...
uprasad/fred
src/freenet/client/events/StartedCompressionEvent.java
Java
gpl-2.0
750
/* * Copyright 2005 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 t...
amckee23/drools
drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RulesheetUtil.java
Java
apache-2.0
1,757
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
GlenRSmith/elasticsearch
server/src/internalClusterTest/java/org/elasticsearch/search/aggregations/bucket/TermsDocCountErrorIT.java
Java
apache-2.0
47,671
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty 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.or...
gpolitis/jitsi
src/net/java/sip/communicator/service/argdelegation/UriHandler.java
Java
apache-2.0
1,519
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
GlenRSmith/elasticsearch
server/src/main/java/org/elasticsearch/common/logging/Loggers.java
Java
apache-2.0
6,886
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
GlenRSmith/elasticsearch
build-tools/src/testFixtures/java/org/elasticsearch/gradle/internal/test/GradleIntegrationTestCase.java
Java
apache-2.0
8,639
/* * 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 ...
WilliamNouet/nifi
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/test/java/org/apache/nifi/web/security/jwt/JwtServiceTest.java
Java
apache-2.0
18,241
/* * 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...
goodwinnk/intellij-community
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XValueWithInlinePresentation.java
Java
apache-2.0
907
/* * 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 ...
PommeVerte/incubator-tinkerpop
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/SackStepTest.java
Java
apache-2.0
1,354
/* * Copyright (c) 2006, 2007, 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/test/sun/security/pkcs11/ec/ReadCertificates.java
Java
mit
5,575
/** * Copyright (c) 2010-2016, openHAB.org 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 available at * http://www.eclipse.org/legal/epl-v10.html */ package org...
paolodenti/openhab
bundles/binding/org.openhab.binding.denon/src/main/java/org/openhab/binding/denon/internal/communication/entities/commands/AppCommandResponse.java
Java
epl-1.0
1,177
/* * Copyright 2010 Aalto University, ComNet * Released under GPLv3. See LICENSE.txt for details. */ package test; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.Vector; import junit.framework.TestCase; import report.DistanceDelayRepo...
davidsan/one
test/DistanceDelayReportTest.java
Java
gpl-3.0
2,292
/* * 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...
JuudeDemos/android-sdk-20
src/android/os/SystemPropertiesTest.java
Java
apache-2.0
1,639
// 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 ...
d/bazel
src/main/java/com/google/devtools/build/lib/actions/NotifyOnActionCacheHit.java
Java
apache-2.0
1,040
/* * 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...
asedunov/intellij-community
plugins/InspectionGadgets/testsrc/com/siyeh/ig/threading/AtomicFieldUpdaterNotStaticFinalInspectionTest.java
Java
apache-2.0
1,812
/* * 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...
mirego/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java
Java
apache-2.0
69,751
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
dennishuo/hadoop
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/TaskStatus.java
Java
apache-2.0
17,294