text stringlengths 10 2.72M |
|---|
package com.logical.program;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
public class App {
public static void main(String[] args) {
List<Integer> list = new ArrayList<>();
/// 4 6 5 3 3 1
list.ad... |
package codility.numberocurrs;
class Solution {
public int solution(int A, int B) {
String Astr = Integer.toString(A);
String Bstr = Integer.toString(B);
int answ = 0;
if(!Bstr.contains(Astr)){
answ = -1;
}
else{
answ = Bstr.indexOf(A... |
package com.anditer.contentproviders;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
@Override
pr... |
package KnownLanguageAndUnknownKeyLength;
import edu.duke.*;
import java.util.*;
public class VigenereBreaker {
public String sliceString(String input, int whichSlice, int totalSlices) {
StringBuilder sb = new StringBuilder(input);
String newString = "";
for (int i = whichSlice; i < sb.leng... |
package net.my.test.utils;
import android.content.Context;
import android.media.MediaPlayer;
import net.my.test.R;
public class MusicPlayer {
private static MediaPlayer INSTANCE;
public static MediaPlayer get(Context context) {
if (INSTANCE == null) {
INSTANCE = MediaPlayer.create(contex... |
package com.tencent.mm.plugin.appbrand.dynamic.launching;
import com.tencent.mm.ab.b.a;
import com.tencent.mm.ab.w;
import com.tencent.mm.kernel.g;
import com.tencent.mm.protocal.c.nq;
import com.tencent.mm.protocal.c.nr;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
public fi... |
package customer.gajamove.com.gajamove_customer;
import androidx.appcompat.app.AppCompatActivity;
import customer.gajamove.com.gajamove_customer.adapter.FavDriverAdapter;
import customer.gajamove.com.gajamove_customer.adapter.MemberBankAdapter;
import customer.gajamove.com.gajamove_customer.bank.BankScreen;
import cus... |
/*
* Copyright 2000-2011 JetBrains s.r.o.
*
* 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 esir.dom11.nsoc.model;
public enum DataType {
UNKNOWN,
LIGHT,
TEMPERATURE,
BRIGHTNESS,
HUMIDITY,
POWER,
SWITCH,
SHUTTER,
LAMP,
HEAT;
public String getValue() {
return this.name();
}
}
|
package com.kuang.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author :ltb
* @date :2020/7/15
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
private Integer id;
private String name;
private String pwd;
}
|
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Scanner;
/**
* Class to return a list of books.
*/
public class BookLister {
private ArrayList<Book> bookDirectory;
private static final String LIST_BOOKS_MESSAGE = "\nHELLO FROM THE LIST OF BOOKS";
public BookLister(ArrayList<Boo... |
package week2.day2;
import java.util.Scanner;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
import io.github.bonigarcia.wdm.WebDriverManager;
public class Ass2EditLeads {
... |
//////////////////////////////////////////////////////////////////////////////////
//
// IFSListFile example. This program uses the integrated file system classes
// to list the contents of a directory on the server.
//
// Command syntax:
// IFSList system directory
//
// For example,
// IFSList MySystem /path1
... |
package com.lingnet.vocs.dao.monit;
import java.util.HashMap;
import java.util.List;
import com.lingnet.common.dao.BaseDao;
import com.lingnet.util.Pager;
import com.lingnet.vocs.entity.ConstantData;
public interface MonitoringDao extends BaseDao<ConstantData, String> {
public List<Object[]> findCo... |
package mypackage;
import java.io.IOException;
import java.io.InputStream;
import javax.microedition.io.Connector;
import javax.microedition.io.HttpConnection;
import net.rim.device.api.system.EventLogger;
import net.rim.device.api.ui.UiApplication;
public class Utils {
public static void getDataFromUrl(final Str... |
package org.newdawn.slick.font.effects;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.newdawn.slick.UnicodeFont;
import org.newdawn.slick.font.Glyph;
public... |
/**
* Created by red6 on 4/11/2017.
*/
public class Monkey extends Animal {
public Monkey (String name) {
setName(name);
System.out.println("Name on constructor " + getName());
}
// public static String toString(String ss) {
// return "Name is: " + super getName() + "";
// }
}... |
package Driving;
import org.junit.Assert;
import org.junit.Test;
public class TeleporterTest {
@Test
public void getSpeedTest(){
// Given
Double max=Double.MAX_VALUE;
// When
Teleporter test=new Teleporter();
Double speed=test.getTopSpeed();
// Then
As... |
package com.fourstay.step_definitions;
import java.util.List;
import org.apache.poi.util.SystemOutLogger;
import org.junit.Assert;
import com.fourstay.pages.EditProfile;
import com.fourstay.utilities.BrowserUtilities;
import com.fourstay.utilities.DBUtility;
import com.fourstay.utilities.DBUtility.DBType;
import cu... |
package enthu_leitner;
interface Runner {
public void run();
}
interface Runner2 {
public int run();
}
public class e_1475 {
public static void main(String[] args) {
run(() -> voidMethod());
run(() -> intMethod());
}
public static void run(Runner x) {
System.out.println("In runner");
x.run(); ... |
package com.example.khseob0715.chosunapp;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
public class SplashScreen extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstance... |
package com.orange.clients.task;
public class PingTask implements Runnable{
@Override
public void run() {
}
}
|
package com.jasoftsolutions.mikhuna.activity.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ListView... |
package com.tencent.mm.plugin.backup.backuppcmodel;
import com.tencent.mm.plugin.backup.f.b;
import com.tencent.mm.plugin.backup.f.b.d;
import com.tencent.mm.plugin.backup.h.c;
import com.tencent.mm.plugin.backup.h.f;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.sdk.platformtools.bi;
import com... |
package bnorm.events;
import bnorm.robots.IRobot;
public class RobotFoundEvent {
private final IRobot robot;
public RobotFoundEvent(IRobot robot) {
this.robot = robot;
}
public IRobot getRobot() {
return robot;
}
}
|
package com.github.hippo.bean;
import java.io.Serializable;
/**
*
* 返回结果包装类
*
* @author sl
*
*/
public class HippoResponse implements Serializable {
/**
*
*/
private static final long serialVersionUID = -2553246569725890161L;
private String requestId;
private String serviceName;
private Stri... |
package com.plexobject.dp.sample.provider;
import java.util.Collection;
import com.plexobject.dp.domain.DataRowSet;
import com.plexobject.dp.domain.Metadata;
import com.plexobject.dp.domain.QueryConfiguration;
import com.plexobject.dp.provider.BaseProvider;
import com.plexobject.dp.provider.DataProviderException;
imp... |
package io.x666c.glib4j;
import io.x666c.glib4j.graphics.Renderer;
public interface RenderCallback {
public void render(Renderer g);
// Null render callback
public static final RenderCallback NOP = (r) -> {};
} |
package voc.cn.cnvoccoin.entity;
import android.support.annotation.Keep;
import java.io.Serializable;
import java.util.List;
/**
* Created by shy on 2018/3/29.
*/
@Keep
public class VoiceTextBean implements Serializable{
/**
* code : 1
* msg : 请求成功!
* data : [{"id":1,"content":"这是我加入语音链的第一天。"}... |
package main.java.breakingPointTool.calculations;
import java.util.ArrayList;
import main.java.breakingPointTool.artifact.ClassMetrics;
public class FindSimilarClasses
{
private ClassMetrics className;
private ArrayList<ClassMetrics> otherClasses;
private ArrayList<Double> similarity;
private ArrayList<Class... |
package edu.mayo.cts2.framework.core.config.option;
public class OptionDTO extends AbstractOption<String>{
public OptionDTO(
String optionName,
String optionValue,
OptionType optionType) {
super(optionName, optionValue, optionType);
}
@Override
public String optionValueToString(String optionValue) {
... |
package com.legalzoom.api.test.client.service.factory;
/**
*
hmaheshwari
Aug 16, 2015
10:17:18 PM
*/
import com.legalzoom.api.test.client.service.CoreRegisteredAgentServiceClient;
import com.legalzoom.api.test.client.service.AbstractBaseServiceClient.Service;
import org.springframework.beans.factory.annotation.Value... |
package series;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
public class Main {
public static void main(String[] args) {
Window w = new Window();
w.setVisible(true);
}
static class Window ext... |
package com.farm.monitor;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.List;
import com.farm.db.DataIdValue;
import com.farm.db.DatabaseHandler;
import android.os.Bundle;
import android.os.Environment;
import android.app.Activity;
import android.content.Intent;
... |
package com.company.order.entity;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persisten... |
package com.ks.task2.callback;
import com.ks.task2.bean.Aa;
/**
* Created by F0519 on 2019/6/23.
*/
public interface Mycallbcack {
void OnSuccess(Aa Aa);
void OnFail(String msg);
}
|
package CommonFunLibrary;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.testng.Reporter;
public class BranchUpdatePage {
WebDriver driver;
public BranchUpdatePage(WebDriver driver)
{
this.driver=driver;
}
@FindBy(xpath=... |
package com.tencent.mm.plugin.webview.ui.tools.fts;
import android.text.TextUtils;
import com.tencent.mm.plugin.websearch.api.o;
import com.tencent.mm.plugin.webview.fts.b.a.a;
import com.tencent.mm.plugin.webview.ui.tools.jsapi.d;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONArray;
class BaseS... |
package com.fang.dailytask;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Author: fangxueshun
* Description: 最大子序列求和
* Date: 2017/3/11
* Time: 0:02
*/
public class NewPrintlnTest {
@Test
public void myPrintln() throws Exception {
NewPrintln newPrintln = new NewPrintln();
... |
package Tests.Cotisation;
import marche.traitement.Acteurs.Cotisation.CotisationMoitierPrix;
import marche.traitement.Acteurs.Cotisation.CotisationPleinPot;
import marche.traitement.Acteurs.Cotisation.EnsembleCotisation;
import marche.traitement.Acteurs.Cotisation.StrategyCotisation;
import static org.junit.jupiter.a... |
package com.bearsonsoftware.list.billing;
import android.app.Activity;
import com.bearsonsoftware.list.billing.util.Purchase;
/**
* Convenience class to handle all billing-related features and listeners
*/
public class BillingManager {
public static final String SKU_NO_ADS = "no_ads";
//public static fin... |
package com.com.com.dao.impl;
import org.springframework.stereotype.Repository;
import com.com.com.dao.FileDao;
@Repository("dao")
public class FIleDaoImpl implements FileDao{
}
|
package com.libedi.jpa.compositekey.nonidentify;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import lombok.Getter;
import lombok.Setter;
/**
* Parent
*
* JPA는 복합키를 지원하기 위해 2가지 방법을 제공한다.
* 1. @IdClass : 관계형 데이터베이스에 가까운 방법
* 2. @... |
/*
* 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 gob.igm.ec.servicios;
import gob.igm.ec.Tdetproforma;
import static gob.igm.ec.controladores.util.JasperReportUtil.loc... |
package com.yixin.dsc.service.impl.common;
import com.alibaba.fastjson.JSONObject;
import com.yixin.common.exception.BzException;
import com.yixin.dsc.common.DscContant;
import com.yixin.dsc.entity.order.DscSalesApplyCar;
import com.yixin.dsc.entity.order.DscSalesApplyCost;
import com.yixin.dsc.entity.order.DscSalesAp... |
package com.geekbrains.server.controllers;
import com.geekbrains.gwt.common.ErrorDto;
import com.geekbrains.gwt.common.JwtAuthRequestDto;
import com.geekbrains.gwt.common.JwtAuthResponseDto;
import com.geekbrains.server.configs.JwtRequestFilter;
import com.geekbrains.server.configs.JwtTokenUtil;
import com.geek... |
package com.lavajato;
import org.apache.logging.log4j.LogManager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.apache.logging.log4j.Logger;
@SpringBootApplication
public class L... |
package br.usp.memoriavirtual.servicos.soap;
import java.util.ArrayList;
import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import br.usp.memoriavirtual.modelo.entidades.bempatrimonial.BemPatrimonial;
import br.usp.memoriavirtual.modelo.fachadas.ModeloException;... |
package com.zhouyi.business.core.vo.headvo;
import lombok.ToString;
/**
* @author 李秸康
* @ClassNmae: HeaderVo
* @Description: 定义解析xml
* @date 2019/7/1 9:28
* @Version 1.0
**/
@ToString
public class HeaderVo {
public String EQUIPMENT_CODE;
public String USER_CODE;
public String USER_UNIT_CODE;
... |
package com.beiyelin.organization.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import static com.beiyelin.commonsql.constant.Repository.*;
/**
* @Description: 法人代表
* @Author: newmann
* @Date: C... |
package com.facebook.react.views.modal;
import com.facebook.react.uimanager.events.Event;
import com.facebook.react.uimanager.events.RCTEventEmitter;
class ShowEvent extends Event<ShowEvent> {
protected ShowEvent(int paramInt) {
super(paramInt);
}
public void dispatch(RCTEventEmitter paramRCTEv... |
package Model.SistemaDeMenu;
import java.util.ArrayList;
import java.io.FileOutputStream;
import java.io.*;
import java.io.ObjectOutputStream;
import java.io.FileInputStream;
import java.io.ObjectInputStream;
public class Menu{
private ArrayList<Platillo> menuPlatillos;
private int numeroDePlatillos;
privat... |
package com.fanbo.kai.zhihu_funny.presenter.base;
/**
* Created by Kai on 2017/1/20.
* Email: kaihu1989@gmail.com
*/
public interface BasePresenterInterface<T> {
void attachView(T view);
void unAttachView();
}
|
/*
* 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 marier.UI;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
*
* @author linma
* This section on the pro... |
package com.android.ble.sample.helper;
import android.content.Context;
import com.android.ble.sample.R;
import com.android.volley.cache.DiskLruBasedCache;
import com.android.volley.cache.plus.SimpleImageLoader;
public class AppImageLoader {
public static final float IMAGE_MEMORY_CACHE_PERCENT = 0.50f;
/**
... |
package ch.fhnw.edu.cpib.cst;
import ch.fhnw.edu.cpib.cst.interfaces.IFactorNTS;
import ch.fhnw.edu.cpib.scanner.Ident;
import ch.fhnw.edu.cpib.scanner.interfaces.IToken;
// factorNTS ::= INIT
public class FactorNTSInit extends Production implements IFactorNTS {
protected final IToken T_init;
public FactorNT... |
import java.util.*;
import textio.TextIO;
public class FileWordSorterTree {
public static TreeNode root;
public static class TreeNode {
String item;
TreeNode left;
TreeNode right;
TreeNode(String str) {
item = str;
}
}
public... |
package com.eagle.order.controller;
import com.eagle.order.domain.Client;
import com.eagle.order.domain.Order;
import com.eagle.order.service.OrderService;
import com.eagle.order.util.QueryData;
import com.eagle.order.util.ReturnResult;
import com.eagle.order.vo.OrderQuery;
import com.eagle.order.vo.OrderVO;
import co... |
package br.uff.ic.provmonitor.exceptions.vcsexceptions;
/**
* VCS Commit related exception
*/
public class VCSCommitException extends VCSWorkspaceException {
private static final long serialVersionUID = 7119904491028434843L;
public VCSCommitException(String message, Throwable cause) {
super(message, cause);
}... |
package com.sunlight.workflow;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.TaskService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
... |
class Solution {
public ListNode removeNthFromEnd(ListNode head, int n) {
ListNode s = new ListNode(0);
s.next = head;
ListNode t1 = s;
ListNode t2 = s;
while(n-- >= 0) {
t1 = t1.next;
}
while (t1 != null) {
t1 = t1.next;
t2... |
package de.jmda.app.uml.shape;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertThat;
import org.junit.Before;
import org.junit.Test;
import de.jmda.app.uml.shape.Back;
public class JUTBac... |
package actor;
public class Message {
private String sender;
private Object body;
public Message(String sender, Object body) {
this.sender = sender;
this.body = body;
}
public String getSender() {
return sender;
}
public void setSender(String sender) {
th... |
package com.privalia.presentation.annotations;
import org.springframework.context.annotation.Bean;
public class SpringConfiguration {
@Bean(name = "helloWorld")
public HelloWorld helloWorld() {
return new HelloWorld();
}
}
|
package v1;
import java.util.ArrayList;
public class Inventory {
private ArrayList<Sqaure> collectionOfSquare;
private ArrayList<WildCard> collectionOfWildCards;
private Resource materials;
public Inventory() {
this.collectionOfSquare = new ArrayList<Sqaure>();
this.collectionOfWildCards = new ArrayLis... |
package chapter05;
import java.util.Scanner;
public class Exercise05_46 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Enter a word: ");
String word = input.nextLine();
String str = "";
for (int i = word.length() - 1; 0 <= i; i--) {
str = str + w... |
package cn.timebusker.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class CommonUtil {
private final static Logger logger = LoggerFactory.getLogger(CommonUtil.class);
public static int add(int i) {
i = i + 1;
logger.info("CommonUtil 的处理结果为:" + i);
return i;
}
}
|
package com.awrzosek.ski_station.tables.person.employee;
import com.awrzosek.ski_station.tables.basic.BasicDao;
import java.sql.*;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import static com.awrzosek.ski_station.tables.person.employee.EmployeeConsts.*;
... |
package com.pcms.controller;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.pcms.domain.Moive;
import com.pcms.domain.Pageable;
import com.pcms.service.FileService;
import com.pcms.service.MoiveService;
import com.pcms.service.impl.RedisService;
import com.pcms.service.impl.X... |
package com.pay.beans.rules.regulations;
import com.pay.beans.dictionary.DictionaryConfig;
import com.pay.beans.dictionary.view.UserStatusDict;
import com.pay.beans.rules.entity.ConvertNameBean;
import com.pay.beans.rules.entity.ConvertTypeBean;
import com.pay.beans.rules.FormatRule;
import java.util.ArrayList;
impor... |
package com.koreait.spring;
import java.util.ArrayList;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class AnnoConfig {
@Bean // <bean>
public Person person1() {
ArrayList<String> hobbies = new ArrayList<Str... |
package com.locadoraveiculosweb.converter;
import static java.util.Optional.ofNullable;
import javax.faces.convert.FacesConverter;
import javax.inject.Inject;
import com.locadoraveiculosweb.modelo.dtos.FabricanteDto;
import com.locadoraveiculosweb.service.FabricanteService;
import com.locadoraveiculosweb.service.Ser... |
/**
* DNet eBusiness Suite
* Copyright: 2010-2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package net.nan21.dnet.module.bd.business.impl.attr;
import java.util.List;
import javax.persistence.EntityManager;
import net.nan21.dnet.core.api.session.Session;
import ne... |
package persistencia;
import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
/**
* The persistent class for the solicitud database table.
*
*/
@Entity
@NamedQueries({
@NamedQuery(name="Solicitud.findAll", query="SELECT s FROM Solicitud s"),
@Na... |
/**
* Subclass of Shape
*/
public class ShapeZ extends Shape {
//set a color index for this Tetris shape
public static final int COLOR = 2;
/**
* Constructor
* Set the coordinates of the blocks in a way that would form this figure
*/
public ShapeZ (){
/... |
package com.yuan.prefence;
import com.amap.api.maps.model.LatLng;
/**
* 存贮一些基础常量
*
* @author YUAN
*/
public interface Constants {
public final static LatLng BEIJINGGPS = new LatLng(39.904989, 116.405285);
public static double RADIOS = 1000.0;
public static double DIATANCE = 10.0;
... |
package com.kareo.ui.codingcapture.implementation.data;
import org.joda.time.DateTime;
import java.util.ArrayList;
import java.util.List;
/**
* Created by deepalik on 06/10/15.
*/
public class CustomerTask {
private Long taskId;
private Long customerId;
private String documentName;
private DateT... |
package com.takshine.marketing.model;
import java.util.List;
import com.takshine.wxcrm.base.model.BaseModel;
import com.takshine.wxcrm.base.util.DateTime;
/**
* 活动用户表
*
*
*/
public class ParticipantModel extends BaseModel {
private String id;
private String opName;
private String opDuty;
private String opD... |
package com.crud.ctrl;
import com.crud.exceptionhandler.*;
import java.util.NoSuchElementException;
import java.util.UUID;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.s... |
package com.e6soft.bpm.service.impl;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jdom.Element;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org... |
package behavioralPatterns.MediatorPattern;
public class Stock {
private static int COMOUTER_NUMBER = 100;
public void increase(int number){
COMOUTER_NUMBER = COMOUTER_NUMBER + number;
System.out.println("we now have :" + COMOUTER_NUMBER);
}
public void decrease(int number){
C... |
package com.lubarov.daniel;
import com.lubarov.daniel.web.http.server.Handler;
import com.lubarov.daniel.web.http.server.util.DelegatingHandler;
import com.lubarov.daniel.web.http.server.util.LineSeparatorRemovingHandler;
import com.lubarov.daniel.web.http.server.util.StaticContentHandler;
import com.lubarov.daniel.we... |
package com.maweiming.wechat.bot.model.initialization;
import com.alibaba.fastjson.annotation.JSONField;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* maweiming.com
* Copyright (C) 1994-2018 All Rights Reserved.
*
* @author CoderMa
... |
package co.com.test.stepdefinitions;
import co.com.test.questions.LasPalabras;
import co.com.test.tasks.DarClick;
import cucumber.api.java.Before;
import cucumber.api.java.ast.Cuando;
import cucumber.api.java.es.Entonces;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.GivenWhenThen;
import ... |
package restlight.request;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.reflect.TypeToken;
import com.google.gson.stream.JsonReader;
import java.io.Reader;
import restlight.Request;
import restlight.ResponseBody;
public class GsonRequest<T> extends Request.Parse<T> {
priv... |
package com.example.studenttracker;
public class Students {
String name;
String imageUrl;
String age;
String assignment;
public String getAge() {
return age;
}
public void setAge(String age) {
this.age = age;
}
public String getAssignment() {
return assign... |
package com.facebook.react.bridge;
import com.facebook.i.a.a;
import com.facebook.jni.HybridData;
public class WritableNativeArray extends ReadableNativeArray implements WritableArray {
public WritableNativeArray() {
super(initHybrid());
}
private static native HybridData initHybrid();
p... |
package com.enter4ward.lwjgl;
import com.enter4ward.math.Matrix;
import com.enter4ward.math.Vector3;
import org.lwjgl.opengl.GL11;
public class DrawableBox {
BufferObject obj = new BufferObject(false);
public DrawableBox() {
float[] packedVector = { 0, 0, 0, 0, 0, -1, 1, 0, 0, 1, 0, 0, 0, -1, 1, 1,
1, 1, 0... |
package com.example.android.newsapp.sync;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.util.Log;
import com.example.android.newsapp.MainActivity;
import com.firebase.jobdispatcher.JobParameters;
import com.firebase.jobdispatcher.JobService;
public class ... |
package no.fint.provider.fiks.utils;
import org.apache.commons.lang3.StringUtils;
public class UrlUtils {
private UrlUtils() {
}
/*
public static String getFilenameFromUri(String uri) {
String[] uriParts = uri.split("/");
return String.format("%s.json", uriParts[uriParts.length - 1])... |
package com.example.edo.weatherapp.webmanager;
import com.example.edo.weatherapp.interfaces.ApiService;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class MyHttpClient {
public static String BASE_URL="http://samples.openweathermap.org/data/2.5/";
public static A... |
package com.cyriii.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cyriii.common.ResultMessage;
import com.cyriii.entity.CustomerInfo;
import com.cyriii.entity.PageVO;
import com.cyriii.service.CustomerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... |
package com.hybridia.engine3D.renderEngine;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.ContextAttribs;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.PixelFormat;
public class DisplayManager {
/**
* Create the ... |
package edu.ncsu.csc.hockey.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.Toast;
public class SelectTeamActivity extends Activity {
/** Ca... |
package me.yamas.tools.commands.utils;
import org.bukkit.command.CommandSender;
public interface Executor {
public void execute(CommandSender sender, String[] args);
}
|
package com.wzjing.scan;
import android.annotation.SuppressLint;
import androidx.annotation.IdRes;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
@SuppressLint("Registered")
public class BaseActivity extends AppCompatActivity {
@IdRes
protected int getContainer() {
... |
package zmansoo2_4;
public class zmansoo2_lab04_q3 {
public static void main(String[] args) {
Square s = new Square (1);
System . out . println (" The area of the square is: " +
s . computeArea ());
System . out . println (" The perimeter of the square is: " +
s . computePerimeter ());
}
}
abst... |
package com.vilio.plms.pojo;
import java.io.Serializable;
import java.util.Date;
/**
* 归档材料表
*/
public class PlmsPigeonholeInfo implements Serializable{
private int id;
private String code;
private String fileCode;
private String contractCode;
private String type;
private String fileSuffix;
... |
package com.test.book.command;
import java.util.List;
import javax.inject.Inject;
import org.springframework.stereotype.Service;
import com.test.book.dao.ProductDao;
import com.test.book.dto.ProductDto;
@Service
public class ProductCommandImpl implements ProductCommand {
@Inject
private Pro... |
package com.magit.logic.system.objects;
import com.magit.logic.enums.FileType;
import com.magit.logic.system.XMLObjects.MagitSingleFolder;
import com.magit.logic.utils.digest.Sha1;
import org.apache.commons.collections4.CollectionUtils;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.Si... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.