text stringlengths 10 2.72M |
|---|
package com.plexobject.dp.sample.marshal;
import java.util.Collection;
import com.plexobject.dp.domain.DataRowSet;
import com.plexobject.dp.domain.MetaField;
import com.plexobject.dp.domain.MetaFieldFactory;
import com.plexobject.dp.domain.MetaFieldType;
import com.plexobject.dp.domain.Metadata;
import com.plexobject... |
package Manufacturing.CanEntity;
import Manufacturing.CanEntity.Material.Material;
import Manufacturing.CanEntity.Size.Size;
/**
* 蔬菜罐头
* 桥接模式
* @author 汪明杰
*/
public class VegetableCan extends Can{
public VegetableCan(Size s, Material c) {
super.setSize(s);
super.setMaterial(c);
setNa... |
package com.tencent.mm.g.a;
import com.tencent.mm.sdk.b.b;
public final class pp extends b {
public a caw;
public static final class a {
public boolean bTv;
}
public pp() {
this((byte) 0);
}
private pp(byte b) {
this.caw = new a();
this.sFm = false;
t... |
package artem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
@RestController
public class TimeCalcController {
private TimeCalculator timeCa... |
package pkg.subPkg;
// Java Language 8 Specification:
// "A simple name may occur in contexts where it may potentially be interpreted as the name of a variable,
// a type, or a package. In these situations, the rules of §6.5 specify that a variable will be chosen
// in preference to a type, and that a type will be ch... |
import java.util.ArrayList;
public class VirtualMemory {
private ArrayList <VirtualPage> virtualPages;
public VirtualMemory(int tamanho){
this.virtualPages = new ArrayList<VirtualPage>() ;
for (int i = 0; i < tamanho; i++){
VirtualPage vp = new VirtualPage();
this.virtualPages.add(vp);
}
}
pub... |
package com.tencent.mm.plugin.wallet_core.ui;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import com.tencent.mm.g.a.qu;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.plugin.wallet_core.model.Orders.Promotions;
import com.ten... |
package com.tencent.tinker.a.b.a;
import com.tencent.mm.plugin.appbrand.jsapi.audio.JsApiSetBackgroundAudioState;
import com.tencent.mm.plugin.appbrand.jsapi.f.c;
import com.tencent.mm.plugin.game.gamewebview.jsapi.biz.n;
import com.tencent.mm.plugin.gif.MMGIFException;
import com.tencent.mm.plugin.wxpay.a$k;
import c... |
package org.sbbs.app.demo.service;
import org.sbbs.app.demo.model.Dictionary;
import org.sbbs.base.service.BaseManager;
public interface DictionaryManager extends BaseManager<Dictionary, Long> {
}
|
package com.brady.euler;
public class Problem100 extends Problem {
public long solve() {
long blues = 0;
int i = 1;
while (countDiscs(i) < 1E12) {
blues = countBlues(i);
i++;
}
blues = countBlues(i);
return blues;
}
private long countDiscs(double m) {
double sqrt2 = Math.sqrt(2)... |
package ExceptionExamples;
public class MyDateTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
@SuppressWarnings("unused")
MyDate d1;
try
{
for(int i=0;i<args.length;i++)
{
d1=new MyDate(args[i]);
}
}
catch(Exception e)
{
System.out.print... |
package org.sqlflow.parser;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Opt... |
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import model.VEHBrand;
import model.VEHDetail;
import model.VEHEngine;
import model.VEHFamily;
import model.VEHGearbox;
import model.VEHGroup;
import model.VEHInfo;
import com.mysql.jdbc.Statement;
public class ProcessCarType {... |
package com.module.model.entity;
import com.module.xml.adapters.LocalDateAdapter;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.time.LocalDate;
import java.util.UUI... |
package univie.ac.at.meineinkaufswagerl.profile;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import java.io.Serializable;
i... |
package ir.mahdiyehrezaei.springcloudservicecar.repository;
import ir.mahdiyehrezaei.springcloudservicecar.domain.CarInfo;
import org.springframework.data.jpa.repository.JpaRepository;
public interface CarRepository extends JpaRepository<CarInfo,Integer> {
CarInfo findByBrandContainingAndNameContainingAndColorCo... |
package my.battleships.Players;
import my.battleships.ConsoleHelper;
import my.battleships.Exeptions.*;
import my.battleships.GameField.GameField;
import my.battleships.ships.*;
public class HumanPlayer extends Player {
public HumanPlayer(String name) {
super(name);
}
@Override
public void... |
package lista_indexada;
import java.util.Scanner;
public class GrafoListaIndexada {
Scanner scanner = new Scanner(System.in);
ListaIndexada listaIndexada = new ListaIndexada();
public void listaNaoOrientada() {
int op = 0;
int pos = 0;
while (op == 0) {
System.out.pri... |
/*
* Instance.java
* Copyright (C) 2016 NanChang University, JiangXi, China
*
*/
package cn.myluo.datamining.data;
import java.util.HashMap;
import java.util.Map;
/**
* Class for handling an instance.
*
* @author Luo Mingyuan
* @version 1612
*/
public class Instance implements Comparable<Instance>, C... |
package weekOneCapstone;
import java.util.Scanner;
public class PigLatin {
public static void main(String[] args) {
Scanner sc = new Scanner (System.in);
System.out.println("Welcome to Pig Latin Translator!\n");
String cont,r,lp, rp, pf; // left part, right part, and Pig Latin form
do {
... |
package com.tencent.mm.plugin.appbrand.jsapi;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import android.text.TextUtils;
import com.tencent.mm.g.a.... |
package com.zhowin.miyou.recommend.callback;
import io.rong.imlib.model.Message;
/**
* author : zho
* date :2020/10/24
* desc : 聊天消息的点击事件
*/
public interface OnChatMessageItemClickListener {
void onMessageItemClick(int position, Message message);
}
|
package br.org.funcate.glue.view;
/**
* \file ThemeOptionsView.java
* This class creates one option screen
* */
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.Mou... |
package com.core.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletReques... |
package com.cht.iot.demo.pi;
import java.io.PrintWriter;
import java.io.StringWriter;
import org.apache.commons.lang.RandomStringUtils;
public class MiBand {
protected static int crc8(byte[] bytes, int len) {
int crc = 0;
for (int a = 0; a < len; a++) {
byte b = bytes[a];
crc = crc ^ (b & 0xff);
for (... |
// SCJPP275Exercise11
// Chapter 3: Assignments
class Alpha
{
static Beta b1;
Beta b2;
} |
package com.training.sanity.tests;
import org.testng.annotations.Test;
import com.training.pom.AdminCreateCourseNCategory_POM;
public class MediumTC_AdminCreateCourseNCategory extends SimpleTC_LoginTest_Admin {
private AdminCreateCourseNCategory_POM CreateCourse;
@Test(priority=2)
public void CreateC... |
package sample;
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.image.Image;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class Main extends Application {
static ComboBox<String> login_window;
... |
package com.stackAndQueue;
import java.io.*;
import java.util.*;
public class QueueUsing2Stack {
public static void main(String[] args) throws FileNotFoundException {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
Scanner input = ne... |
package com.tencent.mm.plugin.setting.ui.setting;
import android.text.Editable;
import android.text.TextWatcher;
import com.tencent.mm.plugin.setting.a.c;
import com.tencent.mm.plugin.setting.a.i;
import com.tencent.mm.sdk.platformtools.bi;
class SettingsAliasUI$1 implements TextWatcher {
final /* synthetic */ Se... |
package ex2;
public class UserService extends CommonService {
private UserRepository repo = new UserRepository();
public void addNewUser(String id, String name, String pwd) {
User savedUser = repo.getUserById(id);
if(savedUser != null) {
processError("ERROR_USER_001",id);
}
User user = new User(id, n... |
package sample;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
/**
* Created by Bhavesh on 7/14/2017.
*/
public class Admin {
public Admin(){
Stage window = new Stage();... |
package org.newdawn.slick.opengl.renderer;
public class QuadBasedLineStripRenderer implements LineStripRenderer {
private SGL GL = Renderer.get();
public static int MAX_POINTS = 10000;
private boolean antialias;
private float width = 1.0F;
private float[] points;
private float[] colours;
... |
package com.smartup.manageorderapplication.entities;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
impor... |
package com.rajesh.android.mapsv2.draganddrop;
import java.io.IOException;
import java.io.InputStream;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;... |
package org.training.dao.exception;
/**
* Created by nicko on 1/29/2017.
*/
public class DAOException extends RuntimeException {
public DAOException() {
super("Exception in DAO");
}
public DAOException(Exception e) {
super("Exception in DAO",e);
}
}
|
/**
* MOTECH PLATFORM OPENSOURCE LICENSE AGREEMENT
*
* Copyright (c) 2010-11 The Trustees of Columbia University in the City of
* New York and Grameen Foundation USA. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... |
package kosesorulari;
public class Soru01 {
public static void main(String[] args) {
// 1-)Bir stringi ters çeviren uygulama yaz.
//1.yol
String oy = "Oyonnax";
String[] oy1 = oy.split("");
for(int i=oy1.length-1;i>=0;i--) {
System.out.print(oy1[i]);
}
System.out.println(" ");
//2.yol
... |
package com.repository;
import java.util.List;
import com.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.model.Favorite;
@Repository
public interface FavoriteRepository extends JpaRepository <Favorite, Long>{
Favorite findByUse... |
package edu.jspiders.beanwiringimplicitannotation.beans;
public class Refil
{
private String brand;
private String name;
private int price;
public Refil()
{
System.out.println(this.getClass().getSimpleName()+" Object Created");
}
public String getBrand() {
return brand;
}
public void... |
package com.dbs.hack2hire.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.s... |
package com.accp.pub.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.accp.pub.pojo.Studentinfo;
public interface StudentinfoMapper {
int deleteByPrimaryKey(Integer stuid);
int insert(Studentinfo record);
int insertSelective(Studentinfo record);
Studentinfo se... |
package com.agong.demo;
import android.os.Environment;
import android.util.Log;
import com.stericson.RootTools.RootTools;
import java.io.File;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
public class DateUtil {
public static DateFormat FORMAT_NUM_SERIAL = new SimpleDateFormat("yyyyMMddHHmms... |
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.splunk.logging.HttpEventCollectorErrorHandler;
import com.splunk.logging.HttpEventCollectorEventInfo;
public class Program {
private static final Logger logger = LoggerFactory.getLogger(Program.class);
public static void m... |
package com.example.diabetes_application;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.content.res.AssetFileDescriptor;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import org.tensorflow.lite.Inte... |
package com.rc.portal.service.impl;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import com.rc.portal.dao.TReturnDAO;
import com.rc.portal.service.TReturnManager;
import com.rc.portal.vo.TReturn;
import com.rc.portal.vo.TReturnExample;
public class TReturnManagerImpl implements TReturnM... |
/**
* @program: integral_mobile_parent
* @description: 汇总积分详情到月积分Job
* @author: 14_赵芬
* @create: 2019-09-14 15:17
**/
package com.tfjybj.integral.provider.job;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.x... |
/**
* Copyright (c) 2019 Amarone- zjlgd.cn , All rights reserved.
*/
package cn.amarone.model.user.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import cn.amarone.model.sys.commo... |
package com.java2;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Ht... |
package net.madvirus.spring4.chap07.quickstart;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class HelloController2 {
@RequestMapping("/hello.do2")
public String hellow(Model model... |
package com.company;
import com.company.view.MinesweeperView;
import com.company.controller.Controller;
import com.company.model.MinesweeperModel;
import javax.swing.*;
public class Main {
public static void main(String[] args) {
MinesweeperModel model = new MinesweeperModel();
Controller contro... |
package uk.co.samwho.modopticon.api.v1.websocket.handlers;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Singleton;
import uk.co.samwho.modopticon.api.v1.websocket.EntityObserver;
import uk.co.samwho.modopticon.api.v1.websocket.Message;
import uk.co.samwho.modopticon.storage.InvalidResourceI... |
package org.webmaple.admin.container;
/**
* @author lyifee
* on 2021/4/2
*/
public class BasicDataContainer {
private static Integer spiderNum = 0;
private static Integer timedJobNum = 0;
public static void setSpiderNum(int num) {
spiderNum = num;
}
public static void setTimedJobNum(i... |
package com.cxjd.nvwabao.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
im... |
package 笔试.vivo;
import 集合.ListNode;
/**
* @Author: Mr.M
* @Date: 2019-06-04 19:23
* @Description:
**/
public class vivo2 {
public static ListNode so(ListNode head, int m, int n) {
ListNode a = head;
ListNode b = head;
ListNode r = new ListNode(1);
r.next = head;
if(m==1){
a = r;
}else {
while ... |
package fel_2;
public interface IDictionary {
final String DICTIONARY_FILE = "lab8_2_input.txt";
public boolean add(String word);
public boolean find(String word);
public int size();
}
|
package gui;
import bbdd.GestionBDFactory;
import java.awt.Color;
import java.awt.Toolkit;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableColumn;... |
package com.jadn.cc.ui; import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import com.jadn.cc.R;
import com.jadn.cc.core.CarCastApplication;
public class Splash extends Activity {
@Override
public void on... |
package com.ssafy.product;
import java.util.ArrayList;
public class ProductMgrImpl implements IProductMgr{
private static ArrayList<Product> pd;
ProductMgrImpl() {
pd = new ArrayList<>();
}
@Override
public void addProduct(Product product) {
pd.add(product);
}
@Override
public ArrayList<Product> get... |
package prj.betfair.api.accounts.datatypes;
import prj.betfair.api.accounts.datatypes.StatementLegacyData;
import java.util.Date;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
/***
* Summary of a cleared order.
*/
@JsonDeserialize(builder = StatementLegacyData.Builder.class)
public class Stateme... |
package com.fancy.ownparking.ui.car;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayout... |
package org.social.entities;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Genera... |
package com.tencent.mm.plugin.chatroom.d;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.b.a;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.model.m;
import com.tencent.mm.network.k;
import com.tencent.mm.network.q;
import com.tencent.mm.platformtools.ab;
import com.tencent.mm.prot... |
/*
* Author: David Garcia
* Last Revised: 11/8/15
*/
package library.domain;
import java.io.Serializable;
import java.util.*;
// Book Class
public class Book implements Serializable{
// Properties
private List<String> authors;
private int isbn;
/**
* Default constructor
*/... |
package aula05;
public class Mota extends Motorizado{
private MotaTipo tipoMota;
public Mota(int ano, Matricula matricula, Cor cor, int numRodas,
Marca marca, String modelo, Tipo tipo, int cilindrada,
int potencia, int velMax, int consumo, String combustivel, MotaTipo tipoMota){
super (ano, matr... |
package top.zeroyiq.master_help_me.activities;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import an... |
package com.espendwise.ocean.common.emails.objects.internal;
public interface InvoiceEmailObject extends InternalEmailObject{
public com.espendwise.ocean.common.emails.objects.InvoiceEmailObject getInvoice();
}
|
import Exceptions.FullMemoryException;
import Exceptions.NonSupportedException;
import Pod.File;
import Pod.PPod;
public class PPodDemo {
public static void main(String[] args) {
System.out.println("Hello!");
PPod pod1 = new PPod(100);
File f1 = new File("aa","mp3", 1.0, 120);
Fi... |
/**
* Copyright (c) 2016, 指端科技.
*/
package com.rofour.baseball.controller.manager;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Au... |
/**
* original(c) zhuoyan company
* projectName: java-design-pattern
* fileName: Product.java
* packageName: cn.zy.pattern.factory.simple
* date: 2018-12-09 18:10
* history:
* <author> <time> <version> <desc>
* 作者姓名 修改时间 版本号 描述
*/
package cn.zy.pattern.fac... |
/*
* Copyright (c) 2015. ReviewBot by Jeremy Tidwell is licensed under a Creative Commons
* Attribution-NonCommercial-ShareAlike 4.0 International License.
* Based on a work at https://github.com/necanthrope/ReviewBot.
*/
package reviewbot.service;
import org.springframework.beans.factory.annotation.Autowired;
... |
package com.meebu.model;
import java.util.ArrayList;
/**
* Created by eleganz on 20/3/19.
*/
public class TransactionData {
String date;
ArrayList<PerDayTransaction> arrayList;
public TransactionData(String date, ArrayList<PerDayTransaction> arrayList) {
this.date = date;
this.arrayLis... |
package com.research.api.sql;
/**
* @fileName: PvCount.java
* @description: 统计pv点击数
* @author: by echo huang
* @date: 2020-03-09 23:18
*/
public class PvCount {
public static void main(String[] args) {
}
}
|
package com.teamdev.calculator;
public enum CalculationState {
START,
NUMBER,
BINARY_OPERATOR,
BLOCK_START,
BLOCK_END,
FINISH
}
|
package com.example.jack.pubnub_demo;
/**
* Created by Jack on 3/15/18.
*/
public class Constants {
public static final String PUBLISH = "pub-c-ade335be-8d29-4f63-9855-505c69d53746";
public static final String SUBSCRIBE = "sub-c-ca9c27b0-28a9-11e8-86ee-1e8059ef76e6";
public static final String GAME_CHAN... |
package org.timesheet.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "user")
public class User {
@Id
@GeneratedValue(... |
package pe.gob.trabajo.repository;
import pe.gob.trabajo.domain.Accadoate;
import org.springframework.stereotype.Repository;
import org.springframework.data.jpa.repository.*;
import java.util.List;
/**
* Spring Data JPA repository for the Accadoate entity.
*/
@SuppressWarnings("unused")
@Repository
public interfa... |
package com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage.AdLandingPageComponent.component.widget.verticalviewpager.a;
import android.view.animation.AlphaAnimation;
import com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage.d$a;
import com.tencent.mm.sdk.platformtools.x;
class b$5 implements d$a {
final... |
/*
* @project: (Sh)ower (R)econstructing (A)pplication for (M)obile (P)hones
* @version: ShRAMP v0.0
*
* @objective: To detect extensive air shower radiation using smartphones
* for the scientific study of ultra-high energy cosmic rays
*
* @institution: University of California, Irvine
* @de... |
/*
* Copyright © 2019 The GWT Project 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 applicable law... |
package aboli.musicbee;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import static aboli.musicbee.GameSettings.EXTRA_DIFFICULTY;
public class Instruction_Page extends AppCompatActivity {
privat... |
package com.baidu.tuke_demo;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.Message;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* 通用HandlerThread工具,提供简单业务队列的子线程实现,避免多线程互斥的使用
* @author tuke
*/
publi... |
package com.cngl.bilet.dto;
import java.math.BigDecimal;
import java.util.List;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsCo... |
package net.drs.myapp.utils;
public enum ModeOfPayment {
NETBANKING("Online/Netbanking"),
OFFLINE("CASH/DD/MONEY ORDER");
private String modeOfPayment;
ModeOfPayment(String modeofpayment){
this.modeOfPayment=modeofpayment;
}
public String getModeOfPayment() {
... |
package com.zen.bandit.event;
import java.io.Serializable;
import java.util.concurrent.Delayed;
import java.util.concurrent.TimeUnit;
/**
* @Author: xiongjun
* @Date: 2020/7/28 11:00
* @description
* @reviewer
*/
public class Event implements Delayed, Serializable {
private String id;
private String requ... |
package yao.servlet.languageServlet;
import yao.bean.Language;
import yao.service.LanguageService;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import ja... |
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.... |
package com.example.myapplication.base;
/*
*@auther:谷建龙
*@Date: 2019/11/16
*@Time:9:10
*@Description:
* */
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.example.myapplication.contacts.Contacts;
public abstract class BaseActivity<P ex... |
package com.elepy.di;
import java.util.Objects;
public class ContextKey<T> {
private final Class<T> classType;
private final String tag;
public ContextKey(Class<T> classType, String tag) {
this.classType = classType;
this.tag = tag == null ? "" : tag;
}
public Class<T> getType() ... |
package snake.util;
import java.util.Objects;
import snake.exception.InvalidIndexException;
public class Position {
public static final int SIZE_OF_BOARD = 10;
private final int row;
private final int column;
public Position(int row, int column) {
if (row >= 0 && row < SIZE_OF_BOARD && colum... |
package com.framework.shiro.auth;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStri... |
package proj;
import java.awt.CardLayout;
import java.awt.Color;
import javax.swing.BoxLayout;
import java.awt.Container;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import ... |
package implementations;
import java.util.Collections;
import java.util.List;
/**
* Created by matie on 2017-05-09.
*/
public class MinHeap {
private int currentSize;
private List<Integer> heapList;
public MinHeap(){
this.heapList = Collections.singletonList(0);
this.currentSize = 0;
... |
/*
* This file is part of PixelCam Mod, licensed under the Apache License, Version 2.0.
*
* Copyright (c) 2016 CrushedPixel <http://crushedpixel.eu>
* Copyright (c) contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
public class BuggyMethod1_acquireExclusiveReadLock {
public boolean acquireExclusiveReadLock(GenericFileOperations<FTPFile> operations, GenericFile<FTPFile> file, Exchange exchange) throws Exception {
boolean exclusive = false;
LOG.trace("Waiting for exclusive read lock to file: " + file);
long lastModified ... |
package daoImpl.member;
public class RecordDaoImpl {
}
|
package com.example.demo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.R... |
package com.yoyuapp.sqlbuilder;
import java.util.List;
public class UpdateSql extends SqlSegment{
public List<Object> getParams(){
return this.params;
}
}
|
package com.fortranbg.serial.handle;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
public class HowToUse {
public static void main(String[] args) {
//Gets an instance
SerialportHandler sHandler = SerialportHandler.getSingleton();
//Gets all ports
ArrayList<... |
package schedulers.components;
public class Process implements Comparable<Process> {
private long processID;
private double arrivalTime;
private double taskDuration; //Burst
private long repeat;
private long arrivingInterval;
private long deadLine;
public Process(long processID, double arr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.