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 |
|---|---|---|---|---|---|
package org.zerograph.except;
public class GraphException extends ZerographException {
final private String host;
final private int port;
public GraphException(String host, int port) {
this.host = host;
this.port = port;
}
public String getHost() {
return this.host;
}... | nigelsmall/zerograph | src/server/java/org/zerograph/except/GraphException.java | Java | apache-2.0 | 384 |
/*
* Copyright 2014-present Open Networking Laboratory
*
* 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... | wuwenbin2/onos_bgp_evpn | core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java | Java | apache-2.0 | 27,604 |
package org.socraticgrid.hl7.services.eps.clients.psdeliveryintervention;
import static org.junit.Assert.*;
import org.junit.Test;
import static org.junit.Assert.*;
import org.junit.Test;
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.Before;
import org.junit.Test;
import org.junit.runne... | SocraticGrid/Services-Backup | VACDS-EPS-Delivery-Intvn-SOAP/src/test/java/org/socraticgrid/hl7/services/eps/clients/psdeliveryintervention/PSDeliveryInterventionServiceTest.java | Java | apache-2.0 | 1,438 |
/**
* Copyright © 2015-2016 <a href="http://www.cyou-inc.com">angel</a> All rights reserved.
*/
package com.qxcwl.jeewl.common.utils;
import java.text.ParseException;
import java.util.Date;
import org.apache.commons.lang3.time.DateFormatUtils;
/**
* 日期工具类, 继承org.apache.commons.lang.time.DateUtils类
* @author... | quxiuchengdev/jeewl | src/main/java/com/qxcwl/jeewl/common/utils/DateUtils.java | Java | apache-2.0 | 4,698 |
package no.stelar7.api.r4j.pojo.lol.staticdata.profileicon;
import no.stelar7.api.r4j.pojo.lol.staticdata.shared.BaseStaticData;
import java.util.Map;
public class ProfileIconData extends BaseStaticData
{
private static final long serialVersionUID = 5125741045029057092L;
private Map<Long, ProfileIconDet... | stelar7/L4J8 | src/main/java/no/stelar7/api/r4j/pojo/lol/staticdata/profileicon/ProfileIconData.java | Java | apache-2.0 | 1,222 |
/* Copyright 2005 I Serv Consultoria Empresarial Ltda.
*
* 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 applic... | eldevanjr/helianto | helianto-inventory/src/main/java/org/helianto/inventory/RequirementSign.java | Java | apache-2.0 | 1,276 |
/*
* 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 ... | majetideepak/orc | java/core/src/test/org/apache/orc/impl/TestCryptoUtils.java | Java | apache-2.0 | 1,609 |
package org.gora.util;
import java.io.ByteArrayOutputStream;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import java.io.OutputS... | enis/gora | gora-core/src/main/java/org/gora/util/IOUtils.java | Java | apache-2.0 | 15,056 |
/*
* Copyright (C) 2012-2015 DataStax 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 app... | mebigfatguy/java-driver | driver-mapping/src/test/java/com/datastax/driver/mapping/MapperCaseSensitivityTest.java | Java | apache-2.0 | 6,172 |
/*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.strimzi.api.kafka.model.template;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.strimzi.api.k... | ppatierno/kaas | api/src/main/java/io/strimzi/api/kafka/model/template/MetadataTemplate.java | Java | apache-2.0 | 2,433 |
package psidev.psi.mi.jami.xml.model;
import com.sun.xml.bind.Locatable;
import com.sun.xml.bind.annotation.XmlLocation;
import org.xml.sax.Locator;
import psidev.psi.mi.jami.datasource.FileSourceContext;
import psidev.psi.mi.jami.datasource.FileSourceLocator;
import psidev.psi.mi.jami.model.Annotation;
import psidev.... | MICommunity/psi-jami | jami-xml/src/main/java/psidev/psi/mi/jami/xml/model/AbstractEntry.java | Java | apache-2.0 | 10,873 |
package org.wikipedia.test;
import android.test.AndroidTestCase;
import org.wikipedia.page.Section;
public class SectionTests extends AndroidTestCase {
public void testSectionLead() {
// Section 0 is the lead
Section section = new Section(0, 0, "Heading", "Heading", "Content");
assertTrue(... | reproio/apps-android-wikipedia | wikipedia/src/androidTest/java/org/wikipedia/test/SectionTests.java | Java | apache-2.0 | 872 |
/*
* Copyright 2015 Theodore Doll
*
* 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... | teddoll/Movies | app/src/main/java/com/teddoll/movies/MovieApplication.java | Java | apache-2.0 | 1,469 |
package io.corbel.resources.rem.restor;
import java.io.InputStream;
import java.net.URI;
import java.util.Optional;
import javax.ws.rs.core.Response;
import io.corbel.resources.rem.dao.RestorDao;
import io.corbel.resources.rem.model.RestorResourceUri;
import io.corbel.resources.rem.request.CollectionParameters;
impo... | corbel-platform/corbel | restor/src/main/java/io/corbel/resources/rem/restor/RestorDeleteRem.java | Java | apache-2.0 | 1,725 |
// Copyright 2018 Oath Inc.
// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.
package com.yahoo.bard.webservice.exception;
import static com.yahoo.bard.webservice.web.ResponseCode.INSUFFICIENT_STORAGE;
import com.yahoo.bard.webservice.web.ErrorMessageF... | yahoo/fili | fili-core/src/main/java/com/yahoo/bard/webservice/exception/FiliDimensionExceptionHandler.java | Java | apache-2.0 | 2,880 |
package com.ycsoft.sysmanager.web.action.system;
import java.util.List;
import javax.servlet.http.HttpSession;
import com.ycsoft.beans.system.SOptr;
import com.ycsoft.beans.system.SResource;
import com.ycsoft.business.component.config.MemoryComponent;
import com.ycsoft.commons.abstracts.BaseAction;
import ... | leopardoooo/cambodia | boss-sysmanager/src/main/java/com/ycsoft/sysmanager/web/action/system/IndexAction.java | Java | apache-2.0 | 4,417 |
/*
Copyright 2015 David Tanzer (business@davidtanzer.net / @dtanzer)
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... | dtanzer/jobjectformatter | src/test/java/net/davidtanzer/jobjectformatter/FormattedStringGeneratorTest.java | Java | apache-2.0 | 2,668 |
/**
* 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... | JingchengDu/hbase | hbase-server/src/main/java/org/apache/hadoop/hbase/CoordinatedStateManagerFactory.java | Java | apache-2.0 | 1,906 |
package com.alx.etx.data;
import lombok.Data;
import java.time.temporal.ChronoUnit;
public @Data class CoordinationConfiguration {
/**
* Amount of time that an inconsistent coordination will wait until produce a signal to cancel all participants.
* Default is 60 seconds (60000 milliseconds)
*/
... | alemser/etx | etx-api/src/main/java/com/alx/etx/data/CoordinationConfiguration.java | Java | apache-2.0 | 1,417 |
package com.lamfire.chimaera.service.set;
import com.lamfire.chimaera.Chimaera;
import com.lamfire.chimaera.annotation.SERVICE;
import com.lamfire.chimaera.command.Command;
import com.lamfire.chimaera.command.set.SetGetCommand;
import com.lamfire.chimaera.response.Response;
import com.lamfire.chimaera.response.... | lamfire/chimaera | src/main/java/com/lamfire/chimaera/service/set/SetGetService.java | Java | apache-2.0 | 968 |
package org.zalando.stups.fullstop.violation.service.impl;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.zalando.stups.... | zalando-stups/fullstop | fullstop-violation/fullstop-violation-jpa/src/main/java/org/zalando/stups/fullstop/violation/service/impl/ViolationServiceImpl.java | Java | apache-2.0 | 2,879 |
package org.evilco.wizard.component;
import org.evilco.wizard.Wizard;
import javax.swing.*;
import javax.swing.border.LineBorder;
import javax.swing.border.MatteBorder;
import javax.swing.plaf.BorderUIResource;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
impo... | Evil-Co/SwingWizard | src/main/java/org/evilco/wizard/component/GenericWizardContainer.java | Java | apache-2.0 | 6,445 |
/*
* Copyright 2007 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.opensource.org/licenses/ecl2.php
*
* Unless required by appl... | Ariah-Group/Finance | af_webapp/src/main/java/org/kuali/kfs/coa/businessobject/options/KualiSystemCodeValuesFinder.java | Java | apache-2.0 | 2,639 |
/**
* Copyright (C) 2014-2016 LinkedIn Corp. (pinot-core@linkedin.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
*
* Unle... | sajavadi/pinot | pinot-core/src/main/java/com/linkedin/pinot/core/startree/OffHeapStarTreeBuilder.java | Java | apache-2.0 | 35,913 |
package org.jbaiera.play.kafka.uuid.produce;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.ProducerRecord;
import java.util.Properties;
import java.util.UUID;
public class UUIDProducer {
private void run() throws InterruptedException {
String topic = "... | jbaiera/kafka-play | src/main/java/org/jbaiera/play/kafka/uuid/produce/UUIDProducer.java | Java | apache-2.0 | 1,219 |
/**
* Copyright 2011-2017 Asakusa Framework Team.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | cocoatomo/asakusafw | mapreduce/compiler/core/src/test/java/com/asakusafw/compiler/flow/processor/operator/CoGroupFlowImpl.java | Java | apache-2.0 | 981 |
package ca.nlap.dropwizard.ratelimit.example;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonProperty;
import ca.nlap.dropwizard.ratelimit.RateLimitConfiguration;
import io.dropwizard.Configuration;
public class ExampleServiceConfiguration extends Configuration {
@NotNull
... | nlap/dropwizard-ratelimit | example/src/main/java/ca/nlap/dropwizard/ratelimit/example/ExampleServiceConfiguration.java | Java | apache-2.0 | 547 |
package org.openntf.evex;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import org.openntf.domino.DateTime;
import org.openntf.domino.Document;
import org.openntf.dom... | zeromancer1972/Horizon | ODP/Code/Java/org/openntf/evex/Events.java | Java | apache-2.0 | 8,819 |
/*
* $Id$
*
* SARL is an general-purpose agent programming language.
* More details on http://www.sarl.io
*
* Copyright (C) 2014-2017 the original authors 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 ma... | jgfoster/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/ExternalContextAccessSkill.java | Java | apache-2.0 | 8,250 |
package org.jfrog.artifactory.client;
import junit.framework.Assert;
import org.jfrog.artifactory.client.model.SystemInfo;
import org.jfrog.artifactory.client.model.Version;
import org.testng.annotations.Test;
import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.assertTrue;
/**
* @author j... | JFrogDev/artifactory-client-java | services/src/test/java/org/jfrog/artifactory/client/SystemTests.java | Java | apache-2.0 | 4,537 |
/**
* Copyright 2016 Nikita Koksharov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | ContaAzul/redisson | redisson/src/main/java/org/redisson/api/RBlockingFairQueue.java | Java | apache-2.0 | 872 |
package com.ontraport.app.tests;
import java.util.Calendar;
import java.util.concurrent.TimeUnit;
import org.junit.Assert;
import org.junit.Test;
import org.testng.AssertJUnit;
import com.ontraport.app.pages.Contact_ListAll;
import com.ontraport.app.pages.SmartForm_Create;
import com.ontraport.app.pages.SmartForm_Ed... | satlajnous/Ontraport_Development_Testree | src/com/ontraport/app/tests/SmartForm_FormStyle_FontSize_TC0408.java | Java | apache-2.0 | 2,568 |
/**
* SIX OVAL - https://nakamura5akihito.github.io/
* Copyright (C) 2010 Akihito Nakamura
*
* 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/LICE... | nakamura5akihito/six-oval | src/main/java/io/opensec/six/oval/model/common/RecurseFileSystemEnumeration.java | Java | apache-2.0 | 2,320 |
package com.culabs.unicomportal.dao;
import com.culabs.unicomportal.model.db.DBQuotaUsages;
public interface DBQuotaUsagesMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table quota_usages
*
* @mbggenerated Tue May 26 15:53:09 CST 2015
... | wolabs/womano | main/java/com/culabs/unicomportal/dao/DBQuotaUsagesMapper.java | Java | apache-2.0 | 1,587 |
/**
*
*/
package org.flowninja.shell.transferrer.integration;
import java.io.File;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.integration.file.filters.Fil... | rbieniek/flow-ninja | ninja-shell-transferrer/src/main/java/org/flowninja/shell/transferrer/integration/IgnoreCurrentHourFileFilter.java | Java | apache-2.0 | 1,882 |
/*
$Id: Base64FilterOutputStreamTest.java 2745 2013-06-25 21:16:10Z dfisher $
Copyright (C) 2007-2011 Virginia Tech.
All rights reserved.
SEE LICENSE FOR MORE INFORMATION
Author: Middleware Services
Email: middleware@vt.edu
Version: $Revision: 2745 $
Updated: $Date: 2013-06-25 23:16:10 +0200 (Tue,... | vdemeester/vt-crypt-tests | src/test/java/edu/vt/middleware/crypt/io/Base64FilterOutputStreamTest.java | Java | apache-2.0 | 3,078 |
/*
* 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-servicecatalog/src/main/java/com/amazonaws/services/servicecatalog/model/TagOptionNotMigratedException.java | Java | apache-2.0 | 1,420 |
/*
* Copyright 2017-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | spring-cloud/spring-cloud-gcp | spring-cloud-gcp-data-datastore/src/main/java/org/springframework/cloud/gcp/data/datastore/core/mapping/Entity.java | Java | apache-2.0 | 1,329 |
package com.example.phong.musicCaster;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.... | norimoji/Music-Caster | app/src/main/java/com/example/phong/musicCaster/ReceiverScreen.java | Java | apache-2.0 | 7,951 |
/*
* Copyright The Sett Ltd, 2005 to 2014.
*
* 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... | rupertlssmith/lojix | lojix/search/src/main/com/thesett/aima/search/SearchNotExhaustiveException.java | Java | apache-2.0 | 1,788 |
/**
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
/**
* Root package for common data structures used by Strata.
* <p>
* Each package focuses on a different data structure:
* <ul>
* <li>Array - wrapped arrays and matrices</li>... | jmptrader/Strata | modules/collect/src/main/java/com/opengamma/strata/collect/package-info.java | Java | apache-2.0 | 648 |
package com.datalint.open.client.css;
import com.datalint.open.client.css.impl.CSSProcessorImpl;
import com.google.gwt.user.client.Element;
@Deprecated
public class CSSProcessor {
public static void setOpacity(Element element, double opacity) {
CSSProcessorImpl.getInstance().setOpacity(element, opacity);
... | datalint/open | Open/src/main/client/com/datalint/open/client/css/CSSProcessor.java | Java | apache-2.0 | 360 |
package org.shaolin.uimaster.page.flow;
import java.util.ArrayList;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import org.shaolin.bmdp.datamodel.common.DiagramType;
import org.shaolin.bmdp.datamodel.page.UIEntity;
import org.shaolin.bmdp.datamodel.page.UIPage;
im... | shaolinwu/uimaster | modules/uipage/src/main/java/org/shaolin/uimaster/page/flow/MasterInstanceListener.java | Java | apache-2.0 | 9,536 |
/*
* Copyright [2007] [University Corporation for Advanced Internet Development, 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... | duck1123/java-xmltooling | src/main/java/org/opensaml/xml/encryption/AbstractEncryptedKeyResolver.java | Java | apache-2.0 | 4,363 |
package edu.uw.zookeeper.common;
public interface Application extends Runnable {
}
| lisaglendenning/zookeeper-lite | zkcore/src/main/java/edu/uw/zookeeper/common/Application.java | Java | apache-2.0 | 84 |
// Copyright 2009 Jose Antonio Jamilena Daza
//
// 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... | josejamilena/pfc-jose | 4 - implementacion, pruebas y documentacion/4.1 - implementacion/servicio/src/josejamilena/pfc/servidor/Main.java | Java | apache-2.0 | 3,303 |
/*
* 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-directconnect/src/main/java/com/amazonaws/services/directconnect/model/ConfirmPublicVirtualInterfaceRequest.java | Java | apache-2.0 | 3,850 |
/*
* 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 ... | afiantara/apache-wicket-1.5.7 | src/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxBehaviorEnabledPage.java | Java | apache-2.0 | 1,843 |
/**
* Copyright (C) 2012 enStratus Networks 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.a... | labisso/dasein-cloud-azure | src/main/java/org/dasein/cloud/azure/compute/vm/AzureVM.java | Java | apache-2.0 | 89,844 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: services.proto
package com.se7so.service;
public final class Service {
private Service() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
... | husseincoder/dockerized-microservices | protobuf-commons/src/main/proto/com/se7so/service/Service.java | Java | apache-2.0 | 2,152 |
package leetcode;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
/**
* https://leetcode.com/problems/shuffle-an-array/
* https://leetcode.com/explore/interview/card/top-interview-questions-easy/98/design/670/
*/
@SuppressWarnings("ClassCanBeStatic") // Leetcode is not static
public final c... | jaredsburrows/cs-interview-questions | java/src/main/java/leetcode/Problem384ShuffleAnArray.java | Java | apache-2.0 | 1,245 |
/*
* 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/Sentinel | sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/controller/cluster/ClusterConfigController.java | Java | apache-2.0 | 10,831 |
/**
* 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... | ua-eas/ua-rice-2.1.9 | krad/krad-web-framework/src/main/java/org/kuali/rice/krad/rules/rule/AddAdHocRoutePersonRule.java | Java | apache-2.0 | 1,304 |
/*
* 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 ... | knoguchi/druid | server/src/main/java/org/apache/druid/metadata/MetadataSegmentManager.java | Java | apache-2.0 | 3,673 |
package io.oasp.gastronomy.restaurant.general.common.impl.security;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import javax.inject.Inject;
import javax.inject.Named;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.config.annotation.authen... | jomora/oasp4j | samples/core/src/main/java/io/oasp/gastronomy/restaurant/general/common/impl/security/BaseUserDetailsService.java | Java | apache-2.0 | 7,301 |
package com.cookingfox.chefling.api.command;
import com.cookingfox.chefling.api.CheflingContainer;
import com.cookingfox.chefling.api.exception.ContainerException;
public interface MapInstanceCommand {
/**
* Map `type` to a specific instance, which will be returned when `type` is requested. This is
* u... | cookingfox/chefling-di-java | src/main/java/com/cookingfox/chefling/api/command/MapInstanceCommand.java | Java | apache-2.0 | 1,057 |
/*
* Copyright 2004 - 2012 Cardiff University.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | ikelley/Attic | core/src/main/java/org/atticfs/stream/StreamRequestor.java | Java | apache-2.0 | 5,744 |
/*
* 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... | smflorentino/elasticsearch | core/src/test/java/org/elasticsearch/action/bulk/BulkProcessorIT.java | Java | apache-2.0 | 17,745 |
package com.xhq.coolweather.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.xhq.coolweather.model.City;
import com.xhq.coolweather.model.County;
import com.xhq.coolweather.model.Province;
import java.u... | sym1120/coolweather | app/src/main/java/com/xhq/coolweather/db/CoolWeatherDB.java | Java | apache-2.0 | 4,920 |
package net.sourceforge.jwbf.core.contentRep;
import com.google.common.io.Resources;
import net.sourceforge.jwbf.mapper.JsonMapper;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.... | eldur/jwbf | src/test/java/net/sourceforge/jwbf/core/contentRep/SearchResultListTest.java | Java | apache-2.0 | 1,866 |
/**
* Copyright 2011-2021 Asakusa Framework Team.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | asakusafw/asakusafw | utils-project/java-dom/src/main/java/com/asakusafw/utils/java/internal/model/syntax/ModelFactoryImpl.java | Java | apache-2.0 | 61,975 |
/* This file is part of SableCC ( http://sablecc.org ).
*
* See the NOTICE file distributed with this work for copyright information.
*
* 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
*
... | SableCC/sablecc | src/org/sablecc/util/CamelCase.java | Java | apache-2.0 | 2,765 |
/*
* Copyright 2006-2021 Prowide
*
* 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... | prowide/prowide-core | src/main/java/com/prowidesoftware/deprecation/DeprecationUtils.java | Java | apache-2.0 | 6,695 |
package no.bankid.oidc.web;
import no.bankid.oidc.BankIdOIDCClient;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@WebServlet(urlPatterns = {"/login"}, loadOnS... | BankIDNorge/bankid-oidc-example-java | src/main/java/no/bankid/oidc/web/LoginServlet.java | Java | apache-2.0 | 648 |
/* JKS.java -- implementation of the "JKS" key store.
Copyright (C) 2003 Casey Marshall <rsdio@metastatic.org>
Permission to use, copy, modify, distribute, and sell this software and
its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and t... | fornwall/android-jarsigner | src/main/java/net/fornwall/apksigner/JKS.java | Java | apache-2.0 | 17,286 |
package br.com.caelum.iogi.conversion;
import br.com.caelum.iogi.reflection.Target;
public class DoubleWrapperConverter extends TypeConverter<Double> {
public boolean isAbleToInstantiate(final Target<?> target) {
return target.getClassType() == Double.class;
}
@Override
protected Double convert(final String s... | garcia-jj/iogi-fork | src/main/java/br/com/caelum/iogi/conversion/DoubleWrapperConverter.java | Java | apache-2.0 | 397 |
package shijimi.launch.idea;
public interface IdeaContext {
public String expandPathVariable(String name);
}
| ppp-kohe/shijimi | src/shijimi/launch/idea/IdeaContext.java | Java | apache-2.0 | 114 |
/*
* Copyright 2013-2016 Brian Thomas Matthews
*
* 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... | bmatthews68/ldap-maven-plugin | format-dsml/src/main/java/com/btmatthews/maven/plugins/ldap/dsml/DSMLFormatHandler.java | Java | apache-2.0 | 2,834 |
/*
* Copyright 2015 OpenCB
*
* 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 wr... | dapregi/cellbase | cellbase-app/src/main/java/org/opencb/cellbase/app/transform/ConservationParser.java | Java | apache-2.0 | 12,183 |
/*
* 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-ram/src/main/java/com/amazonaws/services/ram/model/transform/ResourceMarshaller.java | Java | apache-2.0 | 4,463 |
/*
* 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-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/AnnotationConsolidationConfig.java | Java | apache-2.0 | 360,042 |
/*
* MediaWiki import/export processing tools
* Copyright 2005 by Brion Vibber
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri... | killerbiz/mwdumper-solr | src/org/mediawiki/importer/XmlDumpWriter.java | Java | apache-2.0 | 5,157 |
/*
* Copyright 2012 AMG.lab, a Bull Group Company
*
* 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... | ow2-xlcloud/vcms | heat-template-model/src/test/java/org/xlcloud/service/heat/parsers/resources/metadata/cfninit/FilesParserTest.java | Java | apache-2.0 | 2,466 |
package com.ysyx.commons.wx.requests.stat;
import com.ysyx.commons.wx.TextHttpRequest;
import com.ysyx.commons.wx.annotations.Post;
import com.ysyx.commons.wx.annotations.QueryString;
import com.ysyx.commons.wx.requests.stat.respbeans.UserShareHour;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* get user s... | duanbn/tung | src/main/java/com/ysyx/commons/wx/requests/stat/GetUserShareHourRequest.java | Java | apache-2.0 | 1,002 |
package com.submarine.adcolony;
/**
* Created by mariam on 3/9/15.
*/
public class DesktopAdColonyNetwork implements AdColonyNetwork {
@Override
public void showVideoAd() {
}
@Override
public void showVideoAd(String zoneId) {
}
@Override
public void showV4VCAd() {
}
@Ove... | ipsumgames/submarine | adColony/desktop/src/com/submarine/adcolony/DesktopAdColonyNetwork.java | Java | apache-2.0 | 962 |
/*
* Copyright 2013 Adrien Favre-Bully, Florian Froese, Adrian Schmidmeister
* 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... | adrienfb/dejavu-stringmetrics | src/main/java/ch/ethz/student/dejavu/vectors/CosineDistance.java | Java | apache-2.0 | 3,362 |
/*
* Copyright 2014-2020 Real Logic Limited.
*
* 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 ... | real-logic/Aeron | aeron-client/src/main/java/io/aeron/BufferBuilder.java | Java | apache-2.0 | 5,702 |
/*
* Copyright (C) 2014 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 ... | CesarValiente/tldrlegal | tv/src/main/java/com/cesarvaliente/tldrlegal/DetailsActivity.java | Java | apache-2.0 | 1,174 |
package edu.isi.karma.controller.command.publish;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;... | usc-isi-i2/Web-Karma | karma-commands/commands-publish/src/main/java/edu/isi/karma/controller/command/publish/PublishReportCommand.java | Java | apache-2.0 | 18,784 |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.maintenance;
import com.yahoo.config.provision.SystemName;
import com.yahoo.config.provision.TenantName;
import com.yahoo.config.provision.zone.ZoneId;
import com.yahoo.jdi... | vespa-engine/vespa | controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/ArchiveAccessMaintainerTest.java | Java | apache-2.0 | 3,150 |
/*
* 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... | biddyweb/undertow | core/src/main/java/io/undertow/server/handlers/cache/ResponseCache.java | Java | apache-2.0 | 8,737 |
package org.hswebframework.web.commons.entity;
import lombok.*;
import java.util.List;
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MenuEntity extends SimpleTreeSortSupportEntity<Integer> {
private static final long serialVersionUID = 5548107788893085691L;
private String name... | asiaon123/hsweb-framework | hsweb-commons/hsweb-commons-entity/src/test/java/org/hswebframework/web/commons/entity/MenuEntity.java | Java | apache-2.0 | 364 |
/*
* 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 ... | joshelser/accumulo | server/base/src/main/java/org/apache/accumulo/server/security/handler/ZKAuthenticator.java | Java | apache-2.0 | 8,387 |
package com.nebby.grandmadown.network;
import java.io.IOException;
import java.net.Socket;
import java.security.GeneralSecurityException;
import java.security.KeyFactory;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.X509EncodedKeySpec;
import javax.crypto.Cipher;
import javax.crypto.KeyGene... | aaron97neu/minnehack2017 | main/com/nebby/grandmadown/network/ClientNetwork.java | Java | apache-2.0 | 1,740 |
package de.nl.moo.data.beans.constructions;
import de.nl.moo.data.beans.AbstractGameFunctionBean;
public class ConstructionsBuilderBean extends AbstractGameFunctionBean {
public ConstructionsBuilderBean() {
super();
}
}
| dayaftereh/master-of-orion | src/main/java/de/nl/moo/data/beans/constructions/ConstructionsBuilderBean.java | Java | apache-2.0 | 240 |
/*
* Copyright 2015 Cognitive Medical Systems, Inc (http://www.cognitivemedicine.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-... | SocraticGrid/UCS-Implementation | ucs-nifi-extensions/nifi-ucs-nifi-extensions-processors/src/test/java/org/socraticgrid/hl7/ucs/nifi/processor/command/UCSCreateConversationTest.java | Java | apache-2.0 | 4,977 |
package floobits.common.protocol.json.send;
public class FlooRequestCredentials extends InitialBase {
String name = "request_credentials";
String username = System.getProperty("user.name");
String token;
public FlooRequestCredentials(String token) {
this.token = token;
}
}
| Floobits/eclipse | src/floobits/common/protocol/json/send/FlooRequestCredentials.java | Java | apache-2.0 | 304 |
/*
* 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... | CHINA-JD/presto | presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/util/PdboMetadata.java | Java | apache-2.0 | 3,833 |
//
// ========================================================================
// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | whiteley/jetty8 | test-continuation/src/test/java/org/eclipse/jetty/continuation/FauxContinuationTest.java | Java | apache-2.0 | 4,467 |
package org.hl7.fhir.instance.model;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above co... | Nodstuff/hapi-fhir | hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Flag.java | Java | apache-2.0 | 25,262 |
package algorithm.countsearch;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.util.Random;
/**
* Created ... | outskywind/myproject | demos/src/main/java/algorithm/countsearch/Index.java | Java | apache-2.0 | 11,913 |
package com.weichat.service;
import java.util.List;
import com.weichat.model.User;
/**
* Óû§ÒµÎñ½Ó¿Ú
*
*
* ÏîÄ¿Ãû³Æ£ºWeiChat ÀàÃû³Æ£ºBaseDaoImpl.java ÀàÃèÊö£ºTODO ´´½¨ÈË£ºÍõ¾§ ´´½¨Ê±¼ä£º2016-6-20 ÉÏÎç11:30:04
* ÐÞ¸ÄÈË£ºÍõ¾§ ÐÞ¸Äʱ¼ä£º2016-6-20 ÉÏÎç11:30:04 Ð޸ı¸×¢£º
*
* FreeHuman Soft Team
... | SteveJrong/WeiChat | src/com/weichat/service/UserService.java | Java | apache-2.0 | 416 |
package me.vilsol.nmswrapper.wraps.unparsed;
import me.vilsol.nmswrapper.*;
import me.vilsol.nmswrapper.reflections.*;
import me.vilsol.nmswrapper.wraps.*;
@ReflectiveClass(name = "AttributeBase")
public class NMSAttributeBase extends NMSWrap implements NMSIAttribute {
public NMSAttributeBase(Object nmsObject){
... | Vilsol/NMSWrapper | src/main/java/me/vilsol/nmswrapper/wraps/unparsed/NMSAttributeBase.java | Java | apache-2.0 | 2,347 |
/**
* Copyright 2013-2019 Gaurav Gupta
*
* 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... | jGauravGupta/nbmodeler | modeler-impl/src/main/java/org/netbeans/modeler/actions/export/ExportAction.java | Java | apache-2.0 | 2,430 |
/*
* Copyright 2016 "Henry Tao <hi@henrytao.me>"
*
* 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 ... | henrytao-me/smooth-app-bar-layout | sample/src/main/java/me/henrytao/smoothappbarlayoutdemo/activity/GsdScrollExitUntilCollapsedActivity.java | Java | apache-2.0 | 1,813 |
/*
* 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... | joewalnes/idea-community | platform/vcs-impl/src/com/intellij/openapi/vcs/impl/AbstractVcsHelperImpl.java | Java | apache-2.0 | 33,663 |
/*******************************************************************************
* Copyright (c) 2015 Jeff Martin.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public
* License v3.0 which accompanies this distribution, and is avail... | jamierocks/enigma | src/main/java/cuchaz/enigma/analysis/EntryRenamer.java | Java | apache-2.0 | 7,041 |
/*
* Copyright 2014-present Facebook, 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... | Dominator008/buck | src/com/facebook/buck/python/PythonBinaryDescription.java | Java | apache-2.0 | 14,093 |
package ru.job4j;
/**
*Class Engineer, решение задачи 3.1 части 002.
*@author Konstantin Alekseev.
*@since 23.04.2017.
*@version 1.0.
*/
public class Engineer extends Profession {
/**
*@param subject - поле класса.
*/
private String subject;
/**
*Class Engineer, конструктор.
*@param name - поле класса.
*@... | AlxKonstantin/kalekseev | chapter_002/src/main/java/ru/job4j/Engineer.java | Java | apache-2.0 | 1,100 |
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | googleapis/google-api-java-client-services | clients/google-api-services-cloudidentity/v1/1.30.1/com/google/api/services/cloudidentity/v1/model/ListDeviceUsersResponse.java | Java | apache-2.0 | 3,250 |