text stringlengths 10 2.72M |
|---|
package com.web.SlnmRltd;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;
public... |
import java.util.ArrayList;
public class ProcessTransaction implements Constants {
protected ArrayList<Transactions> validList;
protected ArrayList<Transactions> invalidList;
protected int InvalidTransactionType;
public int getInvalidTransactionType() {
return InvalidTransactionType;
... |
package br.unipe.cc.mlpIII.gui;
import java.sql.ResultSet;
import java.sql.SQLException;
import br.unipe.cc.mlpIII.pertinencia.Db;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Sc... |
/*
* Copyright 2009 Kjetil Valstadsve
*
* 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 com.example.heng.jredu.jredu;
import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Linear... |
package com.z3pipe.z3location.controller;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.os.Environment;
import com.z3pipe.z3core.base.BaseSdFileReadWriter;
import com.z3pipe.z3location.config.PositionCollectionConfig;
import java.i... |
package com.vilio.mps.push.dao;
import com.vilio.mps.push.pojo.Umeng;
import java.util.List;
import java.util.Map;
/**
* 类名: UmengDao<br>
* 功能:友盟Dao层<br>
* 版本: 1.0<br>
* 日期: 2017年6月27日<br>
* 作者: wangxf<br>
* 版权:vilio<br>
* 说明:<br>
*/
public interface UmengDao {
public int insertUmengBatch(List<Umeng> um... |
package com.magicare.mutils.cache;
/**
* @author justin on 2015/12/11 15:58
* justin@magicare.me
* @version V1.0
*/
public class HttpCacheEntity {
private String key;
private long time;
private long life;
private String content;
public String getKey() {
return key;
}
p... |
package com.project.service.taxi.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.project.service.taxi.stub_connector.TaxiCar;
import java.math.BigDecimal;
import java.time.LocalDateTime;
public class OrderResponseDTO {
private Long id;
private String info;
private BigDecimal price;
... |
package leet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map.Entry;
/**
* Created by kreddy on 5/8/18.
*/
public class MRU {
public static void main(String[] args) {
LinkedHashMap<String, String> lhm = new LinkedHashMap<>(4, 0.75f, true);
lhm.put("one", "one");
lhm.pu... |
package com.shah.urlshortener;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import com.shah.urlshortener.entity.Url;
import com.shah.urlshortener.r... |
/* Copyright 2018, Senjo Org. Denis Rezvyakov aka Dinya Feony Senjo.
*
* 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
*/
package org.sen... |
package model;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
public class UziTest {
Uzi u;
Player p;
@BeforeEach
public void setup() {
p = ne... |
package com.example.chris.eyespy;
import android.content.pm.PackageManager;
import android.location.Location;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android... |
package com.leyou.common.enums;
/**
* @Description TODO
* @Author whd
* @Date 2020/5/11 21:50
*/
public enum ExceptionEnum {
PRIVICE_CANNOT_BE_NULL(400,"价格不能为空"),
CATEGORY_NOT_FOUND(404,"商品分类没查到"),
BRAND_NOT_FOUND(404,"品牌没查到"),
BRAND_SAVE_ERROR(500,"品牌新增失败"),
FILE_UPLOAD_ERROR(500,"文件上传失败"),
... |
package com.espendwise.manta.util.criteria;
import java.io.Serializable;
public class DistributorListViewCriteria implements Serializable {
private Long storeId;
private String distributorId;
private String distributorName;
private String distributorNameFilterType;
private Boolean activeOnly;
... |
/*
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
package br.com.fiap.healthtrack;
import br.com.fiap.healthtrack.dao.RefeicaoSugestaoDAO;
public class TesteFase6Cap3 {
public static void main(String[] args) {
RefeicaoSugestaoDAO refeicaoSugestaoDAO = new RefeicaoSugestaoDAO();
refeicaoSugestaoDAO
.getAll()
.forEach( r -> System.out.println(r));
}
}
|
package github.observer;
import javax.swing.*;
public class TextObserver implements Observer {
private JTextField txtTemperature;
public TextObserver(JTextField txtTemperature) {
this.txtTemperature = txtTemperature;
}
@Override
public void update(Subject subject) {
WeatherForec... |
package com.kdp.wanandroidclient.ui.user;
import android.content.res.ColorStateList;
import android.os.Build;
import android.os.Bundle;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.... |
package com.tencent.mm.plugin.setting.ui.setting;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.TextView;
import com.tencent.mm.model.bl;
import com.tencent.mm.plugin.messenger.foundation.a.a.h.b;
import com.tencent.mm.plugin.setting.a.f;
import com.tencent.mm.plugin.setting.a.g;
import... |
package com.MCS_Software.app.mcs_driver;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.ContextMenu;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
impor... |
package com.samples.sorting;
import java.util.Arrays;
import java.util.stream.Stream;
public class QuickSort {
private static int length;
private static int array[]= {22,43,12,56,33,44,61,1};
public static void main(String[] args) {
sort(array);
Stream.of(array).forEach(System.out:... |
package com.puxtech.reuters.rfa.Filter;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.puxtech.reuters.rfa.Common.Quote;
public class Filter {
private List<FilterStrategy> stra... |
package org.webmaple.worker.annotation;
import java.lang.annotation.*;
/**
* @author lyifee
* on 2021/1/25
*/
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface MaplePipeline {
String site() default "";
}
|
/*
* Davis Odom
* 10/20/15
* Recursively sums the digits or a given long
*/
import java.util.Scanner;
public class Program {
public static void main(String[] args){
//get the number and call the method in a print statement
Scanner in = new Scanner(System.in);
System.out.print("Please enter a long to be summ... |
/*
* The MIT License
*
* Copyright 2019 tibo.
*
* 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, me... |
package com.gustavotavaresdomingues.cursoandroid.frasesdodia;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import java.util.Random;
public class MainActivity extends AppCompatActivity {
@Override
protected ... |
import org.junit.Test;
public class Main {
@Test
public void testHelloWrold() {
System.out.println("HelloWorld!");
System.out.println("共同修改后的!");
System.out.println("第一次修改zkr");
}
}
|
package com.smxknife.datastructure.redblacktree;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
/**
* @author smxknife
* 2019/11/21
*/
public class RBTreeTest {
private RBTree tree;
private NodeTraversalStrategy strategy;
private RBNode target;
@BeforeEach
public void init() {
... |
package com.example.cine.model;
import java.io.Serializable;
public class Poster implements Serializable {
String href;
}
|
package collectionpackage;
import java.util.Comparator;
public class ComparatorSet implements Comparator {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
/*
* @Override public int compare(Object o1, Object o2) { // TODO Auto-generated
* method stub Integer t1 = (Integer)o... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// 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.
// Generated on: 2017.01.... |
package fr.lteconsulting;
import java.io.IOException;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class ViewHelper
{
public static void displayWelcomeView( Utilisateur utilisateur, Date d... |
package Exercicio01;
import java.util.Calendar;
import java.util.Date;
public class ProgramaPessoa {
public static void main(String[] args) {
Pessoa pessoa = new Pessoa("Henrique Oliveira", "03-08-2000", 1.9);
CalculoPesso calculo = new CalculoPesso();
calculo.calculaIdade(pessoa);
... |
package edu.nju.logic.service;
import edu.nju.data.entity.Answer;
import edu.nju.data.entity.User;
import edu.nju.data.util.VoteType;
import edu.nju.logic.vo.AnswerVO;
import java.util.List;
/**
* 回答接口
* @author cuihao
*/
public interface AnswerService {
/**
* 将问题标注为满意回答
* @param user 当前登陆用户
* ... |
package DPI.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import DPI.entity.Message;
@Mapper
@Component
public interface MessageDao {
void insertMessage(Message message);
List<Message> loadMes... |
package leecode.other;
//这个和左神那个题目对比,这个四个方向都可以走,左神那个只能走两个方向
//理解 dp+dfs https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix/solution/javashi-xian-shen-du-you-xian-chao-ji-jian-dan-yi-/
import java.util.ArrayDeque;
import java.util.Queue;
import java.util.function.BinaryOperator;
public class 矩阵中的最长递增... |
package com.tencent.mm.sandbox.updater;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import com.tencent.mm.R;
impo... |
package de.jmda.gradle;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
/**
* Created by RWE on 03.08.2017.
*/
public class PingApp
{
private final static Logger LOGGER = LogManager.getLogger(PingApp.class);
public static void main(String[] args)
{
System.out.p... |
package extendedNodePositionList;
import net.datastructures.Position;
import net.datastructures.PositionList;
import net.datastructures.NodePositionList;
import net.datastructures.BoundaryViolationException;
/**
* This class extends the <code>NodePositionList</code> class with
* two new methods:
* <code>nth</code>... |
package com.cnk.travelogix.custom.zifwsb.invoice.create;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
import com.cnk.travelogix.sapintegrations.dto.factory.DTOObjectFactory;
/**
* This object con... |
package com.sinata.rwxchina.component_home.entity;
/**
* @author HRR
* @datetime 2017/11/27
* @describe 首页品牌区实体类
* @modifyRecord
*/
public class BrandEntity {
/**
* goods_type : 10010
* name : 轮胎
* logo : /Uploads/App/goodstype/1.jpg
* describe : 轮子就是好呀
*/
private String goods_... |
package controllers;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import models.User;
import utils.OTP;
import utils.EmailS... |
package pe.gob.trabajo.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.data.elasticsearch.ann... |
import java.util.*;
import java.util.SortedSet;
import java.util.TreeSet;
import javafx.beans.property.SimpleStringProperty;
public class Board {
public SortedSet<Integer> whitePieces, blackPieces;
public int[] gameMatrix;
public int numberOfTurns;
public int noPiecesRemovedCount;
int[] numberTri... |
package kr.co.jboard2.service;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import kr.co.jboard2.dao.ArticleDao;
import kr.co.jboard2.vo.ArticleVO;
public class CommentService implements CommonService {
@Override
public String requestProc(HttpServletRequest req, Htt... |
execute(des,src,registers,memory) {
int desBitSize = registers.getBitSize(des);
int desHexSize = registers.getHexSize(des);
String desValue = registers.get(des);
String srcValue;
Calculator calculator = new Calculator(registers,memory);
if (src.isRegister()) {
srcValue = registers.get(s... |
/**
* Engine / Window
*/
package edu.self.engine;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import javax.swing.ActionMap;
import javax.swing.InputMap;
import javax.swing.JFrame;
import javax.swing.JPanel;
/**
* Window Class
*/
public class Window implements FocusListener {
/**
... |
package xframe.example.pattern.proxy.dynamic;
public interface Subject {
public void run();
public void doOther();
}
|
package chatroom.model.message;
public class LoginMessage extends Message {
private String loginName;
private String password;
public LoginMessage(String loginName, String password){
type = 3;
this.loginName = loginName;
this.password = password;
}
public String getLoginNa... |
package org.xtext.example.mydsl.tests.kmmv;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStreamReader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.... |
package com.longlysmile.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.longlysmile.entity.AttackRecord;
import java.util.List;
import java.util.Map;
/**
* 攻击记录接口
* @author wujie
*/
public interface AttackRecordMapper extends BaseMapper<AttackRecord> {
List<Map<String,String>> stat... |
package com.gmail.merikbest2015.ecommerce.service.Impl;
import com.gmail.merikbest2015.ecommerce.domain.Perfume;
import com.gmail.merikbest2015.ecommerce.repos.PerfumeRepository;
import com.gmail.merikbest2015.ecommerce.service.PerfumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... |
package com.cg.eis.service;
import java.util.*;
import com.cg.eis.bean.*;
public class Service implements EmployeeService{
Scanner sc=new Scanner(System.in);
Employee e=new Employee();
public void getEmployDetails() {
System.out.println("Enter Details:");
System.out.println("Enter id:");e.setId(sc.nex... |
/**
*
*/
package com.cnk.travelogix.common.facades.product.sort.impl;
import com.cnk.travelogix.common.facades.product.provider.CnkFacetValueProvider;
/**
* @author i313879
*
*/
public class SortedToModelEntry
{
private String code;
private String name;
private boolean isDesc;
private CnkFacetValueProvider ... |
package com.example.mjunior.fiapimoveis;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.EditText;
import android.widget.Toast;
import com.example.mjunior.fiapimoveis.dao.ImovelDAO;
... |
package com.gustavoaz7.whatsapp.helper;
import android.content.Context;
import android.content.SharedPreferences;
import java.util.HashMap;
public class Preferences {
private Context context;
private SharedPreferences preferences;
private SharedPreferences.Editor editor;
private final String FILE_NA... |
package banking;
import org.sqlite.SQLiteDataSource;
import java.sql.*;
import java.util.Scanner;
public class BankSystem {
private static BankCard[] accounts = new BankCard[1000];
static Scanner scanner = new Scanner(System.in);
public static int amount;
public static int currentCard;
public sta... |
package exceptions;
/**
* thrown when the selected cell is not movable<br>
*
* <hr>
* Date created: Jun 6, 2010<br>
* Date last modified: Jun 6, 2010<br>
* <hr>
* @author Glen Watson
*/
public class SelectedCellCantMoveException extends CellException
{
private static final long serialVersionUID = 1L;
public... |
package com.cybx.salesorder.dao.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;
import com.cybx.salesorder.dao.SalesorderDao;
import com.cybx.sale... |
package cdn.shared.message.types;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import cdn.shared.message.IMessage;
public class DeregisterResponseMessage implements IMessage {
public Status... |
package com.alteredtastes;
import graphql.ExecutionResult;
import graphql.GraphQL;
import graphql.schema.GraphQLSchema;
import graphql.schema.StaticDataFetcher;
import graphql.schema.idl.RuntimeWiring;
import graphql.schema.idl.SchemaGenerator;
import graphql.schema.idl.SchemaParser;
import graphql.schema.idl.TypeDefi... |
package com.example.demo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spr... |
package uk.co.mobsoc.MobsGames;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.Chest;
import org.bukkit.block.ContainerBlock;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.... |
/**
* Created by likz on 2023/2/20
*
* @author likz
*/
public class Knapsack {
public static int maxValue(int[] w, int[] v, int bag){
if(w == null || v == null || w.length != v.length || w.length < 1){
return 0;
}
return process(w, v, 0, bag);
}
private static int p... |
package com.bdb.conexion;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.ResultSet;
public class Connect {
public Connect() {
con = null;
}
private String getConnectionUrl() {
return "jdbc:jtds:sqlserver://RRHH/nexus_prue";
... |
package guru.springframework.sfgpetclinic.services.jpa;
import java.util.HashSet;
import java.util.Set;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;
import guru.springframework.sfgpetclinic.model.Vet;
import guru.springframework.sfgpetclinic.repositor... |
package com.java.dev.s01.example01.pruebas;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.Transaction;
import com.java.dev.s01.example01.entities.Persona;
import com.java.dev.s01.example01.util.HibernateUtil;
public class PersonaTest {
public static void main(String[] args) {
P... |
package com.rockooapps.carrentals;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.wi... |
package com.base.crm.users.service;
import java.util.List;
import com.base.crm.users.entity.UserInfo;
public interface UserService {
int deleteByPrimaryKey(Long uId);
int insertSelective(UserInfo record);
UserInfo selectByPrimaryKey(Long uId);
int updateByPrimaryKeySelective(UserInfo record);
... |
package com.redhat.examples.iot.sensor;
import java.util.concurrent.ThreadLocalRandom;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import com.redhat.examples.io... |
package com.vietmedia365.voaapp.event;
import com.vietmedia365.voaapp.model.Story;
/**
* Created by pat109 on 9/28/2014.
*/
public class LoadStoryDetailEvent {
private Story story;
private String storyId;
public LoadStoryDetailEvent(String storyId, Story story){
this.storyId = storyId;
... |
package com.plter.ballwithgravity;
import android.app.Activity;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.widget.FrameLayout;
import android.widget.ImageView;
public ... |
package com.javakc.ssm.modules.system.user.dao;
import com.javakc.ssm.base.dao.BaseDao;
import com.javakc.ssm.base.dao.MyBatisDao;
import com.javakc.ssm.modules.system.user.entity.UserEntity;
import java.util.Map;
/**
* 基础用户信息模块数据层实现
* @author javakc
* @version 0.1
*/
@MyBatisDao
public interface UserDao extends... |
/**
* MicroEmulator
* Copyright (C) 2006-2007 Bartek Teodorczyk <barteo@barteo.net>
* Copyright (C) 2006-2007 Vlad Skarzhevskyy
*
* 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 Foundati... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package pl.panryba.mc.duels;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.ev... |
package com.jasoftsolutions.mikhuna.model;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
/**
* Created by pc07 on 20/10/2014.
*/
public class RestaurantDishCategory extends AbstractModel {
private Long restaurantServerId;
private String name;
private Strin... |
package com.DeGuzmanFamilyAPI.DeGuzmanFamilyAPIBackend.app_controller;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.components.devtools_bridge.tests;
import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import androi... |
package com.nationsky.vote.component;
public class ResultCode {
/**
* 成功
*/
public static final int SUCCESS = 0;
/**
* 未知异常
*/
public static final int ERROR = 1000;
/**
* 未知url
*/
public static final int UNKNOWN_URL = 1001;
/**
* 请求体不合法
*/
publ... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* Wip generated by hbm2java
*/
public class Wip implements java.io.Serializable {
private WipId id;
public Wip() {
}
public Wip(WipId id) {
this.id = id;
}
public WipId getId() {
return this.id;
}
public void... |
/*
* ---------------------------------------------------------------------------------------------------------------------
* Brigham Young University - Project MEDIA StillFace DataCenter
* -----------------------------------------------------------------------------------------------------... |
/*
* 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 mainlibrary;
import java.awt.Color;
import java.awt.Frame;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import s... |
package com.yougou.merchant.api.supplier.vo;
import java.io.Serializable;
public class TaobaoImage implements Serializable{
/**
* 生成的序列号
*/
private static final long serialVersionUID = 5950798725264101551L;
/**
* 全参数构造方法
* @param numIid
* @param oldImageURL
* @param newImageURL
* @param thumbna... |
public class Kasutus{
public static void main(String[] args){
Book b1 = new Book("J.K Rowling, ","Harry Potter and the Sorcere's Stone, ", "fantasy");
Book b2 = new Book("J.K Rowling, ", "Harry Potter and the Prisoner of Azkaban, ", "fantasy");
Book b3 = new Book("J.R.R Tolkieni, ","Lord of the Rings, "... |
package com.zhao.id;
import lombok.extern.slf4j.Slf4j;
import org.apache.shardingsphere.core.strategy.keygen.SnowflakeShardingKeyGenerator;
import org.apache.shardingsphere.spi.keygen.ShardingKeyGenerator;
import java.util.Properties;
@Slf4j
public class MyShardingId implements ShardingKeyGenerator {
p... |
package com.pa.miniEip.model;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import java.util.List;
public class Question {
@Id
private ObjectId id;
private String name;
private QuestionType type;
private List<Option> options;
public Question() {
thi... |
package edu.xpu.hcp.manage.admin.service;
import edu.xpu.hcp.manage.admin.model.SysUser;
import edu.xpu.hcp.manage.core.service.CurdService;
import java.util.List;
public interface ISysUserService extends CurdService<SysUser>{
/**
* 查找所有用户
*/
List<SysUser> findAll();
}
|
package com.tencent.mm.plugin.appbrand.jsapi.file;
import com.tencent.mm.plugin.appbrand.appstorage.j;
import com.tencent.mm.plugin.appbrand.appstorage.k;
import com.tencent.mm.plugin.appbrand.jsapi.file.f.a;
import com.tencent.mm.plugin.appbrand.l;
import java.io.File;
import java.util.Locale;
import org.json.JSONObj... |
package com.gmail.khanhit100896.foody.food;
import android.os.Bundle;
import android.support.design.widget.AppBarLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.SearchView;
impor... |
// In an array list, elements can be added and removed.
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedList;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.util.Scanner;
... |
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@WebServlet(name = "CalculatorServlet", urlPatterns = "/calculate")
public ... |
package com.blackjack.domain;
import java.util.ArrayList;
public class TestUtil {
public static ArrayList<Card> generateCardsWithGivenOrder(ArrayList<Card> orderCards) {
ArrayList<Card> cardList = new ArrayList<>(Suit.values().length * Rank.values().length);
for (Card card : orderCards) {
... |
package br.com.walmart.krusty.web.exception;
import javax.ejb.ApplicationException;
@ApplicationException
public class InvalidPasswordException extends KrustyWebException {
private static final long serialVersionUID = -1605634317012241385L;
public InvalidPasswordException() {
super();
}
... |
package com.rishi.baldawa.iq;
import com.rishi.baldawa.iq.model.ListNode;
import org.junit.Test;
import static com.rishi.baldawa.iq.model.ListNodeDataFactory.l;
import static org.junit.Assert.*;
public class SwapNodesInPairsTest {
@Test
public void swapPairs() throws Exception {
ListNode input = l(1,... |
package com.jjw.sparkCore.transformations;
import java.util.Arrays;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.api.java.function.VoidFunction;
import scala.Tuple2;
import com.google.common.base.Optional;... |
package ru.smartsarov.election;
import static ru.smartsarov.election.Constants.CIKRF_UIK_INFO_URL;
import static ru.smartsarov.election.Constants.DUBNA_DB_NAME;
import static ru.smartsarov.election.Constants.DUBNA_TIK;
import static ru.smartsarov.election.Constants.DUBNA_UIKS;
import static ru.smartsarov.election.Cons... |
package com.isystk.sample.web.front.controller.api.v1.common;
import com.isystk.sample.common.dto.CodeValueDto;
import com.isystk.sample.common.dto.CodeValueGroupDto;
import com.isystk.sample.common.values.Prefecture;
import com.isystk.sample.common.values.Sex;
import com.isystk.sample.domain.repository.MPostTagReposi... |
package com.example.HelloConsul;
import javax.annotation.Generated;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplicat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.