text stringlengths 10 2.72M |
|---|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int board[][] = new int[9][9];
for(int i = 0; i < 9; i++){
for(int j = 0; j < 9; j++){
board[i][j] = s.nextInt();
}
}
System.out.println(Solution.sudok... |
/* CSUN CS110 header
student: Rafael Almazar
date: 10 April 20 19
file: Lab7.java
Lab 7: Cryptography
*/
import java.util.*;
import javax.swing.*;
import java.io.*;
public class Lab7 {
static final int[] key1 = {5, 2, 1, 7, 0, 9, 8, 3};
static final int[] key2 = {14, 27, 33, 2, 9, 25, 10, 51};
static final Str... |
package application;
import java.util.HashMap;
import java.util.HashSet;
import org.w3c.dom.UserDataHandler;
public class DataBase {
HashMap<Environment, HashSet<String>> envirUsers = new HashMap<Environment, HashSet<String>>();
HashMap<String, String> userPassword = new HashMap<String, String>();
public DataBa... |
package tema11;
import java.util.Random;
public class D6 implements Dado {
@Override
public boolean estaViciado() {
return false;
}
@Override
public int getNumeroLados() {
return 6;
}
@Override
public int rolaDados(int quantidade) {
Random ran... |
package com.cg.ibs.spmgmt.bean;
import java.io.Serializable;
import java.math.BigInteger;
import java.time.LocalDateTime;
import java.util.Arrays;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
@Entity
@Table(uniqu... |
package com.learn.grpc.server;
import com.learn.grpc.service.GreetingServiceImpl;
import io.grpc.Server;
import io.grpc.ServerBuilder;
import java.io.IOException;
public class Application {
public static void main(String[] args) throws InterruptedException, IOException {
Server server = ServerBuilder.forPort(5005... |
package com.company;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class Writer {
public static void main(String[] args) throws IOException {
List<List<String>> lists = new ArrayList<>();
FileWriter fW = new FileWriter("output.txt")... |
package com.pawi.project.analyzer.test;
import static org.testng.AssertJUnit.assertEquals;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.testng.annotations.Test;
import com.pawi.analyzer.DiffToolAnalyzer;
import com.pawi.data.ContentFile;
import com.pawi.data.ExtractedCon... |
package pro.eddiecache.kits.lateral.tcp;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;... |
package net.razorvine.pyro.serializer;
import java.io.IOException;
import java.io.OutputStream;
import net.razorvine.pickle.IObjectPickler;
import net.razorvine.pickle.Opcodes;
import net.razorvine.pickle.PickleException;
import net.razorvine.pickle.Pickler;
import net.razorvine.pyro.PyroURI;
/**
* Pick... |
package com.syla.application;
public class AppConstants {
public static final String USER_ID = "userId";
public static final String CURRENT_ROOM_ID = "currentRoomId";
public static final String USER_NAME = "userName";
public static final String IS_LOGIN = "idLogin";
public static final String IS_GU... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package org.buaa.ly.MyCar.exception;
import org.buaa.ly.MyCar.http.ResponseStatusMsg;
public class DuplicateError extends BaseError {
public DuplicateError(String msg) {
super(ResponseStatusMsg.DUPLICATE_ERROR.getStatus(), msg);
}
public DuplicateError() {
super(ResponseStatusMsg.DUPLICA... |
package eg.edu.alexu.csd.oop.db;
public interface Command {
public Boolean execute(String column , String value);
}
|
package com.vilio.nlbs.util;
import org.apache.commons.compress.archivers.zip.Zip64Mode;
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
import org.apache.log4j.Logger;
import java.io.*;
import java.util.zip.ZipEntry;
import ja... |
package edu.northwestern.u.andrewacomb2021.kevinproto;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Results extends AppCompatActivity {
@Override
protected void onCreate(Bundle sa... |
/* */ package de.stuuupiiid.dungeonpack;
/* */
/* */ import java.util.Random;
import net.minecraft.util.ResourceLocation;
/* */
/* */
/* */
/* */
/* */ public class DungeonGeneratorSpiderBox
/* */ extends DungeonGenerator
/* */ {
/* */ public boolean generate(Rando... |
package javaFile;
import java.io.*;
import javaFile.bean.QuizItem;
import javaFile.mapper.QuizItemMapper;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.json.s... |
package com.excilys.formation.cdb.core.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* Classe représentant une company avec ses différentes val... |
package web.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.spri... |
package com.company;
import java.util.ArrayList;
import java.util.HashMap;
public class Floor {
private int level;
private String descr;
private ArrayList<Room> rooms;
private HashMap<String, Double> optionCost = new HashMap<>();
private HashMap<String, Integer> selection = new HashMap<>();
... |
package com.example.postgresdemo.model.AutoData;
public enum DataEntityStatusEnum {
PENDENTE(1),
EXECUTADO(2),
ERRO(3);
private final Integer status;
private DataEntityStatusEnum(Integer status) {
this.status = status;
}
public int getStatus() {
return this.status;
}
}
|
package top.zeroyiq.master_help_me.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import top.zeroyi... |
package StockMarket;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
class ShareTest {
Share share;
@Test
void testSetAndGetSharePrice() {
Share share = new Share("Test Company Name", "Te... |
package com.tencent.mm.protocal;
import com.tencent.mm.protocal.c.g;
public class c$fz extends g {
public c$fz() {
super("pauseDownloadTask", "cancel_download_task", 239, false);
}
}
|
package com.jc.databinding.module.listview;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import com.jc.databinding.R;
import com.jc.databinding.module.listview.bean... |
package com.company.carseller.database;
import com.company.carseller.entity.User;
import org.apache.log4j.Logger;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class UserDAO {
final... |
package view;
import view.validators.ValidSSN;
import controller.Controller;
import java.io.Serializable;
import javax.ejb.EJB;
import javax.enterprise.context.Conversation;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Inject;
import javax.inject.Named;
import view.validators.Valid... |
package test.android.kubra.com.kubraandroidtest.network;
/**
* This helps to maintain single WebService client instance across the application
*/
public class RestClientManager {
private WebServices mWebServiceClient;
private static RestClientManager mRestClientManager;
public static RestClientManager ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package lappa.smsbanking.web.Beans;
import com.douwe.generic.dao.DataAccessException;
import java.io.InputStream;
import javax.persistence.NoResultException;
import java.lang.NullPointerException;
import java.io.Seriali... |
package com.spring.domain;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import com.spring.util.Utils;
public class LoanBookReport {
private static final Logger LOG = LogManager.getLogger(LoanBookReport.class.getName());
private String invoiceNumber;
private int buyerId;
pr... |
package com.github.baloise.rocketchatrestclient.model;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonSetter;
public class ServerInfo {
private String version;
private ServerBuildInfo buildInfo;
private ServerCommitInfo commitInfo;
public void setV... |
package com.codegym.checkinhotel.repository;
import com.codegym.checkinhotel.model.HotelDetails;
import org.springframework.data.repository.PagingAndSortingRepository;
public interface IHotelDetailRepository extends PagingAndSortingRepository<HotelDetails,Long> {
}
|
/*
* Sonar, open source software quality management tool.
* Copyright (C) 2009 SonarSource
* mailto:contact AT sonarsource DOT com
*
* Sonar is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either... |
package lin.pattern.Creational.abstractfactory;
public class Summary {
/**
* 由于工厂模式中每个工厂只负责生产一类产品,导致系统中存在大量的工厂类,增加系统的开销,
* 此时可以考虑将一些相关的产品组成一个“产品族”,由同一个工厂来生产
*/
/**
* 产品等级结构 产品族
* 产品等级结构:产品等级结构即产品的继承结构,如抽象类是电视机,子类有海尔电视机、海信电视机、小米电视机,
* 则抽象电视机与具体品牌的电视机之间构成一个产品等级结构,抽象电视机是父类,而具体品牌... |
/*
* Copyright (c) 2011-2016 Pivotal Software Inc, All Rights Reserved.
*
* 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
*
* Unles... |
package com.coinhunter.web.user;
import com.coinhunter.core.domain.user.User;
import com.coinhunter.core.dto.user.UserDto;
import com.coinhunter.core.service.message.MessageSourceService;
import com.coinhunter.core.service.user.UserDetailsServiceImpl;
import com.coinhunter.core.service.user.UserService;
import com.coi... |
package com.example.httpclient.demohttpclient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemoHttpclientApplication {
public static void main(String[] args) {
SpringApplication.run(DemoHttpcli... |
import cucumber.api.PendingException;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
public class MyStepdefs {
@Given("^website https://www\\.phptravels\\.net/ is open$")
public void websiteHttpsWwwPhptravelsNetIsOpen() {
... |
package vehicle;
import enums.Condition;
import enums.Origin;
import enums.TrailerType;
import enums.TruckType;
import trailer.Trailer;
import vehicle.Vehicle;
public class Truck extends Vehicle {
// variaveis de instancia de truck
private int length;
private int load;
private TruckType truckType;
... |
package org.pan.transport;
/**
* Created by xiaopan on 2015-12-31.
*/
public abstract class AbstractMessageTransport {
protected final String address;
public AbstractMessageTransport(String address) {
this.address = address;
}
}
|
package com.valleskeyp.data;
import java.util.HashMap;
public enum enumData {
TIMES1(1),
TIMES2(2),
TIMES4(4);
// not sure what to do with the enum data...
// this was an attempt at returning a number that gets multiplied by the TIMES enumData
// in the end i was not able to return the data properly, the return is... |
package test;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import annotation.Bar;
import annotation.Manager;
import annotation.Restaurant;
import annotation.School;
public class TestCase {
@Test
//测试采用@Autow... |
package com.tt.miniapp.process.handler;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.Parcelable;
import android.text.TextUtils;
import com.a;
import com.bytedance.sandboxapp.protocol.service.request.entity.HttpRequest;
import com.storage.async.... |
/**
*
*/
package queries;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.DoubleWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce... |
package br.com.sicredi.validationpoints;
import org.junit.Assert;
public class SimulationValidationPoint {
private static final String MORE_OPTIONS_MESSAGE = "Veja estas outras opções para você";
private static final String TOTAL_AMOUNT = "R$ 2.206";
public SimulationValidationPoint() {
}
publi... |
package com.classcheck.tree;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class TreeItemIterator implements Iterator<FileNode> {
private FileNode root;
private LinkedList<FileNode> stack;
private Pattern patter... |
package ar.utn.frba.sceu.tickets.DTO;
import java.sql.Date;
import ar.utn.frba.sceu.tickets.Models.Cliente;
import ar.utn.frba.sceu.tickets.Models.Tecnico;
public class SolicitudDTO {
Integer id;
private Tecnico tecnico_id;
boolean realizado, borrado;
Date fecha_limite;
String detalle;
priv... |
package com.gmail.ivanytskyy.vitaliy.repository;
import java.util.List;
import com.gmail.ivanytskyy.vitaliy.model.Group;
/*
* Repository interface for Group domain objects
* @author Vitaliy Ivanytskyy
*/
public interface GroupRepository {
Group create(Group group);
Group findById(long id);
List<Group> findByName(... |
package com.config;
import com.badlogic.gdx.graphics.Texture;
import com.classes.ETFortress;
import com.config.Constants;
/* Data class for use when providing unique parameters to the spawning of a new ETFortress.
*
*/
public class ETFortressFactory {
public Texture texture;
public Texture destroyedTexture;
pub... |
package com.hawk.application.model;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class SearchReportVoTest {
@Test
public void test() {
SearchReportVo vo = new SearchReportVo.Builder().build();
assertTrue(vo.isSelectedAllApp());
}
}
|
package sk.itsovy.strausz.projectdp;
public class Whey implements Protein {
@Override
public void print() {
System.out.println("Iam Whey protein.");
}
}
|
package com.example.demo;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.example.demo.service.EmailService;
@Configuration
public class MyConfiguration {
// spEl
@Value("#{systemP... |
package entidades.abstractas;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import GUI.Gui;
import juego.Juego;
import state.Estado;
import visitor.VisitorDisparoAliado;
public abstract class DisparoAliado extends Disparo{
protected DisparoAliado(int x, int y, int daņo, int vel, int alcance, Estado est... |
package com.company;
public class Main {
private static Menu menu = new Menu();
private static String option;
public static void main(String[] args) {
option = menu.startMenu();
if (option.equals("1")) {
System.out.println("Aguarde, estamos processando suas informações... |
package com.cn.my.dao;
import com.cn.my.bean.Code;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface CodeMapper{
/**
* 插入代码
* @param code
* @return
*/
public int insertCode(Code code);
/**
* 修改代码
* @param code
* @return
... |
package io.twodigits.urlshortener.exceptions;
public class URLNotValidException extends URLShortenerException
{
public URLNotValidException() {
super("URL IS INVALID");
}
}
|
package com.bowlong.sql.jdbc;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
i... |
package programmers.lv2;
import java.util.Stack;
public class Parenthesis_Test {
//올바른 괄호
//스택을 이용해서 풀었지만 다른 풀이를 보니 스택을 풀지 않고 해결했다.
//생각해보니 스택을 이용하지 않아도 충분히 해결 가능한 문제.
boolean solution(String s) {
char[] cArr = s.toCharArray();
Stack<Character> stack = new Stack<>();
boolean ch... |
package com.qingjiezhao.dao.impl;
import java.util.Calendar;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.SessionFactory;
import com.qingjiezhao.bean.LocationBean;
import com.qingjiezhao.dao.LocationDao;
/**
* @author qingjiezhao
*
*/
public class LocationDaoImpl implements LocationDa... |
class Test {
public static void main(String[] args) {
int a = 10;
int b = 20;
System.out.println("第一次调用方法之前");
int ret = add(a, b);
System.out.println("第一次调用方法之后");
System.out.println("ret = " + ret);
System.out.println("第二次调用方法之前");
ret = add(30, 50);... |
package com.bowlong.third.redis;
import java.util.ArrayList;
import java.util.List;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.SortingParams;
import com.bowlong.lang.StrEx;
import com.bowlong.util.ListEx;
/**
* jedis -- 主要操作 <br/>
* T-List -- Key - Val(list ... |
package com.snab.tachkit.allForm.formOptions;
import com.snab.tachkit.additional.ParamOfField;
import android.content.Context;
import android.text.InputType;
import com.snab.tachkit.R;
import com.snab.tachkit.globalOptions.fieldOptions;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
... |
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any la... |
package com.example.structural.facade;
/**
* Copyright (C), 2020
* FileName: FacadePatternDemo
*
* @author: xieyufeng
* @date: 2020/11/2 09:31
* @description:
*/
public class FacadePatternDemo {
public static void main(String[] args) {
ShapeMaker shapeMaker = new ShapeMaker();
shapeMaker.dr... |
package com.tiandi.logistics.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tiandi.logistics.aop.log.annotation.ControllerLogAnnotation;
i... |
package com.tencent.mm.plugin.wallet_core.c;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.b.a;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.network.k;
import com.tencent.mm.network.q;
import com.tencent.mm.protocal.c.agg;
import com.tencent.mm.protocal.c.agh;
import com.tencent... |
package com.javakc.ssm.modules.dictionary.dao;
import com.javakc.ssm.base.dao.BaseDao;
import com.javakc.ssm.base.dao.MyBatisDao;
import com.javakc.ssm.modules.dictionary.entity.DictionaryEntity;
/**
* 数据字典模块数据层实现
* @author javakc
* @version 0.1
*/
@MyBatisDao
public interface DictionaryDao extends BaseDao<Dictio... |
package org.buaa.ly.MyCar.logic;
import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult;
import com.github.binarywang.wxpay.bean.notify.WxPayRefundNotifyResult;
import com.github.binarywang.wxpay.bean.order.WxPayNativeOrderResult;
import com.github.binarywang.wxpay.bean.result.WxPayOrderQueryResult;
imp... |
package fadhel.iac.tn.eventtracker.utils;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* Created by Fadhel on 30/03/2016.
*/
public class Netwo... |
package rent.common.projection;
import org.springframework.data.rest.core.config.Projection;
import rent.common.entity.TariffValueEntity;
import java.time.LocalDate;
@Projection(types = {TariffValueEntity.class})
public interface TariffValueBasic extends AbstractBasic {
CalculationTypeBasic getCalculationType();... |
package com.tencent.mm.plugin.appbrand.jsapi;
import com.tencent.mm.plugin.appbrand.ipc.AppBrandMainProcessService;
import com.tencent.mm.plugin.appbrand.l;
import com.tencent.mm.plugin.appbrand.r.c;
import org.json.JSONObject;
public final class JsApiGetSetting extends a {
public static final int CTRL_INDEX = 23... |
package net.javaguides.springboot.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import net.javaguides.springboot.model.Instance;
import net.javaguides.springboot.repository.InstanceRepository;
@Service
public class Inst... |
package com.tr.selenium.tests;
import org.testng.Assert;
import org.testng.annotations.Test;
public class ContactDeletionTests extends TestBase {
@Test
public void contactDeletionTest(){
app.getNavigationHelper().goToHomePage();
if(!app.getContactHelper().isContactExist()){
app.get... |
package com.borroom.backend.domain;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name = "record")
public class Record {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String userid;
... |
package net.iz44kpvp.kitpvp.Comandos;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import net.iz44kpvp.kitpvp.Sistemas.API;
public class Fly implements CommandExecutor {
public boolean onCommand(final CommandS... |
package commandline.command;
import commandline.argument.GenericArgumentList;
import org.junit.Test;
public class GenericCommandTest {
@Test(expected = IllegalArgumentException.class)
public void testConstructor() {
new GenericCommand(" ", new GenericArgumentList());
}
} |
package com.lister.bll.interfaces;
import java.io.Serializable;
import java.util.List;
public interface IGenericService <T extends Serializable, ID extends Serializable> {
public boolean create(T e);
public boolean delete(T e);
public boolean update(T e);
public T get(ID id);
public List<T> get();
}
|
package edu.sit.bancodedados.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import edu.sit.bancodedados.conexao.Conexao;
import edu.sit.bancodedados.conexao.ConexaoException;
import... |
package com.rastiehaiev.notebook.controller;
import com.rastiehaiev.notebook.bean.User;
import com.rastiehaiev.notebook.management.IVocabularyManagementService;
import com.rastiehaiev.notebook.response.IResponse;
import com.rastiehaiev.notebook.response.word.*;
import org.apache.log4j.Logger;
import org.springframewor... |
package com.psl.flashnotes.bean;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;
@Embeddable
public class CompositeId1 implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
@Column(name = "noteId")
private int noteId;
@... |
package prj5;
import student.TestCase;
/**
* Testing the glyph
*
* @author emily
* @version 2019.12.02
*/
public class GlyphTest extends TestCase {
private Glyph glyph;
/**
* sets up the class
*/
public void setUp() {
Song boho = new Song("Queen", "Bohemian Rhapsody", "Rock", "1... |
package map;
import java.util.HashSet;
import java.util.Set;
public class HashCodeAndEquals {
public static void main(String[] args) {
Pen pen1 = new Pen(10, "blue");
Pen pen2 = new Pen(10, "blue");
//System.out.println(pen1==pen2);
//System.out.println(pen1);
//System.out.println(pen2); //pen1 an... |
package com.store.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.store.service.PermissionS... |
package com.example.a12306f.fragment;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Handler;
import android.... |
package com.csform.android.uiapptemplate;
import java.net.URI;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.HashMap;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsU... |
package com.github.lnframeworkdemo;
import android.os.Bundle;
import com.github.fragmention.SupportActivity;
public class ReplaceChildActivity extends SupportActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentVie... |
package animatronics.common.block;
import java.util.List;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.EnumChatFormattin... |
package com.tencent.mm.plugin.sns.ui;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.view.View;
import android.view.View.OnTouchListener;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.tmassistantsdk.logreport.BaseReportManager;
class SnsOnlineVideoActivity$5 imple... |
package com.linda.framework.rpc.oio;
import com.linda.framework.rpc.RpcObject;
import com.linda.framework.rpc.exception.RpcException;
import com.linda.framework.rpc.exception.RpcNetExceptionHandler;
import com.linda.framework.rpc.net.AbstractRpcConnector;
import com.linda.framework.rpc.utils.RpcUtils;
import com.linda... |
package com.wenxc.afdc;
import android.util.Log;
import com.wenxc.afdc.exception.FunctionException;
import com.wenxc.afdc.exception.FunctionNotFoundException;
import com.wenxc.afdc.function.ImplFunction;
import com.wenxc.afdc.inte.IFunction;
import java.util.HashMap;
import java.util.Map;
/**
* 函数类的管理,每个带有fragment... |
package com.example.moneymanager.repositorydb;
import android.app.Application;
import androidx.lifecycle.LiveData;
import com.example.moneymanager.dao.ManagerDao;
import com.example.moneymanager.db.AppDatabase;
import com.example.moneymanager.dao.CategoryDao;
import com.example.moneymanager.db.Expenses;
import com.e... |
package com.example.dell.geoquiz;
import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import androi... |
package com.scnuweb.domain;
/**
*
* @author yehao
* @date 2016年2月16日
* @comment 对应ExamItem 里面的 input 控件
*/
public class Input {
private String itemId;
private int orderNumber;
private String inputValue;
private int isValueSensitive;
public String getItemId() {
return itemId;
}
public void setItemI... |
package com.example.shadowview;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RadioGroup;
import android.widget.SeekBar;
import android.widget.TextView;
import com.lwx.shadowlibrary.layout.QMUILinearLayout;
impo... |
package com.spring.app.ws.repository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import com.spring.app.ws.io.entity.Users;
@Repository
public interface UserRepository extends PagingAndSortingRepository<Users, Long> {
public Users findBy... |
package org.study.core.concurrency;
import java.util.concurrent.CountDownLatch;
/**
* Created by iovchynnikov on 9/25/2015.
*/
public class InterleavingDemo {
private int value;
public synchronized void increment() {
value++;
// int value = this.value;
// this.value = value +1;
}
... |
package com.program9;
import com.google.common.base.Splitter;
import java.util.List;
class GuavaCuttingFunction {
static List<String> GuavaCutter(String s, int length){
return Splitter.fixedLength(length).splitToList(s);
}
}
|
package stepDefinition;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import org.openqa.selenium.Keys;
import pageObjects.KeyPressesPage;
import utils.TestContext;
import static org.testng.Assert.assertEquals;
public class KeysSteps
{
private TestContext testContext;
private KeyPressesPag... |
package catalog.desktop.step_definitions;
import base.BaseSteps;
import catalog.desktop.pages.Catalog_page;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import homepage.desktop.pages.Home_Page;
import pdp.desktop.pages.Pdp_Page;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.