id
stringlengths
36
36
meta
stringlengths
429
697
code_content
large_stringlengths
612
1.26k
cb3a8fdf-0f1c-43c4-9aae-1b6ea3b07b4d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-22 09:43:17", "repo_name": "See29ram/gitlog", "sub_path": "/src/Pack1.java", "file_name": "Pack1.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": 24, "lang": "en", "doc_type": "code", "blob_i...
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class Pack1 { private static final Logger log=LogManager.getLogger(Pack1.class.getName()); public static void main(String[] args) { ...
ce5727a5-e835-4ebe-aaf2-60c641a96a13
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-09 10:50:23", "repo_name": "user3614/spring-boot-examples", "sub_path": "/35-spring-boot-rabbitmq/src/test/java/com/gzz/ObjectTest.java", "file_name": "ObjectTest.java", "file_ext": "java", "file_size_in_byte"...
package com.gzz; 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.test.context.junit4.SpringRunner; import com.gzz.model.User; import com.gzz.rabbit.ob...
79b30e5a-5b13-4f1f-a7f1-cbc9b59d2f55
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-06 04:58:19", "repo_name": "BuNuo/sevenTangBlog", "sub_path": "/src/com/yht/blog/serviceImpl/UserServiceImpl.java", "file_name": "UserServiceImpl.java", "file_ext": "java", "file_size_in_byte": 624, "line_coun...
package com.yht.blog.serviceImpl; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.yht.blog.dao.UserMapper; import com.yht.blog.model.Users; import com.yht.blog.service.UserS...
06094e92-7e44-4d84-8e30-61dc64fac8ee
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-10-03 15:24:08", "repo_name": "qazwsxedc121/leetcode", "sub_path": "/src/InorderSuccessorInBST.java", "file_name": "InorderSuccessorInBST.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": 27, "la...
/** * Created by tureoyz on 15-9-22. */ public class InorderSuccessorInBST { public TreeNode inorderSuccessor(TreeNode root, TreeNode p) { if(p.right != null){ TreeNode next = p.right; while(next.left != null){ next = next.left; } return next...
0044e677-c5ec-4d4d-8717-054b6251b03f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-04-03 19:48:39", "repo_name": "pdewan/GIPC", "sub_path": "/src/examples/gipc/counter/customization/ACustomSerializer.java", "file_name": "ACustomSerializer.java", "file_ext": "java", "file_size_in_byte": 624, "li...
package examples.gipc.counter.customization; import java.nio.ByteBuffer; import serialization.simple.ASimpleSerializer; public class ACustomSerializer extends ASimpleSerializer { @Override public synchronized Object objectFromInputBuffer(ByteBuffer inputBuffer) { Object retVal = super.objectFromInputBuf...
a181709c-65d3-495c-91c7-502449e0745c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-06-20 20:22:23", "repo_name": "AZHARDEEN/cloudsystems", "sub_path": "/cloudsystems/SystemEjb/src/main/java/br/com/mcampos/ejb/security/log/AccessLogTypeSessionBean.java", "file_name": "AccessLogTypeSessionBean.ja...
package br.com.mcampos.ejb.security.log; import javax.annotation.Resource; import javax.ejb.SessionContext; import javax.ejb.Stateless; import br.com.mcampos.ejb.core.SimpleSessionBean; import br.com.mcampos.jpa.security.AccessLogType; @Stateless( name = "AccessLogTypeSession", mappedName = "AccessLogTypeSe...
a921ba62-9f67-4c45-acef-e75a9cb99109
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-04 15:15:21", "repo_name": "LELOUPERRE/CLR", "sub_path": "/CLR_Dao/src/main/java/fr/christophelouer/dao/common/dao/utils/Demo.java", "file_name": "Demo.java", "file_ext": "java", "file_size_in_byte": 624, "lin...
package fr.christophelouer.dao.common.dao.utils; import java.util.UUID; public class Demo { @IdTech private String id = UUID.randomUUID().toString(); private String nom; public String getNom() { return nom; } public void setNom(String nom) { this.nom = nom; } public String getId() { return id; ...
f2a7e53b-cf83-4c46-819d-de8bd22462e8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-05-11 18:12:23", "repo_name": "cproinger/tuwien-ir-ss2015-gr06", "sub_path": "/ir-basic-search/src/main/java/at/ac/tuwien/ir2015/IndexValue.java", "file_name": "IndexValue.java", "file_ext": "java", "file_size_in...
package at.ac.tuwien.ir2015; import java.util.HashMap; import java.util.Map; public class IndexValue { public IndexValue(AbstractIRDoc doc, int count) { this.sum = count; mapCounts.put(doc, count); } private Integer sum = 0; private Map<AbstractIRDoc, Integer> mapCounts = new HashMap<AbstractIRDoc, Int...
efea945a-dadb-4103-90d7-2bc160c1486f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-16 04:34:29", "repo_name": "Dhbui/CS211-Battleship", "sub_path": "/Final/src/Window.java", "file_name": "Window.java", "file_ext": "java", "file_size_in_byte": 621, "line_count": 24, "lang": "en", "doc_type": ...
import java.awt.Canvas; import java.awt.Dimension; import javax.swing.JFrame; //Adds the frame and all that jazz, starts the game public class Window extends Canvas { public Window(int width, int height, String name, Game game) { JFrame f = new JFrame(name); f.setPreferredSize(new Dimension(width...
11496634-1d56-47de-bca6-834c4ee2aaaa
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-27 12:18:11", "repo_name": "fanny1903/Test", "sub_path": "/src/Exo_4/Bombe.java", "file_name": "Bombe.java", "file_ext": "java", "file_size_in_byte": 622, "line_count": 30, "lang": "en", "doc_type": "code", "b...
package Exo_4; public class Bombe implements Runnable { private int time_before_explosion; private Thread t; private Game g; private int pos; public Bombe(int time,int pos, Game g) { time_before_explosion = time; this.g = g; this.pos = pos; t = new Thread(this); ...
207538de-2268-4bf9-afeb-ba01760944f2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-12-27T15:02:54", "repo_name": "nikitaksv/docker-templates", "sub_path": "/laravel/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 621, "line_count": 34, "lang": "en", "doc_type": ...
# LARAVEL-TEMPLATE ### Infrastructure * Nginx * MariaDB * PHP-FPM 7.2 (LARAVEL) * Memcached * Redis ### Installation * Run the command in the root directory project: ``` cd docker && cp .env.sample .env && docker-compose up --build -d ``` ### Default settings * Domain name - laravel.loc * Debug - ...
e240453b-9f59-4e84-8bc3-e86d29ba3744
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-02 14:48:01", "repo_name": "DavideLancini/ing-sw-2021-Lancini-Gilli-Frigerio", "sub_path": "/src/main/java/it/polimi/ingsw/psp12/network/messages/ServerMessageMarketReturn.java", "file_name": "ServerMessageMar...
package it.polimi.ingsw.psp12.network.messages; import it.polimi.ingsw.psp12.model.Resource; import java.util.Collection; /** * Class ServerMessageMarketReturn * @author Group 12 */ public class ServerMessageMarketReturn extends ServerMessage { private final Collection<Resource> resources; /** * con...
007230dd-ff2d-4c7e-86e5-ecb7e6934bbf
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-08-19 05:43:28", "repo_name": "LiuXuChen/core", "sub_path": "/design-pattern/src/main/java/com/jetco/core/behavioral/responsibilitychain/msg/FilterChain.java", "file_name": "FilterChain.java", "file_ext": "java",...
package com.jetco.core.behavioral.responsibilitychain.msg; import java.util.ArrayList; import java.util.List; /** * <p> * 过滤器链 * </p> * * @author lhw * @version 1.0 * @since 2021-04-19 */ public class FilterChain implements Filter { private final List<Filter> filters = new ArrayList<>(); public Filt...
55845dfc-cbe1-4f67-bdee-5976cd627aba
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-11-03 14:54:07", "repo_name": "iliedorobat/LIDO-Parser", "sub_path": "/src/ro/webdata/parser/xml/lido/core/leaf/recordInfoLink/RecordInfoLinkDAOImpl.java", "file_name": "RecordInfoLinkDAOImpl.java", "file_ext": "...
package ro.webdata.parser.xml.lido.core.leaf.recordInfoLink; import ro.webdata.parser.xml.lido.core.complex.webResourceComplexType.WebResourceComplexTypeDAO; import ro.webdata.parser.xml.lido.core.complex.webResourceComplexType.WebResourceComplexTypeDAOImpl; import org.w3c.dom.Node; public class RecordInfoLinkDAOImpl...
b67b12db-c118-4f37-8af6-930761dad8f5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-03-10 08:48:15", "repo_name": "ChrisHal/SBHteachingTool", "sub_path": "/de.halaszovich.sbhteachingtool/src/de/halaszovich/sbhteachingtool/Messages.java", "file_name": "Messages.java", "file_ext": "java", "file_si...
package de.halaszovich.sbhteachingtool; // string externalization in part performed via this class import java.util.MissingResourceException; import java.util.ResourceBundle; public class Messages { private static final String BUNDLE_NAME = "de.halaszovich.sbhteachingtool.messages"; //$NON-NLS-1$ private ...
8ffe1ab5-e956-4798-b62f-5c7135deff09
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-24 04:14:07", "repo_name": "b0b3t0/java", "sub_path": "/removeDuplicatesElements/src/Solution.java", "file_name": "Solution.java", "file_ext": "java", "file_size_in_byte": 622, "line_count": 26, "lang": "en", ...
public class Solution { /** * Removing all instances of that value in place. * @param nums input array * @param val search value to remove * @return the count of elements that are not equal to value */ public static int removeDuplicatesElements(int[] nums, int val) { int count...
3c88b88e-536a-4b67-8732-fa3ce0c8a9c4
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-12 21:56:42", "repo_name": "DJ-Chemik/Viroshop", "sub_path": "/PPI_BACKEND/viroshop/src/main/java/pl/put/poznan/viroshop/dao/models/CreateProductReservationModel.java", "file_name": "CreateProductReservationMo...
package pl.put.poznan.viroshop.dao.models; public class CreateProductReservationModel { private Long productId; private int count; public CreateProductReservationModel() { } public CreateProductReservationModel(Long productId, int count) { this.productId = productId; this.count =...
157f3904-5e60-4870-b12c-850fa3f6c405
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-13 12:46:21", "repo_name": "ogrebgr/dagger2_migration_missing_module_inject", "sub_path": "/mylibrary/src/main/java/com/bolyartech/mylibrary/ActLogin.java", "file_name": "ActLogin.java", "file_ext": "java", "f...
package com.bolyartech.mylibrary; import android.app.Activity; import android.os.Bundle; import android.os.PersistableBundle; import javax.inject.Inject; /** * Created by ogre on 2015-07-13 */ public class ActLogin extends Activity { @Inject Mod1Interface2 mMod1Interface2; @Override public void on...
00ff4edb-8d27-4b5d-9330-772c66001a3b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-29 12:45:16", "repo_name": "Alistair401/StudentLoanCompany-Hackathon-App", "sub_path": "/App/app/src/main/java/guts/carpaltunnel/mobileapp/HSApplication.java", "file_name": "HSApplication.java", "file_ext": "j...
package guts.carpaltunnel.mobileapp; import android.app.Application; import com.tenmiles.helpstack.HSHelpStack; import com.tenmiles.helpstack.gears.HSEmailGear; import guts.carpaltunnel.mobileapp.util.FormManager; public class HSApplication extends Application { public FormManager formManager = new FormManager()...
7f475a39-45ae-40c5-a617-227a874ce1fc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-08 18:18:42", "repo_name": "TSogani/RestAll", "sub_path": "/22.WorkingWithCostomParameterConversion/src/com/cpc/convertor/ChequeParamConvertor.java", "file_name": "ChequeParamConvertor.java", "file_ext": "java...
package com.cpc.convertor; import javax.ws.rs.ext.ParamConverter; import com.cpc.dto.Cheque; public class ChequeParamConvertor implements ParamConverter<Cheque>{ @Override public Cheque fromString(String param) { System.out.println("fromString"); String[] tokens = null; Cheque cheque = null; tokens = p...
b0a54815-7d55-4fec-9320-283590b719e3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-31 19:27:40", "repo_name": "shurupov/2020-11-otus-spring-shurupov", "sub_path": "/20-webflux/src/main/java/ru/otus/shurupov/spring/reactive/domain/Author.java", "file_name": "Author.java", "file_ext": "java", ...
package ru.otus.shurupov.spring.reactive.domain; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; import ru.otus.shurupov.spring.reactive.domain.dto.AuthorDto; @Data @NoA...
cb238bf8-1966-40ce-b48f-4e5a6a322d35
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-28 08:32:58", "repo_name": "DuWenLi-mumu/AlumniManagement", "sub_path": "/src/main/java/com/sjtu/alumnimanagement/service/UserInfoService.java", "file_name": "UserInfoService.java", "file_ext": "java", "file_s...
package com.sjtu.alumnimanagement.service; import com.sjtu.alumnimanagement.dao.UserInfoDao; import com.sjtu.alumnimanagement.entity.UserInfo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; ...
244ca0b3-10d2-4adb-9f0b-dc184b5ffa24
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-21 03:21:11", "repo_name": "ymq19/edu-system-serve_SpringBoot", "sub_path": "/src/main/java/edu/system/serve/controller/manager/ManagerSCController.java", "file_name": "ManagerSCController.java", "file_ext": "...
package edu.system.serve.controller.manager; import edu.system.serve.service.teacher.TeacherSCService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.Map; @RestController @RequestMapping("/api/v1") public class ManagerSCController { ...
4f36ea1f-74e6-46e2-9f8b-22e5cf876e57
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-19 16:09:55", "repo_name": "amitkumar8636/carwasher_microservice", "sub_path": "/src/main/java/com/cg/casestudy/carwash/document/Addons.java", "file_name": "Addons.java", "file_ext": "java", "file_size_in_byte...
package com.cg.casestudy.carwash.document; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; @Document public class Addons { @Id private String id; private String name; private double price; public Addons(String name, double price) { super(); this...
3a52e34b-cf7c-452c-a7c6-197390d96f9e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-27 06:54:42", "repo_name": "absouban354/E-Markaz", "sub_path": "/app/src/main/java/in/tomtontech/markaz/AzhkarClass.java", "file_name": "AzhkarClass.java", "file_ext": "java", "file_size_in_byte": 622, "line_c...
package in.tomtontech.markaz; /* * * Created by Mushfeeeq on 7/31/2017. */ public class AzhkarClass { private String strAzhkarName; private String strAzhkarSize; private String strAzhkarType; public AzhkarClass(String strAzhkarName, String strAzhkarSize, String strAzhkarType) { this.strAzhkarName = str...
cef25d87-0f4d-4db4-bfc0-89b011fb3e52
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-04-04 20:29:49", "repo_name": "owingsbj/WebWorld", "sub_path": "/myWorld/src/main/java/com/gallantrealm/myworld/communication/SendMessageRequest.java", "file_name": "SendMessageRequest.java", "file_ext": "java", ...
package com.gallantrealm.myworld.communication; import java.io.IOException; /** * Client request to send a message. */ public class SendMessageRequest extends ClientRequest { static final long serialVersionUID = 0; String message; public SendMessageRequest() { } public SendMessageRequest(Stri...
351e87b4-248b-46d2-b85c-e81af0dec64a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-15 13:04:55", "repo_name": "17692355668/springboot-cpims", "sub_path": "/src/main/java/com/javakc/springbootcpims/modules/user/entity/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byt...
package com.javakc.springbootcpims.modules.user.entity; import com.javakc.springbootcpims.common.base.entity.Base; import lombok.Getter; import lombok.Setter; /** * @program:springboot-cpims * @description:RBAC用户模块实现类 * @create:2020-10-31 */ @Getter @Setter public class User extends Base { /** 姓名 */ priv...
e3cd9746-d877-4b90-80c8-0f191cf3064a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-12-12 08:52:54", "repo_name": "catalin-burcea/playground", "sub_path": "/java11/src/test/java/ro/cburcea/playground/java11/FilesFeaturesTest.java", "file_name": "FilesFeaturesTest.java", "file_ext": "java", "file...
package ro.cburcea.playground.java11; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import static org.junit.jupiter.api.Assertions.assertEquals; public class FilesFeaturesTest { @Test void testW...
a046f16f-291f-454f-9cff-857ee09adef2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-02-09T04:23:24", "repo_name": "sonny3690/Space-Game", "sub_path": "/src/com/game/src/main/Textures.java", "file_name": "Textures.java", "file_ext": "java", "file_size_in_byte": 622, "line_count": 29, "lang": "en"...
package com.game.src.main; import java.awt.image.BufferedImage; public class Textures { public BufferedImage [] player = new BufferedImage [3]; public BufferedImage [] missile = new BufferedImage [3]; public BufferedImage [] enemy = new BufferedImage [3]; private SpriteSheet ss; public Textures (Game game)...
974ba275-6e23-411e-bc27-c202694f090d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-02-06T22:40:47", "repo_name": "Nagato09/MMST-Project", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 622, "line_count": 26, "lang": "en", "doc_type": "text", "blob...
# MMST-Project @Rafal For the coding enviroment currently im using Atom The whole Angular project is too big to upload to github at once. I just uploaded the src directory where all the changes happen. 1. Install everything to get started. -Atom -npm -Angular 2. After that download the angular project base ...
8b274941-da44-4da6-a371-ee5700de29e2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-15 07:52:18", "repo_name": "LiorShor/ComaxAssignment", "sub_path": "/VideoPlayer/app/src/main/java/com/example/videoplayer/model/Video.java", "file_name": "Video.java", "file_ext": "java", "file_size_in_byte":...
package com.example.videoplayer.model; import android.graphics.Bitmap; public class Video { private String name; private String path; private Bitmap thumbNail; public Video(String name, String path, Bitmap thumbNail) { this.name = name; this.path = path; this.thumbNail = thumb...
939afbac-8450-4af4-8ee9-b2b453512553
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-17 16:28:55", "repo_name": "0d3ng/rental-api", "sub_path": "/src/main/java/com/frent/service/SettingServiceImpl.java", "file_name": "SettingServiceImpl.java", "file_ext": "java", "file_size_in_byte": 551, "lin...
/** * @author odeng * * Copyright © 2017 All Rights Reserved * */ package com.frent.service; import java.util.HashMap; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.frent.dao.SettingDao; import com.frent.model.Sett...
1f8caad3-9887-419d-a38d-8da49a3aa5bb
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-07 06:59:17", "repo_name": "mxl656565/custevalusys", "sub_path": "/src/main/java/com/waymap/custevalusys/dto/CustLoginParm.java", "file_name": "CustLoginParm.java", "file_ext": "java", "file_size_in_byte": 672...
/** * 公司: * 文件名:CustomerLoginParm * 作者:Tiger * 时间:2020/12/1 13:43 * 描述: */ package com.waymap.custevalusys.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.Getter; import lombok.Setter; import javax.validation.constraints.NotEmpty; /** * @author : tiger * @description :用...
2fd71ab3-97aa-4b61-b703-5ee7dac920f6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-05-29T21:28:42", "repo_name": "nitinkatyal1314/expense-tracker-react", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 622, "line_count": 30, "lang": "en", "doc_type...
# expense-tracker-react A simple expense tracker app designed in react with following features: 1. Add new expenses. 2. Filter expenses based on year. 3. Visualize expenses on monthly bases. Here is the sample from the app: ![Expense Tracker](/public/expense-tracker-sample.png) # Dependencies Make sure you have cre...
e06a17ba-d5f4-44aa-bf08-1c84eaf90f88
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-21 15:08:04", "repo_name": "devacfr/spring-restlet", "sub_path": "/restlet-core/src/main/java/com/pmi/restlet/response/extjs/DefaultResourceResponse.java", "file_name": "DefaultResourceResponse.java", "file_ex...
package com.pmi.restlet.response.extjs; public class DefaultResourceResponse implements IResourceResponse { private String modelEncoding = "UTF-8"; /** * Set an encoding used for reading/writing the model. * * @param modelEncoding the encoding used when reading/writing the model. ...
43f1b63d-e4de-4115-936b-d17fe90091b0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-12 20:15:41", "repo_name": "Vicuze/agendize", "sub_path": "/agendize-api/src/main/java/mx/agendize/api/v2/reference/AgendizeObject.java", "file_name": "AgendizeObject.java", "file_ext": "java", "file_size_in_b...
package mx.agendize.api.v2.reference; /** * All Agendize objects. Contains the id. * @author <a href="mailto:victor@agendize.com">victor@agendize.com</a> * */ public abstract class AgendizeObject { /** Identifier of the Agendize object. Read-only. */ protected Integer id; /** * @return the id */ public ...
a3b9e22b-cf80-455f-8767-31eaa4073198
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-06 10:53:35", "repo_name": "u0jin/YappProject", "sub_path": "/app/src/main/java/com/example/kiyon/yappproject/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byte": 628,...
package com.example.kiyon.yappproject; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.Button; public class MainActivity extends AppCompatActivity { Button plusBtn;...
10a378ce-a690-4595-801a-1f78d2459d65
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-13 10:52:56", "repo_name": "fl00327/Java-Projects", "sub_path": "/c0m1028_labe3/src/c0m1028_labe3/Goods.java", "file_name": "Goods.java", "file_ext": "java", "file_size_in_byte": 622, "line_count": 35, "lang":...
package c0m1028_labe3; public class Goods { private String barcode = null; private String name = null; private double currentPrice = 0.0; private double reducedPrice = 0.0; public Goods(String barcode, String name, double currentPrice, double reducedPrice) { super(); this.barcode = barcode; this.name = name; th...
718ec5f1-6709-4cc3-8079-adbdf00ed700
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-27 04:28:25", "repo_name": "renan-auer/task-list-backend", "sub_path": "/src/main/java/com/supero/tasklist/services/task/CreateTaskService.java", "file_name": "CreateTaskService.java", "file_ext": "java", "fil...
package com.supero.tasklist.services.task; import com.supero.tasklist.models.Task; import com.supero.tasklist.repository.TaskRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class CreateTaskService { private final TaskRepo...
9daaaf92-b257-4811-be79-fb7779dc6013
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-14 12:04:07", "repo_name": "xingxingtx/common-parent", "sub_path": "/achieve-parent/achieve-summary/src/main/java/com/wei/designmodel/construction/flyweight/general/ConcreteFlyweight.java", "file_name": "Concr...
package com.wei.designmodel.construction.flyweight.general; /** * @Describe ConcreteFlyweight * @Author a_pen * @Date 2020年09月07日 */ public class ConcreteFlyweight implements IFlyweight{ private String intrinsicState; public ConcreteFlyweight(String intrinsicState) { this.intrinsicState = intrinsi...
882f774e-8044-4e62-a910-55a8e3758915
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-13 11:52:38", "repo_name": "FrankDo1990/design-patterns", "sub_path": "/src/main/java/com/study/templateMethod/UserServiceImpl.java", "file_name": "UserServiceImpl.java", "file_ext": "java", "file_size_in_byte...
package com.study.templateMethod; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * Created by Frank on 2016/12/26. */ public class UserServiceImpl implements UserService { @Override public boolean userNeedCondiment() { BufferedReader br = new Buffer...
13eb3b87-5b9d-45cb-9cb4-16bf6e62325b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-18 15:56:35", "repo_name": "kgmyshin/esa-android", "sub_path": "/esa/app/src/main/java/com/kgmyshin/esa/domain/command/DeletePostCommand.java", "file_name": "DeletePostCommand.java", "file_ext": "java", "file_...
/* * Copyright (c) 2015 Recruit Marketing Partners Co., Ltd. All rights reserved. * Created by kgmyshin on 2016/04/03. */ package com.kgmyshin.esa.domain.command; public class DeletePostCommand extends Command { private final String teamName; private final int id; public DeletePostCommand(String team...
0b182253-d33d-405b-86a6-905f7433ce4b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-04 14:38:01", "repo_name": "kairitsims/Automaattestimine", "sub_path": "/WeatherForecast/src/test/java/ee/ttu/IAY0361/test/InputAskerTest.java", "file_name": "InputAskerTest.java", "file_ext": "java", "file_si...
package ee.ttu.IAY0361.test; import static org.junit.Assert.*; import java.io.IOException; import org.json.JSONException; import org.json.simple.parser.ParseException; import org.junit.Test; import ee.ttu.IAY0361.main.InputAsker; public class InputAskerTest { @Test public void testInputAskerFromConsole() { Inpu...
7eda2a76-9530-4f1b-bb71-5580b75d27e2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-29 17:32:19", "repo_name": "engrceey/DevSchool", "sub_path": "/src/test/java/DevStudentTest.java", "file_name": "DevStudentTest.java", "file_ext": "java", "file_size_in_byte": 621, "line_count": 20, "lang": "e...
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class DevStudentTest { @Test void takeAcourse() throws Exception { DevStudent devStudent = new DevStudent("Philip",23,"098",false); String actual1 = devStudent.takeAcourse("Java"); assertEquals("Java"...
6c89cae3-7e63-4d2f-b33a-c100f45d7896
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-04-12 09:59:51", "repo_name": "kinshuk4/algorithms-java", "sub_path": "/src/main/java/com/vaani/dsa/ds/core/tree/suffix/naive_uncompressed/SuffixTree.java", "file_name": "SuffixTree.java", "file_ext": "java", "fi...
package com.vaani.dsa.ds.core.tree.suffix.naive_uncompressed; import java.util.List; public class SuffixTree { SuffixTreeNode root = new SuffixTreeNode(); public SuffixTree(String s) { for (int i = 0; i < s.length(); ++i) { root.insert(s.substring(i), i); } } public List<...
155c94a6-845e-421d-90c9-e1cca0724177
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-01 23:19:07", "repo_name": "Rwilmes/IC", "sub_path": "/src/ic/gui/ImagePanel.java", "file_name": "ImagePanel.java", "file_ext": "java", "file_size_in_byte": 622, "line_count": 39, "lang": "en", "doc_type": "co...
package ic.gui; import java.awt.Graphics; import java.awt.image.BufferedImage; import javax.swing.JPanel; /** * Extends the basic JPanel and overwrites the paint method to enable painting * of images. * * @author Rwilmes * */ public class ImagePanel extends JPanel { /** * */ private static final long...
ba650db4-1ef3-4af7-aefd-72007ef4efab
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-18 19:29:08", "repo_name": "ddefaveri/jERP", "sub_path": "/src/main/java/br/com/jerp/controller/initial/IndexJerp.java", "file_name": "IndexJerp.java", "file_ext": "java", "file_size_in_byte": 622, "line_count...
package br.com.jerp.controller.initial; import br.com.jerp.model.Profile; import javax.annotation.PostConstruct; import javax.faces.bean.ManagedBean; import javax.faces.bean.RequestScoped; import javax.faces.context.FacesContext; @RequestScoped @ManagedBean public class IndexJerp { @PostConstruct public void...
6d19d97f-5e3e-4a8f-8a0e-8a2d5fd6174e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-14 09:49:22", "repo_name": "nastushar/and6", "sub_path": "/src/com/nastya/Competition.java", "file_name": "Competition.java", "file_ext": "java", "file_size_in_byte": 622, "line_count": 28, "lang": "en", "doc_...
package com.nastya; public class Competition { protected int sweemDistance; protected int runDistance; public Competition ( int sweemDistance , int runDistance ) { this.sweemDistance = sweemDistance; this.runDistance = runDistance; } public int getSweemDistance () { return...
908086b5-f27a-4753-8b01-2ab37d9d7f63
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-06 15:06:37", "repo_name": "Supersmf/DataTable", "sub_path": "/src/java/com/table/bean/EmployeeBean.java", "file_name": "EmployeeBean.java", "file_ext": "java", "file_size_in_byte": 625, "line_count": 30, "lan...
package com.table.bean; import com.table.dao.EmployeeDAO; import com.table.model.Employee; import java.io.Serializable; import java.util.List; import javax.inject.Named; import javax.faces.view.ViewScoped; /** * * @author SMF */ @Named(value = "employeeBean") @ViewScoped public class EmployeeBea...
70b02ad9-76a2-48a9-9c56-3b52953184d3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-05 13:46:10", "repo_name": "serafimdmitriev/yourwayadmin", "sub_path": "/app/src/main/java/com/serafimdmitrievstudio/yourwayadmin/MyFirebaseMessagingService.java", "file_name": "MyFirebaseMessagingService.java...
package com.serafimdmitrievstudio.yourwayadmin; import com.google.firebase.messaging.FirebaseMessagingService; import com.google.firebase.messaging.RemoteMessage; /** * Created by Serafim on 22.02.2018. */ public class MyFirebaseMessagingService extends FirebaseMessagingService { String id = null; ...
5b7a93f5-e85f-45c9-a9b3-4003f9aa32a4
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-25 23:05:24", "repo_name": "KamilAntczak/KRS-Parser-ING", "sub_path": "/src/main/java/com/web_connector/GetId.java", "file_name": "GetId.java", "file_ext": "java", "file_size_in_byte": 623, "line_count": 26, "...
/* * 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 com.web_connector; import org.json.JSONArray; import org.json.JSONObject; /** * * @author Kamil */ public cl...
6a34a145-7acc-47e1-8020-d5f8ff391ca6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-12-11T11:01:44", "repo_name": "2ftg/SMDiDCR", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 622, "line_count": 12, "lang": "en", "doc_type": "text", "blob_id": "c6...
# SMDiDCR SMD Direct conversion receiver based on N2CQR's design This is my SMD variant of Bill N2CQR's "iPhone Direct Conversion Receiver with Variable Ceramic Oscillator" receiver design. The original post with schematics can be found here: http://soldersmoke.blogspot.fi/2017/11/iphone-direct-conversion-receive...
cbcbdf7d-ce42-4d60-8618-0f4412d35406
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-27 05:02:45", "repo_name": "HoangNgocDoanh/AttendenceStudent_Android", "sub_path": "/app/src/main/java/com/spkt/app_student_attendance/presenter/DateTime_Format.java", "file_name": "DateTime_Format.java", "fil...
package com.spkt.app_student_attendance.presenter; import java.text.SimpleDateFormat; import java.util.Date; public class DateTime_Format { private static final String DATE_FORMAT = "dd/MM/yyyy"; private static final String TIME_FORMAT_12 = "hh:mm:ss a"; // Lấy ngày public String getDateString(Date date) ...
0c83443e-96ab-4d73-af7b-21abfeba613c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-02-14 19:40:01", "repo_name": "CodeCollaborate/EclipsePlugin", "sub_path": "/src/main/java/cceclipseplugin/ui/UIResponseHandler.java", "file_name": "UIResponseHandler.java", "file_ext": "java", "file_size_in_byte...
package cceclipseplugin.ui; import org.eclipse.swt.widgets.Display; import cceclipseplugin.ui.dialogs.MessageDialog; import websocket.IResponseHandler; import websocket.models.Response; public class UIResponseHandler implements IResponseHandler { private String requestName; public UIResponseHandler(String reques...
40c2d8a7-1e7d-4b21-98da-64b28268cb34
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-11-06T23:25:26", "repo_name": "jussih/slackinviter", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 622, "line_count": 13, "lang": "en", "doc_type": "text", "blob_i...
# slackinviter Simple browser based tool for mass inviting users to private channels in slack. ## Usage Open the index.html in a browser. Add your slack API key, the channel name and a list of email addresses, then click Add. The tool will invite all users on the email list that match a user in your Slack team to t...
045fb3b2-6f5b-44be-8ff0-aacd5148b63f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-07-27 11:04:44", "repo_name": "folio-org/folio-service-tools", "sub_path": "/folio-service-tools-test/src/main/java/org/folio/test/junit/TestStartLoggingRule.java", "file_name": "TestStartLoggingRule.java", "file...
package org.folio.test.junit; import static org.folio.test.util.TestUtil.logger; import org.junit.rules.TestWatcher; import org.junit.runner.Description; public class TestStartLoggingRule extends TestWatcher { private static final TestStartLoggingRule INSTANCE = new TestStartLoggingRule(); public static TestS...
f79740fd-203b-41b0-a1d2-fbbacb878024
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-06-20 11:38:35", "repo_name": "leasingninja/leasingninja-java-boundedcontexts-domainmodel", "sub_path": "/leasingninja-sales/src/main/java/io/leasingninja/sales/infrastructure/ContractsJpaImpl.java", "file_name":...
package io.leasingninja.sales.infrastructure; import io.leasingninja.sales.domain.Contract; import io.leasingninja.sales.domain.ContractNumber; import io.leasingninja.sales.domain.Contracts; public class ContractsJpaImpl implements Contracts { private final ContractDatabaseEntityRepository repo; public ContractsJ...
e7976535-a440-420d-b19d-488ad1a6e5e8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-01 12:42:27", "repo_name": "kroegerama/retrofit-kaiteki", "sub_path": "/example/src/main/java/com/kroegerama/kaiteki/retrofit/app/Post.java", "file_name": "Post.java", "file_ext": "java", "file_size_in_byte": ...
package com.kroegerama.kaiteki.retrofit.app; import com.google.gson.annotations.SerializedName; public class Post { @SerializedName("id") private Integer id = null; @SerializedName("userId") private Integer userId = null; @SerializedName("title") private String title = null; @Serialize...
fcc239b4-cb7a-45de-8e9d-cc1d62f76261
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-09-20 13:37:51", "repo_name": "EvaluaMe/evaluame", "sub_path": "/app/src/main/java/com/garciparedes/evaluame/activities/LoginActivity.java", "file_name": "LoginActivity.java", "file_ext": "java", "file_size_in_by...
package com.garciparedes.evaluame.activities; import android.content.Intent; import com.garciparedes.evaluame.R; import com.parse.ui.ParseLoginBuilder; import com.parse.ui.ParseLoginDispatchActivity; /** * Created by garciparedes on 30/7/15. */ public class LoginActivity extends ParseLoginDispatchActivity { @...
ddc2fb9e-c82c-4fa2-9d7a-12e6c5b07b12
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-06 11:30:42", "repo_name": "hxy493045049/GlobalAccess", "sub_path": "/app/src/main/java/com/msy/globalaccess/event/RefreshSettlementBadgeEvent.java", "file_name": "RefreshSettlementBadgeEvent.java", "file_ext"...
package com.msy.globalaccess.event; /** * Created by pepys on 2017/2/23. * description:刷新结算列表小圆点 */ public class RefreshSettlementBadgeEvent { public RefreshSettlementBadgeEvent(String type) { this.type = type; } private String type; //搜索类型 private String auditType;//结算单类型:0:预支付;1:追加预支付;2...
12ccc0e2-11df-4078-9d36-1baf0f925366
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-02-26 22:14:58", "repo_name": "TheProjecter/amor-conflict-detection", "sub_path": "/org.modelversioning.conflicts.detection.signifier/src/org/modelversioning/conflicts/detection/signifier/preferences/PreferenceIn...
package org.modelversioning.conflicts.detection.signifier.preferences; import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; import org.eclipse.jface.preference.IPreferenceStore; import org.modelversioning.conflicts.detection.signifier.SignifierDetectionPlugin; /** * Class used to initialize def...
4a80af9b-72bb-41b3-8a62-31e12a35f4f8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-01 07:41:19", "repo_name": "Louis-Saglio/TP-Java", "sub_path": "/J07_Acteurs/src/com/b1b/etudiants/beans/Acteur.java", "file_name": "Acteur.java", "file_ext": "java", "file_size_in_byte": 622, "line_count": 35...
package com.b1b.etudiants.beans; public class Acteur { private int code; private String prenom; private String nom; private Genre sexe; public Acteur(int code, String prenom, String nom, Genre sexe){ this.code = code; this.prenom = prenom; this.nom = nom; this.sexe = sexe; } public int getCode() {...
3028d527-4fe9-4749-a3d4-3405af738096
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-03-22 16:10:32", "repo_name": "amitkvaio/Hibernate", "sub_path": "/05GeneratorClass/src/main/java/com/lara/Manager01.java", "file_name": "Manager01.java", "file_ext": "java", "file_size_in_byte": 622, "line_count...
package com.lara; import org.hibernate.Session; public class Manager01 { public static void main(String[] args) { Session s1 = Util.getSession(); Book b1 = new Book(); b1.setId(101); b1.setAuthor("jamesJoslin"); b1.setTitle("java"); Book b2 = new Book(); b2.setId(102); b2.setAuthor("Gravin king");...
3213d1b3-dd30-42f5-a977-748d6a133c15
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-06-20 22:24:32", "repo_name": "Pokecube-Development/Pokecube-Issues-and-Wiki", "sub_path": "/src/main/java/pokecube/mobs/moves/attacks/Infestation.java", "file_name": "Infestation.java", "file_ext": "java", "file...
package pokecube.mobs.moves.attacks; import net.minecraft.world.entity.LivingEntity; import pokecube.api.entity.IOngoingAffected; import pokecube.api.entity.IOngoingAffected.IOngoingEffect; import pokecube.core.moves.templates.Move_Ongoing; public class Infestation extends Move_Ongoing { @Override public void...
3963208a-f56c-4862-b4a1-fbdb045796bf
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-18T15:41:35", "repo_name": "didikk/mvp-unit-test", "sub_path": "/app/src/main/java/me/didik/newmvp/app/MyApp.java", "file_name": "MyApp.java", "file_ext": "java", "file_size_in_byte": 622, "line_count": 30, "l...
package me.didik.newmvp.app; import android.app.Application; import me.didik.newmvp.app.injection.AppComponent; import me.didik.newmvp.app.injection.AppModule; import me.didik.newmvp.app.injection.DaggerAppComponent; /** * Created by didik on 12/18/16. * App */ public class MyApp extends Application { privat...
852f6d3b-da25-4618-bb83-ee704fe2cdc7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-01 10:24:05", "repo_name": "dudicp/apartment-notifier", "sub_path": "/src/main/java/com/patimer/apartment/util/FileUtils.java", "file_name": "FileUtils.java", "file_ext": "java", "file_size_in_byte": 622, "lin...
package com.patimer.apartment.util; import java.io.*; import java.nio.file.Files; import java.nio.file.Paths; public class FileUtils { public static boolean isFileExists(String filename) { return Files.exists(Paths.get(filename)); } public static void writeToFile(String text, String filename)...
87b1178d-f6d3-4d3b-af2f-62f75265da5f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-27 16:09:49", "repo_name": "aubricoc/xolis-android", "sub_path": "/app/src/main/java/cat/aubricoc/xolis/core/enums/LoginResult.java", "file_name": "LoginResult.java", "file_ext": "java", "file_size_in_byte": 6...
package cat.aubricoc.xolis.core.enums; public enum LoginResult { OK(null), USER_NOT_FOUND("User Not Found"), PASSWORD_INCORRECT("Credentials Do Not Match"); private final String errorMesage; LoginResult(String errorMesage) { this.errorMesage = errorMesage; } public static LoginR...
76f336be-c815-43cb-982c-7c8e35c3fe53
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-16 08:08:39", "repo_name": "kgarguri/spring", "sub_path": "/springMavenApp/src.main.java/com/itwill/user/client/UserServiceAnnotationClient.java", "file_name": "UserServiceAnnotationClient.java", "file_ext": "...
package com.itwill.user.client; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.itwill.user.User; import com.itwill.user.UserService; public class UserServiceAnnotationClient { public static void main(String[] args) throws E...
2d36a709-4c26-4823-9ebb-79c1b411186e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-08-04T06:26:40", "repo_name": "ZainabLokhandwala/Care--Java-Project", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 631, "line_count": 26, "lang": "en", "doc_type"...
Care is a blood donation web application where, users can get it touch with each other and communicate for their needs. Installation Instructions Database Create a new MySQL database under the name ‘CareZainab’, Import the .sql file into that Execute the following script to reset all the passwords to any password...
a8dfe126-2d82-4d82-bb32-229ac0226975
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-06 03:53:23", "repo_name": "DevHossamHassan/Hossam-popular-movies", "sub_path": "/app/src/main/java/me/branded/hossamhassan/hossam_popular_movies/Models/VideoResult.java", "file_name": "VideoResult.java", "fil...
package me.branded.hossamhassan.hossam_popular_movies.Models; /** * Created by HossamHassan on 4/23/2016. */ public class VideoResult { private String id; private ResultArray[] results; public String getId () { return id; } public void setId (String id) { this.id = id; ...
15caee3c-0923-451b-981d-722847bbf138
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-02 11:39:39", "repo_name": "zidanepirlo/scsrv_feign", "sub_path": "/web/src/main/java/com/yuan/springcloud/scsrv/web/Utils/TestUtils.java", "file_name": "TestUtils.java", "file_ext": "java", "file_size_in_byte...
package com.yuan.springcloud.scsrv.web.Utils; import com.yuan.springcloud.scsrv.web.entity.Person; import java.util.ArrayList; import java.util.List; /** * testUtils * * @author yuanqing * @create 2019-02-17 09:23 **/ public class TestUtils { public static List<Person> persons = new ArrayList<>(); stat...
63d5e56f-03a1-459b-9098-13a83cbb4eb3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-18 11:52:55", "repo_name": "waytodanny/Periodicals", "sub_path": "/src/main/java/com/periodicals/utils/uuid/UUIDHelper.java", "file_name": "UUIDHelper.java", "file_ext": "java", "file_size_in_byte": 621, "line...
package com.periodicals.utils.uuid; import com.fasterxml.uuid.Generators; import java.util.UUID; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Class responsible for uuid objects generation */ public class UUIDHelper { public static UUID generateSequentialUuid() { return Generato...
4e1c1b26-5943-4a2a-af87-cba52337cf93
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-25 15:19:14", "repo_name": "isauser/TreeEncoding", "sub_path": "/List.java", "file_name": "List.java", "file_ext": "java", "file_size_in_byte": 620, "line_count": 32, "lang": "en", "doc_type": "code", "blob_id...
public class List { Node head; int count; public List() { head = null; count = 0; } public Node search(String a) { Node temp=head; while (temp != null) { if (a.compareTo(temp.content.letter) == 0) { break; } temp = temp.next; } return temp; } public void insert(String...
45b8814b-f351-4e21-8e8a-f5f02c938e44
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-22 12:30:40", "repo_name": "sbesirovic/VjezbaSefer", "sub_path": "/FirstApp/DTO/src/main/java/com/vjezba/DTO/AnswerRequestDto.java", "file_name": "AnswerRequestDto.java", "file_ext": "java", "file_size_in_byte...
package com.vjezba.DTO; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.NonNull; import lombok.Setter; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; @Getter @Setter @NoArgsConstructor public class AnswerRequestDto { @NotBlank(message = "Answer ...
849b239c-b638-41f2-8255-9a710ea0474f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-03 15:42:21", "repo_name": "MaisieHu8891/AutoUITest", "sub_path": "/src/main/java/util/AndroidELog.java", "file_name": "AndroidELog.java", "file_ext": "java", "file_size_in_byte": 633, "line_count": 23, "lang"...
package util; public class AndroidELog { private String[] cmd; private Command command; public AndroidELog() { String logfilepath = "./out/ErrLogcat_"; // cmd= new String[]{"cmd","/c","adb", "logcat","AndroidRuntime:E","CrashReport:E","*:S",">>",logfilepath+System.currentTimeMillis()+".log...
045b4b4b-c44b-4d5f-b511-0cbfb3ed6f5a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-26 06:21:57", "repo_name": "robertHee/airpalne-hb-flight", "sub_path": "/airplane-user-provider/src/main/java/com/example/service/impl/HbUserServiceImpl.java", "file_name": "HbUserServiceImpl.java", "file_ext"...
package com.example.service.impl; import com.alibaba.dubbo.config.annotation.Service; import com.example.mapper.HbUserMapper; import com.example.pojo.HbUser; import com.example.service.HbUserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import...
f29fb6bc-6579-4090-b48b-8cb8c84c9088
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-06-09 23:41:39", "repo_name": "ActivatorGmbH/infinicast-sdk-java", "sub_path": "/src/main/java/io/infinicast/IntervalChecker.java", "file_name": "IntervalChecker.java", "file_ext": "java", "file_size_in_byte": 62...
package io.infinicast; import java.util.Timer; import java.util.TimerTask; /** * Created by ocean on 25.04.2017. */ public class IntervalChecker { private Timer timer; public void StopChecker() { Timer t = timer; timer = null; if (t != null) { t.cancel(); } ...
35f9596b-4152-433f-970f-e154916e927f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-23 07:26:59", "repo_name": "ArtOfProgramming/JavaSystemStudy", "sub_path": "/java-basic/src/main/java/com/daiwei/thread/bean/SaleTicketRunnableImpl.java", "file_name": "SaleTicketRunnableImpl.java", "file_ext"...
package com.daiwei.thread.bean; import java.util.Formatter; public class SaleTicketRunnableImpl implements Runnable { private static int ticket = 100; private static Object object = new Object(); @Override public void run() { synchronized (object) { while (ticket > 0) { ...
941e2612-fecf-42f3-a7a2-a84f1bb363c5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-22 11:39:05", "repo_name": "AdityaGattu/Presidio_Intern", "sub_path": "/Hibernate/Hibernate Concepts/src/inherpack/ReadClient.java", "file_name": "ReadClient.java", "file_ext": "java", "file_size_in_byte": 621...
package inherpack; import java.util.List; import org.hibernate.Query; import org.hibernate.Session; import utility.HibernateUtility; public class ReadClient { public static void main(String[] args) { Session session=HibernateUtility.getSession(); Query query= session.createQuery("from ShoeFactory"); Li...
d3999190-1fac-4859-9586-b0d9cc65d699
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-19 18:42:54", "repo_name": "sweta-12/core_java_learning", "sub_path": "/Lab2/src/DuplicateValue.java", "file_name": "DuplicateValue.java", "file_ext": "java", "file_size_in_byte": 621, "line_count": 35, "lang"...
/** * Name: Swetlana Kumari * Description:program to get the list of products with duplicate values. * Date:19/03/2021 */ import java.util.ArrayList; import java.util.Scanner; public class DuplicateValue { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.print("ente...
9011a60e-d157-4e39-afd6-721c9de5db25
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-27 18:41:09", "repo_name": "KoKumagai/design-patterns-in-Java", "sub_path": "/behavioral/observer/subject/Subject.java", "file_name": "Subject.java", "file_ext": "java", "file_size_in_byte": 620, "line_count":...
package behavioral.observer.subject; import behavioral.observer.observer.Observer; import java.util.ArrayList; import java.util.List; public class Subject { private int state; private List<Observer> observers = new ArrayList<Observer>(); public int getState() { return state; } public v...
b729e7c4-3cf1-45b7-abfc-c1602b1c6f44
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-12 08:47:03", "repo_name": "pingfangushi/spring-learning", "sub_path": "/spring-boot/spring-boot-starter/example-spring-boot-autoconfigure/src/main/java/com/pingfangushi/learning/ExampleProperties.java", "file...
package com.pingfangushi.learning; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import static com.pingfangushi.learning.ExampleProperties.DEFAULT_PREFIX; /** * 配置属性项 * * @author SanLi * Created by qinggang.zuo@gmail.com / 2689170096@qq.com on 2020/1/29 17:47 */...
e94772a4-6ac1-4de6-9846-6783a43f88ae
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-03-26T22:22:56", "repo_name": "daniel-rogers/TerrariaServer", "sub_path": "/aws/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 620, "line_count": 15, "lang": "en", "doc_type": "t...
# aws This module contains all of the AWS Lambda code, which is responding to our HTTP Requests and returning responses. ## Modules There is a Gradle module defined for each Lambda function. ### [startLambda](./startLambda/README.md) The `startLambda` module includes the request handler for starting the EC2 instance...
f3d1d218-7ca2-4ccf-b280-c91692a11ee7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-20 06:10:44", "repo_name": "nathanbabcock/vector-combat", "sub_path": "/src/maps/JumpPad.java", "file_name": "JumpPad.java", "file_ext": "java", "file_size_in_byte": 621, "line_count": 36, "lang": "en", "doc_t...
package maps; import geometry.Point2f; import geometry.Polygon; import geometry.Vector2f; import view.Canvas; import java.awt.*; /** * Created by Nathan on 3/17/2016. */ public class JumpPad extends Polygon { public Vector2f velocity; public JumpPad() { super(); } public JumpPad(Point2f[]...
6c3aab86-b91e-4af2-97dd-0b6ed6176739
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-11-03 12:33:31", "repo_name": "lkolli1/JavaBasics", "sub_path": "/inherit/src/inherit/Test.java", "file_name": "Test.java", "file_ext": "java", "file_size_in_byte": 622, "line_count": 30, "lang": "en", "doc_type"...
package inherit; public class Test { public static void main(String[] args) { TouchScreenLaptop touchScreenLapTop=new HPNoteBook(); touchScreenLapTop.scroll(); touchScreenLapTop.click(); TouchScreenLaptop touchScreenLapTop1=new DellNoteBook(); touchScreenLapTop1.scroll(); tou...
361292f9-3584-42e5-aa29-1097c35d9ca0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-13 12:53:24", "repo_name": "Svarog36/LauncherPrgrm", "sub_path": "/Launcher/src/cntnt/FileBrowser.java", "file_name": "FileBrowser.java", "file_ext": "java", "file_size_in_byte": 621, "line_count": 26, "lang":...
package cntnt; import java.io.File; import java.util.Objects; public class FileBrowser { static String displayContent(String stringToMatch) { File curDir = new File(Main.folderWithShortcuts); StringBuilder contents = new StringBuilder(); for (File file : Objects.requireNonNull(curDir.l...
4a67c02e-5bd0-4100-9023-b5afe83aa181
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-19 05:13:39", "repo_name": "gindoc/Mark", "sub_path": "/app/src/main/java/com/cwenhui/mark/bean/DiscussCategory.java", "file_name": "DiscussCategory.java", "file_ext": "java", "file_size_in_byte": 621, "line_c...
package com.cwenhui.mark.bean; /** * Created by cwenhui on 2016.02.23 */ public class DiscussCategory { private int disCatId; private String disCatName; public DiscussCategory(int disCatId, String disCatName) { this.disCatId = disCatId; this.disCatName = disCatName; } public int...
63d2c0f9-6335-4f22-abe9-494b230fb340
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-12-13T18:41:41", "repo_name": "Asmatzaile/google-homepage", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 621, "line_count": 11, "lang": "en", "doc_type": "text", ...
This is a project from TOP in which I'll recreate the google homepage in a basic version, using HTML and CSS. When I finish it I'll have demonstrated that I know: 1. Two ways to move a div around on the page. 2. Stick a div onto the bottom or top of the page. 3. Identify the background color of an existing webpage. 4. ...
9ba1722c-457e-42e3-af6d-2263a580092b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-27 07:14:30", "repo_name": "tcezar/demo-server", "sub_path": "/config/src/main/java/org/example/config/DemoApiConfig.java", "file_name": "DemoApiConfig.java", "file_ext": "java", "file_size_in_byte": 621, "lin...
package org.example.config; import org.example.api.IDemoApi; import org.example.impl.DemoApiImpl; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import java.util.logging.Logger; @Configuration public class DemoApiConfig { private static Logger lo...
af60b2b6-ec08-4c0a-ac68-d36846c2c94a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-24 09:06:58", "repo_name": "Albert-Vera/M-09", "sub_path": "/src/Semafors/Ascensor/Motor.java", "file_name": "Motor.java", "file_ext": "java", "file_size_in_byte": 621, "line_count": 30, "lang": "en", "doc_typ...
package Semafors.Ascensor; public class Motor extends Thread{ // motor li paso la ascensor MonitorMotor monitorMotor = new MonitorMotor(); int planta = 0; Ascensor ascensor; public Motor(Ascensor ascensor) { this.planta = planta; this.ascensor = ascensor; } @Override public...
53165cd0-8551-47e2-a49e-267e3a3c562b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-05 09:25:38", "repo_name": "ZadorozhnyiSemen/travel-agency", "sub_path": "/src/main/java/com/epam/travel/service/UserServiceImpl.java", "file_name": "UserServiceImpl.java", "file_ext": "java", "file_size_in_by...
package com.epam.travel.service; import com.epam.travel.dao.UserDAO; import com.epam.travel.model.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class UserServiceImpl implements UserService { @Autowired ...
699a507b-0722-4132-9e35-bf1edd077a29
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-29 12:19:44", "repo_name": "Fidiyah/Inheritance", "sub_path": "/src/tugas/guru.java", "file_name": "guru.java", "file_ext": "java", "file_size_in_byte": 622, "line_count": 26, "lang": "en", "doc_type": "code",...
/* * 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 tugas; /** * * @author WINDOWS 10 */ public class guru { String namaguru; String matapelajaran; ...
f3466ce2-99a7-4619-86ed-e091f8a155f9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-15 06:41:33", "repo_name": "wymwin/oasys", "sub_path": "/src/test/java/cn/bdqn/OasysApplicationTests.java", "file_name": "OasysApplicationTests.java", "file_ext": "java", "file_size_in_byte": 621, "line_count"...
package cn.bdqn; import cn.bdqn.pojo.Oauser; import cn.bdqn.serviceImpl.UserServiceImpl; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import java.util.List; @RunWith(SpringRunner.class...
f81954cc-63b9-49ea-933d-efb46297dfc4
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-22 06:39:22", "repo_name": "chendengfeng0820/Design-patterns", "sub_path": "/src/com/pattern/factory/abstractp_pattern/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 621, "line_...
package com.pattern.factory.abstractp_pattern; /** * @author: cdf * @create: 2020-03-16 23:51 **/ public class Main { public static void main(String[] args) { HuaWeiFactory huaWeiFactory = new HuaWeiFactory(); Phone phone1 = huaWeiFactory.cratePhone(); Phone phone = new HuaWeiFactory()....
e3cfea2e-5dee-4561-bbbc-8aeb56f46c54
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-09 10:29:06", "repo_name": "xwjmyx/JavaLearn", "sub_path": "/src/com/Java/cy/MyListTest.java", "file_name": "MyListTest.java", "file_ext": "java", "file_size_in_byte": 665, "line_count": 29, "lang": "en", "doc...
package com.Java.cy; /** * Author:CY * Description:<描述> */ public class MyListTest { public static void main(String[] args) { MyList list = new MyList(); //添加 for (int i = 0; i < 5; i++) { list.add("abc" + i); } //删除 Object obj1 = list.remove(2); ...
519cd63b-14a4-46c0-a254-45b353ee54eb
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-12 19:54:43", "repo_name": "Lainthrill/Prototype-random1", "sub_path": "/src/main/java/com/Lainthrill/random1/logic/MonsterTeams.java", "file_name": "MonsterTeams.java", "file_ext": "java", "file_size_in_byte"...
package com.Lainthrill.random1.logic; import com.Lainthrill.random1.logic.Monsters.Monster; import java.util.ArrayList; import java.util.List; public class MonsterTeams { private List<Monster> playersList = new ArrayList<>(); private List<Monster> aiList = new ArrayList<>(); public List<Monster> getPla...
57a7aa85-3de7-4f0d-80d3-3138221c1cce
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-12T03:20:48", "repo_name": "HongquanYu/Algorithms", "sub_path": "/Algorithms/OperatingSystem/ProducerConsumer/Producer.java", "file_name": "Producer.java", "file_ext": "java", "file_size_in_byte": 620, "line_c...
package ProducerConsumer; /** @author: Hongquan Yu * @date: Feb 7, 2018 * * @From: University of Maryland, College Park * @Email: hyu12346@terpmail.umd.edu */ public class Producer extends Thread { private CubbyHole cubbyhole; private int number; public Producer(CubbyHole c, int number) { cubbyhole = c;...
bbf34fcc-2700-47ef-91f6-2f50ae86835b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-13 16:38:43", "repo_name": "diqmwl/MeanStackProject", "sub_path": "/app/src/main/java/com/project/taeil/mantomen/PointBuyInsertData.java", "file_name": "PointBuyInsertData.java", "file_ext": "java", "file_size...
package com.project.taeil.mantomen; import android.app.Activity; import java.net.MalformedURLException; import java.net.URL; public class PointBuyInsertData extends PointBuyPostRequest { //레지스터 public PointBuyInsertData(Activity activity) { super(activity); } @Override protected void onPreE...
7acfa6c3-8e7d-4e8f-aff2-4c1315f487a3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-07 09:09:45", "repo_name": "yangwx1402/young-examples", "sub_path": "/design-pattern/src/main/java/com/young/java/examples/pattern/structure/adapter/objectadapter/ObjectAdapter.java", "file_name": "ObjectAdapt...
package com.young.java.examples.pattern.structure.adapter.objectadapter; import com.young.java.examples.pattern.structure.adapter.classadapter.Source; import com.young.java.examples.pattern.structure.adapter.classadapter.Target; /** * Created by yangyong3 on 2017/6/29. * 对象的适配器模式,将对象适配到一个接口上去。 */ public class Obje...
f1e3674a-17e9-4412-a711-3d333b2c6a2c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-14 02:52:20", "repo_name": "TeamFlame/CS3733_AWS", "sub_path": "/src/main/java/edu/wpi/cs/cs3733/flame/http/CreatePlaylistResponse.java", "file_name": "CreatePlaylistResponse.java", "file_ext": "java", "file_s...
package edu.wpi.cs.cs3733.flame.http; public class CreatePlaylistResponse { /** * Response is the name of the playlist that was being created. * * if an error of some sort, then the response describes that error. * */ public final int statusCode; public String error; public CreatePlaylistResponse (int...