id
stringlengths
36
36
meta
stringlengths
429
697
code_content
large_stringlengths
612
1.26k
9a9436e7-326f-4536-bcc9-d36f6b5a5885
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-16 04:45:06", "repo_name": "mesonwune/Tank-Game-Much-Trash", "sub_path": "/src/Handler.java", "file_name": "Handler.java", "file_ext": "java", "file_size_in_byte": 881, "line_count": 35, "lang": "en", "doc_typ...
import java.awt.*; import java.util.LinkedList; //looping through all objects in game and individually update and render //to string public class Handler { LinkedList<GameObject> object = new LinkedList<>(); //gonna contain all game objects //get an object and use the tick method for it public void tick()...
a3c9e3cb-20dd-41fb-845f-4544d10c1186
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-25 07:01:59", "repo_name": "HardNorth/service-merge-validate", "sub_path": "/src/main/java/net/hardnorth/github/merge/model/CommitDifference.java", "file_name": "CommitDifference.java", "file_ext": "java", "fi...
package net.hardnorth.github.merge.model; import java.util.ArrayList; import java.util.List; public class CommitDifference { private final int aheadBy; private final int behindBy; private final List<FileChange> commits; @SuppressWarnings("CdiInjectionPointsInspection") public CommitDifference(in...
9c204983-9495-4d1a-a273-4afd5187e086
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-03-05T07:55:18", "repo_name": "vmalloc/flask-simple-api", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 883, "line_count": 45, "lang": "en", "doc_type": "text", "b...
![Build Status](https://secure.travis-ci.org/vmalloc/flask-simple-api.png) ![Version](https://img.shields.io/pypi/v/flask-simple-api.svg) Overview ======== Flask-Simple-API is a small utility package to create rapid api endpoints using Flask and Python3 annotations: ```python from flask_simple_api import SimpleAPI...
5c7726cf-44a2-4443-a052-32d9cb687e6d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-26 15:51:31", "repo_name": "rustemnasibullin/udmp", "sub_path": "/src/org/mtt/webapi/storage/StorageDAO.java", "file_name": "StorageDAO.java", "file_ext": "java", "file_size_in_byte": 881, "line_count": 43, "l...
package org.mtt.webapi.storage; import java.sql.Connection; import javax.sql.DataSource; import org.springframework.jdbc.core.JdbcTemplate; import org.mtt.webapi.utils.JDBCUtils; import org.mtt.webapi.utils.XUtils; public class StorageDAO { protected JdbcTemplate jdbcTemplate; protected JDBCUtils jdbc...
d67b27f9-98d8-47e8-8931-1605c33e32d4
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-07 16:25:15", "repo_name": "yhs0092/javachassis-demo-catch-exception", "sub_path": "/src/main/java/com/github/yhs0092/demo/javachassis/exceptionconverter/RuntimeExceptionConverter.java", "file_name": "RuntimeE...
package com.github.yhs0092.demo.javachassis.exceptionconverter; import org.apache.servicecomb.swagger.invocation.Response; import org.apache.servicecomb.swagger.invocation.SwaggerInvocation; import org.apache.servicecomb.swagger.invocation.exception.ExceptionToResponseConverter; import org.apache.servicecomb.swagger.i...
747f65bb-86cd-4ce9-92e0-17da4e2cff98
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-11 13:49:45", "repo_name": "ErikNikolajsen/SE1", "sub_path": "/src/planner/app/Login.java", "file_name": "Login.java", "file_ext": "java", "file_size_in_byte": 881, "line_count": 41, "lang": "en", "doc_type": ...
/*/////////////////////// * * Author: * Erik Ravn Nikolajsen * s144382 * */////////////////////// package planner.app; import java.util.*; public class Login { public static void displayLogin() { System.out.println("Please choose a user:"); ArrayList<String> initials = DatabaseAPI.selectSt...
121bcfdf-68ec-4512-8fac-3eba32d27435
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-11 15:10:19", "repo_name": "repolust/Battleships2.0", "sub_path": "/BattleShips/src/Beans/Treffer.java", "file_name": "Treffer.java", "file_ext": "java", "file_size_in_byte": 881, "line_count": 43, "lang": "en...
/* * 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 Beans; import java.io.Serializable; /** * * @author Michael * Erstellt am 18.6.2018 */ public class Treffer implements Se...
4f556058-95d1-4d52-893f-ccbec6ac4f59
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-14 04:09:50", "repo_name": "COMP3350-Group5/meal-buddy", "sub_path": "/app/src/test/java/comp3350/mealbuddy/tests/integration/DataAccessHSQLDBTest.java", "file_name": "DataAccessHSQLDBTest.java", "file_ext": "...
package comp3350.mealbuddy.tests.integration; import org.junit.Test; import comp3350.mealbuddy.application.Main; import comp3350.mealbuddy.application.Services; import comp3350.mealbuddy.persistence.DataAccess; import comp3350.mealbuddy.tests.persistence.DataAccessTest; public class DataAccessHSQLDBTest { @Test...
4a86999a-dbeb-4cee-b699-e97f7533db93
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-07-15 10:36:57", "repo_name": "linkcm/Draw_Android", "sub_path": "/src/com/orange/game/draw/model/user/GenderUtils.java", "file_name": "GenderUtils.java", "file_ext": "java", "file_size_in_byte": 881, "line_count...
package com.orange.game.draw.model.user; import com.orange.game.R; import android.content.Context; public class GenderUtils { public static final String MALE = "m"; public static final String FEMALE = "f"; public static boolean valueOf(int genderIntValue){ return (genderIntValue == 1); } public static St...
641f3e79-7c69-4d8f-9d98-d8774f0cfd4e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-11 16:13:52", "repo_name": "NBakaev/hishop", "sub_path": "/src/main/java/ru/nbakaev/hishop/home/RootController.java", "file_name": "RootController.java", "file_ext": "java", "file_size_in_byte": 880, "line_cou...
package ru.nbakaev.hishop.home; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import javax.servlet.http.HttpServletReques...
995993c2-c2dd-4f34-9cfc-7bd6b4fbe6e2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2013-03-01T06:55:40", "repo_name": "psxpaul/EclipseJnotifyRefresher", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 881, "line_count": 16, "lang": "en", "doc_type": "te...
EclipseJnotifyRefresher ================ This is an Eclipse plugin that uses inotify on linux to automatically refresh files in your workspace. This is useful if you edit files outside of Eclipse often, and find yourself frequently F5ing your workspace. Installation ================ - Exctract [the zip](https://gith...
47fb23c3-f5b1-42be-aaae-ff6407c2ae59
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-17 12:14:59", "repo_name": "NIKITHADC/MY-SMART-CITY", "sub_path": "/src/graph/edge.java", "file_name": "edge.java", "file_ext": "java", "file_size_in_byte": 882, "line_count": 38, "lang": "en", "doc_type": "co...
/* * 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 graph; import drone.cab_agent; import java.util.ArrayList; import java.util.HashMap; /** * * @author D C NIKIT...
8a75002f-548b-461a-92df-9485453d0695
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-09 00:40:09", "repo_name": "kkswde125/kkst", "sub_path": "/kkst_project/src/main/java/com/pro/kkst/daos/AccountDao.java", "file_name": "AccountDao.java", "file_ext": "java", "file_size_in_byte": 882, "line_cou...
package com.pro.kkst.daos; 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 com.pro.kkst.dtos.LoginDto; import com.pro.kkst.imp.I_AccountDao; ...
454a0687-23b4-4546-a2c7-76fba9bcc04a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-07-09T03:31:30", "repo_name": "simon-doherty-nla/ref-kubernetes-app", "sub_path": "/HELP.md", "file_name": "HELP.md", "file_ext": "md", "file_size_in_byte": 881, "line_count": 27, "lang": "en", "doc_type": "t...
Spring Commands: 1) mvn spring-boot:run 2) curl localhost:9001/actuator/health 3) curl localhost:9000/hello-world Docker commands locally: 1) docker build -t ref-app:1.0 . 2) docker run ref-app:1.0 - docker images Docker cluster (minikube locally) to run an image locally that you have not uploaded to a container regi...
f118a11f-5f1f-4c8a-adbb-11c69b410bd1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-05 02:30:09", "repo_name": "Tech231082/EBayProject", "sub_path": "/EbayProject/src/main/java/com/ebay/qa/pages/DailyDealsPage.java", "file_name": "DailyDealsPage.java", "file_ext": "java", "file_size_in_byte":...
package com.ebay.qa.pages; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import com.ebay.qa.base.BaseTest; public class DailyDealsPage extends BaseTest{ //creating page objects @FindBy(linkText="Other Deals") WebElement otherD...
a357dd73-ee50-4ab4-b35a-3e3a3a396444
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-10 14:47:12", "repo_name": "txazo/txazo", "sub_path": "/txazo-application/txazo-wx/src/test/java/org/txazo/wx/app/email/EmailReceiverTest.java", "file_name": "EmailReceiverTest.java", "file_ext": "java", "file...
package org.txazo.wx.app.email; import org.apache.commons.collections4.CollectionUtils; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.txazo.wx.SpringAbstractTest; import org.txazo.wx.app.email.bean.Email; import org.txazo.wx.app.email.service.EmailService; import jav...
79c37973-df8c-4da6-b23e-0465934af70c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-21 09:39:20", "repo_name": "gmu1026/arkchecker", "sub_path": "/src/main/java/com/gametools/arkchecker/domain/ScheduleCustomRepositoryImpl.java", "file_name": "ScheduleCustomRepositoryImpl.java", "file_ext": "j...
package com.gametools.arkchecker.domain; import static com.gametools.arkchecker.domain.QSchedule.schedule; import com.querydsl.jpa.impl.JPAQueryFactory; import java.util.List; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Repository; @RequiredArgsConstructor @Repository public class Sc...
f601b939-9fd1-482b-b341-cabf649035b8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-08-29T13:17:59", "repo_name": "szabgab/slides", "sub_path": "/linux/boot.md", "file_name": "boot.md", "file_ext": "md", "file_size_in_byte": 886, "line_count": 62, "lang": "en", "doc_type": "text", "blob_id":...
# Boot {id: boot} ## Boot stages {id: boot-stages} 1. BIOS - Basic Input/Output System of the hardware 1. boot loader 1. The Linux kernel. 1. The init process. ## BIOS {id: bios} * Hardware specific. * Checks hardware extensions. * Configurable: (e.g. the boot device) * F12 ??? * Executes the code in the Master B...
740bc0bb-2421-4764-b685-f431845c3b08
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-11 02:52:04", "repo_name": "chhapp0/cmfz", "sub_path": "/baizhi-cmfz-webService/src/main/java/com/baizhi/entity/Third.java", "file_name": "Third.java", "file_ext": "java", "file_size_in_byte": 881, "line_count...
package com.baizhi.entity; import java.util.List; /** * Created by ljf on 2017/6/16. */ public class Third { private AlbumDATA1 introduction; private List<ChapterDATA> list; public Third() { } public Third(AlbumDATA1 introduction, List<ChapterDATA> list) { this.introduction = introduc...
6cb25c58-df4f-441c-80c7-7491fb0b9e85
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-14 21:04:33", "repo_name": "thombergs/code-examples", "sub_path": "/spring-boot/hazelcast/hazelcast-embedded-cache/src/main/java/io/refectoring/cache/embedded/rest/Controller.java", "file_name": "Controller.ja...
package io.refectoring.cache.embedded.rest; import io.refectoring.cache.embedded.CacheClient; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping(path = "/cars") public class Controller { private...
18085e00-7b99-4578-8482-01ad822feda0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-06 05:46:13", "repo_name": "tolik1106/library", "sub_path": "/src/main/java/com/zhitar/library/domain/AbstractEntity.java", "file_name": "AbstractEntity.java", "file_ext": "java", "file_size_in_byte": 881, "li...
package com.zhitar.library.domain; import java.io.Serializable; import java.util.Objects; public abstract class AbstractEntity<PK extends Serializable> implements Serializable{ private static final long serialVersionUID = 1L; protected PK id; protected AbstractEntity() { } protected AbstractEn...
0a7bca8f-169a-454b-bd3b-e8adf7e32eb6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-02-21 01:56:34", "repo_name": "unclemm/DeckOfCardsExercise2", "sub_path": "/src/com/example/deckofcardsexercise2/CustomDeckActivity.java", "file_name": "CustomDeckActivity.java", "file_ext": "java", "file_size_in...
package com.example.deckofcardsexercise2; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; import android.widget.Button; public class CustomDeckActivity extends Activity { @Override protected void onCreate(Bundle savedInstance...
33d681b3-61c7-44b2-bde1-41d119f7d60b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-25 06:16:23", "repo_name": "chengyuexplorer/DataStructure-AlgorithmAnalysis", "sub_path": "/05-LinkedList/src/com/yc/doubleCycleLinkList/Node.java", "file_name": "Node.java", "file_ext": "java", "file_size_in_...
package com.yc.doubleCycleLinkList; /** * Created by yucheng on 2018/8/24. */ public class Node { Object element;// 数据域 Node next; // 后进指针域 Node prior; // 前驱指针域 // 头结点构造器 public Node(Node next) { this.next = next; } // 非头结点的结点构造器 public Node(Object element, Node next) ...
ed2c0aaf-1ede-498b-9895-455982f6a4b3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-13 22:02:38", "repo_name": "AkeBoss-tech/2020MockRobot", "sub_path": "/src/main/java/frc/robot/commands/Elevator/ElevatorManualCommand.java", "file_name": "ElevatorManualCommand.java", "file_ext": "java", "fil...
package frc.robot.commands.Elevator; import java.util.function.DoubleSupplier; import edu.wpi.first.wpilibj2.command.CommandBase; import frc.robot.subsystems.Elevator; public class ElevatorManualCommand extends CommandBase { // I copied this code from the arm manual command private final Elevator elevator; ...
1e2bff49-8a30-438b-84e8-3b46f2c92b71
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-02-28 07:23:30", "repo_name": "pathakdip/Cronic", "sub_path": "/app/src/main/java/pathak/com/cronic/ForgotPassActivity.java", "file_name": "ForgotPassActivity.java", "file_ext": "java", "file_size_in_byte": 881, ...
package pathak.com.cronic; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; /** * Created by Dip on 2/21/2017. */ public class ForgotPassActivity extends AppCo...
b4e9a13f-86c3-47a0-ad1b-a9148293d2f9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-08-21T22:41:23", "repo_name": "justin0979/DellInspiron530_ArchLinuxPlasma_Install", "sub_path": "/StuffToGet.md", "file_name": "StuffToGet.md", "file_ext": "md", "file_size_in_byte": 881, "line_count": 38, "l...
## With `pacman` unzip <br /> `sudo pacman -S unzip` ## AURs flashprint<br /> google-chrome<br /> visual-studio-code<br /> ## Chrome Extensions Honey<br /> JSON Formatter<br /> Plasma Integration<br /> Audio Only Youtube<br /> Surfing keys <--- let's you use vim commands for scrolling (`h`,`j`,`k`,`l`) etc for mov...
2e04d94c-5f10-4118-847e-f3a98aceddb6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-13 20:37:29", "repo_name": "eduardosanchezbonilla/sales", "sub_path": "/src/main/java/com/companiya/sales/infraestructure/ui/rest/mappers/PriceMapper.java", "file_name": "PriceMapper.java", "file_ext": "java",...
package com.companiya.sales.infraestructure.ui.rest.mappers; import com.companiya.sales.domain.mappers.Mapper; import com.companiya.sales.domain.model.price.PriceResponse; import com.companiya.sales.infraestructure.persistence.jpa.entities.prices.Prices; import org.springframework.stereotype.Component; @Component pub...
39a1b69f-d8d2-4b83-aad2-639e6f1acdaf
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-02-04T20:19:39", "repo_name": "nrgtwithers/RPS-Multiplayer", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 880, "line_count": 32, "lang": "en", "doc_type": "text",...
# RPS-Multiplayer ## Overview This is a GWU assignment. It's a game that allows for multi-player functionality playing the game Rock, Paper, Scissors. It was created utilizing Firebase. Users will be able to message each other while playing the game. Click here to see the demo [here](https://nrgtwithers.github.io/RPS-...
e597fd09-21b4-4817-b839-d0d8b9a52a46
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-09 13:42:29", "repo_name": "GiansCode/Emotes", "sub_path": "/src/main/java/io/alerium/emotes/listener/event/EmoteUseEvent.java", "file_name": "EmoteUseEvent.java", "file_ext": "java", "file_size_in_byte": 881,...
package io.alerium.emotes.listener.event; import io.alerium.emotes.object.impl.Emote; import org.bukkit.entity.Player; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; @SuppressWarnings("NullableProblems") public final class EmoteUseEvent extends Event { private final Player player; privat...
ce68f0ef-c047-4135-a943-a2d5052b05f9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-01 09:09:12", "repo_name": "Yaokoo/test", "sub_path": "/05-在线考试管理系统/src/com/controller/UserLoginServlet.java", "file_name": "UserLoginServlet.java", "file_ext": "java", "file_size_in_byte": 882, "line_count": ...
package com.controller; import com.dao.UserDao; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; public class UserLoginServlet extends HttpServlet { pro...
63c0481b-6f1b-4d40-a71a-c41f96647972
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-21 08:31:38", "repo_name": "zyy16650811587/Xiaoshixun", "sub_path": "/mvpchouqu2/src/main/java/com/example/mvpchouqu2/base/BaseActivity.java", "file_name": "BaseActivity.java", "file_ext": "java", "file_size_i...
package com.example.mvpchouqu2.base; import android.os.Bundle; import com.example.mvpchouqu2.R; import androidx.appcompat.app.AppCompatActivity; import butterknife.ButterKnife; public abstract class BaseActivity <P extends BasePresenter> extends AppCompatActivity implements BaseView{ public P mpresenter; ...
1c36b071-6b09-4517-b665-3383d214dc49
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-31 00:16:59", "repo_name": "ionutalex88/java_selenium_project", "sub_path": "/src/main/java/pages/Home.java", "file_name": "Home.java", "file_ext": "java", "file_size_in_byte": 881, "line_count": 32, "lang": "...
package pages; import objectTypes.Button; import objectTypes.CommonObject; import objectTypes.Input; import org.openqa.selenium.By; public class Home { //==========================Objects on page==================== public Button signInButton = new Button(By.cssSelector("#idcta-username")); public CommonObject a...
06cb3200-caff-47cd-9361-0f209c199f9b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-17 22:25:13", "repo_name": "harishthakur1985/comparemarket", "sub_path": "/energyComparison/cucumber-java/src/test/java/com/comparethemarket/energycomparison/pom/YourResultPage.java", "file_name": "YourResultP...
package com.comparethemarket.energycomparison.pom; import java.util.regex.Pattern; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; public class YourResultPage extends BasePage ...
7b5f2757-76a1-42cf-b23a-759106ace8f5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-08 16:04:05", "repo_name": "gride29/Blockchain", "sub_path": "/src/blockchain/Message.java", "file_name": "Message.java", "file_ext": "java", "file_size_in_byte": 881, "line_count": 37, "lang": "en", "doc_type...
package blockchain; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.SignatureException; import java.security.spec.InvalidKeySpecException; public class Message { private final User user; private final String data; private final byte[] signatur...
d3beb9c2-5f2f-454f-9666-a03747d7d6bc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-17 12:14:21", "repo_name": "Suryasiva-413/myrepo", "sub_path": "/Student.java", "file_name": "Student.java", "file_ext": "java", "file_size_in_byte": 882, "line_count": 33, "lang": "en", "doc_type": "code", "b...
package studentdatabaseapp; import java.util.Scanner; public class Student { private String firstname; private String lastname; private int gradeyear; private String studentID; private String courses; private String balance; private int costofcourse=600; private static int id =1000; public Stude...
ef27de0e-b5da-4dc1-901b-ceb234cb4989
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-07-22 15:09:45", "repo_name": "keima/PicasaLinkTest", "sub_path": "/app/src/main/java/net/pside/android/example/picasa/My2Activity.java", "file_name": "My2Activity.java", "file_ext": "java", "file_size_in_byte": ...
package net.pside.android.example.picasa; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.util.Log; public class My2Activity extends Activity { private static final String TAG = "My2Activity"; @Override protected void onCreate(...
edcf9f66-e52d-4486-bd27-d8bf99bd852a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-01 02:11:25", "repo_name": "filepi/ListViewComImagens", "sub_path": "/app/src/main/java/com/example/aulaunibratec/carrosapp/ListaDeCarrosActivity.java", "file_name": "ListaDeCarrosActivity.java", "file_ext": "...
package com.example.aulaunibratec.carrosapp; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ListView; import java.util.ArrayList; import java.util.List; public class ListaDeCarrosActivity extends AppCompatActivity { List<Carro> carros; CarroAdapter adapter; ...
3d06dfe9-c233-4120-b77a-c7a7317e39a7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-08-18 02:56:52", "repo_name": "livehl/pluto", "sub_path": "/src/cn/city/in/task/manager/socket/codec/PlutoDecoder.java", "file_name": "PlutoDecoder.java", "file_ext": "java", "file_size_in_byte": 889, "line_count...
package cn.city.in.task.manager.socket.codec; import org.apache.mina.core.buffer.IoBuffer; import org.apache.mina.core.session.IoSession; import org.apache.mina.filter.codec.CumulativeProtocolDecoder; import org.apache.mina.filter.codec.ProtocolDecoderOutput; import org.codehaus.jackson.JsonNode; import org.codehaus.j...
207cf6c2-e031-4bdb-bfe1-493279f2a341
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-01 13:13:35", "repo_name": "068089dy/Sai-plus", "sub_path": "/user/saidemo2_user/app/src/main/java/com/example/dy/sai_demo2/Views/LoopItem.java", "file_name": "LoopItem.java", "file_ext": "java", "file_size_in...
package com.example.dy.sai_demo2.Views; /** * Created by dy on 18-3-13. */ public class LoopItem { String title; String id; String create_time; String content; String is_join; String image; public LoopItem(String id, String create_time, String title, String content, String image, String...
19a4d89c-a24e-4fba-849d-bc882e2b7084
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-08 06:21:35", "repo_name": "peter-codeus/gads2020_leaderboard", "sub_path": "/app/src/main/java/com/codeus/gadsleaderboard/GadsApi.java", "file_name": "GadsApi.java", "file_ext": "java", "file_size_in_byte": 8...
package com.codeus.gadsleaderboard; import java.util.List; import retrofit2.Call; import retrofit2.http.Field; import retrofit2.http.FormUrlEncoded; import retrofit2.http.GET; import retrofit2.http.POST; public interface GadsApi { public static String BASE_URL = "https://gadsapi.herokuapp.com/api/"; public s...
187cf568-2011-47e8-b7cc-06f9d95a3728
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-08-26 12:46:51", "repo_name": "jnwelzel/web-dev-test", "sub_path": "/server/src/test/java/com/jonwelzel/webdevtest/server/helpers/JsonHelper.java", "file_name": "JsonHelper.java", "file_ext": "java", "file_size_i...
package com.jonwelzel.webdevtest.server.helpers; import com.fasterxml.jackson.databind.ObjectMapper; import io.dropwizard.jackson.Jackson; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import static io.dropwizard.testing.FixtureHelpers.fixture; /** * Created by jwelzel on 23/...
586f5001-73aa-4ee1-8ed3-3635016c6dc9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-10-11 23:06:33", "repo_name": "JULIOCANCHALA/ColombiaTuristicaV1.0", "sub_path": "/app/src/main/java/com/canchala/julio/colombiaturisticav10/turis.java", "file_name": "turis.java", "file_ext": "java", "file_size_...
package com.canchala.julio.colombiaturisticav10; /** * Created by Julio on 05/10/2015. */ public class turis { private int lugar; private int Subname; private int infturis; private int idtu1; private int idtu2; private int idtu3; public turis(int lugar, int subname, int infturis, int idt...
ff9be2cd-f837-4aef-b1cd-b745efed6384
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-04-24 10:29:56", "repo_name": "curioustechizen/lollipop-ssl-handshake-bug", "sub_path": "/tlsbug/src/main/java/in/kiranrao/aospbug/tls/HurlClient.java", "file_name": "HurlClient.java", "file_ext": "java", "file_s...
package in.kiranrao.aospbug.tls; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; public class HurlClient { public void get(final String urlString) { HttpURLConnection urlConnection = null; try { ...
12b98a5e-8702-48f5-b17b-07bde1f8dab8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-10 23:18:19", "repo_name": "leekd99/Mobile-Apps-Labs", "sub_path": "/CIS-3515-001_lab3/PaletteActivity/app/src/main/java/edu/temple/paletteactivity/CanvasActivity.java", "file_name": "CanvasActivity.java", "fi...
package edu.temple.paletteactivity; import android.app.Activity; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.support.constraint.ConstraintLayout; public class CanvasActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceSta...
958b48c5-a3df-4276-b664-fb06ea173583
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-13 01:04:44", "repo_name": "zhenghuan12/nhis-web", "sub_path": "/src/main/java/com/zebone/nhis/webservice/syx/vo/BlRequest.java", "file_name": "BlRequest.java", "file_ext": "java", "file_size_in_byte": 881, "l...
package com.zebone.nhis.webservice.syx.vo; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlRootElement; import ...
01df0596-3bd0-4376-8c2c-62f2d4730562
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-17 18:25:01", "repo_name": "LeonLipu/Interviewquestion", "sub_path": "/interview/interviewquestion/src/general/uniquestrong.java", "file_name": "uniquestrong.java", "file_ext": "java", "file_size_in_byte": 882...
package general; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; public class uniquestrong { public static void main(String[] args) throws IOException { BufferedReader bf = new Buff...
8f8ee1d4-352f-4285-8662-43a78fc97034
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-17 06:54:10", "repo_name": "ValiantYuan/AlgorithmTraining", "sub_path": "/src/main/java/leetcode/explore/interview/primarytest/string/FirstUniqChar.java", "file_name": "FirstUniqChar.java", "file_ext": "java",...
package leetcode.explore.interview.primarytest.string; import java.util.Iterator; import java.util.LinkedHashMap; /** * 给定一个字符串,找到它的第一个不重复的字符,并返回它的索引。如果不存在,则返回 -1。 * * @author valiant */ public class FirstUniqChar { public int firstUniqChar(String s) { char[] chars = s.toCharArray(); LinkedHas...
5c201054-3a8d-4e09-bcea-731c7fb67354
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-07 09:33:13", "repo_name": "newslytherin/SysProject", "sub_path": "/SysProjectBackend/src/main/java/facade/RoleFacade.java", "file_name": "RoleFacade.java", "file_ext": "java", "file_size_in_byte": 881, "line_...
/* * 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 facade; import entity.Role; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import java...
46a67e78-0e15-4653-be87-483a7587885b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-05 07:13:31", "repo_name": "UTSA-CS-3443/DineOut", "sub_path": "/src/model/Person.java", "file_name": "Person.java", "file_ext": "java", "file_size_in_byte": 883, "line_count": 51, "lang": "en", "doc_type": "c...
package model; public class Person { private String handle; private int[] answersM = new int[5]; public Person(String handle) { this.handle = handle; for(int i = 0; i<=4; i++) { answersM[i] = 0; } } public String getHandle() { return this.handle; } public void setHandle(String handle) { thi...
bd9922a3-cbe0-4709-aa9f-5e920d4777f5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-01 20:30:40", "repo_name": "ffsfranciscosilva/algafood-api", "sub_path": "/algafood-api/src/main/java/com/ffs/algafood/infrastructor/repositoty/ProductRepositoryImpl.java", "file_name": "ProductRepositoryImpl....
package com.ffs.algafood.infrastructor.repositoty; import com.ffs.algafood.domain.model.restaurant.ProductPhoto; import com.ffs.algafood.domain.repository.restaurant.ProductRepositoryCustom; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import javax...
ffdf0510-abae-428e-8c46-86653d08948a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-18 05:58:32", "repo_name": "AFinalStone/HM-Tools", "sub_path": "/library/src/main/java/com/hm/iou/tools/AssetUtil.java", "file_name": "AssetUtil.java", "file_ext": "java", "file_size_in_byte": 902, "line_count...
package com.hm.iou.tools; import android.content.Context; import android.content.res.AssetManager; import java.io.IOException; import java.io.InputStream; /** * Created by hjy on 18/4/27.<br> */ public class AssetUtil { /** * 从asset文件里面读取文本内容 * * @param assetFileName * @return */ ...
f2e29603-c4da-4b51-afb6-5be73a97fb25
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-10 13:08:56", "repo_name": "fenwhite/WeatherCheck", "sub_path": "/app/src/main/java/com/android/myfirstapp/utils/HttpUtils.java", "file_name": "HttpUtils.java", "file_ext": "java", "file_size_in_byte": 880, "l...
package com.android.myfirstapp.utils; import okhttp3.OkHttpClient; import okhttp3.Request; public class HttpUtils { private volatile static HttpUtils mInstance; private OkHttpClient mOkHttpClient; private HttpUtils(OkHttpClient client){ this.mOkHttpClient = client; } public static HttpUt...
320ce86e-957c-4158-8cfb-90a472ae2a84
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-06 06:34:17", "repo_name": "sgrass/double11_bugfix_asst_acct", "sub_path": "/pinju-biz/src/main/java/com/yuwang/pinju/core/util/config/ModuleManagerConfig.java", "file_name": "ModuleManagerConfig.java", "file_...
package com.yuwang.pinju.core.util.config; public class ModuleManagerConfig extends BaseConfig { private static String filename = "/config/moduleManager.properties"; private static ModuleManagerConfig m_conf = null; public ModuleManagerConfig() { } public String getPorpFileName() { return filena...
c1c3e63d-0d80-417f-943b-921c66279045
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-06-10T07:11:24", "repo_name": "remblock/REMChain-Automated-Unregprod", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 881, "line_count": 36, "lang": "en", "doc_type...
# REMChain-Automated-Unregprod #### This script will unregister a block producer if they fail to produce blocks within a specified time frame. The time frame can be adjusted according to the block producers tolerance/preference. *** ### Setup REMChain-Unregprod: ``` sudo wget https://github.com/remblock/REMChain-Au...
bb56c8b4-b06a-4e7e-b088-e8c0aedce26f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-03-05 15:43:51", "repo_name": "Rosskelly1985/rosskelly1", "sub_path": "/Logging/src/logging.java", "file_name": "logging.java", "file_ext": "java", "file_size_in_byte": 882, "line_count": 75, "lang": "en", "doc_t...
import java.util.logging.FileHandler; import java.util.logging.Level; import java.util.logging.Logger; public class logging { Logger logger = Logger.getLogger("test"); FileHandler fh = null; public logging(){ try { fh = new FileHandler("C:\\Users\\Ross\\Desktop\\mylog.txt"); }catch(Ex...
4be5a982-973e-4c1a-be7b-6e03538ad211
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-06-30T08:06:51", "repo_name": "Zar-rok/Script", "sub_path": "/Dot/custom.md", "file_name": "custom.md", "file_ext": "md", "file_size_in_byte": 881, "line_count": 26, "lang": "en", "doc_type": "text", "blob_id...
# Custom ## Keyboard shortcuts - `Ctrl + Alt + L`: [lock.sh](https://github.com/Zar-rok/Script/blob/master/Util/lock.sh) - `Ctrl + Alt + N`: [move-to-next-monitor](https://github.com/jc00ke/move-to-next-monitor) - `Ctrl + Alt + T`: `xfce4-terminal --maximize --hide-menubar --hide-toolbar --hide-scrollbar` ## Appeara...
bb3a3c2e-6529-40d3-ab6b-36b0410b4632
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-02 14:25:06", "repo_name": "Cyberlander/bachelorarbeit", "sub_path": "/LogServer/src/com/cyberland/logserverpackage/LogServerController.java", "file_name": "LogServerController.java", "file_ext": "java", "file...
package com.cyberland.logserverpackage; public class LogServerController { private LogServerView mView; private LogServerModel mModel; public LogServerController() { mModel = new LogServerModel(); mView = new LogServerView(this); mModel.addObserver(mView); mModel.setServerStatus("Server not running...
661ae8f8-a8d9-48ee-a732-978fd1c36bb6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-10-05T10:25:52", "repo_name": "ardayuksel/find-my-ip", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 881, "line_count": 33, "lang": "en", "doc_type": "text", "blob...
# Find My IP Find My IP is a website that finds IP address of current user. - [Live Demo] - Thanks to [GeolocationDB] ### Tech Find MyIP uses these technologies: * [HTML] * [CSS] * [ReactJS] * Additionally used React Hooks and Axios ### Installation git clone https://github.com/ardayuksel/find-my-ip.git ##...
10c31bbc-7f7b-4a98-a2ad-659a0ab8d8cb
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-09 08:22:41", "repo_name": "gooree/wxjf-sdk", "sub_path": "/wxjf-sdk-core/src/main/java/com/wxjfkg/sdk/sign/Md5HttpApiSignature.java", "file_name": "Md5HttpApiSignature.java", "file_ext": "java", "file_size_in...
package com.wxjfkg.sdk.sign; import org.apache.commons.codec.binary.Base64; import org.apache.commons.codec.digest.DigestUtils; import com.wxjfkg.sdk.ApiConstants; import com.wxjfkg.sdk.request.InternalHttpApiRequest; import com.wxjfkg.sdk.utils.JsonUtils; /** * MD5签名实现类 * * @author GuoRui * * @param <T> */ p...
ebbde653-7c44-47d6-a0f3-764a25566b9e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-24 12:26:05", "repo_name": "ChaAroiMak/ProbeKLS1920_1", "sub_path": "/src/Speicher/SpeicherImpl.java", "file_name": "SpeicherImpl.java", "file_ext": "java", "file_size_in_byte": 881, "line_count": 48, "lang": ...
package Speicher; import java.io.*; public class SpeicherImpl implements Speicher{ @Override public int getErgebnis() { return 0; } @Override public void setzeZuruck() { } @Override public int returnWert() { return 0; } @Override public void vorherigerWe...
ca4e2908-7484-40a7-bb64-456460d8e749
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-18 07:19:57", "repo_name": "msayanece/BackgrounfServiceSample", "sub_path": "/app/src/main/java/com/example/sayan/backgrounfservicesample/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java...
package com.example.sayan.backgrounfservicesample; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { s...
87b3dda5-40c5-4d40-980c-1963ddec0d52
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-29 09:44:32", "repo_name": "hctwgl/test3", "sub_path": "/jsd-common/src/main/java/com/ald/fanbei/api/common/enums/DebtType.java", "file_name": "DebtType.java", "file_ext": "java", "file_size_in_byte": 1010, "l...
package com.ald.fanbei.api.common.enums; /** * @类描述:债权类型 * @author wujun * @注意:本内容仅限于杭州阿拉丁信息科技股份有限公司内部传阅,禁止外泄以及用于其他的商业目的 */ public enum DebtType { BORROWCASH("BORROWCASH", "极速贷"), BORROW("BORROW", "分期"), LOAN("LOAN", "白领贷"), XGJSD("XGJSD", "西瓜极速贷2.0"); private String code; private String description...
c4062762-6072-4a3b-868b-694056566918
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-09 19:16:19", "repo_name": "ViktoriaSl/CMS", "sub_path": "/cms/cms-core/src/main/java/org/javatraining/model/mail/Mail.java", "file_name": "Mail.java", "file_ext": "java", "file_size_in_byte": 881, "line_count...
package org.javatraining.model.mail; /** * The project name is cms. * Created by sergey on 07.07.15 at 17:26. * For more information you should send mail to codedealerb@gmail.com */ public class Mail { private MailType mailtype; private String message; private String subject; public Mail() { ...
f769e600-aed7-4955-ab3a-64e711c1aa6c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-21 23:34:14", "repo_name": "qiuchili/ggnn_graph_classification", "sub_path": "/program_data/JavaProgramData/7/16.java", "file_name": "16.java", "file_ext": "java", "file_size_in_byte": 881, "line_count": 49, "...
package <missing>; public class GlobalMembers { public static int Main() { String a = new String(new char[300]); String b = new String(new char[300]); String c = new String(new char[300]); int i; int j; a = new Scanner(System.in).nextLine(); b = new Scanner(System.in).nextLine(); c = new Scanner(Syst...
548ee105-f09b-4a4d-b197-59dc89d78f21
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-09 20:09:42", "repo_name": "YuriiTrofimenko/TicketBookerProto", "sub_path": "/src/main/java/org/tyaa/ticketbookerproto/modules/TicketBooker.java", "file_name": "TicketBooker.java", "file_ext": "java", "file_si...
package org.tyaa.ticketbookerproto.modules; import org.tyaa.ticketbookerproto.modules.interfaces.TicketBookerInterface; import java.util.Date; /** * Created by yurii on 07.10.17. */ public class TicketBooker implements TicketBookerInterface { private static boolean mBooked; private static TicketBooker mIn...
f8bb4493-23d9-4931-969f-81681bb1d6c5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-09 03:02:41", "repo_name": "Chen1997c/pilipili-data", "sub_path": "/pili-provider/pili-provider-mdc/src/main/java/com/pilipili/provider/entity/AnimationStyle.java", "file_name": "AnimationStyle.java", "file_ex...
package com.pilipili.provider.entity; import lombok.Data; import lombok.ToString; import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; import javax.persistence.*; import java.util...
4bad1e70-cbd9-482e-8a86-69f905b45fd8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-30 21:26:18", "repo_name": "hobbes09/Lucille-Lending", "sub_path": "/src/main/java/com/zinute/lucille/experiments/DbExperiments.java", "file_name": "DbExperiments.java", "file_ext": "java", "file_size_in_byte"...
package com.zinute.lucille.experiments; import java.util.Date; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; import com.zinute.lucille.data.models.Profile; public class DbExperiments { public static void main(String[] args) { SessionFactory session...
31cce1a9-190e-4f7f-9534-8a831d72b871
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-05-16T12:33:09", "repo_name": "gautamrege/term_games", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 880, "line_count": 33, "lang": "en", "doc_type": "text", "blob...
# Golang Terminal Games -- just for Fun and Learning! This is a repository of games that uses termloop to build games - just for fun! :D ## Why? Why? Why? Games are the best way to learn while having fun! It challenges your logic as well as you learn new constructs. If you're getting bored but want to "furn" - (hav...
bf937ea6-970a-4a27-a74e-de1c3b5a7bf1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-03 07:38:22", "repo_name": "Topoy/Skillbox", "sub_path": "/Module 11/11.13 Transactions/src/java/Account.java", "file_name": "Account.java", "file_ext": "java", "file_size_in_byte": 880, "line_count": 56, "lan...
public class Account { private long money; private Integer accNumber; private volatile boolean isBlocked = false; public Account() { } public Account(long money, Integer accNumber) { this.money = money; this.accNumber = accNumber; } public void deposit(long ...
bc75f601-7740-4398-bf5c-705ec220695f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-07 07:49:37", "repo_name": "niceyilin/OOD", "sub_path": "/Food Delivery System/src/Review.java", "file_name": "Review.java", "file_ext": "java", "file_size_in_byte": 881, "line_count": 44, "lang": "en", "doc_t...
import java.time.LocalTime; /** * Created by Yilin on 3/2/2017. */ public class Review { private String title; private String content; private User created_by; private Restaurant review_target; private int score; public Review(String title, User reviewer, Restaurant target){ ...
c111d547-38ba-459a-bc01-0d99c1d672bc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-18 11:28:12", "repo_name": "Rudelgazelle/TaskShare", "sub_path": "/app/src/main/java/android_development/taskshare/GroupMemberShip.java", "file_name": "GroupMemberShip.java", "file_ext": "java", "file_size_in_...
package android_development.taskshare; import com.google.firebase.firestore.Exclude; public class GroupMemberShip { private String groupId; private String category; public GroupMemberShip(){ //Default constructor required for Firebase calls to DataSnapshot.getValue(TaskData.class) } pub...
d95e5bb3-6bde-42f8-86c2-d1b02a7f62f0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-09 13:50:06", "repo_name": "kgalloway2/VSC-Code", "sub_path": "/java stuff/gui tutorial stuff/SwingTemplate.java", "file_name": "SwingTemplate.java", "file_ext": "java", "file_size_in_byte": 880, "line_count":...
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class SwingTemplate extends JFrame { public SwingTemplate() { Container cp = getContentPane(); cp.setLayout(new FlowLayout()); Button btn = new Button("Button"); cp.add(btn); btn.addActionListener(ne...
5a65ccdb-6696-4093-b704-5eb7b614924a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-19 18:05:47", "repo_name": "filip1333/DesignPatterrnsExerciseJava", "sub_path": "/Builder/src/main/java/exercise/Car.java", "file_name": "Car.java", "file_ext": "java", "file_size_in_byte": 879, "line_count": ...
package exercise; public class Car { private String wheels; private String engine; private String body; private boolean lights; private String interior; private boolean fuelTank; private boolean isPremiumVersion; public Car(String wheels, String engine, String body, boolean lights, St...
b45230c2-a8bf-4279-9faf-b4f172cdf051
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-10 05:00:08", "repo_name": "swaroopaDeshpande/CodeBase-I", "sub_path": "/src/main/java/SeleniumSessions/FileUploadPopupConcept.java", "file_name": "FileUploadPopupConcept.java", "file_ext": "java", "file_size_...
package SeleniumSessions; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class FileUploadPopupConcept { ...
dd5f3e57-dd3a-4225-af51-ce1f61b424d9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-10 05:50:00", "repo_name": "Gokulakrishnan2788/Flickr_Demo", "sub_path": "/app/src/main/java/com/gk/flickr/ui/BaseFragment.java", "file_name": "BaseFragment.java", "file_ext": "java", "file_size_in_byte": 879,...
package com.gk.flickr.ui; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; /** * Created by gturedi on 8.02.2017. */ public abstract class BaseFragment extends Fragment {...
abf892d1-f780-4f03-b8d1-d1eb8a062cfd
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-29 17:28:27", "repo_name": "thienchidh/eclipse-workspace-chat", "sub_path": "/DemoChat(Client)/src/controls/factory/FactoryInstanceControls.java", "file_name": "FactoryInstanceControls.java", "file_ext": "java...
package controls.factory; import java.net.*; import controls.controls.*; import controls.icontrols.*; /** * Not user Reflection * * @author chi * */ public class FactoryInstanceControls { static IControls controls; static IConnect connect; static IHandle handle; /** * @return the connect */ publi...
cbe430f9-a9ca-41f8-a08b-ec9805d82313
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-18 10:52:51", "repo_name": "nbrugger-tgm/todo-list", "sub_path": "/src/main/java/com/niton/todo/TodoTask.java", "file_name": "TodoTask.java", "file_ext": "java", "file_size_in_byte": 880, "line_count": 52, "la...
package com.niton.todo; import com.niton.reactj.ReactiveObject; import com.niton.reactj.annotation.Reactive; import com.niton.reactj.special.Identity; import java.io.Serializable; public class TodoTask extends ReactiveObject implements Serializable, Identity<String> { private String name; @Reactive("description") ...
8856605d-f75f-4bfb-8cd6-7b1ebf27189f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-06-19 09:34:36", "repo_name": "brock/sdrtrunk", "sub_path": "/src/controller/channel/ChannelEvent.java", "file_name": "ChannelEvent.java", "file_ext": "java", "file_size_in_byte": 880, "line_count": 53, "lang": "...
package controller.channel; public class ChannelEvent { private Channel mChannel; private Event mEvent; /** * ChannelEvent - event describing any changes to channels * @param channel - channel that changed * @param event - change event */ public ChannelEvent( Channel channel, Event event ) { mChannel =...
db24188f-8cbb-4223-b812-4d29a8d4a14a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-30 21:11:19", "repo_name": "xstefank/tron-game", "sub_path": "/Tron/src/main/java/cz/muni/fi/pv260/controller/listener/MouseInputListener.java", "file_name": "MouseInputListener.java", "file_ext": "java", "fil...
package cz.muni.fi.pv260.controller.listener; import cz.muni.fi.pv260.model.GameData; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; /** * @author <a href="mailto:umarekk@gmail.com">Marek Urban</a> */ public class MouseInputListener implements MouseListener { private GameData gameData;...
e8e11e1b-1a9f-4e1f-ae44-da786420e0d4
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-26 10:00:31", "repo_name": "McdullFei/PGOneHiphop", "sub_path": "/framework/src/main/java/com/atlas/framework/common/JsonSerializer.java", "file_name": "JsonSerializer.java", "file_ext": "java", "file_size_in_...
package com.atlas.framework.common; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.parser.Feature; import com.alibaba.fastjson.serializer.SerializerFeature; /** * 通过fastjson进行序列化反序列化 * * Created by renfei on 17/6/21. */ public class JsonSerializer<T> implements Serializer<T> { /** * 序列化为j...
2bfeeacc-0cbd-4a05-98e1-398b56e4cbc2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-07 17:43:41", "repo_name": "DanielCalle/TFG-Server", "sub_path": "/src/main/java/es/ucm/fdi/tfg/app/MahoutDataModel.java", "file_name": "MahoutDataModel.java", "file_ext": "java", "file_size_in_byte": 879, "li...
package es.ucm.fdi.tfg.app; import org.apache.mahout.cf.taste.impl.model.jdbc.PostgreSQLJDBCDataModel; import org.apache.mahout.cf.taste.model.DataModel; import org.postgresql.ds.PGPoolingDataSource; public class MahoutDataModel { // Set connection to postgresql database public static DataModel getD...
c8389eca-c9d0-41aa-8d23-4a87c339b71d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-09 18:06:17", "repo_name": "LigorioDaniele/-CinemaReservation", "sub_path": "/src/Components/ucStatus.java", "file_name": "ucStatus.java", "file_ext": "java", "file_size_in_byte": 881, "line_count": 35, "lang"...
package Components; import java.awt.Color; import java.awt.Dimension; import javax.swing.BorderFactory; import javax.swing.JPanel; import javax.swing.JScrollBar; import javax.swing.JScrollPane; import javax.swing.JTextArea; import Client.MainForm; public class ucStatus extends JPanel { public MainF...
4beef30e-df9e-4ea0-861f-3933e15e2e55
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-07-18 07:58:59", "repo_name": "zhengqingya/java-workspace", "sub_path": "/SpringCloud系列/04-整合Seata+多数据源+sharding-jdbc/demo/common/web/src/main/java/com/zhengqing/common/web/util/YmlUtil.java", "file_name": "YmlUt...
package com.zhengqing.common.web.util; import cn.hutool.core.lang.Assert; import lombok.SneakyThrows; import lombok.extern.slf4j.Slf4j; import org.yaml.snakeyaml.Yaml; import java.io.FileInputStream; /** * <p> 读取yml文件工具类 </p> * * @author zhengqingya * @description * @date 2021/8/24 10:28 下午 */ @Slf4j public cl...
14ba0b37-ce48-4e89-bc48-fe1526e3179d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-12 02:44:13", "repo_name": "mattewar/LPOO-2019-1", "sub_path": "/src/lpoo1/fbdb/Conexao.java", "file_name": "Conexao.java", "file_ext": "java", "file_size_in_byte": 882, "line_count": 34, "lang": "en", "doc_ty...
/* * 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 lpoo1.fbdb; import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; public class Conexao { ...
fd4e1279-e459-48c9-9fe4-738379bf86c7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-24 17:11:48", "repo_name": "mbl1997/Sistemas_Distribuidos", "sub_path": "/ExercicioSockets/ExercicioSockets/src/Exercicio05/Emissor.java", "file_name": "Emissor.java", "file_ext": "java", "file_size_in_byte": ...
package Exercicio05; import java.io.IOException; import java.io.ObjectOutputStream; import java.io.OutputStream; import java.io.Serializable; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; /** * * @author Marih Bianchini */ class Emissor { ObjectOutputStream o...
901ee5e8-6bd6-4a9d-bc20-786f0010604f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-23 16:28:30", "repo_name": "alexitavr/OpenProject", "sub_path": "/ReportServer/src/java/MailPack/MailParserFirms.java", "file_name": "MailParserFirms.java", "file_ext": "java", "file_size_in_byte": 887, "line_...
package MailPack; import ConnectToDB.OraConRepo; import java.io.FileNotFoundException; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class MailParserFirms { private OraConRepo orc = new OraConRepo(); private String request; publ...
e3c117a8-ea8e-4bb3-af74-c67517083964
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-17 18:11:58", "repo_name": "catherinehwu/consoleGameEngine", "sub_path": "/consolegame/Square.java", "file_name": "Square.java", "file_ext": "java", "file_size_in_byte": 880, "line_count": 45, "lang": "en", "d...
package consolegame; import java.util.ArrayList; public class Square { private int x; private int y; private int seqNum; private String squareImage; private String squareText; private String squareSound; private ArrayList<String> actions; public Square (int num, int sqX, int sqY, ...
843f6df5-a1df-45e4-9c30-177fa298dd12
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-25 14:32:05", "repo_name": "sagargl/AmazonBDDFramework", "sub_path": "/src/test/java/StepDefinitions/FlipKartLoginStepDefinition.java", "file_name": "FlipKartLoginStepDefinition.java", "file_ext": "java", "fil...
package StepDefinitions; import com.qa.base.TestBase; import com.qa.pages.FlipKartLoginPage; import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; import io.cucumber.java.en.When; public class FlipKartLoginStepDefinition extends TestBase { FlipKartLoginPage login=new FlipKartLoginPage(); public Fli...
1d73b2bd-cce8-43b3-8da5-027f688635a6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-04-29T09:06:41", "repo_name": "csci3251-2020/student-1155136675", "sub_path": "/readme.md", "file_name": "readme.md", "file_ext": "md", "file_size_in_byte": 882, "line_count": 34, "lang": "en", "doc_type": "t...
1. # About me Hi there, I am **Sunny**. It's my honor to have you here. I am now studying computer engineering in CUHK. I want to become a programmer that can make a change to people. What's more? I love to play basketball and PS4. 2. ## Experience in Github I am still learning to use Github now but I think it is ...
fa618f56-a20d-4b16-9c85-9832970a0d49
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-15 03:05:48", "repo_name": "aasheng24/AndroidNews", "sub_path": "/ShengNews/app/src/main/java/a/a/sheng/shengnews/presenter/main/SearchPresenter.java", "file_name": "SearchPresenter.java", "file_ext": "java", ...
package a.a.sheng.shengnews.presenter.main; import java.util.List; import javax.inject.Inject; import a.a.sheng.shengnews.base.presenter.BasePresenter; import a.a.sheng.shengnews.contract.main.SearchContract; import a.a.sheng.shengnews.core.DataManager; import a.a.sheng.shengnews.core.dao.HistoryData; public class ...
3dd8afeb-f5c4-4da6-8769-cb596f8296e0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-12 06:16:18", "repo_name": "im182cm/Dog-Stagram", "sub_path": "/app/src/main/java/philip/com/dogstagram/mvvm/model/remote/dto/BaseDto.java", "file_name": "BaseDto.java", "file_ext": "java", "file_size_in_byte"...
package philip.com.dogstagram.mvvm.model.remote.dto; import android.support.annotation.VisibleForTesting; import android.text.TextUtils; public class BaseDto<T> { private final String SUCCESS = "success"; private final String status; private final T message; @Override public String toString() { ...
a4524e64-135c-43da-8648-75ff83934dfa
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-01-13 10:18:57", "repo_name": "RTS/finavi", "sub_path": "/finavi/war/src/main/java/com/finavi/portal/page/bank/BankProvider.java", "file_name": "BankProvider.java", "file_ext": "java", "file_size_in_byte": 879, "...
package com.finavi.portal.page.bank; import java.util.Iterator; import java.util.List; import org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider; import org.apache.wicket.model.IModel; import org.apache.wicket.model.Model; import com.finavi.model.Bank; import com.finavi.portal.service.Finavi...
ece1f1aa-9218-4dda-90c6-57a98aefe7f3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-17 03:29:20", "repo_name": "danielptm/rspls_backend", "sub_path": "/src/main/java/com/rpsls/rsplsservice/service/ChoicesService.java", "file_name": "ChoicesService.java", "file_ext": "java", "file_size_in_byte...
package com.rpsls.rsplsservice.service; import com.google.gson.JsonElement; import com.google.gson.JsonParser; import com.rpsls.rsplsservice.utils.Random; import com.rpsls.rsplsservice.utils.ResourceGetter; import org.springframework.stereotype.Service; import java.util.logging.Logger; @Service public class ChoicesS...
8adda654-5f87-428c-8efd-4948b1f60f82
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-03-07 13:54:46", "repo_name": "OKSACO/MT", "sub_path": "/src/main/java/berger/levrault/Normalisation/Normalisation.java", "file_name": "Normalisation.java", "file_ext": "java", "file_size_in_byte": 880, "line_cou...
package berger.levrault.Normalisation; import javax.persistence.*; /** * Created by abdelhamid on 27/02/15. */ @SuppressWarnings("serial") @Entity @Table(name = "normalisation") public class Normalisation { public static final String FIND_ALL = "Account.findAll"; @Id @GeneratedValue private int ...
96fe770f-4fdb-4af0-9eb1-e9301c45936b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-19 16:26:33", "repo_name": "nikhilr612/smart-rockets", "sub_path": "/core/src/io/csv/CSV.java", "file_name": "CSV.java", "file_ext": "java", "file_size_in_byte": 880, "line_count": 35, "lang": "en", "doc_type"...
package io.csv; import java.io.*; import java.util.HashMap; import java.util.Map; public class CSV<T> { BufferedReader reader; BufferedWriter writer; HashMap<String,T> internal = new HashMap<>(); // Internal HashMap for loading values. CSV(InputStream inputStream){ reader = new BufferedRe...
16698cbc-0339-4862-b966-a67b28c6f264
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-01-12T18:21:22", "repo_name": "schibsted-android-training/workshop-1", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 880, "line_count": 13, "lang": "en", "doc_type...
#Workshop 1: Introducing Android In this project we're going to introduce Android step by step, commit by commit. We encourage your to clone the project in your local machine, and check the changes when you go one commit forward. If you're not used to GitHub, you'll find the commits in the *commits* tab. And here's ...
67ca2f0a-bf67-496d-b16f-476c545a9580
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-24 23:22:12", "repo_name": "BadVexon/SwordswomanMod", "sub_path": "/src/main/java/TheSwordswoman/relics/Venustas.java", "file_name": "Venustas.java", "file_ext": "java", "file_size_in_byte": 880, "line_count":...
package TheSwordswoman.relics; import com.megacrit.cardcrawl.actions.common.DiscardAction; import com.megacrit.cardcrawl.actions.common.DrawCardAction; import com.megacrit.cardcrawl.dungeons.AbstractDungeon; import com.megacrit.cardcrawl.stances.AbstractStance; import TheSwordswoman.TheSwordswoman; public class Venus...
c690bcfa-7227-4cbe-98a9-5b36cc19b37f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-03-30T00:27:15", "repo_name": "mooka0/book-search", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 881, "line_count": 28, "lang": "en", "doc_type": "text", "blob_id...
# Book Search Engine Starter Code This is a book search app created using React. 1. Enter the name of the book you wish to search and click the "Search" button 2. List of books will appear based on the search query 3. Press the "View" button to see more details about the book on the Google Books website or save the b...
26c4653b-6e3a-4a68-95b1-b081be20e019
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-14 19:53:12", "repo_name": "ejim7/ProyectoDistribuidos", "sub_path": "/src/dominio/Mapa.java", "file_name": "Mapa.java", "file_ext": "java", "file_size_in_byte": 881, "line_count": 44, "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 dominio; import java.util.ArrayList; import java.util.List; /** * * @author usuario */ public class Mapa { ...
e44753c2-9ecd-439c-8a9e-8a2f9ed5667a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-30 18:20:25", "repo_name": "rodrigodarosa/project", "sub_path": "/src/main/java/com/tooling/project/converter/CityConverter.java", "file_name": "CityConverter.java", "file_ext": "java", "file_size_in_byte": 87...
package com.tooling.project.converter; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; import javax.faces.convert.FacesConverter; import com.tooling.project.facade.CityFacade; import com.tooling.project.model.City; @FacesConverter(value = "city...