id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
c0e3ad13-5685-4d1a-b0de-b9077c30970d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-02 20:47:02", "repo_name": "renanamr/MeuCampus", "sub_path": "/app/src/main/java/com/meucampus/arthur/testez/Services/ConversasRepositorio.java", "file_name": "ConversasRepositorio.java", "file_ext": "java", "... | package com.meucampus.arthur.testez.Services;
import java.util.ArrayList;
import java.util.List;
/**
* Created by ARTHUR on 31/12/2017.
*/
public class ConversasRepositorio {
private static int flag;
private static List<String> matriculas = new ArrayList<>();
public ConversasRepositorio(int... |
02884404-0254-4b68-a487-99731b68004b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-06-18 17:05:48", "repo_name": "tectronics/tobacco-ques", "sub_path": "/CODE/tobacco-ques/src/com/eesys/apps/common/parameter/companyInfo/service/CompanyInfoServiceFactory.java", "file_name": "CompanyInfoServiceFa... | package com.eesys.apps.common.parameter.companyInfo.service;
import com.eesys.apps.common.parameter.companyInfo.dao.CompanyInfoDAO;
import com.eesys.apps.common.parameter.companyInfo.dao.CompanyInfoDAOFactory;
import com.eesys.apps.common.parameter.companyInfo.service.impl.CompanyInfoServiceImpl;
/**
* Compan... |
c9e1a5b2-77de-40b0-ace3-9ebd601e45ad | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-20 21:07:52", "repo_name": "Ruslan-Kliushenkov/SpringModule", "sub_path": "/src/main/java/com/ua/kliushenkov/MudleThree/pojo/Horse.java", "file_name": "Horse.java", "file_ext": "java", "file_size_in_byte": 783... | package com.ua.kliushenkov.MudleThree.pojo;
import lombok.*;
import javax.persistence.*;
@Getter
@Setter
@Entity
@ToString(of = {"id,name,place"})
@Table(name = "hrs")
public class Horse {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@Column
private int place;
@Colu... |
8ad18f8c-3145-42d2-91b6-c92905168b9d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-02-20T01:29:28", "repo_name": "sgmunn/Mobile.Analytics", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 789, "line_count": 36, "lang": "en", "doc_type": "text", "bl... | Mobile.Analytics
================
Portable wrapper for Google Analytics and BugSense
see also:
* https://github.com/therealjohn/GoogleAnalytics
* https://github.com/Hitcents/GoogleAnalytics
* http://www.bugsense.com
# Crash Reporting
Add an ICrashReporter:
Mobile.Analytics.Tracking.AddCrashReporter(new M... |
72fd099c-d0a7-4ba6-b1c7-84d9a642cae2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-09 03:10:59", "repo_name": "welleer/spring-boot", "sub_path": "/src/main/java/com/liwei2018/liwei0404/JdkProxySubject.java", "file_name": "JdkProxySubject.java", "file_ext": "java", "file_size_in_byte": 783, "... | package com.liwei2018.liwei0404;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
/**
* Created by dell on 2018/4/4.
*/
public class JdkProxySubject implements InvocationHandler {
private RealSubject realSubject;
public JdkProxySubject(RealSubject realSubject) {
this.rea... |
8f088468-4571-49f1-8afe-9e644095f9d5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-30 13:28:30", "repo_name": "yixiangyang/com.yixiangyang.springcould.ribbon-consumer", "sub_path": "/src/main/java/com/yixiangyang/springcould/ribbon/consumer/application/readTest.java", "file_name": "readTest.... | package com.yixiangyang.springcould.ribbon.consumer.application;
import jp.sourceforge.qrcode.QRCodeDecoder;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
public class readTest {
public static void main(String[] args) throws IOException {
File f... |
731eac59-a0e6-43f8-b091-c06feb996951 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-09-18 14:54:37", "repo_name": "dejandobnikar/TrafficInfo", "sub_path": "/app/src/main/java/dd/trafficinfo/core/DownloadManagerComponent.java", "file_name": "DownloadManagerComponent.java", "file_ext": "java", "fi... | package dd.trafficinfo.core;
import android.content.Context;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.BitmapLruCache;
import com.android.volley.toolbox.ImageLoader;
import com.android.volley.toolbox.Volley;
public class DownloadManagerComponent {
private ImageLoader imageLoader;
p... |
cfaac306-da61-4f70-8d32-713c64cc2a04 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-26 10:51:48", "repo_name": "angelosne/explorecrete", "sub_path": "/src/main/java/com/kta/explorecrete/service/TourPackageServiceImpl.java", "file_name": "TourPackageServiceImpl.java", "file_ext": "java", "file... | package com.kta.explorecrete.service;
import com.kta.explorecrete.entity.TourPackage;
import com.kta.explorecrete.repository.TourPackageRepository;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;
@Service
public class TourPackageServiceImpl implements TourPackageServi... |
73c5ab65-f137-48c2-a2bf-b3c336e9becb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-19 06:44:08", "repo_name": "354976595/my_demo", "sub_path": "/redis/src/test/java/com/example/redis/RedisApplicationTests.java", "file_name": "RedisApplicationTests.java", "file_ext": "java", "file_size_in_byt... | package com.example.redis;
import com.alibaba.fastjson.JSONObject;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.spr... |
52c25d41-062b-4b33-af1c-f722fac131d9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-27 17:20:45", "repo_name": "DaviBogo/StoryApp", "sub_path": "/app/src/main/java/com/android/storyapp/model/Jonas.java", "file_name": "Jonas.java", "file_ext": "java", "file_size_in_byte": 783, "line_count": 40... | package com.android.storyapp.model;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "jonas_table")
public class Jonas {
@PrimaryKey(autoGenerate = true)
private int id;
@ColumnInfo(name="happiness")
private int happiness;
private ... |
78b6775c-4ceb-48d5-b5e6-da18e4739402 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-27 16:39:26", "repo_name": "thanhgit/Ridi-backend", "sub_path": "/src/main/java/com/saveteam/ridesharing/modelling/firebase/model/Matching.java", "file_name": "Matching.java", "file_ext": "java", "file_size_in... | package com.saveteam.ridesharing.modelling.firebase.model;
import com.google.firebase.database.Exclude;
import com.google.firebase.database.IgnoreExtraProperties;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@IgnoreExtraProperties
public class Matching implements Serializable {
... |
5d016a39-9764-43d3-a4f5-a51f60b17a7a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-01-19 20:06:22", "repo_name": "MCDelta/EssentialAlloys", "sub_path": "/common/mcdelta/essentialalloys/item/ItemIngot.java", "file_name": "ItemIngot.java", "file_ext": "java", "file_size_in_byte": 783, "line_count... | package mcdelta.essentialalloys.item;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class ItemIngot extends ItemEA
{
private final boolean magic;
public ItemIngot (final String name)
{
this(nam... |
948866fc-4ea3-41fe-84ca-f0c0a3d0f3f1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-02 08:18:23", "repo_name": "744719042/MyInject", "sub_path": "/app/src/main/java/com/example/myinjection/Teacher.java", "file_name": "Teacher.java", "file_ext": "java", "file_size_in_byte": 783, "line_count": ... | package com.example.myinjection;
public class Teacher {
private String title;
private String name;
private Course course;
public Teacher(String title, String name, Course course) {
this.title = title;
this.name = name;
this.course = course;
}
public String getTitle() {... |
ddd5967d-0412-499f-a268-c9b282f689ff | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-16 14:36:28", "repo_name": "moezubair/rentalcars-restapi", "sub_path": "/src/main/java/com/aaroncameron/rentalcars/RentalCarsConfiguration.java", "file_name": "RentalCarsConfiguration.java", "file_ext": "java"... | package com.aaroncameron.rentalcars;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import io.dropwizard.client.HttpClientConfiguration;
public class RentalCarsConfiguration extends Configuration {
private final String rentalCarsUrl = "http://www.rentalcars.com/js/vehic... |
0bc167a2-6ced-419b-89d3-b11447f69762 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-28 20:44:07", "repo_name": "hs750/JavaPublishSubscribe", "sub_path": "/src/test/java/com/github/hs750/pubsub/examples/SingleTypeSubscriber.java", "file_name": "SingleTypeSubscriber.java", "file_ext": "java", "... | package com.github.hs750.pubsub.examples;
import com.github.hs750.pubsub.PublishSubscribeService;
import com.github.hs750.pubsub.Subscriber;
import com.github.hs750.pubsub.helpers.TestingCallback;
/**
* An example of subscribing to a single type (in this case {@link String}).
*/
public class SingleTypeSubscriber im... |
8d22a23c-bf78-4dc7-a1da-b8d96dde707f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-26 01:24:05", "repo_name": "ysj0227/officego2006", "sub_path": "/commonLib/src/main/java/com/officego/commonlib/common/model/owner/UploadImageBean.java", "file_name": "UploadImageBean.java", "file_ext": "java"... | package com.officego.commonlib.common.model.owner;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by shijie
* Date 2020/11/2
**/
public class UploadImageBean {
@SerializedName("urls")
private List<UrlsBean> urls;
public List<UrlsBean> getUrls() {
ret... |
33d0cd90-97d7-48c9-8b40-be670ea19692 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-02 05:39:54", "repo_name": "TwoIceFIsh/old_-WEB-Movie-Theater-System", "sub_path": "/softwareproject/src/user/UserRegisterCheckServlet.java", "file_name": "UserRegisterCheckServlet.java", "file_ext": "java", "... | package user;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/UserRegisterCheckServlet")
public class UserRe... |
5543e5e0-76a6-4798-b686-0cfbd712bf66 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-01-05T08:14:05", "repo_name": "WonChung/Consumerism", "sub_path": "/progress2.md", "file_name": "progress2.md", "file_ext": "md", "file_size_in_byte": 783, "line_count": 16, "lang": "en", "doc_type": "text", ... | # Final Project Progress
# Second Progress Report 12/05/16
The user interface is ready. We just work out a small bug with how it calls the
main window. Essentially, there is a introduction window, where the user can
decide to play or quit. If the user chooses to play, a new window with the three
game modes and the in... |
899b9860-2971-4e82-848f-94b79e23951d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-19 17:49:36", "repo_name": "zsx47/upi", "sub_path": "/common/src/main/java/net/thisisz/upi/common/messaging/PackagedMessage.java", "file_name": "PackagedMessage.java", "file_ext": "java", "file_size_in_byte": ... | package net.thisisz.upi.common.messaging;
import com.google.gson.Gson;
import net.thisisz.upi.common.messaging.object.MessageObject;
import java.util.UUID;
public class PackagedMessage {
private String sender, message;
public PackagedMessage(UUID sender, MessageObject message) {
this.sender = sende... |
dbe8be5d-d69d-4813-9342-7c3091e8420f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-02 20:23:52", "repo_name": "jolozanoh/AndroidMyParte", "sub_path": "/app/src/main/java/es/myparte/utilidades/Validaciones.java", "file_name": "Validaciones.java", "file_ext": "java", "file_size_in_byte": 783, ... | package es.myparte.utilidades;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by oscarlozanohernaiz.
*/
public class Validaciones {
private static final String PATTERN_EMAIL = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@"
+ "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,}... |
4663473a-10dc-420a-baad-2a059ea93a90 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-28 15:10:14", "repo_name": "lingjiuhun/qrci", "sub_path": "/qrci.1.0.0-SNAPSHOT/src/main/java/com/share/inspect/qrci/entry/vo/CategoryVO.java", "file_name": "CategoryVO.java", "file_ext": "java", "file_size_in... | package com.share.inspect.qrci.entry.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;
/**
* @author Eric Chaw
* @date 2018/... |
32673769-ffd6-4fda-92c0-38af0d4c07b9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-23 21:35:48", "repo_name": "Devansh-Maurya/7-Days-Of-Networking-in-Java", "sub_path": "/src/multitasking/FileLogger.java", "file_name": "FileLogger.java", "file_ext": "java", "file_size_in_byte": 783, "line_co... | package multitasking;
//Writes the log messages to a file specified in the constructor
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Collection;
import java.util.Iterator;
public class FileLogger implements Logger{
PrintWriter out; //Log file
public ... |
2833f082-10c3-4df0-951f-3f0140af6055 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-26 05:12:04", "repo_name": "weissxu/java_test", "sub_path": "/src/test/java/com/weiss/simple/RuntimeTest.java", "file_name": "RuntimeTest.java", "file_ext": "java", "file_size_in_byte": 784, "line_count": 29, ... | package com.weiss.simple;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.junit.Test;
public class RuntimeTest {
@Test
public void testExe() throws Exception {
Process process = Runtime.getRuntime().exec("ipconfig");
System.out.println(process... |
9279b551-f21f-4997-87aa-ae21762ec59a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-01 18:22:31", "repo_name": "holylovenia/undepress-mobile", "sub_path": "/app/src/main/java/com/hulahoop/mentalhealth/undepress/models/Patient.java", "file_name": "Patient.java", "file_ext": "java", "file_size_... | package com.hulahoop.mentalhealth.undepress.models;
import java.util.HashMap;
import java.util.Map;
/**
* Created by holy on 25/02/18.
*/
public class Patient extends User {
private final String facebookKey = "facebook";
private final String twitterKey = "twitter";
private final String instagramKey = "... |
e8110a59-724e-4493-afb2-3ddabbddc213 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-09 01:28:11", "repo_name": "GreyWord/util", "sub_path": "/src/main/java/auto/util/io/IO_tools.java", "file_name": "IO_tools.java", "file_ext": "java", "file_size_in_byte": 783, "line_count": 31, "lang": "en", ... | package auto.util.io;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
/**
* Created by ZhangXu on 2017/7/31.
*/
public class IO_tools {
public static void fromInToOut(InputStream in,OutputStream out) throws IOException{
byte[] b = new byte[10... |
55556aa6-b532-43d6-91da-f03b56e9da19 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-05 18:05:29", "repo_name": "sweet-spr18/android_example_try", "sub_path": "/app/src/main/java/com/esoxjem/movieguide/Api.java", "file_name": "Api.java", "file_ext": "java", "file_size_in_byte": 783, "line_coun... | package com.esoxjem.movieguide;
/**
* @author arun
*/
public class Api {
public static final String BASE_POSTER_PATH = "http://image.tmdb.org/t/p/w342";
public static final String BASR_BACKDROP_PATH = "http://image.tmdb.org/t/p/w780";
static final String YOUTUBE_VIDEO_URL = "http://www.youtube.com/watch?... |
2842e5a4-bd8b-4555-a776-6b54b39fe7f2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-10-19T06:47:49", "repo_name": "AzozzALFiras/PlutoDRM", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 783, "line_count": 43, "lang": "en", "doc_type": "text", "blob... | # PlutoDRM
3zozz is an in-between server for PlutoDRM API.
Use this in order to keep your Developer Access Key a secret.
Please use HTTPS if you are going to use it on your own server.
## Usage
If you're using PlutoDRM, you can call import it into your tweaks.
```objective-c
#import "PlutoDRMRequest.h"
```
Mak... |
57c0e267-33f1-42cb-b3aa-6dbfad81cadd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-30 08:30:58", "repo_name": "GiansCode/InfectedPortals", "sub_path": "/src/main/java/me/piggypiglet/infectedportals/task/Task.java", "file_name": "Task.java", "file_ext": "java", "file_size_in_byte": 783, "line... | package me.piggypiglet.infectedportals.task;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitScheduler;
import org.jetbrains.annotations.NotNull;
// ------------------------------
// Copyright (c... |
867bac44-4915-4154-9c96-4f6a3572ec9e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-09-06T12:40:00", "repo_name": "eivindml/mist-proposal", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 789, "line_count": 17, "lang": "en", "doc_type": "text", "blo... | # Mist Proposal
LaTeX proposal template for freelancers in the making.
## Goal
To create a beautiful LaTeX document class to easily generate awesome proposals for your freelance clients. To save time (proposals are boring), consistent resulst and high quality.
### Wanted features 🌱
- [ ] Simply comment in/out non... |
d728264f-8330-4efa-8654-10fcadc072c8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-01-28 22:12:43", "repo_name": "szefoski/AssetBite", "sub_path": "/dev/src/com/gamelion/assetbite/model/elements/Project.java", "file_name": "Project.java", "file_ext": "java", "file_size_in_byte": 783, "line_coun... | package com.gamelion.assetbite.model.elements;
import java.nio.file.Path;
import com.gamelion.assetbite.model.UUID;
public class Project {
private final UUID uuid;
private String name;
private TargetsCollection targets;
private Path projectDir;
public Project(UUID uuid, String name, Path projectDir) {
... |
fc46a2dc-9ce6-4896-9c02-d659c1a4e9e0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-19 09:55:32", "repo_name": "SimonGadgeteer/podilizer", "sub_path": "/src/main/java/ch/zhaw/file_operations/InvokeMethodsWriter.java", "file_name": "InvokeMethodsWriter.java", "file_ext": "java", "file_size_in_... | package ch.zhaw.file_operations;
import japa.parser.ast.CompilationUnit;
import java.util.List;
public class InvokeMethodsWriter {
private JavaProjectEntity oldProject;
private String confPath;
public InvokeMethodsWriter(JavaProjectEntity oldProject, String confPath) {
this.oldProject = oldProje... |
84fd4660-c635-4bab-ab29-5320a53d7143 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-04 13:05:47", "repo_name": "cesarquadros/Comanda", "sub_path": "/src/forms/adicionarIcone.java", "file_name": "adicionarIcone.java", "file_ext": "java", "file_size_in_byte": 782, "line_count": 30, "lang": "en"... | package forms;
import java.awt.Component;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.SwingConstants;
import javax.swing.table.TableCellRenderer;
public class adicionarIcone implements TableCellRenderer {
private String pathIcone;
JLabel label = new JLabel... |
25cd17a0-aac0-46a6-a0c2-c23d0670c39e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-15 00:27:53", "repo_name": "yankarinRG/SmartTracker", "sub_path": "/app/src/main/java/net/ddns/smarttracker/MainViewModel.java", "file_name": "MainViewModel.java", "file_ext": "java", "file_size_in_byte": 783,... | package net.ddns.smarttracker;
import android.content.Context;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;
public class MainViewModel extends ViewModel {
private final LiveData<LocationStatus> mLocationStatus;
public MainViewModel() {
mLocationStatus = Repository.ge... |
c965ab0e-05ae-4f5d-9d5c-8b93871ae319 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-22 06:30:39", "repo_name": "wangmuhuo/JsonCodec", "sub_path": "/JsonCodecer/src/com/jejay/android/jsoncodec/codecer/IntDecoder.java", "file_name": "IntDecoder.java", "file_ext": "java", "file_size_in_byte": 78... | package com.jejay.android.jsoncodec.codecer;
import org.json.JSONArray;
import org.json.JSONException;
public class IntDecoder implements IDecoder {
public static int decode(String jsonStr) {
android.util.Log.d(IntDecoder.class.getName(), "decode " + jsonStr);
return Integer.parseInt(jsonStr);
... |
a432feac-1c79-4965-983f-a392c5300a20 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-10-16 12:46:22", "repo_name": "SukharevPavel/imagedownloader", "sub_path": "/app/src/main/java/ru/suharev/imagedownloader/ui/ImageActivity.java", "file_name": "ImageActivity.java", "file_ext": "java", "file_size_... | package ru.suharev.imagedownloader.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import ru.suharev.imagedownloader.R;
/**
* Activity, которая содержит в себе ViewPagerFragment
**/
public class ImageActivity extends AppCompatActivity {
public sta... |
c18879c9-5da2-41e6-a890-f8f28f5ab1b8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-28 17:17:14", "repo_name": "GSuaki/akka-restaurant", "sub_path": "/src/main/java/com/lightbend/akka/http/sample/utils/bind/javatime/LocalDateJsonDeserializer.java", "file_name": "LocalDateJsonDeserializer.java... | package com.lightbend.akka.http.sample.utils.bind.javatime;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import static com.ligh... |
00809c51-d269-4db8-89d7-48151e1abb58 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-06 18:06:48", "repo_name": "JohnDBR/CEF", "sub_path": "/src/classes/Assistance.java", "file_name": "Assistance.java", "file_ext": "java", "file_size_in_byte": 782, "line_count": 38, "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 classes;
import java.util.Date;
import java.util.LinkedList;
/**
*
* @author john
*/
public class Assistance implements ja... |
da8ae2b4-80f0-4171-beac-bcae9b0c4596 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-29 04:02:59", "repo_name": "TeamYouthChina/backend", "sub_path": "/src/main/java/com/youthchina/dto/applicant/SendingEmailDTO.java", "file_name": "SendingEmailDTO.java", "file_ext": "java", "file_size_in_byte"... | package com.youthchina.dto.applicant;
/**
* @program: youthchina
* @description: 传输邮件DTO
* @author: Qinghong Wang
* @create: 2019-03-05 10:24
**/
public class SendingEmailDTO {
private Integer user_id;
private String company_email;
private byte[] bytes;
public SendingEmailDTO() {
}
publi... |
94baf651-fb4e-4132-ae68-b38a32437e92 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-19 05:18:39", "repo_name": "anderson-pa/pocket-league", "sub_path": "/polishhorseshoes/src/main/java/info/andersonpa/polishhorseshoes/throwstats/ValidationVisitor.java", "file_name": "ValidationVisitor.java", ... | package info.andersonpa.polishhorseshoes.throwstats;
import java.util.Set;
public class ValidationVisitor extends BaseWalkingVisitor {
@Override
public void update(IndicatorNode node) {
if (!node.isComplete()) {
String msg = "Tree is incomplete:\nkeys: ";
Set<String> childKeys... |
d53e8072-464a-4b5d-a972-9819d329d7e7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-08 06:15:27", "repo_name": "Darshita12/Priority_Humanity", "sub_path": "/java/com/Event/controller/DeleteEventServlet.java", "file_name": "DeleteEventServlet.java", "file_ext": "java", "file_size_in_byte": 787... | package com.Event.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.Event.dao.EventDao;
public class DeleteEventServlet extends HttpSer... |
cdf76e0f-1958-4458-9c27-9e8484b56d33 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-04 10:55:56", "repo_name": "AnhCucs/Design-Patterns", "sub_path": "/Chain of Responsibility/src/Server.java", "file_name": "Server.java", "file_ext": "java", "file_size_in_byte": 782, "line_count": 31, "lang":... | import java.util.HashMap;
import java.util.Map;
public class Server {
private Map<String, String> users = new HashMap<>();
private Test test;
public void setTest(Test test) {
this.test = test;
}
public boolean hasEmail(String email) {
return users.containsKey(email);
}
pu... |
261a1e37-41c5-46c1-af07-8ffb8dcf4fc3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-03 06:52:54", "repo_name": "AngleLong/Study", "sub_path": "/common/src/main/java/com/hejin/common/Constants.java", "file_name": "Constants.java", "file_ext": "java", "file_size_in_byte": 945, "line_count": 40,... | package com.hejin.common;
/**
* author : 贺金龙
* create time : 2017/10/26 11:00
* description : 静态井段存放地址
* instructions :
* version :
*/
public class Constants {
/**
* author : 贺金龙
* create time : 2017/10/26 11:01
* description : 所有Url字段保存位置
* instructions : 存放所有静态字段保存的位置
* version... |
8ddbca16-8b43-425b-8af5-e9ee6d69fcfd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-09 08:56:41", "repo_name": "williamswalsh/java_8_in_action", "sub_path": "/src/main/java/ie/williamswalsh/work_testing/WorkTesting.java", "file_name": "WorkTesting.java", "file_ext": "java", "file_size_in_byte... | package ie.williamswalsh.work_testing;
import java.util.Arrays;
import java.util.List;
public class WorkTesting {
public static void main(String[] args) {
Colour myFavorite = Colour.RED;
List<Colour> currentColours = Arrays.asList(Colour.BLUE, null);
System.out.println(currentColours.con... |
c308f092-057d-43e6-889d-35822190cf05 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-06 13:09:37", "repo_name": "haydenreich/CSCI4448", "sub_path": "/SideScrollingGame/src/survive/HibernateUtil.java", "file_name": "HibernateUtil.java", "file_ext": "java", "file_size_in_byte": 781, "line_count"... | package survive;
import org.hibernate.SessionFactory;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.boot.registry.StandardServiceRegistry;
import org.hibernate.boot.*;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
public class Hibernate... |
01869f55-8718-4917-b9c9-2338b99ebf19 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-20 21:56:13", "repo_name": "Keelean/loan-management-system", "sub_path": "/src/main/java/com/ffm/lms/audit/AuditRevisionListener.java", "file_name": "AuditRevisionListener.java", "file_ext": "java", "file_size... | package com.ffm.lms.audit;
import org.hibernate.envers.RevisionListener;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.User;
public class AuditRevisionListener implements RevisionLis... |
efe1a211-4199-4278-8c34-83cd577c124c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-31T01:11:17", "repo_name": "Cody-Ridener/Android-Studio", "sub_path": "/InClassWeek1Fall19/app/src/main/java/com/example/inclassweek1fall19application/MainActivity.java", "file_name": "MainActivity.java", "fil... | package com.example.inclassweek1fall19application;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle sa... |
5ef974e5-64c0-4105-96cf-93f6da68267e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-04-27T00:24:28", "repo_name": "Nparson88/NewREADME-Generator", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 782, "line_count": 29, "lang": "en", "doc_type": "text... | # NewReadme-Generator
# License:
-blue?style=for-the-badge&logo=appveyor.svg)
# Table of Contents
* [Description](#description)
* [Installation](#installation)
* [Usecase](#Usecase)
* [Contributors](#contributors)
* [License](#license)
* [Qu... |
bd2c9eb5-02ea-423f-bc16-2e271457ff04 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-04-24T14:42:23", "repo_name": "ZahraHeydari/WordGame", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 785, "line_count": 22, "lang": "en", "doc_type": "text", "blob... | # WordGame
implemented by MVVM
### Scenario
The task is to write a small language game. The player will see a word in language "one“ on the screen. While
this word is displayed, a word in language "two“ will fall down on the screen. The player will have to choose if
the falling word is the correct translation or a wr... |
8a0dcdd6-6c23-4ea7-9bc8-ea1c4df15870 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-23 01:12:01", "repo_name": "numen06/JBM", "sub_path": "/jbm-framework/jbm-framework-micro/jbm-framework-micro-mysql/src/test/java/com/jbm/micro/sb/test/SpringBootDemo.java", "file_name": "SpringBootDemo.java",... | package com.jbm.micro.sb.test;
import com.jbm.micro.sb.test.service.SpringBootService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.C... |
19dd23ea-0bf2-423d-b088-e73e2be8e9e0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-26 14:58:54", "repo_name": "13555785106/AndroidPPT-V01", "sub_path": "/08-FragmentDemo/app/src/main/java/com/telecom/fragmentdemo/OrangeFragment.java", "file_name": "OrangeFragment.java", "file_ext": "java", "... | package com.telecom.fragmentdemo;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class OrangeFragment extends Fragment {
public static OrangeFragment newInstance() {
OrangeFragment fra... |
5d923714-5040-4538-981f-158516628972 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-08-02 09:39:35", "repo_name": "sroee/MylynKanban", "sub_path": "/src/mylynkanban/webserver/WebSocketHandlerImpl.java", "file_name": "WebSocketHandlerImpl.java", "file_ext": "java", "file_size_in_byte": 783, "line... | package mylynkanban.webserver;
import java.util.HashMap;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import org.eclipse.jetty.websocket.WebSocket;
import org.eclipse.jetty.websocket.WebSocketHandler;
public class WebSocketHandlerImpl extends WebSocketHandler{
pri... |
20083a16-d88a-4314-87d5-be68b7674920 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-08 10:20:04", "repo_name": "AzirisDev/Oyan", "sub_path": "/app/src/main/java/com/example/oyan/ui/goals/data/Goal.java", "file_name": "Goal.java", "file_ext": "java", "file_size_in_byte": 782, "line_count": 43,... | package com.example.oyan.ui.goals.data;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
@Entity(tableName = "goals")
public class Goal {
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "goal_id")
private int id;
@ColumnIn... |
bf0f90dd-7bdf-4c33-b972-9afdfc0c0c1f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-30 06:05:57", "repo_name": "Annie3310/bill", "sub_path": "/src/main/java/me/wjy/bill/config/WebConfig.java", "file_name": "WebConfig.java", "file_ext": "java", "file_size_in_byte": 788, "line_count": 26, "lang... | package me.wjy.bill.config;
import me.wjy.bill.intercetpor.RegisterInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* @author 王金义
*/
@... |
80cc8873-7f2c-4d2a-8429-0ac4d0fcbfae | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-03 18:04:03", "repo_name": "btholmes/eclipse-workspace", "sub_path": "/COMS418/src/main/Face.java", "file_name": "Face.java", "file_ext": "java", "file_size_in_byte": 782, "line_count": 52, "lang": "en", "doc_... | package main;
import java.util.ArrayList;
/**
*
* @author aguestuser
*
*/
public class Face {
private String name;
private String outerEdge;
private ArrayList<String> innerEdges;
public Face(String name) {
this.name = name;
innerEdges = new ArrayList<String>();
}
public String getName() {
r... |
d99990ae-967c-45fc-8cf7-0056ac6d186d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-06 14:06:56", "repo_name": "StephenG453/amazon-automation", "sub_path": "/src/test/java/stepDefinitions/MainToolBarStepDefinitions.java", "file_name": "MainToolBarStepDefinitions.java", "file_ext": "java", "fi... | package stepDefinitions;
import cucumber.api.java.en.And;
import cucumber.api.java.en.When;
import org.openqa.selenium.WebDriver;
import pages.MainToolBar;
public class MainToolBarStepDefinitions {
private MainToolBar mainToolBar;
private Injector injector;
private WebDriver driver;
public MainToo... |
96802c44-889e-4b7c-91d9-c3397e0da622 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-17 02:45:18", "repo_name": "vsop-479/shiyan", "sub_path": "/shiyan-api-test/src/main/java/shiyan/test/headfirst/decorator/cafee/decorator/Mocha.java", "file_name": "Mocha.java", "file_ext": "java", "file_size_... | package shiyan.test.headfirst.decorator.cafee.decorator;
import shiyan.test.headfirst.decorator.cafee.Beverage;
/**
* Created by Administrator on 2016/11/14.
*/
public class Mocha extends CondimentDecorator {
private Beverage beverage;
public Mocha(Beverage beverage){
this.beverage = beverage;
... |
6f9e5f82-9b3f-4f21-9e0b-ba689dc5d1c3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-05-09 23:27:18", "repo_name": "efriesne/Brownopoly", "sub_path": "/src/main/java/edu/brown/cs/cmen/brownopoly/cards/PositionCard.java", "file_name": "PositionCard.java", "file_ext": "java", "file_size_in_byte": 7... | package edu.brown.cs.cmen.brownopoly.cards;
import edu.brown.cs.cmen.brownopoly.player.Player;
/**
* Created by codyyu on 3/27/15.
*/
public class PositionCard implements Card {
/**
*
*/
private static final long serialVersionUID = 829941547429567346L;
private String name;
private int destination;
... |
89cc1b24-4938-46a5-ae31-aaebe1bc0ef0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-10-21T17:45:00", "repo_name": "rpglancer/rl-project-genesis", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 782, "line_count": 24, "lang": "en", "doc_type": "text"... | rl-project-genesis
==================
Project Genesis is a Roguelike being developed in C.
There are undoubtedly many problems in terms of both
form and functionality as the lead developer is not
a seasoned programmer. This is a learning project!
This roguelike is not feature complete in any sense and
should not be ... |
07fcddf4-0d5c-4bfe-a22d-12c600895734 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-04 22:47:28", "repo_name": "Todai88/design-patterns", "sub_path": "/java/behavioural/src/main/java/creational/singleton/HttpClient.java", "file_name": "HttpClient.java", "file_ext": "java", "file_size_in_byte"... | package main.java.creational.singleton;
public class HttpClient {
private final String baseRouteUrl;
private static HttpClient httpClient = null;
private HttpClient(String baseRouteUrl) {
this.baseRouteUrl = baseRouteUrl;
}
public static HttpClient getInstance(String baseRouteUrl) {
... |
ab108662-1478-47ea-88f7-9c564a421787 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-09-13T04:13:34", "repo_name": "arnm/.emacs.d", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 782, "line_count": 17, "lang": "en", "doc_type": "text", "blob_id": "a... | My ~/.emacs.d Configuration
========================
I was originally a Vim user before switching to Emacs. I still use Vim on and off but I am now spending the majority of my time in Emacs. Because of my previous Vim usage, I have all of the Vim bindings ingrained in my muscle memory. This Emacs configuration is my at... |
b6edf3a0-d28d-4f3f-a14c-fb41fa304667 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-07-19 10:55:28", "repo_name": "santoshdeshpande/wwf-xtext", "sub_path": "/com.jda.webworks.config/src/com/jda/webworks/config/validation/ConfigJavaValidator.java", "file_name": "ConfigJavaValidator.java", "file_e... | package com.jda.webworks.config.validation;
import org.eclipse.xtext.validation.Check;
import com.jda.webworks.config.config.ConfigPackage;
import com.jda.webworks.config.config.ConfigProperty;
public class ConfigJavaValidator extends AbstractConfigJavaValidator {
// @Check
// public void checkGreetingStartsWithC... |
a775ef1c-c08b-4099-af17-f7dfcc516af5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-25 11:46:17", "repo_name": "XuanPhucHb/sping_secur_error", "sub_path": "/src/main/java/com/nxp/test_spring_secur/entity/Account.java", "file_name": "Account.java", "file_ext": "java", "file_size_in_byte": 782,... | package com.nxp.test_spring_secur.entity;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import lombok.*;
import javax.persistence.*;
import java.util.Set;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
public class Account {
@Id
@GeneratedValue(strategy = GenerationType.IDENTI... |
0d0081a8-b6dc-4d13-82b5-360e5e192f9b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-11-19 23:54:50", "repo_name": "bhuwang/playground", "sub_path": "/src/com/bhuwan/java/basics/oop/applicationflow/InstanceControlFlowDemo.java", "file_name": "InstanceControlFlowDemo.java", "file_ext": "java", "fi... | /**
*
*/
package com.bhuwan.java.basics.oop.applicationflow;
/**
* Here all we have declared is instance blocks. Since we have not created any object then there is no chance of executing instance block.
* Hence the output only be "Main method."
*
* @author bhuwan
*/
public class InstanceControlFlowDemo {
i... |
1fd4b82a-c133-4cf6-bf58-b41dac9e70ea | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-03 05:47:44", "repo_name": "morgan-webber/IMS", "sub_path": "/src/application/IMSTools.java", "file_name": "IMSTools.java", "file_ext": "java", "file_size_in_byte": 782, "line_count": 36, "lang": "en", "doc_ty... | package application;
import javafx.scene.control.Alert;
import javafx.scene.control.ButtonType;
import javafx.scene.control.TextField;
import javafx.scene.paint.Color;
public class IMSTools {
public static boolean verifyTextFieldData(TextField txt) {
if (txt.getText() == null || txt.getText().equals("")) {
txt... |
ae65faca-6e1d-46a8-b7ff-39d933acb07c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-02 20:16:37", "repo_name": "missTam/Library-App", "sub_path": "/src/main/java/models/Author.java", "file_name": "Author.java", "file_ext": "java", "file_size_in_byte": 782, "line_count": 42, "lang": "en", "doc... | package models;
import java.util.List;
public class Author extends MasterEntity {
private String firstName;
private String lastName;
List<Book> books;
public Author() {}
public Author(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
... |
230234a2-0063-4a24-9e45-949801b6489d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-09 04:20:53", "repo_name": "oneaaronsmith/ObjectOrientedFinalProject", "sub_path": "/IntDuck.java", "file_name": "IntDuck.java", "file_ext": "java", "file_size_in_byte": 783, "line_count": 31, "lang": "en", "d... | /*
* 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 interfaceexample;
/**
*
* @author Aaron
*/
public class IntDuck implements NonFlyingBird {
public int age = 2... |
33c52f4b-a401-411d-8b4a-2cba9b44b34f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-07-18 13:27:29", "repo_name": "ysvsr1/MsrProcess", "sub_path": "/src/com/capmkts/msrprocess/dao/RefPatronCoDAO.java", "file_name": "RefPatronCoDAO.java", "file_ext": "java", "file_size_in_byte": 781, "line_count"... | package com.capmkts.msrprocess.dao;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import com.capmkts.msrprocess.data.RefProgram;
import com.capmkts.msrprocess.util.HibernateUtil;
public class RefPatronCoDAO {
public void save(RefProgram refFile) {
HibernateUtil.save(refFile)... |
589ba3d1-1999-49db-8d2d-6c7705420183 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-01 14:56:57", "repo_name": "AleksandarBoev/Softuni-Data-Structures", "sub_path": "/15.RopeAndTrie/src/text_editor/TextEditorTests.java", "file_name": "TextEditorTests.java", "file_ext": "java", "file_size_in_b... | package text_editor;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class TextEditorTests {
@Before
public void init() {
}
@Test
public void test01() {
String[] inputTokens = getInputAsArray("login pesho\n" +
"pesho prepend \"hello\"\n" +
... |
1e51906f-213c-4a63-ad23-73f6419646b6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-11 04:31:44", "repo_name": "Ducninh1806/Module2", "sub_path": "/Week1/LamLaiThemPhanTuVaoMang/src/ThemPhanTuVaoMang.java", "file_name": "ThemPhanTuVaoMang.java", "file_ext": "java", "file_size_in_byte": 782, "... | import java.util.Scanner;
public class ThemPhanTuVaoMang {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Enter your value in array: ");
int number = input.nextInt();
System.out.println("Enter index your want");
int ind... |
c277f71e-0685-47a0-9911-291d896dbaa5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-08 23:08:34", "repo_name": "FrancoAlfano/programacion2", "sub_path": "/2019/Tarjetas_2019/src/main/java/ar/edu/um/programacion2_2019/Tarjetas_2019/Almacen.java", "file_name": "Almacen.java", "file_ext": "java"... | package ar.edu.um.programacion2_2019.Tarjetas_2019;
import java.io.FileInputStream;
import java.io.IOException;
public class Almacen{
FileInputStream in = null;
//FileOutputStream out = null;
private Venta ventas[];
private TarjetaCredito tarjeta;
public Almacen() {
this.ventas = new Venta[20];
this.... |
db7cd64d-f735-4e7a-a1db-668d2b658775 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-06-04 18:48:26", "repo_name": "xebyte/jGreve", "sub_path": "/src/greve/struct/Gene.java", "file_name": "Gene.java", "file_ext": "java", "file_size_in_byte": 781, "line_count": 46, "lang": "en", "doc_type": "code"... | package greve.struct;
public class Gene {
private String name;
private int start, end;
public Gene(String name, int start, int end) {
this.name = name;
this.start = start;
this.end = end;
}
public Gene(String name, int start) {
this(name, start, start);
}
public String toString() {
return name;
}
... |
bcd036f3-7cc1-4edf-baae-c51e593fc077 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-06 04:59:44", "repo_name": "imehsans/Java", "sub_path": "/MyEspressoAssign/src/assignment/Espresso/Espresso.java", "file_name": "Espresso.java", "file_ext": "java", "file_size_in_byte": 782, "line_count": 45, ... | package assignment.Espresso;
public class Espresso {
private double exitTemp;
private Type type;
private Size size;
private Length length;
private Roast roast;
public Espresso(Type type, Size size, Length length, Roast roast, double exitTemp) {
super();
this.exitTemp = exitTemp;
this.type = type;
... |
63d8a4cc-04f2-4821-810b-90956f57ddd8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-03-28 08:57:05", "repo_name": "FzNoxus/JavaProjects", "sub_path": "/MultiThreadDownload/src/com/yinger/download/MultiThreadDownload.java", "file_name": "MultiThreadDownload.java", "file_ext": "java", "file_size_i... | /**
* @Author:胡家威
* @CreateTime:2011-9-16 下午08:03:49
* @Description:
*/
package com.yinger.download;
import com.yinger.gui.MainFrame;
public class MultiThreadDownload {
private DownloadInfo downloadInfo;
private DownloadThread[] threads;
private MainFrame frame;
public MultiThreadDownload... |
e32f0226-705c-416f-96a9-43f2f1a4ca34 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-25 03:28:15", "repo_name": "yangtie34/projects", "sub_path": "/jinghua/dmm/src/main/java/com/jhnu/product/four/card/job/CardMealsCountJob.java", "file_name": "CardMealsCountJob.java", "file_ext": "java", "file... | package com.jhnu.product.four.card.job;
import org.apache.log4j.Logger;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import com.jhnu.product.four.card... |
c6cb7ca2-4763-4d2c-b408-947a505ec1cd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-08 12:59:28", "repo_name": "Drahomira-H/j2w-lekce02-priklad01", "sub_path": "/src/main/java/cz/czechitas/java2webapps/lekce2/controller/KostkaController.java", "file_name": "KostkaController.java", "file_ext":... | package cz.czechitas.java2webapps.lekce2.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;
import java.util.Random;
@Controller
public class KostkaController {
private final Random random;... |
8a9de6d8-25ab-496c-abc9-8340d4f247b1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-07-22 02:29:20", "repo_name": "yuzhongfeixia/jiance", "sub_path": "/src/com/hippo/nky/page/monitoring/MonitoringTaskDetailsPage.java", "file_name": "MonitoringTaskDetailsPage.java", "file_ext": "java", "file_size... | package com.hippo.nky.page.monitoring;
import java.util.ArrayList;
import java.util.List;
import com.hippo.nky.entity.monitoring.MonitoringTaskDetailsEntity;
/**
* @Title: Entity
* @Description: 检测方案数据
* @author nky
* @date 2013-10-23 15:54:32
* @version V1.0
*
*/
public class MonitoringTaskDetailsPage ... |
7730a346-b294-459d-ba08-9cf3f3ba6453 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-10-12 21:47:36", "repo_name": "trebogeer/maplog", "sub_path": "/src/test/java/com/trebogeer/maplog/LockTest.java", "file_name": "LockTest.java", "file_ext": "java", "file_size_in_byte": 782, "line_count": 28, "la... | package com.trebogeer.maplog;
import java.io.IOException;
import java.nio.channels.FileChannel;
import java.nio.channels.FileLock;
import java.nio.file.Paths;
import static java.nio.file.StandardOpenOption.CREATE;
import static java.nio.file.StandardOpenOption.READ;
import static java.nio.file.StandardOpenOption.WRIT... |
8c47203c-ec42-419b-9421-0b824565a70a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-29 06:08:51", "repo_name": "fogsong233/shellX", "sub_path": "/app/src/main/java/com/bank/shellx/ui/adapter/FragmentAdapter.java", "file_name": "FragmentAdapter.java", "file_ext": "java", "file_size_in_byte": 7... | package com.bank.shellx.ui.adapter;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.fragment.app.FragmentManager;
import androidx.viewpager2.adapter.FragmentStateAdapter;
import java.util.List;
//主页viewpager2适配器
public class Fr... |
6ed34146-b728-4c51-ac04-9bf8304e65b6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-28 05:49:42", "repo_name": "GSIL-Monitor/final-framework", "sub_path": "/final-data/final-data-core/src/main/java/com/ilikly/finalframework/data/query/operation/DateBeforeCriterionOperation.java", "file_name":... | package com.ilikly.finalframework.data.query.operation;
import com.ilikly.finalframework.data.query.CriterionOperations;
import com.ilikly.finalframework.data.query.QProperty;
import java.util.Date;
/**
* @author likly
* @version 1.0
* @date 2019-01-18 13:52:04
* @since 1.0
*/
public class DateBeforeCriterionOp... |
e3e5fe30-2987-4230-b2bb-8352d08e08ba | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-02-20 11:08:16", "repo_name": "kuyue/DayNightMode", "sub_path": "/cardviewflash/src/main/java/com/kuyue/cardviewflash/view/CustomDurationScroller.java", "file_name": "CustomDurationScroller.java", "file_ext": "ja... | package com.kuyue.cardviewflash.view;
import android.content.Context;
import android.view.animation.Interpolator;
import android.widget.Scroller;
/**
* 滑动
* Created by sen young on 2017/2/16 17:04.
* 邮箱:595327086@qq.com.
*/
public class CustomDurationScroller extends Scroller {
private int mDuration = 500;
... |
b8ff2ef3-ec9d-424f-a78b-411d842c2938 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-09 12:33:03", "repo_name": "fzeglen/redis-tests", "sub_path": "/src/main/java/com/worldremit/redistests/services/BaseTemplateService.java", "file_name": "BaseTemplateService.java", "file_ext": "java", "file_si... | package com.worldremit.redistests.services;
import com.worldremit.redistests.data.IdHolder;
import lombok.RequiredArgsConstructor;
import org.springframework.data.redis.core.RedisTemplate;
@RequiredArgsConstructor
public class BaseTemplateService<T extends IdHolder<ID>, ID> {
private final RedisTemplate redisTemp... |
b72e76a0-60b7-4ac9-a03a-dda95b5b9e4b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-01 07:32:56", "repo_name": "makitosan/vertx3_example", "sub_path": "/src/main/java/com/graphiainc/vertx3_example/handler/MessageHandler.java", "file_name": "MessageHandler.java", "file_ext": "java", "file_size... | package com.graphiainc.vertx3_example.handler;
import io.vertx.core.Handler;
import io.vertx.core.http.HttpServerResponse;
import io.vertx.ext.web.RoutingContext;
public class MessageHandler implements Handler<RoutingContext>{
private String message;
public MessageHandler(String message) {
this.message = mes... |
7fa71b6f-3087-4139-9bb9-0a4c8d4cf650 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-11 18:31:16", "repo_name": "GregChaves/Stuffs", "sub_path": "/service-utils/service-utils-domain/src/main/java/com/everis/service/domain/error/GenericError.java", "file_name": "GenericError.java", "file_ext": ... | package com.everis.service.domain.error;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* @author gbritoch
*
*/
public class GenericError {
private Integer idError;
public Integer getIdError() {
return idError;
}
public void setIdError(I... |
3a573986-ad62-4809-a58f-dc63da4839a6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-06 06:53:43", "repo_name": "shaheenzahedi/student-ranker", "sub_path": "/src/main/java/intermediary/command/ScoreCommandFactory.java", "file_name": "ScoreCommandFactory.java", "file_ext": "java", "file_size_in... | /*
* 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 intermediary.command;
import view.interactor.ScoreConsoleInteractor;
/**
*
* @author Shaheen-Laptop
*/
public... |
69438274-d35d-49ce-bb41-0b8591b1fdb0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-14 22:12:57", "repo_name": "LanaZelenkova/JavaCore", "sub_path": "/src/edu/pht/lessoncollections/util/maputil/FileReader.java", "file_name": "FileReader.java", "file_ext": "java", "file_size_in_byte": 783, "li... | package edu.pht.lessoncollections.util.maputil;
import java.util.ResourceBundle;
public class FileReader {
private static FileReader instance;
public ResourceBundle resourceBundle;
public static final String BUNDLE_NAME = "info";
public static final String FILE_INFO_PROPERTY = "key";
public stat... |
59c9230b-e2ca-47b4-8ab2-8853334791d5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-21 13:26:33", "repo_name": "isabella232/multiapps-controller", "sub_path": "/multiapps-controller-web/src/main/java/org/cloudfoundry/multiapps/controller/web/util/SecurityContextUtil.java", "file_name": "Secur... | package org.cloudfoundry.multiapps.controller.web.util;
import org.cloudfoundry.multiapps.controller.core.util.UserInfo;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
public class SecurityContextUtil {
private SecurityContextUtil(... |
173de5a4-ca71-48ab-9c2a-4f2351f1cfa6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-06 01:43:36", "repo_name": "ari9dam/propara", "sub_path": "/propara/src/main/java/propara/CountVerb.java", "file_name": "CountVerb.java", "file_ext": "java", "file_size_in_byte": 783, "line_count": 39, "lang":... | /**CountVerb.java
* 11:37:51 PM @author Arindam
*/
package propara;
import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;
import org.apache.commons.io.FileUtils;
/**
* @author Arindam
*
*/
public class CountVerb {
/**
* @param args
* @throws IOException
*... |
985bf7bc-b63e-4903-a617-2a0c30d55390 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2013-06-03T13:22:18", "repo_name": "javierj/android-test-snippets", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 781, "line_count": 19, "lang": "en", "doc_type": "text... | android-test-snippets
=====================
Android-Test-Snippets are a set of code snippets (or koans) for Android test cases.
Each snippet shows a concrete example of use of an element from the android testing API
(mainly in android.test package).
Snippet code or ideas to create new and useful snippets are welcome... |
0d07705d-33ec-4db3-804a-77f625d988e5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-21 21:06:20", "repo_name": "EchNet/abstractia", "sub_path": "/src/com/abstractia/display/ResultsModel.java", "file_name": "ResultsModel.java", "file_ext": "java", "file_size_in_byte": 782, "line_count": 43, "l... | package com.abstractia.display;
import com.abstractia.model.*;
import java.util.*;
public class ResultsModel
extends ComponentModel
{
private NavigationState state;
private List<Record> records = new ArrayList<Record>();
private boolean atRecordEnd;
public NavigationState getState()
{
... |
2e23579f-d540-4946-849b-3471e24044e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-15 09:05:54", "repo_name": "syt123450/Java-concurrency", "sub_path": "/src/main/java/com/concurrency/chapter2/AccountingSync1.java", "file_name": "AccountingSync1.java", "file_ext": "java", "file_size_in_byte"... | package com.concurrency.chapter2;
/**
* Created by ss on 2017/7/16.
*/
public class AccountingSync1 implements Runnable {
//只需要有任意一个静态object对象来当做锁,让synchronized可以锁住整个类就可以了,不一定要创建一个特定的对象
private static Object instance = new Object();
private static int i = 0;
@Override
public void run() {
... |
6570b6a5-b3da-477b-9f4b-cd7768544e77 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-01-25T16:56:30", "repo_name": "fh127/ml-product-search-sample-app", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 783, "line_count": 23, "lang": "en", "doc_type": ... | # ML Product Search Sample App
## Description
Sample App to search products using Mercado Libre Api.
Application that uses Mercadolibre's APIs, with following sections:
* Splash: app entry point
* Sites: available Mercado Libre sites to search products
* Search: product search logic and answer list.
* Product page: ... |
0c5b3323-2e81-4a46-ade4-fd1486b0473c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-17 04:40:13", "repo_name": "attaullahafridi96/fyp", "sub_path": "/app/src/main/java/com/android/documentationrecordviafingerprint/model/UserNotes.java", "file_name": "UserNotes.java", "file_ext": "java", "file... | package com.android.documentationrecordviafingerprint.model;
import com.android.documentationrecordviafingerprint.helper.IMyConstants;
public final class UserNotes extends UserFile implements IUserNotes, IMyConstants {
private String notesData;
public UserNotes() { //required constructor for firebase
... |
fd54ad93-628d-406f-b883-9f47ef59d1b5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-10-10T22:01:23", "repo_name": "himerus/omega", "sub_path": "/.kit/config/optional/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 782, "line_count": 11, "lang": "en", "doc_type": ... | ## `config/optional` Directory
Optional configuration items for an extension (module or theme) are stored in the `config/optional` sub-directory.
These are configuration items that have dependencies that are not explicit dependencies of the extension, so they are only installed if all dependencies are met.
For exampl... |
661b1306-b642-4b22-a99f-bc8ad7f61c43 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-30 04:56:12", "repo_name": "mohanapriya-15/F_project", "sub_path": "/Web/src/test/java/Functions/Fucntion.java", "file_name": "Fucntion.java", "file_ext": "java", "file_size_in_byte": 782, "line_count": 26, "l... | package Functions;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.PageFactory;
import org.testng.annotations.Test;
import Element.Attributes;
public class Fucntion {
@Test
public void email() {
System.setProperty("webdriver.chrome.dri... |
1f542086-b067-40a7-8f3d-49115b71166c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-09-06 07:04:13", "repo_name": "zsjdxc251/lesson-chapter", "sub_path": "/lesson-microservice/chapter-boot/chapter-boot-bus/src/main/java/com/lesson/boot/bus/disruptor/SeckillEventProducer.java", "file_name": "Seck... | package com.lesson.boot.bus.disruptor;
import com.lesson.boot.bus.WorkEvent;
import com.lmax.disruptor.EventTranslatorVararg;
import com.lmax.disruptor.RingBuffer;
/**
* @author zhengshijun
* @version created on 2019/9/13.
*/
public class SeckillEventProducer {
private final static EventTranslatorVararg<WorkEv... |
b500aa9c-6d3b-4619-848e-be2c1b3151ff | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-07-02 23:11:04", "repo_name": "olegshestakov/ValidationTest", "sub_path": "/src/org/shest/mapperreducer/DistinctMapperV1.java", "file_name": "DistinctMapperV1.java", "file_ext": "java", "file_size_in_byte": 782, ... | package org.shest.mapperreducer;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class DistinctMapperV1 {
public static void main(String[] args) throws IOException {
BufferedReader reader =
new BufferedReader(new InputStreamReader(System... |
1924e075-bd8e-4ebb-9eb4-b37d0b3d6f80 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-10 06:52:39", "repo_name": "yx0701/cloud", "sub_path": "/auth/src/main/java/com/yx/auth/entity/JsonData.java", "file_name": "JsonData.java", "file_ext": "java", "file_size_in_byte": 782, "line_count": 42, "lan... | package com.yx.auth.entity;
import java.io.Serializable;
public class JsonData implements Serializable {
private int code;
private String msg;
public static final int SUCCESS_CODE = 1;
public static final int ERROR_CODE = -1;
public int getCode() {
return code;
}
public void se... |
8d8b2f30-556e-4a93-ab4d-875f4c0764b2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-16 01:46:18", "repo_name": "hzr958/myProjects", "sub_path": "/scmv6/center-batch/src/main/java/com/smate/center/batch/dao/sns/pub/TaskPubRelatedIdsDao.java", "file_name": "TaskPubRelatedIdsDao.java", "file_ext... | package com.smate.center.batch.dao.sns.pub;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.smate.center.batch.model.sns.pub.TaskPubRelatedIds;
import com.smate.core.base.utils.data.SnsHibernateDao;
@Repository
public class TaskPubRelatedIdsDao extends SnsHibernateDao<TaskPubRel... |
015dc388-5c23-4f6d-b86e-9a98bf2b2246 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-01-25T02:53:41", "repo_name": "MontyTobois/React-Animations", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 781, "line_count": 35, "lang": "en", "doc_type": "text"... | # React-Animations
## Table of Contents
* [Overview](#Overview)
* [Instructions](#Instructions)
* [Language](#Language)
* [Resources](#Resources)
## Overview
In this project, I learned how to add animations with react to provide a more dynamic interface.
## Instructions
### How to run the project
* **Pre-requisit... |
8f59b915-3cb8-4b16-b57f-9a3f3ba1abae | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-04-03T06:57:07", "repo_name": "aadityataparia/Auto-git-pull", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 781, "line_count": 12, "lang": "en", "doc_type": "text"... | # Auto-git-pull
Do git pull on push event to a repo
## How to use it
1. Install git cli tools on your server, eg. `sudo apt-get install git` for ubuntu
2. Upload `git.sh`, `onetime.sh`, `git.php` to your server web directory or any web directory you want to sync, eg. `/var/www/html` for apache.
3. set owner of all the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.