text stringlengths 10 2.72M |
|---|
package com.example.nitiya.searchnonthaburi;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Html;
import android.view.MenuItem;
import an... |
package com.smxknife.drools.demo02.service;
import com.smxknife.drools.demo02.model.PromoteExecute;
import com.smxknife.drools.demo02.model.RuleResult;
import lombok.extern.slf4j.Slf4j;
import org.kie.internal.command.CommandFactory;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
... |
package com.tencent.mm.g.a;
public final class ci$a {
public int bJQ = 0;
}
|
/* Directions:
* Write a rehash() method for the hash.java program. It should be called by
* insert() to move the entire hash table to an array about twice as large
* whenever the load factor exceeds 0.5. The new array size should be a prime
* number. Refer to the section “Expanding the Array” in this chapter. D... |
package com.timmy.advance.slideList;
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 com.timmy.R;
import java.util.ArrayList;
import java.util.List;
/**
* Created ... |
package com.library.service;
import java.util.List;
import com.library.dao.UserDao;
import com.library.entities.User;
import com.library.utils.MD5Util;
public class UserService {
private UserDao userDao;
public void setUserDao(UserDao userDao) {
this.userDao = userDao;
}
public void delete(int id){
... |
package com.anexa.livechat.service.api.mail;
import com.anexa.livechat.dto.alert.MailMessageDto;
public interface MailService {
void sendMail(MailMessageDto mailMessage);
} |
package com.usa.project;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.pagefactory.AjaxElementLocatorFactory;
import cucumber.api.java.en.Given;
import cucumber.ap... |
/* ========================================================================
* Copyright 2014 EscherFinal
*
* Licensed under the MIT, The MIT License (MIT)
* Copyright (c) 2014 EscherFinal
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation file... |
/*
* [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.sysh.vo;
import java.io.Serializable;
/**
* 第一书记或者报错干部登陆成功之后的审核,可以看到的大体信息
* Created by sjy Cotter on 2018/8/22.
*/
public class EvidenceFirstModel implements Serializable {
private String id, accountNo,imageType,uploadTime;
//自增长序列,户编号,图片类型,上传时间
public EvidenceFirstModel(String id, Stri... |
package com.google.android.gms.tagmanager;
public class s$a implements y {
final /* synthetic */ s bbJ;
public s$a(s sVar) {
this.bbJ = sVar;
}
}
|
/*
* 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.cice.ejercicios;
import java.util.Scanner;
/**
*
* @author TrendingPC
*/
public class Ejercicio07 {
... |
package com.tencent.mm.plugin.collect.ui;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.tencent.mm.plugin.collect.b.e;
import com.tencent.mm.plugin.wxpay.a.g;
import com.tencent.mm.plugin.wxpay.a.i;
import com.tencent.mm.sdk.platf... |
/* Archivo: ExcepcionAsignaturaNoRegistrada.java
* Autor: Diego Mosquera
* Fecha: 18-06-10
*
*/
package regAcadUtil;
public class ExcepcionAsignaturaNoRegistrada extends Exception
{
public ExcepcionAsignaturaNoRegistrada (String causa)
{
super(causa);
}
} |
/*
* Copyright(c) 2018 Hemajoo Ltd.
* ---------------------------------------------------------------------------
* This file is part of the Hemajoo's Foundation project which is licensed
* under the Apache license version 2 and use is subject to license terms.
* You should have received a copy of the license with... |
package com.beiyelin;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annot... |
package com.tencent.mm.plugin.downloader.model;
import com.tencent.mm.plugin.downloader.c.a;
public interface m {
long a(a aVar);
long a(e eVar);
int cl(long j);
FileDownloadTaskInfo cm(long j);
boolean cn(long j);
boolean co(long j);
}
|
package org.opentosca.planbuilder.provphase.plugin.invoker.handlers;
import java.io.File;
import java.io.IOException;
import java.io.StringReader;
import java.net.URL;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.namespace.QName;
import javax.xml.parsers.DocumentBuilder;
imp... |
package com.spring.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Value;
import org.springframework... |
package model;
import com.google.gson.annotations.SerializedName;
import java.time.LocalDateTime;
import java.util.Objects;
public class Comment {
private long id;
private String content;
@SerializedName(value = "time", alternate = {"creationTime"})
private LocalDateTime time;
public Comment(... |
package io.github.umanking.stack;
import java.util.*;
import java.util.stream.Collectors;
public class FeatureDevelop {
public static void main(String[] args) {
System.out.println(Arrays.toString(
solution(new int[]{93, 30, 55}, new int[]{1, 30, 5})));
}
public static int[] solut... |
@javax.xml.bind.annotation.XmlSchema(namespace = "http://flagservice.big.tuwien.ac.at/")
package ewaMemory.flagService;
|
import java.io.Serializable;
public class BTree
{
private TNode root;
private int t = 2;
private class TNode implements Serializable
{
int keyCount = 0;
boolean leaf = false;
Student[] key = new Student[2*t];
TNode[] ref = new TNode[2*t+1];
}
public void search(String k)
{
search(root, k);
}
... |
package Attacks;
import ru.ifmo.se.pokemon.*;
public class BrutalSwing extends PhysicalMove{
public BrutalSwing(){
super(Type.DARK, 60, 100);
}
@Override
protected String describe() {
return "резко разворачивается, чтобы нанести урон хвостом всему, что находится в зоне поражения";
... |
package assemAssist.model.scheduler;
import assemAssist.model.order.OrderVisitor;
import assemAssist.model.order.order.Order;
import assemAssist.model.order.singleTaskOrder.SingleTaskOrder;
import assemAssist.model.order.vehicleOrder.VehicleOrder;
/**
* A class representing an AddToScheduleVisitor. This visitor ad... |
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* Hybris ("Confidential Information"). You shall not disclose such
* Confidential Information and shall use it only in accordance with the
* terms of the l... |
package org.sbbs.app.license.dao;
import java.lang.reflect.Type;
import java.util.Iterator;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.ValidatorFactory;
import org.hibernate.validator.int... |
package checkedVsUncheckedExceptions;
public class CheckedVsUncheckedExceptions {
public static void main(String[] args) throws Exception {
CheckedVsUncheckedExceptions checkedVsUncheckedExceptions=new CheckedVsUncheckedExceptions();
long time=System.currentTimeMillis();
checkedVsUncheckedE... |
package subjects.sample.string;
/**
* @description: 左旋转字符串
* 字符串的左旋转操作是把字符串前面的若干个字符转移到字符串的尾部。请定义一个函数实现字符串左旋转操作的功能。比如,输入字符串"abcdefg"和数字2,
* 该函数将返回左旋转两位得到的结果"cdefgab"。
* <p>
*
* <p>
* 示例 1:
* <p>
* 输入: s = "abcdefg", k = 2
* 输出: "cdefgab"
* 示例 2:
* <p>
* 输入: s = "lrloseumgh", k = 6
* 输出: "umghlrlose"
* ... |
package 多线程.生产者消费者模式.Condition方法;
import java.util.LinkedList;
import java.util.Queue;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
//不带打印信息,比较清晰一些
public class proConSimple {
//循环打印abc代码实现中,lock、emptyCondition、fullCondition... |
package com.kingcar.rent.pro.adapter.holder;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.kingcar.rent.pro.R;
public class SecondKillBuilder extends BaseHolerBuilder<SecondKillBui... |
package chapter12.Exercise12_14;
import java.io.File;
import java.util.Scanner;
public class Exercise12_14 {
public static void main(String[] args) throws Exception {
Scanner filePath = new Scanner(System.in);
System.out.println("Enter the file adress");
String adress = filePath.nextLine();
Fil... |
interface IFunc<T, R> {
R apply(T t);
}
interface IPred<T> extends IFunc<T, Boolean> {
Boolean apply(T t);
}
interface IList<T> {
// Effect: changes an item according to a given function in this list if it passes the
// predicate
void changeItem(IPred<T> whichOne, IFunc<T, Void> whatToDo);
}
class MtList<... |
package com.decrypt.beeglejobsearch.flow;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.inject.Scope;
/**
* Это аннотация Screen.
* Она понадобится для работы с Flow
* Здесь при помощи р... |
package com.qgbase.common.domain;
import com.qgbase.common.enumeration.EnumResultType;
import lombok.Getter;
/**
* 验证结果
*
* @author cuiwei
* @date 2018-5-5
*/
public class BindVerifyResult {
@Getter
private String code;
@Getter
private String msg;
private boolean error;
public static Bi... |
package com.bfchengnuo.security.demo.domain;
import lombok.Data;
import java.util.Date;
/**
* @author 冰封承諾Andy
* @date 2019-11-22
*/
@Data
public class RoleAdmin {
/**
* 数据库表主键
*/
private Long id;
/**
* 审计日志,记录条目创建时间,自动赋值,不需要程序员手工赋值
*/
private Date createdTime;
/**
* 角... |
package com.innodox.library.repo;
import com.innodox.library.entity.Author;
import com.innodox.library.entity.Book;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface AuthorRepo extends CrudRepository<Author... |
package zystudio.cases.dataprocess.db;
import zystudio.mylib.utils.LogUtil;
import android.app.Activity;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.provider.BaseColumns;
/**
* 这个case用来展示SQLite的转义问题怎么拼,是按照这个弄的
* http://www.2cto.com/da... |
package serializabletest;/*
* @author Xingqilin
*
*/
public class Employee implements java.io.Serializable {
private static final long serialVersionUID = -7790488254503454205L;
private String ename;
private String ecoed;
private String eID;
public Employee(String ename, String ecoed, String ... |
package pe.gob.trabajo.repository;
import pe.gob.trabajo.domain.Empleador;
import org.springframework.stereotype.Repository;
import org.springframework.data.jpa.repository.*;
import java.util.List;
/**
* Spring Data JPA repository for the Empleador entity.
*/
@SuppressWarnings("unused")
@Repository
public interfa... |
package teste;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.stream.Stream;
public class TesteStream {
public static void main(String[] args) {
List<Curso> cursos = new ArrayList<Curso>();
cursos.add(new Curso("Python", 45));
cursos.add(new Curso("JavaScript", ... |
package com.qd.mystudy.sbweb.zmq;
import com.alibaba.fastjson.JSON;
import com.qd.mystudy.sbweb.dao.CallBack;
import org.zeromq.ZContext;
import org.zeromq.ZMQ;
import org.zeromq.ZMsg;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
/**
* Created by liqingdong on 1... |
package ninja.farhood.exercises;
public class Game {
public static void main(String[] args) {
Soldier s = new Soldier(100);
Soldier t = new Soldier(100);
System.out.println(s.getHealth());
s.fight(t);
System.out.println(s.getHealth());
System.out.println(t.getHe... |
package com.spring.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestB... |
package com.sql.ms3.mavensql;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class LogFileParser {
private FileInputStream stream;
... |
package daggerok.account;
import lombok.RequiredArgsConstructor;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereoty... |
package by.epam.concexamples.synchronizer.cyclicbarier;
/**
* Created by Alex on 21.10.2016.
*/
public class Race extends Thread {
@Override
public void run() {
try {
System.out.println("Машина безопасности покидает трассу.");
sleep(3000);
System.out.println("Гонка... |
package littleservantmod.profession;
import littleservantmod.api.IServant;
import littleservantmod.entity.EntityLittleServant;
import littleservantmod.entity.ai.EntityAIAttackMelee2;
import littleservantmod.entity.ai.EntityAIEquipShield;
import littleservantmod.entity.ai.EntityAIEquipTool;
import littleservantmod.enti... |
package com.sysh.entity.helpmea;
import java.io.Serializable;
import java.math.BigDecimal;
public class EmploymentDD implements Serializable {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TBL_EMPLOYMENT.ID
*
* @mbg.generated
*... |
package com.yayandroid.customtabsfragment;
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
import com.yayandroid.customtabsfragment_library.R;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutIn... |
package artista;
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.SwingConstants;
public class ProfileGUI{
private Graph graph;
private Vertex profileVertex;
private JFrame frame;
JLabel lblNewLabel;
JLabel profileImage;
JLabel username;
JLab... |
package com.hqhcn.android.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CarinfoExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CarinfoExample() {
oredCriteria = new ArrayList... |
package com.xiaofanwo.resource;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
/**
* @author Winfred
* @date 2016年7月1日
* @version V1.0
*/
@Path("user")
public class UserResource {
/**
* Method handling HTTP GET requests. The returned ... |
package api.longpoll.bots.methods.impl.messages;
import api.longpoll.bots.methods.AuthorizedVkApiMethod;
import api.longpoll.bots.methods.VkApiProperties;
import api.longpoll.bots.model.response.ExtendedVkList;
import api.longpoll.bots.model.response.GenericResponse;
import com.google.gson.annotations.SerializedName;
... |
package com.joakims.BST;
public class TreeNode {
private Integer data;
private TreeNode leftChild;
private TreeNode rightChild;
public TreeNode(Integer data) {
this.data = data;
}
public Integer getData() {
return data;
}
// NOTE: WE DO NOT PROVIDE A setData member (... |
package com.cm4j.lock;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.cm4j.util.ThreadUtil;
/**
* @author yeas.fun
* @since 2021/11/25
*/
public class InternalLock i... |
/**
*
*/
package simplejava.nio.selector;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.CharBuffer;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.SelectableChannel;
import java.nio.channels.S... |
package KidneyExchange;
import java.util.ArrayList;
public class Hospital {
private final int hospitalId;
private final int maxSurgeries;
private ArrayList<ExchangePair> pairs;
public Hospital(int hospitalId, int maxSurgeries) {
this.hospitalId = hospitalId;
this.maxSurgeries = maxSur... |
package ast.expression;
import ast.declaration.*;
public class VariableDeclarationExpression extends Expression {
private VariableDeclaration variableDeclaration;
public VariableDeclarationExpression(VariableDeclaration variableDeclaration) {
super();
this.variableDeclaration = variableDecla... |
package solve;
import static solve.CrossValue.EPSILON;
/**
* Created by Matthew on 12/12/2017.
*/
public class DoubleUtil {
/**
* allow some reasonable error such that |f(a)-f(b)| < error
* for most continuous functions when
* a = x-dx
* b = x+dx
* where dx = Math.ulp(x)
* @param ... |
/*
* 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 DAO;
import Entities.Student;
import Entities.Category;
import Entities.Teacher;
import Entities.Vaccine;
import java... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ThreadServer;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputS... |
package fr.cgi.heritage;
public class Polymorphisme
{
public static void main( String[] args )
{
// un Kiwi est un Oiseau
Oiseau oiseau;
oiseau = new Kiwi();
oiseau.presenteToi();
oiseau.chante();
testOiseau( oiseau );
// un Paon est un Oiseau
Oiseau paon = new Paon( 4 );
paon.presenteToi();
pa... |
package com.jim.multipos.utils.usb_barcode;
public class BarcodeReadEvent {
String barcode;
public BarcodeReadEvent(String barcode) {
this.barcode = barcode;
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barc... |
package com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage.AdLandingPageComponent.component.widget;
import android.view.View;
class a$d implements Runnable {
final /* synthetic */ a nGD;
private a$d(a aVar) {
this.nGD = aVar;
}
/* synthetic */ a$d(a aVar, byte b) {
this(aVar);
... |
/*
* Copyright 2002-2014 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 applica... |
package de.marko.pentest.parser;
import de.marko.pentest.db.VulnDB;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.Properties;
import org.apache.commons.dbcp2.BasicDataSource;
import org.hibernate.cfg.AvailableSettings;
/**
* @author marko
* @version 1.0.0.
* @date 05... |
package com.practice.movieinfoservice.resources;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.practice.movieinfoservice.models.Movie;
@RestController
@Requ... |
package com.tencent.mm.ui.chatting;
import com.tencent.mm.model.au;
import com.tencent.mm.ui.appbrand.c.a;
class AppBrandServiceChattingUI$a$7 implements a {
final /* synthetic */ AppBrandServiceChattingUI.a tGQ;
AppBrandServiceChattingUI$a$7(AppBrandServiceChattingUI.a aVar) {
this.tGQ = aVar;
}... |
import java.util.Stack;
/**
*
*/
/**
* @author jinweizhang
*
*/
public class ValidParentheses {
/**
* @param args
*
* Given a string containing just the characters '(', ')', '{', '}',
* '[' and ']', determine if the input string is valid.
*
* An input string is v... |
/**
* ************************************************************************
* Copyright (C) 2010 Atlas of Living Australia All Rights Reserved.
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with the
* Licens... |
package in.vaksys.vivekpk.fragments;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
impor... |
package com.example.suyash.hexatime;
import android.content.Intent;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.provider.AlarmClock;
import android.service.wallpaper.WallpaperService;
import android.view.MotionEvent;
import... |
package com.qgbase.biz.huodong.domain;
import com.qgbase.common.domain.TBaseEntity;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import com.qgbase.excel.annotation.ExcelCo... |
package leetcode;
public class BinarySolution {
/***
* Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
* @param nums sorted input array
* @return a height balanced BST
*/
public TreeNode sortedArrayToBST(int[] nums) {//平衡二叉树的概念,输入可以无序
if (nums.length == 0)... |
package com.pritesh.parkingtrackingsystem;
import android.test.ActivityInstrumentationTestCase2;
import com.robotium.solo.Solo;
public class ExampleUnitTest extends ActivityInstrumentationTestCase2<LoginActivity>
{
private Solo solo;
public ExampleUnitTest()
{
super(LoginActivity.class);
}... |
/*
* Copyright 2015 FUJITSU LIMITED
* Copyright 2016 Hewlett Packard Enterprise Development Company, L.P.
*
* 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/licens... |
package net.crunchdroid.service;
import net.crunchdroid.dao.ExpiredAbonnementDao;
import net.crunchdroid.model.ExpiredAbonnement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class ExpiredAbonnementService {
... |
/*
* Copyright 2016 Johns Hopkins University
*
* 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... |
package pl.finapi.paypal.util;
import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Component;
import pl.finapi.paypal.model.Day;
@Component
public class MonthSpeaker {
private final Map<Integer, String> monthIndexToMonthPolishName = new HashMap<>();
{
monthIndexT... |
package com.tfxk.framework.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.tfxk.framework.R;
import com.tfxk.framework.adapter.holder.RecyclerViewHolder;
import java.util.Ar... |
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* Hybris ("Confidential Information"). You shall not disclose such
* Confidential Information and shall use it only in accordance with the
* terms of the l... |
package model;
import java.util.Random;
public enum Status {
available, pending, sold;
public static Status getRandom()
{
Random random = new Random();
int idx = random.nextInt(values().length);
return values()[idx];
}
}
|
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
import java.net.URL;
/**
* This class contains the declaration of all the CocoJNI functions.
*/
public class CocoJNI {
public static final String LIBNAME = "CocoJNI-2.3.0";
public static final String LIBNAMEDLL = LIBNAM... |
/**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2015 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GN... |
package br.com.keepitup.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@Entity
public class Exercicio {
@Id
@GeneratedValue(strateg... |
package com.zhouyi.business.core.model.provincecomprehensive;
import lombok.Data;
/**
* @Author: first
* @Date: 上午9:10 2019/10/31
* @Description: 省厅接口返回数据
**/
@Data
public class ResponseData {
private String status;
private String value;
}
|
/**
* Example For WorkFlowDB DAO Layer
*/
package example; |
package pe.com.tss.dao;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import pe.com.tss.bean.Country;
import pe.com.tss.bean.Customer;
import pe.com.tss.bean.Vendor;
import pe.com.tss.util.JPAUtil;
public class VendorDao {
public boolean exitsVendor(String code, String name, String vendo... |
package pro.eddiecache.kits;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public abstract cla... |
package com.yixin.kepler.v1.datapackage.dto.yntrust;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* 还款计划DTO
* @author sukang
*/
public class YTRepaySchedulesReqDTO extends YTCommonRequestDTO{
private static final long serialVersionUID = -1722572941005317937L;
@JsonProperty... |
package co.th.aten.football.ui;
import java.awt.Component;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import org.springf... |
package earth.eu.jtzipi.jbat;
import earth.eu.jtzipi.modules.io.watcher.IWatchEventHandler;
import java.nio.file.Path;
public class RootWatchEventListener implements IWatchEventHandler {
@Override
public EventAction onOverflow( Path path, int i ) {
return null;
}
@Override
public EventA... |
package com.bw.movie.mvp.view.activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.... |
package cn.com.ykse.santa.web.controller.rest;
import cn.com.ykse.santa.common.enums.ResultCodeEnum;
import cn.com.ykse.santa.repository.dao.UserDOMapper;
import cn.com.ykse.santa.repository.entity.*;
import cn.com.ykse.santa.repository.pagination.Page;
import cn.com.ykse.santa.repository.sort.Sort;
import cn.com.ykse... |
package kimmyeonghoe.cloth.dao.purchase;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import kimmyeonghoe.cloth.dao.map.purchase.PurchaseMap;
import kimmyeonghoe.cloth.domain.purchase.Purchase;
@Repository
public c... |
package com.sedwt.icloud.service.impl;
import com.sedwt.icloud.order.StockOrder;
import com.sedwt.icloud.product.Stock;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.f... |
package sellwin.gui;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
// SellWin http://sourceforge.net/projects/sellwincrm
//Contact support@open-app.com for commercial help with SellWin
//This software is provided "AS IS", without a warranty of any ki... |
package com.pingcap.tools.cdb.binlog.instance.spring;
import com.pingcap.tools.cdb.binlog.instance.core.CDBInstance;
import com.pingcap.tools.cdb.binlog.instance.core.CDBInstanceGenerator;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.