text stringlengths 7 995k |
|---|
/*******************************************************************************
* Copyright 2012 EMBL-EBI, Hinxton outstation
*
* 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
*
* h... |
package com.zht.baseproject.base;
import android.app.Dialog;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import com.zht.basep... |
package com.blazebit.ai.decisiontree.impl;
import com.blazebit.ai.decisiontree.Attribute;
import com.blazebit.ai.decisiontree.AttributeValue;
import com.blazebit.ai.decisiontree.Example;
import java.util.Map;
/**
* @author Christian Beikov
*/
public class SimpleExample<T> extends SimpleItem implements Example<T> {... |
/*
* Copyright (c) 2018, 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.org/... |
package com.netease.nim.demo.chatroom.viewholder;
import com.netease.nim.demo.session.extension.GuessAttachment;
import com.netease.nim.uikit.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter;
/**
* Created by hzxuwen on 2016/1/20.
*/
public class ChatRoomMsgViewHolderGuess extends ChatRoomMsgViewHolderT... |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp 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/LICE... |
package nodes.stockinfoNode.models;
import common.io.database.mongodb.BaseMongoPOJO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
/**
* Created by Xinyu Zhu on 2020/11/6, 23:36
* nodes.stockinfoNode.models in codingDimensionTemplate
*/
@Data
@NoArgsConstructor
public class ... |
package expo.modules.inapppurchases;
import java.util.List;
import android.content.Context;
import android.app.Activity;
import android.util.Log;
import expo.modules.core.ExportedModule;
import expo.modules.core.ModuleRegistry;
import expo.modules.core.Promise;
import expo.modules.core.arguments.ReadableArguments;
i... |
/**
* Copyright (C) 2010-2018 Gordon Fraser, Andrea Arcuri and EvoSuite
* contributors
*
* This file is part of EvoSuite.
*
* EvoSuite is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either vers... |
package jetbrains.mps.ide.actions;
/*Generated by MPS */
import jetbrains.mps.annotations.GeneratedClass;
import jetbrains.mps.plugins.actions.GeneratedActionGroup;
import org.jetbrains.annotations.NotNull;
import jetbrains.mps.workbench.action.ApplicationPlugin;
@GeneratedClass(node = "r:00000000-0000-4000-0000-011... |
/*
* FindBugs - Find bugs in Java programs
* Copyright (C) 2003-2008 University of Maryland
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, o... |
/*
* Copyright 2015-2020 OpenCB
*
* 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 2017 Archos SA
//
// 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... |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2020 DBeaver Corp 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/LICE... |
/*
* 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 2019, 2021 Stefan Zobel
*
* 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 agr... |
package com.chixing.controller;
import com.chixing.service.impl.LikeServiceImpl;
import com.chixing.util.JuheDemo;
import com.chixing.util.Random4Numb;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import ... |
/**
* Package for calculate task.
*
* @author Roman Shmelev (mailto:roman.shmelev@gmail.com)
* @version $Id$
* @since 0.1
*/
package ru.job4j.max; |
package id.meier.timetracking.moduletest.consistency.rules;
import id.meier.timetracking.TestBase;
import id.meier.timetracking.businesslayer.consistency.ConsistencyProblem;
import id.meier.timetracking.businesslayer.consistency.IConsistencyMessage;
import id.meier.timetracking.businesslayer.consistency.impl.rules.Sta... |
package net.minecraft.advancements.criterion;
import com.google.gson.JsonObject;
import com.google.gson.JsonSyntaxException;
import javax.annotation.Nullable;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.item.ItemSt... |
/*
* Copyright 2017-2018 original 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 2016-2021 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 au.id.lagod.dm.base;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* Marker annotation to indicate a field that is a natural key,
* i.e. a unique identifier for the class.
*
*/
@Rete... |
package com.exceljava.com4j.excel ;
import com4j.*;
@IID("{000244E8-0001-0000-C000-000000000046}")
public interface IModelColumnChanges extends Com4jObject,Iterable<Com4jObject> {
// Methods:
/**
* <p>
* Getter method for the COM property "Application"
* </p>
* @return Returns a value of type com.ex... |
package es.upm.oeg.ar2dtool.exceptions;
public class ConfigFileNotFoundException extends Exception {
public ConfigFileNotFoundException(String message) {
super(message);
}
} |
package com.zzh.mapper;
import com.zzh.pojo.Comments;
import com.zzh.pojo.vo.CommentDetail;
import com.zzh.pojo.vo.CommentsVO;
import com.zzh.utils.MyMapper;
import java.util.List;
public interface CommentsMapperCustom extends MyMapper<Comments> {
List<CommentDetail> queryFatherComments(String videoId);
List<Co... |
/*
* Copyright 2010 JRimum 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 agreed to in writin... |
package kelpie.scalardb.transfer.cosmos;
import com.azure.cosmos.CosmosClient;
import com.azure.cosmos.CosmosContainer;
import com.azure.cosmos.CosmosStoredProcedure;
import com.azure.cosmos.models.CosmosItemRequestOptions;
import com.azure.cosmos.models.CosmosStoredProcedureRequestOptions;
import com.azure.cosmos.mod... |
package back_end.model.robot;
import java.awt.Point;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;
import integration.drawing.PenInformation;
import integration.observe.AbstractObservable;
/**
* The information class for a single turtle - holds all the data of a Turtle
*
*/
public cl... |
package com.oan.management.repository;
import com.oan.management.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRepository extends JpaRepository<User, Long> {
User findByEmail(String email);
User find... |
package com.google.devtools.moe.client.config;
/**
* Enum of all known editor implementations.
*
* All values are valid JSON editor types.
*/
public enum EditorType {
identity,
scrubber,
patcher,
shell,
renamer
} |
package mage.cards.p;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
import mage.abilities.common.EntersBattlefieldAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.CountersSourceCount;
import mage.abilities.effects.Effe... |
/*
* 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 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 u... |
package me.melondev.translator.listener;
import me.melondev.translator.TranslatorAPI;
import me.melondev.translator.locale.Language;
import me.melondev.translator.provider.placeholder.FieldPlaceholder;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import... |
/**
*
*/
package org.geek.pipe.api;
/**
* @author haichuan
*/
public interface OutBound extends MessageFlow{
InBound getInbound();
void setInbound(InBound in);
boolean isEnd();
class EndBound implements OutBound{
@Override
public void deliverMessage(EventRequest request) throws DeliverException {}
... |
/*
* 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.vinhomn.web.admin;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMap... |
package com.company;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class FLOW007 {
public static void main(String args[]) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int t = Integer.parseInt(br... |
/*
* Copyright 2019-2020 The Polypheny 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... |
/*
* 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 cjlu.skyline.ecms_data_annotator.api.vo;
import lombok.Data;
@Data
public class StaticsVo {
private String name;
private Integer value;
} |
package ij.plugin;
import ij.*;
import ij.process.*;
import ij.gui.*;
/** This plugin implements the Help/About ImageJ, Help/ImageJ Web Site,
Plugins/Utilities/Unlock Image and the Image/Rename commands. */
public class SimpleCommands implements PlugIn {
public void run(String arg) {
ImagePlus imp = WindowManager... |
/*
* 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.navercorp.pinpoint.web;
import com.navercorp.pinpoint.common.server.profile.ProfileApplicationListener;
import com.navercorp.pinpoint.common.server.util.ServerBootLogger;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicatio... |
package org.prosolo.services.assessment.data.factory;
import org.prosolo.common.domainmodel.assessment.Assessment;
import org.prosolo.common.domainmodel.assessment.AssessmentStatus;
import org.prosolo.common.domainmodel.assessment.CompetenceAssessment;
import org.prosolo.common.domainmodel.assessment.CredentialAssessm... |
package com.alibaba.alink.operator.batch.regression;
import org.apache.flink.ml.api.misc.param.Params;
import com.alibaba.alink.operator.batch.utils.ModelMapBatchOp;
import com.alibaba.alink.operator.common.fm.FmModelMapper;
import com.alibaba.alink.params.recommendation.FmPredictParams;
/**
* Fm predict batch oper... |
// 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
// distribute... |
package de.maikmerten.spu32.emu.busdevices;
import de.maikmerten.spu32.emu.interfaces.BusDevice;
import de.maikmerten.spu32.emu.serial.SerialConnection;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @auth... |
/*
* Copyright (c) 2010-2020 Nathan Rajlich
*
* 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, modify... |
package io.jaylim.compiler.ast.pojos.expressions.lambdas;
import io.jaylim.compiler.ast.pojos.AstNode;
import io.jaylim.compiler.ast.pojos.Position;
import io.jaylim.compiler.ast.pojos.Range;
/**
* @author Jisung Lim <iejisung@gmail.com>
*/
public abstract class LambdaParameters extends AstNode {
public LambdaPa... |
/*
* Copyright 2018-present Facebook, 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... |
/*
* 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.wutong.backmanage.core.util;
import javax.servlet.http.HttpSession;
/**
* 非Controller中获取当前session的工具类
*
* @author fengshuonan
* @date 2016年11月28日 上午10:24:31
*/
public class HttpSessionHolder {
private static ThreadLocal<HttpSession> tl = new ThreadLocal<HttpSession>();
public static void pu... |
/*
* 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 u... |
/**
* 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 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
package net.minestom.server.inventory;
import net.minestom.server.entity.Entity;
import net.minestom.server.entity.EquipmentSlot;
import net.minestom.server.entity.Player;
import net.minestom.server.item.ItemStack;
import net.minestom.server.network.packet.server.play.EntityEquipmentPacket;
import net.minestom.server.... |
package dev.hophamducnguyen.auto.web.common.logging;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.extension.ExtendWith;
import static org.springframework.core.env.AbstractEnvironment.ACTIVE_PROFILES_PROPERTY_NAME;
@Ta... |
/*
* 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 u... |
/*
* Copyright (C) 2015 Jack Jiang(cngeeker.com) The BeautyEye Project.
* All rights reserved.
* Project URL:https://github.com/JackJiang2011/beautyeye
* Version 3.6
*
* Jack Jiang PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
* SwingSet2Applet.java at 2015-2-1 20:25:39, original version by Ja... |
/*
* MIT License
*
* Copyright (c) 2022 MASES s.r.l.
*
* 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, cop... |
package net.unix.hatakecore.api.helper;
import org.apache.commons.lang.StringUtils;
import org.bukkit.GameMode;
import org.jetbrains.annotations.NotNull;
import java.util.Arrays;
import java.util.Optional;
/**
* @author Unix on 05.10.2019.
*/
public final class GameModeHelper {
private GameModeHelper() {
... |
package br.edu.infnet.apiveiculo.domain.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import br.edu.infnet.apiveiculo.domain.model.Caminhao;
import br.edu.infnet.apiveiculo.dom... |
package com.bunq.sdk.model.generated.endpoint;
import com.bunq.sdk.http.ApiClient;
import com.bunq.sdk.http.BunqResponse;
import com.bunq.sdk.http.BunqResponseRaw;
import com.bunq.sdk.model.core.BunqModel;
import com.bunq.sdk.model.generated.object.NotificationFilterUrl;
import com.google.gson.annotations.Expose;
impo... |
package cn.dyz.tools.file;
/**
* Create by suzhiwu on 2019/7/22
*/
public interface IHandle {
void handle(String line);
} |
package com.gentics.mesh.graphdb.index;
import static com.gentics.mesh.graphdb.FieldTypeMapper.toSubType;
import static com.gentics.mesh.graphdb.FieldTypeMapper.toType;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import javax.inject.Inject;
import javax.inject.Singleton;
import or... |
/* Import2: An RPG */
package studio.ignitionigloogames.twistedtrek.import2.battle.window.time;
import studio.ignitionigloogames.twistedtrek.import2.prefs.PreferencesManager;
class WindowTimeBattleSpeed {
// Constants
private static int SPEED_FACTOR = 10;
// Constructor
private WindowTimeBattleSpeed(... |
package uk.co.idv.method.entities.otp.delivery.phone;
import lombok.Builder;
import lombok.Data;
import uk.co.idv.method.entities.otp.policy.delivery.Updatable;
import java.time.Instant;
import java.util.Optional;
@Builder
@Data
public class OtpPhoneNumber implements Updatable {
private final String value;
... |
package com.jenkins.common.roomService.service;
import com.jenkins.common.roomInterface.entity.Report;
import com.jenkins.common.roomInterface.model.ReportOverview;
import com.jenkins.common.roomInterface.model.ReportSearch;
import com.jenkins.common.roomService.mapper.ReportMapper;
import com.jenkins.common.roomServi... |
//给定一个非负整数 num。对于 0 ≤ i ≤ num 范围中的每个数字 i ,计算其二进制数中的 1 的数目并将它们作为数组返回。
//
// 示例 1:
//
// 输入: 2
//输出: [0,1,1]
//
// 示例 2:
//
// 输入: 5
//输出: [0,1,1,2,1,2]
//
// 进阶:
//
//
// 给出时间复杂度为O(n*sizeof(integer))的解答非常容易。但你可以在线性时间O(n)内用一趟扫描做到吗?
// 要求算法的空间复杂度为O(n)。
// 你能进一步完善解法吗?要求在C++或任何其他语言中不使用任何内置函数(如 C++ 中的 __builtin_popcount)来执行此... |
package com.project.betterNow.controller;
import com.project.betterNow.service.NoticeReplyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
i... |
public class Driver {
public static void main(String[] args) {
Student s1 = new Student("John","CC", 3.0);
System.out.println(s1.toString());
Faculty f1 = new Faculty("Zak", "Computer Science Department","Administrator");
System.out.println("\n" + f1.toString());
}
} |
/*
* 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 pro.jk.ejoker.common.context.annotation.context;
public final class ESType {
/**
* 一个普通的EJoker内部的Service对象,默认值
*/
public final static String NORMAL = "NORMAL";
/**
*
* Tell the configureObject or contextObject to scan its handler method<br />
* 用于提供命令响应的handler对象<br /><br />
*
* 框架会扫描当前对象... |
/**
* Copyright (c) 2009/09-2012/08, Regents of the University of Colorado
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copy... |
package com.revature.utils;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletRequest;
public class RequestUtil {
public static String readBody(HttpServletRequest req) throws IOException {
BufferedReader reader = req.getReader();
... |
/*
VLDocking Framework 3.0
Copyright Lilian Chamontin, 2004-2013
www.vldocking.com
vldocking@googlegroups.com
------------------------------------------------------------------------
This software is distributed under the LGPL license
The fact that you are presently reading this and using this cla... |
// Copyright 2004-present Facebook. All Rights Reserved.
package com.facebook.react.cxxbridge;
import com.facebook.jni.HybridData;
import com.facebook.proguard.annotations.DoNotStrip;
import com.facebook.react.bridge.NativeModule;
import com.facebook.soloader.SoLoader;
/**
* A Java Object which represents a cross-p... |
package io.simpleframework.platform.auth.core.authentication;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @author loyayz (loyayz@foxmail.com)
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AuthCredentials implements Seriali... |
package org.sunflow.math;
public final class MathUtils {
private MathUtils() {
}
public static final int clamp(int x, int min, int max) {
if (x > max)
return max;
if (x > min)
return x;
return min;
}
public static final float clamp(float x, float mi... |
package ca.uhn.fhir.model.dstu2.composite;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
/*
* #%L
* HAPI FHIR Structures - DSTU2 (FHIR v1.0.0)
* %%
* Copyright (C) 2014 - 2019 University Health Network
* %%
* Licensed under the Apache License, Version ... |
/*
* Copyright (c) 2015 The Jupiter 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... |
/*
* Copyright 2008-2009 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... |
// This is a generated file. Not intended for manual editing.
package org.rust.lang.core.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
import org.rust.lang.core.psi.ext.RsOuterAttributeOwner;
public interface RsMatchExpr extends RsExpr, RsOuterAttributeOwner {
... |
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... |
package com.springannotation.javaconfig.bean;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.annotation.Resource;
import javax.inject.Inject;
import javax.inject.Named;
import org.springframework.stereotype.Component;
/**
* @author bpawar
*
*/
@SuppressWarnings("unused")
@... |
package ru.job4j.shapes;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class SquareTest {
@Test
public void whenDrawSquare() {
Square square = new Square();
assertThat(
square.draw(),
is(
... |
/**
* @author Jose Manuel Sabarís
* Título: Ejercicio Acepta El Reto 369
* @version 1.0
*/
// Importación de librerias
import java.util.Scanner;
public class AceptaElReto_369 {
public static void main( String[] args ) {
// Declaración de variables
// Entrada de datos
int num... |
/*
* Copyright (C) 2011 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... |
package voogasalad.gameengine.executors.sprites.strategies.attack;
import voogasalad.gameengine.executors.control.levelcontrol.LevelActionsRequester;
import voogasalad.gameengine.executors.exceptions.GameEngineException;
import voogasalad.gameengine.executors.objectcreators.AttackBuilder;
import java.awt.geom.Point2D... |
package vic.sample.fireapp2;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.design.widget.TabLayout;
import... |
package org.hisp.dhis.datavalue;
/*
* Copyright (c) 2004-2017, 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 copy... |
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
package ru.oren.rssreader.db;
import android.os.AsyncTask;
import ru.oren.rssreader.entities.Article;
import ru.oren.rssreader.interfaces.DBFetcherObserver;
import ru.oren.rssreader.interfaces.Observable;
import java.util.ArrayList;
public class DBFetcher extends AsyncTask<String, Void, ArrayList<Article>> implement... |
package org.apache.maven.wrapper;
/*
* 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, V... |
/**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.vesoft.nebula.storage;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.Set;
import java.util.HashSet;
import java.util... |
package animalKingdom;
public class Birds extends AbstractAnimal
{
protected String name;
protected int id;
protected int yearNamed;
public Birds(String name, int id, int yearNamed)
{
this.name = name;
this.id = id;
this.yearNamed = yearNamed;
}
public String getName()
{
return name;
}
public ... |
package com.unicom.base.server.mapper;
import com.unicom.base.client.model.entity.BaseApi;
import com.unicom.common.mybatis.base.mapper.SuperMapper;
import org.springframework.stereotype.Repository;
/**
* @author liuyadu
*/
@Repository
public interface BaseApiMapper extends SuperMapper<BaseApi> {
} |
package in.twizmwaz.cardinal.module.modules.craftingModule.recipes;
import org.apache.commons.lang3.tuple.Pair;
import org.bukkit.inventory.ItemStack;
import org.bukkit.material.MaterialData;
import java.util.Set;
public class ShapelessRecipe extends AbstractRecipe {
public ShapelessRecipe(ItemStack result, Set... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.