id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
3b1ac129-dcaa-4a12-b4ee-d436222e3216 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-11-20 01:52:49", "repo_name": "ryoonc/Zork", "sub_path": "/Border.java", "file_name": "Border.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 35, "lang": "en", "doc_type": "code", "blob_id": "b... | /**
* Created with IntelliJ IDEA.
* User: Richard
* Date: 11/6/12
* Time: 3:21 AM
* To change this template use File | Settings | File Templates.
*/
public class Border {
private String direction;
private String name;
public Border(String name, String direction)
{
this.name = name;
... |
4393350e-7e90-4287-ac35-533ac105a688 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-06 06:31:01", "repo_name": "DiegoAvmor/OOP-movies", "sub_path": "/MoviesWebServiceAndAPI/src/main/java/webservice/util/PersonalRatingId.java", "file_name": "PersonalRatingId.java", "file_ext": "java", "file_si... | package webservice.util;
import webservice.model.PersonalRating;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;
@Embeddable
public class PersonalRatingId implements Serializable {
private Integer id;
@Column(length = 30)
private String username;
pu... |
0bd65112-0bd8-42d7-a8ff-bbf09d63d826 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-12 15:19:16", "repo_name": "mhaque1979/SeleniumMaster", "sub_path": "/Gmail/src/test/java/test/excel_practice2.java", "file_name": "excel_practice2.java", "file_ext": "java", "file_size_in_byte": 751, "line_co... | package test;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
public class excel_practice2 {
public... |
413e0586-a8d6-4c9b-af70-a757b4111ff7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-18 00:29:47", "repo_name": "antpngl92/Adventure-Game", "sub_path": "/src/Game/Monster.java", "file_name": "Monster.java", "file_ext": "java", "file_size_in_byte": 752, "line_count": 37, "lang": "en", "doc_type... | package Game;
public class Monster extends Character {
private static final long serialVersionUID = 1L;
@SuppressWarnings("unused")
private int points;
public Monster(String n){
super(n, "Monster", 25, 750, 750);
points = 0;
}
public void attackCharacter(Ch... |
bdd4b258-f37b-40a8-a7d4-3323969faffe | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-13 02:57:18", "repo_name": "Raman419/HandsOnSpring", "sub_path": "/MicroServices/EmployeeInfo/src/main/java/io/raman/model/Employee.java", "file_name": "Employee.java", "file_ext": "java", "file_size_in_byte":... | package io.raman.model;
public class Employee {
private String empid;
private Address address;
private Organization organization;
public Employee() {
super();
}
public Employee(String empid, Address address, Organization organization) {
super();
this.empid = empid;
this.address = address;
this.organ... |
94f7f22f-90ab-43e2-8594-a5b20c9a0d6a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-24 01:33:10", "repo_name": "mederbek0/HackerRank", "sub_path": "/Algorithms/Search/MissingNumbers.java", "file_name": "MissingNumbers.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 41, "lan... | import java.util.Arrays;
import java.util.Scanner;
public class MissingNumbers {
public static void main(String[] args) {
Scanner in =new Scanner(System.in);
int n=in.nextInt();
int arrA[]=new int[n];
for (int i=0;i<n;i++){
arrA[i]=in.nextInt();
}
int max=Integer.MIN_VALUE;
int min=Integer.MAX_VALUE;... |
7849f6d6-814d-4f75-9f99-054e374e652a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-25 00:22:30", "repo_name": "Mattpet26/quotes", "sub_path": "/src/test/java/quotes/testJavaQuote.java", "file_name": "testJavaQuote.java", "file_ext": "java", "file_size_in_byte": 754, "line_count": 30, "lang":... | package quotes;
import com.google.gson.Gson;
import org.junit.Before;
import org.junit.Test;
import java.io.FileReader;
import static org.junit.Assert.assertEquals;
public class testJavaQuote {
Quote testStringQuote;
@Before
public void initializeQuote(){
testStringQuote = new Qu... |
d48f5afd-02bf-4ab5-9e07-0e03c8f3c4b2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-02 18:05:52", "repo_name": "Patrysiek/cw3zadanie2", "sub_path": "/src/controller/screen/Controller.java", "file_name": "Controller.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 33, "lang":... | package controller.screen;
import controller.IScreenSetter;
import controller.keyboard.ControlButtonType;
import javafx.fxml.FXML;
import javafx.scene.control.SplitPane;
public abstract class Controller {
protected IScreenSetter screenSetter;
@FXML protected SplitPane mainSplitPane;
public abstract void chooseFunc... |
c8655a49-8c0e-47a5-9a23-21694aeffc0b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-21 21:17:00", "repo_name": "PavloShchur/Book_Store_Spring", "sub_path": "/src/main/java/com/books/service/impl/GenreServiceImpl.java", "file_name": "GenreServiceImpl.java", "file_ext": "java", "file_size_in_by... | package com.books.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.books.dao.GenreDao;
import com.books.entity.Genre;
import com.books.service.GenreService;
@Service
public class GenreServiceImpl... |
b528bcfa-765c-4b84-a7f0-6b602a289cb4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-31 10:01:12", "repo_name": "frederico-apolonia/Laboratorios-de-Programacao-16-17", "sub_path": "/Semana 4/Runusosonarqube.java", "file_name": "Runusosonarqube.java", "file_ext": "java", "file_size_in_byte": 75... | /**
*
* @author Frederico Apolonia
*
*/
public class Runusosonarqube {
public static final int MAX = 10;
public static void main (String[] args) {
int queRaioDeVariavel = 0;
Usosonarqube sq = new Usosonarqube();
sq.metodo1(queRaioDeVariavel);
sq.metodo2(qu... |
09942f73-9034-4ef9-ba50-8ff3a3f68f93 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-30 15:15:40", "repo_name": "AAAStudio/AndroidTask", "sub_path": "/app/src/main/java/ahmedali/androidtask/model/RepoModel.java", "file_name": "RepoModel.java", "file_ext": "java", "file_size_in_byte": 751, "lin... | package ahmedali.androidtask.model;
public class RepoModel {
public int repoId;
public String ownerName,repoName,repoDesc,ownerUrl,repoUrl;
public boolean fork;
private boolean isForkMissing;
public RepoModel(int repoId, String ownerName, String repoName, String repoDesc, String ownerUrl, String... |
6780f155-0181-4818-b538-c7bdee98b64c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-01-18T17:51:20", "repo_name": "lasigeBioTM/MRA", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 759, "line_count": 12, "lang": "en", "doc_type": "text", "blob_id": ... | # Multilingual Report Annotator
A proof of concept application, which annotates text of 6 different languages with RadLex terms.
More explanations and instructions on how to setup everything can be found in the [Wiki](https://github.com/LLCampos/multilingual_report_annotator/wiki).
## References:
- L. Campos, V. ... |
ade9fe9a-da73-485d-9215-3c917c462776 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-20 04:07:40", "repo_name": "luoxuehuan/sylph", "sub_path": "/sylph-spi/src/main/java/ideal/sylph/spi/job/Job.java", "file_name": "Job.java", "file_ext": "java", "file_size_in_byte": 779, "line_count": 46, "lan... | package ideal.sylph.spi.job;
import javax.validation.constraints.NotNull;
import java.io.File;
import java.net.URL;
import java.util.Collection;
public interface Job
{
@NotNull
public String getId();
default String getDescription()
{
return "none";
}
File getWorkDir();
Collecti... |
cea798ab-3183-46ae-a55f-0a5ef3a11b9d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-31 22:01:41", "repo_name": "MahmoudAbdulaziz1/PhommunityApp", "sub_path": "/app/src/main/java/mahmoudvic/org/phomunity/pojo/PostCreationPOJO.java", "file_name": "PostCreationPOJO.java", "file_ext": "java", "fi... | package mahmoudvic.org.phomunity.pojo;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class PostCreationPOJO {
@SerializedName("frontend_user_id")
private int userId;
@SerializedName("body")
private String body;
@SerializedName("images")
private List<String>... |
4c2d2e21-96f6-4e22-b67c-e9947c31e8eb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-30 17:32:30", "repo_name": "Niu0351/Pacemaker", "sub_path": "/Pacemaker/src/main/java/plot/MyThread.java", "file_name": "MyThread.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 30, "lang": ... | package plot;
import com.fazecast.jSerialComm.SerialPort;
import org.jfree.data.xy.XYSeries;
import java.util.Scanner;
public class MyThread extends Thread{
static private SerialPort tacsPort;
private XYSeries series1;
private XYSeries series2;
public MyThread(SerialPort tacsPort,XYSeries series1,X... |
fee5f11f-33da-4a46-a31d-a4476b314fb6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-11-07T18:46:34", "repo_name": "FuelRats/stylelint-config-fuelrats", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 751, "line_count": 17, "lang": "en", "doc_type": ... | # @fuelrats/stylelint-config
* Base Stylelint ruleset with various other helpful plugins.
* Assumes project uses SCSS.
* Includes [`stylelint-scss`][stylelint-scss] for additional SCSS linting.
* Includes [`stylelint-order`][stylelint-order] for enforcing properly strucutred declarations.
## Setup
1. There are... |
ad7a5417-94d0-42cc-b3ae-3feddcec199c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-22 21:48:44", "repo_name": "xochipillia/AvanceLabQWrande", "sub_path": "/app/src/main/java/wrande/cecyt9/pt/Practicas.java", "file_name": "Practicas.java", "file_ext": "java", "file_size_in_byte": 751, "line_c... | package wrande.cecyt9.pt;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
/**
* Created by Xochipilli on 23/04/2017.
*/
public class Practicas extends AppCompatActivity {
@Override
protected voi... |
5e6c180e-0342-4b83-8c5c-d1cf47109de4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-10 17:48:27", "repo_name": "ValentinLorand/javaVsZombies", "sub_path": "/src/Zombie.java", "file_name": "Zombie.java", "file_ext": "java", "file_size_in_byte": 752, "line_count": 49, "lang": "en", "doc_type": ... |
public abstract class Zombie extends Entite{
private int pv;
private double vitesse;
private int degat;
private Timer frappe;
public Zombie(int pv, double vitesse, double x, double y) {
super(x,y);
this.pv = pv;
this.vitesse = vitesse;
degat = 30;
frappe = new Timer(1000);
}
public int getPv() {
... |
33edd582-0e7e-44cf-8039-34baace1399a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-22 08:21:40", "repo_name": "heqiangsc/dive-in-spring-boot", "sub_path": "/hello-spring-boot-configure/src/main/java/com/swift/hello/spring/boot/condition/OnSystemPropertyConditional.java", "file_name": "OnSyst... | package com.swift.hello.spring.boot.condition;
import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;
import java.util.Map;
public class OnSystemPropertyConditional implements Condition {
... |
f4a8f678-f95f-4a6b-9efe-10b8a649b81a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-01 09:21:40", "repo_name": "AnooTiwari/anooptiwari", "sub_path": "/five_new/app/src/main/java/com/example/five_new/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byte":... | package com.example.five_new;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
public class MainActivity extends Activity {
ImageView Image;
Button hide;
@Override
protected void onCreate(Bundle savedInstanc... |
df6fa9bf-1afb-44ad-a6b7-a56133aad563 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-22 20:23:37", "repo_name": "lunarcpri/d06", "sub_path": "/src/main/java/converters/StringToSpamTagsConverter.java", "file_name": "StringToSpamTagsConverter.java", "file_ext": "java", "file_size_in_byte": 751, ... | package converters;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import repositories.SpamTagsRepository;
import domain.SpamTa... |
e5e7f60f-01c1-4fe1-9461-4c31d88733cf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-05 15:13:56", "repo_name": "albertle345/OOPpractice", "sub_path": "/src/com/company/vehicle/CGarage.java", "file_name": "CGarage.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 28, "lang": "... | package com.company.vehicle;
import java.util.ArrayList;
public class CGarage {
private ArrayList<CVehicle> listCars = new ArrayList<>();
public void insert(CVehicle vehicle){
listCars.add(vehicle);
}
public boolean isEmpty(){
// return listCars.size() > 0;
if(listCars.siz... |
e3524dc3-c356-42cc-b76d-a7110fe72f6c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-19 14:50:23", "repo_name": "weiming93/mall-master", "sub_path": "/mall-common/mall-common-core/src/main/java/com/emond/mall/common/utils/ThrowableUtils.java", "file_name": "ThrowableUtils.java", "file_ext": "j... | package com.emond.mall.common.utils;
import lombok.experimental.UtilityClass;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintStream;
/**
* 异常工具类
* @author: Chen Weiming
*/
@UtilityClass
public class ThrowableUtils {
public static String stackTraceToString(Throwable ca... |
7207c4f9-03ee-46a8-b043-c8b8885e3abb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-03-20T00:22:15", "repo_name": "DreamOps/ant-rd", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 751, "line_count": 17, "lang": "en", "doc_type": "text", "blob_id": ... | # ant-rd
Ant Retrieve and Deploy to copy Salesforce metadata from a package to a development environment.
The build file uses the [Force.com Migration Tool](https://developer.salesforce.com/page/Force.com_Migration_Tool) and expects Apache Ant to be installed on your system path.
Copy the "build.properties.sample" f... |
3c3b1d62-8386-460d-9186-9b9c2184b442 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-11 09:56:51", "repo_name": "i345048/dico-fast", "sub_path": "/dico-fast-common/src/main/java/cn/diconet/common/base/ResultGenerator.java", "file_name": "ResultGenerator.java", "file_ext": "java", "file_size_in... | package cn.diconet.common.base;
/**
* 响应结果生成工具
*/
public class ResultGenerator {
private static final String DEFAULT_SUCCESS_MESSAGE = "SUCCESS";
public static Result genSuccessResult() {
return new Result()
.setCode(ResultCode.SUCCESS.code())
.setMessage(DEFAULT_SUCC... |
bdeae7c0-4eb5-42c3-a123-262f614c7451 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-17 03:44:15", "repo_name": "ageraldo1/Spring-demo-1", "sub_path": "/src/main/java/com/itktechnologies/annotations/SwimJavaConfigDemoApp.java", "file_name": "SwimJavaConfigDemoApp.java", "file_ext": "java", "fi... | package com.itktechnologies.annotations;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class SwimJavaConfigDemoApp {
public static void main(String args[]) {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SportConfig.class);
... |
25e945cd-b516-4b53-bec6-7fe3aa66c4cc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-16 02:54:17", "repo_name": "LvFish/RecommendForMovie", "sub_path": "/src/main/java/com/newclass/dao/MovieViewsDao.java", "file_name": "MovieViewsDao.java", "file_ext": "java", "file_size_in_byte": 751, "line_c... | package com.newclass.dao;
import org.hibernate.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created by liujiawang on 2019/3/12.
*/
@Repository("movieViewsDao")
public class MovieViewsDao extends BaseDao{
public String getNumberByMid(int mid){
String hql = "selec... |
d33e5ddb-004d-4ec5-9f37-895d7a7f5bf7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-05 04:19:37", "repo_name": "itzhang89/evernote-shared", "sub_path": "/yinxiang/src/main/java/top/ilovestudy/yinxiang/model/mapper/LabelMapper.java", "file_name": "LabelMapper.java", "file_ext": "java", "file_s... | package top.ilovestudy.yinxiang.model.mapper;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;
import top.ilovestudy.yinxiang.model.LabelDto;
import top.ilovestudy.yinxiang.model.entites.Label;
import java.util.List;
@Mapper
public interface LabelMapper {
LabelMappe... |
a99393c4-a9d1-407c-9ff9-3b7a7a18f240 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-19 03:42:38", "repo_name": "uccmawei/OneActivity", "sub_path": "/OneActivityLib/src/main/java/com/wei/android/lib/oneactivity/LibInnerPage.java", "file_name": "LibInnerPage.java", "file_ext": "java", "file_siz... | package com.wei.android.lib.oneactivity;
import android.widget.FrameLayout;
/**
* 对外暴露的底层,已经做好交互封装
*/
public abstract class LibInnerPage extends InnerPage {
protected FrameLayout mLayoutContainer; // 页面视图容器
protected LibInnerPage(PageActivity pageActivity) {
super(pageActivity);
... |
86dd16f2-9a8d-4610-8d28-ac795178c8ea | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-08 03:33:40", "repo_name": "nicrrr/mail-guide", "sub_path": "/wm-yongo-parent/yougo-util/src/main/java/yougo/util/config/RestTempleConfig.java", "file_name": "RestTempleConfig.java", "file_ext": "java", "file_... | package yougo.util.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
import yougo.util.client.RestTemplateUtil;
/**
*
* description:系统初始化创建服务间调用的RestTemplate的bean
* date: 2018年6月4... |
3098a010-87cc-41f6-9356-f94cde2601a6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-31 05:10:25", "repo_name": "MariuszSzewczak/PRO1ABD", "sub_path": "/pizza-portal/src/main/java/com/example/pizza/model/RolePermission.java", "file_name": "RolePermission.java", "file_ext": "java", "file_size_i... | package com.example.pizza.model;
import lombok.Data;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name = "role_permission")
@Data
public class RolePermission {
@Id @Column(name = "id")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "role_permission_pk_seq")
@Sequence... |
097f39ea-db7a-42e5-8dcd-8869b3d91840 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-11 20:37:41", "repo_name": "Mon13/Projects", "sub_path": "/Design Pattern Implementation/src/BirdFactory.java", "file_name": "BirdFactory.java", "file_ext": "java", "file_size_in_byte": 750, "line_count": 30, ... | package assignment5;
public class BirdFactory extends AbstractFactory{
private static BirdFactory birdfactory_singleton = new BirdFactory();
private BirdFactory() {
}
public static BirdFactory getInstance() {
return birdfactory_singleton;
}
@Override
public Animal getAnimal(String type,String... |
bb43fd3d-53bc-47c2-8408-17a2f83ca37b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-06 12:01:58", "repo_name": "ashu10988/POMstudy", "sub_path": "/src/main/java/framework/projectname/helper/logger/LoggerHelper.java", "file_name": "LoggerHelper.java", "file_ext": "java", "file_size_in_byte": 7... | package framework.projectname.helper.logger;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import framework.projectname.helper.resource.Resourcehelper;
public class LoggerHelper {
public static boolean root=false;
public static Logger getLogger(Class cls)
{
if (root)
{
r... |
72bb9a7e-66bf-417b-b2f6-17c65e85c7a1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-10-08 05:18:55", "repo_name": "shenli-uiuc/ndnrp", "sub_path": "/src/ipsrc/test/TestIPPub.java", "file_name": "TestIPPub.java", "file_ext": "java", "file_size_in_byte": 750, "line_count": 30, "lang": "en", "doc_t... | package ndnrp.ipsrc.test;
import ndnrp.ipsrc.server.*;
import ndnrp.ipsrc.client.*;
import ndnrp.protocol.*;
import ndnrp.util.*;
import java.net.*;
import java.io.*;
public class TestIPPub{
public static void main(String args[]){
IPClient ipc = new IPClient(Protocol.SERVER_IP, Protocol.SERVER_PORT,
... |
cba83009-d7d5-427a-9dd5-46ada94d28c4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-25 20:53:39", "repo_name": "elefus/epam-lab-concurrency-2018-05", "sub_path": "/src/main/java/lesson_2018_05_14/Example1.java", "file_name": "Example1.java", "file_ext": "java", "file_size_in_byte": 750, "line... | package lesson_2018_05_14;
import java.util.concurrent.TimeUnit;
public class Example1 {
public static void main(String[] args) throws InterruptedException {
Thread anotherThread = new Thread(() -> {
try {
while (true) {
System.out.println("Hello from anoth... |
280ff702-2107-4ad7-ae76-65e3a2936a10 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-06-22T15:23:41", "repo_name": "redxtech/zsh-show-path", "sub_path": "/readme.md", "file_name": "readme.md", "file_ext": "md", "file_size_in_byte": 752, "line_count": 35, "lang": "en", "doc_type": "text", "blo... | # show-path
> show-path is a zsh plugin that provides a function shows the `$PATH` line by line.
## Installing
### zinit
Add this to your zinit config (.zshrc):
```zsh
zinit light redxtech/zsh-show-path
# it also works with turbo mode:
zinit ice wait lucid
zinit load redxtech/zsh-show-path
```
### oh-my-zsh
Install... |
83d4712b-aaf8-4cfc-9ee5-3f6318a2fac8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-14 05:55:02", "repo_name": "CatSeed/NickCard", "sub_path": "/src/cc/baka9/nickcard/Config.java", "file_name": "Config.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 30, "lang": "en", "doc_t... | package cc.baka9.nickcard;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.configuration.file.FileConfiguration;
public class Config {
public static List<String> blacks;
public static String prefix;
public static String suffix;
public static int maxLeng;
public static void loa... |
b1668cd2-7337-4178-9182-83644512a068 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-15 15:08:39", "repo_name": "BananaNo1/microservicesprincloud", "sub_path": "/microservicecloud-provider-dept-8001/src/main/java/com/springcloud/service/impl/DeptServiceImpl.java", "file_name": "DeptServiceImpl... | package com.springcloud.service.impl;
import com.springcloud.service.DeptService;
import com.springcloud.dao.DeptMapper;
import com.springcloud.cfgbeans.entity.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public cl... |
7a0a3892-5845-49b5-b1e0-10e2a078d1fa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-17 02:45:51", "repo_name": "AbijayAnandRS/Kidos", "sub_path": "/kids/fragments/ItemFragment.java", "file_name": "ItemFragment.java", "file_ext": "java", "file_size_in_byte": 750, "line_count": 29, "lang": "en"... | package com.example.kids.fragments;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.kids.R;
import androidx.fragment.app.Fragment;
public class ItemFragment extends Fragment {
public static ItemFragment newInstance() {
... |
34eb1472-c092-4665-96a3-61a295aed462 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-04-15 20:29:09", "repo_name": "debayo/jdb", "sub_path": "/jaxb-unmarshal-string/src/main/java/be/jdb/jaxb/UnmarshalHelper.java", "file_name": "UnmarshalHelper.java", "file_ext": "java", "file_size_in_byte": 749, ... | package be.jdb.jaxb;
import java.io.StringReader;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import be.jdb.jaxb.model.Car;
public class UnmarshalHelper {
private static final L... |
8d51a44b-ec3d-48c7-9bc7-1e1bcf12e4d7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-29 17:59:45", "repo_name": "Kyrvix/Group-Project-Tenants", "sub_path": "/src/test/java/com/qa/tenantApi/main/testMain/repositoryTest/TenantRepoTest.java", "file_name": "TenantRepoTest.java", "file_ext": "java"... | package com.qa.tenantApi.main.testMain.repositoryTest;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
... |
7f55af39-764b-4ae1-b458-c60e2615403a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-24 22:17:40", "repo_name": "MustafaYounis27/Maraei-Alshamalia", "sub_path": "/app/src/main/java/com/mustafa/maraeialshamalia/Models/Asks/Data.java", "file_name": "Data.java", "file_ext": "java", "file_size_in_... |
package com.mustafa.maraeialshamalia.Models.Asks;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Data {
@SerializedName("id")
@Expose
private Integer id;
@SerializedName("ask")
@Expose
private String ask;
@SerializedName("answer... |
2fe61a24-85fd-45a6-a095-582c4a1bbbd8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-12-01T05:40:06", "repo_name": "jvff/things-gateway-rs", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 750, "line_count": 19, "lang": "en", "doc_type": "text", "blo... | # A Rust implementation for the Mozilla Things Gateway
Done as a part of the Rustfest 2018 Rome impl days. This repository is a fork of the [initial
prototype][initial]. It extends it with some [experimental Rust code][ipc] for the addon IPC
handling. The idea was to extend the webserver so that it could serve through... |
5c42f548-d9e8-42d4-9a9f-d2fe7e990290 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-15 04:02:53", "repo_name": "eretail/r2g", "sub_path": "/src/main/java/com/micro/rest/model/id/WarehouseId.java", "file_name": "WarehouseId.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 41,... | package com.micro.rest.model.id;
import java.io.Serializable;
import javax.persistence.Id;
public class WarehouseId implements Serializable {
@Id
private int wsNum;
public int getWsNum() {
return wsNum;
}
public void setWsNum(int wsNum) {
this.wsNum = wsNum;
}
@Override
public int ... |
e17f0a51-02b1-4d3d-97be-e2c3bac82219 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-07 15:45:35", "repo_name": "kdmandawe/rtr", "sub_path": "/src/main/java/com/rea/toyrobot/command/MoveCommand.java", "file_name": "MoveCommand.java", "file_ext": "java", "file_size_in_byte": 750, "line_count": ... | package com.rea.toyrobot.command;
import com.rea.toyrobot.robot.ToyRobot;
/**
* This class represents a Move Command which will be a result of parsing the 'MOVE'
* raw command input
*/
public class MoveCommand implements Command {
private final ToyRobot toyRobot;
/**
* Instantiates a new Move comman... |
03fc21dc-a48a-4d09-9dce-1a8d042f8892 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-01-10 16:38:08", "repo_name": "PacktPublishing/Java-EE-8-High-Performance-video-", "sub_path": "/Section3/jcache-examples/src/main/java/com/packtpub/performance/jcache/CachingProviderExample.java", "file_name": "... | package com.packtpub.performance.jcache;
import static com.packtpub.performance.jcache.Providers.PROVIDER_MAP;
import javax.cache.CacheManager;
import javax.cache.Caching;
import javax.cache.spi.CachingProvider;
/**
* Caching Provider Example
*/
public class CachingProviderExample {
public static void main(St... |
7bcfb7a1-6ce5-457a-8140-4b4ea38fcece | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-08 06:47:22", "repo_name": "raokiran841/Traffic-Offence-Management-System", "sub_path": "/src/main/java/com/tms/tmsapplication/joinedclasses/OffencePenalty.java", "file_name": "OffencePenalty.java", "file_ext"... | package com.tms.tmsapplication.joinedclasses;
import java.io.Serializable;
import java.util.HashMap;
public class OffencePenalty implements Serializable{
private String OffType;
private int penalty;
public OffencePenalty() {
}
public OffencePenalty(String offType, int penalty) {
OffTy... |
17bd508d-50e9-4e26-a41d-f6ca4a35e1d4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-04 07:28:08", "repo_name": "cvzy3986/EGPS", "sub_path": "/EGPS/src/AddScreenThread.java", "file_name": "AddScreenThread.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 29, "lang": "en", "doc... |
import java.awt.Rectangle;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import java.sql.Connection;
public class AddScreenThread extends Thread{
Connection conn;
IsAdminActive adminActive;
AddScreenThread(Connection conn,IsAdminActive adminActive)... |
efa0bf10-5a1d-4ed6-88dd-cf0eebb4dd3e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-01 01:12:19", "repo_name": "lloyddsilva/KBB", "sub_path": "/project1unit6-server/src/edu/cmu/lloyddsilva/server/BuildCarModelOptions.java", "file_name": "BuildCarModelOptions.java", "file_ext": "java", "file_s... | package edu.cmu.lloyddsilva.server;
import java.util.ArrayList;
import java.util.Properties;
import edu.cmu.lloyddsilva.adapter.BuildAuto;
import edu.cmu.lloyddsilva.model.Automobile;
//@Author: Lloyd D'Silva / ldsilva@andrew.cmu.edu
public class BuildCarModelOptions implements AutoServer {
AutoServer as;
protec... |
b1fa24fd-380f-4d88-92f2-36dcbcb5f24b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-08 07:19:44", "repo_name": "DenisPitsul/SolvdHomeWork", "sub_path": "/src/com/solvd/homework/factory_method/creator/ToyotaLandCruiserCreator.java", "file_name": "ToyotaLandCruiserCreator.java", "file_ext": "ja... | package com.solvd.homework.factory_method.creator;
import com.solvd.homework.vehicle.Vehicle;
import com.solvd.homework.vehicle.final_car.ToyotaLandCruiser;
public class ToyotaLandCruiserCreator implements CarCreator {
private static final int CLEARANCE_LENGTH = 55;
/**
* create Toyota Land Cruiser inst... |
0a5ffeac-6557-471c-aba0-86fe4ba79e9d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-12T09:49:44", "repo_name": "Araknor99/schulcloud-mobile-android", "sub_path": "/app/src/test/java/org/schulcloud/mobile/data/model/requestBodies/CredentialsTest.java", "file_name": "CredentialsTest.java", "fil... | package org.schulcloud.mobile.data.model.requestBodies;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class CredentialsTest {
private static final String USERNAME = "ERNST";
private static final String PASSWORD = "1234567890";
private Credentials cre... |
55a22317-57bc-4af3-ab2e-e7f0aa36cafc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-10 13:04:09", "repo_name": "Aamiralikhan/LatinMaps", "sub_path": "/app/src/main/java/com/latinmaps/app/models/CountryListModel.java", "file_name": "CountryListModel.java", "file_ext": "java", "file_size_in_byt... | package com.latinmaps.app.models;
import java.util.ArrayList;
/**
* Created by Administrator on 1/22/2016.
*/
public class CountryListModel {
private String countryName;
private String countryCode;
public CountryListModel(String countryName, String countryCode) {
this.setCountryNa... |
7f5d5625-9bd9-4580-aa99-752d6ac005a4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-05-27T16:21:09", "repo_name": "Laymer/bondy", "sub_path": "/apps/bondy_broker_bridge/doc/bondy_broker_bridge.md", "file_name": "bondy_broker_bridge.md", "file_ext": "md", "file_size_in_byte": 753, "line_count... |
# Module bondy_broker_bridge #
* [Description](#description)
This module defines the behaviour for providing event bridging
functionality, allowing
a supervised process (implemented via bondy_subscriber) to consume WAMP
events based on a normal subscription to publish (or
produce) those events to an external system,... |
34cd3ca3-16c6-48fa-9dce-a8acae895d21 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-11 03:37:20", "repo_name": "angga30/Absensi", "sub_path": "/src/java/util/inRender.java", "file_name": "inRender.java", "file_ext": "java", "file_size_in_byte": 750, "line_count": 29, "lang": "en", "doc_type":... | /*
* 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 util;
/**
*
* @author angga
*/
import mapping.TableUser;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
impo... |
b00eff6c-d59f-41f5-86ad-538cd2bcd4bd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-15 13:17:27", "repo_name": "egor-avksentyev/lesson_08_POM", "sub_path": "/src/main/java/com/qa/pom/pages/MyAccount.java", "file_name": "MyAccount.java", "file_ext": "java", "file_size_in_byte": 750, "line_coun... | package com.qa.pom.pages;
import com.qa.pom.base.BaseTest;
import org.junit.Assert;
import org.openqa.selenium.By;
public class MyAccount extends AbstractPage {
private String REG_NAME = "test testw";
private String NAME_XPATH = "//a[contains(@class,'account')]/span";
/**
* Constructor
*
... |
2c52ed86-817e-458f-871b-51d838765097 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-11-06T21:24:32", "repo_name": "EkremC/SpotifyArchive", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 749, "line_count": 14, "lang": "en", "doc_type": "text", "blob... | # Spotify Archive
Helps you to archive tracks from your Discover Weekly and Release Radar into your archive playlists
### **Usage**
1) You have to create an app on the Spotify Developer page and get a client id and client secret.
2) The app doesn't create new archive playlists. You have to create them.
3) After the ab... |
0e94a70c-9cd0-49f0-836d-6dc2941155ea | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-12-28 14:15:30", "repo_name": "BGCX067/faas-aa-svn-to-git", "sub_path": "/trunk/faas_aa/src/com/fortunes/faas/vo/HolidayCountVO.java", "file_name": "HolidayCountVO.java", "file_ext": "java", "file_size_in_byte": ... | package com.fortunes.faas.vo;
import net.fortunes.core.Model;
public class HolidayCountVO extends Model{
private Long employeeId;
private String code;
private double count;
public HolidayCountVO(){}
public HolidayCountVO(Long employeeId,String code,double count){
this.employeeId = employe... |
7fd03487-6183-4660-886c-5c4ecb543e54 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-02-22 08:43:07", "repo_name": "react-native-google-cast/react-native-google-cast", "sub_path": "/android/src/main/java/com/reactnative/googlecast/types/RNGCVideoInfo.java", "file_name": "RNGCVideoInfo.java", "fil... | package com.reactnative.googlecast.types;
import androidx.annotation.Nullable;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.bridge.WritableNativeMap;
import com.google.android.gms.cast.VideoInfo;
import com.google.android.gms.common.images.WebIm... |
f60cc65c-b579-4da8-80dd-3f28ddc297d5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-07-07T00:26:21", "repo_name": "ttimasdf/moegirl4kindle", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 900, "line_count": 28, "lang": "en", "doc_type": "text", "bl... | # moegirl4kindle
Kindle screensaver generator, R18. Custom sized screensavers available for all species(KT/PW/PW2/KT2/KV/PW3/KOA/KT3)
这是一个为Kindle Touch/Kindle PaperWhite/Kindle Oasis/Kindle Voyage全机种生成萌娘壁纸的小程序!
# Installation
```shell
pip install -r requirements.py
```
# Usage
e.g. Use Image source from Konachan ... |
2cf0cbbc-6127-48ab-9f2a-62260d864cb4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-09 15:59:46", "repo_name": "diogoflorencio/Engenharia-de-Software-", "sub_path": "/Stude2.0/app/src/main/java/com/ufcg/es/stude20/extras/PreferencesManager.java", "file_name": "PreferencesManager.java", "file_... | package com.ufcg.es.stude20.extras;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by Notebook on 15/04/2016.
*/
public class PreferencesManager {
public static final String ENTERING_FIRST_TIME = "EnteringFirstTime";
public static void storeInt(Context context, Stri... |
034a71a4-dc3b-4400-b2d2-ec2413ee4fd9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-27 06:20:41", "repo_name": "AkmaB/Book-Store", "sub_path": "/BookStore1/src/Server.java", "file_name": "Server.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 27, "lang": "en", "doc_type": "... | import java.io.IOException;
import java.io.Serializable;
import java.net.ServerSocket;
import java.net.Socket;
public class Server {
public static void main(String[] args) throws IOException {
//ServerSocket listening
try {
ServerSocket ss = new ServerSocket(2001);
... |
17eb940f-1533-4570-9c24-fc9e17963174 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-19 08:22:00", "repo_name": "idontgotit/primeface", "sub_path": "/src/main/java/com/example/controller/ThemeService.java", "file_name": "ThemeService.java", "file_ext": "java", "file_size_in_byte": 749, "line_c... | package com.example.controller;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;
import javax.inject.Inject;
import com.example.entity.UserPhoto;
import com.example.service.User_photoService;
@ManagedBean(name = "themeServi... |
1dc25729-b963-442c-add8-c1760ac34b39 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-14 02:52:32", "repo_name": "mideming/JUC", "sub_path": "/src/main/java/com/mideming/juc/T11_ThreadPool/T03_Callable.java", "file_name": "T03_Callable.java", "file_ext": "java", "file_size_in_byte": 758, "line_... | package com.mideming.juc.T11_ThreadPool;
import java.util.concurrent.*;
public class T03_Callable {
public static void main(String[] args) throws ExecutionException, InterruptedException {
Callable<String> c = new Callable<String>() {
@Override
public String call() throws Exception... |
e78070f8-c230-4ded-9724-dd2324e73997 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-26 19:04:34", "repo_name": "devendra2014/Singtel_exam_code_java", "sub_path": "/Singtel_java/src/fish/ClownfishTest.java", "file_name": "ClownfishTest.java", "file_ext": "java", "file_size_in_byte": 751, "line... | package fish;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class ClownfishTest {
public ClownfishTest()
{
}
@Test
public void smallTestPass() {
Clownfish ch = new Clownfish();
assertTrue("Clownfish are small".equals(ch.small()));
}
@Test
public ... |
c1fc04db-4da1-45f2-8d31-d1bf802fbe49 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-02-23T19:05:22", "repo_name": "beffiom/void-post-installer", "sub_path": "/virt-manager.md", "file_name": "virt-manager.md", "file_ext": "md", "file_size_in_byte": 750, "line_count": 30, "lang": "en", "doc_ty... | #network
virsh -c qemu:///system net-autostart default
virsh -c qemu:///system net-start default
#passthrough
type: mount
driver: path
mode: passthrough
write policy: immediate
sudo mount -t 9p -o trans=virtio,version=9p2000.L /hostshare share
#pulse audio passthrough
1. doas nvim /etc/libvirt/qemu.conf
2. change `u... |
433a95f3-d278-46be-841d-e0bb25ad6a0b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-30 00:52:53", "repo_name": "patrickweege/SaGUI", "sub_path": "/sagui-parent/sagui-render-web/src/main/java/com/sagui/ext/controller/textbox/JextTextBoxController.java", "file_name": "JextTextBoxController.java... | package com.sagui.ext.controller.textbox;
import com.sagui.ext.controller.IActionResult;
import com.sagui.ext.controller.IJextAction;
import com.sagui.ext.controller.IJextController;
import com.sagui.model.editable.editbox.FatuTextBox;
public class JextTextBoxController implements IJextController<FatuTextBox> ... |
4499bab0-73c6-428d-9f62-e17bc3a9c297 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-17 14:11:17", "repo_name": "sorooshbagheri/AP-TA-Spring98", "sub_path": "/src/game/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 752, "line_count": 39, "lang": "en", "doc_type"... | package game;
import javax.swing.*;
import java.awt.*;
/**
* Created by sorooshbagheri on 19/03/13.
*/
public class Main {
public static void main(String[] args) {
//EDT thread
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
cr... |
c29bf6b8-9e44-4904-a4ac-b8bd6c538008 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-23 15:07:59", "repo_name": "carbage/RuneMate-API", "sub_path": "/darkapi/script/task/impl/banking/WithdrawTask.java", "file_name": "WithdrawTask.java", "file_ext": "java", "file_size_in_byte": 750, "line_count... | package darkapi.script.task.impl.banking;
import com.runemate.game.api.hybrid.local.hud.interfaces.Bank;
import darkapi.script.utils.PlayerInfo;
/**
* Created by Valkyr on 12/09/15.
*/
public class WithdrawTask extends BankingTask {
private final String itemName;
private final int amount;
public Withdr... |
d8be8ebf-f1db-48f4-8d34-e59379bf7b7b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-27 13:36:45", "repo_name": "sunphiz/IngrediSearch-demo", "sub_path": "/app/src/main/java/com/demo/ingredisearch/features/details/RecipeDetailsViewModelFactory.java", "file_name": "RecipeDetailsViewModelFactory... | package com.demo.ingredisearch.features.details;
import android.app.Application;
import androidx.annotation.NonNull;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;
public class RecipeDetailsViewModelFactory implements ViewModelProvider.Factory {
private Application app;
p... |
1e8f7a90-87d4-41cf-ac83-d83e9d5d1962 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-08-30 10:27:11", "repo_name": "ZeitnotSWE/sHike", "sub_path": "/Codice/Android/app/src/main/java/shike/app/model/service/HelpNumberService.java", "file_name": "HelpNumberService.java", "file_ext": "java", "file_s... | package shike.app.model.service;
import android.content.Context;
import java.util.List;
import shike.app.model.dao.helpnumber.HelpNumberDao;
import shike.app.model.dao.helpnumber.HelpNumberDaoImpl;
import shike.app.model.user.HelpNumber;
/**
* Classe service che fa da ponte tra i presenter e il DAO dei numeri di s... |
4ea066ff-49ea-4e93-9fb0-bac6b161b8d4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-27 10:54:48", "repo_name": "976112643/htdocs_source", "sub_path": "/html_reptile/Test/src/html_reptile/DBBase.java", "file_name": "DBBase.java", "file_ext": "java", "file_size_in_byte": 750, "line_count": 35, ... | package html_reptile;
import java.io.File;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class DBBase {
public static String DB_NAME = "urls.db";
static {
try {
Class.forName("org.sqlite.JDBC");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}... |
c9712124-24d3-46a9-9a6e-c82370c49b18 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-07 15:13:58", "repo_name": "chuckie-xch/java-core", "sub_path": "/java-design-patterns/pattern-summary/src/main/java/com/bestcode/pattern/summary/proxy/jdk/StockHandler.java", "file_name": "StockHandler.java",... | package com.bestcode.pattern.summary.proxy.jdk;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
/**
* @author <a href="mailto:1205241831@qq.com">Xch</a>
* @version 1.00
* @see
* @since 2018.07.05
*/
public class StockHandler implements InvocationHandler {
private Object target;
... |
68e200ab-d280-4da2-b1f1-9c9637ae66ba | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-05-31T13:39:25", "repo_name": "celgene-research/mgp_doublehit", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 752, "line_count": 16, "lang": "en", "doc_type": "tex... | # Overview #
This repository contains code utilized for the "A Double Hit, High Risk Group of Newly Diagnosed Myeloma Identified by Genomic Analysis" publication by Walker et al, 2018.
# Contents #
*CopyNumber*: This directory contains the scripts necessary to process ControlFreec output and call copy number on a per... |
157676fe-30fe-47e3-b42b-e92af6183ba9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-25 18:25:43", "repo_name": "harshchiki/NLP", "sub_path": "/src/main/java/nlp/ner/NERResult.java", "file_name": "NERResult.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 40, "lang": "en", "d... | package nlp.ner;
import java.util.Optional;
public class NERResult<T> {
private String type;
private Optional<T> value;
public NERResult(final String type, final T value){
this.value = Optional.of(value);
this.type = type;
}
public String getType() {
return type;
}
public Optiona... |
87ab1023-2a0a-43f3-9248-3e5e69145da7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-03 06:58:56", "repo_name": "poojadubey39/ThreadPool", "sub_path": "/src/main/java/org/practice/threadpool/manager/ThreadPoolExecutor.java", "file_name": "ThreadPoolExecutor.java", "file_ext": "java", "file_siz... | package org.practice.threadpool.manager;
import org.practice.blocking.queue.CustomBlockingQueue;
import org.practice.blocking.queue.CustomQueue;
public class ThreadPoolExecutor {
private static CustomQueue<Runnable> customBlockingQueue;
private static int maxThreadCount;
private static int currentThreadC... |
cabe33a1-1b7c-44a4-961a-2d8bf4d028a2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-20 10:11:40", "repo_name": "kmcmounika/studentApp", "sub_path": "/src/com/app/Teacher.java", "file_name": "Teacher.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 41, "lang": "en", "doc_type... | package com.app;
public class Teacher
{
private int tid;
private String tname;
private double tsal;
private String taddr;
public Teacher(int tid, String tname, double tsal, String taddr) {
super();
this.tid = tid;
this.tname = tname;
this.tsal = tsal;
this.taddr = taddr;
}
public int getTid() {
r... |
3a789e03-7978-47db-ada1-b4e67b1bd817 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-11-06 16:28:24", "repo_name": "jrdalpra/liquibase-hibernate", "sub_path": "/src/main/java/liquibase/ext/hibernate/database/CustomConfigurator.java", "file_name": "CustomConfigurator.java", "file_ext": "java", "fi... | package liquibase.ext.hibernate.database;
import org.hibernate.cfg.Configuration;
public class CustomConfigurator {
private ConfigLocator locator;
public CustomConfigurator(ConfigLocator locator) {
this.locator = locator;
}
public Configuration getConfiguration() {
try ... |
c0f00cb4-021c-4730-8ad2-804f6281d4f6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-19 01:09:51", "repo_name": "CindoddCindy/DataKontak", "sub_path": "/app/src/main/java/cindodcindy/tonjootest/contactlist/model/ResponLoginTonjo.java", "file_name": "ResponLoginTonjo.java", "file_ext": "java", ... |
package cindodcindy.tonjootest.contactlist.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class ResponLoginTonjo {
@SerializedName("token")
@Expose
private String token;
/**
* No args constructor for use in serialization
*
... |
02e6797a-9e35-456c-a6db-c0b884173005 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-21 05:12:55", "repo_name": "vinocturne/standard-project", "sub_path": "/src/main/java/org/standard/project/brand/BrandDBDAO.java", "file_name": "BrandDBDAO.java", "file_ext": "java", "file_size_in_byte": 751, ... | package org.standard.project.brand;
import java.util.List;
import java.util.Map;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.standard.project.customer.CustomerVO;
@Repository("brand... |
ece7e684-aba7-4ce7-a9fa-ad8da18d20d5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-04-22T11:31:43", "repo_name": "csci3250-2019/student-1155108893", "sub_path": "/readme.md", "file_name": "readme.md", "file_ext": "md", "file_size_in_byte": 750, "line_count": 43, "lang": "en", "doc_type": "t... | # *Introduction*
## **About me**
I am Li Kin Sing, a student in Computer Science.
i am doing the project milestone #2 now
# *Experience*
## **Programming language**
* C
* Java
* JavaScript
* SQL
## **GitHub**
I still don't know anything in GitHub.
i hope i can know more about it.
# Hobbies
## games
i ... |
8e09fa52-e832-4f2a-8d94-001dd2701e3d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-04-15 07:31:35", "repo_name": "kfirst/OFSim", "sub_path": "/simulator/src/csnet/openflow/component/receiver/Receiver.java", "file_name": "Receiver.java", "file_ext": "java", "file_size_in_byte": 750, "line_count"... | package csnet.openflow.component.receiver;
import csnet.openflow.component.Device;
import csnet.openflow.component.link.Link;
import csnet.openflow.logger.Logger;
import csnet.openflow.packet.model.Packet;
public class Receiver implements Device {
private Link input;
private Logger logger;
@Override
public boole... |
0a679641-799d-411e-8498-f86cd6b35680 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-05 17:45:16", "repo_name": "bahadrzeren/heuros-core", "sub_path": "/src/main/java/org/heuros/core/rule/proxy/IntroducerProxy.java", "file_name": "IntroducerProxy.java", "file_ext": "java", "file_size_in_byte":... | package org.heuros.core.rule.proxy;
import org.heuros.core.data.base.Model;
import org.heuros.core.rule.intf.Introducer;
import org.heuros.core.rule.repo.RuleRepository;
/**
* Proxy class for Introducer rule implementations.
*
* @author bahadrzeren
*
* @param <M> Type of the model instances that will be initial... |
e46a9c43-4a43-48b5-88b1-8b68fe97be8f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-09 15:27:45", "repo_name": "mesa16/PWEBchat2", "sub_path": "/app/src/main/java/com/example/toshiba_l15w/pwebchat/ProfilActivity.java", "file_name": "ProfilActivity.java", "file_ext": "java", "file_size_in_byte... | package com.example.toshiba_l15w.pwebchat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
public class ProfilActivity extends AppCompatActivity {
TextView tvnama, tvemail, tvnomor;
User user;
@Override
protected void onCreate(Bundle savedIns... |
5a10bcc6-87f8-4248-9812-c5c8b8ab50c3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-02 08:46:59", "repo_name": "ljb021027/hhrpc", "sub_path": "/hhrpc-demo/hhrpc-demo-consumer/src/main/java/com/ljb/hhrpc/demo/consumer/TessController.java", "file_name": "TessController.java", "file_ext": "java"... | package com.ljb.hhrpc.demo.consumer;
import com.ljb.hhrpc.demo.api.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
... |
5c028559-6732-4074-a4f9-9593e3cce5b6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-04-14 10:16:41", "repo_name": "hwaastad/TomEECDI", "sub_path": "/TomEECDI-web/src/main/java/org/waastad/tomeecdiinject/controller/ApplicationController.java", "file_name": "ApplicationController.java", "file_ext"... | /*
* 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 org.waastad.tomeecdiinject.controller;
import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScope... |
b6ac23b2-00fc-4dff-b57b-9c1a9aafb03d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-02 05:34:27", "repo_name": "amit4alljava/CoreJava10W", "sub_path": "/FileHandling/DirCommandDemo.java", "file_name": "DirCommandDemo.java", "file_ext": "java", "file_size_in_byte": 750, "line_count": 37, "lang... | import java.io.File;
import java.util.Date;
public class DirCommandDemo {
public static void main(String[] args) {
File file = new File("E:\\TestingFileHandling");
/*String allFiles[] = file.list();
for(String f : allFiles){
System.out.println(f);
}*/
String type = "";
int fileCounter = 1;
File all... |
f2f2ec00-cbb2-46ed-a819-a58e103a6386 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-28 20:35:46", "repo_name": "niemczyk13/ChatClientV3.3", "sub_path": "/src/main/java/com/niemiec/games/battleship/command/order/game/GiveUp.java", "file_name": "GiveUp.java", "file_ext": "java", "file_size_in_b... | package com.niemiec.games.battleship.command.order.game;
import com.niemiec.chat.command.type.messages.game.battleship.BattleshipGameInterface;
public class GiveUp implements BattleshipGameInterface {
public static final int GIVE_UP = 0;
public static final int CANCEL = 1;
private int typeOfGame;
private String... |
fc5a1974-7d55-4e11-8fcb-9ae0b199d644 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-11-14 03:08:15", "repo_name": "wmndev/Slatly", "sub_path": "/slatly/src/main/java/com/slatly/arch/platform/db/model/message/Distribution.java", "file_name": "Distribution.java", "file_ext": "java", "file_size_in_... | package com.slatly.arch.platform.db.model.message;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class Distribution implements Serializable {
private static final long serialVersionUID = -1195920293513577386L;
private List<Criteria> criterias;
private short maxUsersAl... |
fc50860a-26ce-44c1-b3a2-5b6fb38700dd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-05-02T08:20:22", "repo_name": "karakanb/imgur-opener", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 749, "line_count": 23, "lang": "en", "doc_type": "text", "blob... | # Imgur Opener
This is an extension to display Imgur based images on Google Chrome, which are not available in Turkey. All the image request for `*.imgur.com` are proxied to `https://image-proxy.now.sh` address, which is a simple proxy server.
The script that powers the extension is a simple URL listener only, which ... |
df2f7040-9ab8-4983-ae71-853c69b15c1c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-05 07:57:24", "repo_name": "Richard-ZHOU1026/SpringSecurityCASDemo", "sub_path": "/src/main/java/controller/LoginContorller.java", "file_name": "LoginContorller.java", "file_ext": "java", "file_size_in_byte": ... | package controller;
import javax.servlet.http.HttpSession;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class LoginContor... |
3c9af04a-27d6-4a43-9161-cf70cda28567 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-07-15 08:45:37", "repo_name": "yourcaptain/tinydb", "sub_path": "/src/test/tonivade/db/command/server/SlaveOfCommandTest.java", "file_name": "SlaveOfCommandTest.java", "file_ext": "java", "file_size_in_byte": 609... | /*
* Copyright (c) 2015, Antonio Gabriel Muñoz Conejo <antoniogmc at gmail dot com>
* Distributed under the terms of the MIT License
*/
package tonivade.db.command.server;
import org.junit.Rule;
import org.junit.Test;
import tonivade.db.TinyDBRule;
import tonivade.db.command.CommandRule;
import tonivade.db.comman... |
96e58987-2176-4b32-92b7-ff673b1d7760 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-06-30T05:52:54", "repo_name": "NZMinusDev/frontend-core", "sub_path": "/app/src/utils/global/readme.md", "file_name": "readme.md", "file_ext": "md", "file_size_in_byte": 786, "line_count": 19, "lang": "en", "... | # Folder description
```tree
│ global.decl.ts // used in webpack for adding modules
│ readme.md
│
└───modules
├───css
│ fonts.ts // preinstalled fonts
│ normalize.css // [normalization](https://necolas.github.io/normalize.css/) of browsers' styles in depends of browserslist in package.json
... |
3a04da2c-9791-4120-963e-06b13275ef38 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-19 09:58:49", "repo_name": "wenqiruyu/shuzhai-book", "sub_path": "/src/main/java/com/shuzhai/book/common/bean/Category.java", "file_name": "Category.java", "file_ext": "java", "file_size_in_byte": 833, "line_c... | package com.shuzhai.book.common.bean;
import lombok.Data;
import java.util.Date;
/**
* 分类表
*/
@Data
public class Category {
private Long id;
// 分类的父类id 0表示根分类
private Long parentId;
private String name;
// 分类状态 0表示废弃 1表示使用状态 默认1
private Integer status;
// 类别编号排序 同类展示的排序
private Int... |
c182d524-f647-4ee4-8656-a0878e74a4eb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-18 02:08:33", "repo_name": "minhlk/JavaSocketPaperScissorRock", "sub_path": "/src/ChatSample/ClientObject.java", "file_name": "ClientObject.java", "file_ext": "java", "file_size_in_byte": 749, "line_count": 40... | /*
* 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 ChatSample;
import java.io.Serializable;
/**
*
* @author HK
*/
public class ClientObject implements Serializable{
... |
4f3791e4-c336-45e7-aa45-ec2a9b86dc15 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-07-16T22:13:40", "repo_name": "sezinbhr/Rock-Paper-Scissors-Game-JavaScript-Adv", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 757, "line_count": 18, "lang": "en"... | # Rock-Paper-Scissors-Game/Frontend Mentor Advanced Challenge
It's a frontend mentor advanced challenge. If you want to join this challenge the frontend mentor gives you an [empty template](https://www.frontendmentor.io/challenges/rock-paper-scissors-game-pTgwgvgH). This challenge can really help you to sharpen your f... |
f6af5524-cb30-4607-ab77-2ee6cdb1fd24 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-14 20:40:53", "repo_name": "lukas-r/cc-extraction-framework", "sub_path": "/src/queue/MethodRunner.java", "file_name": "MethodRunner.java", "file_ext": "java", "file_size_in_byte": 749, "line_count": 47, "lang... | package queue;
public class MethodRunner {
private int interval;
private Runnable method;
Runner runner;
Thread daemon;
public MethodRunner(int interval, Runnable method) {
this.interval = interval;
this.method = method;
}
public void start() {
if (this.runner == null) {;
this.runner = new Runner... |
94b91b7a-77ab-4579-b19c-66126ae2e0f2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-26 19:17:28", "repo_name": "Sonechok/Logos-Java-Core", "sub_path": "/Core/src/com/sasha/lesson20/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 750, "line_count": 26, "lang": "e... | package com.sasha.lesson20;
import java.util.*;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class Main {
public static void main(String[] args) throws InterruptedException {
Scanner scanner = new Scanner(System.in);
ExecutorService executor = Executor... |
bcbeaad0-6b64-4406-a63a-f467a8ecb5c2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-14 03:06:07", "repo_name": "YuanChenM/xcdv1.5", "sub_path": "/Services/msk-common/src/main/java/com/msk/br/bean/IBR121411RsResult.java", "file_name": "IBR121411RsResult.java", "file_ext": "java", "file_size_in... | package com.msk.br.bean;
import com.msk.common.bean.RsPageResult;
import com.msk.core.entity.BrBuyerPool;
import java.util.List;
public class IBR121411RsResult extends RsPageResult {
private List<BrBuyerPool> brBuyerPoolList;
/**
* Getter method for property <tt>brBuyerPoolList</tt>.
*
* @r... |
566a873a-49b9-482b-a35b-38dde784cfde | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-27 11:11:33", "repo_name": "ryansunboy/Rocket", "sub_path": "/rocket-parse/src/test/java/org/snail/rocket/TaskModeXmlParseTest.java", "file_name": "TaskModeXmlParseTest.java", "file_ext": "java", "file_size_in... | package org.snail.rocket;
import com.alibaba.fastjson.JSON;
import org.snail.rocket.support.TaskConfig;
import java.io.InputStream;
import java.util.List;
/**
* ${DESCRIPTION}
*
* @author shouchen<shouchen21647@hundsun.com>
* @create 2017-11-28 16:20
*/
public class TaskModeXmlParseTest {
public static v... |
5c669c65-b3b5-45a5-a8fd-badc3da23fe3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-09-17T15:41:36", "repo_name": "kariyyahm/w-wheel", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 929, "line_count": 43, "lang": "zh", "doc_type": "text", "blob_id"... | # w-wheel - 一个 Vue UI 组件
[](https://travis-ci.org/kariyyahm/w-wheel)
## 介绍
这是我在学习 Vue 时制作的一个 UI 框架,希望它可以对你有帮助。<br>
1. 添加 css 样式
使用本框架前,请在 css 中启用 border-box
```
*, *::before, *::after {box-sizing: border-box;}
```
IE 8 及以上浏览... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.