id
stringlengths
36
36
meta
stringlengths
429
697
code_content
large_stringlengths
612
1.26k
244e77e5-b9ac-4b16-9803-aa788e40492e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-10-24T15:51:12", "repo_name": "AIessa/Dream-Recipes", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 861, "line_count": 36, "lang": "en", "doc_type": "text", "blob_...
# Dream-Recipes (NLP) Bot generates made-up (and potentially magical) recipes to solve any problem that the user inputs. To execute, make sure you have all the requirements installed: python3 nltk fasttext numpy pickle json tracery pathlib Also be aware that this programme requires a 'model.bin' file in the...
72a25eae-34b1-43fd-82fd-b562f32c211d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-22 11:37:16", "repo_name": "tolmadima/TestTask", "sub_path": "/app/src/main/java/com/tolmach/testtask/CharacterMapper.java", "file_name": "CharacterMapper.java", "file_ext": "java", "file_size_in_byte": 861, "...
package com.tolmach.testtask; import com.tolmach.testtask.CharacterDataClasses.DTO.Example; import com.tolmach.testtask.CharacterDataClasses.DTO.Location; import java.util.List; public class CharacterMapper { public CharacterInfo map(Example example){ CharacterInfo choosenCharacter = new CharacterInfo()...
03bb45ae-c452-4ff2-a5dd-2389b82a709c
{"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/LiveStreamListAdapter.java", "file_name": "LiveStreamListAdapter.java", "file_ext": "java", ...
package com.colpencil.propertycloud.View.Adapter; import android.content.Context; import com.colpencil.propertycloud.Bean.LiveStreaming; import com.colpencil.propertycloud.R; import org.byteam.superadapter.SuperAdapter; import org.byteam.superadapter.internal.SuperViewHolder; import java.util.List; /** * @Descrip...
a0937ba6-a353-462f-8a5d-59ca89019a50
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-05-09T21:33:30", "repo_name": "eiri/couch_sqlite_engine", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 861, "line_count": 32, "lang": "en", "doc_type": "text", "b...
# SQLite storage engine for CouchDB ## Synopsis A pluggable storage engine for CouchDB based on SQLite. Created as a "dive in" project for a better understanding of the internals of PSE in CouchDB rather than a real production ready engine. ## Try _TBD: Build a docker image_ ## Setup _TBD: Write about changing Co...
f716d34c-31be-4dae-9319-37b93100184c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-19 10:16:20", "repo_name": "sandeepsande/Adactin_project", "sub_path": "/src/test/java/com/adactinsite/helper/Configuration_Reader.java", "file_name": "Configuration_Reader.java", "file_ext": "java", "file_siz...
package com.adactinsite.helper; import java.io.File; import java.io.FileInputStream; import java.util.Properties; public class Configuration_Reader { public static Properties p; public Configuration_Reader() throws Throwable { File f = new File("C:\\Users\\ELCOT\\eclipse-workspace\\Adactin_cucumber\\src\\tes...
ee7589b2-2030-45fd-9082-bcf9a181221c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-25 05:57:16", "repo_name": "pengchenglpc/SMIS", "sub_path": "/src/com/smis/dao/production/impl/ProducePlanDaoImpl.java", "file_name": "ProducePlanDaoImpl.java", "file_ext": "java", "file_size_in_byte": 874, "l...
package com.smis.dao.production.impl; import java.util.List; import org.springframework.stereotype.Repository; import com.smis.dao.base.impl.BaseDaoImpl; import com.smis.dao.production.IProducePlanDao; import com.smis.model.production.ProducePlan; @Repository("producePlanDao") public class ProducePlanDao...
48ce6a86-62b5-4fff-a3df-34c780748f94
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-04 23:41:55", "repo_name": "raryson/OrientacaoAObjetosJava", "sub_path": "/T13/Exercicio15/src/exercicio15/Exercicio15.java", "file_name": "Exercicio15.java", "file_ext": "java", "file_size_in_byte": 861, "lin...
/* * 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 exercicio15; /** * * @author Raryson */ public class Exercicio15 { /** * @param args the command line arguments ...
ee17c58c-7175-4aa9-ae60-07e2b1e16056
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-31 02:00:28", "repo_name": "EomKun/Mogasup", "sub_path": "/mogasupServer/src/main/java/com/ssafy/mogasup/dao/CommentDaoImpl.java", "file_name": "CommentDaoImpl.java", "file_ext": "java", "file_size_in_byte": 8...
package com.ssafy.mogasup.dao; import java.util.HashMap; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import com.ssafy.mogasup.mapper.CommentMapper; import com.ssafy.mogasup.mapper.PictureMapper; @Repository public class Comm...
eca052a6-3a59-47d8-8e2b-a4116f5b3bb1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-22 17:06:46", "repo_name": "omeramiel/BirthdayApp", "sub_path": "/app/src/main/java/com/omeram/birthday/repo/BirthdayRepository.java", "file_name": "BirthdayRepository.java", "file_ext": "java", "file_size_in_...
package com.omeram.birthday.repo; import com.omeram.birthday.AppExecutors; import com.omeram.birthday.db.BirthdayDao; import com.omeram.birthday.model.Birthday; import javax.inject.Inject; import javax.inject.Singleton; import androidx.lifecycle.LiveData; /** * Repository that handles Birthdays. */ @Singleton pub...
f45ea8f7-8015-48f8-b5ed-bc51c53d4869
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-07 05:36:04", "repo_name": "MikhaelRemboski/santander-challenge", "sub_path": "/src/main/java/com/santander/meetupchallenge/service/MeetupServiceImpl.java", "file_name": "MeetupServiceImpl.java", "file_ext": "...
package com.santander.meetupchallenge.service; import com.santander.meetupchallenge.domain.Meetup; import com.santander.meetupchallenge.repository.MeetupRepository; import com.santander.meetupchallenge.util.exception.MeetupException; import org.springframework.beans.factory.annotation.Autowired; import org.springframe...
c4e530ae-850f-45ac-8ba5-0bd4f0dee0a0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-21 06:01:03", "repo_name": "printlncode123/musicSite", "sub_path": "/iternetSite/src/cn/music/utils/vo/SongOrCatVo.java", "file_name": "SongOrCatVo.java", "file_ext": "java", "file_size_in_byte": 861, "line_co...
package cn.music.utils.vo; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import cn.music.po.Songcatagory; import cn.music.po.Songmenu; public class SongOrCatVo implements Serializable{ private Songcatagory songcatagory; private List<Songcatagory> children=new ArrayList<Songcatagor...
22948d91-81de-41d7-a128-43cc9862c22e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-27 03:39:27", "repo_name": "joinbobo/MyCode", "sub_path": "/JavaSE/src/com/dingli/test/io/Demo5.java", "file_name": "Demo5.java", "file_ext": "java", "file_size_in_byte": 885, "line_count": 34, "lang": "en", "...
package com.dingli.test.io; import java.io.*; public class Demo5 { public static void main(String[] args) { InputStream is = null; OutputStream os = null; try{ is = new FileInputStream("D:\\aaaa.docx"); os = new FileOutputStream("D:\\bbbb.docx"); int b =...
170ea8af-0b09-4b34-8e3e-2e70f20f16ed
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-11 09:12:30", "repo_name": "newtouchFam/newtouchFAM", "sub_path": "/src/main/demo/com/newtouch/cloud/demo/crud/dao/DemoDAO.java", "file_name": "DemoDAO.java", "file_ext": "java", "file_size_in_byte": 861, "lin...
package com.newtouch.cloud.demo.crud.dao; import java.util.List; import org.springframework.stereotype.Repository; import com.newtouch.cloud.common.dao.CommonDAO; import com.newtouch.cloud.common.entity.EntityMap; import com.newtouch.cloud.common.entity.PageData; @Repository public class DemoDAO extends CommonDAO {...
1fbeebc7-9cc9-4563-9743-c058598977cd
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-07 07:04:11", "repo_name": "xuzhu2017/land-management-assist", "sub_path": "/land-management-assist/src/main/java/com/xz/landmanagementassist/domain/entity/admin/AdminRolePermissionEntity.java", "file_name": "...
package com.xz.landmanagementassist.domain.entity.admin; import java.io.Serializable; import com.baomidou.mybatisplus.annotation.TableName; import com.xz.landmanagementassist.domain.entity.BaseEntity; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.EqualsAndHashCode; import...
9c1ecb66-ed65-4c1d-873e-3fb926629e66
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-15 16:56:53", "repo_name": "igorJarek/lab3_1", "sub_path": "/src/test/java/test/builder/AddProductCommandBuilder.java", "file_name": "AddProductCommandBuilder.java", "file_ext": "java", "file_size_in_byte": 86...
package test.builder; import pl.com.bottega.ecommerce.canonicalmodel.publishedlanguage.Id; import pl.com.bottega.ecommerce.sales.application.api.command.AddProductCommand; public class AddProductCommandBuilder { private Id orderId = Id.generate(); private Id productId = Id.generate(); private int quantit...
8c727ad0-0716-42bd-9629-5747db452b63
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-30 10:26:48", "repo_name": "green-fox-academy/zuzanastasova", "sub_path": "/week-09/frontend/src/main/java/com/greenfoxacademy/frontend/controllers/LogController.java", "file_name": "LogController.java", "file...
package com.greenfoxacademy.frontend.controllers; import com.greenfoxacademy.frontend.models.LogEntries; import com.greenfoxacademy.frontend.models.LogEntriesDTO; import com.greenfoxacademy.frontend.services.LogEntriesService; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bi...
8b5a6d70-fc18-4c14-9e3e-c7ad1af83721
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-04-18 08:22:21", "repo_name": "PlatONnetwork/client-sdk-java", "sub_path": "/core/src/main/java/com/platon/contracts/ppos/dto/resp/RedeemDelegation.java", "file_name": "RedeemDelegation.java", "file_ext": "java",...
package com.platon.contracts.ppos.dto.resp; import java.math.BigInteger; import java.util.Optional; public class RedeemDelegation { /** * 成功领取的委托金,回到余额 */ private BigInteger released; /** * 成功领取的委托金,回到锁仓账户 */ private BigInteger restrictingPlan; public BigInteger getReleased(...
38543f05-fee2-43c6-b2af-24c46abf4239
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-11 09:29:00", "repo_name": "small-coding/commnutiy", "sub_path": "/src/main/java/life/qyh/community/interceptor/WebConfig.java", "file_name": "WebConfig.java", "file_ext": "java", "file_size_in_byte": 861, "li...
package life.qyh.community.interceptor; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfig...
0d39e0f6-3560-42b6-bf29-959077a3a083
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-04-13T18:58:51", "repo_name": "davidsierradz/cs61as", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 861, "line_count": 35, "lang": "en", "doc_type": "text", "blob_...
# Berkeley CS61AS This is a **WIP** This is the homework for [CS 61AS Spring 2016](https://berkeley-cs61as.github.io/index.html). CS61AS is: > ... a introductory computer science class at the University of California, Berkeley. We use course material derived from the classic textbook Structure and Interpretation of ...
dac8f976-ad2e-4972-b20b-74aad211033a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-21 23:05:14", "repo_name": "aliarabat/TaxeProjextJavaFx", "sub_path": "/src/service/RedevableService.java", "file_name": "RedevableService.java", "file_ext": "java", "file_size_in_byte": 862, "line_count": 32,...
/* * 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 service; import bean.Redevable; import java.util.Date; /** * * @author ALI */ public class RedevableService ...
fdb9a98e-3f23-4073-a899-8afdca3cb4f5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-06 07:47:00", "repo_name": "SongQi1/village-affairs", "sub_path": "/village-affairs/src/main/java/com/bocs/util/StringUtil.java", "file_name": "StringUtil.java", "file_ext": "java", "file_size_in_byte": 940, "...
package com.bocs.util; import java.text.SimpleDateFormat; import java.util.Date; import org.apache.commons.lang3.StringUtils; public class StringUtil { /** * 产生长度为20位的唯一字符串。 * 规则是:yyMMddHHmmssSSS+5位随机数 * @return */ public static String getUniqueStr() { String trans_date = new SimpleDate...
a18c4153-24dd-451f-9fd9-95588046e0c0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-15 18:51:28", "repo_name": "ctrueden/veggie-copter", "sub_path": "/src/main/java/net/restlesscoder/heli/CopterGun.java", "file_name": "CopterGun.java", "file_ext": "java", "file_size_in_byte": 861, "line_count...
package net.restlesscoder.heli; import java.awt.Color; import java.awt.Graphics; import java.awt.image.BufferedImage; public class CopterGun extends Thing { protected static final int SPEED = 5; protected static final int HEIGHT = 7; protected static final Color BROWN = Color.yellow.darker(); protected sta...
f9875538-f93f-420c-8991-124c156aaab3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-05 10:37:25", "repo_name": "hell689/horseracing", "sub_path": "/src/controller/Log4jInit.java", "file_name": "Log4jInit.java", "file_ext": "java", "file_size_in_byte": 861, "line_count": 26, "lang": "en", "doc...
package controller; import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import org.apache.log4j.LogManager; import org.apache.log4j.xml.DOMConfigurator; public class Log4jInit implements ServletContextListener{ @Override public void co...
47c62d30-d96d-481f-bbbb-2e71351ffab7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-16 09:09:52", "repo_name": "lovelichun/xwms", "sub_path": "/src/main/java/com/fise/model/param/DeviceCountParam.java", "file_name": "DeviceCountParam.java", "file_ext": "java", "file_size_in_byte": 861, "line_...
package com.fise.model.param; import java.io.Serializable; import javax.validation.constraints.NotNull; import com.fasterxml.jackson.annotation.JsonProperty; import com.fise.utils.JsonUtil; public class DeviceCountParam implements Serializable{ private static final long serialVersionUid=1L; @NotNull ...
71a89dd2-3f9d-4e3c-856a-ae306cbcea60
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-25 14:46:02", "repo_name": "VickyDong20/hospital-appointment-system", "sub_path": "/DAL/record/RecordImpl.java", "file_name": "RecordImpl.java", "file_ext": "java", "file_size_in_byte": 861, "line_count": 32, ...
package DAL.record; import DAL.record.dao.IRecordDao; import DAL.record.dao.impl.RecordDaoImpl; import java.util.Date; import java.util.List; public class RecordImpl implements IRecord { private IRecordDao recordDao = new RecordDaoImpl(); @Override public List<MedicalRecord> viewRecord(String id) { ...
eb2d4c67-8530-44a5-a1b3-cb0fa1cf4b96
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-02-13 11:50:31", "repo_name": "CongXu519/SeeFireworksTonight", "sub_path": "/Back-end/RestWebservice_SFT/src/main/java/com/example/apps/services/DataServicesImpl_User.java", "file_name": "DataServicesImpl_User.ja...
package com.restbody.services; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import com.restbody.dao.DataDao_User; import com.restbody.model.Status; import com.restbody.model.User; public class DataServicesImpl_User implements DataServices_User{ @Autowired DataDao_User data...
311cfaa9-7d1e-451f-84f5-4bc6abc4c647
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-12 04:25:58", "repo_name": "verstandwq/joshua", "sub_path": "/joshua-web/src/main/java/org/gyt/web/controller/config/WebConfiguration.java", "file_name": "WebConfiguration.java", "file_ext": "java", "file_size...
package org.gyt.web.controller.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; ...
c5343bc3-a325-480b-bcd4-db308f87a3db
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-03 05:23:06", "repo_name": "yerbieinc/yerbie-clients", "sub_path": "/yerbie-java/src/main/java/yerbie/serde/JobSpecTransformer.java", "file_name": "JobSpecTransformer.java", "file_ext": "java", "file_size_in_b...
package yerbie.serde; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import yerbie.exception.JobSpecSerializationException; public class JobSpecTransformer { private final ObjectMapper objectMapper; public JobSpecTransformer(ObjectMapper objectMapper) { this.objectMapper = o...
4bfcff17-a8aa-4c3d-a050-888e57afec22
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-08 06:45:33", "repo_name": "ChoYoungBin/SpringBasic", "sub_path": "/src/test/java/hello/core/member/MemberServiceTests.java", "file_name": "MemberServiceTests.java", "file_ext": "java", "file_size_in_byte": 86...
package hello.core.member; import hello.core.AppConfig; import hello.core.member.domain.Grade; import hello.core.member.domain.Member; import hello.core.member.service.MemberService; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; ...
e3969b66-bf46-47a9-97b0-3a5e4060655f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-27 15:56:18", "repo_name": "oupc/IRTransformator", "sub_path": "/src/main/java/utils/ReadFile.java", "file_name": "ReadFile.java", "file_ext": "java", "file_size_in_byte": 860, "line_count": 36, "lang": "en", ...
package utils; import com.sun.xml.internal.ws.encoding.ContentTypeImpl; import java.io.File; public class ReadFile { public static void readFile(){ recordFiles(new File((String) Config.getProperty(PropertiesKey.PROJECT_PATH))); } public static void recordFiles(File file){ if(file.isDire...
c2fa3dc6-abc6-4bc0-a0f4-1b0e30c0141c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-14 10:47:50", "repo_name": "mani-bhushan/multi-module-parent-project", "sub_path": "/Address-API/src/main/java/com/apps/org/entity/DAOUser.java", "file_name": "DAOUser.java", "file_ext": "java", "file_size_in_...
package com.apps.org.entity; import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import javax.persistence.*; @Entity @Table(name = "user") public class DAOUser extends Auditable<String> implements Serializable { private static final long serialVersionUID = 4926468583005150701L; @Id...
fe491490-591c-4a7b-8283-1dd1939a0002
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-19 15:17:42", "repo_name": "sachin-koparde/Java", "sub_path": "/src/code/java/multithreading/RunnableThread.java", "file_name": "RunnableThread.java", "file_ext": "java", "file_size_in_byte": 860, "line_count"...
package code.java.multithreading; public class RunnableThread implements Runnable { private Thread thread; private String threadName; public RunnableThread(String threadName) { this.threadName = threadName; } @Override public void run() { System.out.println("Thread running:...
0efce6d0-7d05-437e-a509-a25b18e16ee6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-03-17T18:57:37", "repo_name": "TrackMaven/docker-node-express-skeleton", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 860, "line_count": 25, "lang": "en", "doc_ty...
# docker-node-express-skeleton A skeleton project that will get you up and running with Node, Express, &amp; ES6 in Docker. This project will help you get started with using Docker to containerize your Node.js application. I have had some issues finding best practices for this, so I thought I'd collect my opinions her...
e1296f62-97ef-4c14-af5e-3b1f3311b018
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-04-19T19:45:55", "repo_name": "emilykdewitt/sandwich-maker", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 863, "line_count": 25, "lang": "en", "doc_type": "text",...
# Sandwich Maker ## Description This application will allow a user select sandwich ingredients from a menu in order to create a custom sandwich order. As the user adds ingredients to their sandwich, the total cost of the sandwich is tallied. ## Technologies - HTML - CSS - JavaScript - Bootstrap ## Screenshots ![...
38333662-d08d-4301-9a1e-f891e65faa4a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-23 19:00:23", "repo_name": "GeorgeAbramov/library", "sub_path": "/library/src/main/java/ru/sberbank/library/BookRepository.java", "file_name": "BookRepository.java", "file_ext": "java", "file_size_in_byte": 86...
package ru.sberbank.library; import org.springframework.stereotype.Repository; import ru.sberbank.library.configuration.HibernateUtil; import java.sql.SQLException; import java.util.List; @Repository public interface BookRepository extends JpaRepository<Book, Long> { List<Book> findAll(); public static void...
643c21e4-42c4-4159-9d27-ab770fc753a2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-15 11:29:14", "repo_name": "dmanlancers/TriggerSystems", "sub_path": "/app/src/main/java/com/wetrig/dev/wetrig/POJO/RunStopSchedule.java", "file_name": "RunStopSchedule.java", "file_ext": "java", "file_size_in...
package com.wetrig.dev.wetrig.POJO; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class RunStopSchedule { @SerializedName("success") @Expose private Integer success; @SerializedName("result") @Expose private String result; /** ...
6fcd7a16-27d7-472b-b7b6-94745d12a77e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-24 13:12:05", "repo_name": "Noreen-Akhtar1048/splash", "sub_path": "/app/src/main/java/com/example/myapplication/Login.java", "file_name": "Login.java", "file_ext": "java", "file_size_in_byte": 859, "line_coun...
package com.example.myapplication; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import java.util.Objects; public class Login extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedIn...
c0ce4c59-64e8-4aae-9f11-cdfad1f551dd
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-11 14:12:25", "repo_name": "code-asc/Dectecting-Antipattern-in-Exceptional-Handling", "sub_path": "/src/patterns/ThrowsKitchen.java", "file_name": "ThrowsKitchen.java", "file_ext": "java", "file_size_in_byte":...
package patterns; import org.eclipse.jdt.core.dom.ASTVisitor; import org.eclipse.jdt.core.dom.MethodDeclaration; import beans.PatternInfo; /** * This class is used to record the ThrowsKitchen antipattern * in the code. * @author sandeepchowdaryannabathuni * */ public class ThrowsKitchen extends ASTVisitor{ ...
f3f67298-8d0c-4706-aa8c-36bc1ac10014
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-29 14:37:25", "repo_name": "cnyangdengau/OSS", "sub_path": "/src/Customer.java", "file_name": "Customer.java", "file_ext": "java", "file_size_in_byte": 860, "line_count": 45, "lang": "en", "doc_type": "code", ...
/** * <pre> * This class represents a customer, it holds all of the data that the store needs to know about someone. * Whilst this information is not sufficient to place an order in real life, it is detailed enough to serve as a good learning example. * </pre> */ public class Customer { /** * <pre> * The cus...
137009e5-a42d-4f79-9452-c6e8938ba970
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-14 14:53:38", "repo_name": "stefanfon/ProjekatSoftveri", "sub_path": "/sd/StudenskiDom/src/sesion/Sesion.java", "file_name": "Sesion.java", "file_ext": "java", "file_size_in_byte": 859, "line_count": 43, "lang...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package sesion; import java.net.Socket; import java.util.HashMap; import java.util.Map; /** * * @author Stefan */ public class Ses...
33566e02-5ed5-424f-8127-59d93c1e470b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-07-13T12:31:13", "repo_name": "DrHenchman/hardcore-hermits", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 860, "line_count": 21, "lang": "en", "doc_type": "text",...
# Hardcore Hermits v0.4 for Minecraft 1.13+ A datapack for Minecraft 1.13+ which is enspired by Hardcore Hermits challenge by Hermitcraft and tracks the score of each player. ## Features * Keep track of the score of each player, counting how many vanilla advancements they have obtained. Only advancements which are...
db8307fc-b29d-4b82-be78-1f34c2ac7017
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-20 21:59:16", "repo_name": "luramarchanjo/poc-spring-data", "sub_path": "/src/main/java/com/poc/springredis/controllers/CarPayload.java", "file_name": "CarPayload.java", "file_ext": "java", "file_size_in_byte"...
package com.poc.springredis.controllers; import com.poc.springredis.domain.Car; import com.poc.springredis.domain.CarType; import java.io.Serializable; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import javax.validation.constraints.Positive; import lombok.AllArgsConstruct...
a75df216-91b4-4dcf-be6d-cb37aba6dc0e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-21 00:06:16", "repo_name": "SavageAvocado/MineRest", "sub_path": "/src/main/java/net/roxeez/minerest/Configuration.java", "file_name": "Configuration.java", "file_ext": "java", "file_size_in_byte": 860, "line_...
package net.roxeez.minerest; import org.bukkit.configuration.file.FileConfiguration; public class Configuration { private final String token; private final int port; private final boolean debug; public Configuration(String token, int port, boolean debug) { this.token = token; this...
4ee1f59a-5ff3-4d14-a145-3b5e2d701afc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-30 23:02:37", "repo_name": "michaelhion/todoList", "sub_path": "/src/test/java/br/com/programadorNube/todoList/TodoRestTest.java", "file_name": "TodoRestTest.java", "file_ext": "java", "file_size_in_byte": 860...
package br.com.programadorNube.todoList; import static io.restassured.RestAssured.given; import static org.hamcrest.CoreMatchers.is; import org.junit.jupiter.api.Order; import org.junit.jupiter.api.Test; import io.quarkus.test.junit.QuarkusTest; import io.restassured.http.ContentType; @QuarkusTest public class Todo...
92c4cac5-6b44-429a-8740-baee5a17d46f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-29 20:21:40", "repo_name": "wille-li/FEBS-Vue", "sub_path": "/backend/src/main/java/cc/mrbird/febs/api/util/WXCoreUtil.java", "file_name": "WXCoreUtil.java", "file_ext": "java", "file_size_in_byte": 860, "line...
package cc.mrbird.febs.api.util; import org.apache.commons.codec.binary.Base64; public class WXCoreUtil { private static final String WATERMARK = "watermark"; private static final String APPID = "appid"; /** * @return * @throws Exception */ public static String decrypt(String encryptedD...
bf708051-2c7c-4ef9-9c22-4aff49d3ad54
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-09 17:10:50", "repo_name": "dazai/tvapi", "sub_path": "/app/src/main/java/com/example/tvapi/Resultat.java", "file_name": "Resultat.java", "file_ext": "java", "file_size_in_byte": 860, "line_count": 41, "lang":...
package com.example.tvapi; import com.google.gson.annotations.SerializedName; import java.util.List; public class Resultat { private Integer page; @SerializedName("total_results") private Integer totalResultats; @SerializedName("total_pages") private Integer totalPages; private List<Movie> r...
eb604b44-6203-40d1-8d27-f96c8ca8150d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-01-26T07:34:11", "repo_name": "hwygroup/git_guide", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 861, "line_count": 16, "lang": "en", "doc_type": "text", "blob_id...
# git_guide A simple userguide for me as a freshman in git and github The most simplest steps: (1) Create a new repository in the github, which has its address "https://github.com/hwygroup/test.git" (2) In local computer, choose a address, and "git clone https://github.com/hwygroup/test.git" (3) In the "test" of local ...
00a6bee8-8ad7-492b-ac91-ebde1e9b4732
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-14 07:10:14", "repo_name": "DariaSokolova/patterns", "sub_path": "/src/main/java/com/epam/mentoring/patterns/behavioral/visitor/ComputerPartDisplayVisitor.java", "file_name": "ComputerPartDisplayVisitor.java",...
package com.epam.mentoring.patterns.behavioral.visitor; public class ComputerPartDisplayVisitor implements ComputerPartVisitor { public static final String COMPUTER_VISIT = "Display the computer"; public static final String MOUSE_VISIT = "Display the mouse"; public static final String KEYBOARD_VISIT = "Display the ...
7eac5bbe-30f6-4ae8-9e2b-99bbd1eb3b85
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-30 04:20:41", "repo_name": "mavric93/babyshark", "sub_path": "/babyshark-backend/src/main/java/com/babyshark/demo/BabysharkBackend.java", "file_name": "BabysharkBackend.java", "file_ext": "java", "file_size_in...
package com.babyshark.demo; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ConfigurableApplicationContext; @SpringBootApplication public class BabysharkB...
d504d10f-8d0c-47db-9a4f-1cb5bf627ce9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-28 05:24:00", "repo_name": "Chain0714/current-demo", "sub_path": "/src/main/java/org/chain/current/demo/exceptiondemo/ArrayListIssue.java", "file_name": "ArrayListIssue.java", "file_ext": "java", "file_size_in...
package org.chain.current.demo.exceptiondemo; import java.util.ArrayList; public class ArrayListIssue { static class ArrayListThread implements Runnable { private ArrayList<Integer> list; ArrayListThread(ArrayList<Integer> lsit) { this.list = lsit; } @Override ...
71abc461-c31c-4720-b6d7-94a65fd9a138
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-29 19:16:13", "repo_name": "KleinerHacker/jcoding", "sub_path": "/src/main/java/org/pcsoft/framework/jcoding/jobject/JVisibilityDefinitionDescriptor.java", "file_name": "JVisibilityDefinitionDescriptor.java", ...
package org.pcsoft.framework.jcoding.jobject; import org.pcsoft.framework.jcoding.exception.JCodingDescriptorValidationException; import org.pcsoft.framework.jcoding.type.JVisibility; /** * Created by pfeifchr on 10.12.2015. */ public abstract class JVisibilityDefinitionDescriptor extends JDefinitionDescriptor { ...
43568d3f-9945-4eb5-97ff-e585e407a391
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-08 17:44:00", "repo_name": "Louispzt/Graphe-et-Arbre-Couvrant", "sub_path": "/Graphe/src/Edge.java", "file_name": "Edge.java", "file_ext": "java", "file_size_in_byte": 860, "line_count": 40, "lang": "en", "doc...
import java.util.ArrayList; public class Edge { private int edgeNb; ArrayList<Edge> successors; public Edge(int edgeNb){ this.setEdgeNb(edgeNb); successors = new ArrayList<>(); } public void addSuccessor(Edge sommet){ if (!successors.contains(sommet)) successor...
e4186fbc-9ab0-4a2a-a064-8f90a091d29e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-06 06:49:27", "repo_name": "xnn1987/music", "sub_path": "/src/com/allen/music/views/view/video/ffmpeg/VideoParam.java", "file_name": "VideoParam.java", "file_ext": "java", "file_size_in_byte": 934, "line_count...
package com.allen.music.views.view.video.ffmpeg; import java.io.File; public class VideoParam { @Override public String toString() { return super.toString() + String.format("(frame=%d,bitrate=%d,audioHzRate=%d,audioBitrate=%d,channels=%d,width=%d,height=%d,mute=%d)", frameRate, v...
f93717b3-5738-4e8c-b8bf-6db68b4467ce
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-26 05:54:37", "repo_name": "karthick1996/Employee_data", "sub_path": "/src/main/java/com/employee/model/Employee.java", "file_name": "Employee.java", "file_ext": "java", "file_size_in_byte": 860, "line_count":...
package com.employee.model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table public class Employee extends Organisation{ @Id @Column private int empId; @Column private String firstName; @Column ...
09880bee-9143-47e8-9794-6c467e576d2c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-15 18:58:34", "repo_name": "tarunmittal2012/FlightTracker", "sub_path": "/app/src/main/java/com/example/tarunmittal/flighttracker/Model/Data.java", "file_name": "Data.java", "file_ext": "java", "file_size_in_b...
package com.example.tarunmittal.flighttracker.Model; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; import java.util.List; public class Data { @SerializedName("geography") public List<Geography> mGeographyList =null; @SerializedName("speed") public List<Speed> speedLi...
25b2b0e6-9310-42b3-9f82-e758c0838ec9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-19 03:36:58", "repo_name": "cqp1116/imodelSecurity", "sub_path": "/imodel-security-core/src/main/java/com/imodel/core/validate/pojo/ImageCode.java", "file_name": "ImageCode.java", "file_ext": "java", "file_siz...
package com.imodel.core.validate.pojo; import java.awt.image.BufferedImage; import java.time.LocalDateTime; /** * @auther 陈庆朋 * @create 2018/8/15 */ public class ImageCode extends ValidateCode{ private BufferedImage image;//图片信息 /** * 根据存在时间进行构造 * @param image * @param code * @param e...
c775ebef-f60f-4c18-ade9-db987fdd2e55
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-19 02:16:07", "repo_name": "ArthurLiuWB/javaCode", "sub_path": "/src/main/java/com/wenbo/multiThread/MyThreadMain.java", "file_name": "MyThreadMain.java", "file_ext": "java", "file_size_in_byte": 912, "line_co...
package com.wenbo.multiThread; /** * Created by Arthur on 2017/6/18. */ public class MyThreadMain { public static void main(String[] args) { Thread t1 = new MyThread(100); Thread t2 = new MyThread(100); Thread t3 = new MyThread(20); t1.setName("Arthur"); t2.setName("King"...
ec726995-f817-4a1b-8edc-b5ed2f505916
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-23 11:17:02", "repo_name": "xuchuanliang/JavaConcurrencyInPractice", "sub_path": "/src/JavaCoreThreadPatten/capter05/TaskRunner.java", "file_name": "TaskRunner.java", "file_ext": "java", "file_size_in_byte": 8...
package JavaCoreThreadPatten.capter05; import java.util.concurrent.BlockingQueue; public class TaskRunner { protected final BlockingQueue<Runnable> blockingQueue; protected volatile Thread workerThread; public TaskRunner(BlockingQueue<Runnable> blockingQueue) { this.blockingQueue = blockingQueue;...
44e11c0e-4721-44c6-8242-361f28ce319d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-31 19:04:43", "repo_name": "zelalemagmasse/GettingAandStoringUserInput", "sub_path": "/src/com/company/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 860, "line_count": 29, "lan...
package com.company; import java.util.Scanner; public class Main { public static void main(String[] args) { // write your code here Scanner input= new Scanner(System.in ); String firstInitial; String lastName; int houseNumber; String streetName; String streetType; ...
a6199ab8-c72e-49b9-adf9-293f2ae2e6f4
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-01 18:17:06", "repo_name": "IraqiAseed/BigData_Lecture02_HW_AND_LAB", "sub_path": "/src/main/java/classTrainingReadWriteSerializeToFromFile/MainWhichWriteToFile.java", "file_name": "MainWhichWriteToFile.java",...
package classTrainingReadWriteSerializeToFromFile; import file_examples.Employee; import lombok.SneakyThrows; import model.Person; import java.io.File; import java.io.FileOutputStream; import java.io.ObjectOutputStream; import java.util.List; public class MainWhichWriteToFile { @SneakyThrows public static v...
bce8b3a1-f3a2-47b5-9884-9db284d5d2a5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-12-04 14:58:17", "repo_name": "Kinoman512/Weather2", "sub_path": "/app/src/main/java/com/masstersoft/weather/utils/Persistence.java", "file_name": "Persistence.java", "file_ext": "java", "file_size_in_byte": 859,...
package com.masstersoft.weather.utils; import android.content.Context; import android.content.SharedPreferences; /** * Created by Dmitry on 27.11.2015. */ public class Persistence { private static final String PREFERENCES = "MySetting"; private SharedPreferences settings; private SharedPreferences.Edit...
66892ab3-8b36-417e-8ed1-aa5a5585c9bc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-07-23 22:09:45", "repo_name": "MinecraftWars/Incinerator", "sub_path": "/src/com/minecraftwars/incinerator/Util.java", "file_name": "Util.java", "file_ext": "java", "file_size_in_byte": 860, "line_count": 30, "la...
package com.minecraftwars.incinerator; import java.util.Random; import org.bukkit.block.Block; import org.bukkit.block.BlockFace; import org.bukkit.block.Sign; public class Util { public static Block furnaceBlock(Sign sign) { Block signBlock = sign.getBlock(); org.bukkit.material.Sign signData =...
58a30287-4de4-4d1a-957f-fbb1d3013624
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-20 15:34:28", "repo_name": "qorinaprameswari/Algoritma-dan-Struktur-Data", "sub_path": "/Pertemuan 6/BSIS/src/Tugas1/Tiket.java", "file_name": "Tiket.java", "file_ext": "java", "file_size_in_byte": 860, "line_...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Tugas1; /** * * @author Prameswari */ public class Tiket { String maskapai,destination; float harga; int transi...
a4360b8a-0f4b-4aad-9488-9503ee2184c0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-06 00:40:00", "repo_name": "wsyx04/JavaSE_20171.1", "sub_path": "/src/main/java/io/InputStreamTest.java", "file_name": "InputStreamTest.java", "file_ext": "java", "file_size_in_byte": 861, "line_count": 41, "l...
package io; import com.sun.org.apache.xml.internal.serializer.ToStream; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; /** * Created by whb on * 2017/4/18 10:38 */ public class InputStreamTest { public static void main(String[] args) { InputStream inputStream =...
e2944ff7-dfdc-430b-9a77-b712bf20aa75
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-06 22:56:06", "repo_name": "NateA21/androidApp", "sub_path": "/app/src/main/java/com/example/idontcare/data/model/LoggedInUser.java", "file_name": "LoggedInUser.java", "file_ext": "java", "file_size_in_byte": ...
package com.example.idontcare.data.model; import android.util.Log; import androidx.room.ColumnInfo; import androidx.room.Entity; import androidx.room.PrimaryKey; //Class for user login and database. @Entity(tableName="users") public class LoggedInUser { @PrimaryKey(autoGenerate = true) @ColumnInfo(name = "r...
8ee97960-7b62-48e9-86a7-8a0299c323cc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-08 18:17:21", "repo_name": "BaraianIulia/cabd", "sub_path": "/src/main/java/com/project/cabd/sql/utilities/SqlVariationReturnType.java", "file_name": "SqlVariationReturnType.java", "file_ext": "java", "file_si...
package com.project.cabd.sql.utilities; import com.project.cabd.entities.pure.Variation; import org.springframework.jdbc.core.RowMapper; import java.sql.Date; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Timestamp; public class SqlVariationReturnType implements RowMapper<Variation> { ...
fdca8af5-97c4-444e-9ee9-1dbaeb0141cf
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-03 13:45:24", "repo_name": "nacarct/MyGamers", "sub_path": "/src/MyGamers/Concrete/CampainManager.java", "file_name": "CampainManager.java", "file_ext": "java", "file_size_in_byte": 862, "line_count": 31, "lan...
package MyGamers.Concrete; import MyGamers.Abstract.CampainService; import MyGamers.Entity.Campain; import MyGamers.Entity.Game; public class CampainManager implements CampainService { @Override public void add(Campain campain) { System.out.println("Kampanya eklendi : " + campain.getName()); } ...
c8dbdb85-69a3-48ef-97f6-a6fdf2eea84c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-07-01 10:47:51", "repo_name": "JoshuaJamesOng/PerMissions", "sub_path": "/permissions/src/main/java/com/ongtonnesoup/permissions/PerMissionsResultBundleHelper.java", "file_name": "PerMissionsResultBundleHelper.ja...
package com.ongtonnesoup.permissions; import android.os.Bundle; public final class PerMissionsResultBundleHelper { public static final String KEY_PERMISSIONS_ARRAY = "KEY_PERMISSIONS"; public static final String KEY_GRANT_RESULTS_ARRAY = "KEY_GRANT_RESULTS"; private PerMissionsResultBundleHelper() { ...
2bc8f55e-7332-4413-beb6-beea84077ccc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-03 01:55:26", "repo_name": "giozuno/DesignSoftware", "sub_path": "/factoryMethodPatternExamen/src/test/java/mx/iteso/factory/Stores/WaterIceCreamStoreTest.java", "file_name": "WaterIceCreamStoreTest.java", "fi...
package mx.iteso.factory.Stores; import mx.iteso.factory.IceCream; import mx.iteso.factory.IceCreamStore; import mx.iteso.factory.IceCreams.MangoWaterIceCream; import mx.iteso.factory.stores.WaterIceCreamStore; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; import static ...
eda11502-9092-4c4e-bdef-5d2ff23b4c7c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-10 03:27:07", "repo_name": "wangjiaxin1100/AutoTest", "sub_path": "/autotest/src/main/java/com/ab/testcase/GetTodoMenuListByNeedGrade3.java", "file_name": "GetTodoMenuListByNeedGrade3.java", "file_ext": "java"...
package com.ab.testcase; import com.ab.utiles.ConfigFile; import com.ab.utiles.GetDataProviderCsv; import com.ab.utiles.HttpsUtils; import org.testng.annotations.Test; import java.util.HashMap; import java.util.Map; public class GetTodoMenuListByNeedGrade3 { // 从csv文件中读取发起报文 // CSV文件中的return objects返回值 @Te...
8c3adc2f-951d-408d-bd84-f713db10d826
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-05-23T14:03:23", "repo_name": "juliojesse25/Cantina-code-exercise", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 860, "line_count": 27, "lang": "en", "doc_type": ...
# Cantina Code Exercise ## Overview A JavaScript command line program that takes a Json file as a command line argument and a selector and then returns the matching views. To run this program, you should have **Node** installed. ## How to install - Fork and clone the repo. - Install dependencies with **npm install** ...
77d64cae-a669-4b20-90bd-bb21914285e2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-06-10 15:55:25", "repo_name": "rivasyshyn/Vocabulario", "sub_path": "/app/src/main/java/com/irm/vocabulario/CardModel.java", "file_name": "CardModel.java", "file_ext": "java", "file_size_in_byte": 860, "line_coun...
package com.irm.vocabulario; /** * Created by rivasyshyn on 09.06.2015. */ public class CardModel { private long id; private String word; private String translation; public CardModel(long id, String word, String translation) { this.id = id; this.translation = translation; th...
6ba311e4-c36d-4949-bc42-63be576157bc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-05 06:57:13", "repo_name": "AdiTheLearner/Hibernate-For-Beginners", "sub_path": "/5.Connection Pooling/Hibernate 4 - DBCP/src/com/sap/main/Application.java", "file_name": "Application.java", "file_ext": "java"...
package com.sap.main; import org.hibernate.Session; import org.hibernate.Transaction; import com.sap.pojo.Employee; import com.sap.util.HibernateUtil; public class Application { public static void main(String[] args) { Session session = null; Transaction transaction = null; try { session = Hib...
f4aa70dd-1e3c-46f4-b23f-f113da8bdbd8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-13 08:36:23", "repo_name": "divalbanerjee/SIliconSharksROV", "sub_path": "/src/com/dival/GUI/dataViewGUI.java", "file_name": "dataViewGUI.java", "file_ext": "java", "file_size_in_byte": 860, "line_count": 35, ...
package com.dival.GUI; import javax.swing.*; import java.awt.*; public class dataViewGUI extends JFrame { private Font font20Pt = new Font("Helvetica" , Font.PLAIN, 20); Container container; Color textColor = new Color(0, 0, 0); Color backColor1 = new Color(236,239,241); Color backColor = new Colo...
f4234ecb-a37a-464d-a4e1-14ea21a56b6d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-03 09:50:50", "repo_name": "baurine/android-architecture-demo", "sub_path": "/ArchDemo/app/src/main/java/com/example/archdemo/arch/AppDatabase.java", "file_name": "AppDatabase.java", "file_ext": "java", "file_...
package com.example.archdemo.arch; import android.arch.persistence.room.Database; import android.arch.persistence.room.Room; import android.arch.persistence.room.RoomDatabase; import com.example.archdemo.ArchDemoApp; /** * Created by baurine on 8/3/17. */ @Database(entities = {Todo.class}, version = 1) public abs...
66dbdf6d-d95b-41aa-a0f4-a02b8bbd8c6a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-01 22:20:53", "repo_name": "bditt/CustomEnchants", "sub_path": "/src/com/bditt/CustomEnchants/Support/FactionSupport.java", "file_name": "FactionSupport.java", "file_ext": "java", "file_size_in_byte": 860, "li...
package com.bditt.CustomEnchants.Support; import org.bukkit.entity.Player; import com.bditt.CustomEnchants.API; import com.massivecraft.factions.Rel; import com.massivecraft.factions.entity.Faction; import com.massivecraft.factions.entity.MPlayer; public class FactionSupport { public static boolean isFriendly(P...
e2c3f9fc-b755-4eda-bf03-2faa48833f3f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-23 09:11:35", "repo_name": "alekseifedorov/score", "sub_path": "/src/main/java/my/assignment/controller/AmazonScoreController.java", "file_name": "AmazonScoreController.java", "file_ext": "java", "file_size_in...
package my.assignment.controller; import lombok.AllArgsConstructor; import my.assignment.model.Score; import my.assignment.service.AmazonScoreService; import org.apache.commons.lang3.StringUtils; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; i...
261c4190-8164-4c60-ba2f-1ef0b3158edc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-27 01:35:45", "repo_name": "sakaev2901/chat", "sub_path": "/Multichat Jackson/Client/src/main/java/view/MessageArchiveView.java", "file_name": "MessageArchiveView.java", "file_ext": "java", "file_size_in_byte"...
package view; import models.Payload; import java.util.LinkedHashMap; import java.util.Scanner; public class MessageArchiveView { public LinkedHashMap<String, String> openArhive() { Scanner scanner = new Scanner(System.in); System.out.println("=== Message Archive ==="); System.out.print("S...
23f7c797-9d6c-476d-a2f4-4d864a3f1c69
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-06 16:50:50", "repo_name": "USK-DIMA/HttpJenkinsNotifier", "sub_path": "/http-jenkins-notifier-api/src/main/java/ru/uskov/dmitry/httpjenkinsnotifier/api/model/kafka/JenkinsEventSerializer.java", "file_name": "...
package ru.uskov.dmitry.httpjenkinsnotifier.api.model.kafka; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.kafka.common.serialization.Serializer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Map; public class JenkinsEventSerializer implements Serializer<JenkinsEve...
55de4317-66fd-4658-ac56-bbe196e90767
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-11-30 16:50:06", "repo_name": "ArtChl/upcsgcestesis", "sub_path": "/SCGESLogicaNegocio/src/main/java/pe/com/ega/sgces/dao/CierreDaoImpl.java", "file_name": "CierreDaoImpl.java", "file_ext": "java", "file_size_in_...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package pe.com.ega.sgces.dao; import org.hibernate.Session; import org.hibernate.SessionFactory; /** * * @author Flopez */ public class CierreDaoImpl implements CierreDao { private SessionFactory...
95621473-70eb-4ef2-840f-ca2bddea8729
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-12 11:11:20", "repo_name": "tivenwang/intellij-plugins", "sub_path": "/flex/tools/flex-ui-designer/idea-plugin/src/org/jetbrains/io/RetainCondition.java", "file_name": "RetainCondition.java", "file_ext": "java...
package org.jetbrains.io; import com.intellij.util.Consumer; import gnu.trove.TObjectObjectProcedure; import org.jetbrains.annotations.Nullable; import java.util.Arrays; public class RetainCondition<K, V extends Identifiable> implements TObjectObjectProcedure<K, V> { private final int[] ids; @Nullable private ...
cf2d21da-c547-4a17-a2f2-1264354044c8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-15 15:25:13", "repo_name": "gujianjian/SWeather", "sub_path": "/app/src/main/java/com/example/joy/sweather/base/BaseFragment.java", "file_name": "BaseFragment.java", "file_ext": "java", "file_size_in_byte": 88...
package com.example.joy.sweather.base; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; /** * Created by joy on 2018/5/12. * 项目名 SWeather * 类名 com.example.joy.sweather.fragments * 简介 */ /** * 初始化presenter 并绑定view * @param <V> * @param <T> */ ...
191b21c3-0530-4237-b048-7831614116d2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-20 08:10:19", "repo_name": "gaofeifan/linkemore", "sub_path": "/account-service/account-server/src/main/java/cn/linkmore/account/controller/ops/ShareController.java", "file_name": "ShareController.java", "file...
package cn.linkmore.account.controller.ops; import javax.annotation.Resource; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import cn.linkmore.account.service.ShareService...
f61906f9-a5b7-453a-95a8-03cf16554bb6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-05 02:51:41", "repo_name": "diegoemmanuell/projetos", "sub_path": "/ProfessorNotaDez/src/com/example/dao/DataBaseHelper.java", "file_name": "DataBaseHelper.java", "file_ext": "java", "file_size_in_byte": 861, ...
package com.example.dao; import com.example.util.PathConsultasScripts; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class DataBaseHelper extends SQLiteOpenHelper{ private static final String BANCO_DADOS = "Professor";...
3fb7171c-537f-4620-a3dc-67d48efa66df
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-03-18 21:42:17", "repo_name": "ganesanshanmugamn/cdr-reference", "sub_path": "/src/main/java/com/vmware/logger/httpclient/RestTemplateClient.java", "file_name": "RestTemplateClient.java", "file_ext": "java", "fil...
package com.vmware.logger.httpclient; import com.vmware.logger.model.User; import com.vmware.logger.model.UserList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Component; import org.springframework.w...
1ab2d3e9-6274-414a-9716-5ac5825715aa
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-14 01:54:30", "repo_name": "qq107163841/mlb-usetool", "sub_path": "/mlb_usetool/src/main/java/com/mmy/yiyi/mvp_okhttp/MViewlmpl.java", "file_name": "MViewlmpl.java", "file_ext": "java", "file_size_in_byte": 87...
package com.mmy.yiyi.mvp_okhttp; import com.mmy.yiyi.netutils.NetWorkUtlis; import java.io.IOException; import java.util.HashMap; import okhttp3.Call; import okhttp3.Response; /* * * 创建自帅气的 清川 on 2020/6/16 */ public class MViewlmpl implements MView { private NetWorkUtlis netWorkUtlis; public MViewlmpl() ...
b775e4ba-b71f-4d74-8d8a-af50d1db8d7f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-29 09:34:25", "repo_name": "pgottfried/share-stuff-community", "sub_path": "/src/main/java/application/helper/NewMessage.java", "file_name": "NewMessage.java", "file_ext": "java", "file_size_in_byte": 860, "li...
package application.helper; import java.util.List; import application.entity.Conversation; import application.entity.Message; /* * Used the Messaging part of the App * A New Message /Request comes in and the MessageHistory and the Conversation details are returnd * */ public class NewMessage { private Convers...
cb40055c-092e-4412-b305-ab5fa74f0efd
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-08 23:40:18", "repo_name": "nadkarniak/Athletier", "sub_path": "/app/src/main/java/com/CS5520/athletier/Utilities/GeocoderInput.java", "file_name": "GeocoderInput.java", "file_ext": "java", "file_size_in_byte"...
package com.CS5520.athletier.Utilities; import com.CS5520.athletier.Models.State; public class GeocoderInput { private String streetAddress; private String city; private State state; private String zipCode; public GeocoderInput(String streetAddress, String city, State state, String zipCode) { ...
23b5212f-9b3b-4193-94c6-543936a58ad8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-01 14:41:07", "repo_name": "lalid00/Restautacja", "sub_path": "/src/main/java/pl/restaurant/core/model/Kitchen.java", "file_name": "Kitchen.java", "file_ext": "java", "file_size_in_byte": 860, "line_count": 36...
package pl.restaurant.core.model; import java.util.ArrayList; public class Kitchen { private final int numOfChefs; private final ArrayList<Chef> chefs; public Kitchen(int numOfChefs) { this.numOfChefs = numOfChefs; this.chefs = new ArrayList<>(); int count = 0; while(count...
0843cf1a-3052-42bf-846b-4bf59b7271cf
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-13 19:27:52", "repo_name": "ajitsing/RubyGemsAndroidApp", "sub_path": "/app/src/main/java/com/singhajit/rubygems/dashboard/ViewPagerAdapter.java", "file_name": "ViewPagerAdapter.java", "file_ext": "java", "fil...
package com.singhajit.rubygems.dashboard; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; import java.util.ArrayList; import java.util.List; public class ViewPagerAdapter extends FragmentStatePagerAdapter { private List...
cdd815fd-bb8f-4574-8279-b7b933a6e6d7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-11 13:14:43", "repo_name": "jackxuexue/tank", "sub_path": "/src/main/java/com/jackxue/tank/FourBulletFireStrategy.java", "file_name": "FourBulletFireStrategy.java", "file_ext": "java", "file_size_in_byte": 860...
package com.jackxue.tank; import com.jackxue.tank.net.BulletNewMsg; import com.jackxue.tank.net.Client; public class FourBulletFireStrategy implements FireStrategy<Tank> { @Override public void fire(Tank tank) { int bX = tank.getX() + Tank.WIDTH/2 - Bullet.WIDTH/2; int bY = tank.getY() + Tank....
e0880020-693b-4e1e-8954-60d657d45c97
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-23 11:17:02", "repo_name": "xuchuanliang/JavaConcurrencyInPractice", "sub_path": "/src/ThreadPattenByPic/capter01/Gate.java", "file_name": "Gate.java", "file_ext": "java", "file_size_in_byte": 860, "line_count...
package ThreadPattenByPic.capter01; /** * @author xuchuanliangbt * @title: Gate * @projectName JavaConcurrencyInPractice * @description: * @date 2019/7/2414:52 * @Version */ public class Gate { private int counter = 0; private String name = "Nobody"; private String address = "Nowhere"; public sy...
59bcee8c-4746-484d-899a-a271fa5f80f1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-18 20:48:06", "repo_name": "GlDevop/RxJavaSwitchMap", "sub_path": "/app/src/main/java/gabriellee/project/rxjavaswitchmap/ViewPostActivity.java", "file_name": "ViewPostActivity.java", "file_ext": "java", "file_...
package gabriellee.project.rxjavaswitchmap; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.widget.TextView; import gabriellee.project.rxjavaswitchmap.models.Post; public class ViewPostActivity extends AppCompatActivity { priv...
fc366915-5b51-4926-b907-dc6a796357e8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-10 13:59:09", "repo_name": "squad-o-suicide/contacts-sync", "sub_path": "/src/main/java/org/shoper/contacts/filter/UploadToken.java", "file_name": "UploadToken.java", "file_ext": "java", "file_size_in_byte": 8...
package org.shoper.contacts.filter; import org.shoper.commons.core.StringUtil; import org.springframework.stereotype.Component; import java.util.HashMap; import java.util.Map; import java.util.UUID; @Component public class UploadToken { private Map<String, String> token = new HashMap<>(); public String creat...
3e9a736d-ad52-4e9f-ac3b-c35232d3065f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-16 15:40:50", "repo_name": "BishtAarushi/MusicApp", "sub_path": "/src/main/java/com/music/app/video/business/VideoPlayService.java", "file_name": "VideoPlayService.java", "file_ext": "java", "file_size_in_byte...
package com.music.app.video.business; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.music.app.video.entity.Video; import com.music.app.video.repository.VideoRepository; @Service public class VideoPlayService { @Autowired private VideoReposi...
b7df5aaf-3319-4e25-a1b2-aee58f62df83
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-18 10:52:16", "repo_name": "PaperPlane01/aphelion-backend", "sub_path": "/src/main/java/aphelion/mapper/BlogPostToBlogPostMinifiedDTOMapper.java", "file_name": "BlogPostToBlogPostMinifiedDTOMapper.java", "file...
package aphelion.mapper; import org.mapstruct.AfterMapping; import org.mapstruct.BeanMapping; import org.mapstruct.Mapper; import org.mapstruct.MappingTarget; import aphelion.model.domain.BlogPost; import aphelion.model.dto.BlogPostMinifiedDTO; import org.springframework.beans.factory.annotation.Autowired; @Mapper(us...
a1b105c7-a10e-4fb2-9edd-5c80a7ebc76e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-21 10:05:52", "repo_name": "radovanzubal/WikiApp", "sub_path": "/app/src/main/java/wiki/app/anew/wikiapp/ResponseDetail.java", "file_name": "ResponseDetail.java", "file_ext": "java", "file_size_in_byte": 859, ...
package wiki.app.anew.wikiapp; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class ResponseDetail { @SerializedName("batchcomplete") @Expose private String batchcomplete; @SerializedName("warnings") @Expose private Warnings warnings; ...
3e6fb6d0-9a1c-4bff-bfb1-4a7ab4247e45
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-03-09T05:40:39", "repo_name": "axstavo08/benchmarking_grids", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 859, "line_count": 18, "lang": "en", "doc_type": "text"...
# Benchmarking Grid Popular JS Libraries [![Libraries Test](https://img.shields.io/badge/libraries-test-green.svg)](https://github.com/axstavo08/benchmarking_grids) This is a small and simple project about the comparison between two popular grid JS libraries: [Kendo UI Grid](https://www.telerik.com/kendo-ui/grid) and [...
4b0ae489-dc35-4434-8584-1384f24ef6b1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-07 10:54:02", "repo_name": "dlsyaim/EQIMSERVER", "sub_path": "/src/main/java/com/gisinfo/sand/commonData/service/EqStorageService.java", "file_name": "EqStorageService.java", "file_ext": "java", "file_size_in_...
package com.gisinfo.sand.commonData.service; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.gisinfo.sand.commonData.bean.EqStorage; import com.gisinfo.sand.commonData.dao.EqStorageMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotyp...
93fdbe78-a613-47e6-8bc8-45dbdf559f3c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-22 14:01:23", "repo_name": "dongguo4812/concurrent", "sub_path": "/src/main/java/com/dongguo/juc/PhaserTest.java", "file_name": "PhaserTest.java", "file_ext": "java", "file_size_in_byte": 862, "line_count": 31...
package com.dongguo.juc; import java.util.concurrent.Phaser; import java.util.concurrent.TimeUnit; /** * @author Dongguo * @date 2021/9/19 0019-11:40 * @description: */ public class PhaserTest { private static Phaser phaser = new Phaser(); public static void main(String args[]) { for (int i = 1;...