text stringlengths 10 2.72M |
|---|
package couch;
public class MLUser {
public enum Age {
under18,
y18to24,
y25to34,
y35to44,
y45to49,
y50to55,
over55
}
public enum Occupation {
Other,
Academic_Educator,
Artist,
Clerical_Admin,
College_GradStudent,
CustomerService,
Doctor_HealthCare,
Executive_Managerial,
... |
package datetime;
import java.time.LocalDate;
import java.time.Period;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;
public class DateExamples {
public static void main(String[] args) {
LocalDate today = LocalDate.of(2018, 10, 8);
System.out.println(today);
LocalDate t... |
/**
*
*/
package com.gzone.ecommerce.service;
import com.gzone.ecommerce.exceptions.DataException;
import com.gzone.ecommerce.exceptions.ServiceException;
import com.gzone.ecommerce.model.Tarjeta;
/**
* @author hector.ledo.doval
*
*/
public interface BankService {
public boolean checkCard(Tarj... |
package br.jonas.veiculox.brand.web;
import br.jonas.veiculox.brand.domain.Brand;
import br.jonas.veiculox.brand.service.BrandService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.net.URI;
import static java.lang.... |
package com.bw.movie.mvp.model;
import com.bw.movie.mvp.model.bean.ByCinemaBean;
import com.bw.movie.mvp.model.bean.CinemaInfoBean;
import com.bw.movie.mvp.model.bean.CommentBean;
import com.bw.movie.mvp.model.bean.FindCinemesBean;
import com.bw.movie.mvp.model.bean.ScheduleBean;
import com.bw.movie.mvp.model.utils.Ht... |
package com.tencent.mm.plugin.sns.model;
import com.tencent.mm.g.a.pr;
import com.tencent.mm.sdk.b.b;
import com.tencent.mm.sdk.b.c;
class af$26 extends c<pr> {
final /* synthetic */ af nqT;
af$26(af afVar) {
this.nqT = afVar;
this.sFo = pr.class.getName().hashCode();
}
public final ... |
package com.ibeiliao.trade.api.provider;
import java.util.Date;
import com.ibeiliao.pay.api.GetListResponse;
import com.ibeiliao.trade.api.dto.StateOrderVO;
/**
* 获取用于对账的订单信息服务
*
* @author zhouhaocheng Aug 15, 2016
*/
public interface StateOrderProvider {
/**
* 根据指定时间获取已完成的订单信息列表
*
* @param q... |
/*
* [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 com.speakin.recorder.module.control.socket.data;
/**
* @author keshuangjie
* @date 2014-12-1 下午7:44:51
* @package com.jimmy.im.server.data
* @version 1.0
* 实体类
*/
public class MsgEntity {
public static final int TYPE_TEXT = 1;
public static final int TYPE_VOICE = 2;
/** 用户名 */
publ... |
package edu.nju.data.daoImpl;
import edu.nju.data.dao.*;
import edu.nju.data.dao.http.Tss_httpDAO;
import edu.nju.data.dao.http.Wiki_httpDAO;
import edu.nju.data.entity.Question;
import edu.nju.data.entity.api.Document;
import edu.nju.data.entity.api.WikiItem;
import edu.nju.data.util.CommonParas;
import edu.nju.data.... |
package petko.osm.model.impl.simple;
import java.util.Date;
import java.util.List;
import petko.osm.model.facade.OSMObjectType;
import petko.osm.model.facade.OsmNode;
import petko.osm.model.facade.OsmTag;
public class OsmNodeImpl extends OsmObjectImpl implements OsmNode {
private Double lat;
private Double lon;
... |
package com.gerray.fmsystem.Transactions;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.gerray.fmsystem.R;
public class TransactionViewModel extends RecyclerView.ViewHolder {
public TextView payee, trans... |
package com.github.jrubygradle.jem;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
*/
public class Version {
@JsonProperty
public String version;
}
|
package chessgame.userinterface;
import chessgame.board.Board;
import java.awt.Color;
import java.awt.GridLayout;
import java.util.ArrayList;
import java.util.HashMap;
import javax.swing.JPanel;
/**
* This class is a component of the graphical interface. It contains 8x8
* squares. Methods are used to access individ... |
package la.opi.verificacionciudadana.database;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import java.sql.SQLDataException;
import java.sql.SQLException;
import java.util.ArrayList;
import la.opi.verificacionciu... |
package com.tencent.pb.common.b.a;
import com.google.a.a.b;
import com.google.a.a.e;
import com.google.a.a.g;
import com.tencent.pb.common.b.a.a.av;
public final class a$bb extends e {
public String groupId;
public int oLB;
public long oLC;
public int vcN;
public av[] vea;
public int vfY;
... |
package com.eason.lottert.controller;
import com.alibaba.fastjson.JSONArray;
import com.eason.lottert.bean.Cart;
import com.eason.lottert.bean.CartItem;
import com.eason.lottert.utils.BallUtils;
import com.eason.lottert.utils.CartUtils;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Mo... |
package com.tencent.mm.plugin.sns.ui.previewimageview;
interface DynamicGridView$j {
void dJ(int i, int i2);
}
|
package com.project.mcl.comfort_prediction_things_client;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import com.project.mcl.comfort_prediction_things_client.Connector.HttpConnector;
import com.project.mcl.comfort_prediction_things_client.Sensor.BME280Sensor;
public class MainAct... |
//Class unmodified (except for whitespace) as provided by DMB
public class PTNode {
private String elem;
private PTNode [ ] child = new PTNode [26];
public String getElem(){
return elem;
}
public void setElem(String w){
elem = w;
}
public PTNode getChild(char ch){
return child[ch - 'a'];
... |
package com.example.administrator.app;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import android.widget.Toast;
import com.example.administrator.api.exception.AppException;
import com.example.administrator.core.AppAction;
/**
* Created by Ad... |
package com.jeju.trip.service;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.contex... |
package tech.hobbs.mallparkingmanagementsystem.service;
import lombok.val;
import org.springframework.stereotype.Service;
import tech.hobbs.mallparkingmanagementsystem.entities.Section;
import tech.hobbs.mallparkingmanagementsystem.repository.SectionRepository;
import tech.hobbs.mallparkingmanagementsystem.service.dto... |
package com.mundo.data.support;
import org.junit.Assert;
import org.junit.Test;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
impor... |
package com.example.copa_america.entidadesBD;
import android.arch.persistence.room.Room;
import android.content.Context;
public class CopaAmericaDatabaseAccesor {
private static CopaAmericaDatabase copaAmericaDatabaseInstance;
//Constant about the name assigned to SQLite database
private static final Stri... |
package com.edgedx.covid.model;
import java.util.stream.Stream;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
@Converter(autoApply = true)
public class NationalityConverter implements AttributeConverter<Nationality, String> {
@Override
public String convertToDatabaseColumn(Nati... |
package com.libedi.demo.service;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframewor... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.imagepicker;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import and... |
package com.tencent.mm.plugin.appbrand.widget.picker;
import android.view.View;
import android.view.View.OnClickListener;
class d$4 implements OnClickListener {
final /* synthetic */ d gNm;
d$4(d dVar) {
this.gNm = dVar;
}
public final void onClick(View view) {
}
}
|
package uns.ac.rs.hostplatserver.util;
import lombok.experimental.UtilityClass;
import org.apache.commons.codec.digest.DigestUtils;
import uns.ac.rs.hostplatserver.constant.Md5Salt;
@UtilityClass
public class Md5Generator {
public static String generateHash(String value, Md5Salt salt) {
return DigestUtil... |
package android.support.v7.widget;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff.Mode;
final class an {
public ColorStateList Ws;
public boolean Wt;
public boolean Wu;
public Mode kJ;
an() {
}
}
|
package com.tencent.mm.plugin.wallet.balance.a.a;
import com.tencent.mm.kernel.g;
import com.tencent.mm.storage.aa;
import com.tencent.mm.vending.app.a;
public class j extends a {
static /* synthetic */ void bMP() {
g.Ek();
g.Ei().DT().a(aa.a.sYw, Integer.valueOf(-1));
g.Ek();
g.Ei... |
package edu.action.evaluation;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.db.dao.evaluation.LoginDao;
import edu.servlet.ActionIF;
import edu.servlet.HttpRequestUtil;
public class UpdatePasswordAction implements ActionIF {
public String process(final Ht... |
package com.creativewidgetworks.goldparser.simple3;
import java.math.BigDecimal;
import org.junit.Test;
import com.creativewidgetworks.goldparser.engine.ParserException;
import com.creativewidgetworks.goldparser.engine.Reduction;
import com.creativewidgetworks.goldparser.engine.Token;
import com.creativewidgetworks.... |
package com.vilio.plms.quartz;
import com.vilio.plms.exception.ErrorException;
import com.vilio.plms.glob.ReturnCode;
import com.vilio.plms.service.base.CommonService;
import com.vilio.plms.service.quartz.BmsSynchronizeService;
import com.vilio.plms.service.quartz.OverdueService;
import com.vilio.plms.util.SpringConte... |
package laba1;
public class DemoBall {
public static void main(String[] args) {
Ball b1 = new Ball (4.35, "red");
Ball b2 = new Ball (8.98,"black");
Ball b3 = new Ball (14.66, "white");
System.out.println(b1);
System.out.println(b2);
System.out.println(b3);
... |
package keyword;
public class Action {
String keyword ;
String description;
String locatorType ;
String locatorValue ;
String testdata ;
String assertionType ;
String expectedValue ;
public Action(String keyword, String description,String locatorType, String objectName, String testdata, String assertionT... |
package com.lbconsulting.alist_02.adapters;
import android.content.Context;
import android.content.res.Resources;
import android.database.Cursor;
import android.graphics.Typeface;
import android.support.v4.widget.CursorAdapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup... |
package com.tencent.mm.plugin.webview.fts;
import android.os.Bundle;
import android.view.View;
import android.widget.AbsoluteLayout;
import com.tencent.mm.ipcinvoker.f;
import com.tencent.mm.plugin.webview.fts.b.a;
import com.tencent.mm.sdk.platformtools.ah;
import com.tencent.mm.sdk.platformtools.x;
import com.tencen... |
package com.jiaxy.cache;
import com.jiaxy.cache.event.CacheEventPublisher;
import java.util.Collection;
/**
* @author: wutao
* @version: $Id:ICacheFactory.java 2014/01/09 18:20 $
*
*/
public interface ICacheFactory extends CacheEventPublisher {
Cache getCache(String name);
Collection<String> getCacheNa... |
package com.tencent.mm.plugin.fts.b;
import android.database.Cursor;
import com.tencent.mm.plugin.fts.a.a.g;
import com.tencent.mm.plugin.fts.a.a.h;
import com.tencent.mm.plugin.fts.a.a.i;
import com.tencent.mm.plugin.fts.a.a.j;
import com.tencent.mm.plugin.fts.a.a.l;
import com.tencent.mm.plugin.fts.a.a.m;
import com... |
package org.slevin.util;
public class ConstantsUtil {
final public static String ilceBasedQuery = "https://api.sahibinden.com/sahibinden-ral/rest/classifieds/search?category=__category__&address_town=__ilceId__&sorting=__sorting__&a1966=__tapuDurumu__&language=tr&pagingOffset=__parameterPaging__&pagingSize=__parameter... |
package com.tencent.mm.ui.chatting.b;
import com.tencent.mm.ui.chatting.b.b.o;
class w$1 implements Runnable {
final /* synthetic */ w tQO;
w$1(w wVar) {
this.tQO = wVar;
}
public final void run() {
if (this.tQO.bAG != null) {
((o) this.tQO.bAG.O(o.class)).cvs();
... |
package com.guli.acl.controller;
import com.guli.acl.service.PermissionService;
import com.guli.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Re... |
package com.myblog.version3.mapper;
import com.myblog.version3.entity.Message;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import ja... |
package api.longpoll.bots.adapters.deserializers;
import api.longpoll.bots.methods.impl.groups.IsMember;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import com.google.gson.reflect.TypeToken;
... |
package io.naztech.LambdaAndSlf4J;
import io.naztech.Services.Person;
import lombok.extern.slf4j.Slf4j;
/**
* Hello world!
*
*/
@Slf4j
public class App
{
public static void main( String[] args )
{
Person p=new Person("Minhaz Uddin",23);
System.out.println(p.getName());
... |
package com.ua.auth.domain.ejb;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
@Entity
public class Admin {
@Id
private long id;
@OneToOne
private Credentials credentials;
}
|
package com.example.akoel.mediaplayer;
import android.app.Activity;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widg... |
package controlador;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import modelo.dto.EmpleadoDTO;
import modelo.dao.EmpleadoDAO;
public class Validar extends HttpSe... |
package junit;
import static org.junit.Assert.*;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import org.junit.Test;
import server.dao.DAO;
import server.dao.UserDAO;
public class Test_UserDAO extends DAO{
private UserDAO dao = new UserDAO();
@Te... |
package ADD;
public class NodeTerminal extends Node
{
private double value;
public NodeTerminal()
{
childs = new Node[NUMBER_CHILDS];
value = 0;
//min = Integer.MAX_VALUE;
//max = 0;
}
public NodeTerminal(double value)
{
childs = new Node[NUMBER_CHILDS];
this.value = value;
//min = Integer.MAX_... |
package com.service.mainProxy.impl;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.dao.mainProxy.MainProxyDao;
import com.dictionary... |
package com.deivy70_gmail.portfolioapp.app;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class MainActivity extends ActionBarAct... |
package net.optifine.entity.model;
import net.minecraft.client.Minecraft;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.model.ModelSpider;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.entity.R... |
package com.rc.portal.service;
import java.sql.SQLException;
import java.util.List;
import com.rc.portal.vo.TMemberReceiverLatLon;
import com.rc.portal.vo.TMemberReceiverLatLonExample;
public interface TMemberReceiverLatLonManager {
int countByExample(TMemberReceiverLatLonExample example) throws SQLException;
... |
/*
* file name:cipher(advanced)
* program encrypts words according to key
*/
import acm.program.*;
public class Cipher extends ConsoleProgram{
public void run(){
println("This program encryts text according to letter word cipher");
String key=readKey();
String plaintext=readLine... |
// Sun Certified Java Programmer
// Chapter 10; P811_2
// Development
import static java.lang.System.*;
class _ {
static public void main(String... __A_V_) {
String $ = "";
for (int x = 0; ++x < __A_V_.length; )
$ += __A_V_[x];
out.println($);
}
}
|
package logica;
public class Jugador {
String name;
int puntos;
public Jugador(String name) {
if (name.equals(""))
this.name = " -----";
else
this.name = name;
this.puntos = 0;
}
public void arcaicoKilled() {
puntos += 10;
}
public void cazadorKilled() {
puntos += 20;
}
public void ca... |
package com.spizzyrichlife.ussrpg_v01.Activities;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import com.spizzyrichlife.ussrpg_v01.DiceRoller;
import com.spizzyrichlife.ussrpg_v01.R;
import java.util.ArrayList;
import java.... |
package org.xwalk.core.extension;
import org.xwalk.core.extension.ReflectionHelper.MemberType;
/* synthetic */ class JsStubGenerator$1 {
static final /* synthetic */ int[] $SwitchMap$org$xwalk$core$extension$ReflectionHelper$MemberType = new int[MemberType.values().length];
static {
try {
... |
package com.hk.xia.web.sample.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @author wang.yubin
* @date 2019/8/5
* @description
*/
@Controller
@RequestMapping("/demo")
public class DemoController {
@RequestMapping("/sout")
... |
package ai;
import map.Tile;
import entity.Creature;
import entity.Entity;
import entity.EntityManager;
import entity.Food;
import entity.Item;
import game.Molybdenum;
public class Simple extends AI {
public Node node;
Creature c;
int wait;
int waitMax;
int stuckCount;
boolean isDetermin... |
package com.example.petrosadaman.codenotes.Web;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import com.example.petrosadaman.codenotes.DBManager.DBManager;
import com.example.petrosadaman.codenotes.Models.Message.MessageModel;
import com.example.petrosadaman.codenotes.Models.Note.Note... |
/*
* 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... |
import java.util.Random;
public class PasswordRandomizer {
// Define the variables
private Random randomizer;
private int lenght;
public PasswordRandomizer(int length) {
// Initialize the variable
this.randomizer = new Random();
this.lenght = length;
}
public Stri... |
package it.polimi.ingsw.GC_21.ACTION;
import java.util.ArrayList;
import it.polimi.ingsw.GC_21.GAMECOMPONENTS.LeaderCard;
import it.polimi.ingsw.GC_21.GAMECOMPONENTS.OncePerTurnLeaderCard;
import it.polimi.ingsw.GC_21.GAMEMANAGEMENT.Game;
import it.polimi.ingsw.GC_21.PLAYER.Player;
public class LeaderAction extend... |
import java.util.Iterator;
//for creating an iterator interface
public interface CreateIterator<I>{
public abstract Iterator<I> createIterator();
}
|
package com.tencent.mm.g.a;
import com.tencent.mm.sdk.b.b;
public final class bq extends b {
public a bJb;
public bq() {
this((byte) 0);
}
private bq(byte b) {
this.bJb = new a();
this.sFm = false;
this.bJX = null;
}
}
|
package com.tencent.mm.modelmulti;
import com.tencent.mm.g.c.cm;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.messenger.foundation.a.a.f;
import com.tencent.mm.plugin.messenger.foundation.a.a.f.a;
import com.tencent.mm.plugin.messenger.foundation.a.a.f.c;
import com.tencent.mm.plugin.messenger.foundati... |
package com.wsr.config;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configur... |
/*
* 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 loc.controllers;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.... |
/*
* Copyright (c) 2014 Anthony Benavente
*
* 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 agr... |
package am.itspace.newfeaturesinjava8.service.lambda;
import am.itspace.newfeaturesinjava8.model.User;
import org.springframework.stereotype.Service;
import java.util.Comparator;
import java.util.List;
import static am.itspace.newfeaturesinjava8.util.UsersUtil.users;
@Service
public class Java7Sort {
public vo... |
/*
* Minesweeper Project
* by Group3 : Arnaud BABOL, Guillaume SIMMONEAU
*/
package Controler.Listeners;
import Controler.Minesweeper;
import Controler.Rules;
import Model.Game.AbstractState;
import Model.Game.Flag;
import View.Events.CellEvent;
import View.Events.ViewEvent;
import java.awt.event.MouseEvent;
/**
... |
package com.example.guanghuili.checkesandchess.Chess;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class Knight extends Piece implements Serializable {
public Knight(Boolean isBlack, int row, int column) {
super(isBlack, row, column, "Knight");
}
@Overrid... |
package com.tfjybj.integral.provider.service;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.tfjybj.integral.entity.MessageEntity;
import com.tfjybj.integral.model.MessageModel;
import com.tfjybj.integral.model.MessagePar... |
package com.uvaysss.queuemanager.di.module;
import com.uvaysss.queuemanager.BuildConfig;
import com.uvaysss.queuemanager.data.network.ApiService;
import java.util.concurrent.TimeUnit;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import okhttp3.OkHttpClient;
import okhttp3.logging.Htt... |
package application.minor;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
public class swipeadapter extends FragmentStatePagerAdapter {
public swipeadapter(FragmentManager fm)
{
s... |
package com.rbkmoney.adapter.atol.configuration;
import com.rbkmoney.adapter.atol.processor.ErrorProcessor;
import com.rbkmoney.adapter.atol.processor.SuccessProcessor;
import com.rbkmoney.adapter.atol.service.atol.model.response.CommonResponse;
import com.rbkmoney.adapter.cashreg.spring.boot.starter.model.EntryStateM... |
package jbyco.io;
import jbyco.lib.Utils;
import java.io.*;
import java.nio.file.Path;
/**
* A representation of the file.
*/
public class CommonFile {
/**
* The existing file.
*/
final File file;
/**
* The relative file. The path may contain extracted folders.
**/
final File ... |
package lesson10.abstractorder;
import java.util.Date;
public class FurnitureOrder extends Order {
private String furnitureCode;
public FurnitureOrder(String itemName, Date dateCreated, String shipFromCity, String shipToCity,
int basePrice, Customer customerOwned, String furnitureC... |
/* 1: */ package com.kaldin.setting.forgotpassword.action;
/* 2: */
/* 3: */ import com.kaldin.common.security.EncryptionManager;
/* 4: */ import com.kaldin.common.util.MailSend;
/* 5: */ import com.kaldin.email.dao.impl.EmailTemplateImplementor;
/* 6: */ import com.kaldin.email.dto.EmailTemplat... |
/*
* 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 Object;
import common.CheckData;
import java.util.Scanner;
/**
*
* @author DUNG NV
*/
public class NhanVien {
privat... |
package com.assignment4.question2;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
public class CheckNumberTest {
@Test
public void UTC2_01() {
String[] input = { "10.29", "12345","12.0.0" };
List<String> expected = new ArrayList<Strin... |
package com.products.domian;
import com.products.domain.UseCaseProducts;
import com.products.domain.dto.Product;
import com.products.domain.filters.FilterByProducts;
import com.products.domain.respository.ProductsRepository;
import com.products.tools.MockProducts;
import org.junit.Assert;
import org.junit.Before;
imp... |
package com.youthchina.dto.community.briefreview;
import com.youthchina.domain.jinhao.BriefReview;
import com.youthchina.dto.RequestDTO;
import com.youthchina.dto.util.RichTextRequestDTO;
public class BriefReviewRequestDTO implements RequestDTO<BriefReview> {
private RichTextRequestDTO body;
private Integer ... |
package com.ld.baselibrary.base;
import com.ld.baselibrary.http.HttpClient;
/**
* Repository:仓库
* @author: liangduo
* @date: 2020/9/14 2:38 PM
* Describe: M层-获取网络数据基类
* 在ViewModel中调用Model层
* Repository只负责数据处理,提供干净的api,方便切换数据来源。
* 各自model中定义repository extends AbsRepository
*/
public abstract class BaseReposito... |
package com.kiyeon.practicespringjpa.chapter5.repository;
import com.kiyeon.practicespringjpa.chapter4.entity.Chap4Team;
import org.springframework.data.jpa.repository.JpaRepository;
// JpaRepository, CrudRepository 를 상속받으면 springJpa 가 구현체 생성
// JpaRepository 상속받으면 @Repository 생략 가능 -> spring 이 직접 구현체를 만듦
public inte... |
package com.example.demo.request;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class Body {
private String source;
private String destination;
}
|
package round.first; /**
* Given a set of distinct integers, return all possible subsets.
* <p>
* Example
* If S = [1,2,3], a solution is:
* <p>
* [
* [3],
* [1],
* [2],
* [1,2,3],
* [1,3],
* [2,3],
* [1,2],
* []
* ]
*/
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public... |
package org.simpleApp.jdbc.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
/**
* Created by Dmitriy on 29.10.2016.
*/
@Entity
@Table(name = "student_group")
@NamedQuery(name = "Student.getAll", query = "select s from student_... |
package saim_only_03_30;
public class BiggestSubMatch {
public static void main (String [] args ){
String word ="aaabbbcccccddddee";
int n =word.length();
int max = 0;
char letter = word.charAt(0);
int count =1;
for(int i= 0; i < n; i++){
if( i < n-1 &&... |
package kh.cocoa.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import kh.cocoa.dto.FilesDTO;
import kh.cocoa.dto.FilesMsgDTO;
@Mapper
public interface FilesDAO {
//파일 업로드
public int uploadFiles(int noBoard_seq,FilesDTO fdto);
//업무일지용 파일 업로드
public int uploadFilesBusinessLog(int logD... |
package com.tencent.mm.plugin.emoji.ui;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.os.Message;
import android.widget.TextView;
import com.tencent.mm.R;
import com.tencent.mm.ab.e;
import com.tencent.mm.model.au;
import com.tencent.mm.plugin.emoji.f.s;
import com.tencent.mm.plugin.emoji... |
package com.yunhe.core.common.exception;
import com.yunhe.core.common.state.ExceptionEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* Demo class
*
* @author 孔邹祥
* @date 2019年1月17日
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class GlobalException extends RuntimeException {
private In... |
/*
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.tingke.admin.service.impl;
import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import com.tingke.admin.config.OssProperties;
import com.tingke.admin.entity.AclUser;
import com.tingke.admin.exection.CastDiyException;
import com.tingke.admin.model.CommonCode;
import com.tingke.admin.model.Que... |
package pseudoinverse;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JComboBox;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import ja... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package bd_avanzada;
import java.awt.Color;
import java.awt.Event;
import java.awt.Panel;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.sql.ResultSet;
import java.sql.SQLException;
import... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.