id stringlengths 36 36 | meta stringlengths 429 697 | url stringlengths 27 109 | tokens int64 137 584 | domain_prefix stringlengths 16 106 | score float64 0.16 0.3 | code_content stringlengths 960 1.25k |
|---|---|---|---|---|---|---|
c52d94bb-8e42-4ff2-a34e-bf1c4b6cbd33 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-05-29 21:33:29", "repo_name": "mxab/gradle-web-ui", "sub_path": "/src/main/java/com/github/mxab/Application.java", "file_name": "Application.java", "file_ext": "java", "file_size_in_byte": 1008, "line_count": 40,... | https://github.com/mxab/gradle-web-ui | 181 | FILENAME: Application.java | 0.240775 | package com.github.mxab;
import java.io.File;
import org.gradle.tooling.GradleConnector;
import org.gradle.tooling.ProjectConnection;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org... |
a594378b-69da-43c2-b447-ae8616a563f6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-18 10:20:19", "repo_name": "lirongkan/Eeavaj", "sub_path": "/src/xml/Demo1.java", "file_name": "Demo1.java", "file_ext": "java", "file_size_in_byte": 1215, "line_count": 46, "lang": "en", "doc_type": "code", "... | https://github.com/lirongkan/Eeavaj | 276 | FILENAME: Demo1.java | 0.262842 | package xml;
import org.dom4j.Document;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.List;
/**
* @author: lrk
* 2019/4/11 13:55
*/
public class Demo1 {
public static voi... |
f1dbf483-1bd0-47bb-a65c-52917bca4766 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-18 22:52:15", "repo_name": "IxM7mDx/HiveTokes", "sub_path": "/src/de/alphahelix/hivetokens/events/ArmorstandClickEvent.java", "file_name": "ArmorstandClickEvent.java", "file_ext": "java", "file_size_in_byte": ... | https://github.com/IxM7mDx/HiveTokes | 251 | FILENAME: ArmorstandClickEvent.java | 0.233706 | package de.alphahelix.hivetokens.events;
import de.alphahelix.hivetokens.instances.FakeArmorstand;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
/**
* Created by AlphaHelixDev.
*/
public class ArmorstandClickEvent extends Event {
private static final Handl... |
72a8ebde-2427-40a4-9c43-5762f268b5c9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-16 03:40:14", "repo_name": "mdaruk/currency-exchange", "sub_path": "/src/main/java/com/daruk/currencyexchange/beans/Currency.java", "file_name": "Currency.java", "file_ext": "java", "file_size_in_byte": 987, "... | https://github.com/mdaruk/currency-exchange | 201 | FILENAME: Currency.java | 0.253861 | package com.daruk.currencyexchange.beans;
public class Currency {
String currency;
String code;
Float mid;
public Currency() {
}
public Currency(String currency, String code, Float mid) {
this.currency = currency;
this.code = code;
this.mid = mid;
}
... |
ae21b592-6826-4077-95d0-9726e717ef5a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-12-15T20:15:34", "repo_name": "nkcmr/ntpclient", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 997, "line_count": 40, "lang": "en", "doc_type": "text", "blob_id": ... | https://github.com/nkcmr/ntpclient | 410 | FILENAME: README.md | 0.272025 | # ntpclient
a small little CLI thing that grabs the current time from any NTP server.
## install
needs:
- Go (version 1.11+)
```
go install github.com/nkcmr/ntpclient
```
## usage
`ntpclient` will simply grab the time from an NTP and report it alongside the local time. it defaults to using `time.google.com`, but... |
29c31bae-faa4-403d-9a7d-b22a035e677a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-25 15:51:14", "repo_name": "robertokur/eletronicPoint-api", "sub_path": "/src/main/java/com/robertokur/eletronicpoint/api/services/impl/CompanyServiceImpl.java", "file_name": "CompanyServiceImpl.java", "file_e... | https://github.com/robertokur/eletronicPoint-api | 204 | FILENAME: CompanyServiceImpl.java | 0.264358 | package com.robertokur.eletronicpoint.api.services.impl;
import java.util.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.robertokur.eletronicpoint.api.entities.Company;
import c... |
2f64e359-6766-4f04-abbd-0399340cf1f5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-12 13:22:50", "repo_name": "liangtao3838/sysmgr", "sub_path": "/src/main/java/com/sys/mgr/service/Impl/SysServiceGuiServiceImpl.java", "file_name": "SysServiceGuiServiceImpl.java", "file_ext": "java", "file_si... | https://github.com/liangtao3838/sysmgr | 219 | FILENAME: SysServiceGuiServiceImpl.java | 0.246533 | package com.sys.mgr.service.Impl;
import com.sys.mgr.dao.SysServiceGuiDao;
import com.sys.mgr.model.NodeInfoVo;
import com.sys.mgr.service.SysCallRelaGuiService;
import com.sys.mgr.service.SysServiceGuiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service... |
806bfd7b-6b1d-43b1-a716-cbadb5c42d2d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-13 02:33:58", "repo_name": "jardel-marden/desafio-mais-vida", "sub_path": "/src/main/java/com/desafio/api/controller/handler/ApiError.java", "file_name": "ApiError.java", "file_ext": "java", "file_size_in_byte... | https://github.com/jardel-marden/desafio-mais-vida | 226 | FILENAME: ApiError.java | 0.245085 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.desafio.api.controller.handler;
import java.time.LocalDateTime;
import java.util.List;
import lombok.Data;
import org.spri... |
990d3f77-047c-46fd-8c10-774d8511edc8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-03 09:01:56", "repo_name": "gii-is-DP2/DP2-1920-G3-05", "sub_path": "/src/main/java/org/springframework/samples/petclinic/web/GenreFormatter.java", "file_name": "GenreFormatter.java", "file_ext": "java", "file... | https://github.com/gii-is-DP2/DP2-1920-G3-05 | 207 | FILENAME: GenreFormatter.java | 0.262842 |
package org.springframework.samples.petclinic.web;
import java.text.ParseException;
import java.util.Collection;
import java.util.Locale;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.Formatter;
import org.springframework.samples.petclinic.model.Genre;
imp... |
a446d0d4-0920-4bd8-9c58-a7ade3bae242 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-16 02:47:45", "repo_name": "sausmagic/microservice-demo", "sub_path": "/voting-service/src/main/java/it/reply/open/workshop/technoaperitif/msintro/tvdemoms/model/PollOption.java", "file_name": "PollOption.java... | https://github.com/sausmagic/microservice-demo | 209 | FILENAME: PollOption.java | 0.267408 | package it.reply.open.workshop.technoaperitif.msintro.tvdemoms.model;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldDefaults;
import javax.annotation.Nonnull;
import javax.persistence.Column;
import javax.persistence.E... |
9c5002c0-e933-46d6-9a84-f557b82d5574 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-18 09:28:26", "repo_name": "scwanglijun/lion-angular", "sub_path": "/lion-angular-web/src/main/java/com/newtouch/lion/admin/web/model/usergroup/GroupGetResp.java", "file_name": "GroupGetResp.java", "file_ext":... | https://github.com/scwanglijun/lion-angular | 249 | FILENAME: GroupGetResp.java | 0.212069 | package com.newtouch.lion.admin.web.model.usergroup;
/**
* <p>
* Title:
* </p>
* <p>
* Description:
* </p>
* <p>
* Copyright: Copyright (c) 2016
* </p>
* <p>
* Company:
* </p>
*
* @author LiXiaoHao
* @version 1.0
*/
public class GroupGetResp {
public final static String SUCCESS_GROUP_CODE = "200";
... |
8b129692-e334-4f70-9592-c79b42712d65 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-26 22:04:49", "repo_name": "lima-anderson/API-Log-stica", "sub_path": "/src/main/java/com/laentwicklung/lalogapi/domain/service/CatalogoClienteService.java", "file_name": "CatalogoClienteService.java", "file_e... | https://github.com/lima-anderson/API-Log-stica | 242 | FILENAME: CatalogoClienteService.java | 0.276691 | package com.laentwicklung.lalogapi.domain.service;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.laentwicklung.lalogapi.domain.exception.NegocioException;
import com.laentwicklung.lalogapi.domain.model.Cliente;
import com.laentwicklung.lalog... |
0c18a115-6082-471d-bdba-e1bc2e790fe8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-05 11:57:47", "repo_name": "Renyqin/ooproject2", "sub_path": "/FunGame2/src/Prince.java", "file_name": "Prince.java", "file_ext": "java", "file_size_in_byte": 970, "line_count": 43, "lang": "en", "doc_type": "... | https://github.com/Renyqin/ooproject2 | 258 | FILENAME: Prince.java | 0.259826 | import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
public class Prince extends Villager {
private static final int xPos=467, yPos=679;
private static final int MaxHp=1;
private static final String name="Aldric";
private static final String ImagePath="assets/units/prince.png";
private stat... |
2278f7b2-c1c1-4af8-925a-e98d0ebd2eb9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-13 04:30:02", "repo_name": "yyf736057729/sms", "sub_path": "/cmpp-core/src/test/java/com/zx/sms/common/TestBDBQueueMap.java", "file_name": "TestBDBQueueMap.java", "file_ext": "java", "file_size_in_byte": 982, ... | https://github.com/yyf736057729/sms | 264 | FILENAME: TestBDBQueueMap.java | 0.288569 | package com.zx.sms.common;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import org.apache.commons.lang.time.DateFormatUtils;
import org.junit.Test;
import com.zx.sms.common.util.CachedMillisecondClock;
public class TestBDBQueueMap {
@Te... |
f7dfcb24-7a22-40b3-b16a-e975b5e21fa1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-08 14:07:37", "repo_name": "OlehYN/prediction.planning.app", "sub_path": "/app/src/main/java/work/course/planning/prediction/com/planningapp/dto/response/ExamplesListDto.java", "file_name": "ExamplesListDto.ja... | https://github.com/OlehYN/prediction.planning.app | 260 | FILENAME: ExamplesListDto.java | 0.250913 | package work.course.planning.prediction.com.planningapp.dto.response;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import work.course.planning.prediction.com.planningapp.dto.info.ExampleDto;
/**
* Created by Oleh Yanivskyy on 08.04.2017.
*/
public class ExamplesListDto {
@Jso... |
5c28b0f5-37e4-4310-9575-0c49848152ff | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-01 01:53:40", "repo_name": "SiarheiBialevich/SenlaCourseJavaEE", "sub_path": "/Lection7/ElectronicRegistry/hotel/src/ru/senla/bialevich/util/wrapper/Wrapper.java", "file_name": "Wrapper.java", "file_ext": "jav... | https://github.com/SiarheiBialevich/SenlaCourseJavaEE | 296 | FILENAME: Wrapper.java | 0.275909 | package ru.senla.bialevich.util.wrapper;
import ru.senla.bialevich.entity.Guest;
import ru.senla.bialevich.entity.Order;
import ru.senla.bialevich.entity.Room;
import ru.senla.bialevich.entity.UsedService;
import java.io.Serializable;
import java.util.List;
public class Wrapper implements Serializable {
private ... |
ae055295-b3dc-4c9d-916e-78a852cee7e7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-11 11:48:28", "repo_name": "smartdecision87/myPizza", "sub_path": "/modules/global/src/com/company/pizza/entity/Topping.java", "file_name": "Topping.java", "file_ext": "java", "file_size_in_byte": 973, "line_c... | https://github.com/smartdecision87/myPizza | 237 | FILENAME: Topping.java | 0.26588 | package com.company.pizza.entity;
import com.haulmont.chile.core.annotations.NamePattern;
import com.haulmont.cuba.core.entity.StandardEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
@Table(name = "PIZZA_TOPPING")
... |
14192096-25b7-4582-9399-b398630407a0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-06 19:03:27", "repo_name": "ShpiliakYurii/semantic-serv", "sub_path": "/src/main/java/com/kpi/drproject/entity/TClass.java", "file_name": "TClass.java", "file_ext": "java", "file_size_in_byte": 1018, "line_cou... | https://github.com/ShpiliakYurii/semantic-serv | 221 | FILENAME: TClass.java | 0.233706 | package com.kpi.drproject.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import java.util.List;
@Entity
public class TClass extends AbstractEntity {
private String name;
private String ca... |
66b3a1be-0ef0-4205-a062-23975280648a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-03 14:52:17", "repo_name": "dip77/Bus-Reservation-and-Pass-Creation-System", "sub_path": "/src/com/digimation/gujjubus/controller/AdminListServlet.java", "file_name": "AdminListServlet.java", "file_ext": "java... | https://github.com/dip77/Bus-Reservation-and-Pass-Creation-System | 190 | FILENAME: AdminListServlet.java | 0.288569 | package com.digimation.gujjubus.controller;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.digimation.gujjubus.bean.AdminBean;... |
d4ea8c4a-9b55-47ff-8c2b-9f0078a30295 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-03-20 06:57:19", "repo_name": "Candan26/smart_watch_server", "sub_path": "/src/main/java/com/candan/mongo/swb/UserInfo.java", "file_name": "UserInfo.java", "file_ext": "java", "file_size_in_byte": 1064, "line_cou... | https://github.com/Candan26/smart_watch_server | 221 | FILENAME: UserInfo.java | 0.249447 | package com.candan.mongo.swb;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import java.util.Date;
@Setter
@Getter
public class UserInfo {
@Id
private String id;
private String name;
private String surname;
private String email;
private Long age... |
54390b9d-f230-49fd-a2da-09782ed1963f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-26 07:22:40", "repo_name": "wangxingchenyu/hadoop", "sub_path": "/src/main/java/com/zhileiedu/hadoop/invertindex/llMapper1.java", "file_name": "llMapper1.java", "file_ext": "java", "file_size_in_byte": 1020, "... | https://github.com/wangxingchenyu/hadoop | 240 | FILENAME: llMapper1.java | 0.279042 | package com.zhileiedu.hadoop.invertindex;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.lib.input.FileSplit;
import java.io.IOException;
/**
* @Author: wzl
* @Date: 2... |
499e855b-ce46-4deb-a696-8bb4a007c970 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-13 04:42:27", "repo_name": "vsolomatov/job4j_rest", "sub_path": "/chat/src/main/java/com/solomatoff/chat/dto/PersonDTO.java", "file_name": "PersonDTO.java", "file_ext": "java", "file_size_in_byte": 1186, "line... | https://github.com/vsolomatov/job4j_rest | 223 | FILENAME: PersonDTO.java | 0.280616 | package com.solomatoff.chat.dto;
import com.solomatoff.chat.domain.Role;
import lombok.Value;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;
import java.util.Set;
public enum PersonDTO {
/* enum без значений */;
private interface Id { @Positive Long getId(); }
... |
e0e8389a-47a3-4835-8db3-abf6595fddb5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-08-28 05:40:43", "repo_name": "quanlidavid/SwingExamples", "sub_path": "/SwingExamples/src/swing15/ComboBoxes/FormEvent.java", "file_name": "FormEvent.java", "file_ext": "java", "file_size_in_byte": 1015, "line_c... | https://github.com/quanlidavid/SwingExamples | 239 | FILENAME: FormEvent.java | 0.255344 | package swing15.ComboBoxes;
import java.util.EventObject;
public class FormEvent extends EventObject {
private String name;
private String occupation;
private int ageCategory;
private String empCat;
public FormEvent(Object source) {
super(source);
}
public FormEvent(Object source, String name, String occup... |
932d38f8-0c3e-4c46-9152-63ec0e19a55a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-18 08:52:02", "repo_name": "lindalei/demo", "sub_path": "/src/main/java/com/linda/demo/concurrent/WaitNotify.java", "file_name": "WaitNotify.java", "file_ext": "java", "file_size_in_byte": 1219, "line_count": ... | https://github.com/lindalei/demo | 234 | FILENAME: WaitNotify.java | 0.259826 | package com.linda.demo.concurrent;
public class WaitNotify {
private int signal;
public synchronized int getSignal() {
while(signal!=1){
try {
System.out.println(Thread.currentThread().getName()+"开始等待...");
wait(); //等待过程会释放锁
} catch (Interrupted... |
b22461ae-57ad-4ef9-8f46-dffaf2d8aecd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-06 19:03:01", "repo_name": "barii/webcache", "sub_path": "/src/webcache/WebParser.java", "file_name": "WebParser.java", "file_ext": "java", "file_size_in_byte": 984, "line_count": 35, "lang": "en", "doc_type":... | https://github.com/barii/webcache | 198 | FILENAME: WebParser.java | 0.29584 | package webcache;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
public class WebParser {
private final Cache cache;
private final String root;
public WebParser(Cache cache, String root) {
this.root = root;
... |
6905e675-3abc-4ee8-9453-1ff8cf721e25 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-10-18T17:20:14", "repo_name": "StitchB/HelloAndroid", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1070, "line_count": 31, "lang": "en", "doc_type": "text", "blob... | https://github.com/StitchB/HelloAndroid | 299 | FILENAME: README.md | 0.26588 | # Hello Android
Single Screen App (Project #1) for Google Developer Challenge Scholarship: Android Basics / Android Basics by Google Nanodegree Program
<strong>Design Requirements</strong>
<ul>
<li>Design includes, at minimum, the following text (business name, address, and phone number):
<ul>
<li>Udacit... |
bc3c6a9b-704b-4a9b-afc9-0b338fde9dd3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-03-07T16:21:35", "repo_name": "rmngp/apidocs", "sub_path": "/source/includes/_techniques.md", "file_name": "_techniques.md", "file_ext": "md", "file_size_in_byte": 1117, "line_count": 42, "lang": "en", "doc_t... | https://github.com/rmngp/apidocs | 260 | FILENAME: _techniques.md | 0.276691 | ## Techniques
```shell
curl -H "ApiKey: demo" \
"http://api.dev.rmn.af83.com/v1/thesaurus/techniques"
```
> The above command returns JSON structured like this:
<pre class="live_requests" data-path="/v1/thesaurus/techniques">
</pre>
Techniques used by many works available through the API.
### Definition
####... |
61ca68f7-9f6f-46f3-975c-68128799cacb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-06-15 21:49:40", "repo_name": "pageone/asmack", "sub_path": "/static-src/custom/org/jivesoftware/smack/SmackAndroid.java", "file_name": "SmackAndroid.java", "file_ext": "java", "file_size_in_byte": 995, "line_cou... | https://github.com/pageone/asmack | 199 | FILENAME: SmackAndroid.java | 0.272799 | package org.jivesoftware.smack;
import org.jivesoftware.smackx.ConfigureProviderManager;
import org.xbill.DNS.ResolverConfig;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
public class SmackAndroid {
private static Sm... |
a1bc9b50-1817-4138-a9c8-22d042be79d8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-10 17:41:00", "repo_name": "pomb87/Findme", "sub_path": "/app/src/main/java/com/pombdev/games/pb/findme/activities/GameActivity.java", "file_name": "GameActivity.java", "file_ext": "java", "file_size_in_byte":... | https://github.com/pomb87/Findme | 160 | FILENAME: GameActivity.java | 0.200558 | package com.pombdev.games.pb.findme.activities;
import android.graphics.Point;
import android.os.Bundle;
import android.view.Display;
import android.widget.RelativeLayout;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
public class GameActivity extends AppCompatActivity {
... |
ab7e5e64-197e-4859-a9b1-912839d16689 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-02 10:42:37", "repo_name": "spider-nns/effective-db", "sub_path": "/src/test/java/dev/spider/db/leveldb/LevelDBTest.java", "file_name": "LevelDBTest.java", "file_ext": "java", "file_size_in_byte": 1154, "line_... | https://github.com/spider-nns/effective-db | 301 | FILENAME: LevelDBTest.java | 0.287768 | package dev.spider.db.leveldb;
import org.iq80.leveldb.DB;
import org.iq80.leveldb.DBFactory;
import org.iq80.leveldb.Options;
import org.iq80.leveldb.WriteOptions;
import org.iq80.leveldb.impl.Iq80DBFactory;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Test;
import java.io.File;
import java.io... |
272c5094-bbda-411a-8d5d-8b5fe72466bf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-05 06:14:29", "repo_name": "bellmit/chunruo", "sub_path": "/chunruo-core/src/main/java/com/chunruo/core/service/impl/PostageConfigManagerImpl.java", "file_name": "PostageConfigManagerImpl.java", "file_ext": "j... | https://github.com/bellmit/chunruo | 202 | FILENAME: PostageConfigManagerImpl.java | 0.290176 | package com.chunruo.core.service.impl;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.chunruo.core.base.GenericManagerImpl;
import com.chunruo.core.model.PostageConfig;
import com.chunruo.core.re... |
0766b61b-63f2-40a0-9e88-b605b38cd2a6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-03-12T10:13:05", "repo_name": "alejandrochacinortega/back-end-server-with-authentication", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1180, "line_count": 46, "l... | https://github.com/alejandrochacinortega/back-end-server-with-authentication | 261 | FILENAME: README.md | 0.271252 |
## info ##
Back end server with authentication using Express, Mongo, Passport
This projects has authentication for new and existing users and returns a token which can be used.
Flow:
1. If signing up -> verify email is not in use -> return token
2. If signing in -> verify email/password -> return token
3. Authent... |
fdb12c50-2a79-482d-997c-3a8956f84de7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-05 15:15:49", "repo_name": "carlfsmithiii/android_progress_scheduler", "sub_path": "/app/src/main/java/edu/wgu/csmi508/progressscheduler/TermEditActivity.java", "file_name": "TermEditActivity.java", "file_ext"... | https://github.com/carlfsmithiii/android_progress_scheduler | 196 | FILENAME: TermEditActivity.java | 0.239349 | package edu.wgu.csmi508.progressscheduler;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.Fragment;
import java.util.UUID;
public class TermEditActivity extends SingleFragmentActivity {
private static final String EXTRA_TERM_ID ... |
5ea8d790-f1b5-4eb5-a063-b17961e8d763 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-16 19:07:02", "repo_name": "100448facens/AllergyIAP2", "sub_path": "/app/src/main/java/com/allergyiap/utils/FCMInstanceIDService.java", "file_name": "FCMInstanceIDService.java", "file_ext": "java", "file_size_... | https://github.com/100448facens/AllergyIAP2 | 247 | FILENAME: FCMInstanceIDService.java | 0.289372 | package com.allergyiap.utils;
import android.util.Log;
import com.allergyiap.beans.User;
import com.allergyiap.service.UserService;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.FirebaseInstanceIdService;
/**
* Created by David on 06/01/2017.
*/
public class FCMInstanceIDServic... |
0c6e1af2-9697-4038-99ed-1e65778ab960 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-09 15:13:35", "repo_name": "yunussezgin/car-factory", "sub_path": "/src/test/java/com/yunus/carfactory/CarfactoryApplicationTests.java", "file_name": "CarfactoryApplicationTests.java", "file_ext": "java", "fil... | https://github.com/yunussezgin/car-factory | 222 | FILENAME: CarfactoryApplicationTests.java | 0.285372 | package com.yunus.carfactory;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class CarfactoryApplication... |
9d3ab440-8087-4c25-9ed2-3c9d1ef0a195 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-29 17:19:48", "repo_name": "AnastasiaDro/My3RxMoxyTrainig", "sub_path": "/app/src/main/java/com/geekbrains/my3rxmoxytrainig/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_... | https://github.com/AnastasiaDro/My3RxMoxyTrainig | 202 | FILENAME: MainActivity.java | 0.250913 | package com.geekbrains.my3rxmoxytrainig;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import moxy.MvpAppCompatActivity;
import moxy.presenter.InjectPresenter;
public class MainActivity extends MvpA... |
44bb1d10-aa31-497a-9708-0d38bdfeb67d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2013-03-06T13:16:50", "repo_name": "mas3/android-theme-light-brown", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1154, "line_count": 34, "lang": "en", "doc_type": "te... | https://github.com/mas3/android-theme-light-brown | 241 | FILENAME: README.md | 0.224055 | Light Brown Theme for Android Application
=========================================
This is a custom Android theme which based brown color. You can copy straight into your project.
Usage
-----
1. Copy files from res directory to your project res directory.
2. Open your AndroidManifest.xml file and edit the `<ap... |
860e8dbc-14ed-4f75-a51c-e021f6cce6ff | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-10-16T06:39:39", "repo_name": "elaineGouvea/phase-0-gps-1", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1019, "line_count": 30, "lang": "en", "doc_type": "text",... | https://github.com/elaineGouvea/phase-0-gps-1 | 373 | FILENAME: README.md | 0.285372 | 404 git clone https://github.com/elaineGouvea/phase-0-gps-1.git: clones the repo from GitHug into your local drive
405 ls
406 cd phase-0-gps-1/: change directories
407 git branch
408 git checkout -b "awesome_page"
409 git branch
410 ls
411 touch awesome_page.md: creates a file
412 ls
413 g... |
e3d36fbe-4ab7-4e51-878e-43ba784e6e18 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-17 09:09:02", "repo_name": "green-fox-academy/pityu_szivos", "sub_path": "/Gilthanas122/Week_09/day_4/src/main/java/com/redditproject/demoreddigproject/Services/RedditService.java", "file_name": "RedditService... | https://github.com/green-fox-academy/pityu_szivos | 211 | FILENAME: RedditService.java | 0.285372 | package com.redditproject.demoreddigproject.Services;
import com.redditproject.demoreddigproject.Models.Post;
import com.redditproject.demoreddigproject.Repositories.PostRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList... |
e806454f-cb56-4b6a-914d-d148c4ec565e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-17 16:42:28", "repo_name": "Tetrago/jMark", "sub_path": "/src/main/java/jmark/node/Document.java", "file_name": "Document.java", "file_ext": "java", "file_size_in_byte": 1098, "line_count": 55, "lang": "en", "... | https://github.com/Tetrago/jMark | 238 | FILENAME: Document.java | 0.268941 | package jmark.node;
import jmark.html.HtmlParser;
import jmark.html.IHtmlParsable;
import jmark.Token;
public class Document extends Node implements IHtmlParsable
{
private String title_;
public Document(String title)
{
title_ = title;
}
@Override
public boolean isComplete()
{
... |
125ef521-e7b4-4111-b006-59918e4a259a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-03 13:47:49", "repo_name": "zhuyuemings/promets", "sub_path": "/src/main/java/ltd/jezhu/promets/wx/conf/WxConfig.java", "file_name": "WxConfig.java", "file_ext": "java", "file_size_in_byte": 1215, "line_count"... | https://github.com/zhuyuemings/promets | 280 | FILENAME: WxConfig.java | 0.213377 | package ltd.jezhu.promets.wx.conf;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.NotEmpty;
/**
* 微信配置类
* @author ymzhu
* @date 2019/3/18 21... |
322b169b-7d1d-486c-a705-5ee0e6530852 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-15 11:21:13", "repo_name": "cstew/TryCamel", "sub_path": "/TryCamel/app/src/main/java/com/cstewart/android/trycamel/tutorial/Screen.java", "file_name": "Screen.java", "file_ext": "java", "file_size_in_byte": 1... | https://github.com/cstew/TryCamel | 228 | FILENAME: Screen.java | 0.23092 | package com.cstewart.android.trycamel.tutorial;
import android.content.Context;
import android.support.annotation.ColorRes;
import android.support.annotation.DrawableRes;
import android.support.annotation.StringRes;
import android.support.v4.content.ContextCompat;
public class Screen {
private int colorResId;
... |
c0057d8e-4a20-42ae-b1dc-62b889b200a5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-11-24T15:23:57", "repo_name": "naviance/tslint-loader", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1037, "line_count": 50, "lang": "en", "doc_type": "text", "bl... | https://github.com/naviance/tslint-loader | 256 | FILENAME: README.md | 0.279828 | # tslint loader for webpack
## Usage
Apply the tslint loader as pre/postLoader in your webpack configuration:
``` javascript
module.exports = {
module: {
preLoaders: [
{
test: /\.ts$/,
loader: "tslint"
}
]
},
// more options in the optional tslint object
tslint: {
configuration: {
... |
25378f54-24cd-4a67-9b70-177d4d846370 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-07-27 13:32:15", "repo_name": "bbbayin/chachecircle", "sub_path": "/app/src/main/java/com/ccq/share/activity/TestUMessageActivity.java", "file_name": "TestUMessageActivity.java", "file_ext": "java", "file_size_in... | https://github.com/bbbayin/chachecircle | 192 | FILENAME: TestUMessageActivity.java | 0.199308 | package com.ccq.share.activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.ccq.share.R;
import com.umeng.message.entity.UMessage;
import org.json.JSONException;
import org.json.JSONObject;
public class T... |
6c66b3cf-42ac-4935-8bff-309395f227b5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-02-08T08:06:44", "repo_name": "thunderwilson/Pi-Code", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 983, "line_count": 15, "lang": "en", "doc_type": "text", "blob... | https://github.com/thunderwilson/Pi-Code | 209 | FILENAME: README.md | 0.204342 | prog_draft is a basic implementation of bluetooth scanning and data logging.
Takes a mock daily roster "daily.csv" (as per TANDA rostering) and works out who is working today.
It takes note of their start time and end time for use in the scanning algorithm (hence why the daily.csv only has the first 4 colums, the res... |
baa2c3da-cc09-4a5d-b5c1-70686831a4de | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-01-03T14:44:00", "repo_name": "nooga/lor1k", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1154, "line_count": 30, "lang": "en", "doc_type": "text", "blob_id": "18... | https://github.com/nooga/lor1k | 295 | FILENAME: README.md | 0.203075 | # lor1k
lor1k is an attempt at re-implementing Sebastian Macke's jor1k (https://github.com/s-macke/jor1k) in Java.
The goal of the project is to have a minimal, network enabled linux system running completely within JVM.
The secondary goal of this project is to have fun :)
### Status
- It's an early stage, the code ... |
d07b94bd-5ea8-493c-8b95-981e2caf34e3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-10-09 15:07:52", "repo_name": "Linzi-demo/personal-practice", "sub_path": "/java-skill-pratice/src/main/java/com/grove/skill/concurrent/wait/ThreadWait.java", "file_name": "ThreadWait.java", "file_ext": "java", "... | https://github.com/Linzi-demo/personal-practice | 246 | FILENAME: ThreadWait.java | 0.253861 | package com.grove.skill.concurrent.wait;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class ThreadWait {
public static final Object lock = new Object();
/**
* 占用锁的线程调用wait后,会释放锁
*/
public void start() {
Thread t1 = new Thre... |
17fb747c-9ec0-4979-8789-f8ce6cbe8467 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-04T21:16:29", "repo_name": "kamflagg10/show-my-records", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1012, "line_count": 23, "lang": "en", "doc_type": "text",... | https://github.com/kamflagg10/show-my-records | 243 | FILENAME: README.md | 0.194368 | # Show My Records
This is a small web application I created to display my record collection. It obtains my collection data from Discogs, a popular website for buying, selling, and learning about vinyl records and other types of media.
## Demos

 throws Exception {
ExecutorService executorService = Executors.newCachedThrea... |
3c4023c0-d219-4812-bee5-08a86815f081 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-05 12:55:52", "repo_name": "niceyuanze/studyCurrency", "sub_path": "/src/main/java/com/book/JavaHighCurrencyDesign/chapter5concurrencyPatternAndAlgorithm/JDKFuture/RealData.java", "file_name": "RealData.java",... | https://github.com/niceyuanze/studyCurrency | 251 | FILENAME: RealData.java | 0.290981 | package com.book.JavaHighCurrencyDesign.chapter5concurrencyPatternAndAlgorithm.JDKFuture;
import com.book.JavaHighCurrencyDesign.chapterJDKCurrency.ReenterLock;
import java.util.concurrent.*;
/**
* Created by niceyuanze on 17-5-17.
*/
public class RealData implements Callable<String>{
private String para;
... |
4285f4d9-fc19-420c-9b7c-4b8ccef97243 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-01 09:09:26", "repo_name": "absharma3/illumination", "sub_path": "/refactoring/src/main/java/com/refactor/model/Book.java", "file_name": "Book.java", "file_ext": "java", "file_size_in_byte": 1012, "line_count"... | https://github.com/absharma3/illumination | 243 | FILENAME: Book.java | 0.239349 | package com.refactor.model;
/**
* Created by abhimanyus on 2/2/18.
*
*
* Abstract implementation of IBook
*/
import java.io.Serializable;
import java.util.Date;
public abstract class Book implements Serializable, IBook {
private static final long serialVersionUID = -7348792584072115788L;
private Date r... |
253c6e83-5870-4266-ac93-dbfdc9579be6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-31 22:55:11", "repo_name": "aioprxu/exam", "sub_path": "/src/main/java/com/xiaour/spring/boot/service/impl/ZookeeperServiceImpl.java", "file_name": "ZookeeperServiceImpl.java", "file_ext": "java", "file_size_i... | https://github.com/aioprxu/exam | 228 | FILENAME: ZookeeperServiceImpl.java | 0.23092 | package com.xiaour.spring.boot.service.impl;
import com.xiaour.spring.boot.service.ZookeeperService;
import org.apache.zookeeper.ZooKeeper;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
@Service
public class ZookeeperServiceImpl implemen... |
a8140f3c-28d6-4fee-bd9e-f2a8b79b9f0c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-05 16:55:19", "repo_name": "lozevBogdan/instagraphRetakeExam05_12_20", "sub_path": "/src/main/java/softuni/exam/instagraphlite/models/dtos/importDtos/PostImportDto.java", "file_name": "PostImportDto.java", "fi... | https://github.com/lozevBogdan/instagraphRetakeExam05_12_20 | 235 | FILENAME: PostImportDto.java | 0.253861 | package softuni.exam.instagraphlite.models.dtos.importDtos;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bi... |
0a3866b1-faef-4c05-b072-e092709ba23e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-15 23:57:50", "repo_name": "mohammad898/MobileFrameworkTest", "sub_path": "/MobileFramework/UICatalog/src/test/java/iPhone/AlertsTest.java", "file_name": "AlertsTest.java", "file_ext": "java", "file_size_in_by... | https://github.com/mohammad898/MobileFrameworkTest | 223 | FILENAME: AlertsTest.java | 0.279042 | package iPhone;
import AlertsPage.Alerts;
import UiCatalogPage.UiCatalog;
import common.Base;
import org.openqa.selenium.support.PageFactory;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
/**
* Created by Bilal on 25-01-2017.
*/
public class AlertsTest extends Base {
Alerts ale... |
50f59b6d-5631-4cee-bf03-d00641292376 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-15 02:54:48", "repo_name": "gan-ta/jpa_book_study", "sub_path": "/target/generated-sources/java/example/capter9/entity/QPhoneServiceProvider9.java", "file_name": "QPhoneServiceProvider9.java", "file_ext": "jav... | https://github.com/gan-ta/jpa_book_study | 229 | FILENAME: QPhoneServiceProvider9.java | 0.288569 | package example.capter9.entity;
import static com.mysema.query.types.PathMetadataFactory.*;
import com.mysema.query.types.path.*;
import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;
/**
* QPhoneServiceProvider9 is a Querydsl query type for PhoneServic... |
4f693d1f-36d5-476b-866b-0c6ddaf5277e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-02-20T19:56:39", "repo_name": "dragona/dragona.github.com", "sub_path": "/_posts/2019-11-07-let-me-recap-what-did-I-use-for-this-github-io.md", "file_name": "2019-11-07-let-me-recap-what-did-I-use-for-this-gi... | https://github.com/dragona/dragona.github.com | 316 | FILENAME: 2019-11-07-let-me-recap-what-did-I-use-for-this-github-io.md | 0.218669 | # Building an IO Page
## Creating the repository:
1. Name the new repo "github_account_name.io"
2. Add a theme in the Github "settings" tab.
## Using a Bootstrap theme:
1. Clone Bootstrap 4 for Github to your local machine.
2. Clone your newly created repo and remove the default two files.
3. Drag and drop the conten... |
5f176119-a356-426e-a4d2-44cdd7f54aa2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-03 16:07:33", "repo_name": "martinV97/RouletteGame", "sub_path": "/src/logic/entities/Player.java", "file_name": "Player.java", "file_ext": "java", "file_size_in_byte": 1001, "line_count": 50, "lang": "en", "d... | https://github.com/martinV97/RouletteGame | 258 | FILENAME: Player.java | 0.276691 | package logic.entities;
import java.util.ArrayList;
public class Player {
private String name;
private int playerMoney;
private ArrayList<Bet> listOfBets;
private Crupier crupier;
public Player(String name, int playerMoney, Crupier crupier) {
super();
this.name = name;
this.playerMoney = playerMoney;
t... |
7bdbbcc8-036a-4cb9-b6f1-fe7fdc2d3eb9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-01-09 17:22:22", "repo_name": "werebus/cs187", "sub_path": "/project7/PrefixTree.java", "file_name": "PrefixTree.java", "file_ext": "java", "file_size_in_byte": 1094, "line_count": 49, "lang": "en", "doc_type": "... | https://github.com/werebus/cs187 | 288 | FILENAME: PrefixTree.java | 0.29584 | public class PrefixTree {
private PTNode root;
private int size;
public PTNode getRoot(){
return root;
}
public void setRoot(PTNode node){
root = node;
}
public int getSize(){
return size;
}
public PrefixTree(){
root = new PTNode ("");
}
//Add the new word to the tree (and all... |
e3dfcac0-24fe-4379-a695-4ac05cca6d63 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-03 05:45:38", "repo_name": "KohilanMohanarajan/Dungeon-Diver", "sub_path": "/src/Warlock.java", "file_name": "Warlock.java", "file_ext": "java", "file_size_in_byte": 981, "line_count": 50, "lang": "en", "doc_t... | https://github.com/KohilanMohanarajan/Dungeon-Diver | 294 | FILENAME: Warlock.java | 0.293404 |
import java.io.IOException;
public class Warlock extends Enemy{
private int attack;
private int defense;
private int speed;
public Warlock(){
attack = 20;
defense = 20;
speed = 25;
}
/**
* Move to Attack Hero during fight sequence
* @param target Hero is designated as target
* @return Returns A... |
8ddb9756-69ca-45ba-9126-fd3def707676 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-22 03:26:19", "repo_name": "jsoemant/fabflix", "sub_path": "/backend/DashboardServlet.java", "file_name": "DashboardServlet.java", "file_ext": "java", "file_size_in_byte": 1061, "line_count": 34, "lang": "en",... | https://github.com/jsoemant/fabflix | 169 | FILENAME: DashboardServlet.java | 0.225417 |
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOExceptio... |
c8baf911-fac8-46db-a0f9-0329276fc8cd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-26 20:09:16", "repo_name": "klebermo/oauth2_server", "sub_path": "/src/main/java/oauth/server/App.java", "file_name": "App.java", "file_ext": "java", "file_size_in_byte": 1231, "line_count": 40, "lang": "en", ... | https://github.com/klebermo/oauth2_server | 211 | FILENAME: App.java | 0.250913 | package oauth.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.co... |
7de871f0-e7f1-4fd9-944b-c71d45919520 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-12-14 11:39:20", "repo_name": "chenfulei/LibraryExample", "sub_path": "/library/src/main/java/com/library/http/FLNetworkResponse.java", "file_name": "FLNetworkResponse.java", "file_ext": "java", "file_size_in_byt... | https://github.com/chenfulei/LibraryExample | 243 | FILENAME: FLNetworkResponse.java | 0.275909 | package com.library.http;
import org.apache.http.HttpStatus;
import java.util.Collections;
import java.util.Map;
/**
* 从NetWork执行器返回的Http响应,包含了本次响应是成功还是失败,请求头,响应内容,HTTP状态码
*
* Created by chen_fulei on 2015/8/24.
*/
public class FLNetworkResponse {
public FLNetworkResponse(int statusCode, byte[] data,
... |
64c2ab8d-76e6-4f17-a793-77b17817645b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-16 00:34:59", "repo_name": "letianxing1994/Java-Multiple-Threading", "sub_path": "/src/MyLock.java", "file_name": "MyLock.java", "file_ext": "java", "file_size_in_byte": 1179, "line_count": 54, "lang": "en", "... | https://github.com/letianxing1994/Java-Multiple-Threading | 231 | FILENAME: MyLock.java | 0.242206 | import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
public class MyLock implements Lock {
private boolean isLocked = false;
private int lockCount = 0;
private Thread lockBy = null;
@Override
public synchronized void lock() {
... |
5be28757-9fa3-40b7-bc65-7d0d0fcadcb9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-27 06:42:33", "repo_name": "MartyAlien/HIS-Pro", "sub_path": "/HIS/src/main/java/com/hrbu/his/dao/impl/DeptDaoImpl.java", "file_name": "DeptDaoImpl.java", "file_ext": "java", "file_size_in_byte": 1288, "line_c... | https://github.com/MartyAlien/HIS-Pro | 295 | FILENAME: DeptDaoImpl.java | 0.287768 | package com.hrbu.his.dao.impl;
import com.hrbu.his.bean.Dept;
import com.hrbu.his.dao.DeptDao;
import com.hrbu.his.utils.JDBCUtils;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import java.util.List;
... |
afb75620-6fa1-4cb7-b3b9-eec676ae90c2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-07 05:52:07", "repo_name": "zhirongzhao/TestKaixin", "sub_path": "/app/src/main/java/com/as/testkaixin/test/TestRxJava.java", "file_name": "TestRxJava.java", "file_ext": "java", "file_size_in_byte": 1000, "lin... | https://github.com/zhirongzhao/TestKaixin | 190 | FILENAME: TestRxJava.java | 0.253861 | package com.as.testkaixin.test;
import rx.Observable;
import rx.Subscriber;
/**
* Created by samsung on 2015/12/14.
*/
public class TestRxJava {
public static void main(String ... args){
Observable myob = Observable.create(new Observable.OnSubscribe<String>(
) {
@Override
... |
5f9fc2ad-7519-417e-ac86-e20382f13bf7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-23 11:17:02", "repo_name": "xuchuanliang/JavaConcurrencyInPractice", "sub_path": "/src/ConcurrencyPractice/capter07/com/snail/b2/ReaderThread.java", "file_name": "ReaderThread.java", "file_ext": "java", "file_... | https://github.com/xuchuanliang/JavaConcurrencyInPractice | 215 | FILENAME: ReaderThread.java | 0.224055 | package ConcurrencyPractice.capter07.com.snail.b2;
import java.io.IOException;
import java.io.InputStream;
import java.net.Socket;
/**
* 通过改写interrupt方法将非标准的取消操作封装在Thread中
*/
public class ReaderThread extends Thread {
private final Socket socket;
private final InputStream inputStream;
public ReaderThr... |
f6a66154-ba58-424e-9704-47d037ca84d5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-26 08:49:21", "repo_name": "cryptimeleon/groupsig", "sub_path": "/src/main/java/org/cryptimeleon/groupsig/common/OpenResult.java", "file_name": "OpenResult.java", "file_ext": "java", "file_size_in_byte": 1006,... | https://github.com/cryptimeleon/groupsig | 208 | FILENAME: OpenResult.java | 0.290176 | package org.cryptimeleon.groupsig.common;
/**
* Contains information about the result of executing
* {@link GroupSignatureScheme#open(GroupSignature, OpenerKey, GroupMembershipList, RevocationList)}.
* Specifically, the revealed member identity and, if supported by the scheme, a proof that the opening was done
* c... |
10b41269-1c91-4b21-b884-c63a3ffda19e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-09 17:47:22", "repo_name": "rhnlf/Jastipin", "sub_path": "/app/src/main/java/com/example/jastipin/adapter/RequestPagerAdapter.java", "file_name": "RequestPagerAdapter.java", "file_ext": "java", "file_size_in_b... | https://github.com/rhnlf/Jastipin | 228 | FILENAME: RequestPagerAdapter.java | 0.224055 | package com.example.jastipin.adapter;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
import com.example.jastipin.fragment.JualDetailBarangFragment;
import com.example.jastipin.fragment.JualDeta... |
946857b5-4b0f-4ef9-873b-72bc1acf0f60 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-22 09:18:55", "repo_name": "521xuxiao/shiro", "sub_path": "/shiro/src/main/java/com/shiro/shiro/shiro/ShiroLoginFilter.java", "file_name": "ShiroLoginFilter.java", "file_ext": "java", "file_size_in_byte": 1265... | https://github.com/521xuxiao/shiro | 226 | FILENAME: ShiroLoginFilter.java | 0.203075 | package com.shiro.shiro.shiro;
import com.alibaba.fastjson.JSONObject;
import org.apache.shiro.web.filter.authc.FormAuthenticationFilter;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;
/**
* 没有登录的情况下进来
*/
public ... |
f8fb27da-c8bf-481c-b2a1-825c5490793f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-04-05 06:07:47", "repo_name": "smxknife/smxknife", "sub_path": "/smxknife/smxknife-servlet/smxknife-servlet-annotation/src/main/java/com/smxknife/servlet/annotation/response/lastmodified/LastModifiedServlet.java"... | https://github.com/smxknife/smxknife | 190 | FILENAME: LastModifiedServlet.java | 0.255344 | package com.smxknife.servlet.annotation.response.lastmodified;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* @auth... |
a0aaac59-42de-4d9c-a7b3-a746fa0c0057 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-03-09 09:04:48", "repo_name": "kenaudenaert/leonix-sandbox", "sub_path": "/leonix-sandbox-all/leonix-server/src/main/java/be/leonix/sandbox/SandboxApp.java", "file_name": "SandboxApp.java", "file_ext": "java", "f... | https://github.com/kenaudenaert/leonix-sandbox | 188 | FILENAME: SandboxApp.java | 0.235108 | package be.leonix.sandbox;
import java.util.Arrays;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
import org.springframework.boot.context.config... |
f8c884dd-20e1-4c6a-bc5a-ece083519102 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-06 14:15:52", "repo_name": "ShrihariMohan/Codings", "sub_path": "/JavaCodings/src/JDBCSample.java", "file_name": "JDBCSample.java", "file_ext": "java", "file_size_in_byte": 1007, "line_count": 32, "lang": "en"... | https://github.com/ShrihariMohan/Codings | 207 | FILENAME: JDBCSample.java | 0.261331 | import java.sql.* ;
import static java.lang.Class.forName;
interface test {
static void testMethods() {
System.out.println("HELlo");
}
}
public class JDBCSample {
public static void main(String[] args) throws Exception {
String url = "jdbc:mysql://localhost:3306/Registration";
... |
92f954aa-c621-4d10-b09b-003f74f1d653 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-16 11:57:41", "repo_name": "hyprd/spindle", "sub_path": "/COSC241/12/SelectionSort.java", "file_name": "SelectionSort.java", "file_ext": "java", "file_size_in_byte": 1012, "line_count": 46, "lang": "en", "doc_... | https://github.com/hyprd/spindle | 234 | FILENAME: SelectionSort.java | 0.275909 | package week12;
/**
* A selection sort implementation which is able to be observed through
* its Sorter superclass.
*
* @author Iain Hewson
*/
public class SelectionSort extends Sorter {
/**
* Create a new SelectionSort sorter with the given integers to sort.
*
* @param nums the intege... |
4877215b-fc88-4d16-ad66-cf5d8fee55e0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-26 16:20:51", "repo_name": "DevilWizard/WISStudio-Project-Android-development-oriented-", "sub_path": "/PhotoBrowserApp/app/src/main/java/com/wisstudio/devilwizard/photobrowserapp/util/image/display/BitmapDisp... | https://github.com/DevilWizard/WISStudio-Project-Android-development-oriented- | 275 | FILENAME: BitmapDisplayer.java | 0.287768 | package com.wisstudio.devilwizard.photobrowserapp.util.image.display;
import android.graphics.Bitmap;
import android.os.Looper;
import android.widget.ImageView;
import androidx.annotation.NonNull;
/**
* 用于在Imageview显示图像
*
* @author WizardK
* @date 2021-04-14
*/
public class BitmapDisplayer {
private final ... |
66e5bf1e-6e26-4d0d-b4d6-b39d0c5c8146 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-05 17:02:50", "repo_name": "alirabiee/datx-demo", "sub_path": "/src/main/java/com/alirabiee/datx/demo/answersheet/domain/AnswerSheet.java", "file_name": "AnswerSheet.java", "file_ext": "java", "file_size_in_by... | https://github.com/alirabiee/datx-demo | 220 | FILENAME: AnswerSheet.java | 0.253861 | package com.alirabiee.datx.demo.answersheet.domain;
import com.alirabiee.datx.common.domain.BaseEntity;
import com.alirabiee.datx.demo.questionnaire.domain.Questionnaire;
import com.alirabiee.datx.enterprise.user.domain.User;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lo... |
8c0e040a-8f2f-4e48-a12f-83b2ba6af089 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-25 10:35:51", "repo_name": "szaboreka314/java_project", "sub_path": "/szare23_nagyhf/src/hu/ppke/itk/java/szare23/MainConsole.java", "file_name": "MainConsole.java", "file_ext": "java", "file_size_in_byte": 10... | https://github.com/szaboreka314/java_project | 197 | FILENAME: MainConsole.java | 0.239349 | package hu.ppke.itk.java.szare23;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* console-os játékot indító Main osztály
*/
public class MainConsole {
public static void main(String[] args)
{
System.out.println("What do you want to play? (local/netw... |
776beecf-20ba-49e7-bbe2-ffb06d95c5ec | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-27 03:26:36", "repo_name": "jean-sousasilva/algoritimos", "sub_path": "/app-banktracker/src/main/java/com/banktracker/app/Conexao.java", "file_name": "Conexao.java", "file_ext": "java", "file_size_in_byte": 11... | https://github.com/jean-sousasilva/algoritimos | 285 | FILENAME: Conexao.java | 0.235108 |
package com.banktracker.app;
import java.util.List;
import javax.xml.transform.Templates;
import org.apache.commons.dbcp2.BasicDataSource;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
/**
*
* @author Guilherme
*/
public class Conexao {
private BasicDataSource banco;
public Conexao( ) {
... |
68bd48d5-849d-497f-91bd-d5427408955f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-10 05:32:17", "repo_name": "victorhugolgr/AulaPrimefaces-Exemplos", "sub_path": "/PrimeiroProjetoPrimeFace/src/main/java/br/com/victor/conversores/PaisConverter.java", "file_name": "PaisConverter.java", "file_... | https://github.com/victorhugolgr/AulaPrimefaces-Exemplos | 241 | FILENAME: PaisConverter.java | 0.262842 | package br.com.victor.conversores;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
import br.com.victor.bean.AutoCompletePOJO;
import br.com.victor.model.Pais;
@FacesConverter("pais")
public class Pais... |
a4cbafa3-e587-4e0d-a02a-17f725bf3a90 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-25 15:10:25", "repo_name": "lwb2016/NewMtxLib", "sub_path": "/chromeweb/src/main/java/com/oacg/chromeweb/x5web/X5WebFragment.java", "file_name": "X5WebFragment.java", "file_ext": "java", "file_size_in_byte": 1... | https://github.com/lwb2016/NewMtxLib | 221 | FILENAME: X5WebFragment.java | 0.23092 | package com.oacg.chromeweb.x5web;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.view.ViewGroup;
import com.oacg.chromeweb.BaseWebClient;
import com.tencent.smtt.sdk.WebView;
import top.libbase.ui.fragment.BaseFragment;
/**
* x5web的frament
* Created ... |
e5f9e54b-f84e-4f3a-aeca-f7451e45c720 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-10-26 07:47:27", "repo_name": "igalyadid/profession", "sub_path": "/profession/src/com/profession/client/TopMenuLinksPanel.java", "file_name": "TopMenuLinksPanel.java", "file_ext": "java", "file_size_in_byte": 10... | https://github.com/igalyadid/profession | 222 | FILENAME: TopMenuLinksPanel.java | 0.225417 | package com.profession.client;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Hyperlink;
import com.google.gwt.user.client.ui.InlineHy... |
13a09609-3bae-424d-9590-3d6e09803b6f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-09 22:09:59", "repo_name": "BrettMaddy/CS3270FinalProject", "sub_path": "/app/src/main/java/com/example/mahrem_pc/cs3270finalproject/db/Legs.java", "file_name": "Legs.java", "file_ext": "java", "file_size_in_b... | https://github.com/BrettMaddy/CS3270FinalProject | 296 | FILENAME: Legs.java | 0.246533 | package com.example.mahrem_pc.cs3270finalproject.db;
import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
@Entity
public class Legs
{
public Legs(int lunges, int calfRaises, int squatThrusts)
{
setLunges(lunges);... |
ca8fb91d-a8a2-4733-aa7c-593c31202034 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-10-10T00:54:23", "repo_name": "samuel27m/php8-oci-docker", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 973, "line_count": 46, "lang": "en", "doc_type": "text", "... | https://github.com/samuel27m/php8-oci-docker | 269 | FILENAME: README.md | 0.20947 | # php8-oci-docker
Docker-compose with PHP 8 & OCI Extensions, Apache 2.4, Mailcatcher
## Apache
**Version:** 2.4.38
## PHP
**Version:** 8.0.0
**Extensions enabled:** OCI & MySQL
#### If you need more PHP extensions, change the `php-apache/Dockerfile` file and restart the containers
# Mailcatcher
Included in cas... |
89d78226-d8ca-4f72-a9d9-20d4406167e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-24T09:28:46", "repo_name": "AliceMenzie/gatsby-portfolio", "sub_path": "/src/projects/ca-react.md", "file_name": "ca-react.md", "file_ext": "md", "file_size_in_byte": 1007, "line_count": 42, "lang": "en", ... | https://github.com/AliceMenzie/gatsby-portfolio | 257 | FILENAME: ca-react.md | 0.191933 | ---
title: Libro
stack: Ruby, Ruby on Rails, jS, React & Bootstrap
deployment: Heroku & Netlify
snippet: lorem ipsum dolor sit amet
slug: ca-react-application
thumb: ../images/ca-react.png
---
### The Challenge
Libro is a fullstack application aimed at book lovers and enthusiasts.
It is primarily for those who wish to... |
06394d18-59eb-404a-8c9a-bb86dc7df112 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-07 09:18:35", "repo_name": "nareshr38/JavaHomeTask", "sub_path": "/src/main/java/com/ranguht/code/javabasics/designpatterns/singleton/NetworkConnection.java", "file_name": "NetworkConnection.java", "file_ext":... | https://github.com/nareshr38/JavaHomeTask | 204 | FILENAME: NetworkConnection.java | 0.261331 | package com.ranguht.code.javabasics.designpatterns.singleton;
public class NetworkConnection {
public static NetworkConnection connection;
public static synchronized NetworkConnection getConnection() {
if (connection == null) {
connection = new NetworkConnection();
}
return... |
6cb679f3-8289-45fa-a1a1-ad4af18015ba | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-11 12:22:33", "repo_name": "vivekbattala/Engine_Room", "sub_path": "/Credit-TestNG/src/dd_excel/NewTest.java", "file_name": "NewTest.java", "file_ext": "java", "file_size_in_byte": 980, "line_count": 45, "lang... | https://github.com/vivekbattala/Engine_Room | 228 | FILENAME: NewTest.java | 0.26971 | package dd_excel;
import org.testng.annotations.Test;
import jxl.Workbook;
import jxl.write.Label;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;
import jxl.write.WriteException;
import jxl.write.biff.JxlWriteException;
import jxl.write.biff.RowsExceededException;
import org.testng.annotations.Be... |
693fdc33-a950-4332-954d-6fc951e066c8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-16 10:05:26", "repo_name": "Legendmaker2/SoloBob-Server", "sub_path": "/src/main/java/com/codefair/solobob/Schedule.java", "file_name": "Schedule.java", "file_ext": "java", "file_size_in_byte": 1096, "line_cou... | https://github.com/Legendmaker2/SoloBob-Server | 223 | FILENAME: Schedule.java | 0.262842 | package com.codefair.solobob;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Entity
@NoArgsConstructor
@Getter
public class Schedule {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
p... |
057abc9f-6583-49cb-8376-8905b04eb509 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-05 18:20:21", "repo_name": "RankenTechnicalCollege/awd-1112-evandmeier", "sub_path": "/projects/HOT52/app/src/main/java/edu/ranken/emeier/hot5/ui/fragment/DatePickerFragment.java", "file_name": "DatePickerFrag... | https://github.com/RankenTechnicalCollege/awd-1112-evandmeier | 194 | FILENAME: DatePickerFragment.java | 0.264358 | package edu.ranken.emeier.hot5.ui.fragment;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.DialogFragment;
import java.util.Calendar;
publi... |
6c23fbe1-a9d4-4f80-a56a-2d553c945de5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-28 13:47:57", "repo_name": "yuuki-fujii/ex-emp-management-bugfix", "sub_path": "/src/main/java/jp/co/sample/emp_management/controller/CheckMailAddressApiController.java", "file_name": "CheckMailAddressApiContr... | https://github.com/yuuki-fujii/ex-emp-management-bugfix | 193 | FILENAME: CheckMailAddressApiController.java | 0.239349 | package jp.co.sample.emp_management.controller;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import jp.co.sample.emp_manageme... |
aace05c5-462f-44be-bd40-d5002f1a2c1c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-04-24 12:36:00", "repo_name": "malkiev96/Oauth-login", "sub_path": "/auth-server/src/main/java/ru/malkiev/oauth/service/UserInitializer.java", "file_name": "UserInitializer.java", "file_ext": "java", "file_size_i... | https://github.com/malkiev96/Oauth-login | 197 | FILENAME: UserInitializer.java | 0.256832 | package ru.malkiev.oauth.service;
import lombok.AllArgsConstructor;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
import ru.malkiev.oauth.dto.UserDto;
import ru.malkiev.oauth.entity.Role;
import ru.malkiev.oauth... |
2587368d-7723-4349-8b9b-73ce5887f06f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-23 08:51:36", "repo_name": "XiaosuLi/rental", "sub_path": "/src/com/rental/service/ipml/UserServiceImpl.java", "file_name": "UserServiceImpl.java", "file_ext": "java", "file_size_in_byte": 1179, "line_count": ... | https://github.com/XiaosuLi/rental | 250 | FILENAME: UserServiceImpl.java | 0.285372 | package com.rental.service.ipml;
import com.rental.mapper.UserMapper;
import com.rental.pojo.User;
import com.rental.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class UserServiceImpl impleme... |
88461021-1f2d-453c-bcf5-083aabe0ac81 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-24 09:31:12", "repo_name": "g-smll/gang-mars-java", "sub_path": "/spring-boot-validation/src/main/java/com/gang/mars/validation/resource/ValidationResource.java", "file_name": "ValidationResource.java", "file_... | https://github.com/g-smll/gang-mars-java | 217 | FILENAME: ValidationResource.java | 0.247987 | package com.gang.mars.validation.resource;
import com.gang.mars.validation.request.data.ProductData;
import com.gang.mars.validation.request.data.PersonData;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
im... |
c6877040-d2bd-43fb-b29c-c88655512923 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-08-30T19:44:45", "repo_name": "angular/angular", "sub_path": "/devtools/docs/safari.md", "file_name": "safari.md", "file_ext": "md", "file_size_in_byte": 1154, "line_count": 20, "lang": "en", "doc_type": "tex... | https://github.com/angular/angular | 245 | FILENAME: safari.md | 0.204342 | # Installing Angular DevTools in Safari (experimental)
### Requirements
- Xcode 13+
To install Angular DevTools in Safari follow the steps:
* Open Safari and make sure the checkbox in `Safari -> Preferences -> Advanced -> Show develop menu in menu bar` is checked.
* Make sure the flag in `Develop -> Experimental F... |
8f8ff06a-d014-4bb9-b043-5a9b872047ff | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-04 10:57:46", "repo_name": "rana771/hrm-payroll", "sub_path": "/src/main/java/com/bracu/hrm/model/EmployeeDesignation.java", "file_name": "EmployeeDesignation.java", "file_ext": "java", "file_size_in_byte": 10... | https://github.com/rana771/hrm-payroll | 219 | FILENAME: EmployeeDesignation.java | 0.262842 | package com.bracu.hrm.model;
import java.util.Date;
import javax.persistence.*;
import com.bracu.hrm.model.org.Designation;
import com.bracu.hrm.model.settings.SetupEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@Entity
@Table(name = "employee_designation")
@Data
public cla... |
887d0238-6da1-4617-8bd1-a4adc640ad6d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-06-11 09:35:51", "repo_name": "yisiwei/Vaccination", "sub_path": "/src/cn/mointe/vaccination/domain/VaccinationCategory.java", "file_name": "VaccinationCategory.java", "file_ext": "java", "file_size_in_byte": 103... | https://github.com/yisiwei/Vaccination | 249 | FILENAME: VaccinationCategory.java | 0.279042 | package cn.mointe.vaccination.domain;
import java.util.ArrayList;
import java.util.List;
public class VaccinationCategory {
private String categoryName;
private List<Vaccination> categoryItem = new ArrayList<Vaccination>();
public VaccinationCategory(String categoryName) {
this.categoryName = categoryName;
}
... |
36683b31-0e8d-4ef7-9d31-f75170da95da | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-13 16:40:39", "repo_name": "downwine/Java-3-sem", "sub_path": "/src/ru/downwine/_3_ThirdLab/Ex2/Arm.java", "file_name": "Arm.java", "file_ext": "java", "file_size_in_byte": 1111, "line_count": 55, "lang": "en"... | https://github.com/downwine/Java-3-sem | 256 | FILENAME: Arm.java | 0.275909 | package ru.downwine._3_ThirdLab.Ex2;
public class Arm {
private boolean broken;
private int size;
private String name;
public void health(){
if ((int)(Math.random()*10) > 5)
setBroken(true);
else setBroken(false);
}
public boolean wave () {
if ((int)(Math.ran... |
8a605416-ec6b-4941-8a05-5bd74989da7e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-13 10:59:13", "repo_name": "s-j/solbrille", "sub_path": "/src/main/com/ntnu/solbrille/query/processing/AbstractProcessingComponent.java", "file_name": "AbstractProcessingComponent.java", "file_ext": "java", "f... | https://github.com/s-j/solbrille | 245 | FILENAME: AbstractProcessingComponent.java | 0.279042 | package com.ntnu.solbrille.query.processing;
import com.ntnu.solbrille.query.QueryRequest;
import com.ntnu.solbrille.query.QueryResult;
/**
* Asbtract processing component.
*
* @author <a href="mailto:olanatv@stud.ntnu.no">Ola Natvig</a>
* @version $Id $.
*/
public abstract class AbstractProcessingComponent impl... |
73d5476c-bb7d-4829-be93-6e35823cfec3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-04-21 21:35:04", "repo_name": "raulgd/medi_java", "sub_path": "/src/main/java/mx/jimi/medi/views/UserResource.java", "file_name": "UserResource.java", "file_ext": "java", "file_size_in_byte": 1000, "line_count": ... | https://github.com/raulgd/medi_java | 245 | FILENAME: UserResource.java | 0.259826 | package mx.jimi.medi.views;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Consumes;
import javax.ws.rs.core.Context;
import javax.ws.rs.Produces;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import mx.jimi.medi.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.