id
stringlengths
36
36
meta
stringlengths
429
697
code_content
large_stringlengths
612
1.26k
ff30b868-e19e-4f31-bc12-82d1c7efddf3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-21 16:58:00", "repo_name": "kanouakira/blog", "sub_path": "/back-end/src/test/java/cn/kanouakira/TagTest.java", "file_name": "TagTest.java", "file_ext": "java", "file_size_in_byte": 712, "line_count": 27, "lan...
package cn.kanouakira; import cn.kanouakira.entity.Comment; import cn.kanouakira.service.CommentService; import cn.kanouakira.service.TagService; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBoo...
9c07e286-3787-47a6-8dd6-d2488247a527
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-18 00:35:25", "repo_name": "tiannan9262/Hello", "sub_path": "/src/main/java/com/example/test/RunnableTest.java", "file_name": "RunnableTest.java", "file_ext": "java", "file_size_in_byte": 696, "line_count": 35...
package com.example.test; import java.awt.*; public class RunnableTest implements Runnable{ @Override public void run() { while (times>0) { times--; try{ Thread.sleep(100); } catch ( Exception e) { e.p...
8b67fb52-0e85-4763-9e82-0e065b7f9f8a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-03-19T06:25:54", "repo_name": "phased90/duolingo", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 696, "line_count": 38, "lang": "en", "doc_type": "text", "blob_id"...
# Duolingo for Node An unofficial node client to the Duolingo API. ## Summary This library is a promise-based JS wrapper for interacting with the Duolingo API: ```javascript const Duolingo = require('duolingo'); let duo = new Duolingo({ username: <username>, password: <password> }) duo.login() .then(() => { ...
c54bc365-9682-46ba-8184-829b6a5f4dd0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-18 06:47:53", "repo_name": "maryna-k/Cinema", "sub_path": "/app/src/main/java/com/example/android/moviesapp/models/YouTubeTrailer.java", "file_name": "YouTubeTrailer.java", "file_ext": "java", "file_size_in_by...
package com.example.android.moviesapp.models; import java.io.Serializable; public class YouTubeTrailer implements Serializable{ private String type; private String key; public YouTubeTrailer(){} public YouTubeTrailer(String key) { this.key = key; } public YouTubeTrailer(YouTubeTra...
891b3fd6-f797-4880-bd20-82e8a284bf29
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-13 01:04:44", "repo_name": "zhenghuan12/nhis-web", "sub_path": "/src/main/java/com/zebone/nhis/pro/zsba/compay/daysettle/pub/vo/ZsBlCcDetails.java", "file_name": "ZsBlCcDetails.java", "file_ext": "java", "file...
package com.zebone.nhis.pro.zsba.compay.daysettle.pub.vo; import java.util.List; public class ZsBlCcDetails { private List<ZsBlCcDepoDetail> depo; private List<ZsBlCcStDetail> depoSt; private List<ZsBlCcStGetDetail> depoStGet; public List<ZsBlCcDepoDetail> getDepo() { return depo; } public void setDep...
5823ad2c-f710-475a-8720-5b42ddffffe0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-20 13:03:14", "repo_name": "iamitpatil1993/spring-boot-rest", "sub_path": "/src/main/java/com/example/rest/controller/LoggerController.java", "file_name": "LoggerController.java", "file_ext": "java", "file_siz...
package com.example.rest.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class LoggerController { private static final Logger LOGGER = LoggerFactory.g...
4e691766-2a14-4b8f-84b7-693b9be9bd80
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-17 09:10:58", "repo_name": "homer65/Hypothek", "sub_path": "/Hypothek/src/pack/ErgebnisMenu.java", "file_name": "ErgebnisMenu.java", "file_ext": "java", "file_size_in_byte": 697, "line_count": 31, "lang": "en"...
package pack; import java.awt.Dimension; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; public class ErgebnisMenu extends Menu { private static final long serialVersionUID = 1L; private JTextArea ta = new JTextArea(); private JScrollPane sp = null; private JPanel ...
34870633-616d-4b09-8632-5dc566d831e4
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-27 03:37:20", "repo_name": "Gaidax/DeansOffice", "sub_path": "/EJBDeansOffice/src/java/ua/karazin/math/deansoffice/db/dao/ExamStateStudentDAO.java", "file_name": "ExamStateStudentDAO.java", "file_ext": "java",...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ua.karazin.math.deansoffice.db.dao; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import ua.karazin.math.deansoffice.db.model.ExamStateStudent; ...
797584b0-1751-4077-abf4-82e1f105247e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-02-09 17:35:36", "repo_name": "MatteoF94/Software-Engineering-II-Project", "sub_path": "/CodeFragments/src/Position.java", "file_name": "Position.java", "file_ext": "java", "file_size_in_byte": 696, "line_count":...
/** * Created by Matteo on 06/12/16. */ public class Position implements FixedPosition{ private int x,y,z; public Position() { } public Position(int x, int y, int z) { this.x = x; this.y = y; this.z = z; } public void changePosition (int x, int y, int z) { t...
219c39dd-fafb-4e5c-bf34-2935c882da0b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-24 05:06:58", "repo_name": "AschPlatform/asch-android", "sub_path": "/app/src/main/java/asch/io/wallet/activity/SetWalletPwdActivity.java", "file_name": "SetWalletPwdActivity.java", "file_ext": "java", "file_s...
package asch.io.wallet.activity; import android.os.Bundle; import asch.io.base.util.ActivityUtils; import asch.io.wallet.R; import asch.io.wallet.view.fragment.SetWalletPwdFragment; /** * Created by PanD on 2018/8/20. */ public class SetWalletPwdActivity extends TitleToolbarActivity { @Override protected...
56b31054-62b1-44d7-a922-d200acb849f5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-20 03:18:24", "repo_name": "Goldfishys/JEA6-Kwetter", "sub_path": "/src/main/java/Services/ProfileServices.java", "file_name": "ProfileServices.java", "file_ext": "java", "file_size_in_byte": 696, "line_count"...
package Services; import DAL.Interfaces.IProfile; import models.Profile; import models.dtomodels.ProfileDTO; import javax.enterprise.context.RequestScoped; import javax.inject.Inject; @RequestScoped public class ProfileServices { @Inject private IProfile profileRepo; //region constructors public Pr...
183d5eaf-f78a-46cb-8495-221e7d23a3ef
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-30T16:10:57", "repo_name": "StefanMedeleanu/NullTerminator", "sub_path": "/Null Terminator/src/models/NullAssignmentModel.java", "file_name": "NullAssignmentModel.java", "file_ext": "java", "file_size_in_byte"...
package models; import org.eclipse.jdt.core.ICompilationUnit; public abstract class NullAssignmentModel { protected ICompilationUnit cUnit; private int line; public NullAssignmentModel(int line) { this.line = line; } public NullAssignmentModel(int line, ICompilationUnit cUnit) { this...
b761b772-a06d-4bb9-bc7b-db2b730747d0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-13 11:32:46", "repo_name": "liyan1021/SpringBootDemo", "sub_path": "/src/main/java/com/sfbest/platform/controller/MerchantController.java", "file_name": "MerchantController.java", "file_ext": "java", "file_siz...
package com.sfbest.platform.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.sfbest.platform.domain.MerchantInfo; import com.sfbest.platform.service...
f4b9f71f-fc8e-4465-acdb-d7d150af8a7a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-05-28T22:10:28", "repo_name": "jupyterlab/benchmarks", "sub_path": "/docs/source/memory-leak/ci.md", "file_name": "ci.md", "file_ext": "md", "file_size_in_byte": 696, "line_count": 17, "lang": "en", "doc_type...
# Memory leak on CI You need to start a manual benchmark workflow in the [repository actions](https://github.com/jupyterlab/benchmarks/actions/workflows/memory-leak.yml). It will execute the following scenarios for memory leaks: - notebook: Create a new notebook and delete it. - file-editor: Create a new text file. -...
9790dfaf-7562-42f2-862e-5e1dfbb66666
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-09 09:29:25", "repo_name": "wjam/spring-cloud-netflix-1590", "sub_path": "/src/main/java/com/example/Foo.java", "file_name": "Foo.java", "file_ext": "java", "file_size_in_byte": 696, "line_count": 35, "lang": ...
package com.example; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; public final class Foo { @NotNull @Size(min = 1) private final String item; private ...
06cad426-4ea9-4bca-b5eb-53c4f479be4a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-12 02:38:54", "repo_name": "InverseOfControl/car", "sub_path": "/src/main/java/com/ezendai/credit2/system/service/impl/SysGroupRoleServiceImpl.java", "file_name": "SysGroupRoleServiceImpl.java", "file_ext": "j...
package com.ezendai.credit2.system.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ezendai.credit2.system.dao.SysGroupRoleDao; import com.ezendai.credit2.system.model.SysGroupRole; /** * * 项目名称:credit2-main * 类名称:SysGro...
557df75b-0f1f-4fd1-b92f-78773b61b398
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-03 15:11:00", "repo_name": "emineinan/AndroidProgramming", "sub_path": "/SendingText/app/src/main/java/com/example/sendingtext/Message.java", "file_name": "Message.java", "file_ext": "java", "file_size_in_byte...
package com.example.sendingtext; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.widget.TextView; public class Message extends AppCompatActivity { public TextView tView; @Override protected void onCreate(Bundle savedInstanceState) ...
b9819410-22e6-4d2b-95d2-4d38a4ae5a5a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-03 16:46:28", "repo_name": "eroz80/TestRecordingCalls", "sub_path": "/app/src/main/java/com/myprojects/ernesto/testrecordingcalls/DeviceAdminDemo.java", "file_name": "DeviceAdminDemo.java", "file_ext": "java",...
package com.myprojects.ernesto.testrecordingcalls; import android.app.admin.DeviceAdminReceiver; import android.content.Context; import android.content.Intent; /** * Created by ernesto on 02/01/18. */ public class DeviceAdminDemo extends DeviceAdminReceiver { @Override public void onReceive(Context context...
d4e1cf2f-f556-4dfb-949e-30e0937fc5b2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-07-26 10:19:40", "repo_name": "lopushen/spring-advanced", "sub_path": "/src/main/java/com/loplop/springadvanced/tut1_18/beans/Jungle.java", "file_name": "Jungle.java", "file_ext": "java", "file_size_in_byte": 696...
package com.loplop.springadvanced.tut1_18.beans; import java.util.List; /** * Created by i.lopushen on 24/06/2016. */ public class Jungle { private Animal largest; private List<Animal> animals; public Animal getLargest() { return largest; } public void setLargest(Animal largest) { ...
74df07a7-911e-48ac-982a-3af18950f7c7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-11-02T23:22:17", "repo_name": "Colseph/malPicker", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 696, "line_count": 29, "lang": "en", "doc_type": "text", "blob_id"...
# malPicker Randomly picks an anime from the MAL of given username Couldnt decide what to watch next, so i made this #### features: * options to pick from lists: - all anime - currently watching - completed - on hold - dropped - plan to watch * gives information about anime: - type - \# of e...
8eba9da4-adb3-4559-a955-ee2b0b061f2d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-13 23:48:42", "repo_name": "yhq1119/PlannerHQ2", "sub_path": "/app/src/main/java/HQ/Planner/utilities/MToast.java", "file_name": "MToast.java", "file_ext": "java", "file_size_in_byte": 696, "line_count": 34, "...
package HQ.Planner.utilities; import android.content.Context; import android.widget.Toast; public class MToast { static Toast currentToast; Context context; public static void T(Context context, String msg) { Toast.makeText( context, msg,...
efd31510-d633-4166-8636-9e5b5803fa90
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-15 10:49:38", "repo_name": "svenMolhuijsen/DEA-assigments", "sub_path": "/Week 3/adapterpattern/src/main/java/nl/han/ica/oose/EmployeeClient.java", "file_name": "EmployeeClient.java", "file_ext": "java", "file...
package nl.han.ica.oose; import java.util.ArrayList; import java.util.List; public class EmployeeClient { public List<Employee> getEmployeeList(){ List<Employee> employees = new ArrayList<>(); Employee employeeFromDb = new EmployeeDB("1234", "John", "Wick", "john@wick.com"); employees.a...
eb13d350-0e7b-4695-831d-4e3a1f155105
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-04 13:37:04", "repo_name": "MyNameIsLewis/DrugLordGroupProject", "sub_path": "/src/Dealer.java", "file_name": "Dealer.java", "file_ext": "java", "file_size_in_byte": 695, "line_count": 23, "lang": "en", "doc_t...
/** * A drug dealer with various stats * They can either work for you, or a rival gang */ public class Dealer { /** * The dealers intelligence. Used when determining whether or not they will accept a deal */ int intelligence = (int) (50 + Math.random() * 50); /** * The dealers strength. Used when d...
69a4cfa6-fac3-4989-9f95-940806b001d7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-15 10:21:51", "repo_name": "Snubb/AdventOfCode", "sub_path": "/src/test.java", "file_name": "test.java", "file_ext": "java", "file_size_in_byte": 695, "line_count": 31, "lang": "en", "doc_type": "code", "blob_...
import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; public class test { public static void main(String[] args) { Scanner in = null; try { in = new Scanner(new File("input4")); } catch (FileNotFoundException e) { e.printStackTrace(); ...
39739d3f-c183-4fea-ad64-4bd4c27ac77c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-08-02 08:30:08", "repo_name": "LeTu106/iHistory", "sub_path": "/app/src/main/java/com/example/hackademics/ihistory/helper/ImageHelper.java", "file_name": "ImageHelper.java", "file_ext": "java", "file_size_in_byte...
package com.example.hackademics.ihistory.helper; import java.io.IOException; import java.io.InputStream; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class ImageHelper extends AssetsHelper { public ImageHelper(Context context) { super(context); } ...
09045014-ef7e-4328-b07d-4740171e8d8c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-07-16T23:16:01", "repo_name": "james-atkins/powercuts", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 700, "line_count": 14, "lang": "en", "doc_type": "text", "blo...
# UK Power Cuts ⚡🔌 Historical UK power cut data. Information on power cuts is scraped from the following distribution network operators on an regular basis: * [UK Power Networks](https://www.ukpowernetworks.co.uk/power-cut/map) * [Scottish & Southern Electricity Networks](https://www.ssen.co.uk/Powertrack/) * [West...
f83a4ab9-1101-4786-9caa-f2c00370cb53
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-23 19:39:19", "repo_name": "mitidiero/vanhackgrow", "sub_path": "/api/src/main/java/com/vanhack/adapter/http/user/UpdateUserRequest.java", "file_name": "UpdateUserRequest.java", "file_ext": "java", "file_size_...
package com.vanhack.adapter.http.user; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import javax.validation.constraints.NotNull; import java.math.BigDecimal; public class UpdateUserRequest { @NotNull(message = "User name is required.") private St...
3d135eb6-23b4-4120-b047-eb7a232a672d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-03-24 07:06:10", "repo_name": "lxcsige/test", "sub_path": "/src/java/design/pattern/visitor/strategy/Client.java", "file_name": "Client.java", "file_ext": "java", "file_size_in_byte": 785, "line_count": 27, "lang...
package design.pattern.visitor.strategy; import java.util.ArrayList; import java.util.List; /** * 策略(不同的文件内容抽取策略)+简单工厂模式(创建不同的策略对象) * 仅适用于业务功能不多的场景 * * @author liuxucheng * @since 2023/1/19 */ public class Client { public static void main(String[] args) { List<ResourceFile> resourceFiles = new Arra...
027df7df-3a5c-41b6-aa96-5cd8da56a74c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-01 06:44:10", "repo_name": "KarmaTest/test", "sub_path": "/src/main/java/com/capgemini/service/impl/CityServiceImpl.java", "file_name": "CityServiceImpl.java", "file_ext": "java", "file_size_in_byte": 695, "li...
package com.capgemini.service.impl; import java.util.List; import com.capgemini.dao.CityDAO; import com.capgemini.pojo.City; import com.capgemini.service.CityService; /** * * @author jundonch * @since 2016-3-9 * */ public class CityServiceImpl implements CityService { private CityDAO cityDAO; public CityDAO...
ef74feef-508a-404a-80fb-a06d16da0cd1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-30 13:22:48", "repo_name": "boldijar/today-menu-android", "sub_path": "/app/src/main/java/com/todaymenu/android/fragments/BaseRestaurantsFragment.java", "file_name": "BaseRestaurantsFragment.java", "file_ext":...
package com.todaymenu.android.fragments; import android.content.Context; import com.todaymenu.android.data.models.Restaurant; import com.todaymenu.android.mvp.view.HomeView; import java.util.List; /** * @author Paul * @since 2017.10.14 */ public abstract class BaseRestaurantsFragment extends BaseFragment { ...
45b1be48-e124-414c-aeb5-1ddf66a49f98
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-20 21:17:00", "repo_name": "225038/kurs_pip", "sub_path": "/src/main/java/domain/Status.java", "file_name": "Status.java", "file_ext": "java", "file_size_in_byte": 695, "line_count": 30, "lang": "en", "doc_typ...
package domain; import lombok.*; import javax.persistence.*; import java.util.Set; @Entity @Table(name = "STATUS", schema = "s225038", catalog = "studs") //@ToString(exclude={"id","statusEntities"})//?? //@EqualsAndHashCode(exclude={"weaponEntities"})//?? //@NoArgsConstructor @Getter @Setter public class Status { ...
ebde0fb2-ff9b-4247-9da8-8d8724853ee8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-29 18:15:13", "repo_name": "Tuananhkt111/Workplace", "sub_path": "/Java Learning/Java Web/SE1312_JSTL/src/java/dungth/db/MyConnection.java", "file_name": "MyConnection.java", "file_ext": "java", "file_size_in_...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package dungth.db; import java.io.Serializable; import java.sql.Connection; import java.sql.DriverManager; /** * * @author Hoang Du...
411a1117-993b-407a-86a3-769d018cb8d8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-30 12:31:07", "repo_name": "gram7gram/DivineDefense", "sub_path": "/core/src/ua/gram/model/actor/misc/UpgradeButton.java", "file_name": "UpgradeButton.java", "file_ext": "java", "file_size_in_byte": 695, "line...
package ua.gram.model.actor.misc; import com.badlogic.gdx.scenes.scene2d.ui.Button; import com.badlogic.gdx.scenes.scene2d.ui.Skin; import com.badlogic.gdx.utils.Align; /** * @author Gram <gram7gram@gmail.com> */ public class UpgradeButton extends Button { private final CustomLabel label; public UpgradeBu...
365d1027-ca44-433a-9a2c-4d65b9789dbc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-15 14:41:12", "repo_name": "yannyren/week_19_day_3_homework", "sub_path": "/app/src/test/java/codeclan/com/rockpaperscissors/PlayerTest.java", "file_name": "PlayerTest.java", "file_ext": "java", "file_size_in_...
package codeclan.com.rockpaperscissors; import org.junit.Before; import org.junit.Test; import codeclan.com.rockpaperscissors.models.Player; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertNotNull; /** * Created by yanren on 15/11/2017. */ public class PlayerTest { ...
3b17de66-d53b-4768-8b6c-02e3588dc43a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-29 13:27:50", "repo_name": "wangzilinn/190730_design_pattern_learn", "sub_path": "/src/main/java/MVC/MVCPatternDemo.java", "file_name": "MVCPatternDemo.java", "file_ext": "java", "file_size_in_byte": 695, "lin...
package MVC; public class MVCPatternDemo { public static void main(String[] args) { //get data from db Student model = retrieveStudentFromDataBase(); //create a view, sent student detail to console StudentView view = new StudentView(); StudentController controller = new Stu...
acb003e1-1f72-4994-a683-6b14667f887e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-31 11:24:14", "repo_name": "Gbbay/hw1", "sub_path": "/src/iohw1/hw1.java", "file_name": "hw1.java", "file_ext": "java", "file_size_in_byte": 706, "line_count": 33, "lang": "en", "doc_type": "code", "blob_id": ...
package iohw1; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class hw1 { public static void main(String[] args) throws IOException { Fi...
3dc7456b-8b95-44ae-b19d-9b3ca15d7f3a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-30 08:33:02", "repo_name": "206069780/bankapi", "sub_path": "/src/main/java/com/bankapi/bankapi/utils/StringUtils.java", "file_name": "StringUtils.java", "file_ext": "java", "file_size_in_byte": 711, "line_cou...
package com.bankapi.bankapi.utils; import org.springframework.stereotype.Component; import java.util.Random; /** * @author Mr Fu * @version 1.0 * @PackageName com.bankapi.bankapi.utils * @ProjectName bankapi * @ClassName StringUtils * @Email fudaopin@gamil.com * @date 2021/4/21 下午1:06 * @Description 字符串工具类 ...
5b19a6f8-91c1-49aa-9389-9ee5bd0f9d05
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-03-24 05:56:27", "repo_name": "omklymenko/klymenko-bionic", "sub_path": "/src/test/java/pages/SearchPage.java", "file_name": "SearchPage.java", "file_ext": "java", "file_size_in_byte": 700, "line_count": 27, "lan...
package pages; import org.openqa.selenium.By; import webdriver.Browser; /** * Created by Елена on 14.03.2015. */ public class SearchPage extends AbstractPage { private static final By hrefText = By.cssSelector("a[href*='bmw']"); private static final By searchField = By.id("headerSearch"); private static...
238a43ac-1251-4dd7-b3db-c6fd6f34bf5d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-08-26 12:11:39", "repo_name": "roapham/group3", "sub_path": "/Sem4-WCPS/Sem4-WCPS-ejb/src/java/sessionBean/TypeOfTransitionFacade.java", "file_name": "TypeOfTransitionFacade.java", "file_ext": "java", "file_size_...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package sessionBean; import entities.TypeOfTransition; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; /** * * @author chautrieu */ @Stateless public ...
595da2a3-c43d-463b-a4f8-de32dcace740
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-29 18:36:02", "repo_name": "Ussick/MyFirstMavenProject", "sub_path": "/src/main/java/org/example/reflection/threads/join/JoinApp.java", "file_name": "JoinApp.java", "file_ext": "java", "file_size_in_byte": 695...
package org.example.reflection.threads.join; public class JoinApp { public static void main(String[] args) { Runnable worker= () -> { try { Thread.sleep(2000); System.out.println("Hello from worker"); } catch (InterruptedException e) { ...
d9f09d75-7e9d-4317-b68b-d325c2621b9f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-12-12 08:07:04", "repo_name": "magfr408/bluetooth-original", "sub_path": "/src/main/java/datum/ObservationDatum.java", "file_name": "ObservationDatum.java", "file_ext": "java", "file_size_in_byte": 694, "line_cou...
package datum; import core.Time; /** * This class represents an observation. * @author Boris Prodhomme * @author Magnus Fransson */ public class ObservationDatum { private int readerId; private String userId; private Time time; public ObservationDatum(int readerId, String userI...
fdacc046-5717-49da-beea-3ac68f6a625f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-19 21:33:11", "repo_name": "CatchUAndroid/CatchUAWS", "sub_path": "/app/src/main/java/com/uren/catchu/MainPackage/MainFragments/Feed/JavaClasses/SingletonSinglePost.java", "file_name": "SingletonSinglePost.jav...
package com.uren.catchu.MainPackage.MainFragments.Feed.JavaClasses; import catchu.model.Post; public class SingletonSinglePost { private static SingletonSinglePost ourInstance ; private static Post post; public static SingletonSinglePost getInstance() { if (ourInstance == null) { our...
fc2d50dc-026e-4ed8-9016-cb008059b536
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-12 03:51:22", "repo_name": "JustACodeGirl/FCST_Stystem", "sub_path": "/FCST_SERVER/src/main/java/com/ovt/sale/fcst/api/response/OvForcastResponse.java", "file_name": "OvForcastResponse.java", "file_ext": "java...
/** * @Author lyman.meng * @Version 1.0 * @See * @Since [LearningHelp]/[API] 1.0 */ package com.ovt.sale.fcst.api.response; import com.ovt.sale.fcst.common.model.JsonDocument; public class OvForcastResponse extends JsonDocument { public static final JsonDocument SUCCESS = new OvForcastResponse(); priv...
efbea4b5-4913-45d7-b33e-491bc6020d4f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-15 15:33:41", "repo_name": "Cfilipovic/Bukkit", "sub_path": "/HungerGames/src/com/cfil360/hungergames/managers/MessageManager.java", "file_name": "MessageManager.java", "file_ext": "java", "file_size_in_byte":...
package com.cfil360.hungergames.managers; import org.bukkit.entity.Player; import java.util.ArrayList; /** * Created by Connor on 10/4/2015. */ public class MessageManager { private static MessageManager instance = new MessageManager(); private String PREFIX = "§b[§aHungerGames§b] §f"; public static M...
15629709-f539-43be-a079-9c3cdedc072d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-09 14:37:57", "repo_name": "stefanofiorenza/SpringBatch", "sub_path": "/Demo/Test/SpringQuartz/201-QuartzSpringWeb/src/corso/spring/batch/demo/spring/quartz/web/listeners/QuartzBootListener.java", "file_name":...
package corso.spring.batch.demo.spring.quartz.web.listeners; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class QuartzBootListener impleme...
097ebee3-b796-497f-a69c-232932e01197
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-28 16:59:32", "repo_name": "slmanju/design-patterns-with-java", "sub_path": "/iterator-pattern/src/main/java/com/slmanju/iterator/IdBatchFetcher.java", "file_name": "IdBatchFetcher.java", "file_ext": "java", "...
package com.slmanju.iterator; import java.util.ArrayList; import java.util.List; public class IdBatchFetcher<T, R> implements BatchFetcher<T, R> { private BatchId<T> batchId; public IdBatchFetcher(List<T> ids) { this.batchId = new BatchId<>(ids); } @Override public List<R> fetchAll(Batc...
6cf88507-f0a2-4a2a-8f89-8c1153c7390e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-18 06:44:07", "repo_name": "raoyang/common", "sub_path": "/src/main/java/com/game/visohelper/domain/VisoInputDomain.java", "file_name": "VisoInputDomain.java", "file_ext": "java", "file_size_in_byte": 695, "li...
package com.game.visohelper.domain; import java.nio.charset.Charset; public class VisoInputDomain { private int accountId; private byte[] msg; public static VisoInputDomain valueOf(VisoInputVO vo){ VisoInputDomain domain = new VisoInputDomain(); domain.accountId = vo.getAccountId(); ...
ce650d14-51c2-4960-b328-767054b00317
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-12 05:58:02", "repo_name": "no5013/ProjectConcert", "sub_path": "/src/Bill.java", "file_name": "Bill.java", "file_ext": "java", "file_size_in_byte": 696, "line_count": 35, "lang": "en", "doc_type": "code", "bl...
public class Bill { private Customer payer; private Ticket ticket; private int billID; private static int numberOfBills=0; public Bill(Customer payer,Ticket ticket) { this.payer = payer; this.ticket = ticket; numberOfBills++; this.billID = this.numberOfBills; } public Customer getPayer() { return p...
80c478af-d8d6-4988-96a2-5f4c331de1e5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-17 00:36:27", "repo_name": "Shacherly/JdbcPool", "sub_path": "/src/test/serial/TestSerialize.java", "file_name": "TestSerialize.java", "file_ext": "java", "file_size_in_byte": 695, "line_count": 28, "lang": "e...
package test.serial; import com.duing.domain.Admin; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import java.util.Date; public class TestSerialize { public static void main(String[] args) { Admin admin = new Admin(1, "account", 123456, new Date()); ...
e25081fc-1e37-40dd-911a-55cc8afaed3d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-03 19:54:13", "repo_name": "Helder77270/ecole", "sub_path": "/src/main/java/com/example/demo/Document.java", "file_name": "Document.java", "file_ext": "java", "file_size_in_byte": 696, "line_count": 34, "lang"...
package com.example.demo; public class Document { private Integer id; private String content; public Document(Integer id, String content) { this.id = id; this.content = content; } public Document(String content) { this.content = content; } public Docume...
598e25cc-5141-4741-941e-2c3fd8655c39
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-19 08:05:14", "repo_name": "dipongkor/Adaptive-Change-Example", "sub_path": "/src/adaptive/change/example/DiamondArrayList.java", "file_name": "DiamondArrayList.java", "file_ext": "java", "file_size_in_byte": ...
package adaptive.change.example; import java.util.ArrayList; public class DiamondArrayList { private ArrayList<String> people; private ArrayList<Integer> ages; public DiamondArrayList() { people = new ArrayList<String>(); ages = new ArrayList<Integer>(); } public ArrayList<String> getSortedPeople() { // ...
ccf41068-0808-4334-8d80-03a3a9cbdbb8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-13 11:29:58", "repo_name": "adamkenyeres/flatM8", "sub_path": "/src/main/java/model/request/DeleteFlatRequest.java", "file_name": "DeleteFlatRequest.java", "file_ext": "java", "file_size_in_byte": 695, "line_c...
package model.request; import lombok.Data; import lombok.Getter; import lombok.Setter; import model.flat.Flat; import java.util.Objects; @Getter @Setter public class DeleteFlatRequest extends BaseRequest { private Flat flatToDelete; @Override public boolean equals(Object o) { if (this == o) retu...
496f078c-f0d4-499a-8323-6fed0624daea
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-07 02:59:22", "repo_name": "DanielW48/CSA-Projects", "sub_path": "/bullet.java", "file_name": "bullet.java", "file_ext": "java", "file_size_in_byte": 695, "line_count": 27, "lang": "en", "doc_type": "code", "b...
import java.awt.Graphics; import java.awt.Image; import java.awt.image.ImageObserver; public class bullet { Image image; rect hitbox; int vY; bullet(Image imageIn, int xIn, int yIn, int vYIn){ image = imageIn; hitbox = new rect(xIn, yIn, 30, 30); vY = vYIn; } public boolean update(){ hitbox.y += vY; if...
8e0a602e-f888-40c1-8adc-e2980de70e8a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-03-25 21:16:23", "repo_name": "polluks/pagavcs", "sub_path": "/branches/1.6/java/src/hu/pagavcs/client/bl/BandwidthMeter.java", "file_name": "BandwidthMeter.java", "file_ext": "java", "file_size_in_byte": 695, "l...
package hu.pagavcs.client.bl; import java.util.logging.Level; import org.tmatesoft.svn.util.SVNDebugLogAdapter; import org.tmatesoft.svn.util.SVNLogType; public class BandwidthMeter extends SVNDebugLogAdapter { private int transmittedSinceLastRead; public BandwidthMeter() {} public void log(SVNLogType logType,...
cd89d6c0-fd3b-4c33-b9f3-6bd9bc42e6d1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-10 07:43:17", "repo_name": "shuqian1/twu-biblioteca-qinshuqian", "sub_path": "/src/com/twu/biblioteca/BibliotecaApp.java", "file_name": "BibliotecaApp.java", "file_ext": "java", "file_size_in_byte": 695, "line...
package com.twu.biblioteca; import com.twu.biblioteca.service.BibliotecaService; import com.twu.biblioteca.service.BookService; public class BibliotecaApp { public static void main(String[] args) { BibliotecaService bibliotecaService = new BibliotecaService(); BookService bookService = new BookSe...
80757464-e9a1-4f59-94a4-8ee4e894d289
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-03-25T22:53:39", "repo_name": "KarthikRaghav/Agency-Finder---Restructuring-Data-Model", "sub_path": "/Goal and Risks.md", "file_name": "Goal and Risks.md", "file_ext": "md", "file_size_in_byte": 697, "line_co...
# Goal The goal is to restructure the data model so that when a program is in multiple locations, two location records need to be created and added to the program. This should be done to avoid the creation of redundant program records by the CAS team. # Risks 1. Referral details of a specific program are currently s...
a2383fb9-89b7-4366-a6f2-6452debef471
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-14 18:18:06", "repo_name": "RyanKennell/Java-Android-App-Magnet-Madness", "sub_path": "/core/src/animations/PolarizingAnimation.java", "file_name": "PolarizingAnimation.java", "file_ext": "java", "file_size_in...
package animations; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Sprite; public class PolarizingAnimation { private Sprite frame1 = new Sprite(new Texture( Gdx.files.internal("polarizing_frame_1.png"))); private Sprite frame2 = new Sprite(new Textur...
6641d23d-b17f-44a6-87a4-f29e09fdaa9f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-25 14:17:56", "repo_name": "nimeifu/horsebarn", "sub_path": "/src/HorseRunner.java", "file_name": "HorseRunner.java", "file_ext": "java", "file_size_in_byte": 695, "line_count": 22, "lang": "en", "doc_type": "...
public class HorseRunner { public static void main(String[] args) { Horse horse1 = new Unicorn("Secretaritat",12000); Horse horse2=new Unicorn("Dustry Trail",22000); Horse horse3=new Unicorn("Silver",12000); Horse[] horses=new Horse[6]; horses[1]=horse1; horses[2]=h...
4467b928-6280-4fb3-8038-f07819b30af2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-02-02T23:09:18", "repo_name": "3dformortals/data", "sub_path": "/readme.md", "file_name": "readme.md", "file_ext": "md", "file_size_in_byte": 695, "line_count": 21, "lang": "en", "doc_type": "text", "blob_id"...
repository data available under an [OSBORDUC FPL](https://healingdrawing.github.io/info/license/fpl.html) license. [Privacy Policy](https://healingdrawing.github.io/info/pp/fppp.html) --- 201805011949 - was detected wrong result for python3 linux `__file__` detection inside python / imagebatch / imagevideo folder ...
abebc3fa-a366-48ad-9739-e4ccdf073eac
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-29 15:11:12", "repo_name": "renanlopesluis/flatfile2", "sub_path": "/src/test/java/com/renanll/flatfile/converter/SalesmanDataRowConverterTest.java", "file_name": "SalesmanDataRowConverterTest.java", "file_ext...
package com.renanll.flatfile.converter; import com.renanll.flatfile.model.DataRow; import com.renanll.flatfile.model.SalesmanDataRow; import com.renanll.flatfile.stub.SalesmanDataRowStub; import org.junit.Assert; import org.junit.Test; public class SalesmanDataRowConverterTest { @Test public void shouldConve...
ae4e4bcb-0d30-45d9-8e71-75f21711e179
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-03 06:06:32", "repo_name": "philipgp/LifeKit", "sub_path": "/WebServices/LifeKit-WebServices/Organizer/Entity-Organizer/src/main/java/com/lifekit/organizer/entity/OrganizerEntityBase.java", "file_name": "Organ...
package com.lifekit.organizer.entity; import java.util.Date; import javax.persistence.MappedSuperclass; @MappedSuperclass public class OrganizerEntityBase { public OrganizerEntityBase() { createdDate = new Date(); } private Date createdDate; private Date lastModifiedDate; //@JsonForm...
c4042dad-0d27-493c-9563-652ca942af9b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-21 19:57:29", "repo_name": "mr-haseeb/Java", "sub_path": "/Assignment4/src/Employee.java", "file_name": "Employee.java", "file_ext": "java", "file_size_in_byte": 696, "line_count": 35, "lang": "en", "doc_type"...
public class Employee extends Person { private double salary; public Date date; public Employee(String name,String address,double phoneNumber,String emailAddress,double salary,Date date){ super(name,address,phoneNumber,emailAddress); this.date=date; this.salary=salary; } public void setSalary(d...
28ab2101-38ab-4d7d-939a-7bbbff7369f6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-16 14:57:04", "repo_name": "bubly123/ICICI_Hackathon", "sub_path": "/MCheque/app/src/main/java/com/example/home/mcheque/payeeList/PayeeListWebService.java", "file_name": "PayeeListWebService.java", "file_ext":...
package com.example.home.mcheque.payeeList; import com.example.home.mcheque.utility.RetrofitClient; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; /** * Created by Mayu on 14-04-2017. */ public class PayeeListWebService { public static final String BASE_URL = "https://retailb...
ca4d12ff-0d54-4102-9711-eed51e62e03c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-26 11:34:31", "repo_name": "zengxuezhen/SPLS", "sub_path": "/SPLSBackStage/src/main/java/com/zl/web/MessageController.java", "file_name": "MessageController.java", "file_ext": "java", "file_size_in_byte": 695,...
package com.zl.web; import java.util.HashMap; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; i...
d055bcd3-d3cd-449f-84ec-ac9c0dd077a5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-29 03:39:14", "repo_name": "chaitanm/entropy-shift-overseer", "sub_path": "/src/main/java/com/entropyshift/overseer/session/CreateSessionResult.java", "file_name": "CreateSessionResult.java", "file_ext": "java...
package com.entropyshift.overseer.session; /** * Created by chaitanya.m on 2/14/17. */ public class CreateSessionResult { private final String sessionKey; private final long createdTimestamp; private final String scope; public CreateSessionResult(final String sessionKey, final long createdTimestam...
d6988208-fad9-4ba9-8814-49391ca4ce50
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-30 02:14:25", "repo_name": "Luiz-code-dev/Divulgacao_de_Eventos", "sub_path": "/src/main/java/defaultPackage/Teste.java", "file_name": "Teste.java", "file_ext": "java", "file_size_in_byte": 695, "line_count": ...
package defaultPackage; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import model.Usuario; public class Teste { public static void main(String[] args) { // Run > Maven clean // Run > Maven install // Run a...
1b45de01-03d9-4514-8a89-2881cb70c970
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-26 05:38:25", "repo_name": "MarcosFilipe/POO-II", "sub_path": "/Trabalho Final - Creche/modelo/Responsavel.java", "file_name": "Responsavel.java", "file_ext": "java", "file_size_in_byte": 695, "line_count": 36...
package modelo; import java.io.Serializable; public class Responsavel implements Serializable { /** * */ private static final long serialVersionUID = 1L; private String nomeDoResponsavel; private String contato; private Endereco enderecoResponsavel; public Responsavel(String nomeDoResponsavel, String c...
567be2e4-d3bf-4b6f-b021-31fce22115cd
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-10-28T04:10:51", "repo_name": "smellsofbikes/arduino_cripplingly_slow_oscope", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 695, "line_count": 11, "lang": "en", "...
# arduino_cripplingly_slow_oscope arduino single channel graphing voltmeter using 320x200 TFT screen This uses an analog input, measures at some frequency (currently set by the ADC divider) and plots the result. The points on the time axis are separated by a user-specified (compile time) distance, currently set so it ...
b4bb232b-39d6-4164-83e4-703808385071
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-02 21:31:25", "repo_name": "dam108/Android_Moviles_02", "sub_path": "/Proyecto1erTrimestre/app/src/main/java/com/example/disfruta/DisFrutaDB.java", "file_name": "DisFrutaDB.java", "file_ext": "java", "file_siz...
package com.example.disfruta; import android.content.Context; import android.database.DatabaseErrorHandler; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import androidx.annotation.NonNull; import androidx.annotation.Nullable; public class DisFrutaDB extends SQLiteOp...
497c2ebc-d8ef-49ce-b2fb-c7b252222180
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-02-18 09:10:11", "repo_name": "fenghao1024/groupphonecall", "sub_path": "/WorldSky01302/src/com/wljsms/util/Configure.java", "file_name": "Configure.java", "file_ext": "java", "file_size_in_byte": 709, "line_coun...
package com.wljsms.util; import java.security.PublicKey; import com.eteng.world.SmsApplication; import android.app.Activity; import android.util.DisplayMetrics; /** * 确定屏幕大小类 * @author wanglaoji */ public class Configure { public static int screenHeight=0; public static int screenWidth=0; public static float ...
0ad1fdac-84b4-4bf2-bc22-e7d6156848ac
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-23 06:52:10", "repo_name": "ananth-hegde/OOMD_Assignment3", "sub_path": "/src/Student.java", "file_name": "Student.java", "file_ext": "java", "file_size_in_byte": 696, "line_count": 47, "lang": "en", "doc_type...
public class Student { int id; String name; int semester; Subject[] subjects; public void setName(String name) { this.name = name; } public String getName() { return name; } public int getId() { return id; } public void setSemester(int semester) { this.semester = semester; } public int getSem...
58b0c69b-0fb4-4050-a2b7-bc067440f83f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-13 21:38:33", "repo_name": "ZijunWan/ArchiveManagement", "sub_path": "/fmapp7.29/src/org/fkit/fm/log/OperLogInterceptor.java", "file_name": "OperLogInterceptor.java", "file_ext": "java", "file_size_in_byte": 7...
package org.fkit.fm.log; import java.text.SimpleDateFormat; import java.util.Date; import org.aspectj.lang.annotation.AfterReturning; import org.aspectj.lang.annotation.Aspect; import org.fkit.fm.domain.User; import org.springframework.stereotype.Component; @Aspect @Component public class OperLogInterceptor { @Afte...
85491293-037c-4aa1-9e58-294ebdffca49
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-04 18:54:38", "repo_name": "Febregaz/graduationProject", "sub_path": "/src/main/java/yuzhaoLiu/project/json/JackSon.java", "file_name": "JackSon.java", "file_ext": "java", "file_size_in_byte": 719, "line_count...
package yuzhaoLiu.project.json; import com.fasterxml.jackson.databind.ObjectMapper; public class JackSon { /** * Json字符串转对象 * @param <T> * @param jsonStr * @param clazz * @return * @throws Exception */ public <T> T jsonStrToBean(String jsonStr, Class<T> clazz) throws Except...
6cb35214-a212-421a-bf39-690d602f2791
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-09-06T01:49:06", "repo_name": "cychong47/useless", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 696, "line_count": 31, "lang": "en", "doc_type": "text", "blob_id"...
# useless Useless stuffs # pyftpd.py [pyftpdlib](https://github.com/giampaolo/pyftpdlib) based ftp server. Customized for Xerox scanner. When a xerox scanner sent a pdf file by ftp, it creates a directory and put file in it. The filename seems randomly selected and has no information at all. This script move the fil...
8233ff65-253e-4b5f-8faf-a16a6552c42f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-01-02T15:23:28", "repo_name": "james-muriithi/mybus", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 694, "line_count": 15, "lang": "en", "doc_type": "text", "blob_...
# My Bus A flutter application to show the booked seats from my [booking site](https://james-muriithi.github.io/bus/) # Screenshot (day 1) ![Screen Shot](https://raw.githubusercontent.com/james-muriithi/mybus/master/screenshot.jpg) # Screenshot (day 2) ### Added more details on the card and ButtonBar, a divider ...
aa34003b-aca7-475d-8c95-e9dfe4054910
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-05-10 12:49:40", "repo_name": "sopehl/springtraining", "sub_path": "/src/main/java/annotationconfigration/StudentTest.java", "file_name": "StudentTest.java", "file_ext": "java", "file_size_in_byte": 695, "line_co...
package annotationconfigration; import org.junit.Test; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * Created by semih on 30.03.2015. */ public class StudentTest { @Test public void annotation_based_config_test(){ ...
6c73f3dd-feac-46f8-96eb-1c33de08bb93
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-11-29 04:32:31", "repo_name": "ejconlon/jsubschema", "sub_path": "/src/main/java/net/exathunk/jsubschema/validation/TypeValidator.java", "file_name": "TypeValidator.java", "file_ext": "java", "file_size_in_byte":...
package net.exathunk.jsubschema.validation; import net.exathunk.jsubschema.base.SchemaNode; import net.exathunk.jsubschema.Util; /** * charolastra 11/15/12 11:47 AM */ public class TypeValidator implements Validator { @Override public void validate(SchemaNode node, VContext context) { final String s...
24305f19-16ae-4e10-ba42-62fb0639555c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-08 01:49:28", "repo_name": "chaojunzi/carpool-cloud", "sub_path": "/carpool-cloud-server/src/main/java/com/carpool/cloud/server/code/core/DatabaseConfig.java", "file_name": "DatabaseConfig.java", "file_ext": "...
package com.carpool.cloud.server.code.core; import java.util.List; import java.util.stream.Collectors; import cn.hutool.core.io.FileUtil; /** * 数据库->转H2 * @功能: * @author: 薛超 * @时间: 2019年6月10日 * @version 1.0.0 */ public class DatabaseConfig { public static void main(String[] args) { mysqlToH2("D:/data/carp...
18f51c73-2f8c-484b-9e96-cf25176d3f94
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-03 11:35:03", "repo_name": "adlerman/Mjuk19", "sub_path": "/Person.java", "file_name": "Person.java", "file_ext": "java", "file_size_in_byte": 695, "line_count": 39, "lang": "en", "doc_type": "code", "blob_id"...
public class Person { private String firstName; private String lastName; private int age; private boolean hungry; public Person(String firstName) { this.firstName = firstName; } public Person(int a) { age = a; } public Person(String fName,String lName, int a, boolean h) { firstName = fN...
6f71959e-c2d5-45ba-9f64-4c4371c89794
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-30 00:10:37", "repo_name": "Lucas-Urban/JAVA", "sub_path": "/GeradorCertificado/src/geradorcertificado/gerador/Modelo.java", "file_name": "Modelo.java", "file_ext": "java", "file_size_in_byte": 695, "line_coun...
/* * 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 geradorcertificado.gerador; import java.io.File; /** * * @author Thiag */ public class Modelo { private File file; ...
ecfce23b-bfa3-423a-a1f9-f63ce368742e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-23 23:27:55", "repo_name": "aluizt/spring-java-challenge", "sub_path": "/impl/src/main/java/br/com/tavares/springjavachallenge/springjavachallenge/exception/ErrorModel.java", "file_name": "ErrorModel.java", "f...
package br.com.tavares.springjavachallenge.springjavachallenge.exception; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Builder; import lombok.Data; import org.springframework.http.HttpStatus; import java.util.Map; @Data @Builder @JsonInclude(JsonInclude.Include.NON_NULL) public class ErrorModel...
35f398a0-c2ae-46d2-b90d-c0b43559b255
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-02 12:05:19", "repo_name": "Cadiducho/Dijkstra-test", "sub_path": "/src/com/cadiducho/dijkstra/Node.java", "file_name": "Node.java", "file_ext": "java", "file_size_in_byte": 695, "line_count": 35, "lang": "en"...
package com.cadiducho.dijkstra; import java.util.ArrayList; import java.util.List; public class Node { private final String name; private final List<Vertex> enlaces; public Node(String name) { this.name = name; this.enlaces = new ArrayList<>(); } public void link(Nod...
a269b463-e488-48c3-bfb4-7f71c780dd6d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-03-24 13:43:11", "repo_name": "codexdelta/search-engine", "sub_path": "/src/first.java", "file_name": "first.java", "file_ext": "java", "file_size_in_byte": 695, "line_count": 32, "lang": "en", "doc_type": "code"...
import java.util.*; import java.io.*; import java.lang.*; /** * @author * * */ public class first { /** * @param args */ public static void main(String args[]) { Scanner input = new Scanner(System.in); token tokenObject = new token(); fileScanner fileScannerObject = new fileScanner(); fileScannerObject...
84383e93-574e-4801-87cf-e89da6b5f4f9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-06-19T13:00:32", "repo_name": "kzoacn/iriscode", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 695, "line_count": 27, "lang": "en", "doc_type": "text", "blob_id": ...
# iriscode A portable OSIRIS V4.1, works on unix-like systems. We first compile it in a docker and then copy those dependencies. - remember to link those libs, see ``LD.sh`` - we correct the word case, i.e. ``CASIA-iRISv2`` => ``CASIA-IrisV2`` - we use dos2unix to remove \r in ``process.ini`` and ``process_CASIA-Iri...
31b99f15-c5ae-4c8d-81cc-dfcc2d0b9912
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-08 14:12:55", "repo_name": "13929733207/mytest", "sub_path": "/ssm3/src/main/java/cn/itcast/core/converter/DateConverter.java", "file_name": "DateConverter.java", "file_ext": "java", "file_size_in_byte": 867, ...
package cn.itcast.core.converter; import java.text.SimpleDateFormat; import java.util.Date; import org.springframework.core.convert.converter.Converter; /** * 自定义日期转换器 * * @author ldh Converter<S, T> * * S,Source,源,转换之前的数据,这里是字符串类型的商品日期 * T,Target,目标,转换之后的数据,这里是Date类型的商品日期 * */ public cla...
ab3390d6-c333-464b-a117-309e2481dff9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-18 14:44:13", "repo_name": "newbare/CorpDesk", "sub_path": "/src/main/java/lv/javaguru/java3/core/commands/gallerycluster/category/GetCategoryImagesSmallPageCommand.java", "file_name": "GetCategoryImagesSmallP...
package lv.javaguru.java3.core.commands.gallerycluster.category; import lv.javaguru.java3.core.commands.DomainCommand; /** * Created by Aleksej_home on 2016.02.18.. */ public class GetCategoryImagesSmallPageCommand implements DomainCommand<GetCategoryImagesSmallPageResult> { private final Long id; private ...
14c94b55-c509-4740-93e7-f5035321e928
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-20 21:12:51", "repo_name": "aspferraz/bigantena-ws", "sub_path": "/src/main/java/com/bigantena/ws/rest/BigAntenaException.java", "file_name": "BigAntenaException.java", "file_ext": "java", "file_size_in_byte":...
/* * 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.bigantena.ws.rest; /** * * @author aspferraz */ public class BigAntenaException extends Exception { p...
0c4560f6-0099-4644-9f7d-7c26ca87ace1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-04-14T19:51:26", "repo_name": "Czuki/text_parse", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 696, "line_count": 22, "lang": "en", "doc_type": "text", "blob_id":...
# Indenter Converts indentation in a text file from spaces to tabs or from tabs to spaces ## Usage Run `python3 -m indenter -h` for help in terminal Use example with all parameters: `python3 -m indenter --from=tabs --replace --tab-chars=2 --file-name=file.txt` `file-name` or `-file` - required, path to a file to ...
e8451f49-9c8c-424d-af34-88a31a08165a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-06 13:29:43", "repo_name": "zengyaqin/zkclient", "sub_path": "/src/main/java/com/kingdee/architecture/zkclient/ZkLock.java", "file_name": "ZkLock.java", "file_ext": "java", "file_size_in_byte": 696, "line_coun...
package com.kingdee.architecture.zkclient; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.ReentrantLock; public class ZkLock extends ReentrantLock { private static final long serialVersionUID = 1L; private Condition _dataChangedCondition = newCondition(); private Condition _...
efb918df-dc8b-4008-a4d8-5869bf691280
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-26 02:52:09", "repo_name": "alexlzl/JavaDemo8", "sub_path": "/泛型2/src/com/test/Test2.java", "file_name": "Test2.java", "file_ext": "java", "file_size_in_byte": 831, "line_count": 30, "lang": "zh", "doc_type": ...
package com.test; /** * Created by liuzhouliang on 2018/8/22. */ public class Test2 { public static void main(String[] args) { com(String.class); } /** * 不使用instanceof 判断是否是同一种类型, * 判断目标类型和源类型的字节码对象(Class)是否是同一种类型 * 通过class类的toString 方法,判断打印出来的类型是否相等,或者直接判断 * * @param t ...
ea5526b1-1c41-4edd-824c-86dbc4c0fe85
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-31 10:36:52", "repo_name": "konradvonkirchbach/Music_Advisor", "sub_path": "/Music Advisor/task/src/advisor/request/featured/FeaturedDto.java", "file_name": "FeaturedDto.java", "file_ext": "java", "file_size_i...
package advisor.request.featured; import com.google.gson.JsonObject; public class FeaturedDto { private String name; private String href; @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append(name).append("\n"); builder.append(href)...
5d99c17c-a2a8-4f70-890c-d357f7f3a685
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-04-07 00:54:02", "repo_name": "dongpodu/sanwei", "sub_path": "/src/main/java/com/well/sanwei/common/AppPropertyConfigurer.java", "file_name": "AppPropertyConfigurer.java", "file_ext": "java", "file_size_in_byte":...
package com.well.sanwei.common; import java.io.IOException; import java.util.Properties; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer; public class AppPropertyConfigurer extends PropertyPlac...
933b4dc6-aa65-48ff-bd77-3d15e123e84a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-13 06:57:09", "repo_name": "AaronHezq/appserver", "sub_path": "/src/com/appserver/user/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byte": 736, "line_count": 41, "lang": "en", "doc_t...
package com.appserver.user; import java.util.List; import com.jfinal.plugin.activerecord.Model; public class User extends Model<User> { public static final User dao = new User(); /** * 获取用户列表 * @return */ public List<User> getAllUser() { return User.dao.find("select * from user"); } ...
8bf98970-ffbb-4d34-8d00-ecfe8c83719d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-01 07:53:29", "repo_name": "liyuhang1994/video-ssh", "sub_path": "/src/main/java/com/zhiyou100/video/web/action/AdminStatisticsAction.java", "file_name": "AdminStatisticsAction.java", "file_ext": "java", "file...
package com.zhiyou100.video.web.action; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; import com.opensymphony.xwork2.ActionContext; import com.zhiyou100.video.model....
b1be69ce-eae0-4867-b34c-f1d1713251dd
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-17 01:50:22", "repo_name": "xeniaka/got-greeting", "sub_path": "/src/main/java/com/wipro/training/gotgreeting/GotGreetingApplication.java", "file_name": "GotGreetingApplication.java", "file_ext": "java", "file...
package com.wipro.training.gotgreeting; import com.wipro.training.controller.QuoteController; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.Comp...
6a93babb-bacd-4794-b5cd-1a024a9338ee
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-12 16:41:35", "repo_name": "nomagic/transducer", "sub_path": "/test/com/nomagicsoftware/functional/TestUtils.java", "file_name": "TestUtils.java", "file_ext": "java", "file_size_in_byte": 694, "line_count": 40...
package com.nomagicsoftware.functional; import java.util.Iterator; /** * * @author thurston */ public final class TestUtils { private TestUtils() { } static <T> Iterator<T> asIterator(final T[] array) { return new Iterator<T>() { int cursor; @Overr...
8ccf83a8-e80e-40cf-be8b-55eaea13070f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-14 12:43:30", "repo_name": "denisnemeth/ITSOVY", "sub_path": "/school/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 695, "line_count": 22, "lang": "en", "doc_type": "code", "bl...
package sk.itsovy.nemeth.school; import java.util.Date; public class Main { public static void main(String[] args) { Student student1 = new Student("Erik", "Niekto", "01/8/1996", 10); Student student2 = new Student("Filip", "Neviemkto", "11/14/1995", 10); Student student3 = new Stu...
25018b69-5e66-404a-9887-c4c3f579b9fd
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2008-12-18 02:34:43", "repo_name": "xrrocha/copier-framework", "sub_path": "/src/main/plenix/util/io/FileInputStreamSource.java", "file_name": "FileInputStreamSource.java", "file_ext": "java", "file_size_in_byte": 694...
package plenix.util.io; import java.io.FileInputStream; import java.io.InputStream; public class FileInputStreamSource implements InputStreamSource { private String filename; public FileInputStreamSource() {} public FileInputStreamSource(String filename) { this.filename = filename; ...
aac6e614-af65-4224-a47b-d3e99f13fb98
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-08-14T05:12:17", "repo_name": "deditrihermanto/publications", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 694, "line_count": 25, "lang": "en", "doc_type": "text"...
-------- Sentiment Analysis Using LSTM and CNN -------- Software : Colab Google (https://colab.research.google.com/) First Download All Files into your machine, and the follow the instruction below How to Use 1. Open Sentiment Analysis Using LSTM and CNN.ipynb using your colab google 2. Upload function.py into yo...
f0c3f22a-9974-4591-89f0-fb2e148e29ee
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-09 02:56:42", "repo_name": "sageZorro/shop", "sub_path": "/src/main/java/com/gerny/core/controller/seller/CategoryController.java", "file_name": "CategoryController.java", "file_ext": "java", "file_size_in_byt...
package com.gerny.core.controller.seller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import...