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 (C) 2011-2016 Rinde van Lon, iMinds-DistriNet, KU Leuven
*
* 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
*
* Unl... | rinde/vanLon17-GPEM-code | src/main/java/com/github/rinde/gpem17/Train.java | Java | apache-2.0 | 2,506 |
/*
* 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 ... | wu-sheng/sky-walking | oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/manual/errorlog/BrowserErrorLogRecordDispatcher.java | Java | apache-2.0 | 1,908 |
/**
* 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... | linkedin/pinot | pinot-common/src/main/java/org/apache/pinot/common/metrics/AbstractMetrics.java | Java | apache-2.0 | 16,303 |
/***************************************************************************
Copyright (c) 2016, EPAM SYSTEMS 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... | epam/DLab | services/dlab-webapp-common/src/main/java/com/epam/dlab/rest/contracts/DockerAPI.java | Java | apache-2.0 | 979 |
/*
* Copyright 2017-2022 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 "licen... | aws/aws-sdk-java | aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/transform/LifecyclePolicyRuleActionMarshaller.java | Java | apache-2.0 | 2,018 |
package ru.plahotin.start;
import org.junit.Test;
import static org.junit.Assert.assertThat;
import static org.hamcrest.core.Is.is;
import ru.plahotin.models.Item;
/**...
* class that executes Tracker program with console input
*/
public class StartUITest {
/**...
* Method tests option 2 of the tracker program m... | praddx/JavaCourse | Chapter_002/src/test/java/ru/plahotin/start/StartUITest.java | Java | apache-2.0 | 2,337 |
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
/**
* Native bindings to the <a href="http://www.opengl.org/registry/specs/AM... | VirtualGamer/SnowEngine | Dependencies/opengl/src/org/lwjgl/opengl/AMDInterleavedElements.java | Java | apache-2.0 | 3,223 |
package com.michaelfotiadis.crossyscore.ui.components.create.player;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.michaelfotiadis.crossyscore.R;
import com.michaelfotiadis.crossyscore.ui.core.common.viewholder.BaseViewHolder;
import butterknife.Bind;
public ... | MikeFot/android-crossy-score | app/src/main/java/com/michaelfotiadis/crossyscore/ui/components/create/player/ListPlayerViewHolder.java | Java | apache-2.0 | 827 |
/*
* Copyright 2016-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... | sdnwiselab/onos | drivers/ciena/src/main/java/org/onosproject/drivers/ciena/CienaWaveserverDeviceDescription.java | Java | apache-2.0 | 7,087 |
package org.reveno.atp.core.api.channel;
import java.io.IOException;
import java.io.OutputStream;
/**
* Not used in core processing as such approach is very inefficient.
* Currently, it's usage is limited only for zero-copy with ObjectOutputStream.
*/
public class RevenoBufferOutputStream extends OutputStream {
... | dmart28/reveno | reveno-core/src/main/java/org/reveno/atp/core/api/channel/RevenoBufferOutputStream.java | Java | apache-2.0 | 561 |
/*
* Copyright 2017-2018 David Karnok
*
* 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... | akarnokd/RxJava2Swing | src/main/java/hu/akarnokd/rxjava2/swing/ItemEventObservable.java | Java | apache-2.0 | 1,826 |
package com.orientechnologies.common.collection.closabledictionary;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* Internal presentation of entry inside of {@link OClosableLinkedContainer}
*
* @param <K> Key type.
* @param <V> Value type.
*/
public class OClosableE... | orientechnologies/orientdb | core/src/main/java/com/orientechnologies/common/collection/closabledictionary/OClosableEntry.java | Java | apache-2.0 | 3,714 |
package com.chrynan.android_guitar_tuner.exception;
/**
* An {@link Exception} thrown when a class is supposed to implement a specific listener interface
* but it does not.
*/
public class MissingListenerException extends RuntimeException {
/**
* Constructor for this exception class.
*
* @param ... | chRyNaN/Android-Guitar-Tuner | app/src/main/java/com/chrynan/android_guitar_tuner/exception/MissingListenerException.java | Java | apache-2.0 | 1,435 |
/*
* 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 ... | cscorley/solr-only-mirror | core/src/test/org/apache/solr/core/TestSolrXmlPersistence.java | Java | apache-2.0 | 24,955 |
package thymeleafexamples.stsm.business.services.validators;
import org.springframework.stereotype.Service;
import thymeleafexamples.stsm.business.entities.AudioMixSchedule;
import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
... | VedranV16/AudioMixturesDemo | src/main/java/thymeleafexamples/stsm/business/services/validators/BusinessValidationFactory.java | Java | apache-2.0 | 1,633 |
/*
Derby - Class org.apache.derbyTesting.functionTests.tests.compatibility.VersionCombinationConfigurator
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 owners... | scnakandala/derby | java/testing/org/apache/derbyTesting/functionTests/tests/compatibility/VersionCombinationConfigurator.java | Java | apache-2.0 | 15,596 |
/**
* Copyright © 2012-2016 <a href="https://github.com/krazy/kcfw">kcfw</a> All rights reserved.
*/
package com.krazy.kcfw.common.utils.excel.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Targ... | krazychen/kcfw | src/main/java/com/krazy/kcfw/common/utils/excel/annotation/ExcelField.java | Java | apache-2.0 | 1,453 |
package signalproc.time;
import org.trianacode.taskgraph.Unit;
import triana.types.VectorType;
/**
* A AutoPad unit to pad a data set to the nearest power of two. This has no parameters so it is very convenient to use.
* It pads at the end of the given data. If the data are irregularly sampled the extra elements a... | CSCSI/Triana | triana-toolboxes/signalproc/src/main/java/signalproc/time/AutoPad.java | Java | apache-2.0 | 2,886 |
/*****************************************************************************
* Copyright 2011-2012 INRIA
* Copyright 2011-2012 Universidade Nova de Lisboa
*
* 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 cop... | SyncFree/Indigo | TrueIndigo/src/swift/proto/FetchObjectVersionReply.java | Java | apache-2.0 | 1,863 |
/*
* Copyright (c) 2008-2021, 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 ... | emre-aydin/hazelcast | hazelcast-sql-core/src/test/java/com/hazelcast/sql/impl/expression/predicate/NotPredicateIntegrationTest.java | Java | apache-2.0 | 7,723 |
package com.ofs.ofmc.meetingroom.exceptions;
/**
* Created by saravana.subramanian on 1/6/17.
*/
public class CustomException {
}
| Inferno43/Easy-Scheduler | app/src/main/java/com/ofs/ofmc/meetingroom/exceptions/CustomException.java | Java | apache-2.0 | 134 |
/*
* (c) LibriCore
*
* Created on 27-may-2005
*
* T_OVRD_NTFCT_TYP.java
*/
package org.folio.marccat.dao.persistence;
/**
* @author Ruben
* @version $Revision: 1.1 $, $Date: 2005/07/25 13:09:23 $
* @since 1.0
*/
public class T_OVRD_NTFCT_TYP extends T_SINGLE {
}
| atcult/mod-cataloging | src/main/java/org/folio/marccat/dao/persistence/T_OVRD_NTFCT_TYP.java | Java | apache-2.0 | 275 |
package com.tiny.demo.firstlinecode.kfysts.chapter12.jakewarton;
import java.io.BufferedWriter;
import java.io.Closeable;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FilterOutputStream;
import ja... | tinyvampirepudge/Android_Basis_Demo | Android_Basis_Demo/app/src/main/java/com/tiny/demo/firstlinecode/kfysts/chapter12/jakewarton/DiskLruCache.java | Java | apache-2.0 | 34,597 |
/*
* 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")... | firejack-open/Firejack-Platform | platform/src/main/java/net/firejack/platform/service/content/broker/resource/document/SaveDocumentResourceBroker.java | Java | apache-2.0 | 4,013 |
package org.learning.parallelprocessor.framework.merger;
import java.util.HashMap;
import java.util.Map;
public class KeyMerger<T extends Mergeable<T>> implements Merger<T> {
private Map<String, T> map = new HashMap<>();
@Override
public Map<String, T> merge(T partialOutput) {
if (!map.containsK... | gurpreet-flipkart/ParallelProcessor | src/main/java/org/learning/parallelprocessor/framework/merger/KeyMerger.java | Java | apache-2.0 | 565 |
/*
* Copyright 2012-2017 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 "licen... | dagnir/aws-sdk-java | aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/transform/GetCredentialReportResultStaxUnmarshaller.java | Java | apache-2.0 | 3,033 |
package main;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
public class InputHandler implements KeyListener, MouseListener, MouseMotionListener {
public int mouseX, mouseY;
public ... | tommai78101/Pixavive | src/main/java/main/InputHandler.java | Java | apache-2.0 | 1,382 |
/*
* Copyright 2017-2022 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 "licen... | aws/aws-sdk-java | aws-java-sdk-lex/src/main/java/com/amazonaws/services/lexruntime/model/transform/ButtonMarshaller.java | Java | apache-2.0 | 2,144 |
/*
* 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... | jprante/elasticsearch-server | server/src/main/java/org/elasticsearch/action/support/single/shard/TransportSingleShardAction.java | Java | apache-2.0 | 13,003 |
/**
* Copyright (c) 2016-present, RxJava 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 applicable l... | AttwellBrian/RxJava | src/main/java/io/reactivex/observers/DisposableMaybeObserver.java | Java | apache-2.0 | 3,102 |
/*
* Copyright 2017-2022 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 "licen... | aws/aws-sdk-java | aws-java-sdk-fis/src/main/java/com/amazonaws/services/fis/model/transform/ExperimentTemplateLogConfigurationJsonUnmarshaller.java | Java | apache-2.0 | 3,667 |
/*
* Copyright 2017 Javier A. Ortiz Bultron javier.ortiz.78@gmail.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | javydreamercsw/validation-manager | VM-Core/src/main/java/com/validation/manager/core/api/image/AvatarProvider.java | Java | apache-2.0 | 1,301 |
package com.yjl.javabase.threadaction;
import java.util.*;
import java.util.regex.*;
import net.jcip.annotations.*;
/**
* AttributeStore
* <p/>
* Holding a lock longer than necessary
*
* @author Brian Goetz and Tim Peierls
*/
@ThreadSafe
public class AttributeStore {
@GuardedBy("this") private final Map<St... | yangjunlin-const/WhileTrueCoding | JavaBase/src/main/java/com/yjl/javabase/threadaction/AttributeStore.java | Java | apache-2.0 | 755 |
/*
* Copyright 2009 Robert Aaron Hible
*
* 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 ... | rahible/bits4j | src/org/bits4j/header/AckHeaderHandler.java | Java | apache-2.0 | 881 |
/*
* Copyright 2015 Ignacio del Valle Alles idelvall@brutusin.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 requ... | brutusin/Brutusin-RPC | rpc-api/src/main/java/org/brutusin/rpc/http/Cacheable.java | Java | apache-2.0 | 2,335 |
package org.zstack.image;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.zstack.core.Platform;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.clou... | camilesing/zstack | image/src/main/java/org/zstack/image/CreateRootVolumeTemplateFromRootVolumeLongJob.java | Java | apache-2.0 | 1,970 |
/*
* Copyright 2009-2011 Collaborative Research Centre SFB 632
*
* 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 ... | pixeldrama/ANNIS | annis-service/src/main/java/annis/sqlgen/MetaDataAndCorpusWhereClauseGenerator.java | Java | apache-2.0 | 2,446 |
package com.sdeli.imgurian.views;
import android.content.Context;
import android.view.GestureDetector;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import com.sdeli.imgurian.gallery.GalleryAlbum;
import com.sdeli.imgurian.gallery.GalleryEntry;
import java.util.concurrent.ExecutorService;
impor... | franticdeli/Imgurian | app/src/main/java/com/sdeli/imgurian/views/EntryView.java | Java | apache-2.0 | 1,478 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package co.edu.sena.a;
import co.edu.sena.mavenproject3.Rae;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
impor... | SENA-CEET/1349397-Trimestre-4 | java/JSF/mavenproject3/src/main/java/co/edu/sena/a/RaeFacade.java | Java | apache-2.0 | 716 |
/*
* This file is generated by jOOQ.
*/
package io.cattle.platform.core.model.tables;
import io.cattle.platform.core.model.CattleTable;
import io.cattle.platform.core.model.Keys;
import io.cattle.platform.core.model.tables.records.StoragePoolRecord;
import io.cattle.platform.db.jooq.converter.DataConverter;
import i... | vincent99/cattle | code/iaas/model/src/main/java/io/cattle/platform/core/model/tables/StoragePoolTable.java | Java | apache-2.0 | 7,839 |
/*
* Copyright 2008 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 requi... | krasserm/ipf | platform-camel/core/src/test/java/org/openehealth/ipf/platform/camel/core/camel/exception/ExceptionHandlingTest.java | Java | apache-2.0 | 4,074 |
/*
* 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 "lice... | trasa/aws-sdk-java | aws-java-sdk-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/model/JobInput.java | Java | apache-2.0 | 35,567 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you ma... | littlezhou/hadoop | hadoop-ozone/tools/src/test/java/org/apache/hadoop/ozone/om/TestOmSQLCli.java | Java | apache-2.0 | 10,423 |
package com.bxtel;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.CacheManager;
import org.springframework.cache.interceptor.CacheOperationInvocationContext;
import org.springframework.cache... | zzsoszz/codegen4 | src/main/java/com/bxtel/MyCacheResolver.java | Java | apache-2.0 | 1,142 |
/*
* Copyright 2012 The Netty Project
*
* The Netty Project 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 ... | urunimi/NettyAndroid | library/src/org/jboss/netty/channel/ChannelFactory.java | Java | apache-2.0 | 3,516 |
package com.github.taxbeans.crypto;
import java.math.BigDecimal;
import java.time.ZonedDateTime;
import javax.money.CurrencyUnit;
import javax.money.MonetaryAmount;
import org.javamoney.moneta.Money;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class CurrencyTrade extends AbstractCryptoEvent {
... | taxbeans/taxbeans | taxbeans-forms/src/main/java/com/github/taxbeans/crypto/CurrencyTrade.java | Java | apache-2.0 | 7,598 |
package com.example.coolweather.gson;
import com.google.gson.annotations.SerializedName;
/**
* Created by admin on 2017/4/25.
*/
public class Suggestion {
@SerializedName("comf")
public Comfort comfort;
@SerializedName("cw")
public CarWash carWash;
public Sport sport;
public class Comfor... | wangchendev/coolweather | app/src/main/java/com/example/coolweather/gson/Suggestion.java | Java | apache-2.0 | 575 |
/*
* Copyright 2021 Allette Systems (Australia)
* http://www.allette.com.au
*
* 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... | pageseeder/ox | pso-ox-core/src/main/java/org/pageseeder/ox/xml/XMLCopy.java | Java | apache-2.0 | 4,886 |
/*
* Copyright (c) 2010-2015 Evolveum
*
* 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... | Pardus-Engerek/engerek | infra/schema/src/main/java/com/evolveum/midpoint/schema/DeltaConvertor.java | Java | apache-2.0 | 22,445 |
package org.topbraid.spin.spr;
import com.hp.hpl.jena.query.ResultSet;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.Resource;
/**
* An interface for objects that can convert a SPARQL ResultSet
* into a SPR table.
*
* @author Holger Knublauch
*/
public interface TableEng... | vital-ai/sparql-spin | src/org/topbraid/spin/spr/TableEngine.java | Java | apache-2.0 | 383 |
package com.smile.spider.xml;
import javax.xml.bind.annotation.*;
import java.util.List;
/**
* Created by zhutao on 14/12/24.
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "job")
public class Job {
@XmlAttribute(name = "id")
private String id;
@XmlAttribute(name = "name")
privat... | ordinary/smile | spider-akka/src/main/java/com/smile/spider/xml/Job.java | Java | apache-2.0 | 1,191 |
package com.hsh.school.base;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.hsh.school.MainActivity;
import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu;
publi... | handexing/HapplSchoolHelp | src/com/hsh/school/base/BaseFragment.java | Java | apache-2.0 | 1,167 |
/*
* RED5 Open Source Media Server - https://github.com/Red5/ Copyright 2006-2016 by respective authors (see below). 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://ww... | Red5/red5-server-common | src/main/java/org/red5/server/api/service/ServiceUtils.java | Java | apache-2.0 | 13,374 |
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to Y... | lvweiwolf/poi-3.16 | src/testcases/org/apache/poi/ss/formula/functions/TestRowCol.java | Java | apache-2.0 | 3,271 |
/*
* Copyright 2002-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | fhanik/spring-security | itest/web/src/integration-test/java/org/springframework/security/integration/ConcurrentSessionManagementTests.java | Java | apache-2.0 | 4,103 |
package com.ervin.litepal.api;
import com.ervin.litepal.model.meizhi.MeizhiEntity;
import com.ervin.litepal.model.meizhi.VideoEntity;
import com.ervin.litepal.request.RequestConstants;
import com.ervin.litepal.request.RestClient;
import rx.Observable;
/**
* Created by Ervin on 2016/3/24.
*/
public class GetGankApi... | ervinsae/EZCode | app/src/main/java/com/ervin/litepal/Api/GetGankApi.java | Java | apache-2.0 | 656 |
/*
* *****************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2017 by Pentaho : http://www.pentaho.com
*
* *******************************************************************************
* Licensed under the Apache License, Version 2.0 (the... | TatsianaKasiankova/pentaho-kettle | plugins/engine-configuration/impl/src/test/java/org/pentaho/di/engine/configuration/impl/pentaho/DefaultRunConfigurationExecutorTest.java | Java | apache-2.0 | 9,902 |
package com.google.runda.event;
/**
* Created by wukai on 2015/4/23.
*/
public class RequestLoginOverEvent {
private Boolean flag;
private String message;
private String exception;
public Boolean getFlag() {
return flag;
}
public String getMessage() {
return message;
}
... | wukaikailive/runda | app/src/main/java/com/google/runda/event/RequestLoginOverEvent.java | Java | apache-2.0 | 638 |
package com.spacetimecat.build.java;
public interface HasGav
{
String getGroupId ();
String getArtifactId ();
String getVersion ();
}
| edom/web | java-build/src/main/java/com/spacetimecat/build/java/HasGav.java | Java | apache-2.0 | 149 |
package com.stacksync.syncservice.db.postgresql;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import org.apache.log4j.Logger;
import com.stacksync.commons.models.Item;
import com.stacksync.commons.models... | stacksync/sync-service | src/main/java/com/stacksync/syncservice/db/postgresql/PostgresqlItemDAO.java | Java | apache-2.0 | 14,398 |
/**
* Copyright 2008 - 2019 The Loon Game Engine 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 appl... | cping/LGame | Java/Loon-Neo/src/loon/utils/html/HtmlImage.java | Java | apache-2.0 | 1,243 |
//==============================================================================
//
// Copyright (c) 2015-
// Authors:
// * Simos Gerasimou (University of York)
//
//------------------------------------------------------------------------------
//
// This file is part of EvoChecker.
//
//==========================... | gerasimou/SBMS | RODES/src/main/java/evochecker/genetic/jmetal/util/eDominanceWorstCaseDominanceComparator.java | Java | apache-2.0 | 4,769 |
/*
* Copyright 2020 VMware, 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | micrometer-metrics/micrometer | implementations/micrometer-registry-prometheus/src/test/java/io/micrometer/prometheus/PrometheusConfigTest.java | Java | apache-2.0 | 1,508 |
package com.mindforger.coachingnotebook.shared.beans;
import java.io.Serializable;
public class UserProfileBean implements Serializable {
private UserBean user;
private UserBean[] friends;
private DescriptorBean[] growDescriptors;
public UserProfileBean() {
}
public UserBean getUser() {
re... | dvorka/coaching-notebook | src/com/mindforger/coachingnotebook/shared/beans/UserProfileBean.java | Java | apache-2.0 | 816 |
package org.arquillian.cube;
/**
* Factory to instantiate container objects
*
* @author <a href="mailto:rivasdiaz@gmail.com">Ramon Rivas</a>
*/
public interface ContainerObjectFactory {
/**
* Creates an instance of the container object. It also creates and starts a cube defined by the container object
... | lordofthejars/arquillian-cube | api/src/main/java/org/arquillian/cube/ContainerObjectFactory.java | Java | apache-2.0 | 1,975 |
/*
*
* Copyright 2011 Netflix, 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 ap... | box/curator | curator-framework/src/main/java/com/netflix/curator/framework/api/Pathable.java | Java | apache-2.0 | 965 |
/*
* Copyright 1999-2019 Seata.io Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | seata/seata | seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/io/seata/spring/boot/autoconfigure/properties/server/session/SessionProperties.java | Java | apache-2.0 | 1,821 |
/*
* Copyright 2015 Webpagebytes
*
* 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... | webpagebytes/cms | src/main/java/com/webpagebytes/cms/WPBAuthenticationResult.java | Java | apache-2.0 | 1,740 |
package com.enginemobi.bssuite.repository;
import com.enginemobi.bssuite.config.audit.AuditEventConverter;
import com.enginemobi.bssuite.domain.PersistentAuditEvent;
import org.joda.time.LocalDateTime;
import org.springframework.boot.actuate.audit.AuditEvent;
import org.springframework.boot.actuate.audit.AuditEventRep... | pkcool/bssuite | src/main/java/com/enginemobi/bssuite/repository/CustomAuditEventRepository.java | Java | apache-2.0 | 2,868 |
/*
* 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 ... | strapdata/cassandra | src/java/org/apache/cassandra/tools/nodetool/RemoveNode.java | Java | apache-2.0 | 2,067 |
/*-------------------------------------------------------------------------------------------------------------------*\
| Copyright (C) 2015 PayPal |
| ... | ILikeToNguyen/SeLion | server/src/main/java/com/paypal/selion/grid/servlets/transfer/UploadRequestProcessor.java | Java | apache-2.0 | 16,073 |
package fm.pattern.valex;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import fm.pattern.commons.util.JSON;
public class Result<T> {
private final T instance;
private final List<Reportable> errors = new ArrayList<>();
private Result(T instance) {
this.instance = i... | PatternFM/valex | src/main/java/fm/pattern/valex/Result.java | Java | apache-2.0 | 1,959 |
package mono.android.support.v7.internal.widget;
public class FitWindowsViewGroup_OnFitSystemWindowsListenerImplementor
extends java.lang.Object
implements
mono.android.IGCUserPeer,
android.support.v7.internal.widget.FitWindowsViewGroup.OnFitSystemWindowsListener
{
static final String __md_methods;
... | fbonilla/OrderNowTest | OrderNowAndroidProject/OrderNowAndroid/obj/Debug/android/src/mono/android/support/v7/internal/widget/FitWindowsViewGroup_OnFitSystemWindowsListenerImplementor.java | Java | apache-2.0 | 1,843 |
/*
* Copyright (C) 2004-2015 Volker Bergmann (volker.bergmann@bergmann-it.de).
* 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/lic... | aravindc/databenecommons | src/main/java/org/databene/commons/ui/swing/CopyFromTextFieldAction.java | Java | apache-2.0 | 1,753 |
package com.wordpress.tipsforjava.swing;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.event.*;
import javax.swing.undo.*;
/**
* This class will merge individual edits into a single larger edit.
* That is, characters entered sequentially... | griffon/griffon-javatips-plugin | src/main/com/wordpress/tipsforjava/swing/CompoundUndoManager.java | Java | apache-2.0 | 7,389 |
/**
*/
package CIM15.IEC61968.Metering;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Dynamic Demand</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The ... | SES-fortiss/SmartGridCoSimulation | core/cim15/src/CIM15/IEC61968/Metering/DynamicDemand.java | Java | apache-2.0 | 10,932 |
/*
* Copyright 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 applica... | lsmaira/gradle | subprojects/logging/src/main/java/org/gradle/internal/logging/sink/OutputEventRenderer.java | Java | apache-2.0 | 21,739 |
package org.redfrog404.mobycraft.commands.titus;
import static org.redfrog404.mobycraft.commands.common.MainCommand.args;
import static org.redfrog404.mobycraft.commands.common.MainCommand.sender;
import static org.redfrog404.mobycraft.utils.MessageSender.sendConfirmMessage;
import static org.redfrog404.mobycraft.util... | AdityaGupta1/mobycraft | src/src/main/java/org/redfrog404/mobycraft/commands/titus/ContainerLifecycleCommands.java | Java | apache-2.0 | 11,646 |
package telacompra.connections;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnectionFactory {
public Connection getConnection() {
try {
return DriverManager.getConnection(
"jdbc:mysql://localhost:3306/mysql", "root", ... | gustavorodriguesgomes/Projeto_Java | src/telacompra/connections/ConnectionFactory.java | Java | apache-2.0 | 440 |
/**
* 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... | vergilchiu/hive | ql/src/java/org/apache/hadoop/hive/ql/plan/ReduceWork.java | Java | apache-2.0 | 10,412 |
/*
*
* * Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.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.o... | opensingular/singular-core | form/wicket/src/test/java/org/opensingular/form/wicket/model/ModelSerializationTest.java | Java | apache-2.0 | 4,909 |
//
// RoleController.java
// blogwt
//
// Created by William Shakour (billy1380) on 23 Jun 2015.
// Copyright © 2015 WillShex Limited. All rights reserved.
//
package com.willshex.blogwt.client.controller;
import java.util.Collections;
import com.google.gwt.http.client.Request;
import com.google.gwt.user.client.r... | billy1380/blogwt | src/main/java/com/willshex/blogwt/client/controller/RoleController.java | Java | apache-2.0 | 3,680 |
/*
* Copyright 2012-2017 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 "licen... | dagnir/aws-sdk-java | aws-java-sdk-inspector/src/main/java/com/amazonaws/services/inspector/model/transform/InspectorServiceAttributesJsonUnmarshaller.java | Java | apache-2.0 | 3,411 |
/*
* Copyright 2017-2022 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 "licen... | aws/aws-sdk-java | aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/transform/AdminUserGlobalSignOutResultJsonUnmarshaller.java | Java | apache-2.0 | 1,706 |
package com.letionik.matinee.config;
import com.letionik.matinee.service.MailService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.mail.javamail.JavaMailSenderImpl;
import ja... | alexeyzyabkin/matinee | backend/src/main/java/com/letionik/matinee/config/MailConfig.java | Java | apache-2.0 | 1,897 |
package com.zx.sms.connect.manager;
import io.netty.util.concurrent.Future;
public interface ExitUnlimitCirclePolicy<T> {
boolean notOver(Future<T> future);
}
| Lihuanghe/CMPPGate | src/main/java/com/zx/sms/connect/manager/ExitUnlimitCirclePolicy.java | Java | apache-2.0 | 169 |
/*
* #%L
* fujion
* %%
* Copyright (C) 2021 Fujion Framework
* %%
* 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 requ... | fujion/fujion-framework | fujion-themes/src/main/java/org/fujion/theme/bootswatch/VersionCheck.java | Java | apache-2.0 | 1,837 |
/*
* Copyright 2013 Michael Mackenzie High
*
* 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... | Mackenzie-High/autumn | src/autumn/lang/compiler/ast/nodes/DoubleDatum.java | Java | apache-2.0 | 5,731 |
package au.net.thehardings.ims.mergereport.dispatch;
import java.io.IOException;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import freemarker.template.Configuration;
import freemarker.template.DefaultObjectWrapper;
import freemarker.... | fingertwister/merge-report | mergereport/src/main/java/au/net/thehardings/ims/mergereport/dispatch/FreemarkerDispatcher.java | Java | apache-2.0 | 4,118 |
package org.spreadcoinj.uri;
/**
* <p>Exception to provide the following to {@link BitcoinURI}:</p>
* <ul>
* <li>Provision of parsing error messages</li>
* </ul>
* <p>This exception occurs when a required field is detected (under the BIP21 rules) and fails
* to pass the associated test (such as {@code req-expire... | bitbandi/spreadcoinj | core/src/main/java/org/spreadcoinj/uri/RequiredFieldValidationException.java | Java | apache-2.0 | 777 |
/**
* Copyright (c) 2010-2014 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.util;
/**
* @author Radovan Semancik
*
*/
public interface DisplayableValue<T> {
/**
... | bshp/midPoint | infra/util/src/main/java/com/evolveum/midpoint/util/DisplayableValue.java | Java | apache-2.0 | 755 |
package com.example.util;
import com.squareup.burst.BurstJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.assertj.core.api.Assertions.assertThat;
@RunWith(BurstJUnit4.class)
public class StringUtilsTest {
enum IsEmptyTestCases {
CASE_1("", true),
CASE_2(" ", f... | athkalia/Just-Another-Android-App | app/src/unitTests/java/com/example/util/StringUtilsTest.java | Java | apache-2.0 | 872 |
/*
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by ... | mdiazf/querydsl | querydsl-sql-codegen/src/test/java/com/querydsl/sql/codegen/DefaultNamingStrategyTest.java | Java | apache-2.0 | 4,782 |
package com.waiso.social.data;
import java.util.List;
import com.mongodb.BasicDBObject;
public interface IGenericDAO {
public void insert(String dbName, BasicDBObject object);
public void insert(String dbName, List<BasicDBObject> objects);
public void update(String dbName, Object _id, BasicDBObject ob... | g6tech/waiso-social | waiso-social/waiso-social-data/src/main/java/com/waiso/social/data/IGenericDAO.java | Java | apache-2.0 | 549 |
/*
* Copyright 2010-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | msdgwzhy6/spring-android-samples | spring-android-basic-auth/server/src/main/java/org/springframework/android/basicauth/config/WebConfig.java | Java | apache-2.0 | 1,660 |
/*
* Copyright (c) 2012-2014 Daniel Serdyukov
*
* 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... | exzogeni/droidkit | src/main/java/com/exzogeni/dk/http/HttpStatus.java | Java | apache-2.0 | 2,801 |
/*
* Copyright 2017-2022 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 "licen... | aws/aws-sdk-java | aws-java-sdk-config/src/main/java/com/amazonaws/services/config/model/transform/GetComplianceDetailsByResourceResultJsonUnmarshaller.java | Java | apache-2.0 | 3,397 |
package com.siyeh.igtest.errorhandling.exception_from_catch;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.sql.SQLException;
public class ExceptionFromCatchWhichDoesntWrap {
public final Iterator<String> iterator() {
try {
doStuff();
}
catch (S... | joewalnes/idea-community | plugins/InspectionGadgets/test/com/siyeh/igtest/errorhandling/exception_from_catch/ExceptionFromCatchWhichDoesntWrap.java | Java | apache-2.0 | 1,227 |
/**
* Copyright 2018 Nikita Koksharov
*
* 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... | jackygurui/redisson | redisson/src/main/java/org/redisson/RedissonExecutorService.java | Java | apache-2.0 | 48,854 |
/*
* Copyright (C) 2010 Daniel Nilsson
* Copyright (C) 2013 Slimroms
* Edited a bit by dwitherell 2015
*
* 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.ap... | Ant-Droid/android_packages_apps_Settings_OLD | src/com/android/settings/antos/preference/ColorPickerView.java | Java | apache-2.0 | 25,046 |