text stringlengths 10 2.72M |
|---|
package edu.mit.cci.simulation.client.comm;
import edu.mit.cci.simulation.client.Scenario;
import edu.mit.cci.simulation.client.Simulation;
import edu.mit.cci.simulation.client.Tuple;
import edu.mit.cci.simulation.client.TupleStatus;
import edu.mit.cci.simulation.client.Variable;
import org.junit.Assert;
import org.ju... |
/*
* LcmsOrganizationController.java 1.00 2011-09-05
*
* Copyright (c) 2011 ???? Co. All Rights Reserved.
*
* This software is the confidential and proprietary information
* of um2m. You shall not disclose such Confidential Information
* and shall use it only in accordance with the terms of the license agre... |
package templateMethod;
public abstract class ClassicCarStartingSequence {
public void startTheCar(){
fastenSeatBelts();
startTheIgnition();
setTheGear();
go();
}
private void go() {
System.out.println("Jedลบ");
}
private void setTheGear() {
System.... |
package seleniumPack;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class Test04 {
public static void main(String[] args) throws InterruptedException {
// TODO Auto-generate... |
package Question1_25;
public class _13_IntRoman {
public static void main(String[] args) {
// TODO Auto-generated method stub
romanToInt("MCMXCIV");
}
public static int romanToInt(String s) {
if(s==null|| s.length()==0) {
return 0;
}
int num = 0;
int arr[] = {1000,900,500,400,100,90,50,40,10,9,5,4,... |
package com.role.game.launcher;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.junit.Test;
public class GameLauncherTest {
// StartGame.txt contains the sequence of input stream actions that will be
// given by the user when he starts a new ... |
package br.com.webstore.config;
import br.com.webstore.service.CustomUserDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.spri... |
package com.houzhi.retrofitdemo.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.houzhi.retrofitdemo.R;
import com.houzhi.retrofitdemo.model.HttpbinRequest;
import com.squareup.okhttp.FormEncodin... |
/*
* 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 lab_3_2;
import java.util.*;
/**
*
* @author valen
*/
public class Lab_3_2 {
/**
* @param args the command line ... |
package com.cg.repo;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.cg.entity.Movie;
//import com.cg.entity.Product;
import com... |
package com.imaprofessional.niko.projectmaplesyrip;
import android.app.Activity;
import android.os.Handler;
import android.os.SystemClock;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class MainActivity extends Activity {
... |
package helperFunctions;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;
import org.apache.commons.lang.StringUtils;
/**
*
* @author Hendrik
*/
public class PGPMail {
public static String PGPEncrypt(PrivateKey myPrivateKey, PublicKey recieverPubli... |
class Trapecio extends Masdisparejos{
protected float lado4;
public void setLado4(float lado4){
this.lado4=lado4;
}
public float getLado4(){
return lado4;
}
public double Perimetrotrapecio(){
perimetro=lado1+lado2+lado3+lado4;
return perimetro;
}
public double Areatrapecio(){
area=((lado1+lado2)/2)*altura;
return area... |
package ru.fargus.testapp.ui.map;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.... |
package files;
import java.util.Scanner;
public class PathToFile {
String fromFile() {
String toDirectory = "";
System.out.println("Please insert the path to your file");
Scanner fromDirectoryToCopy = new Scanner(System.in);
toDirectory += fromDirectoryToCopy.nextLine();
r... |
package kr.or.ddit.basic;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
/*
* ๋ถ๋ชจ ํด๋์ค๊ฐ Serializable ์ธํฐํ์ด์ค๋ฅผ ๊ตฌํํ๊ณ ์์ ํด๋์ค๊ฐ ์ด๋ฅผ ์์๋ฐ์ ๊ฒฝ์ฐ
* ์๋์ ์ผ๋ก ์์ ํด๋์ค๋ Serializable์ ์์ ๋ฐ๋๋ค
* ... |
package com.tony.pandemic.hospital;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import javax.transaction.Transactional;
@Repository
publi... |
package com.citibank.ods.entity.pl;
import java.math.BigInteger;
import java.util.Date;
import com.citibank.ods.entity.pl.valueobject.TplCustomerBrokerEntityVO;
import com.citibank.ods.entity.pl.valueobject.TplCustomerBrokerMovEntityVO;
/**
* Classe que instancia a entidade correspondente a tabela : TplCusto... |
package com.example.okta_cust_sign_in.pojo;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.okta.sdk.resource.group.GroupList;
import com.okta.sdk.resource.user.AppLinkList;
import com.okta.sdk.resource.user.ChangePasswordRequest;
import com.okta.sdk.resource.user.ForgotPasswordRes... |
package com.alvarado.dev.platzigram.model;
/**
* Created by dev on 9/03/18.
*/
public class Picture {
private String imagen;
private String usuario;
private String tiempo;
private String numLike = "0";
public Picture(String imagen, String usuario, String tiempo, String numLike) {
this.i... |
package utng.edu.mx.aprendersoap;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.view.View;
import android.support.design.widget.NavigationView;
import an... |
package com.lmz.selenilum;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class Download {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "D:\\chromed... |
package com.ocraftyone.MoreEverything.blocks;
import java.util.Random;
import com.ocraftyone.MoreEverything.Reference;
import com.ocraftyone.MoreEverything.init.ModItems;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft... |
package org.dew.xcomm.util;
import java.util.*;
import org.apache.log4j.*;
import org.dew.xcomm.messaging.XMessagingClient;
public
class CheckTimerTask extends TimerTask
{
protected transient Logger logger = Logger.getLogger(getClass());
protected boolean firstTime = true;
public
void run()
{
tr... |
/*
* 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.orlanth23.popularmovie.utils;
import android.content.ContentValues;
import com.orlanth23.popularmovie.data.MovieContract;
import com.orlanth23.popularmovie.model.Movie;
public class Utils {
public static ContentValues transformMovieToContentValues(Movie movie){
ContentValues cv = new ContentV... |
package com.gy.service.impl;
import com.gy.entity.User;
import com.gy.mapper.UserMapper;
import com.gy.service.UserService;
import com.gy.util.MD5Util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @Author: liumin
* @Descr... |
package bpmis.pxc.system.controller.core;
import org.htmlparser.NodeFilter;
import org.htmlparser.Parser;
import org.htmlparser.filters.NodeClassFilter;
import org.htmlparser.filters.TagNameFilter;
import org.htmlparser.tags.ImageTag;
import org.htmlparser.tags.LinkTag;
import org.htmlparser.tags.TableColumn;
import o... |
package org.beanone.xlogger;
import org.slf4j.Logger;
/**
* Encapsulates the handling of logging on behalf of a logger.
*
* @author Hongyan Li
*
*/
@FunctionalInterface
public interface LoggingHandler {
/**
* Handles logging on behalf of the passed in logger.
*
* @param logger
* a {@link Logg... |
package com.utiitsl.service;
import java.util.List;
import com.utiitsl.entity.FinancialDetailsEntity;
import com.utiitsl.pojo.FinancialDetailsPojo;
public interface FinancialDetailsService {
public void savefinancialDetailsData(FinancialDetailsPojo financialDetailsPojo);
public List<FinancialDetailsPojo> getfi... |
package com.mobdeve.ramos.isa;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import androidx.annotation.Nullable;
public class DBHelper extends SQLiteOpenHelper {
... |
/*Polymorphism:
*A DeliveryBoys[Postman]Deliverd Letter,
*A DeliveryBoYS[Zamato]Deliverd Fooood
*A DeliveryBoys[flipkart]Deliverd parsal
*/
package com.journaldev;
import java.util.Random;
class DeliveryBoy
{
void deliver()
{
System.out.println("Delivering Item");
}
public static void main(... |
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class TestGUI
{
public class TestGui extends GUI {
public void clickSubmit() {
submit.doClick();
}
public void clickClear() {
clear.doClick();
}
public String getInput()... |
package com.deepakm.impl.model;
import com.deepakm.impl.Key;
import java.util.*;
/**
* Created by dmarathe on 11/10/16.
*/
public class NoteFactory {
private static Map<Key, NoteVertex> noteFactory = new HashMap<>();
static {
noteFactory = new HashMap<>();
for (Key key : Key.values()) {
... |
package com.jinglangtech.teamchat.activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.media.Ringtone;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Build;
import android.os.Vib... |
package br.com.bscpaz.organizador.vos;
import java.time.LocalDate;
public class PeriodoVO {
private String pasta;
private LocalDate inicio;
private LocalDate fim;
public PeriodoVO(String pasta, LocalDate inicio, LocalDate fim) {
this.pasta = pasta;
this.inicio = inicio;
t... |
package com.esum.wp.ims.monbatchinfo.base;
import org.apache.commons.lang.StringUtils;
import com.esum.appframework.dmo.BaseDMO;
public abstract class BaseMonBatchInfo extends BaseDMO {
public BaseMonBatchInfo() {
initialize();
}
protected void initialize() {
batchId = "";
nodeId = "";
cronPattern = "";... |
package forms;
import core.ActionManager;
import documents.Copy;
import javafx.collections.FXCollections;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.ListCell;
import javafx.scene.control.ListView;
import javafx.scene... |
package Problem_1806;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
... |
package com.pwq.Callable;
import java.util.concurrent.Callable;
/**
* @Author๏ผWenqiangPu
* @Description
* @Date๏ผCreated in 9:41 2017/8/4
* @Modified By๏ผ
*/
public class TaskWithResult implements Callable<String> {
private int id;
public TaskWithResult(int id) {
this.id = id;
}
@Override... |
package com.example.calujord.iotapp;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import androi... |
package com.mycompany.time_table_management_system.componentconntroller;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.NumberFormat;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springf... |
package net.mapthinks.web.rest;
import net.mapthinks.domain.Maintenance;
import net.mapthinks.repository.MaintenanceRepository;
import net.mapthinks.repository.search.MaintenanceSearchRepository;
import net.mapthinks.web.rest.common.AbstractPageableResource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
imp... |
package Graph_structural_descriptor;
public interface graph_face {
void setparam(String name, String nhash);
}
|
/*
public class TreeNode {
int val = 0;
TreeNode left = null;
TreeNode right = null;
public TreeNode(int val) {
this.val = val;
}
}
*/
public class Solution {
StringBuffer sb = new StringBuffer();
String Serialize(TreeNode root) {
// ๅช่ฆไฟๅญไธๆฅ็ฉบ่็นๅฐฑ่ก
if (root==null){
... |
package com.beike.wap.dao;
import java.util.List;
import com.beike.dao.GenericDao;
import com.beike.entity.merchant.MerchantProfileType;
import com.beike.wap.entity.MMerchant;
import com.beike.wap.entity.MMerchantProfileType;
public interface MMerchantDao extends GenericDao<MMerchant, Long>{
/**
* ๆ น... |
package com.school.sms.dao.impl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.school.sms.dao.Purch... |
package symapQuery;
import java.awt.Color;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
im... |
package guillaumeagis.perk4you;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
i... |
package com.hillsidewatchers.connector.widget;
import android.opengl.GLES20;
import android.util.Log;
import com.hillsidewatchers.connector.utils.Shader;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.ShortBuffer;
/**
* Created by ๆพ็ฟ้ฐ on ... |
package com.wangzhu.spring.bean;
/**
* Bean็ไฝ็จๅ๏ผ<br/>
* singleton๏ผๅไพ๏ผๆไธไธชBeanๅฎนๅจไธญๅชๅญๅจไธไปฝ<br/>
* prototype๏ผๆฏๆฌก่ฏทๆฑ๏ผๆฏๆฌกไฝฟ็จ๏ผๅๅปบๆฐ็ๅฎไพ๏ผDestroyๆนๅผไธ็ๆ<br/>
*
* @author wangzhu
* @date 2015-3-7ไธๅ1:06:27
*
*/
public class BeanScope {
public void say() {
System.out.println("BeanScope say: " + this.hashCode());
}
}
|
package co.bucketstargram.command.library;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import co.bucketstargram.common.Command;
import co.bucketstargram.common.HttpRes;
import co.bucketstargr... |
package com.example.starbucksmobilerecreate;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;
public class Login_Activity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
supe... |
package toasty.messageinabottle.exception;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import toasty.messageinabottle.io.ExceptionContext;
public class GlobalExceptionCache {
private static final List<ExceptionContext> exceptions = new ArrayList<>();
public static synch... |
/*
* /*
* * Copyright (C) Henryk Timur Domagalski
* *
* * 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.... |
package wyrazenia;
public class False extends Wyrazenie {
static False singleton = new False();
public static False daj() {
return singleton;
}
@Override
public boolean wartosc(boolean... wartosciowanie_zmiennych) {
return false;
}
@Override
public String toString() {... |
/**
* All rights Reserved, Designed By www.tydic.com
* @Title: ItemController.java
* @Package com.taotao.rest.controller
* @Description: TODO(็จไธๅฅ่ฏๆ่ฟฐ่ฏฅๆไปถๅไปไน)
* @author: axin
* @date: 2019ๅนด2ๆ14ๆฅ ไธๅ9:49:55
* @version V1.0
* @Copyright: 2019 www.hao456.top Inc. All rights reserved. ... |
"Source Code"
"Bad changes"
|
package com.example.demo;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class Attempt {
private File file;
private boolean success;
private boolean systemError;
private List<String> errors;
public Attempt(File file) {
this.file = file;
this.success = Boolean... |
package com.example.spring.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.ann... |
/*
* Copyright (c) 2017. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagi... |
package com.robin.sf5advice.beforeadvice_xml;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Created by robin on 2017/7/30.
*/
public class Client {
public static void main(String[] args){
ApplicationContext applic... |
package com.google.apiguide.userinterface.notification;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.NotificationCompat;
import ... |
package com.breakpoint.service.impl;
import com.breakpoint.dao.BlogTopicMapper;
import com.breakpoint.dto.LoginUserDto;
import com.breakpoint.entity.BlogTopic;
import com.breakpoint.entity.BlogTopicExample;
import com.breakpoint.exception.BlogException;
import com.breakpoint.service.TopicService;
import com.breakpoint... |
package fr.pco.accenture.handler;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import... |
package com.egova.eagleyes;
import com.egova.baselibrary.application.EgovaApplication;
import com.egova.baselibrary.handler.UncaughtExceptionHandlerImpl;
import com.egova.baselibrary.retrofit.RetrofitClient;
import com.egova.baselibrary.util.SharedPreferencesUtil;
import com.egova.eagleyes.constants.Constants;
public... |
package com.kingnode.gou.entity;
import java.math.BigDecimal;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.kingnode.xsimple.entity.AuditEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotation... |
/*
* Main is the entry point to the system. It asks the user to enter
* a path for a source file to parse, and then parses the file at
* that path. An error message is displayed to the console if an
* error occurs during parsing.
*/
package edu.purduecal.compiler.main;
import java.io.FileNotFoundException;
impor... |
package hr.bosak_turk.planetdemo.fragments;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.Html;
import android.util.Base64;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebSettings;
i... |
package januaryChallenge2018;
import java.util.Scanner;
public class MaximumScore {
public static void main(String[] args) {
Scanner scan= new Scanner(System.in);
int t=scan.nextInt();
for(int i=0;i<t;i++)
{
int n=scan.nextInt();
int a[]= new int[n];
for(int j=0;j<n;j++)
{
a[j]=sc... |
package com.clinic.dentist.services;
import com.clinic.dentist.api.dao.IAppointmentDao;
import com.clinic.dentist.api.dao.IClinicDao;
import com.clinic.dentist.api.service.IClinicServices;
import com.clinic.dentist.models.Clinic;
import com.clinic.dentist.models.Dentist;
import com.clinic.dentist.models.Maintenance;
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 TiraLab.MetaStrat;
import TiraLab.Controllers.Move;
/**
*
* @author ColdFish
*/
public class P1 extends MetaStrategy {
... |
package Thread;
public class Battle implements Runnable{
//2. ๅฎ็ฐRunnableๆฅๅฃ
private final Hero hero1;
private final Hero hero2;
public Battle(Hero h1, Hero h2) {
this.hero1 = h1;
this.hero2 = h2;
}
@Override
public void run() {
while (!hero2.isDead()) {
... |
package com.itsoul.lab.generalledger.exception;
/**
* Business exception thrown if a monetary transaction request legs are unbalanced,
* e.g. the sum of all leg amounts does not equal zero (double-entry principle).
*
*
*/
public class UnbalancedLegsException extends BusinessException {
private static final lon... |
/*
* Copyright 1999-2017 Alibaba Group Holding Ltd.
*
* 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 applica... |
package InformationRetrieval.Index;
import java.util.Comparator;
public class PostingListComparator implements Comparator<PostingList> {
public int compare(PostingList listA, PostingList listB){
if (listA.size() < listB.size()){
return -1;
} else {
if (listA.size() > listB... |
package com.example.aanchal.legistify;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by aanchal on 9/10/15.
*/
public class LawyerDBHelper extends SQLiteOpenHelper {
public static final int DATABASE_VERSION = 10;
... |
/**
* This class creates a B-tree that stores aBall objects
*
* @author tamara
*
*/
public class bTree {
//Instance variables and parameters
aBall root=null;
private double DeltaSize=0.1;
double lastSize=0;
double X;
double Y;
aBall ball;
/**
* addNode... |
package com.bunq.sdk.model.generated.object;
import com.bunq.sdk.model.core.BunqModel;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
/**
*
*/
public class RegistryEntryReference extends BunqModel {
/**
* The object t... |
package com.example.mytodolistapp;
import android.content.Intent;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
impo... |
/* Automatic generated by DeviceToClazz */
package com.example.xiaomi.upnp.apis.media.projection.source.device.source.control;
import android.os.Parcel;
import android.util.Log;
import upnps.api.manager.ctrlpoint.device.AbstractDevice;
import upnp.typedef.device.Device;
import upnp.typedef.device.Service;
... |
package com.hcl.neo.eloader.dao;
import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Query;
import ... |
package at.fhv.itm14.fhvgis.persistence.dao;
import at.fhv.itm14.fhvgis.domain.AnalyseResults;
import at.fhv.itm14.fhvgis.persistence.dao.interfaces.IAnalyseResultsDao;
public class AnalyseResultsDao extends GenericDao<AnalyseResults> implements IAnalyseResultsDao{
private static AnalyseResultsDao _instance;
pub... |
package userInput;
public class InputState {
private static float mouseX;
private static float mouseY;
private static boolean[] keyHeld = new boolean[256*2];
private static boolean[] mouseButtonHeld = new boolean[16];
static {
mouseX = 0;
mouseY = 0;
for (int i = 0; i... |
/* $Id$ */
package djudge.acmcontester.admin;
import java.awt.Color;
import djudge.acmcontester.structures.RemoteTableSubmissions;
import djudge.gui.Formatter;
public class JudgementCellRenderer extends DefaultSubmissionsModelCellRenderer
{
private static final long serialVersionUID = 1L;
public Jud... |
package com.fumei.bg.mapper;
import com.fumei.bg.domain.web.GroupInfo;
import java.util.List;
/**
* @author zkh
*/
public interface GroupInfoMapper {
/**
* ๆฅ่ฏข้ๅข็ฎไปไฟกๆฏๅ่กจ
* @param info ๆกไปถ
* @return ้ๅข็ฎไปไฟกๆฏๅ่กจ
*/
List<GroupInfo> selectGroupInfoList(GroupInfo info);
/**
* ไฟๅญ้ๅข่ฏฆๆ
ไฟกๆฏ
... |
public class LinkParser {
String unparsed = "";
String parsed = "";
private char separator = '/';
public LinkParser(String URL) {
unparsed = URL;
}
public String parse() {
int sep = unparsed.lastIndexOf(separator);
parsed = unparsed.substring(sep + 1);
parsed = parsed.repla... |
package commands;
import model.ListingContext;
public class ChangeDirectory implements Command {
private ListingContext listingContext;
private String path;
public ChangeDirectory(ListingContext listingContext, String path) {
this.listingContext = listingContext;
this.path = path;
}
@Override
public voi... |
package com.edu.realestate.model;
import java.util.Arrays;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import org.bson.internal.Base64;
@Entity
public class Picture {
@Id
@Generate... |
package com.Flyweight;
/**
* Created by Valentine on 2018/5/12.
*/
public abstract class Shape {
public abstract void draw();
}
|
package ua.dao;
import org.springframework.stereotype.Repository;
import ua.domain.Category;
import ua.domain.Product;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import java.util.List;
@Repository
public class ProductDAOImpl implements ProductD... |
package com.ccnx_sb15gr3_Courier.model;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import org.ccnx.android.ccnlib.JsonMessage;
public class User extends JsonMessage implements Serializable{
/**
*
*/
private static final long serialVersionUID = -373945999108016882L;
priva... |
package com.example.login.controller;
import com.example.login.model.LoginRequest;
import com.example.login.model.LoginResponse;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.... |
package com.zantong.mobilecttx.weizhang.activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.view.Window;
import andr... |
package cyfixusBot.game.players;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.Random;
import java.util.Scanner;
import cyfixusBot.game.entities.Avatar;
import cyfixusBot.game.entities.ObjectID;
p... |
package compiler;
import compiler.compileLists.CompileListFactory;
import compiler.tokenizer.Node;
import compiler.tokenizer.NodeType;
import compiler.tokenizer.linked_list;
public class Compiler {
private CompileList list;
private CompileList sublist;
private Node node;
private int lastAssignedVariableName = 0;... |
package cr.ac.tec.ce1103.structures.simple;
/**
*
* Clase listas enlazadas
*
*/
class Nodo{
Object dato;
Nodo siguiente;
public Nodo(Object elem){
dato=elem;
siguiente=null;
}
}
public class ListaEnlazada {
private Nodo cabeza;
private int numElementos;
public ListaEnlazada(){
cabeza=null;
numElement... |
package uquest.com.bo.models.services.listeners;
import org.springframework.context.ApplicationEvent;
import uquest.com.bo.models.entity.Usuario;
public class OnRegistrationCompleteEvent extends ApplicationEvent {
private String appUrl;
private Usuario user;
public OnRegistrationCompleteEvent(
... |
package com.openfarmanager.android.di;
import android.os.Handler;
import com.openfarmanager.android.controllers.FileSystemController;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
/**
* @author Vlad Namashko
*/
@Module
@Singleton
public class FileSystemControllerModule {
priva... |
package com.nisira.core.entity;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.Date;
/**
* Created by aabad on 10/08/2017.
*/
public class Dato {
@SerializedName("idempresa")
@Expose
private String idempresa;
@SerializedName("idordens... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.