text stringlengths 10 2.72M |
|---|
/*
* 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 package1;
import java.awt.print.PrinterException;
/**
*
* @author ARSHAD
*/
public class Counter extends javax.swing.JFram... |
package edu.softwarica.MeetingAttendence.Model;
public class Modelnotification {
private String s_id, s_fname, s_lname, s_email, s_phone, r_id, r_fname, r_lname, r_email, r_phone, e_id, ename, edate, etime, elocation, edesc, eminatt, einvitatten, ethresmin;
public String getStatus() {
return status;
... |
package ro.siit;
public class Counter extends Thread{
private int step;
private int limit;
public Counter(int step, int limit){
this.step = step;
this.limit = limit;
}
@Override
public void run() {
for(int i = 0; i< limit; i = i + step){
System.out.println("... |
package com.amazon.opendistro.elasticsearch.performanceanalyzer.rca.util;
import com.amazon.opendistro.elasticsearch.performanceanalyzer.reader.ClusterDetailsEventProcessor;
import com.amazon.opendistro.elasticsearch.performanceanalyzer.reader.ClusterDetailsEventProcessorTestHelper;
import com.google.common.collect.Li... |
import base.TestBase;
import com.codeborne.selenide.testng.BrowserPerTest;
import com.codeborne.selenide.testng.ScreenShooter;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import pages.HeaderPage;
import ru.yandex.qatools.allure.annotations.Fea... |
import java.util.Scanner;
public class BMICalculator {
public static void main( String[] args ) {
Scanner keyboard = new Scanner(System.in);
double m, kg, bmi, f, i, lbs, inches;
System.out.print( "Your height (feet only): " );
f = keyboard.nextDouble();
System.out.print( "Your height (inches): ... |
package main;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.Image;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.reflect.Type;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.LinkedL... |
package com.example.demo.sendmail.domain.model.validate;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.... |
package com.webcloud.define;
import com.webcloud.R;
/**
* 四种模板风格。
*
* @author bangyue
* @version [版本号, 2014-1-16]
* @see [相关类/方法]
* @since [产品/模块版本]
*/
public class ModelStyle {
public static final String MODELSTYLE = "modelstyle";
public static final String MODEL_METRO = "metro";
... |
package rt;
import javax.vecmath.Tuple3f;
import javax.vecmath.Vector3f;
/**
* Axis aligned finite 3D BoundingBox
*
* @author Florian
*/
public class BoundingBox
{
float minx;
float maxx;
float miny;
float maxy;
float minz;
float maxz;
/**
* Construct BoundingBox from minimal and maximal axis values (... |
package ga.islandcrawl.form;
import java.util.Random;
import ga.islandcrawl.draw.Bush;
import ga.islandcrawl.draw.Oval;
import ga.islandcrawl.draw.Shape;
import ga.islandcrawl.draw.Triangle;
import ga.islandcrawl.other.M;
/**
* Created by Ga on 7/10/2015.
*/
public class BushTree extends Form {
private Random ... |
package com.data.rhis2;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.app.TimePickerDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.database.Cu... |
package E2EAzubuTest;
import com.codeborne.selenide.Configuration;
import com.codeborne.selenide.Screenshots;
import com.google.common.io.Files;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
impo... |
package me.neznamy.tab.yamlassist;
import java.util.List;
import org.yaml.snakeyaml.error.YAMLException;
public abstract class SyntaxError {
protected YAMLException exception;
protected List<String> fileLines;
public SyntaxError(YAMLException exception, List<String> fileLines) {
this.exception = exception;
... |
/*
* 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 model.entity;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Sasha
*/
pub... |
package com.goodhealth.algorithm.Genericity;
/**
* @ClassName Pear
* @Description TODO
* @Author WDH
* @Date 2019/8/15 19:12
* @Version 1.0
**/
public class Pear extends Fruits {
@Override
public void function() {
System.out.println("生津止渴,润肺止咳");
}
}
|
package moderate;
/* Sample code to read in test cases:*/
import java.io.*;
import java.util.*;
import java.lang.*;
public class MToLast {
public static void main (String[] args) throws IOException {
File file = new File(args[0]);
BufferedReader buffer = new BufferedReader(new FileReader(file));
... |
package com.example.provider.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* @author 86151
*/
@RestController
public class ProviderController {
@GetMapping(va... |
import java.util.HashSet;
import java.util.Set;
/**
* Created by vlado on 10/12/2017.
*/
public class AdventNode {
private AdventNode _parent;
private int _weight;
private String _name;
private Set<AdventNode> _children;
public AdventNode(String name, int weight) {
_name = name;
... |
package com.factory.dominik.factorynewsreader.ui.article.list;
import com.factory.dominik.factorynewsreader.data.model.ArticlesModel;
import java.util.List;
public interface ArticleListView {
void showArticles(List<ArticlesModel> articles);
void cacheArticles(List<ArticlesModel> articles);
void showAr... |
package com.semantyca.officeframe.modules.reference.dao;
import com.semantyca.officeframe.modules.reference.model.Position;
import javax.ejb.Stateless;
@Stateless
public class PositionDAO extends ReferenceDAO<Position> {
}
|
package leetcode;
import java.util.ArrayList;
import java.util.List;
/**
* @author kangkang lou
*/
public class Main_166 {
public static String fractionToDecimal(int numerator0, int denominator0) {
StringBuilder sb = new StringBuilder();
if ((numerator0 < 0 && denominator0 > 0) || (numerator0 > ... |
package backjoon.tree;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
class Point{
int end;
int weight;
public Point(int end, int weight){
this.end = end;
this.weight = weight;
}
}
public class Backjoon1967 {
static... |
package com.udemy.oauth2.udemyoauth2.controller;
import com.udemy.oauth2.udemyoauth2.model.Task;
import com.udemy.oauth2.udemyoauth2.repository.TaskRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import o... |
package io.hessian.rpc.core;
/**
* Created by manbu on 7/2/16.
*/
public class SerializeException extends RuntimeException {
public SerializeException(String message, Exception exception) {
super(message, exception);
}
}
|
// Sun Certified Java Programmer
// Chapter 7, P583
// Generics and Collections
class Cat {
}
|
package com.sunteam.library.db;
import java.util.ArrayList;
import com.sunteam.library.entity.DownloadResourceEntity;
import com.sunteam.library.utils.DatabaseConstants;
import com.sunteam.library.utils.LibraryConstant;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQ... |
package com.cg.hcs.service;
import java.time.LocalDateTime;
import com.cg.hcs.dao.IUserDAO;
import com.cg.hcs.dao.UserDAOImpl;
import com.cg.hcs.entity.DiagnosticCenter;
import com.cg.hcs.entity.Test;
import com.cg.hcs.entity.Users;
public class UserServiceImpl implements IUserService{
IUserDAO userDaoIn... |
package com.jovanmillenno.e_forecasting;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
... |
package com.example.aleksej.budget;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package herramientas;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
/**
*
* @author Administrador
*/
public class i... |
package com.gmail.khanhit100896.foody.like;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.view.ContextThemeWrapper;
import android.support.v7.widget.CardView;
import android.support.v7.widget.PopupMenu;
import android.support.v7.widg... |
package com.byterefinery.rmbench.dialogs;
import org.eclipse.core.resources.IFile;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI... |
package com.hyty.tree.treejiegou.service;
import com.hyty.tree.treejiegou.entity.BusinessModule;
import com.hyty.tree.treejiegou.entity.Personnel;
import com.hyty.tree.treejiegou.entity.RoleJurisdiction;
import java.util.List;
/**
* Created by Whk on 2019/3/29.
* 角色与权限对应关系Service
*/
public interface RoleJurisdict... |
package com.timebank.controllers;
import java.util.Set;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.Requ... |
package com.gmail.at.telchuev.leitnerboxlite;
import android.app.backup.BackupHelper;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import java.io.BufferedReader;
import java.io.File;
import... |
package com.example.springdemo.Controller;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @c... |
package com.gcipriano.katas.salestaxes.model.product.catalog;
import java.util.ArrayList;
import java.util.List;
public class InMemoryExemptedProductCatalog implements ExemptedProductCatalog
{
private List<String> exemptedProducts = new ArrayList<>();
public InMemoryExemptedProductCatalog(List<String> exemptedPr... |
package com.qihoo.finance.chronus.core.task;
import com.qihoo.finance.chronus.metadata.api.common.PageResult;
import com.qihoo.finance.chronus.metadata.api.task.entity.TaskEntity;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Created by xiongpu on 2018/11/5.
... |
package com.linkedbook.dao;
import com.linkedbook.dto.area.selectArea.SelectAreaOutput;
import com.linkedbook.entity.AreaDB;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.r... |
package StreamAPI;
import java.util.ArrayList;
import java.util.Collections;
import java.util.stream.Stream;
public class Exer {
public static void main(String[] args) {
ArrayList<String> one = new ArrayList<String>();
ArrayList<String> two = new ArrayList<String>();
Collections.addAll(one, "迪丽热巴",... |
package com.tencent.mm.plugin.mmsight.ui;
import com.tencent.mm.plugin.mmsight.model.j;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
class SightCaptureUI$1 implements Runnable {
final /* synthetic */ long jEc;
final /* synthetic */ SightCaptureUI lqr;
SightCaptur... |
package SebastianMiklaszewski.Excercises.Core.Model;
import SebastianMiklaszewski.Excercises.Core.Exception.NotEnoughMoneyException;
import SebastianMiklaszewski.Excercises.Core.Factory.WalletFactoryInterface;
import SebastianMiklaszewski.Excercises.Core.ValueObject.MoneyValue;
import SebastianMiklaszewski.Excercises.... |
package com.beiyelin.projectportal.service.impl;
import com.beiyelin.account.bean.AccountQuery;
import com.beiyelin.account.entity.Account;
import com.beiyelin.account.entity.EmbeddableAccount;
import com.beiyelin.common.bean.JwtUser;
import com.beiyelin.common.reqbody.PageReq;
import com.beiyelin.common.resbody.PageR... |
import java.util.Scanner;
import java.math.BigInteger;
// at
// least
// I've
// got
// some
// comments
public class Mission1_noRun {
public static void main(String[] args) {
System.out.println("let's divide by zero!" + 1/0);
}
} |
package acs;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.Date;
import java.util.HashMap;
import javax.annotation.PostConstruct;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.be... |
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.Timer;
public class Ball {
public int x = 220, y = 100;
public int xspeed = 4;
public int yspeed = 3;
public int width = 20, height = 20;
public int mapwidth = 600, mapheight = 600;
public void render(Graphics g) {
// System.out.println("Ball... |
package oriorihuela;
import static org.junit.Assert.*;
import org.junit.Test;
public class CollatzTest {
@Test
public void collatzTest() {
assertEquals("3->10->5->16->8->4->2->1", Collatz.collatz(3));
assertEquals("4->2->1", Collatz.collatz(4));
assertEquals("2->1", Collatz.collatz(2... |
package com.lin.redis;
/**
*
* 用户登录或者退出状态直接保存在redis里
* <p>ClassName: UserRedis.java<p>
* <p>Description<p>
* @author linzj
* @createTime 2016年4月1日 下午4:19:08
*/
public interface UserRedis {
/**
* 添加或者更新redis中的用户
* @param account
*/
public void addOrUpdate(String account);
/**
... |
package org.openfuxml.renderer.word;
import org.openfuxml.content.ofx.Document;
import org.openfuxml.factory.ConfigurationProviderFacotry;
import org.openfuxml.interfaces.configuration.ConfigurationProvider;
import org.openfuxml.media.cross.NoOpCrossMediaManager;
import org.openfuxml.renderer.word.structure.WordDocume... |
package com.mysql.cj.exceptions;
public class DataReadException extends CJException {
private static final long serialVersionUID = 1684265521187171525L;
public DataReadException(Exception cause) {
super(cause);
setSQLState("S1009");
}
public DataReadException(String msg) {
super(msg);
set... |
package com.cs4125.bookingapp.services;
import com.cs4125.bookingapp.model.entities.Booking;
import com.cs4125.bookingapp.model.entities.Route;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public interface BookingService {
String searchBooking(int id);
List<String> searchAll... |
package com.tencent.mm.plugin.exdevice.ui;
import com.tencent.mm.plugin.exdevice.ui.ExdeviceDeviceProfileUI.4.1;
class ExdeviceDeviceProfileUI$4$1$1 implements Runnable {
final /* synthetic */ 1 iCR;
ExdeviceDeviceProfileUI$4$1$1(1 1) {
this.iCR = 1;
}
public final void run() {
this.... |
package edu.nyu.cs.aeoi.twitterapi;
import org.apache.log4j.Logger;
import twitter4j.Query;
import twitter4j.QueryResult;
import twitter4j.Status;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;
/**
* Demo using twitter4j.properties with maven to get recent tweets
*
... |
package br.com.caelum.financas.teste;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import br.com.caelum.financas.modelo.Conta;
import br.com.caelum.financas.modelo.Movimentacao;
import br.com.caelum.financas.modelo.TipoMovimentacao;
import br.com.caelum.financas... |
package kphai.noobswe.com.firebaselab.activity;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.text.TextUtils;
import android.v... |
package com.axis.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.axis.coolcat.R;
import com.axis.util.Constant;
/**
* @author lq 2013-6-1 lq2625304@gmail.com
*/
public class FrameLoca... |
package br.vianna.aula.appteatro.domain.entities;
import br.vianna.aula.appteatro.domain.entities.abstracts.Ingresso;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
@Entity
@Table(name = "ing... |
/**
@author Chazwarp923
*/
package tech.chazwarp923.unifieditems.block;
public enum HarvestLevel {
WOOD(0),
STONE(1),
IRON(2),
DIAMOND(3);
final int level;
HarvestLevel(int level) {
this.level = level;
}
}
|
package Usta.sistemas;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
/*AUTHOR: Angel Manuel Correa Rivera
DATE: 19 March, 2020
DESCRIPTION: This software calculate the volume of a cylinder
*/
Scanner keyboard = new Scanner(System.in);
double height, radius, volu... |
import java.util.Scanner;
public class Example2_19 //compute area of a triangle
{
public static void main(String[] args)
{
//Create a scanner object
Scanner input = new Scanner(System.in);
//Prompt the user to enter three points
System.out.print(" Enter three points for a triangle : ");
double x1 = input.n... |
package com.revature.accessmods;
public class Driver2 {
// we'll set fields of this class equal to the value of a Drive1 object
Driver1 d1 = new Driver1();
int y = d1.publicField;
// int x = d1.privateField;
int z = d1.protectedField;
int w = d1.defaultField;
}
|
/*******************************************************************************
* Copyright (c) 2014 Liviu Ionescu.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
... |
package uk.co.samwho.modopticon.modules;
import java.time.Clock;
import dagger.Module;
import dagger.Provides;
@Module
public final class ClockModule {
@Provides
static Clock provideClock() {
return Clock.systemUTC();
}
}
|
package unalcol.io;
import java.io.IOException;
import java.lang.reflect.Method;
public class ReadWrapper extends Read<Object> {
/**
* Creates a clone wrapped method for objects
*/
protected String method_name = "clone";
protected Method method = null;
public ReadWrapper(Class<?> type) {
... |
package agents.anac.y2012.MetaAgent.agents.WinnerAgent;
import java.util.HashMap;
import java.util.Vector;
public class Loop<T> {
// this class is helpful for creating all possible offers in the domain
private Loop<T> _nextLoop;
private Vector<T> _vec;
private HashMap<Integer, Integer> _indexMap;
... |
package com.example.camera360.main;
import java.util.ArrayList;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.example.camera360.provider.HotImages;
import com.example.camera360.provider.LatestImages;
import com.ex... |
package net.packet.handlers;
import io.netty.buffer.ByteBuf;
import maplestory.npc.MTSButtonNpcConversation;
import net.Proxy;
import net.handler.HandlePacketResult;
import net.handler.MaplePacketHandler;
import net.packet.server.MapleNpcPacket;
import net.packet.server.MapleReAllowActionPacket;
public class OpenMTSH... |
package com.cnk.travelogix.suppliers.acco.service.test;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
imp... |
package com.baomidou.mybatisplus.samples.quickstart.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.samples.quickstart.domain.CityConstant;
import com.baomidou.mybatisplus.samples.quickstart.domain.User;
public interface CityConstantMapper extends BaseMapper<CityConstan... |
import java.util.Scanner;
public class Miegas {
public static void main(String[] args) {
Boolean darboDiena= false;
Boolean atostogos= true;
Scanner sc = new Scanner(System.in);
System.out.println("darbo diena?");
darboDiena = sc.hasNext();
sc.next();
System.out.println("atostogos?");
atostogos... |
package jp.naist.se.codehash;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import jp.naist.se.codehash.util.StringMultiset;
public class MurmurMinHash {
private int k;
private NgramMultiset ngramMultiset;
/**
* 1-bit minhash using k... |
package uz.projects.wallpaper.ui;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import androidx.navigation.Navigation;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
i... |
package com.levislv.statistics.fully.navigationbar.view;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatImageView;
import com.levislv.statistics.R;
import com.levislv.statistics.fully.navigationbar.view.base.... |
package ast;
import java.util.ArrayList;
import ast.types.TypeNode;
import exceptions.NotDeclaredException;
import exceptions.TypeException;
import semanticAnalysis.Environment;
import semanticAnalysis.SemanticError;
/**
* Interface representing a generic node in the AST
*/
public interface Node {
/**
* Node ... |
package hirondelle.web4j.security;
import hirondelle.web4j.request.RequestParser;
/**
Determines if a request has an ownership constraint which needs explicit validation for a user id proxy.
<P>This interface addresses the issue of
<a href='http://www.owasp.org/index.php/Top_10_2007-A4'>Insecure Direct ... |
package com.charith.codility.maximumSliceProblem.MaxSliceSum;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
class SolutionTest {
@Test
void solution() {
Assertions.assertEquals(6, Solution.solution(new int[]{-2, 4, 2}));
Assertions.assertEquals(2, Solution.solut... |
package com.xiruan.demand.entity.automation;
import com.xiruan.demand.entity.IdEntity;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
* Created by Chen.Ju on 2015/8/11.
*/
@Entity
@Table(name = "DEMAND_ROLE_MENU")
public... |
package com.athena.marketo.utils;
import java.text.SimpleDateFormat;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
public class JsonUtils {
private JsonUtils() { }
private static final ObjectMa... |
/**
* Copyright (c) 2012, Ben Fortuna
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* o Redistributions of source code must retain the above copyright
* notice, this list of condit... |
package com.mitelcel.pack.utils;
import android.content.Context;
import com.mitelcel.pack.Config;
import com.mitelcel.pack.R;
/**
* Created by sudhanshu.thanedar on 10/26/2015.
*/
public class Validator {
Context context;
public Validator(Context context) {
this.context = context;
}
publ... |
package com.d.algorithm.sort;
/**
* 选择排序
* Created by D on 2017/6/24.
*/
public class SelectSort extends Sort {
public static void sort(int[] arr) {
if (!valid(arr)) {
return;
}
//只需要比较n-1次
for (int i = 0, index = 0; i < arr.length - 1; i++, index = i) {
/... |
package com.moon.process.impl;
import com.moon.process.*;
import com.moon.vo.BaseResponseVo;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* Created by maguoqiang on 2016/11/15.
* 流程a
*/
@Service("processA")
public class ProcessAImpl implements com.moon.process.Process {
public Base... |
package com.tencent.mm.plugin.freewifi.ui;
import android.os.Message;
import com.tencent.mm.sdk.platformtools.ag;
class FreeWifiManufacturerLoadingUI$1 extends ag {
int i = 0;
final /* synthetic */ FreeWifiManufacturerLoadingUI jnE;
FreeWifiManufacturerLoadingUI$1(FreeWifiManufacturerLoadingUI freeWifiMa... |
package com.tencent.mm.plugin.appbrand.launching;
import android.util.Pair;
import com.tencent.mm.plugin.appbrand.app.e;
import com.tencent.mm.plugin.appbrand.appcache.WxaPkgWrappingInfo;
import com.tencent.mm.plugin.appbrand.appcache.ak;
import com.tencent.mm.plugin.appbrand.appcache.ak.a;
import com.tencent.mm.plugi... |
package com.canfield010.mygame.item.tool;
import com.canfield010.mygame.Main;
import com.canfield010.mygame.item.Item;
import com.canfield010.mygame.item.Log;
import com.canfield010.mygame.mapsquare.MapSquare;
import com.canfield010.mygame.mapsquare.uppermapsquare.plant.OakTree;
import javax.imageio.ImageIO;
import j... |
package ru.sprikut.sd.refactoring.servlet;
import ru.sprikut.sd.refactoring.database.Database;
import ru.sprikut.sd.refactoring.product.Product;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.u... |
package com.packers.movers.configuration;
import com.packers.movers.commons.config.utils.Property;
public interface DatabaseConfiguration {
@Property(key = "environment.jdbc.driver")
String getDriver();
@Property(key = "environment.jdbc.url")
String getUrl();
@Property(key = "environment.jdbc.... |
package pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.Select;
import org.openqa.selenium.support.ui.WebDriverWait;
import steps.GenericStep;
... |
package com.tencent.mm.plugin.sns.a.b;
class i$3 implements Runnable {
final /* synthetic */ i njJ;
i$3(i iVar) {
this.njJ = iVar;
}
public final void run() {
if (System.currentTimeMillis() - i.b(this.njJ) >= 60000 || i.a(this.njJ).rbN.size() > 1000) {
if (i.a(this.njJ) !=... |
package com.osce.result;
import java.io.Serializable;
import java.util.Arrays;
/**
* @ClassName: Result
* @Description: 返回结果
* @Author yangtongbin
* @Date 2017/9/13 16:21
*/
public class Result implements Serializable {
private static final long serialVersionUID = 1757313404681564926L;
/** 是否成功 */
private ... |
module communicatorshared
{
exports communicatorshared;
} |
import greenfoot.*;
import greenfoot.util.*;
import java.awt.geom.Point2D;
public class MenuNavButton extends TextButton
{
private static final int SPEED = 30;
private double theta;
private Point2D.Double velocity;
private int numSteps;
private int count;
private boolean moving;
Point2... |
package com.wanglu.movcat.repository;
import com.wanglu.movcat.model.Comment;
import com.wanglu.movcat.model.GiftArticle;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface CommentRepository extends JpaRepository<Comment, Integer>{
Comment findFirstByIsIndexAnd... |
package com.example.journey_datn.Model;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
public class User implements Parcelable {
private String idUser;
private String firstName, lastName, username;
public User(String id, String fir... |
package org.adv25.ADVNTRIP.Databases;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import org.adv25.ADVNTRIP.Tools.Config;
import java.sql.Connection;
import java.sql.SQLException;
import java.time.ZoneId;
public class DataSource {
private static HikariConfig configHikari = ... |
package com.example.lenovo.medleybranch;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.google... |
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
class Main {
public static void main(String[] args) {
// put your code here
Scanner scanner = new Scanner(System.in);
int d = scanner.nextInt();
//System.out.println(d);
Set<String> enterSet = new Hash... |
package com.travelportal.vm;
import java.util.ArrayList;
import java.util.List;
public class SearchSpecialsVM {
public long id;
public String fromDate;
public String toDate;
public String promotionName;
public Long supplierCode;
public List<String> roomTypes = new ArrayList<>();
public List<SpecialsMarketVM> ... |
package saim_only_05_01;
import java.util.ArrayList;
import java.util.Arrays;
public class TargetWord {
public static void main(String[] args) {
ArrayList<String> words =new ArrayList<>(Arrays.asList("java","html","css","java",
"javascript","selenium"));
int count= 0;
S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.