text
stringlengths
7
995k
/* * Copyright 2017-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Copyright (c) 2020. Vladimir Ulitin, Partners Healthcare and members of Forome Association * * Developed by Vladimir Ulitin and Michael Bouzinier * * 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 cop...
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
package com.planet_ink.coffee_mud.Abilities.Misc; import com.planet_ink.coffee_mud.Abilities.StdAbility; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.p...
package br.com.bandtec.agendadeobjetivos.domain; import com.fasterxml.jackson.annotation.JsonProperty; public class Livro { @JsonProperty private String tema; @JsonProperty private String titulo; public Livro() { } public Livro(String tema, String titulo) { this.tema = tema; this.titulo = titulo; } pu...
package com.twitter.hraven.mapreduce; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.Writer; import java.net.Socket; import java.nio.file.Paths; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import org.apache.commons.logging.Log; import org.apache.commons.l...
package com.github.vazmin.framework.core.httpclient; /** * HttpClient工具抛出的异常 */ public class HttpClientException extends Exception { private static final long serialVersionUID = 5271107847129743931L; private String content; /** * Constructs a HttpClientException with no detail * message. A de...
package org.wms.model.common; import org.wms.model.dao.MaterialDao; import org.wms.model.dao.OrderDao; import org.wms.model.material.Materials; import org.wms.model.order.Orders; /** * Store reference to orders and materials models * * @author Stefano Pessina, Daniele Ciriello * */ public class ModelReference {...
/* * 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...
/* * Copyright (C) 2015 Haruki Hasegawa * * 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...
// Copyright (c) 2003-present, Jodd Team (http://jodd.org) // 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, // th...
/* * 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 models; import javax.persistence.Id; import java.util.Date; /** * @author Maurice van Veen */ public final class VisitTime { @Id private int id; /** id of the user that was logged in */ private int userid; private Date time; public VisitTime(int id, int userid, Date time) { this.id = id; this....
/* Copyright 2010 WebDriver committers Copyright 2010 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 ...
package io.fmc.utils; import android.util.Log; import com.google.android.material.bottomnavigation.BottomNavigationItemView; import com.google.android.material.bottomnavigation.BottomNavigationMenuView; import com.google.android.material.bottomnavigation.BottomNavigationView; import java.lang.reflect.Field; /** * ...
package org.altbeacon.beacon.service.scanner; import android.annotation.TargetApi; import android.bluetooth.BluetoothAdapter; import android.bluetooth.le.BluetoothLeScanner; import android.bluetooth.le.ScanCallback; import android.bluetooth.le.ScanFilter; import android.bluetooth.le.ScanResult; import android.bluetoot...
/* * 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...
package io.github.whimthen.json; import com.intellij.openapi.project.Project; import com.intellij.openapi.wm.ToolWindow; import com.intellij.ui.content.Content; import com.intellij.ui.content.ContentManagerEvent; import com.intellij.ui.content.ContentManagerListener; import io.github.whimthen.kits.JsonKit; import io.g...
package com.xian.mall.coupon.service.impl; import com.xian.mall.coupon.dao.SpuBoundsDao; import com.xian.mall.coupon.entity.SpuBoundsEntity; import com.xian.mall.coupon.service.SpuBoundsService; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.Q...
/* Copyright 2019 Integration Partners 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 (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under the Mulan PSL v1. * You can use this software according to the terms and conditions of the Mulan PSL v1. * You may obtain a copy of Mulan PSL v1 at: * * http://license.coscl.org.cn/MulanPSL * * ...
/* * Copyright 2010-2020 Alfresco Software, Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
package ru.test.engine.themes.fragments; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import an...
package org.koenighotze.jee7hotel.portal; import org.jug.view.View; import org.thymeleaf.TemplateEngine; import javax.inject.Inject; import javax.ws.rs.GET; import javax.ws.rs.Path; /** * @author dschmitz */ @Path("/") public class IndexView { @Inject private TemplateEngine templateEngine; @GET pu...
/* * Copyright 2001-2004 The Apache Software 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...
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 ...
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright 2002-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package com.aranaira.arcanearchives.util; import io.netty.buffer.ByteBuf; import net.minecraft.item.crafting.CraftingManager; import net.minecraft.item.crafting.IRecipe; import net.minecraftforge.fml.common.network.ByteBufUtils; import java.util.UUID; public class ByteUtils { public static void writeUUID (ByteBuf b...
package abi39_0_0.host.exp.exponent.modules.api.screens; import abi39_0_0.com.facebook.react.bridge.Arguments; import abi39_0_0.com.facebook.react.uimanager.events.Event; import abi39_0_0.com.facebook.react.uimanager.events.RCTEventEmitter; public class ScreenAppearEvent extends Event<ScreenAppearEvent> { public s...
package pl.otros.logview.gui.services.jumptocode; import com.github.tomakehurst.wiremock.WireMockServer; import org.apache.commons.configuration.BaseConfiguration; import org.assertj.core.api.Assertions; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotation...
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
package dev.lounge-lizard.fourmIR2000.insect.behaviors; import java.io.Serializable; import java.util.LinkedList; import dev.lounge-lizard.fourmIR2000.insect.Insect; import dev.lounge-lizard.fourmIR2000.world.World; import dev.lounge-lizard.fourmIR2000.world.WorldPoint; public final class BehaviorSentinel extends Be...
package jpaoletti.jpm2.core.test; import jpaoletti.jpm2.core.PMException; import jpaoletti.jpm2.core.model.EntityInstance; import jpaoletti.jpm2.core.model.Operation; import jpaoletti.jpm2.core.model.OperationCondition; /** * * @author jpaoletti */ public class DeleteTestCondition implements OperationCondition { ...
/* * Copyright (c) 2017, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ package com.force.i18n.grammar.impl; import static com.force.i18n.commons.util.setti...
/* * Copyright 2010 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...
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may...
package com.liu.cli.common.support.asynctool.executor.timer; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ThreadFactory; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicLong; /** * 用于解决高并发下System.currentTimeMil...
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2015.0...
package net.osmand.osm.io; import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.UR...
package luozix.start.lambdas.exams.examples.chapter3; import static java.util.stream.Collectors.toSet; import java.util.HashSet; import java.util.List; import java.util.Set; import luozix.start.lambdas.exams.examples.chapter1.Album; import luozix.start.lambdas.exams.examples.chapter1.Track; public class Refactor { ...
package com.rzblog.project.blog.blogwebsite.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.rzblog.common.utils.StringUtils; import com.rzblog.project.blog.blogcontent.mapper.BlogcontentMapper; import com.rzblog.pr...
package com.example.mall.member.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.exam...
package br.com.stone.uri.fragments; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.design.widget.TextInputEditText; import android.support.v4.app.Fragment; import android.util...
package com.qemasoft.alhabibshop.app.controller; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.qemasoft.alhabibshop.app.R; i...
/* * Copyright 2018 NEM * * 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 writi...
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...
/* * Copyright 2016-2021 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 (c) 2019-2021 Team Galacticraft * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
package com.zwt.designPatterns.factory.bean; /** * @Author: zwt * @Description: TODO * @Name: Fish * @Date: 2018/5/8 下午11:03 * @Version: 1.0 */ public class Fish extends Animals { @Override public String desc() { System.out.println("这是一条鱼"); return "这是一条鱼"; } }
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org) * Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@gmail.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 ob...
/* * Copyright 2011 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 darkcube.teamcity.model; public class ProjectIdMapping { private final int id; private final String project; public ProjectIdMapping( int id, String project ) { this.id = id; this.project = project; } public String getProject() { return project; } public i...
package fr.dwaps.shs.util; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.servlet.annotation.WebListener; @WebListener public class AppListener implements ServletContextListener { ...
/** * Copyright: Copyright 2016-2020 JD.COM All Right Reserved * FileName: com.jd.blockchain.utils.http.agent.HttpClientPool * Author: shaozhuguang * Department: 区块链研发部 * Date: 2019/1/14 下午3:20 * Description: */ package com.jd.httpservice.agent; import org.apache.http.*; import org.apache.http.client.HttpReques...
package com.lindar.sergent; import org.apache.commons.rng.UniformRandomProvider; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import java.util.stream.IntStream; public class ListGenerator { private Long randomProviderSeed; private int min; private int max; p...
package com.example.first.lang.utils; import java.io.File; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Random; publ...
/* * The MIT License * * Copyright 2020 Elias. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
// This file is part of CPAchecker, // a tool for configurable software verification: // https://cpachecker.sosy-lab.org // // SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org> // // SPDX-License-Identifier: Apache-2.0 package org.sosy_lab.cpachecker.core.algorithm.mpv; import java.io.PrintStrea...
package seedu.address.model.password; import static seedu.address.testutil.Assert.assertThrows; import org.junit.jupiter.api.Test; public class PasswordModifiedAtTest { @Test public void constructor_null_throwsNullPointerException() { assertThrows(NullPointerException.class, () -> new PasswordModifie...
package com.project.careerscrew.dto; import com.project.careerscrew.enums.ApplicationStatus; import lombok.Data; import javax.persistence.EnumType; import javax.persistence.Enumerated; import java.time.LocalDateTime; @Data public class ResumeRequest { private String fullName; private String email; privat...
package com.appmetr.hercules.metadata; import java.lang.reflect.Method; public class EntityListenerMetadata { private Class entityListenerClass; private Object entityListener; private Method preLoadMethod; private Method postLoadMethod; private Method prePersistMethod; private Method postPers...
/* * Copyright 2016 Hippo Seven * * 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 2019 xuelf. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
package club.zhcs.agent; import org.beetl.ext.nutz.BeetlViewMaker; import org.nutz.integration.shiro.ShiroSessionProvider; import org.nutz.ioc.loader.annotation.Inject; import org.nutz.mvc.annotation.At; import org.nutz.mvc.annotation.By; import org.nutz.mvc.annotation.ChainBy; import org.nutz.mvc.annotation.Fail; imp...
/* * Copyright (c) 2016, Liu Dong * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list of conditions an...
package co.nstant.in.cbor.examples; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.InputStream; import org.junit.Assert; import org.junit.Test; import co.nstant.in.cbor.CborDecoder; import co.nstant.in.cbor.CborEncoder; import co.nstant.in.cbor.CborException; import co.nsta...
package com.lilithsthrone.game.dialogue; /** * @since 0.1.89 * @version 0.2.11 * @author Innoxia */ public enum DialogueFlagValue { quickTrade, stormTextUpdateRequired, hasSnowedThisWinter, // Essence reactions: jinxedClothingDiscovered, essencePostCombatDiscovered, essenceOrgasmDiscovered, essenceBo...
/* * * Copyright 2012-2014 Eurocommercial Properties NV * * * 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...
/** * @author ramzijabali, date 02/12/19, 10Am - 11Am * @purpose asks for three names and puts them in alphabetical order */ import java.util.Scanner; public class Lab06a_Num7 { public static void main(String[] args) { String name1, name2, name3, namesIn...
package com.coderhouse.session.seven.controller; import com.coderhouse.session.seven.business.CalculatorService; import com.coderhouse.session.seven.business.exceptions.InvalidMathematicalOperationResultException; import com.coderhouse.session.seven.business.exceptions.MathematicalOperationNotSupportedException; impor...
/* * Copyright (c) 2015-2020, Virgil Security, Inc. * * Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com> * * 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) R...
package Exceptions; public class UtenteNonEsistenteException extends Exception { private static final long serialVersionUID = 1L; //Parameterless Constructor public UtenteNonEsistenteException() {} //Constructor that accepts a message public UtenteNonEsistenteException(String message) { supe...
/* * 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 under t...
/* * Licensed to Crate.io GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you may not use this f...
package mat.server; import java.io.IOException; import java.math.BigDecimal; import java.sql.SQLException; import java.sql.Timestamp; import java.text.ParseException; import java.text.SimpleDateFormat; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.C...
// -------------------------------------------------------------- // postgre_java_read.java // // Jan/24/2011 // /* String data=request.getParameter ("nmax"); int nmax = Integer.parseInt (data); */ // -------------------------------------------------------------- import java.io.IOException; import java.io.PrintWr...
/* * Copyright (c) 2002-2019 "Neo4j," * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * 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....
/* * Copyright 2020, OpenTelemetry 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...
package com.wgl.gulimall.coupon.service; import com.baomidou.mybatisplus.extension.service.IService; import com.wgl.common.utils.PageUtils; import com.wgl.gulimall.coupon.entity.SeckillSkuNoticeEntity; import java.util.Map; /** * 秒杀商品通知订阅 * * @author wangguoli * @email wangguoli@gmail.com * @date 2020-11-23 14:...
package me.oveln.util; import org.bukkit.ChatColor; import org.bukkit.entity.Player; public class Chat { public static String t(String text) { return ChatColor.translateAlternateColorCodes('&',text); } public static void Sendstrings(Player player , String[] strings) { for (String i :strin...
package com.pacoapp.paco.sensors.android; import java.util.List; import org.joda.time.DateTime; import org.joda.time.format.DateTimeFormat; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.pacoapp.paco.UserPreferences; import com.pacoapp.paco.model.Event; import com.pacoapp.paco.model.EventUtil; i...
/* * Copyright ConsenSys AG. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing...
/* * 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.thoughts.on.java.model; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import org.apache.log4j.Logger; import org.junit.After; import org.junit.Before; import org.junit.Test; public class TestAssociation { Logger log = Logger...
/* * Copyright (C) 2019 Baidu, Inc. All Rights Reserved. */ package com.kevin.delegationadapter.sample.pro.missfresh; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import a...
package com.payneteasy.superfly.security.authentication; import com.payneteasy.superfly.api.SSOUser; import com.payneteasy.superfly.security.TwoStepAuthenticationProcessingFilter; /** * Authentication implementation which is actually used to transport SSOUser * only. * This is used to store SSOUser temporarily in ...
package generic; import org.junit.Before; import org.junit.Test; import java.util.Iterator; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.junit.Assert.*; /** * SimpleListTest. * * @author Ihor Zhytchenko (igor.zhytchenko@gmail.com) * @version $1$ ...
package org.jetbrains.research.kotlinrminer.cli.decomposition; import org.jetbrains.research.kotlinrminer.cli.diff.CodeRange; import org.jetbrains.research.kotlinrminer.cli.uml.UMLType; import java.util.List; /** * Wrapper for function types in Kotlin. * The examples of function types: * (Int) -> String * (Int, ...
package com.github.icebear67.craftpp.manager; import com.github.icebear67.craftpp.CraftPP; import com.github.icebear67.craftpp.api.machine.AbstractMachine; import com.github.icebear67.craftpp.data.Metadata; import com.github.icebear67.craftpp.util.Log; import lombok.Getter; import org.bukkit.Location; import java.uti...
package com.asset.contracts; import com.asset.states.AssetState; import net.corda.core.contracts.ContractState; import net.corda.core.identity.CordaX500Name; import net.corda.core.identity.Party; import net.corda.testing.core.TestIdentity; import org.junit.Test; import static junit.framework.TestCase.assertEquals; im...
/* * 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 org.opengis.cite.pipelineml10; import java.text.MessageFormat; import java.util.ResourceBundle; /** * Utility class for retrieving and formatting localized error messages that * describe failed assertions. */ public class ErrorMessage { private static final String BASE_NAME = "org.opengis....
package com.iniesta.cuber.manager.puzzles; import java.util.Random; import com.iniesta.cuber.manager.CuberException; import com.iniesta.cuber.manager.Scramble; import com.iniesta.cuber.scramble.PuzzlePrinterManager; import javafx.scene.image.Image; import puzzle.PyraminxPuzzle; public class Pyraminx implements MyPu...
package io.dropwizard.migrations; import net.jcip.annotations.NotThreadSafe; import net.sourceforge.argparse4j.inf.Namespace; import org.jdbi.v3.core.Handle; import org.jdbi.v3.core.Jdbi; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import java.uti...
/* * Copyright 2014-2017 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...
/* * Hello. */ package foo; /** * Simple. * @since 1.0 */ public final class InstanceMethodRef { /** * Start. Check fails in this method. */ private void start() { Collections.singletonList("1") .forEach(this::doSomething); } /** * Method to be referenced. *...
package mybatis.frame.injector; import lombok.extern.slf4j.Slf4j; import mybatis.frame.comment.TableInfo; import org.apache.commons.lang3.StringUtils; import org.apache.ibatis.builder.MapperBuilderAssistant; import org.apache.ibatis.executor.keygen.KeyGenerator; import org.apache.ibatis.executor.keygen.NoKeyGenerator...
package ru.itmo.wm4.form.validator; import org.springframework.stereotype.Component; import org.springframework.validation.Errors; import org.springframework.validation.Validator; import ru.itmo.wm4.form.UserCredentials; import ru.itmo.wm4.service.UserService; @Component public class UserCredentialsRegisterValidator ...