text stringlengths 7 1.01M |
|---|
package imagingbook.lib.util;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
/**
* Classes which require a complex {@code toString()} method should
* implement this interface, which requires the single method
* {@link #printToStream(PrintStream)}, e.g.,
* <pre>
* public void printToStream(Pri... |
package io.github.frame.cache.redis;
import io.github.util.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.redis.cache.RedisCache;
import org.springframework.data.redis.cache.RedisCacheConfiguration;
import org.springframework.data.redis.cache.RedisCacheWriter;
imp... |
package com.datatorrent.lib.db.jdbc;
import java.sql.*;
import java.util.List;
import javax.annotation.Nonnull;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import com.google.common.collect.Lists;
import com.datatorrent.api.AttributeMap;
import com.datatorrent.api.DAG;
import com.... |
package com.atguigu.gmall.wms.config;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.HashMap;
import java.util.Map;
@Configuration
public class ... |
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package bc;
import be.GastosEconomicos;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author root
*/
@Stateless
public class GastosEconomic... |
package com.google.checkstyle.test.chapter4formatting.rule4842fallthrow;
public class FallThroughInput
{
void method(int i, int j, boolean cond) {
while (true) {
switch (i) {
case 0: // no problem
case 1:
i++;
break;
case 2:
... |
package seedu.taskmaster.storage;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import seedu.taskmaster.commons.exc... |
/*******************************************************************************
* Copyright (c) 2005, 2014 springside.github.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
*******************************************************************************/
package org.springside.modules.utils;
... |
package com.cgfay.uitls.bean;
import android.database.Cursor;
import android.os.Parcel;
import android.os.Parcelable;
import android.provider.MediaStore;
import android.text.TextUtils;
/**
* 音乐数据
*/
public class MusicData implements Parcelable {
public static final Creator<MusicData> CREATOR = new Creator<Musi... |
package ru.alexsumin.weightstatbot.commands;
import org.telegram.telegrambots.api.methods.send.SendMessage;
import org.telegram.telegrambots.api.objects.Message;
import ru.alexsumin.weightstatbot.service.MeasurementService;
import ru.alexsumin.weightstatbot.util.DifferenceCalculator;
import java.math.BigDecimal;
impo... |
/*
* Copyright (C) 2016 Red Hat, 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... |
/**
Copyright 2008 University of Rochester
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable... |
package org.apache.commons.net.ftp.parser;
import java.util.Calendar;
import org.apache.commons.net.ftp.FTPFile;
public class EnterpriseUnixFTPEntryParser extends RegexFTPFileEntryParserImpl {
private static final String MONTHS = "(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)";
private static final String ... |
/*
* Copyright 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 applica... |
package com.neogineer.automataconverter;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutCompat;
import androi... |
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... |
package havis.util.platform.osgi;
public class InvalidPropertyException extends Exception {
private static final long serialVersionUID = -1231994295732684631L;
public InvalidPropertyException(String message) {
super(message);
}
}
|
/*
* Copyright 2014 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... |
/*
* 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 ... |
import java.util.*;
import tNet.*;
import tNet.core.*;
import tNet.events.*;
public class Main
{
static NetworkManager manager;
static boolean chatInitialized = false;
static boolean clientInitialized = false;
static Scanner input;
public static void main(String[] args)
{
PrintChatMsg("This is a chat appl... |
package com.softicar.platform.db.runtime.table.logic;
import com.softicar.platform.db.runtime.object.DbTestObject;
import com.softicar.platform.db.runtime.object.DbTestObjects;
import com.softicar.platform.db.runtime.test.AbstractDbTest;
import org.junit.Test;
public class DbTableRowResultSetReaderTest extends Abstra... |
package com.planet_ink.coffee_mud.Behaviors;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.pl... |
/**
* The CD class represents a CD object. Information about the
* CD is stored and can be retrieved.
*
* @author Michael Kolling and David J. Barnes
* @version 2008.03.30
*/
public class CD extends Item
{
private String artist;
private int numberOfTracks;
/**
* Initialize the CD.
* @para... |
/**
* 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.cjw.rhclient.view.dialog;
import android.app.Activity;
import android.view.View;
import java.lang.ref.WeakReference;
public class TipDialog {
private static WeakReference<Activity> mWeakReference;
private static BaseCustomDialog mDialog;
/**
* @param activity 需要弹窗的activity
* @param message 弹窗展示... |
package io.lumify.core.model.textHighlighting;
import io.lumify.core.model.termMention.TermMentionFor;
import io.lumify.web.clientapi.model.SandboxStatus;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
public abstract class Off... |
//
// MessagePack for Java
//
// 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... |
/*-------------------------------------------------------------------------------------------------------------------*\
| Copyright (C) 2014 PayPal |
| ... |
package com.syong.gulimall.coupon.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 商品阶梯价格
*
* @author syong
* @email syong@gmail.com
* @dat... |
/* 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.calc.androidtpcalc;
public final class R {
public static final class anim {
public static final int ab... |
package crazypants.enderzoo.spawn;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.EntityLiving;
import net.minecraft.world.biome.BiomeGenBase;
import cpw.mods.fml.common.registry.EntityRegistry;
import crazypants.ende... |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
package com.xilidou;
public class JsonToken {
}
|
package testmodel.nomicronaut;
public enum EnumerationString {
ONE("one"),
TWO("two");
public static final java.lang.String ONE_VALUE = "one";
public static final java.lang.String TWO_VALUE = "two";
private final java.lang.String value;
private EnumerationString(java.lang.String value) {
this.value = valu... |
package fi.omat.johneagle.filebox.domain.validationmodels;
import javax.validation.constraints.NotEmpty;
import fi.omat.johneagle.filebox.validators.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* Validation object for updating personal info.
*
* @see OldPassword
* ... |
import java.util.Scanner;
/**
* lab15 methods/while solution
* write a method that takes a number
* then returns the factorial for that number
*
* @pmcampbell
* @version 2016-10-25
*
**/
public class Lab15Factorial
{
public static void main(String[] args)
{
int num1,factorial;
Scanner kb = new Sc... |
package org.gradle.test.performance.mediummonolithicjavaproject.p100;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test2013 {
Production2013 objectUnderTest = new Production2013();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... |
/*
* Copyright (c) 2017, Adam <Adam@sigterm.info>
* 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 copyright notice, this
* li... |
package com.blooms.kingsite.modules.cms.dao;
import com.blooms.kingsite.common.persistence.CrudDao;
import com.blooms.kingsite.common.persistence.annotation.MyBatisDao;
import com.blooms.kingsite.modules.cms.entity.ArticleData;
/**
* 文章DAO接口
* @author Blooms
* @version 2013-8-23
*/
@MyBatisDao
public interface Ar... |
/**
* 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... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 PaleoCrafter, Ordinastie
*
* 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 right... |
/**
* Copyright (C) 2015 Red Hat, 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.mapbox.navigation.ui;
import android.location.Location;
import com.mapbox.navigation.base.trip.model.RouteProgress;
import com.mapbox.navigation.core.trip.session.LocationObserver;
import com.mapbox.navigation.core.trip.session.RouteProgressObserver;
import org.jetbrains.annotations.NotNull;
import java... |
package net.dvt32.javabrains;
public interface Calculator {
int add(int a, int b);
int multiply(int a, int b);
}
|
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* spring-boot: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/
* spring-data-mongodb: https://github.com/spring-projects/spring-data-mongodb
*/... |
package com.jarp.constraintlayoutsamples;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
public class ChainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInst... |
package com.example.fapp3;
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);
GeneratedP... |
// --------------------------------------------------------------------------------
// Copyright 2002-2021 Echo Three, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http:/... |
/*
Java Libraries https://github.com/foilen/java-libraries
Copyright (c) 2015-2021 Foilen (https://foilen.com)
The MIT License
http://opensource.org/licenses/MIT
*/
package com.foilen.smalltools.streamwrapper.bytesprocessor;
import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerF... |
package com.fr.swift.segment;
import com.fr.swift.source.SourceKey;
import java.util.Collection;
import java.util.List;
/**
* @author pony
* @date 2017/10/16
* 管理本机的单个分片的segment
*/
public interface SwiftSegmentManager {
Segment getSegment(SegmentKey key);
boolean existsSegment(SegmentKey segKey);
L... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package vista.familiares;
/**
*
* @author Lucas
*/
public class interfaz_familiar extends javax.swing.JPanel {
/**
* Crea... |
/*
* Copyright (C) 2011 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... |
/**
* PlacementErrorReason.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.v201211;
public class PlacementErrorReason implements java.io.Serializable {
private java.lang.String _value_;
private stati... |
package com.js.sas.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.ToString;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Collection;
/**
* @author daniel
* @description: 系统用户
* @create: 2019-10-16 15:35
*/
@Entity
@Data
@Table(name ="syste... |
/*
* 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 com.chipsea.code.util;
//
//import android.text.TextUtils;
//import android.util.Log;
//
//import com.accloud.cloudservice.AC;
//import com.accloud.cloudservice.PayloadCallback;
//import com.accloud.cloudservice.VoidCallback;
//import com.accloud.service.ACDeviceBind;
//import com.accloud.service.ACDeviceFind... |
/**
* 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... |
public abstract class Pessoa {
private String nome;
public Pessoa(String nome) {
this.setNome(nome);
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
}
|
/*
* Copyright (c) 2021-present radien GmbH. All rights reserved.
* <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>
* Unles... |
/*
* 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 fr.yuki.yrpf.model;
import eu.bebendorf.ajorm.Model;
import eu.bebendorf.ajorm.annotation.Column;
import eu.bebendorf.ajorm.annotation.Table;
import lombok.Getter;
import lombok.Setter;
import net.onfirenetwork.onsetjava.data.Vector;
import net.onfirenetwork.onsetjava.entity.Pickup;
import net.onfirenetwork.on... |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2022 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 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... |
public interface AreaCalculavel {
public double calcularArea();
}
|
package tconstruct.smeltery.blocks;
import tconstruct.blocks.TConstructBlock;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.init.Blocks;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
i... |
/**
* 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.
*/
package com.microsoft.azure.management.resourcemover.v2021_01_01;
import java.util.Coll... |
package com.lvjian.mybatis.chapter.plugin;
import com.alibaba.fastjson.JSON;
import com.lvjian.mybatis.chapter.plugin.entity.UserEntity;
import com.lvjian.mybatis.chapter.plugin.mapper.UserMapper;
import com.lvjian.mybatis.common.DbUtils;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSessi... |
package fakekube.io.model;
import fakekube.io.model.IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition;
import fakekube.io.model.IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources;
import fakekube.io.model.IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomReso... |
package edu.illinois.g31.worldview;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
/**
* Created by tyler on 11/16/2016.
*/
public class Feed implements Parcelable {
private String feedname;
private ArrayList<String> topics, sources;
public Feed(String name) {
... |
package com.cnpc.framework.base.service.impl;
import java.io.Serializable;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.type.Type;
import org.springframework.st... |
package io.github.mariazevedo88.javaoca.chp.three.caelum.operators;
/**
* @author Mariana Azevedo
* @since 23/06/2019
*
* Question 1.3.5 (page 119) - The following expression can be reduced, how can we do it?
*
* if ((train && !car) || (!train && car)) {
* // ...
* }
*
* a) Switching to use an operator... |
/*
* Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved. This
* code is released under a tri EPL/GPL/LGPL license. You can use it,
* redistribute it and/or modify it under the terms of the:
*
* Eclipse Public License version 1.0
* GNU General Public License version 2
* GNU Lesser General Public... |
package com.misterright.util.keyboard;
import android.app.Activity;
import android.graphics.Rect;
import android.os.Build;
import android.view.View;
import android.view.ViewTreeObserver;
import android.widget.FrameLayout;
import android.widget.FrameLayout.LayoutParams;
/**
*
*
* use
* Activity的onCre... |
/*___Generated_by_IDEA___*/
package com.example.bytebank;
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
public final class Manifest {
} |
/*
* 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... |
public class ProgramMain {
public static void main(String[] args) {
int banyakPersamaan = 3;
int banyakUnknown = 4;
String[] koefisien = {"1 2 3 4 100", "2 1 0 0 125", "0 4 5 3 200"};
IsiMatrix program = new IsiMatrix(banyakPersamaan,banyakUnknown);
for (int i = 0; i < banyakPersamaan;i++)
program.inpu... |
package com.wang.util.common;
import com.alibaba.fastjson.JSONObject;
/**
* Json和Object的互相转换,转List必须Json最外层加[],转Object,Json最外层不要加[]
* @author jyw
* @date 2018/8/9 15:37
*/
public class JsonConvertUtil {
/**
* JSON 转 Object
*/
public static <T> T jsonToObject(String pojo, Class<T> clazz) {
... |
package com.dotmarketing.portlets.workflows.model;
import com.dotmarketing.util.UtilMethods;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang.builder.ToStringBuilder;
public class WorkflowTask implements Serializable
{
... |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
package databook.persistence.rule.rdf;
import databook.persistence.rule.rdf.ruleset.RDFEntity;
public class RDFNumberPropertyRule<T extends RDFEntity> extends RDFAbstractPropertyRule<T, Double>{
public RDFNumberPropertyRule() {
super(new StringDoubleMapping());
}
}
|
package com.example.rocketanimation;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public... |
package de.uni_mannheim.informatik.dws.tnt.match.data;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Seria... |
/*
* Copyright (C) 2020 Beijing Yishu Technology Co., 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 by ... |
package ru.job4j.loop;
import java.util.function.BiPredicate;
/**
* Построение пирамиды в псевдографике.
*
*@author John Ivanov (johnivo@mail.ru)
*@version 1
*@since 12.12.2018
*/
public class Paint {
/**
* Метод строит правосторонний треугольник из символов ^ и " ".
*
* @param height высота... |
package no.nav.registre.inst.properties;
public class HttpRequestConstants {
private HttpRequestConstants() {
}
public static final String HEADER_NAV_CONSUMER_ID = "Nav-Consumer-Id";
public static final String HEADER_NAV_CALL_ID = "Nav-Call-Id";
public static final String ACCEPT = "accept";
p... |
package net.minestom.server.network.packet.server.play;
import net.minestom.server.network.packet.server.ServerPacket;
import net.minestom.server.network.packet.server.ServerPacketIdentifier;
import net.minestom.server.utils.Position;
import net.minestom.server.utils.binary.BinaryWriter;
import org.jetbrains.annotatio... |
// Copyright 2014 The Bazel Authors. 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 appl... |
package com.srx.flytxtview;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
public class MainActivity extends Activity {
private FlyTxtView flyTxtView;
private TextView resetBtn;... |
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
public class Population {
Chromosome[] population;
Double minDistance = 0.0;
private int[] roulette_wheel = null;
public Population(int n) {
this.population = new Chromosome[n];
population[0] = new Chromosome();
int added... |
/*
* Copyright (c) 2020 Baidu, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
package com.tibco.aws.sns;
import com.amazonaws.ResponseMetadata;
import com.amazonaws.services.sns.model.SetSubscriptionAttributesResult;
public class SetSubscriptionAttributesResponse {
private ResponseMetadata responseMetadata;
private SetSubscriptionAttributesResult setSubscriptionAttributesResu... |
/*
* Copyright 2013-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
// Chris Collander, Costco 1173, 4/20/2015
package zerosales;
import java.io.File;
import java.util.ArrayList;
import java.util.Optional;
import java.util.Random;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.con... |
package org.cloudfoundry.credhub.integration;
import java.util.Arrays;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.Test... |
package org.basex.query.func.archive;
import static org.basex.query.QueryError.*;
import static org.basex.query.func.archive.ArchiveText.*;
import java.io.*;
import org.basex.core.*;
import org.basex.io.in.*;
import org.basex.query.*;
import org.basex.query.func.*;
import org.basex.query.func.convert.*;
import org.b... |
package io.taucoin.net.swarm.bzz;
import com.google.common.base.Joiner;
import org.apache.commons.codec.binary.StringUtils;
import io.taucoin.net.p2p.Peer;
import io.taucoin.net.peerdiscovery.PeerInfo;
import io.taucoin.net.rlpx.Node;
import io.taucoin.net.swarm.Key;
import io.taucoin.net.swarm.Util;
import io.taucoin... |
package games.utils;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.ui.*;
import com.badlogic.gdx.scenes.scen... |
/*
* Copyright (C) 2021 Nameless Production Committee
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*/
package kiss.signal;
import org.j... |
package com.fuint.application.service.cart;
import com.fuint.application.dao.entities.MtCart;
import com.fuint.exception.BusinessCheckException;
import java.util.List;
import java.util.Map;
/**
* 购物车业务接口
* Created by FSQ
* Contact wx fsq_better
*/
public interface CartService {
/**
* 保存购物车
*
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.