repo_name stringlengths 5 108 | path stringlengths 6 333 | size stringlengths 1 6 | content stringlengths 4 977k | license stringclasses 15
values |
|---|---|---|---|---|
Gaduo/hapi-fhir | hapi-fhir-structures-dstu2.1/src/test/java/ca/uhn/fhir/rest/server/UpdateDstu2_1Test.java | 7116 | package ca.uhn.fhir.rest.server;
import static org.hamcrest.Matchers.containsString;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.TimeUnit;
import org.apache.com... | apache-2.0 |
ThiagoGarciaAlves/intellij-community | platform/lang-impl/src/com/intellij/codeInsight/generation/CommentByLineCommentHandler.java | 33028 | /*
* 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... | apache-2.0 |
dkhwangbo/druid | extensions-core/datasketches/src/main/java/org/apache/druid/query/aggregation/datasketches/quantiles/DoublesSketchMergeAggregatorFactory.java | 2524 | /*
* 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 |
mr253727942/DSC | src/test/java/net/floodlightcontroller/core/test/MockFloodlightProvider.java | 13271 | /**
* Copyright 2011, Big Switch Networks, Inc.
* Originally created by David Erickson, Stanford University
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://w... | apache-2.0 |
apache/empire-db | empire-db/src/main/java/org/apache/empire/dbms/sqlserver/MSSqlDBModelParser.java | 2057 | /*
* 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 |
apache/sis | core/sis-utility/src/main/java/org/apache/sis/math/MathFunctions.java | 54703 | /*
* 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 |
jonvestal/open-kilda | src-java/isllatency-topology/isllatency-storm-topology/src/main/java/org/openkilda/wfm/topology/isllatency/model/LatencyRecord.java | 771 | /* Copyright 2019 Telstra Open Source
*
* 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 la... | apache-2.0 |
Sage-Bionetworks/SynapseWebClient | src/main/java/org/sagebionetworks/web/client/widget/asynch/UserProfileAsyncHandler.java | 279 | package org.sagebionetworks.web.client.widget.asynch;
import org.sagebionetworks.repo.model.UserProfile;
import com.google.gwt.user.client.rpc.AsyncCallback;
public interface UserProfileAsyncHandler {
void getUserProfile(String userId, AsyncCallback<UserProfile> callback);
}
| apache-2.0 |
adufilie/flex-falcon | compiler/src/org/apache/flex/compiler/asdoc/IMetadataParserASDocDelegate.java | 2718 | /*
*
* 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 |
aaudiber/alluxio | core/server/common/src/main/java/alluxio/underfs/AbstractUfsManager.java | 6542 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | apache-2.0 |
crazycode/weixin-java-tools | weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpDeviceServiceImpl.java | 3269 | package me.chanjar.weixin.mp.api.impl;
import me.chanjar.weixin.common.exception.WxErrorException;
import me.chanjar.weixin.mp.api.WxMpDeviceService;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.device.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Created by keung... | apache-2.0 |
fschueler/incubator-systemml | src/main/java/org/apache/sysml/api/mlcontext/Matrix.java | 5551 | /*
* 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 |
apache/geronimo | plugins/clustering/geronimo-farm/src/main/java/org/apache/geronimo/farm/config/NodeInfo.java | 1110 | /*
* 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 |
rankinc/Resteasy | resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/MethodNotAllowedException.java | 1136 | package org.jboss.resteasy.spi;
import javax.ws.rs.core.Response;
/**
* Thrown by RESTEasy when HTTP Method Not Allowed (405) is encountered
* JAX-RS now has this exception
*
* @deprecated Replaced by javax.ws.rs.NotAllowedException in jaxrs-api module.
*
* @see jaxrs-api (https://jcp.org/en/jsr/det... | apache-2.0 |
mariuszs/assertj-core | src/main/java/org/assertj/core/api/AbstractPathAssert.java | 46021 | /**
* 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 |
freeVM/freeVM | enhanced/java/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/file/FileURLConnectionTest.java | 4893 | /*
* 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 |
jexp/idea2 | plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/ui/experts/importToCvs/ImportWizard.java | 4007 | /*
* 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... | apache-2.0 |
Tamicer/Novate | example/src/main/java/com/tamic/excemple/ExempleActivity.java | 22196 | package com.tamic.excemple;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.u... | apache-2.0 |
dkhwangbo/druid | processing/src/main/java/org/apache/druid/segment/ProgressIndicator.java | 1018 | /*
* 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 |
zhangxuxiuxiu/dtcassandra | tools/stress/src/org/apache/cassandra/stress/Session.java | 17956 | /**
* 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 |
alittlemind/junior | chapter_010/mapping/src/main/java/carstore/models/Image.java | 823 | package carstore.models;
/**
* @author Evgeny Khodzitskiy (evgeny.hodz@gmail.com)
* @since 26.08.2017
*/
public class Image {
/**
* Image id.
*/
private int id;
/**
* Image url.
*/
private String url;
/**
* Default constructor.
*/
public Image() {
}
/*... | apache-2.0 |
denvey/discuz_Android | libs/ZUtilsExt/src/com/kit/app/IDS.java | 320 | package com.kit.app;
/**
* Created by Zhao on 15/11/18.
*/
public class IDS {
public static final int ID_RADIOBUTTON_SHOW_GO_TO_TOP_LEFT = 0x1989 + 0;
public static final int ID_RADIOBUTTON_SHOW_GO_TO_TOP_HIDDEN = 0x1989 + 1;
public static final int ID_RADIOBUTTON_SHOW_GO_TO_TOP_RIGHT = 0x1989 + 2;
}
| apache-2.0 |
kierarad/gocd | plugin-infra/go-plugin-access/src/main/java/com/thoughtworks/go/plugin/access/analytics/AnalyticsPluginInfoBuilder.java | 2078 | /*
* 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 |
jpallas/beakerx | kernel/base/src/main/java/com/twosigma/beakerx/chart/xychart/XYChart.java | 7240 | /*
* Copyright 2014 TWO SIGMA OPEN SOURCE, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | apache-2.0 |
ppatierno/kaas | cluster-operator/src/test/java/io/strimzi/operator/cluster/operator/assembly/TolerationsIT.java | 4055 | /*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.strimzi.operator.cluster.operator.assembly;
import io.fabric8.kubernetes.api.model.LabelSelectorBuilder;
import io.fabric8.kubernetes.api.model.Toleration;
import io.fab... | apache-2.0 |
nutzam/nutz | src/org/nutz/dao/util/cri/SimpleCriteria.java | 4108 | package org.nutz.dao.util.cri;
import org.nutz.dao.Condition;
import org.nutz.dao.Sqls;
import org.nutz.dao.entity.Entity;
import org.nutz.dao.impl.sql.pojo.AbstractPItem;
import org.nutz.dao.jdbc.ValueAdaptor;
import org.nutz.dao.pager.Pager;
import org.nutz.dao.sql.Criteria;
import org.nutz.dao.sql.GroupBy;
import o... | apache-2.0 |
queencodemonkey/Audiohackathon-2015 | app/src/test/java/com/audiohackathon/boardcast/ExampleUnitTest.java | 316 | package com.audiohack.boardcast;
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);
}
} | apache-2.0 |
jk1/intellij-community | platform/platform-api/src/com/intellij/openapi/vfs/newvfs/NewVirtualFile.java | 3707 | /*
* Copyright 2000-2012 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... | apache-2.0 |
dkschlos/super-csv-declarative | super-csv-declarative/src/main/java/com/github/dmn1k/supercsv/io/declarative/annotation/ParseEnum.java | 1580 | /*
* Copyright 2007 Kasper B. Graversen
*
* 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 |
EBIvariation/eva | dgva-server/src/test/java/uk/ac/ebi/dgva/server/ws/StudyWSServerTest.java | 3907 | package uk.ac.ebi.dgva.server.ws;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springfra... | apache-2.0 |
hardfish/justTest | cloudsigma2/src/main/java/org/jclouds/cloudsigma2/domain/IPConfigurationType.java | 1353 | /*
* 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 |
jwren/intellij-community | platform/analysis-api/src/com/intellij/lang/LanguageDocumentation.java | 1173 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.lang;
import com.intellij.lang.documentation.CompositeDocumentationProvider;
import com.intellij.lang.documentation.DocumentationProvider;
import org.jetbrai... | apache-2.0 |
apache/incubator-shardingsphere | shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/test/java/org/apache/shardingsphere/sql/parser/core/SQLParserEngineTest.java | 2388 | /*
* 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 |
engagepoint/camel | components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchEndpoint.java | 3570 | /**
* 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 |
nchinth/nd4j | nd4j-netlib-blas/src/main/java/org/nd4j/linalg/netlib/blas/NetlibLevel1.java | 11017 | package org.nd4j.linalg.netlib.blas;
import com.github.fommil.netlib.BLAS;
import org.nd4j.linalg.api.blas.BlasBufferUtil;
import org.nd4j.linalg.api.blas.impl.BaseLevel1;
import org.nd4j.linalg.api.buffer.DataBuffer;
import org.nd4j.linalg.api.complex.IComplexDouble;
import org.nd4j.linalg.api.complex.IComplexFloat;
... | apache-2.0 |
punkhorn/camel-upstream | core/camel-management-impl/src/main/java/org/apache/camel/management/mbean/ManagedSplitter.java | 1839 | /**
* 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 |
sleuthkit/autopsy | Experimental/src/org/sleuthkit/autopsy/experimental/autoingest/AutoIngestControlPanel.java | 111086 | /*
* Autopsy Forensic Browser
*
* Copyright 2015-2021 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> 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... | apache-2.0 |
forGGe/kaa | server/node/src/main/java/org/kaaproject/kaa/server/admin/shared/endpoint/EndpointProfileViewDto.java | 4134 | /*
* Copyright 2014-2016 CyberVision, 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 o... | apache-2.0 |
pfirmstone/JGDMS | qa/src/org/apache/river/qa/harness/SlaveRequest.java | 1311 | /*
* 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 m... | apache-2.0 |
danilomendonca/A3Droid_Test_Greenhouse | alljoyn_java/src/main/java/org/alljoyn/bus/AboutKeys.java | 3120 | /*
* Copyright AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED ... | apache-2.0 |
massakam/pulsar | bouncy-castle/bc/src/main/java/org/apache/pulsar/bcloader/BouncyCastleLoader.java | 1607 | /**
* 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 |
MissionCriticalCloud/cosmic | cosmic-core/engine/schema/src/main/java/com/cloud/storage/dao/StoragePoolWorkDao.java | 649 | package com.cloud.storage.dao;
import com.cloud.storage.StoragePoolWorkVO;
import com.cloud.utils.db.GenericDao;
import java.util.List;
/**
* Data Access Object for storage_pool table
*/
public interface StoragePoolWorkDao extends GenericDao<StoragePoolWorkVO, Long> {
List<StoragePoolWorkVO> listPendingWorkFo... | apache-2.0 |
hortonworks/streamline | cache/src/main/java/com/hortonworks/streamline/cache/Cache.java | 1191 | /**
* Copyright 2017 Hortonworks.
*
* 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 |
AludraTest/aludratest | src/main/java/org/aludratest/content/separated/webdecs/SeparatedFileReader.java | 4110 | /*
* Copyright (C) 2010-2014 Hamburg Sud and the 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 required by a... | apache-2.0 |
pranavlathigara/Carpaccio | carpaccio/src/main/java/com/github/florent37/carpaccio/Carpaccio.java | 5178 | package com.github.florent37.carpaccio;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;
import com.github.florent37.carpaccio.controllers.adapter.CarpaccioRecyclerViewAdapter;
import com.github.floren... | apache-2.0 |
howepeng/isis | core/metamodel/src/test/java/org/apache/isis/core/metamodel/facets/object/cssclass/CssClassFacetOnTypeAnnotationFactoryTest.java | 2650 | /*
* 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 |
Slania/daytrader | javaee6/modules/web/src/main/java/org/apache/geronimo/daytrader/javaee6/core/api/TradeDBServices.java | 1381 | /**
* 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"); yo... | apache-2.0 |
jbeecham/ovirt-engine | backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/irsbroker/DestroyImageVDSCommand.java | 1678 | package org.ovirt.engine.core.vdsbroker.irsbroker;
import org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo;
import org.ovirt.engine.core.common.asynctasks.AsyncTaskType;
import org.ovirt.engine.core.common.vdscommands.DestroyImageVDSCommandParameters;
import org.ovirt.engine.core.compat.Guid;
public clas... | apache-2.0 |
hernsys/uberfire-0.4.0.CR1 | uberfire-workbench/uberfire-workbench-panel-managers/uberfire-panel-manager-nswe/src/test/java/org/uberfire/client/mvp/AbstractWorkbenchContextActivityTest.java | 1100 | package org.uberfire.client.mvp;
import java.util.HashSet;
import org.junit.Test;
import org.uberfire.mvp.Command;
import org.uberfire.mvp.PlaceRequest;
import org.uberfire.mvp.impl.DefaultPlaceRequest;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.*... | apache-2.0 |
googlearchive/androidpay-quickstart | app/src/main/java/com/google/android/gms/samples/wallet/Constants.java | 2355 | /*
* Copyright Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | apache-2.0 |
odiszapc/stem | components/client/src/main/java/org/stem/client/ReplicaResponseHandler.java | 3058 | /*
* Copyright 2014 Alexey Plotnik
*
* 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 |
lmenezes/elasticsearch | src/test/java/org/elasticsearch/common/settings/loader/JsonSettingsLoaderTests.java | 2035 | /*
* Licensed to ElasticSearch and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ElasticSearch licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may... | apache-2.0 |
andrewgaul/modernizer-maven-plugin | modernizer-maven-plugin/src/it/issue-28-option-enabled/src/main/java/org/gaul/it/Generated.java | 941 | /*
* Copyright 2014-2021 Andrew Gaul <andrew@gaul.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | apache-2.0 |
ysnows/AndroidCommons | library/src/main/java/com/alexvasilkov/android/commons/state/InstanceState.java | 310 | package com.alexvasilkov.android.commons.state;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface InstanceState {
} | apache-2.0 |
google/binnavi | src/main/java/com/google/security/zynamics/binnavi/Gui/SettingsDialog/CColorSettingsPanel.java | 18978 | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | apache-2.0 |
tduehr/cas | support/cas-server-support-validation/src/main/java/org/apereo/cas/web/view/Cas30ResponseView.java | 4459 | package org.apereo.cas.web.view;
import org.apereo.cas.CasProtocolConstants;
import org.apereo.cas.authentication.AuthenticationServiceSelectionPlan;
import org.apereo.cas.authentication.ProtocolAttributeEncoder;
import org.apereo.cas.services.RegisteredService;
import org.apereo.cas.services.ServicesManager;
import o... | apache-2.0 |
sdole/aws-sdk-java | aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/GatewayInfo.java | 6480 | /*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | apache-2.0 |
spotify/scio | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/TFRecordCodec.java | 4295 | /*
* 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 |
qhanam/Pangor | js/src/ca/ubc/ece/salt/pangor/js/analysis/scope/JavaScriptScope.java | 2942 | package ca.ubc.ece.salt.pangor.js.analysis.scope;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.mozilla.javascript.ast.AstNode;
import org.mozilla.javascript.ast.FunctionNode;
import org.mozilla.javascript.ast.ScriptNode;
import ca.ubc.ece.salt.gumtree... | apache-2.0 |
apache/pdfbox | pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/compress/COSWriterCompressionPool.java | 12826 | /*
* 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 |
Haulmont/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/doc/connector/OfficeIntegrationAPI.java | 931 | /*
* Copyright 2013 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 agreed to in writ... | apache-2.0 |
jianjianH/Order | app/src/main/java/jne/com/order/OrderApplication.java | 407 | package jne.com.order;
import android.app.Application;
/**
* 整个程序定制的Application对象。
* Created by JianHuang
* Date: 2015/1/13
* Time: 11:16
*/
public class OrderApplication extends Application{
@Override
public void onCreate() {
super.onCreate();
if (!OrderContext.isInitialized()) {
... | apache-2.0 |
leveyj/ignite | modules/core/src/main/java/org/apache/ignite/internal/processors/platform/messaging/PlatformMessaging.java | 6300 | /*
* 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/httpcore | httpcore5-h2/src/test/java/org/apache/hc/core5/http2/examples/H2MultiStreamExecutionExample.java | 7140 | /*
* ====================================================================
* 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
... | apache-2.0 |
mdunker/usergrid | stack/core/src/main/java/org/apache/usergrid/corepersistence/pipeline/read/traverse/IdFilter.java | 1814 | /*
* 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 |
rozza/mongo-java-driver | bson/src/main/org/bson/codecs/pojo/ConventionSetPrivateFieldImpl.java | 3549 | /*
* Copyright 2008-present MongoDB, 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 ag... | apache-2.0 |
bredy/ChromeRestClient | RestClient/src/org/rest/client/dom/worker/WorkerImpl.java | 1156 | package org.rest.client.dom.worker;
import com.google.gwt.core.client.JavaScriptObject;
class WorkerImpl extends JavaScriptObject {
protected WorkerImpl() {}
static final native WorkerImpl get(String script) /*-{
var worker = new Worker(script);
return worker;
}-*/;
/**
* Starts the ... | apache-2.0 |
emmanuelsantana/jquati | jquati-1.0/src/net/sf/jquati/adviceinspector/AdviceInspectorElement.java | 323 | package net.sf.jquati.adviceinspector;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface AdviceInspectorElement {
... | apache-2.0 |
maxml/sample-apps | common/src/main/java/org/kaaproject/kaa/examples/common/KaaDemoBuilder.java | 978 | /**
* Copyright 2014-2016 CyberVision, 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 applicabl... | apache-2.0 |
Jackygq1982/hbase_src | hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestCellACLWithMultipleVersions.java | 33868 | /*
* 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 |
lastfm/moji | src/test/java/fm/last/moji/impl/GetDeviceStatusesCommandTest.java | 4638 | /**
* Copyright (C) 2012-2017 Last.fm & The "mogilefs-moji" committers
*
* 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... | apache-2.0 |
treeform/orekit | src/main/java/org/orekit/bodies/IAUPoleFactory.java | 17513 | /* Copyright 2002-2014 CS Systèmes d'Information
* Licensed to CS Systèmes d'Information (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Versi... | apache-2.0 |
etirelli/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-api/src/main/java/org/kie/workbench/common/stunner/bpmn/workitem/ServiceTaskFactory.java | 4467 | /*
* 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... | apache-2.0 |
sekikn/ambari | ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/StompResponse.java | 1377 | /*
* 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 |
tgroh/incubator-beam | runners/google-cloud-dataflow-java/src/test/java/org/apache/beam/runners/dataflow/util/StructsTest.java | 7179 | /*
* 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 |
dennishuo/hadoop | hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/StateStoreDFSCluster.java | 6280 | /**
* 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 |
john9x/jdbi | core/src/main/java/org/jdbi/v3/core/Jdbi.java | 20676 | /*
* 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 u... | apache-2.0 |
ronny-macmaster/hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/impl/pb/AllocateResponsePBImpl.java | 24086 | /**
* 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 |
drlebedev/nd4j | nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/shape/loop/one/LoopFunction1.java | 712 | package org.nd4j.linalg.api.shape.loop.one;
import org.nd4j.linalg.api.buffer.DataBuffer;
import org.nd4j.linalg.api.shape.loop.four.*;
import org.nd4j.linalg.api.shape.loop.four.RawArrayIterationInformation4;
/**
* Used for raw iteration in loops
*
* @author Adam Gibson
*/
public interface LoopFunction1 {
/*... | apache-2.0 |
pjain1/druid | server/src/main/java/org/apache/druid/metadata/SqlSegmentsMetadataManager.java | 47644 | /*
* 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 |
alien4cloud/alien4cloud | alien4cloud-common/src/main/java/alien4cloud/exception/ReferencedResourceException.java | 450 | package alien4cloud.exception;
import alien4cloud.model.common.Usage;
import lombok.Getter;
/**
* Exception to be thrown when an operation cannot be done because a resource is used (referenced).
*/
@Getter
public class ReferencedResourceException extends TechnicalException {
private final Usage[] usages;
p... | apache-2.0 |
yanjunh/elasticsearch | plugins/lang-javascript/src/test/java/org/elasticsearch/script/javascript/JavaScriptScriptMultiThreadedTests.java | 7374 | /*
* 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 |
Rajith90/carbon-apimgt | components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/main/java/org/wso2/carbon/apimgt/rest/api/store/v1/impl/ApisApiServiceImpl.java | 56430 | /*
* Copyright (c) 2019 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/l... | apache-2.0 |
bocon13/buck | src/com/facebook/buck/intellij/plugin/src/com/facebook/buck/intellij/plugin/actions/BuckBuildAction.java | 2289 | /*
* Copyright 2015-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | apache-2.0 |
lovemomia/momia | course/api-course/src/main/java/cn/momia/api/course/expert/ExpertHear.java | 811 | package cn.momia.api.course.expert;
/**
* Created by hoze on 16/6/15.
*/
public class ExpertHear {
private int id;
private long questionId;
private long userId;
private int status;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
pu... | apache-2.0 |
fanlehai/CodePractice | java/src/main/java/com/fanlehai/java/container/ForEachTest.java | 2809 | package com.fanlehai.java.container;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
class DataView<T> implements Iterable<T>{
List<T> list = new LinkedList<>();
@Override
public Iterator<T> iterator() {
// TODO Auto-generated m... | apache-2.0 |
iominh/ThreadWeaver | main/src/main/java/com/google/testing/threadtester/TestThread.java | 3779 | /*
* Copyright 2009 Weaver 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 agreed... | apache-2.0 |
aesteve/nubes | src/main/java/com/github/aesteve/vertx/nubes/reflections/factories/impl/FileProcessorFactory.java | 551 | package com.github.aesteve.vertx.nubes.reflections.factories.impl;
import com.github.aesteve.vertx.nubes.annotations.File;
import com.github.aesteve.vertx.nubes.handlers.AnnotationProcessor;
import com.github.aesteve.vertx.nubes.handlers.impl.FileProcessor;
import com.github.aesteve.vertx.nubes.reflections.factories.A... | apache-2.0 |
dke-knu/i2am | rdma-based-storm/external/storm-kafka-client/src/main/java/org/apache/storm/kafka/spout/ManualPartitionNamedSubscription.java | 3207 | /*
* 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
* "Licen... | apache-2.0 |
opennetworkinglab/onos | drivers/server/src/main/java/org/onosproject/drivers/server/ServerBasicSystemOperations.java | 4063 | /*
* Copyright 2020-present Open Networking 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 appli... | apache-2.0 |
weiwenqiang/GitHub | expert/realm-java/realm/tools/backlink-ut-source/missingField/target/io/realm/entities/BacklinksMissingFieldSource.java | 947 | /*
* Copyright 2017 Realm 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 wr... | apache-2.0 |
apache/sis | core/sis-referencing/src/main/java/org/apache/sis/geometry/Shapes2D.java | 32922 | /*
* 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 |
jibaro/sql-for-lucene | src/main/java/bbejeck/sql/antlr/generated/LuceneSqlBaseVisitor.java | 12340 | // Generated from /Users/bbejeck/dev/github_clones/sql-for-lucene/src/main/java/LuceneSql.g4 by ANTLR 4.5.1
package bbejeck.sql.antlr.generated;
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
/**
* This class provides an empty implementation of {@link LuceneSqlVisitor},
* which can be extended to create ... | apache-2.0 |
sdgdsffdsfff/zeus | slb/src/main/java/com/ctrip/zeus/dao/entity/RuleRule.java | 4663 | package com.ctrip.zeus.dao.entity;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
public class RuleRule {
private Long id;
private String name;
private Integer ruleType;
private Date datachangeLasttime;
public Long getId() {
return id;
... | apache-2.0 |
wattale/carbon-identity | components/identity/org.wso2.carbon.identity.sso.saml/src/main/java/org/wso2/carbon/identity/sso/saml/builders/SignKeyDataHolder.java | 8431 | /*
* Copyright (c) 2005-2010, 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 |
cy19890513/Leetcode-1 | src/test/java/com/fishercoder/_690Test.java | 1310 | package com.fishercoder;
import com.fishercoder.common.classes.Employee;
import com.fishercoder.solutions._690;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static junit.framework.TestCase.assertEquals;
/**
* Created by fishercod... | apache-2.0 |
skolome/son-sp-infrabstract | wim-adaptor/adaptor/src/main/java/sonata/kernel/WimAdaptor/messaging/RabbitMqHelperSingleton.java | 5279 | /*
* Copyright (c) 2015 SONATA-NFV, UCL, NOKIA, THALES, NCSR Demokritos 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... | apache-2.0 |
LucidDB/luciddb | farrago/src/org/eigenbase/sql/ExplicitOperatorBinding.java | 3062 | /*
// 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 |
birkoff88/HackBG | Core-Java v2/Week2/Generics/src/ImplementOnOff.java | 431 | import java.util.Collection;
public class ImplementOnOff {
private Collection<Integer> coll;
public ImplementOnOff(Collection<Integer> collection) {
this.coll = collection;
}
public void add(int element) {
if (coll.contains(element))
coll.remove(element);
else
... | apache-2.0 |
danielsoro/crest | tomitribe-crest/src/main/java/org/tomitribe/crest/cmds/OverloadedCmdMethod.java | 4015 | /*
* 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 |