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 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-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/ListListenersResult.java | Java | apache-2.0 | 6,578 |
/**
* Copyright 2010-2011 The Regents of the University of California
*
* 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 re... | TonyApuzzo/fuzzyjoin | fuzzyjoin-hadoop/src/main/java/edu/uci/ics/fuzzyjoin/hadoop/ridrecordpairs/token/ReduceVerifyListSelfJoin.java | Java | apache-2.0 | 4,769 |
/*
* Copyright 2020 LINE Corporation
*
* LINE Corporation 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | minwoox/armeria | thrift0.13/src/main/java/com/linecorp/armeria/common/thrift/ThriftJacksonSerializers.java | Java | apache-2.0 | 9,554 |
/*
* ice4j, the OpenSource Java Solution for NAT and Firewall Traversal.
*
* Copyright @ 2015 Atlassian Pty 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.apa... | ubivent-seuffert/ice4j | src/main/java/org/ice4j/socket/SocketReceiveBuffer.java | Java | apache-2.0 | 5,075 |
package godofjava.network;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
/**
* Created by KimBangHyun on 2017. 2. 16..
*/
public class SocketServerSample {
public static void main(Str... | kbh9125/godofjava | src/godofjava/network/SocketServerSample.java | Java | apache-2.0 | 2,110 |
package com.library.scroll;
import android.content.Context;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
/**
* Created by sj on 15/11/21.
*/
public class NestingWebViewScrollView extends NotifyingListenerScrollView {
private GestureDetector mGestureDete... | w446108264/StickyHeaderViewPager | StickyHeaderViewPager/library/src/main/java/com/library/scroll/NestingWebViewScrollView.java | Java | apache-2.0 | 1,149 |
package org.vaadin.alump.masonry.demo;
import com.vaadin.navigator.Navigator;
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.server.FontAwesome;
import com.vaadin.server.Page;
import com.vaadin.server.Resource;
import com.vaadin.ui.*;
/**
* Created by alump on 31/... | alump/Masonry | masonry-demo/src/main/java/org/vaadin/alump/masonry/demo/AbstractTestView.java | Java | apache-2.0 | 2,564 |
/*
* 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... | ptkool/presto | presto-proxy/src/test/java/com/facebook/presto/proxy/TestProxyConfig.java | Java | apache-2.0 | 1,778 |
package com.fx.mq;
import java.io.Serializable;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.ObjectMessage;
import javax.jms.Session;
import org.springframework.jms.core.MessageCreator;
public class ObjectMessageCreater implements MessageCreator {
private Serializable args ... | darklandowner/fenxiang | src/com/fx/mq/ObjectMessageCreater.java | Java | apache-2.0 | 593 |
/*
* Copyright (c) 2015, Thomas Wolf (aka zunix) and
* contributors. 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.... | zunix/Ryoshi | src/main/java/com/github/zunix/ryoshi/api/models/links/SelfLink.java | Java | apache-2.0 | 801 |
/*
* Copyright 2002-2013 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... | eddumelendez/spring-security | web/src/main/java/org/springframework/security/web/csrf/HttpSessionCsrfTokenRepository.java | Java | apache-2.0 | 4,067 |
/*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.osedu.org/licenses/ECL-2.0
*
* Unless required by appli... | vivantech/kc_fixes | src/main/java/org/kuali/kra/bo/S2sRevisionType.java | Java | apache-2.0 | 1,602 |
/*
* 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 com.github.somi92.seecsk.model.tables.uplata;
import com.github.somi92.seecsk.domain.Clanarina;
import java.awt.Component;
imp... | somi92/seecsk | src/com/github/somi92/seecsk/model/tables/uplata/UplateTableClanarinaEditor.java | Java | apache-2.0 | 1,213 |
package cn.gsgsoft.ldtm.spring;
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
import org.w3c.dom.Element;
/**
*
* @author guosg
*
*/
public class LdtmNamespaceHandler extends NamespaceHandlerSupport{
static final String TRANSACTION_MANAGER_ATTRIBUTE = "transaction-manager";
static fin... | gsgsdtc/ldtm | ldtm-spring/src/main/java/cn/gsgsoft/ldtm/spring/LdtmNamespaceHandler.java | Java | apache-2.0 | 756 |
package com.buschmais.xo.impl;
import java.util.HashSet;
import java.util.Set;
import com.buschmais.xo.api.CompositeObject;
import com.buschmais.xo.api.XOMigrator;
import com.buschmais.xo.spi.datastore.DatastoreEntityManager;
import com.buschmais.xo.spi.datastore.DatastoreEntityMetadata;
import com.buschmais.xo.spi.d... | SMB-TEC/extended-objects | impl/src/main/java/com/buschmais/xo/impl/XOMigratorImpl.java | Java | apache-2.0 | 3,916 |
/*
* Copyright 2011 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 applicab... | krasserm/ipf | platform-camel/ihe/xds/src/main/java/org/openehealth/ipf/platform/camel/ihe/xds/iti38/Iti38Component.java | Java | apache-2.0 | 3,664 |
/*
* 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 dto;
/**
*
* @author Sheko
*/
public class CartProductDetails {
private int productId;
private int q... | AllaaAmer/jspFlowers | FlowersCart1/src/java/dto/CartProductDetails.java | Java | apache-2.0 | 642 |
/*
* 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-applicationcostprofiler/src/main/java/com/amazonaws/services/applicationcostprofiler/package-info.java | Java | apache-2.0 | 1,210 |
package tdc;
@javax.ejb.Stateless
public class MeuEJB {
public String listarLocais() {
return "{\"locais\": [\"a\",\"b\",\"c\"] }";
}
} | luan-cestari/tdc2014_SimpleEjbJaxrs | src/main/java/tdc/MeuEJB.java | Java | apache-2.0 | 152 |
// ============================================================================
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// https://github.com/Talend/data-prep/blob/master/LICENSE
//
// You should have received a copy of the agreement
// al... | Talend/data-prep | dataprep-transformation/src/main/java/org/talend/dataprep/transformation/format/ObjectBuffer.java | Java | apache-2.0 | 2,973 |
/*
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | dbflute-example/dbflute-example-on-springboot | src/main/java/org/docksidestage/dbflute/cbean/cq/ciq/MemberFollowingCIQ.java | Java | apache-2.0 | 5,439 |
/*
* Copyright 2015-2021 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... | lastaflute/lastaflute-test-fortress | src/main/java/org/docksidestage/dbflute/bsentity/dbmeta/ServiceRankDbm.java | Java | apache-2.0 | 13,721 |
/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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 o... | aricooperman/jLean | src/main/java/com/quantconnect/lean/securities/SecurityExchange.java | Java | apache-2.0 | 4,578 |
/*
* Copyright 2017 The Mifos Initiative.
*
* 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... | mifosio/portfolio | service/src/main/java/io/mifos/portfolio/service/internal/util/RhythmAdapter.java | Java | apache-2.0 | 2,302 |
// Copyright 2010-2013 (c) IeAT, Siemens AG, AVANTSSAR and SPaCIoS consortia.
// 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
//
// Unles... | siemens/ASLanPPConnector | src/aslanpp-core/src/main/java/org/avantssar/aslanpp/parser/IRawExpression.java | Java | apache-2.0 | 1,308 |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | jexp/idea2 | xml/impl/src/com/intellij/psi/formatter/xml/AnotherLanguageBlockWrapper.java | Java | apache-2.0 | 2,962 |
package com.gyurigrell.gmr.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.we... | ggrell/GMR | src/main/java/com/gyurigrell/gmr/controllers/GithubWebhookController.java | Java | apache-2.0 | 2,525 |
/*
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in c... | DICE-UNC/cas | cas-server-core/src/main/java/org/jasig/cas/authentication/principal/WebApplicationServiceFactory.java | Java | apache-2.0 | 3,036 |
/*
* 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 | test/e2e/e2e-data/src/main/java/org/apache/skywalking/e2e/AbstractQuery.java | Java | apache-2.0 | 4,565 |
package org.ethereum.tether.util;
import org.ethereum.tether.db.ByteArrayWrapper;
import org.spongycastle.util.encoders.Hex;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Se... | cegeka/tether | src/main/java/org/ethereum/tether/util/ByteUtil.java | Java | apache-2.0 | 13,137 |
/*
* 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 org.rezwan.textparsedapi.core.service;
/**
*
* @author shafin
*/
public interface CounterAPITopService extends ServiceInter... | mohammad-rezwan-shafin/text-parsed-api | src/main/java/org/rezwan/textparsedapi/core/service/CounterAPITopService.java | Java | apache-2.0 | 375 |
/*
* Copyright 2014 Matthew Collins
*
* 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... | thinkofdeath/ThinkMap | protocol/src/main/java/uk/co/thinkofdeath/thinkcraft/protocol/PacketHandler.java | Java | apache-2.0 | 684 |
/*
* Copyright 2022 Red Hat
*
* 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 ... | michpetrov/hal.next | app/src/main/java/org/jboss/hal/client/bootstrap/HalPreBootstrapper.java | Java | apache-2.0 | 1,753 |
/*
* Copyright (C) 2018 Satomichi Nishihara
*
* 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... | BURAI-team/burai | src/burai/input/namelist/QEReal.java | Java | apache-2.0 | 1,336 |
/*
* Created by Daniel Nadeau
* daniel.nadeau01@gmail.com
* danielnadeau.blogspot.com
*
* 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 cop... | Manuiq/Screen-Compare | libraries/HoloGraphLibrary/src/com/echo/holographlibrary/Line.java | Java | apache-2.0 | 3,195 |
package org.okraAx.common;
/**
* @author TinyZ.
* @version 2017.06.21
*/
public interface LogicService {
}
| ogcs/Okra-Ax | okra-ax-common/src/main/java/org/okraAx/common/LogicService.java | Java | apache-2.0 | 111 |
package gov.va.cpe.vpr;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class VprConstants {
public static final String RELATIONAL_DATASTORE_PROFLE = "vpr-datastore-relational";
public static final String JSON_DATASTORE_PROFLE = "vpr-datastore-json";
public st... | KRMAssociatesInc/eHMP | ehmp/product/production/hmp-main/src/main/java/gov/va/cpe/vpr/VprConstants.java | Java | apache-2.0 | 1,208 |
/**
* 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... | EXEM-OSS/flamingo | flamingo-shared/src/main/java/org/exem/flamingo/shared/util/FileSystemScheme.java | Java | apache-2.0 | 1,384 |
package com.github.dakusui.crest.matcherbuilders;
import com.github.dakusui.crest.Crest;
import com.github.dakusui.crest.utils.InternalUtils;
import com.github.dakusui.thincrest_pcond.functions.TransformingPredicate;
import com.github.dakusui.thincrest_pcond.functions.Predicates;
import java.util.Collection;
import j... | dakusui/thincrest | src/main/java/com/github/dakusui/crest/matcherbuilders/ListMatcherBuilder.java | Java | apache-2.0 | 4,173 |
/*
* 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 ... | davinash/geode | geode-core/src/main/java/org/apache/geode/distributed/internal/ClusterDistributionManager.java | Java | apache-2.0 | 93,973 |
package xworker.ai.neuroph;
import org.neuroph.core.NeuralNetwork;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xmeta.ActionContext;
import org.xmeta.Thing;
import org.xmeta.util.UtilMap;
public class NetworkCalculateTask implements Runnable{
private static Logger logger = LoggerFact... | x-meta/xworker | xworker_ai/src/main/java/xworker/ai/neuroph/NetworkCalculateTask.java | Java | apache-2.0 | 1,443 |
package org.commcare.suite.model;
import org.commcare.session.SessionFrame;
import org.javarosa.core.model.condition.EvaluationContext;
import org.javarosa.core.model.instance.ExternalDataInstance;
import org.javarosa.core.util.externalizable.DeserializationException;
import org.javarosa.core.util.externalizable.ExtUt... | dimagi/javarosa | backend/src/org/commcare/suite/model/StackFrameStep.java | Java | apache-2.0 | 7,443 |
package com.xmgps.yfzx.api;
/**
* 应答消息返回码
*
* @author YYH
*/
public enum ResponseResult {
OK(0, "正确"),
UPDATE_FAILED_WRONG(1005, "密码错误"),
ADD_FAILED_REPETITION(1006, "登录ID重复"),
LOGIN_FAILED_NOT_EXIST(1007, "用户名不存在"),
LOGIN_FAILED_ERR_PASSWORD(1008, "密钥不正确"),
LOGIN_FAILED_STOPPED(1009, "该用户被... | pmsg863/xmgps | imgstorage/src/main/java/com/xmgps/yfzx/api/ResponseResult.java | Java | apache-2.0 | 1,759 |
package edu.umn.cs.recsys.cbf;
import edu.umn.cs.recsys.dao.ItemTagDAO;
import org.apache.commons.lang3.StringUtils;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.en.EnglishAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.l... | paolobarbaglia/coursera_recommender_systems | PA4_Module_5/src/main/java/edu/umn/cs/recsys/cbf/LuceneModelBuilder.java | Java | apache-2.0 | 2,829 |
/*
* Copyright 2014 OpenMarket 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 agreed ... | Nehasing/Nehachat | matrix-sdk/src/main/java/org/matrix/androidsdk/rest/model/login/Credentials.java | Java | apache-2.0 | 1,806 |
package com.netflix.hystrix.contrib.javanica.test.spring.collapser;
import com.netflix.hystrix.HystrixEventType;
import com.netflix.hystrix.HystrixRequestLog;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCollapser;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netfl... | daveray/Hystrix | hystrix-contrib/hystrix-javanica/src/test/java/com/netflix/hystrix/contrib/javanica/test/spring/collapser/CollapserTest.java | Java | apache-2.0 | 12,628 |
/**
* 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
* distribu... | php-maven/phpmaven-var-parent | sitemap-plugin/src/main/java/org/phpmaven/sitemap/SitemapIndexMojo.java | Java | apache-2.0 | 8,527 |
/*
* Copyright 2002-2017 SCOOP 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
*
* Unless required by applicable law... | copper-engine/copper-engine | projects/copper-regtest/src/test/java/org/copperengine/regtest/test/tranzient/simple/WorkflowGetAnyNonTimedOutAndRemoveResponseTest.java | Java | apache-2.0 | 1,573 |
/*
* Copyright (c) 2013 Allogy Interactive.
*
* 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... | Allogy/allogy-legacy-android-app | Allogy/src/com/allogy/app/provider/wrappers/InstructorsDb.java | Java | apache-2.0 | 2,301 |
package com.reizes.shiva2.jdbc.loader;
import java.sql.Connection;
import java.sql.Statement;
import java.util.Map;
import java.util.Properties;
import javax.sql.DataSource;
import org.apache.commons.dbcp2.BasicDataSourceFactory;
import com.reizes.shiva2.core.AfterProcessAware;
import com.reizes.shiva2.... | reizes/shiva2 | shiva-etl-jdbc/src/main/java/com/reizes/shiva2/jdbc/loader/QueryLoader.java | Java | apache-2.0 | 2,246 |
package net.sf.kerner.utils.math;
public abstract class TransformerLogAbstract implements TransformerScale {
public double getRatio(final double n1, final double n2) {
return transform(n1) - transform(n2);
}
public boolean isLog() {
return true;
}
}
| SilicoSciences/net.sf.kerner.utils | src/main/java/net/sf/kerner/utils/math/TransformerLogAbstract.java | Java | apache-2.0 | 286 |
/*******************************************************************************
*
* Copyright FUJITSU LIMITED 2017
*
* Author: weiser ... | opetrovski/development | oscm-extsvc-internal/javasrc/org/oscm/internal/vo/VOTimerInfo.java | Java | apache-2.0 | 1,479 |
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2017 GwtMaterialDesign
* %%
* 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
* ... | treblereel/errai-material-demo | src/main/java/org/treblereel/demo/errai/client/dto/DemoImageDTO.java | Java | apache-2.0 | 1,459 |
package io.rsocket.test;
@FunctionalInterface
public interface TriFunction<T1, T2, T3, R> {
R apply(T1 t1, T2 t2, T3 t3);
}
| rsocket/rsocket-java | rsocket-test/src/main/java/io/rsocket/test/TriFunction.java | Java | apache-2.0 | 127 |
package com.mailblackbox.app.apiv1.model;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* Created by csniegot on 2017-03-29.
*/
@AllArgsConstructor
@Getter
public class UserAccount {
private final String uid;
private final String email;
private final String password;
private final Stri... | cyprianno/mailblackbox | sources/mailblackbox/mailblackbox-app/src/main/java/com/mailblackbox/app/apiv1/model/UserAccount.java | Java | apache-2.0 | 331 |
/*
* Copyright 2008 Nicolas Cochard
* 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... | MondecaLabs/rdf2xml | src/rocfox/rdf2xml/transformation/processor/xml/NodeProcessor.java | Java | apache-2.0 | 6,655 |
package se.kth.id2212.ex2.chat;
import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;
import java.util.List;
@SuppressWarnings("serial")
public class MyServer exte... | KTH-ID2212/exercise2 | src/main/java/se/kth/id2212/ex2/chat/MyServer.java | Java | apache-2.0 | 2,022 |
package com.amplifino.counters;
import org.osgi.annotation.versioning.ProviderType;
/**
* Thread safe counters used for instrumenting infrastructure components
*
* @param <T> enum type
*/
@ProviderType
public interface Counters<T extends Enum<T>> {
/**
* increment counter
* @param key counter... | Amplifino/nestor | com.amplifino.counters/src/com/amplifino/counters/Counters.java | Java | apache-2.0 | 1,600 |
package dataObjects;
import java.sql.Timestamp;
/**
* Created by Vasia on 6/20/2015.
*/
public class Comments {
private int commentId;
private String comment;
private Timestamp lastUpdated;
public int getCommentId() {
return commentId;
}
public String getComment() {
return... | VasilyShelkov/ClientRelationshipManager | src/main/java/dataObjects/Comments.java | Java | apache-2.0 | 413 |
package dk.statsbiblioteket.medieplatform.newspaper.statistics;
import dk.statsbiblioteket.medieplatform.autonomous.Batch;
import dk.statsbiblioteket.medieplatform.autonomous.ResultCollector;
import dk.statsbiblioteket.medieplatform.autonomous.TreeProcessorAbstractRunnableComponent;
import dk.statsbiblioteket.mediepla... | statsbiblioteket/newspaper-statistics | src/main/java/dk/statsbiblioteket/medieplatform/newspaper/statistics/StatisticsRunnableComponent.java | Java | apache-2.0 | 1,624 |
package com.zprogrammer.tool.bean;
import cn.bmob.v3.*;
public class Good extends BmobObject
{
//这个为精品区在这个版本没用到。
private String Title;
private String Message;
private Number index;
public Good() {
this.setTableName("good");
}
public String getTitle() {
return Title;
}
pub... | RayFantasyStudio/CodeAssistant | app/src/main/java/com/zprogrammer/tool/bean/Good.java | Java | apache-2.0 | 636 |
/*
* 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 "l... | dump247/aws-sdk-java | aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/Connection.java | Java | apache-2.0 | 13,792 |
package org.apache.lucene.index;
/*
* 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, Versio... | smartan/lucene | src/test/java/org/apache/lucene/index/TestDoc.java | Java | apache-2.0 | 10,179 |
// Copyright 2010 Google Inc. All Rights Reseved.
//
// 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 ... | rodion-goritskov/test-analytics-ng | src/main/java/com/google/testing/testify/risk/frontend/shared/rpc/UserRpcAsync.java | Java | apache-2.0 | 1,661 |
/*
* Copyright 2009 Carlos David González Abraham
*
* 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... | carvid/ujo-feedreader | src/com/openchronicles/feedreader/FeedManager.java | Java | apache-2.0 | 1,540 |
package com.zl.pattern.facade;
public class MobilePhone {
private Phone mPhone = new PhoneImpl();
private Camera mCamera = new SamsungCamera();
public void dail(){
mPhone.dail();
}
public void hangup() {
mPhone.hangup();
}
public void takePicture() {
mCamera.open();
mCamera.takePicture();
}
p... | Pluckypan/bigAndroid | Pattern/src/com/zl/pattern/facade/MobilePhone.java | Java | apache-2.0 | 482 |
package com.ds.ce.diy.service;
import com.ds.ce.diy.domain.User;
import com.ds.ce.diy.domain.security.CurrentUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import o... | herau/diy-project | src/main/java/com/ds/ce/diy/service/AuthenticationService.java | Java | apache-2.0 | 1,375 |
package com.chenglong.muscle.body;
import com.chenglong.muscle.R;
import com.chenglong.muscle.R.drawable;
import com.chenglong.muscle.R.id;
import com.chenglong.muscle.R.layout;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nost... | abrums21/muscleCaptain | src/com/chenglong/muscle/body/MuscleAdapter.java | Java | apache-2.0 | 3,292 |
package com.qatang.core.enums.converter;
import com.qatang.core.enums.YesNoStatus;
import org.springframework.core.convert.converter.Converter;
import javax.persistence.AttributeConverter;
/**
* @author qatang
* @since 2014-12-19 14:56
*/
public class YesNoStatusConverter implements AttributeConverter<YesNoStatus... | qatang/ctm | core/src/main/java/com/qatang/core/enums/converter/YesNoStatusConverter.java | Java | apache-2.0 | 742 |
/**
* Specific errors used with Zalando's "problem-spring-web" library.
*
* More information on https://github.com/zalando/problem-spring-web
*/
package com.ltg.app1.web.rest.errors;
| mrtequino/JSW | jhipster/src/main/java/com/ltg/app1/web/rest/errors/package-info.java | Java | apache-2.0 | 187 |
/*
* Copyright 2008-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... | sdw2330976/Research-spring-data-jpa | spring-data-jpa-1.7.1.RELEASE/src/main/java/org/springframework/data/jpa/repository/support/PersistenceProvider.java | Java | apache-2.0 | 4,959 |
package me.andy5.http_api.operation.base;
import android.support.annotation.NonNull;
/**
* operate callback
*
* @author wlf(Andy)
* @datetime 2016-04-25 09:59 GMT+8
* @email 411086563@qq.com
*/
public interface OperateCallback<R> {
// make sure the order is: onStarted----onSucceed/onFailed/onC... | wlfcolin/HttpApi | HttpApiLib/src/main/java/me/andy5/http_api/operation/base/OperateCallback.java | Java | apache-2.0 | 756 |
package com.bplow.netconn.newcms.directive;
import java.io.IOException;
import java.util.Map;
import org.springframework.stereotype.Service;
import freemarker.core.Environment;
import freemarker.template.ObjectWrapper;
import freemarker.template.TemplateDirectiveBody;
import freemarker.template.TemplateD... | ahwxl/ads | ads/src/main/java/com/bplow/netconn/newcms/directive/productListDirective.java | Java | apache-2.0 | 810 |
/*******************************************************************************
* Copyright 2015 Junichi Tatemura
*
* 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... | tatemura/strudel | epi-tkvs/src/main/java/com/nec/strudel/tkvs/Record.java | Java | apache-2.0 | 964 |
package com.speed.rfidaccessreader.utils;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Typeface;
import android.util.DisplayMetrics;
import android.view.Window;
import com.speed.r... | nspeeD/RfidAccessReader | src/com/speed/rfidaccessreader/utils/GuiUtils.java | Java | apache-2.0 | 2,852 |
package com.comps.exception;
public class SenhaIncorretaException extends Exception {
/**
*
*/
private static final long serialVersionUID = -8815205735197464930L;
public SenhaIncorretaException(String message){
super(message);
}
public SenhaIncorretaException(){
super("Verificação de senha retornou fa... | diogocs1/comps | mobile/src/com/comps/exception/SenhaIncorretaException.java | Java | apache-2.0 | 335 |
package gex.newsml.g2;
import lombok.ToString;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.a... | gextech/iptc-newsml | src/main/java/gex/newsml/g2/StringType.java | Java | apache-2.0 | 8,111 |
package com.example.framework;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import com.example.tests.GroupData;
import com.example.utils.SortedListOf;
public class GroupHelper extends HelperBase {
public GroupHelper(ApplicationManager manager) {
super(manager);
}... | venvich/pdt-27-vika.shv | addressbook-selenium-tests_MARS/src/com/example/framework/GroupHelper.java | Java | apache-2.0 | 2,682 |
package com.google.api.ads.dfp.jaxws.v201403;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
*
* Creates... | nafae/developer | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201403/UserTeamAssociationServiceInterfacecreateUserTeamAssociations.java | Java | apache-2.0 | 2,469 |
package com.coolweather.app.model;
/**
* Created by phantom on 2015-12-01.
*/
public class City {
private int id;
private String cityName;
private String cityCode;
private int provinceId;
public int getId(){
return id;
}
public void setId(int id){
this.id = id;
}
... | phantompeng/coolweather | app/src/main/java/com/coolweather/app/model/City.java | Java | apache-2.0 | 783 |
package com.shuframework.javaeedemo.interceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
public class MyInterceptor1 implements HandlerIntercept... | shuxiaoxiao/springboot-maven | springboot-init/src/main/java/com/shuframework/javaeedemo/interceptor/MyInterceptor1.java | Java | apache-2.0 | 1,462 |
package org.netbeans.testfairy;
import org.openide.util.NbPreferences;
public class TestFairyPanel extends javax.swing.JPanel {
private final TestFairyOptionsPanelController controller;
TestFairyPanel(TestFairyOptionsPanelController controller) {
this.controller = controller;
initComponents(... | testfairy/testfairy-netbeans-plugin | src/main/java/org/netbeans/testfairy/TestFairyPanel.java | Java | apache-2.0 | 3,664 |
/*
* Copyright 2013-2016 consulo.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 applicable law or agreed to ... | consulo/consulo | modules/base/compiler-impl/src/main/java/consulo/compiler/impl/ModuleRootCompilerContentIterator.java | Java | apache-2.0 | 1,485 |
package com.sissi.protocol.error.detail;
import javax.xml.bind.annotation.XmlRootElement;
import com.sissi.protocol.error.ServerErrorDetail;
/**
* @author kim 2014年1月3日
*/
@XmlRootElement(name = BadFormat.NAME)
public class BadFormat extends ServerErrorDetail {
public final static BadFormat DETAIL = new BadForma... | KimShen/sissi | src/main/java/com/sissi/protocol/error/detail/BadFormat.java | Java | apache-2.0 | 433 |
package org.wso2.carbon.identity.sso.saml.cloud.exception;
import org.wso2.carbon.identity.application.authentication.framework.inbound.FrameworkRuntimeException;
public class SAMLRuntimeException extends FrameworkRuntimeException{
protected SAMLRuntimeException(String errorDescription) {
super(errorDesc... | sajithab/identity-inbound-auth-saml-cloud | components/org.wso2.carbon.identity.sso.saml.cloud/src/main/java/org/wso2/carbon/identity/sso/saml/cloud/exception/SAMLRuntimeException.java | Java | apache-2.0 | 762 |
package ru.batov.procollection.list;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* Created by Batov Nikolay on 06.04.2017.
* Project name: junior
* @param <E> object
*/
public class MyLinkedList<E> implements SimpleContainer<E> {
/**
* This field safe first element in list.
... | Zorg905/job4j | chapter_005/src/main/java/ru/batov/procollection/list/MyLinkedList.java | Java | apache-2.0 | 4,266 |
/**
* Copyright (c) 2016 Mark Rienstra
* <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>
* Unless required by applicable la... | VirtualGamer/SnowEngine | SnowEngine-core/src/com/snowengine/audio/AudioClip.java | Java | apache-2.0 | 1,115 |
package com.rock.vmovie.utils;
import android.text.format.DateFormat;
/**
* Created by Rock on 2016/12/27.
*/
public class TimeUtil {
public static CharSequence parseToMMSS(int time){
return DateFormat.format("mm:ss", time);
}
}
| RockTeach/VMovie | vmovie/src/main/java/com/rock/vmovie/utils/TimeUtil.java | Java | apache-2.0 | 252 |
package com.arturmkrtchyan.jtftp.client;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.channel.ChannelHandlerContext;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Handler implementation for the echo cl... | arturmkrtchyan/jtftp | src/main/java/com/arturmkrtchyan/jtftp/client/EchoClientHandler.java | Java | apache-2.0 | 1,736 |
package ru.stqa.pft.addressbook.tests;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.ContactData;
import java.util.Arrays;
import java.util.stream.Collectors;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAsse... | Iryna-/pft-28-iryna.svitlychenko | addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/ContactEmailTests.java | Java | apache-2.0 | 1,366 |
package com.planet_ink.coffee_mud.Abilities.Fighter;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
impor... | oriontribunal/CoffeeMud | com/planet_ink/coffee_mud/Abilities/Fighter/Fighter_ForestTactics.java | Java | apache-2.0 | 1,942 |
/*
*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) 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
*
... | jeradrutnam/product-mdm | modules/mobile-agents/android/client/client/src/main/java/org/wso2/emm/agent/services/DynamicClientManager.java | Java | apache-2.0 | 7,120 |
package org.projectspinoza.gephiswissarmyknife.graph.layouts;
import java.util.Map;
import org.gephi.graph.api.GraphModel;
import org.gephi.layout.plugin.force.StepDisplacement;
import org.gephi.layout.plugin.force.yifanHu.YifanHuLayout;
public class YifanHu {
private YifanHuLayout yifanHuLayout;
private GraphM... | project-spinoza/gephi-swiss-army-knife | src/main/java/org/projectspinoza/gephiswissarmyknife/graph/layouts/YifanHu.java | Java | apache-2.0 | 2,234 |
package com.fangyuzhong.NumericalAggregation.MedianStdDevMemory;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.SortedMapWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import java.io.IOException;
import java.io.Str... | fangyuzhong2016/MapReduceExample | src/main/java/com/fangyuzhong/NumericalAggregation/MedianStdDevMemory/MedianStdDevMemoryMapper.java | Java | apache-2.0 | 1,794 |
package org.activiti.engine.impl.agenda;
import java.util.Collection;
import java.util.List;
import org.activiti.bpmn.model.Activity;
import org.activiti.bpmn.model.BoundaryEvent;
import org.activiti.bpmn.model.CompensateEventDefinition;
import org.activiti.bpmn.model.FlowElement;
import org.activiti.bpmn.model.FlowN... | roberthafner/flowable-engine | modules/flowable-engine/src/main/java/org/activiti/engine/impl/agenda/ContinueProcessOperation.java | Java | apache-2.0 | 11,727 |
package dk.statsbiblioteket.digital_pligtaflevering_aviser.verapdf;
import java.util.ArrayList;
/**
* Result class embedding the list of results from validation of XML from VeraPdf
* This class contains a list of all broken rules and a summary of the worst rule that is broken
*/
public class ValidationResults {
... | statsbiblioteket/digital-pligtaflevering-aviser-tools | main/dpa-verapdf/src/main/java/dk/statsbiblioteket/digital_pligtaflevering_aviser/verapdf/ValidationResults.java | Java | apache-2.0 | 1,323 |
package android.example.com.visualizerpreferences;
/*
* Copyright (C) 2016 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.o... | monal94/ud851-Exercises-student | Lesson06-Visualizer-Preferences/T06.03-Exercise-ReadingFromSharedPreferences/app/src/main/java/android/example/com/visualizerpreferences/VisualizerActivity.java | Java | apache-2.0 | 6,008 |
package jtopia;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
*
* Created by Intellij IDEA
*
*/
public class HashUtils
{
/**
* Return a string of 40 lower case hex characters.
*
* @param input
* @return a string of 40 hex characters
*/
p... | siddBanPsu/WikiKreator | src/jtopia/HashUtils.java | Java | apache-2.0 | 2,334 |
/*
* Copyright (C) 2015 CyanFlxy <cyanflxy@163.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 applica... | CyanFlxy/AndroidFilePeeker | ConnectionBridge/src/main/java/com/cyanflxy/filepeeker/bridge/Command.java | Java | apache-2.0 | 1,343 |
package com.capitalone.dashboard.request;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.capitalone.dashboard.auth.AuthenticationUtil;
import com.capitalone.dashboard.model.Application;
import com.capitalone.dashboard.model.Component;
i... | oshingc/Hygieia | api/src/main/java/com/capitalone/dashboard/request/DashboardRequest.java | Java | apache-2.0 | 2,525 |