text stringlengths 10 2.72M |
|---|
package com.mpt.android.funzone;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.uti... |
import javafx.event.EventHandler;
import javafx.geometry.Point3D;
import javafx.scene.Group;
import javafx.scene.image.Image;
import javafx.scene.input.MouseEvent;
import javafx.scene.paint.PhongMaterial;
import javafx.scene.shape.Cylinder;
public class Piece extends Square {
private Player player;
private bo... |
package jwscert.rest.services.ejb;
import javax.ejb.Stateless;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@Path("/ejbwar1")
@Stateless
public class MyEjbResource1 {
@GET
public String Hello(){
return "Hello word MyEjbResource";
}
}
|
package com.tencent.mm.plugin.webview.ui.tools.jsapi;
import android.content.Intent;
import android.widget.Toast;
import com.tencent.mm.R;
import com.tencent.mm.aa.q;
import com.tencent.mm.model.am.b.a;
import com.tencent.mm.model.au;
import com.tencent.mm.model.c;
import com.tencent.mm.plugin.report.service.h;
import... |
package com.hsw.demofeibo01.controller;
import com.hsw.demofeibo01.domain.stu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
public class d... |
package com.demo.service;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Log;
import com.demo.bindservice.IMyCountSer... |
package com.example.asyncimageloader;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widg... |
package test;
public class QueueList {
public static class QueueArray<E>{
//设定队列,队的容量,前端和后端,元素数量。
//前端为队头元素位置,后端下标为队尾元素后一个位置。
private int size = 5 ;
private Object[] que_arr ;
private int front ;
private int rear ;
private int count ;
//初始化队列
public QueueArray(){
que_arr =new Obj... |
package com.involves.converter;
public interface Convertable {
}
|
/*Copyright [2018] [Jurgen Emanuels]
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 writing, software
... |
package com.example.spring05.dao;
import javax.inject.Inject;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;
import com.example.spring05.model.MemberVO;
@Repository
public class LoginDAOImpl implements LoginDAO {
@Inject
private SqlSession sqlSession;
... |
package com.tencent.mm.plugin.appbrand.launching.a;
import android.util.Pair;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.l;
import com.tencent.mm.by.f;
import com.tencent.mm.k.g;
import com.tencent.mm.plugin.appbrand.app.e;
import com.tencent.mm.plugin.appbrand.appcache.ac;
import com.tencent.mm.plugin.appbr... |
package gr.athena.innovation.fagi.core.function.phone;
import gr.athena.innovation.fagi.core.function.IFunction;
import org.apache.jena.rdf.model.Literal;
import gr.athena.innovation.fagi.core.function.IFunctionTwoLiteralParameters;
/**
* Class for evaluating if the first phone number has more digits than the other.... |
package com.example.demo.repository.salesRepository;
import com.example.demo.entity.sales.Order;
import com.example.demo.entity.user.Client;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface OrderReposit... |
package biz.mydailyhoroscope;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
public class HoroscopeFragmentAdapter extends FragmentPagerAdapter {
protected static String[] CONTENT = new String[]{"6", "5", "4", "3"... |
package com.facebook.react.views.image;
import com.facebook.drawee.e.q;
import com.facebook.react.bridge.JSApplicationIllegalArgumentException;
public class ImageResizeMode {
public static q.b defaultValue() {
return q.b.g;
}
public static q.b toScaleType(String paramString) {
if ("contain... |
package day22arraylist;
import java.util.Arrays;
public class OdevSorusu01 {
public static void main(String[] args) {
//arr1 = { {1,2},{3,4,5}, {6} }
int arr1[][] = { {1,2},{3,4,5}, {6} };
int arr2[][] = { {7,8},{9,10,11}, {12} };
int sum=0;
for(int i=0; i<arr1.length; i++) {
for(int j=0; j<a... |
/**
* Write a description of Part2 here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Part2 {
public String findSimpleGene (String dna, String startCodon, String stopCodon) {
int indexStart = dna.indexOf(startCodon);
if(indexStart == -1) return "";
... |
/*
* Copyright: 2020 forchange Inc. All rights reserved.
*/
package com.research.api.datasteam;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.Map;
/**
* @fileName: User.java
* @description: User.java类说明
* @author: by echo huang
* @date: 2020-02-15 21:09
*/
@D... |
package com.tencent.mm.plugin.appbrand.page;
import com.tencent.mm.sdk.platformtools.bd;
import com.tencent.mm.sdk.platformtools.x;
import java.util.Iterator;
import java.util.LinkedList;
class u$4 extends bd<Boolean> {
final /* synthetic */ u goS;
u$4(u uVar, Boolean bool) {
this.goS = uVar;
... |
package com.it.userportrait.map;
import com.alibaba.fastjson.JSONObject;
import com.it.userportrait.analy.WoolEntity;
import com.it.userportrait.bean.Order;
import com.it.userportrait.util.DateUtils;
import org.apache.flink.api.common.functions.MapFunction;
import java.util.Date;
public class WoolAnlayMap implements... |
import java.util.ArrayList;
public class Container {
private int weightLimit;
private ArrayList<Suitcase> list;
public Container(int weightLimit) {
this.weightLimit = weightLimit;
this.list = new ArrayList<Suitcase>();
}
public void addSuitcase(Suitcase suitcase) {
if (ge... |
package com.tencent.mm.ui.a;
import android.content.Context;
import android.os.Vibrator;
import android.speech.tts.TextToSpeech;
import android.speech.tts.TextToSpeech.OnInitListener;
import android.view.View;
import android.view.accessibility.AccessibilityManager;
import com.tencent.mm.sdk.platformtools.ad;
import co... |
package com.lec.ex4_Object;
public class CardMain {
public static void main(String[] args) {
Card[] cards = { new Card('♥', 2), /// single quotation char
new Card('◆', 7), new Card('♣', 8) };
Card yours = new Card('♣', 8);
System.out.println("당신 카드: " + yours);
for (int idx = 0; idx < cards.length; idx++... |
package com.lxy.dao;
import java.io.FileOutputStream;
import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.SAXReader;
import org.dom4j.io.XMLWriter;
import com.lxy.domain.Student;
/**
* 操作XML(增删改查)
* @author 15072
*
*/
public class StuDao {
/**
* 向student... |
/**
*
*/
/**
* @author pc
*
*/
package com.nic.projectproposal.model; |
package com.bingo.code.example.design.command.degeneration;
public class Client {
public static void main(String[] args) {
//��Ҫ����������
Command cmd = new PrintService("�˻�������ģʽʾ��");
//���������������
Invoker invoker = new Invoker();
invoker.setCmd(cmd);
//���°�ť����������ִ������
invoker.start... |
package com.yoeki.kalpnay.hrporatal.Payroll;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class TotalAmount {
@SerializedName("Type")
@Expose
private Object type;
@SerializedName("EarningAmount")
@Expose
private String earningAmount;
... |
package com.mysql.cj.protocol;
import com.mysql.cj.exceptions.CJOperationNotSupportedException;
import com.mysql.cj.exceptions.ExceptionFactory;
import java.io.IOException;
import java.util.concurrent.CompletableFuture;
public interface MessageSender<M extends Message> {
default void send(byte[] message, int messag... |
package colorswitch;
/**
* Fait le rendu de dessiner un cercle(des deux cercles) de l'obstacle TwoRoundedCircles.
*/
public class RoundedCircle extends Obstacle {
/**
* Les attributs à utiliser.
*/
private double width;
private int level, color;
/**
* Constructeur
... |
package myapplication.aps.com.myapplication;
@SuppressWarnings("WeakerAccess")
public class BluetoothConnectException extends Exception {
public BluetoothConnectException(Throwable cause) {
super(cause);
}
}
|
package cl.evilcorp.perritos2.domain.presenter;
public interface IPresenterList {
void loadBreeds();
}
|
package com.team_linne.digimov.service;
import com.team_linne.digimov.exception.GenreNotFoundException;
import com.team_linne.digimov.model.Genre;
import com.team_linne.digimov.repository.GenreRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
imp... |
package com.sinotao.business.dao;
import tk.mybatis.mapper.common.Mapper;
import com.sinotao.business.dao.entity.InterfaceData;
public interface InterfaceDataDao extends Mapper<InterfaceData>{
}
|
/*
* ---------------------------------------------------------------------------------------------------------------------
* Brigham Young University - Project MEDIA StillFace DataCenter
* -----------------------------------------------------------------------------------------------------... |
package orgvictoryaxon.photofeed.main.di;
import javax.inject.Singleton;
import dagger.Component;
import orgvictoryaxon.photofeed.PhotoFeedAppModule;
import orgvictoryaxon.photofeed.domain.di.DomainModule;
import orgvictoryaxon.photofeed.lib.di.LibsModule;
import orgvictoryaxon.photofeed.main.ui.MainActivity;
/**
*... |
package org.fuserleer.crypto;
import java.util.List;
import java.util.Objects;
import org.fuserleer.collections.Bloom;
import org.fuserleer.ledger.StateDecision;
import org.fuserleer.serialization.DsonOutput;
import org.fuserleer.serialization.DsonOutput.Output;
import org.fuserleer.utils.Numbers;
import ... |
package com.cognitive.newswizard.service.entity;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document(collection = "feed_source")
public class FeedSourceEntity {
@Id
private final String id;
private final String name;
private final String url... |
package edu.tacoma.uw.myang12.pocketdungeon.authenticate;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.text.TextUtils;
import android.util.Log;
impo... |
package pdl2Explorer.pdl2;
import java.util.ArrayList;
import pdl2Explorer.antlr.generated.PDLType;
public class PDL2Variable {
String identifier;
PDLType type;
ArrayList<PDL2Variable> subVariables = new ArrayList<PDL2Variable>();
public String getIdentifier() {
return identifier;
}
public vo... |
package mg.egg.eggc.compiler.libegg.java;
import java.io.Serializable;
import java.util.Vector;
import mg.egg.eggc.compiler.libegg.base.TDS;
import mg.egg.eggc.runtime.libjava.EGGException;
import mg.egg.eggc.runtime.libjava.EGGOptions;
public class CompJava implements Serializable {
private static final long seria... |
import java.io.*;
import java.net.*;
import java.util.ArrayList;
class Sender
{
Infos infos;
Sender(Infos infos)
{
this.setInfos(infos);
}
public void start() throws Exception
{
int number = 0;
Infos infos = this.getInfos();
boolean ok = false;
String campos[], user, mensagem = "";
BufferedReader ... |
package org.ms.iknow.persistence.repo.memory;
public abstract class Entry {
private boolean locked = false;
private static final long TIME_OUT = 5000L;
private static final long DELAY = 2L;
public void lock() {
int delay = 0;
while (delay < TIME_OUT) {
if (thi... |
package babylanguage.babyapp.learntotalk.memoryGame;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android... |
package com.souschef.sork.sous_chef;
import android.Manifest;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener... |
package fr.lteconsulting.servlet.vue;
import java.io.IOException;
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import fr.lteconsulting.DonneesScope;
import fr.lteco... |
package com.commercetools.pspadapter.payone.config;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.Function;
import static java.util.Optional.empty;
import static java.util.Optional.ofNul... |
package com.example.retail.models.itemcategories;
import javax.persistence.*;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
@Entity
@Table(name = "item_categories")
public class ItemCategories {
@Id
@GeneratedValue(strategy = Genera... |
package pl.lua.aws.core.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import pl.lua.aws.core.model.TournamentEntity;
@Repository
public interface TournamentRepository extends JpaRepository<TournamentEntity,Long> {
}
|
package com.dayuanit.shop.service;
import java.util.List;
import java.util.Map;
import java.util.Set;
public interface RedisService {
boolean hasKey(String key);
void setListPCA(String key, List<Map<String, String>> value);
List<Map<String, String>> getPCA(String key);
String popPayMsg();
void saveCar... |
package closest;
public class Solutiontest {
public static void main (String []args){
Solution s = new Solution ();
int array[] = {1,5};
System.out.println(s.closest(array, 6));
}
} |
class Solution {
public String reverseVowels(String s) {
ArrayList<Character> vowels = new ArrayList<>();
for(char c : s.toCharArray()){
if(isVowel(Character.toLowerCase(c))) vowels.add(c);
}
int currIndexOfVowel = vowels.size() - 1;
char[] sArray = s.toC... |
package org.search.flight.model.passengers;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.search.flight.model.Discount;
public abstract class Passenger {
private List<Discount> discountList = new ArrayList<Discount>(0);
private String name;
private String gender;
... |
package com.chf.proxy;
/**
* ${DESCRIPTION}
*
* @author 温柔一刀
* @create 2018-04-07 10:32
**/
public class User {
public void say(){
System.out.println("user say()..............");
}
}
|
package ga.trialVector;
import ga.Individual;
/**
* Abstract class for Trial Vector used in Differential Evolution.
*/
public abstract class TrialVector {
protected Individual one;
protected Individual two;
protected Individual three;
protected double beta;
/**
* Constructs a trial vector given three indiv... |
import java.io.IOException;
public class Test4 {
private static void assertPerfect(Maze m) {
assert(m.isPerfect()) : "maze is not perfect";
}
public static void main(String[] args) throws IOException {
//Pour s'assurer que les assert's sont activés
if (!Test4.class.desiredAssertionStatus()) {
System.err.p... |
package com.university.wanstudy.view;
import android.content.Context;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android... |
package jp.abyss.sysparticle.api.particle.model;
import jp.abyss.sysparticle.api.particle.PointParticleListEditable;
public interface FreePointParticle extends PointParticleModel, PointParticleListEditable, HierarchicalModel {
}
|
/*
* 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 safeflyeu.view;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.JOptionPane;
... |
package com.freak.printtool.hardware.print.bean;
/**
* 这是标签打印机
*
* @anthor dmin
* created at 2017/7/18 12:05
* 现在是没有等级和规格
*/
/**
* 增加自定义编码
*
* @author Freak
* @date 2019/8/13.
*/
public class ProductLabelBean {
//商品id
private String productId;
// 名字
private String name;
// private Li... |
package phor.uber.web;
import java.util.Arrays;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.springframe... |
package Concurrency;/**
* Created by pc on 2018/2/17.
*/
import Util.Listoff;
/**
* describe:
*
* @author xxx
* @date4 {YEAR}/02/17
*/
public class BasicThreads {
public static void main(String[] args){
Thread t = new Thread(new Listoff());
t.start();
System.out.print("waiting for l... |
package com.pangpang6.hadoop.hadoop2.tq;
import com.pangpang6.utils.MyJSONMapper;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOE... |
package visualizations.drawmodifiers;
import graphana.graphs.visualization.drawmodifiers.ProjectionPlane;
import graphana.graphs.visualization.drawmodifiers.VertexFixedSizeShape;
import graphana.model.mathobjects.DimensionD;
import graphana.model.mathobjects.Vector2D;
import java.awt.*;
/**
* Rectangular ... |
package assemAssist.model.order.singleTaskOrder;
import java.util.Arrays;
import java.util.List;
import org.joda.time.DateTime;
import org.joda.time.Duration;
import assemAssist.model.exceptions.IllegalDeadlineException;
import assemAssist.model.factoryline.workStation.WorkStation;
import assemAssist.model.option.V... |
package com.voidm.demo;
import com.sun.jna.Library;
import com.sun.jna.Native;
/**
* @author voidm
* @date 2020/12/7
*/
// <dependency>
// <groupId>net.java.dev.jna</groupId>
// <artifactId>jna-platform</artifactId>
// <version>5.2.0</version>
// </dependency>
public class DllCalledMyDLLDemo {
/*
... |
package laioffer.June28th;
import common.TreeNode;
import common.Utils;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
/**
* Created by mengzhou on 6/28/17.
*/
public class ZigZagOrderTraversal {
public List<Integer> zigZag(TreeNode root) {
List<Integer> res = new LinkedLi... |
package com.tencent.d.a.b;
import android.os.Build.VERSION;
import com.tencent.d.a.c.c;
import java.security.spec.AlgorithmParameterSpec;
public abstract class a {
public abstract a M(String... strArr);
public abstract a N(String... strArr);
public abstract AlgorithmParameterSpec cFH();
public abst... |
package com.golubov.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* Created by SGolubov on 7/28/2015.
*/
@Entity
public class CcyEntity implements Serializable {
private static final long serialVersionUID = -530633799907481180... |
package com.jst.web.question;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestPa... |
package cristianjlp.menu_probest;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
/**... |
package com.nuuedscore.refdata;
/**
* Gender enum
* Constants that classify a Persons gender
*
* @author PATavares
* @since Feb 2021
*
*/
public enum RefGender {
FEMALE("Female"),
MALE("Male"),
NEUTRAL("Neutral");
private String gender;
RefGender(String gender) {
this.gender = gender;
}
public... |
package wurstball;
import java.util.Observable;
import wurstball.data.PictureElement;
import wurstball.data.WurstballData;
/**
* A runnable class to load a picture from the internet in a thread
*
* @author Sydrimon
*/
public class ImageLoader extends Observable implements Runnable {
public static final int T... |
package com.appliedrec.verid.kiosk;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.DiffUtil;
import androi... |
package univ.m2acdi.apprentissageborel.activity;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.speech.RecognitionListener;
import ... |
package csci152.adt_tests;
import csci152.adt.Set;
import csci152.impl.BSTSet;
public class Main {
public static void main(String[] args) {
Set<Integer> test = new BSTSet<>();
test.add(2);
test.add(4);
test.add(3);
test.add(5);
test.add(0);
test.add(1);
... |
/**
*
*/
package com.openkm.test;
import javax.jcr.AccessDeniedException;
import javax.jcr.ItemNotFoundException;
import javax.jcr.NoSuchWorkspaceException;
import javax.jcr.Node;
import javax.jcr.Property;
import javax.jcr.PropertyIterator;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
import jav... |
package by.epam.gomel.trening;
/*
Вычислить значение выражения по формуле
(все переменные принимают действительные значения): 𝑏+√𝑏2+4𝑎𝑐2𝑎−𝑎3𝑐+𝑏−2
*/
import static java.lang.Math.*;
public class Linear2 {
public static void main(String[] args) {
double a = 1;
double b = 1;
... |
/*
* 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 Views;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.JOptionP... |
package com.spring.shopping.product;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;
import com.spring.shopping.JDBCUtil.JDBCUtil;
import com.spring.shopping.review... |
package WebComponent;
import java.util.ArrayList;
import java.util.List;
public abstract class WebComponentSelect extends WebComponent {
protected List<Option> options = new ArrayList<Option>();
protected int selected;
public WebComponentSelect() {
super();
}
public WebComponentSelect(WebComponentSelect wc... |
package com.tencent.mm.modelstat;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.l;
import com.tencent.mm.ab.v.a;
import com.tencent.mm.protocal.c.bfj;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
class o$3 implements a {
final /* synthetic */ long ekP;
final /*... |
package com.mastercom.ps.connector.examples;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Map;
import com.mastercard.api.core.ApiConfig;
import com.mastercard.api.core.exception.ApiException;
import com.mastercard.api.core.model.Environment;
import com.mastercard.api.core.model.Request... |
package com.scottehboeh.glc.utils;
import java.io.File;
/**
* Created by 1503257 on 08/12/2017.
* <p>
* File Utils
* <p>
* This class contains various useful methods for managing and handling
* file-based objects.
*/
public class FileUtils {
/**
* List Files for Folder - Print out a li... |
// Kufas.ru 6.1.1.12
package hw.gorovtsov.mathtesting.tasks;
import java.util.Scanner;
public class Twelve {
public static void main(String[] args) {
double x;
Scanner sc = new Scanner(System.in);
System.out.println("Enter x: ");
while (!sc.hasNextInt()) {
sc.next();
System.out.println("Enter x: ");... |
package com.qa.demo.cuke;
import static org.junit.Assert.assertTrue;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.RemoteWebDriver;
import cucumber.api.java.After;
import cucumber.api.java.Befo... |
package thsst.calvis.simulatorvisualizer.model;
/**
* Created by Ivan on 7/10/2016.
*/
public class RotateModel{
private String result;
private String carryFlag;
public RotateModel(String result, String carryFlag){
this.result = result;
this.carryFlag = carryFlag;
}
public String getResult(){
return res... |
package com.tencent.mm.plugin.websearch.api;
import android.content.res.AssetManager;
import com.tencent.mm.ab.e;
import com.tencent.mm.kernel.g;
import com.tencent.mm.sdk.platformtools.ad;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.w;
import com.tencent.mm.sdk.platformtools.x;... |
package dmoj;
import java.util.Scanner;
public class RGPC_17_P1_CircleClicking {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int N = in.nextInt();//total number of circles in sequence
int D = in.nextInt();//greatest jump distance
int x1=i... |
package com.example.railway.controller.rest;
import com.example.railway.model.Root;
import com.example.railway.model.Train;
import com.example.railway.service.Root.RootServiceImpl;
import com.example.railway.service.Train.TrainServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... |
package ru.job4j.chess;
import org.junit.Test;
import ru.job4j.chess.firuges.Cell;
import static org.junit.Assert.*;
public class LogicTest {
@Test
public void whenFigureIsWay() {
Logic logic = new Logic();
boolean result = logic.move(Cell.C1, Cell.G5);
assertFalse(result);
}
... |
package com.lin.utils;
import org.junit.Test;
public class PropertiesUtilTest {
@Test
public void readTest(){
System.out.println(PropertiesUtil.getConfig("savePicUrl").trim());
}
}
|
public class Nokia extends Phone { //this inherits the abstract class called phone
public void showConfiguration() { //so it uses the method in the abstract class but not creating its own method
System.out.println("Nokia X\nVersion 4.2");
}
}
|
package com.tiandi.logistics.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tiandi.logistics.entity.front.LineInfoFront;
import com.tiandi.logistics.entity.pojo.LineInfo;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* @author kotori
* @version 1.0
* @date 202... |
package com.artland.controller.vo;
import java.io.Serializable;
/**
* @author WaylanPunch
* @email waylanpunch@gmail.com
* @link https://github.com/WaylanPunch
* @date 2017-10-31
*/
public class SimpleBlogListVO implements Serializable {
private Long blogId;
private String blogTitle;
public Long getBlogId(... |
package com.example.proyectofinalmaster.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import javax.persistence.*;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(name = "skilled")
public class Skilled {
@Id
@GeneratedValue(strategy = Gener... |
/*
* Copyright 2002-2016 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
package com.pybeta.daymatter.ui;
import android.content.Context;
import com.pybeta.daymatter.DayMatter;
import com.pybeta.daymatter.WorldTimeZone;
import com... |
package br.com.edu.fafic.release1.domain;
import lombok.*;
import javax.persistence.Embeddable;
@Embeddable
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@ToString
public class Contato {
private String email;
private String telefone;
}
|
package ru.besttuts.stockwidget;
/**
* Created by romanchekashov on 30.10.16.
*/
public class PrivateConstants {
public static final String BANNER_AD_UNIT_ID = "";
public static final String INTERSTITIAL_AD_UNIT_ID = "";
public static final String HASHED_DEVICE_ID = "";
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.