text stringlengths 10 2.72M |
|---|
package com.tencent.mm.plugin.collect.reward.ui;
import com.tencent.mm.ab.l;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.collect.reward.a.a.a;
import com.tencent.mm.plugin.collect.reward.a.h;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.storage.aa;
class QrRewardMainUI$3 implement... |
package com.tt.miniapp.view.dialog;
import android.content.Context;
import android.os.IBinder;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import com.tt.miniapphost.AppBrandLogger;
public abstract class WindowBase {
protected Context mContext;
private... |
package ve.com.mastercircuito.components;
import java.sql.SQLException;
import java.util.HashSet;
import java.util.Vector;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import ve.com.mastercircuito.db.Db;
public class MyTableModel extends DefaultTableModel {
/**
* ... |
package net.sourceforge.vrapper.utils;
public enum CaretType {
VERTICAL_BAR, RECTANGULAR, LEFT_SHIFTED_RECTANGULAR, HALF_RECT, UNDERLINE;
}
|
package main.java.com.comviva.flowone.client;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGr... |
package org.webmaple.common.model;
/**
* @author lyifee
* on 2021/1/12
*/
public class SpiderJobDTO {
/**
* 任务所在机器ip
*/
private String ip;
/**
* 任务所在worker名称
*/
private String worker;
/**
* 任务开启的spider uuid
*/
private String spiderUUID;
/**
* 任务定时类型
... |
package com.developpez.lmauzaize.java.concurrence.ch03_structure_donnees;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.TimeZone;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
im... |
package com.tyss.cg.exceptions;
import java.io.FileReader;
import java.util.Properties;
public class ThrowsClassEx {
public static void main(String[] args) throws Exception {
//public static void main(String[] args) throws IOException {
Properties properties=new Properties();
//new Properties().load(new FileR... |
package com.geekhelp.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* Created by V.Odahovskiy.
* Date 09.02.2015
* Time 16:23
* Package com.geekhelp.controller
*/
@Contr... |
package com.kodilla.kodillacoursecalculatormk;
public interface CalculatorInterface {
double operation(double val1, double val2);
String getOperator();
}
|
package com.scottehboeh.glc.utils;
import java.awt.*;
import java.awt.image.BufferedImage;
/**
* Created by 1503257 on 08/12/2017.
* <p>
* GuiUtils
* <p>
* This utility class functions as a toolbox for different useful UI-related
* methods and techniques.
*/
public class GuiUtils {
/**
... |
package org.adn.ceiba.ceibarest.utils;
import java.util.ArrayList;
import java.util.Collection;
import org.adn.ceiba.ceibarest.dto.TipoVehiculoDTO;
import org.adn.ceiba.ceibarest.entity.TipoVehiculo;
/**
*
* @author jose.lozano
*
*/
public final class TipoVehiculoConstante {
public static final Integer ID = ... |
package io.github.gronnmann.utils.pagedinventory.coinflipper;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.ListIterator;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.HumanEntity;... |
package simplejava.concurrent.lock;
public class ReentrantLock {
private boolean isLocked;
private Thread ownerThread;
private int lockCount;
public synchronized void lock() throws InterruptedException {
while(isLocked && Thread.currentThread() != ownerThread) {
this.wait();
}
isLocked = true... |
package govdatahub;
import java.util.*;
import java.sql.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class EntityStatService {
@Autowired
private DatabaseService databaseService;
public EntityStat getEntityStat (Long id)... |
package cl.tesoreria.sae.retenciones.vo;
public class OtrasRetencionesVO {
private String otrasRetenId;
private String folio;
private String observacion;
private String fechaIngre;
private String personaId;
private String rut;
private String dv;
private String nombre;
private Strin... |
package club.eridani.cursa.module.modules.combat;
import club.eridani.cursa.client.FriendManager;
import club.eridani.cursa.client.GUIManager;
import club.eridani.cursa.common.annotations.Module;
import club.eridani.cursa.event.events.network.PacketEvent;
import club.eridani.cursa.event.events.render.RenderEvent;
impo... |
package com.tencent.mm.protocal.c;
import com.tencent.mm.bk.a;
import java.util.LinkedList;
public final class bnx extends a {
public int lOS;
public cf rII;
public String rmM;
public LinkedList<bbs> slP = new LinkedList();
public um slQ;
public LinkedList<bfm> slR = new LinkedList();
publ... |
package com.qd.mystudy.sbweb;
import com.qd.mystudy.sbweb.mybatis.dao.PersonMapper;
import com.qd.mystudy.sbweb.mybatis.model.PersonExample;
import org.apache.ibatis.session.SqlSessionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.AbstractApplicationContext... |
package ua.nure.timoshenko.summaryTask4.web.command.admin;
import org.apache.log4j.Logger;
import ua.nure.timoshenko.summaryTask4.Path;
import ua.nure.timoshenko.summaryTask4.db.DBManager;
import ua.nure.timoshenko.summaryTask4.db.bean.UserBean;
import ua.nure.timoshenko.summaryTask4.web.command.Command;
import javax... |
/**
* 9. Palindrome Number
* very easy ←_←
*/
class Solution {
public boolean isPalindrome(int x) {
if (x < 0)
return false;
int r = 0, t = x;
while (t > 0) {
r = r * 10 + t % 10;
t /= 10;
}
return r == x;
}
public static void ma... |
package dv606.rw222ci.rssreader;
import android.os.Bundle;
import android.preference.PreferenceFragment;
/**
* Preference fragment.
*
* @author Robin Wassbjer (rw222ci)
* @since 2015-10-30
*/
public class RssReaderPreferenceFragment extends PreferenceFragment {
@Override
public void onCreate(Bundle saved... |
package ventanapruebatiempo;
import java.text.DecimalFormat;
/*
* 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 Julia Ramos Lopez
*/
public class Tiem... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the te... |
package samples;
import java.util.ArrayList;
public class Parking {
int type;
String slotnum;
int time;
public Parking(int type, String slotnum, int time) {
this.type = type;
this.slotnum = slotnum;
this.time = time;
}
public static void addVehicle(ArrayList<Parking> p... |
package com.tencent.mm.modelmulti;
import com.tencent.mm.plugin.report.f;
import com.tencent.mm.sdk.platformtools.al.a;
class k$2 implements a {
final /* synthetic */ k dZT;
final /* synthetic */ k$a dZU;
k$2(k kVar, k$a k_a) {
this.dZT = kVar;
this.dZU = k_a;
}
public final bool... |
package com.fleet.mybatis.pagehelper.dao;
import com.fleet.mybatis.pagehelper.entity.User;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;
@Mapper
public interface UserDao {
Integer insert(User user);
Integer delete(User user);
Integer update(User user);
... |
/*
* 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.
*/
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.io.IOException;
import java.io.PrintWriter;
import java.u... |
package com.pkjiao.friends.mm.activity;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import com.pkjiao.friends.mm.R;
import com.pkjiao.friends.mm.broadcast.receive.AuthCodeBroadcastReceiver;
import com.pkjiao.friends.mm.common.CommonDataStructure;
import com.pkjiao.friends.mm.ut... |
package app.integro.sjbhs.adapters;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import androidx.recyclerview.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Imag... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
package il.ac.afeka.cloud.enums;
public enum SortByEnumaration {
postingTimestamp,
user,
product,
language
}
|
package org.vaadin.alump.distributionbar.gwt.client.shared;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.vaadin.shared.AbstractComponentState;
@SuppressWarnings("serial")
public class DistributionBarState extends AbstractComponentState {
public boolean sendClicks = fal... |
package p4_group_8_repo.Start_model;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.effect.DropShadow;
import javafx.scene.image.Image;
import javafx.scene.image.I... |
package com.dishcuss.foodie.hub.Models;
import io.realm.RealmObject;
/**
* Created by Naeem Ibrahim on 7/29/2016.
*/
public class User extends RealmObject{
int id;
String name;
String username;
String email;
String avatar;
String gender;
String dob;
String location;
String prov... |
/*
* Minesweeper Project
* by Group3 : Arnaud BABOL, Guillaume SIMMONEAU
*/
package Model.Scores;
import java.io.Serializable;
import java.util.Calendar;
/**
*
* @author nono
*/
public class Score implements Comparable, Serializable {
private String pseudo;
private int time;
private Calendar date;
... |
package sy.task;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.URL;
import java.net.URLConnection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
im... |
import java.util.List;
import java.util.Random;
public class QuickSortList {
public static <T extends Comparable<? super T>> void sort(List<T> arrayToBeSorted) {
quickSort(arrayToBeSorted, 0, arrayToBeSorted.size() - 1);
}
private static <T extends Comparable<? super T>> void quickSort(List<T> arr... |
package pl.ark.chr.buginator.rest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import pl.ark.chr.buginator.domain.BaseEntity;
import pl.ark.chr.buginator.app.exceptions.RestException;
i... |
package com.tencent.mm.plugin.game.wepkg.utils;
import com.tencent.mm.ab.b;
public interface WepkgRunCgi$a {
void a(int i, int i2, String str, b bVar);
}
|
package com.tencent.mm.plugin.wallet.pwd.ui;
import android.content.Intent;
import android.view.View;
import com.tencent.mm.wallet_core.ui.d;
class WalletDigitalCertUI$1 extends d {
final /* synthetic */ WalletDigitalCertUI phy;
WalletDigitalCertUI$1(WalletDigitalCertUI walletDigitalCertUI) {
this.ph... |
package lotto.step3.domain;
import java.util.Objects;
public class LottoNumber {
private static final int LOTTO_MIN_NUMBER = 1;
private static final int LOTTO_MAX_NUMBER = 45;
private int lottoNumber;
public LottoNumber(int number) {
if (number < LOTTO_MIN_NUMBER || number > LOTTO_MAX_NUMBER)... |
package April.Loops;
public class PrintOddEvenNumbers {
public static void main(String[] args) {
for (int i = 1;i <= 100;i++){
int even ;
//even =i % 2 ==0;
if(i % 2 ==0){
System.out.println("even numbers - " +i);
}else{
// Sys... |
package com.framework.service;
import java.util.List;
import com.framework.bean.common.Page;
import com.framework.bean.common.TreeViewNode;
import com.framework.bean.vo.SysMenuVo;
import com.framework.model.SysMenu;
public interface MenuService {
void queryMenuList(Page<SysMenu> page, SysMenu menu) throws Exceptio... |
package model.service;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import model.dao.AdminDao;
import model.dao.MovieDao;
import model.dao.ReserVationDao;
import model.dao.TheaterDao;
import model.vo.movie.CountryVO;
impo... |
package at.fhv.team3.presentation.customermanagement;
import at.fhv.team3.application.ServerIP;
import at.fhv.team3.domain.dto.BookDTO;
import at.fhv.team3.domain.dto.CustomerDTO;
import at.fhv.team3.domain.dto.DTO;
import at.fhv.team3.presentation.detailbook.DetailBookPresenter;
import at.fhv.team3.presentation.detai... |
package com.qihoo.finance.chronus.metadata.api.task.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qihoo.finance.chronus.metadata.api.common.Entity;
import com.qihoo.finance.chronus.metadata.api.task.enums.TaskRunStatusEnum;
import lombok.Getter;
import lombok.Setter;
import org.springframework... |
package com.tencent.mm.plugin.appbrand.media.a;
public final class c {
public String dGC;
public String fIi;
public String ffK;
}
|
package com.simple.base.components.cache.controller;
public class TestController {
}
|
package be.spring.app.controller;
import be.spring.app.controller.exceptions.ObjectNotFoundException;
import be.spring.app.data.PositionsEnum;
import be.spring.app.form.CreateAndUpdateTeamForm;
import be.spring.app.model.Account;
import be.spring.app.dto.ActionWrapperDTO;
import be.spring.app.model.Address;
import be.... |
package com.bw.movie.IView;
import com.bw.movie.mvp.model.bean.Movieinfo;
public interface IHotMvoieView extends IBaseView {
void success(Movieinfo movieinfo);
void Error(String msg);
}
|
package demoGui;
import java.util.ArrayList;
import javax.swing.JList;
import javax.swing.SwingWorker;
/*****************************************************************************************************************************************
* This class represents a parallel thread to run alongside the main Multipa... |
public class E15
{
public static void main(String[] args)
{
System.out.println("+------+");
System.out.println("|Andrew|");
System.out.println("+------+");
}
} |
package com.kush.lib.expressions.factory;
import static java.util.stream.Collectors.joining;
import java.util.Collection;
import com.kush.lib.expressions.Expression;
import com.kush.lib.expressions.clauses.InExpression;
class DefaultInExpression extends BaseExpression implements InExpression {
private final Ex... |
package com.vietmedia365.voaapp.job;
import com.path.android.jobqueue.Job;
import com.path.android.jobqueue.Params;
import com.vietmedia365.voaapp.NewsApp;
import com.vietmedia365.voaapp.event.LoadArticleDetailEvent;
import com.vietmedia365.voaapp.model.Article;
import de.greenrobot.event.EventBus;
import retrofit.Ca... |
package me.mrmaurice.wc.function.imports;
public class ImportImages {
public ImportImages() {
// TODO Auto-generated constructor stub
}
}
|
package assemAssist.model.option.restrictions;
import java.util.Collection;
import java.util.List;
import assemAssist.model.option.VehicleOption;
/**
* A restriction with a certain {@link VehicleOption} which is a precondition
* and an operation that filters a given list of options.
*
* @author SWOP Group 3
... |
package ls.example.t.zero2line.base.rv;
import android.support.v7.widget.RecyclerView;
import android.util.SparseArray;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnLongClickListener;
/**
* <pre>
* author: Blankj
* blog : http://blankj.com
* time : 2... |
package controllers;
import java.util.ArrayList;
import java.util.Collection;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.Assert;
import org.springframework.validation.B... |
package com.tencent.mm.plugin.appbrand.widget.input;
import android.view.View;
import android.view.ViewGroup;
import com.tencent.mm.plugin.appbrand.s.g;
import com.tencent.mm.plugin.appbrand.widget.input.ad.a;
class ad$1 extends a<ViewGroup, f> {
final /* synthetic */ ad gJm;
ad$1(ad adVar) {
this.gJ... |
package gs.mc.tools.models;
import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.NodeEntity;
@NodeEntity
public class Module
{
@GraphId
private Long id;
private String groupId;
private String artifactId;
private String version;
private String description;
public Modul... |
package com.harrymt.productivitymapping.services;
import android.service.notification.NotificationListenerService;
import android.service.notification.StatusBarNotification;
import android.util.Log;
import com.harrymt.productivitymapping.coredata.NotificationParts;
import com.harrymt.productivitymapping.database.Datab... |
package com.tencent.mm.plugin.voip.model.a;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.model.au;
import com.tencent.mm.plugin.voip.b.a;
import com.tencent.mm.protocal.c.bza;
import com.tencent.mm.protocal.c.caf;
import com.tencent.mm.sdk.platformtools.x;
import java.nio.ByteBuffer;
i... |
package datastructures.unionfind;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class GenericUnionFind<T> {
private int[] parent;
private int[] size;
private int noOfcomponents;
private int n;
private Map<T, Integer> map;
// Initializing the data structure
... |
package ch.ubx.startlist.client;
import com.google.gwt.i18n.client.TimeZone;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.user.datepicker.client.DateBox;
import com.google.gwt.user.datepicker.client.DateBox.DefaultFormat;
public interface TimeFormat {
public static final DefaultF... |
package com.orca.page.objects;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class Comments extends BasePageObject {
protected WebDriver driver;
public Comments(WebDriver driver) {
th... |
package com.lqs.hrm.mapper;
import com.lqs.hrm.entity.PositionLevel;
import com.lqs.hrm.entity.PositionLevelExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PositionLevelMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds t... |
package com.jonathan.user.Services;
import com.jonathan.user.Domain.Model.User;
import com.jonathan.user.Domain.Model.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class FindUserByIdService {
private UserRepository us... |
package com.cse308.sbuify.album;
import com.cse308.sbuify.artist.Artist;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.... |
package com.simonk.gui.dataproviders;
public interface DataProvider {
String fullname();
String address();
String email();
}
|
package com.practice;
public class Rotation {
public static void main(String[] args) {
String a = "apple";
String b = "elppa";
System.out.println("Is "+a+ " rotation of "+ b + " : " + (rotation(a,b)==true? "Yes" : "No"));
}
public static boolean rotation(String a, String b){
char [] c1 = a.toCharArra... |
package com.rofour.baseball.dao.order.mapper;
import java.util.List;
import com.rofour.baseball.dao.order.bean.TbTaskSub;
import javax.inject.Named;
@Named("tbTaskSubMapper")
public interface TbTaskSubMapper {
int deleteByPrimaryKey(Long taskSubId);
int stopByPrimaryKey(Long taskSubId);
int insert(TbTa... |
package CloudSharing;
public interface File {
/**
* Retorna a dimensao do ficheiro.
*
* @return - Dimensao do ficheiro.
*/
int getSize();
/**
* Retorna o nome do dono do ficheiro.
*
* @return - Nome do dono do ficheiro
*/
String getOwner();
/**
* Re... |
package fr.tenebrae.MMOCore.Utils;
import net.minecraft.server.v1_9_R1.Block;
import net.minecraft.server.v1_9_R1.BlockPosition;
import net.minecraft.server.v1_9_R1.PacketPlayOutBlockAction;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.craftbukkit.v1_9_R1.entity.CraftPlayer;
impo... |
package com.java.app.beans;
import java.util.Date;
public class ServerConfigDO
{
private Integer id;
private String sFromMailId;
private String sFromMailPassword;
private String sSMTPHostName;
private String sSMTPHostNumber;
private String sSMTPAuth;
private String sSMTPDebug;
private String sS... |
package View;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import controller.ConnexionMySql;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JButton;
import java.awt.Font;
import j... |
package Transport;
import exceptions.DeliveryException;
import exceptions.ManagementException;
import hr.ICustomer;
import hr.IDestination;
import hr.IDriver;
import transport.IDelivery;
import transport.IItem;
import transport.IManagement;
import transport.IVehicle;
import transport.ItemStatus;
import transport.Trans... |
package grafico;
/**
*
* @author Adriana
*/
public class Avioneta implements VehiculoDePasajero,VehiculoAereo{
public void ListaPasajeros() {
// TODO Auto-generated method stub
}
public void Volar() {
// TODO Auto-generated method stub
}
@Override
public void listaPasaj... |
import java.util.*;
/**
* 752. Open the Lock
* Medium
*/
public class Solution {
private char pre(char c) {
return c == '0' ? '9' : (char) (c - 1);
}
private char next(char c) {
return c == '9' ? '0' : (char) (c + 1);
}
private List<String> nextStatus(String code) {
Li... |
package com.linroid.opengl;
/**
* @author linroid <linroid@gmail.com>
* @since 23/04/2017
*/
public class Sizeof {
public static final int INT = 4;
public static final int SHORT = 2;
public static final int FLOAT = 4;
public static final int DOUBLE = 8;
public static final int CHAR = 1;
pu... |
package com.wonders.task.htxx.execute;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Scope;... |
import java.util.*;
import java.io.*;
public class cf489a{
public static void main(String [] args) throws IOException{
InputReader in = new InputReader("cf489a.in");
int n = in.nextInt();
HashSet<Integer> set = new HashSet<Integer>();
for(int i = 0; i < n; i++){
int m = in.nextInt();
if(m != 0 && !s... |
package chatroom.serializer;
import chatroom.model.message.Message;
import chatroom.model.message.MessageType;
import chatroom.model.message.RoomListMessage;
import chatroom.model.message.RoomMessage;
import chatroom.server.room.Room;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
public class ... |
/*
* Copyright 2011-2021 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 services;
import java.util.Map;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.transform.AliasToEntityMapResultTransformer;
import db.HibernateUtil;
public class decService {
@SuppressWarnings("unchecked")
public static decryptorClass viewRequest(String pub... |
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
public class HarryPotterTextReading {
public static void main(String[] args) throws IOException {
java.io.File file = new java.io.File("src/harryPotter.txt");
Scanner input = new Scanner(file);
try {
FileReader fr = new FileR... |
/*
* Copyright (c) 2016. Universidad Politecnica de Madrid
*
* @author Badenes Olmedo, Carlos <cbadenes@fi.upm.es>
*
*/
package org.librairy.modeler.lda.functions;
import org.apache.spark.mllib.linalg.Vector;
import org.apache.spark.sql.Row;
import scala.Tuple2;
import scala.runtime.AbstractFunction1;
import ja... |
package com.tencent.mm.plugin.exdevice.model;
import com.tencent.mm.plugin.exdevice.service.f;
import com.tencent.mm.plugin.exdevice.service.k.a;
import com.tencent.mm.sdk.platformtools.x;
class h$2 extends a {
final /* synthetic */ h ivb;
final /* synthetic */ h.a ivc;
h$2(h hVar, h.a aVar) {
th... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package com.yahoo.algos;
import java.util.Arrays;
public class BinarySearch {
/**
* Remember 2 things
* one mid = low + (high-low)/2 and
* other while low<=high or if low>high return -1
*/
static int search = 45;
static int[] array = {45,2,5,8,15,3,5,90,24,34,52,98};
public static void main(String[] arg... |
public class Station
{
private Switch switchOne;
private Switch switchTwo;
private Track trackOne;
private Track trackTwo;
private Track trackRight;
private Track trackLeft;
/**
* Public method that checks if the train can arrive at the station.
* If trackOne and TrackTwo has a T... |
package pe.gob.trabajo.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.data.elasticsearch.ann... |
package com.niit.daoImpl;
import java.util.List;
import javax.transaction.Transactional;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.niit.dao.ForumDao;
impor... |
package Taller;
import java.util.InputMismatchException;
import java.util.Scanner;
/**
*
* @author Usuario
*/
public class Interfaz {
public static String leerCadena(String prompt){
Scanner leer=new Scanner(System.in);
String lectura;
System.out.println(prompt)... |
package com.tencent.mm.plugin.profile.ui;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import com.tencent.mm.R;
import com.tencent.mm.model.au;
import com.tencent.mm.model.c;
import com.tencent.mm.model.m;
import com.tencent.mm.pluginsdk.b.a;
import com.tencent.mm.plugins... |
/*
* FileName: FileUploadController.java
* Description:
* Company: 南宁超创信息工程有限公司
* Copyright: ChaoChuang (c) 2005
* History: 2005-1-7 (guig) 1.0 Create
*/
package com.spower.basesystem.common.multipart.controller;
import javax.servlet.http.HttpServletRequest;
import org.springframework.w... |
package sim.pedido;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import sim.material.Material;
import sim.usuario.Usuario;
@Entity
@Table(name="pedido")
public class Pedido implements Serializable {
/**
*
*/
private static final long serialVersionUID = -3... |
package com.tencent.mm.plugin.game.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
class GameDownloadView$1 implements OnClickListener {
final /* synthetic */ GameDownloadView jXJ;
GameDownloadView$1(GameDownloadView gameDownloadView) {
this.jXJ = g... |
package com.supconit.kqfx.web.fxzf.warn.services.Impl;
import java.util.List;
import jodd.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import hc.orm.AbstractBasicOrmService;
import com.supconit.kqfx.web.fxzf.warn.daos.WarnInfoDao;
im... |
// Simple test of the Java client class
//
// Keith Vertanen 4/99, updated 10/09
import java.io.*;
import java.net.*;
public class java_client_test
{
static int SIZE = 10; // how many items in each packet
static int NUM_PACKS = 3; // how many repetitions to do
public static void main( String args[] ) th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.