text stringlengths 10 2.72M |
|---|
package com.biotag.vehiclenumberscanning;
import android.content.Context;
public class UIUtils {
public static Context getContext() {
return VehiclenumberscanningApplication.getApplication();
}
}
|
package br.com.douglastuiuiu.biometricengine.resource.handler;
import br.com.douglastuiuiu.biometricengine.exception.ConflictException;
import br.com.douglastuiuiu.biometricengine.exception.NotFoundException;
import br.com.douglastuiuiu.biometricengine.exception.NotProcessedException;
import br.com.douglastuiuiu.biome... |
package alien4cloud.tosca.parser.mapping;
import alien4cloud.tosca.parser.ParsingContextExecution;
public abstract class DefaultDeferredParser<T> extends DefaultParser<T> {
@Override
public boolean isDeferred(ParsingContextExecution context) {
return true;
}
}
|
/**
* Class for Professors
*/
public class Professor
{
/* Members and Properties */
/**
* This is the firstName of this professor
*/
private String firstName;
/**
* This is the surname of this professor
*/
private String surname;
/**
* This is the salary per year of this professor
*/
private float salary... |
package Project3.Project3Solutions;
public class ThreeEvenOdd {
/*
Given an int array as a parameter
return true if the array contains either 3 even or 3 odd values .
for Example:
intArray([2, 1, 3, 5]) result should be true
intArray([2, 1, 2, 5]) result should be false
intArray([2, 4,... |
package Service;
import Dao.dao.HotGoodsMapper;
import Dao.dao.SaleGoodsClickNumberMapper;
import Dao.dao.SaleGoodsMapper;
import Dao.model.HotGoods;
import Dao.model.SaleGoods;
import Dao.model.SaleGoodsClickNumber;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.anno... |
package io.github.cottonmc.libcd.impl;
import java.util.Map;
import net.minecraft.class_2960;
import net.minecraft.class_4567;
import net.minecraft.class_52;
public interface LootTableMapAccessor {
Map<class_2960, class_52> libcd$getLootTableMap();
void libcd$setLootTableMap(Map<class_2960, class_52> map);
class_4... |
package Lector19.Store;
import java.util.ArrayList;
import java.util.List;
public class ReceiptArchive {
private static List<Receipt> archive = new ArrayList<>();
private final static Object lock = new Object();
static void add(Receipt receipt) {
synchronized (lock) {
archive.add(rece... |
package com.lsjr.zizi.chat.broad;
import android.content.Context;
import android.content.Intent;
import com.ymz.baselibrary.utils.UIUtils;
/**
* 用于聊天消息的广播,更新MainActivity Tab栏显示的未读数量 和 消息界面数据的更新
*
*/
public class MsgBroadcast {
public static final String ACTION_MSG_UI_UPDATE = UIUtils.getPackageName() + ".action... |
package me.dags.DeathHockey.Game.Utilities;
import me.dags.DeathHockey.DeathHockey;
import org.bukkit.*;
import org.bukkit.entity.Firework;
import org.bukkit.entity.Player;
import org.bukkit.inventory.meta.FireworkMeta;
import java.lang.reflect.Field;
/**
* @author dags_ <dags@dags.me>
*/
public class FireworkUti... |
package edu.mit.needlstk;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ParseTree;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.HashMap;
/// A class for augmentable predicates, which predicates are mostly constr... |
package kr.or.ddit.project.controller;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import kr.or.ddit.member.service.IMemberService;
import kr.or.ddit.profile_file.service.IProfileFileService;
import kr.or.ddit.projec... |
/*
package com.stk123.task.schedule;
import com.stk123.common.CommonConstant;
import com.stk123.common.db.util.DBUtil;
import com.stk123.common.util.EmailUtils;
import com.stk123.common.util.HtmlUtils;
import com.stk123.common.util.JdbcUtils;
import com.stk123.entity.StkDictionaryEntity;
import com.stk123.entity.StkNe... |
package AsyncTasks;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import com.example.fuemi.eisbaer.Activitys.MainActivity;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import ... |
/*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the "License"). You may not use this file except
* in compliance with the License.
*
* You can obtain a copy of the license at
* https://jwsdp.dev.java.net/CDDLv1.0.html
* See the License for the sp... |
package com.github.tobby48.java.scene1;
/**
* <pre>
* com.github.tobby48.java.scene1
* WhileForContinueBreak.java
*
* 설명 : 반복문 continue, break 테스트
* </pre>
*
* @since : 2017. 6. 28.
* @author : tobby48
* @version : v1.0
*/
public class WhileForContinueBreak {
public static void main(String[... |
package assign6;
//public class MyThread extends Thread {
public class MyThread implements Runnable{
public static int count;
String a;
@Override
public void run() {
count++;
System.out.println("Thread Created : "+count);
System.out.println("Name is : "+a);
}
public MyThread(String a) {
super... |
package tech.liujin.drawable.progress.text;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint.Style;
import android.graphics.PorterDuff.Mode;
import android.graphics.PorterDuffXfermode;
import android.graphics.RadialGradient;
import android.graphics.Rect;
import android.graph... |
package walnoot.dodgegame.ui;
import walnoot.dodgegame.DodgeGame;
import walnoot.dodgegame.states.State;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.g2d.BitmapFont.TextBounds;
public class ReturnButton extends TextButton{
private static f... |
/**
*
*/
package pl.edu.agh.cyberwej.web.beans.payment;
import java.util.Set;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
import pl.edu.agh.cyberwej.data.objects.User;
/**
* @author Pita
*/
@... |
package apptsched.services;
import apptsched.domain.Employee;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
public interface EmployeeService {
Employee save(Employee object);
Iterable<Employee> save(Iterable<Employe... |
package com.xeland.project;
import java.util.Collection;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.eclipse.jdt.annotation.Nullable;
public final class ClassR {
private ClassR() {
}
public static EqualsResult baseEquals(final @Nullable Object thiss, @Nullable final Object ob... |
package windows;
import impl.org.controlsfx.autocompletion.AutoCompletionTextFieldBinding;
import impl.org.controlsfx.autocompletion.SuggestionProvider;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.Insets;
... |
package de.uniwue.jpp.deckgen;
import java.awt.event.ActionEvent;
import de.uniwue.jpp.deckgen.repository.CardRepository;
import de.uniwue.jpp.deckgen.service.csp.*;
import de.uniwue.jpp.deckgen.service.csp.constraints.*;
import javax.swing.AbstractAction;
import javax.swing.JButton;
import javax.swing.JList;
publi... |
package com.marijannovak.littletanks;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import android.widget.ProgressBar;
import andr... |
package forca;
import org.junit.Test;
import static org.junit.Assert.*;
public class JogoTest {
@Test public void deveConterUmaLetra() {
Jogo jogo = new Jogo();
char letra = 'a';
assertTrue(jogo.contem(letra));
}
@Test public void naoPodeConterUmaLetra() {
Jogo jogo = new Jogo();
char letra = 'x';... |
package com.ifeng.recom.mixrecall.common.service;
import com.google.common.collect.Lists;
import com.google.gson.Gson;
import com.ifeng.recom.mixrecall.common.constant.DocType;
import com.ifeng.recom.mixrecall.common.constant.FlowTypeAsync;
import com.ifeng.recom.mixrecall.common.model.item.Index4User;
import c... |
public class MyFirstPojo
{
private String name;
public static void main(String [] args)
{
for (String arg : args)
{
MyFirstPojo pojo = new MyFirstPojo(arg); // Here's how you create a POJO
System.out.println(pojo);
}
}
public MyFirstPojo(String name)
... |
// https://www.youtube.com/watch?v=zzqAE1J2ieA
class Solution {
public int smallestRangeI(int[] A, int K) {
int minVal = A[0];
int maxVal = A[0];
for (int i = 0; i < A.length; i++) {
minVal = Math.min(minVal, A[i]);
maxVal = Math.max(maxVal, A[i]);
}
... |
package LimpBiscuit.Demo.Controller;
import LimpBiscuit.Demo.Entity.User;
import LimpBiscuit.Demo.Repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Controller;
import o... |
package com.progressive.Tests;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotati... |
package com.liferay.sales.demo.BulkLoadCategories.constants;
/**
* @author Ben
*/
public class BulkLoadCategoriesPortletKeys {
public static final String BulkLoadCategories = "bulkloadcategories";
} |
package initializer;
public class Rate {
private Currency currency;
private double factor;
public Rate(Currency currency, double factor) {
this.currency = currency;
this.factor = factor;
}
public Currency getCurrency() {
return currency;
}
public double getFactor(... |
package com.groupdy.midpoint;
import java.util.Date;
import com.parse.ParseClassName;
import com.parse.ParseObject;
import com.parse.ParseUser;
/**
* An extension of ParseObject that makes
* accessing information about a given
* Invitation more convenient
*
* @author jordan
*/
@ParseClassName("Invitation")
p... |
package language.thread.problems.problem0003;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* https://segmentfault.com/a/1190000006671595
* 数组A内容为 1,2,3,4...52 ,数组B内容为26个英文字母,使用两个线程分别输入两个数组,
... |
package student.pl.edu.pb.geodeticapp.geoutils;
public class CS2000RefSystemPicker {
private final static double FIRST_LT = 16.5;
private final static double SECOND_LT = 19.5;
private final static double THIRD_LT = 22.5;
public static ReferenceSystemConverter.ReferenceSystem getReferenceSystem(double ... |
package org.kevoree.registry.config;
/**
* Application constants.
*/
public final class Constants {
//Regex for acceptable logins
public static final String LOGIN_REGEX = "^[a-z0-9]*$";
public static final String TDEF_NAME_REGEX = "^[A-Z][\\w]*$";
public static final String DU_VERSION_REGEX = "^(?:[... |
package com.qkj.manage.domain;
import java.util.Date;
public class MyProcess {
private Integer uuid;// (int)主键自增
private Integer process_id;// (int)类型0无 1活动 2至事由 3:工时
private Integer biz_id;// (int)业务ID
private String biz_user;// (varchar)业务时间
private Date biz_time;// (varchar)业务人
private String biz_n... |
package com.twair;
import org.springframework.util.StringUtils;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
public class FlightSearch {
private List<Flight> flightList;
public FlightSearch(List<Flight> flightList) {
this.flightLis... |
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.neuron.mytelkom.base;
import android.app.Application;
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
public class MyTelkomAp... |
import java.text.DecimalFormat;
import java.util.Scanner;
public class Plus_minus {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
DecimalFormat numberFormat = new DecimalFormat("#0.000000");
double count = 0,count2 = 0,count3=0;
int test = ... |
package com.github.nik9000.nnfa.heap;
import static com.github.nik9000.nnfa.heap.AcceptsMatcher.accepts;
import static org.apache.lucene.util.TestUtil.randomRealisticUnicodeString;
import static org.hamcrest.Matchers.not;
import org.apache.lucene.util.LuceneTestCase;
import org.junit.Test;
import com.github.nik9000.... |
package ar.edu.utn.d2s.model.points;
import ar.edu.utn.d2s.model.openhours.DayEnum;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.time.LocalTime;
import java.util.HashSet;
import java.util.Set;
import static org.mockito.Mockito.*;
import static org.junit.Assert.*;
public class... |
import com.cyp.dao.UserMapper;
import com.cyp.pojo.User;
import com.cyp.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;
import java.util.List;
public class UserMapperTest {
@Test
public void test(){
SqlSession sqlSession = MybatisUtils.getSession();
Use... |
package scheduling;
/*
* 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.
*/
import java.io.IOException;
import java.lang.reflect.Array;
import javax.swing.JFrame;
import java.util.ArrayList;... |
/*
* 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 edu.math.nelson.chris;
import edu.jenks.dist.math.AbstractRational;
/**
*
* @author chris
*/
public class Ration... |
package com.checkout.shop.preinterview.java;
public enum ProductInfo {
APPLE(0.60), ORANGE(0.25);
double price;
ProductInfo(double p) {
price = p;
}
double showPrice() {
return price;
}
}
|
package me.gleep.oreganized.effects;
import com.mojang.blaze3d.matrix.MatrixStack;
import me.gleep.oreganized.util.ModDamageSource;
import me.gleep.oreganized.util.RegistryHandler;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.AbstractGui;
import net.minecraft.client.gui.DisplayEffectsScreen;
... |
package com.nt.dao;
import com.nt.bo.UserBo;
public interface IUserDao {
public String authentication(UserBo bo);
}
|
package com.beadhouse.controller;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import com.beadhouse.in.CollectionParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.ann... |
package com.javarush.task.task17.task1710;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeFormatterBuilder;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.u... |
package slimeknights.tconstruct.tools.traits;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.text.TextFormatting;
import net.minecraft.world.World;
import net.minecraftfo... |
package com.wenyuankeji.spring.dao.impl;
import java.io.Serializable;
import java.util.List;
import javax.annotation.Resource;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.stereotype.Repository;
import com.wenyuankeji.spring.dao.IStoreinfo... |
package Files;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
public class Main {
public static StringBuilder str = new StringBuilder();
public static String FILEPATH = "C:/Users/503242115/IdeaProjects/Initial" + File.separator;
public static void main(String[... |
package turtlekit.viewer.viewer3D.engine.tools;
import javax.media.opengl.GL2;
public class Material {
private GL2 gl;
private float data;
public Material(GL2 cGl, float cData){
gl = cGl;
data = cData;
initMaterial();
}
public void initMaterial(){
float mat_amb_diff[] = { data/255.f, data/255.f, d... |
package model;
import java.util.ArrayList;
public class Order {
private String item;
private int quantity;
private final int cost = 10;
private String merchantEmail;
private String merchantKey;
private String orderName;
private static ArrayList<Object> payoptions = new ArrayList<Object>();
private static Arr... |
package gov.nih.mipav.model.algorithms.filters;
import gov.nih.mipav.model.algorithms.*;
import gov.nih.mipav.model.structures.*;
import java.io.*;
/**
* Algorithm to apply Regularized Isotropic Nonlinear Diffusion as described by:
*
* <P>Joachim Weickert <I>Chapter 15</I> in Handbook of Computer Vision and App... |
package com.doc.spring.custom;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import org.springframework.format.AnnotationFormatterFactory;
import org.springframework.format.Parser;
import org.springframework.format.Printer;
... |
package io.github.satr.aws.lambda.bookstore.services;
// Copyright © 2020, github.com/satr, MIT License
import io.github.satr.aws.lambda.bookstore.entity.Basket;
public interface BookOrderService {
Basket getBasket();
}
|
package com.itheima.advice;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;
@Component
@Aspect
public class MyAdvice {
//抽取切面表达式
@Pointcut("execution(* com.itheima.dao.*impl.*.add*(..))")
public void pointCut() {}
@Before("point... |
/*
* (C) Copyright IBM Corp. 2020.
*
* 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 agreed to in w... |
package com.vaadin.vaadin_archetype_application;
import com.google.api.client.util.DateTime;
public class TimeSlot {
public long id;
public DateTime startTime, endTime;
public TimeSlotVote[] votes;
}
|
package com.redrocket.photoeditor.screens.presentation.gallery.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.media.ExifInterface;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import and... |
package com.tpg.brks.ms.expenses.service;
import com.tpg.brks.ms.expenses.domain.Account;
import com.tpg.brks.ms.expenses.domain.AccountFixture;
public interface DomainGiven extends AccountFixture {
default Account givenAnAccount() {
return johnDoeAccount();
}
}
|
package com.cs.promotion;
import com.cs.player.Player;
import com.cs.user.User;
import org.springframework.data.domain.Page;
import java.util.Date;
import java.util.List;
import java.util.Map;
/**
* @author Hadi Movaghar
*/
public interface PromotionService {
Promotion createPromotion(final Promotion promotio... |
package com.pengo.order.service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pengo.common.entity.Order;
import com.pengo.order.mapper.OrderMapper;
import org.springframework.stereotype.Service;
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements... |
package exam;
public class Address {
private String streetName;
private Integer zipCode;
public Address(String streetName, Integer zipCode) {
super();
this.streetName = streetName;
this.zipCode = zipCode;
}
public String getStreetName() {
return streetName;
}
public void setStreetNa... |
/*
* Copyright (c) 2015, Jirav All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.server.api.userimport;
import pl.edu.icm.unity.server.authn.AuthenticationResult;
/**
* Internal API for triggering user import.
*
* @author Krzysztof Benedyczak
*/
public interfac... |
package com.aiwac.service;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.UUID;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.omg.PortableInterceptor.ForwardRequestHelper;
import com.aiwac.bean.request.WeChatJsTicke... |
package hash;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import o... |
package hp.Seals.getErrorEventsApiVsDbTest;
import com.google.common.base.Objects;
public class EventTsPojo {
private String cust_cd;
private String evt_ocrd_ts;
// public getter and setter Method
public String getCust_cd() {
return cust_cd;
}
public void setCust_cd(String cust_cd) {
this.cust_cd = c... |
package string;
import java.util.ArrayList;
public class ValidIP {
static boolean debug = true;
public static void print2DList(ArrayList<ArrayList<String>> IP_List, boolean debug) {
for (ArrayList<String> IP : IP_List) {
if (debug == true) {
System.out.println(IP.toString());
}
}
}... |
package tech.liujin.drawable.progress.text;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint.Style;
import android.graphics.Rect;
import android.graphics.RectF;
import android.support.annotation.NonNull;
/**
* @author Liujin 2019/5/13:16:24:35
*/
public class FillCirclePr... |
/*
* #%L
* NettyReplyHandler.java - mongodb-async-netty - Allanbank Consulting, Inc.
* %%
* Copyright (C) 2014 - 2015 Allanbank Consulting, Inc.
* %%
* 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 th... |
package com.daylyweb.music.service;
import java.util.List;
import com.daylyweb.music.mapper.FeedBack;
import com.daylyweb.music.mapper.Zan;
public interface LogService {
List getZan(int page,int limit,long longstart,long longend,String keyword);
int insertZan(Zan zan);
int delZan(String ids);
List get... |
package com.cinema.sys.model.base;
import java.util.Date;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name="sys_front_menu")
public class TFrontMenu {
@Id
private String menuid;
private String name;
private String code;
private String pid;
private Short cseq;
pri... |
package com.mkdutton.labfive.fragments;
import android.app.AlertDialog;
import android.app.Fragment;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageView;
i... |
package com.github.JohnDorsey.audio3;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* Created by John on 12/8/15.
*/
public class SaveTo {
public FileOutputStream fileOutputStream;
public File savingTo;
public String fileName... |
package com.myou.appclient.activity;
import java.util.HashMap;
import java.util.Map;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
... |
package com.wso2.build.utils;
import org.apache.commons.io.FileUtils;
import org.apache.maven.model.Model;
import org.apache.maven.model.Plugin;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.util.xml.Xpp3Dom;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
... |
import java.util.*;
public class array3
{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter the size of the array:");
int n=sc.nextInt();
int A[]=new int[n];
int i,j,k,a,b,c,count=0;
System.out.println("Enter the elements of the array:");
for(i=0;i<n;i... |
package com.legaoyi.protocol.messagebody.decoder;
import org.springframework.stereotype.Component;
import com.legaoyi.protocol.message.decoder.MessageBodyDecoder;
/**
* @author <a href="mailto:shengbo.gao@gmail.com;78772895@qq.com">gaoshengbo</a>
* @version 1.0.0
* @since 2019-05-20
*/
@Component(MessageBodyDec... |
public class HashMapTerster {
private static String SUBSET ="arr2[] is a subset of arr1[]";
private static String NO_SUBSET = "arr2[] is not a subset of arr1[]";
public static void main(String[] args) {
int arr1[] = {10, 5, 2, 23, 19};
int arr2[] = {19, 5, 3};
FindSubset set = new F... |
package com.gaoshin.stock.plugin;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.HashMap;
public class WebUtil {
private static HashMap<String, byte[]> resources = new HashMap<String, byte[]>();
public static byte... |
package com.Exam.DAO.implement;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;
import org.apache.lucene.search.Query;
import org.hibernate.search.jpa.FullTextEntityManager;
import org.hibernate.search.jpa.FullTextQue... |
package xdroid.core;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.Message;
import android.os.Process;
import java.util.concurrent.atomic.AtomicInteger;
/**
* @author Oleksii Kropachov (o.kropachov@shamanland.com)
*/
public final class ThreadUtils implement... |
package com.duanc.mapper.common;
import java.util.List;
import com.duanc.model.dto.BrandDTO;
public interface BrandCommonMapper {
/**
* @Title: getBrands
* @Description: 获取所有的品牌
* @return List<BrandPO>
*/
List<BrandDTO> getBrands();
}
|
package com.tch.test.iwjw.march;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.collections.CollectionUtils;
import org.apache.c... |
package com.gaoxi.gaoxicontroller.entity;
/**
* @author limm
* @data 2020/5/14 17:57
*/
public class B {
}
|
package mtuci.nikitakutselay.mobileapplicationprogrammingcourse;
/**
* Created by nikitakucelaj on 12.12.2017.
*/
public class ApplicationListMenuItem {
public static final int COPY_APPLICATION_NAME = 0;
public static final int COPY_PACKAGE_NAME = 1;
public static final int SHOW_APPLICATION_INFO = 2;
}
|
import structure.LazySplayNet;
import structure.SplayNet;
import java.util.Scanner;
public class NetMain {
public static void main(String[] args) {
/* Input Type
Line 1--> number of nodes in the input tree (eg. m)
Line 2--> list keys of all nodes present in the tree (m integers)
Li... |
package isSymmetric101;
import dataStructure.*;
import java.util.*;
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
class Solution {
/**
* 层次遍历法
* @param root
* @return
... |
package com.zeal.smartdo.model;
/**
* @author 廖伟健
*/
public class BBSBean extends BaseBean {
public String id;
public long createTime;
public int postsId;
public int forumUserId;
public String isShield;
public String postTitle;
public String postContent;
public String pos... |
package com.wdl.base.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.pe... |
package ru.jft.first;
import org.testng.Assert;
import org.testng.annotations.Test;
public class PointTests {
@Test
public void testDistance() {
Point p1 = new Point(10, -30);
Point p2 = new Point(0, 45);
Assert.assertEquals(p2.getDistance(p1), 76.0);
}
}
|
/*
* 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.
*/
/**
*
* @author orion
*/
public class MoleController {
private Model brain;
private View ui;
public MoleContr... |
package com.egswebapp.egsweb.util;
import com.egswebapp.egsweb.model.User;
import javax.mail.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
import java.io.InputStream;
import java.io.StringWrite... |
package edu.ktu.ds.lab2.cpu;
import edu.ktu.ds.lab2.demo.Car;
import edu.ktu.ds.lab2.demo.CarsGenerator;
import edu.ktu.ds.lab2.demo.SimpleBenchmark;
import edu.ktu.ds.lab2.demo.Timekeeper;
import edu.ktu.ds.lab2.gui.ValidationException;
import edu.ktu.ds.lab2.utils.*;
import edu.ktu.ds.lab2.utils.SortedSet;... |
package br.com.View;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import br.com.UsuarioController.AlunosController;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import java.awt.Font;
import j... |
open module modmain { // allow reflective access, currently used in the example_jerry-mouse
requires modb1;
requires modb2;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.