id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
d2376d57-eb95-4b2c-ae69-d8d2654c6eb2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-09-13 04:17:32", "repo_name": "rafex/fca-uv", "sub_path": "/core/src/main/java/mx/uv/fca/core/jdbc/SQLiteJDBC.java", "file_name": "SQLiteJDBC.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 32,... | package mx.uv.fca.core.jdbc;
import mx.uv.fca.core.enums.JDBCEnum;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class SQLiteJDBC implements IJDBC {
private Connection conexion;
static {
}
SQLiteJDBC() {
try {
Class.forName(JDB... |
c519694b-4315-4153-ad5a-9893080c7afb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-08-15T06:05:49", "repo_name": "ankurk91/laravel-bundler", "sub_path": "/wiki/babel.md", "file_name": "babel.md", "file_ext": "md", "file_size_in_byte": 649, "line_count": 31, "lang": "en", "doc_type": "text",... | ## Babel
Babel loader with `@babel/preset-env` is already configured for you.
Create a `babel.config.js` file on your project root like:
```js
export default {
presets: [
[
'@babel/preset-env',
{
bugfixes: true,
modules: false,
useBu... |
d14d190b-98df-419f-b02b-d90efc768976 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-16 00:08:09", "repo_name": "CorentinLeal/Chat", "sub_path": "/src/main/ListenerClient.java", "file_name": "ListenerClient.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 36, "lang": "en", "d... | package main;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.Date;
public class ListenerClient implements Runnable{
public BufferedReader objectInputStream;
private String message = null;
public ListenerClient(BufferedReader inputStream) {
super()... |
854231f6-22de-4ddb-902e-b0991050e612 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-15 15:28:41", "repo_name": "yoeaki/book", "sub_path": "/src/ThirdDay/Expansion.java", "file_name": "Expansion.java", "file_ext": "java", "file_size_in_byte": 673, "line_count": 34, "lang": "en", "doc_type": "c... | package ThirdDay;
public class Expansion {
public String[] expansion(String[] arr, String element){
//扩容标识符
boolean flag = true;
//定义一个新数组
String[] nameArray = arr;
for (int i = 0; i < arr.length; i++) {
if (arr[i] == null){
arr[i] = element;
... |
b0dfa6c5-7bb4-4bef-80ed-ebaf1a6f91ae | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2013-07-19T18:53:58", "repo_name": "cloudant-labs/sync.py", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 649, "line_count": 26, "lang": "en", "doc_type": "text", "blob... | sync.py
=======
**Playground** for sync ideas.
To run the demo:
python tests/demo.py
## Current features
* store json docs
* define secondary indexes on said doc
* define collections
* retrieve docs by id, index, collection
* execute arbitrary SQL
## Wishlist
* Pagination of index/collection result set
... |
227b219d-c326-4ad1-8347-4351c6651f1c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-19 15:27:15", "repo_name": "somanbaqai/Internshipjan2018", "sub_path": "/ArrayListDeleteItem/app/src/main/java/com/example/soman/array_listdeleteitem/CarDetails.java", "file_name": "CarDetails.java", "file_ext... | package com.example.soman.array_listdeleteitem;
/**
* Created by soman on 1/10/2018.
*/
public class CarDetails {
private String CarName;
private int seriol_no;
public CarDetails() {
}
public CarDetails(String carName, int seriol_no) {
CarName = carName;
this.seriol_no = seriol... |
cc9c75e1-3c71-41b9-af76-1bd559fcac50 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-18 04:58:57", "repo_name": "bnguyen212/CS111C", "sub_path": "/Module 1/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 648, "line_count": 24, "lang": "en", "doc_type": "code", "b... | public class Main {
public static void main(String[] args) {
Parcel x = new Parcel("ATL123");
Parcel y = new OvernightParcel("NYC456", 2, true);
y.setWeight(15);
System.out.println(y.toString());
System.out.println(checkEmail("a@h.co.uk"));
}
public static boolean checkEmail(String email) {
... |
6890b81d-7f84-432c-a974-abf292a9fe36 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-21 02:05:23", "repo_name": "githubken0426/car_inn", "sub_path": "/src/inn/shopping/api/service/goodsBrand/GoodsBrandServiceImpl.java", "file_name": "GoodsBrandServiceImpl.java", "file_ext": "java", "file_size_... | package inn.shopping.api.service.goodsBrand;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import inn.shopping.api.dao.GoodsBrandMapper;
import inn.shopping... |
51ad90f8-d51f-4126-a118-a117e4dc0bca | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-18 08:49:24", "repo_name": "xiangzhaoyuan/framework-test", "sub_path": "/spring/src/main/java/com/xzy/spring/interfaces/beanDefinitionRegistryPostProcessor/TestMain.java", "file_name": "TestMain.java", "file_e... | package com.xzy.spring.interfaces.beanDefinitionRegistryPostProcessor;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import java.util.Map;
public class TestMain {
public static void main(String[] args) {
AnnotationConfigApplicationContext context = new AnnotationCon... |
0362059f-2836-46fa-903f-20ea099996a8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-07-02T17:15:54", "repo_name": "JBVenuto/arthistorygame", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 648, "line_count": 10, "lang": "en", "doc_type": "text", "bl... | # arthistorygame
------
## Description
This is a memory game that uses popular pieces of art throughout history. The goal of the game is to click on each picture without clicking on the same picture twice. However, each time a picture is clicked the order of all the pictures is changed.
------
## Technology Used
The ga... |
739e3b35-5e94-4d40-95d3-ee1376a3b4c2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-03 07:34:21", "repo_name": "Sipay/java-sdk", "sub_path": "/src/main/java/sipay/paymethod/StoredCard.java", "file_name": "StoredCard.java", "file_ext": "java", "file_size_in_byte": 648, "line_count": 31, "lang"... | package sipay.paymethod;
import org.json.JSONObject;
import java.util.regex.Pattern;
public class StoredCard implements PayMethod {
String token;
public StoredCard(String token) {
setToken(token);
}
public JSONObject update(JSONObject payload) {
payload.put("token", this.token);
... |
784a460d-39e0-49c3-9a33-69b6c5dbf360 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-08 09:22:06", "repo_name": "cc736236451/SpringCloudDemo", "sub_path": "/eurekaFeign/src/main/java/com/eureka/eurekafeign/api/UseApiFactory.java", "file_name": "UseApiFactory.java", "file_ext": "java", "file_si... | package com.eureka.eurekafeign.api;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;
@Component
public class UseApiFactory implements FallbackFactory<UseApi> {
@Override
public UseApi create(Throwable throwable) {
return new UseApi() {
@Override
... |
7c79b910-8297-43f0-b99e-b4e1c5f28efd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-07 23:35:44", "repo_name": "okadakosuke/board", "sub_path": "/board/src/board/service/DepartmentService.java", "file_name": "DepartmentService.java", "file_ext": "java", "file_size_in_byte": 648, "line_count":... | package board.service;
import static board.utils.CloseableUtil.*;
import static board.utils.DBUtil.*;
import java.sql.Connection;
import java.util.List;
import board.beans.Department;
import board.dao.DepartmentDao;
public class DepartmentService {
public List<Department> getDepartment() {
Connection connectio... |
7c48e720-8d59-4f6d-8f9b-a7ae0e1f039e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-24 17:43:28", "repo_name": "shahza95/harmonia", "sub_path": "/harmonia/harmonia-app-server-dto/src/main/java/syed/shahza/harmonia/backend/dto/FeedbackDtoList.java", "file_name": "FeedbackDtoList.java", "file_e... | package syed.shahza.harmonia.backend.dto;
import java.util.ArrayList;
import java.util.List;
//Custom high level object of multiple FeedbackDtos
public class FeedbackDtoList {
private List<FeedbackDto> feedbackDtoList = new ArrayList<>();
public FeedbackDtoList() {
super();
}
public Fee... |
c8fa2bd2-044e-434e-9d9c-4e942a5bb787 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-30 00:03:06", "repo_name": "firen777/CS166HW9", "sub_path": "/test/Law.java", "file_name": "Law.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 19, "lang": "en", "doc_type": "code", "blob_id... | import java.io.PrintStream;
public class Law extends AdmissionsDecorator { public Law(AdmissionEvaluator evaluator) { super(evaluator); }
public boolean evaluate(Application app) {
boolean value = false;
System.out.println("Inside Law Decorator");
if (app.getLsatScore() >= 160) {
System.out.prin... |
f993ae0f-5509-41c0-84b1-c790bded06cd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-15 08:04:09", "repo_name": "codeGoogler/futurelab-netconnect-tools", "sub_path": "/futurelab-netconnect-tools2/src/main/java/com/net/tools/futurelabnetconnecttools/common/req/AbstractResponse.java", "file_name... | package com.net.tools.futurelabnetconnecttools.common.req;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
/**
* @author 衡钊清
* @Classname AbstractResponse
* @Description 请求响应
* @Date 2020/2/12 10:54
*/
@Data
@ToString
public abstract class AbstractResponse implements Serializable {
... |
4ce44e72-0ee4-41b8-90ab-5ce2f7f5ae62 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-08 23:58:49", "repo_name": "alexz606/menu_api", "sub_path": "/menu/src/main/java/tech/base2/menu/Menu.java", "file_name": "Menu.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 47, "lang": "e... | package tech.base2.menu;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Menu {
@Id
private String day;
private String protein;
private String carb;
public Menu(String day, String protein, String carb) {
super();
this.day = day;
this.protein = protein;
this.carb = carb;
}
pu... |
19ed2db7-1618-4b77-a0d1-d5f9df66d5ee | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-08-28 07:43:48", "repo_name": "jharmelink/powerio", "sub_path": "/mapper/src/main/java/net/harmelink/powerio/mapper/IntegerMapper.java", "file_name": "IntegerMapper.java", "file_ext": "java", "file_size_in_byte":... | package net.harmelink.powerio.mapper;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class IntegerMapper extends RegexMapper<Integer> {
private static final Logger LOG = LoggerFactory.getLogger(IntegerMapper.class);
public Integer mapToObject(fin... |
8e3bbbaa-d535-4ac3-95f7-4295fa9714b9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-06T10:03:38", "repo_name": "centre-for-educational-technology/htk-web", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 649, "line_count": 25, "lang": "en", "doc_... | # htk-web
## NB! This repository is now archieved and web page is using a different platform instead. This is kept for historic reasons.
## Build and develop
Using bundler with locally placed gems is recommended and allows sandboxing
1. Install [Ruby](https://www.ruby-lang.org) on your machine
2. Clone repo and cd ... |
8d014514-3856-449c-8417-4842c4a55ab0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-04 06:52:43", "repo_name": "GaoLeaf/smile", "sub_path": "/smile-tool/src/main/java/com/smile/tool/json/JsonSerializer.java", "file_name": "JsonSerializer.java", "file_ext": "java", "file_size_in_byte": 669, "l... | package com.smile.tool.json;
import java.util.Collection;
import java.util.stream.Collectors;
/**
* JSON 序列化
*
* @author gaowenjin
* @date 2021/1/29
* @description:
*/
public class JsonSerializer {
private JsonSerializer() {
}
/**
* JSON 串转换为字符串
* @param obj
* @return
*/
pu... |
ad2b18a6-14ac-4ca9-b293-75a53538f536 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-12 12:04:47", "repo_name": "dingfei2018/springcloud_mybatis_generator", "sub_path": "/src/main/java/com/dingfei/framework/util/BigDecimalSerialize.java", "file_name": "BigDecimalSerialize.java", "file_ext": "j... | package com.dingfei.framework.util;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
import java.math.BigDecimal;
import java.text.DecimalFormat;
public class BigDecimalSerializ... |
4c347ca9-b880-4221-b0f6-959c9ea5f2e0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2010-10-27 14:36:28", "repo_name": "groupsky/Contacto", "sub_path": "/src/main/java/eu/masconsult/contacto/ui/SharingOptions.java", "file_name": "SharingOptions.java", "file_ext": "java", "file_size_in_byte": 649, "li... | package eu.masconsult.contacto.ui;
import com.vaadin.ui.Button;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.Label;
import com.vaadin.ui.Window;
public class SharingOptions extends Window {
private static final long serialVersionUID = 1L;
public SharingOptions() {
setModal(true);
setWidth("50%");
cen... |
60642aac-2d35-4805-bf20-a2ec65e3b5f2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-25 08:50:34", "repo_name": "oleksiiBobko/s", "sub_path": "/src/main/java/x/y/z/multithread/LockExample.java", "file_name": "LockExample.java", "file_ext": "java", "file_size_in_byte": 648, "line_count": 22, "l... | package x.y.z.multithread;
import java.util.concurrent.locks.ReentrantLock;
public class LockExample {
final ReentrantLock reentrantLock = new ReentrantLock();
public void performTask() {
reentrantLock.lock();
try {
System.out.println(Thread.currentThread().getName() + ": Lock ac... |
5b20ffa7-ac4d-4a55-bb93-18a7be9ba093 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-13 09:50:18", "repo_name": "moutainhigh/tiankafei", "sub_path": "/tiankafei-code-tool/tiankafei-base/src/main/java/org/tiankafei/base/sort/chain/StandSortChain.java", "file_name": "StandSortChain.java", "file_... | package org.tiankafei.base.sort.chain;
import java.util.ArrayList;
import java.util.List;
/**
* 责任链模式的链路管理集合
*
* @ClassName StandSortChain
* @Author tiankafei
* @Date 2019/12/1
* @Version V1.0
**/
public class StandSortChain {
private List<SortChain> chainList = new ArrayList<>();
private int index =... |
3c521d42-4153-4d4d-bef3-90f1b3b256de | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-26 13:15:23", "repo_name": "NABEEL-AHMED-JAMIL/pdftest", "sub_path": "/multi-mudule/service/src/main/java/com/ballistic/service/HotelService.java", "file_name": "HotelService.java", "file_ext": "java", "file_s... | package com.ballistic.service;
import com.ballistic.component.HotelBean;
import com.ballistic.configuration.PropertiesConfig;
import com.ballistic.domain.Hotel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class HotelService {
@Au... |
4cb7f3e1-2913-4f4a-9571-a3fb89c3fe71 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-08 16:51:48", "repo_name": "tekayakarim/soa-esb", "sub_path": "/ApacheCamel/src/main/java/com/example/processor/SoapProcessor.java", "file_name": "SoapProcessor.java", "file_ext": "java", "file_size_in_byte": ... | package com.example.processor;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
public class SoapProcessor implements Processor{
private String ch;
public SoapProcessor(String ch) {this.ch=ch;}
public SoapProcessor() {}
public void process(Exchange exchange) throws Exception {
... |
ce98883e-aa08-4ece-974c-3f058af0af41 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-02-23 01:16:58", "repo_name": "late-autumn/Java", "sub_path": "/17_01_ALL/src/Day12_Machine/RandomCoffee.java", "file_name": "RandomCoffee.java", "file_ext": "java", "file_size_in_byte": 689, "line_count": 40, "l... | package Day12_Machine;
import java.util.*;
/*************************
*import java.util.Scanner;
*import java.util.Random;
*************************/
public class RandomCoffee {
Scanner sc=new Scanner(System.in);
void menu(){
Stock st = new Stock();
Random ran = new Random(); //랜덤 객체 생성
int random... |
7a1e84b8-485f-4284-8a6f-5166a6ce1352 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-30 03:55:28", "repo_name": "compman2408/BlackWidow", "sub_path": "/app/src/main/java/com/example/blackwidow/ListItem.java", "file_name": "ListItem.java", "file_ext": "java", "file_size_in_byte": 649, "line_cou... | package com.example.blackwidow;
/**
* Created by Bobak on 11/26/2017.
* Object used to bind data to TextViews in the ExpandableListView option menu
*/
public class ListItem {
private String label;
private boolean selected;
public ListItem(String label, boolean selected) {
this.label = label;
... |
71d27bc6-33cd-408a-b030-611128de288b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-03-16T13:41:23", "repo_name": "paysafecard/paysafecash-prestashop_1.6-1.7.6-v2.0", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 649, "line_count": 14, "lang": "en... | # paysafecash-prestashop_1.6-1.7.6-v2.0
## Paysafecash
Paysafecash is an alternative cash-based payment method that makes it possible to pay securely and easily with cash on the Internet. Using Paysafecash, products or services can be ordered online and then paid for with cash offline at the nearest payment point by ... |
842ced1d-198a-4ee8-8ecb-af7cd310d6cb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-12-30T22:42:14", "repo_name": "geirs73/yxney", "sub_path": "/testcoverage/Test coverage with dotnet and vscode.md", "file_name": "Test coverage with dotnet and vscode.md", "file_ext": "md", "file_size_in_byte... | # Test coverage with dotnet and vscode
This directory contains two examples on how to set up dotnet project with
testing coverage. The focus is to get some nice information in VS code so that
you as a developer can fix the coverage.
1. [Simple coverage](01-simple/Simple%20coverage.md) - Simple example of test
cove... |
e6fc8d40-40b3-45b9-a347-87f831b227be | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-04 10:09:45", "repo_name": "kiss9815/SampleMelon1", "sub_path": "/app/src/main/java/com/example/tacademy/samplemelon1/Artists.java", "file_name": "Artists.java", "file_ext": "java", "file_size_in_byte": 649, "... | package com.example.tacademy.samplemelon1;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.ArrayList;
/**
* Created by Tacademy on 2016-02-04.
*/
public class Artists implements JSONParseHandler{
ArrayList<Artist> artist;
@Override
public void setData(JSONObject jsonObject) {
... |
7518c832-2c15-4632-bacb-bbcb788742ed | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-30 09:38:00", "repo_name": "denghanjie/apcsa_frq", "sub_path": "/2013/DownloadInfo.java", "file_name": "DownloadInfo.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 32, "lang": "en", "doc_ty... | package frq2013;
public class DownloadInfo {
/** Creates a new instance with the given unique title and sets the
* number of times downloaded to 1.
* @param title the unique title of the downloaded song
*/
public DownloadInfo(String title){
this.title = title;
downloadTimes = 1;
}
/** @return the title *... |
1f7ad155-bc9b-4d54-9b05-f6e4f713791a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-07-04T20:34:05", "repo_name": "ldnpydojo/pylon2019", "sub_path": "/team5/readme.md", "file_name": "readme.md", "file_ext": "md", "file_size_in_byte": 651, "line_count": 27, "lang": "en", "doc_type": "text", "... | # PyLondinium 2019 Dojo
An implementation of the arcade classic
[Asteroids](https://www.youtube.com/watch?v=WYSupJ5r2zo)
using [PyGame Zero](https://pygame-zero.readthedocs.io/en/stable/index.html). (Sort of.)

To play:
* Up Key Accelerates
* Left & Right Keys Steer
* Space-Bar Shoots
* There are ... |
50a70aed-ff37-4c6d-9b56-c4bae697af3f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-02-27 14:11:24", "repo_name": "caixiaomo/eventteller", "sub_path": "/eventteller/CloudEventTeller/src/news/model/WebSite.java", "file_name": "WebSite.java", "file_ext": "java", "file_size_in_byte": 649, "line_cou... | package news.model;
import java.util.Map;
import news.filter.titleNewsFilter;
public class WebSite {
public String SiteName ;
public Map<String,Integer> Sites;
public Map<String,titleNewsFilter> filters;
public Map<String, titleNewsFilter> getFilters() {
return filters;
}
public void setFilters(Map<... |
c4b100cc-8b4f-4f56-a698-d2b8ec6ec63f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-05 01:57:39", "repo_name": "painl/GIF3101-MiniP", "sub_path": "/app/src/main/java/ca/ulaval/ima/mp/game/roles/Witch.java", "file_name": "Witch.java", "file_ext": "java", "file_size_in_byte": 650, "line_count":... | package ca.ulaval.ima.mp.game.roles;
public class Witch extends Role {
private boolean lifePotion;
private boolean deathPotion;
public Witch() {
super("Sorcière", "witch.png", Side.VILLAGER, false, Type.WITCH);
this.lifePotion = true;
this.deathPotion = true;
}
public boo... |
6538dd8e-7177-4fd4-9a58-11aecfb94720 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-19 09:47:14", "repo_name": "windflowersnowandmoon/MyProjectFramework", "sub_path": "/CommonLibrary/src/main/java/com/example/common/utils/RetrofitImpl.java", "file_name": "RetrofitImpl.java", "file_ext": "java... | package com.example.common.utils;
import android.content.Context;
import retrofit2.Retrofit;
public class RetrofitImpl {
public static final String BASE_URL = "";
//读超时时常,单位:毫秒
public static final int READ_TIME_OUT = 15 * 1000;
//写超时时常,单位:毫秒
public static final int WRITE_TIME_OUT = 15 * 1000;
... |
4b8acf2c-dbba-434d-9b87-4b9c070189e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-27 11:45:42", "repo_name": "ckvenkat/Java_Practise", "sub_path": "/src/com/role/privilages/RoleBO.java", "file_name": "RoleBO.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 28, "lang": "en"... | package com.role.privilages;
import java.util.Arrays;
public class RoleBO {
private int maxCount=0;
private String temp1 = "";
void display(Role[] roles) {
for(int i=0;i<roles.length;i++){
int k = roles[i].getPrivilege().length;
if(k>maxCount)
maxCount=k;
}
... |
32f81c75-d03b-4cd2-b756-9ed1e86e4a16 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-06 22:29:14", "repo_name": "danielleinov/PTM_Flight_Simulator_Project", "sub_path": "/src/commands/OpenDataServerCommand.java", "file_name": "OpenDataServerCommand.java", "file_ext": "java", "file_size_in_byte... | package commands;
import client_side.FlightSimulatorClientHandler;
import interpreter.Parser;
import client_side.ClientHandler;
import server_side.MySerialServer;
import server_side.Server;
public class OpenDataServerCommand implements Command {
@Override
public int doCommand(String[] args) {
int por... |
3c9a4155-d418-482d-85bf-e2f509d3bf6e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-27 16:34:21", "repo_name": "jroizenberg/ini", "sub_path": "/fm-web/src/com/institucion/fm/structure/model/HpaCrud.java", "file_name": "HpaCrud.java", "file_ext": "java", "file_size_in_byte": 649, "line_count":... | package com.institucion.fm.structure.model;
import org.zkoss.zul.Label;
import com.institucion.fm.desktop.service.I18N;
import com.institucion.fm.desktop.view.GridCrud;
public class HpaCrud extends GridCrud{
/**
*
*/
private static final long serialVersionUID = 1L;
private Label contactLabel= new Label(""... |
72a7404f-ead2-427b-9d31-131111eefb85 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-02-22T05:25:45", "repo_name": "praveenrajtb/Scrapy--Scrape_Random_Websites", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 649, "line_count": 11, "lang": "en", "do... | # Scrapy--Scrape_Random_Websites
http://www.eplanning.ie
We are scraping agents information in the planning applications received in all the counties in the last 48 days.
Steps:
Get all urls for the counties.
For each county Page find the 'Received Applications' url.
In Received Applications Page Set time limit to 48 ... |
272e77f7-9f02-4362-ad92-b419621630c0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-24 07:54:36", "repo_name": "jamalludin13/adbak", "sub_path": "/Project_2/Project_2_BangunRuang/kerucut.java", "file_name": "kerucut.java", "file_ext": "java", "file_size_in_byte": 653, "line_count": 27, "lang"... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package bangunruang;
/**
*
* @author Jamalludin
*/
public class kerucut extends Bangunruang{
int jari;
int pi;... |
874d25de-287e-4173-8c6a-7ae61d71da5b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-01-20 02:53:03", "repo_name": "CobaltTechnology/Chat-Bot-Example-2--from-book-", "sub_path": "/Brain.java", "file_name": "Brain.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 24, "lang": "en",... | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package chatbotexample2;
/**
*
* @author gregoryhanford
*/
public class Brain {
//Declare the Vocabulary
private Vocabulary myVocab;
//The Brain's constructor takes in the Vocabulary as input, sets its ow... |
0d93507b-1b12-43a6-8f14-18864526e111 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-06-30 21:04:00", "repo_name": "alexkandres/criminal-intent", "sub_path": "/app/src/main/java/com/example/alex/criminalintent/DatePickerFragment.java", "file_name": "DatePickerFragment.java", "file_ext": "java", "... | package com.example.alex.criminalintent;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.os.Bundle;
import java.util.Calendar;
/**
* Created by Alex on 6/29/2015.
*/
public class DatePickerFragment extends android.support.v4.app.DialogFragment {
@Override
public Dialog onCrea... |
198db671-67e0-443f-be66-91a53f83b0d9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-11 16:05:05", "repo_name": "Nightchar/ContactData", "sub_path": "/app/src/main/java/com/droid/contactdata/common/enums/ExceptionEnum.java", "file_name": "ExceptionEnum.java", "file_ext": "java", "file_size_in_... | package com.droid.contactdata.common.enums;
import com.droid.contactdata.R;
/**
* Enum to handle the common exceptions.
*/
public enum ExceptionEnum {
ConnectException(R.string.err_connect_exception),
UnknownHostException(R.string.err_unknown_host_exception),
SSLException(R.string.err_ssl_exception),
... |
d1733bed-424a-42b5-9551-8e60837df811 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-08 05:45:21", "repo_name": "gvnaakhilsurya/20186087_ADS-1", "sub_path": "/Assignments/m18/Week-3_Assignment-1/Stock.java", "file_name": "Stock.java", "file_ext": "java", "file_size_in_byte": 651, "line_count":... | class Stock {
private String cmpyname;
private float perchange;
Stock(String cmpyname, float perchange) {
this.cmpyname = cmpyname;
this.perchange = perchange;
}
public String getCmpynm(){
return cmpyname;
}
public void setCmpynm(String cmpyname){
this.cmpyname = cmpyname;
}
public float getPer... |
ae01862f-c5b4-4ab5-9c25-ea16178292a8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-12-13 17:55:42", "repo_name": "ColumbusNorthHighSchoolCodingClub/RatBots", "sub_path": "/src/main/RatBotsRunner.java", "file_name": "RatBotsRunner.java", "file_ext": "java", "file_size_in_byte": 649, "line_count"... | package main;
import util.PAGuiUtil;
import util.RatBotManager;
import world.RatBotWorld;
public class RatBotsRunner
{
public static void main(String[] args)
{
PAGuiUtil.setLookAndFeelToOperatingSystemLookAndFeel();
RatBotWorld world = new RatBotWorld();
world.show(); //Just ... |
ed7bc068-2771-41ac-a222-7b0be4e94f91 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-25 09:25:43", "repo_name": "ch3ngxuyuan/LaShop", "sub_path": "/app/src/main/java/com/lala/lashop/utils/Tos.java", "file_name": "Tos.java", "file_ext": "java", "file_size_in_byte": 655, "line_count": 34, "lang"... | package com.lala.lashop.utils;
import android.content.Context;
import android.widget.Toast;
/**
* Created by JX on 2017/12/18.
*/
public class Tos {
private static Toast toast = null;
public static boolean ISSHOW = true;
/**
* 显示短Toast
*
* @param context
* @param text
*/
... |
38e5baca-43c7-4f1f-a9df-4c7f555d1ee0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-12 18:44:15", "repo_name": "entradajuan/PBMovements", "sub_path": "/PBMovements/src/main/java/com/needine/pbmovements/DTO/BankAccountDTO.java", "file_name": "BankAccountDTO.java", "file_ext": "java", "file_siz... | package com.needine.pbmovements.DTO;
import java.io.Serializable;
public class BankAccountDTO implements Serializable{
private static final long serialVersionUID = 1L;
private String id;
private Integer activated;
public BankAccountDTO() {
}
@Override
public String toString() {
retur... |
13865ae1-2e86-48fc-80a1-e5edc2b4eae3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-08-13 11:09:21", "repo_name": "lianghongbin/caiuu", "sub_path": "/core/src/main/java/com/meishihome/core/service/ImageService.java", "file_name": "ImageService.java", "file_ext": "java", "file_size_in_byte": 652,... | package com.meishihome.core.service;
import com.meishihome.core.dao.ImageMapper;
import com.meishihome.core.entity.Image;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* User: Administ... |
d1b16a73-63a2-45ee-a88a-092d351af6f2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-09-30 15:54:16", "repo_name": "awjgriffin/scratchpad", "sub_path": "/src/test/java/selfstudy/concurrency/testobjects/SemaphoreLockedObject.java", "file_name": "SemaphoreLockedObject.java", "file_ext": "java", "fi... | package selfstudy.concurrency.testobjects;
import java.util.concurrent.Semaphore;
public class SemaphoreLockedObject implements RunnableSharedObject {
final private Semaphore semaphore = new Semaphore(1);
public void use(String threadname) {
try {
System.out.println( threadname + " waitin... |
ca2ced04-7384-4242-baac-6e55e35e740b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-11-01T21:21:08", "repo_name": "xros/github_navigator", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 649, "line_count": 38, "lang": "en", "doc_type": "text", "blob... | GitHub Navigator
================
Alexander Liu
##### A web application to search latest repositories by created time on GitHub.
No more than 5 results for each search.
This app uses Python Web Framework "Tornado" and information are processed from GitHub API v3

Preparation
------... |
2c91001d-2642-4e1c-9ec7-b3ccfe7077f8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-06-25T07:48:43", "repo_name": "ashapoms/AzureADNodeJsXamarin", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 649, "line_count": 12, "lang": "en", "doc_type": "text... |
# AzureADNodeJsXamarin
This sample demonstrates how to set up Node.js REST API service using OAuth2 protocol. Then this service is integrated with Azure Active Directory for API protection.
Xamarin mobile client is used to test access to the service.
REST API service is built using Restify and MongoDB with the fo... |
c8f8b2e1-f713-47e0-bbe7-03f66c1f28cc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-06-16T22:06:36", "repo_name": "DcZipPL/Tiels", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 648, "line_count": 24, "lang": "en", "doc_type": "text", "blob_id": "6... | # **REWRITE IS IN PROGRESS**
Project is under rewrite in Avalonia UI instead of WPF.
- The basic features of rewrite are working. I'm planning alpha release of Tiels II in 2023!
# Tiels
Tiels is Open Source Fences Aternative.
With Tiels you can organize your desktop icons with tiles.
## Alpha version is available
Alp... |
9d27999e-156d-4803-8dd2-752d8096ee7e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-08-18 09:19:11", "repo_name": "FireTercel/atom", "sub_path": "/src/main/java/com/ftww/basic/model/Syslog.java", "file_name": "Syslog.java", "file_ext": "java", "file_size_in_byte": 658, "line_count": 33, "lang": ... | package com.ftww.basic.model;
import com.ftww.basic.annotation.Table;
import com.ftww.basic.common.DictKeys;
import com.jfinal.log.Logger;
/**
* 日志Mode
* @author FireTercel 2015年5月27日
*
*/
@Table(dataSourceName = DictKeys.db_dataSource_main, tableName = "pt_syslog")
public class Syslog extends BaseModel<Syslog> ... |
b7bef2c1-6b63-4471-afd0-ed27fb7d4dd0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-19 04:43:22", "repo_name": "ariel179/selectableRecyclerList", "sub_path": "/app/src/main/java/com/example/ariel/recyclerrowselector/Activity2.java", "file_name": "Activity2.java", "file_ext": "java", "file_siz... | package com.example.ariel.recyclerrowselector;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import org.w3c.dom.Text;
public class Activity2 extends AppCompatActivity {
@Override
protected void onCreate(Bundle saved... |
dcc66801-7cb5-4045-8a3f-9079a68bcaef | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-08 15:33:21", "repo_name": "caoyielliot/Java-smart-phone", "sub_path": "/yc2_Mini2_Assignment3/yc2_Mini2_Assignment3_PartA/app/src/main/java/org/me/yc2_mini2_assignment3_parta/Model/People.java", "file_name": ... | package org.me.yc2_mini2_assignment3_parta.Model;
/**
* Created by caoyi on 16/3/22.
*/
public abstract class People {
private int SID;
private int[] scores=new int[5];
public People(int sID, int[] scores) {
super();
this.SID = sID;
this.scores = scores... |
ef66b78b-eb12-4142-a363-27399f64ffab | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-09 01:52:26", "repo_name": "dlee121/VersusAndroid", "sub_path": "/app/src/main/java/com/vs/bcd/versus/model/RNumAndUList.java", "file_name": "RNumAndUList.java", "file_ext": "java", "file_size_in_byte": 648, "... | package com.vs.bcd.versus.model;
import java.util.ArrayList;
/**
* Created by dlee on 11/17/17.
*/
public class RNumAndUList {
private String rnum;
private ArrayList<String > usersList;
public RNumAndUList(String rnum, ArrayList<String > usersList){
this.rnum = rnum;
this.usersList = u... |
a529be24-d43d-46d2-aeaa-ecfeab2acfc4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-12 06:17:20", "repo_name": "fan-boy/College-Board", "sub_path": "/upload.java", "file_name": "upload.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 34, "lang": "en", "doc_type": "code", "bl... | package com.ueuo.helloworld.p2f;
/**
* Created by Aaditya on 07-03-2017.
*/
public class upload {
public String name;
public String url;
public String username;
// Default constructor required for calls to
// DataSnapshot.getValue(User.class)
public upload() {
}
p... |
72c93a61-c204-4b95-a2db-adbf42fd585f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-02-04T03:41:15", "repo_name": "abeaudoin2013/react-beautiful-dnd-multi-list-typescript-example", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 648, "line_count": 3... | ### A typescript example of [React Beautiful DnD](https://github.com/atlassian/react-beautiful-dnd) multi-list transfer.
New to [React](https://reactjs.org/)?
New to [Typescript](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html)?
Download the example.
```
git clone git@github.com:abeaudoin20... |
ed5c1dd9-a160-4703-ad29-f849f468436f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-09 13:38:02", "repo_name": "guigf/SpringMVC", "sub_path": "/SpringMVC/src/net/codejava/spring/dao/ContatoRowMapper.java", "file_name": "ContatoRowMapper.java", "file_ext": "java", "file_size_in_byte": 649, "li... | package net.codejava.spring.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import net.codejava.spring.model.Contact;
public class ContatoRowMapper implements RowMapper<Contact>{
@Override
public Contact mapRow(ResultSet rs, int arg1) thro... |
b66fc62c-693e-456d-bd6f-e10b83e9488c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-11-02 09:24:53", "repo_name": "kongq1983/concurrent", "sub_path": "/thread/src/main/java/com/kq/RunRepeatDemo.java", "file_name": "RunRepeatDemo.java", "file_ext": "java", "file_size_in_byte": 648, "line_count": ... | package com.kq;
/**
* RunRepeatDemo
*
* @author kq
* @date 2019-06-05
*/
public class RunRepeatDemo {
public static void main(String[] args) {
Runnable r = ()->{
long index = 0;
while (true){
System.out.println("index="+index);
if(index%10000==0)... |
dae120f7-1df2-4202-8b46-0813c4cd20f9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-13 02:01:40", "repo_name": "happy6eve/infogen_soa", "sub_path": "/src/main/java/com/infogen/core/util/CODE.java", "file_name": "CODE.java", "file_ext": "java", "file_size_in_byte": 812, "line_count": 31, "lang... | package com.infogen.core.util;
/**
* infogen框架的返回值错误码
*
* @author larry/larrylv@outlook.com/创建时间 2015年4月2日 下午12:34:23
* @since 1.0
* @version 1.0
*/
public enum CODE {
success(200, "成功"), //
parameters_incorrect(400, "参数不正确"), //
parameters_invalid(401, "参数不符合规范"), //
service_notfound(402, "没有这个服务"), //
n... |
2cfea056-fd0e-40ed-8cf4-269f127553da | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-09 20:14:17", "repo_name": "Andywh/conan", "sub_path": "/src/main/java/io/conan/bootstrap/TcpConnectionPtr.java", "file_name": "TcpConnectionPtr.java", "file_ext": "java", "file_size_in_byte": 648, "line_count... | package io.conan.bootstrap;
import lombok.Getter;
import lombok.Setter;
import sun.rmi.transport.tcp.TCPConnection;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import static io.conan.bootstrap.StateE.kConnected;
/**
* Created by Ai Lun on 2020-08-06.
*/
@Getter
@Setter
public class TcpConnecti... |
44128f9a-5add-4768-9082-da6d6f93c615 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-12 12:15:10", "repo_name": "wooniverse7/Java-project", "sub_path": "/Java project/Week6/src/collec/hw/ScoreCollection.java", "file_name": "ScoreCollection.java", "file_ext": "java", "file_size_in_byte": 658, "... | package collec.hw;
public class ScoreCollection {
private int score; //점수
private String name; //이름
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setScore(int score) {
this.score = score;
}
public int getScore() {
retur... |
5a69416f-1dbd-4e85-b3ba-1452a4e8e0e2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-09-26 03:37:48", "repo_name": "deenliu/AndroidInstantMsg", "sub_path": "/server/Provider.java", "file_name": "Provider.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 29, "lang": "en", "doc_typ... | import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
/* Server - Provider
* Multithreaded server that listens to port 8089
* waiting connection of client
*
*/
public class Provider {
public static void main(String[] agrs) {
try {
int i = 1;
ServerSocket s = new ... |
65332bfb-d56c-4c8d-a358-36fec4cebf5b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-23 04:56:24", "repo_name": "GreatLandmark/DesignPatterns_HeadFirst", "sub_path": "/Ch8_Template/src/main/java/glm/design_patterns/head_first/ch8_template_app/MyFrame.java", "file_name": "MyFrame.java", "file_e... | package glm.design_patterns.head_first.ch8_template_app;
import javax.swing.*;
import java.awt.Graphics;
public class MyFrame extends JFrame {
public MyFrame(String title) {
super(title);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setSize(400, 400);
// this.setVisibl... |
1e6c63e9-2baa-44f5-9b9b-22c48f645c02 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-10-18 06:55:23", "repo_name": "vwr0527/VoidBubble", "sub_path": "/src/vwr/project/services/graphics/ElementLine.java", "file_name": "ElementLine.java", "file_ext": "java", "file_size_in_byte": 648, "line_count": ... | package vwr.project.services.graphics;
import static org.lwjgl.opengl.GL11.*;
/**
* A primitive that represents a line.
* It has two color points.
*/
public class ElementLine extends Element
{
private PointColor p1;
private PointColor p2;
/**
* Call for each point you want to add.
*/
public void AddPoint(... |
4d442f46-89a2-4bc6-b3e2-01716bf17448 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-22 18:09:34", "repo_name": "fedorovsf/jokes-app", "sub_path": "/src/main/java/guru/springframework/controllers/JokesController.java", "file_name": "JokesController.java", "file_ext": "java", "file_size_in_byte... | package guru.springframework.controllers;
import guru.springframework.services.JokeService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Created by sergei on 26/07/2018.
*/
@Controller
public class JokesCo... |
6e3e46f5-59bb-4f19-b141-bfd7cab51786 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-14 10:22:26", "repo_name": "a799923347/hogwarts", "sub_path": "/src/test/java/com/bowen/hogwarts/rule/ExceptedExceptionTest.java", "file_name": "ExceptedExceptionTest.java", "file_ext": "java", "file_size_in_b... | package com.bowen.hogwarts.rule;
import static org.hamcrest.Matchers.isA;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
/**
* @author zhaobaowen
*/
public class ExceptedExceptionTest {
@Rule
public final ExpectedException thrown = ExpectedException.none();
@Test
... |
f1108026-ab50-40b4-ac32-c91c40662c40 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-21 15:43:37", "repo_name": "SoorajSoman/Dagger2DI", "sub_path": "/app/src/main/java/com/project/dagger2di/mainActivityFeatures/MainActivityModule.java", "file_name": "MainActivityModule.java", "file_ext": "jav... | package com.project.dagger2di.mainActivityFeatures;
import com.project.dagger2di.MainActivity;
import com.project.dagger2di.adapter.RandomUserAdapter;
import com.squareup.picasso.Picasso;
import dagger.Module;
import dagger.Provides;
/**
* Created by skynet on 6/20/18.
*/
@Module
public class MainActivityModule {... |
7b065401-fdde-4119-b57c-d80375054043 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-04-30T15:30:14", "repo_name": "srmteam/campusconnect", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 648, "line_count": 20, "lang": "en", "doc_type": "text", "blob... | # campusconnect
this application updates the students about the activities ,events happening around the campus .
It gives a tribune to the clubs, the teams and the associations of
college as well as serves the needs of students seeking information
based on their interest and requirements.
Along with the updates of... |
a95abef3-638f-411d-af76-f844ae4cb4fc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-11 17:17:47", "repo_name": "ivakoleva/javacourse181112", "sub_path": "/src/main/java/com/musala/javacourse181112/io/LineNumberReaderExample.java", "file_name": "LineNumberReaderExample.java", "file_ext": "java... | package com.musala.javacourse181112.io;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;
/**
* Created by Iva Koleva on 26.11.2018
*/
public class LineNumberReaderExample {
public static void main(final String[] args) throws IOException {
try (final LineNumberReade... |
d46ffa5b-1b14-4a78-b27d-61396ddb9f1a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-02-08 09:07:28", "repo_name": "wdxxl/webApp", "sub_path": "/src/test/java/com/wdxxl/dao/impl/LovDaoImplTestCase.java", "file_name": "LovDaoImplTestCase.java", "file_ext": "java", "file_size_in_byte": 648, "line_c... | package com.wdxxl.dao.impl;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.Rollback;
import com.wdxxl.domain.Lov;
import com.wdxxl.test.util.SpringTransactionalTestCase;
public class LovDaoIm... |
2fb14059-3081-4e76-89be-46f2aa4ee80f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-04 02:38:51", "repo_name": "LJGuardiola-zz/Final-Seminario", "sub_path": "/src/main/java/api/storage/models/Person.java", "file_name": "Person.java", "file_ext": "java", "file_size_in_byte": 648, "line_count":... | package api.storage.models;
import com.sun.istack.internal.Nullable;
import net.sf.oval.constraint.NotNegative;
public abstract class Person {
@Nullable
@NotNegative(message = "El ID de una persona no puede ser negativo.")
private Integer ID;
public Person(Integer ID) {
this.ID = ID;
}
... |
e85c849a-553d-4ee9-94a3-c3d460614703 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-31 09:55:20", "repo_name": "chervonyit/servlet-crud-operations", "sub_path": "/src/main/java/com/tc/CrudMain.java", "file_name": "CrudMain.java", "file_ext": "java", "file_size_in_byte": 648, "line_count": 24,... | package com.tc;
import com.tc.dao.Student;
import com.tc.dbconnectors.SqlConnector;
public class CrudMain {
public static void main(String[] args) {
SqlConnector connector = new SqlConnector();
Student student = new Student("test", 12, 1);
Student student1 = new Student("s2 updated", 12,... |
cc8c387a-38d5-4bef-b021-ee075455c0c4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-13 12:25:17", "repo_name": "MAHBOUBIsakina/SD_TOPK_approach", "sub_path": "/src/java/Distributed_topk_query_processing/List_EncryptedItems.java", "file_name": "List_EncryptedItems.java", "file_ext": "java", "f... | package distributed_approach;
//import proposition_1_quicksort_optimise.*;
//import proposition_1_optimisee.*;
//import proposition_1_hash_function_byte.*;
//import propo1_pqt_tll_eg_vector2.*;
//import propo1_pqt_tll_eg_vector.*;
//import proposition1_equal_size_packets.*;
/*
* To change this license header, choo... |
d0533167-82b2-4977-b80e-4b5ccac34d39 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-07-16 12:12:17", "repo_name": "onemotre/programmingLearning", "sub_path": "/java/lambdaTest/runnable.java", "file_name": "runnable.java", "file_ext": "java", "file_size_in_byte": 647, "line_count": 26, "lang": "e... | package lambdaTest;
import java.lang.annotation.Repeatable;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class runnable{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
Runnable outputPow = ()->
... |
a84877f1-b1f8-4c30-8f65-87d7fde0b6b2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-15 02:36:16", "repo_name": "yejee1228/spring5-11-14", "sub_path": "/src/main/java/com/hanrabong/web/enums/Path.java", "file_name": "Path.java", "file_ext": "java", "file_size_in_byte": 648, "line_count": 18, "... | package com.hanrabong.web.enums;
public enum Path {
UPLOAD_PATH, CLAWLING_TARGET;
@Override
public String toString() {
String result = "";
switch (this) {
case UPLOAD_PATH:
result = "C:\\Users\\User\\git\\EGOV_HANRABONG\\src\\main\\webapp\\resources\\upload";
break;
case CLAWLING_TARGET:
result = "... |
1b840276-7be0-47c9-8744-dac61762f240 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-24 15:47:17", "repo_name": "chisozzz/JavaSE_Code", "sub_path": "/myThread/src/com/ths08/ThreadDemo.java", "file_name": "ThreadDemo.java", "file_ext": "java", "file_size_in_byte": 648, "line_count": 21, "lang":... | package com.ths08;
import java.util.*;
public class ThreadDemo {
public static void main(String[] args) {
StringBuffer sb =new StringBuffer();
StringBuilder sb2 =new StringBuilder();
Vector<String>vec =new Vector<>();
ArrayList<String>array =new ArrayList<>();
Hashtable<S... |
61646b6a-80ac-4948-b15e-e2bee7114252 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-08 04:11:07", "repo_name": "mkyu0917/JavaEX", "sub_path": "/src/com/javaex/basic/practice1/PracticeTripleOper.java", "file_name": "PracticeTripleOper.java", "file_ext": "java", "file_size_in_byte": 681, "line_... | package com.javaex.basic.practice1;
import java.util.Scanner;
public class PracticeTripleOper {
public static void main(String[] args){
/*int i=4, j=6, total=0;
boolean result;
result=i+j ==10 ? true: false;
System.out.println(result);
*/
Scanner scan= new Scanner(System.in);
... |
101ab871-8ed0-4ade-af57-0f993ab1ddeb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-21 00:26:46", "repo_name": "MyUserNameHSW/ChongDianDian", "sub_path": "/src/com/cdd/bean/OrderMenu.java", "file_name": "OrderMenu.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 42, "lang": ... | package com.cdd.bean;
import java.io.Serializable;
public class OrderMenu implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private int pic;
private String name;
public OrderMenu(int pic, String name) {
super();
this.pic = pic;
this.name = name;
}
... |
7a6d989f-06de-43dc-a658-fd3efa463095 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-09-28T05:50:27", "repo_name": "markten/verilog-tron", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 648, "line_count": 11, "lang": "en", "doc_type": "text", "blob_... | # Verilog TRON
This is a simple two player implementation of the lightcycle TRON game. It was originally developed using the Xilinx ISE with a Digilent Basys 2 Spartan 3 FPGA development board. It utilizes the RAM modules included on the development board as a rudimentary video buffer.
## Setup
Synthesize and write t... |
7daba5a2-cb27-4051-9aab-267f1e9e6768 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-24 17:43:28", "repo_name": "shahza95/harmonia", "sub_path": "/harmonia/harmonia-rest-api/src/main/java/syed/shahza/harmonia/restapi/action/AddCommentAction.java", "file_name": "AddCommentAction.java", "file_ex... | package syed.shahza.harmonia.restapi.action;
import syed.shahza.harmonia.backend.dto.CommentDto;
import syed.shahza.harmonia.restapi.client.RestClient;
//class encapsulating methods for adding a comment through the backend RESTful endpoint
public class AddCommentAction {
private final RestClient restClient;
p... |
4cc2167b-c83f-42ab-92a3-a9e8a4063669 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-21 16:58:00", "repo_name": "kanouakira/blog", "sub_path": "/back-end/src/main/java/cn/kanouakira/service/impl/CategoryServiceImpl.java", "file_name": "CategoryServiceImpl.java", "file_ext": "java", "file_size_... | package cn.kanouakira.service.impl;
import cn.kanouakira.entity.Category;
import cn.kanouakira.mapper.CategoryMapper;
import cn.kanouakira.service.CategoryService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class CategoryServiceImpl impleme... |
7c55afc0-8d28-4e5e-b7af-b255833b468e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-30 08:30:14", "repo_name": "Alexey911/Shop", "sub_path": "/src/test/java/com/zhytnik/shop/datahelper/ProductDtoDH.java", "file_name": "ProductDtoDH.java", "file_ext": "java", "file_size_in_byte": 648, "line_co... | package com.zhytnik.shop.datahelper;
import com.zhytnik.shop.dto.ProductDto;
import java.util.Locale;
import static com.zhytnik.shop.datahelper.StringDH.createString;
/**
* @author Alexey Zhytnik
* @since 28.06.2016
*/
public class ProductDtoDH {
private ProductDtoDH() {
}
public static ProductDto ... |
2e37fb03-888a-4142-b6cb-d4c85087b628 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-10 05:40:51", "repo_name": "ChristoferRush/BeeRoute", "sub_path": "/src/main/java/com/rushedstudio/domino/api/mapper/RoleMapper.java", "file_name": "RoleMapper.java", "file_ext": "java", "file_size_in_byte": 6... | package com.rushedstudio.domino.api.mapper;
import com.rushedstudio.domino.api.model.RoleDto;
import com.rushedstudio.domino.domain.Role;
import org.mapstruct.*;
import org.mapstruct.factory.Mappers;
import java.util.List;
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public inter... |
ed060b93-07c8-413b-86ec-dafc68b211f2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-08-30T04:09:00", "repo_name": "alvinctk/machine_learning_dev_guide", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 648, "line_count": 18, "lang": "en", "doc_type":... | # machine-learning-dev-guide
Machine Learning Guide
<details>
<summary>Textbook Resources </summary>
- [Machine Learning For Humans](https://bit.ly/mlforhumansbook)
- [Python for Data Analysis](https://amzn.to/2Z1QZNp)
- [Hands-on Machine Learning with Scikit-Learn and TensorFlow](https://amzn.to/2GormNb)
- [Grokking... |
55f27024-c9b5-45b7-9095-e5bfce4c0be0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-10-21T13:03:36", "repo_name": "tannn/healthchatbot", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 648, "line_count": 18, "lang": "en", "doc_type": "text", "blob_i... | # Healthcare Portal Chatbot
Created for HackISU Fall 2018
#### Current chat functionality:
- Greeting - "Hi chatbot!"
- Create appointment - "I would like to schedule an appointment"
- Confirm doctor - "Dr. Fung"
- Confirm date - "on Wednesday"
- Request refill - "I would like a refill of my medicine"
- P... |
189deabf-f7e1-492f-8b1a-4eb42d7247dc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-14 12:42:03", "repo_name": "aaronParkinson1/invManagement", "sub_path": "/Transaction.java", "file_name": "Transaction.java", "file_ext": "java", "file_size_in_byte": 649, "line_count": 30, "lang": "en", "doc_... | package EmailGen;
import java.util.Date;
public class Transaction {
// Transactions have date, quantity and transaction type
private final Date timestamp;
private final int quantity;
String type;
// Transaction constructor
public Transaction (String type, int quantity) {
... |
ab7594b9-d7ca-4eee-ac08-84d59341f6a1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-12-30 14:31:22", "repo_name": "ssaudacious/hl7messagemodifier", "sub_path": "/mmlib/src/main/java/gov/nist/healthcare/mu/mmlib/data/DbDataSets.java", "file_name": "DbDataSets.java", "file_ext": "java", "file_size... | package gov.nist.healthcare.mu.mmlib.data;
import java.util.List;
import gov.nist.healthcare.mu.mmlib.data.hibernate.AppConfig;
import gov.nist.healthcare.mu.mmlib.data.hibernate.IHL7MessagesService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class DbDataSets implements... |
3c7a6f5a-7a01-4ba4-b8cf-ca9368465c22 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-10 13:19:46", "repo_name": "yangzijia/school5", "sub_path": "/school5/src/main/java/com/b505/tools/TryCatchRollAlertService.java", "file_name": "TryCatchRollAlertService.java", "file_ext": "java", "file_size_i... | package com.b505.tools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.b505.bean.Roll_Alert;
import com.b505.service.IRollAlertService;
@Component
public class TryCatchRollAlertService
{
@Autowired
private IRollAlertServi... |
b6bb8890-0096-417a-9424-d4dd156879ea | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-02 18:23:40", "repo_name": "jarrod-kallis/jpa-in-10-steps", "sub_path": "/src/main/java/com/in28minutes/learning/jpa/jpain10steps/service/UserDAO.java", "file_name": "UserDAO.java", "file_ext": "java", "file_s... | package com.in28minutes.learning.jpa.jpain10steps.service;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;
import org.springframework.stereotype.Repository;
import com.in28minutes.learning.jpa.jpain10steps.entity.User;
// Spring annotation... |
7085d848-7d32-459f-b7ec-56e1d1cbfbc9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-15 22:02:03", "repo_name": "yv71/ModelisationS3", "sub_path": "/Phase 1/AlaMine/src/alamine/State/State.java", "file_name": "State.java", "file_ext": "java", "file_size_in_byte": 648, "line_count": 33, "lang":... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package alamine.State;
import alamine.Nain;
/**
*
* @author yv066840
*/
public abstract class State {
private final int d... |
da30ce63-5d85-4abb-a1ee-bbccba55c489 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-15 11:22:02", "repo_name": "jtaca/BSc-Computer-Engineering-Projects", "sub_path": "/2nd_Year/PCD/Projeto v13/Project - Googa-lhe - ClassesPartilhadas V13/src/classes_partilhadas/Noticia.java", "file_name": "No... | package classes_partilhadas;
import java.io.Serializable;
public class Noticia implements Serializable{
/**
*
*/
private static final long serialVersionUID = -1336865104274157755L;
private String title;
private String text;
public Noticia(String titulo, String text) {
this.title = tit... |
fbda23e1-5a72-4ba0-918c-062d958efbec | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-12-31 05:22:26", "repo_name": "binadan/src", "sub_path": "/myAcl/src/com/gcflower/dao/RoleDao.java", "file_name": "RoleDao.java", "file_ext": "java", "file_size_in_byte": 676, "line_count": 37, "lang": "en", "doc... | package com.gcflower.dao;
import java.util.List;
import com.gcflower.entity.*;
import com.gcflower.entity.Role;
public class RoleDao extends BaseDao{
/**
* 查询所有
* @return
*/
public List<Role> findAll(){
return (List<Role>)getHibernateTemplate().find("from Role order by id");
}
/**
* 根据名称查找是否存在... |
d4418bf2-72f0-428f-9600-282c19d2fc75 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-31 06:46:18", "repo_name": "sotu27/colorCounter", "sub_path": "/src/main/java/org/springTest/Entity/Infomation.java", "file_name": "Infomation.java", "file_ext": "java", "file_size_in_byte": 649, "line_count":... | package org.springTest.Entity;
import org.springframework.stereotype.Component;
public class Infomation {
private String time;
private String text1;
public Infomation() {
}
public Infomation(String time,String text1) {
this();
this.time = time;
this.text1 = text1;
}
public Str... |
ad2c84a8-b9d6-4f77-bd6c-d913997e0278 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-15 17:03:07", "repo_name": "Syes8893/SpeedUHC", "sub_path": "/src/me/syes/speeduhc/commands/subcommands/LeaveCommand.java", "file_name": "LeaveCommand.java", "file_ext": "java", "file_size_in_byte": 649, "line... | package me.syes.speeduhc.commands.subcommands;
import org.bukkit.entity.Player;
import me.syes.speeduhc.SpeedUHC;
import me.syes.speeduhc.speeduhcplayer.SpeedUHCPlayer;
public class LeaveCommand extends SubCommand{
@Override
public void runCommand(Player p, String[] args) {
SpeedUHCPlayer uhcPlayer =... |
0996f31e-25e3-4a8d-8beb-3f45d6693d3f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-10 10:02:21", "repo_name": "miyabi1210/ViewID", "sub_path": "/src/miyabi/vid/Vid.java", "file_name": "Vid.java", "file_ext": "java", "file_size_in_byte": 662, "line_count": 32, "lang": "en", "doc_type": "code"... | package miyabi.vid;
import cn.nukkit.Player;
import cn.nukkit.command.Command;
import cn.nukkit.command.CommandSender;
import cn.nukkit.item.Item;
public class Vid extends Command{
public Vid() {
super("vid", "itemID表示");
}
@Override
public boolean execute(CommandSender sender, Stri... |
49630619-5714-4902-adeb-f5450a5ece59 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-09-12 18:12:21", "repo_name": "jakobehmsen/dynamake", "sub_path": "/eclipse/src/dynamake/commands/ForthCommand.java", "file_name": "ForthCommand.java", "file_ext": "java", "file_size_in_byte": 648, "line_count": ... | package dynamake.commands;
import dynamake.models.Location;
import dynamake.models.PropogationContext;
import dynamake.transcription.Collector;
public class ForthCommand<T> implements Command<T> {
/**
*
*/
private static final long serialVersionUID = 1L;
private ReversibleCommand<T> command;
public ForthC... |
bc3207cc-6d9f-4965-b7c8-68042dd5843f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-15 06:21:20", "repo_name": "helloravisha/android-movieapp", "sub_path": "/app/src/main/java/android/nanodegree/sportify/constants/MovieAttributes.java", "file_name": "MovieAttributes.java", "file_ext": "java",... | package android.nanodegree.sportify.constants;
/**
* Interface holding the constants for parsing the jason response.
* Created by ravisha on 11/8/15.
*/
public interface MovieAttributes {
String VOTE_AVERAGE ="vote_average";
String RELEASE_DTAE = "release_date";
String ORIGINAL_LANGUAGE = "original_lan... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.