text stringlengths 10 2.72M |
|---|
package tasks.lift;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.CancelledKeyException;
import java.nio.channels.ClosedChannelException;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.SocketChanne... |
package antColony;
public class Cell {
int pheromone;
int cellType;//0=normal, 1=finish
int[] loc;
//CONSTRUCTORS
public Cell(int x, int y){
pheromone=1;
cellType=0;
loc=new int[2];
loc[0]=x;
loc[1]=y;
}
//GET_METHODS
public int getPheromone(){
return pheromone;
}
pu... |
package com.example.selfhelpcity.view;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import com.alibaba.fastjson.JSON;
import com.comenjoysoft.baselibrary.util.SPUtils;
import com.example.selfhelpcity.R;
import com.example.selfh... |
/*******************************************************************************
* Copyright 2013 Vitaliy Yakovchuk
*
* 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.a... |
/*
* Copyright (C) 2019 The Android Open Source Project
*
* 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 app... |
package Shapes;
public class Circle implements Shapes{
double radius;
int edges = 0;
public Circle(double radius, int edges) {
this.radius = radius;
this.edges = edges;
}
public double getArea(){
return this.radius * this.radius * Math.PI;
}
public double getCirc... |
package tiles.inner;
import java.util.ArrayList;
import java.util.Observable;
import java.util.Observer;
import game.Player;
public class Corner extends Tile_observable implements Observer{
protected String links;
public boolean connected=false;
private boolean hasPort=false;
private boolean hasConstruc... |
package com.consultorio.repository;
import java.util.List;
import javax.persistence.Query;
import com.consultorio.model.EspecialidadeMedica;
public class EspecialidadeMedicaRepository extends Repository<EspecialidadeMedica> {
public List<EspecialidadeMedica> findAll(){
StringBuffer jpql = new StringBuffer()... |
package msip.go.kr.member.service;
import java.util.List;
import msip.go.kr.member.entity.HeadMember;
import msip.go.kr.member.entity.Member;
import msip.go.kr.member.entity.MemberVO;
/**
* 본부 회원 관련 업무 처리를 위한 Sevice Interface 정의
*
* @author 정승철
* @since 2015.07.06
* @see <pre>
* == 개정이력(Modific... |
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.mapreduce.*;
import org.apache.hadoop.io.*;
public class WordSortMapper extends Mapper<Text, IntWritable, IntWritable, Text> {
public void map(Text key, IntWritable value, Context context) throws IOException, InterruptedExcep... |
//public class Main {
// public static void main(String[] args) {
//
//// LoginController loginController = new LoginController();
//// loginController.run();
////
//// CreepDAOImplementation creepDAOImplementation = new CreepDAOImplementation();
//// creepDAOImplementation.getAllMentorsF... |
package com.zhaoyan.ladderball.service.event.tmpmatch.handle;
import com.zhaoyan.ladderball.dao.match.TmpMatchPartDao;
import com.zhaoyan.ladderball.domain.eventofmatch.db.TmpEventOfMatch;
import com.zhaoyan.ladderball.domain.match.db.TmpMatchPart;
public class EventXiaoJieJieShuHandler extends EventHandler {
@O... |
package pl.lodz.uni.math.contactapp;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.v... |
package gil.server.http;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.HashMap;
public class HTTPConnectionReader {
private static final String CRLF = "\r\n";
public HashMap<String, String> readRequest(BufferedReader bufferedReader) throws IOException {
HashMap<String, S... |
import java.util.*;
public class TopKFrequent {
public static List<String> topKFrequent(String[] words,int k){
// 1.统计单词出现次数,放入 Map 中
Map<String,Integer> m = new HashMap<>();
for(String word:words){
m.put(word,m.getOrDefault(word,0)+1);
}
System.out.println(m);
... |
package tim.project.lab.Services;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
@Service
public class ListServiceImpl implements ListServiceInterface {
ArrayList<Integer> l;
private Random r = new Random();
@Override
public ... |
package com.t2p.persistence.entity;
import com.a97lynk.login.persistence.entity.User;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Entity(name = "news")
public class News implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int id;
... |
package business.authentication;
public class LinkedinAuthentication {
public Boolean authenticateForEmail(String email, String password) {
return true;
}
public Boolean authenticateForPhone(int phone, String password) {
return true;
}
}
|
package com.gxtc.huchuan.bean;
/**
* Created by Gubr on 2017/6/1.
*/
public class SeriesSelBean {
/**
* id : 209
* seriesname : 43234
*/
private String id;
private String seriesname;
public String getId() { return id;}
public void setId(String id) { this.id = id;}
public ... |
package mx.redts.adendas.service;
import java.io.File;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.List;
import mx.redts.adendas.dao.IAdendaDAO;
import mx.redts.adendas.dto.FacturaDTO;
import mx.redts.adendas.exception.AdendaException;
import mx.redts.adendas.model.FeDetalle;
im... |
package com.ats.communication_admin.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import com.ats.communication_admin.bean.ComplaintData;... |
package com.kevin.cloud.service.config;
import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperConfiguration;
import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.... |
package leetCode.copy.Other;
/**
* 9. 回文数
*
* 给你一个整数 x ,如果 x 是一个回文整数,返回 true ;否则,返回 false 。
* 回文数是指正序(从左向右)和倒序(从右向左)读都是一样的整数。例如,121 是回文,而 123 不是。
*
* 示例 1:
* 输入:x = 121
* 输出:true
*
* 示例 2:
* 输入:x = -121
* 输出:false
* 解释:从左向右读, 为 -121 。 从右向左读, 为 121- 。因此它不是一个回文数。
*
* 示例 3:
* 输入:x = 10
* 输出:false
* 解释:从... |
package cn.com.signheart.component.core.core.dao;
import cn.com.signheart.component.core.core.model.TbPlatFormConfig;
import java.sql.SQLException;
import java.util.List;
/**
* Created by ao.ouyang on 16-1-11.
*/
public interface IPlatFormCfgDao {
/**
* 查询所有配置
* @return
* @throws SQLException
... |
/*
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.peternwerner.iagogame;
public class LevelListFiller {
public void fillList() {
// how many levels are in n index?
int[] lengths = {0, 0, 18, 96, 96, 48, 0, 0, 0, 0};
// tell maingame the size of each level list
for(int i = 0; i < MainGame.levelListSize.length; i++) {
MainGame.levelLi... |
package com.choco.rpc.service.impl;
import com.alibaba.dubbo.config.annotation.Service;
import com.choco.common.entity.Admin;
import com.choco.common.result.BaseResult;
import com.choco.common.utils.JsonUtil;
import com.choco.rpc.service.CartService;
import com.choco.rpc.vo.CartResult;
import com.choco.rpc.vo.CartVo;
... |
/*
* Copyright Verizon Media, Licensed under the terms of the Apache License, Version 2.0. See LICENSE file in project root for terms.
*/
package com.yahoo.cubed.service;
import com.yahoo.cubed.dao.DAOFactory;
import com.yahoo.cubed.dao.FieldKeyDAO;
import com.yahoo.cubed.model.FieldKey;
import com.yahoo.cubed.serv... |
/*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.pos.porschetower.utils;
import java.util.ArrayList;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
public class FitFragment extends Fragment {
public ArrayList<BackStack> hMapTabs = new ArrayList<BackStack>();
publ... |
package com.bytest.autotest.innerService;
import com.bytest.autotest.domain.BreEventParam;
import java.util.List;
/**
* 策略引擎事件请求和响应参数表(BreEventParam)表服务接口
*
* @author makejava
* @since 2020-08-20 16:09:08
*/
public interface BreEventParamService {
/**
* 通过ID查询单条数据
*
* @param requestId 主键
... |
package org.datadozer.parser;
import java.time.Instant;
import java.util.Date;
import java.util.Map;
class Test {
Date dateNow() {
return Date.from(Instant.EPOCH);
}
Double sort(Map<String, String> p, Map<String, String> d) {
return ((0.3 * Double.parseDouble(p.get("sap"))) / 10.0) + (0.... |
package com.jagdish.bakingapp.db;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;
import android.arch.persistence.room.Transaction;
import com.jagdish.bakingapp.data.Ingredient;
... |
package pro.likada.service.serviceImpl;
import pro.likada.dao.DocumentDAO;
import pro.likada.dao.DriveStateDAO;
import pro.likada.model.Document;
import pro.likada.model.DriveState;
import pro.likada.service.DriveStateService;
import javax.inject.Inject;
import javax.inject.Named;
import javax.transaction.Transaction... |
package com.tscloud.common.utils;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.*;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLDecoder;
public class HttpRequest {
private static Logger ... |
package download.service;
public interface DownLoadService {
/**
* 获取所有股票历史数据
*/
public void getYahooFinanceStockData();
/**
* 启动定时器下载
*/
public void startDownLoadJobThread();
}
|
package io.jrevolt.sysmon.client.ui;
import io.jrevolt.sysmon.model.ClusterDef;
import io.jrevolt.sysmon.model.EndpointStatus;
import io.jrevolt.sysmon.model.EndpointType;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;... |
package com.javaorigin.test.apk;
import android.app.ActionBar;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.CheckBoxPreference;
import... |
import java.util.Scanner;
class Lesson_33_Activity_One {
public static void upper(String[] x) {
for (int i = 0; i < x.length; i ++) {
x[i] = x[i].toUpperCase();
System.out.println(x[i]);
}
}
public static void main(String[] args) {
Scanner scan = new Scanner(... |
package com.hfjy.framework.database.nosql;
import java.util.List;
import com.google.gson.JsonObject;
public interface DataAccess {
boolean save(JsonObject data);
boolean saveList(List<JsonObject> data);
long wipe(Condition condition);
JsonObject find();
JsonObject find(Condition condition);... |
package com.spreadtrum.android.eng;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import an... |
package exam.iz0_803;
public class Exam_107 {
}
/*
Given the code fragment:
public static void main(String[] args) {
ArrayList<String> list = new ArrayList<>();
list.add("one");
list.add("two");
list.add("three");
list.remove(list.size() - 2);
System.out.println("This size is: " + list.size())... |
import java.util.Scanner;
public class Fifteen {
public static void main(String[] args) {
// 15. 1~100 사이의 숫자 하나를 정한 뒤(랜덤으로 생성해도 됨), 10번 이내로 그 숫자를 맞추는 게임을 작성하시오.(10번 이내로 못 맞추었을 경우는 약간 머리가 딸리는 사람이므로 Game Over 처리를 신랄하게 해 주기 바람)
System.out.println("15번 문제");
int num, i, a;
num = 78;
i = 1;
Scanner input = n... |
package DAO;
import java.util.ArrayList;
import models.PropostaTC;
import models.Serializar;
public class PropostaTCDAO implements DAO<PropostaTC>{
ArrayList<PropostaTC> lista = Serializar.load("listaPropostas.ser");
public boolean update(PropostaTC object, PropostaTC newObject) {
if(object.... |
package novoda.rest.cursors;
import java.io.IOException;
import novoda.rest.handlers.QueryHandler;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.ClientProtocolException;
// not used for now
public class CursorFactory {
private static final String APPLIC... |
package com.nitnelave.CreeperHeal.block;
import org.bukkit.block.BlockState;
class CreeperPlate extends CreeperBlock
{
protected CreeperPlate(BlockState blockState)
{
super(blockState);
blockState.setRawData((byte) 0);
}
}
|
package br.com.ocjp7.concorrencia;
import java.util.ArrayList;
import java.util.Collections;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
public class MaxValueCollections {
ArrayList listArray = new ArrayList<>();
ReadWriteLock readWriteLock = new Ree... |
package com.wipro.HMS;
public abstract class HealthInsurancePlan {
// Code for 'coverage' field goes here
protected double coverage;
private InsuranceBrand offeredBy;
public InsuranceBrand getOfferedBy()
{
return offeredBy;
}
public void setOfferedBy(InsuranceBrand offeredBy)
{
... |
package cs3500.singleMoveModel;
import java.util.Iterator;
import java.util.Stack;
/**
* Abstraction class over different singleMoveModel piles.
*/
abstract class APile extends Stack<Card> implements Pile {
/**
* Gives a String representation of each element in this Pile.
* @return String
*/
public Str... |
package com.zantong.mobilecttx.user.activity;
import android.content.Intent;
import com.zantong.mobilecttx.R;
import com.zantong.mobilecttx.base.activity.MvpBaseActivity;
import com.zantong.mobilecttx.common.Injection;
import com.zantong.mobilecttx.presenter.MegDetailAtyPresenter;
import com.zantong.mobilecttx.user.f... |
package phonebook;
import java.lang.reflect.Field;
/**
* Class representing a phone number.
* Structure mainly taken from Effective Java.
* @author jherwitz
*/
public final class PhoneNumber implements Comparable<PhoneNumber> {
private final Short areaCode;
private final Short prefix;
private final Short lineN... |
package com.zaiou.common.mybatis.po;
import java.io.Serializable;
import java.util.Date;
public class SysScheduleLog implements Po {
private Long id;
private String taskKey;
private String taskName;
private Date exeDate;
private Integer result;
private String remark;
private Date sta... |
package com.bdqn.exception;
import com.bdqn.pojo.User;
/**
*@ClassName:业务异常通用的枚举
*@Description:
*@Author:lzq
*@Date: 2019/9/9 9:05
**/
public enum EnumBusinessError implements CommonError{
UNKNOWERROR(10001,"未知错误"),
USER_NOT_FOUND(20001,"用户未找到"),
ROLES_NOT_FOUND(30001,"用户角色数据未找到"),
;
privat... |
/*
* 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 fp.dam.gestiondeficheros;
import java.io.File;
/**
*
* @author manuel
*/
public class ClaseFile {
/**
* @param a... |
package stack;
public class ResizingArrayStackOfStrings implements StackOfStrings {
private String[] s;
private int N = 0;
public ResizingArrayStackOfStrings(int capacity){
s = new String[1];
}
@Override
public void push(String item) {
if (N == s.length) resize(2 * s.length);
s[N++] = item;
}
@Over... |
/*
* 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 com.mfs.datareward.apigw.config;
import com.elcom.util.miscellaneous.cfg.configloader.ConfigLoader;
import com.elcom.util.misc... |
package uk.co.mtford.jalp.abduction.rules.visitor;
import uk.co.mtford.jalp.JALPException;
import uk.co.mtford.jalp.abduction.DefinitionException;
import uk.co.mtford.jalp.abduction.Store;
import uk.co.mtford.jalp.abduction.logic.instance.*;
import uk.co.mtford.jalp.abduction.logic.instance.constraints.ConstraintInsta... |
package me.ewriter.rxgank;
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.util.Log;
import android.view.LayoutInflater;
import android.view.... |
package com.gaoshin.onsalelocal.slocal.entity;
import javax.persistence.Entity;
import javax.persistence.Table;
import common.db.entity.DbEntity;
@Entity
@Table
public class Deal extends DbEntity {
private Long dateAdded;
private Long endDate;
private String active;
private Integer discount;
private Integer pri... |
package io.github.satr.aws.lambda.bookstore.repositories;
// Copyright © 2022, github.com/satr, MIT License
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBScanExpression;
import com.amazonaws.services.dynamodbv2.model.AttributeValue;
... |
package lotro.web;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.regex.Matcher;
i... |
/*
* 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 org.rdcit.tools;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
... |
package com.lovers.java.mapper;
import com.lovers.java.domain.LoversIncident;
import com.lovers.java.domain.LoversIncidentExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface LoversIncidentMapper{
/**
* This method was generated by MyBatis Generator.
* This meth... |
package com.example.canalu.ui.orders.details;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.example.canalu.model.Orders;
import com.example.canalu.model.OrdersDetails;
import com.example.canalu.request.ApiClient;
import java.util.ArrayL... |
package com.triview.demo.gateway;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.conf... |
package com.opentangerine.genotype.html;
import com.sun.media.sound.FFT;
import org.apache.commons.lang3.StringUtils;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.jsoup.Jsoup;
import org.junit.Test;
import java.util.stream.Stream;
import static com.opentangerine.genotype.html.Wizard.*;... |
/*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.vipvideo.api;
import android.util.SparseArray;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.lixh.rxhttp.ApiFactory;
import com.lixh.rxhttp.convert.JsonConverterFactory;
import com.vipvideo.util.web.mahua.AesUtil;
import com.vipvideo.util.web.mahua.HeaderInfo;
import com.vip... |
/**
*/
package iso20022.impl;
import java.io.IOException;
import java.net.URL;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.common.util.WrappedException;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ec... |
package com.esum.wp.ims.backupinfo.struts.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.esum.appframework.excepti... |
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.imageio.ImageIO;
class Pixel {
BufferedImage image;
int width;
int height;
public Pixel() {
try {
File input = new File("technext.jpg");
image = ImageIO.read(input);
... |
package com.git.cloud.resmgt.common.model;
public enum DatastoreTypeEnum {
DATASTORE_TYPE_LOCAL_DISK("LOCAL_DISK"), // 本地磁盘
DATASTORE_TYPE_NAS_DATASTORE("NAS_DATASTORE"), // 共享NAS
;
private final String value;
private DatastoreTypeEnum(String value) {
this.value = value;
}
... |
package com.baidu.serivce;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baidu.dal.dao.ServerInfoRepository;
import com.baidu.dal.model.ServerInfo;
/**
* <p>
* create ... |
package org.avaeriandev.killchests.chests.soul.versioning;
import org.avaeriandev.api.versioning.VersionUpgrader;
import org.avaeriandev.api.versioning.VersionableData;
public class SoulData_v2 implements VersionUpgrader {
@Override
public void upgrade(VersionableData data) {
// TODO: upgrade data f... |
package java_learning;
class A
{
public A()
{
System.out.println("in A");
}
public A(int i)
{
System.out.println("in A int");
}
}
class B extends A
{
public B()
{
super();
System.out.println("in B");
}
public B(int i)
{
super(i); //super class is used to call parameterised... |
package apiAlquilerVideoJuegos.basedatos;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import apiAlquilerVideoJuegos.modelos.Tercero;
@Repository
public interface TerceroBD extends CrudRepository<Tercero, Long>{
} |
package jthrift;
public class TList extends TContainer {
private TType elemType;
public TList(TType elemType) {
this.elemType = elemType;
}
@Override
public VirtualType getVirtualType() { return VirtualType.LIST; }
} |
package com.example.pramesh.demo;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import java.util.Calendar;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatAct... |
//индекс массы тела
package Tasks;
import java.io.*;
public class Task9 {
public static void main(String[] args) throws IOException {
BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
double weight = Double.parseDouble(buff.readLine());
double height = Double.par... |
package gameUI;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Insets;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.BorderFactory;
im... |
package Problem_10867;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashSet;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
Bu... |
package io.indreams.ecommerceuserinfoservice.service;
import io.indreams.ecommerceuserinfoservice.configuration.security.dao.UserRepository;
import io.indreams.ecommerceuserinfoservice.dao.UserRepo;
import io.indreams.ecommerceuserinfoservice.exception.UserFoundException;
import io.indreams.ecommerceuserinfoservice.mo... |
package gameState;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import main.Game;
import obje... |
package com.example.client;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
@SpringBootApplication(scanBasePackages = {"com.example.client"})
@ImportResource("classpath:demo-dubbo-clie... |
package com.example.controllers;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/ping")
public class HomeController {
@GetMapping
public ... |
import java.util.Scanner;
public class app {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
mailbox mail = new mailbox();
boolean isRunning = true;
while (isRunning) {
System.out.println("To enter new message press 'N'"+"\n"+"To delete mes... |
package com.davivienda.utilidades.ws.cliente.solicitarNotaDebitoCuentaCorrienteServiceATM;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceExc... |
package com.quaspecsystems.payspec.lib.service;
import java.util.List;
import com.quaspecsystems.payspec.lib.exception.QuaspecServiceException;
import com.quaspecsystems.payspec.lib.model.IProduct;
public interface IProductService {
List<? extends IProduct> getAll() throws QuaspecServiceException;
List<? extends... |
package waitfortest;
import testarch.io.BaseIO;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
public class YFS extends BaseIO {
public static void main(String[] args) {
// Scanner sc = n... |
package com.kieferlam.battlelan.game.map;
import com.kieferlam.battlelan.game.Game;
import com.kieferlam.battlelan.game.shaders.Shader;
import com.kieferlam.battlelan.game.shaders.ShaderProgram;
import org.jbox2d.collision.shapes.Shape;
import org.jbox2d.common.Vec2;
import org.jbox2d.dynamics.*;
import org.lwjgl.open... |
/**
* Common MVC logic for matching incoming requests based on conditions.
*/
@NonNullApi
@NonNullFields
package org.springframework.web.servlet.mvc.condition;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields;
|
import java.util.Date;
public class Request {
private int seller_id;
private int type; //»õÎïÖÖÀà
private double weight;
private char start;
private char destination;
private Boolean urgent;
public Request(int seller_id, int type, double weight, char start, char destination, Boolean urgent) {
// TODO Auto-g... |
/**
* $Id: Cast.java,v 1.18 2005/09/09 22:32:46 nicks Exp nicks $
*
* Contains information about cast member for particular performance.
* Performance is essentially a container class (among other things)
* for Casts.
*
* Originally part of the AMATO application.
*
* @author Nick Seidenman <nick@seidenman.ne... |
package com.example.thelimitbreaker.tabexperiment;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
impor... |
package com.example.enchanterswapna.foodpanda;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by enchanterswapna on 13/7/17.
*/
public class dealivlist implements Parcelable {
String ptypes;
String pptypes;
String pcost;
public String getPtypes() {
return ptypes;
... |
/*
* Created by Angel Leon (@gubatron), Alden Torres (aldenml), Erich Pleny (erichpleny)
* Copyright (c) 2012, FrostWire(R). All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Softwar... |
package enshud.s2.parser.parsers;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
import enshud.s1.lexer.TokenStruct;
import enshud.s2.parser.ParserException;
import enshud.syntaxtree.AbstractSyntaxNode;
import enshud.syn... |
package com.learningjava.VideoRentalApi.repositories;
import com.learningjava.VideoRentalApi.entity.RentalHistory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import javax.persistence.Id;
@Repository
public interface RentalHistoryRepository extends... |
package com.zlb.permission.sample;
import android.Manifest;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import com.zlb.permission.PermissionManager;
import com.zlb.permission.anno.RequestPermissions;
import com.zlb.permission.callback.P... |
/**
* Copyright (C) 2014-2017 Philip Helger (www.helger.com)
* philip[at]helger[dot]com
*
* 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/LICE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.