text stringlengths 7 1.01M |
|---|
package com.redhat.labs.lodestar.activity.rest.client;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory;
import org.jboss.resteasy.specimpl.MultivaluedMapImpl;
import javax.enterprise.context.ApplicationScoped;
import javax.ws.rs.core.M... |
/*
* Copyright 1999-2011 Alibaba 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 appl... |
package org.pp.controller;
import com.jfinal.config.Routes;
public class DefaultRoutes extends Routes{
@Override
public void config() {
setBaseViewPath("/view/");
// 公共页面和接口
add("/public", PublicController.class);
// 配合HtmlHandler进行模板渲染
add("/html", HtmlController.class);
// 后台首页
add("/admin", Index... |
package leetcode.oo.strings;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
//https://leetcode.com/problems/group-anagrams/
final class GroupAnagrams {
List<List<String>> groupAnagrams(final String[] strs) {
final Map<Map<Character, Integer>, Integer> c... |
package com.kevin.scepter.client.resolve;
/**
* @author: kevin
* @description: double类型处理器
* @updateRemark: 修改内容(每次大改都要写修改内容)
* @date: 2019-07-30 11:00
*/
public class DoubleResolve implements IResolve<Double> {
@Override
public Class<Double> getResolveClass() {
return Double.class;
}
@O... |
package io.github.greyp9.arwo.core.expr;
public abstract class Node {
public abstract String render();
}
|
/*
* Copyright (C) 2016 Andrey Mogilev
*
* 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 ... |
package frc.robot.subsystems;
import java.util.List;
import edu.wpi.first.wpilibj.TimedRobot;
import frc.pathrecognizer.VisionFieldLayoutRecognizer;
import frc.pathrecognizer.VisionPathName;
//import sun.awt.www.content.image.png;
import frc.pathrecognizer.AutonomousPath;
import frc.pathrecognizer.PixyCameraConnector;... |
package com.mtx.system.rpc.api;
import com.baomidou.mybatisplus.plugins.Page;
import com.mtx.common.base.BaseServiceMock;
import com.mtx.system.dao.mapper.SystemLogMapper;
import com.mtx.system.dao.model.SystemLog;
import com.mtx.system.dao.model.SystemLogExample;
import com.mtx.system.dao.vo.SystemLogVo;
import java... |
/*
* Copyright 2018 dc-square and the HiveMQ MQTT Client 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 require... |
// OrthogonalSearch.java
//
// (c) 2006- JEBL development team
//
// based on LGPL code from the Phylogenetic Analysis Library (PAL),
// http://www.cebl.auckland.ac.nz/pal-project/
// which is (c) 1999-2001 PAL Development Core Team
//
// This package may be distributed under the
// terms of the Lesser GNU General ... |
/*
* This file is part of ComputerCraft - http://www.computercraft.info
* Copyright Daniel Ratcliffe, 2011-2019. Do not distribute without permission.
* Send enquiries to dratcliffe@gmail.com
*/
package dan200.computercraft.core.apis.handles;
import com.google.common.base.Preconditions;
import java.io.IOExceptio... |
/**
* Copyright (c) 2016-present, RxJava Contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
/*
* Created by LuaView.
* Copyright (c) 2017, Alibaba Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
package com.taobao.luaview.view.viewpager;
import android... |
package com.material.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.*;
import androidx.annotation.NonNull;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewParent;
/**
... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javafxapplication3;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.Acti... |
/*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: SimpleService.proto
package io.rsocket.rpc.testing.protobuf;
public interface SimpleRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.rsocket.rpc.testing.SimpleRequest)
com.google.protobuf.MessageOrBuilder {
/**
... |
// 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 io.antmedia.licence;
import io.antmedia.datastore.db.types.Licence;
import io.antmedia.settings.ServerSettings;
public interface ILicenceService {
public enum BeanName {
LICENCE_SERVICE("ant.media.licence.service");
private String licenceBeanName;
BeanName(String name) {
this.licenceBe... |
package net.ssehub.exercisesubmitter.protocol.backend;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Test;
import net.ssehub.exercisesubmitter.protocol.TestUtils;
import net.ssehub.studentmgmt.backend_api.ApiClient;
import net.ssehub.studentmgmt.backen... |
/*
* Copyright (c) 2016, grossmann
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions an... |
package com.cn.springflowable.service;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;
/**
* @author chenning
*/
public class CallExternalSystemDelegate implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) {
Sys... |
/*
* 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 io.github.ololx.cranberry.data.modifier.annotation;
import java.lang.annotation.*;
/**
* The interface Final.
*/
@Documented
@Retention(RetentionPolicy.SOURCE)
@Target({
ElementType.PARAMETER,
ElementType.LOCAL_VARIABLE
})
public @interface Final {
}
|
package de.bitbrain.jpersis.util;
public class ConnectionData {
ConnectionData() { }
public String username;
public String password;
public String db;
public String host;
public String port;
}
|
package com.k_beta.android.app.mvp;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import com.k_beta.android.app.mvp.base.MvpPresenter;
import com.k_beta.android.app.mvp.base.MvpView;
import com.k_beta.android.app.mvp.delegate.ActivityMvpDelegate;
... |
package io.ebean.docker.commands;
import java.util.Properties;
public class ElasticConfig extends BaseConfig {
public ElasticConfig(String version, Properties properties) {
super("elastic", 9201, 9200, version);
this.image = "docker.elastic.co/elasticsearch/elasticsearch:" + version;
setProperties(prop... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.qyouti.data;
import java.util.Vector;
import javax.swing.table.AbstractTableModel;
/**
*
* @author jon
*/
public class PageListModel
extends AbstractTableModel
{
ExaminationData exam;
pri... |
// Java implementation of iterative Binary Search
class BinarySearch
{
// Returns index of x if it is present in arr[],
// else return -1
int binarySearch(int arr[], int x)
{
int l = 0, r = arr.length - 1;
while (l <= r)
{
int m = l + (r-l)/2;
... |
package com.exadel.frs.core.trainservice;
import com.exadel.frs.core.trainservice.config.IntegrationTest;
import io.zonky.test.db.AutoConfigureEmbeddedDatabase;
import liquibase.Contexts;
import liquibase.LabelExpression;
import liquibase.Liquibase;
import liquibase.database.DatabaseFactory;
import liquibase.database.... |
/*
* Copyright 2020 LINE Corporation
*
* LINE Corporation licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... |
/*
* 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... |
/*
* 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 n... |
import java.util.*;
public class Solution {
HashMap<Integer, List<List<Integer>>> sumMap;
public List<List<Integer>> pathSum(TreeNode root, int sum) {
if (root == null) {
return new LinkedList<List<Integer>>();
}
sumMap = new HashMap<Integer, List<List<Integer>>>();
List<Integer> path = new Lin... |
/*
* Copyright (c) 2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
package de.uni_stuttgart.vis.vowl.owl2vowl.parser.vowl.property;
import de.uni_stuttgart.vis.vowl.owl2vowl.model.data.VowlData;
import de.uni_stuttgart.vis.vowl.owl2vowl.model.entities.AbstractEntity;
import de.uni_stuttgart.vis.vowl.owl2vowl.model.entities.nodes.classes.VowlClass;
import de.uni_stuttgart.vis.vowl.owl... |
/*
* Copyright (c) 2015, Nordic Semiconductor
* 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, this list of conditi... |
package com.example.howes.myapplication;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.Provider;
import java.security.cert.X509Certificate;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManage... |
/*
* Copyright (C) 2019 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 com.jbm.framework.usage.form;
import com.jbm.framework.usage.paging.PageForm;
import java.io.Serializable;
/**
* 前端请求封装类
*
* @author wesley.zhang
*/
public class JsonRequestBody extends BaseRequsetBody {
/**
* 分页封装类
*/
private PageForm pageForm;
public PageForm getPageForm() {
... |
/*
* (c) Copyright 2018 Palantir Technologies 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 ... |
/*
* Copyright 1999-2011 Alibaba 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 appl... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
/*
* 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 n... |
/*
* Copyright (c) 2016-present The Limitart 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 applicabl... |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2018 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... |
/*
* Copyright 2015-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
package com.example.procare.data;
import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Task implements Serializable, Comparable<Task> {
public static final int FREQUENCY_NONE = 0;
public static final int FREQUENCY_DAILY = 1;
p... |
/* Copyright 2018 The TensorFlow Authors. 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 applicable law or a... |
/*
* Copyright 2015 Johannes Donath <johannesd@torchmind.com>
* and other copyright owners as documented in the project's IP log.
*
* 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
*
* ... |
package com.anybbo;
import com.anybbo.filter.AccessFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.netflix.zuul.filters.discovery.PatternServic... |
package com.lvcoding.mq.header;
import com.rabbitmq.client.*;
import java.io.IOException;
import java.util.*;
public class Consumer2 {
public static final String EXCHANGE_NAME = "header";
public static void main(String[] args) throws Exception {
// 获取mq连接
ConnectionFactory factory = new Con... |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
*
* 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/license... |
package jopenvr;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
/**
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.g... |
package love.wangqi.handler.front;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.codec.http.HttpObjectAggregator;
import io.... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
/*
* Copyright (C) 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 app... |
package Kurama.ComponentSystem.components.constraintGUI;
public interface IVRequestPackGenerator {
public abstract BoundInteractionMessage getValidificationRequestPack(Boundary parent, Boundary boundary, float deltaMoveX, float deltaMoveY);
}
|
package com.x.cms.core.entity.query;
import java.util.List;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import com.x.base.core.bean.NameIdPair;
import com.x.base.core.entity.JpaObject;
import com.x.base.core.utils.ListTools;
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.appcontainers.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Config... |
package it.imperato.test.ms.app;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Compone... |
/*
* Copyright (c) 2018, hiwepy (https://github.com/hiwepy).
*
* 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... |
/*
* Copyright 2004-2010 the Seasar Foundation and the Others.
*
* 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 ... |
package com.hipay.fullservice.core.requests.payment;
import com.hipay.fullservice.core.models.Transaction;
import com.hipay.fullservice.core.requests.AbstractRequest;
import com.hipay.fullservice.core.serialization.AbstractSerializationMapper;
import java.util.Map;
/**
* Created by HiPay on 03/02/16.
*/
public cla... |
package javax0.geci.jamal.util;
import javax0.geci.tools.GeciReflectionTools;
import javax0.jamal.api.BadSyntax;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.stream.Collectors;
/**
* Entity is a field or a method. Stringer ... |
package za.co.entelect.challenge.entities;
import com.google.gson.annotations.SerializedName;
public class BotArguments {
@SerializedName("coreCount")
private int coreCount;
public BotArguments(int coreCount) {
this.coreCount = coreCount;
}
public int getCoreCount() {
return this... |
/*
* Copyright 1999-2011 Alibaba 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 appl... |
package com.vod.common.v5;
import java.util.List;
public class BasePageDetail<T>
{
private int total;
private int rowsPerPage;
private int offset;
private List<T> datas;
@Override
public String toString()
{
return "BasePageDetail [total=" + total + ", rowsPerPage=" + rowsPerPage +... |
package com.morgan.test.attr;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
import com.morgan.lib.util.Logger;
import com.morgan.main.R;
/**
* 用于属性测试的View,因为是使用xml来声明,系统来创建的View, <br/>
* 所以系统会调用第一个构造函数,第一个构造函数会调用第二个构造函数, <br/>
* ... |
package main.tut04;
import com.jogamp.newt.event.KeyEvent;
import com.jogamp.opengl.GL3;
import com.jogamp.opengl.util.GLBuffers;
import main.framework.Framework;
import main.framework.Semantic;
import glm.vec._4.Vec4;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import static com.jogamp.opengl.GL.*;
imp... |
/**
* Copyright(C) 2020 Hangzhou zhaoyunxing92 Technology Co., Ltd. All rights reserved.
*/
package io.github.sunny.cloud.file.controller;
import io.github.sunny.cloud.file.controller.form.AccountForm;
import io.github.sunny.cloud.file.service.AccountService;
import io.github.sunny.cloud.file.service.WechatService;
... |
/*
* 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... |
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkproject_integration_1_0.models;
import com.aliyun.tea.*;
public class CreateEventGroupHeaders extends TeaModel {
@NameInMap("commonHeaders")
public java.util.Map<String, String> commonHeaders;
@NameInMap("x-acs-dingtalk-acc... |
package com.github.wxiaoqi.security.movie.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.wxiaoqi.security.movie.entity.User;
/**
* <p>
* 服务类
* </p>
*
* @author lxr
* @since 2019-06-14
*/
public interface IUserService extends IService<User> {
User verifyUser(User ... |
package ParkTicket;
public class CustomerInfo {
private String date = "";
private int ticketType;
private int ageType;
}
|
package com.niliv.entity;
import java.util.Date;
/**
* 考勤类
* @author Administrator
*
*/
public class Duty {
private int dtID;
private Date dtDate;
private String signinTime;
private String signoutTime;
private String empId; //可以同时提供id和对象属性
private Employee emp;//员工的信息
public Duty() {
super();
}... |
package ui;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextFie... |
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* di... |
/*
* 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 n... |
package org.odk.collect.app.injection;
import android.app.Application;
import android.content.Context;
import android.telephony.SmsManager;
import org.odk.collect.app.dao.FormsDao;
import org.odk.collect.app.dao.InstancesDao;
import org.odk.collect.app.events.RxEventBus;
import org.odk.collect.app.http.CollectServerC... |
package me.ionar.salhack.managers;
import java.io.File;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
import me.ionar.salhack.SalHackMod;
import me.ionar.salhack.main.SalHack;
import me.ionar.salhack.module.Module;
i... |
class Solution {
public void wallsAndGates(int[][] rooms) {
int EMPTY = Integer.MAX_VALUE;
int GATE = 0;
List<int[]> DIRECTIONS = Arrays.asList(
new int[] { 1, 0},
new int[] {-1, 0},
new int[] { 0, 1},
new int[] { 0, -1}
);
... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
package com.c2b.ethWallet.util;
import java.util.regex.Pattern;
/**
* 校验器:利用正则表达式校验邮箱、手机号等
*
* @author zhangchunming
*
*/
public class Validator {
/**
* 正则表达式:验证用户名
*/
public static final String REGEX_USERNAME = "^[a-zA-Z]\\w{5,17}$";
/**
* 正则表达式:验证密码
*/
public static fina... |
package io.vertx.test.codegen.testapi;
import io.vertx.codegen.annotations.VertxGen;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import java.util.List;
/**
* @author <a href="mailto:julien@julienviet.com">Julien Viet</a>
*/
@VertxGen
public interface InterfaceParameterizedByParameterizedTypeArg... |
// Copyright (c) YugaByte, Inc.
package com.yugabyte.yw.commissioner.tasks;
import static com.yugabyte.yw.common.AssertHelper.assertJsonEqual;
import static com.yugabyte.yw.common.ModelFactory.createUniverse;
import static com.yugabyte.yw.models.TaskInfo.State.Failure;
import static com.yugabyte.yw.models.TaskInfo.St... |
/***
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2011 INRIA, France Telecom
* 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. Redistribution... |
package engine.racedetectionengine.wcp.distance;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Stack;
import engine.racedetectionengine.State;
import event.Lock;
import event.Thread;
import event.Variable;
import util.vectorclock.ClockPair;... |
package com.takeoffmediareactnativebitmovinplayer;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.webkit.JavascriptInterface;
import com.bitmovin.analytics.BitmovinAnalyticsConfig;
import com.bitmovin.analytics.bitmovin.player.BitmovinPlayerCollector;
import com.bi... |
package com.hotbitmapgg.bilibili.entity.discover;
import java.util.List;
/**
* Created by hcc on 2016/10/3 15:47
* 100332338@qq.com
* <p>
* 话题中心模型类
*/
public class TopicCenterInfo {
private int code;
private int total;
private int pages;
private List<ListBean> list;
public int getCode() {
... |
/*
* Licensed to the Hipparchus project under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this f... |
/**
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Lice... |
/*
* 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 cc.protea.spreedly;
import cc.protea.util.http.Response;
public class SpreedlyException extends Exception {
private static final long serialVersionUID = 1L;
public Response response = null;
public String errorMessage;
public String errorCode;
public SpreedlyExce... |
package com.lpq.mail.entity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* mail_send_info
* @author
*/
@Data
public class MailSendInfo implements Serializable {
private Integer id;
private Integer userId;
private String subject;
private String from;
private ... |
package com.amazonaws.serverless.sqseventsource.messageprocessor;
import com.amazonaws.services.sqs.model.Message;
/**
* Deserializes an SQS message into the parameterized type.
*
* @param <T> deserialize type.
*/
public interface SQSMessageDeserializer<T> {
/**
* Deserializes the given message into an o... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are su... |
package util.guavatest;
/**
* FileName NPE.java
* @Description TODO
*
* @author hzhuolirong
* 2016年12月23日
*/
public class NPE {
}
|
/*
* This file is part of "lunisolar-magma".
*
* (C) Copyright 2014-2019 Lunisolar (http://lunisolar.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.o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.