text
stringlengths
7
995k
class Test { Wrapper foo() { return new Wrapper((o) -> { return 0; }); } public class Wrapper { private final Comparable<String> value; public Wrapper(Comparable<String> value) { this.value = value; } public Comparable<String> getValue() { ...
/** * Copyright (c) 2017 Dell Inc., or its subsidiaries. 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 */ pac...
/* ### * IP: GHIDRA * * 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 writin...
package com.example.android.miwok; import android.content.Context; import android.graphics.Color; import android.media.AudioManager; import android.media.MediaPlayer; import android.support.v4.content.ContextCompat; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; imp...
package codingChallenges.abstraction; public interface EmployeeService { void printDetails(Employee emp); void calculateTax(double salary); }
package eapli.base.app.smm.console.presentation.gestaomonitorizacao; import eapli.base.smm.application.MonitorizacaoController; import eapli.framework.presentation.console.AbstractUI; import eapli.framework.util.Console; public class SMMServerUI extends AbstractUI { private final MonitorizacaoController co...
package com.parkinfo.service.taskManage; import com.parkinfo.common.Result; import com.parkinfo.request.taskManage.AddPersonalWorkPlanRequest; import com.parkinfo.request.taskManage.AddSpecialTaskRequest; import com.parkinfo.request.taskManage.QuerySpecialTaskRequest; import com.parkinfo.request.taskManage.SetTaskExe...
//,temp,sample_5994.java,2,8,temp,sample_4477.java,2,9 //,3 public class xxx { protected static boolean deletePath(PathDeletionContext context) throws IOException { context.enablePathForCleanup(); if (LOG.isDebugEnabled()) { log.info("trying to delete"); } } };
package com.supwisdom.spreadsheet.mapper.validation.validator.workbook; import com.supwisdom.spreadsheet.mapper.model.core.Workbook; import com.supwisdom.spreadsheet.mapper.model.meta.WorkbookMeta; import java.util.Set; /** * 工作簿校验器 * Created by hanwen on 4/26/16. */ public interface WorkbookValidator { /** ...
/* * Copyright (c) 2017, 2020 Cadenza United Kingdom Limited * * 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.taixue.xiaoming.bot.api.listener.dispatcher.user; import com.taixue.xiaoming.bot.api.user.ConsoleXiaomingUser; import com.taixue.xiaoming.bot.api.user.GroupXiaomingUser; import com.taixue.xiaoming.bot.util.ArgumentUtil; public interface ConsoleDispatcherUser extends DispatcherUser, GroupXiaomingUser, Cons...
package org.docshare.test; import java.util.HashMap; import junit.framework.TestCase; import org.docshare.log.Log; import org.docshare.mvc.Config; import org.docshare.orm.ColumnDesc; import org.docshare.orm.DBHelper; import org.docshare.orm.DBTool; import org.docshare.orm.Model; import com.alibaba.fastjson.JSON; p...
/* * 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.dianping.cat.report.alert.app; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable; import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationE...
/* * Copyright 2021 Google LLC. 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 applica...
/* * Copyright 2015 Skymind,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 l...
/* Copyright (c) 2015, Alcatel-Lucent Inc 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 condi...
package fr.mrcubee.hungergames.step; public class StepUtil { private static String longToString(long number) { if (number > -1 && number < 10) return "0" + number; return Long.toString(number); } public static String secondToString(long seconds) { long s = seconds; ...
/* * 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 cufy.util; import org.junit.Assert; import org.junit.Test; import java.util.List; @SuppressWarnings("ALL") public class ArraysTest { @Test public void all() { char[] chars = "Sulaiman".toCharArray(); Assert.assertEquals("X should be missing", 3, Arrays.all(chars, 'm', 'a', 'S', 'X', 'n')); Assert.as...
package net.joelinn.quartz; import org.quartz.PersistJobDataAfterExecution; /** * Joe Linn * 7/22/2014 */ @PersistJobDataAfterExecution public class TestJobPersist extends TestJob{ }
package com.d.lib.orm.greendao.db; import android.content.Context; import com.d.lib.orm.greendao.dao.BookDao; import com.d.lib.orm.greendao.dao.DaoMaster; import com.d.lib.orm.greendao.dao.DaoSession; import org.greenrobot.greendao.identityscope.IdentityScopeType; /** * AppDB * Created by D on 2017/7/25. */ publ...
package org.ici; /** * Created by phongvt on 06/05/2019. */ public class Comunication { public static void Version(){ System.out.println("Version:1.0.5");} public static void SayHello() { System.out.println("Hello world"); } public void SayHello(String str) { System.out.println("Hello...
/* *AVISO LEGAL © Copyright *Este programa esta protegido por la ley de derechos de autor. *La reproduccion o distribucion ilicita de este programa o de cualquiera de *sus partes esta penado por la ley con severas sanciones civiles y penales, *y seran objeto de todas las sanciones legales que correspondan. *Su conteni...
/* * 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...
/* * Copyright 2018-2022 adorsys GmbH & Co KG * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License as published * by the Free Software Foundation, either version 3 of the License, or (at * your option) any later version. This progra...
package fr.xephi.authme.listener; import org.bukkit.event.Cancellable; import org.bukkit.event.Event; import org.bukkit.event.entity.EntityEvent; import org.bukkit.event.player.PlayerEvent; import java.util.function.Consumer; import static org.mockito.BDDMockito.given; import static org.mockito.Mockito.mock; import ...
package top.niunaijun.blackbox; import android.content.Context; import androidx.test.platform.app.InstrumentationRegistry; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on ...
package com.baomidou.springwind.entity; import java.io.Serializable; import java.util.Date; import com.baomidou.mybatisplus.annotations.TableField; import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableName; /** * * 用户表 * */ @TableName(value = "user") public class ...
package com.biemo.cloud.auth.modular.sso.util; import eu.bitwalker.useragentutils.Browser; import eu.bitwalker.useragentutils.DeviceType; import eu.bitwalker.useragentutils.UserAgent; import javax.servlet.http.HttpServletRequest; /** * 用户代理工具类 * * * @Date 2018/9/27 上午10:47 */ public class UserAgentUtils { ...
/* * Copyright (c) 2009, Anthony Gitter * 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 cond...
/* * Copyright 2015 The Closure Compiler 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...
/* * The MIT License (MIT) * * Copyright (c) 2014-2019 Yegor Bugayenko * * 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 *...
/* * Copyright (C) 2009 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 uk.ac.ucl.eidp.auth.model; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertNull; import org.testng.annotations.AfterClass; import org.testng.annotations.AfterMethod; import org.testng.annotation...
package tools.all.regex; import static tools.all.regex.Regex.ascii; import static tools.all.regex.Regex.chinese; import static tools.all.regex.Regex.codeAndMobile; import static tools.all.regex.Regex.color; import static tools.all.regex.Regex.date; import static tools.all.regex.Regex.decmal; import static tools.all.re...
package Math.Converter; import java.lang.*; import java.util.*; public class Weight { public static double poundToKilogram(double pound) { double result = pound / 2.2046; return result; } public static double poundToOunce(double pound) { double result = pound * 16; retu...
package id.ac.tazkia.akademik.aplikasiakademik.entity; import lombok.Data; import org.hibernate.annotations.GenericGenerator; import org.springframework.format.annotation.DateTimeFormat; import javax.persistence.*; import javax.validation.constraints.NotNull; import java.time.LocalDate; import java.time.LocalDateTime...
package com.github.nightawk.mq.test; import com.github.kristofa.brave.Brave; import com.github.nightawk.core.brave.BraveFactoryBean; import com.github.nightawk.core.util.Codec; import com.github.nightawk.core.util.Sleeper; import com.github.nightawk.mq.kafka.AbstractTracingListener; import com.github.nightawk.mq.kafka...
/* * Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** * <pre> * Request message for DeleteAnnotationSpecSet. * </pre> * * Protobuf type {@code google.cloud.datalabeling.v1beta1.Delete...
/* * MIT License * * Copyright (c) 2022 MASES s.r.l. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, cop...
package org.apache.giraph.graph; import org.apache.giraph.comm.messages.SubgraphMessage; import org.apache.giraph.graph.*; import org.apache.giraph.utils.ExtendedByteArrayDataInput; import org.apache.giraph.utils.ExtendedByteArrayDataOutput; import org.apache.hadoop.io.*; import java.io.IOException; import java.util....
package theHexaghost.cards; import com.megacrit.cardcrawl.actions.AbstractGameAction; import com.megacrit.cardcrawl.characters.AbstractPlayer; import com.megacrit.cardcrawl.monsters.AbstractMonster; import sneckomod.SneckoMod; import theHexaghost.GhostflameHelper; import theHexaghost.HexaMod; import theHexaghost.actio...
package com.github.princesslana.eriscasper.gateway; import com.fasterxml.jackson.databind.ObjectMapper; import com.github.princesslana.eriscasper.BotToken; import com.github.princesslana.eriscasper.data.event.HelloEventData; import com.github.princesslana.eriscasper.data.util.Jackson; import java.io.IOException; impor...
/* Copyright 2007-2010 Selenium committers 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 writin...
package com.po.passwordonline.mapper; import com.po.passwordonline.model.VerifyCode; import org.springframework.stereotype.Component; @Component public interface VerifyCodeMapper { public void insertCode(VerifyCode vc); public VerifyCode findById(int id); public VerifyCode findByIpAndTime(String findIp...
package org.hl7.fhir.common.hapi.validation.support; import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.context.RuntimeResourceDefinition; import ca.uhn.fhir.context.support.IValidationSupport; import ca.uhn.fhir.context.support.ValidationSupportContext; import org.apache.commons.lang3.Validate; import org.hl7...
package com.mambo.rafiki.ui.adapters; import android.content.Context; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.appcompat.widget.PopupMenu; import androidx.databinding.DataBindingUtil; ...
/* * 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 ProjectTVF; import GUI.*; import controllers.*; import entities.*; import java.awt.Image; import java.awt.image.BufferedImage;...
package com.adp.plugin; import org.apache.cordova.*; import org.json.JSONArray; import org.json.JSONException; public class Zebra extends CordovaPlugin { @Override public boolean execute(String action, JSONArray data, CallbackContext callbackContext) throws JSONException { if (action.equals("print")...
/* * 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.eho.fhir.pixm; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootA...
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 云凤蝶空间域名信息 * * @author auto create * @since 1.0, 2018-10-22 16:58:26 */ public class FengdieSpaceDomains extends AlipayObject { private static final long serialVersionUID = 24253299541256227...
package ch.avsar.loggr.web.rest.errors; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.core.annotation.AnnotationUtils; import org.springframework.dao.ConcurrencyFailureException; import org.springframework.http.HttpStatus; import org.springframework.http.Re...
/* * 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 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.intellij.sdk.treeStructureProvider; import com.intellij.ide.projectView.*; import com.intellij.ide.projectView.impl.nodes.PsiFileNode; import...
package com.hujtb.gulimall.product.config; import com.zaxxer.hikari.HikariDataSource; import io.seata.rm.datasource.DataSourceProxy; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties; import org.springframework.context.annotation.Bean...
package ooga.engine.entities.object; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class CoinTest { @Test void leftCollideable() { } @Test void rightCollideable() { } @Test void bottomCollideable() { } @Test void topCollideable() ...
/* * 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.arpablue.treepath.node; import com.arpablue.treepath.TreePath; /** * * @author ASUS */ class TreePath_Pair_Logic exte...
package com.iiqtools.jdp.util; import java.io.Reader; import java.io.StringReader; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import org.eclipse.j...
package net.hockeyapp.android.utils; import android.content.Context; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; import net.hockeyapp.android.Constants; /** * <h3>Description</h3> * * Device helper class. * ...
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ pa...
package com.genersoft.iot.vmp.media.zlm; import java.util.List; import java.util.UUID; import com.alibaba.fastjson.JSONArray; import com.genersoft.iot.vmp.common.StreamInfo; import com.genersoft.iot.vmp.conf.MediaConfig; import com.genersoft.iot.vmp.conf.UserSetup; import com.genersoft.iot.vmp.gb28181.bean.Device; im...
package net.minecraft.client.audio; import java.util.Random; import net.minecraft.client.Minecraft; import net.minecraft.util.ITickable; import net.minecraft.util.MathHelper; import net.minecraft.util.ResourceLocation; public class MusicTicker implements ITickable { private final Random rand = new Random(); private...
package com.fortnight.templates; import br.com.six2six.fixturefactory.Fixture; import br.com.six2six.fixturefactory.Rule; import br.com.six2six.fixturefactory.loader.TemplateLoader; import com.fortnight.domains.Customer; import com.fortnight.domains.Transaction; import com.fortnight.domains.Transfer; public class Tra...
package com.movies; /** * * @author IT676 */ public class Movie { private int id; private String name; private String genre; private int year; public Movie(int id, String name, String genre, int year) { this.id = id; this.name = name; this.genre = genre; ...
package svenhjol.charm.mixin.helper; import com.google.common.collect.Maps; import net.minecraft.advancements.Advancement; import net.minecraft.advancements.AdvancementList; import net.minecraft.resources.ResourceLocation; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; impor...
package com.zsw; import lombok.Cleanup; import lombok.SneakyThrows; import org.apache.tomcat.util.http.fileupload.IOUtils; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URI; import java.net.URL; import java.nio.charset.StandardCharsets; /** * @author ZhangShaowei on 2021/9/23 13:50 ...
package algorithm.bitmanipulation; import java.util.Scanner; public class LonelyInteger { public static class Solution { private static void lonelyInteger(int[] ar) { int result = 101; for (int i : ar) { result = result ^ i; } result = result ^101; System.out.println(result); } publ...
package io.agora.rtc.ss.app.rtcEngine; import android.app.Application; public class AGApplication extends Application { private WorkerThread mWorkerThread; @Override public void onCreate() { super.onCreate(); // Normal app init code... } public synchronized void initWorkerThrea...
// credit: https://0code.blogspot.com/2012/03/magic-square-bluej.html /** * Algorithm 1 : Algorithm 2 : Algorithm 3 : Algorithm 4 : * * 15 8 1 24 17 17 24 1 8 15 9 2 25 18 11 11 18 25 2 9 * 16 14 7 5 23 23 5 7 14 16 3 21 19 12 10 10 12 19 21 3 * 22 20 13...
package coin.rh.developer.lln.cotacaomoedas; import android.util.Log; import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.P...
public class symbolpattern { public static void main(String []args) { int n = 5, mid = n/2 + 1; for(int i = 1; i <= n; i++) { for(int j = 1; j <= n; j++) { if(i == 1 || i == n || i == mid || (j == 1 && i <= mid) || j == n) { System.out.print(...
/* * Copyright (C) 2018 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.android.abhishek.megamovies.viewModel; import android.arch.lifecycle.LiveData; import android.arch.lifecycle.MutableLiveData; import android.arch.lifecycle.ViewModel; import com.android.abhishek.megamovies.model.MovieDetail; import com.android.abhishek.megamovies.network.ApiRepository; public class Movie...
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University // Copyright (c) 2011, 2012 Open Networking Foundation // Copyright (c) 2012, 2013 Big Switch Networks, Inc. // This library was generated by the LoxiGen Compiler. // See the file LICENSE.txt which should have been included in the sour...
package com.nokia.heif; /** * DecoderConfig for AAC data */ public final class AACDecoderConfig extends DecoderConfig { /** * Creates a new AACDecoderConfig to the given HEIF instance * * @param heif The parent HEIF instance for the new object * @param config Byte array containing the config data ...
/* * 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.ctrip.xpipe.redis.meta.server.meta.impl; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; im...
/* * The MIT License (MIT) * * Copyright (c) 2014-2016 Christian Schudt * * 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 ...
package org.kohsuke.stapler.framework.io; import junit.framework.TestCase; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.PrintStream; /** * TODO: make it a real junit test * * @author jglick */ public class WriterOutputStreamTest extends TestCase { ...
package com.atguigu.gulimall.oms.dao; import com.atguigu.gulimall.oms.entity.OrderReturnReasonEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 退货原因 * * @author Jklive * @email Jklive@atguigu.com * @date 2019-08-01 21:30:04 */ @Mapper public inte...
/* * Copyright (c) 2012-2018 The original author or authors * ------------------------------------------------------ * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distributi...
/* * SPDX-License-Identifier: Apache-2.0 * * Copyright 2020-2021 Andres Almiray. * * 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 ...
/** * 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.liscva.framework.core.exception; import com.liscva.framework.core.ThrowStatus; import lombok.Data; import lombok.extern.slf4j.Slf4j; /** * @author 李诗诚 * @date 2020/7/7 12:01 */ @Slf4j @Data public class CoreException extends RuntimeException { private ThrowStatus throwStatus; protected CoreEx...
package ldbc.snb.datagen.generator.dictionary; /** * Private class used to sort countries by their z-order value. */ class PlaceZOrder implements Comparable<PlaceZOrder> { public int id; Integer zValue; PlaceZOrder(int id, int zValue) { this.id = id; this.zValue = zValue; } pub...
package com.edusalguero.rexoubapp.infrastructure.spring.controller; import com.edusalguero.rexoubapp.application.user.*; import io.swagger.annotations.Api; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind....
package wavetech.facelocker.utils; // // Copyright (c) nganluong. All rights reserved. // Licensed under the MIT license. // // nganluong Cognitive Services (formerly Project FaceApi): https://www.nganluong.com/cognitive-services // // nganluong Cognitive Services (formerly Project FaceApi) GitHub: // https://github.c...
package com.portfolio.steff.koinexportfolio.Models; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty...
/* MIT License * * Copyright (c) 2017 Ľubomír Hlavko * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modi...
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
package com.mortgeasy.exception; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.ejb.ApplicationException; /** * Esta exceção não deve ser utilizada. Ela é apenas a classe raiz das demais * exceções. * */ @ApplicationException(rollback = true, inherited = true) publi...
package example.service; import example.repo.Customer600Repository; import org.springframework.stereotype.Service; @Service public class Customer600Service { public Customer600Service(Customer600Repository repo) {} }
/* * Copyright 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
package com.ywc.test; import com.ywc.mgt.processcontrol.base.annotation.FunctionHandlerClass; import com.ywc.mgt.processcontrol.base.annotation.FunctionHandlerMethod; import com.ywc.mgt.processcontrol.base.service.impl.ProcessDispatcher; import org.springframework.stereotype.Service; /** * @author yanwe * createTim...
package cn.itrip.biz.service.itripUserLinkUser; import cn.itrip.beans.pojo.ItripUserLinkUser; import cn.itrip.common.Constants; import cn.itrip.common.EmptyUtils; import cn.itrip.common.Page; import cn.itrip.mapper.itripUserLinkUser.ItripUserLinkUserMapper; import org.springframework.stereotype.Service; import javax.an...
/* * 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 bio.guoda.preston; import org.apache.commons.rdf.api.IRI; import org.junit.Test; import java.io.IOException; import java.io.InputStream; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.Is.is; public class HashGeneratorTikaTLSHTest { private static final String DWCA ...
import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; //https://www.hackerrank.com/challenges/camelcase public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.next(); int count = ...