text
stringlengths
7
995k
/** * 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 closure.space.collabtodo.testsuite; import java.util.ArrayList; import java.util.List; import closure.space.collabtodo.helper.NumberFactory; import closure.space.collabtodo.models.TodoList; /** * To get test data for TodoLists * <p/> * Created by praveen on 8/5/15. */ public class TodoListTest { /**...
package factset.analyticsapi.engines.api; import factset.analyticsapi.engines.ApiException; import factset.analyticsapi.engines.ApiClient; import factset.analyticsapi.engines.ApiResponse; import factset.analyticsapi.engines.Configuration; import factset.analyticsapi.engines.Pair; import javax.ws.rs.core.GenericType; ...
/** * This file is part of Aion-Lightning <aion-lightning.org>. * * Aion-Lightning is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later ver...
/* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of...
package com.palmelf.eoffice.action.admin; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.palmelf.core.command.QueryFilter; import com.palmelf.core.web.action.BaseAction; import com.palmelf.eoffice.model.admin.Car; import com.palmelf.eoffice.service...
package org.redquark.leetcode.challenge; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; class Problem09_RottingOrangesTest { private final Problem09_RottingOranges testObject = new Problem09_RottingOranges(); @Test void testOrangesRotting() { int...
package com.rhino.rv.base; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.recyclerview.widget.GridLayoutManager; import androidx.recyclerview.widget.RecyclerView; import com.rhino.rv.SimpleGridSpan; import java.util.ArrayList; import java.util...
package com.github.danielwegener.logback.kafka.util; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.clients.consumer.KafkaConsumer; import org.apache.kafka.common.serialization.ByteArrayDeserializer; import org.apache.kafka.common.serialization.StringDeserializer; import java.io.IOEx...
// 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.cpa.smg.graphs; import com.google.common.base...
/* * Copyright 2012-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
/* * 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...
/* * Copyright 1999-2017 Alibaba Group Holding 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 applica...
package software.bernie.example.client.renderer.entity; import com.mojang.blaze3d.vertex.PoseStack; import com.mojang.blaze3d.vertex.VertexConsumer; import net.minecraft.client.renderer.MultiBufferSource; import net.minecraft.client.renderer.RenderType; import net.minecraft.client.renderer.entity.EntityRendererProvid...
package com.atlassian.clover.instr.tests; import clover.com.google.common.collect.Sets; import com.atlassian.clover.api.registry.Annotation; import com.atlassian.clover.api.registry.AnnotationValue; import com.atlassian.clover.registry.entities.AnnotationImpl; import com.atlassian.clover.registry.entities.MethodSignat...
/* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the ...
package net.minestom.server.event.player; import net.minestom.server.entity.Player; import net.minestom.server.event.Event; import net.minestom.server.item.ItemStack; /** * Called when a player is finished eating */ public class PlayerEatEvent extends Event { private Player player; private ItemStack foodIt...
/* * 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 com.sjcdigital.sjcedu.robot.model.entities; public class ComplexGestaoEscolar { private String matriculas; private String matriculasTempoIntegral; private String turmas; private String turmasMulti; private String turnosFuncionamento; private String salasDeAula; private String docentes; private String ...
/* =========================================================== * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * * (C) Copyright 2000-2008, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/in...
package org.example.mapper; import org.example.pojo.User; import org.mybatis.spring.support.SqlSessionDaoSupport; import java.util.List; public class UserMapperImpl extends SqlSessionDaoSupport implements UserMapper { @Override public List<User> selectUser() { //模拟事务 addUser(new User(0, "测试11...
package com.kalessil.phpStorm.phpInspectionsEA.inspectors.forEach; import com.intellij.codeInspection.ProblemHighlightType; import com.intellij.codeInspection.ProblemsHolder; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.PsiWhiteSpace; import com.jetbrains.php.l...
/* * 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 ...
/* * #%L * de.metas.adempiere.adempiere.base * %% * Copyright (C) 2015 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the * License, or (at your opt...
package de.tr7zw.changeme.nbtapi; import org.apache.commons.lang.NotImplementedException; import de.tr7zw.changeme.nbtapi.utils.MinecraftVersion; import de.tr7zw.changeme.nbtapi.utils.nmsmappings.ClassWrapper; import de.tr7zw.changeme.nbtapi.utils.nmsmappings.ReflectionMethod; /** * {@link NBTListCompound} implemen...
/* GENERATED SOURCE. DO NOT MODIFY. */ /* * 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 Licens...
package nano.algorithm.nn; import org.apache.commons.math3.analysis.function.Sigmoid; public abstract class ActivationFunctions { public static Neuron.ActivationFunction step() { return (input) -> input >= 0 ? 1 : 0; } public static Neuron.ActivationFunction sgn() { return (input) -> inp...
package uk.gov.hmcts.ccd.endpoint.exceptions; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(value = HttpStatus.BAD_GATEWAY) public class DownstreamIssueException extends RuntimeException { public DownstreamIssueException(final String mes...
package com.cinema.cinemaDTO; import lombok.AllArgsConstructor; import lombok.Data; @Data @AllArgsConstructor public class UserRatingRabbitmq { RabbitmqObject rabbitmqObject; Long movieid; }
/* * Copyright (c) 2014 Jeffrey Bian * * 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, merge, publi...
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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 * * ...
// 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.rbkmoney.mg.event.sink.converter; import com.rbkmoney.damsel.payment_processing.EventPayload; import com.rbkmoney.mg.event.sink.exception.ParseException; import lombok.extern.slf4j.Slf4j; import org.apache.thrift.TDeserializer; import org.apache.thrift.TException; import org.apache.thrift.protocol.TBinaryP...
package com.braf.blog.service; import com.braf.blog.models.Post; import com.braf.blog.repos.PostRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class PostsService { @Autowired PostRepository postRepository; public P...
package seedu.heymatez.logic.commands; import static java.util.Objects.requireNonNull; import static seedu.heymatez.commons.core.Messages.MESSAGE_TASKS_LISTED_OVERVIEW; import seedu.heymatez.model.Model; import seedu.heymatez.model.task.PriorityContainsKeywordPredicate; /** * Represents a FindByPriorityCommand. *...
package servlet2; public class sheck { }
package com.oregonscientific.meep.communicator.sendChatMessage; import junit.framework.AssertionFailedError; import android.test.ActivityInstrumentationTestCase2; import android.widget.AbsListView; import android.widget.EditText; import android.widget.TextView; import com.bitbar.recorder.extensions.ExtSolo; import co...
/* * Copyright 2022 ThoughtWorks, 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 agr...
package springboot.example.repository; import org.springframework.data.repository.CrudRepository; import springboot.example.model.User; import java.util.Optional; public interface UserRepository extends CrudRepository<User, Long> { Optional<User> findByEmail(String email); }
/* * 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 ...
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
package com.kvest.material_design_playground.expanding_list; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.DividerItemDecoration; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.wid...
package stepdefinitions; import cucumber.api.java.en.Given; import cucumber.api.java.en.Then; import cucumber.api.java.en.When; import seng302.Environment; import seng302.command.musical.Midi; import java.util.Arrays; import static org.junit.Assert.assertEquals; /** * Cucumber step definitions for the Midi class. ...
// ============================================================================ // // Copyright (C) 2006-2019 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...
package com.cczyWyc.rpcfx_core.api; import java.util.Arrays; /** * rpc fx request * * @author wangyc */ public class RpcRequest { /** interface name */ private String serviceClass; /** method name */ private String method; /** params */ private Object[] args; /** group */ priva...
package org.hisp.dhis.importexport.action.dxf2; /* * Copyright (c) 2004-2016, University of Oslo * 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...
package com.bjs.bjsapi.controllers; import static org.assertj.core.api.Assertions.*; import static org.mockito.Mockito.*; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Collections; import java.util.List; import org.junit.jupiter.api.Be...
/* * Copyright (C) 2020 ActiveJ LLC. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* * Copyright 2017 Black Duck Software, 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 ...
package com.lupicus.nasty.util; public class ArrowHelper { public static double computeY(double xyDist, double dy, double vel, double y0, double ybase, double height) { final double gravity = 0.05; final double drag = 0.99; double d0, d1; double v0, v1; double vlen; double p0, p1; double plast = -Doubl...
/* * ICG SRL - International Consulting Group 2011 */ package com.geodata.dao; import java.io.Serializable; import java.util.List; import java.util.Map; /** * Dao * * @author Johnston Castillo Valencia email: john.gnu@gmail.com * @since 01-03-2011 */ public interface Dao { public void persist(Object entit...
import org.junit.Test; import static org.junit.Assert.assertTrue; public class SlowFlakyTest5 { @Test public void testFlaky1() { assertTrue(new Stupid1OutOf10().isLargerThan(2)); } @Test public void testFlaky2() { assertTrue(new Stupid1OutOf10().isLargerThan(1)); } @Test ...
//,temp,ListUcsBladeCmd.java,62,74,temp,DeleteUcsManagerCmd.java,54,67 //,3 public class xxx { @Override public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException, ConcurrentOperationException, ResourceAllocationException, NetworkRuleConflictException {...
/* * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.util.prefs; import java.util.*; import java.io.*; import javax.xml.parsers.*; import java...
package com.hribol.bromium.common.replay; import com.hribol.bromium.core.synchronization.EventSynchronizer; import com.hribol.bromium.replay.ReplayingState; import com.hribol.bromium.replay.execution.AutomationResultBuilder; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; impor...
/* * Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
/* * 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 2002-2021 Echo Three, LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http:/...
/** * Copyright (c) 2009-2015, Data Geekery GmbH (http://www.datageekery.com) * 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/license...
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates. * * 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...
/* * Copyright 2018, OpenCensus 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 ag...
package script.guild; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.xinqihd.sns.gameserver.GameContext; import com.xinqihd.sns.gameserver.config.GameDataKey; import com.xinqihd.sns.gameserver.config.MoneyType; import com.xinqihd.sns.gameserver.db.mongo.ConfirmManager; import com.xinqihd.sns.game...
package crawel.storage; import java.io.File; import java.math.BigDecimal; import com.fasterxml.jackson.databind.ObjectMapper; import crawel.Constants; import crawel.pojo.Product; import crawel.pojo.ProductList; import crawel.pojo.Size; import crawel.pojo.SizeList; import lombok.NoArgsConstructor; import lombok.exter...
package org.batfish.vendor.check_point_management; import static com.google.common.base.MoreObjects.firstNonNull; import static com.google.common.base.Preconditions.checkArgument; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.annota...
package com.fxb; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String ...
/* * Copyright 2012-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
public class CharYazdir { public static void yazdir(Character[] dizi) { for(Character c : dizi) { System.out.println(c); } } }
package com.denizenscript.denizen.objects.properties.item; import com.denizenscript.denizen.utilities.debugging.Debug; import com.denizenscript.denizen.utilities.nbt.CustomNBT; import com.denizenscript.denizen.objects.ItemTag; import com.denizenscript.denizen.objects.MaterialTag; import com.denizenscript.denizencore.o...
/* * Copyright (c) 2002-2017 Gargoyle Software 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 ch.m3ts; import android.Manifest; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.graphics.drawable.AnimationDrawable; import android.os.Bundle; import android.support....
package org.dubhe.data.course.domain; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.time.LocalDateTime; /** * @Author : Gou...
package com.example.paperplane.homepage; import android.content.Context; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.app...
/* * * * ============LICENSE_START======================================================= * * org.onap.dcae * * ================================================================================ * * Copyright (c) 2020 AT&T Intellectual Property. All rights reserved. * * Copyright (c) 2021 Nokia. All right...
package algorithms.heuristics; import java.util.Collections; import java.util.EnumSet; import java.util.Set; import algorithms.base.PartialVertexOrderAlgorithm; import algorithms.base.VertexOrderAlgorithm; import algorithms.heuristics.vertexorder.MaxNbrAlgorithm; import algorithms.heuristics.vertexorder.RandomDFSAlgo...
/* * Copyright (c) 2004-2021, University of Oslo * 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 cond...
package offer; /** * @author ber * @version 1.0 * @date 21/9/20 13:56 */ public class Offer46 { class Solution { public int translateNum(int num) { int ans = 0; String s = String.valueOf(num); int n = s.length(); int a = 1, b = 1; for (int i =...
package java.util.zip; /* * #%L * Matos * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2010 - 2014 Orange SA * %% * 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.ap...
/* Copyright 2017 Digital Learning Sciences (DLS) at the University Corporation for Atmospheric Research (UCAR), P.O. Box 3000, Boulder, CO 80307 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 a...
/* * Copyright 2007 Sascha Weinreuter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
package cz.cuni.mff.d3s.deeco.playground.examples.firefighters; import cz.cuni.mff.d3s.deeco.playground.simulation.CollisionData; import cz.cuni.mff.d3s.deeco.playground.simulation.Coordinates; import cz.cuni.mff.d3s.deeco.playground.simulation.Geometry; import java.util.ArrayList; import java.util.List; /** * This...
/** * 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.kohsuke.github; import org.apache.commons.lang3.StringUtils; import java.util.ArrayList; import java.util.List; import javax.annotation.Nonnull; /** * Base class for various search builders. * * @param <T> * the type parameter */ public abstract class GHSearchBuilder<T> extends GHQueryBu...
/* * 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 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, the Dart project authors. Please see the AUTHORS file * for details. All rights reserved. Use of this source code is governed by a * BSD-style license that can be found in the LICENSE file. * * This file has been automatically generated. Please do not edit it manually. * To regenerate the...
package javarepl.reflection; import com.googlecode.totallylazy.Sequence; import com.googlecode.totallylazy.predicates.LogicalPredicate; import org.junit.Test; import static javarepl.reflection.ClassReflections.reflectionOf; import static javarepl.reflection.MemberReflections.*; import static org.hamcrest.MatcherAsser...
package org.apereo.cas.support.saml.services; import org.apereo.cas.authentication.principal.WebApplicationService; import org.apereo.cas.logout.DefaultSingleLogoutServiceLogoutUrlBuilder; import org.apereo.cas.services.RegisteredService; import org.apereo.cas.services.ServicesManager; import org.apereo.cas.support.sa...
package lexrislogic.llplayer.Singleton; import android.content.ContentResolver; import android.content.Context; import android.content.res.Resources; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; imp...
package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import javax.validation.Valid; /** * BQBiometricAssignmentUpdateInputModelIssuedDeviceAllocationI...
package com.hellen.common; public class EncoderException extends Exception { private static final long serialVersionUID = 6722812237474429716L; public EncoderException(String pMessage) { super(pMessage); } }
package com.vaani.leetcode.string; /** * https://leetcode.com/problems/shortest-way-to-form-string/ * <p> * From any string, we can form a subsequence of that string by deleting some number of characters (possibly no deletions). * <p> * Given two strings source and target, return the minimum number of subsequence...
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.kubernetesconfiguration.v2019_11_01_preview; imp...
package fpc.aoc.day11; public interface Map { boolean executeOneStep(); int numberOfFlashes(); }
package ormFramework.core; import java.lang.reflect.InvocationTargetException; import java.sql.SQLException; public interface EntityManager { <T> T findById(int id, Class<T> type) throws SQLException, InvocationTargetException, InstantiationException, IllegalAccessException, NoSuchMethodException; //ToDo: ...
package kr.co.hakyo.secu; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Map; import org.apache.ibatis.session.SqlSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.GrantedAuthority; import org.springframew...
package net.anweisen.utilities.jda.manager.utils; import net.dv8tion.jda.api.requests.RestAction; import javax.annotation.Nonnull; import java.util.function.Supplier; /** * @author anweisen | https://github.com/anweisen * @since 1.0 */ public final class ActionHelper { private ActionHelper() {} public static ...
/* * #%L * de.metas.adempiere.adempiere.base * %% * Copyright (C) 2021 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the * License, or (at your opt...
/** * 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.insano10.puzzlers.strings; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; public class ReverseStringTest { @Test public void shouldReverseOddLengthString() { assertThat(ReverseString.reverse("abcde")).isEqualTo("edcba"); } @Test public void...
/* * Copyright (c) 2021, Xrio * 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 conditions and...