id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
d6d685c9-666b-4b32-bab7-c8de2b9e47c9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-06-09 10:38:12", "repo_name": "codecats-old/Kalkulus", "sub_path": "/src/kalkulus/OperatorBase.java", "file_name": "OperatorBase.java", "file_ext": "java", "file_size_in_byte": 894, "line_count": 41, "lang": "en"... | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package kalkulus;
/**
*
* @author t
*/
public abstract class OperatorBase extends Token{
public OperatorBase(int prec){
super();
precedence=prec;
associativity=Associativity.Left;
}
... |
32f1fad9-84ce-446f-9c86-bdeee39a1e55 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-13 08:18:03", "repo_name": "Kegnomics/annotation-service", "sub_path": "/src/main/java/com/dandrona/vcfwrapper/VcfwrapperApplication.java", "file_name": "VcfwrapperApplication.java", "file_ext": "java", "file_... | package com.dandrona.vcfwrapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.concurrent.Thr... |
07dbcb64-588e-47e5-aad2-d37cf161ce22 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-04 07:31:38", "repo_name": "GuenSangLee/Community", "sub_path": "/src/main/java/com/ktds/interceptors/SessionInterceptor.java", "file_name": "SessionInterceptor.java", "file_ext": "java", "file_size_in_byte": ... | package com.ktds.interceptors;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import com.ktds.member.constants.Member;
public class Session... |
6bd7c777-98f0-4a78-a62f-8661171b3091 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-03 08:50:48", "repo_name": "Cristi0/Java_client-server", "sub_path": "/src/main/java/pizzax/Tema3.java", "file_name": "Tema3.java", "file_ext": "java", "file_size_in_byte": 894, "line_count": 26, "lang": "en",... | package pizzax;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import pizzax.Pizza;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Socket;
public class Tema3 {
public s... |
9ffef927-bd9e-4cdf-acd9-3694d197c912 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-17 11:54:47", "repo_name": "danielBCN/event-store", "sub_path": "/client/src/main/java/org/infinispan/creson/AtomicCounter.java", "file_name": "AtomicCounter.java", "file_ext": "java", "file_size_in_byte": 894... | package org.infinispan.creson;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class AtomicCounter implements Comparable<AtomicCounter> {
@Id
public String name;
public int count;
public AtomicCounter(){}
public AtomicCounter(String name, int value){
this.na... |
ac4cff7f-64e2-41d7-a2db-b49a8d56fd74 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-04-16T19:47:16", "repo_name": "fjjason/JSON-database-local", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 895, "line_count": 33, "lang": "en", "doc_type": "text",... | # JSON-database-local
Java program that creates SQL-like file that is for storing JSON objects on local machine. Program takes STDIN from user input then output to a file that acts as database. Supports add()/get()/delete() functions.
TECHNOLOGIES: Google's GSON library, JSON, Java
USAGE:
1. Download gson jar file... |
aa1ae060-09f3-4d2d-a9a6-37ddd27bfcfd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-24 08:53:52", "repo_name": "softsquared-sky/oda-logan", "sub_path": "/project_oda/app/src/main/java/my/project/project_oda/config/XAccessTokenInterceptor.java", "file_name": "XAccessTokenInterceptor.java", "fi... | package my.project.project_oda.config;
import android.util.Log;
import androidx.annotation.NonNull;
import java.io.IOException;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
import static my.project.project_oda.src.ApplicationClass.X_ACCESS_TOKEN;
import static my.project.project_oda.sr... |
21372fee-c7e0-4ba1-a0c8-06ae96168604 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-30 01:32:58", "repo_name": "jps5775/DataStructures-Algorithms", "sub_path": "/InterviewPrep/src/DesignPatterns/StrategyPatternWithDucks/Duck.java", "file_name": "Duck.java", "file_ext": "java", "file_size_in_b... | package DesignPatterns.StrategyPatternWithDucks;
public class Duck {
protected String name;
protected Flyable flyType;
public Duck(String name, Flyable flyType){
this.name = name;
this.flyType = flyType;
}
public void quack(){
System.out.println("Quack Quack!");
}
public String displayName(){
ret... |
ebbe32c8-0897-4bef-9aa0-2acd510e42f6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-28 06:44:40", "repo_name": "venkatesh-naik/waterProject", "sub_path": "/src/com/xworkz/proj/dao/impl/WaterTankDaoImpl.java", "file_name": "WaterTankDaoImpl.java", "file_ext": "java", "file_size_in_byte": 894, ... | package com.xworkz.proj.dao.impl;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.stereotype.Repository;
import com.xworkz.proj.dao.WaterTankDao;
import com.xworkz.proj.entity.waterTankEntity;
import lombok.Setter;
@Repository
@S... |
1af68943-0344-4a65-a99b-3a2e51e5829d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-26 02:16:28", "repo_name": "Sirivulb1/Mobile", "sub_path": "/Dragdrop.java", "file_name": "Dragdrop.java", "file_ext": "java", "file_size_in_byte": 894, "line_count": 31, "lang": "en", "doc_type": "code", "blo... | package Peoj2;
import java.net.MalformedURLException;
import java.util.concurrent.TimeUnit;
import org.testng.annotations.Test;
import io.appium.java_client.TouchAction;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;
@Test
public class Dragdrop extends Base{... |
f572db8a-c738-4fa3-b72f-70a2c8b1c1c0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-18 09:54:28", "repo_name": "thomasbuo/simuBally", "sub_path": "/src/fancySimulation/Vector2D.java", "file_name": "Vector2D.java", "file_ext": "java", "file_size_in_byte": 894, "line_count": 63, "lang": "en", "... | package fancySimulation;
/**
* Created by sandersalahmadibapost on 26/09/2018.
*/
public class Vector2D {
private double x;
private double y;
private double magnitude;
public Vector2D(double x, double y){
this.x = x;
this.y = y;
this.magnitude = Math.sqrt(Math.pow(x,2)+Mat... |
83489750-a65b-4e4c-af4b-a464e36bd24c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-07-23 06:14:13", "repo_name": "leebeckman/DICE", "sub_path": "/aspect/ajTracker/src/datamanagement/DataBaseSourceInfo.java", "file_name": "DataBaseSourceInfo.java", "file_ext": "java", "file_size_in_byte": 894, "... | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package datamanagement;
import java.util.LinkedList;
/**
*
* @author lee
*/
public class DataBaseSourceInfo implements DataSourceInfo {
private String catalog;
private String table;
private String colu... |
c0808e4a-fdb9-46b8-a22d-c658482b6858 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-01 18:58:41", "repo_name": "YigitEkin/Shortcut", "sub_path": "/ShortcutRunButton.java", "file_name": "ShortcutRunButton.java", "file_ext": "java", "file_size_in_byte": 893, "line_count": 41, "lang": "en", "doc... | import java.awt.event.*;
import javax.swing.*;
import java.awt.*;
public class ShortcutRunButton extends JButton implements ActionListener
{
// properties
Shortcut s;
// constructors
public ShortcutRunButton( Shortcut s)
{
super( "OPEN");
this.s = s;
setBackground( new Col... |
20d81c02-29f3-46af-ae92-a3ce0cb35762 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-03 08:35:40", "repo_name": "woshiwjma956/netty-learn", "sub_path": "/src/main/java/com/ycorn/niopratices/base/SelectClientApiTest.java", "file_name": "SelectClientApiTest.java", "file_ext": "java", "file_size_... | package com.ycorn.niopratices.base;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
/**
* @author : Jim Wu
* @version 1.0
* @function :
* @since : 2020/6/19 14:53
*/
public class SelectClientApiTest {
public static void main... |
90892fec-df73-411a-b758-67fa668525e6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-18 08:52:42", "repo_name": "SoEun0217/step05_MVC_Collection", "sub_path": "/src/kosta/mvc/model/dto/ArchiveBoard.java", "file_name": "ArchiveBoard.java", "file_ext": "java", "file_size_in_byte": 895, "line_cou... | package kosta.mvc.model.dto;
public class ArchiveBoard extends Board {
private String fileName;
private int fileSize;
public ArchiveBoard(int no, String subject, String writer, String content, String date, String fileName,
int fileSize) {
super(no, subject, writer, content, date);
this.fileName = f... |
a5cb51e4-3060-47ef-a417-7bb6fcae5682 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-04-11T02:18:15", "repo_name": "mand6560/cp476-project", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 893, "line_count": 17, "lang": "en", "doc_type": "text", "blo... | # cp476-project setup
## Database setup
1. create a new MongoDB database called studentsaver
2. create a new collection in the db called Customer
3. create a new collection in the db called Products
4. Import the intitial customer data with: mongoimport --db studentsaver --collection Customer --file Customer.json --j... |
cf574749-1e8c-4738-893c-bb0720b16c56 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-03 06:19:54", "repo_name": "BTran3706/2D-Java-Puzzle-Game", "sub_path": "/PuzzleGame/SourceFiles/Graphics/Tile.java", "file_name": "Tile.java", "file_ext": "java", "file_size_in_byte": 893, "line_count": 52, "... | package PuzzleGame.SourceFiles.Graphics;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
public class Tile {
private static Tile tile;
private final BufferedImage texture;
private final boolean solid;
private final float tileWidth, tileHeight;
Tile(final BufferedImage texture, fina... |
0e215128-42c8-4989-8017-aaee25b310fa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-31 10:34:12", "repo_name": "zhengb920817/salesystem", "sub_path": "/src/main/java/com/servyou/course/service/imp/LoginServiceImp.java", "file_name": "LoginServiceImp.java", "file_ext": "java", "file_size_in_by... | package com.servyou.course.service.imp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.servyou.course.dao.PersonDao;
import com.servyou.course.meta.Person;
import com.servyou.course.service.LoginService;
@Service("loginService")
public class L... |
dc5630e7-5e81-4c07-adc0-750984cdf60f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-09 13:11:24", "repo_name": "xinac0421/Hogwarts_JavaCode", "sub_path": "/src/test/java/appium/goodparking/pages/LoginPage.java", "file_name": "LoginPage.java", "file_ext": "java", "file_size_in_byte": 924, "lin... | package appium.goodparking.pages;
import org.openqa.selenium.By;
/**
* @ClassName LoginPage
* @Description 登录页面
* @Author wangx
* @Date 2019/11/11 15:35
* @Version 1.0
**/
public class LoginPage extends BasePage{
public LoginPage passwordLogin(String username, String password){ // 密码登录
findElemen... |
36c769f5-802b-4982-83d0-9317a51fbd29 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-12 18:58:15", "repo_name": "hantczak/InterviewPreparationTasks", "sub_path": "/ArrayLeftRotation/src/main/java/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 894, "line_count": ... | import java.util.Arrays;
public class Main {
public static void main(String[] args) {
int[] baseArray = {3, 4, 5, 6};
System.out.println(Arrays.toString(rotLeft(baseArray, 2)));
}
static int[] rotLeft(int[] a, int d) {
int timesRotated = 0;
int[] arrayBeforeRotation = a;
... |
7d409642-ac7d-4658-ba76-8008887b0eb6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-10 18:15:52", "repo_name": "doanvu2000/VideoPlayer", "sub_path": "/MyProjectVideo/app/src/main/java/com/example/videocategory/ui/home/HomeViewModel.java", "file_name": "HomeViewModel.java", "file_ext": "java",... | package com.example.videocategory.ui.home;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.example.videocategory.IOnclickVideo;
public class HomeViewModel extends ViewModel {
private MutableLiveData<String> mText;
private IOnclic... |
25fe495e-b64f-4eac-8806-bdbae9137650 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-03-14T13:25:38", "repo_name": "marcomussi/HypermediaApplication", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 895, "line_count": 35, "lang": "en", "doc_type": "t... | # README
This repository will be updated during our hands on lectures with a
small app to manage pets. We suggest to use it as a starting point
(fork) for your project once we finished.
## What is this repository for?
Once you fork this repo, you can completely modify it at your own will
to write your proje... |
c705c1c6-5afd-484f-a7ef-d2d48164802b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-17 21:48:27", "repo_name": "SumitBhawsar/Sumit-sDemo", "sub_path": "/addcustomercommand/src/main/java/com/capgemini/customeronboarding/replay/ReplayController.java", "file_name": "ReplayController.java", "file... | package com.capgemini.customeronboarding.replay;
import java.util.List;
import org.axonframework.eventhandling.replay.ReplayingCluster;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMe... |
29853549-92e0-481b-94a5-a3bf586ffe51 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-28 08:53:19", "repo_name": "donglei10/helloword", "sub_path": "/dl-customer/dl-customer-web/src/main/java/com/dl/springcloud/common/PropertiesUtil.java", "file_name": "PropertiesUtil.java", "file_ext": "java",... | package com.dl.springcloud.common;
import java.io.IOException;
import java.util.Properties;
import org.apache.log4j.Logger;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PropertiesLoaderUtils;
/**
* 读取properties属性数据失败
* ... |
6a70e6a8-debb-4928-b0e7-710a639c24a2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-01-12T20:07:11", "repo_name": "motomagx/DynamicSwap", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 894, "line_count": 13, "lang": "en", "doc_type": "text", "blob_... | Motomagx's DynamicSwap script <br>
https://github.com/motomagx/DynamicSwap <br>
<br>
Usage: Just run the script as root, with no arguments. The main swap must be deactivated to be relocated by DynamicSwap. <br>
<br>
By default, the script will trigger an additional 256MB SWAP block, if the total free memory (swap + R... |
8df4062d-86b5-4011-b652-3242c5864acc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-13T22:11:19", "repo_name": "calge22/calge22", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 903, "line_count": 13, "lang": "en", "doc_type": "text", "blob_id": ... | # **Introduction**
## 👋 Hi, I’m Clara Alger
- This is my *first* year-long coding class. My only previous experience is an asynchrnous intro course I took this summer.
- I'm excited to take this class to gain a better understanding of what coding really is, and to see if I might want to contiue to take classes in this... |
5f831771-89f2-42eb-a0e1-1c26fd09db4e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-27 00:09:02", "repo_name": "1016492169/SSM_HRMS-master", "sub_path": "/src/main/java/com/hrms/mapper/JobMapper.java", "file_name": "JobMapper.java", "file_ext": "java", "file_size_in_byte": 906, "line_count": ... | package com.hrms.mapper;
import com.hrms.bean.Job;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
/**
* Author:helloboy
* Date:2019-06-26 15:54
* Description:<描述>
*/
public interface JobMapper {
String TABLE_NAME = "tbl_job";
String INSERT_FIELDS = "job_name, job_... |
c104d804-74a8-4ebc-a7f9-565ec70d890b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-26 18:45:43", "repo_name": "Krishnasindhuja/Online-food-delivery-application", "sub_path": "/caselet1/Client.java", "file_name": "Client.java", "file_ext": "java", "file_size_in_byte": 895, "line_count": 39, "... | package techm.urvashi.caselet1;
import java.io.Serializable;
import java.util.Date;
public class Client extends Person implements Serializable {
private Project projectData;
private String contactNo;
public Client(){
}
public Client(String name, Date date, Project projectData, String contactNo... |
b9b3b620-c7d0-465a-8764-7b393c53aa6b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-07 14:10:37", "repo_name": "raduandritoiu/gitProjects", "sub_path": "/java_projects/dynamicLibraries/test_extensions_new/AnimalsLib/src/lib/integration/animals/calls/PETAResponse.java", "file_name": "PETARespo... | package lib.integration.animals.calls;
import lib.integration.common.interfaces.ICall;
import lib.integration.common.interfaces.ICallResponse;
public class PETAResponse implements ICallResponse
{
private final String _name;
private final int _sessionId;
private final String callName;
public PETA... |
8966f657-2fc2-4f4b-8a93-577d0804e432 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-02 08:51:14", "repo_name": "rkskekabc/chatcs", "sub_path": "/src/main/java/com/cafe24/network/chat/server/ChatServer.java", "file_name": "ChatServer.java", "file_ext": "java", "file_size_in_byte": 895, "line_c... | package com.cafe24.network.chat.server;
import java.io.IOException;
import java.io.Writer;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
public class ChatServer {
private static final int PORT = 8890;
public... |
ceaf5b9e-bb66-41cf-bba2-64d3742e1589 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-26 16:25:05", "repo_name": "FeliKanenga/springboot-part-3", "sub_path": "/src/main/java/com/example/demo/Controller/UserController.java", "file_name": "UserController.java", "file_ext": "java", "file_size_in_b... | package com.example.demo.Controller;
import com.example.demo.Model.User;
import com.example.demo.Service.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RequestMapping
@RestController
public class UserController {
@Autowired
p... |
3b7d5e20-7b2e-4a87-af1c-70bad0883520 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-14 20:31:44", "repo_name": "oleh-turchyn/turchyn_oleh", "sub_path": "/src/main/java/com/turchyn/usermanagement/service/ClientService.java", "file_name": "ClientService.java", "file_ext": "java", "file_size_in_... | package com.turchyn.usermanagement.service;
import com.turchyn.usermanagement.dao.ClientDAO;
import com.turchyn.usermanagement.model.Client;
import org.apache.log4j.Logger;
import java.sql.SQLException;
import java.util.List;
public class ClientService implements IService<Client> {
private static Logger logger =... |
49148ca1-1f1c-4415-b599-31bc0ac42080 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-13 05:25:39", "repo_name": "weiwenqiang/MyEclipse_DarkHorse", "sub_path": "/day08_02_servletcontext/src/com/heima/three/ServletContext5.java", "file_name": "ServletContext5.java", "file_ext": "java", "file_siz... | package com.heima.three;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
//演示全局对象的请求转发
pu... |
1b7ec7d8-1237-40aa-8d51-57b89ad07136 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-28 07:05:27", "repo_name": "rainingXie/W3C", "sub_path": "/Cilent/W3C_School/src/com/example/w3c_school/adapter/AdPagerAdapter.java", "file_name": "AdPagerAdapter.java", "file_ext": "java", "file_size_in_byte"... | package com.example.w3c_school.adapter;
import java.util.List;
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
public class AdPagerAdapter extends PagerAdapter {
private List<ImageView> mData;
public AdPagerAdapter() {
su... |
cff97cdc-aee5-488b-816d-6fca1b3bdcaa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-07 10:01:24", "repo_name": "gigawave07/sprint2-backend", "sub_path": "/src/main/java/com/sprint2/backend/services/invoice/InvoiceServiceImpl.java", "file_name": "InvoiceServiceImpl.java", "file_ext": "java", "... | package com.sprint2.backend.services.invoice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import java.util.List;
import com.sprint2.backend.entity.Invoice;
i... |
f64e4699-b9b6-428c-8eba-a35da62e4422 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-09 14:59:14", "repo_name": "zarathon/arquitetura-avancado", "sub_path": "/src/br/com/cesar/dependenceinjector/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 893, "line_count": 3... | package br.com.cesar.dependenceinjector;
import org.picocontainer.DefaultPicoContainer;
import org.picocontainer.MutablePicoContainer;
import org.picocontainer.Parameter;
import org.picocontainer.parameters.ConstantParameter;
public class Main {
public static void main(String[] args) {
MutablePicoContainer mpico ... |
9b45e37d-9a59-4da0-93a0-12d33917ba01 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-17 14:43:36", "repo_name": "Riccardo-Toni/HotelBookingKata", "sub_path": "/src/main/java/hotelkata/booking/Booking.java", "file_name": "Booking.java", "file_ext": "java", "file_size_in_byte": 893, "line_count"... | package hotelkata.booking;
import hotelkata.hotel.RoomType;
import java.util.Date;
public class Booking {
private final String employeeId;
private final String hotelId;
private final RoomType roomType;
private final Date checkIn;
private final Date checkOut;
public Booking(String employeeId,... |
c772ab8f-cd65-4fb2-9e8c-ebf3227a1769 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-02-05 06:53:03", "repo_name": "kyeljmd/basic-todo-api", "sub_path": "/src/main/java/com/kyeljmd/examples/controller/TodoController.java", "file_name": "TodoController.java", "file_ext": "java", "file_size_in_byte... | package com.kyeljmd.examples.controller;
import com.kyeljmd.examples.TodoDTO;
import com.kyeljmd.examples.Util;
import com.kyeljmd.examples.model.Todo;
import com.kyeljmd.examples.repository.TodoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;... |
86e5c058-913a-40fe-bd13-580dd677e33e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-04 22:29:16", "repo_name": "hdrcruz/monitorFilosofosJava", "sub_path": "/src/br/edu/uft/so/Filosofo.java", "file_name": "Filosofo.java", "file_ext": "java", "file_size_in_byte": 892, "line_count": 38, "lang": ... | package br.edu.uft.so;
/**
* Created by Helder on 18/04/2017.
*/
class Filosofo implements Runnable{
private Monitor monitor;
private Garfo garfoesquerda, garfodireita;
private int id;
public Filosofo(int id, Garfo e, Garfo d, Monitor m){
this.monitor = m;
this.garfoesque... |
b8632c02-3b59-481b-baad-d8dbb7c49739 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-29 04:38:49", "repo_name": "artifac/onemap", "sub_path": "/src/main/java/com/one/map/map/element/tencent/TencentCircle.java", "file_name": "TencentCircle.java", "file_ext": "java", "file_size_in_byte": 893, "l... | package com.one.map.map.element.tencent;
import com.one.map.map.LatLngConvert;
import com.one.map.map.element.ICircle;
import com.one.map.model.LatLng;
import com.tencent.tencentmap.mapsdk.maps.model.Circle;
public class TencentCircle implements ICircle {
private Circle circle;
public TencentCircle(Circle circ... |
7a7518b8-efed-4a7c-8dfb-20575b75342c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-17 02:27:30", "repo_name": "upendrapk/rewards-progress-rest-api-1", "sub_path": "/RewardsProgressService.java", "file_name": "RewardsProgressService.java", "file_ext": "java", "file_size_in_byte": 893, "line_c... | package com.spectrum.assessment.springboot.rewards;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import com.spectrum.assessment.springboo... |
b8f8d445-3bd4-473f-a82e-045a1304e308 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-07 21:59:29", "repo_name": "mondris360/Dris-Application", "sub_path": "/UserService/src/main/java/com/mondris/demo/Dto/UpdateSubDepartmentReqDto.java", "file_name": "UpdateSubDepartmentReqDto.java", "file_ext"... | package com.mondris.demo.Dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.validation.constraints.*;
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class UpdateSubDepartmentReqDto {
@NotNull(message = "subDepartmentId... |
d32aeb47-4223-4459-93db-30bd5ab6bff5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-04 14:18:45", "repo_name": "MagloireKITIO/afmfeed", "sub_path": "/app/src/main/java/tv/afriquemedia/afmfeed/models/News.java", "file_name": "News.java", "file_ext": "java", "file_size_in_byte": 893, "line_coun... | package tv.afriquemedia.afmfeed.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class News {
@SerializedName("status")
@Expose
private String statuts;
@SerializedName("totalResult")
@Expose
private int total... |
92172397-fc72-482e-b289-83455fcf2b65 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-30 04:04:09", "repo_name": "JeanSalazar/Quiz-Online", "sub_path": "/app/src/main/java/com/example/jksa/quizonline/OpcionesDocenteActivity.java", "file_name": "OpcionesDocenteActivity.java", "file_ext": "java",... | package com.example.jksa.quizonline;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
public class OpcionesDocenteActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
supe... |
f518e2cf-74aa-4f0a-936b-66640b9cf4ab | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-21 14:48:45", "repo_name": "akageun/admin-console", "sub_path": "/base/src/main/java/kr/geun/oss/base/app/notice/service/NoticeBbsService.java", "file_name": "NoticeBbsService.java", "file_ext": "java", "file_... | package kr.geun.oss.base.app.notice.service;
import kr.geun.oss.base.infra.entity.main.notice.NoticeBbsEntity;
import kr.geun.oss.base.infra.repo.main.notice.NoticeBbsRepo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
i... |
65671299-03b9-496c-8c3f-4ee6a3e5c567 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-01 23:45:53", "repo_name": "oscar0715/DS-Project2-asymmetric-algorithm", "sub_path": "/src/CommonUtil.java", "file_name": "CommonUtil.java", "file_ext": "java", "file_size_in_byte": 892, "line_count": 38, "lan... | import java.util.Arrays;
public class CommonUtil {
/**
* Convert a byte array to string
* Take first length bytes.
* @param bytes
* @param length
* @return
*/
public String getString(byte[] bytes, int length) {
byte[] keyByte = Arrays.copyOf(bytes,length);
String... |
af390a45-eb64-4342-b611-cd3657ffd294 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-02 23:49:08", "repo_name": "jaydeepingle/profile-directory", "sub_path": "/Sign_up_msg.java", "file_name": "Sign_up_msg.java", "file_ext": "java", "file_size_in_byte": 892, "line_count": 34, "lang": "en", "doc... | //import package
import java.awt.event.*;
import java.awt.*;
import java.applet.*;
public class Sign_up_msg extends Frame implements ActionListener {
Label LabelFrame;
Button ButtonFrame;
public Sign_up_msg() {
super("Message Box");
//Plz make the Entries
LabelFrame =... |
8e13b375-ba7c-4de9-bfc3-69c812a02174 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-29 01:43:03", "repo_name": "liujinwene/duoduo-order", "sub_path": "/order-core/src/main/java/com/duoduo/order/controller/OrderController.java", "file_name": "OrderController.java", "file_ext": "java", "file_si... | package com.duoduo.order.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.duoduo.base.resp.PageRes... |
58376121-0bb8-4e5b-a870-7325aa4b8f08 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-04 04:00:03", "repo_name": "maicodes/SongLib", "sub_path": "/src/app/SongLib.java", "file_name": "SongLib.java", "file_ext": "java", "file_size_in_byte": 892, "line_count": 45, "lang": "en", "doc_type": "code"... | /*
* Phi Hoang
* Mai Le
* Software Methodology
*/
package app;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
import java.io.IOException;
import javafx.fxml.FXMLLoader;
import view.SongListController;
public class SongLib... |
9373048e-8408-464f-88a6-dc0bb9b80b8b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-23 07:54:16", "repo_name": "saltefishcong/voteImprove", "sub_path": "/src/com/vote/eity/option.java", "file_name": "option.java", "file_ext": "java", "file_size_in_byte": 923, "line_count": 38, "lang": "en", "... | package com.vote.eity;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Scope("prototype")
@Component("option")
public class option {
public option(Integer vote_id, String option_name) {
super();
this.vote_id = vote_id;
this.option_name = option_name;
}
p... |
69f9732d-b36e-4a7d-a49d-219720518aaa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-27 21:54:58", "repo_name": "MVII3IV/sat-crawler", "sub_path": "/src/main/java/com/mvii3iv/sat/crawler/components/assets/HostValidator.java", "file_name": "HostValidator.java", "file_ext": "java", "file_size_in... | package com.mvii3iv.sat.crawler.components.assets;
import org.springframework.stereotype.Component;
import java.net.InetAddress;
import java.net.UnknownHostException;
@Component
public class HostValidator {
private String HOST_NAME;
private String MAGIC_WORD = "dz";
/**
* Acontructor which saves t... |
a93c859b-1b74-444a-9307-e6dfa350a5b8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-09-25 10:17:40", "repo_name": "miranaruru/POSKNOCK", "sub_path": "/app/src/main/java/com/example/mirana/posknock/activity/HomeActivity.java", "file_name": "HomeActivity.java", "file_ext": "java", "file_size_in_by... | package com.example.mirana.posknock.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import com.example.mirana.posknock.R;
/**
* Created by xiaotingtang on 9/19/15.
*/
public class HomeActivity extends Activit... |
e262446b-7b92-4805-b111-13b5c86b8f30 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-17 06:48:47", "repo_name": "jack-iml/myeotra_driver", "sub_path": "/app/src/main/java/com/myeotra/driver/data/network/model/Services.java", "file_name": "Services.java", "file_ext": "java", "file_size_in_byte"... | package com.myeotra.driver.data.network.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Services {
@SerializedName("name")
@Expose
private String name;
@SerializedName("service_number")
@Expose
private String serviceNumber;
... |
c2f2b564-cb7b-4ed6-a9e7-296f3d9a4c12 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-12-12 08:52:54", "repo_name": "catalin-burcea/playground", "sub_path": "/spring/rest/src/main/java/ro/cburcea/playground/spring/rest/dtos/OrderDto.java", "file_name": "OrderDto.java", "file_ext": "java", "file_si... | package ro.cburcea.playground.spring.rest.dtos;
public class OrderDto {
private Long id;
private int price;
private int quantity;
public OrderDto() {
}
public OrderDto(final Long id, final int price, final int quantity) {
this.id = id;
this.price = price;
this.quanti... |
46ac2930-10ab-4410-bc84-fd5f3b317b05 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-06-04T02:34:38", "repo_name": "GretelNZ/App", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 893, "line_count": 43, "lang": "en", "doc_type": "text", "blob_id": "1c... | [](https://gitter.im/CorpseBook?utm_source=share-link&utm_medium=link&utm_campaign=share-link "Gitter chat")
Gretel
=====================
App overview
------------
* Javascript-based app for user interface on desktop
* HTML templates
* Sass CSS framework
* Goog... |
cede3239-0339-4480-8663-8da54c7055e3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-15 14:52:58", "repo_name": "xuhan961228/xuhan2", "sub_path": "/struts作业/src/servlet/service/UserServlice.java", "file_name": "UserServlice.java", "file_ext": "java", "file_size_in_byte": 909, "line_count": 40,... | package servlet.service;
import bean.User;
import dao.UserDao;
import java.sql.SQLException;
/**
* xuhan
* 2018/1/15
*/
public class UserServlice {
public boolean register(User user) throws SQLException {
String password = new UserDao().findPassword(user.getUsername());
System.out.println(pa... |
36bc1e18-d179-4d8e-9ab0-734728120470 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-28 09:55:18", "repo_name": "yzliud/car-wash", "sub_path": "/car-wash/src/main/java/com/wash/job/HeartJob.java", "file_name": "HeartJob.java", "file_ext": "java", "file_size_in_byte": 928, "line_count": 21, "la... | package com.wash.job;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import com.jfinal.plugin.activerecord.Db;
public class HeartJob implements Job {
@Override
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionExcepti... |
30a7e881-1784-4b7e-82b6-d8c77f8e77e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-07-05T16:11:36", "repo_name": "subhronilsaha/Firechat", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 893, "line_count": 40, "lang": "en", "doc_type": "text", "blo... | # Firechat (v. 1)
Cloud based instant messaging app for iOS.
## Overview
Firechat is a simple cloud based messaging service for iOS, which stores and fetches data from the Firebase servers. User authentication and Media storage are also being handled By Firebase.
## Usage
1. Clone the repository to your system.
... |
51e2c669-25bf-4daa-9418-a896197b3e08 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-06 14:34:16", "repo_name": "mongo56/avrwake", "sub_path": "/src/avrwake/AVRWake.java", "file_name": "AVRWake.java", "file_ext": "java", "file_size_in_byte": 894, "line_count": 40, "lang": "en", "doc_type": "co... | package avrwake;
import avrwake.gui.Main;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
/**
*
* @author Blaz Majcen <bm@telaris.si>
*/
public class AVRWake {
public static Main mainGui;
public static void main(String[] args) {
... |
d8ba6ed1-f055-49ce-b500-609c7d8eb9fa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-08-29T05:08:46", "repo_name": "matheuslbarros/newsstand", "sub_path": "/readme.md", "file_name": "readme.md", "file_ext": "md", "file_size_in_byte": 892, "line_count": 45, "lang": "en", "doc_type": "text", "b... | # Newsstand application
## Instalation
### Download and setup the dependencies
* `composer install`
* `composer run post-root-package-install`
* `composer run post-create-project-cmd`
* `composer run post-update-cmd`
### Create a database, for example: *homestead*
### Configure the database in *.env*, example:
```
... |
872d2866-48c8-48c9-8643-6f4119080426 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-11 15:19:48", "repo_name": "mayc0njr/ufop-es", "sub_path": "/app/src/main/java/br/ufop/icea/encontrodesaberes/model/io/IOInt.java", "file_name": "IOInt.java", "file_ext": "java", "file_size_in_byte": 894, "lin... | package br.ufop.icea.encontrodesaberes.model.io;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import br.ufop.icea.encontrodesaberes.controller.Utils;
/**
* Created by Maycon Junior on 06/06/2017.
*/
public class IOInt implements IOObject {
public int data;
... |
c547ddbe-f26e-48dd-be26-55d9c48a4cff | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-07-19T15:39:21", "repo_name": "SparkPost/support-docs", "sub_path": "/content/momentum/3/3-api/structs-apn-request.md", "file_name": "structs-apn-request.md", "file_ext": "md", "file_size_in_byte": 893, "line... | ---
lastUpdated: "03/26/2020"
title: "apn_request"
description: "Configuration Change This feature is available as of version 3 5 5 This struct is defined as follows To use this struct include the file modules mobility apn apn h Momentum for Mobile Push Notifications and Chapter 58 Hooks in the apn Scope..."
---
**Con... |
edafc630-cdbc-44ae-a12f-ded0fa59dfd1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-13 19:22:18", "repo_name": "ashwinrajan/Java2", "sub_path": "/Code9.1/src/windows/AdapterDemo.java", "file_name": "AdapterDemo.java", "file_ext": "java", "file_size_in_byte": 893, "line_count": 39, "lang": "en... | /*
Name: Ashwin Rajan
Program: Computer Engineering
Course: PROG 24178 Winter 2012
*/
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package windows;
import java.awt.event.*;
import javax.swing.JFrame;
/**
*
* @author Ashwin Rajan
*/
public class AdapterDemo... |
39c3d86b-f254-4a40-9265-bfc6b9d609fe | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-18 08:11:09", "repo_name": "jongyeon95/eatgo", "sub_path": "/eatgo-common/src/test/java/kr/co/fastcampus/eatgo/domain/UserTest.java", "file_name": "UserTest.java", "file_ext": "java", "file_size_in_byte": 904,... | package kr.co.fastcampus.eatgo.domain;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
public class UserTest {
@Test
public void creation(){
User user=User.builder()
.name("테스터")
.email("tester@example.com")
... |
c132bc8c-2908-4e93-80c3-c4fa1e3cb862 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-26 07:35:39", "repo_name": "pankajkamlegate6/moneyCProject", "sub_path": "/entity/market/MarketCorporateBasicData.java", "file_name": "MarketCorporateBasicData.java", "file_ext": "java", "file_size_in_byte": 8... | package com.moneycontrol.handheld.entity.market;
import java.io.Serializable;
import java.util.ArrayList;
public class MarketCorporateBasicData implements Serializable {
private String recentFlag = "";
private ArrayList<MarketCorporateRecentData> recentList;
private ArrayList<MarketCorporateHeaderData> hea... |
9c2dbf1e-22e6-4abf-97a6-b6b26a15b5ee | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-03 01:42:41", "repo_name": "look0089/scan", "sub_path": "/app/src/main/java/com/jidu/scan/AppConfig.java", "file_name": "AppConfig.java", "file_ext": "java", "file_size_in_byte": 987, "line_count": 37, "lang":... | package com.jidu.scan;
import com.jidu.scan.utils.SharedPreferencesUtil;
/**
* Created by Jzs on 2017/7/24.
* 用于存放系统的一些常量参数
* 如基地址、文件存放地址、是否开启log打印、SP储存名
*/
public class AppConfig {
// 是否开启Log打印
public static Boolean IS_LOG;
public static String BASE_URL;
public static String TEST_URL = "http:/... |
84b752c1-9e3e-4b08-a033-2face200d9be | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-04-10T07:33:21", "repo_name": "rodolfomolinaa/vana-project", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 893, "line_count": 32, "lang": "en", "doc_type": "text",... | # Vana Banguat Project
Create a RESTful service to query Banguats currency exchange rate.
## Requirements
You will only need Node.js and a node global package, npm, installed in your environement.
## Installation
Clone the repository and install dependencies using
```bash
npm install
```
## Usage
Running **npm ... |
5c980b02-8219-4f39-8ed4-63beb6f7090c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-07 07:57:11", "repo_name": "fabian-emmanuel/Indulge-Blog", "sub_path": "/src/main/java/com/codewithfibbee/blog_api/service/serviceImpl/FavoriteServiceImpl.java", "file_name": "FavoriteServiceImpl.java", "file_... | package com.codewithfibbee.blog_api.service.serviceImpl;
import com.codewithfibbee.blog_api.models.Favorite;
import com.codewithfibbee.blog_api.repositories.FavoriteRepo;
import com.codewithfibbee.blog_api.service.FavoriteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewor... |
e37d036c-0441-4860-a5d6-60b1a1b6fc4c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-02 13:55:39", "repo_name": "manhattan-blueprint/Manhattan-Mobile", "sub_path": "/Blueprint/app/src/main/java/com/manhattan/blueprint/View/ViewHolder/WikiItemViewHolder.java", "file_name": "WikiItemViewHolder.j... | package com.manhattan.blueprint.View.ViewHolder;
import android.graphics.Bitmap;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.manhattan.blueprint.R;
public class WikiItem... |
02e513fa-e199-4ad3-a3bc-1443cde45f38 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-28 20:23:54", "repo_name": "mninc/traffic", "sub_path": "/traffic/light.java", "file_name": "light.java", "file_ext": "java", "file_size_in_byte": 893, "line_count": 32, "lang": "en", "doc_type": "code", "blob... | import greenfoot.*;
/**
* Write a description of class light here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class light extends Actor
{
protected boolean isRoadLight;
private int lightStatus; // 0 - red, 1 - red-amber, 2 - amber, 3 - green, 4 - off
public void s... |
af8a5d6e-2024-4c50-9b5e-fc9f23c52961 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-16 08:54:56", "repo_name": "mikola1122/myreelty-android", "sub_path": "/app/src/main/java/com/helio/myreelty/network/models/NetworkLikeModel.java", "file_name": "NetworkLikeModel.java", "file_ext": "java", "fi... | package com.helio.myreelty.network.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by Taras on 31.03.2016.
*/
public class NetworkLikeModel {
@SerializedName("pagination")
@Expose
public PaginationModel paginati... |
65a84ab5-b207-4239-9388-e9d4d0bc88b2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-13 05:59:47", "repo_name": "k-gregory/KPI", "sub_path": "/insurance/backend/src/main/java/io/github/k_gregory/insurance/entity/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byte": 893... | package io.github.k_gregory.insurance.entity;
import javax.persistence.*;
import java.util.Set;
@Entity
@Table(name = "\"user\"")
public class User {
private String login;
private String passwordHash;
private Set<Role> roles;
@Id
public String getLogin() {
return login;
}
public... |
a38b646f-c998-4f97-8881-45b3f709e19d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-10 08:27:17", "repo_name": "github-linannan/CLcms-platform", "sub_path": "/src/main/java/com/letu/healthplatform/platformmanage/order/service/impl/OrderSendInfoImpl.java", "file_name": "OrderSendInfoImpl.java"... | /**
* 乐土精准医疗有限公司
*/
package com.letu.healthplatform.platformmanage.order.service.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
im... |
052ce7dc-b916-49c0-97e3-30be15652d0d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-30 05:44:18", "repo_name": "tejc999999/algolearn", "sub_path": "/src/main/java/jp/spring/boot/algolearn/config/RoleCode.java", "file_name": "RoleCode.java", "file_ext": "java", "file_size_in_byte": 980, "line_... | package jp.spring.boot.algolearn.config;
/**
* 権限コードEnum(role code enum).
* @author tejc999999
*/
public enum RoleCode {
ROLE_ADMIN("001", "管理者"),
ROLE_TEACHER("002", "先生"),
ROLE_STUDENT("003", "学生");
/**
* 権限ID(Role id).
*/
private final String id;
/**
* 権限... |
b8f91935-6922-4fff-8e34-ca98b05e1675 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-06-28 11:55:46", "repo_name": "skhatri/spring-resteasy-example", "sub_path": "/src/main/java/com/opencode/ps/services/FundHttpService.java", "file_name": "FundHttpService.java", "file_ext": "java", "file_size_in_... | package com.opencode.ps.services;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
@Path("/services")
public class FundHttpService {
p... |
3882a4eb-29f1-4151-b855-ce4ad7106c75 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-12-09 02:36:17", "repo_name": "snehasankavaram/share", "sub_path": "/Application/mobile/src/main/java/com/share/NotesFragment.java", "file_name": "NotesFragment.java", "file_ext": "java", "file_size_in_byte": 893... | package com.share;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
/**
* Created by Sneha on 11/26/15.
*/
public class NotesFragment extends Fragment {
@Override
pub... |
781275b1-ce1f-40a2-a5eb-234dd1b39e6a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-08-26T11:44:42", "repo_name": "ashllay/BnsDatTool", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 897, "line_count": 28, "lang": "en", "doc_type": "text", "blob_id... | **BnsDatTool**
This tool is basicaly a GUI based on lokiReborn and 家庭hyuga source code.
**How to use BnsDatTool**
- **Dat Files**
Just select the .dat file and click unpack for repack just select repack folder and click repack.
- **Bin Files**
Same as .dat files but there are no way to repack a .bin file.
- ... |
5cbd9983-559b-4762-a724-b640cc3f229c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-14 10:51:34", "repo_name": "cckmit/crm-20", "sub_path": "/crm-web/src/main/java/com/cahodental/crm/web/api/web/WebGoodsController.java", "file_name": "WebGoodsController.java", "file_ext": "java", "file_size_i... | package com.cahodental.crm.web.api.web;
import com.cahodental.crm.core.serialize.ResponseMsg;
import com.cahodental.crm.service.goods.service.GoodsService;
import com.cahodental.crm.web.webservice.goods.service.WebGoodsService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.w... |
4cd6f454-6b72-4c4f-920a-623920233e0b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-05 18:40:30", "repo_name": "rahmatsubandi/Android-Courses", "sub_path": "/FourProject/WhoWroteItLoader/app/src/main/java/com/example/whowroteitloader/BookLoader.java", "file_name": "BookLoader.java", "file_ext... | package com.example.whowroteitloader;
import android.content.Context;
import androidx.loader.content.AsyncTaskLoader;
/**
* AsyncTaskLoader implementation that opens a network connection and
* query's the Book Service API.
*/
public class BookLoader extends AsyncTaskLoader<String> {
// Variable that stores th... |
9ac0ba47-ec6a-4d61-a126-f37edb2c222d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-09-01 14:16:26", "repo_name": "ihmcrobotics/ihmc-open-robotics-software", "sub_path": "/atlas/src/test/java/us/ihmc/atlas/AtlasFeetErrorTranslationTest.java", "file_name": "AtlasFeetErrorTranslationTest.java", "f... | package us.ihmc.atlas;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import us.ihmc.avatar.AvatarFeetErrorTranslationTest;
import us.ihmc.avatar.drcRobot.DRCRobotModel;
import us.ihmc.avatar.drcRobot.RobotTarget;
@Tag("humanoid-flat-ground-slow-2")
public class AtlasFeetErrorTranslationTest ex... |
ff16d765-66c4-4aa0-818d-5b9e98b40afd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-03-19 06:46:27", "repo_name": "krisrajaryan27/Programming-Challenges", "sub_path": "/src/main/java/com/nirvana/learning/hackerearth/VictorWareHousing.java", "file_name": "VictorWareHousing.java", "file_ext": "jav... | package com.nirvana.learning.hackerearth;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
public class VictorWareHousing {
public static void main(String[] args) throws IOException {
BufferedReader bufferedReader ... |
cc32b897-7048-49f0-94e0-49cac55489eb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-17 09:48:16", "repo_name": "mahendra-shinde/jaxrs-rest-basics", "sub_path": "/rest-crud-demo/src/com/mahendra/models/Account.java", "file_name": "Account.java", "file_ext": "java", "file_size_in_byte": 894, "l... | package com.mahendra.models;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Account implements Serializable{
private int accNo;
private String customerName;
private double balance;
public Account() {
super();
}
pub... |
4a6935a9-c6a0-44d6-a810-6cd739b6981e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-27 00:47:14", "repo_name": "ntohill95/TourGuide", "sub_path": "/app/src/main/java/com/example/android/tourguideapp/Phrase.java", "file_name": "Phrase.java", "file_ext": "java", "file_size_in_byte": 894, "line_... | package com.example.android.tourguideapp;
import android.support.v7.app.AppCompatActivity;
/**
* Created by Niamh on 24/06/2017.
*/
public class Phrase {
private String mName;
private String mEnglishTranslation;
private String mIrishTranslation;
private int mAudioResource;
public Phrase(Strin... |
7db65cd8-4b96-4301-96a8-698baef4c3aa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-04-13T14:16:48", "repo_name": "DaikiMaekawa/akihabara_map_for_geeks", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 893, "line_count": 35, "lang": "en", "doc_type"... | ## About
[](https://travis-ci.org/DaikiMaekawa/akihabara_map_for_geeks)
Akihabara Map for Robot Geeks.
## Usage
The site has been published to the following link.
https://daikimaekawa.github.io/akihabara_map_for_geeks/
... |
73891f3e-f821-4d12-8a2f-44bef5e78563 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-15 12:16:19", "repo_name": "Double0h/METU-CENG", "sub_path": "/Ceng443/Hw3/src/CPU.java", "file_name": "CPU.java", "file_ext": "java", "file_size_in_byte": 893, "line_count": 36, "lang": "en", "doc_type": "cod... | import java.util.Locale;
public class CPU extends Parts {
private int coreCount;
private double clockSpeed;
public CPU(String type, String brand, String model, double price, int coreCount, double clockSpeed) {
super(type, brand, model, price);
this.coreCount = coreCount;
this.cloc... |
8f544e01-df72-4cce-bacf-d302d1c67b2c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-27 20:45:39", "repo_name": "ephemeralin/java-training", "sub_path": "/chapter_005/src/main/java/ru/job4j/simpleelevator/Work.java", "file_name": "Work.java", "file_ext": "java", "file_size_in_byte": 893, "line... | package ru.job4j.simpleelevator;
/**
* The type Work.
*/
public class Work {
/**
* Target floor.
*/
private int floor;
/**
* Work type.
*/
private final WorkType workType;
/**
* Instantiates a new Work.
*
* @param floor the floor
* @param workType the ... |
48baccff-3e12-491a-9c95-9f49de62630d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-12 10:27:31", "repo_name": "shenjixiaodao/town_learning", "sub_path": "/app/webapi/src/main/java/com/learning/webapi/vo/ApplicationMaterialVo.java", "file_name": "ApplicationMaterialVo.java", "file_ext": "java... | package com.learning.webapi.vo;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
/**
* Created by shenjixiaodao on 2017/12/6.
*/
public class ApplicationMaterialVo {
@ApiModelProperty(value="用户ID", required = true)
private Long uid;
@ApiModelProperty(value="附件ids", dataType = "Lo... |
90fdc70d-4f29-4eae-bf42-137eb32a8ca7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-15 15:13:38", "repo_name": "ankeshkatiyar/worksplit-app-project", "sub_path": "/src/main/java/com/worksplit/userconfig/Permission.java", "file_name": "Permission.java", "file_ext": "java", "file_size_in_byte":... | package com.worksplit.userconfig;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "permission")
public class Permission {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
@ApiModelProperty(hidden =... |
65283cad-8716-44c8-bae8-c7c09693f2ca | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-12 19:41:25", "repo_name": "abarahmeh/expedia_task", "sub_path": "/src/main/java/com/expedia/bean/offers/OfferDateRange.java", "file_name": "OfferDateRange.java", "file_ext": "java", "file_size_in_byte": 893, ... | package com.expedia.bean.offers;
/**
* This provides methods to set & get the information for the Date Range of offers
*
* @author Abdullah Barahmeh
* @version 2017-3-11
*/
public class OfferDateRange {
private int[] travelStartDate;
private int[] travelEndDate;
private int lengthOfStay;
... |
edf079f4-da77-4af5-a665-71c89a00a8ff | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-11-22T11:36:11", "repo_name": "JavadTalebiJava/sample-docker-postgres-java-angular", "sub_path": "/ReadMe.md", "file_name": "ReadMe.md", "file_ext": "md", "file_size_in_byte": 893, "line_count": 27, "lang": "... | ### A sample docker - compose project
## combination of Angular, Java and Postgres
### Steps:
1. run " docker-compose up -d "
2. run " docker-compose ps "
3. get current ip by "ipconfig getifaddr en0"
4. to access pgAdmin navigate http://192.168.1.33:8080/login?next=%2F
5. login then add server (link: https://linuxhin... |
3ed7f0e1-a4d5-4a31-b6a7-af01cebbca1b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-08 12:28:31", "repo_name": "EOL/harvester_mysql", "sub_path": "/src/main/java/org/bibalex/eol/mysqlModels/MysqlPage.java", "file_name": "MysqlPage.java", "file_ext": "java", "file_size_in_byte": 892, "line_cou... | package org.bibalex.eol.mysqlModels;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
public class MysqlPage implements Serializable{
int id;
Integer page_richness;
BigInteger node_id;
public MysqlPage (int id, Integer page_richness, BigInteger node_id){
this.i... |
fbd7798b-c192-4750-84f4-79027b74e341 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-07T01:39:52", "repo_name": "jingxiangxbj/basic", "sub_path": "/src/main/java/com/example/demo/config/InterceptorConfig.java", "file_name": "InterceptorConfig.java", "file_ext": "java", "file_size_in_byte": 892... | package com.example.demo.config;
import com.example.demo.interceptor.LoginInterceptor;
import com.example.demo.interceptor.PrivilegeInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.anno... |
37dded9f-82db-4d4e-82a7-c0660f6eaf0b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-09 08:51:04", "repo_name": "NatalyaAlexinskaya/HelloTest", "sub_path": "/Rest/src/main/java/com/example/rest/HelloService.java", "file_name": "HelloService.java", "file_ext": "java", "file_size_in_byte": 892, ... | package com.example.rest;
import com.example.grpc.server.HelloGrpcServiceGrpc;
import com.example.grpc.server.HelloRequest;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
@Service
public class HelloService {
... |
f719f13f-3a4a-4cba-947a-b531bd0b2048 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-10 01:12:32", "repo_name": "Leisureroad/ces", "sub_path": "/ces/src/main/java/com/dapeng/ces/util/ExcelDataImporter.java", "file_name": "ExcelDataImporter.java", "file_ext": "java", "file_size_in_byte": 892, "... | package com.dapeng.ces.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.apache.commons.io.FilenameUtils;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSS... |
016e09b6-99ca-4bb6-a1d9-bca5beaac004 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-01 18:22:31", "repo_name": "holylovenia/undepress-mobile", "sub_path": "/app/src/main/java/com/hulahoop/mentalhealth/undepress/loaders/ChatTaskLoader.java", "file_name": "ChatTaskLoader.java", "file_ext": "jav... | package com.hulahoop.mentalhealth.undepress.loaders;
import android.content.Context;
import android.support.v4.content.AsyncTaskLoader;
import android.util.Log;
import com.hulahoop.mentalhealth.undepress.NetworkUtils;
/**
* Created by agoun on 2/27/2018.
*/
public class ChatTaskLoader extends AsyncTaskLoader<Stri... |
9119862f-4980-4730-978b-2752dbedbf78 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-14 04:49:52", "repo_name": "duggankimani/WIRA", "sub_path": "/src/main/java/com/duggan/workflow/shared/requests/GetPermissionsRequest.java", "file_name": "GetPermissionsRequest.java", "file_ext": "java", "file... | package com.duggan.workflow.shared.requests;
import com.duggan.workflow.shared.responses.GetPermissionsResponse;
import com.wira.commons.shared.request.BaseRequest;
import com.wira.commons.shared.response.BaseResponse;
public class GetPermissionsRequest extends BaseRequest<GetPermissionsResponse> {
private String ... |
75328eac-f61c-477a-a759-e17bed296327 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-15 18:05:54", "repo_name": "Bjaku/Android-MOS-An-example-of-async-task", "sub_path": "/app/src/main/java/pl/edu/pg/mos/lab/exampleofasynctask/TextChangedHandler.java", "file_name": "TextChangedHandler.java", "... | package pl.edu.pg.mos.lab.exampleofasynctask;
import android.text.Editable;
import android.text.TextWatcher;
/**
* Created by Kuba on 3/15/2018.
*/
class TextChangedHandler implements TextWatcher {
private MainActivity parentActivity;
public TextChangedHandler(MainActivity parentActivity){
this.pa... |
8571f255-402f-40fd-bd55-946cff33e533 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-23 07:06:15", "repo_name": "ShanmugaSrinivasSunnapu/GithubDemo3", "sub_path": "/src/abcd/SalesforceLogin.java", "file_name": "SalesforceLogin.java", "file_ext": "java", "file_size_in_byte": 893, "line_count": ... | package abcd;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class SalesforceLogin {
public static void main(String[] args) throws InterruptedException{
//Instatiate chrome browse... |
a531b129-91b0-48b2-8f2d-b092ad792b0e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-29 11:00:12", "repo_name": "Doroshchuk/automatedTestingOfFacebook", "sub_path": "/AutomatedTestingOfFacebook/src/test/java/pageObjectModels/ConfirmationPageModel.java", "file_name": "ConfirmationPageModel.java... | package pageObjectModels;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class ConfirmationPageModel {
WebDriver driver;
@FindBy(xpath = "//span[@class='_1vp5']")
WebElement ... |
14e7ac22-9f0e-4074-905c-0cc211c32ec8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-02-15T13:41:55", "repo_name": "Ememme/JS30_challenge", "sub_path": "/27_Click_and_Drag/readme.md", "file_name": "readme.md", "file_ext": "md", "file_size_in_byte": 891, "line_count": 24, "lang": "en", "doc_ty... | # What I've learned
## CSS
### box-shadow
*inset*
If not specified (default), the shadow is a drop shadow (the box raised above the content).
Inset keyword changes the shadow to one inside the frame (the content was depressed inside the box).
Inset shadows are drawn inside the border (even transparent ones), above... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.