repo_name stringlengths 5 108 | path stringlengths 6 333 | size stringlengths 1 6 | content stringlengths 4 977k | license stringclasses 15
values |
|---|---|---|---|---|
jentfoo/aws-sdk-java | aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/CloudFormationStackRecordSourceInfo.java | 8005 | /*
* 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... | apache-2.0 |
Coneboy-k/incubator-rocketmq | common/src/main/java/org/apache/rocketmq/common/BrokerConfig.java | 15205 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | apache-2.0 |
OpenGamma/Strata | modules/product/src/test/java/com/opengamma/strata/product/index/IborFutureTradeTest.java | 5092 | /*
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.product.index;
import static com.opengamma.strata.collect.TestHelper.assertSerialization;
import static com.opengamma.strata.collect.TestHelper.coverBean... | apache-2.0 |
debop/debop4k | debop4k-redis/src/test/java/debop4k/redisson/spring/cache/RedissonCacheTest.java | 2169 | /*
* Copyright (c) 2016. Sunghyouk Bae <sunghyouk.bae@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... | apache-2.0 |
masaki-yamakawa/geode | geode-apis-compatible-with-redis/src/main/java/org/apache/geode/redis/internal/RedisDistributedSystemService.java | 1750 | /*
* 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 not ... | apache-2.0 |
leapframework/framework | base/lang/src/main/java/leap/lang/meta/MNamed.java | 748 | /*
* 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 applica... | apache-2.0 |
vladmihalcea/high-performance-java-persistence | core/src/test/java/com/vladmihalcea/book/hpjp/hibernate/type/array/PostgreSQL95ArrayDialect.java | 355 | package com.vladmihalcea.book.hpjp.hibernate.type.array;
import org.hibernate.dialect.PostgreSQL95Dialect;
import java.sql.Types;
/**
* @author Vlad Mihalcea
*/
public class PostgreSQL95ArrayDialect extends PostgreSQL95Dialect {
public PostgreSQL95ArrayDialect() {
super();
this.registerColumnT... | apache-2.0 |
dliroberts/lang | RomanceConjugator/src/main/java/grammar/model/nouns/Noun.java | 3873 | package grammar.model.nouns;
import grammar.model.Multiplicity;
import grammar.model.PseudoEnum;
import grammar.model.SubjectGender;
import grammar.util.Utilities;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class Noun implements PseudoEnum<Noun> {
private s... | apache-2.0 |
dagnir/aws-sdk-java | aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53domains/model/EnableDomainAutoRenewResult.java | 2301 | /*
* 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... | apache-2.0 |
gstamac/powermock | powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/repackaged/asm/tree/MethodNode.java | 16512 | /*
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2007 INRIA, France Telecom
* 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. Re... | apache-2.0 |
EvilMcJerkface/presto | presto-main/src/main/java/com/facebook/presto/operator/FileFragmentResultCacheManager.java | 10483 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | apache-2.0 |
nivanov/ignite | modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/near/GridPartitionedBackupLoadSelfTest.java | 5117 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | apache-2.0 |
madickson/opencommercesearch | opencommercesearch-sdk-java/src/main/java/org/opencommercesearch/client/impl/Availability.java | 947 | package org.opencommercesearch.client.impl;
import java.util.Date;
/**
* Represents a sku's availability.
*
* @author rmerizalde
*/
public class Availability {
public enum Status {
InStock,
OutOfStock,
PermanentlyOutOfStock,
Backorderable,
Preorderable
}
private Status status;
privat... | apache-2.0 |
RedHotChiliBots/FRC4453 | Robot/Programming/FRC2016Robot/src/org/usfirst/frc/team4453/robot/commands/DriveWithCamera.java | 2359 | package org.usfirst.frc.team4453.robot.commands;
import org.usfirst.frc.team4453.library.Vision;
import org.usfirst.frc.team4453.robot.Robot;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
/**
*
*/
public class DriveWithCamera extends Command {
public... | apache-2.0 |
52North/ArcGIS-Server-SOS-Extension | src/main/java/org/n52/sos/cache/ObservationOfferingCache.java | 4089 | /**
* Copyright (C) 2012 52°North Initiative for Geospatial Open Source Software GmbH
*
* 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... | apache-2.0 |
JetBrains/xodus | openAPI/src/main/java/jetbrains/exodus/io/DataReaderWriterProvider.java | 5499 | /**
* Copyright 2010 - 2022 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | apache-2.0 |
dimagi/commcare-android | app/src/org/commcare/tasks/FormRecordLoaderTask.java | 10155 | package org.commcare.tasks;
import android.content.Context;
import android.text.TextUtils;
import android.text.format.DateUtils;
import android.util.Pair;
import org.commcare.CommCareApplication;
import org.commcare.models.AndroidSessionWrapper;
import org.commcare.models.database.AndroidSandbox;
import org... | apache-2.0 |
jonvestal/open-kilda | src-java/network-topology/network-storm-topology/src/main/java/org/openkilda/wfm/topology/network/controller/BfdGlobalToggleFsm.java | 8262 | /* Copyright 2019 Telstra Open Source
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | apache-2.0 |
thinking-github/nbone | nbone/nbone-core/src/main/java/org/nbone/core/util/ByteSizeUnit.java | 5035 | package org.nbone.core.util;
/**
*
* @author thinking
* @version 1.0
* @since 2019-07-20
* org.elasticsearch.common.unit.ByteSizeUnit
*/
public enum ByteSizeUnit {
BYTES {
@Override
public long toBytes(long size) {
return size;
}
@Override
public long toK... | apache-2.0 |
zentaur/core | src/main/java/org/zentaur/core/http/ResponseFactory.java | 1161 | package org.zentaur.core.http;
/*
* Copyright 2012 The Zentaur Server 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-... | apache-2.0 |
cardil/cdi-inheritance-wildfly-swarm | src/main/java/pl/wavesoftware/examples/wildflyswarm/service/api/UserService.java | 427 | package pl.wavesoftware.examples.wildflyswarm.service.api;
import pl.wavesoftware.examples.wildflyswarm.domain.User;
import java.util.Collection;
/**
* @author Krzysztof Suszynski <krzysztof.suszynski@coi.gov.pl>
* @since 04.03.16
*/
public interface UserService {
/**
* Retrieves a collection of active u... | apache-2.0 |
trustathsh/ifmapj | src/main/java/de/hshannover/f4/trust/ifmapj/messages/PollResultImpl.java | 3270 | /*
* #%L
* =====================================================
* _____ _ ____ _ _ _ _
* |_ _|_ __ _ _ ___| |_ / __ \| | | | ___ | | | |
* | | | '__| | | / __| __|/ / _` | |_| |/ __|| |_| |
* | | | | | |_| \__ \ |_| | (_| | _ |\__ \| _ |
* |_| |_| \__,_|___/... | apache-2.0 |
googleapis/java-resourcemanager | proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/UpdateFolderRequest.java | 34397 | /*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 |
lyubenblagoev/postfix-rest-server | src/main/java/com/lyubenblagoev/postfixrest/service/AuthServiceImpl.java | 1809 | package com.lyubenblagoev.postfixrest.service;
import com.lyubenblagoev.postfixrest.entity.User;
import com.lyubenblagoev.postfixrest.security.JwtTokenProvider;
import com.lyubenblagoev.postfixrest.security.RefreshTokenProvider;
import com.lyubenblagoev.postfixrest.security.UserPrincipal;
import com.lyubenblagoev.post... | apache-2.0 |
RihnKornak/TestTasks | src/test/java/task03/pages/TicketSelectionPage.java | 945 | package task03.pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.ExpectedConditions;
public class TicketSelectionPage extends Page {
public TicketSelectionPage(PageManager pages) {
super(pages);
}
@FindBy(xpath = ".//*... | apache-2.0 |
ryanco/x12-parser | src/main/java/com/yarsquidy/x12/X12Parser.java | 7028 | /*
Copyright [2011] [Prasad Balan]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | apache-2.0 |
Chenantao/PlayTogether | AutoLayout/src/main/java/com/chenantao/autolayout/utils/AutoLayoutGenerate.java | 3353 | package com.chenantao.autolayout.utils;
import android.view.ViewGroup;
/**
* Created by Chenantao_gg on 2016/1/20.
*/
public class AutoLayoutGenerate
{
public static <T extends ViewGroup> T generate(Class<T> clazz, Class[] argumentTypes, Object[]
arguments)
{
// Enhancer enhancer = new Enhancer();... | apache-2.0 |
petercipov/mobi | deployer/src/main/java/com/petercipov/mobi/deployer/RxDeployment.java | 7654 | package com.petercipov.mobi.deployer;
import com.petercipov.mobi.Instance;
import com.petercipov.traces.api.Trace;
import java.util.Optional;
import rx.Observable;
/**
*
* @author Peter Cipov
*/
public abstract class RxDeployment {
protected Optional<String> name;
public RxDeployment() {
this.name = Option... | apache-2.0 |
Akeshihiro/dsworkbench | Core/src/main/java/de/tor/tribes/ui/models/RETSourceTableModel.java | 2442 | /*
* Copyright 2015 Torridity.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 |
wqintel/zookeeper-web | src/main/java/com/zk/web/interceptor/CustomizedHandlerExceptionResolver.java | 2187 | package com.zk.web.interceptor;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
impor... | apache-2.0 |
geronimo-iia/dowsers | dowsers-core/src/main/java/org/intelligentsia/dowsers/core/serializers/jackson/ClassInformationDeserializer.java | 2180 | /**
* 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, ... | apache-2.0 |
quarkusio/quarkus | independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnClassTest.java | 1351 | package org.jboss.resteasy.reactive.server.vertx.test;
import static org.junit.jupiter.api.Assertions.fail;
import io.smallrye.common.annotation.Blocking;
import io.smallrye.common.annotation.NonBlocking;
import java.util.function.Supplier;
import javax.enterprise.inject.spi.DeploymentException;
import javax.ws.rs.Pa... | apache-2.0 |
Orange-OpenSource/static-creds-broker | src/test/java/com/orange/servicebroker/staticcreds/stories/support_route_services/ConfigureServiceBrokerWithRouteServiceTest.java | 6730 | /*
* *
* * Copyright (C) 2015 Orange
* * 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... | apache-2.0 |
S-Callier/serialization | src/main/java/sebastien/callier/serialization/codec/extendable/object/field/primitives/ByteFieldCodec.java | 2341 | /*
* Copyright 2018 Sebastien Callier
*
* 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 t... | apache-2.0 |
DormitoryTeam/Dormitory | src/main/java/com/noeasy/money/exception/UserErrorMetadata.java | 428 | package com.noeasy.money.exception;
public class UserErrorMetadata extends BaseErrorMetadata {
public static final UserErrorMetadata USER_EXIST = new UserErrorMetadata(101, "User exit");
public static final UserErrorMetadata NULL_USER_BEAN = new UserErrorMetadata(102, "Userbean is null");
protected... | apache-2.0 |
deeplearning4j/deeplearning4j | deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/weights/embeddings/WeightInitEmbedding.java | 3970 | /*******************************************************************************
* Copyright (c) 2015-2019 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | apache-2.0 |
droolsjbpm/drools | kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNTypeSchemas.java | 5225 | /*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | apache-2.0 |
hwellmann/org.ops4j.kaiserkai | kaiserkai-itest/src/test/java/org/ops4j/kaiserkai/rest/LocalAuthSupplier.java | 1497 | /*
* Copyright 2018 OPS4J 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 law or agreed ... | apache-2.0 |
googleapis/java-dialogflow-cx | proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java | 4476 | /*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 |
tgou/RocketMQ | rocketmq-client/src/main/java/com/alibaba/rocketmq/client/impl/consumer/ProcessQueue.java | 12629 | /**
* Copyright (C) 2010-2013 Alibaba Group Holding Limited
* <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/>
*... | apache-2.0 |
webos21/xi | java/jcl/src/java/javax/crypto/spec/SecretKeySpec.java | 5286 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | apache-2.0 |
shot/hadoop-source-reading | src/test/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java | 7159 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-datapipeline/src/main/java/com/amazonaws/services/datapipeline/model/transform/DeactivatePipelineResultJsonUnmarshaller.java | 1666 | /*
* 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... | apache-2.0 |
pstout/spectator | spectator-ext-placeholders/src/main/java/com/netflix/spectator/placeholders/PlaceholderId.java | 2369 | /**
* Copyright 2015 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 applicable law or agreed ... | apache-2.0 |
tbrooks8/Aeron | aeron-driver/src/main/java/io/aeron/driver/SubscriptionLink.java | 6539 | /*
* Copyright 2014 - 2016 Real Logic 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 applicable law or agr... | apache-2.0 |
fuhongliang/partmanager | src/com/webbuilder/interact/Explorer.java | 36158 | /* */ package com.webbuilder.interact;
/* */
/* */ import com.webbuilder.controls.Query;
/* */ import com.webbuilder.utils.CompressUtil;
/* */ import com.webbuilder.utils.DateUtil;
/* */ import com.webbuilder.utils.DbUtil;
/* */ import com.webbuilder.utils.FileUtil;
/* */ import ... | apache-2.0 |
ZhernakovMikhail/fax4j | src/main/java/org/fax4j/spi/email/AbstractMailFaxClientSpi.java | 15447 | package org.fax4j.spi.email;
import java.io.IOException;
import javax.mail.Message;
import javax.mail.Transport;
import org.fax4j.FaxException;
import org.fax4j.FaxJob;
import org.fax4j.common.Logger;
import org.fax4j.spi.AbstractFax4JClientSpi;
import org.fax4j.util.Connection;
import org.fax4j.util.ReflectionHelper;... | apache-2.0 |
lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_1435.java | 151 | package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_1435 {
}
| apache-2.0 |
shahramgdz/hibernate-validator | engine/src/test/java/org/hibernate/validator/test/internal/engine/messageinterpolation/EscapedInterpolationVariableTest.java | 4239 | /*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.test.internal.engine.messageinterpolation;
import static org.hibernat... | apache-2.0 |
aljoscha/giraph | src/main/java/org/apache/giraph/benchmark/ShortestPathsBenchmark.java | 5455 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
xmpace/jetty-read | jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/parser/CredentialBodyParser.java | 9058 | //
// ========================================================================
// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | apache-2.0 |
ctripcorp/x-pipe | redis/redis-core/src/main/java/com/ctrip/xpipe/redis/core/protocal/RedisProtocol.java | 432 | package com.ctrip.xpipe.redis.core.protocal;
/**
* @author wenchao.meng
*
* 2016年3月24日 下午6:27:48
*/
public interface RedisProtocol {
int REDIS_PORT_DEFAULT = 6379;
int KEEPER_PORT_DEFAULT = 6380;
int RUN_ID_LENGTH = 40;
String CRLF = "\r\n";
String OK = "OK";
String KEEPER_ROLE_PREFIX = "keeperrole";
... | apache-2.0 |
tom-haines/patricia-xero-sync | patricia-xero-webapp/src/main/java/com/pi/xerosync/dbconnect/XeroCredentials.java | 207 | package com.pi.xerosync.dbconnect;
/**
* User: thomas Date: 18/02/14
*/
public interface XeroCredentials {
String getXeroConsumerKey();
String getXeroConsumerSecret();
String getPrivateKeyPath();
}
| apache-2.0 |
peteriliev/kata | SelectionSort/src/main/java/SelectionSort9.java | 381 | package main.java;
public class SelectionSort9 {
public static <T extends Comparable<T>> void sort(final T[] a) {
for (int i = 0; i < a.length - 1; i++) {
int min = i;
for (int j = i + 1; j < a.length; j++) {
if (a[j].compareTo(a[min]) < 0) {
min = j;
}
}
if (i != min) {
final T tmp... | apache-2.0 |
hortonworks/cloudbreak | environment-api/src/main/java/com/sequenceiq/environment/api/v1/environment/model/response/EnvironmentAuthenticationResponse.java | 2539 | package com.sequenceiq.environment.api.v1.environment.model.response;
import java.io.Serializable;
import com.sequenceiq.environment.api.doc.environment.EnvironmentModelDescription;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel("EnvironmentAuthenticationV1Response... | apache-2.0 |
lunisolar/magma | magma-func/src/main/java/eu/lunisolar/magma/func/predicate/LBiObjLongPredicate.java | 60660 | /*
* This file is part of "lunisolar-magma".
*
* (C) Copyright 2014-2022 Lunisolar (http://lunisolar.eu/).
*
* 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... | apache-2.0 |
devacfr/reflow-maven-skin | reflow-velocity-tools/src/main/java/org/devacfr/maven/skins/reflow/context/Context.java | 9918 | /*
* Copyright 2012-2018 Christophe Friederich
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | apache-2.0 |
andytaylor/activemq-artemis | tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ssl/CoreClientOverOneWaySSLKerb5Test.java | 8618 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | apache-2.0 |
saurabh2590/NIST-Voting-Tablet | src/org/easyaccess/nist/HomeScreenActivity.java | 13985 | package org.easyaccess.nist;
import java.io.File;
import java.util.HashMap;
import java.util.Locale;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import a... | apache-2.0 |
gs1oliot/gs1source | DataAggregator/src/main/java/org/gs1/source/tsd/TSDAttributeValuePairListType.java | 2392 | //
// ÀÌ ÆÄÀÏÀº JAXB(JavaTM Architecture for XML Binding) ÂüÁ¶ ±¸Çö 2.2.8-b130911.1802 ¹öÀüÀ» ÅëÇØ »ý¼ºµÇ¾ú½À´Ï´Ù.
// <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>¸¦ ÂüÁ¶ÇϽʽÿÀ.
// ÀÌ ÆÄÀÏÀ» ¼öÁ¤ÇÏ¸é ¼Ò½º ½ºÅ°¸¶¸¦ ÀçÄÄÆÄÀÏÇÒ ¶§ ¼öÁ¤ »çÇ×ÀÌ ¼Õ½ÇµË´Ï´Ù.
// »ý¼º ³¯Â¥: 2015.07.30 ½Ã°£ 02:38:1... | apache-2.0 |
yahoojapan/multiple-dimension-spread | src/hive/src/main/java/jp/co/yahoo/dataplatform/mds/hadoop/hive/io/vector/IDecimalPrimitiveSetter.java | 1217 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | apache-2.0 |
mdaniel/intellij-community | platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/RemovedMappingTracker.java | 8518 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.fileTypes.impl;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.fileTypes.ExtensionFileNameMatcher;
import com.intellij.op... | apache-2.0 |
quirinobrizi/actio | webservices/modeler/src/main/java/org/actio/modeler/domain/repository/ModelRepository.java | 1108 | /*******************************************************************************
* Copyright [2016] [Quirino Brizi (quirino.brizi@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 Licen... | apache-2.0 |
kl0u/flink | flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/declarative/allocator/TestSlotInfo.java | 1853 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | apache-2.0 |
xroca/planFormacionJava | spring/Web/AnotacionesWebMaven/src/main/java/beans/Persona.java | 909 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package beans;
import java.io.Serializable;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
*
* @author Chema
*/
@Component
public class Persona implem... | apache-2.0 |
kojish/hdinsight-spark-livy-client | src/main/java/delsh/livy/SessionKind.java | 1484 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | apache-2.0 |
daileyet/openlibs.utilities | src/main/java/com/openthinks/libs/utilities/lookup/LookupPool.java | 11805 | package com.openthinks.libs.utilities.lookup;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import com.openthinks.libs.utilities.Checker;
impo... | apache-2.0 |
mergehez/ArgPlayer | argmusicplayer/src/main/java/com/arges/sepan/argmusicplayer/Callbacks/OnPreparedListener.java | 211 | package com.arges.sepan.argmusicplayer.Callbacks;
import com.arges.sepan.argmusicplayer.Models.ArgAudio;
//Interfaces
public interface OnPreparedListener {
void onPrepared(ArgAudio audio, int duration);
}
| apache-2.0 |
monocycle/monocycle-agent | src/main/java/io/monocycle/agent/AgentApplication.java | 847 | package io.monocycle.agent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotatio... | apache-2.0 |
waratek/spiracle | src/main/java/com/waratek/spiracle/sql/servlet/oracle/Get_string_no_quote.java | 2885 | /*
* Copyright 2014 Waratek 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 applicable law or agr... | apache-2.0 |
florent37/UnitTestWithDagger | app/src/test/java/fr/xebia/unittestwithdagger/UserActivityTest.java | 1254 | package fr.xebia.unittestwithdagger;
import android.widget.TextView;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import fr.xebia.unittestwithdagger.internal... | apache-2.0 |
PolitAktiv/politaktiv-map2-portlet | docroot/WEB-INF/src/org/politaktiv/map/model/impl/LayerCacheModel.java | 3021 | /**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later... | apache-2.0 |
georgfedermann/compilers | straightline/src/main/java/org/poormanscastle/studies/compilers/grammar/grammar3_1/astparser/ast/OperatorExpression.java | 1401 | package org.poormanscastle.studies.compilers.grammar.grammar3_1.astparser.ast;
import org.poormanscastle.studies.compilers.utils.grammartools.ast.CodePosition;
/**
* Created by georg on 15.01.16.
*/
public class OperatorExpression extends AbstractAstItem implements Expression {
private final Expression leftOpe... | apache-2.0 |
BD2K-DDI/ddi-annotation | src/main/java/uk/ac/ebi/ddi/extservices/entrez/ncbiresult/NCBITaxResult.java | 974 | package uk.ac.ebi.ddi.extservices.entrez.ncbiresult;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author Yasset Perez-Riverol (ypriverol@gmail.com)
* @date 18/05/2015
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class NCBITaxRe... | apache-2.0 |
yongyu0102/MobileSafe | src/peng/zhang/mobilesafe01/servicer/GPSService.java | 3609 | package peng.zhang.mobilesafe01.servicer;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.lo... | apache-2.0 |
tanqii/weather | src/com/ty/activity/WeatherActivity.java | 5476 | package com.ty.activity;
import com.ty.app.R;
import com.ty.service.AutoUpdateService;
import com.ty.util.HttpCallbackListener;
import com.ty.util.HttpUtil;
import com.ty.util.Utility;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
impor... | apache-2.0 |
pepstock-org/Charba | src/org/pepstock/charba/client/annotation/elements/package-info.java | 881 | /**
Copyright 2017 Andrea "Stock" Stocchero
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 applicab... | apache-2.0 |
ibissource/iaf | core/src/main/java/nl/nn/adapterframework/pipes/WsdlGeneratorPipe.java | 3096 | /*
Copyright 2016, 2020 Nationale-Nederlanden, 2020-2021 WeAreFrank!
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless require... | apache-2.0 |
dianaui/dianaui-universal | core/src/main/java/com/dianaui/universal/core/client/ui/html/Strong.java | 1186 | /*
* #%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... | apache-2.0 |
dianaui/dianaui-universal | core/src/main/java/com/dianaui/universal/core/client/ui/constants/FormGroupSize.java | 1385 | /*
* #%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... | apache-2.0 |
torrances/swtk-commons | commons-dict-wiktionary/src/main/java/org/swtk/commons/dict/wiktionary/generated/a/u/v/WiktionaryAUV000.java | 967 | package org.swtk.commons.dict.wiktionary.generated.a.u.v; import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.swtk.common.dict.dto.wiktionary.Entry; import com.trimc.blogger.commons.utils.GsonUtils; public class WiktionaryAUV000 { private static Map<String, Entry> map = new Has... | apache-2.0 |
leanddrot/isis-asistencia | fixture/src/main/java/fixture/simple/SimpleObjectsFixturesService.java | 2843 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | apache-2.0 |
jonasrk/rheem | rheem-basic/src/main/java/org/qcri/rheem/basic/operators/DistinctOperator.java | 5747 | package org.qcri.rheem.basic.operators;
import org.apache.commons.lang3.Validate;
import org.qcri.rheem.core.api.Configuration;
import org.qcri.rheem.core.function.DistinctPredicateDescriptor;
import org.qcri.rheem.core.function.PredicateDescriptor;
import org.qcri.rheem.core.optimizer.OptimizationContext;
import org.... | apache-2.0 |
Phonemetra/TurboLauncher | app/src/main/java/com/phonemetra/turbo/launcher/BubbleTextView.java | 13912 | /*
* Copyright (C) 2008 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 app... | apache-2.0 |
aslanbekirov/crate | sql/src/test/java/io/crate/operation/merge/IteratorPageDownstreamTest.java | 9970 | /*
* Licensed to Crate.IO GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this f... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-frauddetector/src/main/java/com/amazonaws/services/frauddetector/model/transform/DeleteEventsByEventTypeRequestProtocolMarshaller.java | 2836 | /*
* 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... | apache-2.0 |
tteofili/jackrabbit-oak | oak-sling/src/main/java/org/apache/jackrabbit/oak/sling/Activator.java | 3841 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | apache-2.0 |
xiepengchong/FactoryZxing | src/com/alibaba/fastjson/parser/JSONToken.java | 3656 | /*
* Copyright 1999-2101 Alibaba 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 law or a... | apache-2.0 |
obourgain/elasticsearch-http | src/main/java/com/github/obourgain/elasticsearch/http/response/parser/IndicesParser.java | 1496 | package com.github.obourgain.elasticsearch.http.response.parser;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.elasticsearch.common.xcontent.XContentParser;
import com.github.obourgain.elasticsearch.http.response.entity.Indices;
import com.github.obourgai... | apache-2.0 |
CarloMicieli/spring-mvc-movies | src/main/java/com/github/carlomicieli/nerdmovies/controllers/HomeController.java | 1759 | /*
* Copyright 2012 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... | apache-2.0 |
Camille31/MovieRecommender | src/main/java/com/camillepradel/movierecommender/utils/CsvToMySql.java | 17630 | package com.camillepradel.movierecommender.utils;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import jav... | apache-2.0 |
PurelyApplied/geode | geode-core/src/main/java/org/apache/geode/cache/query/internal/CompiledOperation.java | 12213 | /*
* 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 not ... | apache-2.0 |
iljaosintsev/Apress-Gists | app/src/main/java/com/turlir/abakgists/allgists/view/listing/ModelViewHolder.java | 305 | package com.turlir.abakgists.allgists.view.listing;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
abstract class ModelViewHolder<T> extends RecyclerView.ViewHolder {
ModelViewHolder(View itemView) {
super(itemView);
}
abstract void bind(T model);
}
| apache-2.0 |
zuoqing135du/SpringBoot | src/main/java/com/zuoqing/demo/entity/Result.java | 569 | package com.zuoqing.demo.entity;
/**
* http 请求返回的最外层对象
*/
public class Result<T> {
private Integer code;
private String msg;
private T data;
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public String getMsg() {... | apache-2.0 |
XiaoMi/galaxy-sdk-java | galaxy-thrift-api/src/main/java/libthrift091/TEnum.java | 880 | /*
* 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... | apache-2.0 |
dreedyman/Rio | rio-tools/rio-cli/src/main/java/org/rioproject/tools/cli/OptionHandler.java | 1583 | /*
* Copyright to 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... | apache-2.0 |
54070356/sample | drools-demo/src/test/java/com/eric/drools_demo/AppTest.java | 648 | package com.eric.drools_demo;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public App... | apache-2.0 |
hllorens/cognitionis-nlp-libraries | nlp-files/src/main/java/com/cognitionis/nlp_files/TreebankFile.java | 2385 | package com.cognitionis.nlp_files;
import java.io.*;
import java.util.regex.*;
/**
*
* @author Héctor Llorens
* @since 2011
*/
public class TreebankFile extends NLPFile {
public TreebankFile(String filename) {
super(filename);
}
@Override
public Boolean isWellFormatted() {
i... | apache-2.0 |
kashukov/convert | src/main/java/com/kashukov/convert/Short.java | 1895 | package com.kashukov.convert;
/**
* Convert short to any primitive data type
*/
public class Short {
/**
* Convert short to boolean
*
* @param input short
* @return boolean
*/
public static boolean shortToBoolean(short input) {
return input != 0;
}
/**
* Convert... | apache-2.0 |
DNSBelgium/rdap-server-sample-gtld | src/main/java/be/dnsbelgium/rdap/sample/parser/WhoisKeyBlock.java | 981 | package be.dnsbelgium.rdap.sample.parser;
import be.dnsbelgium.rdap.sample.dto.Contact;
import be.dnsbelgium.rdap.sample.dto.DnsSecKey;
import be.dnsbelgium.rdap.sample.dto.SimpleContact;
public enum WhoisKeyBlock {
MAIN(),
DOMAIN(),
REGISTRAR(),
REGISTRANT(),
ADMIN(Contact.class),
TECH(Contact.class),
... | apache-2.0 |