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...
throughsky/lywebank
hbase-server/src/test/java/org/apache/hadoop/hbase/master/snapshot/TestSnapshotLogCleaner.java
Java
apache-2.0
3,320
/* * 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...
robin13/elasticsearch
server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregator.java
Java
apache-2.0
9,931
/* * Copyright 2012 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
pleacu/jbpm
jbpm-human-task/jbpm-human-task-core/src/main/java/org/jbpm/services/task/identity/LDAPUserInfoImpl.java
Java
apache-2.0
6,651
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
apurtell/hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/allocationfile/AllocationFileQueue.java
Java
apache-2.0
9,054
package me.prettyprint.cassandra.model.thrift; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.Map; import me.prettyprint.cassandra.model.AbstractSliceQuery; import me.prettyprint.cassandra.model.KeyspaceOperationCallback; import me.prettyprint...
hector-client-org/hector-exp
hector-core/src/main/java/me/prettyprint/cassandra/model/thrift/ThriftMultigetSuperSliceQuery.java
Java
apache-2.0
3,840
/* * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
ThiagoGarciaAlves/intellij-community
python/src/com/jetbrains/python/findUsages/PyFindUsagesOptions.java
Java
apache-2.0
1,881
/* * 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...
mnovak1/activemq-artemis
tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/MessageProducerTest.java
Java
apache-2.0
25,364
/* * Copyright 2012, Google Inc. * 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 list of conditio...
Unixcision/show-java
app/src/main/java/org/jf/dexlib2/dexbacked/DexBackedMethod.java
Java
apache-2.0
9,060
/* * 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 ...
Vansee/RocketMQ
remoting/src/main/java/org/apache/rocketmq/remoting/netty/FileRegionEncoder.java
Java
apache-2.0
2,896
/* * Copyright 2009-2010 WSO2, Inc. (http://wso2.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
chanakaudaya/developer-studio
esb/org.wso2.developerstudio.eclipse.esb/src/org/wso2/developerstudio/eclipse/esb/impl/RegistryKeyPropertyImpl.java
Java
apache-2.0
9,325
/* * 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 ...
hongyuhong/flink
flink-connectors/flink-connector-kinesis/src/test/java/org/apache/flink/streaming/connectors/kinesis/testutils/KinesisEventsGeneratorProducerThread.java
Java
apache-2.0
4,277
/* * 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...
b-slim/druid
processing/src/test/java/io/druid/collections/spatial/search/PolygonBoundTest.java
Java
apache-2.0
3,652
/* * Licensed to DuraSpace under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. * * DuraSpace licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file excep...
dbernstein/fcrepo4
fcrepo-http-commons/src/main/java/org/fcrepo/http/commons/exceptionhandlers/WildcardExceptionMapper.java
Java
apache-2.0
2,576
/* * Copyright (C) 2011 Thomas Akehurst * * 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...
doughertym/wiremock
src/main/java/com/github/tomakehurst/wiremock/jetty6/ActiveSocket.java
Java
apache-2.0
1,042
package net.srcdemo.ui; import com.trolltech.qt.gui.QApplication; import com.trolltech.qt.gui.QBrush; import com.trolltech.qt.gui.QColor; import com.trolltech.qt.gui.QLinearGradient; import com.trolltech.qt.gui.QPaintEvent; import com.trolltech.qt.gui.QPainter; import com.trolltech.qt.gui.QPainter.RenderHint; import c...
slav9nin/srcdemo2
src/net/srcdemo/ui/QGaussianCurve.java
Java
bsd-2-clause
2,838
package de.lessvoid.nifty.examples.lwjgl.defaultcontrolsxml; import de.lessvoid.nifty.examples.defaultcontrolsxml.TextfieldExample; import de.lessvoid.nifty.examples.lwjgl.NiftyExampleLoaderLWJGL; /** * @author Aaron Mahan <aaron@forerunnergames.com> */ public class TextfieldDemoMain { public static void ma...
Ryszard-Trojnacki/nifty-gui
nifty-examples-lwjgl/src/main/java/de/lessvoid/nifty/examples/lwjgl/defaultcontrolsxml/TextfieldDemoMain.java
Java
bsd-2-clause
409
/* * Copyright (c) 2012, NTT Multimedia Communications Laboratories, Inc. and Koushik Sen * * 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 must re...
handysama/janala2-csit6910
src/tests/Sample3.java
Java
bsd-2-clause
1,957
/* * Copyright (C) 2012-2015 Typesafe Inc. <http://www.typesafe.com> */ package scala.runtime.java8; @FunctionalInterface public interface JFunction0$mcV$sp extends scala.Function0, java.io.Serializable { void apply$mcV$sp(); default Object apply() { apply$mcV$sp(); return scala.runtime.BoxedUnit.UNIT; } ...
felixmulder/scala
src/library/scala/runtime/java8/JFunction0$mcV$sp.java
Java
bsd-3-clause
322
/** * Copyright (c) 2013-2015, jcabi.com * 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 must retain the above * copyright notice, this list of condition...
cvrebert/typed-github
src/main/java/com/jcabi/github/mock/MkCommit.java
Java
bsd-3-clause
4,137
package com.frostwire.jlibtorrent.alerts; import com.frostwire.jlibtorrent.swig.peer_blocked_alert; /** * This alert is posted when an incoming peer connection, or a peer that's about to be added * to our peer list, is blocked for some reason. This could be any of: * <p/> * * the IP filter * * i2p mixed mode res...
Teg79/Wave
src/main/java/com/frostwire/jlibtorrent/alerts/PeerBlockedAlert.java
Java
mit
1,857
/** * Copyright (c) 2010-2018 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 */...
andiikaa/openhab2
addons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/model/HmChannel.java
Java
epl-1.0
6,591
/** * Flow related algorithms. */ package org.jgrapht.alg.flow;
WorstCase00/jgrapht
jgrapht-core/src/main/java/org/jgrapht/alg/flow/package-info.java
Java
epl-1.0
66
/* This file is part of Cyclos (www.cyclos.org). A project of the Social Trade Organisation (www.socialtrade.org). Cyclos 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 of th...
zbanga/open-cyclos
src/nl/strohalm/cyclos/controls/accounts/paymentfilters/EditPaymentFilterAction.java
Java
gpl-2.0
7,792
package gfx; import javax.microedition.lcdui.*; import javax.microedition.midlet.*; import javax.microedition.lcdui.game.Sprite; public class DrawRegionTransRot180AnchorTopLeft extends MIDlet { private Display display; class TestCanvas extends Canvas { protected void paint(Graphics screenG) { ...
mykmelez/pluotsorbet
tests/gfx/DrawRegionTransRot180AnchorTopLeft.java
Java
gpl-2.0
1,215
package org.checkerframework.framework.type; import org.checkerframework.framework.type.AnnotatedTypeMirror.AnnotatedArrayType; import org.checkerframework.framework.type.AnnotatedTypeMirror.AnnotatedExecutableType; import javax.lang.model.element.Element; import javax.lang.model.element.ElementKind; import javax.lan...
biddyweb/checker-framework
framework/src/org/checkerframework/framework/type/SyntheticArrays.java
Java
gpl-2.0
1,831
/* * IdeaVim - Vim emulator for IDEs based on the IntelliJ platform * Copyright (C) 2003-2014 The IdeaVim authors * * This program 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 of the ...
rce/ideavim
src/com/maddyhome/idea/vim/action/copy/PutVisualTextNoIndentAction.java
Java
gpl-2.0
2,205
/* * 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 ...
axDev-JDK/jaxws
src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLPortTypeImpl.java
Java
gpl-2.0
2,896
/* * Copyright (c) 1999, 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 ...
olivier-pitton/lang
src/share/classes/com/sun/tools/javac/jvm/Gen.java
Java
gpl-2.0
101,114
/* * Pixel Dungeon * Copyright (C) 2012-2014 Oleg Dolya * * This program 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 3 of the License, or * (at your option) any later version. * * ...
ultiferrago/shattered-pixel-dungeon
src/com/shatteredpixel/shatteredpixeldungeon/Rankings.java
Java
gpl-3.0
7,007
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
coding0011/elasticsearch
server/src/main/java/org/elasticsearch/index/mapper/Mapper.java
Java
apache-2.0
6,526
/* * Copyright (c) 2005-2009, 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.ap...
thusithathilina/carbon-commons
components/event/org.wso2.carbon.event.ws/src/main/java/org/wso2/carbon/event/ws/internal/receivers/CarbonEventingMessageReceiver.java
Java
apache-2.0
22,262
/** * */package org.nutz.dao.impl.jdbc.sqlserver2012;
nutzam/nutz
src/org/nutz/dao/impl/jdbc/sqlserver2012/package-info.java
Java
apache-2.0
57
/* * 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 ...
tmaret/sling
bundles/extensions/validation/core/src/test/java/org/apache/sling/validation/impl/it/tests/ValidationServiceIT.java
Java
apache-2.0
6,357
/* * 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 ...
akuznetsov-gridgain/ignite
modules/hibernate/src/main/java/org/apache/ignite/cache/hibernate/HibernateRegionFactory.java
Java
apache-2.0
8,854
/* * 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...
romartin/kie-wb-common
kie-wb-common-dmn/kie-wb-common-dmn-client/src/main/java/org/kie/workbench/common/dmn/client/editors/types/listview/confirmation/WarningMessage.java
Java
apache-2.0
1,962
/* * 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...
kjniemi/activemq-artemis
artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/AddressMapVisitor.java
Java
apache-2.0
944
/* * 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 ...
cloudera-labs/phoenix
phoenix-core/src/it/java/org/apache/phoenix/end2end/TenantSpecificTablesDDLIT.java
Java
apache-2.0
29,715
/* * Copyright 2015 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 applica...
benmccann/pdfbox
pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentNameDestinationDictionary.java
Java
apache-2.0
2,877
/* * 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 ...
instaclustr/cassandra
test/unit/org/apache/cassandra/utils/concurrent/AbstractTestPromise.java
Java
apache-2.0
3,997
package test.cdi.beans_e; import org.osgi.service.cdi.annotations.ComponentScoped; @ComponentScoped public class ComponentScopedBean { }
psoreide/bnd
biz.aQute.bndlib.tests/test/test/cdi/beans_e/ComponentScopedBean.java
Java
apache-2.0
140
/* * 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...
jwren/intellij-community
plugins/InspectionGadgets/testsrc/com/siyeh/ig/controlflow/TrivialIfInspectionTest.java
Java
apache-2.0
5,015
/* * Copyright Beijing 58 Information Technology Co.,Ltd. * * 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 y...
zhangzuoqiang/Oceanus
oceanus-all/oceanus-exchange/oceanus-exchange-jdbc/src/main/java/com/bj58/oceanus/exchange/check/Checker.java
Java
apache-2.0
1,219
package ca.uhn.fhir.model.dstu.resource; /* * #%L * HAPI FHIR Structures - DSTU1 (FHIR v0.80) * %% * Copyright (C) 2014 - 2015 University Health Network * %% * 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 c...
dhf0820/hapi-fhir-1.2
hapi-fhir-structures-dstu/src/main/java/ca/uhn/fhir/model/dstu/resource/Binary.java
Java
apache-2.0
2,871
// Copyright 2000-2021 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 git4idea.util; import com.intellij.notification.Notification; import com.intellij.notification.NotificationAction; import com.intellij.notification.NotificationListener; ...
smmribeiro/intellij-community
plugins/git4idea/src/git4idea/util/GitUntrackedFilesHelper.java
Java
apache-2.0
11,013
/* * Copyright 2012-2021 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...
mdeinum/spring-boot
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-session-redis/src/main/java/smoketest/session/redis/SampleSessionRedisApplication.java
Java
apache-2.0
1,078
// Copyright (c) 2003-present, Jodd Team (http://jodd.org) // 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 must retain the above copyright notice, // th...
javachengwc/jodd
jodd-bean/src/test/java/jodd/typeconverter/SqlTimestampConverterTest.java
Java
bsd-2-clause
3,939
package cz.metacentrum.perun.audit.events.AttributesManagerEvents; import cz.metacentrum.perun.audit.events.AuditEvent; import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.Member; import cz.metacentrum.perun.core.api.Resource; /** * @author Vojtech Sassmann <vojtech.sassmann@gmail.co...
zlamalp/perun
perun-base/src/main/java/cz/metacentrum/perun/audit/events/AttributesManagerEvents/AttributeSetForResourceAndMember.java
Java
bsd-2-clause
1,167
package test.prefuse.data; import junit.framework.Test; import junit.framework.TestSuite; public class All_PrefuseData_Tests { public static Test suite() { TestSuite suite = new TestSuite("Test for test.prefuse.data"); //$JUnit-BEGIN$ suite.addTestSuite(VisualItemTableTest.class...
saury07/Technomap
test/test/prefuse/data/All_PrefuseData_Tests.java
Java
bsd-3-clause
573
/* * 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/test/java/org/springframework/boot/autoconfigure/jdbc/metadata/HikariDataSourcePoolMetadataTests.java
Java
mit
1,876
package io.card.payment.i18n.locales; import java.util.HashMap; import java.util.Map; import io.card.payment.i18n.StringKey; import io.card.payment.i18n.SupportedLocale; // Class autogenerated! Do not modify. // Generated on 2014-12-10 11:29:25.179573 via script: // /Users/twhipple/Documents/buffalo/lib-i18n/i18n/s...
alex-schwartzman/card.io-Android-source
card.io/src/main/java/io/card/payment/i18n/locales/LocalizedStringsZH_HANS.java
Java
mit
2,462
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi * * 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 l...
pantheon-systems/jenkins
remoting/src/main/java/hudson/remoting/Future.java
Java
mit
1,465
/** * Copyright (c) 2014,2019 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is av...
Snickermicker/smarthome
bundles/config/org.eclipse.smarthome.config.core.test/src/test/java/org/eclipse/smarthome/config/core/status/ConfigStatusInfoTest.java
Java
epl-1.0
6,222
/* * Copyright (c) 2014 Cisco Systems, Inc. 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....
aryantaheri/monitoring-controller
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/example/ExampleConfigParamsImpl.java
Java
epl-1.0
724
/* * Copyright (c) 2004, 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 ...
greghaskins/openjdk-jdk7u-jdk
src/share/classes/sun/tools/jconsole/LabeledComponent.java
Java
gpl-2.0
3,336
/* * Copyright (C) July 2014 Rafael Aznar * * This program 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 * of the License, or (at your option) any later version. * * This program is ...
jassman/ausiasYield2014_2014
src/main/java/net/daw/service/generic/specific/implementation/OperacionServiceGenSpImpl.java
Java
gpl-2.0
1,396
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.sun.squawk.test; import java.io.*; import javax.microedition.io.*; /** * Connect to an EchoServer, send data and verify data comes back... * @author dw29446 */ public class EchoServerTest implements Run...
squawk-mirror/squawk
tests/TestEcho/src/com/sun/squawk/test/EchoServerTest.java
Java
gpl-2.0
2,835
/* * Copyright (c) 1998-2012 Caucho Technology -- all rights reserved * * This file is part of Resin(R) Open Source * * Each copy or derived work must preserve the copyright notice and this * notice unmodified. * * Resin Open Source is free software; you can redistribute it and/or modify * it under the terms o...
dwango/quercus
src/main/java/com/caucho/loader/module/ArtifactRepository.java
Java
gpl-2.0
5,540
package org.ovirt.engine.extensions.aaa.builtin.kerberosldap; public class LdapBrokerImpl extends LdapBrokerBase { @Override protected String getBrokerType() { return "Ldap"; } }
jtux270/translate
ovirt/backend/manager/modules/builtin-extensions/src/main/java/org/ovirt/engine/extensions/aaa/builtin/kerberosldap/LdapBrokerImpl.java
Java
gpl-3.0
200
/* * The Kuali Financial System, a comprehensive financial management system for higher education. * * Copyright 2005-2014 The Kuali Foundation * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Softw...
ua-eas/ua-kfs-5.3
work/src/org/kuali/kfs/coa/identity/KfsKimRoleResponsibilityAction.java
Java
agpl-3.0
3,448
/* * 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 ...
ronny-macmaster/hadoop
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/TestSSEConfiguration.java
Java
apache-2.0
7,480
/** * $RCSfile$ * $Revision: 3144 $ * $Date: 2005-12-01 14:20:11 -0300 (Thu, 01 Dec 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 obtain a c...
wudingli/openfire
src/plugins/fastpath/src/java/org/jivesoftware/xmpp/workgroup/spi/BasicRequestFilterFactory.java
Java
apache-2.0
1,090
/* * 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...
miniway/presto
presto-blackhole/src/main/java/io/prestosql/plugin/blackhole/BlackHoleInsertTableHandle.java
Java
apache-2.0
1,349
/* * 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 i...
codeaudit/optaplanner
optaplanner-examples/src/main/java/org/optaplanner/examples/travelingtournament/domain/Team.java
Java
apache-2.0
1,550
/** * * Copyright (c) Microsoft and contributors. 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 r...
flydream2046/azure-sdk-for-java
service-management/azure-svc-mgmt-network/src/main/java/com/microsoft/windowsazure/management/network/models/GatewayResetSharedKeyParameters.java
Java
apache-2.0
1,465
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
googleapis/google-api-java-client-services
clients/google-api-services-dfareporting/v3.4/1.29.2/com/google/api/services/dfareporting/model/AccountUserProfile.java
Java
apache-2.0
14,511
package utils; /** * Copyright (c) 2013, Inmite s.r.o. (www.inmite.eu). All rights reserved. * <p/> * This source code can be used only for purposes specified by the given license contract * signed by the rightful deputy of Inmite s.r.o. This source code can be used only * by the owner of the license. * <p/> * ...
liwangdong/android-selector-chapek
src/utils/Log.java
Java
apache-2.0
664
// 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.ui.components.fields.valueEditors; import com.intellij.openapi.application.ApplicationBundle; import com.intellij.openapi.util.InvalidDataException; import c...
goodwinnk/intellij-community
platform/platform-api/src/com/intellij/ui/components/fields/valueEditors/IntegerValueEditor.java
Java
apache-2.0
2,277
/** * 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...
pombredanne/brisk-hadoop-common
src/test/org/apache/hadoop/hdfs/AppendTestUtil.java
Java
apache-2.0
3,913
/** * 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...
JingchengDu/hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/api/records/impl/pb/ApplicationAttemptReportPBImpl.java
Java
apache-2.0
9,015
/* * Copyright 2001-2013 Stephen Colebourne * * 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...
likecool21/joda-time-2.3-Testing
src/test/java/org/joda/time/TestLocalTime_Constructors.java
Java
apache-2.0
32,114
/** * * Copyright (c) Microsoft and contributors. 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 r...
flydream2046/azure-sdk-for-java
service-management/azure-svc-mgmt-compute/src/main/java/com/microsoft/windowsazure/management/compute/models/ResourceExtensionSubStatusTypes.java
Java
apache-2.0
1,259
package org.jgroups.util; /** * Subclass of {@link UUID} which adds a string as payload. An instance of this can be fed to * {@link org.jgroups.JChannel#addAddressGenerator(org.jgroups.stack.AddressGenerator)}, with the address generator * creating PayloadUUIDs. * @author Bela Ban * @deprecated Use {@link Extende...
tekcomms/JGroups
src/org/jgroups/util/PayloadUUID.java
Java
apache-2.0
1,292
/* * 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-arq/src/main/java/org/apache/jena/sparql/engine/iterator/QueryIterPlainWrapper.java
Java
apache-2.0
2,600
/* Generated by camel build tools - do NOT edit this file! */ package org.apache.camel.component.grape; import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.spi.ExtendedPropertyConfigurerGetter; import org.apache.camel.spi.PropertyConfigurerGetter; import org.apache.camel.spi.Configurer...
nikhilvibhav/camel
components/camel-grape/src/generated/java/org/apache/camel/component/grape/GrapeEndpointConfigurer.java
Java
apache-2.0
1,824
/* * 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 ...
newrelic-forks/cassandra
src/java/org/apache/cassandra/cql3/statements/CQL3CasRequest.java
Java
apache-2.0
11,499
/* * 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...
ern/elasticsearch
server/src/test/java/org/elasticsearch/rest/RestHttpResponseHeadersTests.java
Java
apache-2.0
6,347
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
masaki-yamakawa/geode
geode-core/src/integrationTest/java/org/apache/geode/management/internal/security/JavaRmiServerNameTest.java
Java
apache-2.0
1,591
// Copyright 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.content_shell_apk; import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout; import android.content.ComponentName; im...
js0701/chromium-crosswalk
content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java
Java
bsd-3-clause
10,581
/* SheetCollate.java -- Copyright (C) 2004, 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 ...
shaotuanchen/sunflower_exp
tools/source/gcc-4.2.4/libjava/classpath/javax/print/attribute/standard/SheetCollate.java
Java
bsd-3-clause
4,304
package org.motechproject.openmrs19.resource.impl; import com.google.gson.JsonElement; import org.junit.Before; import org.junit.Test; import org.mockito.ArgumentCaptor; import org.mockito.Mockito; import org.mockito.MockitoAnnotations; import org.motechproject.openmrs19.exception.HttpException; import org.motechproje...
pmuchowski/modules
openmrs-19/src/test/java/org/motechproject/openmrs19/resource/impl/PatientResourceImplTest.java
Java
bsd-3-clause
3,557
package edu.gemini.shared.gui.text; import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; import javax.swing.text.Document; /** * A DocumentListener that makes it easier to listen for text changes on * JTextComponents. Without this class, listening for text change events * involves im...
arturog8m/ocs
bundle/edu.gemini.shared.gui/src/main/java/edu/gemini/shared/gui/text/AbstractDocumentListener.java
Java
bsd-3-clause
1,604
/* * 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. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, soft...
rokn/Count_Words_2015
testing/drools-master/drools-core/src/main/java/org/drools/core/marshalling/impl/ProcessMarshallerFactory.java
Java
mit
1,630
/* * Copyright (c) 2007, 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 ...
YouDiSN/OpenJDK-Research
jdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/loop/Loop16.java
Java
gpl-2.0
2,122
package net.sf.jabref.gui.menus; import java.awt.Font; import java.util.HashMap; import java.util.Map; import javax.swing.JMenu; import javax.swing.JMenuItem; import javax.swing.JPopupMenu; import javax.swing.KeyStroke; import net.sf.jabref.Globals; import net.sf.jabref.gui.BasePanel; import net.sf.jabref.gui.action...
RodrigoRubino/DC-UFSCar-ES2-201601-Grupo-Brainstorm
src/main/java/net/sf/jabref/gui/menus/ChangeEntryTypeMenu.java
Java
gpl-2.0
3,538
/* * Copyright (c) 2010, 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 ...
FauxFaux/jdk9-jdk
src/java.base/share/classes/sun/security/ssl/SSLAlgorithmConstraints.java
Java
gpl-2.0
9,493
package org.whispersystems.textsecure.push; import java.util.List; public class PreKeyList { private PreKeyEntity lastResortKey; private List<PreKeyEntity> keys; public PreKeyList(PreKeyEntity lastResortKey, List<PreKeyEntity> keys) { this.keys = keys; this.lastResortKey = lastResortKey; } ...
ThirdProject/android_external_whispersystems_TextSecure
library/src/org/whispersystems/textsecure/push/PreKeyList.java
Java
gpl-3.0
724
/* * 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...
mateor/PDroidHistory
frameworks/base/telephony/java/com/android/internal/telephony/IccException.java
Java
gpl-3.0
825
/* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * unde...
jamezp/wildfly-core
controller-client/src/main/java/org/jboss/as/controller/client/helpers/standalone/DuplicateDeploymentNameException.java
Java
lgpl-2.1
1,911
/* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * unde...
xasx/wildfly
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ee/injection/resource/basic/Parent.java
Java
lgpl-2.1
1,426
/* * 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. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, soft...
ibek/jbpm
jbpm-bpmn2-emfextmodel/src/main/java/bpsim/impl/DocumentRootImpl.java
Java
apache-2.0
45,511
/* * 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-table/flink-table-common/src/main/java/org/apache/flink/table/data/columnar/vector/writable/WritableFloatVector.java
Java
apache-2.0
1,684
/* * 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 ap...
sutaakar/jbpm
jbpm-runtime-manager/src/main/java/org/jbpm/runtime/manager/impl/deploy/TransientNamedObjectModel.java
Java
apache-2.0
1,244
/*-------------------------------------------------------------------------------------------------------------------*\ | Copyright (C) 2014 PayPal | | ...
alizelzele/SeLion
client/src/main/java/com/paypal/selion/platform/html/WebElementException.java
Java
apache-2.0
2,244
/* * 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.stringstats; import org....
GlenRSmith/elasticsearch
x-pack/plugin/analytics/src/main/java/org/elasticsearch/xpack/analytics/stringstats/StringStatsAggregationBuilder.java
Java
apache-2.0
5,723
package org.asynchttpclient.test; import static java.nio.charset.StandardCharsets.*; import static org.testng.Assert.assertEquals; import org.apache.commons.io.FileUtils; import org.eclipse.jetty.security.ConstraintMapping; import org.eclipse.jetty.security.ConstraintSecurityHandler; import org.eclipse.jetty.security...
elijah513/async-http-client
api/src/test/java/org/asynchttpclient/test/TestUtils.java
Java
apache-2.0
10,838
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
wwjiang007/flink
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/DataTypeFactoryImpl.java
Java
apache-2.0
7,943
/* * 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...
lkubik/keycloak
server-spi/src/main/java/org/keycloak/models/CredentialValidationOutput.java
Java
apache-2.0
2,148
package org.zstack.test.securitygroup; import junit.framework.Assert; import org.junit.BeforeClass; import org.junit.Test; import org.zstack.core.componentloader.ComponentLoader; import org.zstack.core.db.DatabaseFacade; import org.zstack.network.securitygroup.SecurityGroupVO; import org.zstack.test.Api; impo...
zstacktest/zstack
test/src/test/java/org/zstack/test/securitygroup/TestCreateSecurityGroup3000.java
Java
apache-2.0
1,530
/* * 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 ...
renesugar/arrow
java/vector/src/main/java/org/apache/arrow/vector/complex/VectorWithOrdinal.java
Java
apache-2.0
1,276
package be.peopleware.persistence_I; import be.peopleware.exception_I.LocalizedMessageException; /** * <p>This exception signals failure to locate a object with the given ID.</p> * * @invar (getMessage() == null) || !getMessage().equals(""); * @invar getBeanClass() != null; * * @author Jan Dockx *...
jandppw/ppwcode-recovered-from-google-code
java/vernacular/persistence/I/3.n.n/3.1.n/I-3.1.1-3.0/src/java/be/peopleware/persistence_I/IdException.java
Java
apache-2.0
2,822