text stringlengths 7 995k |
|---|
package test.run;
import extthread.MyThread;
import extthreadgroup.MyThreadGroup;
public class Run {
public static void main(String[] args) {
MyThreadGroup group = new MyThreadGroup("我的线程组");
MyThread[] myThread = new MyThread[10];
for (int i = 0; i < myThread.length; i++) {
myThread[i] = new MyThread(grou... |
package ru.intertrust.cm.core.business.api.util;
import java.math.BigDecimal;
import java.util.Collection;
/**
* Класс нарочно не синхронизирован, а переменные не волатильны - не страшно, если что-то будет рассинхронизировано
* @author Denis Mitavskiy
* Date: 26.10.2015
* Time: 17:08
*/
public cl... |
/*
* Copyright (c) 2008-2018, 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 net.openid.conformance.condition.client;
import org.springframework.http.HttpStatus;
public class CheckTokenEndpointHttpStatus200 extends AbstractCheckTokenEndpointHttpStatus {
@Override
protected HttpStatus getExpectedHttpStatus() {
return HttpStatus.OK;
}
} |
/*
* Copyright 2021 John "topjohnwu" Wu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
/*
* Created on Nov 29, 2010
*
* 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 writ... |
package io.github.muehmar.pojoextension.generator.impl.gen.withers;
import static io.github.muehmar.pojoextension.generator.data.Necessity.OPTIONAL;
import static io.github.muehmar.pojoextension.generator.data.settings.Ability.DISABLED;
import static io.github.muehmar.pojoextension.generator.impl.gen.Refs.JAVA_LANG_ST... |
/*
* Copyright 2002-2021 Barcelona Supercomputing Center (www.bsc.es)
*
* 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
*
* Unl... |
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... |
import java.util.Scanner;
public class Homework1 {
public static void main(String[] args) {
/*아래와 같은 등비 수열이 있다.
1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, ...
사용자 입력을 통해 원하는 위치의 값을 뽑아내도록 프로그래밍 해보자!*/
// 1 일단 원하는 위치의 값을 뽑아 내야하니 Scanner를 쓰자
// 2 그리고 숫자의 2를 곱해서 계속이어가는 거니 느낌상 ... |
package com.buguagaoshu.mall.coupon.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 秒杀活动
*
* @author Pu Zhiwei
* @email puzhiweipuzhiwei@foxmail.com
* @date 2020-04-06... |
package com.adosa.opensrp.chw.fp.fragment;
import android.app.Activity;
import android.app.DialogFragment;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Context;
import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.... |
/*
* Copyright (C) 2014 Intel Corporation
* All rights reserved.
*/
package com.intel.mtwilson.util.crypto.key.password;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.Charset;
import java.util.Arrays;
/**
*
* @author jbuhacoff
*/
public class Password {
private char[] passw... |
/*
* 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 test.com.bitdubai.fermat_wpd_plugin.layer.middleware.wallet_store.developer.bitdubai.version_1.WalletStoreMiddlewarePluginRoot;
import com.bitdubai.fermat_wpd_plugin.layer.middleware.wallet_store.developer.bitdubai.version_1.WalletStoreMiddlewarePluginRoot;
import junit.framework.TestCase;
import org.junit.B... |
/*
* Copyright 2002-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* Copyright 2002-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 ap... |
package ru.job4j.generic;
import org.junit.Before;
import org.junit.Test;
import java.util.Iterator;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
/**
* Class SimpleArrayTest.
*
* @author dshustrov
* @version 1
* @since 04.12.2018
*/
public class SimpleArrayTest ... |
/****************************************************************
* 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 2013-2018 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 may ... |
package cool.sodo.catkin.server.service.impl;
import cool.sodo.catkin.server.common.Constants;
import cool.sodo.catkin.server.domain.CatkinInfo;
import cool.sodo.catkin.server.entity.SegmentId;
import cool.sodo.catkin.server.service.CatkinInfoService;
import cool.sodo.catkin.server.service.SegmentIdService;
import coo... |
package org.hl7.fhir.dstu3.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
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 of source code must retain the above... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
// Copyright 2015-2021 Nkisi 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.rajan.redirectservice.redirect;
import org.springframework.hateoas.EntityModel;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import javax.persistence.EntityManager;
imp... |
/*****************************************************************
* 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
* ... |
package psidev.psi.mi.jami.xml.io.writer.elements.impl.compact.xml25;
import junit.framework.Assert;
import org.junit.Ignore;
import org.junit.Test;
import psidev.psi.mi.jami.binary.BinaryInteractionEvidence;
import psidev.psi.mi.jami.binary.impl.DefaultNamedBinaryInteractionEvidence;
import psidev.psi.mi.jami.excepti... |
/*
* Copyright (C) 2015 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... |
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2021 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* p... |
package com.huaweicloud.sdk.ces.v1.model;
import java.util.Collections;
import java.util.Collections;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
... |
package de.elnarion.ddlutils.platform;
import de.elnarion.ddlutils.TestPlatformBase;
import de.elnarion.ddlutils.io.DatabaseIO;
import de.elnarion.ddlutils.model.Database;
import de.elnarion.ddlutils.platform.CreationParameters;
import de.elnarion.ddlutils.platform.mysql.MySqlPlatform;
// TODO: Auto-generated Javadoc... |
package com.codeandmagic.cartocache;
import com.google.android.gms.maps.model.MarkerOptions;
/**
* Created by evelyne24.
*/
public interface MarkerConfig<P extends Place> {
public MarkerOptions getMarker(P place);
} |
/*
* Copyright 2020 fuzy(winhkey) (https://github.com/winhkey/bricks-root)
*
* 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... |
// --------------------------------------------------------------------------------
// Copyright 2002-2021 Echo Three, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http:/... |
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.elasticsearch.transport.v6_0;
import io.opentelemetry.instrumentation.api.instrumenter.net.InetSocketAddressNetClientAttributesExtractor;
import io.opentelemetry.javaagent.instrument... |
package org.workcraft.plugins.petrify.commands;
import org.workcraft.Framework;
import org.workcraft.commands.ScriptableCommand;
import org.workcraft.plugins.petrify.tasks.TransformationResultHandlingMonitor;
import org.workcraft.plugins.petrify.tasks.TransformationTask;
import org.workcraft.plugins.stg.Mutex;
import ... |
package ke.co.greid.services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ke.co.greid.dao.ReligionDAO;
import ke.co.greid.entities.Religion;
@Service
public class ReligionService {
@Autowired
private ReligionDAO reli... |
package org.spoofax.jsglr2.util;
import static org.spoofax.interpreter.terms.IStrategoTerm.APPL;
import static org.spoofax.interpreter.terms.IStrategoTerm.LIST;
import static org.spoofax.interpreter.terms.IStrategoTerm.TUPLE;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.u... |
package com.liang.smis.domin;
import lombok.Data;
@Data
public class Person {
private Long id;
private String name;
private Integer age;
} |
/**
* 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 mongoose.backend.activities.users;
import mongoose.backend.activities.users.routing.UsersRouting;
import dev.webfx.framework.client.activity.impl.combinations.viewdomain.impl.ViewDomainActivityContextFinal;
import dev.webfx.framework.client.ui.uirouter.UiRoute;
import dev.webfx.framework.client.ui.uirouter.imp... |
package com.example.kyle.weatherforecast;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
public class WeatherFragment extends Fragment {
... |
/*
* Copyright (c) 2016-present 贵州纳雍穿青人李裕江<1032694760@qq.com>
*
* The software is licensed under the Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROV... |
/*
* $Id$
*/
/*
Copyright (c) 2000-2016 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
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... |
package DaTa_04;
public class main {
public static void main(String[] args) {
// TODO Auto-generated method stub
StopWatchUI sw = new StopWatchUI();
}
} |
package com.hitler.common.dto.annotation;
import static java.lang.annotation.ElementType.FIELD;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = { FIELD })
public @interface DisallowedField {
} |
/*Copyright (C) 2016 Roland Hauser, <sourcepond@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... |
/*
* (C) Copyright IBM Corp. 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
/*
* 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.cloudTop.starshare.ui.wangyi.common.infra;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
public class DefaultTaskRegistry implements TaskRegistry {
/** tasks */
public HashMap<String, Task> tasks = new HashMap<String, Task>();
@Override
public Task register(Task ... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v8/errors/resource_access_denied_error.proto
package com.google.ads.googleads.v8.errors;
public final class ResourceAccessDeniedErrorProto {
private ResourceAccessDeniedErrorProto() {}
public static void registerAllExtensi... |
package jstore.testhelpers.rivals.hashset;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import jstore.StringSet;
import jstore.testhelpers.TestHelper;
public class HashStringS... |
package com.rotatingcanvasgames.box2d;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.BodyDef;
import com.badlogic.gdx.physics.box2d.World;
import com.badlogic.gdx.utils.Array;
/**
* Created by admin on 5/18/2019.
*/
public class RotateBodyE... |
/*
* This software was developed at the National Institute of Standards and
* Technology by employees of the Federal Government in the course of
* their official duties. Pursuant to title 17 Section 105 of the United
* States Code this software is not subject to copyright protection and is
* in the public domain. ... |
// Copyright 2000-2020 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.plugins.groovy.lang.psi.impl;
import com.intellij.pom.java.LanguageLevel;
import com.intellij.psi.JavaPsiFacade;
import com.intellij.psi.PsiClassType;
impor... |
// Copyright (c) 2021, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.diagnosticinspector;
public interface DiagnosticSubject {
FoundMissingDef... |
package koks.api.registry.spoof;
import koks.api.Methods;
import net.minecraft.network.Packet;
/**
* Copyright 2021, Koks Team
* Please don't use the code
*/
public interface Spoof extends Methods {
Type type();
void handleSpoof();
default void onPacket(Packet<?> packet) {
}
enum Type {
... |
/*
* Copyright 2002-2019 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 org.mtransit.parser.ca_quebec_orleans_express_bus;
import static org.mtransit.commons.StringUtils.EMPTY;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.mtransit.commons.CleanUtils;
import org.mtransit.parser.DefaultAgencyTools;
import org.mtransit.parser.gtfs.d... |
package com.demod.fbsr;
import java.awt.Color;
import java.util.AbstractMap.SimpleEntry;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map.Entry;
import java.util.Optional;
import java.util.Set;
import com.demod.fbsr.WorldMap.Debug;
import net.dv8tion.jda.core.en... |
/**
*
*/
package se.walkercrou.places.dataload;
/**
* @author satyaveer.yadav
*
*/
public class DataLoadProcessor {
// @Autowired
// private ApplicationContext context;
//
// @Autowired
// static DaaneeServiceImpl employeeService;
// /**
// * @param args
// */
// public static void main(String[] args) {
// ... |
/*
* Copyright (C) 2020 ShapeShiftOS
*
* 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 2014 Capptain
*
* Licensed under the CAPPTAIN SDK 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://app.capptain.com/#tos
*
* This file is supplied "as-is." You bear the risk of using it.
* Ca... |
/*
* Licensed to Cloudera, Inc. under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file ... |
package com.assignment.teo.data.features.search.movies.entities;
import com.assignment.teo.data.features.search.movies.MoviesSearchService;
import com.google.gson.annotations.SerializedName;
/**
* Response object from {@link MoviesSearchService} used in the data layer.
*/
public class MoviesSearchResponse {
@... |
package com.wemirr.framework.storage;
import com.wemirr.framework.storage.domain.DownloadResponse;
import com.wemirr.framework.storage.domain.StorageItem;
import com.wemirr.framework.storage.domain.StorageRequest;
import com.wemirr.framework.storage.domain.StorageResponse;
import com.wemirr.framework.storage.exception... |
// Copyright 2017 JanusGraph 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 agree... |
package org.cloudburstmc.protocol.common.util;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectMaps;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
i... |
package com.carrotsearch.hppc;
import java.util.Locale;
import java.util.concurrent.TimeUnit;
import org.junit.Test;
import com.carrotsearch.hppc.cursors.IntCursor;
import com.carrotsearch.randomizedtesting.RandomizedTest;
import static org.junit.Assert.*;
public class HashCollisionsClusteringTest extends Randomize... |
package me.kristoffer.blaze.backend.org.bukkit.entity;
public class MushroomCow {
public class Variant {
public org.bukkit.entity.MushroomCow.Variant from(String name) {
return org.bukkit.entity.MushroomCow.Variant.valueOf(name);
}
}
} |
/* $Id$
*****************************************************************************
* Copyright (c) 2009 Contributors - see below
* 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, and i... |
/*
* Copyright 2022 Deep Learning on Flink 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 applicabl... |
/*
* Copyright 2015 Goldman Sachs.
*
* 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 ... |
/*******************************************************************************
* 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) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
/*
* 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.rotanava.framework.config.xxljob;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Data
@ConfigurationProperties(prefix = "rotanava.xxljob")
public class XxlJobProperties {
private String adminAddresses;
private String appname;
private Strin... |
/**
* // [1,1,1,2,2,3,3,3,3,3,3,4,4,5,5,6]
* // [1,1,1,1,1,1,1,2,2,2,2,2,2,3,3]
*/
public class MostFrequentElementInArray {
public static void main(String[] args) {
int[] a = {1, 2};
System.out.println(mostFrequent(a));
}
public static int mostFrequent(int[] array) {
if (array ... |
package base.tile;
abstract public class Tile {
public static final char MARK = '#';
boolean isHidden = true;
abstract public boolean isSolid();
public abstract char getMark();
public void reveal(){
isHidden = false;
}
public boolean isHidden() {
return isHidden;
}
public void setHidden(boolean ... |
/* */ package org.springframework.web.servlet.config.annotation;
/* */
/* */ import java.util.ArrayList;
/* */ import java.util.Collections;
/* */ import java.util.HashMap;
/* */ import java.util.List;
/* */ import java.util.Map;
/* */ import java.util.function.Predicate;
/* ... |
package cn.m1yellow.mypages.controller;
import cn.m1yellow.mypages.common.api.CommonResult;
import cn.m1yellow.mypages.common.aspect.DoCache;
import cn.m1yellow.mypages.common.aspect.WebLog;
import cn.m1yellow.mypages.common.util.ObjectUtil;
import cn.m1yellow.mypages.dto.UserPlatformDto;
import cn.m1yellow.mypages.e... |
package com.example.myapplication;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public final class ChangeTextBehaviorLocalTest {
@Test
public void isTheFormatTypeStringTrue() {
assertTrue(ValidationUtility.isString("IAmAString"));
... |
/**
* *******************************************************************************
* Copyright 2015 Tom Praschan
* <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:... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... |
// Targeted by JavaCPP version 1.5.5-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.arrow;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.arrow.global.arrow.*;
@Namespace("arrow::com... |
package org.openecomp.sdc.be.config;
import java.util.List;
import org.junit.Test;
public class CleanComponentsConfigurationTest {
private CleanComponentsConfiguration createTestSubject() {
return new CleanComponentsConfiguration();
}
@Test
public void testGetCleanIntervalInMinutes() throws Exception {
... |
/*
*
* *
* * 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 writ... |
/*
* Copyright (c) 2005-2021 Radiance Kirill Grouchnikov. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice,
* ... |
/**
* 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.gift.app.data.models;
import com.squareup.moshi.Json;
import java.util.List;
public class Store {
@Json(name = "id")
private Integer id;
@Json(name = "name")
private String name;
@Json(name = "photo")
private String photo;
@Json(name = "cover")
private String cover;
@... |
/*
* 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 io.github.boavenn.selfimprovementhelper.calorietracker.product.model;
import io.github.boavenn.selfimprovementhelper.calorietracker.product.model.ingredient.Ingredient;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.Hibernate;
import org.hibernate.proxy.HibernateProxy;
import javax.persisten... |
package org.gradle.test.performance.mediummonolithicjavaproject.p311;
public class Production6237 {
private Production6234 property0;
public Production6234 getProperty0() {
return property0;
}
public void setProperty0(Production6234 value) {
property0 = value;
}
priv... |
/*
* Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Modifications copyright (C) 2017 Uber Technologies, Inc.
*
* 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
* loc... |
/*
* Copyright 2019 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 applicab... |
/*
* Copyright 2006 The National Library of New Zealand
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.