text stringlengths 7 1.01M |
|---|
package ru.job4j.pools.simplelock;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
public class SimpleLockTest {
private SimpleLock lock = new SimpleLock();
private volatile int i = 0;
@Test
public void whenWeAreLockingThread() throws InterruptedExce... |
/*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* ===================================================================... |
package gov.nasa.pds.api.registry.opensearch;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.stream.Collectors;
import java.util.stream.Stream... |
/**
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* dist... |
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.mock;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Segment;
import com.intellij.openapi.util.TextRange;
import com.intellij.... |
package Fredrick.Li.Personal.Cloud.Storage.model;
public class Notes {
private Integer noteId;
private String noteTitle;
private String noteDescription;
private Integer userId;
public Notes(Integer noteId, String noteTitle, String noteDescription, Integer userId){
this.noteId = noteId;
... |
package br.com.gastronomia.bo;
import br.com.gastronomia.dao.ReceitaDAO;
import br.com.gastronomia.exception.ValidationException;
import br.com.gastronomia.model.Receita;
import org.hibernate.exception.ConstraintViolationException;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java... |
/*
* Copyright (c) 1998-2018 University Corporation for Atmospheric Research/Unidata
* See LICENSE for license information.
*/
package ucar.unidata.geoloc.projection;
import ucar.nc2.constants.CDM;
import ucar.nc2.constants.CF;
import ucar.unidata.geoloc.*;
import ucar.unidata.util.Parameter;
/**
* Lambert Confor... |
/*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
package org.broadinstitute.ddp.route;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.time.Instant;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import com.google.gson.Gson;
impo... |
package com.janboerman.cabinet.api;
import java.util.Arrays;
import java.util.Optional;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
//TODO do I want regex permissions support? both BungeePerms and LuckPerms support them.
public interface Permissions {
static CPermission[] to... |
package br.com.zup.transacao.response;
public class CartaoResponse {
private String id;
private String email;
public CartaoResponse(String id, String email) {
this.id = id;
this.email = email;
}
public CartaoResponse() {
}
public String getId() {
return id;
}
public String getEmail() {
return e... |
/*
* Copyright 2020 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package com.gnut3ll4.syncets.model;
public class MoodleAssignment {
private int id;
private String name;
private long duedate;
public MoodleAssignment() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName()... |
/*
* This file is generated by jOOQ.
*/
package org.bithon.server.storage.jdbc.jooq.tables.records;
import java.sql.Timestamp;
import org.bithon.server.storage.jdbc.jooq.tables.BithonEvent;
import org.jooq.Field;
import org.jooq.Record5;
import org.jooq.Row5;
import org.jooq.impl.TableRecordImpl;
/**
* This cla... |
/*
* 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... |
/*
* The MIT License
* Copyright © 2014-2019 Ilkka Seppälä
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy... |
/*
* 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 au.com.anthonybruno.generator;
import au.com.anthonybruno.generator.format.Formatter;
public class FormattedGenerator<T> implements Generator<String> {
private final Generator<T> generator;
private final Formatter<T> formatter;
public FormattedGenerator(Generator<T> generator, Formatter<T> forma... |
// 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.implementation;
import com.azure.core.annotation.BodyParam;
import com.azure.core.annotation.Delete;
import com.azure.co... |
/*
* Copyright 2019 DeNA Co., 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 law or agreed ... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v8/services/campaign_criterion_service.proto
package com.google.ads.googleads.v8.services;
/**
* <pre>
* A single operation (create, update, remove) on a campaign criterion.
* </pre>
*
* Protobuf type {@code google.ads.go... |
/*
* Copyright The Cryostat Authors
*
* The Universal Permissive License (UPL), Version 1.0
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of this software, associated documentation and/or data
* (collectively the "Software"), free of charge and under ... |
package org.deeplearning4j.nn.conf.graph;
import org.nd4j.linalg.primitives.Pair;
import org.deeplearning4j.nn.api.OptimizationAlgorithm;
import org.deeplearning4j.nn.conf.ComputationGraphConfiguration;
import org.deeplearning4j.nn.conf.NeuralNetConfiguration;
import org.deeplearning4j.nn.conf.Updater;
import org.deep... |
/*
* Copyright 2020 Francesco Benincasa (info@abubusoft.com).
*
* 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... |
/*
* 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 Educational
* Community License, Version 2.0 (the "Li... |
/*
* Copyright (c) 2007, 2014, 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 ... |
/*
* Copyright (C) 2009-2016 Lightbend Inc. <https://www.lightbend.com>
*/
package javaguide.akka;
//#protocol
import akka.actor.Actor;
public class ConfiguredChildActorProtocol {
public static class GetConfig {}
public interface Factory {
public Actor create(String key);
}
}
//#protocol
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package vswe.stevescarts.modules.workers;
import net.minecraft.block.Block;
import net.minecraft.block.BlockLiquid;
import net.minecraft.block.BlockRailBase;
import net.minecraft.item.ItemStack;
import net.minecraft.network.datasync.DataParameter;
import net.minecraft.network.datasync.DataSerializers;
import net.minec... |
/*******************************************************************************
* Copyright (c) 1991, 2014 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... |
import java.util.ArrayDeque;
import java.util.Scanner;
public class E12_Matrix_BFS_Approach {
//BFS
private static class Pair {
int x, y;
public Pair(int x, int y) {
this.x = x;
this.y = y;
}
}
private static final int[] row = {-1, 0, 0, 1};
private... |
package oasis.names.specification.ubl.schema.xsd.unqualifieddatatypes_2;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax... |
/*
* Copyright 2017 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... |
/*
* Copyright 2002-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
*
* https://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 may ... |
package jetbrains.mps.lang.editor.diagram.typesystem;
/*Generated by MPS */
import jetbrains.mps.lang.typesystem.runtime.AbstractInferenceRule_Runtime;
import jetbrains.mps.lang.typesystem.runtime.InferenceRule_Runtime;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.typesystem.inference.TypeChecki... |
// Copyright 2020 Intel Corporation
// SPDX-License-Identifier: Apache 2.0
package org.fidoalliance.fdo.protocol;
import java.net.HttpURLConnection;
import java.util.concurrent.TimeUnit;
/**
* A Runtime Exception thrown while dispatching a message.
*/
public class DispatchException extends RuntimeException {
/*... |
package com.alibaba.dubbo.rpc.cluster;
import com.alibaba.dubbo.common.extension.ExtensionLoader;
public class Cluster$Adaptive implements com.alibaba.dubbo.rpc.cluster.Cluster {
public com.alibaba.dubbo.rpc.Invoker join(com.alibaba.dubbo.rpc.cluster.Directory arg0) throws com.alibaba.dubbo.rpc.RpcException {
... |
package com.sjl.gulimall.coupon.controller;
import java.util.Arrays;
import java.util.Map;
import com.sjl.common.to.SkuReductionTo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.sjl.gulimall.coupon.entity.SkuFullReductionEntity;
import com... |
package cucumber.cukeulator.test;
import android.app.Activity;
import android.support.test.rule.ActivityTestRule;
import org.junit.Rule;
import cucumber.api.java.After;
import cucumber.api.java.Before;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import cucum... |
/*
* Copyright (C) 2010 ZXing 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 agr... |
package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import cmps252.HW4_2.... |
/*
* 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 2014 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 com.qa.ims.controller;
import java.sql.ResultSet;
import java.util.List;
import com.qa.ims.persistence.domain.Order;
/**
* Create, Read, Update and Delete controller.
* Takes in inputs for each action to be sent to a service class
*/
public interface CrudController<T> {
List<T> readAll();
... |
package com.travelport.schema.air_v29_0;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for typeFareGuarantee.
*
* <p>The following schema fragment specifies the expected content contained within this class.
... |
/*
*
* */
package cnc;
//IMPORTS--------------------
import java.io.*;
import java.util.ArrayList;
import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;
import com.fazecast.jSerialComm.*;
class cnc {
//GLOBAL VARIABLES -----------------------------------------------------------
priv... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
/*******************************************************************************
* ============LICENSE_START========================================================================
* ONAP : ccsdk feature sdnr wt
* =================================================================================================
* Co... |
package ru.job4j.professions;
import java.util.Arrays;
/**
* Class работы со строками.
* @author karetskiy
* @since 09.01.2017
* @version 1
*/
public class Str {
/**
* Проверяем вхождение строки.
* @param origin - строка в которой ищем подстроку.
* @param sub - подстрока которую ищем.
* @return истина если подс... |
/*
* 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... |
package Beneficios.Benefit;
import net.serenitybdd.cucumber.CucumberWithSerenity;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(
features = "src/test/resources/features/Login/CambioContrasenia.feature"
,glue= {"Interbank.Benefit.steps"}
... |
package com.bluecodeltd.ecap.chw.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
public class Child implements Serializable {
public static final String ENTITY_ID = "entity_id";
public Child() {
}
public Child(S... |
/*
* Copyright 2017-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 app... |
package hu.szte.vizz.service.user;
import hu.szte.vizz.persistence.entity.user.User;
import hu.szte.vizz.persistence.repository.user.UserRepository;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.springframework.beans.factory.annotation.Autowired... |
package top.keiskeiframework.file.jdoss.config;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.client.builde... |
/*
SummaryJavadoc
violateExecutionOnNonTightHtml = (default)false
forbiddenSummaryFragments = (default)^$
period = (default).
*/
/** */ // violation
@Example
package com.puppycrawl.tools.checkstyle.checks.javadoc.summaryjavadoc.inputs;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
... |
package com.latitude.seventimer.injector.Component;
import android.app.Activity;
import android.content.Context;
import com.latitude.seventimer.injector.module.ActivityModule;
import com.latitude.seventimer.injector.qualifier.ContextLife;
import com.latitude.seventimer.injector.scope.PerActivity;
import dag... |
/*
* Copyright (C) 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
/*
* Copyright 2017 github.com/kaaz
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
package at.rags.morpheusexample.resources;
import com.google.gson.annotations.SerializedName;
public class Article extends MyResource {
@SerializedName(value = "title")
private String title;
public String getTitle() {
return title;
}
}
|
// Copyright (c) 2020, the R8 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.
package com.android.tools.r8.horizontalclassmerging.code;
import com.android.tools.r8.graph.AppInfo;
impo... |
package com.github.houbb.rpc.common.remote.netty.impl;
import com.github.houbb.log.integration.core.Log;
import com.github.houbb.log.integration.core.LogFactory;
import com.github.houbb.rpc.common.exception.RpcRuntimeException;
import com.github.houbb.rpc.common.remote.netty.NettyServer;
import io.netty.bootstrap.Serv... |
/*
* 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 n... |
package eventos;
import java.awt.event.*;
import javax.swing.*;
public class EventoIPv6 implements ActionListener {
private JTextField ip;
private JTextArea datos;
@Override
public void actionPerformed(ActionEvent e) {
String ipHex;
try {
ipHex = hexToDec(no... |
package com.example.canvasdemo.netrequest;
public class PostRequest {
}
|
public class Myset<E>{
public LinkedList<E> llist;
Myset(){
llist = new LinkedList();
}
public boolean isEmpty(){
return llist.isEmpty();
}
public boolean isMember(LinkedList.Node e){
return llist.isMember(e);
}
public void Insert(LinkedList.Node e){
if(llist.isMember(e)){
return;
}
llist.addLast... |
package com.github.boavenn.minject.instantiation.generic;
class CircularDependencyClassB {
private CircularDependencyClassC classC;
public CircularDependencyClassB(CircularDependencyClassC classC) {
this.classC = classC;
}
}
|
package com.marcooliveira.pontointeligente.api.dtos;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.util.Optional;
/**
* Created by Marco Antônio on 05/05/2018
*/
public class FuncionarioDto {
private Long... |
/**
* You are given coins of different denominations and a total amount of money. Write a function to compute the number of
* combinations that make up that amount. You may assume that you have infinite number of each kind of coin.
* Input: amount = 5, coins = [1, 2, 5]
Output: 4
Explanation: there are four ways to... |
package omtteam.omlib.tileentity;
import ic2.api.energy.event.EnergyTileLoadEvent;
import ic2.api.energy.event.EnergyTileUnloadEvent;
import mcp.MethodsReturnNonnullByDefault;
import net.darkhax.tesla.capability.TeslaCapabilities;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.util.Direction;
import net.mi... |
package net.minecraft.network.play.server;
import java.io.IOException;
import java.util.Collection;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayClient;
import net.minecraft.util.Vec4b;
import net.minecraft.world.storage.MapData;
impor... |
package com.clear.bootest;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
/**
* Created by Administrator on 2015/10/9.
*/
public class Person {
@NotBlank(message = "name不能为空")
private String username;
@Not... |
/*
* Copyright 2001-2014 Stephen Colebourne
*
* 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 com.planet_ink.coffee_mud.Items.Armor;
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.planet_ink.coffee_mud.Areas.interfaces.*;
import com.... |
package com.luckydu.dujun.circleoffriends.api.apimanager;
import android.content.Context;
import com.luckydu.dujun.circleoffriends.api.UserApi;
import com.luckydu.dujun.circleoffriends.bean.SenderBean;
import rx.Observable;
/**
* 用户管理类
*
* Created by dujun on 2017-08-06.
*/
public class UserManagerApi extends... |
package my.mycompany.myapp.web;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class PriceIncreaseFormBean implements java.io.Serializable {
/**
*
*/
private static final long seria... |
/*
* Copyright 2019-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 ap... |
// Copyright © 2020 Sovren Group, Inc. All rights reserved.
// This file is provided for use by, or on behalf of, Sovren licensees
// within the terms of their license of Sovren products or Sovren customers
// within the Terms of Service pertaining to the Sovren SaaS products.
package com.sovren.models;
/**
* Represe... |
/**********************************************************************
Copyright (c) 2008 Andy Jefferson and others. 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
h... |
package hu.fallen.adventofcode.tests;
import static org.junit.Assert.*;
import java.util.ArrayList;
import org.junit.Test;
import hu.fallen.adventofcode.solutions.Solution22;
public class Solution22Test {
@Test
public void test() {
ArrayList<String> input = new ArrayList<String>();
input.add("..#");
... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
package com.itheilv.leetcode.array.easy;
/**
* @author WSQ
* @since 2020-09-21
*/
public class Solution697 {
public static int findShortestSubArray(int[] nums) {
return 0;
}
public static void main(String[] args) {
int[] param = {};
final int result = findShortestSubArray(param... |
package com.para.pontointeligente.api.model;
import javax.persistence.*;
import com.para.pontointeligente.api.enums.TipoEnum;
import java.io.Serializable;
import java.util.Date;
@Entity
@Table(name = "lancamento")
public class Lancamento implements Serializable {
private static final long serialVersionUID = 6... |
/*******************************************************************************
* Copyright 2017 Bstek
*
* 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/lic... |
package com.jagacy.totalAccess.ext;
public class AwkFunctionException extends RuntimeException {
private static final long serialVersionUID = 795763123215219852L;
public AwkFunctionException(String functionName, Throwable t) {
super("(" + functionName + "): " + t.getMessage(), t);
}
publ... |
package ai.rev.speechtotext.exceptions;
import org.json.JSONObject;
/**
* The InvalidParameterException occurs when a parameter that's passed along a query is not
* recognized by the API.
*/
public class InvalidParameterException extends RevAiApiException {
public InvalidParameterException(JSONObject errorRespo... |
/*
* Copyright 2018 Google 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 (c) Istituto Nazionale di Fisica Nucleare (INFN). 2006-2016
*
* 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
*
* Unl... |
package org.omg.IOP.CodecFactoryPackage;
/**
* org/omg/IOP/CodecFactoryPackage/UnknownEncodingHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u201/12322/corba/src/share/classes/org/omg/PortableInterceptor/IOP.idl
* Saturday, Dec... |
package com.shuframework.jdkdemo.proxy.logaop;
/**
* @author shuheng
*/
public class MyLogInterceptor implements AopInterceptor {
@Override
public void before() {
System.out.println("before...");
}
@Override
public boolean useAround() {
return true;
}
@Override
publ... |
/*******************************************************************************
ADL SCORM 2004 4th Edition Sample Run-Time Environment
The ADL SCORM 2004 4th Ed. Sample Run-Time Environment is licensed under
Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States.
The Advanced Distributed Learning ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE369_Divide_by_Zero__float_Property_modulo_53b.java
Label Definition File: CWE369_Divide_by_Zero__float.label.xml
Template File: sources-sinks-53b.tmpl.java
*/
/*
* @description
* CWE: 369 Divide by zero
* BadSource: Property Read data from a system property
... |
package it.epicode.be.util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
import it.epicode.be.model.Cliente;
import it.epicode.be.model.Indirizzo;
import it.epicode.be.model.Provincia;
impor... |
package com.IngredientManagement.dao;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.IngredientManagement.model.Ingredients;
public interface IngredientRepo... |
/*
* Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
/*
* Copyright 2004-2013 the Seasar Foundation and the Others.
*
* 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 ... |
package uk.gov.hmcts.probate.service.template.pdf.caseextra.decorator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import uk.gov.hmcts.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.