text stringlengths 7 995k |
|---|
package life.catalogue.importer.neo;
import life.catalogue.common.util.LoggingUtils;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.Transaction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.List;
import ja... |
package typerule;
import static org.junit.Assert.assertEquals;
import java.util.*;
import chocopy.pa2.common.analysis.FuncDefSymbolTable;
import org.junit.jupiter.api.*;
import chocopy.common.analysis.*;
import chocopy.common.analysis.types.*;
import chocopy.common.astnodes.*;
import chocopy.pa2.*;
import java_cup.... |
package nl.pim16aap2.armoredElytra.util;
public enum AllowedToWearEnum {
BROKEN, NOPERMISSION, ALLOWED
} |
package com.example.simpleres;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void ... |
package org.opengis.cite.infragml10.level1;
import java.io.IOException;
import java.net.URL;
import javax.xml.transform.Source;
import javax.xml.transform.dom.DOMSource;
import org.opengis.cite.infragml10.CommonFixture;
import org.opengis.cite.infragml10.ErrorMessage;
import org.opengis.cite.infragml10.ErrorMessageKey... |
package org.jdraft;
import java.util.Objects;
import junit.framework.TestCase;
/**
*
* @author Eric
*/
public class EquivalentTest extends TestCase {
public void testS(){
assertEquals( m1, m1a);
assertEquals( m2, m2a);
/*
m1.tokenize().forEach((s, o)-> {
... |
package it.unitn.ds1.project.message;
import akka.actor.ActorRef;
import java.util.List;
public class DSSWelcomeMsg {
public final List<ActorRef> dss;
public DSSWelcomeMsg(List<ActorRef> dss) {
this.dss = List.copyOf(dss);
}
} |
package com.hujing.nanchangnews.adapter;
import android.support.v7.widget.RecyclerView;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseItemDraggableAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hujing.nanchangnews.R;
import com.huj... |
package testcases.CWE611_XML_External_Entities_DocumentBuilder;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.Test;
import org.xml.sax.SAXParseException;
public class Test_CWE611_XML_External_Entities__DocumentBuilder_06 {
@T... |
package com.aisiweather.android;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLay... |
/**
* 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 2017 Zhihu 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 ... |
/*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
/**
* Copyright (C) 2010 the original author or authors.
* See the notice.md file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... |
/*
*
* This file is part of the iText (R) project.
Copyright (c) 1998-2017 iText Group NV
* Authors: Bruno Lowagie, Paulo Soares, et al.
*
* 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 ... |
/*
* File: CountLetterFrequencies.java
* ---------------------------------
* This program counts the frequency of letters in user-entered text.
*/
import acm.program.*;
/**
* This program creates a table of the letter frequencies in a
* paragraph of input text terminated by a blank line.
*/
public class CountL... |
package org.scn.community.htmlgenerator;
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.List;
import org.scn.community.spec.orgin.OrginSpec;
import org.scn.community.utils.Helpers;
import sun.security.provider.MD5;
public class ZtlFunction {
private final String currentFunction;
... |
/*
* Copyright 2008-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 app... |
package com.coderhouse.session.eight.plain.functions.objects;
import com.coderhouse.session.eight.plain.functions.Behaviour;
public class Cat extends Animal implements Behaviour<Cat> {
public Cat(String name) {
super(name, "miau");
}
@Override
public Cat copy(Cat source) {
this.setNa... |
/********************************************************************************
* Copyright (c) 2020 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/e... |
package com.shenhua.openeyesreading.activity;
import android.content.Intent;
import android.os.Handler;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.ActivityOptionsCompat;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.GridLayoutManager;
import andr... |
package geeksammao.bingyan.net.imageloader;
import android.app.Application;
/**
* Created by Geeksammao on 1/8/16.
*/
public class MyApplication extends Application {
private static MyApplication instance;
public static MyApplication getInstance() {
return instance;
}
@Override
public ... |
package lasereyes;
import org.bukkit.Location;
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer;
import org.bukkit.entity.Player;
import net.minecraft.server.v1_8_R3.EnumParticle;
import net.minecraft.server.v1_8_R3.PacketPlayOutWorldParticles;
public class LaserEyesUtils_v1_8 {
public static void spawnPa... |
/*
* Copyright 2008-2012 Amazon Technologies, 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://aws.amazon.com/apache2.0
*
* This file is distributed on an "AS IS" ... |
package dev.yavuztas.samples.solid.srp;
import dev.yavuztas.samples.solid.srp.model.LoginType;
import dev.yavuztas.samples.solid.srp.model.User;
/**
* Login manager implementation for authenticating user from a remote db.
* Authenticate method is assumed to be implemented here...
*
* @author Yavuz Tas
*
*/
pub... |
/*
* Copyright 2009 Denys Pavlov, Igor Azarnyi
*
* 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 b... |
/*
* Copyright (c) 2009-2018, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions... |
package sk.services.rand;
/*-
* #%L
* Swiss Knife
* %%
* Copyright (C) 2019 Core General
* %%
* 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/... |
package ThreeSumClosest;
import java.util.*;
public class ThreeSumCloest {
public static void main(String[] args){
int[] nums = {-4,-1,1,2};
System.out.println(threeSUmClosest(nums, 1));
}
public static int threeSUmClosest(int[] nums, int target){
Arrays.sort(nums);
int... |
/*
* (C) Copyright 2014-2017 Nuxeo (http://nuxeo.com/) and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
package wroom.authservice.exception;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.authentication.Dis... |
/**
* 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 ... |
/*
* Copyright (C) 2011 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... |
package org.jcodec.codecs.vpx.vp8.enums;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License.
*
* The class is a direct java port of libvpx's
* (https://github.com/webmproject/libvpx) relevant VP8 code with significant
* java oriented refactoring.
*
* @a... |
package org.apache.gora.memory.store;
import org.apache.gora.examples.generated.WebPage;
import org.apache.gora.store.DataStore;
import org.junit.Test;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assume.assumeTrue;
public class MemStoreTest {
@T... |
package com.tatadigital.training;
import java.util.HashMap;
import org.testng.annotations.Test;
import com.qaprosoft.carina.core.foundation.AbstractTest;
import com.qaprosoft.carina.core.foundation.api.http.HttpResponseStatusType;
import com.qaprosoft.carina.core.foundation.dataprovider.annotations.XlsDataSourceParam... |
package _08PokemonTrainer;
/**
* Created by IntelliJ IDEA.
* User: LAPD
* Date: 14.6.2018 г.
* Time: 21:22 ч.
*/
public class Pokemon {
private String name;
private String element;
private int health;
public Pokemon() {
}
public Pokemon(String name, String element, int health) {
... |
package org.ethereum.core;
import org.ethereum.core.Bloom;
import org.ethereum.core.Transaction;
import org.ethereum.core.TransactionReceipt;
import org.ethereum.util.RLP;
import org.ethereum.util.RLPElement;
import org.ethereum.util.RLPItem;
import org.ethereum.util.RLPList;
import org.ethereum.vm.LogInfo;
import ja... |
package jp.gedorinku.oblategles.graphics.shader;
import android.opengl.GLES20;
import jp.gedorinku.oblategles.graphics.GLESError;
import jp.gedorinku.oblategles.graphics.GLESException;
import jp.gedorinku.oblategles.graphics.utils.DebugHelper;
public class ShaderProgram {
private int location;
private int v... |
/*
* Copyright 2002-2013 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.crown.project.demo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Report
*
* @author Crown
*/
@Controller
@RequestMapping("/demo/report")
public class DemoRepo... |
/*
* 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.onarandombox.multiverseinventories.command;
import com.onarandombox.multiverseinventories.MultiverseInventories;
import com.onarandombox.multiverseinventories.WorldGroup;
import com.onarandombox.multiverseinventories.locale.Message;
import com.onarandombox.multiverseinventories.util.Perm;
import org.bukkit... |
package xyz.klenkiven.kmall.order.model.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.DateSerializer;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.mat... |
package com.example.instagramclone;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.StaggeredGridLayoutManager;
// RV Endless scroll listener provided to us. This code ... |
package com.java110.code;
import com.java110.core.annotation.Java110ListenerDiscovery;
import com.java110.core.event.service.BusinessServiceDataFlowEventPublishing;
import com.java110.service.init.ServiceStartInit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplicati... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Twineworks GmbH
*
* 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 u... |
package net.nocturne.executor;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
public final class LoginExecutorManager {
public static boolean workerShutdown;
public static LoginThread thread;
public static ScheduledExecutorService authsExecutor;
public static void i... |
package cn.year2020.access.modifier2;
import cn.year2020.access.modifier1.ParentClass;
/**
* 功能描述
*
* @author chy
* @date 2020/5/26 0026
*/
public class ChildClassTwo extends ParentClass {
public static void main(String[] args) {
// 由于不在同一个包中,default不可见
ChildClassTwo obj = new ChildClassTwo(... |
/*
* Copyright 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
*
* Unless required by applicable l... |
/*
* Licensed to ObjectStyle LLC under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ObjectStyle LLC licenses
* this file to you under the Apache License, Version 2.0 (the
* "License"); you may not u... |
/*******************************************************************************
* Copyright 2014 Tob
*
* 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/lice... |
/*
* Copyright (C) 2007 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* 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... |
package element;
import java.util.Date;
/**
* This class is responsible for the specialization of a generic html element
* */
public class documentElement extends htmlElement
{
private String src;
private String thumbnail;
private StringBuilder content = new StringBuilder();
private static final int ... |
package honkhonk.threadwatch.activities;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.c... |
package com.github.walterfan;
import com.github.walterfan.swing.ActionHandlerFactory;
import com.github.walterfan.swing.EntrySelectListener;
import com.github.walterfan.swing.KeyValueTablePane;
import com.github.walterfan.swing.SwingTool;
import com.github.walterfan.swing.SwingUtils;
import com.github.walterfan.swing... |
package com.newbilius.simpleweatherwidget;
import android.widget.RemoteViews;
public class WeatherWidgetUpdateHelper {
private final RemoteViews widgetView;
public WeatherWidgetUpdateHelper(RemoteViews widgetView){
this.widgetView = widgetView;
}
public void UpdateDate(int numberOfColumn,Str... |
package com.appium.tests;
import cucumber.api.CucumberOptions;
import cucumber.api.testng.AbstractTestNGCucumberTests;
/**
* @author abhilash.sharma
*
* Cucumber Tags:
* 1. Run the test with single tag:
* tags = {"@sanity"}
* 2. Run the test with multiple tag -OR- condition (keep the tag name in single string)... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Autogenerated by Thrift Compiler (0.9.3) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */
end_comment
begin_package
package|package
name|org
operator|.
name|apache
operator|.
name|hadoop
o... |
package com.lorence.myapp.web.rest;
import com.lorence.myapp.QQuitApp;
import com.lorence.myapp.domain.HrReps;
import com.lorence.myapp.repository.HrRepsRepository;
import com.lorence.myapp.web.rest.errors.ExceptionTranslator;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... |
package ir.geeglo.dev.store.data.dao;
import java.util.List;
public class QueryConditionStruct<T> {
private String field;
private List<T> filters;
private FilterType filterType;
public QueryConditionStruct() {
}
public QueryConditionStruct(String field, List<T> filters) {
this(field,... |
/* InitialContextFactory.java --
Copyright (C) 2000, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or... |
package com.stalkedbythestate.sbts.sbtsdevice.config;
// Copyright (c) 2021 Kim Hendrikse
import org.w3c.dom.Document;
import org.w3c.dom.Element;
public class EmailConfig {
private EmailProvider emailProvider;
public void addEmailConfig(Document doc, Element parent) {
if (emailProvider == null || emailProvide... |
package org.paasta.container.platform.web.user.persistentVolumeClaims.support;
import lombok.Data;
import org.paasta.container.platform.web.user.common.model.CommonLabelSelector;
import org.paasta.container.platform.web.user.common.model.CommonResourceRequirement;
import org.paasta.container.platform.web.user.common.m... |
/*
* Encog(tm) Core v3.3 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2014 Heaton Research, 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... |
package org.bukkit.inventory;
/**
* Interface to the crafting inventories
*/
public interface CraftingInventory extends Inventory {
/**
* Check what item is in the result slot of this crafting inventory.
*
* @return The result item.
*/
ItemStack getResult();
/**
* Get the conte... |
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 lice... |
import java.util.Scanner;
public class TestBTree {
public static void main(String[] args) {
// Ler arvore de inteiros em preorder
Scanner in = new Scanner(System.in);
BTree<Integer> t = LibBTree.readIntTree(in);
// Escrever resultado de chamada a alguns metodos
System.out.println("num... |
package me.solby.xquartz.service.impl;
import me.solby.xquartz.exception.QuartzException;
import me.solby.xquartz.service.QuartzService;
import org.quartz.CronScheduleBuilder;
import org.quartz.CronTrigger;
import org.quartz.Job;
import org.quartz.JobBuilder;
import org.quartz.JobExecutionContext;
import org.quartz.Jo... |
package com.roamtech.uc.cache.model;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.alibaba.fastjson.annotation.JSONField;
public class AvailableServiceRDO implements Serializable {
private static final long serialVersionUID = 1L;
@JSONField(name = "servicepackages")
priva... |
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (5.4.0-SNAPSHOT).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.api;
import org.openapitools.model.ModelApiResponse;
import org.openapitools.model.Pet;
import io.swagger.a... |
//
// ========================================================================
// 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 org.testng.internal.thread;
/**
* Reduced interface to mimic an ExecutorService.
*
* @author <a href='mailto:the_mindstorm@evolva.ro'>Alexandru Popescu</a>
*/
public interface IExecutor {
IFutureResult submitRunnable(Runnable runnable);
void shutdown();
boolean awaitTermination(long timeout);
vo... |
package com.tuling.version1;
import lombok.Data;
import lombok.ToString;
/**
* Created by smlz on 2019/3/22.
*/
public class Employee {
private Integer id;
private String lastName;
private String email;
private Integer gender;
private Integer deptId;
@Override
public String toString() {
... |
/*
* Copyright (c) 2016, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
package com.salesforce.marketingcloud.android.demoapp.data;
import com.google.android.g... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.06.26 at 03:19:0... |
package com.melt.star.model;
public enum CarType {
SPORT_CAR, TRUCK, SEDAN
} |
/**
* Copyright 2018 ADLINK Technology Limited.
*
* 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 o... |
/**
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
*
* The Apereo Foundation licenses this file to you under the Educational
* Community License, Version 2.0 (the ... |
package org.omg.PortableServer;
/**
* org/omg/PortableServer/RequestProcessingPolicyOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from /Users/jenkins/workspace/build-scripts/jobs/jdk8u/jdk8u-mac-x64-hotspot/workspace/build/src/corba/src/share/classes/org/omg/PortableServer/poa.... |
package com.twu.biblioteca;
import org.junit.Test;
import static org.junit.Assert.*;
public class BookTest {
private Book book = new Book(1,"Huckleberry Finn", 1884, true, "Mark Twain");
private Book bookUnavailable = new Book(2,"Little Women", 1844, false, "Louise May Alcott" );
@Test
public void c... |
package com.xebialabs.ecommerce.config;
import io.github.jhipster.async.ExceptionHandlingAsyncTaskExecutor;
import io.github.jhipster.config.JHipsterProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
import org.springframework... |
package me.ele.bspatch.demo;
import android.os.Bundle;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.Toast;
import me.ele.bspatch.Patcher;
public class MainActivity extends AppCompatActivity {
private static final String TAG = Main... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int combustivel = sc.nextInt();
int alcool = 0;
int gasolina = 0;
int diesel = 0;
while (combustivel != 4) {
if (combustivel < 1 && combustivel > 4) {
combustivel ... |
package com.lynda.javatraining;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import com.lynda.javatraining.olives.Golden;
import com.lynda.javatraining.olives.Kalamata;
import com.lynda.javatraining.olives.Ligurio;
import com.lynda.javatraining.olives.Olive;
import com.lynda.ja... |
/*
* Copyright 2016-present Open Networking Laboratory
*
* 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 appli... |
package org.lionsoul.jcseg.test;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.FilenameFilter;
import java.io.IOException;
import org.lionsoul.jcseg.util.IStringBuffer;
import org.lionsoul.jcseg.util.STConverter;... |
package com.algorand.algosdk.v2.client.model;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import com.algorand.algosdk.v2.client.common.PathResponse;
import com.fasterxml.jackson.annotation.JsonProperty;
public class AssetBalancesResponse extends PathResponse {
@JsonProperty("bal... |
package com.github.yizhishang.sensitive.annotation.strategy;
import com.github.yizhishang.sensitive.annotation.metadata.SensitiveStrategy;
import com.github.yizhishang.sensitive.api.impl.SensitiveStrategyBuiltIn;
import java.lang.annotation.*;
/**
* 手机号脱敏注解
* @author binbin.hou
* date 2019/1/9
* @since 0.0.2
*/... |
/**
* Copyright © 2016-2017 The Thingsboard 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... |
package io.agora.rtc.mediaio.app.rtcEngine;
public interface AGEventHandler {
void onFirstRemoteVideoDecoded(int uid, int width, int height, int elapsed);
void onJoinChannelSuccess(String channel, int uid, int elapsed);
void onUserOffline(int uid, int reason);
} |
package com.google.android.gms.fitness.data;
import android.os.RemoteException;
import com.google.android.gms.fitness.data.C0992k;
import com.google.android.gms.fitness.request.OnDataPointListener;
import com.google.android.gms.internal.C1785jx;
import java.util.HashMap;
import java.util.Map;
/* renamed from: com.goo... |
package com.google.api.ads.adwords.jaxws.v201605.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Defines the elements within the header of a SOAP response.
*
*
* <p>Java class for Soa... |
/*
* Copyright (c) 2019 by European Commission
*
* Licensed under the EUPL, Version 1.2 or - as soon they will be
* approved by the European Commission - subsequent versions of the
* EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at... |
/**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2022 Ruhr University Bochum, Paderborn University, Hackmanit GmbH
*
* Licensed under Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
package de.rub.nds.tlsattacker.core.exceptions;
public cla... |
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.edasmsc20200323.models;
import com.aliyun.tea.*;
public class UpdateAuthPolicyRequest extends TeaModel {
@NameInMap("Name")
public String name;
@NameInMap("Source")
public String source;
@NameInMap("Id")
@Validation(re... |
package com.kapcb.ccc.controller;
import com.kapcb.ccc.service.IApiThreadPoolService;
import lombok.RequiredArgsConstructor;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.scheduling.concurrent.CustomizableThreadFactory;
import org.springframework.stereot... |
/*
Copyright (C) 2013-2018 Expedia 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... |
package com.gkaraffa.cremona.theoretical;
import java.util.HashMap;
public enum IntervalNumber {
FIRST(0, "First", "1st", "Tonic"),
SECOND(1, "Second", "2nd", "Supertonic"),
THIRD(2, "Third", "3rd", "Mediant"),
FOURTH(3, "Fourth", "4th", "Subdominant"),
FIFTH(4, "Fifth", "5th", "Dominant"),
SIXTH(5, "Sixt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.