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 2015-2016 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 app... | dbflute-session/lastaflute-rehearsal-mermaidlag | src/main/java/org/docksidestage/dbflute/bsentity/BsMemberStatus.java | Java | apache-2.0 | 20,559 |
/*
* Copyright 2010-2011 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... | ning/serialization | thrift/src/main/java/com/ning/metrics/serialization/thrift/ThriftFieldListSerializer.java | Java | apache-2.0 | 1,836 |
/**
* 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... | brreitme/camel | components/camel-metrics/src/test/java/org/apache/camel/component/metrics/MetricsComponentTest.java | Java | apache-2.0 | 9,552 |
package jp.wasabeef.example.picasso;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
... | c0nnector/picasso-transformations | example/src/androidTest/java/jp/wasabeef/example/picasso/ApplicationTest.java | Java | apache-2.0 | 359 |
package io.vertigo.demo.dao.administration.utilisateur;
import javax.inject.Inject;
import io.vertigo.dynamo.impl.store.util.DAO;
import io.vertigo.dynamo.store.StoreManager;
import io.vertigo.dynamo.store.StoreServices;
import io.vertigo.dynamo.task.TaskManager;
import io.vertigo.demo.domain.administration.utilisateu... | KleeGroup/vertigo-demo | demo-uistruts/src/main/javagen/io/vertigo/demo/dao/administration/utilisateur/RoleDAO.java | Java | apache-2.0 | 743 |
/**
* 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/geronimo | plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbReference.java | Java | apache-2.0 | 1,996 |
/*
* 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 ... | tweise/beam | sdks/java/io/hdfs/src/main/java/org/apache/beam/sdk/io/hdfs/WritableCoder.java | Java | apache-2.0 | 3,591 |
/*
* #%L
* Protempa Framework
* %%
* Copyright (C) 2012 - 2013 Emory 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://www.apache.org/licenses/LICENSE-2... | eurekaclinical/protempa | protempa-framework/src/main/java/org/protempa/datastore/DataStoreUtil.java | Java | apache-2.0 | 1,047 |
/*
* Copyright 2012-2018 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... | lburgazzoli/spring-boot | spring-boot-samples/spring-boot-sample-jetty-jsp/src/main/java/sample/jetty/jsp/SampleJettyJspApplication.java | Java | apache-2.0 | 1,297 |
/*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | ChiralBehaviors/copycat | src/main/java/net/kuujo/copycat/state/Leader.java | Java | apache-2.0 | 29,499 |
/*
* 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/jackrabbit | jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/WebdavResponseImpl.java | Java | apache-2.0 | 13,075 |
package com.obomprogramador.microservice.servkeeper.it;
import static org.junit.Assert.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import org.apache.http.HttpEntity;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.Closea... | cleuton/servkeeper | servkeeper/src/it/java/com/obomprogramador/microservice/servkeeper/it/ITscaleDown.java | Java | apache-2.0 | 3,560 |
package com.github.vaibhavsinha.kong;
import com.github.vaibhavsinha.kong.exception.KongClientException;
import com.github.vaibhavsinha.kong.model.admin.consumer.Consumer;
import com.github.vaibhavsinha.kong.model.admin.consumer.ConsumerList;
import org.junit.Assert;
import org.junit.FixMethodOrder;
import org.junit.T... | devenfan/kong-java-client | src/test/java/com/github/vaibhavsinha/kong/RetrofitConsumerServiceTest.java | Java | apache-2.0 | 3,250 |
/*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | xoppa/blog | tutorials/src/com/xoppa/blog/libgdx/g3d/createshader/step2/ShaderTest.java | Java | apache-2.0 | 3,696 |
/*
* Copyright (c) 2018, 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... | ksdperera/siddhi | modules/siddhi-core/src/main/java/org/wso2/siddhi/core/aggregation/IncrementalExternalTimestampDataAggregator.java | Java | apache-2.0 | 5,013 |
package com.bitsofproof.supernode.jms;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.Queue;
import javax.jms.Session;
import com.bitsofproof.supernode.connector.ConnectorException;
import com.bitsofproof.supernode.connector.ConnectorQueue;
public class JMSConnectorQueue implements Con... | peacekeeper/bop-bitcoin-client | jms/src/main/java/com/bitsofproof/supernode/jms/JMSConnectorQueue.java | Java | apache-2.0 | 806 |
/*
* ARX: Powerful Data Anonymization
* Copyright 2012 - 2017 Fabian Prasser, Florian Kohlmayer and 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.apach... | jgaupp/arx | src/main/org/deidentifier/arx/metric/MetricDM.java | Java | apache-2.0 | 5,025 |
/* 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... | hawky-4s-/camunda-bpm-platform | engine/src/test/java/org/camunda/bpm/engine/test/standalone/entity/ExecutionCachedEntityStateTest.java | Java | apache-2.0 | 9,438 |
package com.hubspot.singularity.data.history;
import java.util.Date;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.codahale.metrics.annotation.Timed;
import com.google.common.base.Optional;
import com.google.inject.Inject;
import com.hubspot.singularity.DeployState;
impor... | grepsr/Singularity | SingularityService/src/main/java/com/hubspot/singularity/data/history/JDBIHistoryManager.java | Java | apache-2.0 | 8,228 |
/*
* Copyright Terracotta, 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 ... | akomakom/ehcache3 | impl/src/test/java/org/ehcache/impl/internal/executor/PartitionedOrderedExecutorTest.java | Java | apache-2.0 | 11,000 |
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.java.decompiler.modules.decompiler;
import org.jetbrains.java.decompiler.code.CodeConstants;
import org.jetbrains.java.decompiler.code.Ins... | google/intellij-community | plugins/java-decompiler/engine/src/org/jetbrains/java/decompiler/modules/decompiler/FinallyProcessor.java | Java | apache-2.0 | 33,097 |
/*
* $Id$
*
* 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
* "Lice... | apache/tiles-request | tiles-request-portlet/src/main/java/org/apache/tiles/request/portlet/delegate/PortletRequestDelegate.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... | apache/commons-compress | src/test/java/org/apache/commons/compress/archivers/zip/X000A_NTFSTest.java | Java | apache-2.0 | 1,674 |
/*
* 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/commons-lang | src/test/java/org/apache/commons/lang3/time/FastDatePrinterTest.java | Java | apache-2.0 | 17,322 |
/*******************************************************************************
* 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:... | ryoenji/libgdx | gdx/src/com/badlogic/gdx/graphics/g3d/model/data/ModelAnimation.java | Java | apache-2.0 | 995 |
/* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.common.policy;
import org.jboss.security.xacml.sunxacml.attr.DateTimeAttribute;
impor... | hbarnard/fcrepo-phaidra | fcrepo-common/src/main/java/org/fcrepo/common/policy/DisseminatorNamespace.java | Java | apache-2.0 | 1,954 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, JBoss Inc., and individual contributors as indicated
* by the @authors tag.
*
* 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
... | jbossas/jboss-vfs | src/main/java/org/jboss/vfs/util/FilterVirtualFileVisitor.java | Java | apache-2.0 | 3,268 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual 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 Licen... | girirajsharma/wildfly-elytron | src/main/java/org/wildfly/security/sasl/util/AuthenticationContextSaslClient.java | Java | apache-2.0 | 2,834 |
/*
* 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/camel | components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/integration/AcknowledgementIT.java | Java | apache-2.0 | 4,848 |
package cz.lbenda.rcp.ribbon;
import cz.lbenda.rcp.ribbon.skin.RibbonGroupSkin;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.Node;
import javafx.scene.control.Labele... | lbenda/Dataman | rcp/src/main/java/cz/lbenda/rcp/ribbon/RibbonGroup.java | Java | apache-2.0 | 1,395 |
/*
* 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... | xasx/assertj-core | src/test/java/org/assertj/core/api/Assertions_assertThat_with_String_Test.java | Java | apache-2.0 | 1,299 |
/*
* Copyright 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 "license" file acco... | aws/aws-toolkit-eclipse | bundles/com.amazonaws.eclipse.lambda/src/com/amazonaws/eclipse/lambda/serverless/model/transform/KeySchema.java | Java | apache-2.0 | 1,053 |
/*
* Copyright 2014-2019 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 app... | codecentric/spring-boot-admin | spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/server/config/AdminServerNotifierAutoConfigurationTest.java | Java | apache-2.0 | 7,282 |
// Copyright 2014 Neil Wilkinson
//
// 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 ... | nwilk/passwords | java/android/src/main/java/com/measuredsoftware/passvault/EditPasswordActivity.java | Java | apache-2.0 | 2,405 |
/*
* Copyright 2012 University of Chicago
*
* 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... | swift-lang/swift-k | src/org/griphyn/vdl/karajan/monitor/monitors/ansi/tui/DefaultTableCellRenderer.java | Java | apache-2.0 | 1,677 |
/**
* Copyright 2013 DuraSpace, 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 agree... | barmintor/fcrepo4 | fcrepo-jms/src/test/java/org/fcrepo/jms/legacy/EntryFactoryTest.java | Java | apache-2.0 | 2,003 |
/*
* Copyright (C) 2007 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... | sensui/guava-libraries | guava-tests/test/com/google/common/collect/EnumBiMapTest.java | Java | apache-2.0 | 11,706 |
package ${package};
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.goog... | kerongbaby/risetek.archetypes | dagger-guice-rf-activities/src/main/resources/archetype-resources/client/src/main/java/GreetingViewImpl.java | Java | apache-2.0 | 1,966 |
/*
* 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 ... | jior/glaf | workspace/glaf-base/src/main/java/com/glaf/base/modules/JsonDataHandler.java | Java | apache-2.0 | 941 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | sankarh/hive | standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/AbstractThriftHiveMetastore.java | Java | apache-2.0 | 70,821 |
package com.custardsource.parfait;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.CopyOnWriteArrayList;
import com.google.common.annotati... | akshayahn/parfait | parfait-core/src/main/java/com/custardsource/parfait/MonitorableRegistry.java | Java | apache-2.0 | 6,493 |
package io.agrest.client.runtime.run;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.Map;
import io.agrest.client.AgClientException;
import io.agrest.client.protocol.Expression;
import io.a... | AbleOne/link-rest | agrest-client/src/main/java/io/agrest/client/runtime/run/RequestEncoder.java | Java | apache-2.0 | 4,535 |
/*
* Copyright 2018-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 | core/operation/src/test/java/uk/gov/gchq/gaffer/operation/impl/JoinTest.java | Java | apache-2.0 | 4,456 |
/**
* 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/jena | jena-tdb/src/test/java/org/apache/jena/tdb/sys/TestOps.java | Java | apache-2.0 | 1,031 |
package org.perfcake.message.sender;
import java.io.IOException;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.net.SocketException;
import java.util.Map;
import java.util.Random;
import org.apache.http.HttpEntity;
import org.apache.http.NoHttpResponseException;
import org.apach... | infinispan/infinispan-cakery | src/main/java/org/perfcake/message/sender/IspnCakeryODataQuerySender.java | Java | apache-2.0 | 8,934 |
package org.apache.commons.digester3.examples.api.addressbook;
/*
* 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 un... | apache/commons-digester | examples/api/addressbook/src/main/java/org/apache/commons/digester3/examples/api/addressbook/AddressBook.java | Java | apache-2.0 | 1,304 |
package com.example.jason.uibestpractice;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() ... | AnglusWang/Coding_Test | a08_UIBestPractice/app/src/androidTest/java/com/example/jason/uibestpractice/ApplicationTest.java | Java | apache-2.0 | 363 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package paq_gestion;
import framework.aplicacion.Framework;
import framework.aplicacion.TablaGenerica;
import framework.componentes.Grupo;
import framework.componentes.Tabla;
import java.io.IOException;
impor... | diego10j/produquimic | produquimic/produquimic-war/src/java/paq_gestion/Organigrama.java | Java | apache-2.0 | 16,489 |
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.debugger.memory.ui;
import com.intellij.debugger.DebuggerManager;
import com.intellij.debugger.engine.*;
import com.intellij.debugger.engine.events.Debugger... | jk1/intellij-community | java/debugger/impl/src/com/intellij/debugger/memory/ui/ClassesFilteredView.java | Java | apache-2.0 | 16,744 |
package org.yeastrc.proxl.proxl_gen_import_xml_kojak.kojak_and_percolator.percolator.objects;
import java.io.File;
import org.yeastrc.proteomics.percolator.out.perc_out_common_interfaces.IPercolatorOutput;
/**
* A percolator File object and that percolator file unmarshalled
*
*/
public class PercolatorFileAndUnma... | yeastrc/proxl-import-kojak | src/org/yeastrc/proxl/proxl_gen_import_xml_kojak/kojak_and_percolator/percolator/objects/PercolatorFileAndUnmarshalledObject.java | Java | apache-2.0 | 1,079 |
package com.fsck.k9.message.html;
import java.util.List;
import java.util.Locale;
import org.jsoup.nodes.Attributes;
import org.jsoup.nodes.DataNode;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.nodes.Node;
import org.jsoup.nodes.TextNode;
import org.jsoup.parser.Tag;
import org.... | philipwhiuk/k-9 | k9mail/src/main/java/com/fsck/k9/message/html/HeadCleaner.java | Java | apache-2.0 | 3,524 |
package io.muoncore.message;
public class MuonOutboundMessage extends MuonMessage {
public MuonOutboundMessage(String id, long created, String targetServiceName, String targetInstance, String sourceServiceName, String protocol, String step, Status status, byte[] payload, String contentType, ChannelOperation chann... | microserviceux/muon-java | muon-core/src/main/java/io/muoncore/message/MuonOutboundMessage.java | Java | apache-2.0 | 777 |
/**
* 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... | pisaychuk/apache-falcon | client/src/main/java/org/apache/falcon/cli/FalconEntityCLI.java | Java | apache-2.0 | 17,402 |
// Copyright 2021 The KeepTry Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | BruceZu/sawdust | arrows/src/main/java/string/palindrome/Leetcode214ShortestPalindrome.java | Java | apache-2.0 | 8,302 |
/* Copyright 2005-2006 Tim Fennell
*
* 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 ... | medgar/click | framework/src/org/apache/click/service/DeployUtils.java | Java | apache-2.0 | 22,325 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | apache/xml-graphics-commons | src/main/java/org/apache/xmlgraphics/xmp/XMPProperty.java | Java | apache-2.0 | 7,472 |
/*
* Copyright (c) 2008-2017, Hazelcast, 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 ... | dbrimley/hazelcast | hazelcast/src/test/java/com/hazelcast/util/FilteringClassLoader.java | Java | apache-2.0 | 3,982 |
/*
* This file is part of dependency-check-core.
*
* 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 ... | stevespringett/DependencyCheck | dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/ExpectedObjectInputStream.java | Java | apache-2.0 | 2,767 |
/**
* 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... | kevinearls/camel | components/camel-spring/src/test/java/org/apache/camel/spring/issues/contextscan/SpringRouteIsComponentAnnotatedTest.java | Java | apache-2.0 | 1,659 |
/*
* 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/geronimo-yoko | yoko-spec-corba/src/main/java/org/omg/PortableInterceptor/ORBInitializer.java | Java | apache-2.0 | 1,119 |
package net.mgsx.game.core.tools;
import com.badlogic.gdx.math.Vector2;
import net.mgsx.game.core.EditorScreen;
abstract public class DrawTool extends Tool
{
private Vector2 current = new Vector2();
public DrawTool(String name, EditorScreen editor) {
super(name, editor);
}
@Override
public boolean touchDow... | mgsx-dev/box2d-editor | core/src/net/mgsx/game/core/tools/DrawTool.java | Java | apache-2.0 | 962 |
import java.io.IOException;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
public class ProductParser extends Parser {
private static final String NAME_SELECTOR = "span[id=productTitle]";
private static final String WEIGHT_SELECTOR = "li";
private String url;
p... | rchen8/Markdown | src/ProductParser.java | Java | apache-2.0 | 1,475 |
package org.wyona.yanel.servlet.security.impl;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.UUID;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.logging.log4j.Log... | baszero/yanel | src/webapp/src/java/org/wyona/yanel/servlet/security/impl/AutoLogin.java | Java | apache-2.0 | 12,913 |
/**
* 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-utils/src/main/java/org/fusesource/fabric/utils/Arrays.java | Java | apache-2.0 | 1,310 |
package app.domain;
import app.domain.base.BaseEntity;
import app.domain.base.BaseRepositoryIntTest;
import app.domain.entity.User;
import app.domain.repository.UserRepository;
import app.domain.vo.UserType;
import com.github.springtestdbunit.annotation.DatabaseSetup;
import javax.inject.Inject;
import java.util.Arra... | andreluiznsilva/architecture-java-spring | code/app/backend/src/test/java/app/domain/UserRepositoryIT.java | Java | apache-2.0 | 809 |
/*
* Copyright 2019 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 in w... | koo-taejin/pinpoint | collector/src/main/java/com/navercorp/pinpoint/collector/receiver/grpc/service/AgentLifecycleListener.java | Java | apache-2.0 | 3,480 |
/**
* Copyright 2017 TerraMeta Software, 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 ... | terrameta/plasma | plasma-core/src/main/java/org/plasma/query/Wildcard.java | Java | apache-2.0 | 835 |
/*
* 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/incubator-taverna-server | taverna-server-usagerecord/src/main/java/org/apache/taverna/server/usagerecord/xml/urf2/NetworkInboundUsedType.java | Java | apache-2.0 | 3,033 |
/**
* Copyright (C) 2012 cogroo <cogroo@cogroo.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 appl... | cogroo/cogroo4 | cogroo-gc/src/main/java/org/cogroo/tools/checker/checkers/ParonymChecker.java | Java | apache-2.0 | 4,611 |
/*
* 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/incubator-taverna-server | taverna-server-usagerecord/src/main/java/org/apache/taverna/server/usagerecord/xml/urf2/MemoryUsageBlockType.java | Java | apache-2.0 | 7,964 |
/*
* Copyright (c) 2008-2010, Matthias Mann
*
* 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... | ColaMachine/MyBlock | src/main/java/de/matthiasmann/twl/model/SimpleEnumModel.java | Java | bsd-2-clause | 2,454 |
package com.wut.format;
import java.io.IOException;
import java.io.InputStream;
import com.wut.model.Data;
public interface Decoder {
public abstract Data decode(InputStream input) throws IOException;
public abstract Data decode(String input) throws IOException;
} | rpalmite/webutilitykit | core/src/main/java/com/wut/format/Decoder.java | Java | bsd-2-clause | 273 |
/**
* Copyright (c) 2015 Pablo Pavon Mari�o.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Contributors:
* Pa... | girtel/JOM | src/main/java/com/jom/_SOLVERWRAPPER_CPLEX.java | Java | bsd-2-clause | 29,496 |
/*
* Copyright (C) 2004-2017, GoodData(R) Corporation. All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
package com.gooddata.dataload;
import com.gooddata.AbstractGoodDataIT;
import com.gooddata.project.Pro... | standevgd/gooddata-java | src/test/java/com/gooddata/dataload/OutputStageServiceIT.java | Java | bsd-3-clause | 4,059 |
package org.redcross.openmapkit.deployments;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.Sna... | onaio/OpenMapKit | app/src/main/java/org/redcross/openmapkit/deployments/DeploymentsActivity.java | Java | bsd-3-clause | 12,295 |
package org.motechproject.openmrs19.tasks;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.motechproject.openmrs19.config.Configs;
import org.motechproject.openmrs19.domai... | sebbrudzinski/modules | openmrs-19/src/test/java/org/motechproject/openmrs19/tasks/OpenMRSTaskDataProviderTest.java | Java | bsd-3-clause | 13,475 |
/**
* Copyright (c) 2012-2017, jcabi.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met: 1) Redistributions of source code must retain the above
* copyright notice, this list of condition... | simonjenga/jcabi-log | src/main/java/com/jcabi/log/SecretDecor.java | Java | bsd-3-clause | 3,800 |
package org.hisp.dhis.trackedentity;
/*
* Copyright (c) 2004-2018, University of Oslo
* 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 th... | vietnguyen/dhis2-core | dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/trackedentity/TrackedEntityInstanceDeletionHandler.java | Java | bsd-3-clause | 3,241 |
package org.hisp.dhis.relationship;
/*
* Copyright (c) 2004-2018, University of Oslo
* 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... | msf-oca-his/dhis-core | dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/relationship/DefaultRelationshipService.java | Java | bsd-3-clause | 4,416 |
/*
* Copyright 2004 The JA-SIG Collaborative. All rights reserved. See license
* distributed with this file and available online at
* http://www.ja-sig.org/products/cas/overview/license/
*/
package org.jasig.cas.ticket;
import org.jasig.cas.authentication.handler.AuthenticationException;
import org.jasig.cas.authe... | weskerhluffy/cacas-server-3.4.7 | cas-server-core/src/test/java/org/jasig/cas/ticket/InvalidTicketExceptionTests.java | Java | bsd-3-clause | 871 |
package com.oracle.ptsdemo.healthcare.wsclient.osc.opty.generated;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p... | delkyd/Oracle-Cloud | PaaS-SaaS_HealthCareApp/DoctorPatientCRMExtension/HealthCare/HealthCareWSProxyClient/src/com/oracle/ptsdemo/healthcare/wsclient/osc/opty/generated/ProcessOpportunityAsyncResponse.java | Java | bsd-3-clause | 1,940 |
package org.hisp.dhis.logging;
/*
* Copyright (c) 2004-2018, University of Oslo
* 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 copyri... | msf-oca-his/dhis-core | dhis-2/dhis-services/dhis-service-logging/src/main/java/org/hisp/dhis/logging/LogLevel.java | Java | bsd-3-clause | 2,014 |
/*L
* Copyright Ekagra Software Technologies Ltd.
* Copyright SAIC, SAIC-Frederick
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/common-security-module/LICENSE.txt for details.
*/
package test.gov.nih.nci.security;
import gov.nih.nci.security.SecurityServiceProvid... | NCIP/common-security-module | software/api/src/test/gov/nih/nci/security/NewConfigruationTest.java | Java | bsd-3-clause | 1,357 |
package test.gov.nih.nci.security;
/**
*
*<!-- LICENSE_TEXT_START -->
*
*The NCICB Common Security Module (CSM) Software License, Version 3.0 Copyright
*2004-2005 Ekagra Software Technologies Limited ('Ekagra')
*
*Copyright Notice. The software subject to this notice and license includes both
*human readable... | NCIP/cagrid-general | external/csmapi-32/api/src/test/gov/nih/nci/security/SecurityTestSuite.java | Java | bsd-3-clause | 6,593 |
/*
* Copyright (c) 2009-2015, United States Government, as represented by the Secretary of Health and Human Services.
* 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 ... | beiyuxinke/CONNECT | Product/Production/Services/DocumentRetrieveCore/src/main/java/gov/hhs/fha/nhinc/docretrieve/MessageGenerator.java | Java | bsd-3-clause | 3,356 |
/*
* Copyright (c) 2016, Oracle and/or its affiliates.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this ... | lxp/sulong | projects/com.oracle.truffle.llvm.nodes.impl/src/com/oracle/truffle/llvm/nodes/impl/intrinsics/interop/LLVMTruffleWrite.java | Java | bsd-3-clause | 14,110 |
/*******************************************************************************
* Copyright SemanticBits, Northwestern University and Akaza Research
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caaers/LICENSE.txt for details.
******************************************... | NCIP/caaers | caAERS/software/core/src/main/java/gov/nih/nci/cabig/caaers/domain/ajax/AbstractAjaxableDomainObject.java | Java | bsd-3-clause | 1,385 |
/*
* Copyright (C) 2004-2019, GoodData(R) Corporation. All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
package com.gooddata.sdk.model.md.report;
import com.fasterxml.jackson.core.JsonParser;
import com.fas... | martiner/gooddata-java | gooddata-java-model/src/main/java/com/gooddata/sdk/model/md/report/GridElementDeserializer.java | Java | bsd-3-clause | 1,555 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.features.start_surface;
import androidx.annotation.Nullable;
import org.chromium.base.UserData;
import org.chromium.chrome.br... | scheib/chromium | chrome/android/features/start_surface/public/java/src/org/chromium/chrome/features/start_surface/StartSurfaceUserData.java | Java | bsd-3-clause | 6,378 |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.webapps;
import android.content.Context;
import android.graphics.Bitmap;
import org.chromium.base.ApplicationStatus;... | Pluto-tv/chromium-crosswalk | chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenDialogHelper.java | Java | bsd-3-clause | 3,370 |
/******************************************************************
*
* Copyright (C) Satoshi Konno 1999
*
* File : BeeBox.java
*
******************************************************************/
package org.cybergarage.x3d.sensor;
public class BeeBox extends SerialPort {
private static final int MIN_VALUE = 8400... | cybergarage/cybergarage-x3d | extra/src/main/java/org/cybergarage/x3d/sensor/BeeBox.java | Java | bsd-3-clause | 4,389 |
package org.hisp.dhis.period;
/*
* Copyright (c) 2004-2018, University of Oslo
* 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 copyrig... | vietnguyen/dhis2-core | dhis-2/dhis-api/src/test/java/org/hisp/dhis/period/MonthlyPeriodTypeTest.java | Java | bsd-3-clause | 12,321 |
package org.hisp.dhis.trackedentity.action.programindicator;
/*
* Copyright (c) 2004-2016, University of Oslo
* 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 so... | minagri-rwanda/DHIS2-Agriculture | dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/programindicator/GetProgramIndicatorAction.java | Java | bsd-3-clause | 6,220 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 20... | dushmis/Oracle-Cloud | PaaS_SaaS_Accelerator_RESTFulFacade/XJC_Beans/src/com/oracle/xmlns/apps/crmcommon/salesparties/salespartiesservice/types/DeleteSalesAccountResourceAsync.java | Java | bsd-3-clause | 2,302 |
/*
* Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
*/
package com.maxifier.mxcache.impl.caches.def;
import com.maxifier.mxcache.transform.SmartReference;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* ObjectObjectWeakTroveStorage
*
* @author And... | akochurov/mxcache | mxcache-runtime/src/main/java/com/maxifier/mxcache/impl/caches/def/ObjectObjectWeakTroveStorage.java | Java | mit | 1,275 |
package net.glowstone.io.entity;
import net.glowstone.entity.GlowTNTPrimed;
import net.glowstone.util.nbt.CompoundTag;
import org.bukkit.Location;
class TNTPrimedStorage extends EntityStore<GlowTNTPrimed> {
public TNTPrimedStorage() {
super(GlowTNTPrimed.class, "PrimedTnt");
}
@Override
publ... | jimmikaelkael/GlowstonePlusPlus | src/main/java/net/glowstone/io/entity/TNTPrimedStorage.java | Java | mit | 835 |
package au.com.codeka.warworlds.server.handlers;
import au.com.codeka.common.protobuf.Messages;
import au.com.codeka.warworlds.server.RequestException;
import au.com.codeka.warworlds.server.RequestHandler;
import au.com.codeka.warworlds.server.ctrl.EmpireController;
import au.com.codeka.warworlds.server.ctrl.PurchaseC... | jife94/wwmmo | server/src/au/com/codeka/warworlds/server/handlers/EmpiresDisplayNameHandler.java | Java | mit | 1,589 |
package Utilities;
/**
* Created by mkyong
*/
public class OSValidator {
private static String OS = System.getProperty("os.name").toLowerCase();
public static void main(String[] args) {
System.out.println(OS);
if (isWindows()) {
System.out.println("This is Windows");
}... | GradleBuddy/Plugin | GradleBuddy/src/Utilities/OSValidator.java | Java | mit | 1,064 |
//file: FindResources.java
package mypackage;
import java.net.URL;
import java.io.IOException;
public class FindResources {
public static void main( String [] args ) throws IOException {
// absolute from the classpath
URL url = FindResources.class.getResource("/mypackage/foo.txt");
// relative to the cla... | cjboy1984/Java_Sample | src/learningjava3rd/ch12/FindResources.java | Java | mit | 484 |
package com.springsource.petclinic.domain;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.Size;
import java.util.Date;
import javax.persist... | mGrails/mjavaForHeroku | src/main/java/com/springsource/petclinic/domain/Visit.java | Java | mit | 1,101 |