text stringlengths 7 995k |
|---|
package ru.stqa.pft.addressbook.tests;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.GroupData;
import ru.stqa.pft.addressbook.model.Groups;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
pub... |
/*
* 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 not ... |
package com.abatra.android.wheelie.core.res.color;
public class ValueColor implements IColor {
private final int color;
public ValueColor(int color) {
this.color = color;
}
} |
package ru.job4j.cinema.store;
import ru.job4j.cinema.model.Visitor;
import java.util.Map;
/**
* Interface Store.
*
* @author dshustrov
* @version 1
* @since 02.04.2019
*/
public interface Store {
Map<String, String> getAllHalls();
boolean checkPlace(String place);
void addVisitor(Visitor visito... |
/*
* 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.mockserver.mock.action;
import org.mockserver.client.NettyHttpClient;
import org.mockserver.filters.HopByHopHeaderFilter;
import org.mockserver.log.model.LogEntry;
import org.mockserver.logging.MockServerLogger;
import org.mockserver.model.HttpRequest;
import org.mockserver.model.HttpResponse;
import org.s... |
/*
* Copyright (c) 2016 JBYoshi
*
* 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, publish, di... |
package bookweather.com.bookweather;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an ... |
// Copyright 2017 Archos 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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
package guessingGame;
import java.util.Scanner;
public class GuessGame {
public String scannerClass(){
Scanner scanner = new Scanner(System.in);
String input = scanner.next();
return input;
}
public void game(){
int isPlayingMode = 3;
int guessNumber = (int) (Math... |
// Automagically generated code, please do not change
package org.moosetechnology.model.famixjava.famixtraits;
import ch.akuhn.fame.FameDescription;
import ch.akuhn.fame.FamePackage;
import ch.akuhn.fame.FameProperty;
@FamePackage("Famix-Traits")
@FameDescription("TWithStatements")
public interface TWithStatements ... |
package edu.stanford.nlp.sempre.tables;
import java.io.File;
import java.util.*;
import java.util.concurrent.ExecutionException;
import com.google.common.cache.*;
import edu.stanford.nlp.sempre.*;
import edu.stanford.nlp.sempre.tables.serialize.LazyLoadedExampleList;
import edu.stanford.nlp.sempre.tables.serialize.S... |
package org.vaadin.example;
import org.springframework.beans.factory.annotation.Autowired;
import org.vaadin.example.service.LCResult;
import org.vaadin.example.service.SearchService;
import com.vaadin.flow.component.Key;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.grid.Grid;
impo... |
package com.yiqiniu.easytrans.core;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Future;
import java.util.concurrent.atomic.AtomicInteger;
import org.springframework.context.ApplicationContext;
import com.yiqiniu.... |
/*
* Copyright 2017 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
/*
* Copyright 2004 Outerthought bvba and Schaubroeck nv
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright 2000-2012 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) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.model.finitedifference;
import static org.testng.AssertJUnit.assertEquals;
import java.util.Arrays;
import org.testng.annotations.Test;
... |
package me.kidult.Config.Crypt;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* Created by minisv on 2017. 4. 7..
*/
@Data
@FieldDefaults(level ... |
package com.wedevol.springdatacouchbase.core.exception;
/**
* Api exception
*
* @author charz
*
*/
public class ApiException extends BaseRuntimeException {
private static final long serialVersionUID = 1L;
private ErrorType errorType;
public ApiException(ErrorType errorStatus) {
super(errorStatus.getMe... |
package org.ldk.structs;
import org.ldk.impl.bindings;
import org.ldk.enums.*;
import org.ldk.util.*;
import java.util.Arrays;
import java.lang.ref.Reference;
import javax.annotation.Nullable;
/**
* The best known block as identified by its hash and height.
*/
@SuppressWarnings("unchecked") // We correctly assign ... |
package com.fudansteam.eye.client;
import com.fudansteam.eye.config.EyeDistributor;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
/**
* @author : 箱子
* Description : description
* Created by 箱子 on 2021-02-26 16:40:20
* Copyright 2021 HDU_IES. Al... |
package stevekung.mods.moreplanets.planets.nibiru.blocks;
import java.util.List;
import javax.annotation.Nullable;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityBoat;
import net.minecraft.util.math.AxisAligne... |
package razerdp.demo.ui.friendcircle;
import android.util.Pair;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import androidx... |
/*
* Copyright 2012-2015 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... |
/**
* Copyright 2017 Syncleus, Inc.
* with portions copyright 2004-2017 Bo Zimmerman
*
* 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... |
/*
* LanguageTool, a natural language style checker
* * Copyright (C) 2018 Fabian Richter
* *
* * This library is free software; you can redistribute it and/or
* * modify it under the terms of the GNU Lesser General Public
* * License as published by the Free Software Foundation; either
* * version 2.1 of... |
/**
*
*/
package com.rohitghatol.spring.odata.edm.providers.product;
import java.util.Arrays;
import java.util.List;
import org.apache.olingo.commons.api.data.Entity;
import org.apache.olingo.commons.api.data.EntitySet;
import org.apache.olingo.commons.api.data.ValueType;
import org.apache.olingo.commons.api.edm.E... |
/* 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
* distribut... |
/*
* Copyright (C) 2019-2021 ConnectorIO Sp. z o.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 applicab... |
package com.jin.pretty;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} |
/*
* Copyright 2002-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 ap... |
package io.deephaven.engine.table.impl.perf;
import io.deephaven.base.log.LogOutput;
import io.deephaven.engine.rowset.RowSet;
import io.deephaven.engine.rowset.RowSetShiftData;
import io.deephaven.engine.table.TableListener;
import io.deephaven.engine.table.impl.util.RuntimeMemory;
import io.deephaven.io.log.impl.Log... |
/*
* Copyright (C) 2004-2015 Volker Bergmann (volker.bergmann@bergmann-it.de).
* 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/L... |
package com.example.wxy.watertest10.View;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import a... |
package com.saucelabs.simplesauce;
import com.google.common.annotations.VisibleForTesting;
import lombok.Getter;
import org.openqa.selenium.InvalidArgumentException;
import org.openqa.selenium.MutableCapabilities;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.... |
package com.wz.coupon.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 商品会员价格
*
* @author wangzhen
* @email wangzhen404@163.com
* @date 202... |
package org.seng302.project.service_layer.exceptions.businessAdministrator;
import org.seng302.project.web_layer.controller.UserController;
/**
* Exception triggered when attempting to remove the primary administrator from administering the business.
*
* @see UserController
*/
public class CantRemoveAdministrator... |
package com.planet_ink.coffee_mud.Abilities.Druid;
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.pl... |
/**
* 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 tk.skmserver.discordbridge.commands;
import tk.skmserver.discordbridge.logics.LoginHandler;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.command.args.CommandContext;
im... |
package org.biopax.paxtools.examples;
import org.biopax.paxtools.model.Model;
import org.biopax.paxtools.model.level3.PublicationXref;
import java.io.FileNotFoundException;
/**
* A simple method that prints the publication statistics.
*
*/
public class PublicationStatisticsAnalyzer
{
public static void main(Stri... |
package org.firstinspires.ftc.teamcode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.ColorSensor;
import com.qualcomm.robotcore.hardware.Servo;
/**
* Created by cgrebosky on 10/14/17.
*/
public class FlickerController {
ColorSensor colorSensorL,... |
/*
* Copyright (C) 2016-2021 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 ... |
package demo;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface StringRemoteFunction extends Remote {
String upper(String text) throws RemoteException;
} |
package com.meganitrospeed.spring.data.mongodb.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework... |
/*
* 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 com.sarabjeet.musical.ui;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.CursorLoader;
import android.support.v4.content.Loader;
import android.support.v7.widget.GridLayoutManager;
... |
package com.onaple.brawlator.exceptions;
public class SpawnerTypeNotFoundException extends Throwable {
public SpawnerTypeNotFoundException(String spawnerTypeName) {
super("Spawner type with name " + spawnerTypeName + " was not found.");
}
} |
/*
* Copyright 2017 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.spacegame.game.planet;
import com.badlogic.gdx.math.Vector2;
import com.spacegame.game.HardnessCalc;
public class SystemBelt {
private final Float myHalfWidth;
private final float myRadius;
private final SolSystem myS;
private final SysConfig myConfig;
private final float myDps;
public System... |
/*
* 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 ... |
/***
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2005 INRIA, France Telecom
* 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. Redistribution... |
package si.utils;
public class NumberUtils {
public static int max(int a,int b,int c,int d) {
return Math.max(a,Math.max(b,Math.max(c,d)));
}
} |
/*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* 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 F... |
package spacefactory.screen.client;
import com.mojang.blaze3d.systems.RenderSystem;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.gui.screen.ingame.HandledScreen;
import net.minecraft.client.render.GameRenderer;
import net.minecraft.client.util.math.MatrixStack;
impo... |
/*
* Copyright 2017 Benjamin.C.
*
* 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... |
package com.lordjoe.ui;
/**
* com.lordjoe.ui.IArrayDrawer
*
* @author slewis
* @date Apr 26, 2005
*/
public interface IDataArrayDrawer extends IArrayDrawer,IDataChangedListener
{
public static final Class THIS_CLASS = IDataArrayDrawer.class;
public static final IDataArrayDrawer EMPTY_ARRAY[] = {};
/*... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 th... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/*
* 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.soliatrdj9.imsd.application.mainNode.mapManager.service;
import java.util.Map;
import com.soliatrdj9.imsd.application.mainNode.mapManager.model.MapInfo;
import com.soliatrdj9.imsd.application.mainNode.mapManager.model.exception.ExceptionMapConflict;
import com.soliatrdj9.imsd.application.mainNode.mapManag... |
/*
* 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 io.javaoperatorsdk.operator.api.reconciler;
public interface RetryInfo {
/**
* @return current retry attempt count. 0 if the current execution is not a retry.
*/
int getAttemptCount();
/**
* @return true, if the current attempt is the last one in regard to the retry limit
* configura... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.download;
import static android.app.Service.STOP_FOREGROUND_DETACH;
import static android.app.Service.STOP_FOREGROUND... |
/*
* Copyright (C) 2014-2021 Philip Helger (www.helger.com)
* philip[at]helger[dot]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/LICEN... |
package com.pgmacdesign.randomuserapitests;
import com.google.gson.annotations.SerializedName;
/**
* Data model pojo to match json return
* Created by PatrickSSD2 on 3/25/2017.
*/
public class RandomUserPojo {
@SerializedName("info")
private RUInfo info;
@SerializedName("results")
private RUResult... |
class QuickSort{
public static void main(String[] a){
System.out.println(new QS().Start(10));
}
}
// This class contains the array of integers and
// methods to initialize, print and sort the array
// using Quicksort
class QS{
int[] number ;
int size ;
// Invoke the Initialization, Sort and Printing
// Meth... |
/**
* Copyright (C) 2017 Sylvain Leroy - BYOS Company All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license, which unfortunately won't be
* written for another century.
*
* You should have received a copy of the MIT license with
* this file. If not, please write ... |
package hell.entities.heroeses;
import hell.entities.miscellaneous.HeroInventory;
import hell.interfaces.Hero;
import hell.interfaces.Inventory;
import hell.interfaces.Item;
import hell.interfaces.Recipe;
import java.lang.reflect.Field;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import ... |
/*
* 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.ctrip.xpipe.redis.console.healthcheck;
import com.ctrip.xpipe.endpoint.ClusterShardHostPort;
import com.ctrip.xpipe.endpoint.HostPort;
/**
* @author chen.zhu
* <p>
* Aug 23, 2018
*/
public interface RedisInstanceInfo {
ClusterShardHostPort getClusterShardHostport();
String getClusterId();
... |
package model;
public class TextElement implements Element {
private String text;
public TextElement(String text) {
this.text = text;
}
public String genHTML(int indentation) {
String answer = "";
answer += Utilities.spaces(indentation) + this.text;
return answer;
}
} |
package binary_search;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
public class SolutionTest {
@Test
public void solution() {
int[] budgets = { 120, 110, 140, 150 };
int M = 485;
Solution sol = new Solution();
Assert.assertEquals(127, sol.solution(budgets, M... |
package javax0.geci.tutorials.hello;
public class HelloWorld2 {
//<editor-fold id="hello">
public static void hello(){
System.out.println("Hello, World");
}
//</editor-fold>
} |
// Copyright 2020 dataFascia Corporation
//
// 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 2013-2021 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.quorum.tessera.config.constraints;
import com.quorum.tessera.config.KeyConfiguration;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
public class KeyConfigurationValidator implements ConstraintValidator<ValidKeyConfiguration, KeyConfiguration> {
@Ove... |
/**
* 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.twitapp.notification.model;
import lombok.*;
import javax.persistence.*;
import java.time.LocalDateTime;
@Table(name = "notification")
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter
@ToString
public class Notification {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
p... |
package org.but.feec.bds.project.config;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.sql.DataSource;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.SQLExcept... |
package com.brctl.multithread.producerconsumer;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.... |
package Engine;
import java.util.ArrayList;
import Components.Collision;
/**
* Handles the collision checking and position correction
* @author Usuario
*/
public class PhysicsSolver{
private ArrayList<GameObject> objects;
Collision o1;
PhysicsSolver(){
this.objects= new ArrayList<GameObject>();
}
PhysicsSol... |
package es.codeurjc.externalConsumer.services.impl;
import es.codeurjc.externalConsumer.dtos.responses.OrderResponseDto;
import es.codeurjc.externalConsumer.services.QueryOrderService;
import es.codeurjc.externalConsumer.repositories.OrderRepository;
import es.codeurjc.externalConsumer.exceptions.OrderNotFoundExceptio... |
package com.example.myapplication;
import android.app.Application;
import android.util.Log;
import com.amplifyframework.AmplifyException;
import com.amplifyframework.api.aws.AWSApiPlugin;
import com.amplifyframework.auth.cognito.AWSCognitoAuthPlugin;
import com.amplifyframework.core.Amplify;
import com.amplifyframewo... |
/*
* 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... |
/*
* 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 ... |
/*
* This file is part of LuckPerms, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <luck@lucko.me>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... |
/*
* 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.jruby.ir;
class OpFlags {
final static int f_has_side_effect = 0x00001; // Used by analyses
final static int f_can_raise_exception = 0x00002; // Used by analyses
final static int f_is_marker_op = 0x00004; // UNUSED
final static int f_is_jump_or_branch = 0x00008; // Used by anal... |
package net.openhft.chronicle.network.ssl;
import net.openhft.chronicle.core.Jvm;
import net.openhft.chronicle.core.io.Closeable;
import net.openhft.chronicle.network.NetworkTestCommon;
import net.openhft.chronicle.network.tcp.ChronicleServerSocketChannel;
import net.openhft.chronicle.network.tcp.ChronicleServerSocket... |
/* 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
* distribut... |
package com.planet_ink.coffee_mud.Abilities.Spells;
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.p... |
package io.github.portlek.actionbar.nms.v1_11_R1;
import io.github.portlek.actionbar.api.IActionBar;
import net.minecraft.server.v1_11_R1.EntityPlayer;
import net.minecraft.server.v1_11_R1.IChatBaseComponent;
import net.minecraft.server.v1_11_R1.Packet;
import net.minecraft.server.v1_11_R1.PacketPlayOutChat;
import or... |
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @... |
/*
* Copyright 2014-2019 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.bugsnag;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import com.bugsnag.callbacks.Callback;
import com.bugsnag.logback.BugsnagMarker;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Marker;
import ja... |
package br.com.processaarquivo.repositories;
import br.com.processaarquivo.model.Client;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ClientRepository extends JpaRepository<Client, Long> {
} |
package org.apache.maven.surefire.common.junit4;
/*
* 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 Ap... |
import ru.stqa.pft.sandbox.Point;
public class MyFirstProgram {
public static void main(String[] args) {
System.out.println("Hello, world !");
Point p = new Point(2,2,3,1);
System.out.println("Distance between points" + "P1" + "and" + "P2" + " = " + p.distance());
double a1 = 5;
double a2 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.