text stringlengths 7 995k |
|---|
package com.youth.banner;
import android.content.Context;
import android.content.res.TypedArray;
import androidx.viewpager.widget.PagerAdapter;
import androidx.viewpager.widget.ViewPager;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.Log;
import android.util.TypedValue;
impo... |
/*
* Copyright 2002-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.microsoft.adaptivechatdemo;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.LinearLayout;
public class BoundedLinearLayout extends LinearLayout {
private final int mBoundedWidth;
private final int mBoundedHeight;
... |
package com.redis.riot.redis;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.batch.item.redis.OperationItemWriter;
import org.springframework.batch.item.redis.support.operation.Hset;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import java.util.Map;
@Data
@EqualsAn... |
package org.weibei.bouncycastle.jce.spec;
import java.math.BigInteger;
/**
* This class specifies an ElGamal public key with its associated parameters.
*
* @see ElGamalPrivateKeySpec
*/
public class ElGamalPublicKeySpec
extends ElGamalKeySpec
{
private BigInteger y;
public ElGamalPublicKeySpec(
... |
/*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... |
package cn.springcloud.book.ex.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import cn.springcloud.b... |
package org.estatio.dom.lease.invoicing;
import org.incode.module.base.dom.utils.StringUtils;
public enum InvoiceRunType {
NORMAL_RUN,
RETRO_RUN;
public String title() {
return StringUtils.enumTitle(this.name());
}
} |
package com.hellodev.entity;
import com.hellodev.constant.CommonStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persist... |
/*
* Copyright 2015 Adaptris 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 to... |
/*
* Copyright 2017 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/**
* Copyright © 2017 Heinz&Knurre (andreas.gorbach@gmail.com christian.d.middel@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... |
/**
* 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.datamigration.v2017_11_15_preview;
import com.fa... |
package es.upm.miw.apaw_practice.adapters.mongodb.project.daos;
import es.upm.miw.apaw_practice.adapters.mongodb.project.entities.IssueEntity;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface IssueRepository extends MongoRepository<IssueEntity, String> {
} |
/**
* This code is generated using [[https://www.scala-sbt.org/contraband/ sbt-contraband]].
*/
// DO NOT EDIT MANUALLY
package xsbti.compile;
/**
* Define modifications to classpaths based on the {@link ScalaInstance} used for
* compilation. This class tells how to instrument the classpaths given certain Scala
*... |
package io.keyko.monitoring.agent.core.chain.block.tx.criteria;
import io.keyko.monitoring.agent.core.dto.transaction.TransactionDetails;
import io.keyko.monitoring.agent.core.dto.transaction.TransactionStatus;
import java.util.List;
public class FromAddressMatchingCriteria extends SingleValueMatchingCriteria<String... |
package com.priitlaht.eztvapi.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author Priit Laht
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class TvShowDetails extends TvShow {
@JsonProperty(value = "synops... |
/*
* (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
/*
* 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.sample.camera.camera;
/**
* @author mzp
* date : 2020/9/15
* desc :
*/
interface CameraInterface {
/**
* Camera state: Showing camera preview.
* 相机预览状态
*/
int STATE_PREVIEW = 0;
/**
* Camera state: Waiting for the focus to be locked.
* 焦点锁定
*/
int STATE_W... |
/**
* 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.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... |
package newpackage;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin {
public static Main instance;
@Override
public void onEnable(){
instance = this;
instance.getLogger().info("[알림] 테스트 플러그인이 시작되었습니다.");
getCommand("hi").set... |
package com.ruoyi.common.filter;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import javax.servlet.ReadListener;
import javax.servlet.ServletInputStream;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletReque... |
package com.edu.fiap.helpdeskservice.facade;
import com.edu.fiap.helpdeskservice.model.request.HelpDeskRequest;
import com.fasterxml.jackson.core.JsonGenerationException;
import com.fasterxml.jackson.databind.JsonMappingException;
import org.springframework.messaging.handler.annotation.Payload;
import java.io.IOExcep... |
/*
* Copyright 2016 The Bazel Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.ktkj.entity;
import java.io.Serializable;
import java.util.Date;
/**
* 发送短信日志
* 表名 sys_sms_log
*
* @author lipengjun
* @email 939961241@qq.com
* @date 2017-12-16 23:38:05
*/
public class SysSmsLogEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主... |
/**
* Copyright (c) 2004, 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 agre... |
/*
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
/*
* Copyright 2016 Dmitry Avtonomov.
*
* 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 net.leejjon.ideatest;
import com.badlogic.gdx.backends.iosmoe.IOSApplication;
import com.badlogic.gdx.backends.iosmoe.IOSApplicationConfiguration;
import org.moe.natj.general.Pointer;
import net.leejjon.ideatest.MyGdxGame;
import apple.uikit.c.UIKit;
public class IOSMoeLauncher extends IOSApplication.Delegat... |
/*
* Copyright 2011 Björn Raupach
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... |
/**
* Created by Sarveswara Tippireddy on Jul 13, 2017
*
* <p>This GeeksForGeeks problem can be found @
* http://www.geeksforgeeks.org/longest-common-substring/
*/
package geeksForGeeks.dynamicProgramming;
import java.util.Scanner;
public class Basics17 {
public static void main(String[] args) {
Scanner s... |
/*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ Franz Wilhelmstötter
*
* 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/... |
package org.folio.completablefuture;
import static java.util.concurrent.CompletableFuture.completedFuture;
import static java.util.concurrent.CompletableFuture.failedFuture;
import static org.folio.completablefuture.CompletableFutureRepeater.repeat;
import static org.hamcrest.MatcherAssert.assertThat;
import static or... |
/**
Copyright 2008 University of Rochester
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 a... |
package com.zyd.shiro.util.common;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.test.context.juni... |
/**
* Copyright 2004-present, Facebook, Inc.
*
* <p>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 la... |
package io.github.rura6502.jpa_01_repository_04_exception;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class DemoApplicationTests {
... |
package jpacman.npc.ghost;
import jpacman.board.Direction;
import jpacman.board.Square;
import jpacman.board.Unit;
import jpacman.level.Player;
import jpacman.npc.Ghost;
import jpacman.sprite.Sprite;
import java.util.List;
import java.util.Map;
import java.util.Optional;
/**
* <p>
* An implementation of the classi... |
package org.firstinspires.ftc.blackSwan;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
@Autonomous
public class AutonomousRedCarousel extends LinearOpMode {
Robot robot;
@Override
public void runOpMode() {
robot = new Robot... |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.12
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* -----------------------------... |
/*
* Autopsy Forensic Browser
*
* Copyright 2015 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://ww... |
// --------------------------------------------------------------------------------
// 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:/... |
package entity.tile;
import java.awt.Color;
public class Grass extends Land {
public Grass() {
this(Tile.COLOR_GRASSLAND);
}
public Grass(Color color)
{
super(Material.GRASS, true, true, color);
}
} |
package org.apereo.cas.audit;
import org.apereo.cas.config.CasCoreUtilConfiguration;
import org.apereo.cas.config.CasCoreWebConfiguration;
import org.apereo.cas.config.CasSupportMongoDbAuditConfiguration;
import org.apereo.cas.config.support.CasWebApplicationServiceFactoryConfiguration;
import org.apereo.inspektr.audi... |
package net.minecraft.entity.player;
import java.util.concurrent.Callable;
import net.minecraft.block.Block;
import net.minecraft.crash.CrashReport;
import net.minecraft.crash.CrashReportCategory;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
import net... |
package br.com.amigotradutor.projetos.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
... |
package org.meridor.perspective.sql.impl.function;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Set;
import static org.meridor.perspective.sql.impl.function.FunctionUtils.*;
@Component
public class FloorFunction implements Function<Integer> {
@Override
public Set... |
/*
* 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.github.jengo.java.program.design10;
public class MonteCarloSimulation {
public static void main(String[] args) {
final int NUMBER_OF_TRIALS = 10000000;
int numberOfHits = 0;
for (int i = 0; i < NUMBER_OF_TRIALS; i++) {
double x = Math.random() * 2.0 - 1;
... |
package com.un.componentax.widget;
import android.view.View;
import android.view.ViewGroup;
public interface ItfViewAdapter {
View genView(ViewGroup parent, Object data);
View genSep(ViewGroup parent);
void adapter(View v, Object data);
ViewGroup[] genGroup(ViewGroup parent);
} |
package patterns.behavior.command;
/**
* Stock.
*
* @author Maxim Vanny
* @version 5.0
* @since 10/28/2019
*/
public class Stock {
/**
* field ticker.
*/
private final String ticker;
/**
* field quantity.
*/
private final int quantity;
/**
* Constructor.
*
... |
package org.springframework.data.jpa.datatables.qrepository;
import com.querydsl.core.BooleanBuilder;
import com.querydsl.core.types.EntityPath;
import com.querydsl.core.types.Predicate;
import com.querydsl.core.types.dsl.PathBuilder;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.dat... |
package com.springdemo.controller.mutil;
public class FormBean2 {
private FormBean1 formBean1;
private Integer id;
private String code;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCode() {
return code;
}
public void setCode(String cod... |
package CSharp.editor;
/*Generated by MPS */
import jetbrains.mps.nodeEditor.DefaultNodeEditor;
import jetbrains.mps.openapi.editor.cells.EditorCell;
import jetbrains.mps.openapi.editor.EditorContext;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.nodeEditor.cells.EditorCell_Collection;
import jet... |
package com.yf.spring.hibernate.service;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class BookShopWrapperServiceImpl implements BookShopWrapperService {
@Resource
private BookShopService bookShopService;
// @Transactional
... |
/*
* Copyright 2019 ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
import java.util.HashMap;
import java.util.Map;
public class HTTPDispatcher {
Map<String,Map<String,String>> routes;//method => path => impl
private HTTPGETController getCtr;
public HTTPDispatcher() {
Map<String, String> paths = new HashMap<String, String>();
paths.put("/trololo", "trololoRoute");
paths.pu... |
package net.minecraft.client.gui;
import com.google.common.collect.Lists;
import java.util.List;
import net.minecraft.client.Minecraft;
import net.minecraft.client.settings.GameSettings;
public class GuiOptionsRowList extends GuiListExtended {
private final List field_148184_k = Lists.newArrayList();
private st... |
/*
* Copyright 2021 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 (c) 2010 Robert "Unlogic" Olofsson (unlogic@unlogic.se).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this d... |
/*
* Copyright (c) 2016-present The Recorder 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 applicabl... |
package com.github.fppt.jedismock.server;
import com.github.fppt.jedismock.datastructures.Slice;
import com.github.fppt.jedismock.storage.OperationExecutorState;
import java.util.List;
@FunctionalInterface
public interface RedisCommandInterceptor {
/**
* This method is called on operation execution in Jedis... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
package me.etki.grac.infrastructure;
import me.etki.grac.transport.Transport;
import me.etki.grac.transport.TransportRegistry;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* @author Etki {@literal <etki@etki.name>}
* @version %I%, %G%
* @since 0.1.0
*/
public class TransportR... |
package org.motechproject.server.pillreminder.api.builder;
import org.motechproject.server.pillreminder.api.contract.DailyPillRegimenRequest;
import org.motechproject.server.pillreminder.api.contract.DosageRequest;
import org.motechproject.server.pillreminder.api.domain.DailyScheduleDetails;
import org.motechproject.s... |
/**
* 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.databoxedge.v2020_05_01_preview.implementation;
... |
package com.fdmgroup.legendwealth.service;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.TimeZone;
import com.fdmgroup.legendwealth.dal.AssetDao;
import com.fdmgroup.legendwealth.dal.TradeDao;
import com.fdmgroup.legendwealth.entity.Asset;
import c... |
/**
* Specific errors used with Zalando's "problem-spring-web" library.
*
* More information on https://github.com/zalando/problem-spring-web
*/
package com.kasztelanic.carcare.web.rest.errors; |
package org.apereo.cas.oidc.config;
import org.apereo.cas.CentralAuthenticationService;
import org.apereo.cas.audit.AuditableExecution;
import org.apereo.cas.authentication.AuthenticationServiceSelectionPlan;
import org.apereo.cas.authentication.AuthenticationServiceSelectionStrategy;
import org.apereo.cas.authenticat... |
/*
* (c) RtBrick, Inc - All rights reserved, 2015 - 2019
*/
package io.leitstand.security.crypto;
import static io.leitstand.commons.model.StringUtil.toUtf8Bytes;
import java.security.MessageDigest;
/**
* Computes a <a href="https://en.wikipedia.org/wiki/Cryptographic_hash_function" title="Open secure hash functi... |
/*
* Copyright (c) 2008-2022, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
package io.datakernel.launchers.http;
import io.datakernel.config.Config;
import io.datakernel.config.ConfigModule;
import io.datakernel.di.annotation.Inject;
import io.datakernel.di.annotation.Optional;
import io.datakernel.di.annotation.Provides;
import io.datakernel.di.core.Key;
import io.datakernel.di.module.Abstr... |
package app.cache;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConditionalOnProperty(name = "redis.redisson.enabled", havingValue = "true")
public class RedissonConfig {
} |
package org.smartregister.fp;
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.*;
/**
* Instrumented test, which will execute on an Android de... |
package datawave.query.jexl.nodes;
import org.apache.commons.jexl2.parser.JexlNode;
import org.apache.commons.jexl2.parser.JexlNodes;
import java.util.function.Function;
/**
* This is a node that can be put in place of an ASTERNode to denote that the value threshold was exceeded preventing expansion into a conjunct... |
/*
* Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
package org.minxc.emp.organization.rest.controller;
import org.minxc.emp.base.api.aop.annotion.CatchError;
import org.minxc.emp.base.api.exception.BusinessException;
import org.minxc.emp.base.api.response.impl.ResultMsg;
import org.minxc.emp.base.core.util.StringUtil;
import org.minxc.emp.base.manager.Manager;
import ... |
import ocean.creatures.Fish;
import ocean.creatures.Shark;
import ocean.plants.Seaweed;
/*
* Import statements must always go at the beginning of a class.
* Here we can see we import, for example, the "Fish" class from the "creatures"
* sub-package which is imported from the "ocean" package.
* We don't need to impo... |
package com.bdoemu.core.network.receivable;
import com.bdoemu.commons.model.enums.EStringTable;
import com.bdoemu.commons.network.ReceivablePacket;
import com.bdoemu.core.network.GameClient;
import com.bdoemu.core.network.sendable.SMNak;
import com.bdoemu.gameserver.model.creature.enums.ECharKind;
import com.bdoemu.ga... |
package com.testautomateapp_dev_23164;
import android.app.Application;
import android.content.Context;
import com.facebook.react.PackageList;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
im... |
package models.services;
import models.Mutable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
/**
* This class represents a Service which can be provided to a User. The
* extentions of this class will be specific services a User can subscribe to.
* ... |
package com.sap.mango.jiraintegration.core.data.function;
public interface Function2Throws<A,B,C,X extends Exception> {
C apply(A a, B b) throws X;
} |
/*
* 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 ma... |
/*
* Copyright (C) 2017 优客服-多渠道客服系统
* Modifications copyright (C) 2018-2022 Chatopera Inc, <https://www.chatopera.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.a... |
/*******************************************************************************
* Copyright 2013 SAP AG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... |
/*
* This file is part of examples, http://choco-solver.org/
*
* Copyright (c) 2021, IMT Atlantique. All rights reserved.
*
* Licensed under the BSD 4-clause license.
*
* See LICENSE file in the project root for full license information.
*/
package org.chocosolver.examples.nqueen;
import org.chocosolver.exampl... |
package org.jfrog.hudson.pipeline.declarative.steps.npm;
import hudson.Extension;
import org.jenkinsci.plugins.workflow.steps.AbstractStepDescriptorImpl;
import org.jfrog.hudson.pipeline.common.types.resolvers.CommonResolver;
import org.jfrog.hudson.pipeline.declarative.steps.common.DeployerResolverBase;
import org.ko... |
/*
* Copyright © 2021 Apple Inc. and the ServiceTalk project 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 requi... |
import org.junit.*;
import static org.junit.Assert.*;
import java.io.*;
import java.util.*;
public class DefinitionTest {
@Test
public void Definition_instantiatesNewDefinition_true() {
Definition myDefinition = new Definition("really tall");
assertEquals(true, myDefinition instanceof Definition);
}
... |
package dao;
import entity.User;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.PreparedStatementCreator;
import org.springframework.jdbc.core.support.JdbcDaoSupport;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import java.sql.Connection;
import java.... |
package com.indarsoft.cryptocard.card;
import static org.junit.Assert.*;
import org.junit.BeforeClass;
import org.junit.Test;
import com.indarsoft.cryptocard.card.Card;
import com.indarsoft.cryptocard.card.CardException;
public class CardTest {
public static String panNumber ="5200000000000007";
public stat... |
/*
* Copyright 2014 Luke Klinker
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
/*
* Copyright (c) Created by Cody.yi on 2016/8/26.
*/
package com.cody.app.framework.fragment;
import android.os.Bundle;
import com.cody.app.R;
import com.cody.app.databinding.ListBinding;
import com.cody.handler.framework.presenter.ListPresenter;
import com.cody.handler.framework.viewmodel.ListViewModel;
impor... |
/*
* Copyright (C) 2017 Sonicle S.r.l.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation with the addition of the following permission
* added to Section 15 as permitted i... |
/**
*
*/
package org.forum.server.impl;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.github.dozermapper.core.Mapper;
/**
* A Spring bean that contains various utilities
*
* @author etienne-sf
*/
@Component
p... |
package it.unibo.ai.didattica.competition.tablut.domain;
import it.unibo.ai.didattica.competition.tablut.exceptions.*;
/**
* Contains the rules of the game
*
*/
public interface Game {
/**
* This method checks an action in a state: if it is correct the state is
* going to be changed, if it is wrong it throws... |
package com.redhat.labs.lodestar.rest.client;
import javax.enterprise.context.ApplicationScoped;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import com.redhat.labs.lodestar.model... |
package at.jku.tk.hermes.core.internal.replication;
/* Imports ********************************************************************/
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.LinkedBlockingQueue;
import org.jivesoftware.smack.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.