text stringlengths 10 2.72M |
|---|
public class Solution {
public int reverse(int x) {
long result = 0; //data type is long not int. But why???
while(x!=0){
result = result*10 + x%10;
x /= 10;
if(result >= Integer.MAX_VALUE || result <= Integer.MIN_VALUE) //prevent integer overflows
... |
package BIO;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.util.Scanner;
public class TCPClient {
public static void main(String[] args) throws Exception{
while (true){
Socket s=new Socket("127.0.0.1",9999);
//取出输出流发消息
Outp... |
package com.laiweifeng.launcher.widget;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
impo... |
package com.imooc.collection;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
/*
* 备选课程类
*/
public class ListTest {
/*
* 用于存放备选课程的list
*/
public List coursesToSelect;
//创建构造方法实例化coursesToSelect
public ListTest(){
this.coursesToSelect = new ArrayLis... |
package LinkRecursiveAction;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.PrintWriter;
import java.util.concurrent.CopyOnWriteArrayList;
public class TreeNode {
private CopyOnWriteArrayList<Node> allNode;
private Node parent;
public TreeNode() {
this.allNode = new Cop... |
package com.aktway.services.profile.resource;
import com.aktway.services.profile.api.response.*;
import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
imp... |
package java2.businesslogic.announcementcreation;
import java2.businesslogic.ValidationError;
import java2.database.AnnouncementDatabase;
import java2.database.UserDatabase;
import java2.domain.Announcement;
import java2.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframe... |
package com.example.a.projectcompanyhdexpertiser.Controller;
import android.content.Context;
import android.telephony.SmsManager;
import android.widget.Toast;
public class SMSMailer {
public void sendSMS(final Context context, String phone, String message) {
try {
Toast.makeText(context, "Đan... |
package com.myflappybird.service;
import com.myflappybird.dto.GameDto;
import com.myflappybird.img.Img;
import com.myflappybird.music.Music;
import java.awt.*;
import java.io.IOException;
public class Pillars {
/**
* 数据传输层
*/
GameDto dto;
/**
* 柱子内部类
*/
privat... |
package com.example.raiko.top10downloader;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ListView;
import java.io.BufferedReader;
import java.io.IOException;... |
package domain;
public interface OverClocking {
void increaseTiming(double newTiming);
}
|
package com.rc.portal.webapp.action;
import java.io.PrintWriter;
import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.... |
package com.thoughtmechanix.licenses.model;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
@Getter
@Setter
@ToString
public class Organization implements Serializable {
String id;
String name;
String contactName;
String contactEmail;
String contac... |
package cn.timebusker.mq;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Service;
/**
* @DESC:KafkaProducer:消息投递
* @author:timebusker
* @date:2018/9/13... |
//package com.tutorial.batch.domain;
//
//import lombok.AccessLevel;
//import lombok.Getter;
//import lombok.NoArgsConstructor;
//import lombok.Setter;
//
//import javax.persistence.Entity;
//import javax.persistence.GeneratedValue;
//import javax.persistence.GenerationType;
//import javax.persistence.Id;
//
//@Getter
... |
/**
*
*/
package com.paytechnologies.DTO;
/**
* @author Arun
*
*/
public class TripDetailsDTO {
int tripId = 0;
int userId = 0;
String startLocation = "";
String startLocationAlias="";
String endLocation="";
String endLocationAlias="";
String startLanglat="";
Stri... |
package net.lin.www;
import com.google.gson.Gson;
import java.sql.*;
import java.util.LinkedList;
/**
* Created by Lin on 1/11/16.
*/
public class DatabaseManager
{
static String filename = "./data/GiltCity/GiltCity_New York_data_with_contact_info_v1.txt";
public static void main(String[] args)
{
... |
package com.techlab.crud;
public class CustomerDb implements Icrudable {
@Override
public void create() {
System.out.println("create in CustomerDb");
}
@Override
public void read() {
System.out.println("read in CustomerDb");
}
@Override
public void update() {
System.out.println("update in CustomerDb... |
package com.tencent.mm.ui.chatting.viewitems;
import android.graphics.Bitmap;
import com.tencent.mm.modelappbrand.b.b$h;
import com.tencent.mm.plugin.appbrand.q.k;
import com.tencent.mm.ui.chatting.viewitems.c.c;
import com.tencent.mm.ui.chatting.viewitems.c.d;
class c$d$2 implements b$h {
final /* synthetic */ c... |
package fr.lteconsulting.formations;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.se... |
package com.ifli.mbcp.dao;
import static org.junit.Assert.*;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.... |
/*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 app... |
package manage.studentgui;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEven... |
package alg;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Locale;
import java.util.Scanner;
/**
* Generates a list of tests to be run.
* @author Angel A. Juan - ajuanp(@)gmail.com
* @version 130807
*/
public class TestsManager
{
public static ArrayList<Tes... |
package com.rsm.yuri.projecttaxilivredriver.chat;
import android.util.Log;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.rsm.yuri.projecttaxilivredriver.chat.entities.ChatMessage;
import com.rsm.yu... |
package com.example.healthmanage.ui.activity.healthreport.ui;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.text.InputFilter;
import android.text.Spanned;
import android.tex... |
package com.example.autowiredemo;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class AnnotationDemoApp {
public static void main(String[] args) {
// read spring config file
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("application... |
package com.funlib.http.download;
/**
* 下载状态
* @author feng
*
*/
public class DownloadStatus {
public static final int STATUS_STORAGE_FULL = 0; // 没有足够的存储空间
public static final int STATUS_NO_SDCARD = 1; // 没有插入SD卡
public static final int STATUS_PAUSE ... |
package db;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Ksenia on 11.12.2016.
*/
public class MySQLdb {
private static final String LOGIN_NAME = "Ksenia00";
private static final String DOMAIN = "@tut.by";
private static final String PASSWORD = "AutomationTest... |
package com.cloudogu.smeagol.wiki.domain;
import com.google.common.base.Preconditions;
import java.util.Objects;
import java.util.regex.Pattern;
/**
* Email address value object.
*/
public final class Email {
private static final Pattern EMAIL_PATTERN = Pattern.compile(
"^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z... |
package com.tencent.mm.plugin.appbrand.game;
import android.content.SharedPreferences;
import com.tencent.mm.ipcinvoker.wx_extension.a.a;
import com.tencent.mm.plugin.appbrand.g.b;
import com.tencent.mm.plugin.appbrand.g.f;
import com.tencent.mm.sdk.platformtools.ad;
import com.tencent.mm.sdk.platformtools.bi;
import ... |
package ru.bm.eetp.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import java.util.Optional;
@Component
@Scope(Config... |
package com.huanuo.npo.service;
import com.huanuo.npo.Config.Car;
import com.huanuo.npo.Dao.PeopleDao;
import com.huanuo.npo.pojo.People;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class PeopleServiceTe... |
package com.tencent.mm.plugin.offline.ui;
import android.text.TextUtils;
import android.view.MenuItem;
import com.tencent.mm.plugin.offline.c.a;
import com.tencent.mm.plugin.offline.k;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.plugin.wallet_core.model.Bankcard;
import com.tencent.mm.sdk.plat... |
package com.santander.bi.DAO;
import java.util.List;
import com.santander.bi.model.Area;
public interface AreaDAO {
Area get(int id);
List<Area> getAll();
Area save(Area t);
Area update(Area t);
Area delete(int id);
Area delete(Area p);
void close();
} |
package mainApp;
import javafx.stage.Window;
public class StageController {
private double width,height,horp,verp;
StageController(Window window){
height = window.getHeight();
width = window.getWidth();
horp = window.getX();
verp = window.getY();
}
public double getWidth() {
return width;
}
p... |
package DAO;
import java.util.*;
import Bean.Emp;
import java.sql.*;
public class HomeDAO {
public static List<Emp> DisplayEmp(int start, int count , Connection conn){
List<Emp> list = new ArrayList<Emp>();
String sql = "SELECT * FROM emp LIMIT "+ (start-1) +", " +count+ "";
try {
PreparedStatement ps = conn... |
package pl.czyzycki.towerdef.gameplay;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.input.GestureDetector;
/**
* Klasa odpowiedzialna za obsługę prostych zdarzeń inputu. Propaguje informacje do GameplayGestureListenera.
*
*/
class GameplayGestureDetector extends GestureDetector {
final GameplaySc... |
/*
* 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 ServiceLiberT;
import LiberT.GestionMethodesServiceIteneraire;
import LiberT.Iteneraire;
import java.sql.Connection;
... |
/*
* 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 patchworks.fragments;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.util.Log;
import android.view.LayoutInflater;
import a... |
package rhtn_homework;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.util.StringTokenizer;
public class BOJ_10827_a제곱b {
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
BufferedR... |
package com.example.flutterplugingg;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.BatteryManager;
import android.os.Build;
import androidx.annotation.NonNull;
import java.util.logging.StreamHandler;
import io.flutter.Log;
import io.flutter.embedding.engine.plugins.FlutterPl... |
package anngo.android.anngo.database;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import anngo.android.anngo.utils.CustomToast... |
package page;
public class Confirmation {
} // end class Confirmation
|
package com.tencent.xweb;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Build;
import android.os.Build.VERSION;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import org.xwalk.core.XWalkEnvironment;
public final class a {
... |
/*
* Copyright 2016 Johns Hopkins University
*
* 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 ... |
package sevenkyu.rounduptofive;
class RoundUpToFive {
public int roundToNext5(int number) {
double divisor = (double) number / 5;
double roundedUpDivisor = Math.ceil(divisor);
return (int) (5 * roundedUpDivisor);
}
}
|
package com.example.lib.event;
/**
* @Author jacky.peng
* @Date 2021/3/18 4:08 PM
* @Version 1.0
*/
public class PageOnDestroyEvent extends PageEvent {
public PageOnDestroyEvent(String name, String id) {
super(name, id);
tag = "PageOnDestroyEvent";
}
}
|
package game.numbers;
import static org.lwjgl.opengl.GL11.*;
import java.util.Random;
import org.lwjgl.LWJGLException;
import org.lwjgl.input.Keyboard;
import lib.game.*;
import math.geom.Point2i;
public class Numbers extends AbstractGame { //2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048
public static final int... |
public class ArrayList<T>{
public T value;
}
|
package com.tencent.mm.ui.contact;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.m;
import com.tencent.mm.ui.x;
public class AddressUI extends FragmentActivity {
public x tLY;
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
... |
/*
* 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 hr.softwarecity.osijek.utility;
import hr.softwarecity.osijek.model.Entry;
import hr.softwarecity.osijek.model.Node;
import hr... |
package control;
public class ModelAndView {
String path="";
boolean isRedirect;
ModelAndView(){
super();
}
ModelAndView(String path, boolean isRedirect){
super();
this.path=path;
this.isRedirect=isRedirect;
}
public String getPath() {
return path;
}
public void setPath(String path) ... |
package com.tangdi.production.mpnotice.dao;
import java.util.Map;
public interface PushAccessDao {
/**
* 根据平台进行查询
*
* @param platId
* @return
*/
public Map<String, Object> selectByPlatfrom(String platfrom);
/**
* 修改记录
*
* @param param
* @return
*/
public int updateEntit... |
package com.e6soft.core.mail;
import javax.mail.Address;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage;
import org.springframework.mail.javamail.JavaMailSenderImpl;
public class MailExecutor implements Runnable {
private JavaMailSenderImpl mailSender;
priv... |
package org.apache.hadoop.yarn.server.nodemanager;
import java.util.Set;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.yarn.api.records.ContainerId;
public interface CoresManager {
public void init(Configuration conf);
//called when allcoated container
public Set<Integer> allocateCores... |
package org.proyectofinal.gestorpacientes.modelo;
import java.util.List;
import org.hibernate.Query;
import org.proyectofinal.gestorpacientes.modelo.entidades.Medico;
import org.proyectofinal.gestorpacientes.modelo.entidades.Paciente;
public class ModeloMedico implements Modelo {
private static ModeloMedic... |
package com.tencent.mm.plugin.talkroom.model;
import com.tencent.mm.compatible.e.m;
public final class a {
public static final int ovJ;
private static int ovW;
static {
int zj = m.zj();
ovW = zj;
ovJ = (zj & 1024) != 0 ? 16000 : 8000;
}
}
|
package com.khmersolution.moduler.specification;
import com.khmersolution.moduler.domain.User;
import com.khmersolution.moduler.repository.UserRepository;
import lombok.extern.slf4j.Slf4j;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframewo... |
package cn.chenhuanming.controller;
import cn.chenhuanming.demo.DemoController;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by Administrator on 2017/3/20.
*/
@RestController
public class MainController {
@GetMapping("/m... |
public class Search {
//k번째로 큰 수 찾기 메소드
static int nth_element(int[] data, int n, int k) {
return nth_element(data, 0, n-1, k);
}
static int nth_element(int[] data, int s, int e, int k) {
int p = partition(data, s, e);
if(k<=p-s) return nth_element(data, s, p-1, k);
if(k==p-s+1) return data[p];
re... |
package com.company;
import java.util.*;
public class LSDRadixsort {
public static void main(String[] args)
{
Scanner scanner=new Scanner(System.in);
int n=scanner.nextInt();
scanner.nextLine();
String name[]=new String[n];
String auxname[]=new String[n];
for(int ... |
package mum.lesson5.problem4;
public class SalariedEmployee extends Employee{
private double weeklySal;
public SalariedEmployee(String fName, String lName, String ssn, double weeklySal) {
super(fName, lName, ssn);
this.weeklySal = weeklySal;
}
public double getWeeklySal() {
return weeklySal;
}
public void ... |
package org.maven.ide.eclipse.authentication;
public class AuthRegistryException
extends RuntimeException
{
private static final long serialVersionUID = -5478280761254370765L;
public AuthRegistryException( String message ) {
super( message );
}
public AuthRegistryException( E... |
package com.example.myfavoritemovie.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.bumpte... |
package edu.ivytech.anonclasses;
import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.ConstraintLayout;
import android.annotation.SuppressLint;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.util.L... |
package id.ac.ub.ptiik.papps.tasks;
import java.util.ArrayList;
import id.ac.ub.ptiik.papps.base.Matakuliah;
import id.ac.ub.ptiik.papps.interfaces.MatakuliahIndexInterface;
import id.ac.ub.ptiik.papps.parsers.MatakuliahListParser;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Handler... |
import GUI.BEGEOT_BUNOUF_GUI_Login;
import GUI.BEGEOT_BUNOUF_GUI_noConnexion;
import UsefulFunctions.BEGEOT_BUNOUF_Database_Connection;
import javax.swing.*;
/**
* Class main du projet
*
* @author Célia
*/
public class BEGEOT_BUNOUF_Main {
public static void main(String[] argv) throws ClassNotFoundException,... |
public class Main {
public static void main(String[] args) {
Parcel parcel = new Parcel();
parcel.id = 100;
System.out.println("id = " + parcel.id);
Parcel.Destination dest = parcel.new Destination();
dest.homeNumber = 10;
System.out.println("house = " + dest.homeN... |
/*
* KINGSTAR MEDIA SOLUTIONS Co.,LTD. Copyright c 2005-2013. All rights reserved.
*
* This source code is the property of KINGSTAR MEDIA SOLUTIONS LTD. It is intended
* only for the use of KINGSTAR MEDIA application development. Reengineering, reproduction
* arose from modification of the original source, or othe... |
/*
LeetCode Problem 876
Middle of the Linked List
Given a non-empty, singly linked list with head node head, return a middle node of linked list.
If there are two middle nodes, return the second middle node.
Example 1:
Input: [1,2,3,4,5]
Output: Node 3 from this list (Serialization: [3,4,5])
The returned node h... |
package com.perhab.napalm.statement;
import java.lang.reflect.Method;
import com.perhab.napalm.Result;
public interface Statement {
Result execute();
Method getMethod();
} |
package com.tencent.mm.g.a;
import com.tencent.mm.sdk.b.b;
public final class hj extends b {
public a bQG;
public b bQH;
public hj() {
this((byte) 0);
}
private hj(byte b) {
this.bQG = new a();
this.bQH = new b();
this.sFm = false;
this.bJX = null;
}
}... |
package bean;
public class Suggest {
private int u_id;
private String u_suggest;
public int getU_id() {
return u_id;
}
public void setU_id(int u_id) {
this.u_id = u_id;
}
public String getU_suggest() {
return u_suggest;
}
public void setU_suggest(String u_suggest) {
this.u_suggest = u_suggest;
}
pub... |
package ccri.neighborhood.exercise;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.Iterator;
import org.junit.jupiter.api.Test;
public class NeighborIteratorTest {
/**
* Verifies that a cell with a positive value within a 5x5 neighborhood returns the correct number
* of cells.... |
package finalProject;
import java.util.List;
import java.util.ArrayList;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class Simulation {
public static ThreadPoolExecutor pool;
s... |
package kh.picsell.advisers;
import javax.servlet.http.HttpSession;
import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.beans.factory.annotation.Autowired;
public class PerfAdviser {
@Autowired
private HttpSession session;
// public Object loginCheck(ProceedingJoinPoint pjp) {
// Object re... |
package com.lito.fupin.controller.adminPage;
import com.lito.fupin.business.user.IUserBusinessService;
import org.hibernate.validator.constraints.pl.REGON;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.spring... |
package org.tomat;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import static java.lang.String.format;
/**
* Created by Jose on 31/10/14.
*/
public class TomatVersion {
private final String versionFromStatic = "1.0-SNAPSHOT";
private final String version;
publi... |
package com.example.wesley.myweatherapp;
import android.content.AsyncTaskLoader;
import android.content.Context;
import java.util.List;
public class WeatherLoader extends AsyncTaskLoader<List<CityResults>> {
private String mURL;
public WeatherLoader(Context context, String url)
{
super(context)... |
class Solution {
public int findCircleNum(int[][] M) {
int[] parent = new int[M.length];
Arrays.setAll(parent, i -> i);
for(int i = 0; i < M.length; i++){
for(int j = 0; j < M[i].length; j++){
if(M[i][j] == 1){
union(i, j, parent);
... |
package com.tj.popularmovies;
import android.icu.text.DateFormat;
import android.icu.text.SimpleDateFormat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
import com.tj.popularmovies.R;
im... |
package com.tencent.mm.plugin.offline;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.mm.plugin.offline.h.1;
import com.tencent.mm.pluginsdk.wallet.h;
import com.tencent.mm.ui.MMActivity;
class h$1$2 implements OnClickListener {
final /* syntheti... |
package com.trainex.uis.main;
import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
i... |
package com.veveup.dao;
import com.veveup.domain.Message;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface MessageDao {
// @Select("select * from message order by date des... |
package com.filez.ldjsbridge.library;
import android.content.Context;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.gson.JsonPrimitive;
import java.io.BufferedReader;
import ja... |
package com.hakim.registration.logic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hakim.common.Utils.AES;
import com.hakim.registration.dao.DAO_REGI_02_00;
import com.hakim.registration.dto.DTO_REGI_02_00;
import com.hakim.registration.forms... |
package com.choryan.spannabletextpacket.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.text.Layout;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.StaticLayout;
import android.util.AttributeSet;
import a... |
package demo.plagdetect.calfeature;
import org.junit.Test;
import java.io.File;
public class TestTerminalExec {
TerminalExec terminalExec = new TerminalExec();
/**
* @Author duanding
* @Description testRunDiff
* @Date 4:04 PM 2019/9/9
* @Param []
* @return void
**/
@Test
... |
package cn.hjf.handyutils;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import jav... |
package NiuKe;
public class patrent {
private int a =0;
protected int b=1;
int c = 2;
}
|
package models;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
@Entity
@Table(name="role")
public class Role extends Model {
private static final long serialVersionUID = 3585034474308003857L;
@Column(name = "title")
private String title;
@ManyToMany(mappedBy = "roles")
... |
package behavioralPatterns.tamplatePattern.hookTamplate;
public class Hummer1 extends HummerMode{
private boolean alarmFlag = true;
@Override
protected void start() {
System.out.println("start");
}
@Override
protected void stop() {
System.out.println("stop");
}
@Overri... |
import java.util.*;
public class SortTest {
public static void main (String [] args) {
int [] testArray;
double selectionSeconds;
double sortSeconds;
int i;
testArray = new int [100000];
for (i = 0; i < testArray.length; i ++) {
testArray [i] = (int)(Math.random () * 10000);
}
selectionSecon... |
/*
* Copyright 2016 Johns Hopkins University
*
* 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 ... |
package mude.srl.ssc.service.resource;
import java.util.Calendar;
public class PolicyWrapper {
Integer minDay;
Integer maxDay;
Calendar minHour;
Calendar maxHour;
boolean daily;
public Integer getMinDay() {
return minDay;
}
public void setMinDay(Integer minDay) {
this.minDay = minDay;
}
p... |
package com.mahanthesh.africar.fragment;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import androi... |
package com.shsy.tubebaby.utils;
import android.os.Looper;
import android.widget.Toast;
import com.shsy.tubebaby.app.MyApplication;
/**
* 吐司
*/
public class ToastUtil {
public static void makeText(String text) {
Toast.makeText(MyApplication.getMyApplication(), text, Toast.LENGTH_SHORT).show();
}... |
/*
* Copyright (C) 2013 The Android Open Source Project
*
* 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 app... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.