text stringlengths 7 995k |
|---|
package com.mysiteforme.admin.util;
/**
* Created by wangl on 2018/1/14.
* todo:计算文件在七牛云存储上的 hash 值
*/
import org.springframework.web.multipart.MultipartFile;
import javax.xml.bind.DatatypeConverter;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
impor... |
package com.example.android.quakereport;
import android.content.AsyncTaskLoader;
import android.content.Context;
import java.util.List;
/**
* Created by swamygangadharpavanvulisetti on 10/11/17.
*/
public class EarthquakeLoader extends AsyncTaskLoader<List<Earthquake>> {
private static final String LOG_TAG =... |
package com.smart.smartchart.widget.hellocharts.view;
import com.smart.smartchart.widget.hellocharts.animation.ChartAnimationListener;
import com.smart.smartchart.widget.hellocharts.computator.ChartComputator;
import com.smart.smartchart.widget.hellocharts.gesture.ChartTouchHandler;
import com.smart.smartchart.widget... |
/*
* MIT License
*
* Copyright (c) 2022 MASES s.r.l.
*
* 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, cop... |
/*
* Copyright 2015 the original author or authors.
* @https://github.com/scouter-project/scouter
*
* 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... |
package br.com.eiasiscon.security.user.endpoint;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.http.Ht... |
package com.redv.com.ESports;
import com.redv.com.ESports.modelo.Calendario;
import com.redv.com.ESports.modelo.Equipo;
import javax.swing.table.AbstractTableModel;
import java.util.ArrayList;
public class TablaClasificacionUsuario extends AbstractTableModel {
private String[] columnas = {"Equipo", "Posición"};
... |
package com.ukefu.webim.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ukefu.util.extra.DataExchangeInterface;
import com.ukefu.webim.service.es.TopicRepository;
import com.ukefu.webim.web.model.Topic;
@Se... |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.base.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Retent... |
package org.v8LogScanner.cmdScanner;
import org.v8LogScanner.cmdAppl.CmdCommand;
public class CmdAddAllEventsToCfg implements CmdCommand {
@Override
public String getTip() {
return "";
}
@Override
public void execute() {
V8LogScannerAppl.instance().logBuilder.buildAllEvents();
... |
package cn.micro.biz.commons.utils;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.apache.logging.log4j.util.Strings;
import org.jsoup.Connection;
import org.jsoup.helper.HttpConnection;
import java.nio.charset.StandardCharsets;
/**
* Http Utils
*
* @author lry
*/
@Slf4j
public cl... |
/*
* Copyright 2018 NAVER Corp.
*
* 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 w... |
package com.sixtyfour.extensions.graphics;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.sixtyfour.elements.commands.Command;
import com.sixtyfour.elements.functions.Function;
import com.sixtyfour.extensions.BasicExtension;
import com.sixtyfour.extensions.graphics.command... |
/*
* 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.sensiblemetrics.api.alpenidos.pattern.cor.model;
import lombok.extern.slf4j.Slf4j;
import java.util.Optional;
@Slf4j
public class ViceGeneralManager extends Leader {
public ViceGeneralManager(final String name) {
super(name);
}
public void handleRequest(final LeaveRequest request) {
... |
package io.github.ntsd.stubby4gay.caching;
import org.ehcache.UserManagedCache;
import org.ehcache.config.builders.ExpiryPolicyBuilder;
import org.ehcache.config.builders.ResourcePoolsBuilder;
import org.ehcache.config.builders.UserManagedCacheBuilder;
import java.time.Duration;
import java.util.concurrent.atomic.At... |
package com.github.jkschoen.jsma.response;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.github.jkschoen.jsma.model.ImageEXIF;
@XmlRootElement
@XmlAccessorType(... |
package io.envoyproxy.controlplane.server;
import java.io.IOException;
import java.net.ServerSocket;
public class Ports {
/**
* Returns a random available port.
*/
public static int getAvailablePort() {
try (ServerSocket s = new ServerSocket(0)) {
return s.getLocalPort();
} catch (IOException... |
package org.functions.Bukkit.Main.functions;
import com.google.common.base.Preconditions;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.functions.Bukkit.Main.Functions;
import java.io.File;
import java.io.IOException;
import java.util.Arrays... |
package com.xxw.platform.module.web.handler;
import com.xxw.platform.module.util.exception.BusinessException;
import com.xxw.platform.module.util.exception.ElasticsearchException;
import com.xxw.platform.module.util.exception.SystemException;
import com.xxw.platform.module.util.rest.Result;
import com.xxw.platform.mod... |
package xeta.library.crypto;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.bouncycastle.crypto.generators.SCrypt;
import xeta.library.hash.Base58;
import java.nio.charset.StandardCharsets;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class Crypto {
private static final String BR... |
/*
* Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THI... |
// This is mutant program.
// Author : ysma
public class slicedGaussian
{
public static double phi( double x )
{
return Math.exp( -x * x / 2 ) / Math.sqrt( 2 * Math.PI );
}
public static double Phi2( double z )
{
if (z < -8.0) {
return 0.0;
}
if (z > 8.... |
package me.mrdaniel.npcs.catalogtypes.optiontype.types;
import java.util.Optional;
import org.spongepowered.api.world.World;
import me.mrdaniel.npcs.catalogtypes.optiontype.OptionType;
import me.mrdaniel.npcs.interfaces.mixin.NPCAble;
import me.mrdaniel.npcs.io.NPCFile;
public class OptionWorld extends OptionType<W... |
package kotlin;
import com.facebook.internal.FacebookRequestErrorClassification;
import kotlin.jvm.JvmField;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@SinceKotlin(version = "1.1")
@Metadata(bv = {1, 0, 2}, d1 = {"\u0000&\n\u0002\u0018\... |
package org.jerry.light4j.member.common.session;
import java.util.List;
import java.util.Map;
import org.jerry.light4j.member.business.member.authority.domain.MemberAuthority;
import org.jerry.light4j.member.business.member.resource.domain.MemberResource;
import org.jerry.light4j.member.business.member.role.domain.Me... |
/*
* Copyright 2010-2020 Redgate Software Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
package com.jd.laf.web.vertx.service;
public class UserService {
} |
package android.support.v4.os;
import android.os.Bundle;
import android.os.Handler;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import android.os.RemoteException;
import android.support.v4.os.IResultReceiver.Stub;
public class ResultReceiver implements Parcelable {
... |
/*
* Copyright 2014 Frakbot (Francesco Pontillo, Sebastiano Poggi)
*
* 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 requi... |
package com.affehund.skiing.common.block;
import com.affehund.skiing.common.tile.AcaciaSkiRackTileEntity;
import com.affehund.skiing.core.init.ModTileEntities;
import net.minecraft.block.BlockState;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.... |
package b.l.b.a.a.b;
import b.l.b.a.b.i;
import com.google.api.client.auth.oauth2.TokenErrorResponse;
public class k extends i {
/* renamed from: h reason: collision with root package name */
public final transient TokenErrorResponse f4714h;
public k(i.a aVar, TokenErrorResponse tokenErrorResponse) {
... |
package org.ekstep.search.actor;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.ekstep.common.Platform;
import org.ekstep.common.dto.Request;
import org.ekstep.common.dto.Response;
import org.ekstep.common.dto.... |
/*
* XML Type: LocationIDType
* Namespace: urn:com.io7m.cardant.inventory:1
* Java type: com.io7m.cardant.protocol.inventory.v1.beans.LocationIDType
*
* Automatically generated - do not modify.
*/
package com.io7m.cardant.protocol.inventory.v1.beans;
import org.apache.xmlbeans.impl.schema.ElementFactory;
import... |
package eu.lightest.delegation.api.util;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
public class NetClientHttpURLConnectionImpl implements INetClient{
public NetClientHt... |
package com.thekingqj;
import java.util.concurrent.CountDownLatch;
public class TestCountDownLatch {
private static CountDownLatch cld = new CountDownLatch(10);
public static void main(String[] args) {
for (int i = 0; i <10; i++) {
Thread t = new Thread(new Runnable() {
public void run() {
try {... |
/*
* Copyright 2010-2020 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
/*
* Copyright 2014 Toxic Bakery
*
* 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 ... |
/*
* 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 (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... |
/*
* Copyright (c) 2002-2018, Mairie de Paris
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright notice
* and the... |
/**
* 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... |
/**
*
* 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"); ... |
package com.example.smarthomes.streampythonservice;
import com.example.smarthomes.streampythonservice.reader.FileProcessor;
import com.example.smarthomes.streampythonservice.stream.StreamTraining;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
i... |
package be.ugent.vopro1.persistence.jdbc.mocks;
import be.ugent.vopro1.bean.PersistentProject;
import be.ugent.vopro1.bean.PersistentTeam;
import be.ugent.vopro1.bean.PersistentUser;
import be.ugent.vopro1.persistence.UserDAO;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.ut... |
/*
* 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.github.sparsick.infra.testing.infratestingdemoapp.database;
import java.util.Objects;
public class Actor {
private String firstName;
private String lastName;
private String role;
public Actor(String firstName, String lastName, String role) {
this.firstName = firstName;
th... |
package io.mykit.fastdfs.bean;
import java.io.Serializable;
/**
* @author binghe
* @version 1.0.0
* @description 上传图片后的返回数据
*/
public class ResourceBean implements Serializable {
private static final long serialVersionUID = -2788538880352897307L;
/**
* 文件的访问路径
*/
private String fileUrl;
/**
* 文件名称
... |
/*******************************************************************************
* Copyright 2011, 2012 Chris Banes.
*
* 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.apac... |
/*
* 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 2021 JanusGraph Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
package com.dilipkrish.weather.dataloader.ghcn;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import java.math.BigDecimal;
@Entity
@Data
@NoArgsConstructor
public class WeatherRecording {
@EmbeddedId
... |
/*
* 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")... |
/*
* Copyright 2002-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... |
/*
* Copyright FUJITSU LIMITED 2017
*/
/**
* Specifies the interface which must be implemented by a PSP integration
* adapter. A PSP integration adapter is required for every payment service
* provider (PSP) that is to be connected to the platform.
* <p>
* Additionally, the package includes the remote interfac... |
package br.com.artemis.poctcc.controller;
import br.com.artemis.poctcc.controller.dto.campanha.CampanhaRequest;
import br.com.artemis.poctcc.repository.CampanhaRepository;
import br.com.artemis.poctcc.repository.model.Campanha;
import br.com.artemis.poctcc.repository.model.Usuario;
import br.com.artemis.poctcc.service... |
/*
* Copyright 2018 Organizations participating in ISAAC, ISAAC's KOMET, and SOLOR development include the
US Veterans Health Administration, OSHERA, and the Health Services Platform Consortium..
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... |
/*
* Copyright (c) 2018. Dan Brown <dan@likethecolor.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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless r... |
package com.zero5nelsonm.lendr.config;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.http.HttpMethod;
import org.springframework.stereotype.Component;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http... |
package com.example.phoenix.mynotesapp;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Handler;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import andro... |
/*The MIT License (MIT)
Copyright (c) 2016-2017 Muhammad Hammad
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.uticodes.payoneerandroidtest.presentation;
import static com.uticodes.payoneerandroidtest.utils.TestLiveDataUtil.getOrAwaitValue;
import androidx.arch.core.executor.testing.InstantTaskExecutorRule;
import androidx.lifecycle.Observer;
import com.uticodes.payoneerandroidtest.common.Scheduler;
import com.u... |
package org.openapitools.model;
import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.jackson.nullable.Json... |
package uk.gov.hmcts.futurehearings.hmi.smoke.notification;
import static io.restassured.RestAssured.given;
import static org.junit.jupiter.api.Assertions.assertEquals;
import uk.gov.hmcts.futurehearings.hmi.Application;
import uk.gov.hmcts.futurehearings.hmi.smoke.SmokeTest;
import io.restassured.response.Response;... |
package ch.ergon.adam.core.prepost;
import ch.ergon.adam.core.helper.FileHelper;
import java.nio.file.Path;
import static org.junit.jupiter.api.Assertions.assertNotNull;
public class PrePostTestBase {
protected Path getRepoBase() {
Path gitFolder = FileHelper.getRepoBase();
assertNotNull(gitFol... |
package net.minecraft.util.datafix.schemas;
import com.mojang.datafixers.DSL;
import com.mojang.datafixers.schemas.Schema;
import com.mojang.datafixers.types.templates.TypeTemplate;
import java.util.Map;
import java.util.function.Supplier;
import net.minecraft.util.datafix.fixes.References;
public class V135 extends ... |
package com.junjunguo.pocketmaps.fragments;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.graphhopper.util.Instruction;
import com.graphhopper.ut... |
package org.hzero.platform.app.service;
import org.hzero.platform.domain.entity.CodeRuleDist;
/**
* <p>
* 编码规则分配Service
* </p>
*
* @author yunxiang.zhou01@hand-china.com 2018/06/13 19:02
*/
public interface CodeRuleDistService {
/**
* 新增和更新编码规则分配
*
* @param tenantId 租户id
* @param codeRu... |
/**
* Copyright (C) 2014-2021 Philip Helger (www.helger.com)
* philip[at]helger[dot]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/LICE... |
package com.machinestalk.stayhome.entities;
import com.google.gson.JsonElement;
import com.machinestalk.android.entities.BaseEntity;
/**
* Created on 1/10/2017.
*/
public class AddEntity extends BaseEntity {
private boolean visible = true;
@Override
public void loadJson( JsonElement jsonElement ) {
... |
/*
* Copyright 2022 ThoughtWorks, 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 agr... |
package studio.baka.neko.nekoessentials.commands;
import studio.baka.neko.nekoessentials.Main;
import studio.baka.neko.nekoessentials.utils.Serializer;
import studio.baka.neko.nekoessentials.utils.Utils;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.TextColor;
import org.bukkit.Offl... |
/*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The Universal Permissive License (UPL), Version 1.0
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of this s... |
package com.philemonworks.selfdiagnose.report;
import com.philemonworks.selfdiagnose.DiagnoseException;
import com.philemonworks.selfdiagnose.DiagnoseUtil;
import com.philemonworks.selfdiagnose.DiagnosticTaskResult;
import com.philemonworks.selfdiagnose.ExecutionContext;
import com.philemonworks.selfdiagnose.check.Che... |
package quickcache.ui;
import static java.util.Objects.requireNonNull;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.TextArea;
import javafx.scene.layout.Region;
import javafx.scene.layout.VBox;
/**
*... |
/*****************************************************************
* 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
* ... |
/*
* Copyright 2011-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
* use this file except in compliance with the License. A copy of the License is
* located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "li... |
/*
* Copyright 2019 ConsenSys AG.
*
* 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... |
package com.experitest.cloud.cli;
import com.experitest.cloud.v2.AccessKeyCloudAuthentication;
import com.experitest.cloud.v2.Cloud;
import com.experitest.cloud.v2.ProxyInformation;
import com.experitest.cloud.v2.pojo.User;
import picocli.CommandLine;
import java.io.File;
import java.io.FileReader;
import java.io.Fil... |
package com.westlake.air.propro.domain.bean.learner;
import lombok.Data;
import java.util.HashMap;
/**
* Created by Nico Wang Ruimin
* Time: 2018-06-19 13:24
*/
@Data
public class FinalResult {
HashMap<String, Double> weightsMap;
ErrorStat finalErrorTable;
ErrorStat summaryErrorTable;
ErrorSt... |
package com.desiremc.core.koth.events;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class KothJoinEvent extends Event {
private static final HandlerList handlers = new HandlerList();
private Player player;
public KothJoinEvent(Player player) {
thi... |
package dev.cheerfun.pixivic.biz.web.reward.po;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstru... |
package com.eshop.ordering.domain.base;
import java.util.List;
import java.util.Objects;
public abstract class ValueObject {
protected abstract List<Object> getEqualityComponents();
@Override
public boolean equals(Object obj) {
if (obj == null || obj.getClass() != this.getClass()) return false;
var ot... |
package com.codesample.leetcode;
class Solution {
public String longestPalindrome(String s) {
int n = s.length();
if (n == 1) {
return s.substring(0, 1);
}
// if dp[i][j] == true -> String between i and j is a palindrom
// if dp[i][j] == false -> not a palindrom... |
package cn.nicenan.mahumall.product.controller;
import java.util.Arrays;
import java.util.Map;
//import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind... |
package org.knowm.xchange.loyalbit;
import java.io.IOException;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.loyalbit.dto.marketdata.LoyalbitOrderBook;
import org.knowm.xchange.loyalbit.dto.marketdata.LoyalbitTicker;
@Path(... |
package org.springframework.test.context.junit4.profile.importresource;
import org.junit.Test;
import org.springframework.test.context.ActiveProfiles;
import static org.junit.Assert.*;
/**
* @since 3.1
*/
@ActiveProfiles("dev")
public class DevProfileAnnotationConfigTests extends DefaultProfileAnnotationConfigTe... |
/*
* Copyright (c) 2018 - 2021, Zaphod Consulting BV, Christine Karman
* This project is free software: you can redistribute it and/or modify it under the terms of
* the Apache License, Version 2.0. You can find a copy of the license at
* http://www.apache.org/licenses/LICENSE-2.0.
*/
package nl.christine.schwart... |
/*
* 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... |
package me.panavtec.cleancontacts.di;
import android.app.Application;
import com.squareup.picasso.Picasso;
import dagger.Module;
import dagger.Provides;
import javax.inject.Singleton;
import me.panavtec.cleancontacts.di.qualifiers.UiThread;
import me.panavtec.cleancontacts.presentation.CleanContactsViewInjector;
impor... |
package org.vcell.imagej.helper;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import org.vcell.imagej.helper.VCellHelper.BasicStackDimensions;
import org.vcell.imagej.helper.VCellHelper.IJVarInfo;
import org.vcell.imagej.helper.VCellHelper.... |
/*
* Copyright 2010-2019 Australian Signals Directorate
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
/*
* Copyright (c) 2016 Uber Technologies, Inc. (hoodie-dev-group@uber.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
*
... |
package io.maksutov.heroes.battlegrounds.user.web.service;
import io.maksutov.heroes.battlegrounds.user.repository.entities.User;
import io.maksutov.heroes.battlegrounds.user.repository.UserRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**... |
/*
* 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 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
package android.support.v4.view;
import android.view.ViewGroup;
class ViewGroupCompatApi21 {
ViewGroupCompatApi21() {
}
public static void setTransitionGroup(ViewGroup group, boolean isTransitionGroup) {
group.setTransitionGroup(isTransitionGroup);
}
public static boolean isTransitionGro... |
package ac.echo;
import ac.echo.classes.Storage;
import ac.echo.commands.BaseCommand;
import ac.echo.commands.impl.AltsCommand;
import ac.echo.commands.impl.EchoCommand;
import ac.echo.commands.impl.FreezeCommand;
import ac.echo.commands.impl.KeyCommand;
import ac.echo.listeners.DisconnectEvent;
import ac.echo.listene... |
/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2014 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... |
package io.httpdoc.objc.fragment;
import io.httpdoc.core.Preference;
import io.httpdoc.core.appender.LineAppender;
import io.httpdoc.core.fragment.Fragment;
import io.httpdoc.objc.type.ObjCClass;
import java.io.IOException;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.TreeSet;
/**
* 协议代码碎片... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.