text stringlengths 10 2.72M |
|---|
package com.example.jwtdemo2.repository;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.example.jwtdemo2.models.ERole;
import com.example.jwtdemo2.models.Role;
... |
package ru.lanit.at;
import io.appium.java_client.remote.MobileCapabilityType;
import org.openqa.grid.internal.utils.CapabilityMatcher;
import org.openqa.selenium.remote.CapabilityType;
import ru.lanit.at.validation.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
... |
package chat.Client.gui;
import javax.swing.*;
import javax.swing.text.BadLocationException;
import javax.swing.text.Document;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class ChatWindow extends JFrame {
private final JButton sendButton;
private final JT... |
package com.flowedu.domain;
import lombok.Data;
/**
* Created by jihoan on 2017. 10. 18..
*/
@Data
public class RequestApi {
private String body;
private int httpStatusCode;
public RequestApi(String body, int httpStatusCode) {
this.body = body;
this.httpStatusCode = httpStatusCode;
... |
package egovframework.usr.stu.std.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import j... |
package com.hdb.web;
import java.io.FileInputStream;
import java.util.Properties;
import org.apache.taglibs.standard.extra.spath.RelativePath;
import org.hibernate.jpa.HibernatePersistenceProvider;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.MessageSource;
im... |
package com.microservice.apigateway.config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.gateway.filter.GatewayFilterChain;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.context.annotation.Configuration;
import org.springframework.... |
import org.apache.log4j.Logger;
import java.sql.*;
/**
* Created by shukad on 09/12/15.
*/
public class BulkIngestorConnector {
static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
static final String DB_URL = "jdbc:mysql://localhost/bulk_ingestion";
static final String USER = "root";
static f... |
XZZZZ
.//Java application to show how a similar result like multipal inharitance can be acchive in java
//Defining Super class Base
class Base{
void bdisp(){
System.out.println("Super class bdisp()method called");
}
}//close of super class Base
//Defining interface named style
interface style1{
void sdisp();... |
package org.point85.domain.dto;
import java.util.ArrayList;
import java.util.List;
import org.point85.domain.schedule.Break;
import org.point85.domain.schedule.Shift;
public class ShiftDto extends TimePeriodDto {
private List<BreakDto> breaks = new ArrayList<>();
public ShiftDto(Shift shift) {
super(shift);
... |
package v2;
public class Deme {
LevelStrategy[] strategies;
int level;
public Deme(LevelStrategy[] strategies, int level) {
this.strategies = strategies;
this.level = level;
checkErrors();
}
private void checkErrors() {
if (strategies.length == 0 || strategies == null || level > MasterVariables.MAXSYST... |
package com.bergerkiller.bukkit.tc;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collections;
... |
/*
* (c) Copyright 2001-2007 PRODAXIS, S.A.S. All rights reserved.
* PRODAXIS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.prodaxis.junitgenerator.wizards;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jface.dialogs.IDi... |
package travel.api.chat.service.impl;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import travel.api.chat.service.ChatService;
import travel.api.config.response.WorkException;
import travel.api.config.response.WorkStatus;
i... |
public class Car implements Vehicle {
private Vehicle.VehicleType type;
public Car(Vehicle.VehicleType type){
this.type = type; //passed the type (reg/HC) of the bike when initialized
}
@Override
public Vehicle.VehicleSize getSize() {
return Vehicle.VehicleSize.MEDIUM;
}
... |
package sundayhomework;
public class ManupulatingMarks {
int firstNumber ;
int secondNumber;
int add(int addNum1,int addNum2)
{
int resultAdditionVal = addNum1 + addNum2;
return resultAdditionVal;
}
int sub(int subNum1, int subNum2)
{
int resultSubrationVal = subNum1 - subNum2;
return ... |
package io.chark.food.domain.restaurant;
import io.chark.food.domain.BaseRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface RestaurantDetailsRepository extends BaseRepository<RestaurantDetails> {
} |
package com.zc.pivas.docteradvice.service.impl;
import com.zc.base.orm.mybatis.paging.JqueryStylePaging;
import com.zc.base.orm.mybatis.paging.JqueryStylePagingResults;
import com.zc.base.sys.common.util.NumberUtil;
import com.zc.pivas.docteradvice.bean.ForceRulesWithArea;
import com.zc.pivas.docteradvice.bean.P... |
package jianzhioffer;
import a_important.tool.TreeNode;
/**
* @ClassName : Solution54
* @Description : ไบๅๆๅบๆ ็็ฌฌKไธช่็น
* @Date : 2019/9/19 20:35
*/
public class Solution54 {
int count=0;
TreeNode res=null;
TreeNode KthNode(TreeNode pRoot, int k)
{
if (pRoot==null || k<=0)
return nu... |
package com.skilldistillery.fallout.data;
import java.util.List;
import org.springframework.stereotype.Component;
import com.skilldistillery.fallout.entities.FalloutCharacter;
@Component
public interface FOCharacterDAO {
FalloutCharacter findById(int id);
FalloutCharacter createCharacter(FalloutCharacter foCharac... |
package com.scriptingsystems.tutorialjava.poo.collections;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;
public class Diccionario {
Map <Character... |
package com.bofsoft.laio.customerservice.Fragment;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.alibaba.fastjson.JSON;
import com.bofsoft.laio.common.CommandCodeT... |
package fr.lteconsulting.pomexplorer.commands;
import fr.lteconsulting.pomexplorer.Application;
import fr.lteconsulting.pomexplorer.ILogger;
@Command
public class HelpCommand extends AbstractCommand
{
public HelpCommand(Application application)
{
super(application);
}
@Help("gives this messag... |
package Pro37.GetNumberOfK;
import java.util.HashMap;
public class Solution
{
// hashMap
public int GetNumberOfK(int[] array, int k)
{
HashMap<Integer, Integer> hashMap = new HashMap<>();
hashMap = sumNum(array);
int position = findPosition(array, k);
return hashMap.get(... |
package br.com.votacao.principal;
import br.com.votacao.beans.Magica;
public class ImplementarVoto {
public static void main(String[] args) {
Magica.i("Digite a zona");
Magica.i("Digite a secao");
Magica.s("Digite a cidade");
}
}
|
package negocio.repositorio;
import hibernate.util.HibernateUtil;
import java.util.List;
import negocio.basica.Privilegio;
public class RepositorioPrivilegio {
public void incluir(Privilegio pPrivilegio){
HibernateUtil.getSession().save(pPrivilegio);
}
public void alterar(Privilegio pPri... |
import java.util.Scanner;
public class OneEmp {
int empno; String empname; int age;
OneEmp(int empno, String empname, int age){
this.empno = empno;
this.empname=empname;
this.age=age;
}
}
/**
public class emp{
public static void main(String [] args){
//int a=20;
//Integer i=Integ... |
package com.worldchip.bbpawphonechat.dialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widg... |
package by.orion.onlinertasks.presentation.main.fragments.tasks.mappers;
import android.content.Context;
import android.support.annotation.NonNull;
import javax.inject.Inject;
import by.orion.onlinertasks.R;
import by.orion.onlinertasks.common.GenericObjectMapper;
import by.orion.onlinertasks.data.models.task.Image;... |
package code;
/**
* ๆ ๅฏไปฅ็ๆๆฏไธไธช่ฟ้ไธ ๆ ็ฏย ็ย ๆ ๅย ๅพใ
* <p>
* ็ปๅฎๅพไธๆฃตย n ไธช่็น (่็นๅผย 1๏ฝn) ็ๆ ไธญๆทปๅ ไธๆก่พนๅ็ๅพใๆทปๅ ็่พน็ไธคไธช้กถ็นๅ
ๅซๅจ 1 ๅฐ nย ไธญ้ด๏ผไธ่ฟๆก้ๅ ็่พนไธๅฑไบๆ ไธญๅทฒๅญๅจ็่พนใๅพ็ไฟกๆฏ่ฎฐๅฝไบ้ฟๅบฆไธบ n ็ไบ็ปดๆฐ็ป edgesย ๏ผedges[i] = [ai, bi]ย ่กจ็คบๅพไธญๅจ ai ๅ bi ไน้ดๅญๅจไธๆก่พนใ
* <p>
* ่ฏทๆพๅบไธๆกๅฏไปฅๅ ๅป็่พน๏ผๅ ้คๅๅฏไฝฟๅพๅฉไฝ้จๅๆฏไธไธชๆ็ n ไธช่็น็ๆ ใๅฆๆๆๅคไธช็ญๆก๏ผๅ่ฟๅๆฐ็ปย edgesย ไธญๆๅๅบ็ฐ็่พนใ
* <p>
* Solution:
* ๅนถๆฅ้
*
* @author liyuke... |
/* Treerow.java
Purpose:
Description:
History:
Wed Jul 6 18:56:22 2005, Created by tomyeh
Copyright (C) 2005 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
This program is distributed under LGPL Version 2.1 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package org.... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
/**
* @author Lakindu Oshadha (lakinduoshadha98@gmail.com)
*/
public class Identity {
/**
* Prints elements with those have same index as their values (Index/s i such that a[ i ]... |
package wirusy;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Random;
public class WirusSpecyficzny extends Wirus {
private final Nukleotyd[] nukleotydyPoMutacji;
private final int[] pozycjePodatneNaMutacje;
public WirusSpecyficzny(Nukleotyd[] kwasNukleino... |
package ffm.slc.model.enums;
/**
* Reflects the type of employment or contract.
*/
public enum EmploymentStatusType {
PROBATIONARY("Probationary"),
CONTRACTUAL("Contractual"),
SUBSTITUTE_TEMPORARY("Substitute/temporary"),
TENURED_OR_PERMANENT("Tenured or permanent"),
VOLUNTEER_NO_CONTRACT("Volunteer/no contract... |
package com.scripbox.controller;
import java.security.NoSuchAlgorithmException;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.websocket.server.PathParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springfra... |
package com.example.shoji.bakingapp.widget;
import android.appwidget.AppWidgetManager;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.widget.RemoteViews;
import android.widget.RemoteViewsService;
import com.example.shoji.bakingap... |
package weight;
public class Elevator {
public static void main(String args[]) {
int Person; // int used most of the time if its to short go for LONG
int Limit;
int NoPeople;
int Remaining;
char Little; //this is just to use the char type and play with to upper case
char Big;
Person = 150;
Li... |
package com.springtraining.form;
import java.util.List;
public class ParentForm {
private String month;
private List<String> monthList;
private List<TopForm> topFormList;
public String getMonth() {
return month;
}
public void setMonth(String month) {
this.month = month;
}
public ... |
package com.github.fierioziy.particlenativeapi.api.particle.type;
import com.github.fierioziy.particlenativeapi.api.utils.Shared;
import org.bukkit.Material;
/**
* <p>Class used to represent item particle type that needs an item type.</p>
*
* <p>It provides a non-reflective <code>of</code> method overloads
* to c... |
package com.xi.regexDemo;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
/*
* ๅญ็ฌฆไธฒ"$ \"ไธญ็$ไธ\ๅญ็ฌฆไบๆขไฝ็ฝฎ
*/
public class SpecialCharReplace {
private static String REGEX = "([A-Z])ๅฎค";
public static void main(String[] args) {
// String str = "ๆฑ... |
package com.example.chordnote.ui.period;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
import com.example.chordnote.ui.base.BaseFragment;
import com.example.ch... |
package br.com.gaia.service;
import java.util.List;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.GenericType;
import javax.ws.rs.core.MediaType;
import br.com.gaia.model.Gaia;
public class GaiaService {
private static WebTarget resource = ClientBuilder.new... |
package utn.sau.hp.com.modelo;
// Generated 04/12/2014 23:31:51 by Hibernate Tools 3.6.0
import java.util.HashSet;
import java.util.Set;
/**
* Localidades generated by hbm2java
*/
public class Localidades implements java.io.Serializable {
private Integer id;
private Departamentos departamentos;
... |
package view.model;
import model.interfaces.Player;
/*
* Player state is a class which is instantiated when a new player is added. Same ID as player it is referencing.
* Player state objects exist to check if players have been spun once, record win/loss etc.
*/
public class PlayerWithState {
private Player player;... |
package com.test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Given a list of words (without duplicates),
* ็ปไธไธฒๆฒกๆ็ธๅๅญ็ฌฆ็ๅญ็ฌฆ็ป
* please write a program that returns all concatenated words in the given list... |
package com.example;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.graphics.Typeface;
import android.os.Bundle;
import android.widget.TextView;
public class DatabaseFromFile extends Activity {
private static final int D... |
package rs2.model.game.world;
import java.util.HashMap;
import java.util.Map;
import rs2.model.game.entity.Entity;
import rs2.model.game.entity.Position;
import rs2.model.game.entity.ground.GroundItem;
import rs2.model.game.entity.ground.GroundObject;
/**
* Holds and manages the active Regions of the game world.
*... |
package alien4cloud.tosca.parser.impl.advanced;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import org.yaml.snakeyaml.nodes.Node;
import alien4cloud.compon... |
// Copyright (C) 2013 Mihai Preda
package pepper.app;
import android.app.Application;
public class App extends Application {
static Application self;
public App() {
self = this;
}
static {
System.loadLibrary("pepper");
}
}
|
package priorityQueueThreeWays;
import java.util.NoSuchElementException;
/**<pre>
* ********************************************************************************************************************
* PriorityQueue.java Interface *
* ****************************... |
package io.papermc.hangar.config;
import io.papermc.hangar.security.metadatasources.GlobalPermissionSource;
import io.papermc.hangar.security.metadatasources.HangarMetadataSources;
import io.papermc.hangar.security.metadatasources.ProjectPermissionSource;
import io.papermc.hangar.security.voters.GlobalPermissionVoter;... |
package com.pelephone_mobile.songwaiting.service.interfaces;
public interface ISWPopUpfacebook
{
public void onPublishFacebook();
}
|
package com.dhruvmail.com.test;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.MalformedURLException;
import com.itextpdf.text.*;
import com.itextpdf.text.pdf.BaseFont;
import com.itextpdf.text.pdf.Pd... |
package com.example.ontheleash.Fragments;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.DividerItemDecoration;
import androidx.... |
package slimeknights.tconstruct.library.traits;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minec... |
package finalexam;
import java.util.Scanner;
public class blackjack {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String Answer = "YES" ;
System.out.println("Do you want play a Blackjack game ");
if(Answer.equalsIgnoreCase("yes")){
player hand1= n... |
/*
* @(#) As2RoutingInfoActionTest.java
* Copyright (c) 2007 eSumTech Co., Ltd. All Rights Reserved.
*/
package junit.com.esum.wp.as2.as2routinginfo.struts;
import java.io.File;
import java.util.List;
import com.esum.appframework.struts.action.eSumActionServlet;
import servletunit.struts.MockStrutsTestCase;
/**... |
package com.atguigu.lgl;
/*
switch(๏ฟฝ๏ฟฝ๏ฟฝสฝ){
case ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ1:
๏ฟฝ๏ฟฝ๏ฟฝ1;
// break;
case ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ2:
๏ฟฝ๏ฟฝ๏ฟฝ2;
// break;
๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ
case ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝN:
๏ฟฝ๏ฟฝ๏ฟฝN;
// break;
default:
๏ฟฝ๏ฟฝ๏ฟฝ;
// break;
}
*/
import java.util.Scanner;
public class test2
{
public static void main(String[] args){
System.out.println("please input jijiemin... |
package validation.annotations;
import validation.FXAbstractValidator;
import validation.RequiredValidator;
import java.lang.annotation.*;
@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface FXRequired {
public Class<? extends FXAbstractValidator> validation() default Req... |
package Selenium.Registration;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class FillRegistration implements FillRegistrationInterface {
WebDriver browser;
public FillRegistration(WebDriver b){
this.browser = b;
}
... |
package com.finance.service;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class TestBookService {
@Test
public void testGetBookPrice() {
ApplicationContext context = new ClassPathXmlAppl... |
package kr.co.hangsho.orders.service;
import java.util.List;
import kr.co.hangsho.customers.vo.Customer;
import kr.co.hangsho.orders.vo.OrderDetail;
public interface OrderDetailService {
List<OrderDetail> getOrderDetailsByCustomer(Customer customer);
}
|
// Copyright (c) 2014 PayPal. All rights reserved.
package com.paypal.cordova.sdk;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.json.JSONArray;
import org.json.JSON... |
package fr.univsavoie.istoage.clientflickr;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import org.jdom2.*;
impor... |
package com.code515.report.report_demo.Repository;
import com.code515.report.report_demo.Entity.Organization;
import org.springframework.data.jpa.repository.JpaRepository;
public interface OrganizationRepository extends JpaRepository<Organization, Integer> {
Organization findByOrgNameAndBranchName(String orgName... |
package ch.ffhs.ftoop.doppelgruen.quiz.commands;
import ch.ffhs.ftoop.doppelgruen.quiz.game.Location;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Objects;
/**
* This parser reads user input and tries to interpret it as an c... |
package com.gedesys.ifacade;
import com.gedesys.persistence.Opcion;
import java.util.List;
import javax.ejb.Remote;
/**
*
* @author econtreras
*/
@Remote
public interface OpcionesFacadeRemote {
Opcion createOpcion(String opcion, String usuario);
Opcion updateOpcion(Opcion opcion);
void deleteOpcion(sh... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Controller.Admin;
import Business.MenuBAL;
import Entity.Menu;
import Utility.Session;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
/**
*
* @author TUNT
... |
import documents.*;
import forms.MainForm;
import users.userTypes.*;
import org.junit.Assert;
import org.junit.Test;
import storage.DatabaseManager;
import users.*;
import java.util.ArrayList;
public class TestCases2 {
final static String DATABASE_FILE_NAME = "TestCases";
/**
* Initial state: system ... |
/*
* Joaquin Bello
*/
public class Ejercicio04 {
public static void main(String[] args) {
for (int numero = 320; numero >= 160; numero -= 20) {
System.out.println(numero);
}
}
}
|
package com.example.bigdata.service;
import com.example.bigdata.pojo.Screen;
import org.springframework.stereotype.Service;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.file.Files;
@Service
public class IOService {
public static final St... |
package com.example.test;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
class TestExample {
@Test
void test() {
// fail("Not yet implemented");
System.out.println("test successfully");
AddExample ae=new AddExample();
int actual=ae.addmethod(5, 5);
int ... |
package accountReceivable;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Date;
import javax.swing.*;
public class... |
package Pro20.ValidParentheses;
import java.util.Stack;
public class Solution
{
public boolean isValid(String s)
{
char[] list = s.toCharArray();
Stack<Character> stack = new Stack<Character>();
for (char temp : list)
{
if (temp == '(' || temp == '[' || temp == '{')... |
package df.repository.entry.moniker;
import df.repository.entry.moniker.legalentity.LegalEntityCode;
import java.util.Objects;
public final class Moniker implements Locatable {
String area;
String audience;
String type;
LegalEntityCode legalEntityCode;
Long effectAt;
String monikerValue;
... |
package edu.umich.dpm.sensorgrabber.stream;
import android.os.AsyncTask;
import android.util.Log;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.wearable.MessageApi;
import com.google.android.gms.wearable.Node;
import com.google.android.gms.wearable.Wearable;
public... |
package com.map_project;
public class MapLocationManager
{
}
|
package gov.inl.HZGenerator.BrickFactory;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.awt.image.DataBufferShort;
import java.awt.image.DataBufferUShort;
import java.io.File;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.ut... |
package com.firedata.qtacker.domain;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;
import org.springframework.data.elasticsearch.annotations.FieldType;
import java.io.Serializable;
import java.util.Objects;
import java.util.HashSet;
imp... |
package quiz.runner.suryawanshi;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.time.Duration;
import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
import java.util.List;
import java.util.Optional;
import java.util.OptionalInt;
import java.util.stream.Collectors;
import java.util.... |
/*
Copyright 2015 Alfio Zappala
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 writing, software... |
//package com.socialteinc.socialate;
//
//import android.app.Activity;
//import android.app.Instrumentation;
//import android.content.Intent;
//import android.os.Looper;
//import android.support.annotation.NonNull;
//import android.support.design.widget.FloatingActionButton;
//import android.support.test.espresso.ViewA... |
package qdu.java.recruit.renwu.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import qdu.java.recruit.renwu.dao.SuperUserDaoMapper;
import qdu.java.recruit.renwu.entity.Paper;
import qdu.java.recruit.renwu.entity.SuperU... |
package com.webstore.shoppingcart.dto.request;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
@Builder
pu... |
/*
* (C) Mississippi State University 2009
*
* The WebTOP employs two licenses for its source code, based on the intended use. The core license for WebTOP applications is
* a Creative Commons GNU General Public License as described in http://*creativecommons.org/licenses/GPL/2.0/. WebTOP libraries
* and wapplets are ... |
package org.jphototagger.program.module.programs;
import org.jphototagger.lib.swing.Dialog;
import org.jphototagger.lib.swing.util.ComponentUtil;
/**
* @author Elmar Baumann
*/
public class EditDefaultProgramsDialog extends Dialog {
private static final long serialVersionUID = 1L;
public EditD... |
package com.sbs.sbsattend;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class WatchTableActivity extends Activity {
private WebView webView;
@Override
protected void onCreate(Bundle savedInstanc... |
package com.kaizenmax.taikinys_icl.view;
import android.app.DatePickerDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import... |
package solutionOne.main;
import cryptosystem.CryptoSystem;
import cryptosystem.SystPailler;
import env.Question;
import env.Response;
import utils.Utils;
import java.io.*;
import java.math.BigInteger;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.LinkedList;
import java.util.Random;
public ... |
package com.inhatc.cs;
import java.sql.Connection;
import java.sql.DriverManager;
import javax.inject.Inject;
import javax.sql.DataSource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4C... |
package common.geo.yahoo;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "ResultSet")
public class Yresponse {
private String error;
private String errorMessage;
private String locale;
private String quality;
private String found;
private Ylo... |
package atm.parts;
import static java.lang.Integer.parseInt;
import java.util.Scanner;
public class CardReader{
private int status;
private int cardNumberRead;
public static final int NO_CARD = 0;
public static final int CARD_UNREADABLE = 1;
public static final int CARD_READ = 2;
/* Constructor */
pub... |
package com.ut.healthelink.model;
import com.ut.healthelink.validator.NoHtml;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.... |
package com.epam.university.spring;
import com.epam.university.spring.rest.client.BookingService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.io.*;
import java.util.Arrays;
import java.util.Collections;
public class Ma... |
package com.eshop.service.impl;
import com.eshop.dao.ClientDao;
import com.eshop.domain.Client;
import com.eshop.domain.ClientAddress;
import com.eshop.domain.Order;
import com.eshop.enums.Role;
import com.eshop.exception.LoginException;
import com.eshop.jms.MessageSender;
import com.eshop.service.ClientService;
impor... |
package org.launchcode.skillstracker.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
@Controller
@ResponseBody
//@RequestMapping(method={ RequestMethod.POST, RequestMethod.GET})
public class SkillsController {
@GetMapping
public String listSkills() ... |
/*
* 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 codigomorseinterfaces;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import... |
package com.ymall.controller.portal;
import com.google.common.collect.Maps;
import com.ymall.common.ServerResponse;
import com.ymall.common.exception.IllegalException;
import com.ymall.service.FileService;
import com.ymall.util.PropertiesUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... |
package Action;
import Service.accessRecord.AccessRecord;
import Service.healthScore.HealthScore;
import Service.user.Manager;
import Service.user.Student;
import org.json.JSONObject;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax... |
public abstract class MyAbstractSequentialList<E> extends MyAbstractList<E> {
/** Create a default list */
protected MyAbstractSequentialList() {
}
/** Create a list from an array of objects */
protected MyAbstractSequentialList(E[] objects) {
super(objects);
}
public java.util.Iterator<E>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.