text stringlengths 10 2.72M |
|---|
package com.auth.extensions.userregistration;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.contrib.java.lang.system.EnvironmentVariables;
import org.keycloak.Config;
import org.keycloak.events.EventListenerProvider;
import org.keycloak.models.KeycloakSession;
import java.net... |
package com.github.vinja.util;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom... |
package com.cg.project.castleglobalproject.search.fragments;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.... |
package monde.vivant.animal.oiseau;
public class Kiwi
{
}
|
package com.simple_dao.entity;
public class Car {
private int id;
private String mark;
private String model;
private int price;
public Car(String mark, String model, int price) {
this.mark = mark;
this.model = model;
this.price = price;
}
public Car() {}
publi... |
package com.tencent.mm.plugin.wenote.ui.nativenote.voiceview;
import com.tencent.mm.ab.g;
import com.tencent.mm.ab.g.b;
import com.tencent.mm.ab.h;
import com.tencent.mm.model.au;
import com.tencent.mm.model.c;
import com.tencent.mm.sdk.platformtools.SensorController;
import com.tencent.mm.sdk.platformtools.ad;
import... |
package io.github.flpmartins88.basico;
import org.h2.Driver;
import org.hibernate.SessionFactory;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.AvailableSettings;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
public class HibernateU... |
/*
* 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 swingtodo;
import com.TodoPojo.Todo;
import com.dao.TodoDao;
import java.awt.BorderLayout;
import java.awt.Color;
import java.... |
package zx.soft.restlet_demo;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.Iterator;
import org.json.JSONObject;
import org.restlet.Server;
import org.restlet.data.Form;
import org.restlet.data.Protocol;
import org.restlet.data.Status;
import org.restlet.representation.Rep... |
package kr.co.sist.user.faq.vo;
/**
* 사용자 - 문의사항 등록시 사용되는 클래스
* @author sist37
*/
public class ReqAddVO {
private String reqType;
private String reqTitle;
private String reqContent;
private String userId;
public ReqAddVO() {
}
public ReqAddVO(String userId, String reqType, String reqTitle... |
package lp2.lerDados;
/**
* Classe que define um estabelecimento.
*
* @author Flavia Gangorra<br>
* Irvile Rodrigues Lavor<br>
* Jordao Ezequiel Serafim de Araujo<br>
*/
public class Estabelecimento implements Comparable<Estabelecimento> {
private String nome;
private String locali... |
//package com.example.demo.error;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.http.HttpStatus;
//
///**
// * 描述:自定义错误页面
// * @author Ay
// * @date 2017/12/02
// */
//@Configuration
//public class ErrorPageConfig {... |
package uz.kassa.test.exception;
public class CurrencyInfoNotFoundException extends RuntimeException {
public CurrencyInfoNotFoundException(String message) {
super(message);
}
public CurrencyInfoNotFoundException(String message, Throwable cause) {
super(message, cause);
}
}
|
package com.icehousecorp.jsonapi;
import com.icehousecorp.jsonapi.constant.JSONAPIMemberKey;
import com.icehousecorp.jsonapi.constant.JSONAPIResourceKey;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.util.Log;
import java.util.Iterator;
/**
* Created by imren... |
package com.elsevier.ews.jacksontest;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core... |
import javax.swing.JPanel;
public class MainSoundPannel extends JPanel {
/**
* Create the panel.
*/
public MainSoundPannel() {
}
}
|
package com.insat.gl5.crm_pfa.web.converter.account;
import com.insat.gl5.crm_pfa.model.Account;
import java.io.Serializable;
import java.util.List;
import javax.enterprise.context.RequestScoped;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Con... |
package com.techelevator;
public class SecondClass extends PostalService {
public double rate;
@Override
public double calculateRate(int distance, double weight) {
this.rate = 0;
if (weight <= 7) {
this.rate += 0.0035;
} else if (weight >= 8 && weight < 15) {
this.rate += 0.0040;
} else if (weight ==... |
package com.example.spring04.service;
import java.util.List;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import com.example.spring04.modelVO.BoardVO;
import com.example.spring04.modelVO.Criteria;
import com.example.spring04.modelVO.SearchCriteria;
public interface BoardService {
... |
/**
*
*/
package com.assignment.conference.factory;
import com.assignment.conference.constants.Constants;
import com.assignment.conference.enums.TimeMeasureEnum;
import com.assignment.conference.time.Time;
/**
* @author vipul
*
*/
public class TimeFactory {
/**
*
*/
public TimeFactory() {
}
public st... |
package com.rc.portal.dao.impl;
import java.sql.SQLException;
import java.util.List;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.rc.app.framework.webapp.model.page.PageManager;
import com.rc.app.framework.webapp.model.page.PageWraper;
import com.rc.portal.dao.TMemberCertificatesDAO;
import com.rc.portal.... |
package com.zero.qa.testcases;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import com.zero.qa.base.TestBase;
import com.zero.qa.pages.Home;
import com.zero.qa.pages.LoginPage;
import com.zero.qa.pages.PurForCurPag... |
package hackerrank;
public class InOrderBinaryTreeTraversalWithoutRecursion {
// https://www.java67.com/2016/08/binary-tree-inorder-traversal-in-java.html
public static void main(String[] args) {
}
}
|
package com.pine.template.demo.old.dagger2;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import com.pine.template.demo.R;
import com.pine.template.demo.util.ConsoleU... |
package com.harrymt.productivitymapping.coredata;
import android.content.Context;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.maps.model.LatLng;
import com.harrymt.productivitymapping.PROJECT_GLOBALS;
import com.harrymt.productivitymapping.utility.Util;
import org.json.JSONArr... |
package com.countout.dao;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.hibernate.Criteria;
import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;
import com.countou... |
package com.github.adambots.steamworks2017.autonModes;
import org.usfirst.frc.team245.robot.Actuators;
import org.usfirst.frc.team245.robot.Constants;
import com.github.adambots.steamworks2017.drive.Drive;
import edu.wpi.first.wpilibj.command.Command;
public class BaselineCenter extends Command {
static double dis... |
package com.zking.ssm.service.imp;
import com.zking.ssm.mapper.NewsMapper;
import com.zking.ssm.model.News;
import com.zking.ssm.service.INewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transact... |
package chess.pkg2;
import java.util.ArrayList;
public class King extends Piece{
int[] kingOffset = {-9,-8,-7,-1,1,7,8,9};
public final static int[] whiteKingEvaluator = {
-30,-40,-40,-50,-50,-40,-40,-30,
-30,-40,-40,-50,-50,-40,-40,-30,
-30,-40,-40,-50,-50,-40,-40... |
package com.github.vinja.server;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import com.github.vinja.compiler.CompilerContext;
import com.github.vinja.omni.MemberReferenceFinder;
import com.github.vinja.omni.ReferenceLocation;
public class SzjdeSearchRef... |
package com.campus.mapper;
import com.campus.entity.MenuBean;
import java.util.List;
public interface SysMapper {
//根据角色id查询菜单
public List<MenuBean> getMenuList(Long rid);
}
|
package net.d4rk.inventorychef.inventory.expandablelistview.storageplaceingredientlist.model;
import net.d4rk.inventorychef.database.dao.Ingredient;
import net.d4rk.inventorychef.database.dao.StoragePlace;
import java.util.List;
public class Inventory {//implements Parent<Ingredient> {
private StoragePlace mSto... |
package calculator.backend;
public class Operator implements MathematicalObject {
private MathOp mathOp;
public Operator(MathOp mathOp) {
this.mathOp = mathOp;
}
public MathOp getMathOp() {
return mathOp;
}
}
|
package com.yunkuent.sdk;
import com.gokuai.base.ReturnResult;
import org.junit.Assert;
import org.junit.Test;
import java.util.HashMap;
/**
* Created by qp on 2017/3/16.
*/
public class YunkuThirdPartyTest {
public static final String CLIENT_ID = "";
public static final String CLIENT_SECRET = "";
pub... |
package com.goldgov.dygl.dynamicfield.valueresource.impl;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
impo... |
package com.isystk.sample.web.front.service;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
impo... |
package com.main.activity;
import android.app.TabActivity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.widget.TabHost;
import com.main.chart.DisplayActivity;
@SuppressWarnings("deprecation")
public class TabMainActivity extends TabActivit... |
package flight_booking;
import java.util.*;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
public class Passenger {
public int pid;
public String name, flightNumber, date, cardNumber;
public String bookTime, address, expDate;
public Passenger (int pid, String cardNumber, String flightNumber, S... |
package ua.lviv.iot.labaratornafirst;
import java.lang.String;
public class ElectricLamp {
private static String companyProducer;
protected float widthInMm;
protected float lengthInMm;
private float powerOfLightningInWatts;
private int warrantyPeriodOfWorkInDays;
private String producing... |
package com.av.acciones.usuario;
import org.apache.log4j.Logger;
import com.av.acciones.BaseAccion;
import com.av.db.layer.interfaces.UsuarioLayer;
import com.av.exceptions.AvException;
import com.av.rmi.Parametro;
import com.av.rmi.Parametro.Tipo;
/**
* Accion que obtiene todos los usuarios activos regi... |
package com.commercetools.pspadapter.payone.mapping;
import com.commercetools.pspadapter.BaseTenantPropertyTest;
import com.commercetools.pspadapter.payone.config.PayoneConfig;
import com.commercetools.pspadapter.payone.domain.ctp.PaymentWithCartLike;
import com.commercetools.pspadapter.payone.domain.payone.model.comm... |
package br.com.helpdev.quaklog.parser.impl;
import br.com.helpdev.quaklog.processor.parser.GameParserException;
import br.com.helpdev.quaklog.processor.parser.impl.ShutdownGameParser;
import br.com.helpdev.quaklog.processor.parser.objects.ShutdownGameObParser;
import org.junit.jupiter.api.Test;
import java.util.Array... |
package net.minecraftforge.common.property;
public interface IUnlistedProperty<V> {
String getName();
boolean isValid(V paramV);
Class<V> getType();
String valueToString(V paramV);
}
/* Location: C:\Users\BSV\AppData\Local\Temp\Rar$DRa6216.20396\Preview\Preview.jar!\net\minecraftforge\c... |
package br.usp.ffclrp.dcm.lssb.transformation_software.rulesprocessing;
public class FlagFixedContent extends Flag{
private String content;
public FlagFixedContent(String content){
this.content = content;
}
public String getContent(){
return content;
}
}
|
package com.company;
import java.util.Map;
public interface Pieces {
void createNewPieces(GameBoard myBoard);
boolean moveSyntaxOK(String move);
boolean makeMove(String move, String color);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package rmichatserver;
/**
*
* @author mohammad
*/
public class UserAccount
{
private String userName;
private String Password;
private String FirstName;
private String LastName;
... |
package algorithms.mdp;
import java.util.HashMap;
import learning.*;
import problems.maze.MazeProblemMDP;
public class PolicyIteration extends LearningAlgorithm {
/**
* Max delta. Controls convergence.
*/
private double maxDelta = 0.01;
/**
* Learns the policy (notice that this method is... |
execute(des, src, registers, memory) {
Calculator calculator = new Calculator(registers, memory);
int desSize = 0;
int srcSize = 0;
if( des.isRegister() ) {
desSize = registers.getBitSize(des);
}
if( src.isRegister() ) {
srcSize = registers.getBitSize(src);
}
if( des.... |
package org.springframework.boot.logging.log4j2;
import org.apache.logging.log4j.core.LogEvent;
import org.apache.logging.log4j.core.impl.Log4jLogEvent;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.endsWith;
import static org.hamcrest.Matchers.equalTo... |
package com.thoughtworks.shoppingwizard.product_detail;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.v... |
package org.star.uml.designer.ui.action;
import java.net.URL;
import java.util.HashMap;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.Platform;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.ec... |
public class TestSeries {
//test method
public static void main(String[] args) {
AbstractSeries sn;
double[] tuple;
sn = new Arithmetic();
System.out.println("The first five terms of the arithmetic series are:");
for (int n=0; n<5; n++) {
System.out.print... |
package com.tencent.mm.plugin.exdevice.ui;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
class a$2 implements OnClickListener {
final /* synthetic */ String dMs;
final /* synthetic */ a iDD;
a$2(a aVar, String str) {
... |
package com.philippe.app.domain;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDate;
@Getter @Setter
public class LoadFullSupply {
public static final String EVENT_TYPE = "FULL_SUPPLY";
private String fileLocationGB;
private String fileLocationISL;
private String source;
priv... |
package com.ab.yuri.aifuwu.gson;
import java.util.List;
/**
* Created by Yuri on 2017/1/26.
*/
public class WeatherNow {
/**
* basic : {"city":"南京","cnty":"中国","id":"CN101190101","lat":"32.048000","lon":"118.769000","update":{"loc":"2017-01-26 18:57","utc":"2017-01-26 10:57"}}
* now : {... |
package com.example.userportal.service;
import com.example.userportal.service.dto.ShoppingCartPositionDTO;
import java.util.List;
public interface ShoppingCartService {
ShoppingCartPositionDTO addPosition(int productId);
ShoppingCartPositionDTO getPosition(int id);
List<ShoppingCartPositionDTO> getAllCurren... |
package collector.event.listener.kafka;
import collector.configuration.EthConfiguration;
import collector.configuration.EthKafkaConfiguration;
import collector.event.EthPendingTxEvent;
import collector.event.EthTxEvent;
import collector.event.publisher.EthPendingTxPublisher;
import collector.event.publisher.EthTransac... |
package com.survey.search;
import com.survey.model.Survey;
import java.util.LinkedList;
import java.util.List;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class InformationOnSurveys {
pri... |
package parser.parsertables;
import parser.Token;
import parser.syntax.Rule;
import parser.syntax.Syntax;
import util.UniqueAggregatingHashtable;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
class FirstSets extends UniqueAggregatingHashtable {
public Firs... |
package com.progoth.synchrochat.shared;
public class InvalidIdentifierException extends Exception
{
private static final long serialVersionUID = 4072771293139310251L;
public InvalidIdentifierException()
{
}
public InvalidIdentifierException(final String aMsg)
{
super(aMsg);
... |
public enum WingAngle {
Wild, Dichaete
}
|
package nl.restaurant.wt.controller;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;
import nl.restaurant.wt.domein.Klant;
@Component
public interface KlantRepository extends CrudRepository<Klant, Long>{
}
|
package marier.UI;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.ArrayLi... |
/*
* JMEP - Java Mathematical Expression Parser.
* Copyright (C) 1999 Jo Desmet
*
* 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.1 of the License, or a... |
package modle;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
import pojo.AplicationPayment;
import pojo.Application;
import pojo.Apprualstatues;
import pojo.Otheritiscat;
import pojo.Payment;
import pojo.TradeLicense;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package legaltime;
/**
*
* @author bmartin
*/
public class ResourceAnchor {
public ResourceAnchor() {
}
}
|
package com.ab.yuri.aifuwu;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Build;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import android.support.design.widget.NavigationView;
import android.suppor... |
package kr.or.ddit.basic;
public class Service {
@PrintAnnotation()
public boolean method1() {
System.out.println("메서드1에서 출력되었습니다.");
return true;
}
@PrintAnnotation("%")
public boolean method2() {
System.out.println("메서드2에서 출력되었습니다.");
return true;
}
@PrintAnnotation(value = "#", count= 25)
public... |
package fr.solutec.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.web.bind.annotation.PathVariable;
import fr.solutec.entities.Bar;
public interface BarRepository extends JpaRepository<Bar, Long> {
public Bar findByNom (String nom);
public Bar deleteById (@Pa... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
package com.rs.game.player.content.citadel;
import com.rs.game.player.dialogues.Dialogue;
public class LeavingCitadel extends Dialogue {
@Override
public void start() {
sendDialogue(
"This portal will bring you back to land. Do you",
"want to leave your citadel?");
}
@Override
public void run(int ... |
/* Generated by AN DISI Unibo */
/*
This code is generated only ONCE
*/
package it.unibo.logic_controller;
import it.unibo.is.interfaces.IOutputEnvView;
import it.unibo.qactors.QActorContext;
public class Logic_controller extends AbstractLogic_controller {
public Logic_controller(String actorId, QActorCont... |
package dao;
import com.zhao.RunBoot;
import com.zhao.entity.City;
import com.zhao.repository.CityRepository;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resour... |
package cz.alza.uitest.pages;
import com.codeborne.selenide.SelenideElement;
import org.openqa.selenium.By;
import static com.codeborne.selenide.Selenide.*;
import static com.codeborne.selenide.WebDriverRunner.url;
public class AlzaCartPage extends AlzaPage<AlzaCartPage> implements AlzaInterface {
private static ... |
public class NumberOfStepsToReduceANumberToZero {
public static int numberOfSteps (int num) {
int result = 0;
while (num > 0) {
if (num%2 == 0){
num = num/2;
result = result +1;
}
else {
num = num - 1;
... |
package com.tencent.mm.plugin.exdevice.service;
import com.tencent.mm.sdk.platformtools.x;
class b$2 implements Runnable {
final /* synthetic */ int itv;
final /* synthetic */ b iyw;
final /* synthetic */ r iyx;
final /* synthetic */ int[] iyy;
b$2(b bVar, int i, r rVar, int[] iArr) {
thi... |
package com.ssm.wechatpro.controller;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ssm.wechatpro.object.InputObject;
import com.ssm.wechatpro.o... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package begining.gf4.ejb.jms.mdb;
import begining.gf4.ejb.common.ConstantValueEJB;
import java.security.Principal;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.Resou... |
package com.example.maikebg.bodycarespa;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android.view.View;
import android... |
package br.com.exemplo.dataingestion.adapters.events.producers;
import br.com.exemplo.dataingestion.adapters.events.entities.DataLancamentoEvent;
import br.com.exemplo.dataingestion.adapters.events.mappers.EventMapper;
import br.com.exemplo.dataingestion.domain.entities.Lancamento;
import br.com.exemplo.dataingestion.... |
package com.level01.정수내림차순으로배치하기;
import java.util.*;
public class MTest {
public static void main(String[] args) {
int n = 118372;
Solution solution = new Solution();
System.out.println(solution.solution(n));
}
}
class Solution {
public long solution(long n) {
long answer = 0;
Stri... |
package com.tencent.mm.plugin.webview.ui.tools.game;
import android.os.Bundle;
import com.tencent.mm.plugin.webview.ui.tools.WebViewUI.g;
class GameWebViewUI$a extends g {
final /* synthetic */ GameWebViewUI qgm;
private GameWebViewUI$a(GameWebViewUI gameWebViewUI) {
this.qgm = gameWebViewUI;
... |
package com.kzw.leisure.presenter;
import com.kzw.leisure.bean.Chapter;
import com.kzw.leisure.bean.ChapterRule;
import com.kzw.leisure.bean.Query;
import com.kzw.leisure.contract.ReadBookContract;
import com.kzw.leisure.realm.ChapterList;
import com.kzw.leisure.rxJava.RxSubscriber;
import java.util.List;
/**
* aut... |
package com.tencent.mm.plugin.game.gamewebview.ui;
import android.os.Bundle;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.xweb.x5.a.a.a.a.b;
class d$3 extends b {
final /* synthetic */ d jJO;
d$3(d dVar) {
this.jJO = dVar;
}
public... |
import java.sql.Timestamp;
import java.util.Collection;
import java.util.LinkedList;
import java.util.regex.*;
public class Finder
{
private static String parameter1;
private static String parameter2;
private static String mode;
public static void setMode(String mode) {
Finder.mode = mode;
... |
package com.tencent.mm.plugin.luckymoney.f2f.a;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.network.k;
import com.tencent.mm.network.q;
import com.tencent.mm.protocal.c.vb;
import com.tencent.mm.protocal.c.vc;
import com.tencent.mm.sdk.platformtools.x;
pub... |
package exercise_chapter7;
public class arrays {
public static void main(String[] args) {
int [] testList = {3,2,64,23,88,4};
java.util.Arrays.sort(testList);
printArrays(testList);
int [] test2 = new int [5];
java.util.Arrays.fill(test2, 0,2,3);
printArrays(test2);
int index = jav... |
package calculators;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.SwingConstants;
public class Calculator {
priv... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Objetos;
import java.util.Vector;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.game.Sprite;
/**
*
* @author Alberto Ortiz
*/
public class ControladorPowerUps {
private Vect... |
package view;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import org.jfree.chart.ChartColor;
import org.jfree.chart.ChartFactory;
impo... |
package com.spring.boot.rocks.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.spring.boot.rocks.model.AppUser;
@Repository
public interface UserRepository extends JpaRepository<AppUser, Long> {
AppUser findByUsername(String usern... |
package lesson4.homework;
import java.util.Scanner;
public class Faktorial {
public static void main(String[] args) {
int a;
long b = 1;
Scanner scan = new Scanner(System.in);
System.out.print("Введите натурально число: ");
if (scan.hasNextInt()) {
a = scan.next... |
/*
* Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
*
* 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 b... |
package com.websharp.async;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import com.w... |
package com.research.robertodvp.audioanalyzer;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.GridLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import and... |
package com.systex.sysgateii.util;
import java.text.NumberFormat;
import java.text.ParsePosition;
import java.util.Arrays;
public class StrUtil {
public static boolean isNotEmpty(String s) {
if (s == null || s.isEmpty()) {
return false;
}
return true;
}
public static boolean isEmpty(String s) {
return ... |
package HW7;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Comparator;
//Changes made to check exception.In evaluate function,1.0 is chaged to 1 to check exception. An exception is added in evaluate function(commented). If it is uncommented the program will run even if error is thrown in ev... |
package main.java.com.utilities;
/*
* Represents item being used for training/testing
*
* Author: Dylan Lasher
*/
import main.java.com.deepNeuralNetwork.Matrix;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Item
{
private final double[] feature... |
package com.smxknife.java2.collections.list;
import java.util.Vector;
/**
* @author smxknife
* 2020/7/9
*/
public class VectorDemo {
public static void main(String[] args) {
Vector<Integer> vector = new Vector<>();
vector.elements();
}
}
|
package com.smxknife.mianshi;
import java.util.Objects;
/**
* 单向链表归并排序
* 由于链表(LinkedList)不支持随机访问(Random Access),只允许顺序访问,
* 因此对于链表的O(logn)时间复杂度的排序算法不可以采用诸如快速排序等基于随机访问的排序算法,而归并排序可以满足这一需求
*
* 分治思想
* 1. 采用快慢指针找到中间元算
* 2. 先排左表,再排右表
* 3. 合并
* @author smxknife
* 2021/6/2
*/
public class _07_DanXiangLianBiaoGuiBin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.