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 2010 Ning, Inc.
*
* Ning 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/licenses/LICENSE-2.0
*
* Unless required by applic... | Aulust/async-http-client | client/src/test/java/org/asynchttpclient/ErrorResponseTest.java | Java | apache-2.0 | 2,612 |
/*
* Copyright (C) 2013 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0359xiaodong/picasso | picasso/src/test/java/com/squareup/picasso/TestUtils.java | Java | apache-2.0 | 7,615 |
/*
* Copyright 2003-2018 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... | msebire/intellij-community | plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/psiutils/ParenthesesUtils.java | Java | apache-2.0 | 15,723 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | medicayun/medicayundicom | dcm4jboss-cdw/trunk/src/java/org/dcm4chex/cdw/mbean/SpoolDirService.java | Java | apache-2.0 | 19,161 |
/*
* Copyright (c) 2010-2017, b3log.org & hacpai.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 applica... | AndiHappy/solo | src/test/java/org/b3log/solo/processor/console/CategoryConsoleTestCase.java | Java | apache-2.0 | 6,191 |
package com.accenture.nes.webservices;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
/**
* This... | daniyar-artykov/j2ee | upwork-jax-ws-client/src/main/java/com/accenture/nes/webservices/IVRTicketManagementService.java | Java | apache-2.0 | 2,870 |
/*
* 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 ... | yanzhijun/jclouds-aliyun | apis/cloudstack/src/main/java/org/jclouds/cloudstack/util/ApiKeyPairs.java | Java | apache-2.0 | 3,447 |
package org.teachingextensions.approvals.lite.util;
import static org.junit.Assume.assumeFalse;
import java.awt.GraphicsEnvironment;
public class JUnitUtils {
public static void assumeNotHeadless() {
boolean headless_check = GraphicsEnvironment.isHeadless();
assumeFalse(headless_check);
}
}
| TeachingKidsProgramming/TeachingKidsProgramming.Source.Java | src/main/java/org/teachingextensions/approvals/lite/util/JUnitUtils.java | Java | apache-2.0 | 319 |
//$Id: ComponentTuplizer.java 7451 2005-07-11 21:49:08Z steveebersole $
package org.hibernate.tuple.component;
import java.io.Serializable;
import java.lang.reflect.Method;
import org.hibernate.engine.SessionFactoryImplementor;
import org.hibernate.tuple.Tuplizer;
/**
* Defines further responsibilities reagarding t... | renmeng8875/projects | Hibernate-source/源代码及重要说明/Hibernate相关资料/hibernate-3.2.0.ga/hibernate-3.2/src/org/hibernate/tuple/component/ComponentTuplizer.java | Java | apache-2.0 | 1,757 |
package com.jiubang.goscreenlock.theme.cjpcardcool.util;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Timestamp;
import java.text.... | chenjianping99/CradCool | src/com/jiubang/goscreenlock/theme/cjpcardcool/util/ImageUtils.java | Java | apache-2.0 | 26,006 |
/*
* 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 ... | mdunker/usergrid | stack/corepersistence/common/src/main/java/org/apache/usergrid/persistence/core/migration/schema/MigrationManager.java | Java | apache-2.0 | 1,313 |
/*
* Copyright 2016 Hannes Dorfmann.
*
* 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... | lenguyenthanh/mosby | mvi/src/main/java/com/hannesdorfmann/mosby3/FragmentMviDelegateImpl.java | Java | apache-2.0 | 9,754 |
/*
* Copyright (C) 2014 Archie L. Cobbs. All rights reserved.
*
* $Id$
*/
package org.jsimpledb.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.jsimple... | mmayorivera/jsimpledb | src/test/org/jsimpledb/util/XMLObjectSerializerTest.java | Java | apache-2.0 | 6,702 |
package org.apache.velocity.tools.generic;
/*
* 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 A... | apache/velocity-tools | velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/ContextTool.java | Java | apache-2.0 | 6,309 |
/**
*
*/
package com.cardpay.pccredit.customer.filter;
import java.util.List;
import com.cardpay.pccredit.manager.web.AccountManagerParameterForm;
import com.wicresoft.jrad.base.web.filter.BaseQueryFilter;
/**
* @author shaoming
*
* 2014年11月11日 下午3:03:58
*/
public class MaintenanceFilter exte... | zhuyuanyan/PCCredit_TY | src/java/com/cardpay/pccredit/customer/filter/MaintenanceFilter.java | Java | apache-2.0 | 3,045 |
/*
* 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 "Li... | apache/clerezza | jaxrs.rdf.providers/src/main/java/org/apache/clerezza/jaxrs/sparql/providers/ResultSetJsonMessageBodyWriter.java | Java | apache-2.0 | 5,903 |
/*
* 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... | xiaoyuQi/JavaProject | dubbo-admin/src/main/java/com/alibaba/dubbo/registry/common/util/Entities.java | Java | apache-2.0 | 41,909 |
/*
* 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... | reynoldsm88/drools | drools-beliefs/src/main/java/org/drools/beliefs/bayes/runtime/BayesRuntimeImpl.java | Java | apache-2.0 | 2,480 |
package com.finalteam.jarbuild;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.channels.FileChannel;
/**
*
* @author pengjianbo
*
*/
public class FileUtils {
public static String getFileExtension(String filePath) {
if (f... | immqy/MutiChannelPackup | jar-build/JarBuild/src/com/finalteam/jarbuild/FileUtils.java | Java | apache-2.0 | 2,757 |
package io.skysail.server.commands;
import java.util.*;
import java.util.regex.*;
import java.util.stream.Collectors;
import org.apache.felix.service.command.CommandProcessor;
import org.osgi.framework.Bundle;
import org.osgi.service.component.ComponentContext;
import org.osgi.service.component.annotations.*;
import... | evandor/skysail | skysail.server/src/io/skysail/server/commands/StaticServiceAnalysisCommand.java | Java | apache-2.0 | 4,278 |
/*
* Copyright (c) 2008-2016 Haulmont.
*
* 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... | cuba-platform/cuba | modules/desktop/src/com/haulmont/cuba/desktop/sys/validation/ValidationAwareAction.java | Java | apache-2.0 | 1,704 |
/*
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | NetoDevel/spring-boot | spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java | Java | apache-2.0 | 14,787 |
/*
* 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... | intalio/axis2 | modules/jaxws/src/org/apache/axis2/jaxws/message/util/impl/XMLStreamReaderFromDOM.java | Java | apache-2.0 | 23,554 |
/*
* Copyright 2016 NHN Entertainment Corp.
*
* NHN Entertainment Corp. 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/licenses/LICENSE-2.0
*
* Unle... | nhnent/toast-haste.framework | transport/src/main/java/com/nhnent/haste/transport/EventExecutor.java | Java | apache-2.0 | 1,184 |
/***********************************************************************
* Copyright (c) 2011:
* Istituto Nazionale di Fisica Nucleare (INFN), Italy
* Consorzio COMETA (COMETA), Italy
*
* See http://www.infn.it and and http://www.consorzio-cometa.it for details on
* the copyright holders.
*
* Licensed ... | WACREN/IDPPublic | src/java/it/infn/ct/security/utilities/LDAPCleaner.java | Java | apache-2.0 | 9,234 |
/*
* Copyright 2016 The Bazel 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 a... | brendandouglas/intellij | base/src/com/google/idea/blaze/base/lang/buildfile/formatting/BuildBraceMatcher.java | Java | apache-2.0 | 2,599 |
/*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... | papicella/snappy-store | gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/VersionedThinRegionEntryOffHeap.java | Java | apache-2.0 | 9,792 |
/**
* Copyright 2017 The GreyCat Authors. All rights reserved.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless ... | electricalwind/greycat | plugins/ml/src/main/java/greycat/ml/preprocessing/AttributeNode.java | Java | apache-2.0 | 6,850 |
/*
Copyright 1995-2015 Esri
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 wr... | Esri/performance-test-harness-for-geoevent | performance-test-harness-api/src/main/java/com/esri/geoevent/test/performance/jaxb/Report.java | Java | apache-2.0 | 3,422 |
/*-------------------------------------------------------------------------------------------------------------------*\
| Copyright (C) 2014 PayPal |
| ... | paulbrodner/SeLion | client/src/test/java/com/paypal/selion/platform/html/LabelTest.java | Java | apache-2.0 | 2,941 |
package edu.mayo.cts2.framework.webapp.soap.wsdl;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
import org.springframework.ws.transport.http.WsdlDefinitionHandlerAdapter;
import edu.mayo.cts2.framework.core.config.ServerContext;
public cl... | bernardator/cts2-framework | cts2-webapp/src/main/java/edu/mayo/cts2/framework/webapp/soap/wsdl/LocationAdjustingWsdlDefinitionHandlerAdapter.java | Java | apache-2.0 | 854 |
/*
* Copyright 2015-2016 USEF 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 applicable law or agree... | USEF-Foundation/ri.usef.energy | usef-build/usef-core/usef-core-transport/src/main/java/energy/usef/core/service/helper/DispatcherHelperService.java | Java | apache-2.0 | 3,493 |
/*
* Copyright (C) 2013 salesforce.com, 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 ... | lhong375/aura | aura-integration-test/src/test/java/org/auraframework/test/AuraJettyServer.java | Java | apache-2.0 | 2,951 |
/*
Copyright 2013-2014 CNR-ISTI, http://isti.cnr.it
Institute of Information Science and Technologies
of the Italian National Research Council
See the NOTICE file distributed with this work for additional
information regarding copyright ownership
Licensed under the Apache License, Version 2.0 (the ... | smulikHakipod/zb4osgi | zb4o-ha-driver/src/main/java/it/cnr/isti/zigbee/ha/device/api/generic/LevelControllableOutput.java | Java | apache-2.0 | 2,692 |
/*
* Copyright (C) 2013 The Rythm Engine project
* Gelin Luo <greenlaw110(at)gmail.com>
*
* 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 l... | alfishe/Rythm | src/test/java/org/rythmengine/advanced/TransformerTest.java | Java | apache-2.0 | 6,587 |
/*
* 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 ... | lstav/accumulo | core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java | Java | apache-2.0 | 13,383 |
package sjm.examples.engine;
import sjm.engine.*;
/*
* Copyright (c) 1999 Steven J. Metsker. All Rights Reserved.
*
* Steve Metsker makes no representations or warranties about
* the fitness of this software for any particular purpose,
* including the implied warranty of merchantability.
*/
/**
... | nileshpatelksy/hello-pod-cast | archive/FILE/Compiler/bpwj-java-phrase/code/sjm/examples/engine/ShowAnonymous.java | Java | apache-2.0 | 1,525 |
/*
* Copyright 2017-2020 Crown Copyright
*
* 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... | GovernmentCommunicationsHeadquarters/Gaffer | library/sketches-library/src/test/java/uk/gov/gchq/gaffer/sketches/datasketches/sampling/serialisation/ReservoirNumbersUnionSerialiserTest.java | Java | apache-2.0 | 2,584 |
/**
* jetbrick-template
* http://subchen.github.io/jetbrick-template/
*
* Copyright 2010-2013 Guoqiang Chen. All rights reserved.
* Email: subchen@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 ... | subchen/jetbrick-template-1x | src/test/java/testcase/model/User.java | Java | apache-2.0 | 2,342 |
/*
* Copyright (C) 2017 by Fonoster Inc (http://fonoster.com)
* http://github.com/fonoster/astive
*
* This file is part of Astive
*
* 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
*
... | fonoster/astivetoolkit | astive-agi/src/test/java/com/fonoster/astive/agi/test/DatabaseDelTreeTest.java | Java | apache-2.0 | 2,016 |
/*
* 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... | gmarz/elasticsearch | modules/lang-mustache/src/test/java/org/elasticsearch/script/mustache/CustomMustacheFactoryTests.java | Java | apache-2.0 | 5,251 |
/*
* Copyright 2017 StreamSets 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... | streamsets/datacollector | jdbc-protolib/src/main/java/com/streamsets/pipeline/lib/jdbc/typesupport/PrimitiveJdbcTypeSupport.java | Java | apache-2.0 | 2,495 |
package org.hyperimage.client.ws;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java-Klasse für updateViewSortOrder complex type.
*
* <p>Das folgende Schemafragment gibt den erwarteten Content an, der in diese... | bitgilde/HyperImage3 | hi3-editor/src/org/hyperimage/client/ws/UpdateViewSortOrder.java | Java | apache-2.0 | 1,813 |
package alien4cloud.rest.topology;
import alien4cloud.exception.TechnicalException;
public class UpdateTopologyException extends TechnicalException {
private static final long serialVersionUID = -9183124153128279999L;
public UpdateTopologyException(String message) {
super(message);
}
}
| ngouagna/alien4cloud | alien4cloud-rest-api/src/main/java/alien4cloud/rest/topology/UpdateTopologyException.java | Java | apache-2.0 | 311 |
/*
* 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... | scorpionvicky/elasticsearch | buildSrc/src/main/java/org/elasticsearch/gradle/transform/UnpackTransform.java | Java | apache-2.0 | 3,906 |
/*
* Copyright 2017 StreamSets 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... | kunickiaj/datacollector | jdbc-protolib/src/test/java/com/streamsets/pipeline/stage/origin/jdbc/table/MultiThreadedIT.java | Java | apache-2.0 | 19,100 |
/*
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... | sflyphotobooks/crp-batik | sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFTranscoderInternalCodecWriteAdapter.java | Java | apache-2.0 | 4,783 |
/*
* Copyright 2013 Real Logic 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 to ... | ligzy/Agrona | src/main/java/uk/co/real_logic/agrona/Verify.java | Java | apache-2.0 | 1,641 |
// Copyright 2000-2019 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.internal.statistic.tools;
import com.intellij.codeInspection.InspectionEP;
import com.intellij.codeInspection.InspectionProfileEntry;
import com.intellij.cod... | dahlstrom-g/intellij-community | platform/lang-impl/src/com/intellij/internal/statistic/tools/InspectionsUsagesCollector.java | Java | apache-2.0 | 7,861 |
package SQLite.JDBC2x;
import java.sql.*;
import java.util.*;
public class JDBCStatement implements java.sql.Statement {
protected JDBCConnection conn;
protected JDBCResultSet rs;
protected int updcnt;
protected int maxrows = 0;
private ArrayList batch;
public JDBCStatement(JDBCConnection co... | racker/omnibus | source/db-5.0.26.NC/sql/jdbc/SQLite/JDBC2x/JDBCStatement.java | Java | apache-2.0 | 6,612 |
package eu.hyvar.feature.expression.util;
import java.util.Date;
import org.eclipse.emf.ecore.EObject;
//import org.eclipse.ui.IEditorPart;
//import org.eclipse.ui.IEditorReference;
//import org.eclipse.ui.IWorkbench;
//import org.eclipse.ui.IWorkbenchPage;
//import org.eclipse.ui.IWorkbenchWindow;
//import org.eclip... | HyVar/DarwinSPL | plugins/eu.hyvar.feature.expression/src/eu/hyvar/feature/expression/util/HyExpressionResolverUtil.java | Java | apache-2.0 | 6,310 |
/*
* 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 ... | KidEinstein/giraph | giraph-block-app/src/main/java/org/apache/giraph/block_app/framework/output/BlockOutputDesc.java | Java | apache-2.0 | 1,589 |
/**
* Copyright (C) FuseSource, Inc.
* http://fusesource.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... | janstey/fuse | fabric/fabric-webapp-agent/src/main/java/org/fusesource/fabric/agent/web/FabricWebRegistrationHandler.java | Java | apache-2.0 | 8,221 |
package leaks.StraightLineCaseSplitNoRefute;
class Node {
public Node next;
public Object data;
public Node() {}
}
| fredfeng/navigator | src/test/java/leaks/StraightLineCaseSplitNoRefute/Node.java | Java | apache-2.0 | 142 |
/*
* 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... | hgschmie/presto | presto-product-tests-launcher/src/main/java/io/prestosql/tests/product/launcher/Extensions.java | Java | apache-2.0 | 1,050 |
package io.anhnguyen.rxsocial;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | anhhnguyen206/RxSocial | rx-social/src/test/java/io/anhnguyen/rxsocial/ExampleUnitTest.java | Java | apache-2.0 | 314 |
/*
* 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... | jean-merelis/keycloak | testsuite/integration/src/test/java/org/keycloak/testsuite/OAuthClient.java | Java | apache-2.0 | 22,846 |
/*
* Copyright (c) 2011-2015 EPFL DATA Laboratory
* Copyright (c) 2014-2015 The Squall Collaboration (see NOTICE)
*
* 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... | mt0803/squall | squall-core/src/main/java/ch/epfl/data/squall/components/theta/ThetaJoinComponentFactory.java | Java | apache-2.0 | 1,892 |
package es.caib.sgtsic.docx;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
/**
* Créé un flux de sortie pour les parties de type MemoryPackagePart.
*
* @author Julien Chable
*/
public final class MemoryPackagePartOutputStream extends OutputStream {
... | gdeignacio/sgtsic | sgtsic/src/main/java/es/caib/sgtsic/docx/MemoryPackagePartOutputStream.java | Java | apache-2.0 | 1,531 |
/*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.test.internal.engine.methodvalidation.xml;
import javax.validation.Co... | shahramgdz/hibernate-validator | engine/src/test/java/org/hibernate/validator/test/internal/engine/methodvalidation/xml/SameMethodOrConstructorDefinedTwiceTest.java | Java | apache-2.0 | 1,580 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | ascherbakoff/ignite | modules/core/src/test/java/org/apache/ignite/internal/processors/cache/datastructures/IgniteLockAbstractSelfTest.java | Java | apache-2.0 | 50,903 |
package org.sagebionetworks.bridge.worker;
/**
* Functional interface that consumes a single argument, returns no values, and can throw exceptions. This is generally
* used by the Bridge Worker Platform, and subprojects can just implement this interface.
*/
@FunctionalInterface
public interface ThrowingConsumer<T> ... | Sage-Bionetworks/bridge-base | src/main/java/org/sagebionetworks/bridge/worker/ThrowingConsumer.java | Java | apache-2.0 | 445 |
/*
* 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 ... | waans11/incubator-asterixdb | hyracks-fullstack/hyracks/hyracks-control/hyracks-control-common/src/main/java/org/apache/hyracks/control/common/utils/ThreadDumpHelper.java | Java | apache-2.0 | 3,919 |
/*
* 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... | apache/olingo-odata4 | lib/commons-core/src/test/java/org/apache/olingo/commons/core/edm/primitivetype/EdmDateTest.java | Java | apache-2.0 | 4,576 |
package com.hokolinks.deeplinking.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Use this annotation on one activity you wish to be default deep... | hoko/hoko-android | hoko/src/main/java/com/hokolinks/deeplinking/annotations/DeeplinkDefaultRoute.java | Java | apache-2.0 | 563 |
/*
* Copyright 2014, The Sporting Exchange Limited
*
* 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 applicabl... | betfair/cougar | cougar-framework/cougar-api/src/main/java/com/betfair/cougar/api/security/IdentityResolver.java | Java | apache-2.0 | 1,763 |
package org.grobid.core.tokenization;
import org.grobid.core.GrobidModels;
import org.grobid.core.layout.LayoutToken;
import org.grobid.core.utilities.LayoutTokensUtil;
import org.grobid.core.utilities.Pair;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.hamcrest.CoreMatc... | iorala/grobid | grobid-core/src/test/java/org/grobid/core/tokenization/TaggingTokenSynchronizerTest.java | Java | apache-2.0 | 2,299 |
/**
* 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... | lemonJun/TakinMQ | takinmq-jafka/src/main/java/io/jafka/message/ByteBufferBackedInputStream.java | Java | apache-2.0 | 1,623 |
package de.terrestris.shoguncore.converter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import de.terrestris.shoguncore.dao.PluginDao;
import de.terrestris.shoguncore.model.Plugin;
import de.terrestris.shoguncore.service.PluginService;
... | buehner/shogun2 | src/shogun-core-main/src/main/java/de/terrestris/shoguncore/converter/PluginIdResolver.java | Java | apache-2.0 | 649 |
/*
* Copyright (C) 2011 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | trivium-io/trivium-core | src/io/trivium/dep/com/google/common/util/concurrent/Striped.java | Java | apache-2.0 | 19,094 |
/**
* <p>Package which contains all clients for financial markets shareholders data.</p>
*/
package com.github.dannil.scbjavaclient.client.financialmarkets.shareholders;
| dannil/scb-api | src/main/java/com/github/dannil/scbjavaclient/client/financialmarkets/shareholders/package-info.java | Java | apache-2.0 | 172 |
/*
* 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 ... | shardingjdbc/sharding-jdbc | shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-sql92/src/main/java/org/apache/shardingsphere/sql/parser/sql92/lexer/SQL92Lexer.java | Java | apache-2.0 | 1,235 |
/*
* 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 ... | apache/jena | jena-core/src/main/java/org/apache/jena/ext/xerces/impl/dv/util/Base64.java | Java | apache-2.0 | 11,101 |
/****************************************************************
* 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... | apache/james-postage | src/main/java/org/apache/james/postage/mail/MailAnalyzeStrategy.java | Java | apache-2.0 | 3,809 |
package com.orasi.utils.database.databaseImpl;
import com.orasi.utils.Constants;
import com.orasi.utils.database.Database;
public class OracleDatabase extends Database {
public OracleDatabase(String tnsName) {
setDbDriver("oracle.jdbc.driver.OracleDriver");
setDbConnectionString("jdbc:oracle:thin:@" +... | waitsavery/Selenium-Toyota-POC | src/main/java/com/orasi/utils/database/databaseImpl/OracleDatabase.java | Java | apache-2.0 | 1,007 |
/*
* 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... | jexp/idea2 | platform/lang-impl/src/com/intellij/refactoring/openapi/impl/RefactoringFactoryImpl.java | Java | apache-2.0 | 1,424 |
/***************************************************************************
* Copyright 2015 Kieker Project (http://kieker-monitoring.net)
*
* 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 a... | leadwire-apm/leadwire-javaagent | leadwire-monitoring/src/kieker/monitoring/writer/filesystem/BinaryFileWriterPool.java | Java | apache-2.0 | 4,288 |
/*
* Copyright 2002,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 requi... | hudson3-plugins/commons-jelly | src/java/org/apache/commons/jelly/tags/core/IfTag.java | Java | apache-2.0 | 2,216 |
/*
* 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... | facebook/presto | presto-spark-base/src/main/java/com/facebook/presto/spark/execution/PrestoSparkDiskPageInput.java | Java | apache-2.0 | 8,167 |
/*
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/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 ... | attila-kiss-it/querydsl | querydsl-jpa/src/test/java/com/querydsl/jpa/IntegrationBase.java | Java | apache-2.0 | 6,802 |
package theinternet.pages;
import com.frameworkium.core.ui.annotations.Visible;
import com.frameworkium.core.ui.pages.BasePage;
import io.qameta.allure.Step;
import org.openqa.selenium.support.FindBy;
import ru.yandex.qatools.htmlelements.annotations.Name;
import ru.yandex.qatools.htmlelements.element.Button;
import r... | robertgates55/frameworkium | src/test/java/theinternet/pages/JavaScriptAlertsPage.java | Java | apache-2.0 | 2,380 |
package nl.homeserver.energie.verbruikkosten;
import org.junit.jupiter.api.Test;
import java.math.BigDecimal;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
class VerbruikKostenOverzichtenTest {
@Test
void whenAverageToSingleThenSingleVerbuikKostenOverichtWithAveragesRetur... | bassages/home-server | src/test/java/nl/homeserver/energie/verbruikkosten/VerbruikKostenOverzichtenTest.java | Java | apache-2.0 | 3,882 |
package org.insightech.er.preference.page.classpath;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.net.URL;
import java.util.List;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.pref... | justinkwony/ermaster-nhit | org.insightech.er/src/org/insightech/er/preference/page/classpath/ExtClassPathPreferencePage.java | Java | apache-2.0 | 6,293 |
package com.evanzeimet.queryinfo.jpa.attribute;
/*
* #%L
* queryinfo-jpa
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2015 Evan Zeimet
* %%
* 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 ... | podnov/queryinfo | jpa/src/main/java/com/evanzeimet/queryinfo/jpa/attribute/DefaultQueryInfoAttributeContext.java | Java | apache-2.0 | 1,955 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | AlexanderBuloichik/pentaho-kettle | engine/src/main/java/org/pentaho/di/job/entries/trans/JobEntryTrans.java | Java | apache-2.0 | 66,659 |
package org.xbib.web.util;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
/**
* A byte array, wrapped in a {@link org.xbib.web.util.BytesReference}.
*/
public class BytesArray implements BytesReference {
private static final String EM... | xbib/malva | malva-core/src/main/java/org/xbib/web/util/BytesArray.java | Java | apache-2.0 | 2,580 |
/*******************************************************************************
* 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 f... | apache/olingo-odata2 | odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/edm/Impl/EdmNavigationPropertyImpl.java | Java | apache-2.0 | 3,571 |
/**
* redpen: a text inspection tool
* Copyright (C) 2014 Recruit Technologies Co., Ltd. and contributors
* (see CONTRIBUTORS.md)
*
* 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
*
* ... | johtani/redpen | redpen-core/src/test/java/org/unigram/docvalidator/validator/sentence/InvalidCharacterValidatorTest.java | Java | apache-2.0 | 3,585 |
/**
* 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... | arenadata/ambari | ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostEntity_.java | Java | apache-2.0 | 2,278 |
/**
© Copyright 2015 Hewlett Packard Enterprise Development LP
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modif... | yuriBobrik/HPE-Software-Bamboo-Plugin | Bamboo/hp.application.automation/src/main/java/com/hpe/application/automation/bamboo/tasks/TestResultHelperAlm.java | Java | apache-2.0 | 8,745 |
package com.lee.lib.support;
import android.os.Bundle;
import android.support.annotation.Nullable;
import com.lee.base.activity.BaseActivity;
import com.lee.lib.R;
import com.lee.lib.support.v7.widget.LinearLayoutManager;
import com.lee.lib.support.v7.widget.RecyclerView;
import java.util.ArrayList;
import java.util... | noobyang/AndroidStudy | lib/src/main/java/com/lee/lib/support/RecyclerViewActivity.java | Java | apache-2.0 | 1,224 |
package com.alibaba.jstorm.daemon.worker;
import com.alibaba.jstorm.cluster.StormClusterState;
import com.alibaba.jstorm.task.error.ErrorConstants;
import com.alibaba.jstorm.utils.TimeFormat;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Date;
import java.util.Set;
/**
* @author xiaojian... | haoyanjun21/jstorm | jstorm-core/src/main/java/com/alibaba/jstorm/daemon/worker/WorkerReportError.java | Java | apache-2.0 | 1,359 |
/*
* Copyright 1999-2019 Seata.io Group.
*
* 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... | seata/seata | sqlparser/seata-sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/visit/InsertStatementSqlVisitor.java | Java | apache-2.0 | 1,346 |
/*
* 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 ... | anwar6953/incubator-tephra | tephra-hbase-compat-1.1-base/src/main/java/org/apache/tephra/hbase/txprune/HBaseTransactionPruningPlugin.java | Java | apache-2.0 | 18,153 |
package ca.uhn.fhir.rest.api.server;
/*-
* #%L
* HAPI FHIR - Server Framework
* %%
* Copyright (C) 2014 - 2022 Smile CDR, 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
*
... | jamesagnew/hapi-fhir | hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/api/server/IPreResourceAccessDetails.java | Java | apache-2.0 | 1,181 |
/*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* 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
... | SunghyunLim/easyCompany3 | src/main/java/egovframework/rte/tex/com/service/EgovMailService.java | Java | apache-2.0 | 1,369 |
/*
* 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-data | components/data-services/org.wso2.carbon.dataservices.core/src/main/java/org/wso2/carbon/dataservices/core/description/query/ExpressionQuery.java | Java | apache-2.0 | 15,136 |
package org.zalando.riptide.chaos;
import java.io.IOException;
import java.io.InputStream;
final class EmptyInputStream extends InputStream {
static final InputStream EMPTY = new EmptyInputStream();
private EmptyInputStream() {
}
@Override
public int read() throws IOException {
return ... | whiskeysierra/riptide | riptide-chaos/src/main/java/org/zalando/riptide/chaos/EmptyInputStream.java | Java | apache-2.0 | 333 |
/**
* Copyright (C) 2016 Hurence (support@hurence.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 a... | Hurence/log-island | logisland-documentation/src/test/java/com/hurence/logisland/documentation/html/ProcessorDocumentationWriterTest.java | Java | apache-2.0 | 2,287 |
/*
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... | sflyphotobooks/crp-batik | sources/org/apache/batik/dom/svg/SVGOMAnimatedEnumeration.java | Java | apache-2.0 | 6,722 |