text stringlengths 10 2.72M |
|---|
package com.days.moment.qna.service;
import com.days.moment.qna.mapper.QnaTimeMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
@Log4j2
@Service
@RequiredArgsConstructor
public class QnaTimeServiceImpl implements QnaTimeService{
priva... |
package production.dao;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import production.entity.Locatio... |
/*
* 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 Praktikum.src;
public class BukuNovel extends Buku {
private String kategori;
private int halaman;
public void setKategori(String newValue) {
kategori = newValue;
}
public void setHalaman(int newValue) {
halaman = newValue;
}
public int tambahHalaman(int newValue) {
halaman += newV... |
package com.bookstore.users;
import com.bookstore.LoggedInUserData;
public class User {
private String name = "Undefined";
private String password;
private String username;
private boolean isAdmin = false;
public User(){}
public User(String username, String password) {
this.username... |
package com.noname.setalarm.repository;
import com.noname.setalarm.model.ClockModel;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import java.util.List;
@Dao
public interfa... |
package week2.day2homework;
import org.openqa.selenium.chrome.ChromeDriver;
public class Editlead {
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome.driver","./Drivers/chromedriver.exe");
ChromeDriver driver=new ChromeDriver();
driver.get("http... |
package com.meridal.examples.recordcollection.domain;
public class SearchResult extends Entry {
private String title;
public SearchResult() {
super();
}
public SearchResult(final Integer id, final String title) {
super(id);
this.setTitle(title);
}
public String getTitle() {
return title;
}
public ... |
package controller;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import model.Model;
import view.Application;
public class IncrementController implements ActionListener {
Model model;
Application application;
public IncrementController(Model model, Application application) {
this... |
/*
* LumaQQ - Java QQ Client
*
* Copyright (C) 2004 luma <stubma@163.com>
*
* 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 2 of the License, or
* (at your option) any lat... |
package com.mybatis.interceptor.aspect;
import com.mybatis.interceptor.abstracts.BaseAspectAbstract;
import com.mybatis.interceptor.annotation.GroupBy;
import com.mybatis.interceptor.filterinterceptor.SQLLanguage;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.anno... |
package com.yy.lite.brpc.interceptor;
import com.baidu.brpc.interceptor.AbstractInterceptor;
import com.baidu.brpc.interceptor.InterceptorChain;
import com.baidu.brpc.protocol.Request;
import com.baidu.brpc.protocol.Response;
import com.yy.sv.base.util.MetricsClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFact... |
package com.huawei.esdk.demo.autogen;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
/**
* This class was generated by Apache CXF 2.6.1
* 2014-04-29T10:32:46.546+08:00
* ... |
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;
public class Foo {
@Test
public void bar() {
assertThat(2 + 3).isEqualTo(5);
}
}
|
package category.dfs;
public class SudokuSolver2 {
public static void main(String[] args) {
SudokuSolver2 solver = new SudokuSolver2();
solver.solveSudoku(new char[][]{
{'1', '2', '3', '4', '5', '6', '7', '8', '9', },
{'9', '.', '5', '.', '2', '.', '.', '.', '.', },
{'6', '.', '4', '.', '1... |
package com.tencent.mm.plugin.game.gamewebview.a;
import com.tencent.mm.plugin.game.gamewebview.jsapi.biz.aq;
import com.tencent.mm.plugin.game.gamewebview.jsapi.biz.f;
import java.util.HashMap;
import java.util.Map;
public final class b {
private static final Map<String, Integer> jGa;
static {
Map h... |
package yujia.xiangsheng;
import yujia.model.StreamingMediaPlayer;
import yujia.model.Works;
import yujia.util.Logger;
import yujia.util.MyStringUtil;
import yujia.util.MyUtil;
import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.ImageButton;
import android.widget.... |
import java.util.Scanner;
public class palindromePermutation266 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("input the String: ");
String inputStr = input.nextLine();
if(palindromePermutation( inputStr))
System.out.println("it is palandrome");
el... |
package jdbcapplication;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Scanner;
public class InserExample {
public static void main(String[] args) throws C... |
package com.goldgov.gtiles.core.module;
import com.goldgov.gtiles.core.module.infofield.Version;
public class RemoteModuleImpl implements RemoteModule{
private static final long serialVersionUID = 4766204416065832161L;
private ModuleDescription description;
private String hostName;
public RemoteModule... |
package com.zoho;
import java.io.*;
import javax.servlet.http.*;
import org.apache.struts.action.*;
import org.apache.struts.actions.*;
import java.util.*;
import java.sql.*;
public class EnrollHandler{
String username,mailid,phone;
public String enrollmail(String username,String mailid){
try {
Strin... |
package com.jim.multipos.ui.inventory.fragments;
import com.jim.multipos.config.scope.PerFragment;
import com.jim.multipos.ui.inventory.presenter.InventoryPresenter;
import com.jim.multipos.ui.inventory.presenter.InventoryPresenterImpl;
import dagger.Binds;
import dagger.Module;
/**
* Created by developer on 09.11.... |
package Model.proc;
public class TestTreeCell{
// public static void main(String[]args){
//
// TreeCell left = new TreeCell(new FrameProcessMap("alt1"),new FrameProcess("alt"));
// TreeCell right = new TreeCell(new FrameProcessMap("alt1"));
// TreeCell cell = new TreeCell(new FrameProcessMap("loop"),left,right);
//... |
/*
* Copyright (c) 2016 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 agreed to... |
package Tasks.LessonSix.Converters;
public class Call {
public static void main(String[] args) {
CelsiusKelvin celsiusKelvin = new CelsiusKelvin(0);
System.out.println(celsiusKelvin.convert());
CelsiusFahrenheit celsiusFahrenheit = new CelsiusFahrenheit(0);
System.out.println(celsi... |
package com.itheima.ssm.controller;
import com.itheima.ssm.domain.Permission;
import com.itheima.ssm.domain.Role;
import com.itheima.ssm.domain.UserInfo;
import com.itheima.ssm.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Contro... |
/*
* 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 pe.gob.onpe.adan.controller.main;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.JsonP... |
package org.seasar.silverlight.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.Htt... |
package sample;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.ImageView;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
public class Main extends Application... |
package com.example.Careplus.Statistics;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.Progre... |
package micro.auth.controllers;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
imp... |
package cn.wolfcode.crm.service.impl;
import cn.wolfcode.crm.domain.Customer;
import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.mapper.CustomerMapper;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.service.ICustomerService;
import cn.wolfcode.crm.util.UserContext;
import com.github.pageh... |
package oop02.encapsule;
import java.security.InvalidParameterException;
public class NumberMatchService {
public void doService(int userInput) throws Exception{
if( !(userInput >= 1 && userInput <= 3))
throw new InvalidParameterException();
NumberMatchVO vo = new NumberMatchVO();
vo.setUs... |
package eu.rethink.globalregistry.util;
import io.jsonwebtoken.impl.Base64Codec;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import java.security.*;
import java.security.spec.ECGenParameterSpec;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.PKCS8EncodedKeySpec;
import jav... |
package com.test.myapplication.viewmodels;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;
import com.test.myapplication.repositories.TrendingRepositoryRepo;
import com.test.myapplication.rest.responses.RepositoryResponse;
/**
* Created by Surendra Singh on 2/27/2020.
* Created for Pitney ... |
/*
* Copyright (C) 2019-2023 Hedera Hashgraph, LLC
*
* 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 applicab... |
package com.example.edwin.traveling.System.System;
/**
* Created by Edwin on 2017-09-15.
*/
import android.util.Log;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.parser.Parser;
import org.jsoup.select.Elements;
import java.io.IOException;
import java.util.ArrayList;
/**
* Created by... |
package ui;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
// represents the menu screens that can be drawn in the game
public class Menu extends MouseAdapter {
private static DeadAhead game;
public static final int BUTTON_X = 5 * game.WIDTH / 14;
public static final int PLAY_BU... |
package jour06;
import java.util.Scanner;
public class Odev1UcunKatiYazdirmak {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Lutfen bir tamsayi giriniz");
int num1 = scan.nextInt();
if(num1%3==0) {
System.out.println("3un kati");
}
if... |
package org.metaborg.sunshine.command.local;
import org.metaborg.core.MetaborgException;
import org.metaborg.core.action.IActionService;
import org.metaborg.core.build.dependency.IDependencyService;
import org.metaborg.core.build.paths.ILanguagePathService;
import org.metaborg.core.language.ILanguageComponent;
import ... |
package negocios;
import beans.MateriaPrima;
import dados.IRepositorioMateriaPrima;
import exceptions.MateriaPrimaJaExisteException;
import exceptions.MateriaPrimaNaoExisteException;
public class ControladorMateriaPrimas {
IRepositorioMateriaPrima repositorio;
public ControladorMateriaPrimas(IRepositorioMateriaP... |
package com.anywaycloud.test.common.fastdfs;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import org.csource.common.MyException;
import org.csource.common.NameValuePair;
import org.csource.fastdfs... |
package cn.hui.javapro.list.arraylist;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Queue;
public class BaseArrayList{
public static void add(){
Queue q = new LinkedList();
... |
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
public class MigrationModel extends Model {
//detectCollisions() will contain the logic that det... |
package org.wuqinghua.communicate;
import org.wuqinghua.thread.ObjectLock;
import java.util.LinkedList;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Created by wuqinghua on 18/2/11.
*/
public class MyQueue<T> {
//1.需要一个承装元素的集合
private final LinkedList<T> list = new LinkedList<>();
//2.需要一个... |
package com.mx.profuturo.bolsa.util.exception.custom;
/**
* Created by Luis Miguel Romero on 01/05/2017.
*/
public class AuthenticationException extends GenericStatusException {
public AuthenticationException() {
super();
}
public AuthenticationException(Exception e) {
super(e);
}
... |
package com.example.administrator.hyxdmvp.ui.presenter.forgetpassword;
public class ForGetPassWordPresenter {
}
|
package ru.figures.model;
public class Polygon extends AbstractClosedFigure implements CorrectFigure{
private int numberOfSides;
private double length;
final int[] arr;
public Polygon(int numberOfSides, int length) {
arr = new int[10];
this.numberOfSides = numberOfSides;
this.... |
package hugo;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;
public class MapPanel extends JPanel {
DataStore ds;
ControlUI cui;
public MapPanel(DataStore ds) {
this.ds = ds;
}
protected void paintComponent(Graphics g) {
super.paintComponen... |
package com.example.supplico_login;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class home extends AppCompatActivity {
TextView withcard,withoutcard,logt;
@Override
protected void on... |
package cn.izouxiang.rpc.service.api;
import cn.izouxiang.domain.Member;
import cn.izouxiang.rpc.service.api.base.BaseService;
public interface MemberService extends BaseService<Member> {
Member addMember(Member member);
Member findByUsernameOrPhoneOrMail(String str);
}
|
package com.gridnine.testing;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
public class Main {
public static void main(String[] args) {
List<Flight> flightList = FlightBuilder.createFlights();
List<Flight> filteredList1 = new Fli... |
package com.tencent.mm.pluginsdk.ui.tools;
import com.tencent.mm.plugin.appbrand.jsapi.appdownload.JsApiPauseDownloadTask;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
final class q {
static Pattern qUr = Pattern.compile("(?:(http|https|file)\\:\\/\\/)?(?:([-A-Za-z0-9$_.+!*'(),;?&=]+(?:\\:[-A-Z... |
package javax.swing;
import java.util.HashMap;
public class ActionMap {
private HashMap<String, Action> map = new HashMap<>();
public ActionMap() {}
public void put(String key, Action value) {
map.put(key, value);
}
public Action get(String key) {
return map.get(key);
}
}
|
package br.eti.ns.nssuite.requisicoes.nfe;
import br.eti.ns.nssuite.requisicoes._genericos.ListarNSNRecReq;
public class ListarNSNRecReqNFe extends ListarNSNRecReq {
public String chNFe;
}
|
/*
3. Создать класс Teacher (Преподаватель), имеющий поля “Имя”, “Предмет”.
Создать класс Student (Студент) с полем “Имя”.
Каждый класс имеет конструктор (с параметрами), set и get методы по необходимости,
а также у преподавателя есть метод evaluate (оценить студента), принимающий в качестве
аргумента студента, и ... |
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.util.*;
import java.util.stream.Collectors;
public class IntermediateService extends java.rmi.server.UnicastRemoteObject implements IntermediateServiceInterface {
public static final int DELAY = 100;
private String name;
private Map<Inte... |
package com.tencent.mm.plugin.game.gamewebview.jsapi.biz;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.tencent.mm.g.a.gl;
import com.tencent.mm.plugin.game.gamewebview.ipc.GWMainProcessTask;
import com.tencent.mm.plugin.game.gamewebview.ipc.GameWebViewMainProcessService;
import com.tencen... |
package com.perfectorial.controller;
import com.perfectorial.entity.Category;
import com.perfectorial.logic.CategoryLogic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author Reza Safarpour (rsafarpour1991@gmail.com) o... |
import javax.swing.*;
public class Alient extends Fly implements Constans, Runnable {
Bomb bomb;
private int dis = -1;
public Alient(){
}
public Alient(int x, int y){
this.x = x;
this.y = y;
ImageIcon ic = new ImageIcon("DrawImage/alien.png");
this.setImage(ic.getI... |
package com.tencent.mm.plugin.appbrand;
import com.tencent.mm.plugin.appbrand.r.i.a;
import com.tencent.mm.sdk.platformtools.x;
class c$1 implements a {
final /* synthetic */ String fbS;
final /* synthetic */ c fbT;
c$1(c cVar, String str) {
this.fbT = cVar;
this.fbS = str;
}
pub... |
package mono.com.facebook.drawee.gestures;
public class GestureDetector_ClickListenerImplementor
extends java.lang.Object
implements
mono.android.IGCUserPeer,
com.facebook.drawee.gestures.GestureDetector.ClickListener
{
/** @hide */
public static final String __md_methods;
static {
__md_methods =
"n_onC... |
package problem_solve.dfs.maze_solve;
public class MazeSolver {
private int rowSize;
private int colSize;
private int[][] maze;
MazeSolver(int[][] maze){
this.maze = maze;
rowSize = maze.length;
colSize = maze[0].length;
}
public void dfs(int row, int col){
if(... |
package br.com.senior.varejo.pedidos;
import org.springframework.beans.factory.annotation.Autowired;
import br.com.senior.messaging.model.HandlerImpl;
@HandlerImpl
public class ObterUrlUploadFotoImpl implements ObterUrlUploadFoto {
@Autowired
ClienteFotoService clienteFotoService;
@Override
public ... |
/* */ package com.ketonix.ketonixpro;
/* */
/* */ import java.io.PrintStream;
/* */ import java.util.Map;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class BootKetonix
/* */ {
/* */ public BootKetonix() {}
/* */
/* */ public static void startKSync()
/* ... |
package ru.otus.homework.services;
import org.junit.jupiter.api.*;
import ru.otus.homework.models.Author;
import ru.otus.homework.repository.AuthorRepositoryJpa;
import ru.otus.outside.db.JpaDedicatedEntityManagerTest;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.List;
import static or... |
package com.mega.mvc14;
import java.util.List;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
//기능하나당 public 하나
// dao는 무조건 싱글톤으로 만들어주어야 한다
@Repository // 싱글톤으로 만들어준다 싱글톤을 만들어줄 객체가 아니면 어노테이샨 달면 않는다
publi... |
package com.spizzyrichlife.ussrpg_v01;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.view.View;
import android.widget.ListView;
import com.spizzyrichlife.ussrpg_v01.Activities.CharacterCreationActivity;
import com.spizzyrichlife.ussrpg_v01.Activit... |
package Flags;
import javafx.scene.Node;
public abstract class Flag {
public String getName() { return "";
}
public abstract Node renderFlag();
} |
// store m in n, from bit i to j
// for i = 2, j = 4
//create mask 1100011
class Solution {
public int insert(int m, int n, int i, int j) {
}
}
|
package com.example.karol.wildboartraining;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class ShowPlanActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.... |
/*
* 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 quotationsoftware;
import java.io.InputStream;
import java.util.Locale;
import java.util.Properties;
import java.uti... |
package com.ssgl.controller;
/*
* 功能:
* User: jiajunkang
* email:jiajunkang@outlook.com
* Date: 2018/1/16 0016
* Time: 21:00
*/
import com.alibaba.fastjson.JSONObject;
import com.ssgl.bean.Page;
import com.ssgl.bean.Result;
import com.ssgl.bean.TUser;
import com.ssgl.service.UserService;
import com.ssgl.util.Fil... |
package wx.realware.grp.pt.pb.common.avlid.group;
/**
* 更新数据Gourp
* ahthod lfq
* date 20180808
*/
public interface UpdateGroup {
}
|
package zm.gov.moh.common.submodule.form.model;
import java.io.Serializable;
public class Condition implements Serializable {
private Object value;
//Add expression object
private Expression expression;
private String dataType;
public Object getValue() {
return value;
}
public v... |
package BottomUp;
public class BottomUp {
public static void sort(Comparable[] elements) {
Comparable[] aux = new Comparable[elements.length];
for (int size = 1; size < elements.length; size *= 2) {
for (int low = 0;... |
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import com.model.ImageData;
public class UplaodDAO {
public static int uploadImage(String recordId,String imagename){
//ImageData patient = new ImageData();
int status... |
package com.example.demo.dao;
import com.example.demo.entity.SysPermission;
import com.example.demo.mapper.IMapper;
public interface SysPermissionMapper extends IMapper<SysPermission> {
} |
package com.hladkevych.menu.service;
import com.hladkevych.menu.dto.DietDTO;
import com.hladkevych.menu.dto.JsonDietParser;
import java.io.File;
import java.io.IOException;
import java.util.List;
/**
* Created by ggladko97 on 04.02.18.
*/
public class DietServiceImpl {
public List<DietDTO> listDiets() {
List<... |
package com.example.sqllite_example;
public final class ContactContract {
private ContactContract(){ }
public static class ContactEntry
{
public static final String TABLE_NAME = "contact_info";
public static final String CONTACT_ID="contact_id";
public static final String ... |
package com.etech.testproject.ui.activity.Notification;
import android.os.Bundle;
import android.view.View;
import androidx.databinding.DataBindingUtil;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import com.etech.testproject.R;
import com.etech.testproject.data.model.Lecture;
import com.etech.test... |
/*
* This class is auto generated by https://github.com/hauner/openapi-processor-spring.
* DO NOT EDIT.
*/
package generated.model;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Props {
@JsonProperty("prop1")
private String prop1;
@JsonProperty("prop2")
private String prop2;... |
package com.tencent.mm.protocal;
public class c$fg extends c$g {
public c$fg() {
super("openProductView", "open_product_view", 59, true);
}
}
|
package com.tencent.mm.g.a;
public final class mi$b {
public boolean bXc = false;
public String bXd;
public String bXe;
public String bXf;
public String bXg;
public String bXh;
public String bXi;
public String bXj;
public int errCode = 0;
public String userName;
}
|
package jdk8;
import java.util.Arrays;
import java.util.Comparator;
/**
* @author yinchao
* @date 2020/9/24 13:45
*/
class Solution {
public int scheduleCourse(int[][] courses) {
int time = 0;
int num = 0;
Arrays.sort(courses, Comparator.comparingInt(o->o[1]-o[0]));
Arrays.sort(... |
package org.milvus.util;
import java.util.List;
/**
* TODO: remove. No longer used.
*/
public interface SortedList<T extends Comparable<T>> extends List<T>{
int insert(T element);
}
|
package customer.gajamove.com.gajamove_customer.models;
import java.util.ArrayList;
/**
* Created by PC-GetRanked on 9/4/2018.
*/
public class Ride extends BaseModel {
public Ride() {
}
private String order_id="",pickup_loc,destination_loc;
private RideStatus rideStatus;
priv... |
package com.drzewo97.ballotbox.panel.controller.election; |
class MyQueue<E> {
private LinkedList<E> list = new LinkedList<E>();
// Time complexity: O(1)
public void enqueue(E item) {
list.addLast(item);
}
// Time complexity: O(1)
public E dequeue() {
return list.poll();
}
public E peek() {
return list.get(0);
}
public int size() {
r... |
/**
*
* @author Derfel Terciano
* @version 1
*/
public abstract class ThreeDShape {
private double volume;
private double surfaceArea;
public ThreeDShape() {
//TODO ask why this constructor doesn't work
volume = calcVolume();
surfaceArea = calcSA();
}
// Can you write this code for this class or does ... |
package com.tencent.mm.plugin.wallet_core.ui;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.plugin.wallet_core.model.Bankcard;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.wallet_cor... |
package com.shopify.admin.statis;
import java.sql.Date;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class AdminStatisMakeData {
private String crontab;
private String nowDate;
private String masterCode;
private Stri... |
/*
* LumaQQ - Java QQ Client
*
* Copyright (C) 2004 luma <stubma@163.com>
*
* 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 2 of the License, or
* (at your option) any lat... |
package paxos2;
import pro.eddiecache.CacheKit;
import pro.eddiecache.access.CacheKitAccess;
public class Paxos2Test
{
public static void main(String[] args) throws InterruptedException
{
CacheKit.setConfigFilename("/paxos2/cachekit.xml");
CacheKitAccess cacheKitAccess = CacheKit.getInstance("default");
//m... |
/*
* 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 PackageJavaFX;
/**
*
* @author LABORATORIO_INFO
*/
public class TestaAutenticacao {
public static void main(String[] ar... |
import java.awt.Color;
import biuoop.DrawSurface;
/**
* Created by user on 12/05/2017.
*/
public class GameLevel implements Animation {
private SpriteCollection sprites = new SpriteCollection();
private GameEnvironment environment = new GameEnvironment();
private biuoop.KeyboardSensor keyboard;
... |
package com.cloudera.CachingTest;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
exte... |
package com.timmy.other;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.timmy.R;
import com.timmy.advance.animation.AnimationActivity;
import com.timmy.base.BaseActivity;
import com.timmy.highUI.dialog.DialogActivity;
import com.timmy.technologypoint.AutoPlayPicturesActiv... |
package OOPS;
public class Blocks {
static {
System.out.println("Static block is executed");
}
{
System.out.println("non static block is executed ");
}
public Blocks() {
System.out.println("Constructor is executed");
}
{
System.out.println("non static block is validated ");
}
public void m1() {
... |
public class AdvancedParticleSystems extends BaseGameActivity {
//====================================================
// CONSTANTS
//====================================================
public static final int WIDTH = 800;
public static final int HEIGHT = 480;
public static final float HEIGHT_OFFSET = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.