id
stringlengths
36
36
meta
stringlengths
429
697
code_content
large_stringlengths
612
1.26k
8c0e040a-8f2f-4e48-a12f-83b2ba6af089
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-25 10:35:51", "repo_name": "szaboreka314/java_project", "sub_path": "/szare23_nagyhf/src/hu/ppke/itk/java/szare23/MainConsole.java", "file_name": "MainConsole.java", "file_ext": "java", "file_size_in_byte": 10...
package hu.ppke.itk.java.szare23; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * console-os játékot indító Main osztály */ public class MainConsole { public static void main(String[] args) { System.out.println("What do you want to play? (local/netw...
5714baf6-bd58-4191-8d5d-c0140d89fa2a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-06-11 00:33:41", "repo_name": "kvr000/zbynek-java-exp", "sub_path": "/pdf-exp/pdfbox-basic-exp/src/test/java/cz/znj/kvr/sw/exp/java/pdf/pdfbox/ReadTextTest.java", "file_name": "ReadTextTest.java", "file_ext": "ja...
package cz.znj.kvr.sw.exp.java.pdf.pdfbox; import lombok.extern.log4j.Log4j2; import org.apache.pdfbox.cos.COSDocument; import org.apache.pdfbox.io.RandomAccessFile; import org.apache.pdfbox.pdfparser.PDFParser; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.text.PDFTextStripper; import org.test...
323276de-1622-4b73-9c1e-dc7aeabafc97
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-27 16:36:34", "repo_name": "zhangyugehu/ButterKnifeProject", "sub_path": "/inject-complier/src/main/java/com/thssh/FileUtils.java", "file_name": "FileUtils.java", "file_ext": "java", "file_size_in_byte": 1021,...
package com.thssh; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException; import java.io.Writer; /** * Created by hth on 2017/6/27. */ class FileUtils { public static void write(String text) { // writer. ...
ddf1ada1-eed7-4060-bce4-43f99bf5ef81
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-25 22:25:27", "repo_name": "MiztaOak/OOProjectGoD", "sub_path": "/KahIT/app/src/main/java/com/god/kahit/networkManager/packets/EventCategoryVoteResultPacket.java", "file_name": "EventCategoryVoteResultPacket.j...
package com.god.kahit.networkManager.packets; /** * responsibility: This class is responsible for building and parsing the necessary contents * to convey a category vote result event. * used-by: This class is used in the following classes: * PacketHandler * * @author: Mats Cedervall */ public class EventCategor...
53fc18ad-1dbd-4558-bb07-6f122ef94d42
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-23 10:02:34", "repo_name": "stylesmangalasseri/spring-hibernate-starting", "sub_path": "/src/main/java/com/example/demo/config/PropertyConfig.java", "file_name": "PropertyConfig.java", "file_ext": "java", "fil...
package com.example.demo.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.PropertySource; import org.springframework.context.support.PropertyS...
07c3a89b-b690-4d86-a455-2c364129f310
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-08T01:23:33", "repo_name": "ANGELOS-TSILAFAKIS/NavigationDrawerPublic", "sub_path": "/app/src/main/java/info/android_angel/navigationdrawer/model_tv_id_get_images/TVGetImages.java", "file_name": "TVGetImages.j...
package info.android_angel.navigationdrawer.model_tv_id_get_images; /** * Created by ANGELOS on 2017. */ import java.util.List; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class TVGetImages { @SerializedName("backdrops") @Expose private List<TVGe...
7819ef71-3011-4811-a1ad-6d971ddc3cc5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-14 06:36:17", "repo_name": "Piyaporn539/Project-OOP-6104062630379", "sub_path": "/src/monkey/grape.java", "file_name": "grape.java", "file_ext": "java", "file_size_in_byte": 1064, "line_count": 41, "lang": "en...
package monkey; import java.awt.Image; import java.awt.Toolkit; import java.awt.geom.Rectangle2D; import java.net.URL; import javax.swing.ImageIcon; public class grape extends apple{ Image img; grape(){ String imageLocation = "grape.png"; URL imageURL1 = this.getClass().getResource...
709f0606-4a95-4d04-9c43-1ff959e26878
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-03-15T22:28:36", "repo_name": "oryxr/wiki_repo", "sub_path": "/Pic32--interrupt.md", "file_name": "Pic32--interrupt.md", "file_ext": "md", "file_size_in_byte": 1021, "line_count": 34, "lang": "en", "doc_type"...
Gestion des interruptions extérieurs sur PIC32 ============================================== #include <plib.h> #define SYS_FREQ (80000000L) void setup() { SYSTEMConfig(SYS_FREQ, SYS_CFG_WAIT_STATES | SYS_CFG_PCACHE); INTEnableSystemMultiVectoredInt(); /* initialisatio...
0b3112ae-1983-451f-bb69-533a39d1999c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-22 12:36:52", "repo_name": "alexbirkett/DialogFragmentIssue", "sub_path": "/app/src/main/java/no/agens/dialogfragmentissue/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_i...
package no.agens.dialogfragmentissue; import android.support.v4.app.FragmentManager; 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) { ...
3cdab935-a712-4d82-bb53-242efa66821d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-04 01:47:31", "repo_name": "dctproject/basic_version", "sub_path": "/src/main/java/thymeleafexamples/stsm/business/entities/Area.java", "file_name": "Area.java", "file_ext": "java", "file_size_in_byte": 1022, ...
package thymeleafexamples.stsm.business.entities; public enum Area { BEIJING("BEIJING"), GUANGZHOU("GUANGZHOU"), SHANGHAI("SHANGHAI"); public static final Area[] ALL = { BEIJING,GUANGZHOU,SHANGHAI }; private final String name; public static Area forName(final String name) { if (...
0a1e19f6-f865-457e-948f-5e77721ad403
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-06 19:00:07", "repo_name": "PetroAndrushchakHome/RockRoyal", "sub_path": "/src/main/java/com/nulp/rock/ui/components/Button.java", "file_name": "Button.java", "file_ext": "java", "file_size_in_byte": 1021, "li...
package com.nulp.rock.ui.components; import com.nulp.rock.common.Driver; import com.nulp.rock.common.Logger; import com.nulp.rock.localization.Localization; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebElement; public class Button extends NavigationLink { public Button() { } ...
3c52ae10-aa68-4a58-bfd2-c7fe65781b93
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-25 08:01:21", "repo_name": "q1113225201/java-learn", "sub_path": "/src/main/java/com/sjl/learn/interceptor/AccessTokenInterceptor.java", "file_name": "AccessTokenInterceptor.java", "file_ext": "java", "file_si...
package com.sjl.learn.interceptor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @Compone...
84977a76-4487-4a4f-bc7b-830d185e0d58
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-24 06:51:49", "repo_name": "SpaceBurritos/keyboardDrivenFrameworkAssignment", "sub_path": "/selenium-tutorial/src/test/java/base/BaseTest.java", "file_name": "BaseTest.java", "file_ext": "java", "file_size_in_...
package base; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.AfterSuite; import org.testng.annotations.BeforeSuite; import org.testng.annotations.BeforeTest; import pages.LogInPage; public class BaseTest { String driverPath = "src\\test\\resourc...
d1f0c30f-5240-413c-a45b-fa751bc51ec6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-11 09:17:38", "repo_name": "songjianzaina/androidLib", "sub_path": "/base/code/com/insworks/lib_base/utils/ToastUtil.java", "file_name": "ToastUtil.java", "file_ext": "java", "file_size_in_byte": 1081, "line_c...
package com.insworks.lib_base.utils; import android.content.Context; import android.widget.Toast; /** * Created by songjian on 2017/1/6. */ public class ToastUtil { private static Context mContext; private static final String TAG = "ToastUtil"; private static Toast toast; private ToastUtil() { ...
b638f7e9-5b7a-4529-bb09-3f833afb71c3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-03 02:50:52", "repo_name": "Lumine95/EasyContact", "sub_path": "/app/src/main/java/com/yigotone/app/user/UserManager.java", "file_name": "UserManager.java", "file_ext": "java", "file_size_in_byte": 1055, "line...
package com.yigotone.app.user; import android.content.Context; import com.android.library.utils.U; import com.yigotone.app.bean.ContactBean; import com.yigotone.app.bean.UserBean; import java.util.ArrayList; import java.util.List; /** * Created by ZMM on 2018/10/31 11:08. */ public class UserManager { privat...
181bcc08-e5a6-4186-ab99-3a0160d1d3b6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-03-17 04:49:03", "repo_name": "brosander/pentaho-hadoop-gateway", "sub_path": "/pentaho-shim-gateway-api/src/main/java/org/pentaho/gateway/args/SetModifiedTimeParameters.java", "file_name": "SetModifiedTimeParame...
package org.pentaho.gateway.args; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; /** * Created by bryan on 3/16/14. */ @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD...
6e481d8c-cd54-440c-9599-fed3e20c4613
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-22 11:06:56", "repo_name": "dnieuwenhuizen97/Opdrachten_Java_Advanced", "sub_path": "/my-first-api/src/main/java/nl/inholland/myfirstapi/model/Album.java", "file_name": "Album.java", "file_ext": "java", "file_...
package nl.inholland.myfirstapi.model; public abstract class Album { protected long id; protected String title; protected String artist; protected int price; public Album() { } public Album(long id, String title, String artist, int price) { this.id = id; t...
fe0e61d9-ebdd-48fb-872c-2f0e7ac34e58
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-09-30 12:12:42", "repo_name": "RonnyatVDAB/Cultuurhuis-2015-09", "sub_path": "/src/main/java/be/vdab/servlets/IndexServlet.java", "file_name": "IndexServlet.java", "file_ext": "java", "file_size_in_byte": 1019, "...
package be.vdab.servlets; import be.vdab.entities.Genre; import be.vdab.services.GenreService; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;...
9b3c2265-1794-47cc-8aa0-41e49c0a6110
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-10 08:22:10", "repo_name": "mujicajuancarlos/solar-system", "sub_path": "/code/src/main/java/ar/com/mercadolibre/solarsystem/entity/Weather.java", "file_name": "Weather.java", "file_ext": "java", "file_size_in...
package ar.com.mercadolibre.solarsystem.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "WEATHER") public class Weather { @Id @Column(name = "DAY", nullable = false, unique = true) private int day...
35564cdc-2580-4d23-9b5e-d5bae588fdb5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-21 19:52:18", "repo_name": "ruiBarbosa03/dissertation", "sub_path": "/Hydrofox - App/app/src/main/java/com/example/utilizador/dissertation_hydrofox/RegisterRequest.java", "file_name": "RegisterRequest.java", "...
package com.example.utilizador.dissertation_hydrofox; import com.android.volley.Response; import com.android.volley.toolbox.StringRequest; import java.util.HashMap; import java.util.Map; public class RegisterRequest extends StringRequest { private static final String REGISTER_REQUEST_URL = "https://paginas.fe.up...
a339f489-10a8-4a63-9478-b1b81ab5c3b6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-11-11T08:52:01", "repo_name": "Growing-C/ZxingDemo", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1020, "line_count": 11, "lang": "en", "doc_type": "text", "blob_...
# ZxingDemo an AS demo for repository Zxing, a well know frame for QR code. this demo contains two modules . There are two modules in this demo project . Module app is just a copy of the well known frame Zxing (https://github.com/zxing/zxing ). As you can see, there are four android-related packages in the Zxing rep...
15a63813-9205-4d21-9497-c4ea72434003
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-19 11:55:56", "repo_name": "GHLJH/HelpChild", "sub_path": "/app/src/main/java/com/le/help_child/activity/OpenLocalMapUtil.java", "file_name": "OpenLocalMapUtil.java", "file_ext": "java", "file_size_in_byte": 1...
package com.le.help_child.activity; /** * 描述:打开手机已安装地图相关工具类 */ public class OpenLocalMapUtil { //from=&to=116.3246,39.966577,endpoint&via=&mode=car public static String getWebGaoDeMapUri( String sLon, String sLat,String dLon, String dLat) { // http://m.amap.com/navi/?start=116.403124,39.940693&dest=116....
d115be87-7cf2-49e0-85be-53fe6d9a389b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-06 00:59:43", "repo_name": "WhitmoreLakeTroBots/2020-Recharge", "sub_path": "/src/main/java/frc/robot/commands/cmdScanBall.java", "file_name": "cmdScanBall.java", "file_ext": "java", "file_size_in_byte": 1022,...
package frc.robot.commands; import edu.wpi.first.wpilibj.command.Command; import frc.robot.Robot; import frc.robot.Settings; public class cmdScanBall extends Command { private boolean _isFinished = false; public cmdScanBall() { //private double scanTimes; } // Called just before this Command runs ...
fd2e84a0-8f0a-40b9-9182-058f7e689e1a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-20 02:50:34", "repo_name": "mirse/StudyCollection", "sub_path": "/module_architecture/src/main/java/com/wdz/module_architecture/rxjava/http/BaseObserver.java", "file_name": "BaseObserver.java", "file_ext": "ja...
package com.wdz.module_architecture.rxjava.http; import android.util.Log; import com.wdz.module_architecture.rxjava.bean.BaseResponse; import io.reactivex.Observer; import io.reactivex.disposables.Disposable; public abstract class BaseObserver<T> implements Observer<BaseResponse<T>> { private static final Stri...
ac716664-523b-4481-a752-839a43002ee0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-01-06 10:07:26", "repo_name": "tchooParabot/IKrabKiller", "sub_path": "/Combat/src/Eat.java", "file_name": "Eat.java", "file_ext": "java", "file_size_in_byte": 1019, "line_count": 31, "lang": "en", "doc_type": "c...
import org.parabot.environment.api.utils.Time; import org.parabot.environment.scripts.framework.SleepCondition; import org.parabot.environment.scripts.framework.Strategy; import org.rev317.min.api.methods.Inventory; import org.rev317.min.api.methods.Menu; import org.rev317.min.api.methods.Players; import org.rev317.min...
3238f6df-f0c3-491e-acf4-4e7c6741a3a9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-01 15:09:12", "repo_name": "Zhang-Each/IoT-Device-Management-System", "sub_path": "/server/src/main/java/com/example/server/utils/RedisUtils.java", "file_name": "RedisUtils.java", "file_ext": "java", "file_siz...
package com.example.server.utils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.anno...
12728db2-9521-4e5c-a0b1-3d54d5c83dd9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-19 11:00:05", "repo_name": "poovarasanvasudevan/SHPTAA", "sub_path": "/app/src/main/java/in/shpt/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byte": 1020, "line_count...
package in.shpt; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import com.parse.GetCallback; import com.parse.ParseException; import com.parse.ParseObject; import com.parse.ParseQuery; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.EA...
bce46224-3ac2-464c-b4ea-c4e95890e80e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-16 11:44:18", "repo_name": "keligeri/spring_rest", "sub_path": "/src/main/java/com/codecool/spring/rest/model/Role.java", "file_name": "Role.java", "file_ext": "java", "file_size_in_byte": 1020, "line_count": ...
package com.codecool.spring.rest.model; import com.fasterxml.jackson.annotation.JsonBackReference; import javax.persistence.*; import java.util.List; @Entity @Table(name = "roles") public class Role { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long id; private String role; ...
61aef361-0be0-4c86-88de-e4d6e120d106
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-01-18T03:06:58", "repo_name": "britcorona/First-Capstone", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1020, "line_count": 36, "lang": "en", "doc_type": "text", ...
# NSS First-Capstone ###Know Thy Car This app is for viewing car part prices for the cars provided, and keeping a vehicle service checklist. ###Running the application #####Clone the repo https://github.com/britcorona/First-Capstone.git #####Install the HTTP Server *Only install if you have not already globally i...
5bd94735-0d66-4991-9b58-c15cc77008f0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-21 17:17:01", "repo_name": "pyotrbodlev/softunirepo", "sub_path": "/JavaDBAdvanced/mostwanted/src/main/java/mostwanted/domain/entities/Race.java", "file_name": "Race.java", "file_ext": "java", "file_size_in_by...
package mostwanted.domain.entities; import mostwanted.domain.entities.base.BaseEntity; import javax.persistence.*; import java.util.List; @Entity @Table(name = "races") public class Race extends BaseEntity { private int laps; private District district; private List<RaceEntry> entries; @Column(name =...
9fa9d3fa-8584-4dbf-a3c8-3950e2b8c8dc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-12 16:23:43", "repo_name": "alx77/jrogen", "sub_path": "/src/main/java/net/ugolok/generation/providers/PhoneNumberProvider.java", "file_name": "PhoneNumberProvider.java", "file_ext": "java", "file_size_in_byte...
package net.ugolok.generation.providers; import net.ugolok.generation.RandomArrayStreamer; import net.ugolok.generation.providers.api.AbstractRandomProvider; import java.util.Iterator; public class PhoneNumberProvider extends AbstractRandomProvider<String> { static private String[] codes = {"050", "052", "053", ...
d7753e90-0e14-4782-af01-a7e28ab4b296
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-16 17:31:12", "repo_name": "Calvinjmin/Personal_Projects", "sub_path": "/JSON + GSON Demo/Movie.java", "file_name": "Movie.java", "file_ext": "java", "file_size_in_byte": 1020, "line_count": 49, "lang": "en", ...
import java.util.Arrays; public class Movie { private String title; private int year; private String [] cast; private String [] genres; public Movie ( String title, int year, String [] cast, String [] genres) { this.title = title; this.year = year; this.cast = cast; this.genres = genres; } public ...
e5a932f0-fb12-4b7b-ac80-7e2921afe0e7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-14 21:37:02", "repo_name": "AfiMaameDufie/FAAJ", "sub_path": "/client-service/src/main/java/com/example/clientservice/model/Client.java", "file_name": "Client.java", "file_ext": "java", "file_size_in_byte": 10...
package com.example.clientservice.model; import java.util.ArrayList; import java.util.List; public class Client { private int id; private String email; private List<Portfolio> portfolios; public Client(int id, String email) { this.id = id; this.email = email; th...
b975f8be-e2a5-45c9-988d-8d067e0e7fdd
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-09-18T19:57:10", "repo_name": "chedaroo/Leytech_PrototypeUpdate", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1019, "line_count": 36, "lang": "en", "doc_type": "...
## Update Prototype JavaScript library for Magento 1 A Magento 1 extension to cleanly update the Prototype Javascript library to 1.7.2 (or other versions). ### Features - Provides an admin option to cleanly update the Prototype library to version 1.7.1, 1.7.2 or 1.7.3 - Does not affect the load order of Javascript re...
3add3d38-1b9f-41ed-abfa-80710e99ed0c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-21 16:22:36", "repo_name": "Sadnan-Kawshik-015/Food-Safari", "sub_path": "/app/src/main/java/com/example/foodsafari/Payment_Choice.java", "file_name": "Payment_Choice.java", "file_ext": "java", "file_size_in_b...
package com.example.logintest; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class Payment_Choice extends AppCompatActivity { TextView tv; B...
c0d77431-361e-4959-ab24-26cc514fd91c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-06-03 16:35:22", "repo_name": "michaelliu624/CMS", "sub_path": "/src/main/java/com.springmvc.cms/service/impl/TeacherPermissionImpl.java", "file_name": "TeacherPermissionImpl.java", "file_ext": "java", "file_size...
package com.springmvc.cms.service.impl; import com.springmvc.cms.mapper.SelectTeacherPermissionMapper; import com.springmvc.cms.mapper.StudentLoginMapper; import com.springmvc.cms.model.TeacherPermission; import com.springmvc.cms.service.SelectTeacherService; import org.springframework.stereotype.Repository; import or...
eccc48ba-cec2-4484-a75a-eceef2dc1e8e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-23 09:14:48", "repo_name": "utshavtimsina/UbuntuWorkspace", "sub_path": "/Day9_JDBI/src/main/java/org/timsina/main/config/JDBIConfig.java", "file_name": "JDBIConfig.java", "file_ext": "java", "file_size_in_byt...
package org.timsina.main.config; import javax.sql.DataSource; import org.jdbi.v3.core.Jdbi; import org.jdbi.v3.sqlobject.SqlObjectPlugin; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.jdbc.DataSourceBuilder; import org.springframework.context.annotation.Be...
21dae3ea-691a-4438-8753-207aabc58329
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-07 18:50:38", "repo_name": "Ginbob/ArtistDemo", "sub_path": "/src/main/java/de/burandt/artists/contact/config/ContactConfiguration.java", "file_name": "ContactConfiguration.java", "file_ext": "java", "file_siz...
package de.burandt.artists.contact.config; import de.burandt.artists.contact.service.ContactServiceProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.mail.javamail.JavaMailSenderImpl; import java.util.Properties; @Co...
38769182-cced-4238-bdbc-93cd3d03c080
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-01 16:05:10", "repo_name": "viniciusufop/provider-mock", "sub_path": "/src/main/java/br/com/vfs/providermock/config/ProductConfig.java", "file_name": "ProductConfig.java", "file_ext": "java", "file_size_in_byt...
package br.com.vfs.providermock.config; import br.com.vfs.providermock.soa.client.ProductWSClient; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.oxm.jaxb.Jaxb2Marshal...
b0c8f4c8-da31-46b4-9366-ae3ad7736f2c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-08-12 08:30:58", "repo_name": "Younghusband/LeetCode", "sub_path": "/src/com/playground/extend/CreateObjectTest.java", "file_name": "CreateObjectTest.java", "file_ext": "java", "file_size_in_byte": 1020, "line_co...
package com.playground.extend; /** * @author: Vermouth * @create: 2021-08-06 16:32 * @description: **/ public class CreateObjectTest implements Cloneable { String name; int age; public CreateObjectTest() { } public CreateObjectTest(String name) { this.name = name; initAge();...
f4ee081d-d17c-404c-967c-d43834fcf5a6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-16 15:15:24", "repo_name": "umairmunir-95/CheckMaid-Android", "sub_path": "/app/src/main/java/com/mindclarity/checkmaid/data/remote/ApiClient.java", "file_name": "ApiClient.java", "file_ext": "java", "file_siz...
package com.mindclarity.checkmaid.data.remote; import com.mindclarity.checkmaid.App; import okhttp3.OkHttpClient; import okhttp3.logging.HttpLoggingInterceptor; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; public class ApiClient { private static Retrofit retrofit = null; ...
0497b17f-4939-486c-93ec-75273d93b50c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-02 13:11:57", "repo_name": "code-crusher/udacity-buildItBigger", "sub_path": "/joker/src/main/java/github/vatsal/joker/Joker.java", "file_name": "Joker.java", "file_ext": "java", "file_size_in_byte": 1032, "li...
package github.vatsal.joker; import java.util.Random; public class Joker { // no object initialisation private Joker() { } private static final Random random = new Random(); private static final String[] NERDY_JOKES = { "There are only 10 types of people in the world: those that und...
10049b68-0497-4690-8a8d-9fb3c92ff481
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-16 00:27:19", "repo_name": "tryup2021/yypp1", "sub_path": "/src/main/java/com/phome/yypp/service/impl/NumsServiceImpl.java", "file_name": "NumsServiceImpl.java", "file_ext": "java", "file_size_in_byte": 1024, ...
package com.phome.yypp.service.impl; import com.phome.yypp.dao.NumsMapper; import com.phome.yypp.pojo.Nums; import com.phome.yypp.service.NumsService; import org.apache.logging.log4j.message.ReusableMessage; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; i...
46419225-1b97-42c0-9df4-5b169b20fcea
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-23 10:23:05", "repo_name": "rflorian2017/testapi", "sub_path": "/src/main/java/com/rosu/sda/NetworkUtils.java", "file_name": "NetworkUtils.java", "file_ext": "java", "file_size_in_byte": 1020, "line_count": 30...
package com.rosu.sda; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; public class NetworkUtils { public static final String STUDENT_URL = "https://online-school-catalog-ad.h...
2f6c5cc5-5a59-480c-80da-434e1f7cc247
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-14 14:19:54", "repo_name": "romasini/mvc-example", "sub_path": "/src/main/java/ru/romasini/structure/pattern/mvc/controllers/ProductController.java", "file_name": "ProductController.java", "file_ext": "java", ...
package ru.romasini.structure.pattern.mvc.controllers; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*; import ru.romasini.structure.pattern.mvc.dto.ProductDto; import ru.romasini.structure.pattern.mvc.entities.Product; import ru.romasini.structure.pattern.mvc.services.ProductSe...
9b8b0e7d-12ab-4ae0-8cf1-3607272ae79a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2012-09-30T13:23:57", "repo_name": "opyate/typesafe-stack-cookbook", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1020, "line_count": 46, "lang": "en", "doc_type": "te...
Description =========== Installs the Typesafe Stack. Requirements ============ Platform -------- * Ubuntu/Debian/Amazon * No others--pull requests welcome. Recipes ======= default ------- Include the default recipe in a run list, to get `typesafe_stack`. Usage ===== Simply include the `typesafe_stack` recipe ...
facf5faa-f4ea-4ef7-817a-8e07301585b0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-12 08:40:21", "repo_name": "riccardomengoli/StabilimentoBalneare", "sub_path": "/StabilimentoBalneare/src/ombrelloniani/view/fxmlControllers/Popup_InfoOmbrelloneComplete.java", "file_name": "Popup_InfoOmbrello...
package ombrelloniani.view.fxmlControllers; import java.io.IOException; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.control.Label; import javafx.scene.layout.VBox; public class Popup_InfoOmbrelloneComplete extends VBox { @FXML private Label idOmbrellone; @FXML private L...
4206cd0a-d100-4493-b8ca-31e9d3890bd1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-12 04:46:51", "repo_name": "daggerok/thorntail-example", "sub_path": "/8/config/src/main/java/com/github/daggerok/resources/MyResource.java", "file_name": "MyResource.java", "file_ext": "java", "file_size_in_b...
package com.github.daggerok.resources; import com.github.daggerok.config.Config; import org.slf4j.Logger; import javax.ejb.Stateless; import javax.inject.Inject; import javax.json.JsonObject; import javax.ws.rs.*; import static javax.ws.rs.core.MediaType.APPLICATION_JSON; @Path("") @Stateless @Produces(APPLICATION_...
7ab95d72-97b0-4d0c-9829-71f9bed50a28
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-08 00:40:19", "repo_name": "George-Poulos/Minimal-Average-Distance", "sub_path": "/src/City.java", "file_name": "City.java", "file_ext": "java", "file_size_in_byte": 1021, "line_count": 46, "lang": "en", "doc_...
/** * Created by : George Poulos * Class : CS342 HW1 ---- Fall 2016 * Author Code Number : 655P * * This file holds the class that defines City, this class holds * an Integer variable that holds the city index, a String that * holds the name of the city, and another string that holds the * name of the state tha...
6c5f6865-10e6-4fd5-ab20-f1c4aa94b22c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-16 15:07:32", "repo_name": "keyla-hyemin/falling-money-srv", "sub_path": "/src/main/java/com/kkp/demo/dto/FallingMoneyHistory.java", "file_name": "FallingMoneyHistory.java", "file_ext": "java", "file_size_in_b...
package com.kkp.demo.dto; import lombok.Builder; import lombok.Getter; import org.springframework.data.annotation.Id; import org.springframework.data.redis.core.RedisHash; import java.io.Serializable; import java.time.LocalDateTime; import java.util.Map; @Getter @RedisHash(value = "FallingMoneyHistory", timeToLive =...
728e5e87-a6f6-44b6-8e62-8120bf196ea4
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-25 13:58:12", "repo_name": "esparhams/myMatchRules", "sub_path": "/src/main/java/gov/match/model/TreatmentArmHistoryItem.java", "file_name": "TreatmentArmHistoryItem.java", "file_ext": "java", "file_size_in_by...
package gov.match.model; import java.util.Date; import java.util.UUID; import javax.validation.constraints.NotNull; import org.springframework.data.mongodb.core.mapping.Document; @Document(collection = "treatmentArmHistory") public class TreatmentArmHistoryItem extends MatchObject implements Comparable<TreatmentArm...
45446854-2863-4446-b3ae-4fd1088a3559
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-06-30T19:08:11", "repo_name": "snorrena/west-coast-surf-report-java-swing", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1020, "line_count": 15, "lang": "en", "do...
# west-coast-surf-report-java-swing west-coast-surf-report-java-swing is a standalone Java swing gui application The West Vancouver Surf Report is a stand alone Java application port of the Android mobile application of the same name. This application will run on any personal computer that has Java installed. It perf...
608ce479-3832-4248-bc7e-0ffb400903d3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-04-29 17:36:20", "repo_name": "dmitrybilyk/interviews", "sub_path": "/src/main/java/com/learn/patterns/freemanAndFreeman/headfirst/composite/custom/CompositeIterator.java", "file_name": "CompositeIterator.java", ...
package com.learn.patterns.freemanAndFreeman.headfirst.composite.custom; import java.util.Iterator; import java.util.Stack; public class CompositeIterator implements Iterator { Stack stack = new Stack(); public CompositeIterator(Iterator iterator) { stack.push(iterator); } public Object next() { if (...
5a420723-5ac9-491a-8b81-af891272f7b6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-02-13 20:13:18", "repo_name": "mutsuda/HackU", "sub_path": "/yql/uses/Weather.java", "file_name": "Weather.java", "file_ext": "java", "file_size_in_byte": 1020, "line_count": 40, "lang": "en", "doc_type": "code",...
package yql.uses; import java.util.HashMap; import java.util.Map; import yql.uses.dto.WeatherInfo; import yql.utils.JSONHelper; import yql.utils.YQLExecutor; import com.google.gson.JsonElement; public class Weather { public static WeatherInfo getWeatherInfo() { // Get JSON JsonElement jsonRoot = YQLExecutor ...
21e76ebe-d03c-49e0-ad5a-7620a9d12685
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-30 22:31:42", "repo_name": "lwhamilton03/AdvancedTestingAssessment", "sub_path": "/src/main/java/com/qa/AdvancedTesting/AddOwnerPage.java", "file_name": "AddOwnerPage.java", "file_ext": "java", "file_size_in_b...
package com.qa.AdvancedTesting; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; public class AddOwnerPage { @FindBy(xpath = "//*[@id=\'firstName\']") private WebElement firstNameBox; @FindBy(xpath = "//*[@id=\'lastName\']") private WebElement lastNameBox; @FindBy(xpath = "...
f0bf2a29-b0d1-4f37-90d2-e5b2d8f8a531
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-05 19:59:10", "repo_name": "Arhsota/Android", "sub_path": "/Lessons/app/src/main/java/com/test/lessons/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byte": 1020, "line...
package com.test.lessons; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class MainActivity extends AppCompatActivity { private TextView textView; //* private TextView textViewGB; @Ov...
d79da1a0-d0f1-49f0-9f29-acab2d64be05
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-16 03:45:01", "repo_name": "FPhoenixCorneaE/Ignorance", "sub_path": "/LIgnorance/src/main/java/com/livelearn/ignorance/ui/fragment/ImageFragment.java", "file_name": "ImageFragment.java", "file_ext": "java", "f...
package com.livelearn.ignorance.ui.fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.ViewGroup; import com.livelearn.ignorance.R; import com.livelearn.ignorance.base.BaseFragment; import com.livelearn.ignorance.ui.fragment.image.TianGouPrettyPictureFragment; import com.livele...
677a1fcc-6bb0-4c24-8115-c8e4057f7979
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-07 01:12:42", "repo_name": "cielqian/LoadStar", "sub_path": "/gateway/src/main/java/com/ciel/loadstar/gateway/filter/OAuthErrorFilter.java", "file_name": "OAuthErrorFilter.java", "file_ext": "java", "file_size...
package com.ciel.loadstar.gateway.filter; import com.netflix.zuul.ZuulFilter; import com.netflix.zuul.context.RequestContext; import com.netflix.zuul.exception.ZuulException; import org.springframework.cloud.netflix.zuul.filters.support.FilterConstants; import org.springframework.stereotype.Component; /** * @Author ...
18c08181-dc3c-4019-b0dc-b3c939c31e8c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-05 13:48:52", "repo_name": "Wood-Water-Peng/SwangyiMusic", "sub_path": "/app/src/main/java/com/example/jackypeng/swangyimusic/rx/converter/ExGsonResponseBodyConverter.java", "file_name": "ExGsonResponseBodyCon...
package com.example.jackypeng.swangyimusic.rx.converter; import com.google.gson.Gson; import org.json.JSONException; import org.json.JSONObject; import java.io.IOException; import java.lang.reflect.Type; import okhttp3.ResponseBody; import retrofit2.Converter; public class ExGsonResponseBodyConverter<T> implement...
b56c59c9-976a-40f1-8536-70ab62a0b598
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-28 08:54:27", "repo_name": "KangChanSong/priates", "sub_path": "/src/main/java/com/pirates/dto/product/ProductGetDto.java", "file_name": "ProductGetDto.java", "file_ext": "java", "file_size_in_byte": 1020, "li...
package com.pirates.dto.product; import com.pirates.entity.Product; import lombok.Data; @Data public class ProductGetDto { private String name; private String description; private String price; public static ProductGetDto toDto(Product product, Long lowestPrice){ ProductGetDto dto = new Produ...
038cb319-0716-4f85-ba93-9e90d8798fb0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-07-21 21:06:14", "repo_name": "victorvbello/android-androidchat", "sub_path": "/app/src/main/java/com/example/victorbello/androidchat/entities/ChatMessage.java", "file_name": "ChatMessage.java", "file_ext": "java...
package com.example.victorbello.androidchat.entities; /** * Created by ragnarok on 11/07/16. */ import com.google.firebase.database.Exclude; public class ChatMessage { private String msg; private String sender; @Exclude private boolean sentByMe; public String getMsg() { return msg; ...
75c0946c-19db-46fb-bcaa-744e7350ec02
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-20 02:54:46", "repo_name": "zsj6102/zsjda", "sub_path": "/app/src/main/java/com/colpencil/propertycloud/View/Adapter/NationAdapter.java", "file_name": "NationAdapter.java", "file_ext": "java", "file_size_in_by...
package com.colpencil.propertycloud.View.Adapter; import android.content.Context; import com.colpencil.propertycloud.R; import org.byteam.superadapter.SuperAdapter; import org.byteam.superadapter.internal.SuperViewHolder; import java.util.List; public class NationAdapter extends SuperAdapter<String> { private...
bff6f776-adb7-410d-9a07-acded603770a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-11 04:37:48", "repo_name": "Ramhardik88/Javabrains.io", "sub_path": "/src/example/matixtrue.java", "file_name": "matixtrue.java", "file_ext": "java", "file_size_in_byte": 1024, "line_count": 53, "lang": "en", ...
package example; import java.util.Scanner; public class matixtrue { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.print("enter the size of row"); int row = scan.nextInt(); System.out.print("enter the size of colmun"); int col = s...
1b69f61e-15ae-4175-8bea-ef9885937ac1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-10-20T21:39:06", "repo_name": "adaptdk/usa-documentation", "sub_path": "/contributions/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1021, "line_count": 41, "lang": "en", "doc_t...
# Why Our work is supported by, and it is possible thanks to a lot of base software. Most of that infrastructure software are different pieces of open source software projects, which in most of the cases are not directly funded in any way. This may lead to problems in sustainability, that will later affect us directly...
e7bd79e5-925e-4206-b0ac-57d3471dbe46
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-08-09T09:32:57", "repo_name": "PlushBeaver/evergreen", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1020, "line_count": 32, "lang": "en", "doc_type": "text", "blo...
# Evergreen: inter-process socket transfer example Evergreen is a TCP proxy that can be updated without breaking connections. This is achieved by transferring open TCP sockets to the new instance via a control Unix socket. Should be POSIX-compatible, tested on Linux. Build the proxy: `gcc evergreen.c -o evergreen` R...
b6f65ca5-4e76-4883-9122-be65324b2253
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-04-25T07:27:24", "repo_name": "alexpasta/Native-Ads-in-RecyclerView", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1020, "line_count": 31, "lang": "en", "doc_type...
# Native Ads in RecyclerView ### Demo Note: In order to avoid showing real ads, we only show the MoPub demo ad in this video. ![](https://github.com/alexpasta/Native-Ads-in-RecyclerView/blob/master/images/demo.gif) ### How to Setup 1. Setup a FAN native ad placement ID. (Go through the steps in https://developers.f...
7677e542-484e-43cc-a976-5a78e4a98ff2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-15 12:52:50", "repo_name": "fernandojr999/ecommerce", "sub_path": "/src/test/java/br/com/fernando/ecommerce/cepServiceTest/CepServiceTest.java", "file_name": "CepServiceTest.java", "file_ext": "java", "file_si...
package br.com.fernando.ecommerce.cepServiceTest; import br.com.fernando.ecommerce.core.address.cep.CepDTO; import br.com.fernando.ecommerce.core.address.cep.CepService; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.Spring...
f70417c7-a479-4c9e-9ea9-aad820f424dc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-28 07:21:49", "repo_name": "imacback/bs", "sub_path": "/bs-cache/src/test/java/cn/aiyuedu/bs/cache/service/CategoryCacheServiceTest.java", "file_name": "CategoryCacheServiceTest.java", "file_ext": "java", "fil...
package cn.aiyuedu.bs.cache.service; import cn.aiyuedu.bs.common.model.CategoryBase; import org.apache.commons.collections4.CollectionUtils; import org.junit.Ignore; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import java.util.List; /** * Created by webwyz on 14/10/22. */ ...
6e071365-c3dd-4d9e-929f-adb01ba23a04
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-28 10:40:08", "repo_name": "Rahil93/prog", "sub_path": "/Data_Structure/Queue/Queue.java", "file_name": "Queue.java", "file_ext": "java", "file_size_in_byte": 1020, "line_count": 66, "lang": "en", "doc_type": ...
public class Queue<T>{ public Node head; public void queue(){ head = null; } public <T> void enqueue(T data){ Node node = new Node(); node.data = data; node.next = null; if (head == null) { head = node; } else{ Node n = head; while (n == head) { node.next...
d1b5df10-4ded-44e2-905f-72a9db6e2166
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-11-30T18:25:33", "repo_name": "aerospike/cf-aerospike-on-demand-tile", "sub_path": "/kiln-build/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1019, "line_count": 13, "lang": "en...
## To build the tile: ### Prerequisites 1. [Kiln](https://github.com/pivotal-cf/kiln) 2. First copy the `aerospike-service-adapter-release*.tgz` `aerospike-service-release*.tgz` and `on-demand-service-broker-0.21.2.tgz` into the release directory. The service adapter release may be found at: https://network.pivotal....
04f85215-2836-47b0-8124-3f95f358e090
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-24 13:48:25", "repo_name": "TonySamara/CPWeb", "sub_path": "/WebProject/src/main/java/com/dao/HibernateUtil.java", "file_name": "HibernateUtil.java", "file_ext": "java", "file_size_in_byte": 1020, "line_count"...
package com.dao; import com.models.Biography; import com.models.Player; import com.models.Position; import com.models.Statistics; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; /** * Created by ANTON on 05.03.2016. */ public class HibernateUtil { private static final SessionFactory ...
4d136ecb-abff-4462-9548-0c44aba20447
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-04 15:31:13", "repo_name": "alexylon/EduJava", "sub_path": "/exercises/src/me/alexandroff/misc/animals/Animal.java", "file_name": "Animal.java", "file_ext": "java", "file_size_in_byte": 1022, "line_count": 59,...
package me.alexandroff.misc.animals; public class Animal { private String name; private int age; String str = "Variable from Animal"; Animal(String name, int age) { this.name = name; this.age = age; } public String getName() { return name; } public void setNam...
a722274e-f4b7-4402-acad-23a5b63bc7dc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-02 09:23:31", "repo_name": "ClarkJul/MvvmDemo", "sub_path": "/m_home/src/main/java/com/clark/home/nominate/NominateFragment.java", "file_name": "NominateFragment.java", "file_ext": "java", "file_size_in_byte":...
package com.clark.home.nominate; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.fragment.app.Fragment; import com.clark.home.R; public class NominateFragment extends Fragment { public NominateFragment() { // Required...
ac486868-78a8-43bc-9e82-cc0475ca3982
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-17 21:09:10", "repo_name": "Tatt13/KiandaMuzik", "sub_path": "/app/src/main/java/com/example/edson/kiandamuzik/BaseActivity.java", "file_name": "BaseActivity.java", "file_ext": "java", "file_size_in_byte": 102...
package com.example.edson.kiandamuzik; import android.os.AsyncTask; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.support.v7.app.AppCompatActivity; import fragments.NowPlayingFragment; /** * Created by Edson on 10/01/2018. */ public class BaseActi...
80d20844-ba7b-493f-bd95-1572fdf521c7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-21 09:18:22", "repo_name": "Gaddale/qa-test-hf", "sub_path": "/src/test/java/com/hellofresh/challenge/steps/ExistingCustomer.java", "file_name": "ExistingCustomer.java", "file_ext": "java", "file_size_in_byte"...
package com.hellofresh.challenge.steps; import com.hellofresh.challenge.pages.MyAccountPage; import com.hellofresh.challenge.pages.PageFactory; import cucumber.api.java.en.Then; import org.apache.log4j.Logger; import static org.assertj.core.api.Assertions.assertThat; import static org.apache.log4j.Logger.getLogger; ...
99fb6779-b6ac-4e06-ba34-3e9dc5026bb3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-06 02:57:34", "repo_name": "jchonker/factory-end", "sub_path": "/src/main/java/com/factory/end/model/primary/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byte": 1025, "line_count": 4...
package com.factory.end.model.primary; import lombok.Data; import javax.persistence.*; import java.util.ArrayList; import java.util.List; /** * @Author jchonker * @Date 2020/8/21 15:37 * @Version 1.0 * 模板类 */ @Data @Table(name = "pro_User") @Entity public class User { @Id @GeneratedValue(strategy = Gene...
f27348cd-638e-41dd-91f7-9295d6a73b80
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-18 22:25:28", "repo_name": "millems/noggin", "sub_path": "/runtime/core/utils/src/main/java/software/amazon/noggin/runtime/util/Strings.java", "file_name": "Strings.java", "file_ext": "java", "file_size_in_byt...
package software.amazon.noggin.runtime.util; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class Strings { private Strings() {} public static List<String> split(String input, char delimeter) { List<String> result = new ArrayList<>(); int start = 0; ...
b38c4d3a-0c32-430e-90c1-802f94c3a5ce
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-11-22 16:16:41", "repo_name": "Lapiman/Totemic", "sub_path": "/src/totemic_commons/pokefenn/totem/TotemArrayList.java", "file_name": "TotemArrayList.java", "file_ext": "java", "file_size_in_byte": 1019, "line_cou...
package totemic_commons.pokefenn.totem; import java.util.ArrayList; import java.util.List; import net.minecraft.item.ItemStack; public class TotemArrayList { public static List<TotemArrayList> recipes = new ArrayList<TotemArrayList>(); public static void addTotems(){ } private final ItemStac...
49bdc10d-4489-4de2-93b7-5c8c687160b6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-08-19T13:02:32", "repo_name": "intchloe/swehack", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1019, "line_count": 19, "lang": "en", "doc_type": "text", "blob_id"...
# swehack swehack.org configuration and information #### swehack security and privacy adjustments * Hard code "127.0.0.1" as IP for all members * No logging * Auto remove private messages after X days * Techniques to fight onion-rewriting * Check if private messages are PGP-encrypted (see [check_pgp.js](https://github...
a460d344-64fb-42ca-84cb-af045cf09d5d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-23 12:08:49", "repo_name": "LXiong/hermes", "sub_path": "/hermes-api/src/main/java/pl/allegro/tech/hermes/api/SchemaSource.java", "file_name": "SchemaSource.java", "file_ext": "java", "file_size_in_byte": 1019...
package pl.allegro.tech.hermes.api; import java.util.Objects; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Strings.emptyToNull; public final class SchemaSource { private final String value; private SchemaSource(String value) { this.value = ch...
fc768ed6-9023-4dbf-accc-2f367544cb2d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-24 00:43:12", "repo_name": "Bumler/DroneForensics", "sub_path": "/app/src/main/java/bumler/droneforensics/location_launch_Activity.java", "file_name": "location_launch_Activity.java", "file_ext": "java", "file...
package bumler.droneforensics; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.ImageButton; /** * Created by d10 on 7/7/2016. */ public class location_launch_Activity extends Activity{ private int boundaries = 0; private ...
c98d8df9-3636-442e-8227-6b9ae948b54f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-13 13:17:36", "repo_name": "antowaddle/Selenium-Cucumber-Quickstart", "sub_path": "/ui-acceptance-tests/src/test/java/io/github/anthony/runvalidation/TestExecutionValidator.java", "file_name": "TestExecutionVa...
package io.github.anthony.runvalidation; import io.github.bonigarcia.wdm.WebDriverManager; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.testng.AbstractTestNGSpringCo...
9cc544a6-7f43-4f7e-b926-79322ac9cfd4
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-28 11:03:45", "repo_name": "kaganyasar/spring-cloud-contract-eg", "sub_path": "/spring-cloud-contract-data/src/main/java/data/WebSocketResponseSimpleMessage.java", "file_name": "WebSocketResponseSimpleMessage....
package data; public class WebSocketResponseSimpleMessage { private String message; private Person messagedToPerson; private Person messagedByPerson; public WebSocketResponseSimpleMessage() { } public WebSocketResponseSimpleMessage(String message, Person messagedToPerson, Person messagedByPer...
ef4275fe-72a8-4beb-9d36-a8d23f9b833e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-25 05:05:05", "repo_name": "crackvr/vraa_proj", "sub_path": "/app/src/main/java/com/example/remainderapp/theAbt.java", "file_name": "theAbt.java", "file_ext": "java", "file_size_in_byte": 1019, "line_count": 3...
package com.example.remainderapp; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; public class theAbt extends AppCompatActivity implements AdapterView.OnItemClick...
88776226-7db5-49ec-a4a8-2f461fe34b30
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-10T03:16:02", "repo_name": "JefferyWuYajun/javaproject", "sub_path": "/explore-zk/src/main/java/zk/app/ConnectionWatcher.java", "file_name": "ConnectionWatcher.java", "file_ext": "java", "file_size_in_byte": 1...
package zk.app; import org.apache.zookeeper.WatchedEvent; import org.apache.zookeeper.Watcher; import org.apache.zookeeper.ZooKeeper; import java.io.IOException; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; /** * @author jefferywu * @version Id: ConnectionWatcher, v 0.1 18/3/20...
02db2e38-e0b8-4b9f-8dec-218dd085e526
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-10 08:10:13", "repo_name": "sunning9001/AllInOneSample", "sub_path": "/SpringEnableSample/src/main/java/conditional/MyCondiction.java", "file_name": "MyCondiction.java", "file_ext": "java", "file_size_in_byte"...
package conditional; import java.util.Map; import org.springframework.context.annotation.Condition; import org.springframework.context.annotation.ConditionContext; import org.springframework.context.annotation.Conditional; import org.springframework.core.type.AnnotatedTypeMetadata; import org.springframework.core.typ...
2c411d7f-aa62-48f9-9c8d-d7720f7e45d4
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-28 05:15:42", "repo_name": "CwugsChen18/PlitPlay_v2", "sub_path": "/app/src/main/java/com/plit/googleplay/protocol/GameProtocol.java", "file_name": "GameProtocol.java", "file_ext": "java", "file_size_in_byte":...
package com.plit.googleplay.protocol; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import com.plit.googleplay.beans.ItemBeans; import java.util.ArrayList; /** * @author Cwugs.Chen. * @time 2016/8/23 19:07 * @desc ${TODD} */ public class GameProtocol extends BaseProtocol<ArrayList<ItemB...
127e6c0f-b033-4f1b-b139-13f8ced4cd05
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-01 19:39:16", "repo_name": "RegionalHuila/TSPPSP", "sub_path": "/app/src/main/java/com/example/worldskills/tsppsp/SplashActivity.java", "file_name": "SplashActivity.java", "file_ext": "java", "file_size_in_byt...
package com.example.worldskills.tsppsp; import android.content.Intent; import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; public class SplashActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstance...
9f7d35fb-c08e-4da6-a806-9d5b88288e29
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-15 17:44:17", "repo_name": "Zap123/SimpleReport", "sub_path": "/src/com/zap123/DataSources/SQliteDatabase.java", "file_name": "SQliteDatabase.java", "file_ext": "java", "file_size_in_byte": 1019, "line_count":...
package com.zap123.DataSources; import com.dieselpoint.norm.Database; import com.zaxxer.hikari.HikariConfig; import com.zaxxer.hikari.HikariDataSource; import javax.sql.DataSource; import java.sql.SQLException; /** * Created by luca on 13/11/15. * Extends Norm.Database to support SQLite */ public class SQliteData...
aeccb716-6f5f-4c8d-a9d6-b5b5b369f0f5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-25 09:00:49", "repo_name": "HongxingTan/SpringCloudSecurity", "sub_path": "/user-api/src/main/java/com/alitantan001/security/user/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byte": ...
package com.alitantan001.security.user; import lombok.Data; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.BeanUtils; import javax.persistence.*; import javax.validation.constraints.NotBlank; @Data @Entity public class User { @Id @GeneratedValue(strategy = GenerationType.IDENT...
15568f6e-099d-4d20-b555-c59da9226def
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-08 07:29:42", "repo_name": "yujisuz/MyRepository", "sub_path": "/TestJava/com/cisco/jptac/vsec/http/JptacVsecHttpResponse.java", "file_name": "JptacVsecHttpResponse.java", "file_ext": "java", "file_size_in_byt...
package com.cisco.jptac.vsec.http; import java.io.IOException; import java.io.OutputStream; import java.util.HashMap; import java.util.Map; import java.util.Objects; public class JptacVsecHttpResponse { private final JptacVsecHttpStatus status; private Map<String, String> headers = new HashMap<>(); priva...
76e81bc3-39ef-45b1-9b92-a74a9fcfc812
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-17 10:29:36", "repo_name": "spatack/zookeeper-distributed-lock", "sub_path": "/src/main/java/com/example/demo/service/AbstractZookeeperLock.java", "file_name": "AbstractZookeeperLock.java", "file_ext": "java",...
package com.example.demo.service; import org.I0Itec.zkclient.ZkClient; import org.apache.curator.framework.recipes.locks.InterProcessMutex; /** * zk分布式锁抽象类 */ public abstract class AbstractZookeeperLock implements Lock { private static final String HOST = "localhost:2182"; protected ZkClient client = new Z...
da296e4b-f7cb-4880-bb84-d3902486d1bc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-05-21T07:01:49", "repo_name": "create-softdev/softdev-program", "sub_path": "/modules/17-NPM/praxis/2-use-another-users-people-db.md", "file_name": "2-use-another-users-people-db.md", "file_ext": "md", "file_...
# Use People-DB Find a user that already finished the previous exercise, and use _their_ people-db module. Take the command-line code that uses the people-db from [Node Async module](../../16-Node-File-Async/praxis/3-E-people-db.md). Create a package with that code, and use a people-db package that was already publi...
c08bcbf7-cac6-4f2f-aa1e-16e7aced1583
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-11-03T12:24:15", "repo_name": "nmd88/datamining", "sub_path": "/docs/hadoop_intro.md", "file_name": "hadoop_intro.md", "file_ext": "md", "file_size_in_byte": 1020, "line_count": 23, "lang": "en", "doc_type": ...
HADOOP INTRODUCTION --- Apache HADOOP is a framework used to develop data processing applications which are executed in a distributed computing environment. Similar to data residing in a local file system of personal computer system, in Hadoop, data resides in a distributed file system which is called as a Hadoop Dis...
413d30e2-5420-4342-a1ce-646f5e42c1d1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-12T16:38:18", "repo_name": "cherishfriendship/seckill", "sub_path": "/src/test/java/com/xm/dao/SuccessKilledDaoTest.java", "file_name": "SuccessKilledDaoTest.java", "file_ext": "java", "file_size_in_byte": 101...
package com.xm.dao; import com.xm.entity.SuccessKilled; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import javax.annotation.Resource; import static org.junit.Assert.*; @R...
9b855bd0-b521-46b8-9046-62451cf9c4d3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-26 10:22:38", "repo_name": "HarisTanveer/smdproject", "sub_path": "/Bagpackers/app/src/main/java/com/example/bagpackers/Classes/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byte": 10...
package com.example.bagpackers.Classes; import android.arch.persistence.room.ColumnInfo; import android.arch.persistence.room.Entity; import android.arch.persistence.room.Ignore; import android.arch.persistence.room.PrimaryKey; import android.support.annotation.NonNull; import com.google.firebase.database.IgnoreExtra...
23ebd960-ea1d-49ce-8aac-3956b11567c7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-30 11:21:13", "repo_name": "waninoko68/ListViewHomework", "sub_path": "/app/src/main/java/wm/list/AnimalDetailsActivity.java", "file_name": "AnimalDetailsActivity.java", "file_ext": "java", "file_size_in_byte"...
package wm.list; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ImageView; import android.widget.TextView; import wm.list.model.Animal; import static android.R.attr.name; public class AnimalDetailsActivity extends AppCompatActivity { ...
1b101c77-9566-4581-8b4b-efff5fa35f4c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-25 06:24:39", "repo_name": "yanyjcoder/yanyj-xyz", "sub_path": "/02_source/yanyj-back/yanyj-services/src/test/java/TestUserService.java", "file_name": "TestUserService.java", "file_ext": "java", "file_size_in_...
import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import xyz.yanyj.services.service.UserService; import xyz.yanyj.uti...
67bccaf9-7272-4fc8-be7b-38e33766a904
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-23 17:02:23", "repo_name": "LarryJung/hansus-server", "sub_path": "/src/main/java/com/hsmchurch/app/noticeboard/ui/response/NoticeResponse.java", "file_name": "NoticeResponse.java", "file_ext": "java", "file_s...
package com.hsmchurch.app.noticeboard.ui.response; import com.hsmchurch.app.feed.FeedResponse; import com.hsmchurch.app.feed.FeedType; import com.hsmchurch.app.feed.NoticeFeedResponse; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.time.LocalD...
6f5b667c-ef1a-4c97-9e55-4a555f79a27c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-30 19:18:10", "repo_name": "Nikunj-Enterprises/EasyAssist", "sub_path": "/server/usermgmnt/src/main/java/com/easyapper/usermgmnt/service/UserMgmntService.java", "file_name": "UserMgmntService.java", "file_ext"...
package com.easyapper.usermgmnt.service; import com.easyapper.usermgmnt.dao.UserDao; import com.easyapper.usermgmnt.model.User; import org.bson.types.ObjectId; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class U...