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 |
|---|---|---|---|---|---|
/*
* 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 | platform/platform-impl/src/com/intellij/internal/validation/TestDialogWithValidationAction.java | Java | apache-2.0 | 1,085 |
/**
* Copyright (c) 2009--2010 Red Hat, Inc.
*
* This software is licensed to you under the GNU General Public License,
* version 2 (GPLv2). There is NO WARRANTY for this software, express or
* implied, including the implied warranties of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. You should have rece... | xkollar/spacewalk | java/code/src/com/redhat/rhn/common/hibernate/DuplicateObjectException.java | Java | gpl-2.0 | 1,534 |
package water.util;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
/**
* Simple Timer class.
**/
public class Timer {
private static final DateTimeFormatter longFormat = DateTimeFormat.forPattern("dd-MMM HH:mm:ss.SSS");
private static f... | PawarPawan/h2o-v3 | h2o-core/src/main/java/water/util/Timer.java | Java | apache-2.0 | 1,562 |
package org.jetbrains.debugger;
import com.intellij.openapi.util.Condition;
import com.intellij.openapi.util.Conditions;
import com.intellij.ui.SimpleTextAttributes;
import com.intellij.xdebugger.frame.*;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.concurre... | akosyakov/intellij-community | platform/script-debugger/debugger-ui/testSrc/org/jetbrains/debugger/TestCompositeNode.java | Java | apache-2.0 | 4,343 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | sajeetharan/pentaho-kettle | ui/src/org/pentaho/di/ui/job/entries/pgpverify/JobEntryPGPVerifyDialog.java | Java | apache-2.0 | 20,639 |
/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* 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 ... | md-5/jdk10 | src/java.xml/share/classes/com/sun/org/apache/xml/internal/utils/ListingErrorHandler.java | Java | gpl-2.0 | 18,873 |
/*
* Copyright (c) 2002, 2016, 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/sound/sampled/LinuxCrash/ClipLinuxCrash.java | Java | gpl-2.0 | 5,675 |
/*
* Copyright 2004 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 required by applic... | vongosling/cglib-ext | src/proxy/net/sf/cglib/proxy/CallbackInfo.java | Java | apache-2.0 | 3,696 |
class ConstructorsConfiguration {
int x;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ConstructorsConfiguration(final int x) {
this.x = x;
}
}
class ConstructorsConfigurationExplicit {
int x;
@java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
@javax... | Arvoreen/lombok | test/transform/resource/after-delombok/ConstructorsConfiguration.java | Java | mit | 428 |
/*
* Copyright (c) 2015, 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... | FauxFaux/jdk9-jdk | make/src/classes/build/tools/cldrconverter/AliasEntry.java | Java | gpl-2.0 | 1,511 |
/*
* Copyright (c) 2016, 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... | FauxFaux/jdk9-jdk | test/sun/java2d/marlin/CrashPaintTest.java | Java | gpl-2.0 | 7,149 |
/*
* Copyright 2010-2012 Luca Molino (molino.luca--at--gmail.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... | cstamas/orientdb | object/src/main/java/com/orientechnologies/orient/object/enumerations/OObjectEnumLazyIterator.java | Java | apache-2.0 | 2,116 |
/*
* 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 ... | gdelafosse/incubator-tinkerpop | gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/wrapped/WrappedProperty.java | Java | apache-2.0 | 1,007 |
/*
* 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 ... | Nimco/sling | contrib/scripting/freemarker/src/test/java/org/apache/sling/scripting/freemarker/it/app/Page.java | Java | apache-2.0 | 1,696 |
package app.config;
import net.javapla.jawn.core.ApplicationConfig;
import net.javapla.jawn.core.api.ApplicationBootstrap;
import app.db.DbModule;
public class Bootstrap implements ApplicationBootstrap {
@Override
public void bootstrap(ApplicationConfig config) {
config.registerModules(new DbModule()... | grob/FrameworkBenchmarks | frameworks/Java/jawn/src/main/java/app/config/Bootstrap.java | Java | bsd-3-clause | 376 |
/*
* Copyright (c) 2008, 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 ... | rokn/Count_Words_2015 | testing/openjdk/jdk/src/share/classes/java/lang/invoke/FilterGeneric.java | Java | mit | 348,803 |
/*
* Copyright (c) 2014. Marshal Chen.
*/
package com.marshalchen.common.usefulModule.standuptimer.model;
import java.util.List;
public class MeetingStats {
private float numParticipants = 0;
private float individualStatusLength = 0;
private float meetingLength = 0;
private float quickestStatus = 0... | cymcsg/UltimateAndroid | deprecated/UltimateAndroidNormal/UltimateAndroid/src/com/marshalchen/common/usefulModule/standuptimer/model/MeetingStats.java | Java | apache-2.0 | 2,220 |
/*
* Copyright 2012-2019 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... | spring-projects/spring-boot | spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/Command.java | Java | apache-2.0 | 2,195 |
/*
* #%L
* BroadleafCommerce Common Libraries
* %%
* Copyright (C) 2009 - 2013 Broadleaf Commerce
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... | cloudbearings/BroadleafCommerce | common/src/main/java/org/broadleafcommerce/common/extensibility/jpa/SiteDiscriminatable.java | Java | apache-2.0 | 1,707 |
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | jbedorf/tensorflow | tensorflow/java/src/main/java/org/tensorflow/op/core/Gradients.java | Java | apache-2.0 | 5,361 |
/*
* 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 ... | hequn8128/flink | flink-runtime/src/main/java/org/apache/flink/runtime/iterative/convergence/WorksetEmptyConvergenceCriterion.java | Java | apache-2.0 | 1,774 |
/*
* Copyright 2017 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 | model/jpa/src/main/java/org/keycloak/models/jpa/entities/ClientAttributeEntity.java | Java | apache-2.0 | 3,880 |
/*
* 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 ... | kaituo/sedge | trunk/src/org/apache/pig/builtin/MapSize.java | Java | mit | 1,978 |
package cucumber.runtime.java.spring.commonglue;
import org.springframework.beans.factory.annotation.Autowired;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.When;
public class OneStepDef {
int cucumbers;
@Autowired
private ThirdStepDef thirdStepDef;
public ThirdStepDef getThirdSte... | paoloambrosio/cucumber-jvm | spring/src/test/java/cucumber/runtime/java/spring/commonglue/OneStepDef.java | Java | mit | 759 |
/*
* Copyright (c) 2006, 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 ... | frohoff/jdk8u-jdk | test/java/awt/dnd/Button2DragTest/Button2DragTest.java | Java | gpl-2.0 | 4,012 |
package com.hitherejoe.module_test_only.injection.component;
import com.hitherejoe.androidboilerplate.injection.component.ApplicationComponent;
import com.hitherejoe.module_test_only.injection.module.ApplicationTestModule;
import javax.inject.Singleton;
import dagger.Component;
@Singleton
@Component(modules = Appli... | tsdl2013/Android-Boilerplate | module-test-only/src/main/java/com/hitherejoe/module_test_only/injection/component/TestComponent.java | Java | gpl-3.0 | 408 |
package liquibase.database;
import static org.easymock.EasyMock.createMock;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.expectLastCall;
import static org.easymock.EasyMock.replay;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.ut... | foxel/liquibase | liquibase-core/src/test/java/liquibase/database/AbstractJdbcDatabaseTest.java | Java | apache-2.0 | 8,833 |
/*
* 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.sql.expression.function.scalar.date... | ern/elasticsearch | x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/function/scalar/datetime/DatePart.java | Java | apache-2.0 | 5,417 |
/*
* 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 ... | kaituo/sedge | trunk/contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/string/RegexMatch.java | Java | mit | 3,296 |
/*
Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
The MySQL Connector/J is licensed under the terms of the GPLv2
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most MySQL Connectors.
There are special exceptions to the terms and conditions of the GPLv2 as it is appl... | swankjesse/mysql-connector-j | src/com/mysql/jdbc/exceptions/jdbc4/MySQLSyntaxErrorException.java | Java | gpl-2.0 | 1,719 |
package test;
import org.testng.annotations.Test;
/**
* This used to create a StackOverflowError.
*/
public class StaticTest {
@Test
public void test() {
}
@Test
public static class InnerStaticClass extends StaticTest {
}
} | s2oBCN/testng | src/test/java/test/StaticTest.java | Java | apache-2.0 | 240 |
package com.marshalchen.common.uimodule.superlistview;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
import android.widget.GridView;
import android.widget.ListAdapter;
import com.marshalchen.common.uimodule.R;
/**
* Created by kent... | cymcsg/UltimateAndroid | deprecated/UltimateAndroidNormal/UltimateAndroidUi/src/com/marshalchen/common/uimodule/superlistview/SuperGridview.java | Java | apache-2.0 | 3,271 |
/*
* 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 ... | xsm110/Apache-Beam | sdks/java/core/src/test/java/org/apache/beam/sdk/coders/CoderTest.java | Java | apache-2.0 | 3,407 |
/*
* 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/common/io/stream/FilterStreamInput.java | Java | bsd-3-clause | 2,063 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.sql.qa.security;
import org.elasticsearch.com... | nknize/elasticsearch | x-pack/plugin/sql/qa/server/security/src/test/java/org/elasticsearch/xpack/sql/qa/security/CliSelectIT.java | Java | apache-2.0 | 871 |
// Copyright (C) 2009 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | gracefullife/gerrit | gerrit-server/src/main/java/com/google/gerrit/server/auth/ldap/LdapType.java | Java | apache-2.0 | 3,163 |
// Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
// Licensed under the Apache License, Version 2.0 (see LICENSE).
package org.pantsbuild.tools.jar;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.List;
import java.util.jar.Attributes.Name;
import ja... | cevaris/pants | src/java/org/pantsbuild/tools/jar/Main.java | Java | apache-2.0 | 17,907 |
public class Introduce {
void foo(String str) {
final Runnable s = new Runnable() {
};
}
} | asedunov/intellij-community | java/java-tests/testData/refactoring/introduceVariable/AfterSemicolon.after.java | Java | apache-2.0 | 115 |
/*
* 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 ... | elilevine/apache-phoenix | phoenix-core/src/main/java/org/apache/phoenix/compile/DropSequenceCompiler.java | Java | apache-2.0 | 2,605 |
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | mahaliachante/aws-sdk-java | aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ContainerFormat.java | Java | apache-2.0 | 1,480 |
/* MultiViewPortUI.java --
Copyright (C) 2005 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 (at your opt... | shaotuanchen/sunflower_exp | tools/source/gcc-4.2.4/libjava/classpath/javax/swing/plaf/multi/MultiViewportUI.java | Java | bsd-3-clause | 11,212 |
/* QtListPeer.java --
Copyright (C) 2005 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 (at your option... | shaotuanchen/sunflower_exp | tools/source/gcc-4.2.4/libjava/classpath/gnu/java/awt/peer/qt/QtListPeer.java | Java | bsd-3-clause | 5,015 |
/*
* Copyright (c) 2015-present, Parse, LLC.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.par... | Milstein/Parse-SDK-Android | Parse/src/test/java/com/parse/ParseRESTUserCommandTest.java | Java | bsd-3-clause | 5,681 |
/*
* 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.elasticsearch... | robin13/elasticsearch | x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/InitializePolicyException.java | Java | apache-2.0 | 759 |
/*
* Copyright 2015 The SageTV Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | JREkiwi/sagetv | java/sage/EPGDBPublic.java | Java | apache-2.0 | 8,567 |
/*
* 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/indexing/src/test/java/org/apache/ignite/internal/processors/query/IgniteCacheGroupsSqlDistributedJoinSelfTest.java | Java | apache-2.0 | 1,259 |
/*
* 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/action/admin/indices/rollover/RolloverAction.java | Java | apache-2.0 | 747 |
public class Res {
void bar(R r){}
interface R<S, T> {
void la(S s, T t);
}
private void validateStructuresCookie(Res cookie) {
cookie.bar(new <caret>R<String, Object>(){
final String param = "";
@Override
public void la(String s, Object o) {
... | jwren/intellij-community | java/java-tests/testData/refactoring/inplaceIntroduceConstant/correctConstantPosition.java | Java | apache-2.0 | 390 |
/*
* Copyright (c) 1998, 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 ... | rokn/Count_Words_2015 | testing/openjdk2/jdk/src/share/classes/com/sun/jdi/request/ThreadDeathRequest.java | Java | mit | 2,297 |
package org.keycloak.client.registration.cli.commands;
import org.jboss.aesh.cl.CommandDefinition;
import org.jboss.aesh.console.command.Command;
import org.jboss.aesh.console.command.CommandException;
import org.jboss.aesh.console.command.CommandResult;
import org.jboss.aesh.console.command.invocation.CommandInvocati... | keycloak/keycloak | integration/client-cli/client-registration-cli/src/main/java/org/keycloak/client/registration/cli/commands/ConfigInitialTokenCmd.java | Java | apache-2.0 | 7,501 |
/*
* 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... | njlawton/elasticsearch | core/src/test/java/org/elasticsearch/search/functionscore/RandomScoreFunctionIT.java | Java | apache-2.0 | 18,495 |
/*!
* Copyright 2010 - 2017 Hitachi Vantara. 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 ... | pminutillo/pentaho-kettle | plugins/pur/core/src/main/java/org/pentaho/di/repository/pur/ITransformer.java | Java | apache-2.0 | 1,208 |
package org.openni;
/**
* The Point3D object encapsulate 3 Dimension point
**/
public class Point3D<T> {
/**
* The Point3D constructor
*
* @param x coordinate of the point
* @param y coordinate of the point
* @param z coordinate of the point
**/
public Point3D(T x, T y, T z) {
this.mX = x;... | OpenNI/OpenNI2 | Wrappers/java/OpenNI.java/src/org/openni/Point3D.java | Java | apache-2.0 | 722 |
/*
* 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 ... | hequn8128/flink | flink-core/src/test/java/org/apache/flink/api/java/typeutils/runtime/TupleComparatorILDXC2Test.java | Java | apache-2.0 | 2,922 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | tkafalas/pentaho-kettle | core/src/main/java/org/pentaho/di/core/metrics/MetricsSnapshot.java | Java | apache-2.0 | 5,720 |
package me.chanjar.weixin.mp.api;
import com.google.inject.Inject;
import me.chanjar.weixin.common.exception.WxErrorException;
import me.chanjar.weixin.mp.bean.result.WxMpUser;
import me.chanjar.weixin.mp.bean.result.WxMpUserList;
import org.testng.Assert;
import org.testng.annotations.Guice;
import org.testng.annotat... | hkssitcloud/weixin-java-tools | weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/WxMpUserAPITest.java | Java | apache-2.0 | 2,146 |
/*
* Copyright (c) 2003, 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 ... | rokn/Count_Words_2015 | testing/openjdk/langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/SerializedFormBuilder.java | Java | mit | 22,648 |
/*************************GO-LICENSE-START*********************************
* Copyright 2014 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... | tomwscott/GoCD | plugin-infra/go-plugin-api/src/com/thoughtworks/go/plugin/api/material/packagerepository/PackageMaterialConfiguration.java | Java | apache-2.0 | 2,194 |
/*
* Copyright (C) 2010 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... | lshain-android-source/external-guava | guava-testlib/src/com/google/common/collect/testing/BaseComparable.java | Java | apache-2.0 | 1,415 |
/*
* Copyright (c) 2002, 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... | rokn/Count_Words_2015 | testing/openjdk/hotspot/agent/src/share/classes/sun/jvm/hotspot/asm/sparc/SPARCV9FMOVccInstruction.java | Java | mit | 1,829 |
/**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2006, 2008 The Sakai Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License"... | OpenCollabZA/sakai | common/import-parsers/common-cartridge/src/test/java/org/sakaiproject/importer/impl/CommonCartridgeTest.java | Java | apache-2.0 | 2,737 |
/**
* Classes that ensure web requests are received over required transport channels.
* <p>
* Most commonly used to enforce that requests are submitted over HTTP or HTTPS.
*/
package org.springframework.security.web.access.channel;
| panchenko/spring-security | web/src/main/java/org/springframework/security/web/access/channel/package-info.java | Java | apache-2.0 | 237 |
/*
* 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 n... | lburgazzoli/apache-activemq-artemis | artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/CloseListener.java | Java | apache-2.0 | 1,259 |
/*
Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
The MySQL Connector/J is licensed under the terms of the GPLv2
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most MySQL Connectors.
There are special exceptions to the terms and conditions of the GPLv2 as it is appl... | seanbright/mysql-connector-j | src/com/mysql/jdbc/util/TimezoneDump.java | Java | gpl-2.0 | 2,696 |
package org.andengine.util.adt.trie;
import android.util.SparseArray;
/**
* (c) Zynga 2012
*
* @author Nicolas Gramlich <ngramlich@zynga.com>
* @since 12:25:47 - 30.01.2012
*/
public class Trie implements ITrie {
// ===========================================================
// Constants
// ==================... | zcwk/AndEngine | src/org/andengine/util/adt/trie/Trie.java | Java | apache-2.0 | 4,735 |
class GeometricGraph<T extends Comparable<T>> {
public static <K extends Comparable<K>> GeometricGraph<K> createGraph(Point<K>... points) {
return null;
}
}
class Point<T1 extends Comparable<T1>> implements Comparable<Point<T1>> {
@Override public int compareTo(Point<T1> o) {
return 0;
}
static <M e... | idea4bsd/idea4bsd | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/performance/PolyMethodCallArgumentPassedToVarargs.java | Java | apache-2.0 | 1,584 |
/*
* 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... | JSDemos/android-sdk-20 | src/java/lang/InterruptedException.java | Java | apache-2.0 | 1,560 |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002-2009 Oracle. All rights reserved.
*
* $Id$
*/
package com.sleepycat.persist;
import com.sleepycat.db.DatabaseException;
import com.sleepycat.db.LockMode;
import com.sleepycat.util.keyrange.RangeCursor;
/**
* The cursor for a Su... | mxrrow/zaicoin | src/deps/db/java/src/com/sleepycat/persist/SubIndexCursor.java | Java | mit | 1,484 |
/*
* 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 ap... | rokn/Count_Words_2015 | testing/spring-boot-master/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/DataSourceInitializedPublisher.java | Java | mit | 3,794 |
/*
* 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/main/java/org/elasticsearch/indices/cache/filter/terms/TermsLookup.java | Java | apache-2.0 | 2,322 |
/**
* Copyright 2011, Big Switch Networks, Inc.
* Originally created by David Erickson, Stanford University
*
* 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:/... | zsavvas/MPTCP-aware-SDN | src/main/java/net/floodlightcontroller/routing/BroadcastTree.java | Java | apache-2.0 | 2,036 |
/*
* 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 ... | mourao666/cassandra-sim | src/java/org/apache/cassandra/serializers/TimestampSerializer.java | Java | apache-2.0 | 5,562 |
/**
* 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
*/... | theoweiss/openhab | bundles/persistence/org.openhab.persistence.influxdb08/java/org/openhab/persistence/influxdb08/internal/InfluxdbItem.java | Java | epl-1.0 | 1,274 |
package org.springframework.security.oauth2.provider.client;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
i... | 280455936/spring-security-oauth | spring-security-oauth2/src/test/java/org/springframework/security/oauth2/provider/client/JdbcClientDetailsServiceTests.java | Java | apache-2.0 | 12,900 |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | dsyang/buck | third-party/java/dx/src/com/android/annotations/NonNull.java | Java | apache-2.0 | 1,331 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | codek/pentaho-kettle | engine/src/org/pentaho/di/trans/step/StepAdapter.java | Java | apache-2.0 | 1,230 |
/**
* 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/. OpenMRS is also distributed under
* the terms of the Healthcare Disclaimer located at http://openmrs.org/license.... | joansmith/openmrs-core | api/src/main/java/org/openmrs/api/db/hibernate/search/LuceneQuery.java | Java | mpl-2.0 | 9,429 |
/*
* 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... | akosyakov/intellij-community | python/src/com/jetbrains/python/codeInsight/stdlib/PyStdlibUtil.java | Java | apache-2.0 | 2,013 |
package org.sakaiproject.section.api.coursemanagement;
import java.sql.Time;
public interface Meeting {
/**
* Gets the location where this CourseSection meets.
* @return
*/
public String getLocation();
/**
* Whether the CourseSection meets on Mondays.
*
* @return
*/
public boolean isMonday()... | marktriggs/nyu-sakai-10.4 | edu-services/sections-service/sections-api/src/java/org/sakaiproject/section/api/coursemanagement/Meeting.java | Java | apache-2.0 | 1,405 |
/*
* 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 | examples/src/main/java/org/apache/ignite/examples/datagrid/store/auto/package-info.java | Java | apache-2.0 | 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... | anoordover/camel | components/camel-schematron/src/test/java/org/apache/camel/component/schematron/processor/TemplatesFactoryTest.java | Java | apache-2.0 | 1,708 |
/***
Copyright (c) 2008-2012 CommonsWare, 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 w... | lexiaoyao20/cw-omnibus | Containers/Relative/src/com/commonsware/android/relative/RelativeLayoutDemo.java | Java | apache-2.0 | 949 |
/***
Copyright (c) 2008-2012 CommonsWare, 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 w... | suclike/cw-omnibus | Database/Constants/src/com/commonsware/android/constants/ConstantsBrowser.java | Java | apache-2.0 | 1,261 |
/*
* This is the source code of Telegram for Android v. 2.0.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-2014.
*/
package org.telegram.ui;
import android.annotation.SuppressLint;
import andro... | jovanzers/Telegram | TMessagesProj/src/main/java/org/telegram/ui/ChangePhoneActivity.java | Java | gpl-2.0 | 47,268 |
/*
* 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 ... | rokn/Count_Words_2015 | testing/openjdk2/jdk/src/share/classes/javax/swing/text/Position.java | Java | mit | 3,516 |
/*
* 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 ... | rohit2b/incubator-zeppelin | zeppelin-interpreter/src/main/java/org/apache/zeppelin/display/GUI.java | Java | apache-2.0 | 2,273 |
/*
* 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... | openweave/openweave-core | third_party/android/platform-libcore/android-platform-libcore/luni/src/main/java/java/security/cert/CRL.java | Java | apache-2.0 | 2,058 |
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Lee-Wills/-tv | mmd/library/src/main/java/com/google/android/exoplayer/util/VerboseLogUtil.java | Java | gpl-3.0 | 2,244 |
class Test {
public interface JTableColumn<E, J> {}
public interface JTableEntity<E> extends Comparable<E> {}
public class JTableModel<E extends JTableEntity<E>, J extends JTable, T extends Enum<T> & JTableColumn<E, J>> extends AbstractTableModel {
@Override public int getRowCount() {
return 0;
}
... | smmribeiro/intellij-community | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting8/IDEA107713.java | Java | apache-2.0 | 1,022 |
/*
* 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... | caot/intellij-community | platform/platform-impl/src/com/intellij/openapi/wm/impl/SideStack.java | Java | apache-2.0 | 2,458 |
/* Copyright (c) 2012 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... | rajeev781/solutions-mobile-shopping-assistant-backend-java | MobileAssistant-Tutorial/Phase1_Snippets/CheckIn.java | Java | apache-2.0 | 1,584 |
/*
Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | guiquanz/binnavi | src/main/java/com/google/security/zynamics/binnavi/debug/connection/packets/replyparsers/SingleStepParser.java | Java | apache-2.0 | 2,459 |
/*
* Copyright 2003-2013 Dave Griffith, Bas Leijdekkers
*
* 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 applicab... | vvv1559/intellij-community | plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/resources/JNDIResourceInspection.java | Java | apache-2.0 | 2,626 |
/*
* Copyright (c) 2011, 2012, 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/openjdk2/hotspot/agent/src/share/classes/sun/jvm/hotspot/ci/ciObjectFactory.java | Java | mit | 3,346 |
/**********************************************************************************
* $URL:$
* $Id:$
***********************************************************************************
*
* Copyright (c) 2008 The Sakai Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
... | ouit0408/sakai | content/content-metadata/api/src/java/org/sakaiproject/content/metadata/logic/MetadataService.java | Java | apache-2.0 | 1,899 |
/*
* 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 | platform/platform-impl/src/com/intellij/externalDependencies/ExternalDependenciesManager.java | Java | apache-2.0 | 1,636 |
/**
* Copyright (c) 2010-2015, 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... | Greblys/openhab | bundles/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/bus/HomematicBinding.java | Java | epl-1.0 | 6,517 |
/*
* Copyright (c) 2002, 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... | rokn/Count_Words_2015 | testing/openjdk2/langtools/test/tools/javac/DefiniteAssignment/T4721062a.java | Java | mit | 1,328 |
/***
* Copyright 2002-2010 jamod development 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 law... | paolodenti/openhab | bundles/binding/org.openhab.binding.modbus/src/main/java/net/wimpi/modbus/procimg/Register.java | Java | epl-1.0 | 1,599 |
/*
* 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... | caot/intellij-community | python/src/com/jetbrains/commandInterface/console/ProcessModeConsumer.java | Java | apache-2.0 | 1,382 |