text stringlengths 10 2.72M |
|---|
package pixel.bus.model.gui;
import pixel.bus.model.Vehicle;
import javax.swing.table.AbstractTableModel;
import java.util.List;
/**
* Created by vanley on 17/06/2017.
*/
public class VehiclesOnStationTableModel extends AbstractTableModel {
private final List<Vehicle> vehicleList;
private final String[] ... |
package com.colingodsey.quic.packet.frame;
import io.netty.buffer.ByteBuf;
import com.colingodsey.quic.utils.VariableInt;
import it.unimi.dsi.fastutil.ints.IntArrayList;
import it.unimi.dsi.fastutil.longs.LongConsumer;
import it.unimi.dsi.fastutil.longs.LongSortedSet;
import java.util.SortedSet;
public class Ack i... |
package com.tencent.mm.plugin.appbrand.jsapi.video;
import android.view.View;
import android.view.View.OnClickListener;
class AppBrandVideoView$10 implements OnClickListener {
final /* synthetic */ AppBrandVideoView gaM;
AppBrandVideoView$10(AppBrandVideoView appBrandVideoView) {
this.gaM = appBrandV... |
/*
* Copyright (c) 2014 Anthony Benavente
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
package com.tencent.mm.plugin.welab.a.a;
import android.content.Context;
import android.content.Intent;
import com.tencent.mm.kernel.c.a;
public interface c extends a {
boolean bYN();
boolean bYO();
boolean bYP();
void x(Context context, Intent intent);
}
|
package com.anibal.educational.rest_service.domain.ocr.response;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml... |
package info.czajkowska.spring;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Locale;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
p... |
package com.example.homework.model;
import com.example.homework.model.*;
public class ShapeCalculator extends LineCalc implements Calc2D, Calc3D {
@Override
public double circleArea(Circle circle) {
return Math.round(Math.PI * Math.pow(circle.getR(), 2));
}
@Override
public double re... |
package utils._config.language;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Validation;
import javax.validation.ValidatorFactory;
import org.hibernate.validator.message... |
package com.ch.nd.app;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.net.Uri;
import com.ch.nd.database.DBInfor;
import com.ch.nd.database.sql.CSQLiteOpenHelper;
import com.ch.nd.database.sql.SQLiteProvid... |
package com.liu.Class;
import java.io.Serializable;
public class formation implements Serializable{
private String formationid;//编队id
private String formationname;//编队名称
private int formationnum;//编队成员数
private int formaitontype;//编队类型 (0 unknown 1 car 2 bus 3 special 4 axle)
private Str... |
public class MultiplayerServer implements
ISocketServerListener<SocketConnectionClientConnector>,
ISocketConnectionClientConnectorListener {
private static final String TAG = "SERVER";
private Engine mEngine;
// Port variable needed for clients to connect to the server
private int mServerPort;
//... |
package com.zhouyi.business.core.service;
import com.zhouyi.business.core.model.LedenCollectCategoryNode;
import com.zhouyi.business.core.model.Response;
import com.zhouyi.business.core.vo.LedenCollectCategoryNodeVo;
public interface LedenCollectCategoryNodeService extends
BaseService<LedenCollectCategoryNode... |
package com.uwetrottmann.trakt5.services;
import com.uwetrottmann.trakt5.entities.Comment;
import com.uwetrottmann.trakt5.entities.Credits;
import com.uwetrottmann.trakt5.entities.Movie;
import com.uwetrottmann.trakt5.entities.MovieTranslation;
import com.uwetrottmann.trakt5.entities.Ratings;
import com.uwetrottmann.t... |
package concurrent_test;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
/**
* Description: 生产一个,消费一个的生产消费模型,用"synchronized"实现同步,用"wait"和"notifyAll"实现等待和唤醒线程
*
* @author Baltan
* @date 2018/6/11 09:33
*/
public class ProducerAndConsumerDemo1 {
public static void main(String[] args) ... |
package com.quizcore.quizapp.model.network.response.job;
import com.quizcore.quizapp.model.entity.Job;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class JobsResponse {
List<Job> jobs;
}
|
package com.timmy.framework.netFw.http;
import android.util.Log;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Future;
import java.util.concurrent.FutureTask;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurren... |
package epam.ph.sg.controllers;
/**
* @author Paul Michael T.
*/
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.... |
package com.yancary.dynamicds;
import org.springframework.context.annotation.Import;
import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Import({DataSourceConfig.class, DataSourceRepository.class, DynamicDSAutoConfiguration.class})
public @interface EnableDynamicDataSourc... |
package fel_1;
public class Main {
public static void main(String[] args) {
long startTime = System.nanoTime();
DictionaryService service = new DictionaryService(DictionaryType.ARRAY_LIST);
service.findWordsFile("lab_8_bible.txt");
long endTime = System.nanoTime();
long time... |
package com.tencent.matrix.c;
import org.json.JSONObject;
public final class b {
public String aAL;
public Integer brl;
public JSONObject brm;
public com.tencent.matrix.b.b brn;
public String tag;
public b(int i) {
this.brl = Integer.valueOf(i);
}
public b(JSONObject jSONObje... |
/*
* Copyright (C) 2007 <A href="http://www-ist.massey.ac.nz/JBDietrich" target="_top">Jens Dietrich</a>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 o... |
package com.tencent.mm.plugin.honey_pay.ui;
import com.tencent.mm.ab.l;
import com.tencent.mm.wallet_core.c.h.a;
class HoneyPayCheckPwdUI$17 implements a {
final /* synthetic */ HoneyPayCheckPwdUI kld;
HoneyPayCheckPwdUI$17(HoneyPayCheckPwdUI honeyPayCheckPwdUI) {
this.kld = honeyPayCheckPwdUI;
}... |
package com.devcamp.currencyconverter.model.entities;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(name = "currencies")
public class Currency {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "code", unique = tru... |
package com.rockwellcollins.atc.limp.translate.lustre.transformations;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.eclipse.xtext.EcoreUtil2;
import com.rockwellcollins.atc.limp.Comment;
imp... |
package com.tencent.mm.wallet_core.d;
import android.content.Intent;
import com.tencent.mm.ab.l;
import com.tencent.mm.ui.MMActivity;
public abstract class g {
public MMActivity fEY;
public i uXK;
public abstract boolean d(int i, int i2, String str, l lVar);
public abstract boolean m(Object... objAr... |
package com.dataflow.generation;
import com.dataflow.generation.controlflow.ControlFlow;
import com.dataflow.generation.controlflow.NodeHandler;
import com.github.javaparser.JavaToken;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.Node;
import com.github.javaparser.ast.body.MethodD... |
package onlinepaymentsimulator.domain;
public class PINCode {
private final Integer bank_code;
private final Integer customer_code;
private final User user;
public PINCode(Integer bank_code, Integer customer_code, User user) {
this.bank_code = bank_code;
this.customer_code = customer_... |
package com.framework.aop.helper;
import java.util.HashMap;
import java.util.Map;
import com.framework.aop.annotation.Aspect;
import com.framework.aop.annotation.Bean;
public class BeanHelper {
private static Map<String, Class> beanContainer = new HashMap<String, Class>();
private static Map<Class, Obj... |
package jumpper;
import javax.imageio.ImageIO;
import java.applet.Applet;
import java.applet.AudioClip;
import java.awt.*;
public class Resources {
private static Image playerImage1;
private static Image playerImage2;
private static Image playerImage3;
private static Image playerImage4;
private ... |
package ArityDemo;
/**
*
* @author Bohdan Skrypnyk
*
* Variable arity methods / Variable Arguments (Varargs)
*/
public class ArityMethods {
static void vaTest(String msg, int... v) {
System.out.print(msg + v.length + " Содержимое / Contain :");
for (int x : v) {
System.out.print(x... |
package com.bcgbcg.br.controller;
import javax.servlet.http.HttpServletRequest;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind... |
package org.ecsoya.yamail.ui.views;
import javax.mail.Message;
import org.eclipse.emf.common.util.EList;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.viewers.IColorProvider;
import org.eclipse.jface.viewers.IFontProvider;
import org.eclipse.jface.viewers.ILabelDecorator;
import org.eclip... |
/*
* Copyright 2010-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
package com.redpandateam.places.model;
import com.google.android.gms.maps.model.LatLng;
import com.google.maps.android.clustering.ClusterItem;
import java.util.ArrayList;
/**
* Created by bjornlexell on 11/08/15.
*/
public class SongPlace implements ClusterItem {
private double lat, lon;
private int likes... |
///* Copyright (c) 2008 Konrad-Zuse-Zentrum fuer Informationstechnik Berlin,
// Barcelona Supercomputing Center - Centro Nacional de Supercomputacion and
// Consiglio Nazionale delle Ricerche.
//
// This file is part of XtreemFS. XtreemFS is part of XtreemOS, a Linux-based
// Grid Operating System, see <http://www.xtr... |
package android.support.v7.widget;
class s$a {
long ND = 0;
s$a NE;
s$a() {
}
final void set(int i) {
while (i >= 64) {
this.eP();
this = this.NE;
i -= 64;
}
this.ND |= 1 << i;
}
private void eP() {
if (this.NE == null) ... |
package com.tencent.mm.protocal;
import com.tencent.mm.protocal.c.g;
public class c$r extends g {
public c$r() {
super("cancelDownloadTask", "cancel_download_task", 39, false);
}
}
|
package myHibernateUtil;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.service.ServiceRegistryBuilder;
import entity.Users;
pu... |
package com.sage.rpg;
import java.awt.Dimension;
import javax.swing.JFrame;
public class Window {
private String title = "";
private int width, height;
private JFrame frame;
public Window(Game game, String title, int width, int height) {
this.title = title;
this.width = width;
this.hei... |
package com.fanbo.kai.zhihu_funny.model;
import android.os.Parcel;
import com.fanbo.kai.zhihu_funny.model.base.BaseModel;
import java.util.Date;
import java.util.List;
/**
* Created by HK on 2017/1/25.
* Email: kaihu1989@gmail.com.
*/
public class Section extends BaseModel{
private String name;
private i... |
package com.speakin.recorder.module.control.socket.handle;
/**
* @author keshuangjie
* @date 2014-12-4 下午7:41:14
* @package com.jimmy.im.client.socket
* @version 1.0
* 消息发送请求
*/
public class MsgRequest {
private MsgParam mParam;
private SendCallback mSendCallBack;
public MsgRequest(MsgParam param, SendCal... |
/*
* Copyright (C) 2015 Miquel Sas
*
* 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 program is d... |
package com.example.administrator.study.UI;
/**
* Created by Administrator on 2018/1/27.
*/
public class Fruit {
private String name;
private int imgId;
public Fruit(String name,int imgId){
this.name=name;
this.imgId=imgId;
}
public String getName(){
return name;
}
... |
package cdn.shared.message;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.assertNull;
import java.util.Map;
import org.testng.annotations.Test;
import cdn.discovery.Cdn;
import cdn.discovery.CdnManager;
import cdn.discovery.Peer;
import ... |
/*
* 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 util;
import dao.*;
import entity.*;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.... |
package com.tencent.mm.plugin.shake.c.c;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import com.tencent.mm.model.au;
import com.tencent.mm.model.c;
import com.tencent.mm.plugin.appbrand.jsapi.share.d;
import com.tencent.mm.sdk.platformtools.w;
import com.tencent.mm.sdk... |
package nc.prog1415.model;
public class Products {
Integer productid;
String productName;
String productInfo;
Integer imageUrl;
public Products(Integer productId,String productName,String productInfo, Integer imageUrl) {
this.productid = productId;
this.productName = productNa... |
package ru.alxant.worker.model;
import org.apache.log4j.Logger;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.*;
import ru.alxant.worker.StartClass;
import ru.alxant.worker.model.support.CellsWorker;
import ru.alxant.worker.model.support.CorrectParceInt;
import ru.alxant.worke... |
package com.tencent.mm.plugin.websearch.c.a;
import com.tencent.mm.plugin.fts.a.a.j;
import com.tencent.mm.plugin.fts.a.l;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.smtt.sdk.WebViewClient;
import java.util.Collections;
import java.util.concurrent.CountDownLatch;
class b$1 implements l {
final ... |
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of the Processing project - http://processing.org
Copyright (c) 2012-16 The Processing Foundation
Copyright (c) 2011-12 Ben Fry and Casey Reas
This program is free software; you can redistribute it and/or modify
it under the terms of the... |
package com.github.enemes2000.serdes;
import com.google.gson.Gson;
import org.apache.kafka.common.serialization.Deserializer;
import java.lang.reflect.Type;
import java.nio.charset.StandardCharsets;
public class JsonDeserializer<T> implements Deserializer<T> {
private final Gson gson = new Gson();
private C... |
package main.tasks.questions;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import main.tasks.AnswerType;
import main.tasks.Variant;
import main.tasks.input.InputNK;
import main.tasks.input.UserInput;
import org.jdom2.Ele... |
/*
* Copyright (C) 2023 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
package com.gzpy.news.service;
import java.util.List;
import com.gzpy.news.entity.NewsType;
public interface NewsTypeService {
/**
* 查询所有文章类型,不分页
* @return
*/
public List<NewsType> findAllNewsType();
/**
* 按类型名称查询文章类型
* @return
*/
public NewsType findNewsTypeByName(String tName... |
package services;
import java.util.List;
import model.CityDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import repositories.ICityRepository;
@Service
public class CityService {
@Autowired
ICityRepository citySvc;
public CityDO addCity(CityDO... |
package Task1;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Calculator main = new Calculator();
main.startCalculator();
}
} |
/**
* This is a generated file. DO NOT EDIT ANY CODE HERE, YOUR CHANGES WILL BE LOST.
*/
package br.com.senior.varejo.pedidos;
import org.springframework.stereotype.Component;
import org.springframework.context.annotation.Lazy;
import br.com.senior.custom.EntityDTOConverter;
@Component
@Lazy
public class ItemDTOCo... |
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
//import javax.swing.ImageIcon;
import com.nitido.utils.toaster.Toaster;
public class JToaster {
public static void main(String[] args) throws InterruptedException, IOException {
File f = new File("C:\... |
/**
* Solutii Ecommerce, Automatizare, Validare si Analiza | Seava.ro
* Copyright: 2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package seava.ad.business.api.security;
import java.util.List;
import seava.ad.domain.impl.security.User;
import seava.ad.domain.impl.security.Us... |
package com.project.linkedindatabase.service;
import com.project.linkedindatabase.domain.Type.BaseType;
import java.sql.SQLException;
public interface BaseTypeService<T> extends BaseService<T, Long> {
public void saveIfNotExist(String name) throws SQLException;
public T findByName(String name) throws... |
package com.example.account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.support.rowset.SqlRowSet;
import org.springframework.web.bind.annotation.Get... |
import java.io.*;
import java.util.*;
class Raktarb {
List<Termek> termekLista;
Map<Integer, Integer> raktarKeszlet;
public void termekBeolvas(String fajlNev) throws IOException {
termekLista = new ArrayList<Termek>();
BufferedReader reader = new BufferedReader(new FileReader(new File(... |
package cn.leo.produce.lifecycle;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* @description:
* @author: fanrunqi
* @date: 2019/4/18 09:40
*/
public class LifeCycleManager {
private static class SingletonHandler{
private static LifeCycleManager lifeCycleManager = n... |
package FuncoesHash;
public class FNV implements InterfaceHashing {
private static final int FNV_32_INIT = 0x811c9dc5;
private static final int FNV_32_PRIME = 0x01000193;
@Override
public long hashLong(String chave) {
int rv = FNV_32_INIT;
final int len = chave.length();
... |
package com.npo.validation;
import com.Validator.Models.Sdata;
import com.Validator.Models.Udata;
import com.npo.validatorService.RangeChooser;
public class ValidateRange {
public static boolean validateUserDataByRange(Udata userData, Sdata schemaData) {
Boolean flag = true;
String v_type = null;... |
package agent;
import agent.Utils.Advice;
import com.alibaba.fastjson.JSON;
import java.io.*;
/**
* Created by 64669 on 2019/7/14.
*/
public class Job implements Serializable{
public int x =1;
public String str = "job";
public int doAdd(int x,String s,long l ,Job j,Main n,double d) {
// Stri... |
package com.example.akoel.servicestartedservice;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
i... |
package com.example.didiorder.presenter;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.util.Log;
import com.example.didiorder.MyApplication;
import com.example.didiorder.adapter.StickListTaskAdapter;
import com.example.didiorder.bean.AllOrder;
import com.example... |
package de.jmda.app.uml.main.jaxb;
import de.jmda.core.cdi.event.ActionOnEvent.AbstractEvent;
public class PublishNodeManagerDataRequest extends AbstractEvent<Object>
{
public PublishNodeManagerDataRequest(Object source) { super(source); }
} |
package interviewbit.array;
import java.util.List;
public class Maxsum_IB_Solution {
public int maxSubArray(final List<Integer> A) {
int sum = Integer.MIN_VALUE;
int last = 0;
for (int num : A) {
last += num;
sum = Math.max(sum, last);
if (last < 0)
last = 0;
}
return sum;
}
}
|
package org.opentosca.toscaengine.service;
import java.util.HashMap;
import javax.xml.namespace.QName;
/**
* This class holds data for a NodeTemplate and it's min and maxOccurence
* This information is stored in a Hashmap. There the QName of the NodeTemplate is mapped to the Occurences of this NodeTemplate speci... |
package com.tencent.mm.plugin.profile.ui;
import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.view.View;
import com.tencent.mm.R;
import com.tencent.mm.pluginsdk.ui.d.j;
import com.tencent.mm.sdk.platformtools.bi;
class SayHiWithSnsPermissionUI$a extends ClickableSpan {
public S... |
package gov.virginia.dmas.dto;
import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Past;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonIgnorePropertie... |
package martin.s4a.shift4all2;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.view.Action... |
package com.xxx;
import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.tree.ParseTree;
import org.antlr.v4.runtime.tree.ParseTreeWalker;
public class Main {
public static void main(String[] args) throws Exception {
// 这里处理的是"1+2"这一行计算器语言,读... |
package com.alanb.gesturetextinput;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android... |
package com.gcj.mysql;
import com.gcj.bean.InstructionBean;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.sql.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class MySQLUtil {
private static final Log LOG = LogFactory.getLog(MyS... |
package com.example.easymodbus_project.controller;
import de.re.easymodbus.exceptions.ModbusException;
import java.io.IOException;
public class WriteCoilsRegister {
public static void writeCoilsRegister(int address, boolean value){
try {
ModbusClientConnect.modbusClient.Disconnect();
... |
package com.cqrcb.webapp;
import net.sourceforge.jwebunit.html.Row;
import net.sourceforge.jwebunit.html.Table;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.ResourceBundle;
import static net.sourceforge.jwebunit.junit.JWebUnit.*;
public class StaffWebTest {
private R... |
/*
* 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 mude.srl.ssc.config.endpoint;
/**
*
* @author jackarian
*/
public enum URLEndpoint {
ROOT_END_POINT("/api"),
AUTH(R... |
/*******************************************************************************
* Copyright (c) 2012, All Rights Reserved.
*
* Generation Challenge Programme (GCP)
*
*
* This software is licensed for use under the terms of the GNU General Public
* License (http://bit.ly/8Ztv8M) and the provisions of P... |
import java.util.Scanner;
public class RecOne {
/*
Programme consistant à calculer tous les termes d'une suite
définie par récurrence jusqu'à un rang n donné par l'utilisateur.
Il n'est pas possible de modifer l'expression de U(n+1) durant l'execution du
programme. L'utilisateur peut cependant... |
/**
*
*/
package com.shubhendu.javaworld;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
/**
*Given two strings s and t which consist of only lowercase letters.
*String t is generated by random shuffling string s and then add one more letter at a random position.
*Find the letter t... |
package com.pine.template.demo.old.dagger2;
/**
* Created by tanghongfeng on 2017/8/10.
*/
public class ClassTwo {
private final static String TAG = "ClassTwo";
private String mToStringStr;
public ClassTwo() {
setToStringStr("Constructor Provide ClassTwo; ");
}
public ClassTwo(String s... |
package br.udesc.model.dao.GLPK;
import br.udesc.model.dao.DisciplinaJpaController;
import br.udesc.model.dao.SalaHorarioJpaController;
import br.udesc.model.dao.SalaJpaController;
import br.udesc.model.entidade.Disciplina;
import br.udesc.model.entidade.Sala;
import br.udesc.model.entidade.SalaHorario;
import java.io... |
package client_1;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.UnknownHostException;
public class MyClient {
private Socket client; //定义客户端套接字
//建立客户端函数
void getClient()
{
try {
clien... |
package com.rc.components.message;
import java.awt.*;
/**
* 左侧文本聊天气泡
*/
public class RCLeftTextMessageBubble extends RCTextMessageBubble
{
public RCLeftTextMessageBubble()
{
NinePatchImageIcon backgroundNormal = new NinePatchImageIcon(this.getClass().getResource("/image/left.9.png"));
... |
package test.question.answer.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.jsp.PageContext;
import test.controller.Action;
import test.controller.ActionForward;
import test.question.answer.dao.QAWriterDao;
import test.question.answer... |
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class DBConnector {
private static Connection con = null;
private static String uName = "root";
private static String pWord = "root123";
private static String Url = "jdbc:mysql://localho... |
package com.ask.atw.Activities;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import com.ask.atw.Frag... |
package com.tencent.mm.ui.base;
import android.database.DataSetObserver;
class MMListPopupWindow$c extends DataSetObserver {
final /* synthetic */ MMListPopupWindow tvV;
private MMListPopupWindow$c(MMListPopupWindow mMListPopupWindow) {
this.tvV = mMListPopupWindow;
}
/* synthetic */ MMListP... |
import java.util.Random;
/**
* Constructor extends enemy and takes in armor, health, name, and damage
* @author nicholasreagan
*/
public class Boss extends Enemy{
public Boss (String name, double health, double damage, int armor){
super(name, health, damage, armor);
}
/**
* Function al... |
/*
* Copyright (C) 2020-2023 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
package dev.schoenberg.kicker_stats.rest;
public interface ServerService {}
|
package br.cin.ufpe.gui;
/**
*
* @author Charles Bezerra
*/
public class GUI extends javax.swing.JFrame {
double x;
double vi;
double xi;
double si;
double ui;
/**
* Creates new form ADS
*/
public GUI() {
initComponents();
}
/**
* This method is called fro... |
package org.usfirst.frc.team4229.robot;
import edu.wpi.cscore.UsbCamera;
import edu.wpi.first.wpilibj.CameraServer;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Scheduler;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
import edu.... |
package com.hotmail.at.jablonski.michal.shoppinglist.ui.addItem.presenter;
import android.support.annotation.Nullable;
import com.hotmail.at.jablonski.michal.shoppinglist.db.dataManagers.rootItems.RootItemInserter;
import com.hotmail.at.jablonski.michal.shoppinglist.ui.addItem.AddItemViewController;
import com.hotmai... |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class TwoDimArray {
public static void main(String[] args) {
fillArray(getN());
}
private static int getN(){
int n;
BufferedReader reader = new BufferedReader(new InputStreamReader(S... |
package com.lizikj.tracker.thread;
import java.util.List;
import com.lizikj.tracker.context.TraceContext;
import com.lizikj.tracker.pojo.Span;
import com.lizikj.tracker.utils.HttpClientUtils;
import com.lizikj.tracker.utils.JsonUtils;
import com.lizikj.tracker.utils.SpanManager;
/**
*
* @auth zone
* @date 2017-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.