text stringlengths 10 2.72M |
|---|
package DataStructures.arrays;
public class MaxProfit {
public static int maxProfit(int[] a) {
if (a == null || a.length == 0) return 0;
int maxProfit = 0;
for (int i = 1; i < a.length; i = i+2)
maxProfit = Math.max(maxProfit, maxProfit + (a[i] - a[i - 1]));
return ma... |
package ContactCreator;
public class Address {
private String streetName;
private int streetNumber;
private String city;
private String province;
private String postalCode;
private String country;
public Address(){};
public Address(String streetName, int streetNumber, String city, Stri... |
package com.meehoo.biz.core.basic.domain.security;
import com.meehoo.biz.core.basic.annotation.SetBySystem;
import com.meehoo.biz.core.basic.domain.IdEntity;
import com.meehoo.biz.core.basic.domain.TimeEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annota... |
package com.ytf.zk.constant;
/**
* Created by yutianfang
* DATE: 17/4/23星期日.
*/
public interface ClientBase {
int CONNECTION_TIMEOUT = 10000;
}
|
package com.mega.swipeit.UI;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import com.mega.swipeit.Adapter.FollowingListAdapter;
import com.mega.swipeit.databinding.ActivityFollowin... |
package com.siscom.dao.mapper;
import com.siscom.service.model.ItemVenda;
import com.siscom.service.model.Produto;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
public class ItemVendaRowMapper implements RowMapper<ItemVenda> {
@Override
public ItemV... |
package Models;
import java.awt.*;
import java.awt.print.*;
import static java.awt.print.Printable.NO_SUCH_PAGE;
import static java.awt.print.Printable.PAGE_EXISTS;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
public class ObjetoDeImpresionReparacion implemen... |
package TEST;
public class Singleton {
//static 객체 생성
private static int num;
private static Singleton singleton = new Singleton(); // private 는 이 클래스에서만 사용가능
private Singleton() {
}
static Singleton getInstance() {
return singleton;
}
void getNum(int a) {
this.num = a;
}
int gteNum() {
... |
/*
* Copyright 2002-2014 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.test.filters;// Created by on 14.10.2017.
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.io.IOException;
pub... |
package org.gtbank.rw.mvisa.service;
import java.util.List;
import org.gtbank.rw.mvisa.domain.MVisaUser;
public interface MVisaUserService {
public void saveMVisaUser(MVisaUser mVisaUser);
public MVisaUser getMVisaUser(int mVisaUser);
public void updateMVisaUser();
public List<MVisaUser> listMVisaUsers();
p... |
package com.luthfi.taxcalculator.common.calculator;
import com.luthfi.taxcalculator.common.model.Tax;
public class EntertainmentTaxCalculator implements TaxCalculator {
@Override
public Long calculate(Tax tax, Long price) {
System.out.println(" from EntertainmentTaxCalculator ");
return tax.ge... |
package ebay;
import java.io.*;
import java.io.FileInputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
public class loadimage
{
File image;
public File getImage()
{
return image;
}
public void setImage(File image)
{
this.image = ima... |
package com.zzping.fix.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* 提交报修表单Model
*/
public class FixFormModel extends BaseModel{
private String fixType;
... |
package ch06;
public class TicTacToe
{
private String[][] board;
private static final int ROWS = 3;
private static final int COLUMNS = 3;
public TicTacToe()
{
board = new String[ROWS][COLUMNS];
for (int i = 0; i < ROWS; i ++)
{
for (int j = 0; j < COLUMNS; j ++)
{
board[i][j] = "... |
package ankang.springcloud.homework.gateway;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.da... |
package com.product.entity;
import lombok.Data;
import java.util.Date;
/**
* 产品信息
* @author 陈舰
*/
@Data
public class Product {
/** 主键 */
private Integer id;
/** 产品编号 */
private String productNum;
/** 名称 */
private String productName;
/** 出发城市 */
private String cityName;
/** 出发时... |
package com.dongh.funplus.view.main;
import com.dongh.funplus.base.mvp.BaseModel;
import com.dongh.funplus.bean.LoginBean;
import com.dongh.funplus.bean.WeatherInfo;
import com.dongh.funplus.di.scope.ActivityScope;
import com.dongh.funplus.http.HostType;
import com.dongh.funplus.http.RetrofitHelper;
import com.dongh.f... |
package com.operacloud.pages;
import java.io.IOException;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.remote.RemoteWebDri... |
package com.karya.bean;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotEmpty;
public class TrialBalanceBean {
private int id;
@NotNull
@NotEmpty(message = "Please Enter Account.")
private String account;
@Min(value=1)
... |
package com.wuc.jetpackppjoke;
import android.app.Application;
import com.wuc.libnetwork.ApiService;
/**
* @author: wuchao
* @date: 2020-02-13 22:17
* @desciption: 皮皮虾项目在线Api文档地址:http://123.56.232.18:8080/serverdemo/swagger-ui.html#/
* * <p>
* * 同学们有需要的话,可以按照:https://git.imooc.com/Chubby/jetpack_ppjoke/src/mast... |
package payment.domain.repository;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper;
import lombok.NonNull;
import org.springframework.stereotype.Component;
import payment.domain.model.Payment;
/**
* @author claudioed on 26/06/17. Project docker-aws-devry
*/
@Component
public class PaymentReposi... |
import com.sun.tools.doclets.internal.toolkit.util.DocFinder;
/**
* Created by dobatake on 4/14/16.
*/
public class OutputWriterTest {
public static void main(String[] args) {
OutputWriter ow = new OutputWriter();
ow.initStore();
ow.constructHTML();
}
}
|
package org.edwith.webbe.securityexam.config;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer;
import org.springframework.web.servlet.config.annotation... |
package beehive.controller;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Vector;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse... |
import java.util.LinkedList;
/** NSdlst.java
*
* Author: Greg Choice c9311718@uon.edu.au
*
* Created:
* Updated: 28/09/2018
*
* Description:
* STNode sub-class for NSDLST rule
*
*/
public class NSdlst extends STNode
{
public NSdlst(LinkedList<Token> tokenList, SymbolTable table)
{
... |
package com.ex.musicdb.service.impl;
import com.ex.musicdb.model.entities.LikeEntity;
import com.ex.musicdb.repository.ArticleRepository;
import com.ex.musicdb.repository.LikeRepository;
import com.ex.musicdb.repository.UserRepository;
import com.ex.musicdb.service.LikeService;
import org.modelmapper.ModelMapper;
impo... |
package com.montran.main;
import java.util.Scanner;
import com.montran.pojo.Assignment1;
public class Assignment1_main {
public static void main(String[] args) {
Assignment1 assignment1 = new Assignment1();
Scanner scanner = new Scanner(System.in);
Assignment1 book = null;
book.input(01, "x... |
package cn.com.hzzc.industrial.pro;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
import android.app.AlertDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.view.LayoutInflater;
import... |
/**
* All rights Reserved, Designed By www.tydic.com
* @Title: ContentServiceImpl.java
* @Package com.taotao.service.impl
* @Description: TODO(用一句话描述该文件做什么)
* @author: axin
* @date: 2018年12月23日 下午9:57:08
* @version V1.0
* @Copyright: 2018 www.hao456.top Inc. All rights reserved... |
package leetCode.copy.Tree;
import leetCode.copy.common.TreeNode;
import java.util.ArrayDeque;
import java.util.Collection;
import java.util.Deque;
import java.util.Iterator;
/**
* 297. 二叉树的序列化与反序列化
*
* 序列化是将一个数据结构或者对象转换为连续的比特位的操作,进而可以将转换后的数据存储在一个文件或者内存中,同时也可以通过网络传输到另一个计算机环境,采取相反方式重构得到原数据。
*
* 请设计一个算法来实现二叉树的序列... |
package com.example.edvisor;
import java.io.Serializable;
import java.time.LocalDateTime;
public class Booking implements Serializable {
public int id;
public int expert_id;
public int customer_id;
public boolean current_status;
public String description;
LocalDateTime startTime;
LocalDate... |
package f.star.iota.milk.ui.more;
import android.content.Intent;
import android.net.Uri;
import android.os.SystemClock;
import android.support.v7.widget.SwitchCompat;
import android.view.View;
import android.widget.CompoundButton;
import butterknife.BindView;
import butterknife.OnClick;
import f.star.iota.milk.Net;
i... |
package com.disco;
import java.io.IOException;
import java.util.List;
import java.util.Random;
import java.util.Scanner;
import com.disco.dao.AlbumDao;
import com.disco.dao.AlbumDaoImpl;
import com.disco.dao.ArtistDao;
import com.disco.dao.ArtistDaoImpl;
import com.disco.dao.SacemDao;
import com.disco.dao.SacemDaoImp... |
package br.senac.rn.agenda.controller;
import br.senac.rn.agenda.model.Contato;
import br.senac.rn.agenda.services.ContatoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.an... |
import java.util.*;
import java.math.BigDecimal;
public class PriceSearch {
private boolean[] visited;
private BigDecimal price;
public ArrayList<String> routes;
public PriceSearch(Graph map, BigDecimal price) {
this.visited = new boolean[map.length + 1];
this.routes = new ArrayList<String>();
... |
package it.com.atlassian.bitbucket.jenkins.internal.trigger;
import com.atlassian.bitbucket.jenkins.internal.model.BitbucketUser;
import com.atlassian.bitbucket.jenkins.internal.trigger.BitbucketWebhookTriggerImpl;
import com.atlassian.bitbucket.jenkins.internal.trigger.BitbucketWebhookTriggerRequest;
import hudson.Fi... |
package com.role.game.manager;
import com.role.game.menu.interfaces.Battle;
import com.role.game.menu.interfaces.BattleConfirmation;
import com.role.game.menu.interfaces.GameExploration;
import com.role.game.menu.interfaces.StartMenu;
public class GameMenus {
private final StartMenu startMenu;
private final GameE... |
package org.unbapp;
public class Contact {
private String title;
private String numbers;
private int numOfNumbers;
private String separator= " \\| ";
public Contact(String title, String numbers){
super();
this.title = title;
this.numbers = numbers;
this.numOfNumbers = this.calculateNumOfNumb... |
package com.pettypal.domain;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.validation.constraints.Dig... |
package edu.gyaneshm.ebay_product_search.listeners;
public interface DataFetchingListener {
void dataSuccessFullyFetched();
}
|
package ru.vi.diskqueue;
import java.io.*;
import java.nio.ByteBuffer;
import java.nio.file.Files;
/**
* Unsafe
*
* User: arevkov
* Date: 3/18/13
* Time: 4:38 PM
*/
class ReadOnly implements Segment {
/** File with data */
private final File file;
/** Size of segment */
private final long size;
/*... |
package com.suntek.timesheet;
public class ViewMapping {
private int employeeSeq;
private String employeeName;
private String location;
public int getEmployeeSeq() {
return employeeSeq;
}
public void setEmployeeSeq(int employeeSeq) {
this.employeeSeq = employeeSeq;
}
public String getLocat... |
package com.innovaciones.reporte.model;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;
@Entity
@Table(name = "reclamos_garantias")
public class ReclamoGarantia implements Serializable {
private int id;
private String contacto;
private MotivoReclam... |
package kata1_ade;
import java.util.Calendar;
import java.util.GregorianCalendar;
public class Person {
private final String name;
private final Calendar birthdate;
public Person(String name, Calendar birthdate) {
this.name = name;
this.birthdate = birthdate;
}
publ... |
package com.dragonforest.demo.app_java;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import com.dragonforest.demo.app_java.util.PreUtil;
public class ThirdActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanc... |
package gen;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.Random;
import javax.imageio.ImageIO;
public class World {
/*
* Contains all data for a World from the Generator class
* Responsible for writing out a biome RGB image
*/
//FloatMa... |
// ASM: a very small and fast Java bytecode manipulation framework
// Copyright (c) 2000-2011 INRIA, France Telecom
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of ... |
package kr.or.ddit.vo;
public class MemberRateVO {
private String mem_id;
private String professional;
private String communication;
private String positiveness;
private String satisfaction;
private String compliance;
private String professional_bef;
private String communication_bef;
private String positivene... |
/*
* Copyright 2021 Vincenzo De Notaris
*
* 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 ag... |
package cn.edu.wust.common.constant;
/**
* @Author: huhan
* @Date: 2020/1/17 11:17
* @Description
* @Version 1.0
*/
public class OpType {
public OpType(){}
public static final String SELECT="查询";
public static final String INSERT="插入";
public static final String UPDATE="更新";
public static fin... |
package com.metoo.foundation.domain;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.Cache;
impo... |
package com.java.hibernate.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.MapsId;
import javax.persistence.OneToOne;
import javax.persistence.Table;
@Entity
@Table(name = "t_imagecontent")
public ... |
package com.fanseptember.define;
public enum AttitudeType {
AGREE, DISAGREE;
}
|
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
package ti.modules.titanium.stream;
import java.io.IOException;
import org.appc... |
package dao;
import model.bean.style.FontColor;
import org.hibernate.Session;
/**
*
* @author Andriy
*/
public class FontColorDAO extends DAO {
public FontColorDAO(Session session) {
super(session);
}
public FontColor insert(FontColor fontColor) {
session.save(... |
package jp.ne.test.dbconnector.dbutility;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
... |
/*
* 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.dthebus.gymweb.presentation.rest;
import com.dthebus.gymweb.domain.members.LimitedMember;
import com.dthebus.gym... |
package com.app.courseplan;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.TextView;
import a... |
/*
* This file is part of lambda, licensed under the MIT License.
*
* Copyright (c) 2018 KyoriPowered
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including w... |
package com.example.biblioteca.Adapters;
import android.app.Activity;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.biblioteca.Fragmentos.almacenamientoFragment;
i... |
package egovframework.svt.adm.prop.auto;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springfr... |
package com.practice.employeemanagement;
import java.util.List;
import com.practice.util.AbstractDao;
public class EmployeeManagementDao <T> extends AbstractDao <T> {
private static final String STATEMENT_FIND = "com.practice.employeemanagement.dto.EmployeeManagementDto.find";
private static final String S... |
package me.ewriter.rxgank.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
import me.ewriter.rxgank.api.entity.GankItem;
/**
* C... |
package br.com.cleitonkiper.hiperion.builders;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
import org.docx4j.openpackaging.exceptions.Docx4JE... |
package seleniumEj;
import java.io.File;
import java.nio.file.Paths;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
public class MetodosSelenium2 {
... |
package com.example.demo.controller;
import com.example.demo.model.Course;
import com.example.demo.model.User;
import com.example.demo.model.UserCourse;
import com.example.demo.repository.CourseRepository;
import com.example.demo.repository.UserCourseRepository;
import com.example.demo.repository.UserRepository;
impor... |
/*
* Copyright (C) 2015 Adrien Guille <adrien.guille@univ-lyon2.fr>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later vers... |
package com.example.projet_pm.presentation.vue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import com.example.projet_pm.R;
import java.util.List;
import com.example.projet_pm.presenta... |
package denoflionsx.DenPipes.AddOns.Forestry.net;
import cpw.mods.fml.common.network.PacketDispatcher;
import cpw.mods.fml.common.network.Player;
import denoflionsx.DenPipes.AddOns.Forestry.PluginForestryPipes;
import denoflionsx.DenPipes.AddOns.Forestry.gui.ContainerForestryPipe;
import java.io.ByteArrayInputStream;
... |
package com.example.canalu.ui.rutes;
import androidx.lifecycle.ViewModel;
public class RoutesViewModel extends ViewModel {
// TODO: Implement the ViewModel
}
|
package fr.trainningSql.model;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
public class Film {
private int film_id;
private String title;
private String description;
private Timestamp release_year;
private String film_category;
private String language;
private List<Acteur> lis... |
package pers.mine.scratchpad.other.zhihu;
import org.junit.Test;
public class P_27431652 {
@Test
public void test1() {
int i = 1;
int j = i++;
if ((i == (++j)) && ((i++) == j)) {
i += j;
}
System.out.println("i = " + i);// 5
}
@Test
public void test5() {
int x = 10;
double y = 20.2;
long z = ... |
package com.openfarmanager.android.model.exeptions;
import com.openfarmanager.android.App;
import com.openfarmanager.android.R;
import com.openfarmanager.android.core.network.smb.SmbAPI;
import com.yandex.disk.client.exceptions.DuplicateFolderException;
import com.yandex.disk.client.exceptions.IntermediateFolderNotExi... |
package com.test.commonlibrary;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
/**
* 积累
*/
public class BaseActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... |
package ee.eerikmagi.testtasks.arvato.invoice_system.logic;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.YearMonth;
import java.util.ArrayList;
import java.util.List;
import ee.eerikmagi.testtasks.arvato.invoice_system.model.Customer;
import ee.eerikmagi.testtasks.arvato.invoice_syste... |
package com.bankerguy.bankerguy;
import java.util.List;
/**
* Created by nevin on 11/12/2017.
*/
public class User {
private int userId;
private List<CourseProgress> courseProgressList;
}
|
package cn.test.demo02;
public class test {
public static void main(String[] args) {
int a = 5;
byte b = 98;
char d = 'a';
int c = a + b;
System.out.println(c);//byte自动转换为int
int z = d ;
System.out.println(z);//char自动换行为int
/*char cc = b;
... |
/*
* 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 hdfcraft;
import java.awt.*;
import java.io.File;
import java.io.IOException;
import j... |
package com.basket.interview;
public class BasketInterviewMain {
public static void main(String[] args) {
throw new UnsupportedOperationException("please implement");
}
}
|
package Hw.Tz;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
public class Beans implements SuperEncoder {
private static final long serialVersionUID = 1L;
private String name;
pub... |
package com.jic.libin.leaderus.study002;
import java.io.FileNotFoundException;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
/**
* Created by andylee on 16/12/5.
*/
public class BinLeeStudy00201 {
public static void... |
package eventtimeAndWaterMark;
import entity.WaterSensor;
import org.apache.flink.api.common.eventtime.*;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
... |
package com.sirma.itt.javacourse.inputoutput.task3.reverseTextFile;
import java.io.FileNotFoundException;
import org.apache.log4j.Logger;
import com.sirma.itt.javacourse.InputUtils;
import com.sirma.itt.javacourse.inputoutput.task2.consoleWritenFile.WriteFileFromConsole;
/**
* Class that runs the file reverser.
*... |
/**
* Project: PipelineFramework
* Package: org.sjsu.sidmishraw.examples.garbageband.core
* File: DigitalComposer.java
*
* @author sidmishraw
* Last modified: Apr 12, 2017 1:04:37 PM
*/
package org.sjsu.sidmishraw.examples.garbageband.core;
import java.util.Random;
import org.sjsu.sidmishraw.framework... |
package com.mibo.common.config;
import com.alibaba.druid.wall.WallFilter;
import com.jfinal.config.Constants;
import com.jfinal.config.Handlers;
import com.jfinal.config.Interceptors;
import com.jfinal.config.JFinalConfig;
import com.jfinal.config.Plugins;
import com.jfinal.config.Routes;
import com.jfinal.ext.handler... |
package com.develop.xdk.xl.nfc.attendacemachinergata.http.controller;
import android.content.Context;
import android.util.Log;
import com.develop.xdk.xl.nfc.attendacemachinergata.MyService.myService;
import com.develop.xdk.xl.nfc.attendacemachinergata.constant.C;
import com.develop.xdk.xl.nfc.attendacemachinergata.en... |
/**
* --------------------------------------------------------------------------------------------------------------------
* <copyright company="Aspose Pty Ltd" file="SignImageOptions.java">
* Copyright (c) 2003-2023 Aspose Pty Ltd
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to a... |
package org.softRoad.models;
import org.softRoad.models.query.QueryUtils;
import javax.persistence.Table;
@Table(name = "consultant_profile_tag")
public class ConsultantProfileTag {
public final static String CONSULTANT_ID = "consultant_id";
public final static String TAG_ID = "tag_id";
public static S... |
/*
* Copyright 2002-2018 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... |
/*
* 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.pmm.sdgc.model;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Objects;
import javax.persis... |
package heylichen.alg.graph.structure.weighted.mst;
import heylichen.alg.graph.structure.weighted.WeightedEdge;
/**
* @author lichen
* @date 2020/4/8 15:41
* @desc
*/
public interface MST {
Iterable<WeightedEdge> edges();
double weight();
}
|
package com.ctt.web.service;
import com.ctt.constant.UserStatusEnum;
import com.ctt.mapper.UserMapper;
import com.ctt.response.WebResBean;
import com.ctt.utils.EncryptUtil;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Service;
import org.springframework.web.HttpRequestMethodNotSupporte... |
package kr.co.people_gram.app;
/**
* Created by 광희 on 2015-10-02.
*/
public class PeopleData {
static String people_uid = "";
static String people_mood = "";
static String people_type = "";
static String people_username = "";
static String people_gubun1 = "";
static String people_gubun2 = "";... |
package br.edu.fsma.fiscalizacao.main.repository;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import br.edu.fsma.fiscalizacao.main.model.Bairro;
import br.edu.fsma.fiscalizacao.main.model.Municipio;
public interface BairroRepository extends JpaRepository<Bairro, String>{
... |
package david.socket_communication_rpi;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Color... |
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.layout.AnchorPane;
import javaf... |
package com.example.shivani.shivani;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.squareup... |
package com.huawei.myhealth.java.database.entity;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.DiffUtil;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import java.util.Objects;
/**
* @author Huawei DTSE India
* @since 2020
*/
@Entity(tabl... |
package com.karya.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="purorditemreceive001mb")
public c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.