text stringlengths 10 2.72M |
|---|
package network.nerve.dex.util;
import io.nuls.base.data.CoinFrom;
import io.nuls.base.data.CoinTo;
import java.util.Arrays;
import java.util.Comparator;
public class CoinToComparator implements Comparator<CoinTo> {
private CoinToComparator() {
}
private final static CoinToComparator instance = new Co... |
package com.lenovohit.ssm.app.el.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.lenovohit.core.model.BaseIdModel;
@Entity
@Table(name = "EL_SECTIONAL_DESC")
public class SectionalDesc extends BaseIdModel {
private static final long serialVersionUI... |
package com.turios.activities.fragments;
import android.app.Activity;
import android.app.SearchManager;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import androi... |
package cogbog.constant;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import java.io.Serializable;
import static cogbog.constant.ModType.*;
@RunWith(JUnit4.class... |
package testinggame.Controladores;
import animatefx.animation.Pulse;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import java... |
package testCases;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import setup.Browser;
import setup.elementHandler;
public class verifyRoute {
public static List<String> verifyRouteCount(HashMap <String, String... |
package kafka2kafka;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.table.api.EnvironmentSettings;
import org.apache.flink.table.api.Types;
import org.apache.flink.table.api.java.StreamTableEnvironment;
... |
package com.pago.core.quotes.dao.service;
import javax.inject.Inject;
import com.pago.core.quotes.dao.models.EventItem;
import io.dropwizard.hibernate.AbstractDAO;
import org.hibernate.SessionFactory;
import java.util.List;
public class EventTableService extends AbstractDAO<EventItem> {
@Inject
public EventT... |
package sr.hakrinbank.intranet.api.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import sr.hakrinbank.intranet.api.model.ProblemLoa... |
package net.tascalate.concurrent;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
public interface TaskExecutorService extends ExecutorService {
<T> Promise<T> submit(Callable<T> task);
<T> Promise<T> submit(Runnable task, T result);
Promise<?> submit(Runnable task);
... |
package cn.itcast.core.controller;
import cn.itcast.core.pojo.entity.PageResult;
import cn.itcast.core.pojo.entity.Result;
import cn.itcast.core.pojo.seckill.SeckillOrder;
import cn.itcast.core.service.SecKillOrderService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.a... |
package structural.bridge;
public class Abstraction extends AAbstraction{
public void operation() {
this.implementation.operation();
}
}
|
/*
* 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.
*/
/**
*
* @author Nav
*/
public class Problem {
String initialState;
String goalState;
Problem()
{
... |
package ffm.slc.model.resources;
/**
* A unique numeric code assigned to a person by a state education agency.
*/
public class UniqueStateIdentifier extends StringResource{}
|
package cz.muni.fi.pa165.monsterslayers.service.facadeImpl;
import cz.muni.fi.pa165.monsterslayers.dto.jobs.*;
import cz.muni.fi.pa165.monsterslayers.entities.Hero;
import cz.muni.fi.pa165.monsterslayers.entities.Job;
import cz.muni.fi.pa165.monsterslayers.enums.JobStatus;
import cz.muni.fi.pa165.monsterslayers.facade... |
package com.github.niwaniwa.whitebird.core.listener;
import java.io.IOException;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.configuration.InvalidConfigurationException;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import ... |
package br.com.hitbra.services;
import br.com.hitbra.model.OfferModel;
public interface OfferCommand
{
void execute( OfferModel model );
}
|
package slimeknights.tconstruct.tools.modifiers;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.util.FakePlayer;
import net.minecraftforge.event.entity.player.Pl... |
package edu.mit.cci.simulation.model;
import org.springframework.transaction.annotation.Transactional;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Set;
/**
* User: jintrone
* Date: 2/28/11
* Time: 12:52 PM
*/
public class DelegatingSim extends DefaultSimulation {
... |
package com.trump.auction.order.service.impl;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cf.common.util.mapping.BeanMapper;
import com.cf.common.uti... |
package com.algorithm.tree;
import java.util.*;
public class LevelOrder1 {
public List<List<Integer>> list = new ArrayList<List<Integer>>();
public List<List<Integer>> levelOrder(Node root) {
if(root == null){
return Collections.emptyList();
}
Queue<Node> queue = new Lin... |
package controller;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.... |
package com.document.feed.service;
import com.document.feed.model.ArticleReactiveRepository;
import com.document.feed.model.Preference;
import com.document.feed.model.PreferenceReactiveRepository;
import com.document.feed.util.IdUtils;
import com.kwabenaberko.newsapilib.models.Article;
import lombok.RequiredArgsConstr... |
package com.jwebsite.dao;
import java.util.List;
import com.jwebsite.vo.Attach;
/**
* 附件管理
* @author 木鱼
*/
public interface AttachDao {
//添加附件
public void AddAttach(Attach attach)throws Exception;
//删除附件
public void DelAttach(int ID)throws Exception;
//修改附件
public int UpdateAttach(Attach attach)throws Excep... |
package com.example.stockup;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.google.andro... |
public class BinaryHeap<T extends Comparable<? super T>> {
public T[] heap;
public int size;
@SuppressWarnings("unchecked")
public BinaryHeap() {
size = 0;
this.heap = (T[]) new Comparable[10];
}
@SuppressWarnings("unchecked")
public void insert(T element) {
if (this.size+1 >= heap.length) {
T[] tem... |
package generic;
import java.io.FileInputStream;
import java.io.IOException;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.testng.annotations.BeforeTest;
public class base_class {
public XSSFWorkbook wb = null;
public static base_class b;
@BeforeTest(groups={"SmokeTest","Regression"}... |
package com.lesports.albatross.adapter.compertition.details;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.ClickableSpan;
import android.view.ContextMenu;
import android.view.LayoutInflater;
imp... |
package Java三.线程常用操作方法;
public class Interrupt1 {
public static void main(String[] args) throws InterruptedException {
Thread thread = new Thread(()->{
System.out.println("****线程开始启动***");
try {
Thread.sleep(10000); //预计准备休眠10秒
} catch (Interrupte... |
import java.util.Stack;
public class ConvertBase {
public static void main(String[] args) {
//System.out.println("Hello World!");
convert_base(188, 16);
System.out.println();
System.out.println(restore("BC", 16));
}
//input 10 base
//output d base d<=16
public static... |
package leetCode.copy.Array;
import java.util.Arrays;
/**
* 274. H 指数
*
* 给定一位研究者论文被引用次数的数组(被引用次数是非负整数)。编写一个方法,计算出研究者的 h 指数。
* h 指数的定义:h 代表“高引用次数”(high citations),一名科研人员的 h 指数是指他(她)的 (N 篇论文中)总共有 h 篇论文分别被引用了至少 h 次。且其余的 N - h 篇论文每篇被引用次数 不超过 h 次。
* 例如:某人的 h 指数是 20,这表示他已发表的论文中,每篇被引用了至少 20 次的论文总共有 20 篇。
* <p>
* 示例:... |
package org.ordogene.algorithme.models;
import java.util.Objects;
import org.ordogene.file.models.JSONInput;
import org.ordogene.file.models.Relation;
public class Input extends Entity{
private final Relation relation;
public Input(String name, int quantity, Relation relation) {
super(name, quantity);
this.r... |
import java.util.Scanner;
public class Fibonacci {
private static long calcFibNaive(int n) {
if (n <= 1)
return n;
return calcFibNaive(n - 1) + calcFibNaive(n - 2);
}
private static long calcFibOptimized(int n) {
if (n <= 1) {
return n;
}
in... |
package Modele;
import Generatory.GeneratorProjektow;
import Modele.Podwykonawcy.Podwykonawca;
import Modele.Pracownicy.Pracownik;
import Modele.Pracownicy.Programista;
import Modele.Pracownicy.Sprzedawca;
import Modele.Pracownicy.Tester;
import Modele.Projekt;
import Modele.Termin;
import java.util.ArrayList;
import... |
package com.jinku.sync;
import org.jinku.sync.application.bootstrap.ApplicationConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
import javax.sql.DataSource;... |
package com.dian.diabetes.activity.user;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Mes... |
package com.example.myokhttp;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import org.json.JSONArray;
... |
package com.cbsystematics.edu.eshop.entities;
import lombok.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "roles")
public class Role extends AbstractEntity {
... |
/**
* 53. Maximum Subarray
* Created by mengwei on 2019/9/3.
*/
public class MaximumSubarray {
/**
* 第一种方法
* 动态规划的是首先对数组进行遍历,当前最大连续子序列和为 sum,结果为 ans
* 如果 sum > 0,则说明 sum 对结果有增益效果,则 sum 保留并加上当前遍历数字
* 如果 sum <= 0,则说明 sum 对结果无增益效果,需要舍弃,则 sum 直接更新为当前遍历数字
* 每次比较 sum 和 ans的大小,将最大值置为ans,遍历结束返回... |
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* Created by nsp on 2015/10/25.
*/
public class TestMemento extends JFrame{
public static void main(String[] args) {
new TestMemento();
}
private JButton saveBtn, undoBtn, redoBtn;
private JT... |
package heylichen.alg.graph.tasks;
public interface CC {
boolean connected(int v, int w);
int getComponentsCount();
int getComponentId(int v);
}
|
package model;
import java.util.LinkedList;
import java.util.List;
public class Pair {
public int Lid ; //存储L中id位的pair信息
List<LatticeNode> pair = new LinkedList<>();
public int getLid() {
return Lid;
}
public void setLid(int lid) {
Lid = lid;
}
public Li... |
/*
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package gov.gtas.parsers.redisson.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.ann... |
/*
* Copyright (C) 2018 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... |
package com.medic.medicapp;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Build;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.sup... |
package com.apon.taalmaatjes.backend.api.returns.mapper;
import com.apon.taalmaatjes.backend.api.returns.VolunteerInstanceReturn;
import com.apon.taalmaatjes.backend.database.generated.tables.pojos.VolunteerinstancePojo;
public class VolunteerInstanceMapper {
private VolunteerInstanceReturn volunteerInstanceRetur... |
package leapmidi;
import com.leapmotion.leap.Frame;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
/**
* A Control is a CC channel and a Transform.
*/
public class Control
{
private Transform transform;
private MIDIAddress address;
private Stri... |
package com.unicom.patrolDoor.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.unicom.patrolDoor.entity.User;
import com.unicom.patrolDoor.entity.Vote;
import com.unicom.patrolDoor.entity.VoteLog;
import com.unicom.patrolDoor.service.UserService;
import com.unicom.... |
package com.alibaba.druid.bvt.pool;
import java.sql.Connection;
import java.sql.PreparedStatement;
import junit.framework.TestCase;
import org.junit.Assert;
import com.alibaba.druid.pool.DruidDataSource;
public class DruidDataSourceTest1 extends TestCase {
private DruidDataSource dataSource;
protected voi... |
package by.htp.airline10.main;
/*10. Создать класс Airline, спецификация которого приведена ниже. Определить конструкторы, set- и get- методы и
метод toString(). Создать второй класс, агрегирующий массив типа Airline, с подходящими конструкторами и
методами. Задать критерии выбора данных и вывести эти данные на ко... |
package com.oup.model;
import lombok.Getter;
import lombok.Setter;
import javax.xml.bind.annotation.XmlElement;
@Getter
@Setter
public class JournalEntryCreateRequest {
@XmlElement
MessageHeader MessageHeader;
@XmlElement
JournalEntry JournalEntry;
}
|
package com.digiburo.spring.demo.mvc.domain;
import org.springframework.stereotype.Component;
import java.util.UUID;
@Component
public class DemoBean {
public String toString() {
return(arg3 + ":" + arg2 + ":" + arg1);
}
public void setArg1(int arg) {
arg1 = arg;
}
public void setArg2(String arg... |
/*
* Copyright 2008-2018 shopxx.net. All rights reserved.
* Support: localhost
* License: localhost/license
* FileId: pChw8iHWExlpqgmXacC/4d2MrWKcwxvS
*/
package net.bdsc.service;
import net.bdsc.Page;
import net.bdsc.Pageable;
import net.bdsc.entity.Member;
import net.bdsc.entity.MemberDepositLog;
/**
* Servic... |
package com.cuisine.restaurant;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.anno... |
package lambda;
class Person{
String name;
Person(String name){
this.name = name;
}
public String getName() {
return name;
}
}
public class LambdaDemo {
static Person person = new Person("zhangsy");
public static void main (String[] args){
final int a = 0; // 在匿名內部... |
package simpledb;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
public class AggregatorIteratorNoGroup implements DbIterator {
private Iterator<Tuple> iter;
private boolean isOpen;
private TupleDesc tdes;
private... |
/*
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.desarollounder.undermetal;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import java.util.T... |
package factorymethod2;
/**
* The BankABC_SavingsAccountProduct este concrete product care este
* definita prin abestractizare de care BankAccountProduct. The
* BankABC_SavingsAccountProduct va fi creata de catre factory method
* si instanta clasei va fi returnata de catre factory class
* BankAccount... |
package com.example.isvirin.storeclient.presentation.view.fragment;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Bu... |
/*
* 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/li... |
package com.lti.inheritance;
class Parent{
private int xfac=100;
void google(){
System.out.println("Google.com");
}
public int getXfac(){
return xfac;
}
}
class Child extends Parent{
void yahoo(){
System.out.println("Yahoo.com");
}
void google(){
System.o... |
/*
* 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 com.xag.xtra.trial;
import javax.inject.Named;
/**
*
* @author agunga
*/
@Named("myAnotherEvent")
public cla... |
package com.yamblz.uioptimizationsample;
import android.app.Application;
/**
* Created by i-sergeev on 01.07.16
*/
public class SampleApplication extends Application {
}
|
package org.giveback.problems.readcsvsaveremote;
public final class CsvContent {
private final String content;
private final String path;
public CsvContent(String content, String path) {
this.content = content;
this.path = path;
}
public String getContent() {
return conten... |
package cn.v5cn.v5cms.controller;
import cn.v5cn.v5cms.entity.Site;
import cn.v5cn.v5cms.service.SiteService;
import cn.v5cn.v5cms.util.PropertyUtils;
import cn.v5cn.v5cms.util.SystemUtils;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.ImmutableMap;
import com.google.common.colle... |
package com.insomniacoder.promotionservice;
import com.insomniacoder.promotionservice.promotion.entities.Promotion;
import com.insomniacoder.promotionservice.promotion.repositories.PromotionRepository;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.spri... |
package chribb.mactrac.data;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;
import java.util.List;
@Dao
public interface MacroDao {
@Insert
void insert(Macro macro);
... |
//дано два double числа первое / второе. Если равно +бескон выводим Integer.MAX_VALUE, если -беск Integer.MIN_VALUE
//иначе выводим результат в int
package different;
import java.util.*;
public class diff_13 {
private static int convert(Double val) {
if (val.isNaN()) {
return 0;
} else... |
/* Text.java
Purpose:
Description:
History:
Thu Nov 24 15:17:07 2005, Created by tomyeh
Copyright (C) 2005 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
This program is distributed under LGPL Version 2.1 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package org.zko... |
package designpatterns.reactor.demo3;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.*;
import java.nio.channels.spi.SelectorProvider;
import java.util.Iterator;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.conc... |
import java.awt.Button;
public class Weakling extends Thread {
Button seat= new Button();
String id;
//boolean hairIsCut=false;
//boolean waiting=false;
Weakling(String id){
this.id=id;
seat.setBounds(SleepingBarber.gui.pos[Integer.parseInt(id)][0].x,
SleepingBarber.gui.pos[Integer.parseInt(id... |
package cpup.poke4j.plugin.input;
import cpup.poke4j.Buffer;
import cpup.poke4j.Poke;
import cpup.poke4j.ui.PokeUI;
import cpup.poke4j.ui.UI;
import java.awt.event.KeyEvent;
public class KeyInput implements Input {
protected final Poke poke;
protected final Buffer buffer;
protected final PokeUI pokeUI;
protected... |
/*
* Licensed to Kenneth Pino
*/
package sessionBeans;
import entites.Produit;
import java.util.List;
import javax.ejb.Local;
@Local
public interface BeanMenuLocal {
public void creerJeuxDonnees();
public List<Produit> selectAllProduit(String categorie);
public List<Produit> selectOffres();... |
package br.edu.puccampinas.projetoc.pilha;
public class PilhaVaziaException extends Exception {
private static final long serialVersionUID = 1L;
public PilhaVaziaException(String message) {
super(message);
}
}
|
package online.lahloba.www.lahloba.ui.seller;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.google.firebase.auth.FirebaseAuth;
import java.util.List;
import online.lahloba.www.lahloba.data.model.MarketPlace;
import online.lahloba.www.lahloba.data.model.OrderItem;
import ... |
package slimeknights.tconstruct.library.client.material;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.Jso... |
package org.mydotey.rpc.client.http.apache.async;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.apache.http.config.Registry;
import org.apache.http.config.RegistryBuilder;
import org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager;
import org.apache.http.impl.nio.reactor.D... |
package org.sagebionetworks.url;
import static org.junit.Assert.*;
import static org.sagebionetworks.url.UrlSignerUtils.*;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.NoSuchAlgorithmException;
import java.util.Date;
import org.junit.Test;
public class UrlSignerUtilsT... |
/*
* Copyright (C) 2010, 2011 Christopher Eby <kreed@kreed.org>
*
* 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, ... |
package org.androware.androbeans;
import android.util.JsonWriter;
import org.androware.androbeans.utils.FilterLog;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import jav... |
package de.niklaskiefer.bnclCore.parser;
import java.util.logging.Logger;
/**
* @author Niklas
*/
public class AbstractBnclParser {
public Logger logger() {
return Logger.getLogger(this.getClass().getName());
}
}
|
package com.microservice.authserver.serviceimpl;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.microservice.authserver.entity.Role;
import com.microservice.... |
package com.example.artistslk.Admin;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widge... |
package fr.filechooser_;
import java.io.File;
import javax.swing.ImageIcon;
/**
* Formats de fichier acceptés
*
* @see ImageFilter
*/
public class Utils {
public final static String jpeg = "jpeg";
public final static String jpg = "jpg";
public final static String tiff = "tiff";
public final static String ti... |
package ur.ur_flow.managers;
import android.content.Context;
import android.util.Log;
import com.google.gson.Gson;
import com.gtambit.gt.app.api.GtSharedPreferences;
import com.gtambit.gt.app.index.GtApp;
import com.gtambit.gt.app.mission.api.TaskSharedPreferences;
import java.util.ArrayList;
import lib.hyxen.http_... |
package za.co.vzap.email;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.Properties;
import java.util.Scanner;
import javax.mail.Folder;
import javax.mail.Message... |
package ViewModels;
import java.util.Date;
public class VistaAbono {
private int idAbono;
private String nombre;
private float precio;
private Date vigencia;
public int getIdAbono() {
return idAbono;
}
public void setIdAbono(int idAbono) {
this.idAbono = idAbono;
}
public String getN... |
package com.lsjr.zizisteward.bean;
public class PicList {
private String id;
private String image_filename;
private String location;
private String url;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getImage_filename() {
return image_f... |
package com.ilecreurer.drools.samples.sample2.conf;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import com.ilecreurer.drools.samples.sample2.util.Constants;
@Configuration
@ConfigurationProperties("area")
public class AreaPr... |
package utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class ConfigReader {
Properties prop;
public ConfigReader(String configFilePath){
File f = new File(conf... |
/*
* 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 br.edu.ifrs.mostra.daos;
import br.edu.ifrs.mostra.models.Curso;
import java.util.List;
import java.util.logging.Level;
/**
... |
public class test {
public static void main(String[] args) throws Eccezione_Num_non_Valido {
boolean ok=true;
VettoreInteri v1 = new;
VettoreInteri v2 = new VettoreInteri(0);
VettoreInteri v1 = new VettoreInteri("12|567|19|0");
System.out.println(v1.toString());
Sy... |
package com.yc.education.service.account;
import com.yc.education.model.account.AccountInputInvoiceInfo;
import com.yc.education.service.IService;
import java.util.List;
/**
* @Description 账款-进项发票-详情
* @Author BlueSky
* @Date 2019-01-09 11:47
*/
public interface IAccountInputInvoiceInfoService extends IService<... |
package com.example.reggiewashington.c196;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import java.ut... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.1-05/30/2003 05:06 AM(java_re)-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
/... |
package Pattern;
import java.util.Scanner;
public class pattern {
public static void main(String[] args) {
Scanner s= new Scanner(System.in);
// TODO Auto-generated method stub
int i =s.nextInt();
int j=0;
int temp=1;
while (j<=i)
{
int m=1;
while(m<=j)
{
... |
package edu.ncsu.csc.coffee_maker.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
/**
* Controller class for the index (or front page) of CoffeeMaker. The controller
* returns editrecipe.html in th... |
/**
* @author lxm
* @create_date 2019.5.3
* @description 试卷管理
* */
package com.app.web.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.