text stringlengths 10 2.72M |
|---|
package com.lupan.HeadFirstDesignMode.chapter4_factory.factoryMethod.pizza;
/**
* TODO
*
* @author lupan
* @version 2016/3/21 0021
*/
public class Pizza1 extends Pizza {
public Pizza1() {
this.name = "披萨1";
}
}
|
package org.qizuo.cm.modules.system.pojo;
import org.qizuo.cm.modules.base.pojo.BasePoJo;
/**
* @Author: fangl
* @Description: 日志
* @Date: 14:20 2018/10/29
*/
public class LogPoJo extends BasePoJo {
/**
* 日志内容
*/
private String content;
/**
* 日志类型
*/
private String typeCd;
... |
package communication.enums;
import communication.packets.Packet;
import communication.packets.ResponsePacket;
/**
* This enum contains all types of packets as String representation.
* This String is used on the server-side to identify a {@link Packet} before instantiating the corresponding class.
* However, for i... |
/*
* Node represent a node for Stack and Queue
*
* Author: Gilang Kusuma Jati (gilang.k@samsung.com), SRIN.
*
*/
package datastructurefromlib;
public class Node<E extends Comparable<E>>
{
E element;
Node<E> next;
public Node(E element, Node<E> next)
{
this.element = element;
thi... |
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the ... |
package Kamil_zerg.astar;
import java.util.*;
import battlecode.common.MapLocation;
/**
* A path determined by some path finding algorithm. A series of steps from
* the starting location to the target location. This includes a step for the
* initial location.
*
* @author Kevin Glass
*/
public cla... |
package com.flutterwave.raveandroid.rave_presentation.di.francmobilemoney;
import com.flutterwave.raveandroid.rave_presentation.francmobilemoney.FrancMobileMoneyContract;
import javax.inject.Inject;
import dagger.Module;
import dagger.Provides;
@Module
public class FrancophoneModule {
private FrancMobileMoney... |
package net.youzule.spring.chapter02.BeanInherit;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.web.portlet.context.XmlPortletApplicationContext;
/**
* @description:
* @company:
* @author:Sean
* @date:20... |
package LongestCommonPrefix;
/**
* 题目内容 寻找数组公共的前缀字符串
*
* Write a function to find the longest common prefix string amongst an array of strings.
* If there is no common prefix, return an empty string "".
* Example 1:
* Input: ["flower","flow","flight"]
* Output: "fl"
* Example 2:
* Input: ["dog","racecar",... |
package Tienda;
public class Producto {
private double codigo;
private float IVA;
private float precio;
private String nombreProducto;
public Producto() {}
public void setPrecio(float precio) {
this.precio = precio;
}
public float getPrecio() {
... |
package com.malf.service.impl;
import com.malf.mapper.RolePermissionMapper;
import com.malf.mapper.UserRoleMapper;
import com.malf.pojo.*;
import com.malf.service.RolePermissionService;
import com.malf.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.st... |
package com.example.xiaox.goline2.extension.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.widget.TextView;
import java.util.ArrayList;
public class TextCircle extends android.suppor... |
package demo.kanban.contract.moscow.repository;
import demo.kanban.contract.moscow.resource.column.Column;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ColumnRepository extends MongoRepository<Column, String>{
}
|
package se.tobijoh.onkyocontroller.communication.serversearcher;
import java.util.ArrayList;
import java.util.List;
import se.tobijoh.onkyocontroller.communication.Receiver;
public class ReceiverSearcherManager implements ReceiverSearcherListener {
private List<ReceiverSearcherListener> listeners;
private ... |
/*
* 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 Tasks.LessonSix.Converters;
public abstract class BaseConverter {
public double convert() {
return 0;
}
}
|
package com.ttps.gestortareas.dao.impl;
import org.springframework.stereotype.Repository;
import com.ttps.gestortareas.dao.IGenericDAO;
import com.ttps.gestortareas.domain.Board;
@Repository
public class BoardDao extends AbstractDao<Board> implements IGenericDAO<Board> {
public BoardDao() {
super();
this.pers... |
package cn.ehanmy.hospital.mvp.model.entity.order;
import java.util.List;
import cn.ehanmy.hospital.mvp.model.entity.response.BaseResponse;
public class GetBuyInfoResponse extends BaseResponse {
private int nextPageIndex;
private List<GoodsOrderBean> goodsList;
@Override
public String toString() {
... |
package rendering;
import org.lwjgl.opengl.GL11;
import org.lwjgl.util.vector.Vector4f;
import terrains.Terrain;
/**
* A simple renderer that renders terrains.
*
* @author Karl
*
*/
public class TerrainRenderer {
private final TerrainShader shader;
private final boolean hasIndices;
/**
... |
package com.tencent.mm.plugin.appbrand.ui.autofill;
import android.view.MenuItem;
import com.tencent.mm.plugin.appbrand.ui.autofill.b.2;
import com.tencent.mm.protocal.c.ej;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.ui.base.n.d;
class b$2$2 implements d {
final /* synthetic */ 2 gxJ;
b... |
package ctci.chap2;
import ctci.ctciLibrary.*;
public class Partition{
// Assuming doublely linked list (though it would easy to extend to single linked list, just track the previous node)
// This is a little funky since I imagined that we wanted to keep the head the head (this function would be void)
// Clearly ... |
package jp.personal.server.data.message;
import java.util.Date;
import jp.personal.server.data.BaseDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
@Data
public class SaveMessageDto extends BaseDto {
private static final long serialV... |
/*
* 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 org.govt.controller;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import javax.servlet.Servle... |
package pizzaml.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import org.springframework.stereotype.Repository;
import pizzaml.entity.Item;
import pizzaml.entity.ItemSizeCost;
@Repository
public cl... |
package com.supconit.kqfx.web.fxzf.warn.daos;
import hc.base.domains.Pageable;
import hc.orm.BasicDao;
import java.util.List;
import com.supconit.kqfx.web.fxzf.search.entities.Fxzf;
import com.supconit.kqfx.web.fxzf.warn.entities.WarnHistory;
public interface WarnHistoryDao extends BasicDao<WarnHistory, String>{
... |
package marcio.tcc.estacionamento.negocio;
/**
* Representa dados de valores a serem cobrados pelo periodo de estacionamento, bem como os intervalos de tempo envolvidos no calculo
* @author Marcio
*
*/
public class Tarifario {
public static int VALOR_HORA = 1;
public static int VALOR_INCREMENTAL = 1;
public sta... |
package cn.vector.esdemo;
import cn.vector.esdemo.entity.Book;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.aggregations.AggregationBuilders;
import org.elasticsearch.search.aggregations.metrics.ParsedAvg;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test... |
/*
* Copyright 2018 Ameer Antar.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
package com.example.andreasbergman.appadmin2;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import org.w3c.dom.Text;
import java.util.ArrayLi... |
package PracticeTest;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.*;
import io.github.bonigarcia.wdm.WebDriverManager;
public class FirstTestCase_Firefox {
public static WebDriver firefox_driver;
@BeforeMethod
public static void SetupChrome() {
... |
package carlos.talavera.com.project;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import static carlos.talavera.com.project.MainActivity.intentContent;
import static carlos.talavera.com.project.MainActiv... |
package com.wlc.ds.string;
import java.util.Arrays;
import org.junit.Test;
public class KmperTest {
@Test
public void testGetIndexKMP() {
String ss = "aabcbabcaabcaababc";
String tt = "abcaabcabc";
int[] next = new int[tt.length()+1];
Kmper.getNext(tt.toCharArray(), next);
System.out.println(Arrays.t... |
package com.example.shreyansh.layouts;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
publi... |
package com.cazimir.attendancetest.ui.dashboard;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.annotati... |
package test;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.HashMap;
import org.junit.Test;
import edu.uci.ics.sdcl.firefly.Answer;
import edu.uci.ics.sdcl.firefly.report.predictive.AcrossQuestionsConsensus;
import edu.uci.ics.sdcl.firefly.report.predictive.AnswerData;
import edu.uc... |
import java.util.Scanner;
class consorcio {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
float valor_prest, total_pago, saldo_devedor;
int total_prest, qtd_prest_pagas;
System.out.println("Digite o total das prestacoes");
total_prest = sc.next... |
package net.trejj.talk.adapters;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Build;
import android.util.Log;
import android.view.LayoutInflater;
import ... |
package algo_basic.day1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class SWEA_6808_D3_규영이와_인영이의_카드게임 {
private static int cnt;
private static int[] cardK; // 규영이
private static int[] cardI; // 인영이
private static boolean... |
package model;
import com.opencsv.bean.ColumnPositionMappingStrategy;
import com.opencsv.exceptions.CsvRequiredFieldEmptyException;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class CustomMappingStrategy<T> extends ColumnPositionMappingStrategy<T> {
private String[] header;
private stat... |
package com.schneider.tsm.library;
import com.schneider.tsm.maillotus.MailLotus;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.us... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* RRuleGroup generated by hbm2java
*/
public class RRuleGroup implements java.io.Serializable {
private RRuleGroupId id;
public RRuleGroup() {
}
public RRuleGroup(RRuleGroupId id) {
this.id = id;
}
public RRuleGro... |
package com.MQ.www;
public class PrimeNum1To100 {
public static void main(String[] args) {
System.out.println("PrimeNumbers are:");
for(int i=4;i<=100;i++)
{
boolean flag=true;
for(int j=2;j<=i/2;++j)
{
if(i%j==0)
{
flag=false;
break;
}
}
if(flag==true)
... |
package Items;
import java.util.Scanner;
import java.util.Vector;
import java.io.*;
import java.util.Collections;
public class NewItems extends Vector<Item> {
Scanner sc= new Scanner(System.in);
Vector <String> storedCodes= new Vector<String>();
public NewItems() {super();}
public void loadStoredCodes... |
package com.example.demo.dao;
import com.example.demo.pojo.User;
import java.util.List;
/**
* Created by admin on 2017/7/12.
*/
public interface UserDao {
List<User> findAll();
User findbyId(Integer id);
}
|
package com.gligor.hypnosis;
import com.gligor.hypnosis.services.TroupeDescService;
import com.gligor.hypnosis.services.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Service;
@Service
public class Da... |
/**
*
*/
package com.cnk.travelogix.orgstructure.core.interceptors;
import de.hybris.platform.servicelayer.interceptor.InterceptorContext;
import de.hybris.platform.servicelayer.interceptor.InterceptorException;
import de.hybris.platform.servicelayer.interceptor.PrepareInterceptor;
import de.hybris.platform.servicel... |
package com.li.xiaomi.xiaomi_core.app;
/**
* 作者:dell or Xiaomi Li
* 时间: 2018/3/8
* 内容:
* 最后修改:
*/
public enum ConfigType {
SHARED_PREFERENCES,
HOST_API,//网络请求的地址
CONFIGREADY,//是否完成初始化的标志位
APPLICATIO_CONTEXT,//全局上下文
ICON,
INTERCEPTOR,//okhttp的拦截器
DBNAME//数据库名
}
|
import java.util.*;
class SkipList {
private Random random;
private int size;
private int height;
private SkipListEntry head;
private SkipListEntry tail;
public SkipList() {
this.random = new Random();
this.size = 0;
this.height = 0;
this.head = new SkipListEntry(SkipListEntry.negInf, null... |
package com.lingjuli.validatePhone;
/**
* Created by Administrator on 2016/3/3 0003.
*/
//生成手机验证码的工具类
public class validateCode {
//获取四位手机验证码的方法
public static String getValidateCode() {
String v1 = String.valueOf((int) (Math.random() * 10));
String v2 = String.valueOf((int) (Math.random() ... |
package com.pzhu.topicsys.common.mybatis.mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import com.github.pagehelper.Page;
import com.pzhu.topicsys.common.mybatis.entity.Teacher;
public interface TeacherMapper {
int deleteByPrimaryKey(String teacherId);
int i... |
package InterviewTasks_Saim_Numbers;
public class NumberOfBinary {
public static void main(String[] args) {
System.out.println(getCountOfOnes(10));
}
public static int getCountOfOnes(int n) {
String s = "";
boolean result = n > 0;
while (result) {
s = ((n % 2) ... |
package com.open.proxy.aop;
/**
* proxy接口
*
* @author jinming.wu
* @date 2014-4-7
*/
public interface Proxy {
Object getProxy();
}
|
package com.ibiscus.myster.repository.shopper;
import org.springframework.data.repository.CrudRepository;
import com.ibiscus.myster.model.shopper.Shopper;
public interface ShopperRepository extends CrudRepository<Shopper, Long> {
Shopper getByUserId(long userId);
}
|
package com.es.phoneshop.web;
import com.es.phoneshop.model.product.Cart.Cart;
import com.es.phoneshop.model.product.Cart.CartService;
import com.es.phoneshop.model.product.Cart.HttpSessionCartService;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpS... |
package com.project.bookingrest;
import lombok.Data;
@Data
public class BookingStatistic {
private int booking_count;
BookingStatistic(){
}
}
|
import static java.lang.System.out;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.MenuItem;
import java.awt.Panel;
import j... |
package com.SkyBlue.hr.pm.to;
import com.SkyBlue.common.annotation.Dataset;
import com.SkyBlue.common.to.BaseBean;
import lombok.Getter;
import lombok.Setter;
@Dataset(name="dsWorkInfo")
public class WorkInfoBean extends BaseBean {
@Setter
@Getter
private String hireDate,retireDate,employeementTypeCode,retireCaus... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vpl;
import java.util.Map;
/**
*
* @author Przemysław Czuj
*/
class VplExperimentSnapshot {
private Map<String, VplObjectState> objectStates;
private Map<String, VplForce> forces;
... |
import java.awt.Dimension;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class AdminGUI extends Menu{
public void adminGui() {
userTypeFrame = new JFrame("Administrator Menu");
userTypeFrame.setSize(400, 400);
userTypeFrame.setLocation(200, ... |
package ca.mohawk.jdw.shifty.server.database.activity;
/*
I, Josh Maione, 000320309 certify that this material is my original work.
No other person's work has been used without due acknowledgement.
I have not made my work available to anyone else.
Module: server
Developed By: Josh Maione (000320309)
*/... |
package com.mybatis.interceptor.service;
import com.mybatis.interceptor.entity.Player;
import java.util.List;
import java.util.Map;
public interface PlayerService {
List<Player> getList(Map<String,Object> params);
}
|
/*
* [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.tencent.mm.plugin.monitor;
import com.tencent.mm.kernel.b.f;
import com.tencent.mm.kernel.b.g;
import com.tencent.mm.model.p;
import com.tencent.mm.plugin.monitor.a.a;
import com.tencent.mm.sdk.platformtools.x;
public class PluginMonitor extends f implements a {
public void installed() {
super... |
package com.mirth.tools.header.builders;
public class HeaderBuilderFactory {
public static HeaderBuilder createHeaderBuilder(String extension) {
if ("jsp".equalsIgnoreCase(extension)) {
return new JspHeaderBuilder();
} else if ("java".equalsIgnoreCase(extension) || "js".equalsIgnoreCase... |
package App;
import model.GameMemento;
import model.SaveState;
import resources.Constants;
import java.io.*;
import java.util.EmptyStackException;
import java.util.Stack;
import static resources.Constants.SAVE_PATH;
//Caretaker class for Memento Pattern
public class SaveStateManager {
public static Stack<GameMe... |
package vamk.java.assignment5;
import java.util.Arrays;
public class Customer {
private static int lastId = 0;
private int id;
private String name;
private String phone;
private Purchase[] purchases;
public Customer(String name, String phone, Purchase[] purchases) {
this.id = lastId;
this.name = name;
... |
package com.example.recuperacion2;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.Toast;
public class MainAct... |
package org.shadow.dao;
import org.apache.ibatis.annotations.Param;
public interface LoginMapper {
public int verify(@Param("name")String name, @Param("password")String password);
}
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.rajesh.mavenproject.core.dao.impl;
import com.rajesh.mavenproject.core.dao.SkillDao;
import com.rajesh.mavenproject.core.e... |
package itsmap.khaledsaied.handin2;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class AlarmReceiver extends BroadcastReceiver{
private final static String TAG = "AlarmReceiver";
@Override
public void onReceive(Context arg... |
package models;
import dao.ResourceDao;
import play.data.validation.Constraints;
import utilities.Dependencies;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Set;
@Entity
public final class Resource extends BaseModel<ResourceDao>{
@Constra... |
package boj1316;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.HashSet;
public class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
Buffered... |
package com.tencent.xweb.xwalk;
import android.webkit.ValueCallback;
class g$3 implements Runnable {
final /* synthetic */ String vEI;
final /* synthetic */ ValueCallback vEJ;
final /* synthetic */ g vEV;
g$3(g gVar, String str, ValueCallback valueCallback) {
this.vEV = gVar;
this.vEI... |
package it.dstech.film.service;
import java.util.List;
import it.dstech.film.model.Role;
public interface RoleService {
List<Role> findAllRoles();
List<Role> findAllAdmin(String type);
List<Role> findAllDba(String type);
Role findByType(String type);
Role findById(int id);
}
|
package com.neuedu.util;
import java.lang.reflect.Field;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
public class JdbcUtil {
private static final String URL = "jdbc:mysql://localhost:3306/zyyb?useUnicode=true&characterEncoding=utf8";
private static final String USER = "root";
pri... |
package com.salesianos.dam.apirest;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController // Equivalente a @Controller + @ResponseBody
@RequestMapping(... |
package org.globsframework.sqlstreams.annotations.typed;
import org.globsframework.metamodel.GlobType;
import org.globsframework.sqlstreams.annotations.DbFieldIsNullable;
import org.globsframework.sqlstreams.annotations.IsBigDecimal;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
impo... |
package mazes.generators.base;
import datastructures.concrete.ChainedHashSet;
import datastructures.interfaces.IList;
import datastructures.interfaces.ISet;
import mazes.entities.Maze;
import mazes.entities.Room;
import mazes.entities.Wall;
import mazes.entities.LineSegment;
import java.awt.*;
/**
* Ge... |
package fi.lassemaatta.temporaljooq.config;
import liquibase.integration.spring.SpringLiquibase;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ResourceLoa... |
package com.tencent.mm.plugin.voip.model.a;
import com.tencent.mm.ab.b.a;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.plugin.appbrand.jsapi.share.d;
import com.tencent.mm.protocal.c.byy;
import com.tencent.mm.protocal.c.cai;
import com.tencent.mm.protocal.c.caj;
import com.tencent.mm.... |
package com.anexa.livechat.configuration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import lombok.val;
@Configuration
public class OdooConfiguration {
@Bean
@Configura... |
package persistence;
//eq
import static com.mongodb.client.model.Filters.eq;
import java.util.ArrayList;
import java.util.List;
import org.bson.Document;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoCursor;
import adapter.ClienteAdapter;
import entity.Cliente;
public class ClienteDao ... |
package com.tencent.mm.bg;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.tencent.mm.sdk.platformtools.ad;
import com.tencent.mm.sdk.platformtools.x;
class d$9 implements a {
final /* synthetic */ String qVb;
final /* synthetic ... |
package com.mei.tododemo.tools;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.... |
package com.tencent.mm.plugin.emoji.ui;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;... |
package vegoo.stockcommon.db.redis.jgcc;
import java.util.Date;
import java.util.Dictionary;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.osgi.service.cm.ConfigurationException;
import org.osgi.service.cm.ManagedService;
import org.osgi.service.component.annotations.Component;
impo... |
package com.example.demo.quartz;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/**
* 描述:定时器类
* @author Ay
* @date 2017/11/18
*/
public class TestTask {
//日志对象
private static final Logger logger = LogManager.getLogger(TestTask.class);
public void run() {
... |
package com.example.homework.app;
import com.example.homework.model.*;
import java.util.SortedMap;
public class Test {
public static void main(String[] args) {
ShapeCalculator shapeCalculator = new ShapeCalculator();
Line2D line2D = new Line2D(2.1, 2.2, 1.5, -1.8);
LineCalc lineCalc = ... |
package com.example.codebind.linkingactivities;
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;
public class deleteAMove extends AppCompatActivity {
Databas... |
package com.cyz.staticsystem.finance.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Controller;
import org.spr... |
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.table.DefaultTableModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
impo... |
package com.utknl.katas;
import org.junit.Test;
import java.util.Arrays;
import static org.junit.Assert.assertArrayEquals;
public class DeadFishTest {
@org.junit.Test
public void exampleTests() {
assertArrayEquals(new int[]{8, 64}, DeadFish.parse("iiisdoso"));
assertArrayEquals(new int[]{8,... |
import java.io.*;
import java.util.*;
public class PyramidMessageScheme {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
// String [] temp = in.readLine().split(" ");
int times = Integer.parseInt(in... |
package ru.dias.springdatainterview;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringDataInterviewApplication {
public static void main(String[] args) {
SpringApplication.run(SpringDataInterviewApplic... |
package com.mssngvwls.service.bootstrap;
import java.util.ArrayList;
import java.util.List;
import javax.transaction.Transactional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package noinheritance;
import java.util.ArrayList;
import java.lang.Math;
/**
*
* @author user
*/
public class Triangle ... |
package apa7.bitcoin.data;
/**
* Created by apa7 on 2019/7/17.
* Maintainer:
*/
public enum CategoryEnum {
send,
receive,
generate;
} |
package member.desktop.pages.account;
import base.PageObject;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class Member_Reset_PassWord_Page extends PageObject {
@FindBy(css = ".mod-input-newPassword input") private WebElement newPass_txtField;
@FindBy(css = ".mod-i... |
package com.justeat.app.deeplinks.links;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import com.justeat.app.deeplinks.intents.IntentHelper;
public class UriToIntentMapper {
private Context mContext;
private IntentHelper mIntents;
public UriToIntentMapper(Contex... |
package froggame;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
import java.util.Stack;
import java.util.TreeSet;
/**
* Frog game with StringBuilder
* @author ngadzheva
*/
public class FrogGame {
/**
* @param args the command line arguments
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.