text stringlengths 10 2.72M |
|---|
package ru.cardsmobile.test.service;
import ru.cardsmobile.test.dto.ClaimDto;
import ru.cardsmobile.test.dto.CustomClaimDto;
import ru.cardsmobile.test.dto.MegaClaimDto;
import ru.cardsmobile.test.model.CustomClaim;
import ru.cardsmobile.test.model.MegaClaim;
import ru.cardsmobile.test.repository.ClaimRepository;
imp... |
package com.fnsvalue.skillshare.dto;
import org.springframework.web.multipart.MultipartFile;
public class Board {
private int board_no_pk;
private String user_tb_user_id_pk;
private String board_tit;
private String board_con;
private String board_dt;
private String my_sk;
private String want_sk;
private Strin... |
package com.example.accounting_app.activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.RadioButton;
import com.... |
package com.altimetrik;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("/hello")
public class HelloWorld {
@GET
@Produces(MediaType.TEXT_HTML)
public String getMsg() {
return "Hello RESTFULL";
}
}
|
package micro.usuarios.publicos.services;
import java.util.HashSet;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.securi... |
package com.tencent.mm.plugin.card.ui;
import com.tencent.mm.plugin.card.model.am;
import com.tencent.mm.plugin.card.model.g;
import com.tencent.mm.ui.base.h.c;
class CardNewMsgUI$7 implements c {
final /* synthetic */ int eKj;
final /* synthetic */ CardNewMsgUI hFN;
CardNewMsgUI$7(CardNewMsgUI cardNewMs... |
package homework;
import java.util.ArrayList;
import java.util.Date;
import java.util.ListIterator;
class Bank //3-37
{
private Account account;
private ArrayList userList;
public Bank(Account account)
{
this.account = account;
}
public boolean createAccount()
{
if (user... |
package com.takshine.wxcrm.service;
/**
* 地址信息服务
* @author admin
*
*/
public interface WxAddressInfoService {
/**
* 根据经纬度查询地址信息
* @param lat
* @param lng
* @return
*/
public String getAddressNameByLatLng(String lat, String lng);
}
|
package it.usi.xframe.xas.bfimpl.sms.providers.vodafonepop;
public class VodafoneRuntimeException extends RuntimeException
{
/**
* Serial Version.
*/
private static final long serialVersionUID = 1L;
public VodafoneRuntimeException(String message) {
super(message);
}
public VodafoneRuntimeExceptio... |
package com.trainex.uis.main;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.wi... |
package chapter_1_06_Interfaces;
public class Local {
int k = 3;
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
final int j = 6;
class InnerLocal {
int getInt () {
//return k; //No Access to outer class
return 5 + j; //... |
package org.jboss.perf.test.server.dao.impl;
import java.util.List;
import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import org.jboss.perf.test.server.dao.ResultDao;
import org.jboss.perf.test.server.model.Result;
import org.jboss.pe... |
package com.rd.agergia.base;
import java.util.List;
import java.util.Map;
import com.rd.agergia.common.entity.Pager;
import com.rd.agergia.common.entity.PagerParam;
public interface BaseDao<T> {
/**
*插入一条记录
* @param entity
*/
public void save(T obj);
/**
* 根据id查询一条记录
* @param classen... |
/**
* Package containing the components for the sequence panel: A panel allowing
* one of a number of sequences of filters to be applied to the image, and the
* creation of new sequences.
* <div>
* <b>See Also:</b><br/>
* {@link fotoshop.GUI.SequencePanel.FilterSequencePanel}: The JPanel for the
* application ... |
package com.hqb.patshop.mbg.dao;
import com.hqb.patshop.mbg.model.SmsTopic;
import com.hqb.patshop.app.home.dto.TopicAndSecTopic;
import java.util.List;
public interface SmsTopicDao {
int deleteByPrimaryKey(Integer id);
int insert(SmsTopic record);
int insertSelective(SmsTopic record);
SmsTopic s... |
package lando.systems.ld36.ai.states;
import com.badlogic.gdx.Gdx;
import lando.systems.ld36.entities.GameObject;
/**
* Created by dsgraham on 8/28/16.
*/
public class ChaseState extends State {
public ChaseState(GameObject owner){
super(owner);
}
@Override
public void update(float dt) {
... |
package com.hawk.mgc.web;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import o... |
package com.shaoye.aop.db;
import org.springframework.util.Assert;
/**
* 数据源选择类
* @author hufan
*/
public class DataSourceSwitcher {
/** 使用 ThreadLocal是为了线程安全 **/
private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();
/** 主库(写库) **/
public static final String MASTER_DATA_SOURCE... |
/*
* Copyright (C) 2020-2023 Hedera Hashgraph, LLC
*
* 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 applicab... |
package org.World;
import org.Graphics.Animation;
import org.Graphics.Graphics;
public class GameObject {
//Object pos
public float x = 0,y=0;
//Size
public float width=0.5f,height=0.5f;
//Rotation
public float rotation=0;
//Animations
public Animation[] animations;
public int cur... |
package com.example.HotelManagment.entity;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
public class UserDto {
private Long userId;
@NotEmpty(message="First name is required")
private String firstname;
@NotEmpty(message="Last name is required")
private String la... |
package plp.orientadaObjetos1.declaracao.procedimento;
import plp.expressions2.memory.VariavelJaDeclaradaException;
import plp.expressions2.memory.VariavelNaoDeclaradaException;
import plp.imperative1.util.Lista;
import plp.orientadaObjetos1.excecao.declaracao.ClasseNaoDeclaradaException;
import plp.orientadaObjetos1.... |
package entity;
/**
* Created by vince on 4/25/15.
*/
public interface Model {
public Integer getId();
public void setId(Integer id);
}
|
package cn.izouxiang.vo;
import java.util.Date;
import cn.izouxiang.domain.Wallet;
import lombok.Data;
@Data
public class TransactionRecordVo {
private String id;
private int changeOfAvailable;
private int changeOfBlock;
private Wallet before;
private Wallet alter;
private String message;
... |
import java.util.*;
import java.sql.*;
import javax.swing.*;
import java.net.*;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
class ServerGui extends JFrame
{
public JTextArea ta;
private JScrollPane sp,spl;
private JPanel p3,p4;
private DefaultListModel dlm;
private JList l;
private... |
package mensaje;
import game.Jugador;
public class MsjPartidaPierdeTurno extends Mensaje {
private static final long serialVersionUID = 1L;
private Jugador jugadorAct;
public MsjPartidaPierdeTurno(Jugador jugAct) {
super();
setJugadorAct(jugAct);
this.clase = this.getClass().getSimpleName();
}
@Override... |
package br.com.smarthouse.controleclimatico.model;
public enum TipoTemperatura {
QUENTE(1), FRIO(2), AGRADAVEL(3);
private TipoTemperatura(final int temperatura) {
this.temperatura = temperatura;
}
private int temperatura;
public int getTemperatura() {
return temperatura;
}
public void setTemperatur... |
/*
* Copyright (c) 2018, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory
* CODE-743439.
* All rights reserved.
* This file is part of CCT. For details, see https://github.com/LLNL/coda-calibration-tool.
*
* Licensed under the Apache License, Version 2.0 (the “Licensee... |
/*
* 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... |
/*
* LumaQQ - Java QQ Client
*
* Copyright (C) 2004 luma <stubma@163.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any lat... |
package CollectionsDemo;
import java.util.ArrayList;
/**
* Class 'ArrayList' extends class 'AbstractList' and implements interface
* 'List', is used for dynamic massive.
*
* A method 'toArray()' is used to convert 'ArrayList' to massive.
*
* @author Bohdan Skrypnyk
*/
public class ArrayListToArray {
publi... |
package com.bluejnr.wiretransfer.pattern.state;
import com.bluejnr.wiretransfer.model.domain.WireTransferVO;
public abstract class WireTransferState {
protected WireTransferVO wireTransferVO;
public WireTransferState(WireTransferVO wireTransferVO) {
this.wireTransferVO = wireTransferVO;
}
public abstract vo... |
package com.app.cprogramingapp.Utils;
import android.content.Context;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
public class Utils {
public static final String BASE_URL="https://raw.githubusercontent.com/madhukar3646/myplaystoreappslisting/master/";
public ... |
/**
*
*/
package com.eigen.constant;
public enum DataProvider {
YAHOO (1),
EIKON_DESKTOP (2);
private final int id;
private DataProvider(int nId) {
id = nId;
}
public int getId() {
return id;
}
public static DataProvider fromId(int nId) {
DataProvider dp = null;
for (DataProvider p ... |
package com.withertech.overtokapi.resource;
import com.withertech.overtokapi.model.OvertokModel;
import com.withertech.overtokapi.object.follower;
import org.python.util.PythonInterpreter;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.... |
package accessories.strings;
import accessories.Accessory;
public class Pickup extends Accessory {
public Pickup(String partName, String brand, String partFor, String type, double buyingPrice, double sellingPrice) {
super(partName, brand, partFor, type, buyingPrice, sellingPrice);
}
}
|
package com.simple.social.app;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder... |
import java.util.Scanner;
public class caseexample {
public static void main(String[] args) {
// Scanner input = new Scanner(System.in);
// System.out.println("Enter text: ");
// String x = input.nextLine();
//
// switch (x) {
// case "start":
// System.out.println("Machine Started");
// break;
// case ... |
package com.legalzoom.api.test.client.service.factory;
/**
*
hmaheshwari
Aug 16, 2015
10:17:18 PM
*/
import com.legalzoom.api.test.client.LZClient;
import com.legalzoom.api.test.client.service.AbstractBaseServiceClient.Service;
import com.legalzoom.api.test.client.service.CoreOrdersServiceClient;
import com.legalzoo... |
package com.mcr.mcr_galeri;
import android.app.AlertDialog;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.BitmapFactory;
im... |
package com.yixin.kepler.dto.webank;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;
import java.util.List;
/**
* 微众一审请求入参
* Package : com.yixin.kepler.dto.webank
*
* @author YixinCapital -- wangwenlong
* 2018年7月9日 上午11:43:33
... |
package test;
import java.util.Scanner;
public class Pizza {
int choice,Size,Flavour,Quantity,a=500,price;
public void options() {
System.out.println("1.Pizza\n2.French Freis");
System.out.println("Enter Choice");
Scanner S=new Scanner (System.in);
choice=S.nextInt();
switch (choice)
{
case 1:
System... |
/*
* Copyright (C) 2015 Miquel Sas
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is dis... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package client.ui;
import client.GamerClient;
import java.util.ArrayList;
import java.util.Timer;
import java.util.TimerTask;
import java.util.Vector;
/**
*
* @author Olga
*/
public class WaitForPlayersView extends... |
package com.xindq.yilan.activity.screen;
import com.xindq.yilan.domain.Item;
import com.xindq.yilan.view.config.Config;
import com.xindq.yilan.view.shape.Shape;
import java.util.List;
import java.util.Map;
public interface ScreenCallback {
void onDecode(List<Shape> shapes, List<Config> configs);
void onRece... |
package one.kii.summer.beans.utils;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.util.*;
/**
* Created by WangYanJiong on 02/04/2017.
*/
@SuppressWarnings("unchecked")
public class SingleV... |
package health.linegym.com.linegym;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.webkit.CookieManager;
import android.webkit.CookieSyncManager;
import android.webkit.HttpAuthHandler;
import android.webkit.WebSettings;
import android.webkit.WebView;
impor... |
package com.bingo.code.example.design.templatemethod.rewrite;
/**
* ��ͨ�û���¼���Ƶ�������
*/
public class NormalLogin extends LoginTemplate{
public LoginModel findLoginUser(String loginId) {
// ����ʡ�Ծ���Ĵ�������ʾ�⣬����һ����Ĭ�����ݵĶ���
LoginModel lm = new LoginModel();
lm.setLoginId(loginId);
lm.setPwd("tes... |
public class Test33 {
public static void main(String[] args) {
// vérifie que les asserts sont activés
if (!Test33.class.desiredAssertionStatus()) {
System.err.println("Vous devez activer l'option -ea de la JVM");
System.err.println("(Run As -> Run configurations -> Arguments -> VM Arguments)");
System... |
package com.jidouauto.mvvm.ui.widget;
import android.content.Context;
import android.graphics.*;
import android.util.AttributeSet;
/**
* @author leosun.
* @date 2018/8/12.
*/
public class WaveView extends BaseSurfaceView {
/**
* 逐帧变化的 图片资源,记得压缩
*/
int[] mResArray = new int[]{
};
priva... |
package _5oneToOneMapperReturnType.mapper;
import _5oneToOneMapperReturnType.po.OrderCustom;
import java.util.List;
/**
* Created by acey on 17-3-23.
*/
public interface OrderCustomMapper {
List<OrderCustom> findOrdersUser();
}
|
package com.tencent.tencentmap.mapsdk.a;
import android.view.View;
public class nk {
private oi a = null;
public nk(oi oiVar) {
this.a = oiVar;
}
public void a() {
if (this.a != null) {
this.a = null;
}
}
public View b() {
if (this.a == null) {
... |
package net.packet;
import java.nio.ByteOrder;
import java.nio.charset.Charset;
import java.util.Arrays;
import lombok.Getter;
import net.ClientOpCode;
import net.OpCode;
import net.ServerOpCode;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
public class MaplePacket {
@Getter
private short type... |
import java.lang.reflect.Array;
import java.util.ArrayList;
public class BackFromTheBrinkSquare extends Square{
private final int REQUIRED_MATERIALS;
public BackFromTheBrinkSquare(String name, int pos, int requiredMaterials) {
super(name, pos);
this.REQUIRED_MATERIALS = requiredMaterials;
}
public int getR... |
/**
* 문제: https://programmers.co.kr/learn/courses/10302/lessons/62948
* 접근 과정:
* 1. 모든 숫자의 조합을 만든 후 그 중 가장 큰 숫자 반환 => 숫자가 길어지면 표현 범위를 넘을 수 있다.
* => 반환 형태가 문자열이네 -> 숫자를 문자열로 연결 짓기
* 2. 큰 숫자 순으로 정렬했다고 큰 수가 되진 않네 (ex) 6,10,2 -> 1062 < 6210) => 숫자가 아닌 문자 정렬(내림차순) 후에 조합을 해보자.
* => 주의! s1, s2 비교가 아닌 s1+s2, s... |
package cl.cvaldex.scrobbler.parser;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
//import org.lastpod.TrackItem;
import de.umass.lastfm.scrobble.ScrobbleData;
public class CSVParser {
public... |
package org.iptc.extra.core.eql.tree.nodes;
/**
*
* @author manos schinas
*
* Part of search clauses:
*
* Index Relation SearchTerm
* | | |
* title any "term1 term2"
*
*/
public class Index extends Node {
private String name;
public Index(String name) {
super();
this.name = name;
}
... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
package com.telia.aws.cloudwatchtoremotebucket;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.model.PutObjectRequest;
import com.amazonaws.util.IOUtils;
import org.junit.Test;
import org.junit.runner.RunWith... |
package com.hj.wakeuplight.login.presenter;
import android.text.TextUtils;
import android.util.Log;
import com.hj.wakeuplight.base.net.Net;
import com.hj.wakeuplight.login.contact.LoginContact;
import com.hjtech.base.base.BasePresenterImpl;
import com.hjtech.base.retroft.RetroftUtils;
import com.hjtech.base.utils.RxS... |
package pt.up.fe.socialcrowd.logic;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import pt.up.fe.socialcrowd.API.RequestException;
public class DetailedEvent extends BaseEvent {
... |
package actividad_1;
public class Moneda {
/**
* Actividad 1. Clase Cambio Moneda
Realiza una clase Moneda cuyo objetivo es utilizar sus métodos para convertir Euros a Dólares y viceversa.
La clase debe tener:
Un constructor Moneda(), que por defecto establezca el cambio en 1,09 (1€ son 1.09$)
Un... |
package controller;
import http.Request;
import http.RequestMethod;
import http.Response;
import model.User;
import service.UserService;
import util.UserUtils;
/**
* IDE : IntelliJ IDEA
* Created by minho on 2018. 9. 30..
*/
public class JoinController implements Controller {
private UserService userService =... |
package com.findbank.c15.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.JdbcT... |
package sample;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.geometry.Insets;
import javafx.scene.control.*;
import javafx.scene.control.cell.PropertyValueFactory;
import java... |
package com.jegsoftware.payperiodbudgeting.logic;
import android.view.View;
import com.jegsoftware.payperiodbudgeting.data.BudgetItem;
import com.jegsoftware.payperiodbudgeting.data.IBudgetItemListData;
import com.jegsoftware.payperiodbudgeting.data.ItemType;
import com.jegsoftware.payperiodbudgeting.view.IListView;
... |
import org.junit.Test;
import static org.junit.Assert.*;
public class StationeryTest {
@Test(expected = NullPointerException.class)
public void createStationeryNull1() {
Stationery stationery = Stationery.createStationery(null, 10.5);
}
@Test(expected = NullPointerException.class)
public... |
package com.packers.movers.commons.config.utils;
import com.packers.movers.commons.utils.Sequence;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.constretto.model.Resource;
import java.util.HashMap;
import java.util.Map;
public class ConfigurationUtils {
private static final Logger LOG = Log... |
package com.todoapp.repository;
import com.todoapp.entity.Invitationstatus;
import com.todoapp.entity.Priority;
import java.util.List;
public interface InvitationstatusRepository {
List<Invitationstatus> findBydescription(String description);
Invitationstatus save(Invitationstatus var1);
Invitationstatus... |
package com.example.kira03.mouse3;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import java.io.DataOutputStream;
import java.io.IOException;
i... |
package com.mahendra.library.services;
import java.util.List;
import com.mahendra.library.models.Book;
public interface BookService {
Book create(Book b);
Book findById(Integer id);
List<Book> findByAuthor(String author);
List<Book> findByCategory(String category);
List<Book> findByTitle(String title);
List<... |
package zhku.mvc.annotation;
import java.lang.annotation.*;
/**
* Created by ipc on 2017/8/26.
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Autowired {
String value() default "";
}
|
package org.alienideology.jcord.internal.object.client.relation;
import org.alienideology.jcord.handle.client.relation.IIncomingFriendRequest;
import org.alienideology.jcord.internal.object.client.ClientObject;
/**
* @author AlienIdeology
*/
public class IncomingFriendRequest extends ClientObject implements IIncomi... |
package com.tencent.mm.plugin.exdevice.ui;
public interface c {
void aIa();
void aIb();
}
|
package com.shawn.nichol.bakingapp.Fragments;
import android.arch.lifecycle.ViewModelProviders;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.... |
package com.tencent.mm.plugin.collect.b;
public final class a {
public String desc;
public int fee;
public String hTH;
public String hTI;
public long timestamp;
}
|
package com.jlxy.bllld.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.HttpServletBe... |
//정수를 입력받아 짝수의 합과 홀수의 합
import java.util.*;
class while1_Test {
public static void main(String ar[]){
Scanner sc = new Scanner(System.in);
System.out.println("정수 n 입력 : ");
int n = sc.nextInt();
int i = 0;
int sum1 = 0;
int sum2 = 0;
while(i<=n){
if(i%2==0){
sum1 = sum1 + i;
}
else{
... |
package com.company.Entities;
/**
* Created by semen on 07.10.2015.
*/
public abstract class Device {
private int number;
private boolean status = false;
public abstract String getName();
public String toString(){
return getName();
}
public Device(int number, boolean status) {
... |
package real;
import org.junit.Test;
import org.openqa.selenium.By;
import util.BaseTest;
public class TestGmail1 extends BaseTest{
@Test
public void testGmailSuccees() throws InterruptedException{
driver.get("http://gmail.com");
driver.findElement(
By.xpath("//input[@aria-label='Email or phone']"))
... |
package com.baldurtech;
import java.util.List;
import java.util.ArrayList;
import java.sql.SQLException;
import java.sql.ResultSet;
public class ContactService
{
public List<Contact> getAllContacts()
{
return findAllContactsBySql("select * from contact");
}
public List<Contact> findAllContactsBySql(String sql)
... |
/*
* 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.secretary;
import dao.PatientFolderDao;
import dao.RoleDao;
import extrapackages.AgeCalculator;
import java.sql.SQLExcept... |
/*
* Copyright 2005-2010 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
package files;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.uti... |
package com.tencent.mm.splash;
import android.app.Activity;
public interface c {
void a(Throwable th, String str);
void b(String str, String str2, Object... objArr);
void e(Activity activity);
}
|
package rent.common.repository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import rent.common.entity.ServiceTypeEntity;
import rent.common.projection.ServiceT... |
package br.unifor.realmtest;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import io.realm.Realm;
public class MainActivity extends AppCompa... |
package com.tencent.mm.plugin.appbrand.jsapi.live;
import com.tencent.mm.plugin.appbrand.jsapi.live.AppBrandLivePlayerView.a;
import com.tencent.mm.plugin.appbrand.page.p;
import com.tencent.mm.plugin.appbrand.page.y;
class b$5 implements a {
final /* synthetic */ p fJO;
final /* synthetic */ int fKG;
fin... |
/**********************************************************************************************************
* Author: <<author name redacted >>
* Purpose: To create a Java class TableSorter which has a instance method named sortable that
* sorts a Table by row and column in ascending order.
* It a... |
package com.github.w4o.sa.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* @author frank
* @date 2019-05-14
*/
@Data
@AllArgsConstructor
public class LoginResult {
private String token;
}
|
package com.example.jinliyu.shoppingapp_1.activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.V... |
package com.cmsz.demon.index.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import... |
package com.example.tiamo.gym;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.bumptech.glid... |
package BikeRental;
import javax.persistence.*;
import org.springframework.beans.BeanUtils;
import java.util.List;
@Entity
@Table(name="Helm_table")
public class Helm {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long id;
private String status;
@PostPersist
public void onPostPe... |
package couch;
//ToDO: Code an dosex@zedat.fu-berlin.de
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.HashMap;
import com.mongodb.BasicDBList;
import com.mongodb.BasicDBObject;
import com.mongod... |
package com.test01;
import java.awt.*;
@SuppressWarnings("serial")
public class MTest03 extends Frame {
Panel p1, p2, p3;
Label lbName, lbAddr, lbPhone;
TextField txtName, txtAddr, txtPhone, txtProfile;
Button btok, btcn;
TextArea taview;
public MTest03() { // 생성자
super("주소록");
p1 = new Pa... |
package com.projection.jpa.repositories;
import com.projection.jpa.entities.Author;
import com.projection.jpa.entities.Author_;
import com.projection.jpa.entities.Book;
import com.projection.jpa.entities.Book_;
import com.projection.jpa.entities.dto.BookWithAuthorNames;
import org.springframework.stereotype.Repository... |
package com.test.xiaojian.simple_reader.ui.adapter;
import android.content.Context;
import com.test.xiaojian.simple_reader.model.bean.BookHelpsBean;
import com.test.xiaojian.simple_reader.ui.adapter.view.DiscHelpsHolder;
import com.test.xiaojian.simple_reader.ui.base.adapter.IViewHolder;
import com.test.xiaojian.simp... |
package com.cardinalblue.library.gifencoder;
import android.graphics.Bitmap;
import java.io.File;
/**
* Created by prada on 15/2/12.
*/
public class Giffle {
static {
System.loadLibrary("gifflen");
}
/**
* Init the gif file
* @param gifName name
* @param w width
* @param h ... |
package pt.client.management.repository;
import pt.client.management.domain.Customer;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface CustomerRepository extends CrudRepository<Customer,Long>{
void dele... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.