text stringlengths 7 995k |
|---|
package edu.harvard.hms.dbmi.avillach.auth.data.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import edu.harvard.dbmi.avillach.data.entity.BaseEntity;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneTo... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
package com.amazonaws.util.awsclientgenerator.domainmodels.codegeneration.cpp;
import com.amazonaws.util.awsclientgenerator.domainmodels.codegeneration.Metadata;
import com.amazonaws.util.awsclientgen... |
// Copyright (c) Microsoft Corporation.
// All rights reserved.
//
// This code is licensed under the MIT License.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, in... |
package roadgraph;
import geography.GeographicPoint;
public abstract class DistanceNode {
protected double distFromSource;
protected GeographicPoint position;
//protected double distToDest; // this is the estimated distance to the destination
//public DistanceNode(double dfs, GeographicPoint pos, double dtd) ... |
package com.little.g.pay.mapper;
import com.little.g.pay.model.FrozenRecord;
import com.little.g.pay.model.FrozenRecordExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
public interface FrozenRecordMapper {
long countByExample(FrozenRecordExamp... |
/*
* 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... |
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... |
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... |
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.cs20151215.models;
import com.aliyun.tea.*;
public class DescribeClusterUserKubeconfigResponseBody extends TeaModel {
@NameInMap("config")
@Validation(required = true)
public String config;
public static DescribeClusterUserKube... |
package com.ddchen.bridge.adbpc;
import android.os.FileObserver;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
/**
* Created by yuer on 10/12/16.
* <p>
* used to mon... |
/*
* 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 ... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package com.baseflow.googleapiavailability;
public final class R {
private R() {}
public static final class attr {
pri... |
package cn.hp.hp.ui.weather.adapter;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.chad.library.a... |
/*
* Copyright 2012-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
/*
* nimbus-jose-jwt
*
* Copyright 2012-2016, Connect2id Ltd.
*
* 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 mage.cards.a;
import java.util.UUID;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.Ability;
import mage.abilities.SpellAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.common.SpellCastControllerTriggeredAbility;
import mage.abilities.effects.common.cost.Cos... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2020 Alexandre DuBreuil
*
* 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
* t... |
/*
* 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.drkmatr1984.storageapi.objects.entities;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.entity.Entity;
imp... |
package io.stream.serialport;
import com.fazecast.jSerialComm.*;
import io.stream.BaseStream;
import io.Writable;
import org.tinylog.Logger;
import org.w3c.dom.Element;
import util.tools.Tools;
import util.xml.XMLfab;
import util.xml.XMLtools;
import worker.Datagram;
import java.nio.ByteBuffer;
import java.time.Insta... |
package com.avalon.client;
import java.awt.BorderLayout;
import java.awt.HeadlessException;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.image.BufferStrategy;
import java.io.BufferedReader;
import java.io.... |
package com.luizalabs.tdd;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class JavaKataCalculatorLuizalabsApplication {
public static void main(String[] args) {
SpringApplication.run(JavaKataCalculatorLuizalabs... |
/*
* Copyright 2012-2018 Chronicle Map 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 applicab... |
package com.clusus.payroll.accounting.domain.model;
import lombok.Builder;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
@Data
@Builder
public class AllowanceModel {
private Boolean enabled;
private LocalDate entryDate;
private BigDecimal amount;
} |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... |
package cn.knightapple.tools;
import java.io.*;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
/**
* @author kngihtapple
* @version 1.1
*/
public class ConfigReader {
private static Properties properties;
private static Properties systemProperty;
static {
ini();
... |
/*
* Copyright 2007-2016 Bas Leijdekkers
*
* 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... |
/**
* Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
*/
package io.deephaven.client.impl;
import io.deephaven.proto.util.ScopeTicketHelper;
import java.util.Objects;
/**
* An opaque holder for a query scope variable ID.
*/
public final class ScopeId implements HasTicketId, HasPathId {
privat... |
/*
* 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.communication.chat;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
im... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.geocamera;
public final class R {
public static final class anim {
public static final int abc_fade_in=0x7f010000;
pu... |
package com.brins.nba.utils.GlideHelper;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Paint;
import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
import com.bumptech.glide.load.resource.bitmap.... |
package com.wolf.javabean;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.wolf.javabean.LogBean.LogDatas;
import com.wolf.javabean.LogBean.Logs;
import io.netty.channel.Channel;
public class SuccessLog {
private String mainId;
private String parentId;
private String id;
private String tim... |
package com.atguigu.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... |
/*
* 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 ... |
/*
* Table.java
*
* Created on February 15, 2006, 9:33 PM
*
*/
package ika.table;
import ika.geo.*;
import java.io.*;
import java.util.*;
import javax.swing.event.TableModelListener;
import javax.swing.table.*;
/**
*
* @author jenny
*/
public class Table extends DefaultTableModel
implements java.io.... |
package jabs.consensus;
import jabs.blockchain.LocalBlockTree;
import jabs.data.Block;
import jabs.data.Tx;
import jabs.node.nodes.BlockchainNode;
public abstract class AbstractBlockchainConsensus<B extends Block<B>, T extends Tx<T>> extends AbstractConsensusAlgorithm<B, T> {
/**
* Local Block Tree in Nodes ... |
// Targeted by JavaCPP version 1.5.5-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.cuda.cusolver;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import org.bytedeco.cuda.cudart.*;
import static org.bytedeco.cuda... |
package de.srendi.advancedperipherals.common.items.base;
import de.srendi.advancedperipherals.AdvancedPeripherals;
import de.srendi.advancedperipherals.client.KeyBindings;
import de.srendi.advancedperipherals.common.util.EnumColor;
import de.srendi.advancedperipherals.common.util.TranslationUtil;
import net.minecraft.... |
import org.apache.commons.io.IOUtils;
import java.io.*;
import java.util.zip.Deflater;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import java.util.zip.ZipOutputStream;
public class ZipUtil {
private ZipEntryHandler zipEntryHandler = null;
public ZipUtil() {
}
public ZipUtil(... |
/*
* Copyright 2014 The Netty Project
*
* The Netty Project 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/licenses/LICENSE-2.0
*
* Unless required ... |
package org.ripple.bouncycastle.asn1.pkcs;
import org.ripple.bouncycastle.asn1.ASN1EncodableVector;
import org.ripple.bouncycastle.asn1.ASN1Object;
import org.ripple.bouncycastle.asn1.ASN1Primitive;
import org.ripple.bouncycastle.asn1.ASN1Sequence;
import org.ripple.bouncycastle.asn1.ASN1TaggedObject;
import org.rippl... |
package com.hust.baseweb.applications.salesroutes.model.salesrouteconfigcustomer;
import lombok.Getter;
import lombok.Setter;
import java.util.UUID;
@Getter
@Setter
public class CreateSalesRouteConfigCustomerInputModel {
private UUID salesRouteConfigId;
private UUID partyCustomerId;
private UUID partySal... |
package furious.objadapters;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.ArrayList;
import furious.dataobjs.CrimeObject;
impor... |
package com.hakodev.androiditunesapi.activities;
import android.Manifest;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.constraint.ConstraintLayout;
import android.support.design.widget.Snackbar;
import android.support... |
package br.com.caelum.estoque.modelo.usuario;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlAccessorType(XmlAccessType.FIELD)
public class InfoFault {
private String mensagem;
private Date dataErro;
InfoFault() {
}
public In... |
package com.hkdemircan.todoapp.request;
import com.hkdemircan.todoapp.dto.UserDto;
import com.hkdemircan.todoapp.request.base.BaseRequest;
public class UserRequest extends BaseRequest {
private UserDto user;
public UserDto getUser() {
return user;
}
public void setUser(UserDto user) {
... |
package xyz.flysium.photon.algorithm.hash.basic.beginner;
import java.util.HashSet;
/**
* 217. 存在重复元素
* <p>
* https://leetcode-cn.com/problems/contains-duplicate/
*
* @author zeno
*/
public interface T0217_ContainsDuplicate {
// 给定一个整数数组,判断是否存在重复元素。
//
// 如果任意一值在数组中出现至少两次,函数返回 true 。如果数组中每个元素都不相同,则返回 fal... |
package com.sharat.restfulwebservice.mybatis.example;
import java.net.URI;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.... |
/*
* 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 view;
/**
* If a GUI exists, all the publish..-methods must be called from the EDT.
*/
public interface View {
public void publishException(String message, Throwable e);
public void publishIssue(String formatMessage, Object... args);
public boolean publishConfirmOption(String formatMes... |
package com.balceda.teachers.service.interfaces;
import com.balceda.teachers.model.SocialMedia;
import com.balceda.teachers.model.TeacherSocialMedia;
import com.balceda.teachers.service.exception.ServiceException;
public interface SocialMediaService extends Service<SocialMedia> {
TeacherSocialMedia findSocialMedia... |
/*
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 dk.in2isoft.onlineobjects.apps.people.views;
import dk.in2isoft.onlineobjects.model.Image;
import dk.in2isoft.onlineobjects.model.Person;
import dk.in2isoft.onlineobjects.model.User;
public class UserInfo {
private User user;
private Person person;
private Image image;
public void setUser(User user) {
... |
package org.made.neohabitat.mods;
import org.elkoserver.foundation.json.JSONMethod;
import org.elkoserver.foundation.json.OptBoolean;
import org.elkoserver.foundation.json.OptInteger;
import org.elkoserver.json.EncodeControl;
import org.elkoserver.json.JSONLiteral;
import org.elkoserver.server.context.User;
import org... |
/*
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.corba.se.impl.presentation.rmi ;
import java.io.Serializable ;
import java.io.External... |
/*
* Variman RETS Server
*
* Author: Mark Klein
* Copyright (c) 2009, The National Association of REALTORS
* Distributed under a BSD-style license. See LICENSE.TXT for details.
*/
package org.realtors.rets.server;
import java.util.Iterator;
import org.apache.log4j.Logger;
import org.apache.log4j.Level;
/**
... |
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-gener... |
package org.workcraft.dom;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashSet;
import org.workcraft.observation.ObservableHierarchy;
public class DefaultGroupImpl extends AbstractGroup implements ObservableHierarchy, Container {
private final Collection<Node> children = new... |
/**
* 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.kaosoft.ecommerce.product.dao;
import com.kaosoft.ecommerce.product.entity.SkuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* sku信息
*
* @author morsuning
* @email morsuning@gmail.com
* @date 2021-09-13 17:28:30
*/
@Mapper
public... |
/*
* LXD
* The services listed below are referred as .....
*
* The version of the OpenAPI document: 1.0.0
* Contact: support@relxd.org
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package o... |
/**
* Copyright 2004 - 2017 Syncleus, 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... |
package com.study.algafood.api.v1.converter;
import java.util.List;
import java.util.stream.Collectors;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.study.algafood.api.v1.model.RestauranteModel;
import c... |
package com.zhao.service;
/**
* @author zhaojinliang
* @version 1.0
* @description TODO
* @date 2020-03-08 11:10
*/
public interface Service {
} |
package com.navigationhybrid.playground;
import android.support.multidex.MultiDexApplication;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import c... |
/*
* Copyright (c) 2015, salesforce.com, 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 notice, this list of cond... |
/** Automatically generated file. DO NOT MODIFY */
package com.spring.weather;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package edu.pingpong.enzinium.contracts;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.SecureRandom;
import java.security.Signature;
class GenSig {
/**
* Genera el par de clave publica PK y clave pri... |
package pokecube.core.interfaces.capabilities.impl;
import net.minecraft.item.ItemStack;
public abstract class PokemobEvolves extends PokemobHungry
{
@Override
public ItemStack getEvolutionStack()
{
return this.stack;
}
/** @return the evolutionTicks */
@Override
public int getEv... |
package com.ithinksky.java.n05mutilthread.base.producerconsumer.t001;
/**
* 生产者
*
* @author tengpeng.gao
* @since 2019-02-27
*/
public class Producer implements Runnable {
private ProductRepository productRepository;
public Producer(ProductRepository productRepository) {
this.productRepository =... |
package de.szalkowski.activitylauncher;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Gri... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package org.apache.lucene.queryparser.flexible.core.config;
/*
* 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... |
package net.n2oapp.framework.api.metadata.meta.widget.calendar;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
/**
* Ресурс календаря
*/
@Getter
@Setter
public class CalendarResource implements Serializable {
private String id;
private String title;
} |
/*
* Copyright 2014 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 applic... |
package com.github.antkudruk.uniformfactory.test.gradleplugin.wrapperclass;
import com.github.antkudruk.uniformfactory.pluginbuilder.WrapperPlugin;
public class PluginImpl extends WrapperPlugin {
public PluginImpl( ) {
super(
Origin.class,
Wrapper.class,
Mar... |
/*
* Copyright (C) 2015 Square, 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 agre... |
package org.pavelf.nevada.api.persistence.domain;
import java.time.Instant;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinC... |
package com.lzhlyle.leetcode.week.no1008;
public class ConstructBinarySearchTreeFromPreorderTraversal_LC {
private int i; // 全局变量
public TreeNode bstFromPreorder(int[] preorder) {
i = 0;
return _build(preorder, Integer.MAX_VALUE);
}
private TreeNode _build(int[] arr, int bound) {
... |
package net.ihiroky.niotty.util;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.*;
/**
*
*/
public class JavaVersionTest {
@Rule
public ExpectedException exceptionRule_ = ExpectedEx... |
package io.github.ginkgocity;
public enum NodeTypeEnum {
ROOT((short)0),
START((short)1),
MIDDLE((short)2),
END((short)3),
WHITE((short)4);
private short value;
NodeTypeEnum(short value){
this.value = value;
}
public short getValue(){
return this.value;
}
} |
package com.example.f28;
import android.os.Bundle;
import io.flutter.app.FlutterActivity;
import io.flutter.plugins.GeneratedPluginRegistrant;
public class MainActivity extends FlutterActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
GeneratedPlu... |
package com.pradeep;
import com.pradeep.model.Airplane;
import com.pradeep.model.SeatGroup;
import com.pradeep.model.SeatType;
import com.pradeep.service.AirplaneService;
import com.pradeep.service.AirplaneServiceImpl;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList... |
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.BQOutboundACHRetrieveOutputModelInboundACHInstanceRecordACHPaymentTransactionRecor... |
package top.glory.web.model;
import java.util.ArrayList;
import java.util.List;
public class CropspeciesExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CropspeciesExample() {
oredCriteria = new ArrayList<Criteria>();
}
... |
/*
* Hivemall: Hive scalable Machine Learning Library
*
* Copyright (C) 2015 Makoto YUI
* Copyright (C) 2013-2015 National Institute of Advanced Industrial Science and Technology (AIST)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
package com.blankj.androidutilcode;
import android.os.Environment;
/**
* <pre>
* author: Blankj
* blog : http://blankj.com
* time : 2017/05/10
* desc : 配置常量
* </pre>
*/
public class Config {
public static final String FILE_SEP = System.getProperty("file.separator");
public static fi... |
package com.example.zstd.microblog.model;
import java.util.Date;
public class BlogPostBuilder {
private Long id;
private String creator;
private String message;
private String topics;
private String mentions;
private Date created;
private BlogPostBuilder() {
}
public static BlogP... |
/*
* Copyright (c) 2014 Geomenum Inc. All Rights Reserved.
*/
package com.geomenum.core.services.system.upload;
import com.geomenum.core.domainmodel.system.Image;
import java.net.URI;
/**
* Service used to upload files.
*/
public interface UploadCoreService {
/**
* Upload the given image to the given ... |
package seedu.address.itinerary.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.itinerary.logic.parser.CliSyntax.PREFIX_DATE;
import static seedu.address.itinerary.logic.parser.CliSyntax.PREFIX_DESCRIPTION;
import static seedu.address.itinerar... |
package android.support.v7.app;
import android.support.v7.view.b;
import android.support.v7.view.b.a;
public abstract interface d
{
public abstract void onSupportActionModeFinished(b paramb);
public abstract void onSupportActionModeStarted(b paramb);
public abstract b onWindowStartingSupportActionMode(b.a... |
package com.zzx.domain.entity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util... |
package com.shinho.support.cache.redis.autoconfig;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.gson.Gson;
import com.shinho.support.cache.redis.properties.CacheRedisProperties;
im... |
/*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this f... |
public class P4Mock {
private Isla northlandGuam = null;
private Isla southernPeninsula = null;
static String describe = "57ckGw1x7bwXa5ig";
public P4Mock(int septentrion, int southland) {
northlandGuam = new Isla("N", septentrion);
southernPeninsula = new Isla("S", southland);
}
public synchroniz... |
public class GeneralizedHarmonic {
public static void main(String[] args) {
int n = Integer.parseInt(args[0]);
int r = Integer.parseInt(args[1]);
double H = 0;
for (int i = 1; i <= n; i++)
H = H + 1/ (Math.pow(i, r));
System.out.println(H);
}
} |
/*
* All content copyright Terracotta, Inc., unless otherwise indicated. 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/license... |
/*
* generated by Xtext 2.12.0
*/
package gw4e.eclipse.dsl.services;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import java.util.List;
import org.eclipse.xtext.Action;
import org.eclipse.xtext.Alternatives;
import org.eclipse.xtext.Assignment;
import org.eclipse.xtext.Grammar;
import org.ec... |
/*
* Copyright (C) 2009 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.