text stringlengths 7 1.01M |
|---|
package com.yanpramudita.websocket;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class WebsocketApplication {
public static void main(String[] args) {
SpringApplication.run(WebsocketApplication.class, args);
... |
/*
* Copyright 2018-2020 adorsys GmbH & Co KG
*
* 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 ... |
/**
* $Revision$
* $Date$
*
* Copyright 2003-2007 Jive Software.
*
* All rights reserved. Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/license... |
public class Bug<T> {
public T invoke(Object... args) {
return null;
}
public static <T extends String> void test() { // works with <T> alone.
Bug<T> bug = new Bug<>();
java.util.function.Function<String, T> b = bug::invoke; // compile error, but works with (args) -> bug.invoke(args)... |
package javassist;
import junit.framework.*;
import java.io.FileInputStream;
import java.lang.reflect.Method;
import javassist.bytecode.*;
import javassist.expr.*;
import javassist.runtime.*;
public class JvstTest extends JvstTestRoot {
static {
//javassist.bytecode.MethodInfo.doPreverify = true;
}
... |
/**
*/
package org.eclipse.cpsim.Diagram.impl;
import org.eclipse.cpsim.Diagram.*;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.pl... |
package mage.cards.l;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.key... |
/**
* Copyright © 2015-2016 <a href="https://github.com/hanyahui88/swifts">swifts</a> All rights reserved.
*/
package com.swifts.frame.common.supcan.annotation.common.properties;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.la... |
package com.coolweather.android;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.os.Build;
import android.preference.PreferenceManager;
import android.support.v4.view.GravityCompat;
import android.support.v... |
package com.ktz.deploy.undertow;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* Description:
*
* @author kaituozhe_sh
*/
@SpringBootApplication
public class UndertowEnvironmentApplication {
public static void main(String[] args) {... |
/* ====================================================================
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 Y... |
/*
* This source file is subject to the license that is bundled with this package in the file LICENSE.
*/
package com.codeup.security;
import org.springframework.beans.BeanWrapperImpl;
import org.springframework.util.StringUtils;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidat... |
package ee.ristoseene.raytracer.eyebased.demo.impl.raytracer;
import ee.ristoseene.raytracer.eyebased.core.raytracing.Ray;
import ee.ristoseene.raytracer.eyebased.core.raytracing.RayIntersectionContext;
import ee.ristoseene.raytracer.eyebased.core.raytracing.RayTracedState;
import ee.ristoseene.raytracer.eyebased.core... |
package com.layoutstry.android.trythisloyout;
import android.annotation.TargetApi;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.content.res.AssetFileDescriptor;
import android.database.Cursor;
import android.gr... |
package src.main.java;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.OutputStreamWriter;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParse... |
package com.hujiang.project.zhgd.moredian.moredianGroupDeviceConfiguration.controller;
import com.alibaba.fastjson.JSONObject;
import com.hujiang.common.utils.poi.ExcelUtil;
import com.hujiang.framework.aspectj.lang.annotation.Log;
import com.hujiang.framework.aspectj.lang.enums.BusinessType;
import com.hujiang.... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.wso2.developerstudio.eclipse.ds;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Sparql</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* ... |
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 商户的机构配置信息
*
* @author auto create
* @since 1.0, 2016-10-26 17:43:38
*/
public class MerchantInstConfig extends AlipayObject {
private static final long serialVersionUID = 22686... |
package com.example.rentalcarsystem.Adapters;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.rental... |
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and 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
* in the Software without restriction, including without limitation the r... |
package packt.twitterdatascienceproject;
import static java.lang.System.out;
import java.util.Scanner;
import java.util.stream.Stream;
public class ApplicationDriver {
private String topic;
private String subTopic;
private int numberOfTweets;
public ApplicationDriver() {
Scanner scanner = ne... |
/**
* 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 ar.edu.unq.dapp.c2a.persistence.business;
import ar.edu.unq.dapp.c2a.model.business.Business;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.... |
/*
* Copyright © 2021-present Arcade Data Ltd (info@arcadedata.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... |
package com.example.tberroa.girodicerapp.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.example.tberroa.girodicerapp.R;
import com.example.... |
/*
* Copyright (c) 2010 eXtensible Catalog Organization.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the MIT/X11 license. The text of the license can be
* found at http://www.opensource.org/licenses/mit-license.php.
*/
package org.oclc.circill.toolkit.binding.... |
package io.quarkus.resteasy.reactive.server.test.resource.basic;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.nio.charset.StandardCharsets;
import java.util.function.Supplier;
import javax.ws.rs.... |
/*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
package automaton.powers;
import automaton.cards.FunctionCard;
import automaton.vfx.FloatingBronzeOrbEffect;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.animations.VFXAction;
import com.megacrit.cardcrawl.actions.common.DamageAction;
import com.megacrit.cardcrawl.act... |
/*
* Copyright (C) 2014 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... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* Copyright 2012 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 applicab... |
/*
* Copyright 2017 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 agreed to... |
package com.jcommerce.gwt.client.model;
public interface IPaymentConfigFieldMeta {
public static final String LABEL = "label";
public static final String TIP = "tip";
public static final String OPTIONS = "options";
}
|
/*
* (c) Copyright Christian P. Fries, Germany. Contact: email@christian-fries.de.
*
* Created on 24.01.2016
*/
package net.finmath.montecarlo.interestrate.models.covariance;
import java.util.Arrays;
import net.finmath.montecarlo.AbstractRandomVariableFactory;
import net.finmath.stochastic.RandomVariable;
import... |
/*
* Copyright 2018-2019 Expedia Group, 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 ... |
/*
* Datart
* <p>
* Copyright 2021
* <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 law ... |
/*
* 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.
*/
package exaprac2;
import javax.swing.JOptionPane;
import java.util.Scanner;
/**
*
* @author David Marxelly
*/
public c... |
package io.taucoin.net.peerdiscovery;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
im... |
// Targeted by JavaCPP version 1.5.3-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.leptonica;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.leptonica.global.lept.*;
@Properties(inherit = org.bytedeco.leptonica.presets.lept.class)
public... |
/**
* 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.network.v2020_07_01;
import java.util.Collection... |
/*
* 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
* dis... |
package org.julioju.lbstrawmap.repository;
import org.julioju.lbstrawmap.domain.AuthHistory;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;
/**
* Spring Data SQL repository for the AuthHistory entity.
*/
@SuppressWarnings("unused")
@Repository
public interface Au... |
package game;
import logs.Logger;
import logs.Logging;
import messages.*;
import gameControllers.GameControllerListener;
import gameControllers.GameResult;
import gameControllers.InternetGameController;
import gameControllers.OnlineReplayController;
import gui.GUI;
import gui.GameWindow;
import gui.LogsWindow;
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.alibaba.alink.common.ml;
import com.alibaba.alink.common.utils.AlinkSerializable;
import com.alibaba.alink.common.matrix.DenseVector;
public class LinearCoefInfo implements AlinkSerializable {
public String[] featureColNames = null;
public DenseVector coefVector = null;
public DenseVector[] co... |
import java.awt.Desktop;
import java.awt.Desktop.Action;
import java.awt.image.BufferedImage;
import java.awt.image.PixelGrabber;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import javax.imageio.ImageIO;
import net.runelite.mapping.Export;
import net.runeli... |
package ADS.Graph;
public class Node {
// Unique number identifying a node it must be unique
// in a graph
final int nodeNumber; // node number
final String label; // label or name of the node
int discoveryTime; // discovery time used in DFS
int finishingTime; // finishing time " " "
boolean visited; // i... |
package edu.clemson.resolve.jetbrains.actions;
import com.google.common.base.Strings;
import com.intellij.codeInspection.LocalQuickFix;
import com.intellij.execution.ui.ConsoleView;
import com.intellij.execution.ui.ConsoleViewContentType;
import com.intellij.notification.Notification;
import com.intellij.notification.... |
/*
* 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 org.ant.modules.system.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.ant.modules.system.entity.SysDepartRoleUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: 部门角色人员信息
* @Author: ant-boot
* @Date: 2020-02-13
* @Version: V1.0
*/
pub... |
package org.smartregister.repository;
import android.content.ContentValues;
import net.sqlcipher.MatrixCursor;
import net.sqlcipher.database.SQLiteDatabase;
import org.joda.time.DateTime;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Capt... |
package net.floodlightcontroller.orchestrator;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Properties;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import... |
package com.oil.common.constant;
/**
* 用户常量信息
*
* @author oli
*/
public class UserConstants
{
/** 正常状态 */
public static final String NORMAL = "0";
/** 异常状态 */
public static final String EXCEPTION = "1";
/** 用户封禁状态 */
public static final String USER_DISABLE = "1";
/** 角色封禁状态 */
p... |
package com.hncboy;
/**
* @author hncboy
* @date 2022/1/15 14:10
* 1716.计算力扣银行的钱
*
* Hercy 想要为购买第一辆车存钱。他 每天 都往力扣银行里存钱。
* 最开始,他在周一的时候存入 1 块钱。从周二到周日,他每天都比前一天多存入 1 块钱。在接下来每一个周一,他都会比 前一个周一 多存入 1 块钱。
* 给你 n ,请你返回在第 n 天结束的时候他在力扣银行总共存了多少块钱。
*
* 示例 1:
* 输入:n = 4
* 输出:10
* 解释:第 4 天后,总额为 1 + 2 + 3 + 4 = 10 。
*
* 示... |
package org.dbbeans.sql;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* In conjunction with the {@link DBAccess} or {@link DBTransaction} class, you use implementations of this interface to insert the code for setting up
* database updates.
*
* You should create an anonymous inner class (J... |
//
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under
// the terms of the Eclipse Public License 2.0 which is available at
// https://www.eclipse.org/leg... |
package com.github.kiulian.downloader;
import com.alibaba.fastjson.JSONObject;
import com.github.kiulian.downloader.downloader.YoutubeCallback;
import com.github.kiulian.downloader.downloader.YoutubeProgressCallback;
import com.github.kiulian.downloader.downloader.request.*;
import com.github.kiulian.downloader.downlo... |
/*
* Copyright (C) 2018 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... |
// https://leetcode.com/problems/first-bad-version/
/* The isBadVersion API is defined in the parent class VersionControl.
boolean isBadVersion(int version); */
public class Solution extends VersionControl {
public int firstBadVersion(int n) {
int start = 0, end = n;
while(start < end) {
... |
package sagan.blog.support;
import sagan.support.github.GitHubClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* A {@link MarkdownService} based on the GitHub Markdown rendering API.
*/
@Service
class DefaultMarkdownService implements Markdow... |
package com.danubetech.cborld.codecs;
import com.danubetech.cborld.Transformer;
import com.danubetech.cborld.util.TermInfo;
import com.google.api.client.util.DateTime;
import com.upokecenter.cbor.CBORObject;
public class XsdDateEncoder extends AbstractCborLdEncoder<String> {
public XsdDateEncoder(String value, T... |
package p;
//(-import)
import other.C;
public class A {
//+import r.B.Inner
Inner i;
//+import r.B
A.Inner ii;
p.A.Inner iii;
public static int a;
public static class Inner {
//move to r.B
Inner buddy;
public Inner(A.Inner other) {
// ^ is direct... |
/*
* Copyright (C) 2013 The Android Open Source Project
* Copyright (C) 2013 Jacek Marchwicki <jacek.marchwicki@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
*
* htt... |
// Targeted by JavaCPP version 1.5.7-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.opencv.opencv_dnn;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.openblas.global.openblas_nolapack.*... |
/**
* Provides super-interfacies, SECS-Simulator.
*/
/**
* @author kenta-shimizu
*
*/
package com.shimizukenta.secssimulator;
|
/*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* Unless required by... |
package pro.jiefzz.ejoker.common.utils.relationship;
public class SData3 {
private boolean b1;
private char c1;
public boolean isB1() {
return b1;
}
public char getC1() {
return c1;
}
public SData3(boolean b1, char c1) {
this.b1 = b1;
this.c1 = c1;
}
public SData3() {
}
}
|
package com.beibeiMajor.web.controller;
import com.beibeiMajor.common.annotation.ApiLogin;
import com.beibeiMajor.common.core.controller.BaseController;
import com.beibeiMajor.common.core.domain.AjaxResult;
import com.beibeiMajor.common.utils.DateUtils;
import com.beibeiMajor.common.utils.StringUtils;
import com.beibe... |
package org.gensis0.lib.dacia.commons.data;
import java.io.InputStream;
public interface DACIADataConvertorPos<DATA extends DACIAOriginData> {
public DATA convertToOriginData(InputStream in, DACIASupportedDataType dataType, String encode) throws Exception;
}
|
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... |
package me.relex.circleindicator.sample.fragment;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import me.relex.circleindicato... |
/**
* Copyright 2017 - 2018 Syncleus, 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... |
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
/*
* 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.zhbit.entity;
/**
* 项目名称:ElecRecord
* 类名称:FileInfo
* 类描述: 模块文件信息
* 创建人:谭柳
* 创建时间:2016年6月22日 上午11:06:25
* 修改人:TanLiu
* 修改时间:2016年6月22日 上午11:06:25
* 修改备注:
* @version
*/
public class Model {
String id;
String fileName;
String filePath;
String creator;
publi... |
package com.doc.viewer;
import com.google.gson.Gson;
public class DocViewerUtil {
private final static String BASE_URL = "https://console.cloud-elements.com/elements/api-v2/";
private final static String DOC_URL ="hubs/documents/";
private final static String FILE_URL="files?path=/";
private final static Stri... |
package com.communote.server.persistence.security.ssl;
/**
* @see com.communote.server.model.security.ChannelConfiguration
*
* @author Communote GmbH - <a href="http://www.communote.com/">http://www.communote.com/</a>
*/
public interface ChannelConfigurationDao {
/**
* This constant is used as a transform... |
package dev.spiritworker.game.character;
import dev.spiritworker.Constants;
import dev.spiritworker.database.DatabaseHelper;
import dev.spiritworker.game.inventory.Inventory;
import dev.spiritworker.game.inventory.Item;
import dev.spiritworker.game.inventory.data.BankUpgradeData;
import dev.spiritworker.game.inventory... |
/**
*
*/
package fr.eni.ecole.projet_enchere.dal.jdbc;
import java.util.Properties;
/**
* @author Eni Ecole
*
*/
public class Settings {
private static Properties properties;
static {
try {
properties = new Properties();
properties.load(Settings.class.getResourceAsStream("settings.properties"));
... |
package osd;
import static org.junit.Assert.assertEquals;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.junit.Test;
public class ExceptionTest {
/*
* test file missing
*/
@Test
public void testMissingFile() throws IOException {
CmdLC cmdLC = new CmdLC();
try {
... |
package com.qiudao.demo.mvcModule.converter;
import com.qiudao.demo.domain.PhoneNumberModel;
import org.springframework.core.convert.converter.Converter;
/**
* Created by hdfs on 2016/6/1.
*/
public class PhoneNumberToStringConverter implements Converter<PhoneNumberModel, String> {
@Override
public String c... |
package com.bluesoft.piko.maps.location.messaging;
import com.bluesoft.piko.maps.location.LocationsService;
import com.bluesoft.piko.maps.location.json.DetailedJsonLocation;
import com.bluesoft.piko.maps.location.json.JsonLocation;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.AllArgsConstructor;
i... |
package hr.fer.bioinf.bioinf;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import org.javatuples.Pair;
public class PafReader {
final double SIMILARITY_CUTOFF_PERCENTAGE = 66.0, OVERHANG_PERCENTAGE = 30.0;
private ArrayLi... |
package io.reactivex.internal.operators.completable;
import io.reactivex.Completable;
import io.reactivex.CompletableObserver;
import io.reactivex.CompletableSource;
import io.reactivex.disposables.Disposable;
import io.reactivex.exceptions.CompositeException;
import io.reactivex.exceptions.Exceptions;
import io.react... |
/* 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) 2017, Oracle and/or its affiliates.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this ... |
/**
* vertigo - application development platform
*
* Copyright (C) 2013-2022, Vertigo.io, team@vertigo.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/li... |
/*
* Copyright (c) 2008-2016, GigaSpaces 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
*
* Un... |
/*
* 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 ... |
/*
* JaamSim Discrete Event Simulation
* Copyright (C) 2014 Ausenco Engineering Canada 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/LICE... |
/*
* Copyright DataStax, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... |
/***************************************************************************
* Copyright 2017 Kieker Project (http://kieker-monitoring.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... |
import org.junit.Assert;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class SquirtleTest {
static final int BASE_ATTACK = 112;
static final int BASE_DEFENSE = 142;
static final int BASE_STAMINA = 88;
static final String[] SQUIRTLE_FAST_ATTACKS = {"Bubble", ... |
package com.example.android.quakereport;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import ja... |
package org.schhx.acm.linkedList;
import org.schhx.acm.Node;
import java.util.Random;
/**
* @author shanchao
* @date 2019-03-11
*/
public class LinkedListUtil {
public static Node generateIntLinkedList(int length, int max){
Random random = new Random();
Node dummyHead = new Node(0);
N... |
/*
* Copyright (C) 2004 Joe Walnes.
* Copyright (C) 2006, 2007, 2013, 2014, 2018 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
* Created on... |
/*-
* #%L
* **********************************************************************
* ORGANIZATION : Pi4J
* PROJECT : Pi4J :: PLUGIN :: Mock Platform & Providers
* FILENAME : module-info.java
*
* This file is part of the Pi4J project. More information about
* this project can be found here: htt... |
/**
* Copyright (c) 2004-2011 Wang Jinbao(Julian Wong), http://www.ralasafe.com
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
/*
* This class was automatically generated with
* <a href="http://www.castor.org">Castor 1.2</a>, using an XML
* Schema.
* $Id: BinaryExprDescr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.