text stringlengths 7 995k |
|---|
/*
* Copyright 2012-2019 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... |
package com.lilithsthrone.game.combat;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map.Entry;
import com.lilithsthrone.game.character.GameCharacter;
import com.lilithsthrone.game.character.attributes.Attribute;
i... |
package com.example.android.pets.data;
import android.content.ContentResolver;
import android.net.Uri;
import android.provider.BaseColumns;
public final class PetContract {
public static final String CONTENT_AUTHORITY = "com.example.android.pets";
public static final Uri BASE_CONTENT_URI = Uri.parse("content... |
/*
* Copyright (c) 2010-2015 Evolveum
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
package io.jaylim.compiler.ast.pojos.expressions.primaries.interfaces;
import io.jaylim.compiler.ast.pojos.ParseTree;
/**
* @author Jisung Lim <iejisung@gmail.com>
*/
public interface LfArrayLfPrimary extends ArrayPrimary {
} |
package org.vaadin.addon.leaflet;
import org.vaadin.addon.leaflet.client.AbstractLeafletVectorState;
import org.vaadin.addon.leaflet.client.LeafletMarkerClientRpc;
import org.vaadin.addon.leaflet.client.PopupState;
import org.vaadin.addon.leaflet.jsonmodels.VectorStyle;
public abstract class AbstractLeafletVector ext... |
/*
* 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 ... |
/*
* Copyright 2011 Licel LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/*
* Copyright 2016 Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
package seedu.address.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.commands.CommandTestUtil.INVALID_MODULE_CODE_DESC;
import static seedu.address.logic.commands.CommandTestUtil.VALID_MODULE_CODE_DESC;
import static seedu.address.logic... |
package sexybeast.tutorial_island.sections;
import org.dreambot.api.methods.container.impl.bank.Bank;
import org.dreambot.api.methods.dialogues.Dialogues;
import org.dreambot.api.methods.interactive.GameObjects;
import org.dreambot.api.methods.map.Tile;
import org.dreambot.api.methods.tabs.Tab;
import org.dreambot.api... |
package com.hughisaacs2.cordova.plugins.androidlivewallpaperplugin;
import android.annotation.TargetApi;
import android.service.dreams.DreamService;
import android.webkit.WebView;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Handler;
import android.ser... |
package com.mypurecloud.sdk.v2.api.request;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mypurecloud.sdk.v2.ApiException;
import com.mypurecloud.sdk.v2.ApiClient;
import com.mypurecloud.sdk.v2.ApiRequest;
import com.mypurecloud.sdk.v2.ApiRequestBuil... |
package application.dao;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import application.*;
public class SallesDAO extends DAO<Salles> {
public SallesDAO(Connection conn) {
super(conn);
// TODO Auto-generated constructor stub
}
@Override
public boolean create(Salle... |
/*
* Copyright 2019 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
package io.proleap.vb6.ast.statements;
import java.io.File;
import org.junit.Test;
import io.proleap.vb6.runner.VbParseTestRunner;
import io.proleap.vb6.runner.impl.VbParseTestRunnerImpl;
public class TimeTest {
@Test
public void test() throws Exception {
final File inputFile = new File("src/test/resources/io/p... |
package com.milchundeier.gulimall.member.dao;
import com.milchundeier.gulimall.member.entity.MemberStatisticsInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 会员统计信息
*
* @author Eagle
* @email lzyphil@gmail.com
* @date 2021-06-16 22:26:15
*/
... |
package io.muserver;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Map;
import static io.netty.handler.codec.http.HttpVersion.HTTP_1_... |
package com.str;
import org.junit.Test;
import static org.junit.Assert.*;
public class MyAtoiTest {
@Test
public void myAtoi() {
MyAtoi obj = new MyAtoi();
assertEquals(obj.myAtoi("+1"), 1);
assertEquals(obj.myAtoi("42"), 42);
assertEquals(obj.myAtoi(".42"), 0);
asser... |
/*
* Copyright 2018 Roberto Leinardi.
*
* 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... |
/*
* Copyright (C) 2011 The Guava 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 agreed ... |
package ru.desiolab.bookshelf.controller;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import ru.desiolab.bookshelf.error.A... |
package com.bolyartech.forge.server.module;
import com.bolyartech.forge.server.route.Route;
import java.util.List;
/**
* Module that contains web pages, endpoints or other route handlers
* Modules are the main building block of a site/system
*/
public interface HttpModule {
/**
* In this method modules ... |
/*
* Copyright 2014 LinkedIn 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 i... |
package com.laegler.openbanking.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import j... |
/*
* Copyright 2019 lambdaprime
*
* 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 com.sjtu.yifei.test_module1;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import com.sjtu.yifei.annotation.Route;
import com.sjtu.yifei.route.RouteService;
import com.sjtu.yifei.route.Routerfit;
@R... |
/*
* Copyright 2015-2020 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... |
/* Copyright 2008 - 2017 Hochschule Offenburg
* For a list of authors see README.md
* This software of HSOAutonomy is released under MIT License (see LICENSE).
*/
package hso.autonomy.agent.communication.perception.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.... |
package pl.codecouple;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class EmailConsumerApplication {
public static void main(String[] args) {
SpringApplication.run(EmailConsumerApplication.class, args);
}
} |
package com.krazy.kcfw.common.beanvalidator;
/**
* 默认Bean验证组
* @author krazy
*/
public interface DefaultGroup {
} |
package com.interview;
import java.util.Arrays;
/**
* 算法
*/
public class Lesson7_4 {
public static void main(String[] args) {
// 二分法查找
int[] binaryNums = {1, 6, 15, 18, 27, 50};
int findValue = 27;
int binaryResult = binarySearch(binaryNums, 0, binaryNums.length - 1, findValue);
... |
package org.isotope.jfp.framework.cache.redis.master;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.isotope.jfp.framework.support.IJedisSupport;
import org.isotope.jfp.framework.utils.EmptyHelper;
import org.slf4j.Logger;
import org... |
/*
* MIT License
*
* Copyright (c) 2021 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... |
package com.release.base.constance;
/**
* @author Mr.release
* @create 2019/3/22
* @Describe
*/
public interface BConstants {
/**
* 网络请求的状态码,用来更新界面
*/
int STATE_SUCCESS = 0;
int STATE_ERROR = 1;
int STATE_LOADING = 2;
int STATE_EMPTY = 3;
String HAS_NETWORK_KEY = "has_network";
... |
/*
* Copyright 2018-2020 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 "lice... |
/*
* 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 logic;
import java.awt.Color;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
impor... |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... |
package com.example.climb.fragments;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.climb.R;
public class NewLocationFragment extends Fragment {
public NewLocationFragment() {
... |
package ru.job4j.list;
import java.util.ArrayList;
import java.util.List;
public class ConvertList2Array {
public int[][] toArray(List<Integer> list, int rows) {
int arraySize = list.size();
int cells = arraySize / rows;
if (arraySize % rows != 0) {
cells++;
}
i... |
package io.github.shadowmanos.movieseeker;
import reactor.core.publisher.Flux;
public abstract class MovieSeeker {
public abstract Flux<MovieResult> findMoviesByTitle(String title, int page);
} |
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
package com.highdeveloper.jelper;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
*
* @author carlos.silva
*/
public class ClassType {
public static final Set<Class> PRIMITIVE_CLASSES = new HashSet<Class>();
public static final Set<Cl... |
package lightbase.app;
public class ConsoleWriter {
private static boolean caret = false ;
protected static void uncaret()
{
caret=false ;
}
protected static void log(String log) {
if(caret)
{
System.out.println(log);
System.out.print("> ");
caret = true ;
}
else
{
if(log.equals(""))
{
... |
package com.wooyoung85.shoppingmallrestapi.configs;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import javax.validation.constraints... |
/*
* This file is part of ToolFactory JVM driver.
*
* Hosted at: https://github.com/toolfactory/jvm-driver
*
* --
*
* The MIT License (MIT)
*
* Copyright (c) 2019-2021 Luke Hutchison, Roberto Gentili
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa... |
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
package com.twilio.rest.sync.v1;
import com.twilio.base.Fetcher;
import com.twilio.exception.ApiConnectionException;
import com.twilio.exception.ApiException;
import com.twilio.exception.RestException;
... |
/*
* 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... |
/*
* 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 controller;
import service.facade.AuthorityFacade;
import service.facade.UserFacade;
import domain.User;
import app.service.mail.MailService;
import app.service.UserService;
import controller.dto.ManagedUserDTO;
import controller.dto.UserDTO;
import controller.util.HeaderUtil;
import controller.util.Page;
impo... |
package hawkeye.game.mother2.games;
import hawkeye.game.model.ScriptIndexEntry;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Value;
@Value
@AllArgsConstructor
public class Mother2ScriptIndexEntry extends ScriptIndexEntry {
public enum IndexEntryType {
NPC_1("NPC"),
NPC_2("... |
/*
* 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 ma... |
package com.carlospinan.algorithmictoolbox.week5;
import java.util.*;
public class LCS3 {
private static int lcs3(int[] a, int[] b, int[] c) {
//Write your code here
return Math.min(Math.min(a.length, b.length), c.length);
}
public static void main(String[] args) {
Scanner scanne... |
package nam.model.interactor;
import java.io.Serializable;
import java.util.Collection;
import javax.enterprise.context.ApplicationScoped;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.Validator;
import javax.faces.validator.ValidatorException;
import ... |
package com.kally.recipesapp.view.category;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import androidx.annotati... |
// Copyright (c) 2003-2013, Jodd Team (jodd.org). All Rights Reserved.
package jodd.proxetta.data;
public abstract class Abstra {
public void foo() {
}
} |
/*
* 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 not ... |
package lista03;
import java.util.Random;
public class Main {
public static void main(String[] args) {
//Declaracao das variaveis
Random rnd = new Random();
long result = 1;
System.out.println("Calculo de Fatorial entre numeros de 1 e 20\n");
//Sorteio de um numero entre 1 e 20
int n1 = rnd.nextIn... |
package betterquesting.commands.admin;
import betterquesting.api.questing.IQuest;
import betterquesting.api.questing.IQuestLine;
import betterquesting.api.questing.IQuestLineEntry;
import betterquesting.api2.storage.DBEntry;
import betterquesting.commands.QuestCommandBase;
import betterquesting.network.handlers.NetQue... |
package GameOfLife;// Finish all of the FINISH ME's
// This is the only file
// see https://bitstorm.org/gameoflife/
// for more about Conway's Game of Life
// FINISH ME
// MY NAME IS XXXX XXXXX
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class GameOfLife extends JFrame implements A... |
/**
* Copyright 2013 Lukas Nalezenec
*
* 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... |
package com.maven.entity;
import java.io.Serializable;
public class AgentItemInfo implements Serializable {
private static final long serialVersionUID = 1L;
/** 主键. */
private Integer lsh;
/** 企业编码. */
private String enterprisecode;
/** 品牌编码. */
private String brandcode;
/** 栏目图标地址. */
private String ic... |
package com.basic.manager.web.controller.system;
import java.util.List;
import com.basic.manager.system.domain.SysPost;
import com.basic.manager.system.service.ISysPostService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... |
/*
* Copyright (C) 2014.
*
* BaasBox - info@baasbox.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
/**
* 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... |
package database;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
import org.mapdb.BTreeKeySerializer;
import org.mapdb.DB;
import com.google.common.primitives.UnsignedBytes;
import qora.block.Block;
import qora.transaction.Transaction;
public class TransactionParentMap extends DbMap<byte... |
/*
* Copyright 2002-2019 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... |
package iamutkarshtiwari.github.io.ananas.editimage.adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.List;
import androidx.annotation.NonNull;
import androidx.recyclerview.widge... |
package com.hedera.services.bdd.suites.file;
/*-
*
* Hedera Services Test Clients
*
* Copyright (C) 2018 - 2021 Hedera Hashgraph, 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 Licen... |
/**
* Copyright (C) 2009-2017 Lightbend Inc. <http://www.lightbend.com>
*/
package jdocs.tutorial_4;
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.testkit.javadsl.TestKit;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.assert... |
/*******************************************************************************
*
* Copyright FUJITSU LIMITED 2016
*
* Creation Date: 18.11.15 16:44
*
*******************************************************************************/
package org.oscm.paginator;
import java.util.Set;
public interface Pagination... |
/* Copyright (c) 2019 Phil Malone. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted (subject to the limitations in the disclaimer below) provided that
* the following conditions are met:
*
* Redistributions of source code must retain the abo... |
package zone.dragon.dropwizard.lifecycle;
import io.dropwizard.lifecycle.JettyManaged;
import org.eclipse.jetty.server.Server;
import org.glassfish.hk2.api.ServiceLocator;
import zone.dragon.dropwizard.ComponentActivator;
import javax.inject.Inject;
/**
* Activates {@link InjectableLifeCycle}, {@link InjectableLife... |
// Copyright 2018 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 2021 Open Raven Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
/*
* Copyright 2010-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* 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 uk.gov.dwp.queue.triage.core.jms.activemq.spring;
import org.junit.Test;
import org.springframework.beans.factory.config.RuntimeBeanReference;
import org.springframework.beans.factory.support.AbstractBeanDefinition;
import uk.gov.dwp.queue.triage.core.jms.FailedMessageListener;
import uk.gov.dwp.queue.triage.c... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distribute... |
package ca.bc.gov.educ.api.batchgraduation.model;
import java.util.Date;
import lombok.Data;
@Data
public class BaseModel {
private String createUser;
private Date createDate;
private String updateUser;
private Date updateDate;
} |
package mekanism.common.network;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.Supplier;
import mekanism.common.MekanismLang;
import mekanism.common.PacketHandler;
import mekanism.common.block.attribute.Attribute;
import mekanism.common.block.attribute.AttributeGui... |
//package vip.mate.message.service;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.cloud.stream.annotation.StreamListener;
//import org.springframework.messaging.Message;
//import org.springframework.messaging.handler.annotation.Payload;
//import org.springframework.messaging.support.ErrorMessage;
... |
package seedu.address.logic.commands.appointment;
import static java.util.Objects.requireNonNull;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static seedu.address.logic.commands.CommandTestUtil.VALID_END_TIME_FIRST;
import static seedu.address.logic.commands.CommandTestUtil.VALID_END_TIME_SECON... |
package com.jeesuite.common.guid;
import java.util.UUID;
import org.apache.commons.lang3.StringUtils;
public class GUID {
private static final String LINE_THROUGH = "-";
private static TimestampGUIDGenarator genarator = new TimestampGUIDGenarator(9999);
private static SnowflakeGenerator snowflakeGenerator = ne... |
/*
* code https://github.com/mohsen-mahmoudi/excel-object-mapping
*/
package io.github.ifris.kernel.excel.internal.mapper.mohsen_mahmoudi;
import java.util.Date;
/**
* @author Mohsen.Mahmoudi
*/
public class Model2 {
private String fistName;
private String lastName;
private Integer age;
private Date birthdat... |
package org.baifei.modules.monitor.domain;
import java.util.HashMap;
import java.util.Map;
public class RedisInfo {
private static Map<String, String> map = new HashMap<>();
static {
map.put("redis_version", "Redis 服务器版本");
map.put("redis_git_sha1", "Git SHA1");
map.put("redis_git_dirty", "Git dirty flag");... |
package nl.andrewl.railsignalapi.model;
/**
* A cardinal direction, useful for some components.
*/
public enum Direction {
NORTH,
SOUTH,
EAST,
WEST,
NORTH_WEST,
NORTH_EAST,
SOUTH_WEST,
SOUTH_EAST;
public Direction opposite() {
return switch (this) {
case NORTH -> SOUTH;
case SOUTH -> NORTH;
case... |
package net.canarymod.api.entity.vehicle;
/**
* FurnaceMinecart wrapper
*
* @author Jason (darkdiplomat)
*/
public interface FurnaceMinecart extends Minecart {
/**
* Gets the fuel level of the FurnaceMinecart
*
* @return fuel level
*/
int getFuelLevel();
/**
* Sets the fuel l... |
/*
* Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.javafx.scene.control.skin;
import java.util.Locale;
import javafx.beans.InvalidationL... |
package org.eclipse.dataspaceconnector.ion.spi;
import org.eclipse.dataspaceconnector.ion.model.did.resolution.DidDocument;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
import java.util.List;
/**
* A DID store is intended to persistently save DIDs (or rather: {@link DidDocument} objects) ... |
package de.csw.ontomaven;
import org.apache.maven.plugin.logging.Log;
import org.semanticweb.owlapi.reasoner.ReasonerProgressMonitor;
public class LogProgressMonitor implements ReasonerProgressMonitor {
private Log log;
private int lastPercentage;
public LogProgressMonitor( Log log ) {
this.log = log;
}
@... |
/*
* Copyright 2016-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
*
* Unles... |
package com.zhangyfvir.jarticle.userservice.controller;
import com.zhangyfvir.jarticle.common.entity.Result;
import com.zhangyfvir.jarticle.userservice.components.JwtUtils;
import com.zhangyfvir.jarticle.userservice.entity.AuthData;
import com.zhangyfvir.jarticle.userservice.entity.User;
import com.zhangyfvir.jarticle... |
/*
* 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... |
//----------------------------------------------------
// The following code was generated by CUP v0.11b 20160615 (GIT 4ac7450)
//----------------------------------------------------
package org.compi2.codigo3d.parser;
/** CUP generated class containing symbol constants. */
public class sym {
/* terminals */
publ... |
/*
* Copyright 2009 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 vn.moet.moetmail.mail;
public abstract class BodyPart implements Part {
private String serverExtra;
private Multipart parent;
@Override
public String getServerExtra() {
return serverExtra;
}
@Override
public void setServerExtra(String serverExtra) {
this.serverExt... |
package com.padcmyanmar.hello_android_padc;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
... |
/*
* 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 ... |
/* First created by JCasGen Fri Nov 08 15:24:17 MST 2013 */
package gov.va.vinci.leo.types;
/*
* #%L
* Leo Core
* %%
* Copyright (C) 2010 - 2014 Department of Veterans Affairs
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.