text stringlengths 10 2.72M |
|---|
package com.facebook.react.views.modal;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.os.Build;
import android.support.v4.view.u;
import android.view.View;
import android.view.Window;
import android.view.WindowInsets;
import com.facebook.react.bridge.R... |
package com.bytedance.ies.bullet.kit.rn.internal;
import android.text.TextUtils;
import com.bytedance.ies.bullet.b.e.a.f;
import com.bytedance.ies.bullet.b.e.a.h;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.ReactApplicationContext;
imp... |
package com.leo.pattern.threadpool;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
public class CustomRejectedExecutionHandler implements RejectedExecutionHandler{
/**
* @see java.util.concurrent.ThreadPoolExecutor.AbortPolicy and so on
*/
@Override
publ... |
package com.pay.schedule;
import com.pay.schedule.pojo.model.ScheduleExecutionRecord;
import com.pay.schedule.pojo.model.ScheduleWorkJob;
import com.pay.schedule.pojo.model.dict.ScheduleExecutionState;
import com.pay.schedule.service.ScheduleExecutionRecordService;
import lombok.extern.slf4j.Slf4j;
import org.junit.Ig... |
package com.game.huyhoang.weirdchess;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
/**
* Created by huyhoang on 13/07/2016.
*/
public class Player extends GameObject {
private long startTime;
private boolean playing;
private Bitmap bitmap;
private bo... |
package app;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
/**
* Class that runs our Photo Application. (Starts the UI logic in Photo... |
package com.tencent.mm.plugin.appbrand.jsapi.d;
import com.tencent.mm.plugin.appbrand.page.p;
import com.tencent.mm.plugin.appbrand.widget.input.AppBrandInputInvokeHandler;
import com.tencent.mm.plugin.appbrand.widget.input.AppBrandInputInvokeHandler.a;
class c$2 implements a {
final /* synthetic */ AppBrandInput... |
package pl.ark.chr.buginator.data;
import org.apache.commons.lang3.StringEscapeUtils;
import pl.ark.chr.buginator.domain.core.Error;
import pl.ark.chr.buginator.domain.core.ErrorStackTrace;
import java.util.List;
/**
* Created by Arek on 2017-02-01.
*/
public class ErrorWrapper {
private final static String E... |
package tests.contactUsTests;
import libs.ConfigData;
import libs.ExcelDriver;
import org.junit.After;
import org.junit.Assert;
import org.junit.Test;
import pages.ContactUsPage;
import tests.ParentTest;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.Map;
public class TestCase10 ... |
package com.tencent.mm.pluginsdk.model.app;
import android.support.design.a$i;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.ak.o;
import com.tencent.mm.compatible.util.g;
import com.tencent.mm.g.a.ms;
import com.tencent.mm.model.au;
import com.tencent.mm.mod... |
/*
* The MIT License
*
* Copyright 2016 Thibault Debatty.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy... |
package com.classcheck.panel;
import java.awt.Cursor;
import java.awt.FlowLayout;
import java.awt.Font;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swi... |
package cn.com.ykse.santa.service.vo;
/**
* Created by youyi on 2016/5/20.
*/
public class HistoryCodeTagVO {
private Integer historyId;
private String appName;
private String tag;
private String publishedCommit;
private String operator;
private String gmtOperate;
public Integer ge... |
/* Copyright 2019, Senjo Org. Denis Rezvyakov aka Dinya Feony Senjo.
*
* 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
*/
package org.sen... |
package com.sysh.entity.helplog;
import java.io.Serializable;
/**
* ClassName: <br/>
* Function: 图片 路径存储<br/>
* date: 2018年07月07日 <br/>
*
* @author 苏积钰
* @since JDK 1.8
*/
public class HelpImageModel implements Serializable {
private String id,imagePath,logId,helpNumber;
public HelpImageModel(Strin... |
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Main {
public static void main(String[] args) {
final JFrame frame = new JFrame("FrameDemo");
frame.setSize(new Dimension(960, 600));
frame.setDefaultCloseOperation... |
package com.jim.multipos.ui.settings.print;
import com.jim.multipos.core.BasePresenterImpl;
import javax.inject.Inject;
public class PrintPresenterImpl extends BasePresenterImpl<PrintView> implements PrintPresenter {
@Inject
protected PrintPresenterImpl(PrintView printView) {
super(printView);
}... |
package com.ybg.mq.guide;
import org.apache.commons.codec.binary.Base64;
import com.ybg.mq.util.MD5;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgor... |
/*
* 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 customaboutdialog;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fx... |
package ch.springcloud.lite.core.mail;
import org.springframework.beans.factory.annotation.Autowired;
import lombok.Data;
@Data
public class EmailInfo {
@Autowired
Sender sender;
@Autowired
Receiver receiver;
volatile int cpuratio = 90;
volatile int memoryratio = 80;
volatile int duration = 5;... |
package com.WebServiceProduceCrud.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.b... |
import java.util.*;
public class First_And_Last_Index {
public static void main(String args[]){
Scanner scn=new Scanner(System.in);
int n=scn.nextInt();
int a[]=new int[n];
for(int i=0;i<n;i++){
a[i]=scn.nextInt();
}
int k=scn.nextInt();
scn.close(... |
package com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage.AdLandingPageComponent.component;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewGroup.MarginLayoutParams;
im... |
package com.njc.cartshopping.service;
import com.njc.cartshopping.dto.OrderDto;
import com.njc.cartshopping.model.Order;
import com.njc.cartshopping.repository.OrderRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.convert.ConversionService;
import org.springfra... |
package controller;
import java.io.IOException;
import java.sql.SQLException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSe... |
public class Student extends Person{
protected final String id;
public Student(){
//default constructor of super/parent class is automatically called
id="";
}
public Student(String id, String name){
super(name); //calling constructor of super class - must be first statement
this.id = id;
... |
package edu.calstatela.cs245.qiao.project;
public class Validity {
public static boolean isInt(String s){
try {
Integer.valueOf(s);
return true;
} catch (Exception e) {
return false;
}
}
public static boolean isDouble(String s){
try {
Double.valueOf(s);
return true;
} catch (Exception e... |
/*
文件流(节点流)
(字节流:FileInputStream / FileOutputStream ——视频,音频,图片
(字符流:FileReader / FileWriter——文本文件.doc+.txt
缓冲流(处理流)
(字节缓冲流:BufferedInputStream / BufferedOutputStream
(字符缓冲流:BufferedReader / BufferedWriter
* */
package IO;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;... |
package com.webcloud.func.email.fragment;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
impo... |
package com.tencent.mm.plugin.appbrand.launching;
import com.tencent.mm.plugin.appbrand.appcache.WxaPkgWrappingInfo;
import com.tencent.mm.plugin.appbrand.launching.y.a;
import com.tencent.mm.plugin.appbrand.q.h;
import java.util.Locale;
import java.util.concurrent.CountDownLatch;
class y$a$1 extends n {
final /*... |
package ModeType.Impl;
import ModeType.PayType;
/**
* @Author: lty
* @Date: 2020/11/20 14:11
*/
public class CnPayTypeImpl implements PayType {
public String toPay() {
System.out.println("使用场内支付..");
return "使用场内支付成功";
}
}
|
package algorithm.programmers.hash;
import java.util.Arrays;
public class programmers_courses30_lessons42577 {
public static void main(String[] args) {
String[] phone_book = { "119", "1219", "97674223", "13195524421", "9767" };
System.out.println(solution(phone_book));
}
public static boolean solution(String... |
package com.store.util;
import java.util.UUID;
public class MyUUID {
public static String getId() {
return UUID.randomUUID().toString().replace("-", "");
}
}
|
package id.ac.ub.ptiik.papps.base;
public class MessageSent extends Message {
public MessageSent(
int id, int type, String message, String sent,
String received, String sender, String receiver, int status) {
this.id = id;
this.message = message;
this.type = Message.TYPE_SENT;
this.sent = sent;
this... |
package niuke;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
/**
* Created by likz on 2023/7/7
*
* @author likz
*/
public class StringSimplify {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));... |
/*
* Copyright 2009 Kjetil Valstadsve
*
* 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 agre... |
package com.library.parser;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonNode;
import com.library.domain.Author;
import com.library.domain.Book;
import com.li... |
class GreetingsA {
public static void main(String[] args) {
System.out.println("Szia! Hogy hivnak?"); //hosszu ekezet kerulese winfoson
String name = System.console().readLine(); //console metodus, programfutas megall es beker egy sort
//nev eltarolasa valtozoban
System.out.println("Udv " + name + ", mi ujsag?... |
package com.nogago.android.maps.download;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.io.FileUtils;
import com.nogago.android.maps.Constants;
import com.nogago.android.maps.R;
import com.nogago.android.maps.download.task.readareas.Area;
import com.noga... |
package com.research.cep;
import com.google.common.base.Charsets;
import com.google.gson.Gson;
import org.apache.commons.lang3.StringUtils;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.cep.CEP;
import org.apache.flink.cep.PatternStream;
import org.apache.flink.cep.functions.Patt... |
package com.packers.movers.commons.utils;
public enum DateTimeFormat {
DATE("yyyy-MM-dd"),
DATE_TIME("yyyy-MM-dd'T'HH:mm:ss");
String value;
DateTimeFormat(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}
|
package com.dao;
import com.entidades.Cliente;
import java.util.List;
import javax.ejb.Local;
/**
*
* @author mertins
*/
@Local
public interface ClienteDAOLocal {
Cliente create(Cliente value);
Cliente retrieve(Cliente value);
void update(Cliente value);
void delete(Cliente value);
List<Cli... |
public class Infiltrator {
int len;
int wid;
int x=0;
int y=0;
Border border;
Infiltrator(int l, int w, double p)
{
len = l;
wid = w;
border = new Border(l, w, p);
}
public void move()
{
if(!border.stateOfCell(x, y+1))
... |
package com.qgil.pojo;
import java.util.Date;
public class QgilProenum {
private Long id;
private String proenumname;
private Date create_time;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getProenumname() {
... |
package Main;
import javafx.scene.canvas.Canvas;
public class ZoomCanvas extends Canvas {
}
|
package Homework5;
import java.util.Scanner;
public class ReverseArrayList {
public static void main(String[] args) {
// TODO Auto-generated method stub
//declare an array of 10 integers
int[] array=new int[10];
//Invoke reverse method which returns the original list in reversed order
array=reverse(arr... |
package se.kth.iv1350.pointofsale.controller;
/**
* Thrown when an operation fails.
*/
public class OperationFailedException extends Exception {
/**
* Creates an instance with the specified message and cause of failure
* @param msg The message
* @param cause The exception that caused this exceptio... |
package CashMachine;
import java.util.Scanner;
public class CashMachine {
static int pin = 1234;
static float balance = 1000;
public static void announce(Scanner scan) {
System.out.println(String.format("You have £%s in your account.",balance));
if (balance == 0) {
System.out.p... |
import javax.swing.JOptionPane;
import org.jointheleague.graphical.robot.Robot;
public class ObedientRobot {
Robot obey = new Robot();
public static void main(String[] args) {
ObedientRobot rob = new ObedientRobot();
rob.basics();
String shape = JOptionPane.showInputDialog("Do you want to draw a square, triangl... |
package com.bl.algorithm.PrimeNumbersInGivenRange;
import java.util.*;
import java.io.*;
public class PrimeNumbersInGivenRangeMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int def = 0;
System.out.println("Enter the start of range ");
... |
//
// Wire
// Copyright (C) 2016 Wire Swiss GmbH
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This progr... |
package org.yuan.vita.demo;
public class Hello {
public void println() {
System.out.println("Hello!");
}
}
|
package com.rex.demo.study.demo.driver.stream.join;
import com.rex.demo.study.demo.util.CommonUtils;
import com.rex.demo.study.demo.util.FlinkUtils2;
import org.apache.flink.api.common.functions.JoinFunction;
import org.apache.flink.api.common.serialization.SimpleStringSchema;
import org.apache.flink.api.java.function... |
package com.kdp.wanandroidclient.ui.project;
import com.kdp.wanandroidclient.R;
import com.kdp.wanandroidclient.application.AppContext;
import com.kdp.wanandroidclient.bean.Article;
import com.kdp.wanandroidclient.net.callback.RxObserver;
import com.kdp.wanandroidclient.net.callback.RxPageListObserver;
import com.kdp.... |
package com.techelevator;
public class KataNumbersToWords {
// still need to do logic for when number equals 20 exactly
// still need to do logic for when number equals 30 exactly... and 40 and 50 and
// 60 and 70 and 80 and 90
public static String convertToWord(int number) {
if (number < 20) {
return... |
package bnorm.virtual;
import robocode.Bullet;
public interface IBulletWave extends IVectorWave {
Bullet getBullet();
}
|
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package BPMN.impl;
import BPMN.BPMNDefaultFlow;
import BPMN.BPMNModelElement;
import BPMN.BPMNPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.... |
package net.sf.ardengine.shapes;
import net.sf.ardengine.Core;
import net.sf.ardengine.Node;
import net.sf.ardengine.renderer.IDrawableImpl;
public class Circle extends Node implements IShape{
/**Used by renderer to store object with additional requirements*/
protected final IShapeImpl implementation;
protected ... |
import java.io.*;
class CharTest
{
public static void main(String args[]) throws IOException
{
char ch;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
while(true)
{
System.out.print("Enter a character: ");
ch=(char)br.read();
System.out.println("You entered: ");
if(Charact... |
package sorting;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
public class test {
public static void main(String []args){
ArrayList<String> obj= new ArrayList<String>();
obj.add("a");
obj.add("b");
obj.add("c");
obj.add("d");
... |
package sec11.exam01_arrays;
//구현 클래스
public class Member implements Comparable<Member> {
String name;
Member(String name){
this.name=name;
}
@Override
public int compareTo(Member o) {
// TODO Auto-generated method stub
return name.compareTo(o.name);
}
}
|
/**
* <p>Copyright: Copyright(c) 2015</p>
* <p>Company: gome.com.cn</p>
* <p>2015年2月27日下午6:11:22</p>
* @author wangyunpeng
* @version 1.0
*/
package neo.ce.service.impl;
import neo.ce.service.IVirtualService;
/**
* desc:
* <p>创建人:wangyunpeng 创建日期:2015年2月27日下午6:11:22</p>
* @version V1.0
*/
... |
package com.sharpower.action;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.opensymphony.xwork2.ActionSupport;
import com.sharpower.entity.FunTroubleVariable;
import com.sharpower.service.FunTroubleVariableService;
public class AjaxFunTroubleVariableAct... |
/*
* LumaQQ - Java QQ Client
*
* Copyright (C) 2004 notXX
* 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... |
package com.ua.serg.alex.buy.any.things.services.impl;
import com.ua.serg.alex.buy.any.things.dao.ProductDao;
import com.ua.serg.alex.buy.any.things.model.Category;
import com.ua.serg.alex.buy.any.things.model.Order;
import com.ua.serg.alex.buy.any.things.model.Product;
import com.ua.serg.alex.buy.any.things.model.Use... |
package factoryTest;
import Ciphers.Cipher;
import Ciphers.Impl.CesarCipher1;
import Ciphers.Impl.Root_13Cipher;
import exceptions.CipherNotFoundException;
import factories.Factory;
import factories.impl.CipherFactory;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class CipherFact... |
package eece417project;
import java.io.IOException;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.da... |
package server;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
/**
* This is the server class
* Del av gruppuppgift DA343A
* @author Gustav Frigren, Karl-Ebbe J�nsson
*
*/
public class Server... |
package logic;
/**
* Created by Mateusz on 15.05.2017.
*/
public class TennisGameInitialSettings {
private static final int MAX_PLAYERS_AMOUNT = 2;
private final TennisPlayer[] tennisPlayerList;
public TennisGameInitialSettings(TennisPlayer firstPlayer, TennisPlayer secondPlayer) {
this.tennis... |
package pe.com.tss.bean;
import java.io.Serializable;
import javax.persistence.*;
import org.eclipse.persistence.annotations.ReturnInsert;
import java.math.BigDecimal;
import java.util.Date;
/**
* The persistent class for the RAIL_RATE database table.
*
*/
@Entity
@Table(name = "RAIL_RATE")
@NamedQuery(name = "... |
/*
* (C) Copyright 2014,2016 Hewlett Packard Enterprise Development LP
*
* 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... |
package core;
public class Vector2D {
public float x;
public float y;
public Vector2D(float x, float y) {
this.x = x;
this.y = y;
}
public Vector2D() {
this.x = 0.0f;
this.y = 0.0f;
}
public Vector2D set(float x, float y) {
this.x = x;
this... |
package com.example.dllo.notestudio.DemoExpandable;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.ExpandableListView;
import android.widget.TextView;
import com.example... |
package com.github.ngoanh2n;
import org.apache.commons.lang3.reflect.FieldUtils;
import org.openqa.selenium.WebDriver;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.IInvokedMethod;
import org.testng.IInvokedMethodListener;
import org.testng.ITestContext;
import org.testng.ITestResult;
impo... |
package com.tencent.mm.plugin.radar;
import com.tencent.mm.model.ar;
import com.tencent.mm.pluginsdk.b.b;
import com.tencent.mm.pluginsdk.b.c;
import com.tencent.mm.pluginsdk.n;
public final class Plugin implements c {
public final n createApplication() {
return (n) new b();
}
public final b getC... |
package com.tencent.tencentmap.mapsdk.a;
import android.os.AsyncTask;
import com.tencent.tencentmap.mapsdk.a.nl.a;
import com.tencent.tencentmap.mapsdk.a.nl.c;
import java.lang.ref.WeakReference;
class nl$b extends AsyncTask<String, Void, c> {
final /* synthetic */ nl a;
private WeakReference<a> b;
publi... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Shot {
private String reply;
private int gorizont;
private int vertical;
private int[][] enemyBattleground;
private String[] yes={"yes","ok","lf","gjgfk","hit","wounded","killed","kill","da","да","попал","... |
package com.sagunpandey.spookyspidersmash;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import ... |
package fr.lteconsulting;
import java.util.Random;
public class Conway implements IConway
{
private final int width;
private final int height;
private boolean board[];
public Conway( int width, int height )
{
this.width = width;
this.height = height;
board = new boolean[width * height];
}
public void... |
package com.wzjing.scan.camera;
import android.graphics.ImageFormat;
import android.graphics.Point;
import android.hardware.Camera;
import android.util.Log;
import android.view.SurfaceHolder;
import androidx.annotation.NonNull;
import com.google.zxing.client.android.camera.CameraConfigurationUtils;
import java.io.I... |
package com.emn.member.action;
import java.util.Map;
import com.emn.common.EmnAction;
import com.emn.common.SqlMapConfig;
import com.emn.common.SqlMapUsableObj;
import com.emn.member.model.Member;
import com.opensymphony.xwork2.ActionContext;
public class ChangeBasicInfoAction extends EmnAction {
private String m... |
package org.example.broker.core.converter;
import org.example.broker.api.domain.Client;
import org.example.broker.core.entity.ClientEntity;
import org.springframework.stereotype.Component;
@Component
public class ClientConverter {
public ClientEntity toEntity(Client client) {
var entity = new ClientEntit... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.magapinv.www.reportes;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.sql.Connection;
import java.sql.DriverManager;
im... |
module com.mycompany.casecocher {
requires javafx.controls;
requires javafx.fxml;
requires java.base;
requires javafx.graphicsEmpty;
opens com.mycompany.casecocher to javafx.fxml;
exports com.mycompany.casecocher;
} |
package LeetCode.DynamicProgramming;
public class HouseRobberII {
public int rob(int[] nums){
if(nums.length == 0) return 0;
if(nums.length == 1) return nums[0];
int m1 = max(nums, 0, nums.length - 1);
int m2 = max(nums, 1, nums.length);
return Math.max(m1, m2);
}
public int max(int[] num... |
package pl.cwanix.opensun.authserver.server;
import org.springframework.stereotype.Component;
import lombok.RequiredArgsConstructor;
import pl.cwanix.opensun.authserver.server.session.AuthServerSessionManager;
import pl.cwanix.opensun.commonserver.packets.SUNPacketProcessorExecutor;
import pl.cwanix.opensun.co... |
public class PhonePlan {
int minutesAllowed;
int minutesUsed;
int dataAllowed;
int dataUsed;
boolean planType;
public PhonePlan(int a, int d, boolean p) {
minutesAllowed = a;
dataAllowed = d;
planType = p;
minutesUsed = 0;
dataUsed = 0;
}
public ... |
package com.myapp.model;
public class Player {
private String id;
private Board board;
public boolean fireMissile(Board board, Cell cell) {
return board.attack(cell);
}
public Player(String id, Board board) {
this.id = id;
this.board = board;
}
public String getI... |
package com.yoeki.kalpnay.hrporatal.Profile.Model.user_info;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by IACE on 27-Sep-18.
*/
public class User {
@SerializedName("status")
@Expose
public String status;
@Seri... |
package com.tencent.mm.protocal.c;
import com.tencent.mm.bk.a;
import com.tencent.mm.plugin.appbrand.s$l;
public final class ll extends a {
public String bTi;
public String hyz;
public String knE;
public String lMV;
public String lMW;
public String lMX;
public String pnv;
public String... |
package controller.command.impl;
import controller.command.Command;
import controller.constants.FrontConstants;
import controller.constants.Messages;
import controller.constants.PathJSP;
import controller.exception.ServiceLayerException;
import controller.service.RouteService;
import controller.service.ServiceFactory;... |
package com.lfd.day0120_04_news;
import java.util.List;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;
import com.lfd.day0120_04_news.adapter.NewsAdapter;
import com.lfd.day0120_04_news.bean.News;
import com.lfd.day0120_04_news.utils.NetUtils;
public class MainAct... |
package com.danvarga.msscbrewery.web.mappers;
import com.danvarga.msscbrewery.domain.Beer;
import com.danvarga.msscbrewery.web.model.BeerDto;
import org.mapstruct.Mapper;
// Set to use the custom DateMapper.
@Mapper(uses = DateMapper.class)
public interface BeerMapper {
BeerDto beerToBeerDto(Beer beer);
Bee... |
package com.issp.ispp.entity;
import java.util.*;
import javax.persistence.*;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.validator.constraints.Length;
impor... |
package be.cylab.mark.detection;
import be.cylab.mark.core.ClientWrapperInterface;
import be.cylab.mark.core.DetectionAgentInterface;
import be.cylab.mark.core.DetectionAgentProfile;
import be.cylab.mark.core.Event;
/**
* Dummy detection agent, which does not try to read or write to the datastore.
* Can be used to ... |
package ufc.br.so.services;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;
import ufc.br.so.memory.Page;
import ufc.br.so.programs.Program;
public class DateTimeService extends Program {
public DateTimeService() {
this.setName("datetime");
thi... |
package game;
import states.GameState;
import states.MenuState;
import states.StateManager;
import java.awt.*;
import java.awt.image.BufferStrategy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
// Removed the arguments from Game() and moved them directly into the GameState class, allo... |
package test.springsandbox.annotations;
import java.util.Random;
import org.springframework.stereotype.Component;
@Component
public class RandomFortuneService implements FortuneService {
private String[] data = {
"Random 1",
"Random 2",
"Random 3"
};
private Random random = new Random(... |
package com.company.tests;
import com.company.pages.BoardsPageHelper;
import com.company.pages.HomePageHelper;
import com.company.pages.LoginPageHelper;
import org.openqa.selenium.support.PageFactory;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public clas... |
package com.example.monapplicationtd3.presentation.model.view;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.app.Activity;
import android.co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.