id
stringlengths
36
36
meta
stringlengths
429
697
code_content
large_stringlengths
612
1.26k
c0be2d7a-e426-4c23-9a50-330843f99c7d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-04-29 10:06:40", "repo_name": "MenciusCheng/menga-utils", "sub_path": "/src/main/java/com/menga/head_first_design_patterns/c2_1/ForecastDisplay.java", "file_name": "ForecastDisplay.java", "file_ext": "java", "fil...
package com.menga.head_first_design_patterns.c2_1; import java.util.Observable; import java.util.Observer; /** * Created by Marvel on 2018/5/30. */ public class ForecastDisplay implements Observer, DisplayElement { private Measurements measurements; @Override public void display() { System.out...
1c2c74cc-82a7-4bc9-9e24-00311f208a68
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-07 00:02:16", "repo_name": "blakethiessen/cirque", "sub_path": "/core/src/com/blakeandshahan/cirque/input/InputManager.java", "file_name": "InputManager.java", "file_ext": "java", "file_size_in_byte": 767, "li...
package com.blakeandshahan.cirque.input; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.InputMultiplexer; import com.badlogic.gdx.InputProcessor; /* The InputManager allows a hierarchy of input systems to go through a key press. For example, the top level input system will handle general key presses...
c9ae2ae5-7ba8-4a3e-a7b8-9659c79d6850
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-17 08:47:37", "repo_name": "utcn-cs-software-design-tudorv-2019/assignment-2-CatalinDura", "sub_path": "/src/main/java/View/DateUpdateView.java", "file_name": "DateUpdateView.java", "file_ext": "java", "file_s...
package View; import javax.swing.*; import java.awt.event.ActionListener; public class DateUpdateView extends JFrame { private JButton update=new JButton("update"); private JTextField data=new JTextField(10); public DateUpdateView(){ JPanel panel=new JPanel(); panel. setLayout (new BoxLay...
b454c459-014d-47c8-b8e4-d1458e517ea7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-11-21 14:28:24", "repo_name": "gitsjogren/TareaWebShop", "sub_path": "/TareaWebShop/src/main/java/com/eriksjo/tareawebshop/Address.java", "file_name": "Address.java", "file_ext": "java", "file_size_in_byte": 767,...
package com.eriksjo.tareawebshop; import java.io.Serializable; import javax.persistence.Embeddable; /** * * @author hajo */ @Embeddable public class Address implements Serializable { private String street; private int nbr; private String town; public Address() { } public Address(String s...
717eff8b-a330-45f4-a8dd-9bda55ce6175
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-04-26 12:52:56", "repo_name": "scify/ICSee", "sub_path": "/app/src/main/java/gr/scify/icsee/camera/Utils.java", "file_name": "Utils.java", "file_ext": "java", "file_size_in_byte": 773, "line_count": 33, "lang": "...
package gr.scify.icsee.camera; import android.hardware.Camera; import android.hardware.Camera.CameraInfo; import android.util.Log; public final class Utils { private static final String DEBUG_TAG = Utils.class.getCanonicalName(); public static int findFrontFacingCamera() { int cameraId = -1; ...
19984973-cf46-4f65-abfb-e4e905701112
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-10-09T11:23:05", "repo_name": "FriedlTheFox/LedMatrixGames", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 769, "line_count": 21, "lang": "en", "doc_type": "text",...
# LedMatrixGames for Rainbowduino Dear all, I have a [Rainbowduino](http://www.seeedstudio.com/wiki/Rainbowduino_v3.0) board and now it's time to build up a small project on it. So the main goal is to implement small games for a 8x8 RGB LED matrix. At the moment the first tasks are: - [x] understand the MY9221 chip i...
e39a1c1c-8af6-497d-87b9-ace54f109690
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-07 15:15:51", "repo_name": "SergaEn/web", "sub_path": "/src/main/java/MVC/persistence/entities/UserRole.java", "file_name": "UserRole.java", "file_ext": "java", "file_size_in_byte": 766, "line_count": 43, "lan...
package MVC.persistence.entities; import javax.persistence.*; @Entity @Table(name = "roles") public class UserRole extends MappedModel { @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "account_id") private Account account; @Column(name = "role", nullable = false, length = 45) private S...
d2ca5594-b88a-4128-8993-e6f86921e008
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-10 02:22:57", "repo_name": "xiaopeng2918/spring", "sub_path": "/spring_03_DI_inject/src/test/java/Test.java", "file_name": "Test.java", "file_ext": "java", "file_size_in_byte": 829, "line_count": 19, "lang": "...
import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import top.yxp2918.pojo.Student; /** * @author yxp2918 * @date 2021-10-10-9:30 */ public class Test { public static void main(String[] args) { ApplicationContext context = ne...
6ebbeb65-7a59-4310-9c63-98c3fed02866
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-11 19:35:24", "repo_name": "SergeKononenko/DataDrivenFramework", "sub_path": "/src/test/java/com/serge/rough/TestProperties.java", "file_name": "TestProperties.java", "file_ext": "java", "file_size_in_byte": 7...
package com.serge.rough; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Properties; public class TestProperties { public static void main(String[] args) throws IOException { Properties config = new Properties(); FileInputStream con...
e4f08ef8-b5d8-4553-ab14-2ce7df4a9ca2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-04-21T02:11:10", "repo_name": "reed9999/reed-setup", "sub_path": "/knowledge-base/git-handy.md", "file_name": "git-handy.md", "file_ext": "md", "file_size_in_byte": 767, "line_count": 29, "lang": "en", "doc_t...
# Handy git tips ## Autostore credentials git config credential.helper store ## Change a remote http://help.github.com/articles/changing-a-remote-s-url/ git remote set-url origin https://github.com/reed9999/OpenNMT ## Fix line endings git config core.autocrlf false ## How to clean up big or sensitive files after...
541b180f-0c7b-4e08-8a9e-a2e27e0264cd
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-16 02:26:16", "repo_name": "Croquette-djb/forumBackend", "sub_path": "/src/main/java/com/forum/forumbackend/service/UserService.java", "file_name": "UserService.java", "file_ext": "java", "file_size_in_byte": ...
package com.forum.forumbackend.service; import com.forum.forumbackend.bean.User; import com.forum.forumbackend.mapper.UserMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class UserService { @Autowired UserMapper userMapper; ...
db779e39-0f10-45c3-8670-9541df49d515
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-01 00:08:10", "repo_name": "RubensKj/events-spring", "sub_path": "/src/main/java/com/rubenskj/events/controllers/ChatController.java", "file_name": "ChatController.java", "file_ext": "java", "file_size_in_byte...
package com.rubenskj.events.controllers; import com.rubenskj.events.dtos.ChatDTO; import com.rubenskj.events.services.ChatService; import org.springframework.web.bind.annotation.*; import javax.validation.Valid; @RestController @RequestMapping("/api") public class ChatController { private final ChatService chat...
0426bd40-b17c-44fa-a47e-b86ed79f43ac
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-12-31T08:28:11", "repo_name": "trammelltech/ionicUI", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 766, "line_count": 23, "lang": "en", "doc_type": "text", "blob_...
<p> IonicUI is an ionic component (API) based application modified after an 'ionic start' inside of a terminal. This modified version is designed to aid in better displaying component UI usage on the fly within a device instead of having to only view on a desktop based browser. <...
e1721acd-aba1-48e9-ba39-d525734ab3c3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-09 13:58:18", "repo_name": "ksl3011/Messenger_SpringBoot", "sub_path": "/Messenger/src/main/java/com/study/user/impl/UserServiceImpl.java", "file_name": "UserServiceImpl.java", "file_ext": "java", "file_size_i...
package com.study.user.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.study.cmn.DTO; import com.study.user.UserDAO; import com.study.user.UserService; @Service public class UserServiceImpl implements U...
055eaeac-61ba-41d3-9350-f2b37a810cc7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-03 17:12:50", "repo_name": "akhileshmishra90/SeleniumAk", "sub_path": "/src/main/java/com/Actouch/Purchase/generic_Lib/Constant.java", "file_name": "Constant.java", "file_ext": "java", "file_size_in_byte": 769...
package com.Actouch.Purchase.generic_Lib; public interface Constant { String browser = "firefoxdriver"; String Url = "http://178.162.192.40:8080/AcTouchWeb"; String UrlCommon = Url+"/resources/home.html#"; String PurchaseOrder_new= UrlCommon+"PurchaseOrder/New"; String PurchaseMain = UrlCommon+"poMain"; Str...
fd3aaaec-9ba4-4919-9d45-4f828f887e73
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-18 17:05:32", "repo_name": "syazzwani98/MultipleActivitiesAndLayout", "sub_path": "/app/src/main/java/fsktm/um/edu/multipleactivitiesandlayout/Rel.java", "file_name": "Rel.java", "file_ext": "java", "file_size...
package fsktm.um.edu.multipleactivitiesandlayout; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; public class Rel extends AppCompatActivity {...
dc509c0a-c519-43a2-98de-6d53f70a8b24
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-01 02:39:29", "repo_name": "maiwilson94/session-spots", "sub_path": "/src/main/java/com/sessionspots/service/UserServiceImpl.java", "file_name": "UserServiceImpl.java", "file_ext": "java", "file_size_in_byte":...
package com.sessionspots.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.sessionspots.model.User; import com.sessionspots.model.UserInfo; import com.sessionspots.repositor...
48386e71-8022-4f94-a5f6-532c68668ef3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-02-28T17:46:30", "repo_name": "SoftGooey/SGHeartRate", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 767, "line_count": 15, "lang": "en", "doc_type": "text", "blob...
# SGHeartRate Heart Rate Monitor app that reads from iOS bluetooth. Written in Swift 4.2 with XCode 10.1. Tested on iPhone and iPad and on iOS 10.3.3 and 12.1.4. Tested with "Polar H10 Heart Rate Monitor". Should be compatible with any heart rate device that respects BLE GATT https://www.bluetooth.com/specification...
450fc047-9e42-4dbb-9da9-37b1674b24db
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-18 09:25:11", "repo_name": "p-karan/TrainingProjects", "sub_path": "/bootquickstart/src/main/java/com/example/bootquickstart/BootquickstartApplication.java", "file_name": "BootquickstartApplication.java", "fil...
package com.example.bootquickstart; import com.example.bootquickstart.entity.Book; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ConfigurableApplicationContext; import org.spri...
b648021d-31b4-40de-9a57-01c498b190ff
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-11-03 06:34:22", "repo_name": "kinnki/yssy_board_analysis", "sub_path": "/src/yssy/Analysis.java", "file_name": "Analysis.java", "file_ext": "java", "file_size_in_byte": 767, "line_count": 29, "lang": "en", "doc_...
package yssy; import java.util.ArrayList; public class Analysis { public static void main(String[] args) { for (int i = 0; i < District.DISTRICTS.length; i++) { String district = District.DISTRICTS[i]; ArrayList<String> boardList = Board.getDistrictBoardList(String .valueOf(i)); for (Stri...
ab30f78b-fed9-4bba-b331-bd700c4b4523
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-08 07:15:02", "repo_name": "babuc1992/smc", "sub_path": "/app/src/main/java/com/transasia/smc/ConnectionDetector.java", "file_name": "ConnectionDetector.java", "file_ext": "java", "file_size_in_byte": 767, "li...
package com.transasia.smc; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.view.Gravity; import android.widget.Toast; /** * Created by babu.c on 4/22/2016. */ public class ConnectionDetector { private Context _context; public Connectio...
6442937d-beec-4f01-b6cf-58f088bbb49b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-01 13:31:30", "repo_name": "alexkampos/Movie-Database", "sub_path": "/src/main/java/com/alexkampos/springcourse/dto/baserequest/ActorBaseRequest.java", "file_name": "ActorBaseRequest.java", "file_ext": "java",...
package com.alexkampos.springcourse.dto.baserequest; import com.alexkampos.springcourse.base.BaseRequest; import com.alexkampos.springcourse.interfaces.BasicInfo; import java.util.ArrayList; import java.util.List; import javax.validation.Valid; import javax.validation.constraints.NotNull; import lombok.AllArgsConstruc...
d2353025-6c8e-41c5-b287-e26b06d7d641
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-25 07:54:09", "repo_name": "zhumengstar/socket", "sub_path": "/demo7/src/main/java/server/Server.java", "file_name": "Server.java", "file_ext": "java", "file_size_in_byte": 766, "line_count": 35, "lang": "en",...
package server; import constants.TCPConstants; import java.io.IOException; /** * @author:zhumeng * @desc: **/ public class Server { public static void main(String[] args) { TCPServer tcpServer = new TCPServer(TCPConstants.PORT_SERVER); boolean isSucceed = tcpServer.start(); if (!isSucc...
a2ee6c79-baa8-452c-84ed-aafca14f8121
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-06 15:26:36", "repo_name": "saravanancsn/POM-framework", "sub_path": "/src/org/ths/HomeLocator1.java", "file_name": "HomeLocator1.java", "file_ext": "java", "file_size_in_byte": 766, "line_count": 38, "lang": ...
package org.ths; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; public class HomeLocator1 extends BaseClass { public HomeLocator1() { PageFactory.initElements(driver, this); } @FindBy(xpath = "(//a[@class='navUser-action'])[4]") ...
5c2ec8a6-7a45-4a39-bcb7-88d4f68641e7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-21 13:05:00", "repo_name": "Anuar077/lab9", "sub_path": "/src/main/java/kz/lab9/Student/Student.java", "file_name": "Student.java", "file_ext": "java", "file_size_in_byte": 766, "line_count": 46, "lang": "en",...
package kz.lab9.Student; import com.fasterxml.jackson.annotation.JsonIgnore; import kz.lab9.Course.Course; import javax.persistence.*; import java.util.HashSet; import java.util.Set; @Entity public class Student { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) int id; private String name; ...
d677bdd4-049a-4c33-bb36-01a1ae62d4de
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-08 08:17:17", "repo_name": "Deff17/hermes", "sub_path": "/hermes-frontend/src/main/java/pl/allegro/tech/hermes/frontend/validator/TopicMessageValidatorListFactory.java", "file_name": "TopicMessageValidatorList...
package pl.allegro.tech.hermes.frontend.validator; import com.google.common.collect.ImmutableList; import org.glassfish.hk2.api.Factory; import javax.inject.Inject; import java.util.List; public class TopicMessageValidatorListFactory implements Factory<List<TopicMessageValidator>> { private final AvroTopicMessa...
a071bc0b-ab93-4cfb-a0ae-6be44062610a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-03-10 18:00:17", "repo_name": "Kant2/zuelCup", "sub_path": "/src/main/java/com/example/competitiondemo/util/result/ResultGenerator.java", "file_name": "ResultGenerator.java", "file_ext": "java", "file_size_in_byt...
package com.example.competitiondemo.util.result; /** * 响应结果生成工具 * 用以快捷的生成一般响应结果 */ public class ResultGenerator { private static final String DEFAULT_SUCCESS_MESSAGE = "SUCCESS"; public static Result getSuccessResult() { return new Result() .setCode(ResultCode.SUCCESS) ...
53c753a1-adc8-4e98-b54a-7fb5db571154
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-11 22:02:06", "repo_name": "danmaloney745/Word-Cloud-Api", "sub_path": "/tests/TestTagCloudCreator.java", "file_name": "TestTagCloudCreator.java", "file_ext": "java", "file_size_in_byte": 766, "line_count": 41...
import static org.junit.Assert.*; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import sw.gmit.ie.TagCloudCreator; public class TestTagCloudCreator { private TagCloudCreator tg; private String fileParser; private boolean isFile; @BeforeClass public...
3f7312b6-b3bc-403d-a07a-acbc6b58f2a9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-18 03:03:43", "repo_name": "sanducanxue/myjfinal", "sub_path": "/jfinal_demo_for_maven/src/main/java/com/xusong/controller/GirlController.java", "file_name": "GirlController.java", "file_ext": "java", "file_si...
package com.xusong.controller; import com.jfinal.aop.Before; import com.jfinal.core.Controller; import com.xusong.interceptor.GlobalInterceptor; import com.xusong.model.Girl; import com.xusong.service.GirlService; import com.xusong.util.MyRet; /** * describe : * author : xusong * createTime : 2018/6/29 */ public cl...
91ac12be-b79a-44ee-9004-564e3ffc54b7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-12 14:47:30", "repo_name": "HaiVT07/BTVN-bai2-module4", "sub_path": "/src/main/java/services/StudentServices.java", "file_name": "StudentServices.java", "file_ext": "java", "file_size_in_byte": 766, "line_coun...
package services; import model.Student; import java.util.ArrayList; public class StudentServices { public ArrayList<Student> list = new ArrayList<>(); public StudentServices(){ list.add(new Student(1, "Hai", "10/07", "Ha Noi", "09", "hai@gmail.com", "CNTT")); list.add(new Stu...
be607cdd-7b6b-4895-b309-b6764412d0b6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-20 08:17:51", "repo_name": "TU-Berlin-DIMA/babelfish", "sub_path": "/compiler/src/main/java/de/tub/dima/babelfish/storage/text/leaf/Split.java", "file_name": "Split.java", "file_ext": "java", "file_size_in_byt...
package de.tub.dima.babelfish.storage.text.leaf; import com.oracle.truffle.api.CompilerDirectives; import com.oracle.truffle.api.nodes.ExplodeLoop; import de.tub.dima.babelfish.storage.text.operations.SplittedRope; public class Split { @CompilerDirectives.CompilationFinal private static int length; @Exp...
d78832d1-21cb-48a5-89f3-09e883f73e18
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-18 06:01:11", "repo_name": "Gusabary/YIBUK", "sub_path": "/back-end/src/main/java/com/example/demo/entity/SComment.java", "file_name": "SComment.java", "file_ext": "java", "file_size_in_byte": 767, "line_count...
package com.example.demo.entity; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; import java.util.List; @Document(collection = "comments") public class SComment { @Id private String sCommentId; private int bookId; private List<Comment> ...
3d463164-f72f-4b4b-947b-3e936c5510d8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-01 12:42:35", "repo_name": "wuweiFrank/JavaDemo1", "sub_path": "/Demo1/src/impl/UserDao.java", "file_name": "UserDao.java", "file_ext": "java", "file_size_in_byte": 766, "line_count": 36, "lang": "en", "doc_ty...
package impl; import entity.user; import java.sql.*; import demoutility.dbutility; public class UserDao { public user login(String username,String password){ String sql = "select id, name,password from user where name=? and password=?"; dbutility util = new dbutility(); Connection conn = util.openConnection();...
6a905e0f-80f2-4833-8a7b-66815ffd9681
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-19 05:27:16", "repo_name": "kategwengispert/Mobcom1", "sub_path": "/app/src/main/java/info/kategwengispert/improvedlist/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_b...
package info.kategwengispert.improvedlist; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ImageView; import android.widget.TextView; public class MainActivity extends AppCompatActivity { TextView tvName; TextView tvAge; ImageView imgPhoto; @Override ...
17253fce-957a-4708-a76e-b4a032df0a50
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-27 08:17:10", "repo_name": "KishoDai/poc", "sub_path": "/orientdb-poc/src/main/java/MatchTest.java", "file_name": "MatchTest.java", "file_ext": "java", "file_size_in_byte": 766, "line_count": 18, "lang": "en",...
import com.orientechnologies.orient.core.sql.OCommandSQL; import com.tinkerpop.blueprints.impls.orient.OrientGraphFactory; import com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx; import com.tinkerpop.blueprints.impls.orient.OrientVertex; import java.util.Iterator; public class MatchTest { public static void...
0cd1605b-0fac-486a-a0f5-80ca0e97a897
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-04 19:40:50", "repo_name": "mjachowdhury/SpringWork-4thYear-CIT", "sub_path": "/CreateBeanUsingJava/src/main/java/ie/mohammed/MainApp.java", "file_name": "MainApp.java", "file_ext": "java", "file_size_in_byte"...
package ie.mohammed; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import ie.mohammed.com.Franchise; import ie.mohammed.com.Hero; public class MainApp { public static void main(String[] args) { AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext...
9f3ca401-9325-4e43-926c-12c8e7aabf32
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-03 10:40:43", "repo_name": "chaminduonline/springbootlogin-h2db", "sub_path": "/src/main/java/com/example/h2springboot/demo/model/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byte": ...
package com.example.h2springboot.demo.model; import lombok.Data; import org.hibernate.annotations.LazyCollection; import org.hibernate.annotations.LazyCollectionOption; import javax.persistence.*; import java.util.List; @Entity @Table(name = "user") @Data public class User { @Id @GeneratedValue(strategy = ...
06a856c9-7f2e-4e6c-ac8e-ad10cf678545
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-17 13:56:19", "repo_name": "eggplant-debug/TANKWAR", "sub_path": "/src/fileLearning/filetest03.java", "file_name": "filetest03.java", "file_ext": "java", "file_size_in_byte": 901, "line_count": 38, "lang": "zh...
package fileLearning; import java.io.*; public class filetest03 { public static void main(String[] args) throws IOException { /* 1.有一个源文件 2.有一个目标文件 3.搞一个输入的管 怼到源文件上 4.搞一个输出的管 怼到目标文件上 */ //1.源文件 File f = new File("d:/Test.txt"); //2.目标文件 ...
f06aba0d-40cc-465e-a03a-c865cd2dc3d2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-17 08:19:26", "repo_name": "idanc84/Movies-app", "sub_path": "/app/src/main/java/com/exr/moviesapp/root/MoviesApplication.java", "file_name": "MoviesApplication.java", "file_ext": "java", "file_size_in_byte": ...
package com.exr.moviesapp.root; import android.app.Application; import com.exr.moviesapp.data.repository.di.DaggerRepositoryComponent; import com.exr.moviesapp.data.repository.di.RepositoryComponent; import com.squareup.leakcanary.LeakCanary; public class MoviesApplication extends Application { private Reposito...
853e35e4-97aa-4e1d-b013-904e1c7d4b8b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-06 12:16:50", "repo_name": "merveozdemir/DesignPatterns", "sub_path": "/Iterator/src/main/java/iteratorDesignPattern/iterators/ArrayListIterator.java", "file_name": "ArrayListIterator.java", "file_ext": "java"...
package iteratorDesignPattern.iterators; import iteratorDesignPattern.collections.BaseCollection; import java.util.ArrayList; /** * ArrayListIterator * * @author Merve ÖZDEMİR * @since 14/06/2020 */ public class ArrayListIterator extends BaseIterator { private int index; ArrayList<Object> arrayListColl...
9f9b1aa8-c2d7-466c-acaa-0638c44287fa
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-17 06:15:26", "repo_name": "ionchain/ionchain-wallet-android", "sub_path": "/app/src/main/java/org/ionc/wallet/presenter/ioncrmb/PricePresenter.java", "file_name": "PricePresenter.java", "file_ext": "java", "f...
package org.ionc.wallet.presenter.ioncrmb; import org.ionc.wallet.model.ioncprice.IPriceModel; import org.ionc.wallet.model.ioncprice.PriceModel; import org.ionc.wallet.model.ioncprice.callbcak.OnUSDExRateRMBCallback; import org.ionc.wallet.model.ioncprice.callbcak.OnUSDPriceCallback; public class PricePresenter impl...
3253b622-56cc-4f41-85c2-ab6e2997e255
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-27 05:56:44", "repo_name": "Nazryl/ip", "sub_path": "/src/main/java/util/TaskList.java", "file_name": "TaskList.java", "file_ext": "java", "file_size_in_byte": 766, "line_count": 40, "lang": "en", "doc_type": ...
package util; import task.Task; import java.util.ArrayList; /** * Stores the list of tasks and supports tasks such as getTask, addTask and removeTask. */ public class TaskList { private ArrayList<Task> taskList; public TaskList() { this.taskList = new ArrayList<>(); } public TaskList(Arra...
1f05958b-6312-450c-a39a-308c9d54b016
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-16 02:37:39", "repo_name": "moutainhigh/cfamily", "sub_path": "/familyhas/src/main/java/com/cmall/familyhas/api/input/ApiForSuggestionFeedbackInput.java", "file_name": "ApiForSuggestionFeedbackInput.java", "fi...
package com.cmall.familyhas.api.input; import com.srnpr.zapcom.baseannotation.ZapcomApi; import com.srnpr.zapcom.topapi.RootInput; /** * 意见反馈接口输入参数 * @author liqt */ public class ApiForSuggestionFeedbackInput extends RootInput{ @ZapcomApi(value="流水号",remark="流水号") private String serialNumber=""; @ZapcomApi(...
23dbde43-b3e7-4be5-be04-3e3d201090d2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-02 23:49:15", "repo_name": "simeaol/springboot-essentials", "sub_path": "/src/main/java/com/cqrs/write/domain/application/UpdateCardHandler.java", "file_name": "UpdateCardHandler.java", "file_ext": "java", "fi...
package com.cqrs.write.domain.application; import com.cqrs.write.domain.core.Card; import com.cqrs.write.domain.core.WriteCardRepository; import org.springframework.stereotype.Service; import java.time.LocalDateTime; @Service public class UpdateCardHandler implements Handler<UpdateCardCommand>{ private WriteCard...
dbc195bf-e8a6-41e4-9afa-15357e5ab19f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-28 12:36:23", "repo_name": "iambadminton/FaultMessage", "sub_path": "/src/main/java/com/kpbs/KPBSThreadPoolExecutor.java", "file_name": "KPBSThreadPoolExecutor.java", "file_ext": "java", "file_size_in_byte": 7...
package com.kpbs; import org.apache.log4j.Logger; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class KPBSThreadPoolExecutor implements ServletContextListener { private static Logge...
96f1b553-79d2-47d3-b5f8-18cb50677ea6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-29 11:04:42", "repo_name": "NeilWeightman/eng95-96", "sub_path": "/ExceptionsExample/src/com/sparta/exceptions/ExceptionsWorker.java", "file_name": "ExceptionsWorker.java", "file_ext": "java", "file_size_in_by...
package com.sparta.exceptions; import java.text.DateFormat; import java.text.ParseException; public class ExceptionsWorker{ void myFunc() throws ParseException, MyException{ int a = 10; int b = 0; System.err.println("Hello"); DateFormat df = DateFormat.getDateInstance()...
59a6b6d5-1053-4747-9ccf-70dc05d886ca
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-28 11:19:02", "repo_name": "diaodiao088/bjx", "sub_path": "/app/src/main/java/com/bjxapp/worker/http/keyboard/commonutils/job/JobPriority.java", "file_name": "JobPriority.java", "file_ext": "java", "file_size_...
package com.bjxapp.worker.http.keyboard.commonutils.job; import android.support.annotation.IntDef; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * Created by general on 09/11/2017. * @author renwenjie * @date 2017/11/09 */ public class JobPriority { public static f...
b80adce7-5ead-43ed-b875-62d7f14b9c9b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-06-05 22:02:38", "repo_name": "danpilew/Ex3.oop", "sub_path": "/ex3/src/clids/ex4/dataTypes/Variable.java", "file_name": "Variable.java", "file_ext": "java", "file_size_in_byte": 767, "line_count": 43, "lang": "e...
package clids.ex4.dataTypes; public class Variable { private final String name; private final VariableType.Type type; private final boolean isFinal; private boolean hasValue; /** * @param hasValue * the hasValue to set */ public Variable(String name, VariableType.Type type, boolea...
6d393a82-eec7-4589-af8b-a38000ffe281
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-10 23:09:40", "repo_name": "dodo1921/Jewelchat", "sub_path": "/app/src/main/java/in/jewelchat/jewelchat/models/Factory.java", "file_name": "Factory.java", "file_ext": "java", "file_size_in_byte": 768, "line_co...
package in.jewelchat.jewelchat.models; import android.os.CountDownTimer; import java.util.ArrayList; import java.util.List; /** * Created by mayukhchakraborty on 17/06/17. */ public class Factory implements Comparable<Factory> { public int id; public int factory_type; public long duration; public int amount;...
714a98dd-14c0-4d0e-bde4-adce51e46f66
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-02-11 17:37:19", "repo_name": "alisdair/Nodobo-Capture", "sub_path": "/ContextCapture/src/com/nodobo/capture/HeadphoneStateReceiver.java", "file_name": "HeadphoneStateReceiver.java", "file_ext": "java", "file_siz...
package com.nodobo.capture; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import java.lang.StringBuilder; public class HeadphoneStateReceiver extends BroadcastReceiver { private final String TAG = "HeadphoneStateReceiver"; private final String kind =...
42b3f873-342d-441f-a11c-8e789277b307
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-10-12T09:00:32", "repo_name": "SUKOHI/Plasticity", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 772, "line_count": 37, "lang": "en", "doc_type": "text", "blob_id"...
# Plasticity A Laravel package to download file with utf8 file name. (This is for Laravel 5+. [For Laravel 4.2](https://github.com/SUKOHI/Plasticity/tree/1.0)) # Installation Execute composer command. composer require sukohi/plasticity:2.* Register the service provider in app.php 'providers' => array( ...
ce426108-ddb4-4363-b85c-73acdd50899e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-23 12:25:43", "repo_name": "Amitvikram787/s_project", "sub_path": "/product-service/src/main/java/org/cognizant/product/services/SearchTextService.java", "file_name": "SearchTextService.java", "file_ext": "jav...
package org.cognizant.product.services; import java.util.List; import org.cognizant.product.entities.SearchText; import org.cognizant.product.entities.User; import org.cognizant.product.repositories.SearchTextRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereot...
cc3e1ede-3d75-4fe8-9d98-6ad06cc1700f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-06-29T12:18:51", "repo_name": "Akiat/PlaylistCreator", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 765, "line_count": 13, "lang": "en", "doc_type": "text", "blob...
# PlaylistCreator A program which convert your deezer playlists to m3u playlists according to what you have locally. PlaylistCreator scans your music folder to find your deezer playlist songs. Works with flac, mp3... It was a program for my usage, there is no config file, nothing is polished but that works if you mo...
bfe20582-dd65-40fb-8879-1b9f9922a168
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-04 17:23:47", "repo_name": "swarnimagupta/face_recognition", "sub_path": "/JAR Code/FRS_new/src/com/frs/test/TestImageINBase64.java", "file_name": "TestImageINBase64.java", "file_ext": "java", "file_size_in_by...
/** * */ package com.frs.test; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import com.frs.common.MDIProfileHelper; import com.frs.common.MDIProfileUtils; /** * @author Pavan * */ public class TestImageINBase64 { /** * @param args * ...
b55cae12-601a-43b2-9a51-efe31799febc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-02-10 01:25:04", "repo_name": "whumr/daily", "sub_path": "/android/BCIA/src/com/objectivasoftware/BCIA/model/FlightDeicing.java", "file_name": "FlightDeicing.java", "file_ext": "java", "file_size_in_byte": 766, "...
package com.objectivasoftware.BCIA.model; import java.util.ArrayList; import java.util.List; public class FlightDeicing extends Omc{ private List<FlightDeicingInfo> flightDeicingInfos = new ArrayList<FlightDeicingInfo>(); /** * @return the flightDeicingInfos */ public List<FlightDeicingInfo> getFlightDeicing...
d0f98083-2b3a-4916-9eea-66a8050bb49b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-14T20:47:06", "repo_name": "MohamedElabd92/PhotoViewer", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 766, "line_count": 17, "lang": "en", "doc_type": "text", ...
# PhotoViewer After cloning the repository run **pod install** command then open PhotoViewer.xcworkspace App developed using XCode 12.5.1 and Swift 5 ### Features - Checking for internet connection. - Integration with [Photos API](https://picsum.photos/v2/list). - Caching data after calling api: using UserDefual...
5e2316fe-7005-4e45-9592-ea1e8ecca855
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-02-28 21:21:13", "repo_name": "shreyasnbhat/GoT-TriviaApp", "sub_path": "/app/src/main/java/com/example/shreyas/thrones/Firebase.java", "file_name": "Firebase.java", "file_ext": "java", "file_size_in_byte": 767, ...
package com.example.shreyas.thrones; import android.app.Application; import com.google.firebase.database.FirebaseDatabase; import io.realm.Realm; import io.realm.RealmConfiguration; /** * Created by Shreyas on 11/4/2016. */ public class Firebase extends Application { @Override public void onCreate() { ...
6ff33e74-f451-4ad6-9ac7-7d30966f657f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-04-30T00:14:25", "repo_name": "Mrcomputer1/jel", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 766, "line_count": 18, "lang": "en", "doc_type": "text", "blob_id": ...
<img src='/docs/jel.png' height='260' width='218'> # Jel Jel is a scripting language developed to be simple with a hard foundation. Jel is a based off of JavaScript syntax with a Python parser. It's main purpose is to have all elements be the same. (See Syntax.) # Syntax All Jel functions are written with a parenthese...
5cc42603-c1db-4b3a-8335-3a7d3a2c7ade
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-23 07:00:06", "repo_name": "zhanghanlin/servitization", "sub_path": "/servitization-commons/commons-business/src/main/java/com/servitization/commons/business/agent/AgentSupport.java", "file_name": "AgentSuppor...
package com.servitization.commons.business.agent; import java.lang.reflect.Proxy; import java.util.Properties; public class AgentSupport { protected Properties properties; public void setProperties(Properties properties) { this.properties = properties; } /** * 代理接口,接口无需写实...
82dc759e-a7aa-40c7-bfe1-8477b5f0bed7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-17 09:48:16", "repo_name": "mahendra-shinde/jaxrs-rest-basics", "sub_path": "/demos-source-code/rest-demo3/src/com/mahendra/resources/ProductService.java", "file_name": "ProductService.java", "file_ext": "java...
package com.mahendra.resources; import java.util.List; import java.util.Map; import java.util.Set; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import com.mahendra.dao.ProductDAO; import com.mahendra.entities.Product; @Path("products") public class Pro...
4a0cddbf-9694-40ce-9a50-b10b56d79b47
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-27 06:22:15", "repo_name": "Enzo-J/dynamicdatasource", "sub_path": "/src/main/java/com/szwg/dynamicdatasource/config/ProjectsProp.java", "file_name": "ProjectsProp.java", "file_ext": "java", "file_size_in_byte...
package com.szwg.dynamicdatasource.config; import com.szwg.dynamicdatasource.data.bo.ProjectProp; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.context.config.annotation.RefreshScope; import org.springframework.stereotype.Component; im...
899397ee-f2be-4ed3-b594-98a80977fbf8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-01-25 09:10:08", "repo_name": "algostructures/DroolsRuleEngine", "sub_path": "/src/main/java/com/example/drools/RuleEngine/Controller/ItemController.java", "file_name": "ItemController.java", "file_ext": "java", ...
package com.example.drools.RuleEngine.Controller; import com.example.drools.RuleEngine.Model.Item; import com.example.drools.RuleEngine.Service.ItemService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.ann...
4c59e588-83c3-42b1-a3ad-b16ec8112f34
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-08 06:28:17", "repo_name": "luohaoGit/gadget", "sub_path": "/service/src/main/java/com/github/wx/gadget/service/impl/UserServiceImpl.java", "file_name": "UserServiceImpl.java", "file_ext": "java", "file_size_i...
package com.github.wx.gadget.service.impl; import com.github.wx.gadget.dbo.User; import com.github.wx.gadget.mybatis.mapper.UserMapper; import com.github.wx.gadget.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; ...
53f4b65f-1440-4acf-af06-88cc4bf6a9d1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-27 11:46:08", "repo_name": "boyfromasia/SaveLink", "sub_path": "/app/src/main/java/com/example/savelink/Item.java", "file_name": "Item.java", "file_ext": "java", "file_size_in_byte": 766, "line_count": 43, "la...
package com.example.savelink; public class Item { String name; String url; String image; String folder; String count; String id; public Item(String folder, String name, String url, String count, String id) { this.folder = folder; this.name = name; this.url = url; ...
0a60e6a1-c78c-49bd-9924-51dd50003942
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-06 12:43:52", "repo_name": "chengz111/day0920", "sub_path": "/day0920/src/com/xinyan/javaweb/util/JdbcUtils.java", "file_name": "JdbcUtils.java", "file_ext": "java", "file_size_in_byte": 813, "line_count": 45,...
package com.xinyan.javaweb.util; import java.sql.Connection; import java.sql.SQLException; import javax.sql.DataSource; import com.mchange.v2.c3p0.ComboPooledDataSource; public class JdbcUtils { private static DataSource dataSource = new ComboPooledDataSource("jdbcApp"); private JdbcUtils() { ...
14358459-cc7d-4052-bd55-d975903eb9e3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-28 00:46:07", "repo_name": "sjtuwyf/2021_08", "sub_path": "/itheima98_spring/day03_spring_transacction/src/main/java/com/itheima/service/Impl/AccountServiceIMpl.java", "file_name": "AccountServiceIMpl.java", "...
package com.itheima.service.Impl; import com.itheima.dao.AccountDao; import com.itheima.pojo.Account; import com.itheima.service.AccountService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * @Author ssqswyf * @Date 2021/8/5 */ @Service public cl...
a45bb301-727f-4031-be39-46b5f581842f
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-25 10:16:05", "repo_name": "LucasHG94/PlanificacionYGestionDeProyectos", "sub_path": "/proyecto/GestionProyectos/src/java/persistencia/InformesemanalFacade.java", "file_name": "InformesemanalFacade.java", "fil...
/* * 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 persistencia; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext;...
d00b5b01-1e99-4779-8823-2f3e578aabd0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-01-06T03:15:46", "repo_name": "pivot-tech/top-of-the-charts", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 766, "line_count": 28, "lang": "en", "doc_type": "text"...
# Top Of The Charts In this project you will be tasked with using the Last.FM API to fetch the most popular artists in a given genre. ## User Stories - A user can search top artist for Pop Music - A user can search top artist for Rock Music - A user can search top artist for EDM Music - A user can search top arti...
c0c40f22-75fb-4e19-9611-3d35007ee2c7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-03 18:51:01", "repo_name": "metelka342/recipe_book_beta", "sub_path": "/src/main/java/logic/ProductService.java", "file_name": "ProductService.java", "file_ext": "java", "file_size_in_byte": 766, "line_count":...
package logic; import data.entities.Product; import data.repositoryies.ProductRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class ProductService { private ProductRepository repository; @Autowi...
80cdb1e9-10d5-4ecb-8780-a65ec84296a8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-05-19T13:40:54", "repo_name": "roopsBee/mern-boiler", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 765, "line_count": 37, "lang": "en", "doc_type": "text", "blob_...
Boiler plate for a MERN stack / todo list app ====TODOS API=== -Go through express security checklist -Go through nodejs security checklist -Go through express performance checklist -use snyx to test vulnerabilities -validation/sanitation on routes -review response status codes -add facebook oauth =====TODOS CL...
4fd5b940-0ed8-46cd-8c90-480c55b6e24c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-09 11:59:53", "repo_name": "location663/Cinema", "sub_path": "/guns-api/src/main/java/com/stylefeng/guns/rest/vo/BaseResponVO.java", "file_name": "BaseResponVO.java", "file_ext": "java", "file_size_in_byte": 7...
package com.stylefeng.guns.rest.vo; import lombok.Data; import java.io.Serializable; @Data public class BaseResponVO implements Serializable { private Integer status; private String imgPre; private Object data; private Integer nowPage; private Integer totalPage; private String msg; publi...
5978da92-bfbc-4fe3-ae58-79229d4c25b5
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-20 09:24:18", "repo_name": "gliderwiki/java8", "sub_path": "/src/test/java/sort/SortNotComparable.java", "file_name": "SortNotComparable.java", "file_ext": "java", "file_size_in_byte": 811, "line_count": 42, "...
package sort; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import static org.junit.Assert.fail; /** * @Author : yion * @Date : 2017. 5. 23. * @Description : 정렬해야 할 타입이 Comparable을 구현하지 않으면 예외가 발생한다. */ public class SortNotComparable { @Test public vo...
6dd98e47-481c-45d2-afda-828db2a777f0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-08-09 16:46:28", "repo_name": "Foxkid/Oarlok", "sub_path": "/src/oarlok/application/errors/ErrorMappings.java", "file_name": "ErrorMappings.java", "file_ext": "java", "file_size_in_byte": 766, "line_count": 25, "...
package oarlok.application.errors; import java.util.HashMap; import java.util.Map; public class ErrorMappings { //Create a Hash Map to store all the service URLs. Map<Integer,String> errors = new HashMap<Integer,String>(); public ErrorMappings() { errors.put(0,"Login Successful"); errors.put(1,"...
f03bc2a5-b29f-4a72-a26e-fbf2ec5cda24
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-19 21:09:40", "repo_name": "isaacbmt/JarAnalyzer", "sub_path": "/src/sample/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 765, "line_count": 30, "lang": "en", "doc_type": "code...
package sample; import javafx.application.Application; import javafx.stage.Stage; import main.java.api.VisFx; import main.java.graph.VisEdge; import main.java.graph.VisGraph; import main.java.graph.VisNode; public class Main extends Application { @Override public void start(Stage stage) throws Exception{ ...
65c4d233-e0a0-4091-93c2-dc3923de06b0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-04-28 15:52:12", "repo_name": "OhtuWearable/WearableDataServer", "sub_path": "/app/src/test/java/com/ohtu/wearable/wearabledataservice/CustomRobolectricRunner.java", "file_name": "CustomRobolectricRunner.java", "...
package com.ohtu.wearable.wearabledataservice; import org.junit.runners.model.InitializationError; import org.robolectric.RobolectricTestRunner; import org.robolectric.annotation.Config; import java.io.File; import java.util.Properties; public class CustomRobolectricRunner extends RobolectricTestRunner { public ...
a4f6f2c0-303a-43cc-ba17-e71df0b7cac9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-26 11:55:41", "repo_name": "Yvonne97/m-Farmer", "sub_path": "/app/src/main/java/yvonne/a89033/lulusdfms/Login.java", "file_name": "Login.java", "file_ext": "java", "file_size_in_byte": 765, "line_count": 28, "...
package yvonne.a89033.lulusdfms; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class Login extends AppCompatActivity { Button register; @Override protected void onCreate(Bundle save...
f1a86119-2420-4ffc-ab28-f5efe63c9d40
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-19 14:27:27", "repo_name": "Arclights/WikiVoyage", "sub_path": "/app/src/main/java/com/tommykvant/wikivoyage/details/data/IndentedTextContent.java", "file_name": "IndentedTextContent.java", "file_ext": "java",...
package com.tommykvant.wikivoyage.details.data; import android.content.Context; import android.view.View; import android.widget.TextView; import com.tommykvant.wikivoyage.details.content.Content; import com.tommykvant.wikivoyage.parsers.StringIterator; import com.tommykvant.wikivoyage.utils.Utils; import java.util.A...
197f8fd7-9fdf-4ad9-9455-771fbb8d2e07
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-18 21:11:53", "repo_name": "emleopal/emleopal", "sub_path": "/EPS/src/test/java/selenium/tests/DefaultTest.java", "file_name": "DefaultTest.java", "file_ext": "java", "file_size_in_byte": 765, "line_count": 35...
package selenium.tests; import static org.testng.AssertJUnit.assertTrue; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import selenium.pageObjects.BrowseablePage; public abstract class De...
d04f93ce-7d46-4c5c-ad04-13b4f029ad82
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-09 12:35:08", "repo_name": "fernomac/slug-rpc-client", "sub_path": "/src/main/java/io/coronet/slug/rpc/client/ProtocolException.java", "file_name": "ProtocolException.java", "file_ext": "java", "file_size_in_b...
package io.coronet.slug.rpc.client; import java.nio.charset.StandardCharsets; /** * An {@code RpcClientException} thrown when the server sends a response * but we can't make any sense of it. */ public class ProtocolException extends RpcClientException { private static final long serialVersionUID = 1L; pri...
007883d5-cc27-45c7-81d5-0a19e7555d10
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-20 13:13:29", "repo_name": "philwinder/logstash", "sub_path": "/logstash-scheduler/src/main/java/org/apache/mesos/logstash/config/LogstashConfig.java", "file_name": "LogstashConfig.java", "file_ext": "java", "...
package org.apache.mesos.logstash.config; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; import java.net.URL; import java.util.Optional; @Component @ConfigurationProperties(prefix = "logstash") public class LogstashConfig { private int...
d1ba4fc7-7c91-4cce-aa50-8a8ea3eb7142
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-28 00:29:38", "repo_name": "apinayeva/da-forecast", "sub_path": "/app/src/main/java/com/example/gannapinaieva/da_forecast/Fragment1.java", "file_name": "Fragment1.java", "file_ext": "java", "file_size_in_byte"...
package com.example.gannapinaieva.da_forecast; import android.os.Bundle; import android.support.v4.app.ListFragment; import java.util.ArrayList; // https://startandroid.ru/ru/uroki/vse-uroki-spiskom/179-urok-109-android-3-fragments-listfragment-spisok.html public class Fragment1 extends ListFragment { DBHelper...
5c3a3291-cb63-4af0-87ea-ab27ba0624ac
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-02 17:58:19", "repo_name": "ibeth-cyn/message-board-webapp", "sub_path": "/messageboardwebapp/src/main/java/com/messageboard/topic/add/DeleteTopicServlet.java", "file_name": "DeleteTopicServlet.java", "file_ex...
package com.messageboard.topic.add; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; @WebServlet(urlPatterns = "/deletetopic...
ea9e78ab-9a6c-4434-920c-b55112d4c3e3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-09 12:46:10", "repo_name": "Ruchika0810/Hiber", "sub_path": "/src/main/java/com/lti/addEmp.java", "file_name": "addEmp.java", "file_ext": "java", "file_size_in_byte": 765, "line_count": 27, "lang": "en", "doc_...
package com.lti; import java.io.IOException; import java.time.LocalDate; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.lti.dao.EmployeeDao; import com.lti.entity.Employee; public ...
067d0c17-fe69-4912-b85d-d7010461c945
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-19 11:11:15", "repo_name": "kaledinandrew/ElectricityCalculator", "sub_path": "/app/src/main/java/com/example/andrey/electricitycalculator/VerticalSpace.java", "file_name": "VerticalSpace.java", "file_ext": "j...
package com.example.andrey.electricitycalculator; import android.graphics.Rect; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.View; public class VerticalSpace extends RecyclerView.ItemDecoration{ int space; public VerticalSpace(int space) { ...
6aff6165-b675-4623-b9d9-b84a91dcff3a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-05 08:54:08", "repo_name": "leozlliang/spring-cache-ext", "sub_path": "/src/test/java/com/test/service/TestService.java", "file_name": "TestService.java", "file_ext": "java", "file_size_in_byte": 765, "line_co...
package com.test.service; import com.google.common.collect.Maps; import com.spring.cache.annotation.BatchCachable; import com.test.bean.TestBean; import lombok.extern.slf4j.Slf4j; import java.util.List; import java.util.Map; /** * Created by Administrator on 2018/7/11. */ @Slf4j public class TestService { @B...
c1de7ad6-e780-41c0-b921-60182aa3952e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-15 05:56:57", "repo_name": "wanghao02006/distributedserver", "sub_path": "/distribute-core/src/main/java/com/leiyu/distribute/core/cluster/impl/HashClusterStrategyImpl.java", "file_name": "HashClusterStrategyI...
package com.leiyu.distribute.core.cluster.impl; import com.leiyu.distribute.common.utils.IPHelper; import com.leiyu.distribute.core.cluster.ClusterStrategy; import com.leiyu.distribute.core.model.ProviderService; import java.util.List; /** * @Project: distributedserver * @Package Name: com.leiyu.distribute.core.cl...
44fc8e3f-32c9-4c22-851c-413444699e65
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-07-28 10:16:13", "repo_name": "BartoszJarocki/android-dagger-template", "sub_path": "/app/src/main/java/com/smartsoft/app/ui/activities/module/ActivityScopeModule.java", "file_name": "ActivityScopeModule.java", "...
package com.smartsoft.app.ui.activities.module; import android.app.Activity; import android.content.Context; import com.smartsoft.app.annotations.ForActivity; import com.smartsoft.app.data.DataModule; import dagger.Module; import dagger.Provides; import javax.inject.Singleton; @Module( complete = false, ...
28d116f5-b149-43e7-89c8-c144e76d1a25
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-26 11:47:42", "repo_name": "arkenabd/fuse-in-tmax", "sub_path": "/src/main/java/com/netty/fuse/util/ExtRequest.java", "file_name": "ExtRequest.java", "file_ext": "java", "file_size_in_byte": 765, "line_count":...
package com.netty.fuse.util; public class ExtRequest { private String tid; private String svc; private String idata; private String flags; public ExtRequest() { } public ExtRequest(String tid, String svc, String idata, String flags) { super(); this.tid = tid; this.svc = svc; this.idata = idata; th...
f320563a-5d8e-494c-949f-faa826344e95
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-02-13 16:10:59", "repo_name": "danielamoschetto/Reti-LS", "sub_path": "/Router/ejbModule/ejb_cl_pkg/EJB_LS.java", "file_name": "EJB_LS.java", "file_ext": "java", "file_size_in_byte": 766, "line_count": 38, "lang"...
package ejb_cl_pkg; import javax.ejb.LocalBean; import javax.ejb.Stateless; import org.hibernate.*; import org.hibernate.cfg.*; //import parking_pkg.parkingEntity; import ejb_cl_pkg.GeoCoordinate; import ejb_cl_pkg.LocalServer; /** * Session Bean implementation class EJB_LS * (mappedName = "...
0017dda4-6409-4acb-bbbb-d43147f7d6eb
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-29 12:42:17", "repo_name": "jianglei260/AILab", "sub_path": "/appstudio/src/main/java/com/sharevar/appstudio/persistent/remote/db/DataEngine.java", "file_name": "DataEngine.java", "file_ext": "java", "file_siz...
package com.sharevar.appstudio.persistent.remote.db; import com.sharevar.appstudio.persistent.DataRepository; import java.lang.reflect.Proxy; import java.util.HashMap; import java.util.Map; public class DataEngine { private static Map<Class, DataRepository> repositoryMap = new HashMap<>(); public static <T>...
b5591a0a-7dbe-44cb-9dc3-d04d099e96e8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-17T11:28:30", "repo_name": "sthlmj/reliefweb", "sub_path": "/src/main/java/org/joedan/view/JobOverviewView.java", "file_name": "JobOverviewView.java", "file_ext": "java", "file_size_in_byte": 765, "line_count"...
package org.joedan.view; import com.vaadin.ui.Table; import com.vaadin.ui.VerticalLayout; import org.joedan.model.JobOverviewModel; /** */ public class JobOverviewView extends VerticalLayout { private final org.joedan.model.JobOverviewModel model; public JobOverviewView() { // initialize the underlying model f...
858b5cfe-2764-40f3-8ccd-d25a41aa5a5e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-29 15:32:15", "repo_name": "margbit/test", "sub_path": "/information_models/src/main/java/it/nextworks/tmf_offering_catalog/information_models/common/StatusEnum.java", "file_name": "StatusEnum.java", "file_ext...
package it.nextworks.tmf_offering_catalog.information_models.common; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; public enum StatusEnum { NOT_STARTED("Not Started"), RUNNING("Running"), SUCCEEDED("Succeeded"), FAILED("Failed"); privat...
dcd3fb2e-d0f0-4b94-a54e-66b517b075ca
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-09 09:00:07", "repo_name": "Nyolczas/JavaLessons", "sub_path": "/readingCsv/src/csvDemo.java", "file_name": "csvDemo.java", "file_ext": "java", "file_size_in_byte": 765, "line_count": 28, "lang": "en", "doc_ty...
import com.opencsv.CSVReader; import java.io.FileReader; import java.util.Arrays; public class csvDemo { public static void main(String[] args) { try{ CSVReader reader = new CSVReader(new FileReader("C:/Users/User/Documents/Tozsde/MT4ek/XM1/MQL4/Files/XM_19061180.csv")); ...
b937a465-72e9-411b-8053-03209630b0ad
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-14 22:48:11", "repo_name": "lukhol/kadpjee-spring", "sub_path": "/src/main/java/pl/lukasz/edukacja/service/ActivatorServiceImpl.java", "file_name": "ActivatorServiceImpl.java", "file_ext": "java", "file_size_i...
package pl.lukasz.edukacja.service; import javax.transaction.Transactional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import pl.lukasz.edukacja.dao.ActivatorDAO; import pl.lukasz.edukacja.domain.Activator; @Service @Transactional public class Activ...
26975ff0-b24f-49f8-898c-beb8c980f3c7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-11 11:11:18", "repo_name": "davidnewyen/CellCAPTCHA", "sub_path": "/CellCAPTCHA_java/src/controller/Application.java", "file_name": "Application.java", "file_ext": "java", "file_size_in_byte": 766, "line_count...
package controller; import com.bulenkov.darcula.DarculaLaf; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import javax.swing.plaf.basic.BasicLookAndFeel; public class Application { public view.Start view_start; public view.Login view_login; public view.Regis...
7af2efd5-3ef8-4ca5-9163-ee6b8e0117f2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-11-04 15:41:56", "repo_name": "homework/homework-devices", "sub_path": "/test/org/hwdb/srpc/SRPCTest.java", "file_name": "SRPCTest.java", "file_ext": "java", "file_size_in_byte": 765, "line_count": 53, "lang": "e...
package org.hwdb.srpc; import static org.junit.Assert.assertEquals; import java.io.IOException; import org.junit.Before; import org.junit.Test; public class SRPCTest { private SRPC test; @Before public void setUp() throws IOException { test = new SRPC(); } @Test public void testDetails() throws Exceptio...
30575e83-81d8-43f0-acfa-deb1eb3157fc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-09 10:32:50", "repo_name": "Archi-Lab-FAE/fae-shop-demo", "sub_path": "/src/main/java/io/archilab/fae/shopdemo/order/OrderName.java", "file_name": "OrderName.java", "file_ext": "java", "file_size_in_byte": 765...
package io.archilab.fae.shopdemo.order; import javax.persistence.Embeddable; import lombok.AccessLevel; import lombok.Data; import lombok.NoArgsConstructor; import lombok.Setter; @Embeddable @Data @Setter(AccessLevel.NONE) @NoArgsConstructor(access = AccessLevel.PROTECTED) public class OrderName { private static ...
02792638-1ee3-4443-9567-b5ffab0d2923
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-02-11 22:42:47", "repo_name": "tomash89/draughts", "sub_path": "/draughts-game/src/main/java/pl/edu/agh/draughts/gui/KingLabel.java", "file_name": "KingLabel.java", "file_ext": "java", "file_size_in_byte": 765, "...
package pl.edu.agh.draughts.gui; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import pl.edu.agh.draughts.game.elements.PieceColor; public class KingLabel extends PieceLabel { private static final long serialVersionUID = 1L; private static final int INNER_CIRCLE_DIFF = 5; ...
6f55cd55-bc9e-4e7e-a4e7-8bc1bdf19f4c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2010-12-20 01:51:04", "repo_name": "deboraotoni/Trabalho-TEES", "sub_path": "/src/main/java/app/repositories/CodeshareRepositoryImpl.java", "file_name": "CodeshareRepositoryImpl.java", "file_ext": "java", "file_size_i...
package app.repositories; import java.util.List; import javax.persistence.EntityManager; import br.com.caelum.vraptor.ioc.Component; import app.models.Codeshare; import javax.persistence.Query; @Component public class CodeshareRepositoryImpl extends Repository<Codeshare, Long> implements CodeshareRepository...
66a2605d-1348-4203-aab3-d8da7f363722
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-24 03:32:33", "repo_name": "cqdjyhj/spring-boot-parent", "sub_path": "/ch3/src/main/java/com/hongjun/ch3/annotation/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 436, "line_cou...
/* * 四川生学教育科技有限公司 * Copyright (c) 2015-2025 Founder Ltd. All Rights Reserved. * * This software is the confidential and proprietary information of * Founder. You shall not disclose such Confidential Information * and shall use it only in accordance with the terms of the agreements * you entered into with Founder...