text
stringlengths
7
1.01M
/* * JBoss, Home of Professional Open Source * Copyright 2012, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
package mob.test; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import mob.model.MobClass; import mob.model.MobMetaClass; import mob.sinterpreter.MobEnvironment; import mob.sinterpreter.MobInterpreter; class MobEnvironmentTest { static ...
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 单笔转账的结果 * * @author auto create * @since 1.0, 2018-10-10 21:05:55 */ public class TransOrderResult extends AlipayObject { private static final long serialVersionUID = 632517284...
package lemon.jpizza.compiler.values.functions; import lemon.jpizza.compiler.types.Type; import lemon.jpizza.compiler.types.Types; import lemon.jpizza.compiler.values.Value; public class JNative { public interface Method { NativeResult call(Value[] stack); } final String name; final Method m...
package de.dc.javafx.xcore.workbench.chart.ui.renderer; import java.awt.BasicStroke; import java.awt.Color; import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; import org.eclipse.emf.common.util.EList; import org.gillius.jfxutils.chart.ChartPanMan...
package com.michelle; public class Date { private int month; private int day; private int year; public Date(int month, int day, int year) { super(); this.setMonth(month); this.setDay(day); this.setYear(year); } public int getMonth() { return month; } public int getDay() { return day; } publ...
import java.util.Scanner; public class Reprint { public static void main(String[] args) { // ask the user for how many times should the text be printed // then call the printText-method multiple times with a while-loop Scanner scanner = new Scanner(System.in); System.out....
/* * 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 p; class A { { for (int i = new int[] {}.length; i < new int[] {}.length; new int[] {}[i] = i) ; } }
package com.planet_ink.coffee_mud.Races; import com.planet_ink.coffee_mud.Libraries.interfaces.*; import com.planet_ink.coffee_mud.Libraries.interfaces.AbilityMapper.AbilityMapping; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.co...
/* * MIT License * * Copyright (c) 2010 - 2021 The OSHI Project Contributors: https://github.com/oshi/oshi/graphs/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...
/* * 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 (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
/* * Copyright (C) 2017, Ulrich Wolffgang <ulrich.wolffgang@proleap.io> * All rights reserved. * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ package io.proleap.vb6.asg.metamodel.valuestmt.impl; import io.proleap.vb6.VisualB...
package mb.flowspec.runtime.solver; public class UnimplementedException extends RuntimeException { public UnimplementedException(String string) { super("Unimplemented: " + string); } }
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
/* * Copyright (C) 2017-2018 Dremio Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
package io.github.aweiland.oauth4j.provider.oauth2; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; import io.github.aweiland.oauth4j.provider.flow.AuthStart; impor...
/** * 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...
/* * Autopsy Forensic Browser * * Copyright 2011-2018 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...
/* Derby - Class org.apache.derbyTesting.functionTests.tests.lang.errorStream Copyright 2001, 2005 The Apache Software Foundation or its licensors, as applicable. 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...
java util collection java util linked list linkedlist foo comparable foo collection linked list linkedlist list linked list linkedlist linked list linkedlist string list linked list linkedlist string foo list invoke foo list
package com.lixin.litemall.allinone; 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.core.env.Environment; import org.springframework.test.context.junit4.Spring...
package me.screret.betternec.tweaker.utils; import me.screret.betternec.tweaker.PreTransformationChecks; import org.objectweb.asm.Opcodes; import org.objectweb.asm.tree.FieldInsnNode; public enum TransformerField { // GuiScreen width("width", "field_146294_l", "l", "I"), height("height", "field_146295_m"...
/* * Copyright 2019 GridGain Systems, Inc. and Contributors. * * Licensed under the GridGain Community Edition License (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.gridgain.com/products/software/community-edition...
package origami.filters; import org.opencv.core.Mat; import org.opencv.core.Point; import org.opencv.core.Scalar; import origami.Filter; import static org.opencv.imgproc.Imgproc.FONT_HERSHEY_PLAIN; import static org.opencv.imgproc.Imgproc.putText; public class FPS implements Filter { long start = System.currentT...
package store.database.manager; import advise.counter.ClassCounter; import advise.counter.GeneralCounter; import advise.counter.MethodCounter; import advise.processor.BeanCounterProcessor; import client.domain.BeanCounterParam; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import config.BeanCounterConfig; i...
/* * Copyright 2020 The RoboZonky 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 applicable law or ...
package me.velz.spawnerbreaker.listeners; import me.velz.spawnerbreaker.SpawnerBreaker; import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.block.CreatureSpawner; import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukki...
/* * Copyright 2017-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package ru.wobot.uri.impl; import java.io.UnsupportedEncodingException; import java.net.URI; import java.net.URLDecoder; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.LinkedHashMap; import java.util.Map; public class ParsedUri { private final C...
package org.apereo.cas.oidc.jwks; import org.apereo.cas.oidc.AbstractOidcTests; import org.junit.Test; import static org.junit.Assert.*; /** * This is {@link OidcDefaultJsonWebKeystoreCacheLoaderTests}. * * @author Misagh Moayyed * @since 5.3.0 */ public class OidcDefaultJsonWebKeystoreCacheLoaderTests extends...
package com.android.todolist; import android.content.Context; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import java.text.DateF...
/* * Copyright 2012-2017 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) 2012 - 2014 Xeiam LLC http://xeiam.com * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy,...
package cn.code.chameleon.selector; import java.util.List; /** * @author liumingyu * @create 2018-04-11 下午3:07 */ public interface Selectable { Selectable $(String selector); Selectable $(String selector, String attrName); Selectable css(String selector); Selectable css(String selector, String ...
/* * Copyright 2011-2016 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...
/** * Implementation of Spring Social's Service API for Keycloak */ package org.springframework.social.keycloak.api.impl;
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Client.proto package org.apache.hadoop.hbase.protobuf.generated; public final class ClientProtos { private ClientProtos() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interfa...
package net.menthor.antipattern.wizard.reprel; import java.util.ArrayList; import net.menthor.antipattern.reprel.RepRelOccurrence; import net.menthor.antipattern.wizard.AntiPatternAction; import RefOntoUML.Mediation; public class RepRelAction extends AntiPatternAction<RepRelOccurrence>{ public RepRelActi...
//==================================================================== // // File: $RCSfile: Generator.java,v $ // Version: $Revision: 1.23 $ // Modified: $Date: 2013/01/10 23:43:41 $ // // (c) Copyright 2004-2014 by Mentor Graphics Corp. All rights reserved. // //======================================...
/** * 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.lpq.mail.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface UserLoginToken { ...
package datadog.trace.bootstrap; import datadog.trace.api.GenericClassValue; /** * Utility to track nested instrumentation. * * <p>For example, this can be used to track nested calls to super() in constructors by calling * #incrementCallDepth at the beginning of each constructor. */ public class CallDepthThreadL...
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.hdf5; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.javacpp.presets.javacpp.*; import static org.bytedeco.hdf5.global.hdf5.*; /** \class H5Location ...
package b01.l3.drivers.coulter; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Iterator; import java.util.Properties; import b01.foc.Globals; import b01.foc.util.ASCII; import b01.foc.util.Int2ByteConverter; import b01.l3.DriverSerialPort; import b01.l3.Instrument; import b01.l3.Instrument...
/* * 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 ...
/* * ApplicationInsights-Java * Copyright (c) Microsoft Corporation * All rights reserved. * * MIT License * 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, inclu...
/* * Chromer * Copyright (C) 2017 Arunkumar * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program ...
package moze_intel.projecte.network; import moze_intel.projecte.PECore; import net.minecraft.client.entity.player.ClientPlayerEntity; import net.minecraft.util.text.ITextComponent; import net.minecraft.util.text.StringTextComponent; import net.minecraft.util.text.TranslationTextComponent; import net.minecraft.util.tex...
/* * This file was automatically generated by EvoSuite * Thu Sep 26 02:33:42 GMT 2019 */ package org.apache.commons.lang3.builder; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle; im...
import proxy.Ioc; import proxy.TestLogging; public class Main { public static void main(String[] args) { TestLogging testLogging = Ioc.create(); testLogging.calculation(1, 2); testLogging.calculation(1, 2, 3); testLogging.multiplication(2, 2); } }
/* * 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...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.idea.maven.externalSystemIntegration.output; import com.intellij.build.events.BuildEvent; import com.intellij.build.events.impl.FailureResultImpl; import co...
/* * 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 net.codingarea.challenges.plugin.challenges.custom.settings.trigger.impl; import net.codingarea.challenges.plugin.challenges.custom.settings.trigger.AbstractChallengeTrigger; import org.bukkit.Material; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.player....
package water.compiler.compiler; /** * What the compiler is currently compiling * - the top level declarations, within a function, or within a class */ public enum ContextType { GLOBAL, CLASS, FUNCTION }
package com.atsjh.gulimall.seckill.service; import com.atsjh.gulimall.seckill.to.SeckillSkuRedisTo; import java.util.List; /** * @author: sjh * @date: 2021/7/16 下午1:44 * @description: */ public interface SecKillService { void uploadSeckillSkuLatest3Days(); List<SeckillSkuRedisTo> getCurrentSeckillSkus()...
/* * oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ package org.gluu.model; public class TrustContact implements java.io.Serializable { private static final long serialVersionUID = -3268590744030750954L; private Stri...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.externalSystem.service.project.manage; import com.intellij.openapi.Disposable; import com.intellij.openapi.actionSystem.Shortcut; import com.intellij...
package net.minecraft.world.level.block; import java.util.Iterator; import java.util.Random; import java.util.function.Supplier; import net.minecraft.core.BlockPosition; import net.minecraft.server.level.WorldServer; import net.minecraft.tags.Tag; import net.minecraft.tags.TagsBlock; import net.minecraft.world.level.I...
package com.beautiful.mall01.mbg.mapper; import com.beautiful.mall01.mbg.model.UmsMemberReceiveAddress; import com.beautiful.mall01.mbg.model.UmsMemberReceiveAddressExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsMemberReceiveAddressMapper { int countByExample(UmsMe...
/* * Copyright 2016 Google 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 by applicable law...
package com.prowidesoftware.swift.model.mx.dic; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import org.apache.commons.lang3.build...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
package org.cosmicode.freelancr.config; import io.github.jhipster.config.JHipsterConstants; import io.github.jhipster.config.liquibase.AsyncSpringLiquibase; import liquibase.integration.spring.SpringLiquibase; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation...
/* * Copyright 2020 The Closure Compiler 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...
package com.ray3k.template.entities; import com.badlogic.gdx.utils.Array; import java.util.Comparator; public class EntityController { public Array<Entity> entities; public Comparator<Entity> depthComparator; private Array<Entity> sortedEntities; public EntityController() { entities = ne...
package test; import org.junit.AfterClass; import org.junit.BeforeClass; import com.fourspaces.featherdb.FeatherDB; import com.fourspaces.featherdb.backend.Backend; import com.fourspaces.featherdb.backend.BackendException; import com.fourspaces.featherdb.backend.FileSystemBackend; import com.fourspaces.feath...
package repotools.utilities; // TODO: Auto-generated Javadoc /** * The Class Console. */ public class Console { public Console() { silent = false; detail = false; } public void write(String message) { if (silent == false) { System.out.print(message); } } public void writeLine(String message) ...
/** * */ package be.witmoca.BEATs.ui.discovery; import java.util.ArrayList; import java.util.List; import javax.swing.ListModel; import javax.swing.event.ListDataEvent; import javax.swing.event.ListDataListener; import be.witmoca.BEATs.utils.BEATsSettings; /* * +==================================================...
/******************************************************************************* * 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...
/* * 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.gradoop.flink.io.impl.parquet; import org.apache.flink.api.java.ExecutionEnvironment; import org.gradoop.flink.io.api.DataSink; import org.gradoop.flink.io.api.DataSource; import org.gradoop.flink.io.impl.parquet.protobuf.ProtobufParquetDataSink; import org.gradoop.flink.io.impl.parquet.protobuf.ProtobufPa...
package org.apache.maven.plugins.enforcer; /* * 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 L...
package io.pivotal.apac; import lombok.Data; import lombok.NoArgsConstructor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org....
/******************************************************************************* * 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...
package top.biduo.exchange.ui.mychart; import android.graphics.Canvas; import android.text.TextUtils; import com.github.mikephil.charting.renderer.YAxisRenderer; import com.github.mikephil.charting.utils.Transformer; import com.github.mikephil.charting.utils.Utils; import com.github.mikephil.charting.utils.ViewPortHa...
package lego; public class WindowLego { }
/* * Copyright 2016, The Querydsl Team (http://www.querydsl.com/team) * * 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 r...
/* * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package com.sun.org.apache.bcel.internal.classfile; /* ==================================================================== * The Apache Software License, Version 1.1 ...
/* * Copyright 2015-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
package seedu.address.logic.commands; import static java.util.Objects.requireNonNull; import seedu.address.logic.commands.exceptions.UndoRedoLimitReachedException; import seedu.address.logic.commands.results.CommandResult; import seedu.address.model.Models; public class UndoCommand extends Command { public stat...
/* * Copyright 2012 - 2020 Manuel Laggner * * 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 ...
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.example.aidl_server_csdn; public final class R { public static final class attr { } public static final class dim...
package ptn010.solve01; /** * Using Avro to store multiple small files * read Avro files from HDFS for verification */ import org.apache.avro.file.DataFileStream; import org.apache.avro.generic.*; import org.apache.commons.codec.digest.DigestUtils; import org.apache.hadoop.conf.Configuration; import org.apache.hadoo...
/* * Copyright 2021 VMware, Inc. * SPDX-License-Identifier: Apache-2.0 */ package com.vmware.taurus.service.execution; import java.time.Duration; import java.time.OffsetDateTime; import java.util.Random; import com.google.gson.JsonObject; import org.junit.Assert; import org.junit.jupiter.api.AfterEach; import org...
package model; import java.io.Serializable; /** * This class is used to display every used name of an Image via GUI. */ public class UsedName implements Serializable { private String name; /** * The contructor of an UsedName object includes the name of the used name. * @param name */ pub...
package com.taurus; public class Test { public static void main(String[] args) { // UndertowServer.create(AppConfig.class) // .addHotSwapClassPrefix("com.abc.") // .setPort(8000) // .setDevMode(true) // .start(); } }
/* * Copyright 2008 The Scribble 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 a...
import java.math.BigInteger; import java.util.ArrayList; import java.util.List; public class SemiPrime{ private static final BigInteger TWO = BigInteger.valueOf(2); public static List<BigInteger> primeDecomp(BigInteger a){ // impossible for values lower than 2 if(a.compareTo(TWO) < 0){ return nu...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distribute...
package com.androiddev.quizez.ui.home; import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; public class HomeViewModel extends ViewModel { private MutableLiveData<String> mText; public HomeViewModel() { mText = new MutableLiveData<>(); ...
package com.akigon.mydiary.db; import android.content.Context; import androidx.room.Database; import androidx.room.Room; import androidx.room.RoomDatabase; import com.parse.ParseUser; @Database(entities = {Diary.class, DeletedDiary.class}, version = 1, exportSchema = false) public abstract class AppDatabase extends ...
/* * ********************************************************************************************************************* * * TheseFoolishThings: Miscellaneous utilities * http://tidalwave.it/projects/thesefoolishthings * * Copyright (C) 2009 - 2021 by Tidalwave s.a.s. (http://tidalwave.it) * * ***************...
/* * Copyright (c) 2008-2020, 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 com.test.demo; public class Prog1{ public static void main(String[] args){ int n = 10; System.out.println("第"+n+"个月兔子总数为"+fun(n)); } private static int fun(int n){ if(n==1 || n==2) return 1; else return fun(n-1)+fun(n-2); } }
/* * Copyright 2015-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 app...
package org.lrth.samples.spring.sequences; import static org.hamcrest.CoreMatchers.*; import io.zonky.test.db.AutoConfigureEmbeddedDatabase; import org.flywaydb.test.annotation.FlywayTest; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.lrth.samples.spring.sequences.service...
package org.apache.batik.dom.svg; import org.apache.batik.dom.AbstractDocument; import org.w3c.dom.Node; import org.w3c.dom.svg.SVGGElement; public class SVGOMGElement extends SVGGraphicsElement implements SVGGElement { protected SVGOMGElement() { } public SVGOMGElement(String var1, AbstractDocument var2) {...