text
stringlengths
7
1.01M
package replacemethod.good; public class ProductPriceCalculator { private double price; private int quantity; public ProductPriceCalculator(Product product) { this.price = product.getPrice(); this.quantity = product.getQuantity(); } public double calculatePrice(){ double result = 0; // calculo...
package com.integral.forgottenrelics.items; import java.util.List; import com.integral.forgottenrelics.Main; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecr...
/* * 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) 2015 Mesosphere, 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 o...
package io.protostuff.generator; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.function.Function; import org.stringtemplate.v4.AttributeRenderer; /** * Base class for extension providers. * * @author Kostiantyn Shchepanovskyi */ public class AbstractExtensionProvid...
package org.imzdong.study.stone.design.poor.model.entity; /** * @description: * @author: Winter * @time: 2020/4/18 */ public class VirtualWalletTransactionEntity { }
package se.emilsjolander.stickylistheaders; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.AdapterView; import android.widget.Toast; /** * @author Emil Sjölander */ public class TestAct...
package apollo.gui.detailviewers.sequencealigner.filters; import apollo.datamodel.SeqFeatureI; public class BaseFilter<T> implements Filter<T>{ private boolean val; public BaseFilter() { val = true; } public BaseFilter(boolean v) { val = v; } public boolean keep(T f) { return val; ...
// Copyright 2016 Google 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 by applicable law...
package uk.gov.hmcts.reform.civil.service; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.ArgumentCaptor; import org.mockito.ArgumentMatchers; import org.mockito.Captor; import org.mockito.InjectMocks; import org.mockito.Mock; import org.springframework.boot.test.context...
/* * ****************************************************************************** * Copyright 2014-2016 Spectra Logic Corporation. 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 i...
package webtest; import org.junit.Test; import org.w3c.dom.Node; import com.gargoylesoftware.htmlunit.html.*; import com.gargoylesoftware.htmlunit.*; import java.util.*; import org.w3c.dom.NamedNodeMap; import java.util.ArrayList; import junit.framework.TestCase; /** // Generated Using HTMLUnitGenerator Url myUrl ...
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
// ============================================================================ // // Copyright (C) 2006-2018 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt // // You should have receiv...
/* * 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...
/******************************************************************************* * Copyright (c) 2003-2016 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved. *******************************************************************************/ p...
package com.github.alexcojocaru.mojo.elasticsearch.v2; import java.util.List; import java.util.stream.Collectors; import org.apache.commons.exec.CommandLine; import org.apache.commons.lang3.StringUtils; import com.github.alexcojocaru.mojo.elasticsearch.v2.step.InstanceSetupSequence; import com.github.alexcojocaru.mo...
/* * Copyright 2016 Adobe Systems Incorporated * * 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 a...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
package frc.robot.subsystems; import com.ctre.phoenix.motorcontrol.ControlMode; import com.ctre.phoenix.motorcontrol.can.TalonSRX; import edu.wpi.first.wpilibj.DigitalInput; import edu.wpi.first.wpilibj.command.Subsystem; import frc.lib.util.Utils; import frc.robot.Robot; import frc.robot.commands.cargosubsystem.Move...
package mage.cards.s; import java.util.UUID; import mage.MageInt; import mage.abilities.TriggeredAbilityImpl; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.effects.common.GainLifeEffect; import mage.abilities.effects.common.continuous.BoostS...
package com.builtbroken.mc.core.content.resources.items; import com.builtbroken.mc.core.References; import com.builtbroken.mc.core.content.resources.DefinedGenItems; import com.builtbroken.mc.core.content.resources.GenMaterial; import com.builtbroken.mc.lib.helper.LanguageUtility; import cpw.mods.fml.relauncher.Side; ...
package com.sunmi.innerprinter; import android.content.BroadcastReceiver; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactContext; import com.facebook.react.bridge.ReactContextBaseJavaModule; import com.facebook.react.bridge...
package tw.tii.hackjunction.passengerapp; import android.app.Application; import android.content.Context; import android.content.SharedPreferences; import com.parse.Parse; import com.parse.ParseInstallation; import com.parse.ParsePush; import java.util.Random; /** * Created by ggm on 11/7/15. */ public class Pass...
package mk.ukim.finki.enrolledcourses.web.rest.vm; import ch.qos.logback.classic.Logger; /** * View Model object for storing a Logback logger. */ public class LoggerVM { private String name; private String level; public LoggerVM(Logger logger) { this.name = logger.getName(); this.leve...
package com.qa.ims; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import com.qa.ims.controller.Action; import com.qa.ims.controller.CrudController; import com.qa.ims.controller.CustomerController; import com.qa.ims.controller.ItemController; import com.qa.ims.controller.OrderCont...
package Exercicios1_2; // biblioteca import java.util.Scanner; public class PodeSerTriangulo15 { /* * 1.2.15 Escreva um programa que recebe três inteiros positivos como * argumentos de linha de comando e imprime falso se qualquer um deles * for maior ou igual à soma dos outros dois e verdadeiro ca...
package com.occamlab.te.spi.jaxrs; import java.util.HashSet; import java.util.ServiceLoader; import java.util.Set; import java.util.logging.Level; import java.util.logging.Logger; /** * A registry of executable test suites that implements a discovery and * instantiation mechanism for known TestSuiteContro...
/* * 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 2009 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...
/* * Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (http://h2database.com/html/license.html). * Initial Developer: H2 Group */ package org.gridgain.internal.h2.security; import org.gridgain.internal.h2.message.DbException; import org.gridgain.internal.h2.util.Bits; /** * An...
/* * Copyright 2019 Arcus 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 applicable law or agreed to ...
/** * <p>Company: www.black-shop.cn</p> * * <p>Copyright: Copyright (c) 2018-2050</p> * <p> * black-shop(黑店) 版权所有,并保留所有权利。 */ package cn.blackshop.user.entity; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.Ta...
public boolean copyTo(String targetFilePath) { try { FileInputStream srcFile = new FileInputStream(filePath); FileOutputStream target = new FileOutputStream(targetFilePath); byte[] buff = new byte[1024]; int readed = -1; while ((readed = srcFile.re...
package com.softteco.toolset.push; /** * Created on 7.10.16. * * @author Denis Kuhta * @since JDK1.8 */ public class DeviceDto { public DeviceType type; public String token; public DeviceType getType() { return type; } public void setType(final DeviceType type) { this.type =...
package com.celerapps.celermail.inboxGroup.search.interfaces; import com.celerapps.celermail.BaseView; public interface SearchView extends BaseView<SearchPresenter> { }
package com.giyp.dagger.component; import com.giyp.dagger.module.AppModule; import com.giyp.dagger.module.NetModule; import com.giyp.view.activity.MainActivity; import javax.inject.Singleton; import dagger.Component; /** * Created by brunogabriel on 25/10/16. */ @Singleton @Component(modules = {AppModule.class, ...
/** * Copyright (C) 2013 – 2016 SLUB Dresden & Avantgarde Labs GmbH (<code@dswarm.org>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
package com.murphy233.mall.mbg.mapper; import com.murphy233.mall.mbg.model.UmsRolePermissionRelation; import com.murphy233.mall.mbg.model.UmsRolePermissionRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsRolePermissionRelationMapper { long countByExample(UmsR...
package nniot.oapn; import com.ociweb.pronghorn.pipe.MessageSchemaDynamic; import com.ociweb.pronghorn.pipe.Pipe; import com.ociweb.pronghorn.pipe.SchemalessPipe; import com.ociweb.pronghorn.stage.PronghornStage; import static com.ociweb.pronghorn.stage.PronghornStage.NONE; import com.ociweb.pronghorn.stage.scheduling...
/* * Copyright (c) 2018 Leonardo Pessoa * https://github.com/lmpessoa/java-services * * 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 t...
/** * Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.integration.tool.portfolio.xml.v1_0.jaxb; import java.math.BigDecimal; import java.util.List; import java.util.Map; import javax.xml.bind.annotation.XmlAccess...
package com.refinedmods.refinedstorageaddons; import com.refinedmods.refinedstorageaddons.item.WirelessCraftingGridItem; import net.minecraftforge.registries.ObjectHolder; public final class RSAddonsItems { @ObjectHolder(RSAddons.ID + ":wireless_crafting_grid") public static final WirelessCraftingGridItem WIR...
package com.gyso.treeview.touch; import android.content.Context; import android.graphics.PointF; import android.view.GestureDetector; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import androidx.dynamicanimation.animation.DynamicAnimation; import androidx.dynamicani...
/** * Copyright (C) 2011-2020 Red Hat, Inc. (https://github.com/Commonjava/indy) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
package systemtests; import static seedu.souschef.commons.core.Messages.MESSAGE_DELETE_RECIPE_USAGE; import static seedu.souschef.logic.commands.DeleteCommand.MESSAGE_DELETE_SUCCESS; import static seedu.souschef.testutil.TestUtil.getRecipe; import seedu.souschef.commons.core.Messages; import seedu.souschef.commons.co...
package io.nuls.crosschain.nuls; import io.nuls.base.protocol.ProtocolGroupManager; import io.nuls.base.protocol.RegisterHelper; import io.nuls.core.core.annotation.Autowired; import io.nuls.core.core.annotation.Component; import io.nuls.core.log.Log; import io.nuls.core.rockdb.service.RocksDBService; import io.nuls.c...
package com.push.server.handler; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; import io.netty.channel.group.ChannelGroup; import io.netty.channel.group.DefaultChannelGroup; import io.netty.handler.codec.http.websocketx.TextWebSocketFrame; import io.netty.util.Attr...
package dev.huhao.samples.ddd.blogservice.domain.contexts.blogcontext.blog; import dev.huhao.samples.ddd.blogservice.domain.contexts.blogcontext.blog.exceptions.NoNeedToPublishException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import java.util.U...
package tk.fmmc.nose.main; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; public class ServerProxy extends CommonProxy { void preInit(FMLPreInitializationEv...
/* * Copyright 2002-2016 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.softtek.truffle.tl; // https://www.graalvm.org/truffle/javadoc/com/oracle/truffle/api/TruffleLanguage.html // TODO actually fill the implementation // What do I need: // - TLContext -> TLContext // - SLLexicalScope -> TLLexicalScope // - SLBuiltinNode -> TLBuiltingNode // - SLLexicalScope -> TLLexicalScop...
/* * 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 2018 NAVER Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
/* * Swagger Petstore * This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters * * The version of the OpenAPI do...
package ve.com.mariomendoza.pokedex; import android.content.Context; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; i...
package io.quarkus.bootstrap; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayLi...
package com.helospark.lightdi.it.plugintest.crudrepository; import com.helospark.lightdi.conditional.ConditionalAnnotationsExtractor; import com.helospark.lightdi.internal.InternalDi; import com.helospark.lightdi.internal.LightDiPlugin; /** * An example plugin, that uses preconfigureInteralDi to add additional depen...
/** * Autogenerated by Thrift Compiler (0.9.3) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.storm.generated; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; import o...
// Copyright 2017 Google 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 by applicable law...
/* * 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...
/** * OLAT - Online Learning and Training<br> * http://www.olat.org * <p> * Licensed under the Apache License, Version 2.0 (the "License"); <br> * you may not use this file except in compliance with the License.<br> * You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unl...
// This is a generated file. Not intended for manual editing. package org.intellij.erlang.psi.impl; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.lang.ASTNode; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; impor...
/* * @author : Paul Taylor * @author : Eric Farng * * Version @version:$Id: InvalidFrameIdentifierException.java 520 2008-01-01 15:16:38Z paultaylor $ * * MusicTag Copyright (C)2003,2004 * * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser * Genera...
/* * $Id$ * * Copyright (c) 2014, Simsilica, LLC * 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...
package org.radargun.service; import org.infinispan.Cache; import org.infinispan.notifications.Listener; import org.infinispan.notifications.cachelistener.annotation.PartitionStatusChanged; import org.infinispan.notifications.cachelistener.event.PartitionStatusChangedEvent; import org.radargun.traits.TopologyHistory; ...
/** * Created by WenTaoKing on 2019-06-11 * description: */ public class InnerClass { class nonStaticInner{ public void print(){ System.out.println("我是非静态内部类"); } } public static class StaticInner{ public static void print(){ System.out.println("我是静态内部类");...
/* */ package org.apache.batik.css.engine; /* */ /* */ import java.io.IOException; /* */ import java.io.StringReader; /* */ import java.util.ArrayList; /* */ import java.util.Collections; /* */ import java.util.HashSet; /* */ import java.util.LinkedList; /* */ import java.u...
package org.synyx.urlaubsverwaltung.person; import org.slf4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.stereotype.Service; import jav...
/* * Copyright 2014 IS2T. All rights reserved. * Use of this source code is governed by a BSD-style license that can be found at http://www.is2t.com/open-source-bsd-license/. */ package com.is2t.mwt.util; import ej.microui.io.Image; public interface ImageLoader { Image load(String imageName); }
/* * Copyright (c) 2012-2015 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...
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package android.support.design; public final class R { private R() {} public static final class anim { private anim() ...
package com.bmsoft.canteensystem.service; import com.bmsoft.canteensystem.entity.Menu; import com.bmsoft.canteensystem.entity.MenuPropertiesCategory; import com.bmsoft.canteensystem.entity.MenuPropertiesStyle; import java.util.List; /** * 菜品种类Service层 */ public interface MenuPropertiesStyleService { /** ...
package applica._APPNAME_.data.hibernate; import applica.framework.data.Sort; import applica.framework.data.hibernate.HibernateRepository; import applica._APPNAME_.domain.data.RolesRepository; import applica._APPNAME_.domain.model.Role; import org.springframework.stereotype.Repository; import java.util.Arrays; import...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE129_Improper_Validation_of_Array_Index__getParameter_Servlet_array_write_no_check_04.java Label Definition File: CWE129_Improper_Validation_of_Array_Index.label.xml Template File: sources-sinks-04.tmpl.java */ /* * @description * CWE: 129 Improper Validation of Ar...
package com.tts.day3.dealership; public class LightTruck extends Vehicle { // keep in mind that whenever we create classes // we can use them as types public class TransferCase { private int numGears; public void setNumGears(int numGears) { this.numGears = numGears; }...
/** * Copyright (c) 2017-2018, FinancialForce.com, 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, * ...
package com.zjf; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; /** * @author Harry */ @Sprin...
/* * 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 it.imperato.test.ms.model.entities; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Sette...
/* * (C) Copyright IBM Corp. 2019, 2020. * * 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 t...
// Copyright 2020 YugaByte, 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 ...
/* * Copyright (C) 2018 Drake, Inc. https://github.com/liangjingkanji * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
licensed apache software foundation asf contributor license agreements notice file distributed work additional copyright ownership asf licenses file apache license version license file compliance license copy license http apache org licenses license required applicable law agreed writing software distributed license di...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
package org.schema.api.model.thing.intangible.enumeration; import org.schema.api.model.thing.intangible.Class; public class WarrantyScope extends Enumeration { private Class supersededBy;//Notes - Allowed types- [Class, Enumeration, Property] public Class getSupersededBy() { return supersededBy; } public voi...
import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; public class MostCommonWord { public String mostCommonWord(String paragraph, String[] banned) { // can't handle punctuation // StringToke...
/* * Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (http://h2database.com/html/license.html). * Initial Developer: H2 Group */ package org.lealone.db.schema; import java.math.BigInteger; import org.lealone.common.exceptions.DbException; import org.lealone.db.DbObjectType; im...
package net.cogzmc.core.chat.channels; import lombok.Data; import lombok.EqualsAndHashCode; @EqualsAndHashCode(callSuper = true) @Data public final class ChannelException extends Exception { private final String message; }
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.compute.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.j...
package com.teyyihan.gelecekbilimde.Models.RetrofitArticleModel; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class Title { @SerializedName("rendered") @Expose private String rendered; public String getRendered() { return rendered; ...
class A_syn extends Thread{ static long n; static Object obj=new Object(); public void run(){ for(int i=0;i<100000;i++) synchronized(obj) { n++; } } public static void main(String[] args) throws Exception{ A_syn t1=new A_syn(); A_syn t2=new...
package scripting.testcases; import org.junit.After; import org.junit.Test; import com.xceptance.xlt.api.webdriver.XltDriver; import com.xceptance.xlt.api.engine.scripting.AbstractWebDriverScriptTestCase; /** * TODO: Add class description */ public class random extends AbstractWebDriverScriptTestCase { /** ...
/* * Flag.java * --------------------------------- * Copyright (c) 2021 * RESOLVE Software Research Group * School of Computing * Clemson University * All rights reserved. * --------------------------------- * This file is subject to the terms and conditions defined in * file 'LICENSE.txt', which is part of t...
/* * Copyright 1999-2010 Luca Garulli (l.garulli--at--orientechnologies.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 ...
package com.saas.auth.dao; import java.util.List; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Update; import com.saas.auth.vo.TenantStaffRole; @Mapper public interface DAOStaffRole { @S...
/* * 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...
package amino.run.policy.cache.explicitcaching; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNull; import static org.mockito.Mockito.*; import amino.run.common.AppObject; import java.io.Serializable; import java.util.ArrayList; impor...
public interface IFitnessIntructor { public void subscribe(ILead lead); public void unsubscribe(IParticipant participant); public void notifyLead(); public String getName(); public IExercise getExercise() ; public void setExercise(IExercise exercise); void performExercise(); }