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 |
|---|---|---|---|---|---|
/*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may ... | jmartisk/hibernate-validator | engine/src/main/java/org/hibernate/validator/internal/xml/ConstrainedFieldBuilder.java | Java | apache-2.0 | 4,202 |
package io.mangoo.enums;
import java.util.HashMap;
import java.util.Map;
/**
* Default application values
*
* @author svenkubiak
* @author williamdunne
*
*/
public enum Default {
ADMIN_COOKIE_NAME("mangooio-admin"),
APPLICATION_ADMIN_ENABLE(Constants.FALSE),
APPLICATION_ADMIN_HEALTH_ENABLE(Constants... | svenkubiak/mangooio | mangooio-core/src/main/java/io/mangoo/enums/Default.java | Java | apache-2.0 | 5,919 |
/*
* Copyright (C) 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | bpiwowar/gson | src/test/java/com/google/gson/functional/MapAsArrayTypeAdapterTest.java | Java | apache-2.0 | 5,204 |
package apoc;
import org.neo4j.annotations.service.ServiceProvider;
import org.neo4j.configuration.Config;
import org.neo4j.dbms.api.DatabaseManagementService;
import org.neo4j.kernel.api.procedure.GlobalProcedures;
import org.neo4j.kernel.extension.ExtensionFactory;
import org.neo4j.kernel.extension.ExtensionType;
im... | neo4j-contrib/neo4j-apoc-procedures | core/src/main/java/apoc/TTLConfigExtensionFactory.java | Java | apache-2.0 | 1,107 |
package com.bgu.tools.web;
import java.util.HashMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.... | burniegu/tools | src/com/bgu/tools/web/TestCase_AutoAction.java | Java | apache-2.0 | 5,443 |
/*
* Copyright (c) 2016-2088, fastquery.org and/or its affiliates. All rights reserved.
*
* 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 lic... | xixifeng/fastquery | src/test/java/org/fastquery/dao/SetDBService.java | Java | apache-2.0 | 3,815 |
/* ###
* IP: GHIDRA
*
* 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 writin... | NationalSecurityAgency/ghidra | Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/ParentChildAdapter.java | Java | apache-2.0 | 2,677 |
/*
* 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 ... | chirino/proton | proton-j/proton/src/main/java/org/apache/qpid/proton/engine/impl/ssl/BytePipeline.java | Java | apache-2.0 | 2,982 |
package com.aks.group.breakout.room;
/**
* Created by anujs on 5/26/2017.
*/
public class Member {
private String uid;
private String name;
public Member() {
}
public Member(String text, String name, String photoUrl) {
this.uid = text;
this.name = name;
}
public Strin... | anujshar/breakoutroomv3 | app/src/main/java/com/aks/group/breakout/room/Member.java | Java | apache-2.0 | 561 |
package com.frameworkset.platform.sysmgrcore.web.tag;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.frameworkset.platform.config.ConfigManager;
import com.frameworkset.platform.sysmgrcore.entity.LogModule;
import com.frameworkset.common.poolman.DBUtil;
import com.framework... | tzou24/BPS | BPS/src/com/frameworkset/platform/sysmgrcore/web/tag/LogModuleList.java | Java | apache-2.0 | 1,633 |
package org.onetwo.boot.module.qlexpress;
/**
* @author weishao zeng
* <br/>
*/
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springf... | wayshall/onetwo | core/modules/boot/src/main/java/org/onetwo/boot/module/qlexpress/QLExpressConfigtion.java | Java | apache-2.0 | 1,335 |
/*******************************************************************************
* Copyright 2012 Apigee 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 of the License at
*
* http://www.... | pgorla/usergrid | rest/src/test/java/org/usergrid/rest/test/security/TestAdminUser.java | Java | apache-2.0 | 1,718 |
/*
* 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 app... | novinc/SunshineWear | wear/src/main/java/com/example/android/sunshine/app/SunshineWatchFace.java | Java | apache-2.0 | 27,898 |
/**
* Copyright 1999-2015 dangdang.com.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | wangda/sharding-jdbc | sharding-jdbc-core/src/test/java/com/dangdang/ddframe/rdb/sharding/parser/jaxb/OrderByColumn.java | Java | apache-2.0 | 1,184 |
/*
* 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 | plugins/groovy/src/org/jetbrains/plugins/groovy/GroovyFileTypeLoader.java | Java | apache-2.0 | 2,173 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | medicayun/medicayundicom | dcm4jboss-all/tags/DCM4CHEE_2_14_7/dcm4jboss-sar/src/java/org/dcm4chex/archive/dcm/storescp/StoreScpService.java | Java | apache-2.0 | 33,116 |
/*
* Copyright 2015 Groupon.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 applicable law or agreed to ... | ArpNetworking/metrics-aggregator-daemon | src/main/java/com/arpnetworking/metrics/mad/model/json/Version2f.java | Java | apache-2.0 | 12,077 |
package org.teachingkidsprogramming.section09final;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class FizzBuzzTDD
{
// For the numbers being tested, print out either that number, or,
// If that number is divisible by 3, then print the word 'Fizz',
// If that number is d... | 91084970/TeachingKidsProgramming | src/org/teachingkidsprogramming/section09final/FizzBuzzTDD.java | Java | apache-2.0 | 764 |
//CHECKSTYLE:FileLength:OFF
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2019 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under... | pminutillo/pentaho-kettle | ui/src/main/java/org/pentaho/di/ui/trans/steps/fileinput/text/TextFileInputDialog.java | Java | apache-2.0 | 137,956 |
/*
* 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 ... | rdblue/incubator-nifi | nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/java/org/apache/nifi/web/api/config/MutableRequestExceptionMapper.java | Java | apache-2.0 | 1,941 |
package taiga.model;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
import taiga.interfaces.Array;
import taiga.interfaces.ErrorCode;
import taiga.interfaces.Model;
import taiga.interfaces.ModelException;
import taiga.interfaces.Node;
pu... | aryzhov/taiga | taiga-parser/src/main/java/taiga/model/AbstractModel.java | Java | apache-2.0 | 2,446 |
package amu.zhcet.notification;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
public interface NotificationRepository extends PagingAndSortingRepository<Notification, Long> {
Page<Notification> ... | zhcet-amu/zhcet-web | src/main/java/amu/zhcet/notification/NotificationRepository.java | Java | apache-2.0 | 373 |
/*
* Copyright 2013 Eediom Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | araqne/logdb | araqne-logstorage/src/main/java/org/araqne/logstorage/file/LogFileServiceV2.java | Java | apache-2.0 | 7,394 |
/*
* $Id$
*
* SARL is an general-purpose agent programming language.
* More details on http://www.sarl.io
*
* Copyright (C) 2014-2016 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... | gallandarakhneorg/sarl | eclipse-sarl/plugins/io.sarl.lang/src/io/sarl/lang/parser/SARLSyntaxErrorMessageProvider.java | Java | apache-2.0 | 2,754 |
package com.ayoview.sample.tmpl_listview.http;
import org.ayo.http.AyoRequest;
import org.ayo.http.callback.BaseHttpCallback;
import org.ayo.http.callback.JsonResponseDispatcher;
import org.ayo.http.callback.model.ResponseModel;
import org.ayo.http.worker.HttpWorkerUseOkhttp;
public class TestHttper {
public stat... | cowthan/AyoWeibo | sample/src/main/java_ayoview/com/ayoview/sample/tmpl_listview/http/TestHttper.java | Java | apache-2.0 | 1,185 |
/*
* Copyright (c) 2005-2009 Grameen Foundation USA
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | mifos/1.4.x | application/src/main/java/org/mifos/application/accounts/financial/business/FinancialTransactionBO.java | Java | apache-2.0 | 5,174 |
package nl.sense_os.commonsense.main.client.ext.model;
import java.util.List;
import java.util.Map;
import nl.sense_os.commonsense.common.client.model.Service;
import com.extjs.gxt.ui.client.data.BaseTreeModel;
import com.extjs.gxt.ui.client.data.TreeModel;
/**
* Model for a service. GXT-style bean, used in variou... | senseobservationsystems/commonsense-frontend | src/nl/sense_os/commonsense/main/client/ext/model/ExtService.java | Java | apache-2.0 | 1,824 |
package com.effectivejava.threading.basics;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class FibonacciTask {
/**
* @param args
*/
public static void main(String[] args) {
// for (int i = 0; i < 10; i++) {
// new Thread(new Fibonacci(i)).start();
/... | alexhilton/EffectiveJava | src/com/effectivejava/threading/basics/FibonacciTask.java | Java | apache-2.0 | 858 |
package play.learn.java.design.abstract_document;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Stream;
public class AbstractDocument implements Document {
private final Map<String, Object> properties;
... | jasonwee/videoOnCloud | src/java/play/learn/java/design/abstract_document/AbstractDocument.java | Java | apache-2.0 | 1,328 |
package io.sterodium.extensions.hub.proxy;
import com.google.common.collect.Sets;
import com.google.common.net.MediaType;
import org.apache.commons.io.IOUtils;
import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpDelete;
import org.ap... | sterodium/selenium-grid-extensions | hub-extensions/extension-proxy/src/test/java/io/sterodium/extensions/hub/proxy/HubRequestsProxyingServletTest.java | Java | apache-2.0 | 12,011 |
/*
* Copyright 2017 Riyaz Ahamed
*
* 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 ... | DevAhamed/MultiViewAdapter | multi-view-adapter/src/test/java/mva2/adapter/testconfig/CommentBinder.java | Java | apache-2.0 | 1,361 |
package com.nanchen.compresshelper;
import android.content.Context;
import android.graphics.Bitmap;
import android.net.Uri;
import java.io.File;
/**
* 压缩方法工具类
*
* Author: nanchen
* Email: liushilin520@foxmail.com
* Date: 2017-03-08 9:03
*/
public class CompressHelper {
private static volatile CompressHel... | gehangIT/MayiNews | compresshelper/src/main/java/com/nanchen/compresshelper/CompressHelper.java | Java | apache-2.0 | 4,605 |
package br.com.javase.jogodavelha.pontuacao;
@SuppressWarnings("serial")
public class PontuacaoException extends Exception {
public PontuacaoException() {
super();
}
public PontuacaoException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cau... | maxdosanjos/JavaSE | src/br/com/javase/jogodavelha/pontuacao/PontuacaoException.java | Java | apache-2.0 | 616 |
package es.tododev.auth.server.resource;
import java.io.IOException;
import java.util.List;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.security.auth.login.LoginException;
import javax.servlet.ServletException;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.co... | jbescos/CentralAuth | server-auth/src/main/java/es/tododev/auth/server/resource/LogoutResource.java | Java | apache-2.0 | 956 |
/*
* Copyright 2009 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-2.0
*
* ... | willnorris/java-openxrd | src/main/java/org/openxrd/xrd/core/validator/TitleSchemaValidator.java | Java | apache-2.0 | 1,519 |
/*
* Copyright 2016 Matt Richardson.
* Licensed under the Apache License, Version 2.0 (the "License");
*
* Based on code graciously open sourced by JetBrains s.r.o
* (http://svn.jetbrains.org/teamcity/plugins/url-build-trigger/trunk/url-build-trigger-server/src/jetbrains/buildServer/buildTriggers/url/UrlBuildTrigg... | matt-richardson/teamcity-octopus-build-trigger-plugin | octopus-build-trigger-server/src/main/java/com/mjrichardson/teamCity/buildTriggers/ReleaseCreated/ReleaseCreatedCheckJob.java | Java | apache-2.0 | 7,603 |
/*-
* <<
* UAVStack
* ==
* Copyright (C) 2016 - 2017 UAVStack
* ==
* 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 r... | xxxllluuu/uavstack | com.creditease.uav.notifymanager/src/main/java/com/creditease/agent/feature/globalnotify/NotificationEventRecordLiferKeeper.java | Java | apache-2.0 | 2,481 |
/*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* 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... | srpepperoni/libGDX | gdx/src/com/badlogic/gdx/graphics/g3d/model/data/ModelData.java | Java | apache-2.0 | 1,851 |
package com.cs442project.appmonitor.Preferences;
import android.content.Context;
import android.content.res.TypedArray;
import android.preference.DialogPreference;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TimePicker;
/**
* Created by Snehal on 5/5/2015.
*/
public class Time... | spate141/App-Monitor | app/src/main/java/com/cs442project/appmonitor/Preferences/TimePreference.java | Java | apache-2.0 | 2,303 |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... | googleads/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202108/CreativeSetServiceInterface.java | Java | apache-2.0 | 5,952 |
package com.coolweather.app.service;
import com.coolweather.app.receiver.AutoUpdateReceiver;
import com.coolweather.app.util.HttpCallbackListener;
import com.coolweather.app.util.HttpUtil;
import com.coolweather.app.util.Utility;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Se... | BambooCios/coolweather | src/com/coolweather/app/service/AutoUpdateService.java | Java | apache-2.0 | 1,976 |
package com.ialocation.plugin;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
public class CurrentStatus {
private static final String TAG ="CurrentStatus";
public static final int STATUS_OUT_OF_SERVICE = 0;
public static final int STATUS_TEMPORARILY_UNAVAILABLE = 1;... | IndoorAtlas/cordova-plugin | src/android/src/main/java/com/ialocation/plugin/CurrentStatus.java | Java | apache-2.0 | 1,623 |
package com.softserveinc.tender.service;
import com.softserveinc.tender.entity.Bid;
import java.util.List;
public interface BidService {
List<Bid> findAll();
Bid findById(int id);
Bid save(Bid bid);
}
| if045/tender | src/main/java/com/softserveinc/tender/service/BidService.java | Java | apache-2.0 | 216 |
/*
* 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-chime/src/main/java/com/amazonaws/services/chime/model/StartMeetingTranscriptionResult.java | Java | apache-2.0 | 2,402 |
/*
* 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-backup/src/main/java/com/amazonaws/services/backup/model/transform/DeleteBackupSelectionRequestMarshaller.java | Java | apache-2.0 | 2,406 |
/*
* 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 ... | pellcorp/fop | test/java/org/apache/fop/pdf/PDFFactoryTestCase.java | Java | apache-2.0 | 2,134 |
/**
* 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... | kingargyle/turmeric-bot | components/camel-spring/src/main/java/org/apache/camel/component/ResourceBasedEndpoint.java | Java | apache-2.0 | 5,608 |
package org.apereo.cas.configuration.model.core.web.view;
import java.io.Serializable;
/**
* This is {@link ViewProperties}.
*
* @author Misagh Moayyed
* @since 5.0.0
*/
public class ViewProperties implements Serializable {
private static final long serialVersionUID = 2719748442042197738L;
private Strin... | doodelicious/cas | core/cas-server-core-configuration/src/main/java/org/apereo/cas/configuration/model/core/web/view/ViewProperties.java | Java | apache-2.0 | 3,401 |
/*
Licensed to Diennea S.r.l. under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Diennea S.r.l. licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except ... | diennea/herddb | herddb-utils/src/main/java/herddb/index/blink/BLinkIndexDataStorage.java | Java | apache-2.0 | 1,777 |
package org.geotools.data.property;
import java.io.File;
import java.io.IOException;
import java.util.NoSuchElementException;
import java.util.logging.Logger;
import org.geotools.data.FeatureReader;
import org.geotools.feature.simple.SimpleFeatureBuilder;
import org.geotools.util.logging.Logging;
import org.opengis.f... | ianturton/geotools-cookbook | modules/quickstart/src/main/main/java/org/geotools/data/property/PropertyFeatureReader.java | Java | apache-2.0 | 2,945 |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CD... | ftomassetti/JavaIncrementalParser | src/test/resources/javaee7-samples/cdi/exclude-filter/src/main/java/org/javaee7/cdi/exclude/filter/FancyGreeting.java | Java | apache-2.0 | 2,206 |
/*
* Copyright 2017 StreamSets Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | z123/datacollector | container/src/main/java/com/streamsets/datacollector/runner/PipeBatch.java | Java | apache-2.0 | 2,012 |
package io.crowdcode.flaschenhals.product;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.... | crowdcode-de/spring-cloud-performance-tuning | domain-services/product-service/src/test/java/io/crowdcode/flaschenhals/product/ProductServiceApplicationTest.java | Java | apache-2.0 | 644 |
/*
* 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 ... | funtl/framework | funtl-framework-tools/paypal-sdk/src/main/java/com/funtl/framework/paypal/base/codec/Decoder.java | Java | apache-2.0 | 2,158 |
/*
* JEF - Copyright 2009-2010 Jiyi (mr.jiyi@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 requir... | xuse/ef-others | common-net/src/main/java/jef/http/server/actions/DirManagerAction.java | Java | apache-2.0 | 11,263 |
/*
* 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 ... | SoffidIAM/jxpath | src/java/es/caib/zkib/jxpath/ri/axes/SelfContext.java | Java | apache-2.0 | 2,517 |
package first.pack.mantis.appmanager;
import first.pack.mantis.model.UserData;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.boot.MetadataSources;
import org.hibernate.boot.registry.StandardServiceRegistry;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
im... | arkbrodskiy/java_selenium_training | mantis-tests/src/test/java/first/pack/mantis/appmanager/DBHelper.java | Java | apache-2.0 | 1,109 |
package com.sciul.recurly.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
/**
* The Class FirstName.
*
* @author GauravChawla... | ulini/recurly-sdk-java | src/main/java/com/sciul/recurly/model/FirstName.java | Java | apache-2.0 | 1,076 |
package com.coolweather.app.modle;
import java.util.ArrayList;
import java.util.List;
import com.coolweather.app.db.CoolWeatherOpenHelper;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
public class CoolWeatherDB {... | snowdream1314/coolweather | src/com/coolweather/app/modle/CoolWeatherDB.java | Java | apache-2.0 | 6,369 |
package com.pearson.statspoller.utilities.core_utils;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author Jeffrey Schmidt
*/
public class Threads {
... | PearsonEducation/StatsPoller | src/main/java/com/pearson/statspoller/utilities/core_utils/Threads.java | Java | apache-2.0 | 8,443 |
// Copyright 2017 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | googlevr/poly-sample-android | PolySampleAndroid/app/src/main/java/com/example/polysample/RawObject.java | Java | apache-2.0 | 6,260 |
/*
* 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... | alibaba/dubbo | dubbo-rpc/dubbo-rpc-http/src/main/java/org/apache/dubbo/rpc/protocol/http/HttpProtocol.java | Java | apache-2.0 | 10,042 |
/*
* Copyright 2015,2016 agwlvssainokuni
*
* 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... | agwlvssainokuni/springapp2 | galleryapp/gallery-web/src/main/java/cherry/gallery/web/applied/ex60/AppliedEx60Service.java | Java | apache-2.0 | 979 |
package nettyinaction.unittest;
import org.junit.Assert;
import org.junit.Test;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.embedded.EmbeddedChannel;
public class AbsIntegerEncoderTest {
@Test
public void testAbsIntegerEncoder() {
ByteBuf buf = Unpooled.bu... | ouzhi/distributedLearning | nettyLearning/src/main/java/nettyinaction/unittest/AbsIntegerEncoderTest.java | Java | apache-2.0 | 715 |
/*
* Copyright 2015 Sebastian Gil.
*
* 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... | create1st/react-boot | src/main/java/com/create/repository/loader/TicketLoader.java | Java | apache-2.0 | 1,365 |
package com.wenyu.ylive.biz.splash;
import android.Manifest;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.Settings;
import android.support.v4.app.Activi... | ChanJLee/android_live | app/src/main/java/com/wenyu/ylive/biz/splash/SplashActivity.java | Java | apache-2.0 | 5,502 |
/*
* 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-textract/src/main/java/com/amazonaws/services/textract/model/InvalidJobIdException.java | Java | apache-2.0 | 1,265 |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.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 requ... | brasseld/gravitee-alerter | gravitee-alerter-ws/src/main/java/io/gravitee/alerter/ws/endpoint/WebSocketEndpointConfigurator.java | Java | apache-2.0 | 2,206 |
package chap07;
public class MainProxy {
public static void main(String[] args) {
ExeTimeCalculator ttCal1 = new ExeTimeCalculator(new ImplCalculator());
System.out.println(ttCal1.factorial(20));
ExeTimeCalculator ttCal2 = new ExeTimeCalculator(new RecCalculator());
System.out.println(ttCal2.fac... | crazyfyd/springEx | spring_demo/src/main/java/chap07/MainProxy.java | Java | apache-2.0 | 343 |
package com.ayoza.feline.app.web.rest.v1.tracker;
import static com.ayoza.feline.app.web.rest.v1.tracker.TrackerUtils.convertToDecimalDegrees;
import static org.springframework.http.MediaType.APPLICATION_FORM_URLENCODED_VALUE;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.s... | raultov/feline-tracker | src/main/java/com/ayoza/feline/app/web/rest/v1/tracker/TrackV2Ctrl.java | Java | apache-2.0 | 1,948 |
package br.com.ti4b.util;
import javax.swing.JOptionPane;
/**
*
* @author Otavio Costa
*/
public class Mensagens {
public static void mensagensDeErro(int valorDoErro,Exception e) {
switch (valorDoErro) {
case 1:
JOptionPane.showMessageDialog(null, "Ocorreu um e... | OtavioCostaLima/Legado | src/br/com/ti4b/util/Mensagens.java | Java | apache-2.0 | 632 |
/* ###
* IP: GHIDRA
*
* 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 writin... | NationalSecurityAgency/ghidra | Ghidra/Features/MicrosoftDmang/src/main/java/mdemangler/typeinfo/MDRTTI0.java | Java | apache-2.0 | 1,112 |
/*
* Copyright (c) 2010-2012 Sonatype, Inc. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/lic... | bomgar/async-http-client | client/src/test/java/org/asynchttpclient/AuthTimeoutTest.java | Java | apache-2.0 | 7,355 |
/* ###
* IP: GHIDRA
*
* 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 writin... | NationalSecurityAgency/ghidra | Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/BinaryReader.java | Java | apache-2.0 | 26,001 |
/* ###
* IP: GHIDRA
*
* 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 writin... | NationalSecurityAgency/ghidra | Ghidra/Debug/Debugger-agent-dbgeng/src/main/java/agent/dbgeng/jna/dbgeng/event/ListenerIDebugEventContextCallbacks.java | Java | apache-2.0 | 7,903 |
package io.leopard.data.kit.password;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import io.leopard.util.Base64;
public class PassportTokenUtil {
protected static Log logger = LogFactory.getLog(PassportTokenUtil.class);
public static String makeToken(String encryptedPasswo... | tanhaichao/leopard-data | leopard-kit/src/main/java/io/leopard/data/kit/password/PassportTokenUtil.java | Java | apache-2.0 | 891 |
// 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 applicable ... | Andproject/tools_gerrit | gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/ProjectAccessScreen.java | Java | apache-2.0 | 9,722 |
/**
* 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... | sungsoo/tez-0.4.0 | tez-mapreduce/src/test/java/org/apache/tez/mapreduce/processor/map/TestMapProcessor.java | Java | apache-2.0 | 9,425 |
/**
* Copyright 2012-2013 StackMob
*
* 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... | SidneyAllen/stackmob-user-verification-customcode | src/main/java/com/stackmob/example/verification/CreateUnverifiedUser.java | Java | apache-2.0 | 7,404 |
package org.got5.tapestry5.jquery.d3.test.pages;
import org.apache.tapestry5.json.JSONArray;
public class BarChartPage {
public JSONArray getData(){
return new JSONArray(
25, 7, 5, 26, 11, 8, 25, 14, 23, 19,
14, 11, 22, 29, 11, 13, 12, 17, 18, 10,
24, 18, 25, 9, 3);
}
}... | got5/tapestry5-d3 | src/test/java/org/got5/tapestry5/jquery/d3/test/pages/BarChartPage.java | Java | apache-2.0 | 321 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/resources/conversion_value_rule_set.proto
package com.google.ads.googleads.v10.resources;
public interface ConversionValueRuleSetOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.... | googleads/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/resources/ConversionValueRuleSetOrBuilder.java | Java | apache-2.0 | 12,615 |
/*
* 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-appmesh/src/main/java/com/amazonaws/services/appmesh/model/transform/ListenerTimeoutMarshaller.java | Java | apache-2.0 | 2,848 |
package com.credit.actions.tournaments;
import com.credit.managers.EMF;
import com.credit.managers.SessionManager;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import entities.TournamentsEntity;
import entities.UsersEntity;
import javax.persistence.EntityManager;
import ... | smile59/credit_mut | src/com/credit/actions/tournaments/ShowTournamentAction.java | Java | apache-2.0 | 1,271 |
/*
* 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.org/licenses/LICENSE-2.0
*
* Unless required by app... | rohan20/SunshineWatchface | app/src/main/java/com/example/android/sunshine/app/ForecastAdapter.java | Java | apache-2.0 | 12,601 |
package org.mmymoney.gateway.config;
import org.mmymoney.gateway.gateway.ratelimiting.RateLimitingFilter;
import org.mmymoney.gateway.gateway.ratelimiting.RateLimitingRepository;
import org.mmymoney.gateway.gateway.accesscontrol.AccessControlFilter;
import org.mmymoney.gateway.gateway.responserewriting.SwaggerBasePath... | mbocek/mymoney | gateway/src/main/java/org/mmymoney/gateway/config/GatewayConfiguration.java | Java | apache-2.0 | 2,143 |
// This is a generated file. Not intended for manual editing.
package pl.jakubchmura.snmp.mib.psi.impl;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.util.PsiTreeUtil;
i... | jchmura/MibPlugin | gen/pl/jakubchmura/snmp/mib/psi/impl/SmiMibNodeImpl.java | Java | apache-2.0 | 1,082 |
/*
* Copyright 2017 StreamSets Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | z123/datacollector | miniIT/src/test/java/com/streamsets/datacollector/kafka/standalone/KafkaDestinationSinglePartitionPipelineRunIT.java | Java | apache-2.0 | 2,974 |
package com.appleframework.model.page;
import java.io.Serializable;
/**
* 简单分页类
*
* @author xusm
*
*/
public class SimplePage implements Paginable, Serializable {
private static final long serialVersionUID = -5755581162278120462L;
public static final long DEF_COUNT = 20;
public static fina... | xushaomin/apple-data | apple-data-core/src/main/java/com/appleframework/model/page/SimplePage.java | Java | apache-2.0 | 3,661 |
/*******************************************************************************
* Copyright 2015 rzorzorzo@users.sf.net
*
* 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
*
* ... | cstroe/yajsw | src/yajsw/src/main/java/org/rzo/yajsw/groovy/WrapperBuilder.java | Java | apache-2.0 | 2,056 |
/*
* Copyright 2017 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | spinnaker/kayenta | kayenta-atlas/src/main/java/com/netflix/kayenta/atlas/config/AtlasManagedAccount.java | Java | apache-2.0 | 1,036 |
/*
* Living Documentation
*
* Copyright (C) 2020 Focus IT
*
* 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
*... | jboz/living-documentation | livingdoc-maven-plugin/src/main/java/ch/ifocusit/livingdoc/plugin/publish/confluence/ConfluenceProvider.java | Java | apache-2.0 | 3,592 |
package ec.master.assignment1.selection.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import ec.master.assignment1.model.Individual;
import ec.master.assignment1.selection.Selector;
/**
* @ClassName: TournamentSelection
* @Description: implementatio... | nettree/EC | EC_Assignment1/src/ec/master/assignment1/selection/impl/TournamentSelection.java | Java | apache-2.0 | 1,127 |
/*
* Copyright (c) www.bugull.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 applicable law or agreed... | xbwen/bugu-mongo | bugu-mongo-core/src/test/java/com/bugull/mongo/dao/OrderDao.java | Java | apache-2.0 | 866 |
/**
* @copyright
* ====================================================================
* 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. ... | YueLinHo/Subversion | subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNEditor.java | Java | apache-2.0 | 14,938 |
package org.fastnate.generator.test.inheritance;
import javax.persistence.Entity;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* Test class that ensures that an entity hierarchy with {@link InheritanceType#... | liefke/org.fastnate | fastnate-generator/src/test/java/org/fastnate/generator/test/inheritance/TablePerClassSubclassTestEntity.java | Java | apache-2.0 | 1,124 |
// ----------------------------------------------------------------------------
// Copyright 2007-2011, GeoTelematic Solutions, Inc.
// All rights reserved
// ----------------------------------------------------------------------------
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not... | CASPED/OpenGTS | src/org/opengts/dbtools/DBException.java | Java | apache-2.0 | 4,172 |
package org.anderes.cookbook.web.rest;
import static org.springframework.http.HttpStatus.SERVICE_UNAVAILABLE;
import javax.validation.ConstraintViolationException;
import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.Contr... | rene-anderes/spring-education | spring-jpa-rest/src/main/java/org/anderes/cookbook/web/rest/RestResponseEntityExceptionHandler.java | Java | apache-2.0 | 1,328 |
/*
* Copyright (C) 2015-present, Ant Financial Services 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 a... | alipay/SoloPi | src/app/src/main/java/com/alipay/hulu/activity/PerformanceChartActivity.java | Java | apache-2.0 | 20,346 |
package org.ovirt.engine.core.bll;
import java.util.List;
import org.ovirt.engine.core.common.action.MoveMultipleImageGroupsParameters;
import org.ovirt.engine.core.common.action.VdcActionType;
import org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo;
import org.ovirt.engine.core.common.asynctasks.AsyncTa... | Dhandapani/gluster-ovirt | backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MoveMultipleImageGroupsCommand.java | Java | apache-2.0 | 4,587 |
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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 ag... | NationalSecurityAgency/ghidra | Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/searchtext/SearchTask.java | Java | apache-2.0 | 2,581 |