text stringlengths 10 2.72M |
|---|
package BLL;
import DAL.BorrowerInfo;
import java.util.Date;
import DAL.CardInfo;
import java.util.ArrayList;
/**
*
* @author tunguyen
*/
public class UpdateBorrowingCardInfoController {
private CardInfo cardInfo;
private CardInfo selectedCardInfo;
/**
* Get information of the specified card
... |
package day25_loops;
public class PrintStars {
public static void main(String[] args) {
for(int star =1; star <=15;star++){
System.out.print("\uD83C\uDF1F ");
}
System.out.println();//star new line
String myStars ="";
for(int n=1; n<=5;n++) {
//myStars = myS... |
package com.webcloud.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.SlidingDrawer;
/**
* 如果slidingdrawer的属性:android:orientation="vertical",
* 将 childLeft = (width - childWidth) / 2;改成childLeft = l就可以左边
* 如果slidingdrawer的属性:android... |
package za.ac.cput.Service;
import org.junit.Test;
import za.ac.cput.Entity.Receipt;
import za.ac.cput.Factory.ReceiptFactory;
import static org.junit.jupiter.api.Assertions.*;
public class ReceiptServiceTest {
private static ReceiptService service = new ReceiptService();
private static Receipt receipt = Rec... |
package com.meridal.examples.springbootmysql;
import static org.junit.Assert.*;
import org.junit.Test;
public class LambdaExamplesTest {
private static final String SHORT_SENTENCE = "Wind in the lonely fences";
private static final String LONG_SENTENCE = SHORT_SENTENCE + " rattles and whistles";
private static ... |
package com.hackerrank.thirtyDaysJavaProgram;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class JavaLoops2 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
List<List<Integer>> queriesParam = new ArrayList<List<Integer>>();
int t =... |
package data;
import java.util.ArrayList;
import model.riskFollow;
public interface riskFollowInterface {
public ArrayList<riskFollow> getRiskFollow(int projectId,int riskId);//
public int addRiskFollow(riskFollow f);//
public int deleteRiskFollow(int riskFollowId);//
}
|
package com.uptc.prg.maze.view;
import java.util.Locale;
import java.util.ResourceBundle;
public enum UIStrings {
;
public static String getString(String key) {
ResourceBundle resourceBundle = ResourceBundle.getBundle("config/UIStrings");
return resourceBundle.getString(key);
}
}
|
/*
* 2012-3 Red Hat Inc. and/or its affiliates and other 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 requi... |
package day20;
import java.io.File;
public class test3 {
public static void main(String[] args) {
//demo1();
File file = new File("zzz");
file.setReadable(false);
System.out.println(file.canRead());
file.setWritable(true);
System.out.println(file.canWrite());
File file2 = new File("aaa.txt");
... |
/*
* Copyright 1999-2015 dangdang.com.
* <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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
/**
* Question #1 from U2L5 AP CS B
*
* @author C. Thurston
* @version 4/16/2014
*/
public class QuestionOne
{
private static int f(int x) {
if (x > 10) {
return f(x-4) + 2;
} else {
return -7;
}
}
public static void main(String[] args) {
Sy... |
/*
* $Log::$
*/
package com.goldgov.dygl.module.portal.webservice.deptuserscore.bean;
import java.util.ArrayList;
import java.util.List;
/**
* Title: StudentCourseQueryBean<br>
* Description: <br>
* Copyright @ 2011~2016 Goldgov .All rights reserved.<br>
*
* @author LiBW
* @createDate 2016年... |
package com.youthchina.dto.job;
import com.youthchina.domain.qingyang.Industry;
import com.youthchina.dto.util.DurationDTO;
import com.youthchina.dto.util.LocationDTO;
import java.util.List;
/**
* Created by zhongyangwu on 12/2/18.
*/
public class JobSearchDTO {
private String jobName;
private Integer com... |
package org.alienideology.jcord.internal.object.client.call;
import org.alienideology.jcord.handle.client.call.ICall;
import org.alienideology.jcord.handle.client.call.ICallUser;
import org.alienideology.jcord.handle.client.call.ICallVoiceState;
import org.alienideology.jcord.internal.object.VoiceState;
import org.ali... |
package com.aws.codestar.projecttemplates.handler;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.LambdaLogger;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import com.amazonaws.services.la... |
class Solution {
public String countAndSay(int n) {
String start = "1";
String result="";
if(n==0)
return result;
if(n==1)
return start;
for(int i=0;i<n-1;i++){
char digit=start.charAt(start.length()-1);
char digitnext... |
package de.mufl.sandbox.osm.routing.openrouteservice;
import java.io.IOException;
import de.mufl.sandbox.osm.routing.NegativeRequestException;
import de.mufl.sandbox.osm.routing.RoutingException;
public interface Routing {
RoutingResult start(RoutingRequest opt)
throws RoutingException, NegativeRequest... |
package umm3601.todos;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import jav... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
package WB.java;
import java.util.Scanner;
public class Homework_0519_2 {
public static void main(String[] args) {
Scanner scanfn = new Scanner(System.in);
Scanner scanma = new Scanner(System.in);
Scanner scansn = new Scanner(System.in);
int FirstNumber;
String math;
int SecondNumber;... |
/*
* The MIT License
*
* Copyright 2020 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... |
import java.io.IOException;
import java.util.Scanner;
public class R2 {
public static void main(String[] args)throws IOException
{
Scanner nya = new Scanner(System.in);
System.out.println(-nya.nextInt() + nya.nextInt()*2);
}
}
|
package com.mimi.mimigroup.api;
import android.location.Location;
import android.os.AsyncTask;
import android.util.Log;
import com.mimi.mimigroup.model.DM_Customer_Distance;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class SyncFindCustomer extends AsyncTask<Void, Integer... |
package com.tencent.mm.plugin.account.friend.a;
public interface i$a {
void notifyDataSetChanged();
}
|
package team;
import rescuecore2.messages.Command;
import rescuecore2.worldmodel.ChangeSet;
import java.util.Collection;
public abstract class AbstractCommunicationStrategy {
/**
* This function is called to broadcast observation
*/
public abstract void communicateChanges(ChangeSet changed);
/... |
package com.smxknife.java2.thread.semaphore.demo02;
import java.util.concurrent.Semaphore;
/**
* @author smxknife
* 2018-12-21
*/
public class Service {
/**
* permits 许可,同一时间,最多允许多少个线程同时执行acquire和release之间的代码
*/
private Semaphore semaphore = new Semaphore(10);
public void testMethod() {
try {
semapho... |
package com.tencent.mm.plugin.game.gamewebview.jsapi.biz;
import android.content.Context;
import com.tencent.mm.ab.b;
import com.tencent.mm.ipcinvoker.wx_extension.b.a;
import com.tencent.mm.plugin.game.gamewebview.jsapi.a$a;
import com.tencent.mm.protocal.c.aoy;
import com.tencent.mm.sdk.platformtools.ah;
import com.... |
package com.ctac.jpmc.game.conway;
import static org.junit.Assert.*;
import org.junit.Test;
import com.ctac.jpmc.game.IGrid;
import com.ctac.jpmc.game.IGridCell;
public class ConwayGame3DTest {
@Test
public void testFewerThan2LiveNeighborsDies() {
boolean[][][] gridArray = {
{{false,false,fal... |
package com.sdl.webapp.common.api.model;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;
/**
* <p>PageModel interface.</p>
*/
public interface PageModel extends ViewModel {
/**
* <p>getId.</p>
*
* @return a {@link java.lang.String} object.
*/
String getId();
/*... |
package server;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Map;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.SAXException;
@SuppressWarnings("rawtypes")
pu... |
package com.example.test.main;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.AppBarLayout;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.widget.ListV... |
package fController;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx... |
package ar.edu.ArqSoft.rentService.Service.dto;
import ar.edu.ArqSoft.rentService.Common.dto.*;
public class AlquilerRequestDto implements DtoEntity{
private Long peliculaId;
private Long socioId;
public Long getPeliculaId() {
return peliculaId;
}
public void setPeliculaId(Long pelicula... |
/* Copyright 2018-2019, 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 or... |
import java.util.Scanner;
public class Table
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
System.out.print("표를 인쇄합니다." + "\n");
System.out.print("행을 몇 개 만들까요? ");
int row = input.nextInt();
System.out.print("열을 몇 개 만들까요? ");
int column = input.nextInt();
for (in... |
package com.shsy.tubebaby.activity;
import android.graphics.Color;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.jaeger.library.StatusBarUtil;
public class BaseActivity extends AppCompatActivity {
@Override
protected void onCreate... |
package com.tencent.mm.plugin.game.d;
import com.tencent.mm.bk.a;
public final class cy extends a {
public String jOX;
public String jPd;
public String jTm;
public String jTn;
public String jTo;
public boolean jTp;
public boolean jTq;
protected final int a(int i, Object... objArr) {
... |
package com.example.instagram.fragments.addPhoto;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
im... |
package capitulo07;
import java.util.Scanner;
public class Exercicio716 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.printf("Digite os números a serem somados ou -1 para terminar: %n");
double array [] = new double [100];
for (int i = 0; input.hasNext(); i... |
package com.tencent.mm.plugin.fts.ui.widget;
import android.view.View;
import android.view.View.OnClickListener;
class FTSEditTextView$4 implements OnClickListener {
final /* synthetic */ FTSEditTextView jzA;
FTSEditTextView$4(FTSEditTextView fTSEditTextView) {
this.jzA = fTSEditTextView;
}
... |
package org.inftel.socialwind.client.desktop.view;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import jav... |
/*
* 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.netcracker.financeapp.dao;
import com.netcracker.financeapp.mapping.Type;
import java.util.ArrayList;
import org.... |
package com.tencent.mm.plugin.webview.ui.tools;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
class QRCodeIntroductionWebViewUI$2 implements OnMenuItemClickListener {
final /* synthetic */ QRCodeIntroductionWebViewUI pWm;
QRCodeIntroductionWebViewUI$2(QRCodeIntroductionW... |
package com.sudipatcp.linkedlist;
import java.util.ArrayList;
import static com.sudipatcp.linkedlist.LinkedListUtilites.createLinkedList;
public class UniqueLinkedList {
public static ListNode deleteDuplicates(ListNode A) {
ListNode dummy = new ListNode(0);
dummy.next = A;
ListNode pr... |
package lk.cb006789.eea.mercstore.repo;
import lk.cb006789.eea.mercstore.models.UserroleModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserroleRepository extends JpaRepository<UserroleModel,String> {
}
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* Hybris ("Confidential Information"). You shall not disclose such
* Confidential Information and shall use it only in accordance with the
* terms of the l... |
package baekjoon.numbertheory_combinatorics;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Test_2981 {
//검문
//공약수를 구하는 문제인데 나머지가 같다는 것에 초점을 맞추어 앞 뒤 값을 뺀 수 끼리 공약수를 구하면 되는 문제
//생각을 하지 못하였기에 검색해서 해결..
public static void... |
package little.dark.age;
import java.util.ArrayList;
import java.util.Scanner;
public class LittleDarkAge {
public static void main(String[] args) {
ArrayList<String> name = new ArrayList<>();
ArrayList<String> uf = new ArrayList<>();
ArrayList<String> popu = new ArrayList<>... |
package com.cms.service;
import java.awt.Label;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import net.sf.json.JSONArray;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;... |
package cn.bs.zjzc.model.bean;
import java.util.Map;
/**
* Created by yiming on 2016/6/20.
*/
public class RegisterOrderTakerRequestBody {
public String address;
public String my_real_name;
public String ID_card_number;
public Map<String, UploadFileBody> photoMap;
public RegisterOrderTakerReque... |
package com.example.disastermanagement.Fragment;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.La... |
package com.mysql.cj.protocol;
import com.mysql.cj.MessageBuilder;
import com.mysql.cj.Session;
import com.mysql.cj.TransactionEventHandler;
import com.mysql.cj.conf.PropertySet;
import com.mysql.cj.exceptions.ExceptionInterceptor;
import java.io.IOException;
import java.io.InputStream;
public interface Protocol<M ex... |
package com.theIronYard.servlet;
import com.theIronYard.entity.Animal;
import com.theIronYard.entity.AnimalBreed;
import com.theIronYard.entity.AnimalType;
import com.theIronYard.service.AnimalService;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpSer... |
package com.pkjiao.friends.mm.activity;
import com.pkjiao.friends.mm.R;
import com.pkjiao.friends.mm.common.CommonDataStructure;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.webkit.WebSettings;
imp... |
package parking;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.FetchOptions;
import com.google.appengine.api.datastore.Key;
import com.goog... |
package com.hebe.controller;
import com.hebe.service.TodoService;
import com.hebe.vo.CalendarDTO;
import com.hebe.vo.TodoDTO;
import com.hebe.vo.TodoDTOList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@Reques... |
package com.mears.repositories;
import java.util.List;
import com.mears.entities.DriverSchedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;
@Repository
public interface DriverScheduleRe... |
package com.seu.care.bed.service;
import com.github.pagehelper.PageInfo;
import com.seu.care.bed.model.Bed;
import java.util.List;
public interface BedService {
PageInfo<Bed> listAll(Integer currPage,Bed bed);
Bed selById(Integer id);
void add(Bed bed);
void del(Integer id);
... |
package com.github.rahmnathan.movie.info.api;
import com.github.rahmnathan.movie.info.data.MovieInfo;
@FunctionalInterface
public interface IMovieInfoProvider {
MovieInfo loadMovieInfo(String title);
}
|
package org.example;
import java.util.List;
import java.util.Objects;
public class SpellCheckerSingleton {
private final Lexicon dictionary = new OxfordDictionary();
private SpellCheckerSingleton() {
}
//basic singleton
public static SpellCheckerSingleton INSTANCE = new SpellCheckerSingleton();... |
package com.tencent.mm.plugin.sight.encode.ui;
import android.annotation.TargetApi;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.res.AssetFileDescriptor;
import android.graphics.Bitmap.CompressFormat;
import android.media.MediaPlayer;
import android.u... |
package strategy2.step5.modularization;
//Sonata차 : 중급엔진(EngineMid). 연비 15Km/l(Km15). 휘발유(FuelGasoline)
import strategy2.step5.component.*;
public class Sonata extends Car_same_part {
public Sonata() {
// engine = new EngineHigh();
setEngine(new EngineMid()); // i=10; == setI(10);
setKm(new Km15());
set... |
package swm11.jdk.jobtreaming.back.config.security;
import io.jsonwebtoken.Claims;
import lombok.extern.log4j.Log4j2;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.Securit... |
package com.tencent.mm.protocal;
import android.support.design.a$i;
public class c$jt extends c$g {
public c$jt() {
super("uploadImage", "uploadImage", a$i.AppCompatTheme_radioButtonStyle, true);
}
}
|
package com.company;
public interface Szuperhos {
public boolean legyoziE(Szuperhos d);
public double mekkoraAzEreje();
}
|
package gameClient;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
public class Frame extends JFrame
{
public Panel panel;
/**... |
package com.test.basics;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.util.ArrayList;
import java.util.List;
/**
*... |
package com.tencent.mm.plugin.gallery.view;
import com.tencent.mm.plugin.gallery.view.MultiGestureImageView.g;
class MultiGestureImageView$g$1 implements Runnable {
final /* synthetic */ g jFo;
MultiGestureImageView$g$1(g gVar) {
this.jFo = gVar;
}
public final void run() {
this.jFo.... |
package oOPSConceptPart1;
public class CallByValueAndCallByReference {
int p;
int q;
public static void main(String[] args) {
CallByValueAndCallByReference obj = new CallByValueAndCallByReference();
int x = 10;
int y = 20;
int d = obj.testSum(x, y); //this is called - call by value or pass by va... |
package com.lti.classwork;
import org.testng.annotations.Test;
public class GroupingTestCases
{
@Test(groups= {"Smoke Testing","Regression Testing"})
public void TestCase1()
{
System.out.println("TestCase1");
}
@Test(groups= {"Smoke Testing","Regression Testing"})
public void TestCase2()
{
... |
/**
@author Chazwarp923
*/
package tech.chazwarp923.unifieditems.item;
public class UIItemGem extends UIItem {
protected UIItemGem(String unlocalizedName) {
super(unlocalizedName);
}
}
|
package com.measuring.equipment.common;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class LaboratoryDTO {
private Long id;
private String laboratoryName;
private String ... |
/**
* ファイル名 : MVsmMemPhonNoMapper.java
* 作成者 : luantx
* 作成日時 : 2018/05/31
* Copyright © 2017-2018 TAU Corporation. All Rights Reserved.
*/
package jp.co.tau.web7.admin.supplier.mappers;
import org.apache.ibatis.annotations.Mapper;
import jp.co.tau.web7.admin.supplier.entity.MVsmMemPhonNoEntity;
import jp.co.tau... |
import java.util.List;
import java.util.ArrayList;
public class UserNode{
private UserInfo userInfo;
private List<UserNode> child;
public UserNode(UserEntry userEntry){
userInfo = new UserInfo(userEntry);
//child = new ArrayList<Node>();
}
public boolean contains(ActivityEnt... |
package com.chengfu.android.fuplayer.demo;
import android.content.Intent;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.view.... |
package cn.canlnac.onlinecourse.presentation.internal.di.modules;
import java.util.Map;
import cn.canlnac.onlinecourse.domain.executor.PostExecutionThread;
import cn.canlnac.onlinecourse.domain.executor.ThreadExecutor;
import cn.canlnac.onlinecourse.domain.interactor.CreateDocumentInCatalogUseCase;
import cn.canlnac.... |
package com.tencent.mm.plugin.appbrand.k;
import com.tencent.mm.sdk.platformtools.x;
import java.security.KeyStore;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedList;
imp... |
package com.conglomerate.dev.repositories;
import com.conglomerate.dev.models.Grouping;
import com.conglomerate.dev.models.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Optional;
@Repository // extends J... |
package services;
import database.MySQLConnection;
import java.security.SecureRandom;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Base64;
public class TokenService {
private static final String INSERT = "insert into tokens (u... |
package org.example.Command;
import org.example.Command.Commands.Command;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
public class CommandHistory {
private Stack<Command> history=new Stack<>();
public void push(Command c){
history.push(c);
}
public Command po... |
package polytechnice.tobeortohave.main;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import... |
package com.goodhealth.design.advanced.BusinessAndScene.ationChain.action;
import com.goodhealth.design.advanced.BusinessAndScene.ActionEnum;
import com.goodhealth.design.advanced.BusinessAndScene.command.Command;
import com.goodhealth.design.advanced.BusinessAndScene.command.group.AfternoonCommandGroup;
import org.sp... |
package co.uniqueid.authentication.client.login.github;
import co.uniqueid.authentication.client.login.LoginService;
import co.uniqueid.authentication.client.login.LoginServiceAsync;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
public class GithubLoginVerifyer {... |
package com.lhf.ssm.controller;
import com.lhf.ssm.bean.TUser;
import com.lhf.ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/*... |
package EleMe.dao;
import EleMe.domain.Business;
import java.util.List;
public interface BusinessDao {
//查询商家
List<Business> businessFind(String businessName,String businessAddress);
//增加商家
int businessAdd(String businessName);
//删除商家
void businessDelete(int id);
//商家登录
Business bus... |
package com.cimcssc.chaojilanling.activity.user;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import com.cimcssc.chaojilanling.R;
impor... |
package com.api.mapper;
import java.util.List;
import com.api.parameter.DataParameter;
public interface DataMapper {
public List getList(DataParameter dp);
public void addAll(DataParameter dp);
public void delAll(DataParameter dp);
public void updAll(DataParameter dp);
}
|
package net.mk786110.wisdomthoughts.WisdomThoughts;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Toast;
import net.mk786110.wisdomthoughts.PersianHadiths.BaKhodaBudanActivity;
import net.mk786110.wisdomthough... |
package com.espendwise.manta.model.view;
// Generated by Hibernate Tools
import com.espendwise.manta.model.ValueObject;
/**
* DomainView generated by hbm2java
*/
public class DomainView extends ValueObject implements java.io.Serializable {
private static final long serialVersionUID = -1;
public static fina... |
package com.etar.purifier.modules.statistics.wechat.controller;
import com.etar.purifier.modules.statistics.wechat.service.WxUserStaticService;
import com.etar.purifier.modules.users.service.UserService;
import com.etar.purifier.utils.DateUtil;
import entity.common.entity.DataResult;
import entity.common.entity.Result... |
package com.top.demo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.top.demo.modules.mapper.RolePermissionMapper;
import com.top.demo.modules.pojo.RolePermissionDO;
import com.top.demo.modules.service.RolePermissionService;
import com.top.demo.modules.service.RoleService;
import org.ju... |
package com.walkerwang.algorithm.swordoffer;
public class TreeIsisSymmetrical {
public static void main(String[] args) {
TreeNode node1 = new TreeNode(1);
TreeNode node2 = new TreeNode(2);
TreeNode node3 = new TreeNode(2);
TreeNode node4 = new TreeNode(1);
TreeNode node5 = new TreeNode(1);
TreeNode node6 ... |
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.HeissTransportType;
import java.io.StringWriter;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.namespace.QName;
public class HeissTransportTy... |
package br.com.automationpractice.page;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
public class LoginPage {
final WebDriver driver;
@FindBy(how = How.XPATH, using = "//*[@id=\"header\"]/div[2]/div... |
package com.xiaoma.dd.mapper;
import com.xiaoma.dd.pojo.CompanyStaff;
import com.xiaoma.dd.pojo.CompanyStaffExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CompanyStaffMapper {
long countByExample(CompanyStaffExample example);
int deleteByExample(CompanyStaffExamp... |
package com.countout.portal.redisCache;
import redis.clients.jedis.JedisPubSub;
/**
* 负责监听redis中的key是否到达失效时间, 到达失效时间时调用方法
*
* @author Mr.tang
*/
public class KeyExpiredListener extends JedisPubSub {
// @Autowired
// private MessageReadLogService messageReadLogService;
/**
* redis的key失效时执行的方法
* 但是此方法需要订阅... |
package com.aries.orion.constants;
public enum SystemStatus {
SUCCESS(1000, "成功生效"),
NOT_CHANGED(1001, "成功但无变化"),
WRONG_ANSWER(1002, "答案错误"),
PARAM_ERROR(2000, "未知参数错误"),
PARAM_ILLEGAL(2001, "参数非法(参数不全,参数格式错误等)"),
PARAM_NULL(2002, "参数为null"),
SYSTEM_ERROR(3000, "系统内部未知异常"),
OTHERS_SYST... |
package gr.james.influence.game;
import gr.james.influence.algorithms.generators.basic.CycleGenerator;
import gr.james.influence.api.Graph;
import org.junit.Assert;
import org.junit.Test;
public class LessisTest {
@Test
public void lessisTest() {
Graph g = new CycleGenerator(3).generate();
Mo... |
package mg.egg.eggc.compiler.egg.java;
import mg.egg.eggc.runtime.libjava.*;
import mg.egg.eggc.compiler.libegg.base.*;
import mg.egg.eggc.compiler.libegg.java.*;
import mg.egg.eggc.compiler.libegg.egg.*;
import mg.egg.eggc.compiler.libegg.mig.*;
import mg.egg.eggc.compiler.libegg.latex.*;
import mg.egg.eggc.compiler.l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.