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 |
|---|---|---|---|---|---|
/**
* 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... | HubSpot/hbase | hbase-server/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationWithTags.java | Java | apache-2.0 | 10,471 |
/*
* 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/DescribeRing.java | Java | apache-2.0 | 1,874 |
package org.usc.demo.beanutils.test;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.beanutils.ConvertUtils;
import org.apache.commons.beanutils.converters.DateConverter;
import org.apache.commons.beanutils.converters.DateTimeConverter;
import org.usc.demo.beanutils.convert.SimpleListCon... | usc/demo | src/main/java/org/usc/demo/beanutils/test/UserForTypeTest.java | Java | apache-2.0 | 2,957 |
/*
* Copyright 2013 lorislab.org.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | lorislab/armonitor | armonitor-agent-rs/src/main/java/org/lorislab/armonitor/agent/rs/model/Request.java | Java | apache-2.0 | 925 |
package ru.r2cloud.jradio.ao73;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import ru.r2cloud.jradio.util.BitInputStream;
public class WholeOrbitDataBatch {
private WholeOrbit[] data = new WholeOrbit[104];
private String callsign;
private int sequenceNumber;
public WholeOrbitDataBatc... | dernasherbrezon/jradio | src/main/java/ru/r2cloud/jradio/ao73/WholeOrbitDataBatch.java | Java | apache-2.0 | 1,164 |
/*
* Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | SnappyDataInc/snappy-store | gemfire-shared/src/main/java/com/gemstone/gemfire/internal/shared/LauncherBase.java | Java | apache-2.0 | 22,233 |
package io.github.cubedtear.jcubit.awt.gameEngine.events;
import io.github.cubedtear.jcubit.math.Vec2i;
/**
* @author Aritz Lopez
*/
public class MouseReleasedEvent extends MouseEvent {
public MouseReleasedEvent(Vec2i pos, MouseButton button) {
super(pos, button);
}
@Override
public MouseE... | cubedtear/jcubit | jcubit-gameEngine/src/main/java/io/github/cubedtear/jcubit/awt/gameEngine/events/MouseReleasedEvent.java | Java | apache-2.0 | 417 |
package com.example.yln1172.myweather.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.example.yln1172.myweather.model.City;
import com.example.yln1172.myweather.model.County;
import com.example.yln1172.... | yuleizone/android_test | MyWeather/app/src/main/java/com/example/yln1172/myweather/db/MyWeatherDB.java | Java | apache-2.0 | 4,124 |
package com.angkorteam.fintech.helper;
import com.angkorteam.fintech.IMifos;
import io.github.openunirest.http.JsonNode;
public class RecurringHelper {
public static JsonNode create(IMifos session, JsonNode object) {
return Helper.performServerPost(session, "/api/v1/recurringdepositproducts", object);
... | PkayJava/fintech | src/main/java/com/angkorteam/fintech/helper/RecurringHelper.java | Java | apache-2.0 | 327 |
package org.apereo.cas.configuration.model.support.pac4j.saml;
import org.apereo.cas.configuration.model.support.pac4j.Pac4jBaseClientProperties;
import org.apereo.cas.configuration.support.RequiredProperty;
import org.apereo.cas.configuration.support.RequiresModule;
import lombok.Getter;
import lombok.Setter;
impor... | tduehr/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/pac4j/saml/Pac4jSamlClientProperties.java | Java | apache-2.0 | 5,882 |
package com.cloud.agent.api;
import com.cloud.host.Host;
import java.util.Map;
public class PingRoutingCommand extends PingCommand {
Map<String, HostVmStateReportEntry> _hostVmStateReport;
boolean _gatewayAccessible = true;
boolean _vnetAccessible = true;
protected PingRoutingCommand() {
}
... | remibergsma/cosmic | cosmic-core/nucleo/src/main/java/com/cloud/agent/api/PingRoutingCommand.java | Java | apache-2.0 | 1,059 |
package ru.test.addressbook.tests;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.boot.MetadataSources;
import org.hibernate.boot.registry.StandardServiceRegistry;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.testng.annotations.BeforeClass;
impo... | emmaviento/training_java_for_testing | addressbook-web-tests/src/test/java/ru/test/addressbook/tests/HbConnectionTest.java | Java | apache-2.0 | 1,618 |
/**
* Licensed to the Austrian Association for Software Tool Integration (AASTI)
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. The AASTI licenses this file to you under the Apache License,
* Version 2... | openengsb-labs/labs-liquibase | extender/src/main/java/org/openengsb/labs/liquibase/extender/internal/LiquibaseMigrationCenterConfiguration.java | Java | apache-2.0 | 1,187 |
package org.apereo.cas.configuration.model.support.dynamodb;
import org.apereo.cas.configuration.model.support.aws.BaseAmazonWebServicesProperties;
import lombok.Getter;
import lombok.Setter;
/**
* This is {@link AbstractDynamoDbProperties}.
*
* @author Misagh Moayyed
* @since 5.1.0
*/
@Getter
@Setter
public ab... | GIP-RECIA/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/dynamodb/AbstractDynamoDbProperties.java | Java | apache-2.0 | 1,260 |
/*
* Copyright (c) 2012 Jan Kotek
*
* 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... | markkerzner/nn_kove | hadoop/src/hdfs/org/apache/hadoop/hdfs/server/namenode/mapdb/AsyncWriteEngine.java | Java | apache-2.0 | 19,355 |
/**
* 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/wss4j | ws-security-dom/src/test/java/org/apache/wss4j/dom/saml/SamlTokenHOKTest.java | Java | apache-2.0 | 11,741 |
/*
* 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 ... | neykov/incubator-brooklyn | software/webapp/src/test/java/brooklyn/entity/webapp/jboss/Jboss7DockerLiveTest.java | Java | apache-2.0 | 2,720 |
/*
* Copyright 2002-2005 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... | maddingo/sojo | src/test/java/test/net/sf/sojo/model/TestExceptionWithBadConstructor.java | Java | apache-2.0 | 1,065 |
/**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.integration.tool.depgraphambiguity;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.net.URI;
import java.u... | McLeodMoores/starling | projects/integration-rest-client/src/main/java/com/opengamma/integration/tool/depgraphambiguity/FindViewAmbiguities.java | Java | apache-2.0 | 15,589 |
/*
* 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... | kagel/elasticsearch | src/test/java/org/elasticsearch/rest/action/admin/indices/upgrade/UpgradeTest.java | Java | apache-2.0 | 14,735 |
/*
* Copyright (C) 2015 Google 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 ... | MaTriXy/auto | value/src/main/java/com/google/auto/value/processor/ExtensionContext.java | Java | apache-2.0 | 2,166 |
/*
* Copyright: 2013 Ivan Korobkov <ivan.korobkov@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
*
* Unless required b... | pdef/pdef | java/pdef/src/test/java/io/pdef/PdefJsonTest.java | Java | apache-2.0 | 1,974 |
/*
* 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... | PetrGasparik/midpoint | model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestSegregationOfDuties.java | Java | apache-2.0 | 12,739 |
/*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provi... | jjYBdx4IL/misc | ecs/src/main/java/org/apache/ecs/html/Center.java | Java | apache-2.0 | 7,980 |
/*
Copyright 2013-2018 Immutables Authors 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.apache.org/licenses/LICENSE-2.0
Unless required by appli... | immutables/immutables | value-fixture/test/org/immutables/fixture/ValuesTest.java | Java | apache-2.0 | 18,236 |
package com.bruce.wechat.oauth2;
/**
* OAuth2 servlet类
*
* @author ivhhs
* @date 2014.10.16
*/
import com.bruce.wechat.ParamesAPI.ParamesAPI;
import com.bruce.wechat.ParamesAPI.WeixinUtil;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;... | LittleLazyCat/TXEYXXK | 2017workspace/wxqyh/src/com/bruce/wechat/oauth2/OAuth2Servlet.java | Java | apache-2.0 | 1,430 |
package dev.jeka.core.api.depmanagement;
import dev.jeka.core.api.utils.JkUtilsIterable;
import dev.jeka.core.api.utils.JkUtilsPath;
import java.nio.file.Path;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
/**
* A dependency on files located on file system.
*/
public final class... | jerkar/jerkar | dev.jeka.core/src/main/java/dev/jeka/core/api/depmanagement/JkFileSystemDependency.java | Java | apache-2.0 | 2,003 |
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
new OptionParser(args).parseOpts();
}
}
| mapr-demos/mapr-music | data-generator/src/main/java/Main.java | Java | apache-2.0 | 167 |
package com.anteoy.coreJava.niotest;
import java.net.InetSocketAddress;
import java.net.SocketException;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
/**
* @auther zhoudazhuang
* @date 19-5-8 21:19
* @description
*/
public class TCPEchoClientNonblocking {
public static void main(String ... | Anteoy/jottings | src/main/java/com/anteoy/coreJava/niotest/TCPEchoClientNonblocking.java | Java | apache-2.0 | 3,193 |
package org.apache.jackrabbit.oak.security.user.monitor;
import org.apache.jackrabbit.oak.stats.MeterStats;
import org.apache.jackrabbit.oak.stats.StatisticsProvider;
import org.apache.jackrabbit.oak.stats.StatsOptions;
import org.apache.jackrabbit.oak.stats.TimerStats;
import static java.util.concurrent.TimeUnit.NAN... | anchela/jackrabbit-oak | oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/monitor/UserMonitorImpl.java | Java | apache-2.0 | 4,084 |
/*
* Copyright (c) 2017 Otávio Santana and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at http://ww... | JNOSQL/diana-driver | orientdb-driver/src/test/java/org/jnosql/diana/orientdb/document/ContactType.java | Java | apache-2.0 | 680 |
/*
* Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | wso2/andes | modules/andes-core/broker/src/main/java/org/wso2/andes/configuration/qpid/ServerConfiguration.java | Java | apache-2.0 | 24,956 |
package io.katharsis.queryspec;
import java.io.Serializable;
import java.util.Map;
/**
* {@code QuerySpecRelationshipRepository} implementation that provides additional support to bulk-request relations.
*/
public interface QuerySpecBulkRelationshipRepository<T, I extends Serializable, D, J extends Serializable>
... | iMDT/katharsis-framework-j6 | katharsis-core/src/main/java/io/katharsis/queryspec/QuerySpecBulkRelationshipRepository.java | Java | apache-2.0 | 677 |
/*
* 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 sand.client.gui;
import java.util.List;
import java.util.UUID;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
impo... | andymw/sandsotrc | src/sand/client/gui/SandActionsGUI.java | Java | apache-2.0 | 32,929 |
package org.unipop.rest;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.JsonNode;
import com.mashape.unirest.http.exceptions.UnirestException;
import com.mashape.unirest.request.BaseRequest;
import org.apache.tinkerpop.gremlin.structure.Edge;
import org.apache.tinkerpop.gremlin.structure... | unipop-graph/unipop | unipop-rest/src/org/unipop/rest/RestController.java | Java | apache-2.0 | 10,217 |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.concurrent;
/**
* This interface wraps access to some timer that can be used to measure elapsed time, in milliseconds. This
* abstraction allows for unit testing the behavior of time-based const... | vespa-engine/vespa | vespajlib/src/main/java/com/yahoo/concurrent/Timer.java | Java | apache-2.0 | 707 |
package org.jrebirth.sample.service;
import org.jrebirth.core.service.DefaultService;
import org.jrebirth.core.wave.Wave;
import org.jrebirth.core.wave.WaveTypeBase;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The class <strong>SampleService</strong>.
*
* @author
*/
public final class SampleS... | CompendiumNG/fxpoc | src/main/java/org/jrebirth/sample/service/SampleService.java | Java | apache-2.0 | 1,117 |
package org.gradle.test.performance.mediummonolithicjavaproject.p156;
import org.gradle.test.performance.mediummonolithicjavaproject.p155.Production3118;
public class Production3127 {
private Production3118 property0;
public Production3118 getProperty0() {
return property0;
}
public... | oehme/analysing-gradle-performance | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p156/Production3127.java | Java | apache-2.0 | 2,048 |
package com.sequenceiq.cloudbreak.core.flow2.cluster.downscale;
import com.sequenceiq.cloudbreak.core.flow2.FlowState;
import com.sequenceiq.cloudbreak.core.flow2.RestartAction;
import com.sequenceiq.cloudbreak.core.flow2.restart.FillInMemoryStateStoreRestartAction;
enum ClusterDownscaleState implements FlowState {
... | sequenceiq/cloudbreak | core/src/main/java/com/sequenceiq/cloudbreak/core/flow2/cluster/downscale/ClusterDownscaleState.java | Java | apache-2.0 | 694 |
package ejercicio32;
import java.util.Scanner;
/**
* Ejercicio 32: Hacer un programa que nos permita introducir un numero por
* teclado y sobre el se realicen las siguientes operaciones: comprobar si es
* primo, hallar su factorial o imprimir su tabla de multiplicar.
*
* @author meny
* @since 13/05/20... | julius5/Ejercicios | ejercicios/src/ejercicio32/ejercicio32.java | Java | apache-2.0 | 2,433 |
/*
* 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 ... | gonmarques/commons-collections | src/test/java/org/apache/commons/collections4/map/UnmodifiableMapTest.java | Java | apache-2.0 | 3,163 |
package org.nextime.ion.backoffice.messageBoard;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Collections;
import java.util.Vector;
import javax.servlet.http.HttpServlet;
public class... | datazuul/ion-cms-maven | backoffice/src/main/java/org/nextime/ion/backoffice/messageBoard/MessageBoard.java | Java | apache-2.0 | 1,784 |
/*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | alibaba/nacos | istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java | Java | apache-2.0 | 8,564 |
package com.adventure.engine.script.syntax;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
public class ListValue implements Value {
final List<String> values;
public ListValue(String[] values) {
this.values = new ArrayList<String>(values.length);
for (String... | angelusmetal/adventure | src/main/java/com/adventure/engine/script/syntax/ListValue.java | Java | apache-2.0 | 868 |
/*
* Copyright 2017 GcsSloop
*
* 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... | GcsSloop/diycode-sdk | sdk/src/main/java/com/gcssloop/diycode_sdk/api/topic/bean/Topic.java | Java | apache-2.0 | 4,302 |
/*
* 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... | aldaris/undertow | core/src/main/java/io/undertow/server/HttpServerExchange.java | Java | apache-2.0 | 87,777 |
package de.dhbw.vote;
import android.app.Activity;
import android.app.Fragment;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.util.Log;
import android.view.KeyEvent;
import android.view.LayoutInflater;
imp... | MAtzmueller/Kadconia | src/de/dhbw/vote/VoteFragment.java | Java | apache-2.0 | 2,268 |
/**
* Copyright © 2017 tesshu.com (webmaster@tesshu.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 app... | tesshucom/subsonic-fx-player | subsonic-fx-player-impl/src/main/java/com/tesshu/subsonic/client/fx/view/Icon.java | Java | apache-2.0 | 1,139 |
// Copyright 2021 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 writi... | googleads/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202111/CustomTargetingKey.java | Java | apache-2.0 | 6,403 |
/*
* 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 ... | gavanx/pdflearn | pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/ProtectionPolicy.java | Java | apache-2.0 | 2,116 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v9/resources/asset_group_listing_group_filter.proto
package com.google.ads.googleads.v9.resources;
public final class AssetGroupListingGroupFilterProto {
private AssetGroupListingGroupFilterProto() {}
public static void re... | googleads/google-ads-java | google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/resources/AssetGroupListingGroupFilterProto.java | Java | apache-2.0 | 17,035 |
/**
* Copyright (c) 2015 sothawo
*
* http://www.sothawo.com
*/
package com.sothawo.taboo2.repository;
import com.sothawo.taboo2.AlreadyExistsException;
import com.sothawo.taboo2.Bookmark;
import com.sothawo.taboo2.NotFoundException;
import java.util.Collection;
/**
* Implementations of this interface store and ... | sothawo/taboo2 | src/main/java/com/sothawo/taboo2/repository/BookmarkRepository.java | Java | apache-2.0 | 3,647 |
/**
* Copyright (c) 2015-2022, Michael Yang 杨福海 (fuhai999@gmail.com).
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* U... | yangfuhai/jboot | src/main/java/io/jboot/utils/NamedThreadPools.java | Java | apache-2.0 | 2,088 |
/*
** BitsUtils.java
**
** Copyright (c) 2008 Peter McQuillan
**
** All Rights Reserved.
**
** Distributed under the BSD Software License (see license.txt)
**
*/
package com.wavpack.encoder;
class BitsUtils {
////////////////////////// Bitstream functions ////////////////////////////////
// Open the specified ... | dubenju/javay | src/java/com/wavpack/encoder/BitsUtils.java | Java | apache-2.0 | 2,571 |
// Copyright (C) 2009 The Android 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 ... | GerritCodeReview/gerrit-attic | src/main/java/com/google/gerrit/server/config/AuthConfig.java | Java | apache-2.0 | 5,851 |
/******************************************************************************
* Confidential Proprietary *
* (c) Copyright Haifeng Li 2011, All Rights Reserved *
******************************************************************************/... | wavelets/smile | SmileData/src/smile/data/AttributeDataset.java | Java | apache-2.0 | 1,562 |
// File generated by OpenXava: Wed Sep 11 11:56:52 CEST 2013
// Archivo generado por OpenXava: Wed Sep 11 11:56:52 CEST 2013
// WARNING: NO EDIT
// OJO: NO EDITAR
// Component: Customer Java interface for aggregate/Interfaz java para Agregado: Receptionist
package org.openxava.test.model;
import java.math.*;
impo... | jecuendet/maven4openxava | dist/openxava/workspace/OpenXavaTest/gen-src-xava/org/openxava/test/model/IReceptionist.java | Java | apache-2.0 | 967 |
package cn.edu.chd.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.RelativeLayout;
import... | Rowandjj/yitu | Yitu/src/cn/edu/chd/view/YiRotateMenu.java | Java | apache-2.0 | 4,994 |
package com.example.dm.zhbit.me;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import... | readymanong/ZhbitAPP | app/src/main/java/com/example/dm/zhbit/me/MeSettingsAty.java | Java | apache-2.0 | 3,086 |
/*
* Copyright 2013 - 2022 The Original 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 b... | elasticsoftwarefoundation/elasticactors | main/core/src/main/java/org/elasticsoftware/elasticactors/util/concurrent/metrics/TraceThreadBoundRunnable.java | Java | apache-2.0 | 2,449 |
/**
* Copyright 2011-2016 GatlingCorp (http://gatling.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | e-biz/gatling-liferay | src/main/java/io/gatling/liferay/service/base/UrlRecordLocalServiceClpInvoker.java | Java | apache-2.0 | 11,583 |
package com.bdqn.qqmusic.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
public class CharaterEncodingFilter implemen... | k4kentchow/qqmusic | src/com/bdqn/qqmusic/filter/CharaterEncodingFilter.java | Java | apache-2.0 | 827 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
// 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: 2011.12.14 at 03:30:4... | BlueBrain/bluima | modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/ConfNum.java | Java | apache-2.0 | 8,375 |
/*
* Copyright 2020 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 i... | google/framework-for-osdu | osdu-r2/os-workflow/workflow-core/src/main/java/org/opengroup/osdu/workflow/validation/ValidationServiceImpl.java | Java | apache-2.0 | 2,221 |
package com.dianping.cat.system.page.config.processor;
import org.codehaus.plexus.util.StringUtils;
import org.unidal.lookup.annotation.Inject;
import com.dianping.cat.heartbeat.config.HeartbeatDisplayPolicyManager;
import com.dianping.cat.report.page.activity.config.ActivityConfigManager;
import com.dianping.cat.sys... | unidal/cat | cat-home/src/main/java/com/dianping/cat/system/page/config/processor/DisplayConfigProcessor.java | Java | apache-2.0 | 1,462 |
package com.planet_ink.coffee_mud.Commands;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.CMProps.Str;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.plane... | bozimmerman/CoffeeMud | com/planet_ink/coffee_mud/Commands/Rebuke.java | Java | apache-2.0 | 4,105 |
package com.tlf.msg.platform.domain;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ConfigExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
protected Integer begin;
protected Integer end;
pr... | gdtlf/msg | msg-platform/src/main/java/com/tlf/msg/platform/domain/ConfigExample.java | Java | apache-2.0 | 29,255 |
/*
* Copyright 2015 - 2016 Egor Andreevici
*
* 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 ... | Egorand/android-aop-analytics | app/src/androidTest/java/me/egorand/cats/server/ImgurApiServerTest.java | Java | apache-2.0 | 2,209 |
/*
* Copyright (c) 2017 pCloud AG
*
* 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 ... | pCloud/pcloud-sdk-java | java-core/src/main/java/com/pcloud/sdk/internal/networking/serialization/UnmodifiableListTypeFactory.java | Java | apache-2.0 | 1,870 |
package net.snowflake.client.jdbc;
import java.io.InputStream;
// Defines how the underlying data stream is to be fetched; i.e.
// allows large resultset data to come from a different source
public interface ResultStreamProvider {
InputStream getInputStream(ChunkDownloadContext context) throws Exception;
}
| snowflakedb/snowflake-jdbc | src/main/java/net/snowflake/client/jdbc/ResultStreamProvider.java | Java | apache-2.0 | 312 |
/*
* #%L
* Diana UI Core
* %%
* Copyright (C) 2014 Diana UI
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | dianaui/dianaui-universal | core/src/main/java/com/dianaui/universal/core/client/ui/Divider.java | Java | apache-2.0 | 1,638 |
/*
* Copyright 2014-2019 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... | jentfoo/aws-sdk-java | aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/transform/DescribeIndexRequestProtocolMarshaller.java | Java | apache-2.0 | 2,606 |
/*
* Copyright 2001-2012 Remi Vankeisbelck
*
* 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 ... | pojosontheweb/woko | core/src/main/java/woko/util/pexpressions/ExpressionTreeWalker.java | Java | apache-2.0 | 862 |
// 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/KeepTry | bow/2-technical-and-design/jdk17/src/main/java/datetime/BetaInvites.java | Java | apache-2.0 | 4,253 |
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | equella/Equella | Source/Plugins/Core/com.equella.admin/src/com/tle/admin/cal/CalConfigPanel.java | Java | apache-2.0 | 14,814 |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | talsma-ict/umldoclet | src/plantuml-asl/src/net/sourceforge/plantuml/salt/factory/ElementFactoryButton.java | Java | apache-2.0 | 2,277 |
/*-
* Copyright (c) 2012-2017 Red Hat, 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... | rvais/xmvn | xmvn-tools/xmvn-install/src/test/java/org/fedoraproject/xmvn/repository/impl/LayoutTest.java | Java | apache-2.0 | 3,720 |
/*
* Copyright (c) 2005-2010 Grameen Foundation USA
* 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
*
* Unl... | mifos/1.5.x | application/src/main/java/org/mifos/accounts/productdefinition/business/service/ProductCategoryBusinessService.java | Java | apache-2.0 | 2,741 |
/*
* Copyright 2017 StreamSets Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | z123/datacollector | redis-lib/src/main/java/com/streamsets/pipeline/stage/destination/redis/RedisTargetConfig.java | Java | apache-2.0 | 3,838 |
package org.testory;
import static java.lang.String.format;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import static org.testory.Testory.thenReturned;
import static org.testory.Testory.when;
import static org.testory.common.Throwables.printStackTrace;
import static org.testory.te... | testory/testory | test/java/org/testory/TestThenReturnedObject.java | Java | apache-2.0 | 3,481 |
/*
*
* * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.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.apa... | DiceHoldingsInc/orientdb | graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientElement.java | Java | apache-2.0 | 18,826 |
package org.zstack.sdk;
public class CreateMediaResult {
public MediaInventory inventory;
public void setInventory(MediaInventory inventory) {
this.inventory = inventory;
}
public MediaInventory getInventory() {
return this.inventory;
}
}
| AlanJinTS/zstack | sdk/src/main/java/org/zstack/sdk/CreateMediaResult.java | Java | apache-2.0 | 277 |
package com.melvin.share.rx;
import com.hwangjr.rxbus.Bus;
/**
* Author: Melvin
* <p>
* Data: 2017/4/6
* <p>
* 描述:订单
*/
public final class RxOrderBus {
private static Bus mBus;
public synchronized static Bus get() {
if (mBus == null) {
mBus = new Bus();
}
return mBus... | MelvinWang/NewShare | NewShare/app/src/main/java/com/melvin/share/rx/RxOrderBus.java | Java | apache-2.0 | 342 |
/*
* Copyright 2012 Switchfly
*
* 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... | switchfly/switchfly-java | inputvalidation/src/main/java/com/switchfly/inputvalidation/PatternValidationStrategies.java | Java | apache-2.0 | 1,776 |
package com.tngtech.jgiven.junit;
import com.tngtech.jgiven.base.DualScenarioTestBase;
import com.tngtech.jgiven.impl.Scenario;
import org.junit.ClassRule;
import org.junit.Rule;
public class DualScenarioTest <GIVEN_WHEN, THEN> extends DualScenarioTestBase<GIVEN_WHEN, THEN> {
@ClassRule
public static final JGive... | TNG/JGiven | jgiven-junit/src/main/java/com/tngtech/jgiven/junit/DualScenarioTest.java | Java | apache-2.0 | 661 |
/* ==========================================
* JGraphT : a free Java graph-theory library
* ==========================================
*
* Project Info: http://jgrapht.sourceforge.net/
* Project Creator: Barak Naveh (http://sourceforge.net/users/barak_naveh)
*
* (C) Copyright 2003-2008, by Barak Naveh and Con... | Alejandro-Frech/AnalisisAlgoritmos | src/org/jgrapht/experimental/permutation/CollectionPermutationIter.java | Java | apache-2.0 | 5,089 |
package uk.co.badgersinfoil.metaas.fixes;
import junit.framework.TestCase;
import uk.co.badgersinfoil.metaas.ActionScriptFactory;
import uk.co.badgersinfoil.metaas.ActionScriptParser;
import uk.co.badgersinfoil.metaas.dom.*;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.List;... | code-orchestra/metaas-fork | src/test/java/uk/co/badgersinfoil/metaas/fixes/InterfaceMetodsSemicolonTest.java | Java | apache-2.0 | 1,494 |
//#! Ignore-License
/*
* Copyright 2007 - 2009 Lars Heuer (heuer[at]semagia.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-... | ontopia/ontopia | ontopia-engine/src/main/java/net/ontopia/topicmaps/utils/jtm/JSONToken.java | Java | apache-2.0 | 3,297 |
/*
* 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-lightsail/src/main/java/com/amazonaws/services/lightsail/model/transform/CreateContainerServiceDeploymentResultJsonUnmarshaller.java | Java | apache-2.0 | 3,075 |
package org.jboss.arquillian.extension.switchyard.container;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import javax.xml.namespace.QName;
import org.slf4j.Logger;... | panga/arquillian-extension-switchyard | src/main/java/org/jboss/arquillian/extension/switchyard/container/SwitchYardInterceptor.java | Java | apache-2.0 | 5,002 |
package com.coolweather.luowz.android.util;
import okhttp3.OkHttpClient;
import okhttp3.Request;
/**
* Created by luowz on 2017/4/15.
*/
public class HttpUtil {
public static void sendOkHttpRequest(String address, okhttp3.Callback callback) {
OkHttpClient client = new OkHttpClient();
Request r... | luowenzhen/coolWeather | app/src/main/java/com/coolweather/luowz/android/util/HttpUtil.java | Java | apache-2.0 | 432 |
/*
* 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... | wuwen5/dubbo | dubbo-spring-boot/dubbo-spring-boot-actuator/src/main/java/org/apache/dubbo/spring/boot/actuate/endpoint/condition/CompatibleOnEnabledEndpointCondition.java | Java | apache-2.0 | 3,256 |
package org.consumersunion.stories.common.shared.service.datatransferobject;
import java.util.List;
import org.consumersunion.stories.common.shared.model.document.Document;
import com.google.common.collect.Lists;
import com.google.gwt.user.client.rpc.IsSerializable;
public class Documents implements IsSerializable ... | stori-es/stori_es | shared/src/main/java/org/consumersunion/stories/common/shared/service/datatransferobject/Documents.java | Java | apache-2.0 | 877 |
/**
*
* Copyright 2017 Florian Erhard
*
* 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... | florianerhard/gedi | GediCore/src/gedi/util/job/schedule/PetriNetScheduler.java | Java | apache-2.0 | 1,032 |
package com.gof.designpattern.adapter.basis;
/**
* Created by yl3 on 24.11.15.
*/
public class MacBook {
private String name;
public MacBook(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
| osbominix/java_gof_adapter | src/main/java/com/gof/designpattern/adapter/basis/MacBook.java | Java | apache-2.0 | 260 |
package com.java110.dto.smallWeChat;
import com.java110.dto.PageDto;
import com.java110.dto.smallWechatAttr.SmallWechatAttrDto;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* @ClassName FloorDto
* @Description 小程序管理数据层封装
* @Author wuxw
* @Date 2019/4/24 8:52
* @Version 1.0
* a... | java110/MicroCommunity | java110-bean/src/main/java/com/java110/dto/smallWeChat/SmallWeChatDto.java | Java | apache-2.0 | 3,411 |
/*--------------------------------------------------------------------------
* Copyright 2009 utgenome.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... | utgenome/utgb | utgb-core/src/main/java/org/utgenome/format/fasta/CompactFASTAGenerator.java | Java | apache-2.0 | 4,629 |
/*
* ModeShape (http://www.modeshape.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | rhauch/modeshape | modeshape-jcr/src/test/java/org/modeshape/jcr/JcrTckSuites.java | Java | apache-2.0 | 3,334 |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2011-2013 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution Licens... | wapache/wason | api/src/main/java/javax/json/stream/JsonParserFactory.java | Java | apache-2.0 | 4,827 |
/*
* 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 ... | vadopolski/ignite | modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/delta/DataPageInsertFragmentRecord.java | Java | apache-2.0 | 2,524 |