text stringlengths 10 2.72M |
|---|
/**
*
*/
package com.controlelancamento.domain;
import java.math.BigDecimal;
import javax.persistence.Embeddable;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
@Embeddable
public class TotalControleLancamento {
private Integer quantidadeLancamentos;
private... |
package com.logzc.webzic.reflection.type;
/**
* Created by lishuang on 2016/7/25.
*/
public class TypeTestBean {
private TypeTestBean(String good) {
System.out.println(good);
}
public TypeTestBean(int a) {
System.out.println(a);
}
public <T> void hello(String a, T num,int a1... |
@Override
public void setSheetName(int sheetIndex, String sheetname) {
//R: Here throwing NullPointerException would be clearer than throwing IllegalArgumentException.
//R: because setSheetName have to check null parameters (null bug) not that if the parameter does not satisy its condion
//R: it is bet... |
package com.bestseller.common.session;
import java.io.Serializable;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class HttpSessionProvider implements SessionProvider {
@Override
public void setAttribute(HttpSe... |
package com.syscxp.biz.service.activiti.businessApprove;
import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.stereotype.Component;
/**
* @Author: sunxuelong.
* @Cretion Date: 2018-09-12.
* @Description: .
*/
@Component(value = "completeTas... |
package general.store;
public class CashierSpeedCalculator {
UniformRandomStream random;
public CashierSpeedCalculator(float min, float max, int seed) {
random = new UniformRandomStream(min, max, seed);
}
public double getTime() {
return random.next();
}
}
|
package com.emg.projectsmanage.common;
/**
* 属性错误
*
* @author zsen
*
*/
public enum ProptyErrorType {
/**
* 无
*/
NONE(21100010000L, "无"),
/**
* 错别字
*/
TYPOS(21100010001L, "错别字"),
/**
* 未按规则制作
*/
ILLEGAL(21100010002L, "未按规则制作"),
/**
* 多制作
*/
EXTRA(21100010003L, "多制... |
package be.openclinic.system;
import be.mxs.common.util.db.MedwanQuery;
import be.mxs.common.util.system.ScreenHelper;
import java.sql.Connection;
import java.sql.Timestamp;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
/**
* Created by IntelliJ IDEA.
* User: mxs-rudy
* Date: 19-mrt-2007
* Time: ... |
package LLambdaTop.ChallengeLambda;
import java.util.function.Supplier;
public class Lambda3 {
public static void main(String[] args) {
//Supplier<String> iLoveJava = () -> "I love Java";
Supplier<String> iLoveJava = () -> {return "I love Java"; };
String supplierResult = iLoveJava.ge... |
package ejerciciojunitparejas;
import com.sun.jmx.snmp.BerException;
public class Metodos extends BRException{
private float salarioBase;
private float totalHorasExtra;
private float retencion;
public float calculaSalarioBruto(String tipo, float ventasMes, float horasExtra) throws BRExceptio... |
package com.qumla.service.test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import com.qumla.domain.location.Country;
import com.qumla.domain.location.LocationData;
import com.qumla.service.impl.LocationDataDaoMapper;
publi... |
import java.io.*;
import java.security.*;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.RSAPrivateKeySpec;
import java.security.spec.RSAPublicKeySpec;
import java.util.Scanner;
public class KeyGen {
public static void main (String[] args) throws NoSuchAlgorithmException,
... |
package com.capgemini.repository;
import javax.transaction.Transactional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.capgemini.entity.Donation;
@Repository("donationRepository")
publ... |
package org.usfirst.frc.team178.robot.subsystems;
import org.usfirst.frc.team178.robot.RobotMap;
import edu.wpi.first.wpilibj.Relay;
import edu.wpi.first.wpilibj.command.Subsystem;
/**
*
*/
public class TapeMeasureScalar extends Subsystem {
public static Relay Rick;
// Put methods for controlling this subs... |
package Problem_17471;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
static int N;
static int[] pop;
static boolean[] isSelected;
static boolean[][] isClosed;
static boolean[] isvisited;
static int min_value = Integer.MAX_VALUE;
... |
import java.util.Arrays;
// An immutable type representing a location on Earth.
public class Location implements Comparable<Location> {
private final String loc; // location name
private final double lat; // latitude
private final double lon; // longitude
// Construct a new location given its name, la... |
package ru.spbau.bocharov.FunctionalJava;
import org.junit.Test;
import java.util.Objects;
import static org.junit.Assert.*;
public class PredicateTest {
@Test
public void testConstants() {
assertTrue(Predicate.ALWAYS_TRUE.apply(new Object()));
assertFalse(Predicate.ALWAYS_FALSE.apply(new O... |
package org.formation.graphql;
import org.formation.model.Account;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.graphql.boot.test.tester.AutoConfigureGraphQlTester;
import org.sp... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
import java.io.PrintWriter;
import java.math.BigDecimal;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.ExecutorService;
import java.util.concur... |
package view;
import javax.swing.JPanel;
import javax.swing.border.EtchedBorder;
import controller.DBConnection;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Random;
import java.awt.Dimension;
import java.awt.FlowLayout;
... |
//package com.bnrc.multipallist;
//
//import java.util.ArrayList;
//import java.util.List;
//import java.util.Map;
//
//import android.app.Activity;
//import android.content.Intent;
//import android.os.Bundle;
//import android.os.UserManager;
//import android.view.Gravity;
//import android.view.View;
//import android.v... |
package edu.mit.cci.simulation.client.model.transitional;
import edu.mit.cci.simulation.client.comm.RepositoryManager;
/**
* User: jintrone
* Date: 3/17/11
* Time: 4:34 PM
*/
public abstract class AdaptedObject<T> {
T model;
private RepositoryManager manager;
public AdaptedObject(T obj, RepositoryMa... |
/**
* Created by Kuba on 09.11.2017.
*/
public class Map {
private int size = 8;
private String[][] board;
Map() {
this.board = new String[this.size][this.size];
for(int i = 0; i < this.size; ++i) {
for(int j = 0; j < this.size; ++j) {
if((j + i) % 2 == 1 && ... |
package com.example.chordnote.data.prefs;
import android.content.Context;
import android.content.SharedPreferences;
public class PreferencesHelperImpl implements PreferencesHelper {
private SharedPreferences preferences;
public PreferencesHelperImpl(Context context, String name) {
preferences = con... |
package view;
import app.Principal;
import dao.ConsultaProduto;
import entidades.ItensPedido;
import entidades.Produto;
import entidades.ProntaEntrega;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JOptionPane;
public class FrmInserirProduto extends javax.swing.JDialog {
public ItensPedid... |
package com.syscxp.biz.config;
/**
*/
@GlobalPropertyDefinition
public class CoreGlobalProperty {
@GlobalProperty(name = "openTSDBServerUrl", defaultValue = "http://192.168.211.6:4242")
public static String OPENTSDB_SERVER_URL;
} |
package Problem_10451;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
static int N;
static int[] arr = new int[1001];
static boolean[] isvisited = new boolean[1001];
static int answer;
public static vo... |
package sg.edu.iss.ad.model;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.p... |
package Repository;
import Domain.Rental;
/**
* Created by Emma on 8/11/2018.
*/
public interface RentalRepository extends CrudRepository<Rental, Long>
{
Iterable<Rental> findAllById(long id);//finds all Rentals
}
|
package com.example.karen.lop_android;
import android.app.DialogFragment;
import android.os.Bundle;
import android.os.Environment;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.w... |
package exemplos.aula10.lsp.incorreto;
public interface Car {
void turnOnEngine();
void accelerate();
} |
package com.javatunes.data;
import java.beans.XMLDecoder;
import java.beans.XMLEncoder;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import org.springframewo... |
package com.github.tobby48.java.scene1;
/**
* <pre>
* com.github.tobby48.java.scene1
* OperatorCasting.java
*
* 설명 : 캐스팅연산자 테스트
* </pre>
*
* @since : 2017. 6. 28.
* @author : tobby48
* @version : v1.0
*/
public class OperatorCasting {
public static void main(String args[]) {
double d1 = ... |
/*
* 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 objects;
import java.awt.Color;
import java.awt.color.*;
import java.util.Random;
public class Token {
int _number;
boolean _collected;
boolean _visible;
boolean _facedown;
int[] _location; // Tile.getLocation()
public Token(int[] location, Integer integer) {
this._collected = false;
this._locati... |
package com.himanshu.springboot2.foundation.context;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
impo... |
package com.pisen.ott.launcher.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.izy.widget.FocusScroller;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.View;
import andro... |
package com.kingdov.goldwallpapers.fragment;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.... |
package com.kalinowskim.recipeproject.services;
import com.kalinowskim.recipeproject.converters.RecipeCommandToRecipe;
import com.kalinowskim.recipeproject.converters.RecipeToRecipeCommand;
import com.kalinowskim.recipeproject.domain.Recipe;
import com.kalinowskim.recipeproject.exceptions.NotFoundException;
import com... |
package com.loveqrc.web.servlet;
import com.loveqrc.domain.Category;
import com.loveqrc.domain.Product;
import com.loveqrc.domain.User;
import com.loveqrc.service.CategoryService;
import com.loveqrc.service.ProductService;
import com.loveqrc.service.impl.CategoryServiceImpl;
import com.loveqrc.service.impl.ProductServ... |
package com.codingchili.router.configuration;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.*;
import com.codingchili.core.configuration.ServiceConfigurable;
import com.codingchili.core.listener.ListenerSettings;
import com.codingchili.core.listener.WireType;
import static com.codin... |
package webuters.com.geet_uttarakhand20aprilpro.activity;
import android.app.Activity;
import android.content.Context;
import android.location.Address;
import android.location.Geocoder;
import android.os.Bundle;
import android.util.Log;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android... |
/**
* Sencha GXT 3.0.1 - Sencha for GWT
* Copyright(c) 2007-2012, Sencha, Inc.
* licensing@sencha.com
*
* http://www.sencha.com/products/gxt/license/
*/
package com.sencha.gxt.explorer.client.binding;
import java.util.ArrayList;
import java.util.List;
import com.google.gwt.core.client.GWT;
import com.google.gwt... |
package org.giddap.dreamfactory.geeksforgeeks.dynamicprogramming;
/**
* http://www.geeksforgeeks.org/dynamic-programming-set-12-longest-palindromic-subsequence/
* <p/>
* Given a sequence, find the length of the longest palindromic subsequence in it. For example, if the given
* sequence is “BBABCBCAB”, then the out... |
package com.hbk.test;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Queue;
import com.bbg.test.ArrStr;
public class Matrix {
private static int [] [] grid;
public static void main(String[] args) {
... |
// Ayman: I found this code online at https://stackoverflow.com/questions/32260445/
// implementing-binary-search-on-an-array-of-strings to help use binary searching.
public class BinaryStringSearch
{
public static int binarySearch(String[] a, String x)
{
int low = 0;
int high = a.length - 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 utils;
import java.util.HashMap;
/**
*
* @author jrobledo
*/
public class CommandLineArgsParser {
public static Has... |
package com.paragon.utils.dialogs;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.provider.Settings;
import com.paragon.utils.logger.Logger;
/**
* Created by Ru... |
/*
* ID: kevin63857
* LANG: JAVA
* TASK: records
*/
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.StringTokenizer;
public class JON_wormholeDraft
{
static int holes;
static int loops;
st... |
package io.chark.food.util.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.BAD_REQUEST)
public class BadInputException extends RuntimeException {
public BadInputException(String message, Object... args) {
sup... |
package com.jit.stream09;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
public class Test {
public static void main(String[] args) {
ArrayList<Integer> l1 = new ArrayList<Integer>();
l1.add(0);
l1.add(15);
l1.add(10);
l1.add(5);
l1.a... |
package com.zhicai.byteera.activity.myhome.interfaceview;
import android.app.Activity;
import com.zhicai.byteera.activity.community.dynamic.entity.DynamicEntity;
import java.util.List;
/** Created by bing on 2015/6/29. */
public interface MyDynamicActivityIV {
Activity getContext();
void setData(List<Dynam... |
import java.util.Scanner;
public class MethodTest {
public static void main(String[] args){
//创建键盘录入对象
Scanner sc = new Scanner(System.in);
//获取键盘录入数据
System.out.println("请输入第一个数据:");
int a = sc.nextInt();
System.out.println("请输入第二个数据:");
int b = sc.nextIn... |
package io.github.yanhu32.xpathkit.converter;
import io.github.yanhu32.xpathkit.utils.Strings;
/**
* @author yh
* @since 2021/4/22
*/
public class BooleanTextConverter implements TextConverter<Boolean> {
@Override
public Boolean apply(String text) {
if (Strings.isEmpty(text)) {
return n... |
package com.qfc.yft.vo;
import com.qfc.yft.utils.JackUtils;
import com.qfc.yft.utils.XMLUtil;
import net.n3.nanoxml.IXMLElement;
public class CimWSReturn {
private int code = 0;
private String message = "";
private String sessionId = "";
private long id = 0L;
private String time = "";
private St... |
package com.trump.auction.trade.api;
import com.cf.common.util.page.Paging;
import com.cf.common.utils.JsonResult;
import com.trump.auction.trade.model.*;
import java.util.List;
/**
* @author: zhangqingqiang.
* @date: 2018/1/6 0006.
* @Description: 拍品 .
*/
public interface AuctionInfoStubService {
/**
... |
package main.java;
import sx.blah.discord.Discord4J;
import sx.blah.discord.api.IListener;
import sx.blah.discord.handle.impl.events.MessageReceivedEvent;
import sx.blah.discord.util.DiscordException;
import sx.blah.discord.util.HTTP429Exception;
import sx.blah.discord.util.MessageBuilder;
import sx.blah.discord.util.... |
/*
* 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 phatnh.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;
import java.util.logging... |
package com.aipiao.bkpkold.adapter.newsadapter;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.aipiao.bkpkold.R;
/**
* Created by Administrator on 2018/3/11.
*/
public class NHo... |
/*
* Copyright 2016 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... |
/*
* Copyright 2014 Melusyn SAS
*
* Melusyn 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 required by ap... |
package Beans;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
public class ErrorBean implements Serializable {
public ErrorBean() {
}
private Set<String> errors = new HashSet<>();
public Set<String> getErrors() {
return errors;
}
public void setErrors(Se... |
package control;
import java.nio.file.Path;
import java.util.List;
import database.DatabaseConnection;
import database.Establish;
import schemaComparison.loadFile;
public class Main {
public static String filePath = "H:\\Opon edX\\hkustx-2014-09-28\\User";
public static String fieldPath = "H:\\Opon e... |
package labrom.litlbro.browser;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import labrom.litlbro.L;
import android.util.Log;
import android.webkit.WebSettings;
public class BrowserSettings {
static class Signature {
final String m... |
package com.qa.client;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;
import javax.swing.text.html.parser.Entity;
import org.apache.http.Header;
import org.apache.http.HttpEn... |
package me.leaver.bloger.app.mvp.presenter;
import me.leaver.bloger.app.mvp.model.fundamental.Post;
/**
* Created by zhiyuan.lzy on 2016/3/20.
*/
//Model ->Presenter
public interface RequiredPresenterOps {
public void onFetchPostCompleted(Post post);
public void onLoadAllCompleted(String content);
}
|
package com.jit.predicate06;
/*Remove null values and Empty String from the given list*/
import java.util.ArrayList;
import java.util.function.Predicate;
public class Test{
public static void main(String[] args) {
String[] names = {"Durga","null",null,"Katrina","Kareena"};
Predicate<String> p = s -> s != null... |
package com.example.submissionempat.ui.main;
import android.content.Intent;
import android.provider.Settings;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
im... |
/**
* Sencha GXT 1.0.0-SNAPSHOT - Sencha for GWT
* Copyright (c) 2006-2018, Sencha Inc.
*
* licensing@sencha.com
* http://www.sencha.com/products/gxt/license/
*
* ================================================================================
* Commercial License
* ============================================... |
package lyrth.makanism.api.react;
import discord4j.core.object.reaction.ReactionEmoji;
import java.util.LinkedHashSet;
import java.util.Set;
public class CustomReactionSet implements ReactionSet {
private final LinkedHashSet<ReactionEmoji> reactions = new LinkedHashSet<>();
public CustomReactionSet(String.... |
package com.jelenleti.foodadviser;
import android.os.Bundle;
import android.app.Activity;
import android.util.DisplayMetrics;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.Toast;
/**
* Created by Jenni on 2017. 12. 12..
... |
package common;
/**
* Entry point of the program. Launches the GUI and spins off threads as needed.
*
* @author Dilshad Khatri, Alvis Koshy, Drew Noel, Jonathan Tung
* @version 1.0
* @since 2017-01-22
*/
public class EntryPoint {
/**
* Main method, standard entry point to a program
*
* @param args
* ... |
package com.nandi.randomjoke.network;
import com.nandi.randomjoke.model.JokeModel;
import com.octo.android.robospice.request.retrofit.RetrofitSpiceRequest;
/**
* Created by nandi_000 on 25-11-2015.
* API request which fetches the random joke
*/
public class RandomJokeApiRequest extends RetrofitSpiceRequest<JokeMod... |
package org.giddap.dreamfactory.leetcode.onlinejudge.implementations;
import org.giddap.dreamfactory.leetcode.onlinejudge.BestTimeToBuyAndSellStockIII;
/**
* 弼馬溫注解:
* <ul>
* <li>Time: O(n); Space: O(n) with extra storage for intermediate results
* .</li>
* <li>Thought Process
* <ul>
* <li>From the most basic c... |
package com.citibank.ods.entity.pl;
import com.citibank.ods.common.entity.BaseODSEntity;
import com.citibank.ods.entity.pl.valueobject.BaseTplProdQlfyPrvtEntityVO;
/**
* @author fernando.salgado
*
*
* Window - Preferences - Java - Code Style - Code Templates
*/
public class BaseTplProdQlfyPrvtEntity ... |
package controllers;
import views.ViewMayor3Num;
import models.ModelMayor3Num;
/**
*
* @author lupita
*/
public class ControllerMayor3Nun {
ModelMayor3Num model_mayor3num;
ViewMayor3Num view_mayor3num;
public ControllerMayor3Nun (ModelMayor3Num model_mayor3num, ViewMayor3Num view_mayor3num){
thi... |
package com.jay.mvp_dagger2_sample.data;
import com.jay.mvp_dagger2_sample.data.remote.Api;
import com.jay.mvp_dagger2_sample.data.interfaces.ISecurityDataSource;
import com.jay.mvp_dagger2_sample.data.remote.mapper.DefaultHttpResponse;
import com.jay.mvp_dagger2_sample.helper.event.AppEvent;
import org.greenrobot.ev... |
package com.peihua.mapper;
public class UserMapperImpl implements UserMapper{
@Override
public void save() {
System.out.println("user mapper running ...");
}
}
|
/*
* 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.davivienda.sara.bean.page.administracion;
import com.davivienda.sara.base.ComponenteAjaxObjectContextWeb;
import com.daviv... |
package mx.com.mentoringit.entities;
// Generated 20-jun-2016 21:40:30 by Hibernate Tools 4.3.1.Final
import java.util.HashSet;
import java.util.Set;
/**
* Cuenta generated by hbm2java
*/
public class Cuenta implements java.io.Serializable {
private Integer idCuenta;
private Cliente cliente;
private Tipocuenta ... |
public class insertionThread extends Thread {
private int array[];
private int split;
public insertionThread(int array[], int split) {
this.array = array;
this.split = split;
}
public void run(){
if (array.length > split){
int array1[] = new int[array.length /2];
int array2[] = new int... |
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionListener;
import javax.swing.*;
/**
* Diseño de una calculadora
* @author Garcia Garcia Jose Ángel
* */
public class Ventan... |
package com.proxiad.games.extranet.model;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.Map;
import java.util.Set;
import org.springframework.lang.NonNull;
import com.proxiad.games.extranet.enums.LanguageEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data... |
package gameClient;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import api.DWGraph_Algo;
import api.directed_weighted_graph;
import api.edge_data;
import api.game_service;
import api.node_data;
/**
* This class is used for calculate algorithms for agents movements, and p... |
/**
* Copyright (c) 2004-2021 All Rights Reserved.
*/
package com.adomy.mirpc.core.remoting.provider.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**... |
/*
* 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 Model;
import Interfaces.RegIF;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import ja... |
package com.nixsolutions.micrometr.service.external.alphavintage.enums;
import com.nixsolutions.micrometr.utils.EnumWithValue;
public enum Endpoints implements EnumWithValue<Endpoints, String>
{
TIME_SERIES_INTRADAY("TIME_SERIES_INTRADAY"),
TIME_SERIES_DAILY("TIME_SERIES_DAILY"),
TIME_SERIES_DAILY_ADJUSTED("TIM... |
package com.lzy.movie;
import com.lzy.filter.Filter;
import java.util.ArrayList;
import java.util.HashMap;
public class MovieDatabase {
static HashMap<String,Movie> movieInfo;
public static void initialize(){
FirstRatings fr = new FirstRatings();
if(movieInfo == null){
... |
package com.function;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Common {
/**
* 获取现在时间的字符串形式
* @return
*/
public static String time(){
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return format.format(new Date(... |
package com.example.miwokapp2;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;
public class ColorsActivity extends AppCompatActivity {
ListView listView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedI... |
/*
* 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.
*/
/**
*
* @author Ibrhaim
*/
public class RunnerLab7Pizza {
public static void main(String[] args){
... |
package resultMerge;
import java.util.LinkedList;
public class LegRace implements RaceType {
private static LegInfo legInfo;
private class Leg {
LinkedList<Time> start = new LinkedList<>();
LinkedList<Time> finish = new LinkedList<>();
int leg;
public Leg(int i) {
leg = i;
}
public void addStart(Ti... |
package mine.config;
import mine.entity.UserEntity;
import org.springframework.context.annotation.*;
/**
* @author 蚂蚁课堂创始人-余胜军QQ644064779
* @title: MySpringConfig
* @description: 每特教育独创第五期互联网架构课程
* @date 2019/6/2221:10
*/
@Configuration
@ComponentScan(value = "mine")
// { , excludeFilters = @ComponentScan.Filte... |
/*
* Copyright (c) 2008-2022 Haulmont.
*
* 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 agr... |
package com.GestiondesClub.entities;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation... |
package analytics.analysis.algorithms.apriori;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
import weka.associations.Apriori;
import weka.core.Ins... |
package com.meizu.scriptkeeper.broadcast;
import android.app.DownloadManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.os.Build;
import android.widget.Toast;
import ... |
package com.itheima.bos.web.action;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.ServletOutputStream;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi... |
/*******************************************************************************
* Copyright (c) 2013 IBM Corp.
*
* 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... |
package com.example.netflix_project.src.main.models;
import androidx.annotation.NonNull;
import com.example.netflix_project.src.main.MovieInfoActivity;
import com.example.netflix_project.src.main.home.GenrePageActivity;
import com.example.netflix_project.src.main.home.MovieInterface.ActionMovieView;
import com.exampl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.