id
stringlengths
36
36
meta
stringlengths
429
697
code_content
large_stringlengths
612
1.26k
3e6a2869-ad5f-47f4-88c9-d8bec7dd44a6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-30 05:02:58", "repo_name": "bingdianfeishui/mybatis_typehandler_demo", "sub_path": "/mybatis-handler-common/src/main/java/top/youngcoding/bootbatis/common/CodeAndDescEnum.java", "file_name": "CodeAndDescEnum.j...
package top.youngcoding.bootbatis.common; /** * 带Code和Desc描述两个参数的枚举父类接口 * Created by liy on 2018-4-9. */ public interface CodeAndDescEnum<K, V> { K getCode(); V getDesc(); static CodeAndDescEnum<?, ?> getByCode(Class<? extends CodeAndDescEnum> type, Object code) { if (type.isEnum()...
0b745540-cc04-4629-82fa-1fea11c3e39b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-05T04:04:01", "repo_name": "Paradox2100/Mortgage-calculator-Wray", "sub_path": "/app/src/main/java/com/mobileappdevelopment/mortgage_calculator_wray/Mortgage_Output.java", "file_name": "Mortgage_Output.java", ...
package com.mobileappdevelopment.mortgage_calculator_wray; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.TextView; public class Mortgage_Output extends AppCompatActivity { private TextView mortgageDisplay; private String hold; @Override protected vo...
ad2be6d3-74ab-45d2-a66e-629e0f5df6c6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-12 11:50:42", "repo_name": "aelbastawisi/order_cancellation_workflow", "sub_path": "/src/main/java/com/camunda/workflow/controller/listeners/UserTaskListener.java", "file_name": "UserTaskListener.java", "file_...
package com.camunda.workflow.controller.listeners; import com.camunda.workflow.util.Constants; import lombok.extern.slf4j.Slf4j; import org.camunda.bpm.engine.delegate.DelegateTask; import org.camunda.bpm.engine.delegate.TaskListener; @Slf4j public class UserTaskListener implements TaskListener { @Override p...
e57dd827-b475-4413-ba7a-e0b456b88386
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-14 10:04:29", "repo_name": "Letmebeawinner/yywt", "sub_path": "/web/dx/menhu/src/main/java/com/menhu/common/CommonConstants.java", "file_name": "CommonConstants.java", "file_ext": "java", "file_size_in_byte": ...
package com.menhu.common; import com.a_268.base.util.PropertyUtil; /** * 公共属性,读取配置文件 * * @author guoshiqi * @create 2016-12-09-17:56 */ public class CommonConstants { //获取属性配置文件 private static PropertyUtil propertyUtil = PropertyUtil.getInstance("config"); //项目本身域名 public final static String cont...
ff76ab7c-2a81-40a4-9190-d6e19c56e33c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-04-07 02:54:56", "repo_name": "Bigua/ComicCollector", "sub_path": "/AbstBase/Models/comicAuthor.java", "file_name": "comicAuthor.java", "file_ext": "java", "file_size_in_byte": 651, "line_count": 37, "lang": "en"...
package me.bigua.comiccollector.AbstBase.Models; /** * Created by Bigua on 2/10/15. * bigua.kun@gmail.com */ public class comicAuthor { private Long _id; private Long author; private Long comic; public comicAuthor(Long author, Long comic) { this.author = author; this.comic = comic; ...
475bb37d-e2c7-4d0a-89ae-5d563288604e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-06 15:57:43", "repo_name": "ipahenderson/CardGameLab", "sub_path": "/src/main/java/Deck.java", "file_name": "Deck.java", "file_ext": "java", "file_size_in_byte": 651, "line_count": 38, "lang": "en", "doc_type"...
import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Collections; public class Deck { private ArrayList<Card> cards; public Deck(){ this.cards = new ArrayList<>(); } public int deckSize(){ return this.cards.size(); } public void populateDeck(){ ...
ca06714d-3b7f-48c0-acd8-3116dd6c3c65
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-29 02:44:03", "repo_name": "rennnhong/linebot", "sub_path": "/src/main/java/idv/rennnhong/linebot/map/model/NearByParam.java", "file_name": "NearByParam.java", "file_ext": "java", "file_size_in_byte": 651, "li...
package idv.rennnhong.linebot.map.model; public class NearByParam { private final double latitude; private final double longitude; private final int radius; public NearByParam(double latitude, double longitude, int radius) { this.latitude = latitude; this.longitude = longitude; ...
e916f5a0-d301-4939-9d95-fbc3af98ef97
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-22 13:31:49", "repo_name": "lqingfang/learnKnowledge", "sub_path": "/testLearn/src/main/java/org/lqf/learn/designModel/mementoModel/Game.java", "file_name": "Game.java", "file_ext": "java", "file_size_in_byte"...
package org.lqf.learn.designModel.mementoModel; import java.util.Random; public class Game { private int money; public Game(int money) { this.money = money; } public int getMoney() { return money; } private Random random = new Random(); public void bet(){ int num...
c5be3f1e-7cf7-4e6f-b90c-c611f9610f4b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-24 10:47:56", "repo_name": "simhareddyp/jobpluslearn", "sub_path": "/src/main/java/com/jpl/util/LoginBo.java", "file_name": "LoginBo.java", "file_ext": "java", "file_size_in_byte": 651, "line_count": 41, "lang...
package com.jpl.util; import java.util.List; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.jpl.dao.LoginDao; import com.jpl.ui.model.LoginDm; @Service public class LoginBo { @Autowired private Login...
da3736d6-68f9-456a-9525-30c5d8f5eada
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-06T08:39:24", "repo_name": "eaglestorm/cleansimplesolid", "sub_path": "/ReadMe.md", "file_name": "ReadMe.md", "file_ext": "md", "file_size_in_byte": 651, "line_count": 12, "lang": "en", "doc_type": "text",...
# Clean Simple S.O.L.I.D This is intended to be an example API that demonstrates the clean architecture pattern with a rich domain model that uses bounded contexts. Using a ToDo list as the example doesn't really demonstrate the full power of this pattern with a rich domain model but hopefully it will be good enough t...
f72c9cd1-abfd-4ee3-93e8-dd891ea747eb
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-13 18:01:12", "repo_name": "dreymaior/ex-campeonatos", "sub_path": "/src/main/java/com/example/demo/domain/League.java", "file_name": "League.java", "file_ext": "java", "file_size_in_byte": 651, "line_count": ...
package com.example.demo.domain; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Getter; import lombok.Setter; import javax.persistence.*; import java.util.*; @Entity @Getter @Setter public class League { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Col...
c0494b96-f74c-479f-9be2-aa232a92980e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-28 02:24:10", "repo_name": "tpbvieira/mobisaude", "sub_path": "/mobisaude-ws/src/main/java/co/salutary/mobisaude/restful/message/mobile/RegiaoDTO.java", "file_name": "RegiaoDTO.java", "file_ext": "java", "file...
package co.salutary.mobisaude.restful.message.mobile; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; @XmlRootElement @XmlType(namespace = "mobile", name = "regiao") public class RegiaoDTO implements Cloneable { private String id; private String nome; public String getI...
8c7dcd50-1421-4781-b816-ad23ec1d439d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-27 11:27:41", "repo_name": "mshravan/cryptotest", "sub_path": "/blocktest/src/blocktest/BlockChain.java", "file_name": "BlockChain.java", "file_ext": "java", "file_size_in_byte": 652, "line_count": 48, "lang":...
package blocktest; import java.util.ArrayList; import java.util.List; public class BlockChain { List<Block> blockchanin ; public BlockChain( ) { this.blockchanin = new ArrayList<Block>(); } public void addBlock(Block block) { this.blockchanin.add(block); } public List...
e7231fb2-a00c-4c86-a36f-1ea759142544
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-10 16:56:27", "repo_name": "BryanAchmad/SensusApp", "sub_path": "/app/src/main/java/com/example/sensusapp/Model/Master/JenisSanitasi.java", "file_name": "JenisSanitasi.java", "file_ext": "java", "file_size_in_...
package com.example.sensusapp.Model.Master; import android.os.Parcel; import android.os.Parcelable; import com.google.gson.annotations.Expose; public class JenisSanitasi { private int id; private String jenis; public JenisSanitasi(int id, String jenis) { this.id = id; this.jenis = jenis;...
4a8e4480-3af1-4fc7-8286-1085f004f87b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-09 01:20:32", "repo_name": "Aisheng/HanaMusic", "sub_path": "/app/src/main/java/com/example/aisheng/hanamusic/fragment/FolderDetailFragment.java", "file_name": "FolderDetailFragment.java", "file_ext": "java", ...
package com.example.aisheng.hanamusic.fragment; import android.os.Bundle; /** * Created by Aisheng on 2017/4/9. */ public class FolderDetailFragment extends BaseFragment { public static FolderDetailFragment newInstance(String id, boolean useTransition, String transitionName) { FolderDetailFragment fr...
c7898383-675b-4408-a84b-50266a6c36a4
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-08 21:04:09", "repo_name": "Aefyr/Astraea", "sub_path": "/app/src/main/java/com/aefyr/sombra/common/Cancelable.java", "file_name": "Cancelable.java", "file_ext": "java", "file_size_in_byte": 651, "line_count":...
package com.aefyr.sombra.common; import android.os.AsyncTask; import com.android.volley.Request; /** * Created by Aefyr on 10.09.2017. */ public class Cancelable { private Request request; private AsyncTask task; public Cancelable(Request request) { this.request = request; } public C...
b35a8e04-6596-415d-a5f3-4c4499a1e75b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-11 11:44:59", "repo_name": "green-fox-academy/bzita", "sub_path": "/week-10/app/src/main/java/com/greenfoxacademy/openlibraryapp/RetrofitClient.java", "file_name": "RetrofitClient.java", "file_ext": "java", "f...
package com.greenfoxacademy.openlibraryapp; import com.google.gson.Gson; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; public class RetrofitClient { public static final String OPEN_LIBRARY_URL = "https://openlibrary.org/"; public static Retrofit retrofit = null; publi...
de67b452-5cf3-491e-b6d4-1fd920360781
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-22 17:57:27", "repo_name": "NicolasMoreno/birra-app-back", "sub_path": "/src/main/java/com/birraapp/birraappbackend/product/model/UnitModel.java", "file_name": "UnitModel.java", "file_ext": "java", "file_size_...
package com.birraapp.birraappbackend.product.model; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import javax.validation.cons...
3cb7ac69-b281-409b-ac2f-99fb61a9286d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-09 17:33:32", "repo_name": "makecloud/MyAndroidExample", "sub_path": "/viewdrag/src/main/java/com/liuyihui/viewdrag/FreeDragViewActivity.java", "file_name": "FreeDragViewActivity.java", "file_ext": "java", "fi...
package com.liuyihui.viewdrag; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; /** * 可自由拖拽view到任何位置的demo */ public class FreeDragViewActivity extends AppCompatActivity { private FreeMovingContainer freeMovingContainer; private MovingView movingView; ...
d63a7317-c6bb-4b96-9f29-83bc7bc4b5a0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-31 18:48:28", "repo_name": "tannickalJ/pc-boot-up", "sub_path": "/Cpu.java", "file_name": "Cpu.java", "file_ext": "java", "file_size_in_byte": 651, "line_count": 27, "lang": "en", "doc_type": "code", "blob_id"...
public class Cpu { private boolean voltage = true; public void powerSupply(boolean DC) throws InterruptedException { // incoming AC current converted to DC current voltage = DC; if (voltage == true) { Rom rom = new Rom(); // BIOS initiated from ROM initiates POST if (rom.bios()) { System.out.pr...
6d434e72-1838-42d0-8b4a-d024af52cfde
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-05-08T16:26:18", "repo_name": "theLauA/PPP_Trainer", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 651, "line_count": 26, "lang": "en", "doc_type": "text", "blob_i...
# PPP_Trainer # Intro A computer vision approach using OpenPose to perform action recognition. # Commands Model Train with Clips of Valid Actions; and Validation `python model.py` Model Train with Full Videos; and Validation `python model_4_classes.py` Model Train with Full Videos and SMOTE; and Validation `python ...
09e26271-35d5-4f14-9f3b-0584a1e795c3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-09-30T22:01:50", "repo_name": "lukaszgolojuch/Hangman-Game", "sub_path": "/readme.md", "file_name": "readme.md", "file_ext": "md", "file_size_in_byte": 659, "line_count": 29, "lang": "en", "doc_type": "text",...
# Program Nazwa Programu: „Hangman Game” Język Programu: Ruby Środowisko Programistyczne: Visual Studio Code Autor programu: Łukasz Gołojuch ## About program Hangman game implementation. A game made for two people in Ruby. ## Functions class User - class containing data about players, nam...
dc070ade-fea3-4eac-b11a-b5a69bb3ba84
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-09 13:27:10", "repo_name": "JUSTyanyutao/YTDemo", "sub_path": "/ytdemo-service/src/main/java/com/just/ytdemo/dao/StudentDao.java", "file_name": "StudentDao.java", "file_ext": "java", "file_size_in_byte": 537, ...
package com.just.ytdemo.dao; import com.just.ytdemo.dao.mapper.StudentMapper; import com.just.ytdemo.entity.Student; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.List; /** * @author yutao.yan * @date 2018/11/12 17:10 */ @Component...
44c1885e-d71a-4eac-8e5f-8186ec2cd0ab
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-12-01T08:49:34", "repo_name": "ouhaohui/touch", "sub_path": "/static/src/touch.md", "file_name": "touch.md", "file_ext": "md", "file_size_in_byte": 955, "line_count": 26, "lang": "zh", "doc_type": "text", "bl...
--- create-date: 11/22/2015 2:41:31 PM update-date:12/1/2015 4:30:54 PM status: public this document about of the js lib devolement prograss --- ##update: 修改resource.js,完成loadModule模块。 ###config.js 初步接口如下: >1、基本路径返回 getBasePath return string; >2、返回需要更新的静态文件url集合 getUpdateFileSet(array[模块名]) return json{"js";"",...
39006058-5601-4312-bde7-5e62cc13369c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-02-11 16:07:17", "repo_name": "ekux44/compiler-front-end", "sub_path": "/src/kuxhausen/BlueNode.java", "file_name": "BlueNode.java", "file_ext": "java", "file_size_in_byte": 650, "line_count": 41, "lang": "en", "...
package kuxhausen; public class BlueNode implements Node { private String mName; private PasType mType; @Override public String getName() { return mName; } @Override public void setName(String name) { mName = name; } public PasType getType() { return mType; } public PasType getPP...
c69c425b-78db-43a3-ad0e-29ffd278ee35
{"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/NewLearn/JavaDes/CSD_Assignment2/src/data/Node.java", "file_name": "Node.java", "file_ext": "java", "file_size_in_byte": 650, "l...
/* * 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 data; /** * * @author tuana */ public class Node { String word; MyLinkedList meaningList = new MyLinkedList(); ...
a65caec0-7498-4bcf-a19e-514bef092cf1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-03 01:53:10", "repo_name": "riclops17/Concurrente", "sub_path": "/src/trabajoPractico3/InsertorM.java", "file_name": "InsertorM.java", "file_ext": "java", "file_size_in_byte": 651, "line_count": 30, "lang": "e...
/* * 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 trabajoPractico3; /** * * @author ricardo */ public class InsertorM extends Thread{ private int id; priv...
1e3ddcfe-adce-4dda-88ee-aef1c35def81
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-17 02:44:07", "repo_name": "Lorine-glitch/WildwebV2", "sub_path": "/wildwebv2/src/main/java/lorine/com/wildwebv2/Service/RegistrationServiceImpl.java", "file_name": "RegistrationServiceImpl.java", "file_ext": ...
package lorine.com.wildwebv2.Service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import lorine.com.wildwebv2.Model.Registration; import lorine.com.wildwebv2.Repository.RegistrationRepository; @Service public class Registratio...
5dcaf868-4f69-4226-901d-de95a5177815
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-07-02 11:34:51", "repo_name": "dooba202/KOSTAT", "sub_path": "/IBM_SqlLoader/src/com/ibm/query/parser/state/IsNotEmptyState.java", "file_name": "IsNotEmptyState.java", "file_ext": "java", "file_size_in_byte": 650...
package com.ibm.query.parser.state; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import com.ibm.query.parser.XMLParserHandler; import com.ibm.query.rule.Condition; import com.ibm.query.rule.condition.IsNotEmptyCondition; public class IsNotEmptyState extends ConditionState { public IsNotEmptySta...
65e02a2e-31fd-4cba-bfab-219ea3aa0f60
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-18 08:11:45", "repo_name": "Yangheng1517/sakura", "sub_path": "/src/main/java/com/stx/biz/impl/UserBizImpl.java", "file_name": "UserBizImpl.java", "file_ext": "java", "file_size_in_byte": 654, "line_count": 36...
package com.stx.biz.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.stx.biz.UserBiz; import com.stx.dao.UserDao; import com.stx.entity.user; /** *@author yh *@version 1.0 *<p>日期Jun 10, 2019 11:53:24 PM</p> * */ @Service public class UserB...
b3c41fbd-3180-466f-9196-f15e558a3cc6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-20 10:10:48", "repo_name": "yangyixiaof/ModelIntoAeroSpike", "sub_path": "/PutModelIntoAeroSpike/src/main/java/cn/yyx/research/CountModelHandle/CountModelQueueMember.java", "file_name": "CountModelQueueMember....
package cn.yyx.research.CountModelHandle; public class CountModelQueueMember implements Comparable<CountModelQueueMember> { private Integer happens = -1; private String val = null; public CountModelQueueMember(int happens, String val) { this.setHappens(happens); this.setVal(val); } @Override public in...
c3a2b7c8-6bf6-489a-ab46-be3ca7073334
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-29 04:44:36", "repo_name": "abhinand01/Computer_Network", "sub_path": "/Networks/UDP/src/Client.java", "file_name": "Client.java", "file_ext": "java", "file_size_in_byte": 651, "line_count": 25, "lang": "en", ...
import java.net.*; import java.io.*; public class Client { public static void main(String[] args) throws Exception { byte b[]=new byte[3000]; FileInputStream f=new FileInputStream("C:\\Users\\LENOVO\\Desktop\\jv.txt"); System.out.println("File sending using UDP"); D...
8183c0b9-0715-4be2-aa9d-05f7a64172ab
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-02 13:07:29", "repo_name": "senpure/senpure-sport", "sub_path": "/senpure-sport-bean/src/main/java/com/senpure/sport/protocol/bean/Gender.java", "file_name": "Gender.java", "file_ext": "java", "file_size_in_by...
package com.senpure.sport.protocol.bean; /** * 性别 * * @author senpure * @time 2021-6-1 14:08:42 */ public enum Gender { MALE(1),//男 FEMALE(2),//女 UNKNOWN(-1); private int value; Gender(int value) { this.value = value; } public int getValue(){ return value; } ...
6ca94854-9f6a-4783-82e7-ebd90cdf85b7
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-10 15:44:23", "repo_name": "IanMalm/PrjGeCon", "sub_path": "/src/java/mb/AbstractMB.java", "file_name": "AbstractMB.java", "file_ext": "java", "file_size_in_byte": 651, "line_count": 29, "lang": "en", "doc_typ...
/* * 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 mb; import util.JsfUtil; /** * @ra 21450510 * @author Matheus Lopes */ public class AbstractMB { publi...
3b08cf55-b363-4b49-95e9-549c3656b70a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-06-29T21:54:06", "repo_name": "cahan0506/vyuha-daemon", "sub_path": "/TODO.md", "file_name": "TODO.md", "file_ext": "md", "file_size_in_byte": 650, "line_count": 32, "lang": "en", "doc_type": "text", "blob_id...
## TODO - Command line interface - Parse commandline arguments - Client - Run specific task - Parser - Abstract state machine - Define specific errors (StateTransitionError, EvaluationError, etc) - Identify builtin commands - DSL - REPORT task - ENV task - Daemon - Error handing - Pipe messages to...
547bdf4d-e70f-4cd4-8485-59cfee670374
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-20 15:33:21", "repo_name": "EloquentMe/ys_android_1", "sub_path": "/app/src/main/java/jisuto/drawerapp/model/loader/AsyncDrawable.java", "file_name": "AsyncDrawable.java", "file_ext": "java", "file_size_in_byt...
package jisuto.drawerapp.model.loader; import android.content.res.Resources; import android.graphics.drawable.BitmapDrawable; import java.lang.ref.SoftReference; import jisuto.drawerapp.utils.ImageScaler; public class AsyncDrawable extends BitmapDrawable { private final SoftReference<BitmapWorkerTask> workerRef...
3b6a5fa3-f7b0-4629-b08b-305d6d6245dc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-03-09T18:41:03", "repo_name": "LizardLeliel/classify.py", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 649, "line_count": 18, "lang": "en", "doc_type": "text", "b...
winclassify.py ============== Requisites ---------- This program requires these conditions to run: <br> - You are on windows (linux support expected to be soon) <br> - You have gzip.exe in the same directory as the program <br> - You have the directories temp, classes, and data in the same directory as the program <br...
2e3c3edf-092b-47dd-a118-87d7ae4b3a7c
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-29 15:28:58", "repo_name": "macwille/maze-solver", "sub_path": "/maze-solver/src/main/java/cs/helsinki/fi/App.java", "file_name": "App.java", "file_ext": "java", "file_size_in_byte": 650, "line_count": 31, "la...
package cs.helsinki.fi; import cs.helsinki.fi.gui.GUI; import cs.helsinki.fi.util.PerformanceTester; import javafx.application.Application; /** * Main class for programs. * * @version 1.6 * @author Ville Manninen */ public class App { /** * Main method if has no arguments launches GUI class, else runs ...
0dbf5e04-171a-417a-9afb-eaf0dbb3e752
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-05-14T18:22:22", "repo_name": "TheBrainGamingSingh/capstone-backend", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 650, "line_count": 37, "lang": "en", "doc_type"...
# Flask Backend for the Capstone Project *Let's just call it this until we can figure out a new name.* ### Team **Prof. Mayank Gupta** Manpreet Singh Juneja Muskaan Bakshi Shrey Bhardwaj Priyanka Vaishya Ramesh Chandra [Trello Board](https://trello.com/b/AxNKAZW1/major-project) ### About The Project * Cl...
2dbc1192-3797-4a49-becf-a65ca9022648
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-07-02T01:25:11", "repo_name": "skyformat99/MultiCoreUtility", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 650, "line_count": 19, "lang": "en", "doc_type": "text"...
A proof of concept of making use of multiple cores on a system without any extra command line arguments during compilation. Specifically, for ai contests such as theaigames.com or riddles.io where the compile time arguments are fixed and do not support multi threading. The program makes use of ```fork()``` and shared...
e09714ab-56e9-42cb-8a20-e36cf04752ef
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-06-24 12:38:45", "repo_name": "lgxkdream/algorithm-problems", "sub_path": "/src/io/github/lgxkdream/test/other/LinkedListCycleIITest.java", "file_name": "LinkedListCycleIITest.java", "file_ext": "java", "file_siz...
package io.github.lgxkdream.test.other; import io.github.lgxkdream.common.ListNode; public class LinkedListCycleIITest { public static void main(String[] args) { ListNode node1 = new ListNode(1); ListNode node2 = new ListNode(2); ListNode node3 = new ListNode(3); ListNode node4 = new ListNode(4); node1.n...
46e9c224-51a7-4d1e-92dd-5adba2b987c9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-26 21:14:22", "repo_name": "mrdude/scribbles", "sub_path": "/app/src/scribbles/notebook/SearchResult.java", "file_name": "SearchResult.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 41, "la...
package scribbles.notebook; public class SearchResult { public final Note n; public final int pos, len; public final int row, col; SearchResult(Note n, int pos, int len) { this.n = n; this.pos = pos; this.len = len; //find the row and column of the text final String docText = n.getDocumentText(); in...
f4cb6556-42af-4b10-8c97-18d41b3853cc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-09-22 15:49:41", "repo_name": "alexcwyu/algotrader", "sub_path": "/algotrader-common/src/test/java/com/unisoft/algotrader/utils/threading/disruptor/perf/TestData.java", "file_name": "TestData.java", "file_ext": "...
package com.unisoft.algotrader.utils.threading.disruptor.perf; import com.lmax.disruptor.EventFactory; import com.unisoft.algotrader.model.event.Event; import java.util.HashMap; import java.util.Map; /** * Created by alex on 6/13/15. */ class TestData implements Event<TestDataHandler, TestData> { public Map<S...
751559cd-e804-4ef1-be37-dc6ea66db411
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-17 09:54:22", "repo_name": "wht000807/MySpring", "sub_path": "/src/test/java/ioc/AwareInterfaceTest.java", "file_name": "AwareInterfaceTest.java", "file_ext": "java", "file_size_in_byte": 650, "line_count": 22...
package ioc; import com.wang.myspring.context.support.ClassPathXmlApplicationContext; import org.junit.Test; import service.HelloService; /** * @Description: * @Author: wht * @Date: 2021/08/04/0:24 */ public class AwareInterfaceTest { @Test public void test() throws Exception{ ClassPathXmlApplica...
66b2172d-2a6d-4c16-b669-57df57b1681e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-29T06:44:03", "repo_name": "kn1ghtfall/kn1ghtfall", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 682, "line_count": 13, "lang": "en", "doc_type": "text", "blob...
## 𝐇𝐞𝐥𝐥𝐨, I'm Robert ! <img src="https://raw.githubusercontent.com/ABSphreak/ABSphreak/master/gifs/Hi.gif" width="30px"> <img align="right" src="https://github.com/kn1ghtfall/kn1ghtfall/blob/main/preview.gif" width="460" /> 🎓 Systems Engineering (BSc) ➡️ Faculty of Automatic Control and Computer Science 💻 G...
4366365d-8923-45d1-a04b-fde288109a41
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-17 09:08:02", "repo_name": "wangyu19810820/JavaBasic", "sub_path": "/src/test/java/com/proxy/jdk_proxy/CarInvocationHandlerTest.java", "file_name": "CarInvocationHandlerTest.java", "file_ext": "java", "file_si...
package com.proxy.jdk_proxy; import com.proxy.Car1; import com.proxy.Moveable; import org.junit.Test; import java.lang.reflect.Proxy; public class CarInvocationHandlerTest { @Test public void test() { Car1 car = new Car1(); Class<?> cls = car.getClass(); TimeInvocationHandler th = n...
b0e3018a-51e4-4773-8fd0-40c468e3b70b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-15 05:44:32", "repo_name": "duckchanahn/LMS", "sub_path": "/LMS/src/model/MPersonalInfo.java", "file_name": "MPersonalInfo.java", "file_ext": "java", "file_size_in_byte": 665, "line_count": 33, "lang": "en", "...
package model; import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; import valueObject.VMPersonalInfo; public class MPersonalInfo { public VMPersonalInfo getPersonalInfo(String id) { VMPersonalInfo vEPersonalInfo = new VMPersonalInfo(); //파일에서 데이터 읽어서 저장할 장소. try { File ...
4d4c33e9-91af-4613-8990-503f1dc68716
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-03-04T05:42:26", "repo_name": "josephcs/post2json", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 650, "line_count": 24, "lang": "en", "doc_type": "text", "blob_id...
Converts an article (preferably blog post) into a friendly JSON format. A 5-min quick-app based on Sinatra that slurps 'url' of an article and spits out Title, Favicon, Excerpt, Body Text, Body HTML, Images. #### Gems * Pismo * Thin * JSON #### How To * Type: GET * Parameter: url (Encoded or otherwise, doesn't matt...
87cb2430-03b7-4f23-a8b8-af91cc44ffb0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-02-19 07:50:02", "repo_name": "zippy-white/meteocal-se2", "sub_path": "/meteocal-se2/src/main/java/it/polimi/se2/meteocal/utilities/TimeWindow.java", "file_name": "TimeWindow.java", "file_ext": "java", "file_size...
/* * 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 it.polimi.se2.meteocal.utilities; import java.util.Date; /** *Class to represent a time window delimited by two dates * @au...
0d8a5f96-9a4a-42ec-b51f-c0caf8c73be4
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-09-22 14:27:04", "repo_name": "edgardleal/edscript", "sub_path": "/java/src/carga/cron/TaskMonitor.java", "file_name": "TaskMonitor.java", "file_ext": "java", "file_size_in_byte": 650, "line_count": 37, "lang": "...
package carga.cron; import java.util.*; public class TaskMonitor { private List<CronTask> tasks; private static TaskMonitor innerInstance; private TaskMonitor() { tasks = new ArrayList<>(); } public static TaskMonitor getInstance() { if (innerInstance == null) { innerInstance = new TaskMonitor(); } ...
d25342cc-750e-4db0-aa47-320ee62f44c3
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-08 07:00:15", "repo_name": "2019DEV091/concert", "sub_path": "/src/test/java/concertWebsite/services/UINavigationFunctions.java", "file_name": "UINavigationFunctions.java", "file_ext": "java", "file_size_in_by...
package concertWebsite.services; import concertWebsite.pageobjects.ConcertPage; import concertWebsite.pageobjects.GooglePage; public class UINavigationFunctions implements NavigationFunctions { private final GooglePage googlePage; private final ConcertPage concertPage; public UINavigationFunctions(GooglePage go...
004c9a72-146d-46e5-a96f-5f3412cd4987
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-01 08:22:14", "repo_name": "bluewait123/panda-server-cloud", "sub_path": "/panda-server-cloud-boss-system/src/main/java/com/panda/server/cloud/boss/enums/UserStatusCode.java", "file_name": "UserStatusCode.java...
package com.panda.server.cloud.boss.enums; import lombok.AllArgsConstructor; import lombok.Getter; /** * 用户状态枚举 * @author w * @date 2020-06-30 */ @AllArgsConstructor @Getter public enum UserStatusCode { /** * 定义用户各种状态 */ ENABLE(1,"正常"), DISABLE(0,"禁用"), LOCK(2,"锁定") ; private ...
743b5819-dc7c-468a-a565-df2bf0bffefd
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-26 11:07:01", "repo_name": "karpuwapower1/stories", "sub_path": "/src/main/java/com/funfic/karpilovich/service/impl/GenreServiceImpl.java", "file_name": "GenreServiceImpl.java", "file_ext": "java", "file_size_...
package com.funfic.karpilovich.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.funfic.karpilovich.repository.GenreRepository; import com.funfic.karpilovich.repository.GenreRepository.GenreQuantity; ...
19430649-e21b-4030-a3ee-caced12fba08
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-26 19:29:01", "repo_name": "jimenabpose/TPE-PAW", "sub_path": "/sprint3/src/main/java/ar/edu/itba/it/paw/web/validator/RelateIssueFormValidator.java", "file_name": "RelateIssueFormValidator.java", "file_ext": ...
package ar.edu.itba.it.paw.web.validator; import org.springframework.stereotype.Component; import org.springframework.validation.Errors; import org.springframework.validation.Validator; import ar.edu.itba.it.paw.web.command.RelateIssueForm; @Component public class RelateIssueFormValidator implements Validator { @O...
060dff4e-4d02-4ea8-a299-8ec73d132536
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-20 12:01:48", "repo_name": "leonkamerlinn/TodoApp-MVVM-Dagger2-RoomDB-Rxjava2-", "sub_path": "/app/src/main/java/com/mvvm/todomvvm/di/module/ApplicationModule.java", "file_name": "ApplicationModule.java", "fil...
package com.mvvm.todomvvm.di.module; import android.app.Application; import android.content.Context; import com.mvvm.todomvvm.di.qualifier.ApplicationContext; import dagger.Module; import dagger.Provides; /** * Created by janisharali on 25/12/16. */ @Module public class ApplicationModule { private final Ap...
0d676356-ce8f-4913-886e-d8039ff75531
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-16 09:15:51", "repo_name": "HLong0902/vtman-be", "sub_path": "/src/main/java/com/viettel/vtman/cms/service/impl/QuesDefiSuggServiceImpl.java", "file_name": "QuesDefiSuggServiceImpl.java", "file_ext": "java", "...
package com.viettel.vtman.cms.service.impl; import com.viettel.vtman.cms.dao.QuesDefiSuggDAO; import com.viettel.vtman.cms.dto.QuesDefiSuggDTO; import com.viettel.vtman.cms.service.QuesDefiSuggService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import...
45dea8f7-2de9-4c6c-a4f1-a3fbbb816960
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-01 12:21:35", "repo_name": "shadabbahadara/notification-service", "sub_path": "/src/main/java/com/nagarro/kafka/KafkaConsumer.java", "file_name": "KafkaConsumer.java", "file_ext": "java", "file_size_in_byte": ...
package com.nagarro.kafka; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.kafka.annotation.KafkaListener; import org.springframework.stereotype.Component; import com.nagarro.model.Notification; import com.nagarro.repository.NotificationRepository; @Component public class Ka...
374aeff1-8163-49d5-aafa-54af8712a0bf
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-28 21:03:33", "repo_name": "artgluhovskiy/java-code-warrior", "sub_path": "/user-service/src/main/java/org/art/web/warrior/users/model/Role.java", "file_name": "Role.java", "file_ext": "java", "file_size_in_by...
package org.art.web.warrior.users.model; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.*; import javax.validation.constraints.NotNull; import java.util.HashSet; import java.util...
c54be3a6-ce23-4360-998a-b1edcf2b871b
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2013-09-30T20:55:19", "repo_name": "conklech/haskell-xll-example", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 650, "line_count": 11, "lang": "en", "doc_type": "text"...
haskell-xll-example =================== Example of a simple Excel 2007 XLL using Haskell. I had a heck of a time getting all the pieces to fit together. Run build.bat; it should make Adder.xll. If you open that file with Excel, you should get a new worksheet function, ADDER(), that takes two numbers and returns their...
84a21e6f-b316-40ad-afd0-2bdccc01d2c9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-08-10T22:19:31", "repo_name": "forhadulislam/linux-cheatsheets", "sub_path": "/docker.md", "file_name": "docker.md", "file_ext": "md", "file_size_in_byte": 650, "line_count": 35, "lang": "en", "doc_type": "te...
## Docker commands docker ps docker ps -a To remove a container docker rm b69147df3fe5efb docker rm -f b69147df3fe5efb ## To remove forcefully To run - docker run -d -p 8080:80 httpd ### Docker Volume docker run --rm -v ${PWD}:/myvol ubuntu /bin/bash -c "ls -l...
8314706b-055d-43cb-b17d-226e1b01d9f6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-01 12:17:49", "repo_name": "NooBGurmeeT/corona1", "sub_path": "/app/src/main/java/com/gurmeet/corona1/countactivity.java", "file_name": "countactivity.java", "file_ext": "java", "file_size_in_byte": 650, "line...
package com.gurmeet.corona1; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; public class countactivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCrea...
f76d41c1-a1d8-4845-9091-ddf31a38e2d6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-08-15T13:36:08", "repo_name": "VPetrenko376/syrve-api", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 649, "line_count": 36, "lang": "en", "doc_type": "text", "blo...
# syrve-api PHP library for convenient interaction with Syrve API. ## Requirements PHP 7.3.0 and later. ## Installation Via Composer ```bash composer require slothws/syrve-api ``` ## Basic Example Initialization ```php require __DIR__ . '/vendor/autoload.php'; use Sloth\SyrveApi\Syrve; $syrve = new Syrve([ 'uri...
3c43c38c-5a3b-44d9-a7a9-4a937cc800f6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-07-11 15:58:07", "repo_name": "x-hansong/AndroidFilter", "sub_path": "/app/src/main/java/com/hansong/filter/impl/PrefixFilter.java", "file_name": "PrefixFilter.java", "file_ext": "java", "file_size_in_byte": 664,...
package com.hansong.filter.impl; import com.hansong.filter.core.AbsFilter; import com.hansong.filter.core.IFilter; import com.hansong.filter.core.MessageData; /** * 前缀匹配 过滤器 * @author hansong * */ public final class PrefixFilter extends AbsFilter { private String[] mPrefixs; private int mOpcode; public Prefi...
f9eebc0f-06ae-40b7-abc6-5b72a7a8bccb
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-15 19:00:08", "repo_name": "kkevs/DynamicMenu", "sub_path": "/src/model/MenuItem.java", "file_name": "MenuItem.java", "file_ext": "java", "file_size_in_byte": 650, "line_count": 40, "lang": "en", "doc_type": "...
package model; public class MenuItem { private int id; private String label; public MenuItem(String label, int id) { super(); this.label = label; this.id = id; } public int getId() { return this.id; } public String getLabel() { return this.label; } public void setId(int id) { this.id = id; } ...
f19cc66d-d79c-464b-8d10-baf5784509c1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-03-11T17:45:29", "repo_name": "joernott/docker-oc-install-library", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 650, "line_count": 27, "lang": "en", "doc_type": ...
# Common install functions for docker builds This repository contains a set of shell functions to be used by various docker build scripts. ## Usage: ```bash wget -O /tmp/install/functions.sh https://raw.githubusercontent.com/joernott/docker-oc-install-library/master/install_functions.sh source /tmp/install/functions....
67e9f2bb-c378-49b8-9181-31aa820f4721
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-07 08:07:26", "repo_name": "LiaoYiWei/hystrix_demo", "sub_path": "/hystrixdemo_server/src/main/java/com/lyw/hystrixdemo_server/service/AbstractDemoService.java", "file_name": "AbstractDemoService.java", "file_...
package com.lyw.hystrixdemo_server.service; import lombok.Setter; import java.util.Random; /** * <p>注释</p> * * @author liaoyiwei */ public abstract class AbstractDemoService { @Setter protected int percent = 0; @Setter protected long sleepTime = 0; public void sleep() { try { ...
98e6a8ec-ad6d-476b-9e45-b9d5c82c2063
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-21 17:26:19", "repo_name": "Deepak145/allinone", "sub_path": "/src/main/java/com/my/app/user/service/InstructorService.java", "file_name": "InstructorService.java", "file_ext": "java", "file_size_in_byte": 650...
package com.my.app.user.service; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.my.app.user.dao.InstructorDao; import com.my.app.user.models.Instructor; @Service public class InstructorService...
1afdc9f4-1f26-4f63-a777-462056ceff97
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-17 14:32:08", "repo_name": "ygorshenin/omim", "sub_path": "/android/src/com/mapswithme/maps/purchase/AdsRemovalPurchaseDialog.java", "file_name": "AdsRemovalPurchaseDialog.java", "file_ext": "java", "file_size...
package com.mapswithme.maps.purchase; import android.content.Context; import android.support.annotation.Nullable; import com.mapswithme.maps.base.BaseMwmDialogFragment; public class AdsRemovalPurchaseDialog extends BaseMwmDialogFragment { @Nullable private PurchaseController<AdsRemovalPurchaseCallback> mControll...
17c409de-d68c-4a89-99a2-2d271bdf5f39
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-20 04:37:06", "repo_name": "vedantinigaikwad/myjavarepo", "sub_path": "/Practical_Exam_Vedantini_Gaikwad_WFS4/HSBCPracticalExam/src/com/demo/bean/Electronics.java", "file_name": "Electronics.java", "file_ext":...
package com.demo.bean; public class Electronics extends Product { private int warranty; private String type; //default constructor public Electronics() { warranty=0; } //parameterized constructor public Electronics(int code, String name, int qty, double price,int type, int warranty) { super(code, name, q...
1a5db0a3-ce1d-4659-99ad-159a66ee03d2
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-01 03:21:33", "repo_name": "jmange01/java-settlers", "sub_path": "/src/com/settlers/gui/renderer/AbstractRenderer.java", "file_name": "AbstractRenderer.java", "file_ext": "java", "file_size_in_byte": 651, "lin...
package com.settlers.gui.renderer; import java.awt.Graphics; import java.awt.Point; import java.util.ArrayList; import java.util.List; import com.settlers.gui.renderer.drawer.Drawer; public abstract class AbstractRenderer<T> { private List<Drawer<T>> drawers = new ArrayList<Drawer<T>>(); protected T boa...
593e9dfc-a59b-4416-9926-5137da51cbef
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-08-04 15:40:48", "repo_name": "andyglick/javATE", "sub_path": "/guidate/guidate-zk/src/main/java/it/amattioli/guidate/wizard/WizardNavigationEvent.java", "file_name": "WizardNavigationEvent.java", "file_ext": "ja...
package it.amattioli.guidate.wizard; import org.zkoss.zk.ui.event.Event; public class WizardNavigationEvent extends Event { public static final String NAME = "onWizardNavigation"; private AbstractWizardComposer composer; public WizardNavigationEvent(AbstractWizardComposer composer) { super(NAME, null)...
b44dcfea-18e7-4ed5-b081-c8384fe55561
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-10 12:00:39", "repo_name": "alejandro-marques/redhat-fuse-examples", "sub_path": "/1.4-file-to-file-with-header-and-filter/src/main/java/com/redhat/training/jb421/OrderRouteBuilder.java", "file_name": "OrderRo...
package com.redhat.training.jb421; import org.apache.camel.builder.RouteBuilder; public class OrderRouteBuilder extends RouteBuilder { @Override public void configure() throws Exception { String path1 = "/order/orderItems/orderItem/orderItemPrice/text()"; String path2 = "number(/order/orderItems/orderItem/orde...
490e2eec-5d79-4b0b-af94-55da68b1d669
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-16 09:26:14", "repo_name": "gromikkool/Senla-TASKS-", "sub_path": "/src/com/senla/task/fourth/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 691, "line_count": 26, "lang": "en",...
package com.senla.task.fourth; import com.senla.task.third.TextReader; import java.util.InputMismatchException; public class Main { public static void main(String[] args) { try { TextReader textReader = new TextReader(); System.out.println("Введите текст: "); Strin...
12b4471f-09bd-4db2-afb7-046b6fc86bf6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-30 09:52:32", "repo_name": "topolyai5/vLogger", "sub_path": "/vlogger/src/main/java/io/vlogger/archive/RollingFileArchiveStrategy.java", "file_name": "RollingFileArchiveStrategy.java", "file_ext": "java", "fil...
package io.vlogger.archive; import java.io.File; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class RollingFileArchiveStrategy implements FileArchiveStrategy { //MB private int maxSize; public RollingFileArchiveStrategy(int maxSize) { this.maxSize = m...
af41d697-7200-49d3-ace2-508f68a38fe8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-11-14 05:14:52", "repo_name": "fabjj77/taurus", "sub_path": "/taurus-web/src/main/java/com/whitelabelled/webapp/listener/SessionCounter.java", "file_name": "SessionCounter.java", "file_ext": "java", "file_size_in...
package com.whitelabelled.webapp.listener; import javax.servlet.http.HttpSessionListener; import javax.servlet.http.HttpSessionEvent; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class SessionCounter implements HttpSessionListener { private static final Log log = Log...
629f0070-21db-45c4-aaca-801e53679bb6
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-05-27 06:20:39", "repo_name": "wmleungab/Comp4521-Hippos", "sub_path": "/app/src/main/java/com/hkust/comp4521/hippos/datastructures/Category.java", "file_name": "Category.java", "file_ext": "java", "file_size_in_...
package com.hkust.comp4521.hippos.datastructures; /** * Created by Yman on 15/5/2015. */ public class Category { private int id; private String name; public Category() { } ; public Category(int id, String name) { this.name = name; this.id = id; } public int getID()...
57a37cda-4018-4a1c-8737-d8752552a7b9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-29 08:03:39", "repo_name": "zhongyuxin1011/MobileSafe002", "sub_path": "/src/com/zyx1011/mobilesafe002/entity/FlowInfo.java", "file_name": "FlowInfo.java", "file_ext": "java", "file_size_in_byte": 672, "line_c...
package com.zyx1011.mobilesafe002.entity; import android.graphics.drawable.Drawable; public class FlowInfo implements Comparable<FlowInfo> { public String packageName; public String name; public Drawable icon; public int uid; public long rcv; public long snd; @Override public String toString() { return "F...
21a60f0c-6d9e-4a73-8474-4154b6bee6fa
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-02-16 13:11:48", "repo_name": "mobmad/java-spring-session-concurrency-experiment", "sub_path": "/src/main/java/no/mobmad/SlowLegacyCarRepository.java", "file_name": "SlowLegacyCarRepository.java", "file_ext": "ja...
package no.mobmad; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.List; @Component @Scope("request") public class SlowLegacyCarRepository { public List<Car> getCars(int responseDelay) { try { ...
e538219e-d472-4d0d-8c1d-f9be18500d03
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-19 05:42:09", "repo_name": "huragok/LeetCode-Practce", "sub_path": "/157 - Read N Characters Given Read4/rncgr4/src/rncgr4/Solution.java", "file_name": "Solution.java", "file_ext": "java", "file_size_in_byte":...
package rncgr4; public class Solution extends Reader4 { /** * @param buf Destination buffer * @param n Maximum number of characters to read * @return The number of characters read */ public int read(char[] buf, int n) { int countRead = 0; char [] bufTmp = new char [4]; ...
d96782f4-5f1c-41af-b82c-f16017e4b538
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-17 07:58:11", "repo_name": "lvjianhua/sc", "sub_path": "/sc-parent/sc-ps-facade/src/main/java/org/sc/facade/ps/constant/UserType.java", "file_name": "UserType.java", "file_ext": "java", "file_size_in_byte": 68...
package org.sc.facade.ps.constant; /** * Created by Sonic Wang on 2017/4/14. */ public enum UserType { PERSONAL("PERSONAL", "客户"), STAFF("STAFF", "内部员工"), WHOLESALE("WHOLESALE", "批发"), OTHER("OTHER", "其他"), RESTAURANT("RESTAURANT", "餐饮"), PLATFORM("PLATFORM", "电商"), AGENT("AGENT", "代理...
ade72150-fb41-46b2-9970-1ebdb98ae4a0
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-01 19:29:58", "repo_name": "cClaude/cchlib", "sub_path": "/cchlib-io/src/main/java/com/googlecode/cchlib/io/EmptyReader.java", "file_name": "EmptyReader.java", "file_ext": "java", "file_size_in_byte": 649, "li...
package com.googlecode.cchlib.io; import java.io.IOException; import java.io.Reader; /** * An always empty {@link Reader} */ public class EmptyReader extends Reader { private boolean open; /** * Create an {@link EmptyReader} */ public EmptyReader() { open = true; } @Overr...
ddd7b114-4443-4148-8437-eee518731efe
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-07 18:46:13", "repo_name": "OleksandrJAN/SpringBootRestApiRailwayApp", "sub_path": "/src/main/java/com/railwayApp/api/converter/StationConverter.java", "file_name": "StationConverter.java", "file_ext": "java",...
package com.railwayApp.api.converter; import com.railwayApp.api.domain.Station; import com.railwayApp.api.service.StationService; import org.springframework.core.convert.converter.Converter; import org.springframework.stereotype.Component; @Component public class StationConverter implements Converter<String, Station>...
398d49df-5eb9-469e-b083-00f041881bdc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-08-13T19:20:47", "repo_name": "nadrimajstor/micropython-wiki", "sub_path": "/Timer-Implementation.md", "file_name": "Timer-Implementation.md", "file_ext": "md", "file_size_in_byte": 648, "line_count": 17, "la...
Ideally we have to come to a compromise where for space: * exposing the functionality in C. * propogating it up to a Python interface. and for features: * gettng easy access to the registers so anything can be done. * exposing useful interfaces for general use. Finding the right balance is a challenge... Proposal: 1...
c9314098-6bcb-4aac-8723-bc5c788a0b82
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-09 23:18:14", "repo_name": "DoronRaymond/BankForTesting", "sub_path": "/src/main/java/DepositAccount.java", "file_name": "DepositAccount.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 28, "...
import java.util.Date; public class DepositAccount extends Account { private double interest; private Date releaseDate; public DepositAccount(String id, int userId, double balance, double interest, Date releaseDate) { super(id, AccountType.DEPOSIT_ACCOUNT, userId, balance); this.interest...
6a666500-a4c5-46ba-a18b-92d8b028df30
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-06-12 04:08:57", "repo_name": "CRSP/CRSP", "sub_path": "/src/com/crsp/dao/impl/DepartmentDAOImpl.java", "file_name": "DepartmentDAOImpl.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 30, "lang...
/** * */ package com.crsp.dao.impl; import java.util.List; import org.springframework.stereotype.Repository; import com.crsp.dao.DepartmentDAO; import com.crsp.entity.Department; /** * @author Administrator * */ @Repository("departmentDAO") public class DepartmentDAOImpl extends BaseDAOImpl<Department> implem...
9e456345-e39d-49a0-9c22-b61d5ed21867
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-08-07T20:42:35", "repo_name": "Beaujr/sportsdata", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 648, "line_count": 19, "lang": "en", "doc_type": "text", "blob_id"...
SPORTDATA ============== Generating meaningful graphs based on Social Sports results -------------- This is a Angular, BootStrap, HighCharts, Chart.js, PHP Project. I have created a scraping class for app.sportdata.com. If you wish to use this just create a PHP Class which will load a JSON file containing data in th...
21ee6510-3293-4111-bb3f-a1d304864bc1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-30 01:18:55", "repo_name": "Bryanv6/workStuff", "sub_path": "/weekOne/Banking/src/main/java/Bank/model/Accounts.java", "file_name": "Accounts.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": ...
package Bank.model; /** * Created by bryanvillegas on 4/10/18. */ public class Accounts { private int accountID; private double moneyAmount; public Accounts(){} public Accounts(int accountID, double moneyAmount){ this.accountID = accountID; this.moneyAmount = moneyAmount; } p...
a0c25ddc-2b6c-4df4-a51f-28d3eeadfb1d
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-10-17T16:04:42", "repo_name": "johnfonte/pull-unassigner", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 649, "line_count": 12, "lang": "en", "doc_type": "text", "...
# Pull Unassigner Set up according to this [article](https://medium.com/babylon-engineering/bringing-some-order-to-pull-request-reviews-27ac55d181bb). Add the Slack token and GitHub user token in the application.properties sample, add your GitHub org and team as well. Then, replace application.properties with your ve...
c7096cf6-0a7e-4317-8da7-29e4d5e9d5bc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-01-09T10:12:04", "repo_name": "VladislavBedritsky/TravelProject-Spring-Hibernate-", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 650, "line_count": 45, "lang": "e...
# TravelProject The application is in progress. # Used technologies: * Maven * Docker * Heroku ## Database: * MySQL ## Backend: * Spring IoC/DI * Spring Boot * Spring MVC * Spring Security * Spring Data JPA * ORM(Hibernate) ## Frontend: * Bootstrap * Thymeleaf * HTML5 * CSS3 ### How to run 1. Tomcat `...
a31cc62e-8d0e-4a45-957c-0c21626f3ddc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-05 09:35:12", "repo_name": "mdamaniarepo/spring-jpa", "sub_path": "/src/main/java/com/musings/jpa/xmlsessionfactory/XMLHibernateSessionFactory.java", "file_name": "XMLHibernateSessionFactory.java", "file_ext":...
package com.musings.jpa.xmlsessionfactory; import org.hibernate.SessionFactory; import org.hibernate.boot.registry.StandardServiceRegistryBuilder; import org.hibernate.cfg.Configuration; import com.musings.jpa.entities.User; public class XMLHibernateSessionFactory { public static SessionFactory createSessionFactor...
6a702d7f-0791-45ea-b5d3-433c10bc174a
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-06-19 20:49:40", "repo_name": "andi-git/formyournotes", "sub_path": "/formyournotes-parent/formyournotes-android-dao/src/main/java/at/ahammer/formyournotes/dao/json/FileHelperForm.java", "file_name": "FileHelperF...
package at.ahammer.formyournotes.dao.json; import java.io.File; public class FileHelperForm extends FileHelper<RequiredDataForm> { public FileHelperForm(File directory) { super(directory); } @Override protected String getSpecificFileName(RequiredDataForm requiredData) { StringBuilder sb = new StringBuilder(...
fd571cc0-b08d-48ea-a30d-a367b13d08a9
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-26 01:08:57", "repo_name": "cin/flarg", "sub_path": "/android/src/main/java/com/cinple/flarg/android/FlargActivity.java", "file_name": "FlargActivity.java", "file_ext": "java", "file_size_in_byte": 649, "line_...
package com.cinple.flarg.android; import com.badlogic.gdx.graphics.Texture; import com.cinple.flarg.core.Flarg; import android.os.Bundle; import com.badlogic.gdx.backends.android.AndroidApplication; import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration; public class FlargActivity extends AndroidA...
0c1639da-8834-4c7e-9a5b-dadf508afba8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-27 15:23:19", "repo_name": "urpalreloaded/ksql-spike", "sub_path": "/ksql-kafka-spike/src/main/java/org/sdk/serializers/CustomerSerializer.java", "file_name": "CustomerSerializer.java", "file_ext": "java", "fi...
package org.sdk.serializers; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.kafka.common.serialization.Serializer; import org.sdk.domain.Customer; public class CustomerSerializer implements Serializer<Customer> { private Object...
8031371c-d90a-4b05-829a-2f9d4d63efd8
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-28 23:23:53", "repo_name": "DenielP4/ikbo-03-19", "sub_path": "/practice11/LinkedQueue.java", "file_name": "LinkedQueue.java", "file_ext": "java", "file_size_in_byte": 650, "line_count": 35, "lang": "en", "doc...
package practice11; import java.util.LinkedList; public class LinkedQueue<Q> extends AbstractQueue<Q> { private LinkedList<Q> x; public LinkedQueue() { this.x = new LinkedList<>(); } @Override public boolean offer(Q q) { return x.add(q); } @Override ...
5970d12b-a9e4-45d2-bf80-50349168adfa
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2009-04-30 15:15:47", "repo_name": "bagheera/dows", "sub_path": "/service/test/org/dows/CatalogTest.java", "file_name": "CatalogTest.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 24, "lang": "en",...
package org.dows; import static org.junit.Assert.assertTrue; import org.dows.catalog.Author; import org.dows.catalog.Book; import org.junit.Test; public class CatalogTest { @Test public void shouldMatchPartialTitlesIgnoringCase(){ Book b = new Book(null,null,"a quick brown fox",null,null,null); ...
9e5e7aba-d096-4aad-835f-3f630a300ddb
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-19 02:49:38", "repo_name": "adamvonbaron/cs473", "sub_path": "/src/cs473/Flight.java", "file_name": "Flight.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 27, "lang": "en", "doc_type": "cod...
package cs473; import org.mongodb.morphia.annotations.Id; import java.util.Date; public class Flight { @Id public String number; public String airline; public String origin; public String destination; public String plane; public int distance; public String dayOfWeek; public Flight(String number,...
460fd117-71b8-427f-bda3-a2e40b81472e
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-19 13:00:00", "repo_name": "ibexes/Torn", "sub_path": "/torn-api/src/test/java/com/torn/api/utils/JsonConverterTest.java", "file_name": "JsonConverterTest.java", "file_ext": "java", "file_size_in_byte": 649, "...
package com.torn.api.utils; import com.torn.api.model.exceptions.TornApiAccessException; import org.junit.jupiter.api.Test; import java.io.IOException; import static com.torn.api.FileReaderUtil.readFileAsString; import static org.junit.jupiter.api.Assertions.fail; public class JsonConverterTest { @Test pub...
d0951388-f592-49bc-aaec-dc4c17f976aa
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-09 08:57:44", "repo_name": "gudiwadaswetha/collections", "sub_path": "/src/test/java/com/vtiger/crudpractice/CreateProjectWithPojoTest.java", "file_name": "CreateProjectWithPojoTest.java", "file_ext": "java", ...
package com.vtiger.crudpractice; import org.testng.annotations.Test; import com.seleniumproject.generic.EndPoints; import com.seleniumproject.pojoclass.ProjectLibrary; import io.restassured.http.ContentType; import static io.restassured.RestAssured.*; public class CreateProjectWithPojoTest { @Test public void cr...
c45ad001-20d3-4ed8-b759-78e59974c3fc
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-23 09:54:18", "repo_name": "chooyee/shiva", "sub_path": "/src/main/java/io/vertx/shiva/liquor/Value.java", "file_name": "Value.java", "file_ext": "java", "file_size_in_byte": 650, "line_count": 39, "lang": "en...
package io.vertx.shiva.liquor; import java.util.List; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class Value { @SerializedName("fields") @Expose public List<Field> fields = null; /** * No args constructor for use in serialization *...
6f1def9d-d7fb-4308-8a58-ef0bc7ecdfa1
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-18 08:10:12", "repo_name": "gaoshou880510/zjport", "sub_path": "/src/main/java/cn/gov/learn/selenium/WebDriverTest.java", "file_name": "WebDriverTest.java", "file_ext": "java", "file_size_in_byte": 649, "line_...
package cn.gov.learn.selenium; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class WebDriverTest { public static WebDriver driver; public static void main(String[] args) { //driver = new FirefoxDriver(); ...