text
stringlengths
10
2.72M
package com.ggtf.xieyingwu.cloudphoto.instagram.model; /** * Created by xieyingwu on 2017/5/18. */ public class IgAuth { public String code; public String error; public String error_reason; public String error_description; public boolean isAuthSuc; private IgAuth() { } public stati...
/** * Copyright (C) 2006 Aelitis, 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 Software Foundation; either version 2 * of the License, or (at your option) any later version. * This p...
/** * A Path is an equivalent of the GA gene sequence. For us, it is a valid sequence of towns that has a * fitness according to its distance (calculated with an adjacency matrix). * * A Path can: * 1. mutate to generates diversity - essential * 2. crossOver - mate with a partner to produce a (hopefully) ...
package com.example.snapup_android.service; import com.example.snapup_android.pojo.FeedBack; import java.util.List; public interface FeedBackService { public boolean createFeedBack(FeedBack feedBack); public List<FeedBack> getAllFeedBack(); public boolean deleteFeedBack(FeedBack feedBack); }
package com.stripe.model.issuing; import com.google.gson.annotations.SerializedName; import com.stripe.Stripe; import com.stripe.exception.StripeException; import com.stripe.model.BalanceTransaction; import com.stripe.model.ExpandableField; import com.stripe.model.HasId; import com.stripe.net.ApiResource; import com.s...
package com.pokemon.pokemoncollection.controller; import com.pokemon.pokemoncollection.service.login.LoginService; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; @Controller public class HomeController { private Log...
/** * Write a description of class SeqGenMinMax here. * * @author (your name) * @version (a version number or a date) */ public class SeqGenMinMax extends SeqGenMax { // instance variables - replace the example below with your own private int min; public SeqGenMinMax(int min, int ma...
/* * NAME: Bryan Talavera * PID: A14378593 */ /** * This is a Queue Implementation which utilizes a Doubly Linked List * @param <T> generic container * @author Bryan Talavera * @since 04/25/21 */ public class DLLQueue<T> { private DoublyLinkedList<T> queue; public DLLQueue() { this.queue = ne...
package com.micHon.buliderClassic; public class BigCarBuilder implements CarBuilder { private Car car; public BigCarBuilder() { this.car = car; } public void buildWheels() { this.car.setWheels("Big"); } public void buildBody() { this.car.setBody("Big"); } pu...
package com.kamilbolka.util.database; public interface Database { String LOCAL_DATABASE_FILE_NAME = "database.json"; String RECORDING_TAG = "recording"; String MODULE_TAG = "module"; // Main String FIREBASE_OWNER_ID_TAG = "firebaseOwnerID"; String MODULE_NAME_TAG = "moduleName"; String RE...
package com.xxglpt.sjjs.controller; import java.util.HashMap; import java.util.List; import javax.annotation.Resource; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; import com.hdsx.webutil.struts.BaseActionSupport; import com.xxglpt.utile.EasyUIPage; im...
package org.eldslott.hb.entity; /** * @author <a href="mailto:oscar.eriks@gmail.com">Oscar Eriksson</a> * @date 12/18/13 */ public interface Actor { }
package com.lch.mvcframework.annotation; import com.lch.mvcframework.enums.MethodEnum; 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; /** * @author: liuchenhui *...
package pkgPokerBLL; import java.util.ArrayList; import java.util.HashMap; import java.util.UUID; public class Table { private UUID TableID; // Modified from ArrayList to HashMap private HashMap<UUID,Player> TablePlayers = new HashMap<UUID,Player>(); public Table() { super(); TableID = UUI...
package com.example.android.moneytran; import android.app.Dialog; import android.content.Context; import android.content.res.Resources; import android.os.Bundle; import android.view.View; import androidx.annotation.NonNull; import androidx.databinding.DataBindingUtil; import com.example.android.moneytran.currency.B...
package collection; import java.util.Comparator; import java.util.HashSet; import java.util.TreeSet; public class HashSetDemo { public static void main(String[] args) { TreeSet hs=new TreeSet(); //HashSet hs=new HashSet(); hs.add("Ram"); hs.add("Shyam"); hs.add("Karan"); System....
/* * 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 controller.character.helpers; import model.character.AbstractCharacter; /** * * @author Dr.Chase */ public class StartingS...
package com.samson.chess; public class IllegalChessMoveException extends IllegalArgumentException { public IllegalChessMoveException() { super("A move was performed which was not legal on the given board."); } public IllegalChessMoveException(String message) { super(message); } }
package com.microsoft.bingads.v11.api.test.entities.ad_extension.site_link2.read; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; @RunWith(Suite.class) @SuiteClasses( { BulkSitelink2AdExtensionReadFromRowValuesDisplayTextTest.class,...
package com.nt.service; import java.io.File; import java.util.ArrayList; import java.util.List; import org.springframework.stereotype.Service; @Service("service") public class FileDownloadServiceImpl implements FileDownloadService { @Override public List<String> fetchAllFile(String uploadStore) { /...
package pl.basistam.web; import pl.basistam.books.Book; import pl.basistam.books.State; import pl.basistam.ejb.Library; import javax.faces.bean.ApplicationScoped; import javax.faces.bean.ManagedBean; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import java.util...
/* * Copyright 2015 Grzegorz Skorupa <g.skorupa at gmail.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/LICENSE-2.0 * * Unless required...
//jDownloader - Downloadmanager //Copyright (C) 2009 JD-Team support@jdownloader.org // //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 Software Foundation, either version 3 of the License, or //(at your opti...
package com.sheygam.loginarchitectureexample.business.addContact; import com.sheygam.loginarchitectureexample.data.dao.Contact; import com.sheygam.loginarchitectureexample.data.repositories.addContact.prefstore.IAddContactStoreRepository; import com.sheygam.loginarchitectureexample.data.repositories.addContact.web.IAd...
/* * Copyright 2015 The RPC Project * * The RPC Project licenses this file to you 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 requ...
package com.github.ofofs.jca.annotation; import com.github.ofofs.jca.constants.CoreConstants; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * 限制一定时间内方法的调用次数。 * * @author kangyonggan * @since 6/2...
package com.pabi.miwokmediaplayer; /** * Created by Admin on 7/7/2017. */ public class Songs { private String mSongName; private int mAudioResourceId; private int mImageResourceId = NO_IMAGE_PROVIDED; private static final int NO_IMAGE_PROVIDED = -1; public Songs(String songName, int audioRe...
package com.tridevmc.movingworld.common.chunk.mobilechunk; import com.google.common.collect.Maps; import com.tridevmc.movingworld.client.render.MobileChunkRenderer; import com.tridevmc.movingworld.common.entity.EntityMovingWorld; import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher; import net....
import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintStream; import java.io.Writer; import java.util.ArrayList; import java.util.Comparato...
package com.example.edvisor; import android.content.Context; import android.database.Cursor; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.DatabaseReference; import com.google.firebase.database.ValueEventListener; import java....
/*A Java program to perform Matching a String against regular expression using matches()*/ class Matchreg { public static void main(String[] args) { String str=new String("Welcome to Javacode.com"); System.out.println("Return value:"); System.out.println(str.matches("(.*)Tutorials(.*)")); System.out.println...
public class TwoWayNode<T>{ private T data; private TwoWayNode<T> next; private TwoWayNode<T> previous; private static TwoWayNode freelist = null; public TwoWayNode(T dt){ this.data = dt; } public TwoWayNode(T dt, TwoWayNode<T> nxt){ this.data = dt; this.next = nxt...
package Account_Module.Wallet; import Account_Module.util.BtcAddressUtils; import com.google.common.collect.Maps; import lombok.Cleanup; import Account_Module.util.Base58Check; import javax.crypto.Cipher; import javax.crypto.CipherInputStream; import javax.crypto.CipherOutputStream; import javax.crypto.SealedObject; ...
package com.beike.util.singletonlogin; import java.util.UUID; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; import com.beike.entity.user.User; import com.beike.service.user.UserSer...
package vues; import controleur.Controleur; import controleur.exceptions.LoginDejaPritException; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.control.Alert; import javafx.scene.control.PasswordField; ...
package tools; import javax.xml.stream.Location; /** * Created by oleh on 28.10.2014. */ public class UserInfo { String name; String surname; boolean online; }
package com.roshandemo.creational.abstractfactory; public interface IShape { /** * Draws the shape */ void draw(); }
/* * Copyright 2002-2019 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.ggw.vem; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity; import android.app.ListFragment; import android.os.Bundle; import android.os.Handle...
package com.jpj; import org.junit.runner.RunWith; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** * @Author:haoly * @Description: * @Date:2018/1/3上午10:15 **/ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration("/sp...
package com.bwie.juan_mao.jingdong_kanglijuan.view.shop; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.webkit.WebResourceRequest; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.Button; import ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ import lab12.Hashtable; import org.junit.Test; import static org.junit.Assert.*; /** * * @author ayush488 */ public class TestHashTable { public TestHashTable() { } @Te...
package board.grid; import board.blockingobject.Wall; import board.square.Square; import items.*; import path.PathGenerator; import util.Coordinate; import util.Direction; import util.WallDirection; import java.util.ArrayList; import java.util.List; import java.util.Random; public class NormalGridBuilder extends Gri...
package net.maizegenetics.trait; import cern.colt.matrix.DoubleFactory2D; import cern.colt.matrix.DoubleMatrix2D; import net.maizegenetics.taxa.TaxaList; import net.maizegenetics.taxa.TaxaListBuilder; import net.maizegenetics.util.Utils; import java.io.BufferedReader; import java.io.IOException; import java...
package com.bucket.biz.shiro; import java.io.Serializable; import java.util.Collection; import org.apache.shiro.session.Session; import org.apache.shiro.session.UnknownSessionException; import org.apache.shiro.session.mgt.SimpleSession; import org.apache.shiro.session.mgt.eis.AbstractSessionDAO; import org.slf4j.Logg...
/* * 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 Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be use...
import gov.nih.mipav.plugins.PlugInGeneric; /** * @author pandyan * * The plugin is used for sorting DICOM image slices based on the * patient location <0020,0037> * * New dirs are created using patientID info as well as studyID and series...as well as whether the initial images were * in a "pre" or "post" fo...
package ui.android.app.studentclass.mode; import java.io.Serializable; /** * Created by Administrator on 2016/8/9. */ public class Student implements Serializable{ private String stuName; private int age; private String sex; public String getStuName() { return stuName; } public ...
/** * */ package com.adobe.prj.client.ui; import java.util.List; import com.adobe.prj.client.Application; import com.adobe.prj.entity.Employee; import com.adobe.prj.entity.Project; /** * @author danchara * * Contains methods that handles user interaction from console for assigning a manager to a * project . ...
public class TimeObserver { IWindow windowToObserve; ITime time; public void RegisterObserver(IWindow window) { windowToObserve = window; } public void OnChange() { windowToObserve.Callback(); } }
package com.example.myapplication1; import android.os.AsyncTask; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ListView; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.io.BufferedReader; import java.io.IOException; ...
package com.notthemostcommon.creditcardpayoff.User; public class UserBuilder { Long id; String firstName; String lastName; String password; String username; public UserBuilder withId(Long id){ this.id = id; return this; } public UserBuilder withFirstName(String f_nam...
package com.nextLevel.hero.mnghumanResource.model.dto; public class JobDTO { private int jobNo; private String jobName; public JobDTO() {} public JobDTO(int jobNo, String jobName) { super(); this.jobNo = jobNo; this.jobName = jobName; } public int getJobNo() { return jobNo; } pub...
package files; public class FileBlock { private long servID; private long blockID; public FileBlock(long servID, long blockID) { this.servID = servID; this.blockID = blockID; } public long getServID() { return servID; } public void setServID(long servID) { this.servID = servID; } public long get...
package com.gaoshin.coupon.android; import java.io.InputStream; import java.io.PrintWriter; import java.io.StringWriter; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.protocol.ClientContext; i...
package com.machao.base.ffmpeg.utils; public class PlatformUtils { private static final String OS_NAME_MAC = "mac os"; private static final String OS_NAME_LINUX = "linux"; private static final String OS_NAME_WINDOWS = "windows"; public enum Platform { macos, linux, windows } public enum Arch { x86, x86_64...
package com.example.lenovoidea.mis_2019_exercise_2_maps_polygons; import android.content.Context; import android.content.SharedPreferences; import android.content.res.Resources; import android.graphics.Color; import android.location.Location; import android.support.v4.app.FragmentActivity; import android.os.Bundle; im...
package com.apress.prospring4.ch13; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.util.ArrayList; import java.util.List; import org.junit.Before; import org.junit.Test; import org.springframework.test.util.ReflectionTestUtils; import org.springframework.ui.Extende...
package userdaoimp; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.criterion.Restrictions; import userdao.RolesDAO; import bean.use...
package pepoker.practicasJava; import java.util.ArrayList; import java.util.Calendar; import java.util.List; public class LargestPalindrome { static int count = 0; public LargestPalindrome() { super(); } public static int getLargestPalindrome(int digitos) { int resp = 0; int...
package com.MicHon.factory; public enum UnitType { TANK, CANNON }
package codility; import static codility.tools.Rand.*; import static org.assertj.core.api.StrictAssertions.assertThat; import org.apache.commons.lang3.ArrayUtils; import org.junit.contrib.theories.Theories; import org.junit.contrib.theories.Theory; import org.junit.runner.RunWith; import com.pholser.junit.quickcheck...
/* * 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...