text stringlengths 10 2.72M |
|---|
package br.com.wasys.gfin.cheqfast.cliente.endpoint;
import br.com.wasys.gfin.cheqfast.cliente.model.ContaBancoModel;
import br.com.wasys.gfin.cheqfast.cliente.model.TransferenciaModel;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
/**
* Created by pascke on 02/08/16.
*/
public inter... |
package be.mxs.common.model.vo;
import java.io.Serializable;
/**
* Created by IntelliJ IDEA.
* User: MichaŽl
* Date: 09-juil.-2003
* Time: 11:37:33
* To change this template use Options | File Templates.
*/
public class ValueObjectContainer implements Serializable{
private String valueObjectPath;
priva... |
package com.bs.guestbook.dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service("factory")
//@Component("factory")
public class Factory {
@Resource(name = "topi... |
/*
* 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.training.advancedlab.repository;
import com.training.advancedlab.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRepository extends JpaRepository<User, Long> {
}
|
package com.fju.Hello;
public class Student {
String name = "mg";
int english;
int math;
int avg;
public void print() {
System.out.println(name + "\t" + english + "\t" + math + "\t" + avg);
}
}
/*«Øºc¤l*/ |
package Panels.Blocks;
import Frames.CharacterEditWindow;
import Frames.PersonPanel;
import Managers.TreeKeeper;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
/*
A ... |
package com.zantong.mobilecttx.user.dto;
/**
* 退出实体
* @author Sandy
* create at 16/6/8 下午11:48
*/
public class LogoutDTO {
private String usrid; //用户id
public String getUsrid() {
return usrid;
}
public void setUsrid(String usrid) {
this.usrid = usrid;
}
}
|
package algorithms.kd;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class Entry<T> {
private Point key;
private T value;
public Entry(Point key, T value) {
this.key = key;
this.value = value;
}
@Override
public String toString() {
return key.toString() + ":" + value;
... |
package quiz.honeywell.com.fitnessapp.settings;
import quiz.honeywell.com.fitnessapp.network.BaseRequest;
/**
* Created by ADMIN on 1/6/2018.
*/
public class SettingsRequest extends BaseRequest {
}
|
package de.ing.mws.refapp.war.init;
import de.ing.mws.refapp.common.LoadableModule;
import java.util.HashMap;
import java.util.Map;
import java.util.ServiceLoader;
public class ModuleLoader {
private static ModuleLoader instance;
private ServiceLoader<LoadableModule> serviceLoader;
private ModuleLoad... |
package com.shopxx.shopxxhr.service.impl;
import com.querydsl.core.BooleanBuilder;
import com.querydsl.core.types.Predicate;
import com.querydsl.jpa.JPAExpressions;
import com.shopxx.shopxxhr.entity.Employee;
import com.shopxx.shopxxhr.entity.QEmployee;
import com.shopxx.shopxxhr.entity.RespPageBean;
import com.shopxx... |
package main.user;
import main.entity.Id;
import main.entity.implement.BlockId;
import main.entity.implement.FileId;
import main.repository.BlockRepo.Block;
import main.repository.BlockRepo.BlockManager;
import main.repository.BlockRepo.implement.BlockImpl;
import main.repository.BlockRepo.implement.BlockManagerImpl;
... |
package com.example.demo.dao;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.... |
package com.developworks.jvmcode;
/**
* <p>Title: lookupsiwth</p>
* <p>Description: 根据键值在跳转表中寻找匹配的分支然后进行跳转</p>
* <p>Author: ouyp </p>
* <p>Date: 2018-05-20 15:21</p>
*/
public class lookupsiwth {
public void lookupswith(int i) {
switch (i) {
case -10 : break;
case 0 : break;
... |
package Problem_17779;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
static int N;
static int[][] arr;
static int[][] data;
static int[][] pos = new int[4][2];
static int min_value = Integer.MAX_VALUE;
pub... |
package com.share.dao;
import org.hibernate.Session;
import org.hibernate.Transaction;
import com.share.bean.StudentHeader;
import com.share.bean.StudentPlayer;
import com.share.bean.SystemInfo;
import com.share.bean.Teacher;
import com.share.sessionFactory.SessionFactory;
public class RegionDao {
public boolean Gr... |
package com.lemo.cmx.shengchanxiaofei;
/**产品
* Created by 罗选通 on 2017/9/14.
*/
public class Product {
private int id;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.nam... |
package com.example.android.beatmymovies;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import com.squareup.picasso.Picasso;
import java.util.ArrayList;
/**
* Created ... |
package cn.com.finn.util;
/**
*
* @author Finn Zhao
* @version 2017年2月25日
*/
public class DateUtils {
private DateUtils() {
}
}
|
package main.java.model;
import java.util.List;
public class PieceDAO extends CsvDAO {
private ModelManager modelManager;
public PieceDAO(String id, ModelManager modelManager) {
super ("res/pieces-" + id + ".csv");
this.modelManager = modelManager;
}
public Piece[] getPieces() {
List<String[]> lin... |
package sort.linearsort;
/**
* Created by orca on 2018/12/20.
*
* 基数排序。
* 元:把数据分割成多位,对每一位做计数排序。
* */
public class RadixSort {
public static void main(String args[]){
int[] a = {6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7, 12, 2};
sort(a);
for (int i = 0; i < a.length; i++) {
System.... |
package bangmyung;
import java.util.ArrayList;
import java.util.List;
/* 데이터를 다루는 클래스는 독립시켜서 만드는 경향이 강하다. ( 별도의 클래스 )
A 는 데이터베이스와 관련된 기능 구현
B 는 웹 프로그래밍과 관련된 기능 구현
원래대로라면 A 끝나고 결과코드를 B 에 넘겨주고 B 는 그걸 받아서 일한다.
비효율적이다 : 동시에 얼마든지 일 할 수 있는데 ....
BangMyungDAO - 방명록에 필요한 데이터 입출력 기능을 모아서 추상화 했다.
:: add , ... |
package com.example.demo;
import com.mongodb.client.MongoClient;
import com.mongodb.client.MongoClients;
import org.springframework.context.annotation.Bean;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Component;
@Component
public class AppConfig {
public Mong... |
/**
* Package for Profession task.
*
* @author Goureev Ilya (mailto:ill-jah@yandex.ru)
* @version 1
* @since 2017-04-22
*/
package ru.job4j.task4;
|
package com.company;
import lombok.Getter;
import lombok.Setter;
public class MobilePhone {
private @Setter @Getter String m_brand;
private @Setter @Getter String m_model;
private @Setter @Getter int m_price;
private @Setter @Getter double m_size;
private @Setter @Getter String m_color;
pub... |
package au.gov.dva.digitize.batch;
import java.util.Date;
import javax.batch.api.AbstractBatchlet;
import javax.batch.api.BatchProperty;
import javax.inject.Inject;
public class LoadMailData extends AbstractBatchlet
{
@Inject
@BatchProperty(name = "runAt")
Date runAt;
/**
* @see A... |
package artgallery;
import java.util.List;
import java.util.PriorityQueue;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Stack;
import java.util.stream.Collectors;
import artgallery.dataStructures.AVLTree;
import artgallery.geometricalElements.Edge;
import artgal... |
/*
* Copyright 2019 The Kathra 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 applicable law or a... |
package jkstudiogroup.template;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.Texture;
import jkstudiogroup.template.Objects.LoadCard;
import jkstudiogroup.template.scenes.GameScene;
public class PostScratch extends Game {
pu... |
package liu.lang.reflect.Method;
import java.lang.reflect.Method;
/**Method类的常用方法:
* getDeclaringClass()
* 返回该方法对象表示的方法所在类的Class对象
* @author LIU
*
*/
public class About_getDeclaringClass {
public void test() {}
public static void main(String[] args) throws Exception {
Method method = ... |
package com.springcloud.demo.config.error;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.security.web.access.AccessDeniedHandler;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ja... |
/*
* 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.mf.controlacceso.dao;
import java.util.List;
public interface UsuarioDAO extends GenericDAO {
}
|
package com.git.cloud.common.interceptor;
import java.util.List;
public class ModuleModel {
private String clazz; // 业务模块的实现类路径
private String moduleName; // 模块名称
private String moduleCode; // 模块编码
private List<OperateModel> operateList; // 业务方法拦截的操作
public ModuleModel() {
}
public String ... |
package com.tcl.multiuserlauncher;
import android.app.ActivityManager;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.LauncherActivityInfo;
import android.content.pm.PackageManager;
import android.os.Bu... |
/*
* Copyright © 2018 www.noark.xyz All Rights Reserved.
*
* 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 !
* 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件:
*
* http://www.noark.xyz/LICENSE
*
* 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播;
* 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本;
* 3.无论你对源代码做出任何修改和改进,版权都归Noark... |
package servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import domain.Building;
import domain.Room;
import service.RoomService;
public class StaffEditRoomCommand extends FrontCommand {
@Override
public void process() throws ServletException, IOException {
String roomIdString = reque... |
package org.example.limitchecker.model.limit;
import org.example.limitchecker.model.Order;
import org.example.limitchecker.repository.CheckedOrdersStorage;
public interface Limit {
boolean check(Order order, CheckedOrdersStorage storage);
}
|
package com.tinyworld.jsf.action;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;
import javax.faces.event.AjaxBehaviorEvent;
import javax.faces.event.ValueChangeEvent;
... |
package nor;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/******************************************************************************/
public class LookAndFeelMenu {
//Megváltoztatja a témát.
public static void createLookAndFeelMenuItem(JMenu jmenu, Component cmp) {
//Megnézzük milye... |
package com.soul.demo01;
public class SaleTicketSynchronizedDemo01 {
public static void main(String[] args) {
Ticket ticket = new Ticket();
new Thread(() -> {
for (int i = 0; i < 60; i++) {
ticket.sale();
}
}, "A").start();
new Thread(() -> {
... |
package de.dotwee.rgb.canteen.view.dialogs;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.app.AppCompatDialog;
import android.widget.Button;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butte... |
package employeeScheduler.model;
import org.jacop.constraints.In;
/**
* Simple class with information about specific work shift.
*/
public class Shift {
private DayTime startTime;
private DayTime endTime;
private Integer minEmployeesNumber;
private Integer maxEmployeesNumber;
public Shift(DayTi... |
package com.example.adimn.myapplication;
import android.Manifest;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.pm.Pac... |
package com.test;
public class SolutionB
{
public static final int[] ARRAY = {5, 8, 4, 12, 32, -12, -43, 0, 9, 43, -23, 8, -4, 43, 5};
/**
* .堆排序
*/
public int[] sortHeap()
{
int[] temp = ARRAY.clone();
buildMaxHeap(temp);
for (int i = temp.lengt... |
/**
*
*/
package com.android.aid;
import android.database.ContentObserver;
import android.os.Handler;
import android.util.Log;
/**
* @author wangpeifeng
*
*/
public class GUIContentObserver extends ContentObserver{
public GUIContentObserver(Handler handler) {
super(handler);
// TODO Auto-generated constru... |
package com.weili.dao;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import com.shove.data.DataException;
import com.shove.data.DataSet;
import com.shov... |
package com.codepath.instagram.networking;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.support.v4.content.LocalBroadcastManager;
import com.codepath.instagram.core.MainApplication;
import com.codepath.instagram.helpers.Utils;
import com.codepath.inst... |
package adtpackage;
/**
*
* @author Zbynda
*/
public enum ReturnCode {
SUCCESS("The addition was successful."),
FAILURE("The addition was unsuccessful."),
SKIP("The addition was skipped."),
OVERFLOW("The container overflowed during addition process."),
UNDEFINED("The addition status is u... |
package pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.Assert;
public class Login {
WebDriver driver;
WebEle... |
package asia.wavelet.bigledger.core.domain;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.openkoala.koala.commons.domain.KoalaAbstractEntity;
@Entity
@Table(name = "PUBLISHERS")
public class Publisher extends KoalaAbstractEntity {
/**
*
*/
private static final lo... |
package com.gsccs.sme.api.service;
import java.util.List;
import com.gsccs.sme.api.domain.site.Banner;
/**
* 首页Banner
* @author ZhangTao
*
*/
public interface BannerServiceI {
/**
* 热点列表
* @param banner
* @param page
* @param pagesize
* @return
*/
public List<Banner> find(Banner banner,Integer pag... |
package com.nsi.clonebin.util;
import com.nsi.clonebin.model.enums.PasteExpiringEnum;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;
public class DateTimeUtil {
public static String formatLocalDateTime(LocalDateTime dateTime) {
DateTimeFo... |
/*
Copyright (C) 2013-2014, Securifera, Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and... |
package narif.personal.work.fnutils.test.datastructures;
import narif.personal.work.fnutils.datastructures.Tuple;
import static org.assertj.core.api.Assertions.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
@DisplayName("Tuple Specs:")
class T... |
package com.shiroproject.shirogateway;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ShirogatewayApplication {
public static void main(String[] args) {
SpringApplication.run(ShirogatewayApplication.class,... |
package org.giddap.dreamfactory.leetcode.onlinejudge;
import org.giddap.dreamfactory.leetcode.onlinejudge.implementations.RomanToIntegerImpl;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
public class RomanToIntegerTest {
private RomanToInteger solution = new RomanToIntegerImpl();
@Test
... |
package com.example.shoji.bakingapp.backgroundtask;
import android.content.Context;
import android.os.Bundle;
import com.example.shoji.bakingapp.pojo.Recipe;
import com.example.shoji.bakingapp.utils.NetworkUtils;
import com.example.shoji.bakingapp.utils.RecipeJsonUtils;
import com.example.shoji.bakingapp.utils.Recipe... |
package com.tickets.repository;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import com.tickets.entity.User;
/**
* <h1>This repository class is used for user entity related interactions</h1>
* @author Joby Chacko
* @version 1.0
* @since 2020-04-04
*/
public i... |
package pt.utl.ist.bw.elements;
public class DataModelInstanceID {
private String instanceID;
public DataModelInstanceID(String instanceID) {
this.instanceID = instanceID;
}
@Override
public String toString() {
return this.instanceID;
}
@Override
public boolean equals(Object anObject) {
if(!(anObj... |
public class Solution{
//common iterative solution
public static void shuffle(int[] array){
if(array==null||array.length<2){return;}
for(int i=0;i<array.length;i++){
int index = (int)(Math.random()*(i+1)); //generate a rondom number ranged from 0 to i(inclusive)
swap(array,i,index);
}
}
private static ... |
package com.project.slider;
import java.awt.image.BufferedImage;
import java.util.Observable;
import java.util.Observer;
import com.project.EntityID;
import com.project.Handleable;
import com.project.ImageHandler;
import com.project.battle.BattleScreen;
public class VerticalSliderHandle extends Observable{
private... |
package com.pattern.observe.p2pcase.rebuild;
public interface RegObserver {
void handRegSuccess(long userId);
}
|
package com.revolut.moneytransfer.entity;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Account {
@JsonIgnore
private long accountNo;
@JsonProperty(required = true)
private long accountNumber;
@JsonProperty(... |
package com.web.common;
import com.web.framework.util.StringUtil;
/**
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class CodeParam {
protected String systemcode="";
protected String type="";
protected String... |
package application;
import controller.Controller;
import model.GameEngineImpl;
import view.AppFrame;
import view.GameEngineCallbackGUI;
import view.GameEngineCallbackImpl;
import view.model.PlayerStates;
public class Driver {
public static void main(String[] args) {
GameEngineImpl gei = new GameEngineImpl();... |
package com.sourceit.maps.ui;
import android.view.View;
/**
* Created by User on 14.03.2016.
*/
public abstract class OnItemClickWatcher<T> {
public abstract void onItemClick(View v, int position, T item);
}
|
package com.tauros;
public class Starter {
public static IShoppingMall getShoppingMallHandler() {
IShoppingMall shopping_mall = null;
shopping_mall = (IShoppingMall)new ShoppingMall();
return shopping_mall;
}
}
|
package com.xwj.dao;
import com.xwj.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface RoleDao {
int insertRole(Role role);
int updateRole(int i);
Role getRole(int id);
int deleteRole(int id,... |
import java.util.Random;
import java.util.concurrent.TimeUnit;
public class TeamLeader extends Employee{
private int teamNumber;
private int teamMemberNumber;
private long lunchTime;
private Developer[] team;
protected Runnable goToLunch;
protected Runnable endOfDayLeave;
protected Runnable standUpMeeting;
... |
/*
* 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 net.voldrich.graal.async.script;
import lombok.extern.slf4j.Slf4j;
import net.voldrich.graal.async.ScriptTestUtils;
import net.voldrich.graal.async.api.MockedHttpClient;
import net.voldrich.graal.async.api.ScriptMockedHttpResponse;
import org.hamcrest.Matcher;
import org.hamcrest.Matchers;
import org.junit.jup... |
package annotation;
import java.lang.reflect.Member;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
public class UserCaseTracker {
public static void tracker(List<Integer> userCaseIds, Class<?> cl){
Method[] m... |
package lotro.sk;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import lotro.models.Character;
import file.FileUtils;
public class RiftP... |
package gov.nih.nci.ctrp.importtrials.util;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.ann... |
package pl.edu.pjatk.System.zarzadzania.zamowieniami.model;
import java.time.LocalDate;
import java.util.List;
import javax.persistence.*;
@Entity
@Table(name = "constructionSite")
public class ConstructionSite {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private int id;
@One... |
package com.robin.springboot.demo.mongodb;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.repository.MongoRepository;
public abstract class MongoSuperServiceImpl< R extends MongoRepository, T extends ... |
package com.lab.shopCart.shopcartms.application.internal.service;
import com.lab.shopCart.shopcartms.domain.model.GoodEntity;
import com.lab.shopCart.shopcartms.domain.model.ShopCartEntity;
import com.lab.shopCart.shopcartms.infrastructure.repository.GoodRepository;
import com.lab.shopCart.shopcartms.infrastructure.re... |
package com.ray.utils.iputil;
/**
* Created by Administrator on 2016/1/28.
*/
public class AAA {
public void Url(String str){
System.out.println("a0");
}
}
|
package cqut.syntaxAnalyzer;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import cqut.util.SystemProperty;
import cqut.util.entity.Syntax;
public class SyntaxServiceImpl implements SyntaxService {
public static Map<String, String> syntaxes;
private static SyntaxService sy... |
package com.fest.pecfestBackend.repository;
import com.fest.pecfestBackend.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public in... |
public class BinaryTree<K extends Comparable<K>> {
private BinaryTreeNode<K> root;
public void add(K key) {
this.root = this.addRecursively(root, key);
}
// recursive function to add nodes
private BinaryTreeNode<K> addRecursively(BinaryTreeNode<K> current, K key) {
if (cur... |
package net.kemitix.dependency.digraph.maven.plugin.stubs;
/**
* Project list for the source and test project.
*
* @author pcampbell
*/
public class DigraphSrcOnlyProjectList extends AbstractProjectsList {
/**
* Default constructor.
*/
public DigraphSrcOnlyProjectList() {
super(new Digra... |
/*
* 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;
import javax.swing.JFrame;
import modelo.AdminBD;
import modelo.Catalogo;
import modelo.Pelicula;
/**
*
* @author Jh... |
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.ServerSocket;
import java.net.Socket;
public class RemoteHeadServer {
/**
* @param args
... |
package de.fu_berlin.cdv.chasingpictures.api;
import android.util.Log;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.File;
import java.io.Serializable;
import java.net.MalformedURL... |
public class Main1_3 {
public static void main(String[] args) {
int initScore = 5;
int scoreTom = initScore;
int scoreBob = initScore;
System.out.println("Round 1 results:");
System.out.println(scoreTom++);
System.out.println(--scoreBob);
}
}
|
package com.lxl.service;
import com.lxl.beans.po.DfGroupTypePo;
import com.lxl.beans.po.DfGroupTypePoExample;
import com.lxl.beans.po.TypePo;
import com.lxl.beans.po.TypePoExample;
import com.lxl.beans.vo.DfGroupType;
import com.lxl.constants.EType;
import com.lxl.dao.DfGroupTypePoMapper;
import com.lxl.dao.TypePoMapp... |
package io.fabiandev.validator;
import io.fabiandev.validator.support.StringHelper;
import org.junit.Test;
import static org.junit.Assert.*;
public class StringHelperTest
{
@Test
public void testSplit()
{
String str = "some.value";
String[] parts = StringHelper.split(str, ".");
... |
package org.giddap.dreamfactory.leetcode.onlinejudge.implementations;
import org.giddap.dreamfactory.leetcode.onlinejudge.RemoveDuplicatesFromSortedArrayII;
/**
* 弼馬溫注解:
* <ul>
* <li>Time complexity: O(n)</li>
* <li>Space complexity: O(1)</li>
* <li>Use two pointers:
* <ul>
* <li>fast: points to the next eleme... |
package com.zym.blog.service.impl;
import com.github.pagehelper.PageHelper;
import com.zym.blog.dao.AdminDao;
import com.zym.blog.form.AdminForm;
import com.zym.blog.model.Admin;
import com.zym.blog.model.example.AdminExample;
import com.zym.blog.service.AdminService;
import com.zym.blog.utils.StringUtil;
import org.s... |
package org.squonk.execution.steps.impl;
import org.squonk.types.MoleculeObject;
import org.apache.camel.CamelContext;
import org.squonk.camel.util.CamelUtils;
import org.squonk.dataset.Dataset;
import org.squonk.execution.steps.AbstractStep;
import org.squonk.execution.steps.StepDefinitionConstants;
import org.squonk... |
package com.needii.dashboard.service;
import com.needii.dashboard.model.PaymentShippersHistories;
import java.util.Date;
import java.util.List;
public interface PaymentShippersHistoriesService {
List<PaymentShippersHistories> findAll();
List<PaymentShippersHistories> findAllDateMonthYear(Long shippersId, D... |
package be.openclinic.datacenter;
import java.io.ByteArrayInputStream;
import java.text.SimpleDateFormat;
import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
public class AckMessage extends DatacenterMessage {
public AckMessage(String xml){
SAXReader reader = new SAXReader(... |
package com.flipmart.data;
import java.util.ArrayList;
import java.util.List;
import com.flipmart.model.Customer;
import com.flipmart.model.Order;
import com.flipmart.model.Item;
public class Data {
private static Data data = null;
List<Item> itemList;
List<Customer> customerList;
List<Order> orderList;
Data(... |
package com.forfinance.web.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.forfinance.dto.CustomerDTO;
import com.forfinance.dto.HistoryDTO;
import com.forfinance.dto.OrderDTO;
import com.forfinance.web.controller.validator.CustomerValidator;
import com.forfinance.web.service.MainApplication... |
package RestMethod;
import com.fasterxml.jackson.core.JsonProcessingException;
import PojoPayload.ObjectMapperCustom;
import TestingCommon.BaseUrl;
import TestingCommon.BookBaseTest;
import TestingCommon.RestFWLogger;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import io.resta... |
package slimeknights.tconstruct.tools.common.item;
import net.minecraft.block.Block;
import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.world.World;
impor... |
package fr.treeptik.truitter.action;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.springframework.beans.factory.annotation.Autowired;
import com.opensymphony.xwork2.ActionSupport;
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.