id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
6798a885-0fe9-4589-8c4b-b20b794aba1b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-08 18:56:09", "repo_name": "ragnar-lothbrok/mailgun-communicator", "sub_path": "/src/main/java/com/demo/models/MailModel.java", "file_name": "MailModel.java", "file_ext": "java", "file_size_in_byte": 624, "lin... | package com.demo.models;
import java.io.Serializable;
import java.util.LinkedHashSet;
import java.util.Set;
public class MailModel implements Serializable{
private static final long serialVersionUID = 1L;
private Set<String> receiverList = new LinkedHashSet<String>();
private String mailTemplate;
public Set<Stri... |
0a86deb9-cc21-461f-b8ef-6490f9f6c00c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-30 10:31:19", "repo_name": "kristianPaek/YouthleapWeb", "sub_path": "/YouthleapAndroid/Android/app/src/main/java/com/tech/oscar/youthleap/model/base/BaseWallet.java", "file_name": "BaseWallet.java", "file_ext"... | package com.tech.oscar.youthleap.model.base;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.Date;
public class BaseWallet {
@SerializedName("wallet_id") @Expose
public int walletId;
@SerializedName("user_id") @Expose
public int userId;
... |
d737d4e4-3ac0-47b3-bdc5-d62a3b23f5b2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-31 00:14:26", "repo_name": "dodziraynard/Timetable", "sub_path": "/app/src/main/java/com/innova/timetable/paging/LessonDataSourceFactory.java", "file_name": "LessonDataSourceFactory.java", "file_ext": "java", ... | package com.innova.timetable.paging;
import android.content.Context;
import androidx.paging.DataSource;
import com.innova.timetable.models.Lesson;
public class LessonDataSourceFactory extends DataSource.Factory<Integer, Lesson> {
private Context mContext;
private LessonDataSource mDataSource;
... |
4b508bc5-57ae-49da-bf5d-d1791365c9c1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-26 15:55:49", "repo_name": "khamtran411/B-tree", "sub_path": "/2-3Tree/src/Tree.java", "file_name": "Tree.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": 35, "lang": "en", "doc_type": "code"... | public class Tree {
public Node root;
public Tree() {
root = null;
}
public void insert(int data) {
if (root == null) {
root = new Node(data);
}
else {
root.modifyInsert(data);
root.shift();
}
}
public int size(int val)
{ int size=0,count=0;
Node temp=root.search(v... |
29691a31-d5f8-4da4-a177-eea028dae84d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-11 11:39:43", "repo_name": "Yzygenius/jianfuzengxiao", "sub_path": "/src/com/jianfuzengxiao/base/entity/CallBack.java", "file_name": "CallBack.java", "file_ext": "java", "file_size_in_byte": 624, "line_count":... | package com.jianfuzengxiao.base.entity;
public class CallBack {
protected boolean result;
protected String msg;
protected Object data;
public boolean isResult() {
return result;
}
public void setResult(boolean result) {
this.result = result;
}
public String getMsg() {
return msg;
}
public void s... |
3b1f2502-0793-4be0-a0db-faf6bc444dfa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-21 03:49:43", "repo_name": "joshfeds/Federman-cop3330-assignment3", "sub_path": "/src/test/java/ex43/base/folderOptionsTest.java", "file_name": "folderOptionsTest.java", "file_ext": "java", "file_size_in_byte"... | package ex43.base;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class folderOptionsTest {
@Test
void willCreateFolder() {
folderOptions folderOptions = new folderOptions();
boolean expected = true;
boolean actual = folderOptions.willCreateFolde... |
6544f529-0154-4231-9674-3f2ca11f958c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-05-02 15:09:57", "repo_name": "jibin-tomy/survivor_man", "sub_path": "/HighScoreKeeper.java", "file_name": "HighScoreKeeper.java", "file_ext": "java", "file_size_in_byte": 624, "line_count": 24, "lang": "en", "do... | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
public class HighScoreKeeper extends Actor implements Score
{
private int totalcount = 0;
public HighScoreKeeper(String text)
{
setImage(new GreenfootImage(text, 10, Color.WHITE, Color.BLACK));
... |
811c06b2-10bb-4782-845c-cb98a845ba41 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-25 16:55:46", "repo_name": "RafaelMScience/ProjetoSeagate", "sub_path": "/app/src/main/java/com/rafaelm/projetos_beta/Ironwolf.java", "file_name": "Ironwolf.java", "file_ext": "java", "file_size_in_byte": 626,... | package com.rafaelm.projetos_beta;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
public class Ironwolf extends AppCompatActivity {
private Toolbar toolbar;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.... |
01899543-2620-4ea3-b22e-3b1d7222babf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-03 12:21:45", "repo_name": "Clinton112/PE1", "sub_path": "/src/main/test/ReversewithoutLoopsTest.java", "file_name": "ReversewithoutLoopsTest.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": ... | package com.company;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class ReversewithoutLoopsTest
{
ReversewithoutLoops object;
@Before
public void setUp() throws Exception
{
System.out.println("before");
object=new Rev... |
a2456c4e-0629-4f0a-be0c-dd0546d796de | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-10 14:40:11", "repo_name": "dkg4484/POM", "sub_path": "/src/execution/HelloWorld.java", "file_name": "HelloWorld.java", "file_ext": "java", "file_size_in_byte": 624, "line_count": 36, "lang": "en", "doc_type":... | package execution;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import utility.Functions;
public class HelloWorld {
static WebDriver driver;
public static void main(String[] args) {
driver = Functions.browserFactory("browser");
WebElement ele1 ... |
66930da7-7bdb-4843-a0c7-de722458d2a0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-30 03:28:09", "repo_name": "ghjo92/Java_Fundamental", "sub_path": "/src/java_20190805/APIExamCaptchaDemo.java", "file_name": "APIExamCaptchaDemo.java", "file_ext": "java", "file_size_in_byte": 665, "line_count... | package java_20190805;
import java.util.Scanner;
import bonus.Utility;
public class APIExamCaptchaDemo {
public static void main(String[] args) {
String id = "6_dKNl9mGqkwD01Alo_I";
String secret = "UXbzdcKxOg";
String key = Utility.getCaptchaKey(id, secret);
boolean isSuccess = Utility.i... |
ef25b005-fb3e-4d66-ad74-9074c2d9634a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-19 06:36:05", "repo_name": "ab12gu/test-repo", "sub_path": "/src/main/java/com/team254/frc2021/controlboard/GamepadButtonControlBoard.java", "file_name": "GamepadButtonControlBoard.java", "file_ext": "java", "... | package com.team254.frc2021.controlboard;
import com.team254.frc2021.Constants;
public class GamepadButtonControlBoard implements IButtonControlBoard {
private final double kDeadband = 0.15;
private static GamepadButtonControlBoard mInstance = null;
public static GamepadButtonControlBoard getInstance() {... |
4524e63f-de8f-4464-b416-3177f41720b8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-11-06T20:10:17", "repo_name": "japjeet1975/Quiz-Challenge", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 626, "line_count": 18, "lang": "en", "doc_type": "text", ... | assignment4
Created a Coding Quiz Challeneg which is based on time
Once you START the quiz , you will be given 100 seconds to complete the whole quiz.
If any answer selected is wrong , you will get a message displaying the correct answer and 10 seconds will be deducted from your time left .
If you run out of tim... |
99df7ec4-e64d-4d1c-929e-a4c605791333 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-29 11:13:45", "repo_name": "KasunDon/OffersAPI", "sub_path": "/src/main/java/com/worldpay/offersapi/domain/entity/OfferInitializingFactory.java", "file_name": "OfferInitializingFactory.java", "file_ext": "java... | package com.worldpay.offersapi.domain.entity;
import java.math.BigDecimal;
import java.time.Instant;
public class OfferInitializingFactory {
public Offer create(
int merchantId,
int offerId,
String description,
String currency,
BigDecimal amount,
Instant expiryTime... |
01c7bfb3-edec-4d11-bdee-4aadb9b970df | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-21 12:47:46", "repo_name": "cash2one/fmps", "sub_path": "/trunk/fmps-web/src/main/java/cn/com/fubon/webservice/externl/coresystem/entity/FbClaimNotCarResponseBody.java", "file_name": "FbClaimNotCarResponseBody... | package cn.com.fubon.webservice.externl.coresystem.entity;
import java.util.List;
import cn.com.fubon.fo.claim.entity.NotCarReportInfo;
import cn.com.fubon.webservice.entity.response.ResponseBody;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class FbClaimNotCarResponseBody extends ResponseBody{
... |
ab292e79-13b0-4256-8d46-c1034d998d19 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-11-04 14:41:49", "repo_name": "vlasotsky/basejava", "sub_path": "/src/com/basejava/webapp/storage/MapUuidStorage.java", "file_name": "MapUuidStorage.java", "file_ext": "java", "file_size_in_byte": 623, "line_coun... | package com.basejava.webapp.storage;
import com.basejava.webapp.model.Resume;
public class MapUuidStorage extends AbstractMapStorage<String> {
@Override
protected String findSearchKey(String uuid) {
return storage.containsKey(uuid) ? uuid : null;
}
@Override
protected void doDelete(Strin... |
aef45bb7-e30f-4f57-94b0-469af4259af7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-29 02:16:52", "repo_name": "cRackyGame/cRazyGame", "sub_path": "/src/com/inception/mediator/CategoryMediator.java", "file_name": "CategoryMediator.java", "file_ext": "java", "file_size_in_byte": 623, "line_cou... | package com.inception.mediator;
import com.inception.notification.NotificationCenter;
import com.inception.otaku.CategoryActivity;
public class CategoryMediator extends MediatorBase
{
private CategoryActivity activity;
public void handleNotification(String paramString, Object paramObject)
{
}
... |
01c813f5-6a94-41ef-983b-4de70a637dfd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-02 11:07:52", "repo_name": "JayantNayak/CommentModerator", "sub_path": "/src/main/java/com/target/moderator/exception/ModeratorException.java", "file_name": "ModeratorException.java", "file_ext": "java", "file... | package com.target.moderator.exception;
import org.springframework.http.HttpStatus;
import com.target.moderator.model.perspectiveapi.ErrorMessage;
public class ModeratorException extends Exception {
private static final long serialVersionUID = -3746562963198843188L;
private HttpStatus status;
private ErrorMessag... |
1fbde9ab-6aab-47a7-b0c2-be7ccd551d75 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-19 11:53:21", "repo_name": "code1990/ScalaAll", "sub_path": "/src/main/scala/Test.java", "file_name": "Test.java", "file_ext": "java", "file_size_in_byte": 624, "line_count": 25, "lang": "en", "doc_type": "cod... | import java.io.File;
public class Test {
public static final String pathName = "D:\\IdeaProjects\\ScalaAll\\src\\main\\scala\\";
public static void main(String[] args) {
for (int i = 0; i <=111 ; i++) {
String flag = "";
if(i <= 9){
flag = "d00"+i;
... |
5ed3e916-b003-463c-8116-f67c870d85e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-03-26 13:35:33", "repo_name": "liudongpu/zsrnpr", "sub_path": "/zsrnprcom/src/main/java/com/srnpr/com/entity/MapFormat.java", "file_name": "MapFormat.java", "file_ext": "java", "file_size_in_byte": 624, "line_cou... | package com.srnpr.com.entity;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
public class MapFormat extends ConcurrentHashMap<String, String> {
private List<String> keyList=new ArrayList<String>();
public List<String> getKeyList() {
return keyList;
... |
2a684d24-04d0-43df-af86-d16b9bf5569d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-15 03:54:20", "repo_name": "rongcloud/server-sdk-java", "sub_path": "/src/main/java/io/rong/models/group/UserGroup.java", "file_name": "UserGroup.java", "file_ext": "java", "file_size_in_byte": 624, "line_coun... | package io.rong.models.group;
/**
* @author RongCloud
*/
public class UserGroup {
private String id;
private GroupModel[] groups;
public UserGroup() {
}
public UserGroup(String id, GroupModel[] groups) {
this.id = id;
this.groups = groups;
}
public String getId() {
... |
8e74f06b-925e-425c-b8ea-be08077c7d91 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-01-06T15:19:05", "repo_name": "byam/web-scraper", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 636, "line_count": 18, "lang": "en", "doc_type": "text", "blob_id":... | # web-scrapper
## Local Run
```
$ pip install scrapy
```
```sh
cd scrapy crawl scrapy_blog_spider
scrapy crawl scrapy_blog_spider -o data.csv
```
## References
- [Useful Web Scraping Tips and Tricks for Efficient Business Activities in 2020](https://www.codementor.io/@inquiry289/useful-web-scraping-tips-and-tricks-... |
9f33bfba-48a4-4aff-a663-44b87f6a5348 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-12 22:02:47", "repo_name": "mefmor/spring-boot-testing-tutorial", "sub_path": "/src/test/java/net/mefmor/tutorial/spring/boot/testing/database/jpa/DatabaseJpaTests.java", "file_name": "DatabaseJpaTests.java", ... | package net.mefmor.tutorial.spring.boot.testing.database.jpa;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import static org.assertj.core.api.Assertions.assertThat;
@DataJpaTest
class Database... |
76dc2d25-d610-4010-a180-4384d342a1e2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-06 15:26:01", "repo_name": "liuwy5/learn", "sub_path": "/src/main/java/com/learning/controller/api/customer/InterestController.java", "file_name": "InterestController.java", "file_ext": "java", "file_size_in_b... | package com.learning.controller.api.customer;
import com.learning.bean.Resp;
import com.learning.service.InterestServiceImpl;
import com.learning.vo.InterestVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
*
* Created by liuw on 17... |
ea66e644-a312-4645-abf1-34f0b4a374c9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-03 09:14:07", "repo_name": "mubarizmammadzada/TelegramAgentApi", "sub_path": "/src/main/java/com/example/telegramagentapi/models/Offer.java", "file_name": "Offer.java", "file_ext": "java", "file_size_in_byte":... | package com.example.telegramagentapi.models;
import lombok.*;
import javax.persistence.*;
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "offers")
public class Offer {
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Id
private Long id;
private String sessionId;
private St... |
30458faf-4f9f-4eca-bcc1-38019f0b11ce | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-07-20T07:13:18", "repo_name": "wernerkrauss/stripeconeu", "sub_path": "/konzept.md", "file_name": "konzept.md", "file_ext": "md", "file_size_in_byte": 623, "line_count": 42, "lang": "en", "doc_type": "text", ... | # Topics:
## CSS:
* css
* scss
* minify
* uncss
* critical css
* autoprefix
## JS:
* babel
* uglify
* eslint
## Fonts:
* Font loader
## Image:
* image loader
* image optim task
* tinypng task
* favicon task
## Tasks:
* live Task
* watch Task(dev Task)
* live reload
## Loaders:
* silverstripe-template-loader
* v... |
027a609f-4f4b-424a-af1d-f8fd3b4cb12c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-28 06:23:13", "repo_name": "ahmaabdo/Samples", "sub_path": "/Realm/app/src/main/java/ahmaabdo/realm/db/MyDatabase.java", "file_name": "MyDatabase.java", "file_ext": "java", "file_size_in_byte": 624, "line_coun... | package ahmaabdo.realm.db;
import android.app.Application;
import io.realm.Realm;
import io.realm.RealmConfiguration;
/**
* Created by Ahmad on Mar 15, 2018.
* Realm database class
* Must be added to AndroidManifest.xml at application: android:name=".db.MyDatabase"
*/
public class MyDatabase extends Application... |
2679be7b-039a-40ae-b4f6-01c6ed35893b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-25 16:52:45", "repo_name": "TheDeadWalkers/Workspace", "sub_path": "/PagebjectModel/src/test/java/TestCases/TestCaseFactory.java", "file_name": "TestCaseFactory.java", "file_ext": "java", "file_size_in_byte": ... | package TestCases;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;
import ObjectRepo.FBLoginFactory;
import io.github.bonigarcia.wdm.WebDriverManager;
public class TestCaseFactory {
@Test
public void fbloginpage() {
WebDriverManager.chrom... |
ac9ad17a-fb5b-4f9f-9a09-fd589222a3cb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-10-08T20:51:19", "repo_name": "pgu/pgu-konami", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 624, "line_count": 36, "lang": "en", "doc_type": "text", "blob_id": "... | Pgu-konami
========
Website
---
[<strong>→ Enjoy!</strong>](http://pgu-konami.appspot.com/#/)
Purpose
---
A recap of some animations triggered by various konami codes on the SFEIR website.




Technologies
---... |
679e9199-3fb4-469a-bc38-1231f1210142 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-06-23 07:57:40", "repo_name": "JuntaekLee/NewsFactory_1_0", "sub_path": "/src/kr/ac/kookmin/mynewspaper/protocol/RequestGetComment.java", "file_name": "RequestGetComment.java", "file_ext": "java", "file_size_in_b... | /**
*
*/
package kr.ac.kookmin.mynewspaper.protocol;
/**
*
**/
public class RequestGetComment extends RequestData {
/**
*
**/
private static final long serialVersionUID = 5975119564352740734L;
public static final int COMMENT_NUMBER = 7;
private long NewsId;
private int Page;
public RequestGetC... |
185a4cdb-f37b-4668-a4dc-4dfef2f8fa87 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-06-22T04:14:43", "repo_name": "gtbuilds/gtbuilds", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 653, "line_count": 12, "lang": "en", "doc_type": "text", "blob_id"... | - 👋 Hi, I’m @gtbuilds
- 👀 I’m interested in building interesting things, making this world a better place to live.
- 🌱 I’m currently learning lots of interesting things and working on cool projects.
- 💞️ I’m looking to collaborate with positive people to make this world better.
- 📫 DM me on Twitter @northlightproj... |
f9c42176-72da-4246-af10-4c5479a73202 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-24 02:15:06", "repo_name": "edwardoviedo666/ptrewow", "sub_path": "/src/main/java/com/rewow/entities/PetEntity.java", "file_name": "PetEntity.java", "file_ext": "java", "file_size_in_byte": 624, "line_count": ... | package com.rewow.entities;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "pet", schema = "public", catalog = "d76p9hqs38cjgf")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstru... |
cce0f42b-5a65-4e3d-a000-061ec37b7b2c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-28 12:56:14", "repo_name": "sjmss/-", "sub_path": "/SSH_item_1/src/com/cn/service/add_catalog_serviceimp.java", "file_name": "add_catalog_serviceimp.java", "file_ext": "java", "file_size_in_byte": 624, "line_c... | package com.cn.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.cn.DAO.add_catalog_DAO;
import com.cn.annotation.AdviceInfomation;
import com.cn.bean.Word_Catalogue_Context;
import com.cn.bean.Word_info;
@Compon... |
b6f5a490-551e-4a43-bea4-b905ecabbb8a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-02-26 22:41:27", "repo_name": "raymond301/swift", "sub_path": "/services/search-db/src/main/java/edu/mayo/mprc/searchdb/SearchDbResultEntry.java", "file_name": "SearchDbResultEntry.java", "file_ext": "java", "fil... | package edu.mayo.mprc.searchdb;
import edu.mayo.mprc.daemon.files.FileHolder;
import java.io.File;
/**
* @author Roman Zenka
*/
public final class SearchDbResultEntry extends FileHolder {
private static final long serialVersionUID = -9030615025897045642L;
private File inputFile;
private Integer searchResultId;... |
bbf612e8-1d91-4de6-a9a5-1d0181f76bfa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-06 03:45:33", "repo_name": "zboizz/JAVA_practice", "sub_path": "/myJava/ch10/EventEx05.java", "file_name": "EventEx05.java", "file_ext": "java", "file_size_in_byte": 651, "line_count": 36, "lang": "en", "doc_t... | package ch10;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class EventEx05 extends MFrame{
Button btn;
public EventEx05() {
setTitle("Event 예제1");
add(btn = new Button("버튼"), BorderLayout.SOUTH);
... |
9cc29773-2b72-4d10-a18b-13d67baf80f4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-27 19:40:18", "repo_name": "drumenov/Exam-Preparation-I", "sub_path": "/Java Skeleton/src/main/java/todolist/bindingModel/TaskBindingModel.java", "file_name": "TaskBindingModel.java", "file_ext": "java", "file... | package todolist.bindingModel;
import javax.validation.constraints.NotNull;
public class TaskBindingModel {
@NotNull
private String Title;
@NotNull
private String Comments;
public TaskBindingModel() {
}
public TaskBindingModel(String title, String comments) {
Title = title;
Comme... |
8a135dbe-0a14-486e-8955-42b087fffcbb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-18 17:01:25", "repo_name": "Rex7/Java_Beginner", "sub_path": "/test/FileDemo.java", "file_name": "FileDemo.java", "file_ext": "java", "file_size_in_byte": 625, "line_count": 25, "lang": "en", "doc_type": "code... | package test;
/*
* 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.
*/
/**
*
* @author Regis
*/
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Path... |
a2e72925-dfed-493f-952f-cb9952919b97 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-12 12:59:40", "repo_name": "Caratacus/mybatis-plus-mini", "sub_path": "/src/main/java/com/baomidou/mybatisplus/plugins/pagination/dialects/H2Dialect.java", "file_name": "H2Dialect.java", "file_ext": "java", "f... | package com.baomidou.mybatisplus.plugins.pagination.dialects;
import com.baomidou.mybatisplus.plugins.pagination.IDialect;
/**
* <p>
* H2 数据库分页方言
* </p>
*
* @author hubin
* @Date 2016-11-10
*/
public class H2Dialect implements IDialect {
public static final H2Dialect INSTANCE = new H2Dialect();
publi... |
3df92852-55c6-494a-a1c4-ff39269845d6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-07-27T12:56:07", "repo_name": "ShortToGround/Powershell-Scripts", "sub_path": "/Create-OutlookSignature/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 623, "line_count": 16, "lan... | # Create-OutlookSignature
This script will query the domain to find organizational information within the context of the user who runs it.
Best used as a logon script via GPO.
For example, it can be used to find their name, their phone number, their job title, or custom extensionAttribute's.
It will then create a s... |
685c6216-6bf3-4a7d-b8b1-9701e3865e52 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-03 16:16:47", "repo_name": "mnegrean/TribulIT", "sub_path": "/dependency-injection-spring/src/main/java/ro/tribulit/grading/PhysicsGradingService.java", "file_name": "PhysicsGradingService.java", "file_ext": "... | package ro.tribulit.grading;
import org.springframework.beans.factory.annotation.Autowired;
import ro.tribulit.model.Discipline;
import ro.tribulit.model.Student;
import ro.tribulit.repository.StudentRepository;
public class PhysicsGradingService implements GradingService {
@Autowired
private StudentReposito... |
ad8c1cfc-873b-46b8-8ea2-bea728b61300 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-18 12:54:57", "repo_name": "farzinnasiri/Chicken-Invaders-Down-of-the-new-world-ap-project", "sub_path": "/src/ir/farzinnasiri/Server/ServerMain.java", "file_name": "ServerMain.java", "file_ext": "java", "file... | package ir.farzinnasiri.Server;
public class ServerMain {
public static void main(String[] args) {
System.out.println("Server is started");
int port;
port = Integer.parseInt(args[0]);
Thread serverConnectionThread;
serverConnectionThread = new Thread(new ServerConnecti... |
4f881c4a-563f-49ce-bd3d-356d73669bea | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-19 12:18:54", "repo_name": "VU-Thesis-2019-2020-Wesley-Shann/subjects", "sub_path": "/instrumented-nappa-greedy/NewsBlur/clients/android/NewsBlur/src/nappagreedy/com/newsblur/activity/FolderItemsList.java", "f... | package nappagreedy.com.newsblur.activity;
import android.os.Bundle;
import nappagreedy.com.newsblur.R;
import nappagreedy.com.newsblur.util.UIUtils;
import nl.vu.cs.s2group.nappa.*;
public class FolderItemsList extends ItemsList {
public static final String EXTRA_FOLDER_NAME = "folderName";
private String folder... |
66a1a2b0-e1a1-4e92-9542-491f070c408b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-04-30 05:28:38", "repo_name": "imzdong/study", "sub_path": "/spring/src/main/java/org/imzdong/study/spring/self/lookUp/LookUpMain.java", "file_name": "LookUpMain.java", "file_ext": "java", "file_size_in_byte": 63... | package org.imzdong.study.spring.self.lookUp;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class LookUpMain {
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicationContex... |
bc642d6e-acf1-42d0-b3bc-2b93e84533fa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-16 22:22:10", "repo_name": "wiltrahan/self_programming_challenge", "sub_path": "/src/com/wiltrahan/CheckingAccount.java", "file_name": "CheckingAccount.java", "file_ext": "java", "file_size_in_byte": 623, "lin... | package com.wiltrahan;
public class CheckingAccount {
private String chkAcctNum;
private double chkAcctBal;
private double servFee;
public CheckingAccount(String chkAcctNum, double chkAcctBal, double servFee) {
this.chkAcctNum = chkAcctNum;
this.chkAcctBal = chkAcctBal;
this.servFee = servFee;
}
public... |
7b3e1b48-5f9b-48ef-a1c0-1f185d6426c9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-06-15 12:51:34", "repo_name": "szucielgp/News", "sub_path": "/app/src/main/java/com/szucie/news/home/FunctionPage.java", "file_name": "FunctionPage.java", "file_ext": "java", "file_size_in_byte": 677, "line_count... | package com.szucie.news.home;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
/**
* Created by ASUA on 2015/5/18.
*/
public class FunctionPage extends BasePage {
public FunctionPage(Context ct){
super(ct);//构造子类,必须要先构造父类!
... |
0c6c3966-8b62-408b-929f-b62bbb891f30 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-15 09:15:28", "repo_name": "92nikolaev/StudySpring", "sub_path": "/proSpringChapter3/src/main/java/by/nikolaev/beanfactory/XmlConfigWithBeanFactory.java", "file_name": "XmlConfigWithBeanFactory.java", "file_ex... | package by.nikolaev.beanfactory;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
public class XmlConfigWithBeanFactory {
public static void main(String[] args) {
DefaultListableBeanFactory factory = new Defa... |
5ab3e07d-a1df-4d39-8dcc-8014348a37d7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-14T04:34:57", "repo_name": "srikanthmuniganti/srikanthmuniganti", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 650, "line_count": 12, "lang": "en", "doc_type":... | - 👋 Hi, I’m @srikanthmuniganti
- 👀 I’m interested in learning new Technologies.
- 🌱 just wanted to do a sample project during free time to practice all the data structures and nested classes from basics.
- written notes in simple terms to understand very easily.
- 💞️ I’m looking to collaborate in projects using sp... |
61aa65f6-834c-4da0-8fcd-e35e50b1ef3e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-21 04:42:22", "repo_name": "ralphavalon/statement-generator", "sub_path": "/src/main/java/com/generator/statement/statement/sql/DeleteSQLStatement.java", "file_name": "DeleteSQLStatement.java", "file_ext": "ja... | package com.generator.statement.statement.sql;
import org.hibernate.cfg.NamingStrategy;
import com.generator.statement.model.InterpretedClass;
import com.generator.statement.statement.AbstractSQLStatement;
public class DeleteSQLStatement extends AbstractSQLStatement {
private String deleteSQLStatement = "";
pu... |
df434b81-ade7-4799-86fd-8614aa343bec | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-11-18T15:27:36", "repo_name": "Anilinfo2015/microservices-design-patterns", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 623, "line_count": 13, "lang": "en", "doc... | # Microservices Design Patterns
- Saga Design Patterns
This pattern is used maintain data consistency across distributed services. It can be used as 2PC is expensive and doesn't scale. A saga is a sequence of requests. Each request execute instructions and publishes a message or event to trigger the next request in th... |
21591931-0467-4e86-b971-56881d46f8a0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-13 16:48:42", "repo_name": "LuisCastellanosOviedo/jacksonRepository", "sub_path": "/src/main/java/jackson/JsonCreatorBean.java", "file_name": "JsonCreatorBean.java", "file_ext": "java", "file_size_in_byte": 62... | package jackson;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class JsonCreatorBean {
private int age;
private String name;
@JsonCreator
public JsonCreatorBean(@JsonProperty("id") int age, @JsonProperty("theName") String name) {
... |
9ea946c3-cccf-4259-a1ed-07b06b686e5e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-23 21:51:09", "repo_name": "rodrigoelias15/Orienta-o-a-objetos", "sub_path": "/AbrirArquivo/src/abrirarquivo/B.java", "file_name": "B.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": 29, "lan... | /*
* 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 abrirarquivo;
import java.io.FileNotFoundException;
/**
*
* @author ice
*/
public class B {
public void m2() t... |
53e86f0a-1c27-4464-a5a0-f453f828a63b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-02 11:23:21", "repo_name": "archive-for-processing/uibooster-for-processing", "sub_path": "/src/uibooster/model/formelements/LabelFormElement.java", "file_name": "LabelFormElement.java", "file_ext": "java", "f... | package uibooster.model.formelements;
import uibooster.components.Form;
import uibooster.model.FormElement;
import uibooster.model.FormElementChangeListener;
import javax.swing.*;
public class LabelFormElement extends FormElement {
private final String label;
public LabelFormElement(String label, int formI... |
4f67bb2a-2966-4045-ab23-82566935ffbb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-18 22:53:08", "repo_name": "Attaoui-Ahmed-Ali/MyWay", "sub_path": "/MyWay/src/ma/myway/graph/data/Agency.java", "file_name": "Agency.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": 34, "lang... | package ma.myway.graph.data;
public class Agency {
private String agency_id;
private String agency_name;
public Agency(String agency_id, String agency_name) {
this.agency_id = agency_id;
this.agency_name = agency_name;
}
public String getAgency_id() {
return agency_id;
}
public void setAgency_id(Strin... |
5b85fd05-3aa2-4889-a535-8a6814780f72 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-21 04:43:50", "repo_name": "saikumar427/first-project", "sub_path": "/portal/src/com/eventbee/general/DateUtil.java", "file_name": "DateUtil.java", "file_ext": "java", "file_size_in_byte": 624, "line_count": 3... | package com.eventbee.general;
import java.util.*;
import java.text.*;
public class DateUtil{
public static String getFormatedDate(Date d,String format,String def){
SimpleDateFormat SDF=null;
if(d !=null && format !=null){
try{
SDF=new SimpleDateFormat(format);
return SDF.format(d);
... |
5640e3b0-a239-472e-bd92-8ed97c951b30 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-01 14:06:34", "repo_name": "sourcefiend/Exams", "sub_path": "/2019_20/AutumnExam_2019_20-08-25-JIR-2b/solved/src/main/java/hr/fer/oop/task3/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_... | package hr.fer.oop.task3;
import java.nio.file.FileVisitor;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.Collection;
public class Main {
public static void main(String[] args) {
Path root = Path.of("test");
Collection<String> ext = Arrays.asList(".txt... |
f26e32e7-fe32-4fe7-a68d-f4fd980077f5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-06 01:27:17", "repo_name": "zsy0216/cloud2020", "sub_path": "/cloud-providerconsul-payment8006/src/main/java/org/example/controller/PaymentController.java", "file_name": "PaymentController.java", "file_ext": "... | package org.example.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.UUID;
/**
* @author shuaiyin.zhang
* @description
... |
5c26aadd-3c4c-468d-b153-e53a298572d3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-10-18T12:48:14", "repo_name": "kjenney/telegraf-grafana-quickstart", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 623, "line_count": 25, "lang": "en", "doc_type":... | # telegraf-grafana-quickstart
This repo shows how to get started with Telegraf and Grafana quickly.
The services are running in Docker and metrics are automatically collected and shipped to Grafana.
The quickstart uses 3 containers:
1. Webserver (nginx)
2. Influxdb
3. Grafana
The Webserver is where metrics are col... |
786b9293-0984-4dd0-9ccd-751c28ae72e5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2012-10-29T00:56:50", "repo_name": "phigment/ASNDMassMailer", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 623, "line_count": 18, "lang": "en", "doc_type": "text", "bl... | # ASND Mass Mailer #
## Description ##
Simple application that allows you to send email and reminders based on information in the Domino Directory
## System Requirements ##
- Lotus Notes Client V7.0+
- Lotus Domino Server V7.0+
## Installation ##
- Download Template (NTF) file
- Sign Template with ID that has abili... |
e2528b95-4bed-49b6-969a-811aadb8a414 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-02 11:53:50", "repo_name": "rdnovell/desapp-groupL-backend", "sub_path": "/src/main/java/ar/edu/unq/groupl/app/model/util/ConfigurationLoader.java", "file_name": "ConfigurationLoader.java", "file_ext": "java",... | package ar.edu.unq.groupl.app.model.util;
public class ConfigurationLoader {
public final static String MAIL_ADDRESS_MAILJET = ConfigurationLoader.getMailAddress();
public final static String MAIL_API_KEY_MAILJET = ConfigurationLoader.getMailApiKey();
public final static String MAIL_API_SECRET_MAILJET = Confi... |
c8ccc0d7-8883-4859-8227-0aca0dfa14f9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-11-01T21:36:49", "repo_name": "cavo789/base64_image", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 623, "line_count": 37, "lang": "en", "doc_type": "text", "blob_... | # base64_image

https://base64image.avonture.be
> You have a base64 code that corresponds to an image and you want to see the image? This utility will help you
## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [License](#license)
## Build Setup
``` bash
# install dependencies
... |
a51701c9-8cf4-494b-baf4-8d830e7e6423 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2009-04-24 08:58:17", "repo_name": "Tattoo/agileet", "sub_path": "/tests/pokkare/tests/PlayerTest.java", "file_name": "PlayerTest.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": 29, "lang": "en", "d... | package pokkare.tests;
import junit.framework.TestCase;
import pokkare.model.Player;
public class PlayerTest extends TestCase {
Player testplayer;
protected void setUp() throws Exception {
testplayer = new Player();
}
protected void tearDown() throws Exception {
testplayer = null;
}
public void testIdAcce... |
980e070f-acd1-40c8-8ecf-9ae8d4192ee7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-06-04 07:05:41", "repo_name": "DiegoSMelo/psc-ModuloLogistica", "sub_path": "/src/domain/basics/ItemDeclaracaoPK.java", "file_name": "ItemDeclaracaoPK.java", "file_ext": "java", "file_size_in_byte": 624, "line_co... | package domain.basics;
import java.io.Serializable;
import javax.persistence.ManyToOne;
/**
*
* @author diego_melo
*
*/
public class ItemDeclaracaoPK implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
@ManyToOne
private Item item;
@ManyToOne
... |
1ca2908b-d871-4b6b-88cd-fc8952ea814a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-03-01T07:47:39", "repo_name": "DistriPrint/cura_profiles", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 623, "line_count": 13, "lang": "en", "doc_type": "text", "... | # Cura Profiles
Custom tweaked Cura profiles for the printers that DistriPrint uses.
# Contributing
## Updating profiles for an existing printer
These profiles are intended to be tweaked and edited. If you think you have found a sub optimal setting please raise an issue on this repo explaining what the problem is. I... |
ef9d0b2c-7415-45ab-848d-59788d052966 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-17 20:20:32", "repo_name": "EdisonOM/new", "sub_path": "/TheBigOne/src/thebigone/TheBigRunner.java", "file_name": "TheBigRunner.java", "file_ext": "java", "file_size_in_byte": 626, "line_count": 27, "lang": "e... | /*
* 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 thebigone;
/**
*
* @author Edison.Morrow
*/
public class TheBigRunner {
public static void main(String[] ar... |
587c388e-88c1-45ff-8077-330a5e2334e7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-17 18:08:33", "repo_name": "lzbair/spring-umbrella", "sub_path": "/reactor/src/main/java/io/payment/PaymentTransaction.java", "file_name": "PaymentTransaction.java", "file_ext": "java", "file_size_in_byte": 62... | package io.payment;
import java.math.BigDecimal;
public class PaymentTransaction {
private final PaymenGatway paymenGatway;
Merchant merchant;
User user;
public PaymentTransaction(PaymenGatway paymenGatway) {
this.paymenGatway = paymenGatway;
}
public PaymentTransaction from(Account... |
3e579184-0efd-4cd3-a431-529a61649f90 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-15 12:51:35", "repo_name": "2553512241/teacherEndProject", "sub_path": "/src/main/java/com/zhidi/manage/dao/impl/DepartmentDaoImpl.java", "file_name": "DepartmentDaoImpl.java", "file_ext": "java", "file_size_i... | package com.zhidi.manage.dao.impl;
import com.zhidi.base.dao.impl.BaseDaoImpl;
import com.zhidi.manage.dao.DepartmentDao;
import com.zhidi.manage.entity.Department;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created by ¶Î¿¡ on 2017/7/26.
*/
@Repository
public class DepartmentDao... |
013bd479-9b88-49cb-be84-0439258107f9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-12 13:44:38", "repo_name": "Masoume/CoordinateBoat", "sub_path": "/sami-crw/src/crw/ui/AreaMarker.java", "file_name": "AreaMarker.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": 31, "lang": ... | /*
* 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 crw.ui;
import gov.nasa.worldwind.render.Polygon;
import gov.nasa.worldwind.render.ShapeAttributes;
import gov.nasa.worldwin... |
ec52f642-ca45-4065-b424-c5919ca34f50 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-09 05:29:33", "repo_name": "buimanhthangnt/Object-Oriented-Programming", "sub_path": "/HW11/src/main/java/CurrentConditionDisplay.java", "file_name": "CurrentConditionDisplay.java", "file_ext": "java", "file_s... | public class CurrentConditionDisplay implements Observer, DisplayElement{
private WeatherData subject = new WeatherData();
private double temperature;
private double humidity;
public CurrentConditionDisplay(WeatherData weatherData) {
weatherData.registerObserver(this);
subject = weather... |
96a95f85-81f4-4465-91ac-e8c60c39f36c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-23 07:47:49", "repo_name": "zhuguohui/WeatherTextViewDemo", "sub_path": "/weather/src/main/java/com/zgh/weather/bean/WeatherIconMap.java", "file_name": "WeatherIconMap.java", "file_ext": "java", "file_size_in_... | package com.zgh.weather.bean;
import java.util.List;
/**
* Created by zhuguohui on 2018/3/20.
*/
public class WeatherIconMap {
/**
* icon_name : 小雨
* weather_set : ["小雨","小雨-中雨"]
*/
private String icon_name;
private List<String> weather_set;
public String getIcon_name() {
... |
b6e3c63b-65b4-4acd-a7b2-4a6a6a4eb4e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-10 22:18:38", "repo_name": "kmorgport/Text-Only-Gameboy-RPG", "sub_path": "/src/moves/StatusEffect.java", "file_name": "StatusEffect.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": 26, "lang... | package moves;
public class StatusEffect extends Moves{
protected String status;
protected int statusChance;
public StatusEffect(String name, String type, String category, int powerPoints, int accuracy,int priority, String status, int statusChance) {
super(name, type, category, powerPoints, accura... |
4e933b66-6e20-4adb-91eb-677ed3bcb221 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-26 08:54:12", "repo_name": "ManjuDineshKumar/FlightFinderProject", "sub_path": "/src/com/FlightFinder/page/base/Page.java", "file_name": "Page.java", "file_ext": "java", "file_size_in_byte": 628, "line_count":... | /**
*
*/
package com.FlightFinder.page.base;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
/**
* @author Manju Dinesh Kumar
*
*/
public class Page {
public static WebDriver driver=null;
public Page()
{
if(driver==null)
{
Syst... |
4ea606d2-81be-4573-8365-2909e19f711f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-05 05:40:41", "repo_name": "anisanisah05/jobsheet3", "sub_path": "/src/jobsheet3/penyewa.java", "file_name": "penyewa.java", "file_ext": "java", "file_size_in_byte": 624, "line_count": 26, "lang": "en", "doc_t... | /*
* 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 jobsheet3;
/**
*
* @author NISAH~05
*/
public class penyewa {
private String nama;
private int id_pen... |
02f19f11-5508-42be-95b8-bb7058e67860 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-11 00:49:23", "repo_name": "anTi-by/tyf-framework", "sub_path": "/boot-webflux/src/main/java/com/test/LamdaTests.java", "file_name": "LamdaTests.java", "file_ext": "java", "file_size_in_byte": 623, "line_count... | package com.test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.function.Predicate;
public class LamdaTests {
interface ILambdaTest1{
void print(String s);
}
public static void main(String[] args) {
Ainimils ainimils=(x)->{return x ;};
... |
3aa2a39f-48fb-443b-ae2e-9be4d5674e85 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-08-23 07:55:45", "repo_name": "richard-grin/tpjsf3", "sub_path": "/src/java/ejb/DepartementFacade.java", "file_name": "DepartementFacade.java", "file_ext": "java", "file_size_in_byte": 624, "line_count": 31, "lan... | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ejb;
import entite.Departement;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author richard
*/
@Stateless
public c... |
e0a07111-3f6c-49e8-b934-f02d0f98e6a7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-15 13:40:39", "repo_name": "roshank2/PaperPractice", "sub_path": "/src/controller/RegisterController.java", "file_name": "RegisterController.java", "file_ext": "java", "file_size_in_byte": 622, "line_count": 2... | /********************* Roshan Kumar ***********************/
package controller;
import java.sql.*;
import bean.ConnectionProvider;
import bean.User;
public class RegisterController {
public static int register(User u) {
int status = 0;
try {
Connection con = ConnectionProvider.getConnection(... |
682d31f6-8d6c-4e16-bdea-0d71ca837bbb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-29 13:28:40", "repo_name": "jothamx/100-days-of-code", "sub_path": "/spring-study/spring-03-di/src/test/java/MyTest.java", "file_name": "MyTest.java", "file_ext": "java", "file_size_in_byte": 623, "line_count"... | import examples.ExampleBean1;
import examples.ExampleBean2;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class MyTest {
public static void main(String[] args) {
ApplicationContext context =new ClassPathXmlApplicatio... |
be9fae34-9607-4daf-a5ea-fa21b7e81999 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-19 13:04:51", "repo_name": "fabianbaechli/school", "sub_path": "/M411/Wake On LAN/src/JLabelCleaner.java", "file_name": "JLabelCleaner.java", "file_ext": "java", "file_size_in_byte": 622, "line_count": 26, "la... | import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
class JLabelCleaner {
private JLabel label;
private int waitSeconds;
public JLabelCleaner(int waitSeconds, JLabel label) {
this.label = label;
this.waitSeconds = waitSeconds;
}
public v... |
a3b12433-071c-45f5-85e2-665ceb9c8d6a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-08-18 15:03:14", "repo_name": "kschrader/cucumber-jvm", "sub_path": "/core/src/main/java/cucumber/runtime/SummaryReporter.java", "file_name": "SummaryReporter.java", "file_ext": "java", "file_size_in_byte": 623, ... | package cucumber.runtime;
import java.io.PrintWriter;
import java.io.Writer;
import java.util.List;
public class SummaryReporter {
private final PrintWriter out;
public SummaryReporter(Writer out) {
this.out = new PrintWriter(out, true);
}
public void snippets(List<String> snippets) {
... |
4e013e6d-58e1-4e19-b94c-f7c8848f6410 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-15 09:28:35", "repo_name": "zixuedanxin/hxbigscreen", "sub_path": "/src/main/java/com/dxhy/hbase/exception/HbaseException.java", "file_name": "HbaseException.java", "file_ext": "java", "file_size_in_byte": 657... | package com.dxhy.hbase.exception;
/**
* Created by thinkpad on 2017/3/2.
*/
public class HbaseException extends Exception{
private String retCd ; //异常对应的返回码
private String msgDes; //异常对应的描述信息
public HbaseException() {
super();
}
public HbaseException(String message) {
super(me... |
f8f79b91-b9b7-459c-98f2-334bcdd389b7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-24 14:45:01", "repo_name": "onlythenaive/storager-backend-proto", "sub_path": "/src/main/java/ru/spb/iac/storager/server/domain/shared/PagedResult.java", "file_name": "PagedResult.java", "file_ext": "java", "f... | package ru.spb.iac.storager.server.domain.shared;
import java.util.ArrayList;
import java.util.List;
public final class PagedResult<T> {
private final List<T> items;
private final Integer page;
private final Integer total;
public PagedResult(final List<T> items, final int page, final int total) {
... |
93cc6e3a-7eb2-495a-afd0-f3c72d35791d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-13 10:34:59", "repo_name": "ykardillo/Ultimate-TicTacToe", "sub_path": "/UltimateTicTacToe/src/atlg4/ultimate/g45682/model/Score.java", "file_name": "Score.java", "file_ext": "java", "file_size_in_byte": 623, ... | /*
* 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 atlg4.ultimate.g45682.model;
/**
*
* @author Younes Kardillo
*/
public class Score {
private final Player opponent;
... |
4a9bfcef-5b79-4781-a0c3-38091105cb88 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-14 04:39:20", "repo_name": "RaschMaslasky/ticket", "sub_path": "/modules/global/src/com/company/ticket/entity/DamageType.java", "file_name": "DamageType.java", "file_ext": "java", "file_size_in_byte": 622, "li... | package com.company.ticket.entity;
import com.haulmont.chile.core.datatypes.impl.EnumClass;
import javax.annotation.Nullable;
public enum DamageType implements EnumClass<String> {
EASY("EASY"),
HEAVY("HEAVY"),
LETHAL("LETHAL");
private String id;
DamageType(String value) {
this.id = v... |
805cfbac-28e6-4e7a-a1d0-c615cc73f618 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-03-10T18:48:25", "repo_name": "nysalor/anymock", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 623, "line_count": 38, "lang": "en", "doc_type": "text", "blob_id": ... | # Anymock
Simple mock server.
Print request params to response and STDOUT.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'anymock'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install anymock
## Options
```
-d [DIR] specify document root (default: './publi... |
e176da04-c072-4178-ba94-8e23e7c5373c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-03-18T19:17:33", "repo_name": "ellpc/nonprofitcloudsalesforce", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 626, "line_count": 19, "lang": "en", "doc_type": "tex... | #Salesforce Stuff
#nonprofitcloudsalesforce
Salesforce Stuff I've Written to Make Things Work
All the stuff here has been redacted for confidentiality.
Anything that you'll need to update with info specific to your environment
will be noted.
The Unique Years count is something that NPSP cannot do out of the box but ... |
1fed4d50-22be-4d93-90b3-b29b61d54d60 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2012-04-03T08:36:20", "repo_name": "mbergal/RussianElectionResultsScraper", "sub_path": "/lib/Pester/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 623, "line_count": 22, "lang": "en"... | Pester
======
Objective
---------
I wanted to make a convention based Powershell Unit testing framework that didn't require the following:
* Installer of any sort
* Changing a users Profile script
The things I wanted it to do is:
* Find all tests by some sort of convention
* Emulate RSpec assertions and fixture se... |
41e8ee2e-3f21-4835-a2bf-029e7078c858 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-19 19:12:33", "repo_name": "marcosgp9/DataBaseFinal", "sub_path": "/app/src/main/java/com/example/databasefinal/Planet.java", "file_name": "Planet.java", "file_ext": "java", "file_size_in_byte": 623, "line_cou... | package com.example.databasefinal;
import java.util.ArrayList;
public class Planet {
String name;
int gravity;
ArrayList<Planet> planetas = new ArrayList();
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int g... |
16f6a8f1-bcfd-4905-8753-b6585bd30142 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-04-16T21:56:05", "repo_name": "SchemerApp/schemer-desktop", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 623, "line_count": 12, "lang": "en", "doc_type": "text", ... | # schemer-desktop
[](https://gitter.im/SchemerApp/Lobby)
> Note: This app is still in the very early stages. Not all feature are implemented.
The electron app for turning your database schema into an ER diagram
## Progress
If you want to see the prog... |
f29acccc-b136-47ff-a49f-7a98ce544066 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-13 16:56:42", "repo_name": "imsuraj/DemoQATestPOM", "sub_path": "/src/test/java/com/qa/demoqa/tests/ProgressBarTest.java", "file_name": "ProgressBarTest.java", "file_ext": "java", "file_size_in_byte": 623, "li... | package com.qa.demoqa.tests;
/**
* @author SurajAnand
*
*/
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import com.qa.demoqa.base.BaseTest;
import com.qa.demoqa.pages.ProgressBar;
import com.qa.demoqa.pages.Widgets;
public class ProgressBarTest extends BaseTest {
public Wid... |
1e6681b1-17ff-4281-89ed-70ae2b066ae4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-09-20T07:29:27", "repo_name": "FrigoEU/purescript-immutablejs", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 623, "line_count": 31, "lang": "en", "doc_type": "tex... | # Project Name
This is a Purescript interface to the Facebook Immutable.js library.
## Installation
TODO: Describe the installation process
## Usage
TODO: Write usage instructions
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am '... |
fb4a89f3-0868-4642-afef-fac107a8206c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-29 09:35:39", "repo_name": "wiekonek/paxos-messaging", "sub_path": "/Benchmark/src/edu/put/paxosstm/messaging/benchmark/core/Logger.java", "file_name": "Logger.java", "file_ext": "java", "file_size_in_byte": 6... | package edu.put.paxosstm.messaging.benchmark.core;
public class Logger {
public static LogType logType = LogType.Verbose;
public static void log(LogType type, String log) {
if (type == LogType.All || type == logType || logType == LogType.All ||
(type == LogType.CsvMinimal && logType =... |
3870d48d-6253-461a-8252-0f11c07ff335 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-02-27 12:29:22", "repo_name": "mybugatti/Game_Spatial", "sub_path": "/src/gameSource/Missile.java", "file_name": "Missile.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": 38, "lang": "en", "doc_... | package gameSource;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Rectangle;
import javax.swing.ImageIcon;
public class Missile extends Entity {
public Missile(int x, int y) {
super(x, y);
}
public void draw(Graphics2D gd) {
gd.drawImage(this.getImage(), x, y, null);
}
... |
152dee61-5d3f-40d5-976b-63c11ea0e558 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-12 18:23:20", "repo_name": "eberechukwu20/AutomationFrameWork", "sub_path": "/src/test/java/com/univadis/LoginPage.java", "file_name": "LoginPage.java", "file_ext": "java", "file_size_in_byte": 623, "line_coun... | package com.univadis;
import org.openqa.selenium.By;
import com.wrapper.Elements;
public class LoginPage extends Elements {
private static final By USER_NAME_TEXTBOX_LOCATOR = By.name("userId");
private static final By PASSWORD_TEXTBOX_LOCATOR = By.name("password");
private static final By LOGIN_BUTTON_LOCATOR = ... |
cbce02d6-4c69-49ce-8281-ab40a1e2b331 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-10 23:44:59", "repo_name": "keensworth/VoxelEngine", "sub_path": "/src/ecs/Components/Camera.java", "file_name": "Camera.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": 30, "lang": "en", "do... | package ecs.Components;
import ecs.Component;
import util.Container;
public class Camera extends Component {
private Container camera;
private int lastID;
public Camera(){
camera = new Container();
lastID = 1;
}
public int getCameraID(int index){
return (int)camera.get(in... |
75867396-58f9-4bdf-906b-8eda501ad827 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-25 08:07:23", "repo_name": "tonylim01/AMFDummy", "sub_path": "/src/main/java/media/platform/amf/rtpcore/common/StringUtil.java", "file_name": "StringUtil.java", "file_ext": "java", "file_size_in_byte": 623, "l... | package media.platform.amf.rtpcore.common;
public class StringUtil {
private static final String STR_OK = "OK";
private static final String STR_FAIL = "FAIL";
public static String getOkFail(boolean result) {
return (result ? STR_OK : STR_FAIL);
}
public static boolean isNumeric(String str... |
39ecbf95-1ddb-4ea9-86ee-59f69eaa6645 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-12-10T19:14:39", "repo_name": "decretist/Dissertation", "sub_path": "/Notebooks/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 623, "line_count": 27, "lang": "en", "doc_type": "t... | ## Dissertation/Notebooks
It looks like Jupyter Notebooks are increasingly going to be part
of the dissertation workflow.
```
sudo -H pip3 install jupyter
sudo -H pip3 install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter nbextension enable python-markdown/main
jupyter notebook --no-... |
8068f9bd-d8b6-429f-8aed-1a4a8c5dd028 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-27 16:51:44", "repo_name": "pawbla/RpiApplication", "sub_path": "/src/connectors/parser/AbstractParser.java", "file_name": "AbstractParser.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": 31,... | package connectors.parser;
import java.text.DecimalFormat;
import java.util.HashMap;
import java.util.Map;
import connectors.Values;
public abstract class AbstractParser implements ParserInterface {
private Map<String, String> parsed;
public AbstractParser() {
parsed = new HashMap<String, String>();
}
pro... |
501e31c7-550f-4fe5-99bd-e1bbf5810892 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-07 08:11:57", "repo_name": "4lphalfa/SENG360-A3", "sub_path": "/MessageListener.java", "file_name": "MessageListener.java", "file_ext": "java", "file_size_in_byte": 622, "line_count": 26, "lang": "en", "doc_ty... | import java.net.*;
import java.io.*;
public class MessageListener implements Runnable{
private BufferedReader in;
private String fromWho;
public MessageListener(BufferedReader in, String fromWho){
this.in = in;
this.fromWho = fromWho;
}
public void run(){
String fromMessag... |
3cf7c930-f386-43da-9286-51a90df67abe | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-11-09 01:40:32", "repo_name": "longlp21/AndroidApp", "sub_path": "/PJ/app/src/main/java/vn/edu/usth/pj/testingAPI/Protection.java", "file_name": "Protection.java", "file_ext": "java", "file_size_in_byte": 623, "l... | package vn.edu.usth.pj.testingAPI;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class Protection {
@SerializedName("edit")
@Expose
private List<String> edit = null;
@SerializedName("move")
@Expose
private List<Stri... |
bd3f7aec-0df3-4f88-bf4f-93c7e7ef5024 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-14 16:16:03", "repo_name": "ovvca231/os-sample-java-web", "sub_path": "/src/main/Java/calculator/Binaries.java", "file_name": "Binaries.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": 38, "l... | package Java.calculator;
public class Binaries {
private String left;
private String right;
public String getLeft() {
return left;
}
public String getRight() {
return right;
}
public void setLeft( Integer a ) {
if( a.toString().matches( "[01]+" ) ) {
t... |
8ac649cb-a060-45fa-830a-9b45b7f53311 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-03 07:23:10", "repo_name": "rajeevpmr/spring-data-redis", "sub_path": "/src/main/java/com/example/redis/service/PersonServiceImpl.java", "file_name": "PersonServiceImpl.java", "file_ext": "java", "file_size_in... | package com.example.redis.service;
import com.example.redis.model.Person;
import com.example.redis.repository.PersonRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Optional;
@Service
public class PersonServiceImpl implements P... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.