text stringlengths 7 995k |
|---|
package org.jyc.thinking.in.spring.dependency.lookup;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
... |
/*
* 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.google.android.gms.wallet;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.C0721a;
import com.google.android.gms.common.internal.safeparcel.C0723b;
import com.google.android.gms.identity.intents.model.CountrySpecification;
import java.util.Ar... |
package com.example.android.explicitintent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
public class ChildActivity extends AppCompatActivity {
private TextView mDisplayText;
@Override
protected void onCreate(Bundle savedInstanceState) {
... |
package org.apache.fop.util;
public interface XMLConstants {
String CDATA = "CDATA";
String XML_PREFIX = "xml";
String XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace";
org.apache.xmlgraphics.util.QName XML_SPACE = new org.apache.xmlgraphics.util.QName("http://www.w3.org/XML/1998/namespace", "xml", "... |
package net.minecraft.client.renderer.texture;
public interface IIconCreator
{
void func_177059_a(TextureMap p_177059_1_);
} |
/*
* Copyright (C) 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
package imd.ufrn.br.cashbooks.service;
import java.util.InputMismatchException;
public class CNPJService {
public static boolean validaCNPJ(String cnpj) {
// Validador de CNPJ Fonte:
// https://www.devmedia.com.br/validando-o-cnpj-em-uma-aplicacao-java/22374
// considera-se erro CNPJ's formados por uma se... |
/*
* 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 ... |
package br.ufes.salsa.salsa.model;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonFormat;
@Entity
@Table(name = "donato... |
/**
* Copyright (c) 2015-2017, Winter Lau (javayou@gmail.com).
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless r... |
package org.xbib.netty.http.server.rest;
public class RestBuilder {
} |
/*
* 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.byteflow.app.adapter;
import android.content.Context;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RadioButton;
import android.widget.TextView;
import androidx.annotation.*;
import androidx.recyclerview.wi... |
/*
* Copyright (C) 2009 University of Washington
*
* 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 de.blox.graphview;
/**
*
*/
public class Edge {
private final Node source;
private final Node destination;
public Edge(Node source, Node destination) {
this.source = source;
this.destination = destination;
}
public Node getSource() {
return source;
}
p... |
package io.github.takzhanov.umbrella.hw09.domain;
import javax.persistence.*;
@Entity
@Table(name = "phones")
public class PhoneDataSet extends DataSet {
@ManyToOne
@JoinColumn(name = "user_id", nullable = false)
private UserDataSet user;
@Column(name = "number")
private String number;
publi... |
package fr.polytech.myrpg.characters.items.edible;
import fr.polytech.myrpg.characters.items.Item;
/**
* This class represents an edible item.
*
* @author DELORME Loïc
* @since 1.0.0
*/
public abstract class EdibleItem extends Item
{
/**
* Create an edible item.
*
* @param name
* The name of... |
package com.team2052.frckrawler.views.metric.impl;
import android.content.Context;
import android.support.v7.widget.AppCompatSeekBar;
import android.widget.SeekBar;
import android.widget.TextView;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.team2052.frckrawler.R;
import com.team2... |
package com.dacer.androidcharts;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.DashPathEffect;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathEffect;
import android.graphics.Point;
import android.graphics... |
/**
* Copyright (C) 2016-2019 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 ag... |
package com.meta.cache.redis;
import com.meta.executor.callable.CallableExecutorUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.exceptions.JedisException;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import java.... |
/**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
... |
// 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 ... |
package net.minecraft.server;
import com.google.common.collect.ImmutableMap;
import java.util.Optional;
import java.util.function.Function;
import java.util.function.Predicate;
// CraftBukkit start
import org.bukkit.craftbukkit.entity.CraftLivingEntity;
import org.bukkit.craftbukkit.event.CraftEventFactory;
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 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 n... |
package org.protege.editor.owl.ui.action.export.inferred;
import org.semanticweb.owlapi.model.OWLAxiom;
import org.semanticweb.owlapi.reasoner.InferenceType;
import org.semanticweb.owlapi.util.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import j... |
package controll;
import java.util.Scanner;
public class main {
public static void main(String[] args) {
System.out.println("Numero:");
Scanner scan = new Scanner(System.in);
double num = scan.nextDouble();
double raiz = raizQ(num);
System.out.println(raiz);
}
public static double raizQ(double num){
... |
/*
* 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) 2020 Temporal Technologies, Inc. All Rights Reserved.
*
* 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 f... |
package net.menthor.editor.v2.ui.operation.diagram;
/**
* ============================================================================================
* Menthor Editor -- Copyright (c) 2015
*
* This file is part of Menthor Editor. Menthor Editor is based on TinyUML and as so it is
* distributed under the same l... |
package com.trtjk.health.app.utils.log;
import android.text.TextUtils;
import android.util.Log;
/**
* Created by WangChao on 18/3/6.
*/
public class Util {
public static boolean isEmpty(String line) {
return TextUtils.isEmpty(line) || line.equals("\n") || line.equals("\t") || TextUtils.isEmpty(line.trim... |
package com.wasu.demo48.handler;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.authentication.Authen... |
package org.testng;
import org.testng.collections.Lists;
import org.testng.collections.Maps;
import org.testng.internal.XmlMethodSelector;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* This class maintains a map of <CODE><Class, List<ITestNGMethod>></CODE>.
* It is used by TestWorkers to... |
package com.timgroup.statsd;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import java.io.IOException;
import java.net.SocketAddress;
import java.util.concurrent.Callable;
import java.util.List;
import java.util.ArrayList;
import java.util.Properties;
impor... |
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.dic.*;
import com.prowidesoftware.swift.model.mx.AbstractMX;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annota... |
/**
* Copyright © 2012-2014 <a href="https://github.com/artyama/jeesite">JeeSite</a> All rights reserved.
*/
package com.artyama.jeesite.modules.cms.entity;
import java.util.Date;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.artyama.jeesite.common... |
/*
* Copyright 2012-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
/*
* Copyright 2013-2019 The OpenZipkin 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... |
/*
* generated by Xtext 2.11.0
*/
package pl.stolorz.dsl.rankpl;
import com.google.inject.Binder;
import com.google.inject.Provider;
import com.google.inject.name.Names;
import java.util.Properties;
import org.eclipse.xtext.Constants;
import org.eclipse.xtext.IGrammarAccess;
import org.eclipse.xtext.formatting2.Form... |
package bayou.ssl;
import _bayou._tmp._ByteBufferUtil;
import _bayou._tmp._Tcp;
import _bayou._tmp._Util;
import bayou.async.Async;
import bayou.async.Promise;
import bayou.tcp.TcpChannel;
import bayou.tcp.TcpChannel2Connection;
import bayou.tcp.TcpConnection;
import bayou.util.Result;
import bayou.util.function.Funct... |
package org.gradle.test.performance.mediummonolithicjavaproject.p256;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test5124 {
Production5124 objectUnderTest = new Production5124();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... |
/*
* Copyright (c) 2021 The lambda4j 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... |
/*
* Copyright 2019 Google LLC. 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 applic... |
package ai.prima.prima.commands;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.IntStream;
import ai.prima.prima.PrimaAI;
import ai.prima.prima.nodes.Node;
import ai.prima.prima.util.Log;
public class NetworkCommand extends Command{
private static final String NETWORK... |
package com.fiicloud.plugindriver.core.provisoning;
public class Java {
} |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.sql.client.shared;
import org.elasticsearch.t... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.eql.plugin;
import org.elasticsearch.action.F... |
/*
* ARX: Powerful Data Anonymization
* Copyright 2012 - 2018 Fabian Prasser and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... |
/*
* Copyright (c) 2004-2022, University of Oslo
* 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 copyright notice, this
* list of cond... |
package example;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.immutables.value.Value;
@JsonSerialize(as=ImmutableResult.class)
@JsonDeserialize(as=ImmutableResult.class)
@Value.Immutable
public abstract class Result {
... |
package com.otaliastudios.cameraview.picture;
import android.annotation.TargetApi;
import android.graphics.Bitmap;
import android.graphics.Rect;
import android.graphics.SurfaceTexture;
import android.opengl.EGL14;
import android.opengl.EGLContext;
import android.opengl.Matrix;
import android.os.Build;
import com.otal... |
package com.stardust.pio;
import java.io.Closeable;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Stardust on 2017/4/29.
*/
public class PRandomAccessBinaryFile extends Rand... |
package oiasso.system.listadocoches.api;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
import org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer;
import org.springframework.web.servlet.config.annotation.WebMv... |
package dev.elexi.hugeblank.bagels_baking.item;
import dev.elexi.hugeblank.bagels_baking.Baking;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.advancement.criterion.Criteria;
import net.minecraft.client.item.TooltipContext;
import net.minecraft.entity.LivingEntity;
import n... |
package com.astrapay.qris.validation.constraints;
import com.astrapay.qris.validation.PayloadFormatIndicatorValueValidator;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import st... |
public double XXX(int[] nums1, int[] nums2) {
if(nums1.length == 0 && nums2.length == 0){
return 0;
}
int[] arr = new int[nums1.length+nums2.length];
//如果nums1为空,则让合并的数组直接等于nums2 直接根据数组长度奇偶数 返回数组中位数
if(nums1.length == 0){
arr = nums2;
if(arr.len... |
/**
* 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 me.peanut.hydrogen.module.modules.render;
import com.darkmagician6.eventapi.EventTarget;
import me.peanut.hydrogen.Hydrogen;
import me.peanut.hydrogen.events.EventRender3D;
import me.peanut.hydrogen.events.EventUpdate;
import me.peanut.hydrogen.module.Category;
import me.peanut.hydrogen.module.Info;
import me.... |
//Created by Spectrum3847
package frc.robot.constants;
import edu.wpi.first.wpilibj.DriverStation;
public final class Constants {
public static RobotType ROBOT = RobotType.ROBOT_2022C;
private static final boolean FAKE_FMS = true;
public static final boolean TUNING_MODE = false;
public static final bo... |
package net.hexogendev.hexogen.standalone.scheduler;
import java.util.concurrent.ScheduledFuture;
import net.hexogendev.hexogen.api.scheduler.Task;
public class HexoTask implements Task {
private ScheduledFuture<?> scheduledFuture;
private int id;
public HexoTask(int id, ScheduledFuture<?> scheduledFuture) {
... |
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to Y... |
/**
* Package for calculate task.
*
* @author Semenov
* @version 21.03.2018
* @since 0.1
*/
package ru.simple; |
package com.cloudTop.starshare.ui.main.activity;
import android.widget.Button;
import com.cloudTop.starshare.base.BaseActivity;
import com.cloudTop.starshare.widget.NormalTitleBar;
import com.cloudTop.starshare.R;
import butterknife.Bind;
import butterknife.OnClick;
/**
* 免责声明
* Created by sll on 2017/5/28.
*/
... |
package cn.jamma.baidumap.controller;
import cn.jamma.baidumap.bean.PlaceSearchParam;
import cn.jamma.baidumap.service.PlaceService;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.be... |
/*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.keyvault.keys.implementation;
import com.azure.core.annotation.Fluent;
import com.azure.security.keyvault.keys.models.KeyCurveName;
import com.azure.security.keyvault.keys.models.KeyOperation;
im... |
package map;
import java.util.Random;
public class GeneratedMap extends Map {
private static final Random random = new Random();
public GeneratedMap(int width, int heigth) {
super(width, heigth);
}
@Override
protected void generateMap() {
for (int y = 0; y < heigth ;... |
/**
* Copyright (c) 2016-present, RxJava Contributors.
*
* 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 ru.job4j.chess.figures.white;
import ru.job4j.chess.exeptions.ImpossibleMoveException;
import ru.job4j.chess.figures.Cell;
import ru.job4j.chess.figures.Figure;
/**
* @author Viktor Shiyan
* @since 04.01.2019
*/
public class PawnWhite implements Figure {
private final Cell position;
public PawnWh... |
package com.rks.musicx.database;
import android.content.Context;
import android.net.Uri;
import android.provider.MediaStore;
import com.rks.musicx.data.loaders.DefaultSongLoader;
import com.rks.musicx.misc.utils.Constants;
/*
* Created by Coolalien on 6/28/2016.
*/
/*
* ©2017 Rajneesh Singh
* Licensed under the... |
package com.example.gulimall.coupon.controller;
import java.util.Arrays;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.ann... |
/*
* Copyright 2017 MovingBlocks
*
* 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... |
package com.github.hexsmith.netty.protocol.request;
import com.github.hexsmith.netty.protocol.AbstractPacket;
import com.github.hexsmith.netty.protocol.Command;
import lombok.Getter;
import lombok.Setter;
/**
* @author hexsmith
* @version v1.0
* @since 2019-07-26 15:37
*/
@Getter
@Setter
public class LoginReques... |
package io.binghe.concurrent.chapter16;
import java.util.concurrent.atomic.AtomicReference;
/**
* @author binghe
* @version 1.0.0
* @description 自旋锁实现类
*/
public class MyCasLock implements CasLock{
/**
* 创建AtomicReference类型的成员变量
*/
private AtomicReference<Thread> threadOwner = new AtomicReferenc... |
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation ... |
package examples.collections.tree;
/**
* Demonstrates different tree traversals
*
* @author gerberma
*
*/
public class Program
{
public static void main(String[] args)
{
/*
* the layout of the following tree is:
*
* Top node
* / ... |
package slimeknights.tconstruct.tools.modifiers.traits;
import net.minecraft.core.Direction;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.TextComponent;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.entity.... |
package eu.h2020.helios_social.happs.contentawareprofiling.activity;
import android.app.Activity;
import dagger.Component;
import eu.h2020.helios_social.happs.contentawareprofiling.AndroidComponent;
import eu.h2020.helios_social.happs.contentawareprofiling.ImageListActivity;
import eu.h2020.helios_social.happs.conten... |
package Transactions;
//transaction class to hold info
import java.io.Serializable;
import java.text.DecimalFormat;
public class Transactions implements Serializable {
//type of transactono
private String transType;
//transaction amount
private double transAmnt;
//date info for transaction date
private DateInfo ... |
package se.sdaproject.api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import se.sdaproject.api.exception.ResourceNotFoundException;
import se.sdaproject.mode... |
package com.github.murataykanat.toybox;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@SpringBootApplication
@EnableEurekaClient
public class ToyboxRenditionServiceApplication ... |
/*
* Copyright (C) 2017 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... |
/*
* Copyright (c) 2018-2020 Karlatemp. All rights reserved.
* @author Karlatemp <karlatemp@vip.qq.com> <https://github.com/Karlatemp>
* @create 2020/08/04 19:29:26
*
* kar-framework/kar-framework.spigot-nms-1_16_1.main/NBTDouble.java
*/
package io.github.karlatemp.karframework.nms.v1_13_R2;
import io.github.ka... |
package org.openeo.wcps;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.sql.SQLException;
import java.time.OffsetDateTime;
import java.util.Date;
import java.util.UUID;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.openeo.sprin... |
package snake;
//package com.zetcode;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;... |
/*
* 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 wasm.core.model.index;
import wasm.core.numeric.U32;
public class LabelIndex extends U32 {
protected LabelIndex(U32 u32) {
super(u32);
}
public static LabelIndex of(U32 value) { return new LabelIndex(value); }
public String dump(int index) {
return "label[" + index + "]: " +... |
package org.hl7.fhir.r5.model;
/*
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 copyright notic... |
package com.sinch.messagingtutorial.app;
import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.support.v4.content.LocalBroadcastManager;
import com.parse.ParseUser;
import com.sinch.android.rtc.ClientRegistration;
import com.sinch.android.rtc.Si... |
package problemset5_2;
/**
*
* @author julii
*/
import java.util.Scanner;
public class StopLight {
public static void main(String[] args) {
System.out.println("1. Red");
System.out.println("2. Orange");
System.out.println("3. Green");
System.out.println("Enter a color Code: ");
... |
/*
* Copyright 2019 is-land
*
* 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... |
package org.broadinstitute.hellbender.utils.R;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.broadinstitute.hellbender.exceptions.GATKException;
import org.broadinstitute.hellbender.uti... |
package com.hazelcast.map.impl.query;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;
import com.hazelcast.internal.serialization.SerializationService;
import com.hazelcast.query.Predicate;
import com.hazelcast.query.TruePredicate;
import com.hazelcast.test.HazelcastParallelClassRunner;
im... |
package com.cloud.cloud.opentelemetry.exporter.websocket;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import javax.websocket.*;
import javax.websocket.server.ServerEndpoint;
import java.io.IOException;
import java.util.concurrent.CopyOnWriteArraySet;
import java.util.concurrent.... |
package ac.cn.saya.authorize.server.params;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import javax.validation.constraints.NotBlank;
/**
* All rights Reserved, Designed By www.xaaef.com
* <p>
* 授权码模式 授权服务请求 参数
* </p>
*
* @author Wang Chen Chen
* @versi... |
package by.bsu.strings;
public class ComparisonStrings {
public static void main(String[] args) {
String s1, s2;
s1 = "Java";
s2 = s1;
System.out.println("link comparison " + (s1 == "Java1"));
s2 = new String("Java");
System.out.println("link comparison " + (s1 == s2));
System.out.println... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* def
*/
package com.microsoft.azure.management.monitor.v2019_11_01.implementation;
impor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.