repo_name stringlengths 5 108 | path stringlengths 6 333 | size stringlengths 1 6 | content stringlengths 4 977k | license stringclasses 15
values |
|---|---|---|---|---|
hengyicai/OnlineAggregationUCAS | network/shuffle/src/test/java/org/apache/spark/network/shuffle/TestShuffleDataContext.java | 3794 | /*
* 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-2.0 |
TUBAME/migration-tool | src/tubame.wsearch/src/tubame/wsearch/models/WSearchCsvEnum.java | 2181 | /*
* WSearchCsvEnum.java
* Created on 2013/06/28
*
* Copyright (C) 2011-2013 Nippon Telegraph and Telephone Corporation
*
* 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:... | apache-2.0 |
0359xiaodong/YiBo | YiBoLibrary/src/com/cattong/sns/impl/renren/RenRenStatusAdapter.java | 2034 | package com.cattong.sns.impl.renren;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.cattong.commons.LibException;
import com.cattong.commons.LibResultCode;
import com.catt... | apache-2.0 |
kares/killbill | payment/src/main/java/org/killbill/billing/payment/invoice/PaymentTagHandler.java | 4302 | /*
* Copyright 2010-2013 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 a... | apache-2.0 |
raphaelning/resteasy-client-android | jaxrs/examples/oauth1-examples/oauth/src/main/java/org/jboss/resteasy/examples/oauth/OAuthApplication.java | 697 | package org.jboss.resteasy.examples.oauth;
import javax.ws.rs.core.Application;
import java.util.HashSet;
import java.util.Set;
/**
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision$
*/
public class OAuthApplication extends Application
{
HashSet<Object> singletons = new HashSe... | apache-2.0 |
metinkale38/prayer-times-android | features/times/src/main/java/com/metinkale/prayer/times/gson/BooleanSerializer.java | 1540 | /*
* Copyright (c) 2013-2019 Metin Kale
*
* 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 ag... | apache-2.0 |
radicalbit/ambari | ambari-shell/ambari-groovy-shell/src/test/java/org/apache/ambari/shell/commands/ConfigCommandsTest.java | 3539 | /**
* 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-2.0 |
tgwizard/sls | app/src/main/java/com/adam/aslfms/util/enums/AdvancedOptions.java | 4334 | /**
* This file is part of Simple Scrobbler.
* <p>
* https://github.com/simple-last-fm-scrobbler/sls
* <p>
* Copyright 2011 Simple Scrobbler Team
* <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 ... | apache-2.0 |
streamsets/datacollector | container/src/main/java/com/streamsets/datacollector/aster/EntitlementSyncTask.java | 1139 | /*
* Copyright 2020 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... | apache-2.0 |
IHTSDO/snow-owl | net4j/com.b2international.snowowl.eventbus/src/com/b2international/snowowl/internal/eventbus/net4j/HandlerChangeIndication.java | 2079 | /*
* Copyright 2011-2015 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | apache-2.0 |
jwren/intellij-community | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/qualifyMethodCall/beforeNonStaticMethodFromNonStaticContext2.java | 214 | // "Qualify the call with 'A.B.this'" "true"
class A {
static class B {
class C {
String name(String key) {
return name(<caret>);
}
}
String name() {
return "";
}
}
}
| apache-2.0 |
apache/tomcat | java/org/apache/catalina/filters/SessionInitializerFilter.java | 2509 | /*
* 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-2.0 |
jbeecham/ovirt-engine | frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/UiCommandButton.java | 1364 | package org.ovirt.engine.ui.common.widget;
import org.ovirt.engine.ui.common.widget.dialog.SimpleDialogButton;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.g... | apache-2.0 |
lordjone/libgdx | backends/gdx-backend-jglfw/src/com/badlogic/gdx/backends/jglfw/JglfwInput.java | 22979 | /*******************************************************************************
* 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:... | apache-2.0 |
tabish121/proton4j | protonj2/src/main/java/org/apache/qpid/protonj2/codec/EncoderState.java | 1858 | /*
* 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-2.0 |
alexander94dmitriev/PortlandStateJavaSummer2017 | airline/src/main/java/edu/pdx/cs410J/dmitriev/TextParser.java | 5551 | package edu.pdx.cs410J.dmitriev;
import edu.pdx.cs410J.AirlineParser;
import edu.pdx.cs410J.ParserException;
import javax.imageio.IIOException;
import java.io.*;
/**
* TextParser get the name of the file along with the name of the Airline being read.
* It supposed to correctly read the data about the Airline on a ... | apache-2.0 |
arquillian/arquillian-extension-persistence | int-tests/src/test/java/org/jboss/arquillian/integration/persistence/datasource/postgresql/PostgreSqlDataSourceExtension.java | 1398 | /*
* JBoss, Home of Professional Open Source
* Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Vers... | apache-2.0 |
kierarad/gocd | server/src/main/java/com/thoughtworks/go/server/newsecurity/controllers/AuthenticationController.java | 9321 | /*
* Copyright 2019 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | apache-2.0 |
krishanthasamaraweera/product-cep | modules/integration/tests-integration/tests/src/test/java/org/wso2/carbon/integration/test/processflow/PassThroughWithWso2Event.java | 7896 | /*
* Copyright (c) 2005-2014, 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.o... | apache-2.0 |
LucidDB/luciddb | farrago/src/org/eigenbase/test/EigenbaseTestCase.java | 8833 | /*
// Licensed to DynamoBI Corporation (DynamoBI) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. DynamoBI licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may ... | apache-2.0 |
apache/geronimo | plugins/pluto/geronimo-pluto/src/main/java/org/apache/geronimo/pluto/PortalStartupListener.java | 8945 | /*
* 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-2.0 |
wso2/carbon-metrics | components/org.wso2.carbon.metrics.core/src/test/java/org/wso2/carbon/metrics/core/MetricsMXBeanTest.java | 6480 | /*
* Copyright 2016 WSO2 Inc. (http://wso2.org)
*
* 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... | apache-2.0 |
WebbWangPrivate/JavaSystem | FundSystem/src/com/fjnu/fund/domain/Fund.java | 1040 | /**
*
*/
package com.fjnu.fund.domain;
/**
* @author Administrator
*
*/
public class Fund {
private Integer fundNo;
private String fundName;
private Float fundPrice;
private String fundDes;
private String fundStatus;
private String fundDate;
public Integer getFundNo() {
return fundNo;
}
public voi... | apache-2.0 |
GenericBreakGlass/GenericBreakGlass-XACML | src/eu.aniketos.securebpmn.xacml.support/src/main/java/eu/aniketos/securebpmn/xacml/support/AttributeResolver.java | 3664 | /* Copyright 2012-2015 SAP SE
*
* 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 ... | apache-2.0 |
dinkelaker/hbs4ode | bpel-runtime/src/main/java/org/apache/ode/bpel/memdao/BpelDAOConnectionImpl.java | 14032 | /*
* 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-2.0 |
dinkelaker/hbs4ode | dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/XmlDataDaoImpl.java | 5098 | /*
* 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-2.0 |
Vedenin/java_in_examples | other/src/main/java/com/github/vedenin/rus/arrays/ConvertArrayToStringAndPrintTest.java | 1973 | package com.github.vedenin.rus.arrays;
import java.util.Arrays;
import java.util.stream.DoubleStream;
import java.util.stream.IntStream;
/**
* Тестирование превращения массива в строку для печати
*
* Created by vedenin on 04.02.16.
*/
public class ConvertArrayToStringAndPrintTest {
public static void main(St... | apache-2.0 |
Fabryprog/camel | core/camel-core/src/test/java/org/apache/camel/language/TokenizerTest.java | 18428 | /*
* 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-2.0 |
jmostella/armeria | core/src/main/java/com/linecorp/armeria/server/AnnotatedValueResolver.java | 48024 | /*
* Copyright 2018 LINE Corporation
*
* LINE Corporation 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | apache-2.0 |
philliprower/cas | core/cas-server-core-tickets/src/test/java/org/apereo/cas/ticket/expiration/HardTimeoutExpirationPolicyTests.java | 965 | package org.apereo.cas.ticket.expiration;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.val;
import org.apache.commons.io.FileUtils;
import org.junit.jupiter.api.Test;
import java.io.File;
import java.io.IOException;
import static org.junit.jupiter.api.Assertions.*;
/**
* @author Misagh Moayyed... | apache-2.0 |
robsoncardosoti/flowable-engine | modules/flowable-engine/src/test/java/org/flowable/engine/test/bpmn/servicetask/CreateUserAndMembershipTestDelegate.java | 2078 | /* 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... | apache-2.0 |
cexbrayat/camel | camel-core/src/test/java/org/apache/camel/processor/RecipientListBeanTest.java | 2243 | /**
* 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-2.0 |
mehdi149/OF_COMPILER_0.1 | gen-src/main/java/org/projectfloodlight/openflow/protocol/ver15/OFTableDescStatsRequestVer15.java | 11425 | // Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | apache-2.0 |
prabushi/devstudio-tooling-esb | plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/EndPointPropertyItemProvider.java | 11996 | /**
* Copyright 2009-2012 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 applic... | apache-2.0 |
mehdi149/OF_COMPILER_0.1 | gen-src/main/java/org/projectfloodlight/openflow/protocol/bsntlv/OFBsnTlvExternalGatewayMac.java | 1862 | // Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | apache-2.0 |
NLPchina/ansj_seg | plugin/ansj_lucene6_plugin/src/test/java/org/ansj/ansj_lucene_plug/IndexAndTest.java | 4074 | package org.ansj.ansj_lucene_plug;
import org.ansj.domain.Term;
import org.ansj.library.DicLibrary;
import org.ansj.lucene6.AnsjAnalyzer;
import org.ansj.lucene6.AnsjAnalyzer.TYPE;
import org.ansj.splitWord.analysis.IndexAnalysis;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStrea... | apache-2.0 |
pnowojski/presto | presto-main/src/main/java/com/facebook/presto/operator/MultiChannelGroupByHash.java | 13353 | /*
* 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... | apache-2.0 |
jfoenixadmin/JFoenix | demo/src/main/java/demos/components/DatePickerDemo.java | 2537 | /*
* JFoenix
* Copyright (c) 2015, JFoenix and/or its affiliates., All rights reserved.
*
* This library 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.0 of the License, or (a... | apache-2.0 |
welterde/ewok | com/planet_ink/coffee_mud/Abilities/Spells/Spell_Blademouth.java | 4439 | package com.planet_ink.coffee_mud.Abilities.Spells;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
im... | apache-2.0 |
pjworkspace/wscs | weixin-sdk/src/main/java/com/weixin/sdk/msg/in/event/InCustomEvent.java | 2179 | /**
* Copyright (c) 2011-2015, Unas 小强哥 (unas@qq.com).
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.weixin.sdk.msg.in.event;
/**
接入会话:
<xml>
<ToUserName><![CDATA[touser]]></ToUserName>
<FromUserName><![CDATA[fromuser]]></FromUserName>
<CreateTime>1399197672</CreateT... | apache-2.0 |
Juklabs/edmundo | insert.java | 757 | import greenfoot.*;
public class insert extends Actor
{
pause p = new pause();
player pa = new player();
GreenfootSound SFX2 = new GreenfootSound("sfx/button_click.mp3");
public void act()
{
setLocation(550, 275);
if(Greenfoot.isKeyDown("escape"))
{
SFX2.play();
getWorld().rem... | apache-2.0 |
googleapis/google-api-java-client-services | clients/google-api-services-logging/v2/1.31.0/com/google/api/services/logging/v2/model/SourceLocation.java | 4414 | /*
* 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... | apache-2.0 |
mastinno/geojson-jackson-java | src/main/java/org/geojson/MultiLineString.java | 430 | package org.geojson;
import java.util.List;
public class MultiLineString extends Geometry<List<LngLatAlt>> {
public MultiLineString() {
}
public MultiLineString(List<LngLatAlt> line) {
add(line);
}
@Override
public <T> T accept(GeoJsonObjectVisitor<T> geoJsonObjectVisitor) {
return geoJsonObjectVisitor.v... | apache-2.0 |
jGauravGupta/jpamodeler | jcode-util/src/main/java/io/github/jeddict/jcode/SecurityConstants.java | 1229 | /**
* Copyright 2013-2019 the original author or authors from the Jeddict project (https://jeddict.github.io/).
*
* 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
* workingCopy of the License at
*
* http:/... | apache-2.0 |
apache/commons-imaging | src/test/java/org/apache/commons/imaging/formats/gif/GifReadTest.java | 9196 | /*
* 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-2.0 |
Teiid-Designer/teiid-webui | teiid-webui-webapp/src/main/java/org/teiid/webui/client/widgets/ServiceFlowListWidget.java | 1154 | /*
* Copyright 2014 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 ... | apache-2.0 |
TitasNandi/Summer_Project | dkpro-similarity-master/dkpro-similarity-experiments-wordpairs-asl/src/main/java/dkpro/similarity/experiments/wordpairs/io/SemanticRelatednessResultWriter.java | 13282 | /*******************************************************************************
* Copyright 2013
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | apache-2.0 |
omindu/carbon-identity-framework | components/configuration-mgt/org.wso2.carbon.identity.api.server.configuration.mgt/src/gen/java/org/wso2/carbon/identity/configuration/mgt/endpoint/dto/ResourceFileDTO.java | 1162 | package org.wso2.carbon.identity.configuration.mgt.endpoint.dto;
import io.swagger.annotations.*;
import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.NotNull;
@ApiModel(description = "")
public class ResourceFileDTO {
@NotNull
private String name = null;
private Str... | apache-2.0 |
googleapis/google-api-java-client-services | clients/google-api-services-monitoring/v3/1.31.0/com/google/api/services/monitoring/v3/model/Error.java | 2686 | /*
* 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... | apache-2.0 |
Gaduo/hapi-fhir | hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Patient.java | 135364 | package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, 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 copyr... | apache-2.0 |
forcedotcom/aura | aura/src/main/java/org/auraframework/builder/ClientLibraryDefBuilder.java | 1366 | /*
* 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 ... | apache-2.0 |
subutai-io/Subutai | management/server/core/peer-manager/peer-manager-impl/src/main/java/io/subutai/core/peer/impl/PeerInitializationError.java | 230 | package io.subutai.core.peer.impl;
public class PeerInitializationError extends RuntimeException
{
public PeerInitializationError( final String message, final Throwable cause )
{
super( message, cause );
}
}
| apache-2.0 |
porcelli-forks/drools-wb | drools-wb-screens/drools-wb-scenario-simulation-editor/drools-wb-scenario-simulation-editor-kogito-client/src/main/java/org/drools/workbench/screens/scenariosimulation/kogito/client/dmn/KogitoDMNService.java | 1412 | /*
* Copyright 2020 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... | apache-2.0 |
JunhwanPark/TizenRT | external/iotivity/iotivity_1.3-rel/cloud/stack/src/main/java/org/iotivity/cloud/base/protocols/coap/CoapDecoder.java | 9113 | /*
* //******************************************************************
* //
* // Copyright 2016 Samsung Electronics All Rights Reserved.
* //
* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* //
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use thi... | apache-2.0 |
PlanetWaves/clockworkengine | trunk/jme3-core/src/plugins/java/com/jme3/shader/plugins/GLSLLoader.java | 8037 | /*
* Copyright (c) 2009-2012 jMonkeyEngine
* 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 ... | apache-2.0 |
tonellotto/nibiru | src/main/java/io/teknek/nibiru/partitioner/Partitioner.java | 737 | /*
* Copyright 2015 Edward Capriolo
*
* 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... | apache-2.0 |
rogerchina/activemq-artemis | artemis-server/src/test/java/org/apache/activemq/artemis/tests/util/SimpleStringTest.java | 13390 | /*
* 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... | apache-2.0 |
fnyexx/mybator | src/main/java/org/mybatis/generator/internal/util/HashCodeUtil.java | 2726 | package org.mybatis.generator.internal.util;
import java.lang.reflect.Array;
/**
* This class is from javapractices.com:
*
* http://www.javapractices.com/Topic28.cjp
*
* Collected methods which allow easy implementation of <code>hashCode</code>.
*
* Example use case:
*
* <pre>
* public int... | apache-2.0 |
xingguang2013/jbpm-designer | jbpm-designer-backend/src/main/java/org/jbpm/designer/repository/RepositoryManager.java | 1682 | /*
* 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... | apache-2.0 |
Grandi/lokki-android | App/src/main/java/cc/softwarefactory/lokki/android/MainApplication.java | 6855 | /*
Copyright (c) 2014-2015 F-Secure
See LICENSE for details
*/
package cc.softwarefactory.lokki.android;
import android.app.Application;
import android.graphics.Bitmap;
import android.os.StrictMode;
import android.preference.PreferenceManager;
import android.support.v4.util.LruCache;
import android.util.Log;
import c... | apache-2.0 |
nterry/aws-sdk-java | aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/transform/ClusterQuotaExceededExceptionUnmarshaller.java | 1589 | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights
* Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | apache-2.0 |
bindul/junit-helper | junit-helper-derby/src/test/java/org/deventropy/junithelper/derby/SimpleDerbyTest.java | 2114 | /*
* Copyright 2016 Development Entropy (deventropy.org) Contributors
*
* 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... | apache-2.0 |
jkandasa/Sundial | src/main/java/org/quartz/plugins/management/ShutdownHookPlugin.java | 3992 | /**
* Copyright 2015 Knowm Inc. (http://knowm.org) and contributors.
* Copyright 2013-2015 Xeiam LLC (http://xeiam.com) and contributors.
* Copyright 2001-2011 Terracotta Inc. (http://terracotta.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... | apache-2.0 |
cbaenziger/oozie | core/src/main/java/org/apache/oozie/service/ELService.java | 10251 | /**
* 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-2.0 |
Fabryprog/camel | core/camel-core/src/test/java/org/apache/camel/issues/NotifyBuilderExactlyDoneSplitterWhereSentToIssueTest.java | 1932 | /*
* 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-2.0 |
apache/olingo-odata2 | odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/JsonFeedDeserializer.java | 8653 | /*******************************************************************************
* 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-2.0 |
janezhango/BigDataMachineLearning | src/main/java/water/api/ExportS3.java | 1889 | package water.api;
import water.*;
import water.H2O.H2OCountedCompleter;
import water.persist.PersistS3Task;
import water.persist.PersistS3;
import water.util.Log;
import com.google.gson.JsonObject;
public class ExportS3 extends Request {
protected class BucketArg extends TypeaheadInputText<String> {
public B... | apache-2.0 |
apache/jena | jena-tdb/src/test/java/org/apache/jena/tdb/base/file/TestBlockAccessMapped.java | 1566 | /*
* 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-2.0 |
jmartisk/hibernate-validator | engine/src/test/java/org/hibernate/validator/test/internal/constraintvalidators/FutureValidatorForDateTest.java | 1901 | /*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may ... | apache-2.0 |
apache/solr | solr/core/src/test/org/apache/solr/cloud/DistribJoinFromCollectionTest.java | 9690 | /*
* 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-2.0 |
morimekta/thrift-j2 | providence-testing/src/test/java/net/morimekta/providence/testing/EqualToMessageTest.java | 5573 | package net.morimekta.providence.testing;
import net.morimekta.test.providence.testing.calculator.Operand;
import net.morimekta.test.providence.testing.calculator.Operation;
import net.morimekta.test.providence.testing.calculator.Operator;
import net.morimekta.test.providence.testing.number.Imaginary;
import org.hamc... | apache-2.0 |
Gaduo/hapi-fhir | hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/codesystems/PaymentStatus.java | 3286 | package org.hl7.fhir.dstu3.model.codesystems;
/*
Copyright (c) 2011+, HL7, 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... | apache-2.0 |
JFixby/RedTriplane | red-triplane-physics-red/src/com/jfixby/r3/physics/BodyDynamicsImpl.java | 1305 |
package com.jfixby.r3.physics;
import com.jfixby.r3.api.physics.Body;
import com.jfixby.r3.api.physics.BodyDynamicsListener;
import com.jfixby.r3.api.physics.BodyMass;
import com.jfixby.r3.api.physics.BodyPosition;
import com.jfixby.r3.api.physics.ForcesApplicator;
import com.jfixby.r3.physics.body.BodyImpl;
public ... | apache-2.0 |
botelhojp/apache-jmeter-2.10 | src/core/org/apache/jmeter/gui/JMeterGUIComponent.java | 6888 | /*
* 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-2.0 |
massakam/pulsar | pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authentication/utils/AuthTokenUtils.java | 4890 | /**
* 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-2.0 |
jtulach/teavm | tests/src/test/java/org/teavm/dependency/DependencyTest.java | 10483 | /*
* Copyright 2017 Alexey Andreev.
*
* 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... | apache-2.0 |
CloudSlang/cs-actions | cs-amazon/src/main/java/io/cloudslang/content/amazon/factory/LoadBalancingQueryParamsMapBuilder.java | 2183 | /*
* (c) Copyright 2019 EntIT Software LLC, a Micro Focus company, L.P.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License v2.0 which accompany this distribution.
*
* The Apache License is available at
* http://www.apache.org/licenses/LICE... | apache-2.0 |
SciGaP/SEAGrid-Desktop-GUI | src/main/java/nanocad/dipole.java | 2104 | /***************************************
*dipole.java
*Andrew Knox 6/27/01
*
*This class was written as a way to hold information about dipoles
*for estaticterm.java. I'm not sure how usefull it would be as an
*actual model of a dipole.
*/
package nanocad;
public class dipole
{
private atom firstAtom, se... | apache-2.0 |
finmath/finmath-lib | src/main/java8/net/finmath/montecarlo/interestrate/products/indices/DateIndex.java | 2386 | /*
* (c) Copyright Christian P. Fries, Germany. Contact: email@christian-fries.de.
*
* Created on 14.06.2015
*/
package net.finmath.montecarlo.interestrate.products.indices;
import java.time.LocalDate;
import java.util.Set;
import net.finmath.exception.CalculationException;
import net.finmath.montecarlo.interest... | apache-2.0 |
vimond/dropwizard | dropwizard-migrations/src/main/java/io/dropwizard/migrations/DbDumpCommand.java | 7326 | package io.dropwizard.migrations;
import com.google.common.base.Charsets;
import io.dropwizard.Configuration;
import io.dropwizard.db.DatabaseConfiguration;
import liquibase.Liquibase;
import liquibase.diff.DiffGeneratorFactory;
import liquibase.diff.DiffResult;
import liquibase.diff.compare.CompareControl;
import liq... | apache-2.0 |
alien4cloud/alien4cloud | alien4cloud-tosca/src/main/java/org/alien4cloud/tosca/exceptions/ConstraintTechnicalException.java | 524 | package org.alien4cloud.tosca.exceptions;
import alien4cloud.exception.TechnicalException;
/**
* Base class for all constraint related exceptions
*
* @author mkv
*
*/
public class ConstraintTechnicalException extends TechnicalException {
private static final long serialVersionUID = 5829360730980521567L;
... | apache-2.0 |
zhangminglei/flink | flink-core/src/main/java/org/apache/flink/configuration/SecurityOptions.java | 11882 | /*
* 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-2.0 |
igorng/alien4cloud | alien4cloud-security/src/test/java/alien4cloud/security/LdapAuthenticationProviderTest.java | 2840 | package alien4cloud.security;
import java.util.List;
import javax.annotation.Resource;
import javax.naming.NamingException;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.mockito.Mockito;
import org.springframework.ldap.core... | apache-2.0 |
knifewine/cassandra | test/unit/org/apache/cassandra/index/CustomIndexTest.java | 33520 | package org.apache.cassandra.index;
import java.util.*;
import java.util.concurrent.Callable;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Collectors;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import org.junit.Test;
import org.apache.c... | apache-2.0 |
ChrisCanCompute/assertj-core | src/test/java/org/assertj/core/api/offsetdatetime/OffsetDateTimeAssert_isBetween_with_String_parameters_Test.java | 2198 | /**
* 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 ... | apache-2.0 |
majinkai/pinpoint | profiler/src/main/java/com/navercorp/pinpoint/profiler/instrument/JavassistMethod.java | 23027 | /*
* 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 ... | apache-2.0 |
objectiser/camel | components/camel-olingo4/camel-olingo4-api/src/main/java/org/apache/camel/component/olingo4/api/impl/Olingo4AppImpl.java | 52209 | /*
* 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-2.0 |
apache/commons-imaging | src/test/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoSBytesTest.java | 1586 | /*
* 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-2.0 |
asanka88/apache-synapse | modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/debug/ClientConnectionDebug.java | 6147 | /*
* 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")... | apache-2.0 |
christian-posta/spring-boot | spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfigurationTests.java | 17546 | /*
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | apache-2.0 |
lucky-code/Practice | kuaichuan2.0/app/src/main/java/com/lu/kuaichuan/wifidirect/adapter/MyGridViewAdapter.java | 3711 | package com.lu.kuaichuan.wifidirect.adapter;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.CheckBox;
import ... | apache-2.0 |
jimmytheneutrino/petit | modules/converter/src/main/java/com/nortal/petit/converter/columnreader/ColumnReader.java | 825 | /**
* Copyright 2014 Nortal AS
*
* 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... | apache-2.0 |
nmcl/scratch | graalvm/transactions/fork/narayana/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/AtomicAction.java | 9975 | /*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
* This copyrighted material is made available to anyone wishing to use... | apache-2.0 |
patrickfav/tuwien | master/swt workspace/HTMLParser/src/org/htmlparser/nodes/TextNode.java | 6785 | // HTMLParser Library - A java-based parser for HTML
// http://htmlparser.org
// Copyright (C) 2006 Derrick Oswald
//
// Revision Control Information
//
// $URL: https://svn.sourceforge.net/svnroot/htmlparser/trunk/lexer/src/main/java/org/htmlparser/nodes/TextNode.java $
// $Author: derrickoswald $
// $Date: 2006-09-16... | apache-2.0 |
antoinesd/weld-core | tests-arquillian/src/test/java/org/jboss/weld/tests/el/resolver/MyBean.java | 957 | /*
* JBoss, Home of Professional Open Source
* Copyright 2015, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | apache-2.0 |
prabushi/devstudio-tooling-esb | plugins/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/parts/EnqueueMediatorInputConnectorEditPart.java | 11166 | package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.parts;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Shape;
import org.eclipse.draw2d.StackLayout;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclip... | apache-2.0 |
Flipkart/elasticsearch | src/main/java/org/elasticsearch/rest/action/admin/cluster/repositories/get/RestGetRepositoriesAction.java | 3286 | /*
* 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... | apache-2.0 |
lhyqie/rtree | src/test/java/com/github/davidmoten/rtree/GreekEarthquakes.java | 2411 | package com.github.davidmoten.rtree;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.List;
import java.util.zip.GZIPInputStream;
import rx.Observable;
import rx.functions.Action1;
import rx.functions.Func0;
import rx.functions.Func1;
import rx.observables.Str... | apache-2.0 |
rosmo/aurora | src/test/java/org/apache/aurora/scheduler/events/PubsubEventModuleTest.java | 4254 | /**
* 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
* distribu... | apache-2.0 |
wyg1990/Mallet | src/main/java/com/intel/mallet/TpcdsTool.java | 3375 | /**
* 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-2.0 |