code stringlengths 3 1.04M | repo_name stringlengths 5 109 | path stringlengths 6 306 | language stringclasses 1
value | license stringclasses 15
values | size int64 3 1.04M |
|---|---|---|---|---|---|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | kidaa/incubator-ignite | modules/core/src/test/java/org/apache/ignite/loadtests/lang/GridConcurrentLinkedHashMapBenchmark.java | Java | apache-2.0 | 7,435 |
package com.manning.hip.ch2;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.*;
import org.apache.hadoop.io.*;
import java.io.IOException;
public class SqoopSequenceFileReader {
public static void main(String... args) throws IOException {
read(new Path(args[0]));
}
public static v... | rayjim/hadoopinprac | src/main/java/com/manning/hip/ch2/SqoopSequenceFileReader.java | Java | apache-2.0 | 950 |
/*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | PedroRomanoBarbosa/libgdx | gdx/src/com/badlogic/gdx/graphics/glutils/FloatTextureData.java | Java | apache-2.0 | 3,644 |
/*
* 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/core/src/main/java/org/apache/ignite/internal/processors/platform/compute/PlatformCallable.java | Java | apache-2.0 | 1,746 |
/*
* 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 ... | vgmartinez/incubator-zeppelin | pig/src/main/java/org/apache/zeppelin/pig/PigInterpreter.java | Java | apache-2.0 | 5,030 |
/*
* 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/cache/client/ServerRefusedConnectionException.java | Java | apache-2.0 | 1,637 |
/*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* 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 above copyright
* notice, this... | andrewmcvearry/mille-bean | lwjgl/src/templates/org/lwjgl/opengles/OES_fbo_render_mipmap.java | Java | mit | 1,677 |
/*
* Copyright (c) 2008, 2018, 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/sun/java2d/DirectX/NonOpaqueDestLCDAATest/NonOpaqueDestLCDAATest.java | Java | gpl-2.0 | 8,011 |
package org.zarroboogs.keyboardlayout;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import org.zarroboogs.keyboardlayout.helper.KeyboardHelper;
public class KeyboardFrameLayout extends FrameLayout {
private KeyboardHelper mHelper;
public KeyboardFra... | JohnTsaiAndroid/iBeebo | app/src/main/java/org/zarroboogs/keyboardlayout/KeyboardFrameLayout.java | Java | gpl-3.0 | 1,145 |
package com.ardublock.translator.block.Duinoedu;
import com.ardublock.translator.Translator;
import com.ardublock.translator.block.TranslatorBlock;
import com.ardublock.translator.block.exception.SocketNullException;
public class Gps_Speed extends TranslatorBlock
{
public Gps_Speed(Long blockId, Translator translat... | karlTH/ardublock | src/main/java/com/ardublock/translator/block/DuinoEDU/Gps_Speed.java | Java | gpl-3.0 | 568 |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | fjy/druid | extensions/cassandra-storage/src/main/java/io/druid/storage/cassandra/CassandraDataSegmentPusher.java | Java | apache-2.0 | 3,792 |
/*
* Copyright 2016 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-datasource-mgmt/kie-wb-common-datasource-mgmt-api/src/main/java/org/kie/workbench/common/screens/datasource/management/type/DriverDefTypeDefinition.java | Java | apache-2.0 | 1,863 |
/*
* 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.security.user;
import org.ela... | robin13/elasticsearch | x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/LogstashSystemUser.java | Java | apache-2.0 | 821 |
/*
* 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.analytics.aggregations.metrics;
im... | GlenRSmith/elasticsearch | x-pack/plugin/analytics/src/test/java/org/elasticsearch/xpack/analytics/aggregations/metrics/HDRPreAggregatedPercentileRanksAggregatorTests.java | Java | apache-2.0 | 5,602 |
/*
* 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 ma... | os890/deltaspike-vote | deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/activation/DefaultClassDeactivator.java | Java | apache-2.0 | 2,345 |
/*
* 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 ... | lincoln-lil/flink | flink-connectors/flink-connector-jdbc/src/main/java/org/apache/flink/connector/jdbc/table/JdbcDynamicTableSink.java | Java | apache-2.0 | 5,013 |
/*
* 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 ... | mafulafunk/wicket | wicket-core/src/test/java/org/apache/wicket/page/persistent/disk/PageWindowManagerTest.java | Java | apache-2.0 | 7,941 |
/*
* 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 ... | anchela/jackrabbit-oak | oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/osgi/StandbyStoreServiceDeprecationErrorTest.java | Java | apache-2.0 | 1,713 |
/*
* 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... | dongaihua/highlight-elasticsearch | src/main/java/org/elasticsearch/indices/recovery/RecoveryFileChunkRequest.java | Java | apache-2.0 | 3,526 |
/*
* Copyright (C) 2012 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... | Ant-Droid/android_frameworks_base_OLD | wifi/java/android/net/wifi/p2p/nsd/WifiP2pDnsSdServiceInfo.java | Java | apache-2.0 | 7,514 |
/**
* Copyright 2009 The Apache Software Foundation
*
* 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... | zqxjjj/NobidaBase | target/hbase-0.94.9/hbase-0.94.9/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java | Java | apache-2.0 | 28,992 |
// "Wrap with block" "true"
class X {
void test(int x) {
switch(x) {
case 1 -> { /**/
;
}
}
}
} | siosio/intellij-community | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/wrapSwitchRuleStatements/afterTwoSemicolons.java | Java | apache-2.0 | 136 |
package org.wso2.carbon.ui;
public class DefaultAuthenticatorCredentials {
private String userName;
private String password;
public DefaultAuthenticatorCredentials(String userName, String password) {
super();
this.userName = userName;
this.password = password;
}
public St... | ravihansa3000/stratos | dependencies/org.wso2.carbon.ui/src/main/java/org/wso2/carbon/ui/DefaultAuthenticatorCredentials.java | Java | apache-2.0 | 441 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | trekawek/jackrabbit-oak | oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/ConflictException.java | Java | apache-2.0 | 3,284 |
/*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | jomarko/kie-wb-common | kie-wb-common-forms/kie-wb-common-forms-commons/kie-wb-common-forms-services/kie-wb-common-forms-backend-services/src/main/java/org/kie/workbench/common/forms/services/backend/BackendMetaDataEntryManager.java | Java | apache-2.0 | 1,340 |
/*
* Copyright (C) 2008 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | jemsnaban/zxing-android-embedded | zxing-android-embedded/src/com/journeyapps/barcodescanner/ViewfinderView.java | Java | apache-2.0 | 8,427 |
package cz.metacentrum.perun.core.api.exceptions.rt;
@SuppressWarnings("serial")
public class ExtSourceAlreadyAssignedRuntimeException extends EntityAlreadyAssignedRuntimeException {
private String userId;
public ExtSourceAlreadyAssignedRuntimeException() {
super();
}
public ExtSourceAlreadyAssignedRuntimeExce... | jirmauritz/perun | perun-base/src/main/java/cz/metacentrum/perun/core/api/exceptions/rt/ExtSourceAlreadyAssignedRuntimeException.java | Java | bsd-2-clause | 648 |
package nigelhenshaw.com.cameraintenttutorial;
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 ApplicationTe... | mfloresn90/AndroidStudioSources | camera_intent/app/src/androidTest/java/nigelhenshaw/com/cameraintenttutorial/ApplicationTest.java | Java | mit | 368 |
/*
* 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... | google/error-prone-javac | test/jdk/javadoc/doclet/testModules/moduleB/testpkgmdlB/TestClassInModuleB.java | Java | gpl-2.0 | 1,369 |
/*
* 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... | siosio/intellij-community | java/java-impl/src/com/intellij/testIntegration/createTest/MissedTestsDialog.java | Java | apache-2.0 | 4,627 |
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.util.KeyedLazyInstance;
import or... | siosio/intellij-community | platform/core-api/src/com/intellij/psi/PsiReferenceContributor.java | Java | apache-2.0 | 2,127 |
/**
* 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... | curso007/camel | components/camel-consul/src/main/java/org/apache/camel/component/consul/endpoint/ConsulKeyValueProducer.java | Java | apache-2.0 | 6,147 |
/*
* 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 ... | q474818917/solr-5.2.0 | solr/core/src/java/org/apache/solr/handler/loader/CSVLoaderBase.java | Java | apache-2.0 | 14,896 |
/*
* 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 | platform/lang-api/src/com/intellij/lang/WordCompletionElementFilter.java | Java | apache-2.0 | 881 |
package uk.co.chrisjenx.paralloid.transform;
/**
* Created by chris on 23/10/2013
* Project: Paralloid
*/
public class InvertTransformer implements Transformer {
@Override
public int[] scroll(float x, float y, float factor) {
return new int[]{(int) -(x * factor), (int) -(y * factor)};
}
}
| Apptitive/Apptitive-Content-Display | paralloid/src/main/java/uk/co/chrisjenx/paralloid/transform/InvertTransformer.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 ... | jasonstack/cassandra | src/java/org/apache/cassandra/cql3/CQL3Type.java | Java | apache-2.0 | 28,129 |
package org.jetbrains.plugins.textmate.bundles;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.plugins.textmate.Constants;
import org.jetbrains.plugins.textmate.plist.Plist;
import org.jetbrains.plugins.textmate.plist.PlistReader;
import java.io.File;
import ... | jwren/intellij-community | plugins/textmate/core/src/org/jetbrains/plugins/textmate/bundles/BundleFactory.java | Java | apache-2.0 | 1,683 |
// 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.debugger.settings;
import com.intellij.debugger.JavaDebuggerBundle;
import com.intellij.debugger.DebuggerManagerEx;
import com.intellij.debugger.impl.Debugge... | jwren/intellij-community | java/debugger/impl/src/com/intellij/debugger/settings/ThreadsViewConfigurable.java | Java | apache-2.0 | 2,889 |
package org.eclipse.php.core.tests.phar;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import java.util.Map;
import junit.extensions.TestSetup;
import jun... | chanakaudaya/developer-studio | jaggery/org.eclipse.php.core.tests/src/org/eclipse/php/core/tests/phar/PharFileTest.java | Java | apache-2.0 | 8,152 |
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi.impl.compiled;
import com.intellij.lang.java.lexer.JavaLexer;
import com.intellij.lang.java.parser.JavaParser;
import com.intellij.lang.java.parser.JavaP... | siosio/intellij-community | java/java-psi-impl/src/com/intellij/psi/impl/compiled/ClsParsingUtil.java | Java | apache-2.0 | 7,830 |
package com.android.volley.toolbox.multipart;
import java.io.IOException;
import java.io.OutputStream;
/**
* @author <a href="mailto:vit at cleverua.com">Vitaliy Khudenko</a>
*/
public interface Part {
public long getContentLength(Boundary boundary);
public void writeTo(final OutputStream out, Boundary boun... | glassLake/MyVolleyPlus | volleyplus/src/main/java/com/android/volley/toolbox/multipart/Part.java | Java | apache-2.0 | 348 |
// "Add missing subclasses to the permits clause" "true"
sealed class A permits C, D, F {}
final class D extends A {}
non-sealed class C extends A {}
sealed class F extends A {}
final class E extends F {} | ingokegel/intellij-community | java/java-tests/testData/inspection/fillPermitsList/afterSameFileInheritors.java | Java | apache-2.0 | 209 |
/*
* Copyright 2016 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... | jhrcek/kie-wb-common | kie-wb-common-screens/kie-wb-common-workbench/kie-wb-common-workbench-client/src/test/java/org/kie/workbench/common/workbench/client/configuration/popups/WorkbenchConfigurationPopupTest.java | Java | apache-2.0 | 3,444 |
// 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 ... | teamblueridge/gerrit | gerrit-server/src/main/java/com/google/gerrit/server/query/Predicate.java | Java | apache-2.0 | 4,917 |
/*******************************************************************************
* Copyright (c) 2000, 2013 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, an... | kaloyan-raev/che | plugins/plugin-java/che-plugin-java-ext-lang-server/src/test/java/org/eclipse/che/plugin/java/server/jdt/testplugin/StringAsserts.java | Java | epl-1.0 | 5,442 |
/*
* Copyright (c) 2004, 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 ... | FauxFaux/jdk9-jaxws | src/java.xml.bind/share/classes/com/sun/xml/internal/fastinfoset/util/ValueArrayResourceException.java | Java | gpl-2.0 | 1,525 |
/*
* Copyright (c) 2000, 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 ... | alexkasko/openjdk-icedtea7 | hotspot/agent/src/share/classes/sun/jvm/hotspot/oops/Field.java | Java | gpl-2.0 | 5,225 |
package net.minecraft.entity.passive;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.DamageSource;
import net.minecraft.world.World;
public abstract class EntityWaterMob extends EntityLiving implements IAnimals
{
public EntityWaterMob(World wor... | tomtomtom09/CampCraft | build/tmp/recompileMc/sources/net/minecraft/entity/passive/EntityWaterMob.java | Java | gpl-3.0 | 1,967 |
/*
* eXist Open Source Native XML Database
* Copyright (C) 2007-2009 The eXist Project
* http://exist-db.org
*
* This program 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 2
* o... | MjAbuz/exist | src/org/exist/xquery/functions/xmldb/FunXCollection.java | Java | lgpl-2.1 | 2,456 |
/*
* Forge Mod Loader
* Copyright (c) 2012-2013 cpw.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
... | MinecraftForge/FML | src/main/java/net/minecraftforge/fml/client/GuiAccessDenied.java | Java | lgpl-2.1 | 1,821 |
/*
* 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 ... | DariusX/camel | components/camel-twitter/src/test/java/org/apache/camel/component/twitter/HomeTimeLineDirectTest.java | Java | apache-2.0 | 1,247 |
/*
* Copyright 2017 MovingBlocks
*
* 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... | kaen/Terasology | engine/src/main/java/org/terasology/identity/storageServiceClient/LoginAction.java | Java | apache-2.0 | 1,875 |
package org.keycloak.testsuite.updaters;
import org.keycloak.admin.client.Keycloak;
import org.keycloak.admin.client.resource.ClientResource;
import org.keycloak.admin.client.resource.ClientsResource;
import org.keycloak.admin.client.resource.RealmResource;
import org.keycloak.representations.idm.ClientRepresentation;... | keycloak/keycloak | testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/updaters/ClientAttributeUpdater.java | Java | apache-2.0 | 5,540 |
/*
* Copyright 2015 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under t... | amckee23/drools | drools-core/src/main/java/org/drools/core/util/index/RightTupleIndexRangeRBTree.java | Java | apache-2.0 | 9,253 |
/* 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... | JSDemos/android-sdk-20 | src/org/apache/harmony/tests/java/nio/charset/CodingErrorActionTest.java | Java | apache-2.0 | 1,958 |
/*
* Copyright (C) 2008 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... | haikuowuya/android_system_code | src/android/net/MailTo.java | Java | apache-2.0 | 5,442 |
/*
* 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/vcs-impl/src/com/intellij/openapi/vcs/actions/VcsContextWrapper.java | Java | apache-2.0 | 5,464 |
/*
* Copyright 2015 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under t... | amckee23/drools | drools-compiler/src/test/java/org/drools/compiler/lang/dsl/ANTLRDSLTest.java | Java | apache-2.0 | 2,300 |
// "Change variable 'list' type to 'List<Integer>'" "true"
public class Test {
void foo() {
List<Integer> list = new List<>();
list.add(42);
}
}
class List<T> {
void add(T t){}
} | siosio/intellij-community | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/varTypeFromCall/afterBoxing.java | Java | apache-2.0 | 194 |
/*
* Copyright 2014-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | raviagarwal7/buck | test/com/facebook/buck/jvm/java/abi/StubJarIntegrationTest.java | Java | apache-2.0 | 4,579 |
/*
* 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... | allotria/intellij-community | plugins/google-app-engine/jps-plugin/testSource/org/jetbrains/jps/appengine/JpsAppEngineSerializationTest.java | Java | apache-2.0 | 1,808 |
/*
* 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/TraceQueryPlan.java | Java | apache-2.0 | 8,733 |
/*
* 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-stax/src/main/java/org/apache/camel/component/stax/StAXEndpoint.java | Java | apache-2.0 | 2,692 |
/*
* Copyright 2017 NAVER Corp.
*
* 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 ... | jaehong-kim/pinpoint | bootstraps/bootstrap-core/src/test/java/com/navercorp/pinpoint/bootstrap/instrument/matcher/operator/AndMatcherOperatorTest.java | Java | apache-2.0 | 1,625 |
/*
* Copyright 2014 NAVER Corp.
*
* 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 ... | gspandy/pinpoint | web/src/main/java/com/navercorp/pinpoint/web/service/map/AcceptApplicationLocalCache.java | Java | apache-2.0 | 2,780 |
/*
* 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 ... | wildwind/incubator-rocketmq | tools/src/test/java/org/apache/rocketmq/tools/monitor/DefaultMonitorListenerTest.java | Java | apache-2.0 | 3,515 |
/*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | riversand963/alluxio | keyvalue/hadoop/src/main/java/alluxio/hadoop/mapreduce/KeyValueOutputFormat.java | Java | apache-2.0 | 3,846 |
/*
* 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-api/src/main/java/org/apache/camel/spi/ClassResolver.java | Java | apache-2.0 | 5,030 |
/*
* 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 ... | DariusX/camel | components/camel-aws-eks/src/main/java/org/apache/camel/component/aws/eks/EKSOperations.java | Java | apache-2.0 | 955 |
/*
* Copyright (c) 1996, 2006, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | YouDiSN/OpenJDK-Research | jdk9/jdk/src/java.base/share/classes/java/util/zip/CheckedInputStream.java | Java | gpl-2.0 | 4,089 |
package com.taobao.oceanbase.network.packet;
import java.nio.ByteBuffer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.taobao.oceanbase.vo.inner.PacketCode;
public abstract class BaseResponsePacket extends BasePacket {
private static final Log log = Lo... | wenshao/oceanbase | src/client/java/src/main/java/com/taobao/oceanbase/network/packet/BaseResponsePacket.java | Java | gpl-2.0 | 1,462 |
package com.zhy.view;
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 ApplicationTest()
{
super(... | 0359xiaodong/MixtureTextView | mixturetextview/src/androidTest/java/com/zhy/view/ApplicationTest.java | Java | apache-2.0 | 347 |
/*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | wso2/carbon-identity-framework | components/user-store/org.wso2.carbon.user.cassandra/src/main/java/org/wso2/carbon/user/cassandra/Util.java | Java | apache-2.0 | 5,005 |
/**
* 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... | baibaichen/eagle | eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/java/org/apache/eagle/alert/engine/utils/CompressionUtilsTest.java | Java | apache-2.0 | 1,748 |
/*
* 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-elasticsearch-bundle/nifi-elasticsearch-processors/src/test/java/org/apache/nifi/processors/elasticsearch/ITScrollElasticsearchHttp.java | Java | apache-2.0 | 2,540 |
/*
* 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... | franz1981/activemq-artemis | artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalBase.java | Java | apache-2.0 | 6,833 |
package org.wildfly.swarm.topology;
import javax.ws.rs.Path;
/**
* @author Bob McWhirter
*/
@Path("/")
public class MyResource {
}
| swarmsandbox/wildfly-swarm | testsuite/testsuite-topology-api/src/test/java/org/wildfly/swarm/topology/MyResource.java | Java | apache-2.0 | 136 |
package org.keycloak.testsuite.broker;
import java.util.List;
import java.util.Map;
import static org.keycloak.testsuite.broker.BrokerTestConstants.IDP_OIDC_ALIAS;
import static org.keycloak.testsuite.broker.BrokerTestConstants.IDP_OIDC_PROVIDER_ID;
import static org.keycloak.testsuite.broker.BrokerTestConstants.USER... | keycloak/keycloak | testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/broker/KcOidcBrokerLoginHintTest.java | Java | apache-2.0 | 5,072 |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... | lmazuel/autorest | src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodyarray/models/ErrorException.java | Java | mit | 1,451 |
/**
* 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.... | Snickermicker/openhab2 | bundles/org.openhab.binding.neeo/src/main/java/org/openhab/binding/neeo/internal/UidUtils.java | Java | epl-1.0 | 4,899 |
/*
* This file is part of lanterna (http://code.google.com/p/lanterna/).
*
* lanterna 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, or
* (at your option) any la... | valery-barysok/lanterna | src/main/java/com/googlecode/lanterna/gui2/InteractableLookupMap.java | Java | lgpl-3.0 | 11,165 |
/*
* Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | panchenko/spring-security | test/src/main/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessors.java | Java | apache-2.0 | 30,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 may ... | samaitra/ignite | modules/core/src/test/java/org/apache/ignite/internal/processors/cache/context/IgniteCacheAbstractExecutionContextTest.java | Java | apache-2.0 | 3,551 |
/*
* 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-parser/src/main/java/com/facebook/presto/sql/tree/DereferenceExpression.java | Java | apache-2.0 | 3,433 |
package org.hamcrest.collection;
import java.util.Arrays;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeMatcher;
public class IsArray<T> extends TypeSafeMatcher<T[]> {
private final Matcher<T>[] elementMatchers;
public IsArray(Matcher<T>[] elementMatchers) {
... | android-ia/platform_external_hamcrest | library/src/org/hamcrest/collection/IsArray.java | Java | bsd-3-clause | 1,762 |
/*
* 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 ma... | LightGuard/incubator-deltaspike | deltaspike/modules/data/api/src/main/java/org/apache/deltaspike/data/api/EntityManagerDelegate.java | Java | apache-2.0 | 5,135 |
/*
* 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 ... | luxiaoming/GearVRf | GVRf/Framework/contrib/commons-math3-3.2-src/src/main/java/org/apache/commons/math3/optim/linear/LinearConstraintSet.java | Java | apache-2.0 | 2,152 |
// 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.execution.jshell.protocol;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* @author Eugene Zhuravlev
*/
public class... | siosio/intellij-community | java/execution/jshell-protocol/src/com/intellij/execution/jshell/protocol/Response.java | Java | apache-2.0 | 821 |
/**
* 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/sampleapp/src/it/java/edu/sampleu/kim/api/reference/ReferenceAddressTypeAft.java | Java | apache-2.0 | 3,525 |
/*
* 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/test/java/org/apache/jena/ontology/impl/TestOntology.java | Java | apache-2.0 | 8,279 |
package org.zstack.test.deployer;
import org.zstack.header.cluster.ClusterInventory;
import org.zstack.header.host.HostInventory;
import org.zstack.test.ApiSenderException;
import org.zstack.test.deployer.schema.DeployerConfig;
import org.zstack.test.deployer.schema.SimulatorHostConfig;
import java.util.List;
public... | zstackorg/zstack | test/src/test/java/org/zstack/test/deployer/SimulatorHostDeployer.java | Java | apache-2.0 | 1,519 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | CesarPantoja/jena | jena-core/src/test/java/org/apache/jena/reasoner/test/TestRDFSReasoners.java | Java | apache-2.0 | 11,241 |
/*
* 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... | achow/elasticsearch | core/src/main/java/org/elasticsearch/repositories/Repository.java | Java | apache-2.0 | 5,150 |
/**
* 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 requ... | geothomasp/kualico-rice-kc | rice-middleware/core/impl/src/main/java/org/kuali/rice/core/impl/config/property/Param.java | Java | apache-2.0 | 2,434 |
/*
Copyright 2011 NativeDriver committers
Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... | leandog/nativedriver | iphone/Client/src/com/google/iphone/testing/nativedriver/client/ClassNames.java | Java | apache-2.0 | 1,401 |
/**
* $RCSfile$
* $Revision: 1217 $
* $Date: 2005-04-11 18:11:06 -0300 (Mon, 11 Apr 2005) $
*
* Copyright (C) 2004-2008 Jive Software. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... | GinRyan/OpenFireMODxmppServer | src/java/org/jivesoftware/openfire/user/UserManager.java | Java | apache-2.0 | 19,989 |
/**
* Copyright 2013 Florian Schmaus
*
* 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... | mcaprari/smack | source/org/jivesoftware/smack/compression/JzlibInputOutputStream.java | Java | apache-2.0 | 2,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 may ... | topicusonderwijs/wicket | wicket-devutils/src/main/java/org/apache/wicket/devutils/DevelopmentUtilitiesNotEnabledException.java | Java | apache-2.0 | 1,944 |
/*
* 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/test/java/com/vaadin/tests/components/popupview/PopupViewCaptionTest.java | Java | apache-2.0 | 1,513 |
/* MACHINE GENERATED FILE, DO NOT EDIT */
package org.lwjgl.opengles;
import org.lwjgl.*;
import java.nio.*;
public final class NVFence {
/**
* Accepted by the <condition> parameter of SetFenceNV:
*/
public static final int GL_ALL_COMPLETED_NV = 0x84F2;
/**
* Accepted by the <pname... | andrewmcvearry/mille-bean | lwjgl/src/generated/org/lwjgl/opengles/NVFence.java | Java | mit | 2,260 |