text stringlengths 7 995k |
|---|
package jun.prospring5.ch6;
public class Main {
public static void main(String[] args) {
}
} |
/*
* 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.joker17.sql.dump.core.hanlder.impl;
import com.joker17.sql.dump.model.TableStructureModel;
import com.joker17.sql.dump.support.StringUtils;
import java.util.List;
public class MysqlDumpWriteHandler extends BaseWriteHandler {
public MysqlDumpWriteHandler() {
super(new TableStructureModel("--... |
package com.didichuxing.doraemonkit.kit.logInfo;
import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.Log;
import android.vie... |
package cn.pangm.beijingbus.utils;
import de.fhpotsdam.unfolding.geo.Location;
/**
* Created by pangm on 6/3/15.
*/
public class LocReformer {
static double pi = 3.14159265358979324;
// // Krasovsky 1940 // // a = 6378245.0, 1/f = 298.3 // b = a * (1 - f) // ee = (a^2 - b^2) / a^2;
static double a = 6378... |
package com.sinfeeloo.inventory;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.En... |
/*
* 版权所有:杭州火图科技有限公司
* 地址:浙江省杭州市滨江区西兴街道阡陌路智慧E谷B幢4楼
*
* (c) Copyright Hangzhou Hot Technology Co., Ltd.
* Floor 4,Block B,Wisdom E Valley,Qianmo Road,Binjiang District
* 2013-2016. All rights reserved.
*/
package com.huotu.hotcms.widget.entity;
import com.huotu.hotcms.service.Auditable;
import com.huotu.hotcms.... |
// Copyright 2017 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 dao;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annot... |
/*
*
* Copyright 2016 Netflix, 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 ap... |
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
package com.commercetools.api.models.message;
import java.time.*;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.*;
import io.vrap.rmf.base.client.utils.Generated;
import org.apache.commo... |
package cn.ztuo.bitrade.entity;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.ztuo.bitrade.constant.CommonStatus;
import cn.ztuo.bitrade.constant.SysAdvertiseLocation;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import or... |
package com.amxc.project.Utils;
import android.app.Activity;
import android.net.Uri;
import android.widget.ImageView;
import com.amxc.project.R;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.lzy.imagepicker.loader.ImageLoader;
import java.io.File;
public class ... |
/**
* StatePatternDemo
*/
public class StatePatternDemo {
public static void main(String[] args) {
Context context = new Context();
StartState startState = new StartState();
startState.doAction(context);
System.out.println(context.getState().toString());
StopState stopS... |
//==============================================================================
//
// Copyright (c) 2016-
// Authors:
// * Steffen Maercker <maercker@tcs.inf.tu-dresden.de> (TU Dresden)
// * Joachim Klein <klein@tcs.inf.tu-dresden.de> (TU Dresden)
//
//----------------------------------------------------------------... |
package com.jgsu.controller.backecd;
import com.github.pagehelper.PageInfo;
import com.jgsu.common.Const;
import com.jgsu.common.ResponseCode;
import com.jgsu.common.ServerResponse;
import com.jgsu.pojo.Idea;
import com.jgsu.pojo.UserInfo;
import com.jgsu.service.IIdeaService;
import com.jgsu.service.IUserInfoService;... |
package org.flowable.common.rest.exception;
import org.flowable.engine.common.api.FlowableIllegalArgumentException;
import org.flowable.engine.common.api.FlowableObjectNotFoundException;
import org.flowable.engine.common.api.FlowableTaskAlreadyClaimedException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... |
package im.actor.images.sources;
import android.graphics.Bitmap;
import im.actor.images.common.ImageLoadException;
import im.actor.images.common.ImageMetadata;
import im.actor.images.common.ReuseResult;
/**
* Source of image
*/
public abstract class ImageSource {
private ImageMetadata imageMetadata;
/**
... |
package mage.cards.b;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import mage.MageInt;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.costs.common.TapTargetCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.mana.AddManaOfAnyColorEff... |
package com.ankushgrover.contest;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class C03 {
public static void main(String[] args) throws ParseException {
String date = "2004-12-29";
System.out.println(dayOfYear(date))... |
/*
* Copyright (c) 2007, intarsys consulting GmbH
*
* 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 and the f... |
package org.squiddev.plethora.api.method;
import com.google.common.util.concurrent.ListenableFuture;
import dan200.computercraft.api.lua.ILuaContext;
import dan200.computercraft.api.lua.ILuaTask;
import dan200.computercraft.api.lua.LuaException;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
... |
/**
* Copyright 2012-2020 Hippo B.V. (http://www.onehippo.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 re... |
package logging;
public class Logger {
// save state if logger is enabled
private static boolean isLoggerEnabled = true;
public static void setLoggerEnabled(boolean enable) {
isLoggerEnabled = enable;
}
public static boolean getLoggerIsEnabled() {
return isLoggerEnabled;
}
public static void print(Str... |
/**
* 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 minpq;
import java.util.*;
class Test {
public static void main(String[] args) {
System.out.println("Start minpq testing...");
//ExtrinsicMinPQ<String> pq = new DoubleMapMinPQ<>();
//ExtrinsicMinPQ<String> pq = new UnsortedArrayMinPQ<>();
//ExtrinsicMinPQ<String> pq = new ... |
package ${basePackage}.context;
import javax.servlet.ServletContext;
import com.beef.dataorigin.web.context.DataOriginWebContext;
import com.salama.service.clouddata.core.AppContext;
import com.salama.service.clouddata.core.AppServiceContext;
public class MyDataOriginWebContext extends DataOriginWebContext {
@Over... |
package com.hearthsim.card.basic.spell;
import com.hearthsim.card.spellcard.SpellDamageTargetableCard;
public class ArcaneShot extends SpellDamageTargetableCard {
public ArcaneShot() {
super();
}
@Deprecated
public ArcaneShot(boolean hasBeenUsed) {
this();
this.hasBeenUsed = ... |
/**
* Copyright (c) 2016-2019 人人开源 All rights reserved.
*
* https://www.renren.io
*
* 版权所有,侵权必究!
*/
package cn.kaciner.common.utils;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
im... |
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved.
/**
* Generic DAO.
*/
package jodd.db.oom.dao; |
package br.com.biot.integracaopagarmeapi.modulos.jwt.utils;
import br.com.biot.integracaopagarmeapi.config.exception.ValidacaoException;
import io.jsonwebtoken.Claims;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class JwtCampoUtil {
public static String getCampoId(Claims claims) {
try {
r... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.iothub.v2018_04_01;
import java.util.List;
impor... |
package ImmutableClasses;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
private static Map<Integer, Location> locations = new HashMap<Integer, Location>();
public static void main(String[] args) {
// Change the program to allow players to type full word... |
package kr.pe.elex.examples;
import lombok.Data;
@Data
public class Copyright {
private int year = 2021;
private String holder = "Elex";
} |
package edu.neu.madcourse.mod7;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.EditText;
import edu.neu.madcourse.mod7.mod7.R;
publ... |
/*
* This file was automatically generated by EvoSuite
* Sun Nov 08 03:42:49 GMT 2020
*/
package com.soops.CEN4010.JMCA.JParser;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.soops.CEN... |
package org.pageseeder.flint.solr.index;
import org.pageseeder.flint.content.Content;
import org.pageseeder.flint.content.ContentFetcher;
import org.pageseeder.flint.indexing.IndexJob;
public class SolrContentFetcher implements ContentFetcher {
public SolrContentFetcher() {
// TODO Auto-generated constructor s... |
package vpackages;
import android.content.IntentFilter;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Handler;
import android.text.style.ReplacementSpan;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.wi... |
package odms.GUITest2;
import javafx.event.ActionEvent;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.input.KeyCode;
import odms.App;
import odms.TestUtils.AppControllerMocker;
import odms.TestUtils.CommonTestMethods;
import odms.bridge.*;
import odms.commons.exception.... |
/*
* Copyright 2019-2020 Exactpro (Exactpro Systems Limited)
*
* 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... |
package com.fasterxml.jackson.databind.introspect;
import java.lang.annotation.Annotation;
import java.lang.reflect.*;
import java.util.*;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.cfg.MapperConfig;
import com.fasterxml.jackson.databind.type.TypeBindings;
import com.fasterx... |
/*
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package goodman.javax.lang.model;
import goodman.java.util.Collections;
import goodman.java.util.Set;
... |
package com.roberto.cotaeasy.config;
import com.roberto.cotaeasy.aop.logging.LoggingAspect;
import io.github.jhipster.config.JHipsterConstants;
import org.springframework.context.annotation.*;
import org.springframework.core.env.Environment;
@Configuration
@EnableAspectJAutoProxy
public class LoggingAspectConfigura... |
package com.ethan.auth.handler;
import com.ethan.auth.vo.AuthResponseVO;
import com.ethan.context.constant.ResponseEnum;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.security.access.AccessDeniedException;
imp... |
package com.avaje.ebean.config.dbplatform;
/**
* Used to support DB specific syntax for DDL generation.
*/
public class DbDdlSyntax {
private boolean renderIndexForFkey = true;
private boolean inlinePrimaryKeyConstraint = false;
private boolean addOneToOneUniqueContraint = false;
private int maxConstrain... |
package com.jagex.runescape;
import java.io.*;
import java.net.Socket;
import java.util.zip.CRC32;
import java.util.zip.GZIPInputStream;
import com.jagex.runescape.collection.CacheableQueue;
import com.jagex.runescape.collection.DoubleEndedQueue;
import com.jagex.runescape.sign.signlink;
public final class OnDemandF... |
package com.example.musicplayerdome.abstractclass;
import com.example.musicplayerdome.base.BasePresenter;
import com.example.musicplayerdome.main.bean.RecommendedVideoBean;
import com.example.musicplayerdome.search.bean.SimiSingerBean;
import com.example.musicplayerdome.search.bean.VideoUrlBean;
import com.example.mus... |
package org.com.allen.enhance.basic.algorithm.base.array;
/**
* @author allen.wu
* @since 2020-03-11 11:10
*/
public class LeetCode11 {
public static void main(String[] args) {
int[] arr = {1, 8, 6, 2, 5, 4, 8, 3, 7};
maxArea(arr);
}
public static void maxArea(int[] arr) {
int ... |
/* ************************************************************************
LEBAH PORTAL FRAMEWORK, http://lebah.sf.net
Copyright (C) 2007 Shamsul Bahrin
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for mo... |
/**
* 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 (c) 2018 CA. All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package com.ca.apim.gateway.cagatewayimport;
import com.ca.apim.gateway.cagatewayimport.config.GatewayImportConfig;
import com.ca.apim.gatewa... |
/**
* Copyright (c) 2011, University of Konstanz, Distributed Systems Group 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 no... |
/**
* 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... |
/*
* 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.system.management.task.models.enums;
public enum Priority {
HIGH, MEDIUM, LOW;
@Override
public String toString() {
switch (this) {
case HIGH:
return "High";
case MEDIUM:
return "Medium";
case LOW:
retu... |
package com.milelu.common.filter;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import javax.servlet.ReadListener;
import javax.servlet.ServletInputStream;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequ... |
/*
* 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 2016 Red Hat, Inc. and/or its affiliates
* and other 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 License at
*
* http://www.apach... |
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.smpp;
import java.net.URISyntaxException;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.apache.camel.spi.EndpointUriFactory;
/**
... |
/*
* 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... |
package asteroids;
import java.awt.Point;
import java.awt.Polygon;
public class Polygon2D extends Polygon {
public int xCenter, yCenter;
public Polygon2D() { // Empty constructor
// TODO Auto-generated constructor stub
}
public Polygon2D(int[] xpoints, int[] ypoints, int npoints) {
super(xpoints, ypoints, ... |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
package org.firstinspires.ftc.teamcode.drive.opmode;
import com.acmerobotics.dashboard.FtcDashboard;
import com.acmerobotics.dashboard.config.Config;
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry;
import com.acmerobotics.roadrunner.geometry.Pose2d;
import com.qualcomm.robotcore.eventloop.opmode.Autonom... |
package com.github.cla9.excel.reader.sheet;
/**
* The type Merged area.
*/
public class MergedArea {
private final int leftTopX;
private final int leftTopY;
private final int rightBottomX;
private final int rightBottomY;
private String header;
/**
* Instantiates a new Merged area.
... |
/*
* 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 com.gestionqcm.qcm.entities;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax... |
/*
* Copyright 2005 Joe Walker
*
* 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 groupAssignment2;
import java.awt.EventQueue;
public class SinkTheDotComApp {
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable()
{
public void run()
{
try
{
new GameFrame();
} catch (Exception e)
{
e.printStackTrace();
}
}
});
}
... |
/*
*
* This file is part of aEventos, licensed under the MIT License.
*
* Copyright (c) Ars3ne
* Copyright (c) contributors
*
* 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 ... |
package at.spg;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpengerspitalApplication {
public static void main(String[] args) {
SpringApplication.run(SpengerspitalApplication.class, args);
}
} |
/**
* Copyright (C) 2015 Fernando Cejas 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... |
/*
* 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 Changes.impl;
import Changes.ChangesPackage;
import Changes.OperationArgument;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
/**
* <!-- begin-user-do... |
package tool;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import java.io.IOException;
import java.io.InputStream;
public class MybatisTools {
private static SqlSe... |
package com.clx4399.gulimall.member.config;
import com.clx4399.gulimall.member.intercept.LoginUserInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import... |
/*
* #%L
* ImageJ software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2014 - 2018 ImageJ developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of s... |
package com.neu.itproductmanagement.exception;
public class StudentException extends Exception {
public StudentException(String message) {
super(message);
}
public StudentException(String message,Throwable cause) {
super(cause);
}
} |
/**
* 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 2015-present Open Networking Foundation
*
* 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 appli... |
package scratchlib.objects.fixed.forms;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import org.junit.jupiter.api.Test;
import scratchlib.objects.ScratchReferenceTable;
import scratchlib.objects.fixed.collections.ScratchObjectArray;
import scratchlib.objects.f... |
package com.github.achuzhmarov.tutorial.service.util;
import com.github.achuzhmarov.tutorial.model.Customer;
import com.github.achuzhmarov.tutorial.model.Product;
import org.springframework.stereotype.Component;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.C... |
/*
* Copyright (C) 2016 Dominik Schadow, dominikschadow@gmail.com
*
* This file is part of the Application Intrusion Detection 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
... |
package geocoder;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import java.util.ArrayList;
import org.junit.Test;
import model.GoogleGeocoderResponse;
public class MapzenAutocompleteTest {
@Test
public void respons... |
/*
* 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.eaw1805.data.model.battles.field.log.entries;
/**
* Log entry that represents a melee attack.
* @author fragkakis
*
*/
public class MeleeAttackLogEntry extends HalfRoundLogEntry {
private final int attackerBrigadeId;
private final int targetBrigadeId;
private final int casualties;
private static f... |
package il.org.spartan.testing;
import org.jetbrains.annotations.*;
/** An unchecked exception that indicates an incorrect setup of the testing
* system
* @author Itay Maman <imaman@cs> Jul 5, 2007 */
public class IllegalSetting extends RuntimeException {
private static final long serialVersionUID = 0x378F5462572... |
package com.xinonix.retrofhir.service;
import com.xinonix.hl7.fhir.stu3.Bundle;
import com.xinonix.hl7.fhir.stu3.ImmunizationRecommendation;
import java.util.Map;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.PATCH;
import retrofit2.... |
package Algorithm.LinkList;
import Lib.Base.ListNode;
import Lib.Util;
import java.util.Stack;
/**
* Created by Defias on 2017/10/7.
反转链表 II
https://leetcode-cn.com/problems/reverse-linked-list-ii/
反转从位置 m 到 n 的链表。请使用一趟扫描完成反转
说明:
1 ≤ m ≤ n ≤ 链表长度
示例:
输入: 1->2->3->4->5->NULL, m = 2, n = 4
输出: 1->4->3->2->... |
package com.gulimall.order.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.utils.PageUtils;
import com.gulimall.order.entity.RefundInfoEntity;
import java.util.Map;
/**
* 退款信息
*
* @author zhangfeng
* @email 908980328@qq.com
* @date 2020-04-18 13:28:02
*/
public i... |
package com.sleepy.file.img.so.so_gallery.generated;
import com.sleepy.file.img.so.so_gallery.SoGallery;
import com.speedment.common.annotation.GeneratedCode;
import com.speedment.runtime.config.identifier.TableIdentifier;
import com.speedment.runtime.core.manager.Manager;
import com.speedment.runtime.field.Field;
im... |
/*
* Copyright (C) 2017 Miles Talmey.
* Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
*/
package com.emarte.regurgitator.core;
import org.w3c.dom.Element;
import java.util.Set;
import static com.emarte.regurgitator.core.CoreConfigConstants.SOURCE;
import static com.e... |
/*
* 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 org.ohdsi.webapi;
import com.odysseusinc.arachne.commons.config.flyway.ApplicationContextAwareSpringJdbcMigrationResolver;
import javax.sql.DataSource;
import org.flywaydb.core.Flyway;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.... |
package DOGST;
import java.util.*;
public class AnsTree implements Comparable<AnsTree>{
public int root;
public Set<Integer> terminal;
public ArrayList<TreeEdge> edge; //record tree edge
public double weight;
AnsTree() {
this.terminal = new HashSet<Integer>();
edge = new ArrayList<TreeEdge>();
}
pub... |
package com.bmj.greader.ui.module.repo.adapter;
import android.app.Activity;
import android.widget.ImageView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import java.util.List;
import com.bmj.greader.R;
import com.bmj.greader.common.wrapper.ImageLoader... |
package us.ihmc.simulationconstructionset.gui;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.MediaTracker;
import java.awt.Toolkit;
import java.net.URL;
import javax.swing.JPanel;
import javax.swing.JWindow;
public class ... |
/*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* 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... |
/**
* My Point
*
* @author Aaron-Qiu
*
*/
package Shape;
import java.awt.Graphics;
import java.awt.Point;
import java.io.Serializable;
public class MyPoint implements Serializable {
private int x;
private int y;
public static final void switchPoints(MyPoint p1, MyPoint p2) {
MyPoint temp;
temp = p1;
... |
/*
* 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 (C) 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.