text stringlengths 10 2.72M |
|---|
/*
* 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 es.usc.grei.aos.ejercicio2.ws;
import es.usc.grei.aos.ejercicio2.dao.ClienteDAO;
import es.usc.grei.aos.ejercicio2.model.Clien... |
package de.zarncke.lib.index;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import de.zarncke.lib.coll.L;
import de.zarncke.lib.index.Index.Conservative;
import de.z... |
package co.usa.ciclo3.ciclo3.service;
import co.usa.ciclo3.ciclo3.model.Cloud;
import co.usa.ciclo3.ciclo3.model.Reservation;
import co.usa.ciclo3.ciclo3.repository.ReservationRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.... |
package cde.cw;
import org.junit.jupiter.api.Test;
import static java.util.Collections.emptyList;
import static org.assertj.core.api.Assertions.assertThat;
public class BusStopShould {
@Test
void have_drivers_stopped() {
BusStop busStop = new BusStop(1);
BusDriver driver = new BusDriver("Pep... |
package com.sm.report.rpc.param.type;
import com.google.common.collect.Lists;
import lombok.Data;
import java.util.List;
/**
* @author likangning
* @since 2018/5/25 下午2:54
*/
@Data
public class ClassParam extends BaseParam {
public ClassParam(String name, String fullName, String classType, Integer level) {
in... |
package com.github.glo2003.controllers;
interface Controller {
void setupRoutes();
}
|
package Lab11.Zad3;
public class StateCorrectAuthorization implements State{
public StateCorrectAuthorization(Authorization authorization){}
@Override
public void checkAuthorization(String login, String password) {
System.out.println("Welcome :)");
}
}
|
package br.com.pizzaria.entidades;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.p... |
package net.liuzd.spring.boot.v2.controller;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.htt... |
package com.tencent.mm.plugin.backup.bakoldlogic.bakoldpcui;
import com.tencent.mm.R;
class BakOperatingUI$9 implements Runnable {
final /* synthetic */ int eNW;
final /* synthetic */ BakOperatingUI haO;
BakOperatingUI$9(BakOperatingUI bakOperatingUI, int i) {
this.haO = bakOperatingUI;
t... |
package ch01.ex01_14;
public class NewDoublePinWalkman extends DoublePinWalkman{
private Object talkData;
public NewDoublePinWalkman(){
super();
}
public Object talk() {
return talkData;
}
;
}
|
package DAL;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import DAL.Person.DAL_Client;
import DAL.Person.DAL_Employee;
import DAL.Polish.DAL_Brand;
import DAL.Polish.DAL_Finish;
import DAL.Polish.DAL_Polish;
import DAL.Service.DAL_Schedu... |
package ArraysAndStrings;
import java.util.Scanner;
public class URLify {
public static void main(String[] args) {
System.out.println(scan("Mr John Smith "));
}
public static String scan(String input) {
Scanner s = new Scanner(input);
boolean first = true;
StringBuilder output = new Strin... |
package com.tencent.mm.protocal.c;
import com.tencent.mm.bk.a;
public final class bbb extends a {
public String eJJ;
public String eJQ;
public String rPL;
public float rmr;
public float rms;
public String sdn;
public String sdo;
public long sdp;
protected final int a(int i, Object... |
package com.bright.springcloud.dao;
import com.bright.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* @author bright
* @version 1.0
* @description
* @date 2021-01-18 15:34
*/
@Mapper
public interface PaymentDao {
int create(Payment pa... |
package com.itheima.redbaby.utils;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.wi... |
package com.codingblocks.sqlitepractice.db;
import android.annotation.SuppressLint;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.codingblocks.sqlitepractice.model;
import java.util.ArrayList;
import java.util.Arrays;
public class Tod... |
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegexDemo
{
private static String REGEX = "dog$";
private static String INPUT = "The dog$ says meow All dog$ say meow.";
private static String REPLACE = "cat";
public static void main(String[] args)
{
/*
* Returns:A literal string... |
/*
* 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 View.Consulta;
import Controller.PacienteDAO;
import Controller.TelefoneDAO;
import Model.Paciente;
import Model.Telefone;
imp... |
/*
* JBoss, Home of Professional Open Source
*
* Copyright 2013 Red Hat, Inc. and/or its affiliates.
*
* 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/lic... |
package icehs.science.chapter03;
/*
* 2018.05.23
* 윤민호
* 나의 나이
*/
public class MyAgeTest {
public static void main(String[] args) {
int myBirthYear = 2002;
int myAge = 17;
System.out.println(myBirthYear);
System.out.println(myAge);
}
}
|
package com.example.miwokapp;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompat... |
package com.youthchina.util.dictionary;
public class RichTextRelaType {
public static final int QUESTION = 2;
public static final int ESSAY = 1;
public static final int BRIEFREVIEW = 3;
public static final int ANSWER = 4;
public static int getTypeId(String type) {
switch (type) {
... |
package de.adesso.gitstalker.core.processors;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.adesso.gitstalker.core.enums.RequestType;
import de.adesso.gitstalker.core.objects.*;
import de.adesso.gitstalker.core.repositories.OrganizationRepository;
import de.adesso.gitstalker.core.repositories.Processin... |
package com.github.agmcc.slate.ast.mapper;
import com.github.agmcc.slate.ast.Node;
import org.antlr.v4.runtime.ParserRuleContext;
public interface ParseTreeMapper<T extends ParserRuleContext, U extends Node> {
U toAst(T ctx);
}
|
package com.beerhouse.service;
import java.util.List;
import com.beerhouse.model.Beer;
public interface BeerService {
List<Beer> findAll();
Beer findById(Integer id);
Beer save(Beer beer);
Beer update(Integer id, Beer beer);
void delete(Integer id);
Beer updatePartial(Integer id, Beer newBeer);
}
|
/*
* 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 tictactoegamesimple;
import java.io.IOException;
import java.net.Socket;
import java.util.Scanner;
import java.util.... |
package com.oddle.app.weather.exception;
public class DataNotFoundException extends RuntimeException{
private static final long serialVersionUID = 1L;
public DataNotFoundException(Long id) {
super(String.format("Object with Id %d not found", id));
}
}
|
package microservice.currencyexchangeservice.controller;
import microservice.currencyexchangeservice.entity.ExchangeValue;
import microservice.currencyexchangeservice.repository.ExchangeServiceRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
im... |
/*
* [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 te... |
package workstarter.service;
import workstarter.domain.Authority;
import workstarter.domain.Student;
import workstarter.domain.User;
import workstarter.repository.AuthorityRepository;
import workstarter.config.Constants;
import workstarter.repository.StudentRepository;
import workstarter.repository.UserRepository;
imp... |
package arenaworker.abilities;
import arenaworker.Player;
import arenaworker.abilityobjects.VortexGrenade;
public class VortexLauncher extends Ability {
public VortexGrenade grenade;
double amountOfForce = 2.5;
public long defaultInterval = 5000L;
public VortexLauncher(Player player, int ability... |
package wns.cannonbear.callballoon.model;
import java.util.Date;
public abstract class LogEntry {
public enum EntryType {
Call, Message
}
private int type;
private Date date;
public LogEntry(int type, Date date) {
this.type = type;
this.date = date;
}
public int getType() {
return type;
}
public ... |
package com.ibiscus.myster.model.survey.item;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity(name = "choice")
public class Choice {
@Id
@GeneratedValue
private long id;
@Column(name = "survey_item_id")
... |
package design.mode.singletone.registry;
public class SingleToneRegistryTest {
public static void main(String[] args) {
// thread safe test
for (int i = 0; i < 100; i++) {
new Thread(()->{
System.out.println(SingleToneRegistry.getInstance(SingleToneTarget.class.getName()... |
package Zeno410Utils;
import java.lang.reflect.Field;
/**
*
* @author Zeno410
*/
public class Accessor<ObjectType, FieldType>{
private Field field;
private final Class FieldTypeVar;
public Accessor(Class _FieldType) {
FieldTypeVar = _FieldType;
}
private Field field(ObjectType example) {
... |
package org.shanaka.test.kafkaautoretry.service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Service;
import static org.shanaka.test.kafkaautoretry.Util.KafkaUtils.MESSAGE_TOPIC;
@Service
@Slf4j
public class KafkaMessageProducerService ... |
package android.support.v4.app;
import android.content.Intent;
import android.os.Build.VERSION;
import android.os.Bundle;
public final class ah extends android.support.v4.app.aj.a {
private static final b qI;
public static final android.support.v4.app.aj.a.a qJ = new android.support.v4.app.aj.a.a() {
};
... |
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class ReadInTxtFile{
// This is the word we will be taking into the programme
static String word = "";
public static void main(String[] args) {
// Initialized as null to begin with
BufferedReader br = null;
// Just ... |
package com.zhouyi.business.core.model.months;
import lombok.Data;
/**
* @Author: first
* @Date: 上午11:13 2019/11/27
* @Description: 月统计
**/
@Data
public class MonthStatistical {
private String day;
private String count;
}
|
/*
* Copyright 2006 Ameer Antar.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
package backjoon.greedy;
import java.util.*;
import java.io.*;
public class Backjoon13305 {
private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
private static final BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
static int N;
stat... |
package de.allmaennitta.mindware.conceptmap;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
impor... |
package com.example.thetravlendar.models;
public class Events {
public String uid;
public String uid_name;
public String uid_date;
public String uid_startTime;
public String uid_endTime;
public String uid_address;
public String uid_city;
public String uid_state;
public String uid... |
package agents.similarity;
public enum SIMILARITYTYPE {
CUSTOM_DEFINED, BINARY;
public static SIMILARITYTYPE convertToType(String typeString) {
if (typeString==null) {
return CUSTOM_DEFINED;
} else
if (typeString.equalsIgnoreCase("binary"))
return BINARY;
else {
// ... |
package com.daralisdan.dao;
import com.daralisdan.bean.Employee;
import com.daralisdan.bean.Page;
public interface EmployeeMapper {
// 增加
public void addEmp(Employee employee);
// 删除
public void deleteEmpById(Integer id);
// 批量保存操作 batch
public Long batchAddEmp(Employee employee);
... |
package cnrst.ma.entity;
import java.time.LocalDate;
import javax.persistence.Entity;
@Entity
public class Responsable extends Compte {
private static final long serialVersionUID = 1985515350478230364L;
public Responsable() {
super();
// TODO Auto-generated constructor stub
}
public Responsabl... |
package com.tencent.mm.plugin.appbrand.ui.widget;
import android.view.View;
class AppBrandLoadIconPreference$4 implements Runnable {
final /* synthetic */ AppBrandLoadIconPreference gBj;
final /* synthetic */ View val$view;
AppBrandLoadIconPreference$4(AppBrandLoadIconPreference appBrandLoadIconPreferenc... |
package com.zoro.captial.api;
import java.io.Serializable;
import java.math.BigDecimal;
public interface CapitalAccountService extends Serializable {
BigDecimal getCapitalAccountByUserId(long userId);
}
|
package com.douane.repository;
import java.util.List;
import java.util.Map;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.s... |
package com.epam.edp.order.repository;
import com.epam.edp.order.model.OrderModel;
import org.springframework.data.repository.CrudRepository;
public interface OrderRepository extends CrudRepository<OrderModel, Integer> {
}
|
package com.goodhealth.algorithm.lambda;
import com.goodhealth.algorithm.Jackson_FastJson.Student;
import com.goodhealth.algorithm.Jackson_FastJson.Teacher;
import java.util.Optional;
/**
* @Description
* @Author WDH
* @Date 2019/9/20 16:44
**/
public class OptionalUsage {
public static void main(String[] a... |
/*
Document : SME_Lending
Created on : August 21, 2015, 11:56:42 AM
Author : Anuj Verma
*/
package com.spring.dao;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.a... |
package control;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import model.BoardService;
public class AllviewController implements Controller {
@Override
public ModelAndView execute(HttpServletR... |
package org.mokolo.commons.swt;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.... |
/*******************************************************************************
* Copyright (c) 2010 Research Group for Industrial Software (INSO), Vienna University of Technology.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v... |
import java.util.ArrayList;
import java.io.*;
public class BankersAlgo{
public static int[] recursiveSolution(ArrayList<ArrayList>sequences, int[] nodes,ArrayList<Integer>availableResources,ArrayList<ArrayList>allocatedResources,ArrayList<ArrayList>maxClaim){
ArrayList<Integer> notTraveled = new ArrayList<Integer... |
/*
* 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 trabalhomdi;
import br.com.sistema.cadastro.Empreendimento;
import br.com.sistema.listener.EmpreendimentoActionListener;
impor... |
import java.util.Scanner;
interface AdminService{
boolean validateAdmin(String email, String password);
}
interface CustomerService{
boolean validateCustomer(String email, String password);
}
class Customer
{
private int customerId;
private String customerName;
private String email;
private String password... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot;
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.XboxController;
// import edu.... |
package com.Jnet.MainPage.Controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.view.RedirectView;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;
@Controller
public class MainPageController {
@Requ... |
package ru.itis.javalab.servlets;
import ru.itis.javalab.models.User;
import ru.itis.javalab.services.UserService;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import j... |
package com.tencent.mm.plugin.wallet_core.d;
import com.tencent.mm.plugin.wallet_core.model.r;
import com.tencent.mm.sdk.e.e;
import com.tencent.mm.sdk.e.i;
public final class d extends i<r> {
public static final String[] diD = new String[]{i.a(r.dhO, "WalletBulletin")};
public e diF;
public d(e eVar) {
... |
package com.mysql.cj.jdbc;
import com.mysql.cj.BindValue;
import com.mysql.cj.CancelQueryTask;
import com.mysql.cj.ClientPreparedQuery;
import com.mysql.cj.ClientPreparedQueryBindings;
import com.mysql.cj.Messages;
import com.mysql.cj.MysqlType;
import com.mysql.cj.NativeSession;
import com.mysql.cj.ParseInfo;
import ... |
package Forms;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.i... |
package com.example.raghav.multilibrariesproject.mvp.components;
import com.example.raghav.multilibrariesproject.mvp.EmployeeDetailAcitivity;
import com.example.raghav.multilibrariesproject.mvp.modules.EmployeeFragmentModule;
import javax.inject.Singleton;
import dagger.Component;
/**
* Created by raghav on 9/27/1... |
package com.tencent.mm.plugin.qmessage.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.mm.plugin.qmessage.a.g;
class b$3 implements OnClickListener {
final /* synthetic */ b mbL;
b$3(b bVar) {
this.mbL = bVar;
}
public fi... |
package com.codeepy.adbeacon.app.factory;
import android.util.Log;
import com.codeepy.adbeacon.app.helper.Codeepy;
import com.codeepy.adbeacon.app.model.Advertisement;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
/**
* Creat... |
/*
* Copyright 2010 Mark Brady
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
package com.encore.test;
import java.util.ArrayList;
import com.encore.service.impl.EmployeeListServiceImpl;
import com.encore.vo.Employee;
import com.encore.vo.Engineer;
import com.encore.vo.Manager;
public class EmployeeServiceListTest1 {
public static void main(String[] args) {
//1. Service 생성된 객체... |
package edu.neumont.learnignChess.model;
import java.util.Enumeration;
import edu.neumont.learningChess.api.Location;
public class Queen extends ChessPiece {
public static final String NAME = "Queen";
private static final int WORTH = 9;
public Queen() {
super(WORTH);
}
public String getName() {
return ... |
package ba.bitcamp.LabS06D05;
public class TicTacToeLogic {
private int[][] table;
private int numEmptyFields;
private String winner;
private boolean player;
private boolean gameOver;
public TicTacToeLogic(int size) {
int[][] table = new int[size][size];
int numEmptyFields = size*size;
String winner = ... |
package com.arkinem.libraryfeedbackservice.api;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.P... |
package cn.czfshine.network.project.cs.bioclient;
import cn.czfshine.network.project.cs.dto.Login;
import cn.czfshine.network.project.cs.dto.Logout;
import cn.czfshine.network.project.cs.dto.Message;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socke... |
package com.arkaces.aces_marketplace_api.common;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;
@Service
public class PageViewMapper {
public <T1> PageView<T1> map(Page<T1> page, Class<T1> t1) {
PageView<T1> pageView = new PageView<>();
pageView.setIte... |
package com.jlxy.bllld.entity;
/**
* Created by ORCHID on 2017/3/23.
*/
public class Critique {
// CREATE TABLE `critique` (
// `id` INT(11) NOT NULL AUTO_INCREMENT,
private Integer Id;
// `aid` INT(11) DEFAULT NULL,
private Article Article;
// `content` TEXT,
pri... |
package org.wit.snr.nn.srbm;
import org.wit.snr.nn.srbm.math.collection.Matrix;
import java.util.List;
/**
* Created by akoperkiewicz on 14.01.2017.
*/
public interface TrainingSet {
List<Matrix> getTrainingBatch(int miniBatchSize);
}
|
package genscript.execution;
import genscript.parse.IndexReader;
import scriptinterface.execution.ExecutionScope;
public abstract class ExecuterTreeNode<ScopeType extends ExecutionScope, ReaderType extends IndexReader> extends
ExecuterTreeElem<ScopeType, ReaderType> {
@SuppressWarnings("unchecked... |
package mobi.glowworm.journal.ui.list;
import android.arch.lifecycle.ViewModel;
import android.arch.lifecycle.ViewModelProvider;
import android.support.annotation.NonNull;
import mobi.glowworm.journal.data.Db;
public class JournalListViewModelFactory extends ViewModelProvider.NewInstanceFactory {
@NonNull
p... |
package exercicios;
import java.util.Scanner;
public class Exercicio1_5 {
public static void main(String[] args) {
Scanner entrada = new Scanner(System.in);
double valorFabrica, valorImpostos, valorDistribuidor, valorFinal;
System.out.println("Digite o valor de Fabrica : ");
... |
package no.uib.info331.util;
/**
* Validator class for checking that string input fields are used correctly
*
* Created by perni on 04/12/2017.
*/
public class TextValidator {
public Boolean completeCheck(String input){
if(!isTooLong(input) && !isTooShort(input) && !isEmpty(input)){
retu... |
package root.service.impl;
import org.apache.logging.log4j.Logger;
import root.entity.BacklogItem;
import root.entity.BacklogItemStatus;
import root.entity.Product;
import root.entity.Sprint;
import root.exception.ChangeItemStatusException;
import root.exception.DeleteItemException;
import root.exception.UpdateBacklog... |
package com.chatapp.chatapps.repository;
import com.chatapp.chatapps.domain.Chat;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import org.springframework.data.mongodb.repository.Tailable;
import reactor.core.publisher.Flux;
pub... |
package com.arrays.sorting;
import java.util.*;
public class EquilibriumIndex {
// equilibrium index of array
// {1, 2, 3, 4, 6} -> eq indx = 3
// {2, 5, 8, -3, 0, 4, 3, 5} -> eq indx = 4
// an index where all LHS elements sum = RHS elements sum
public static int calcEqlbIndx(int[] arr) {
int sum = 0;
fo... |
package com.example.recyclerview.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.example.recyclerview.R... |
package com.tencent.mm.plugin.game.wepkg.model;
import java.util.List;
class f$c {
String kfy;
List<String> kfz;
String version;
private f$c() {
}
/* synthetic */ f$c(byte b) {
this();
}
}
|
//Additional Tutorial 2 - Q3.11
import java.util.Scanner;
public class Q_3_11{
public static void main(String[] args){
double temp=0.0;
double boilingTemp=100.0;
double altitude=0.0;
String state="";
Scanner inputTemp = new Scanner(System.in);
System.out.print("Enter the temperature followed by C for... |
package com.accp.pub.pojo;
import java.util.Date;
public class Surveyservant {
private Integer id;
private Integer sresultid;
private Integer optionid;
private String optionname;
private String option;
private String optionvalue;
private String createman;
private Date createtime... |
/**
* Built using CHelper plug-in
* Actual solution is at the top
* @author ashiqmostofa
*/
public class ColorfulLineGraphs {
public int countWays(long N, long K, int M) {
return 0;
}
}
|
package models.academics.coursedefn;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
@Entity
@DiscriminatorValue("PPHASE")
public class ProjectPhase extends Deliverable {
}
|
package kodlamaio.hrms.api.controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.... |
/*
* 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.harry.startup;
import com.harry.controller.UserInitial;
import java.util.*;
/**
*
* @author harry
*/
public class Syste... |
package JavaSem1.BattleShipRuzan;
/**
* Ocean.java
* @author: Ruzan Sasuri rps7183@g.rit.edu
* @author: Akash Venkatachalam av2833@g.rit.edu
* @author: Ghodratollah Aalipour ga5481@g.rit.edu
* Id: $ Ocean.java v1.0, 2016/11/07$
* Revision: First Revision
*/
public class Ocean
{
protected in... |
package task125;
import common.Watch;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* @author Igor
*/
public class Main125 {
private static final int N = 100_000_000;
public static void main(String[] args) {
Watch.start();
... |
package jie.android.ip.screen.play.lesson;
import com.badlogic.gdx.graphics.Color;
import jie.android.ip.CommonConsts.ScreenConfig;
import jie.android.ip.screen.play.LessonGroup;
import jie.android.ip.screen.play.PlayConfig.Image;
public class LessonThree extends BaseLesson {
public LessonThree(LessonGroup group) ... |
package com.ssafy.web.dto;
public class Recojuso {
private String sido;
private String gugun;
private String dong;
private float score;
private float hospital;
private float school;
private float subway;
private float movie;
private float cafe;
private float mart;
private float fast;
public Recojuso() {
... |
package main.ua.alvin.service;
import main.ua.alvin.entity.BillTable;
public interface TableService {
void save(BillTable billTable);
}
|
package com.mx.profuturo.bolsa.service.cartera;
import com.mx.profuturo.bolsa.model.restclient.ConnectionConfigBean;
import com.mx.profuturo.bolsa.model.restclient.RequestBean;
import com.mx.profuturo.bolsa.model.service.areasinteres.dto.AreaInteresDTO;
import com.mx.profuturo.bolsa.model.service.cartera.GetSubInteres... |
package RuneCollisions.Collisions2D.Utils;
import org.joml.Vector2f;
import RuneCollisions.Collisions2D.Geometry.Geometry2D;
import RuneCollisions.Collisions2D.Geometry.Lines.Line;
import RuneCollisions.Collisions2D.Geometry.Lines.Segment;
public interface Convex extends Geometry2D
{
public float GetRadius();
pu... |
package com.supconit.kqfx.web.analysis.dao.impl;
import java.util.List;
import org.springframework.stereotype.Repository;
import hc.orm.AbstractBasicDaoImpl;
import com.supconit.kqfx.web.analysis.dao.CarModelDao;
import com.supconit.kqfx.web.analysis.entities.CarModel;
@Repository("analysis_carmodel_dao")
public c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.