text stringlengths 7 995k |
|---|
package org.cloudfoundry.credhub.integration;
import org.cloudfoundry.credhub.CredentialManagerApp;
import org.cloudfoundry.credhub.util.DatabaseProfileResolver;
import org.json.JSONObject;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotat... |
/*
The MIT License
Copyright (c) 2016-2022 kong <congcoi123@gmail.com>
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 rights
to use, copy, m... |
package com.zhang.finishandroid;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.WindowManager;
public class AdvertisementActivity extends AppCompatActivity {
private... |
// SPDX-FileCopyrightText: 2020 Salif Mehmed <salifm@salifm.com>
// SPDX-License-Identifier: MIT
package com.salifm.qa.service.impl;
import com.salifm.qa.model.entity.Answer;
import com.salifm.qa.model.entity.Question;
import com.salifm.qa.model.view.AnswerViewModel;
import com.salifm.qa.repository.AnswerRepository;
... |
package com.song7749.incident.drs.domain;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;... |
package com.vmware.vim25;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for HostProfileManagerCompositionValidationResultResultElementStatus.
*
* <p>The following schema fragment specifies the expected conten... |
package com.weatherapp.utils;
import android.content.Context;
import com.weatherapp.R;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import static com.weatherapp.utils.Constants.getSharedPreBoolean;
public class Utils {
public static String convertWeatherUnit(Context context, String farenhit){
... |
/*
* Copyright (c) 2019-2021
* Mateusz Hermanowicz - All rights reserved.
* My Pantry
* https://www.mypantry.eu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.or... |
/*
* Sonar ESQL Plugin
* Copyright (C) 2013-2020 Thomas Pohl and EXXETA AG
* http://www.exxeta.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/lice... |
package com.xbo1.hybrid_stack_plugin_example;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.xbo1.hybrid_stack_plugin.HybridStackPlugin;
import org.js... |
/******************************************************************************
* Copyright (c) 2014 VMware, 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 a... |
package sg.ncl.adapter.deterlab.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
import sg.ncl.common.exception.base.NotFoundException;
/**
* Created by dcszwang on 11/17/2016.
*/
@ResponseStatus(code = HttpStatus.NOT_FOUND, reason = "Experiment ... |
/*
* Password Management Servlets (PWM)
* http://www.pwm-project.org
*
* Copyright (c) 2006-2009 Novell, Inc.
* Copyright (c) 2009-2019 The PWM 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 ... |
package domain.facebook;
//Functional requirement 3.1.2
//Test case 88: Only class presentation.gui.facebook.WallGUI may have a dependency with domain.facebook.FacebookException
//Result: FALSE
public class FacebookException extends Exception {
public FacebookException(String message){
super(message);
}
} |
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
/**
* AdvancedVoiceServiceOperationsInboundComplete
*/
public cla... |
package cn.felord.wepay.ali.sdk.api.domain;
import cn.felord.wepay.ali.sdk.api.AlipayObject;
import cn.felord.wepay.ali.sdk.api.internal.mapping.ApiField;
/**
* 资金预授权明细撤销接口
*
* @author auto create
* @version $Id: $Id
*/
public class AlipayFundAuthOperationCancelModel extends AlipayObject {
private static final... |
package com.github.zomin.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.ConcurrentHashMap;
/**
* Bean 工厂类
* @author yuhao.wang3
*/
public class BeanFactory {
private static Logger logger = LoggerFactory.getLogger(BeanFactory.class);
/**
* bean 容器
*/
... |
// ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... |
package jetbrains.mps.baseLanguage.methodReferences.test.intentions;
/*Generated by MPS */
import jetbrains.mps.MPSLaunch;
import jetbrains.mps.lang.test.runtime.BaseTransformationTest;
import org.junit.ClassRule;
import jetbrains.mps.lang.test.runtime.TestParametersCache;
import org.junit.Test;
import jetbrains.mps.... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2015 Vincent Vergnolle
*
* 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 rights
* t... |
package ru.job4j.io.concurrent;
import ru.job4j.io.locksmanager.InnerFileLock;
import ru.job4j.io.locksmanager.InnerFileLocker;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.channels.FileChannel;
import java.nio.channels.FileLock;
import java.nio.channels... |
////////////////////////////////////////////////////////////////////////////////
//
// NOTICE:
// THIS PROGRAM CONSISTS OF TRADE SECRECTS THAT ARE THE PROPERTY OF
// Advanced Products Ltd. THE CONTENTS MAY NOT BE USED OR DISCLOSED
// WITHOUT THE EXPRESS WRITTEN PERMISSION OF THE OWNER... |
/*******************************************************************************
* Copyright 2017 HuaWei Tld
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
... |
package org.chartacaeli.gpu.tst;
import static org.junit.Assert.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Locale;
import java.util.Vector;
import org.apache.commons.math3.geometry.euclidean.threed.Vector3D;
import org.junit.Test;
public class PlaneTest {
// dataset plane... |
// //
// Copyright 2016 Mirko Raner //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... |
/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2019 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* J... |
/*
* Copyright 2013 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 applica... |
package com.daxton.fancyequipment.task;
import com.daxton.fancyequipment.config.FileConfig;
public class Reload {
//重新讀取的一些任務
public static void execute(){
//設定檔
FileConfig.reload();
}
} |
package co.nstant.in.cbor.examples;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import co.nstant.in.cbor.CborBuilder;
import co.nstant.in.cbor.CborDecoder;
import co.nstant.in.cbor.CborEn... |
package net.sf.jabref.logic.protectedterms;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
impo... |
package linear_algebra;
public class Tensor {
protected final int order;
public Tensor(int order) {
this.order = order;
}
} |
package com.lee.distributedlock.core.controller;
import com.lee.distributedlock.core.service.DistributedLockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @auth... |
package es.amplia.oda.statemanager.api;
import es.amplia.oda.event.api.Event;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.internal.util.reflection.Whitebox;
import org.... |
package mall.pojo;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
impo... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... |
/**
* Copyright 2006-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
*
* Unle... |
/**
* 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... |
package com.joaopimentel.esperancastats.Controller;
import com.joaopimentel.esperancastats.DTO.TeamDTO;
import com.joaopimentel.esperancastats.Service.TeamService;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import... |
/*
* 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 ... |
package simpledb.execution;
import simpledb.common.DbException;
import simpledb.common.Type;
import simpledb.storage.*;
import simpledb.transaction.TransactionAbortedException;
import java.util.*;
/**
* Knows how to compute some aggregate over a set of StringFields.
*/
public class StringAggregator implements Aggr... |
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
public class testSetAge {
private static final String CLASS_... |
package common.base.netclients;
/**
* User: fee(lifei@cloudtone.com.cn)
* Date: 2016-05-16
* Time: 16:18
* DESC: 基于Volley的网络访问客户端
*/
public class VolleyClient {
} |
package com.rgs.friendlychat.Chat;
public class ChatUserPOJO {
String UID,Name,Email;
public ChatUserPOJO(String UID, String name, String email) {
this.UID = UID;
Name = name;
Email = email;
}
public String getUID() {
return UID;
}
public String getName() {
... |
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class V1PodOSBuilder extends io.kubernetes.client.openapi.models.V1PodOSFluentImpl<io.kubernetes.client.openapi.models.V1PodOSBuilder> implements io.kubernetes.cli... |
package com.surfacesoft.yaj.satransferui;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
public class ShowTransfer extends Activity {
@Override
protected void onCreate(Bundle savedInstanc... |
/**
* Copyright 2013 52°North Initiative for Geospatial Open Source Software GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
package com.lazycece.admin.server.mongodb;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created lanjian
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface MongoC... |
package com.github.zj.dreamly.guava.concurrent;
import com.google.common.util.concurrent.Monitor;
import com.google.common.util.concurrent.RateLimiter;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.function.Consumer;
import static java.lang.Thread.currentThread;
public class Bucket {
private... |
/*
* 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... |
package com.zb.fund.web.controller;
import com.zb.commons.dto.RestfulResultDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLon... |
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package com.github.geequery.tools.resource;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.List;
import java.util.Set;
impor... |
import javafx.scene.control.Button;
public interface IButton {
Button createButton();
} |
package org.jeecg.modules.system.biz.ac.entity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.Js... |
package com.liobio.mall.order.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liobio... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__int_getQueryString_Servlet_multiply_52a.java
Label Definition File: CWE190_Integer_Overflow__int.label.xml
Template File: sources-sinks-52a.tmpl.java
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: getQueryString_Servlet Parse id pa... |
package com.baiyi.opscloud.service.server.impl;
import com.baiyi.opscloud.common.util.IdUtil;
import com.baiyi.opscloud.domain.DataTable;
import com.baiyi.opscloud.domain.generator.opscloud.ServerAccount;
import com.baiyi.opscloud.domain.param.server.ServerAccountParam;
import com.baiyi.opscloud.factory.credential.Abs... |
/**
* Tulio Alberton Ribeiro
*
* LaSIGE - Large-Scale Informatics Systems Laboratory
*
* 03/2016
*
* Without warrant
*
* 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
*... |
/**
* Copyright 2005-2019 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... |
package de.zalando.zally.configuration;
import de.zalando.zally.rule.RuleDetails;
import de.zalando.zally.rule.RulesManager;
import de.zalando.zally.rule.api.Rule;
import de.zalando.zally.rule.api.RuleSet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationCont... |
package ir.farsroidx.time.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.recyclerview.widget.RecyclerView;
import ir.farsroidx.time.R;
import ir.farsroidx.time.tools.AdapterTools;
... |
/**
*
* PixelFlow | Copyright (C) 2016 Thomas Diewald - http://thomasdiewald.com
*
* A Processing/Java library for high performance GPU-Computing (GLSL).
* MIT License: https://opensource.org/licenses/MIT
*
*/
package Fluid2D.Fluid_SlowBuoyancy;
import com.thomasdiewald.pixelflow.java.DwPixelFlow;
import c... |
/*
* 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... |
package pl.wysockif.optimizer.algorithms;
import pl.wysockif.optimizer.items.connections.Connection;
import pl.wysockif.optimizer.items.connections.Connections;
import pl.wysockif.optimizer.items.pharmacies.Pharmacies;
import pl.wysockif.optimizer.items.pharmacies.Pharmacy;
import pl.wysockif.optimizer.items.producers... |
/*
* The Plaid API
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* The version of the OpenAPI document: 2020-09-14_1.34.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class m... |
package za.ac.unisa.lms.tools.registrationstatus.dao;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.collections.map.ListOrderedMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.sprin... |
package dev.vality.geck.common.util;
import java.util.Objects;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import java.util.function.Supplier;
public final class ObjectCache<T> {
private T cached;
private fi... |
/*
* The MIT License
*
* Copyright 2015 misakura.
*
* 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 rights
* to use, copy, modify... |
package com.simonbaars.clonerefactor.context;
public enum StatType {
TOTAL, CLONED, OVERLAPPING;
@Override
public String toString() {
return name().charAt(0)+name().substring(1).toLowerCase();
}
} |
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2018-2020 The Feast 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
*... |
package io.dropwizard.configuration;
import com.google.common.collect.ImmutableSet;
import io.dropwizard.validation.ConstraintViolations;
import javax.validation.ConstraintViolation;
import java.util.Set;
/**
* An exception thrown where there is an error validating a configuration object.
*/
public class Configura... |
package please.change.me.tutorial.ss99ZZ;
import java.util.Map;
import nablarch.core.validation.ValidateFor;
import nablarch.core.validation.ValidationContext;
import nablarch.core.validation.ValidationTarget;
import nablarch.core.validation.ValidationUtil;
import nablarch.core.validation.validator.Length;
/**
* プレ... |
package cn.ning3f1.wechat.dao;
import java.util.List;
import java.util.Map;
import cn.ning3f1.wechat.domain.StuCourse;
import cn.ning3f1.wechat.domain.StuCourseKey;
import cn.ning3f1.wechat.domain.Userinfo;
public interface StuCourseMapper {
int deleteByPrimaryKey(StuCourseKey key);
int insert(StuCourse rec... |
//
// ========================================================================
// Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... |
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/*
* Copyright 2014 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
package fi.riista.feature.organization.rhy.subsidy;
import com.google.common.collect.Range;
import fi.riista.feature.organization.rhy.annualstats.export.AnnualStatisticItem;
import javax.annotation.Nonnull;
import java.math.BigDecimal;
import java.util.List;
import java.util.stream.Stream;
import static fi.riista.fe... |
/*
* Copyright 2022 (C) Cognizant SoftVision, All rights Reserved
*/
package com.cognizantsoftvision.maqs.selenium;
import com.cognizantsoftvision.maqs.base.exceptions.MAQSRuntimeException;
import com.cognizantsoftvision.maqs.utilities.helper.StringProcessor;
import com.cognizantsoftvision.maqs.utilities.logging.Fi... |
/**
* 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... |
package backend.services.gameservice;
import backend.config.ContextPaths;
import backend.config.ProfileTypes;
import backend.databases.entities.GameEntity;
import backend.databases.entities.LocationEntity;
import backend.databases.entities.RoleEntity;
import backend.databases.entities.UserEntity;
import backend.databa... |
package cn.dbw.po;
import java.util.Date;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import cn.dbw.dto.Message;
import cn.dbw.util.MD5Util;
/**
* 上一次登陆记录表
* @author dbw
*
*/
public class LastLoginRecord{
private static Map<String,Date> lastLoginTable;
private static LastLoginRecord ... |
/*
* 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 ... |
/*
* Copyright 2011-2018 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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... |
/*
* Copyright (c) 2008-2014 MongoDB, 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 a... |
/*
* 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 ... |
package com.vladmihalcea.hibernate.type.range;
import com.vladmihalcea.hibernate.type.util.Objects;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Arrays;
/**
* Represents the range/interval with two bounds. Abstraction follows the semantics of the mathematical interval. The
* range can... |
package net.i2p.router.tasks;
import java.io.File;
import java.util.concurrent.atomic.AtomicBoolean;
import net.i2p.router.Router;
import net.i2p.router.RouterContext;
import net.i2p.router.util.EventLog;
import net.i2p.util.I2PThread;
import net.i2p.util.Log;
import net.i2p.util.SystemVersion;
/**
* Kaboom
*
* ... |
package za.co.entelect.domain.entities.project;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import za.co.entelect.domain.entities.IdentifiableEntity;
import za.co.entelect.domain.entities.history.HistoryEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
@Data
@... |
package com.phadcode.perpustakaanku.helper;
/**
* Created by Hudio Hizari on 4/27/2018.
*/
public class StringHelper {
public StringHelper() {
}
public String ucFirst(String word){
word = word.toLowerCase();
char[] chars = new char[1];
word.getChars(0, 1, chars, 0);
if ... |
package myTree;
import java.util.TreeMap;
import java.util.TreeSet;
public abstract class SuperNode {
private final int nodeID; //node id
private boolean msgRec = false; //msg reception
private Integer silentNeighbour = null; //silent neighbour
private static TreeMap<Integer, SuperNode> myNodes = n... |
/*
* 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 ... |
/**
* Copyright 2013 Ognyan Bankov
*
* 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... |
/*
* Copyright (C) 2015 Giuseppe Cardone <ippatsuman@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 require... |
package com.github.sanctum.clans.construct.api;
import com.github.sanctum.clans.construct.actions.ClaimAction;
import com.github.sanctum.clans.construct.impl.DefaultClaim;
import com.github.sanctum.clans.construct.impl.Resident;
import com.github.sanctum.labyrinth.data.JsonAdapter;
import com.github.sanctum.labyrinth.... |
package fr.agilix.gateway.security.oauth2;
import fr.agilix.gateway.config.oauth2.OAuth2Properties;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.test.util.ReflectionTestUtils;
/**
* Tests helper functio... |
package org.osrs.api.wrappers;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
public interface MouseListener{
public int getRealX();
public int getRealY();
public int getRealPressX();
public int getRealPressY();
public long getRealPressTime();
public boolean isRealPressed();
public boolean isRealP... |
package com.beimi.web.service.repository.jpa;
import java.util.List;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import com.beimi.web.model.RoleAuth;
public abstract interface RoleAuthRepository
extends JpaRepository<RoleAuth, String>
{
... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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... |
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package rocks.poopjournal.todont.Fragments;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.wid... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.