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 |
|---|---|---|---|---|---|---|
7fe43a48-f5bb-46f3-bd19-de663b7d1abf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-06 08:59:33", "repo_name": "WaterMoonMirror/spring-cloud-book", "sub_path": "/consumer-book/src/main/java/com/wondersgroup/simple/consumer/controller/ConsumerController.java", "file_name": "ConsumerController.... | https://github.com/WaterMoonMirror/spring-cloud-book | 203 | FILENAME: ConsumerController.java | 0.249447 | package com.wondersgroup.simple.consumer.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import org.springfra... |
ffdd4bba-8478-4f8f-9bbf-3cac880a1dd9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-24 23:43:12", "repo_name": "JordanWWood/Minecraft-Severside-Plugins-Portfolio", "sub_path": "/MinigameCore/SurvivalGames/src/main/java/network/marble/game/mode/survivalgames/commands/Whisper.java", "file_name"... | https://github.com/JordanWWood/Minecraft-Severside-Plugins-Portfolio | 240 | FILENAME: Whisper.java | 0.29584 | package network.marble.game.mode.survivalgames.commands;
import network.marble.game.mode.survivalgames.listeners.GameListener;
import network.marble.game.mode.survivalgames.listeners.StateListener;
import network.marble.minigamecore.entities.command.MinigameCommand;
import network.marble.minigamecore.entities.player.P... |
7b7a8909-93ef-45ba-b5b4-d7afc193244d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-14 07:18:58", "repo_name": "rkskekabc/shoppingmall_front", "sub_path": "/src/main/java/com/cafe24/shoppingmall_front/security/CustomUserDetailService.java", "file_name": "CustomUserDetailService.java", "file_e... | https://github.com/rkskekabc/shoppingmall_front | 228 | FILENAME: CustomUserDetailService.java | 0.290981 | package com.cafe24.shoppingmall_front.security;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNot... |
996a4ffc-d470-4c4d-9244-02419b320863 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-31 05:08:03", "repo_name": "GamiiisKth/giga-example", "sub_path": "/giga-example/src/main/java/se/so4it/learn/domain/Customer.java", "file_name": "Customer.java", "file_ext": "java", "file_size_in_byte": 1150,... | https://github.com/GamiiisKth/giga-example | 241 | FILENAME: Customer.java | 0.236516 | package se.so4it.learn.domain;
import se.so4it.learn.common.IdEntity;
import java.util.Objects;
/**
* @author Ali yusha {@literal <mailto:ali.yusha@so4it.com>}
*/
public class Customer extends IdEntity<String> {
private String name;
private String id;
private Customer(Builder builder) {
thi... |
22973f3d-2e65-4df6-8ba5-28dc1819f3fd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-09-19 04:41:38", "repo_name": "paradite/CS2106SimpleKernel", "sub_path": "/src/zhuliang/nus/cs2106/KernelResource.java", "file_name": "KernelResource.java", "file_ext": "java", "file_size_in_byte": 984, "line_cou... | https://github.com/paradite/CS2106SimpleKernel | 230 | FILENAME: KernelResource.java | 0.273574 | package zhuliang.nus.cs2106;
import java.util.LinkedList;
/**
* Class for resources
* Created by paradite on 2/9/14.
*/
public class KernelResource {
public String RID;
// Number of free units
public int max_unit;
public int status;
public LinkedList<KernelProcess> blocked_list;
public Linke... |
4157e44f-e55e-46ff-a3cb-a2e928d035e7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-22 08:39:50", "repo_name": "micnice/voucher-mobile", "sub_path": "/app/src/main/java/morris/com/voucher/graphql/GraphQL.java", "file_name": "GraphQL.java", "file_ext": "java", "file_size_in_byte": 1039, "line_... | https://github.com/micnice/voucher-mobile | 250 | FILENAME: GraphQL.java | 0.27513 | package morris.com.voucher.graphql;
import com.apollographql.apollo.ApolloClient;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
/**
* Created by morris on 03/01/2019
*/
public class GraphQL {
public static final String BASE_URL =
"http://192.168.43.250:2508/graphql/";
//"http:/... |
32233a8f-de95-435c-adec-33e85286412b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-26 00:07:40", "repo_name": "wissensolutions/learning-java", "sub_path": "/Conceptual-Questions/src/main/java/reflection/ClassA.java", "file_name": "ClassA.java", "file_ext": "java", "file_size_in_byte": 993, "... | https://github.com/wissensolutions/learning-java | 234 | FILENAME: ClassA.java | 0.255344 | package reflection;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* ClassA
* Learning
*
* @author WissenSolutions.
*/
public class ClassA {
private static final Logger logger = LoggerFactory.getLogger(ClassA.class);
private int id;
private String name;
private ClassA(int iId, Str... |
beb75770-f11c-432e-b4aa-d128e2623585 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-27 07:32:21", "repo_name": "ShaneKingArchive/org.shaneking.sql", "sub_path": "/src/main/java/org/shaneking/sql/entity/SKZoneAdtVerFullEntity.java", "file_name": "SKZoneAdtVerFullEntity.java", "file_ext": "java... | https://github.com/ShaneKingArchive/org.shaneking.sql | 297 | FILENAME: SKZoneAdtVerFullEntity.java | 0.291787 | package org.shaneking.sql.entity;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.shaneking.skava.util.Date0;
import javax.persistence.Column;
/**
* Just reference
*/
@Accessors(chain = true)
@ToString
public abstract class... |
9c37a249-a281-476b-bb82-eeabd72f4e5b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-21 07:49:45", "repo_name": "zhonghangIT/MVPBaseApplication", "sub_path": "/app/src/main/java/com/cgt/yuanmeng/baseapplication/ui/splash/SplashActivity.java", "file_name": "SplashActivity.java", "file_ext": "ja... | https://github.com/zhonghangIT/MVPBaseApplication | 237 | FILENAME: SplashActivity.java | 0.250913 | package com.cgt.yuanmeng.baseapplication.ui.splash;
import android.content.Intent;
import android.os.Bundle;
import com.cgt.yuanmeng.baseapplication.R;
import com.cgt.yuanmeng.baseapplication.base.BaseActivity;
import com.cgt.yuanmeng.baseapplication.ui.main.MainActivity;
/**
* @author zhonghang
* description:
*/... |
95c74c29-090a-4584-9e3c-dada317141f4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-09-07 06:51:49", "repo_name": "zgsxxzzyl/spring-boot-sample-code", "sub_path": "/springboot-web-enterprise/src/main/java/com/framework/aspectj/DataSourceAspect.java", "file_name": "DataSourceAspect.java", "file_e... | https://github.com/zgsxxzzyl/spring-boot-sample-code | 219 | FILENAME: DataSourceAspect.java | 0.239349 | package com.framework.aspectj;
import com.framework.aspectj.lang.annotation.TargetDataSource;
import com.framework.datasource.DynamicDataSourceContextHolder;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before... |
c4d00fb0-24ba-4311-ac4f-44aabc791ec9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-12 08:44:14", "repo_name": "linhui123/jhhsProject", "sub_path": "/app/src/main/java/com/jhhscm/platform/fragment/invitation/IntegralFragment.java", "file_name": "IntegralFragment.java", "file_ext": "java", "fi... | https://github.com/linhui123/jhhsProject | 197 | FILENAME: IntegralFragment.java | 0.217338 | package com.jhhscm.platform.fragment.invitation;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import com.jhhscm.platform.databinding.FragmentIntegralBinding;
import com.jhhscm.platform.fragment.base.AbsFragment;
/**
* 积分
*/
public class IntegralFragment extends AbsFragment<FragmentIntegralBi... |
5eb8c0ca-f9c8-4153-95a4-37fbe01426ba | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-28 20:09:08", "repo_name": "romanvey/apps17vey-hw2", "sub_path": "/src/main/java/Terminal.java", "file_name": "Terminal.java", "file_ext": "java", "file_size_in_byte": 1035, "line_count": 41, "lang": "en", "do... | https://github.com/romanvey/apps17vey-hw2 | 240 | FILENAME: Terminal.java | 0.277473 | import java.util.ArrayList;
public class Terminal {
private ArrayList<ISkiPass> skiPasses;
private SkiPassFactory skiPassFactory;
public Terminal(SkiPassFactory skiPassFactory){
skiPasses = new ArrayList<>();
this.skiPassFactory = skiPassFactory;
}
boolean block(int id){
for... |
10734d0e-a714-4607-a6a3-65f255b1d4d5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-31 10:14:48", "repo_name": "SugiHaxor/tugasKuliah", "sub_path": "/uas/Insert.java", "file_name": "Insert.java", "file_ext": "java", "file_size_in_byte": 1051, "line_count": 32, "lang": "en", "doc_type": "code"... | https://github.com/SugiHaxor/tugasKuliah | 219 | FILENAME: Insert.java | 0.271252 | /*
* 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 uas;
import java.sql.Statement;
import javax.swing.JOptionPane;
/**
*
* @author sugi
*/
public class Insert ... |
4d56131d-b643-49c5-a42a-ade0404ca47d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-05-11 05:54:29", "repo_name": "davidperezmillan/examples", "sub_path": "/services/ServicesFactory.java", "file_name": "ServicesFactory.java", "file_ext": "java", "file_size_in_byte": 1026, "line_count": 37, "lang... | https://github.com/davidperezmillan/examples | 194 | FILENAME: ServicesFactory.java | 0.243642 | package com.sandbox.sandbox.common.services;
import com.sandbox.sandbox.common.services.beans.BeanServicesDefinition;
/**
* Clase que se encarga de proporcionar los servicios de la aplicación.
*/
public class ServicesFactory {
private static BeanServicesDefinition servicesDef = null;
public static Generic... |
15a2a2d4-af78-4a6f-8488-be2cbca7b332 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-11 00:02:02", "repo_name": "Taemane/GADS_Practice_Project", "sub_path": "/app/src/main/java/orionlofty/com/apps/gadspracticeproject/services/SubmitServiceBuilder.java", "file_name": "SubmitServiceBuilder.java"... | https://github.com/Taemane/GADS_Practice_Project | 199 | FILENAME: SubmitServiceBuilder.java | 0.255344 | package orionlofty.com.apps.gadspracticeproject.services;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;... |
40b460d6-574c-4233-8c11-eb88c8df41dc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-06-07T02:03:01", "repo_name": "victorwizeline/kotlin-contest", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1211, "line_count": 30, "lang": "en", "doc_type": "tex... | https://github.com/victorwizeline/kotlin-contest | 275 | FILENAME: README.md | 0.252384 | # Kotlin Contest
**Kotlin Contest** is an android app that shows a list of top albums. The app utilizes [Last FM API](http://www.last.fm/api).
## Project setup
To run the project you should obtain a new Last FM api key that needs to be set in the gradle.properties file.
## Open-source libraries used
- [Retrofit](h... |
8f143f3e-0a06-4cc4-9d59-6f8dea8705a4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-02 12:47:31", "repo_name": "NolanJos/vespa", "sub_path": "/configserver/src/test/java/com/yahoo/vespa/config/server/tenant/MockTenantProvider.java", "file_name": "MockTenantProvider.java", "file_ext": "java", ... | https://github.com/NolanJos/vespa | 224 | FILENAME: MockTenantProvider.java | 0.286169 | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.tenant;
import com.yahoo.vespa.config.server.MockReloadHandler;
import com.yahoo.vespa.config.server.rpc.MockRequestHandler;
import com.yahoo.vespa.config.server.... |
a24a664b-73db-4c01-9ac8-7562596942a7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-22 10:21:34", "repo_name": "yangwulang/music", "sub_path": "/music-spring/src/main/java/top/yangwulang/utils/LoadJson.java", "file_name": "LoadJson.java", "file_ext": "java", "file_size_in_byte": 1212, "line_c... | https://github.com/yangwulang/music | 251 | FILENAME: LoadJson.java | 0.262842 | package top.yangwulang.utils;
import java.io.*;
/**
* @author yangwulang
* @date 2020/4/19 增加读取资源目录下的文件转化成string
*/
public class LoadJson {
/**
* 读取resources目录下的request.json文件到内存
*
* @return 加载文件到内存中
* @throws IOException s
*/
public static String loadJson() throws IOException {
... |
f6e139dc-1989-46dd-9942-3cf20542f670 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-16 05:07:39", "repo_name": "JaysonCheng/LeetCode", "sub_path": "/JavaLeetCode/src/LeetCode/ValidParantheses.java", "file_name": "ValidParantheses.java", "file_ext": "java", "file_size_in_byte": 1210, "line_cou... | https://github.com/JaysonCheng/LeetCode | 226 | FILENAME: ValidParantheses.java | 0.259826 | package LeetCode;
import java.util.HashMap;
import java.util.Stack;
public class ValidParantheses {
public static boolean isValid(String s) {
if(s.length() < 2) return false;
boolean isValid = false;
HashMap<Character, Character> parentheses = new HashMap<>();
parentheses.put('{'... |
78b6a190-3df1-480a-9e69-781c4def3fc2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-10 08:15:01", "repo_name": "IvanButakov/simple", "sub_path": "/src/main/java/com/but/simple/service/MessageService.java", "file_name": "MessageService.java", "file_ext": "java", "file_size_in_byte": 992, "line... | https://github.com/IvanButakov/simple | 182 | FILENAME: MessageService.java | 0.281406 | package com.but.simple.service;
import com.but.simple.entity.Message;
import com.but.simple.entity.User;
import com.but.simple.repository.MessageRepository;
import com.but.simple.utils.Utils;
import org.springframework.stereotype.Service;
import java.util.Map;
@Service
public class MessageService {
private final... |
62df3e04-2432-4c7e-bdfc-2346a5e6e15f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-09 13:21:09", "repo_name": "heyaoi/LayoutCompareDemo", "sub_path": "/app/src/main/java/com/example/layoutcomparedemo/Titleview.java", "file_name": "Titleview.java", "file_ext": "java", "file_size_in_byte": 112... | https://github.com/heyaoi/LayoutCompareDemo | 206 | FILENAME: Titleview.java | 0.255344 | package com.example.layoutcomparedemo;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
public class Titleview extends... |
658c9b9f-678d-40eb-b4d0-d1c40c884ed9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-24 01:09:25", "repo_name": "gonwan/restful", "sub_path": "/springboot/src/main/java/com/gonwan/restful/springboot/model/TUserDateCountPK.java", "file_name": "TUserDateCountPK.java", "file_ext": "java", "file_s... | https://github.com/gonwan/restful | 258 | FILENAME: TUserDateCountPK.java | 0.264358 | package com.gonwan.restful.springboot.model;
import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.sql.Date;
import java.util.Objects;
public class TUserDateCountPK implements Serializable {
private String username;
private Date rowDate;
@Column(name = "us... |
1a8da740-fe66-4a27-ba49-cbe033e63895 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-16 07:22:42", "repo_name": "Goliat80/JPABlogg", "sub_path": "/src/main/java/com/example/jpadb/PostsController.java", "file_name": "PostsController.java", "file_ext": "java", "file_size_in_byte": 1034, "line_co... | https://github.com/Goliat80/JPABlogg | 212 | FILENAME: PostsController.java | 0.277473 | package com.example.jpadb;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import java.util.List;... |
778d3fd7-4223-4eac-b918-7a6187a1bb9e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-28 06:52:47", "repo_name": "A-pZ/spring-session-safe-deserialize-sample", "sub_path": "/src/main/java/com/github/apz/controller/SampleController.java", "file_name": "SampleController.java", "file_ext": "java",... | https://github.com/A-pZ/spring-session-safe-deserialize-sample | 233 | FILENAME: SampleController.java | 0.292595 | package com.github.apz.controller;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttribute;
import ... |
98c94e29-023a-4a7e-bd7e-af8a2db1e335 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-25 13:59:16", "repo_name": "akinyeleolat/videorentalapi", "sub_path": "/src/main/java/com/videorentalapi/service/services/UserServiceImpl.java", "file_name": "UserServiceImpl.java", "file_ext": "java", "file_s... | https://github.com/akinyeleolat/videorentalapi | 203 | FILENAME: UserServiceImpl.java | 0.261331 | package com.videorentalapi.service.services;
import com.videorentalapi.service.models.User;
import com.videorentalapi.service.repository.UserRepository;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import java.util.Optional;
@Service
public ... |
4cbe169b-1fc2-48ba-9ebe-0c94c560f2a4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-09 17:22:34", "repo_name": "danielcdev/swingit", "sub_path": "/src/main/java/com/danielcotter/swingit/utility/ModalUtility.java", "file_name": "ModalUtility.java", "file_ext": "java", "file_size_in_byte": 1085... | https://github.com/danielcdev/swingit | 223 | FILENAME: ModalUtility.java | 0.277473 | package com.danielcotter.swingit.utility;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import org.springframework.stereotype.Component;
@Component
public class ModalUtility {
public String getInput(String text) {
JLabel label = new JLabel(text);
final J... |
252c5ada-f128-40d7-b0ad-c3916fcea089 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-27 03:22:19", "repo_name": "545923664/xx-im", "sub_path": "/xx-im/src/main/java/com/jzwl/mytest/login/service/impl/LoginServiceImpl.java", "file_name": "LoginServiceImpl.java", "file_ext": "java", "file_size_i... | https://github.com/545923664/xx-im | 259 | FILENAME: LoginServiceImpl.java | 0.23231 | package com.jzwl.mytest.login.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jzwl.base.service.BaseService;
import com.jzwl.mytest.login.dao.LoginDao;
import com.jzwl.mytest.login.serv... |
a26d121e-8fb6-448f-b6a5-a0700f10b458 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-04-09T01:04:30", "repo_name": "bingoohuang/flume-more", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1052, "line_count": 27, "lang": "en", "doc_type": "text", "bl... | https://github.com/bingoohuang/flume-more | 275 | FILENAME: README.md | 0.294215 | # flume-more
more sources, interceptors and others
## more sources
### com.github.bingoohuang.flume.more.source.ExecBlockSource
Enhance exec source to support a log event which may contain multiple lines like java exception trace stacks.
example:
a1.sources = r1
a1.channels = c1
a1.sources.r1.type = com.g... |
ee0afa4a-6c62-4403-8a42-05edad8a1dda | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-08-14 23:48:20", "repo_name": "brandonegg/soldiersvszombies", "sub_path": "/src/me/bman7842/soldiersvszombies/managers/ArenaManager.java", "file_name": "ArenaManager.java", "file_ext": "java", "file_size_in_byte"... | https://github.com/brandonegg/soldiersvszombies | 262 | FILENAME: ArenaManager.java | 0.293404 | package me.bman7842.soldiersvszombies.managers;
import me.bman7842.soldiersvszombies.utils.FileManager;
import java.util.ArrayList;
import java.util.Random;
/**
* Created by brand_000 on 8/2/2015.
*/
public class ArenaManager {
private ArrayList<Arena> arenas;
private ArenaManager(){
this.arenas ... |
374db919-c04a-4c5a-ab84-274ebd89639d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-07 17:19:09", "repo_name": "kkdrz/powierzenia", "sub_path": "/src/main/java/pl/edu/pwr/service/mapper/CourseMapper.java", "file_name": "CourseMapper.java", "file_ext": "java", "file_size_in_byte": 1128, "line_... | https://github.com/kkdrz/powierzenia | 258 | FILENAME: CourseMapper.java | 0.280616 | package pl.edu.pwr.service.mapper;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import pl.edu.pwr.domain.Course;
import pl.edu.pwr.service.dto.CourseDTO;
/**
* Mapper for the entity {@link Course} and its DTO {@link CourseDTO}.
*/
@Mapper(componentModel = "spring", uses = {KnowledgeAreaMapper.class, E... |
d2e3ac90-7a99-4422-9b14-8e8f3a2fbd5f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-25 22:11:31", "repo_name": "justindongqiang/spring5-mvc-rest", "sub_path": "/src/test/java/guru/springframework/ThisRestTests.java", "file_name": "ThisRestTests.java", "file_ext": "java", "file_size_in_byte": ... | https://github.com/justindongqiang/spring5-mvc-rest | 206 | FILENAME: ThisRestTests.java | 0.247987 | package guru.springframework;
import com.fasterxml.jackson.databind.JsonNode;
import guru.springframework.controllers.v1.CategoryController;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfi... |
54e394ac-b1a2-4358-be4c-3f5ea0a17846 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-01 18:49:47", "repo_name": "dimitrakouu/ClinicProject", "sub_path": "/SoftEng/src/Drug.java", "file_name": "Drug.java", "file_ext": "java", "file_size_in_byte": 995, "line_count": 70, "lang": "en", "doc_type":... | https://github.com/dimitrakouu/ClinicProject | 232 | FILENAME: Drug.java | 0.285372 | public class Drug {
private String name;
private String id;
private double price;
private int availability;
private int soldUnits;
public Drug(String name, String Id, double price, int availability) {
this.name = name;
this.id = Id;
this.price = price;
this.availability = availability;
thi... |
fdbb1a74-0e80-4c0e-be9a-ee49eb1eda6e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-10 08:39:40", "repo_name": "kfcoding/kfcoding-springboot", "sub_path": "/kfcoding-core/src/main/java/com/cuiyun/kfcoding/core/exception/KfCodingExceptionEnum.java", "file_name": "KfCodingExceptionEnum.java", "... | https://github.com/kfcoding/kfcoding-springboot | 272 | FILENAME: KfCodingExceptionEnum.java | 0.243642 | package com.cuiyun.kfcoding.core.exception;
/**
* @program: kfcoding
* @description: KfCoding异常枚举
* @author: maple
* @create: 2018-05-05 21:05
**/
public enum KfCodingExceptionEnum implements ServiceExceptionEnum {
/**
* 其他
*/
WRITE_ERROR(500,"渲染界面错误"),
/**
* 文件上传
*/
FILE_READ... |
ff1aaa8e-c3b8-42a8-bcaa-4a49a8984751 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-23 15:03:44", "repo_name": "sebasdelr/XMLViewer", "sub_path": "/src/sample/xmlviewer/data/ViewerManager.java", "file_name": "ViewerManager.java", "file_ext": "java", "file_size_in_byte": 1029, "line_count": 42... | https://github.com/sebasdelr/XMLViewer | 215 | FILENAME: ViewerManager.java | 0.264358 | package sample.xmlviewer.data;
import javafx.scene.control.TreeItem;
import sample.xmlviewer.main.ViewerWindowMain;
import java.io.File;
import java.util.ArrayList;
public class ViewerManager {
private static File xmlFile;
private static String xsdFilePath;
private static ArrayList<TreeItem<String>> tree... |
67ec0690-b0f7-4cec-8edc-2a7c27e9e497 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-10-06T02:31:14", "repo_name": "Harris-Lodi/HTML_CSS_JS_WebSite", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1045, "line_count": 16, "lang": "en", "doc_type": "t... | https://github.com/Harris-Lodi/HTML_CSS_JS_WebSite | 270 | FILENAME: README.md | 0.205615 | # HTML_CSS_JS_WebSite
My attempt to get started with basic web dev using HTML, CSS, and Javascript.
This project is to help me get used to working with HTML and CSS while being an introduction for Javascript for me! <br />
This project is based on 'The Road' project from lashaNoz on Github, it's not meant to be p... |
a3bafc58-1951-4a2b-a2ac-6d644a7dc589 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-09 16:10:46", "repo_name": "Sharon131/Theory-of-Concurrency-Laboratory", "sub_path": "/Lab5/src/main/java/readers_writers/readers_first/Writer.java", "file_name": "Writer.java", "file_ext": "java", "file_size_... | https://github.com/Sharon131/Theory-of-Concurrency-Laboratory | 232 | FILENAME: Writer.java | 0.279828 | package readers_writers.readers_first;
import java.util.Random;
import java.util.concurrent.Semaphore;
public class Writer extends Thread {
private Random gen = new Random();
private Semaphore _sem;
private SynchData _synchData;
public Writer(Semaphore sem, SynchData synchData) {
_sem = sem;
... |
a8f5e422-a6e7-4579-ba01-efc4b88c0d8d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-05-23 13:42:16", "repo_name": "tomaaron/ID3-Tag-Editor", "sub_path": "/src/model/id3/ID3Frame.java", "file_name": "ID3Frame.java", "file_ext": "java", "file_size_in_byte": 1211, "line_count": 57, "lang": "en", "d... | https://github.com/tomaaron/ID3-Tag-Editor | 406 | FILENAME: ID3Frame.java | 0.286169 | package model.id3;
/**
*
* represents a mp3 frame
*
* @author MPGI 4, WS 11/12, Tutorium 01, Gruppe 05
*
*/
public class ID3Frame {
public static final int TAG_ALTER_PRESERVATION = 0;
public static final int FILE_ALTER_PRESERVATION = 1;
public static final int READ_ONLY = 2;
public static final int COMPRE... |
617a7e62-4fc0-4007-b20a-48c97b3ed0a5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-12 16:33:18", "repo_name": "pinzhuo-zhao/Online-whiteboard-project", "sub_path": "/src/ClientMessage.java", "file_name": "ClientMessage.java", "file_ext": "java", "file_size_in_byte": 1034, "line_count": 50, "... | https://github.com/pinzhuo-zhao/Online-whiteboard-project | 240 | FILENAME: ClientMessage.java | 0.23793 | import java.io.Serializable;
/**
* @program: COMP90015A2
* @description:
* @author: Pinzhuo Zhao, StudentID:1043915
* @create: 2021-05-07 21:07
**/
public class ClientMessage implements Serializable {
String prefix;
String message;
private static final long serialVersionUID = 1L;
public ClientMes... |
115361ea-99fd-4210-b10f-6841fc65dc95 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-06 04:05:39", "repo_name": "vescame/SimpleSpringSecurity", "sub_path": "/src/main/java/edu/vescame/simpleSpringSecurity/seed/RoleInitializer.java", "file_name": "RoleInitializer.java", "file_ext": "java", "fil... | https://github.com/vescame/SimpleSpringSecurity | 188 | FILENAME: RoleInitializer.java | 0.249447 | package edu.vescame.simpleSpringSecurity.seed;
import edu.vescame.simpleSpringSecurity.entity.Role;
import edu.vescame.simpleSpringSecurity.repository.RoleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.contex... |
cb74d228-6aa0-44e3-9219-a07da8e437a9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-10-02T14:37:31", "repo_name": "jbaysolutions/vue-bootstrap-select", "sub_path": "/docs/index.md", "file_name": "index.md", "file_ext": "md", "file_size_in_byte": 1234, "line_count": 72, "lang": "en", "doc_typ... | https://github.com/jbaysolutions/vue-bootstrap-select | 311 | FILENAME: index.md | 0.224055 | # Vue-Bootstrap-Select
vue-bootstrap-select - A dropdown select component, that allows for single and multiple selection as well as filtering, for vue.js.
### Version : 0.0.1 - Beta version
### [Demo](https://jbaysolutions.github.io/vue-bootstrap-select/examples/01-basic.html)
<!--
## Table of Contents
- [Feature... |
7859d1b0-b2ac-4e8b-ba32-fed03a1da896 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-02-22 10:23:44", "repo_name": "sujeet100/filesearch", "sub_path": "/FileSearch/src/com/filesearch/SearchQuery.java", "file_name": "SearchQuery.java", "file_ext": "java", "file_size_in_byte": 1128, "line_count": 4... | https://github.com/sujeet100/filesearch | 228 | FILENAME: SearchQuery.java | 0.280616 | package com.filesearch;
import java.util.Arrays;
import java.util.List;
public class SearchQuery{
private String searchString;
private List<String> fileFilterExtensions;
private SortOn sortCriteria;
public SearchQuery(String searchString, String... fileFilterExtensions) {
this.searchString = searchString;
t... |
1f2d363f-77e1-449a-b314-defeddfb1fd5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-10-11T06:44:10", "repo_name": "akkarthick/magento2", "sub_path": "/Mailer/Ews/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1151, "line_count": 26, "lang": "en", "doc_type": "te... | https://github.com/akkarthick/magento2 | 279 | FILENAME: README.md | 0.264358 | <h1>PHP Exchange Web Services</h1>
The PHP Exchange Web Services library (php-ews) is intended to make communication with Microsoft Exchange servers using Exchange Web Services easier. It handles the NTLM authentication required to use the SOAP services and provides an object-oriented interface to the complex types re... |
1799e34b-6b39-4bd9-8f8c-bb948dc2a0b1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-12 12:45:07", "repo_name": "AhGang/RefactorDemo", "sub_path": "/src/main/java/rentalstore/Movie.java", "file_name": "Movie.java", "file_ext": "java", "file_size_in_byte": 1030, "line_count": 41, "lang": "en", ... | https://github.com/AhGang/RefactorDemo | 221 | FILENAME: Movie.java | 0.292595 | package rentalstore;
public class Movie {
public static final int CHILDRENS = 2;
public static final int REGULAR = 0;
public static final int NEW_RELEASE = 1;
private String title;
private int priceCode;
public Movie(String title,int priceCode) {
this.title = title;
this.price... |
4f61bc1a-5ab9-4812-a5e3-7ef90f38ed2b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-24 15:20:59", "repo_name": "WuMeng-1993/ChangeSkin_Android", "sub_path": "/app/src/main/java/com/wumeng/changeskin_android/util/SkinPreferencesUtil.java", "file_name": "SkinPreferencesUtil.java", "file_ext": "... | https://github.com/WuMeng-1993/ChangeSkin_Android | 233 | FILENAME: SkinPreferencesUtil.java | 0.235108 | package com.wumeng.changeskin_android.util;
import android.content.Context;
import android.content.SharedPreferences;
import com.wumeng.changeskin_android.skin.SkinConfig;
/**
* @author WuMeng
* @date 2021/4/12
* desc:
*/
public class SkinPreferencesUtil {
/**
* 存储字符串
* @param context
* @para... |
f64f8572-a82d-4711-b9b9-fdf298d851d3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-08-12 15:41:33", "repo_name": "pojosontheweb/ttt-idea-plugin", "sub_path": "/src/com/pojosontheweb/ttt/TttProjectComponent.java", "file_name": "TttProjectComponent.java", "file_ext": "java", "file_size_in_byte": ... | https://github.com/pojosontheweb/ttt-idea-plugin | 215 | FILENAME: TttProjectComponent.java | 0.267408 | package com.pojosontheweb.ttt;
import com.intellij.openapi.components.AbstractProjectComponent;
import com.intellij.openapi.components.ProjectComponent;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.*;
import org.jetbrains.annotations.NotNul... |
1406bac3-0145-497c-afdf-8e4a2fa4e731 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-08-23T14:56:38", "repo_name": "Sharqiewicz/Wiki-Search", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1211, "line_count": 34, "lang": "en", "doc_type": "text", "b... | https://github.com/Sharqiewicz/Wiki-Search | 277 | FILENAME: README.md | 0.23793 | ## How to run the application
- clone the repository
- to run the project you need to have NodeJS and NPM installed on your computer
In the project directory, you can run:
- `npm install`
- `npm start`
or you can use yarn
- `yarn install`
- `yarn start`
## Description
In README.md I added instructions how to ... |
32e2a0b5-509b-49f3-aeb2-e03244776400 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-04-01T19:02:30", "repo_name": "Oryinn/Project3", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 989, "line_count": 17, "lang": "en", "doc_type": "text", "blob_id": ... | https://github.com/Oryinn/Project3 | 221 | FILENAME: README.md | 0.218669 | # Project3
Description
The Atlanta comedy scene is a thriving scene with many venues and many open mic opportunities, however it is very difficult to find out where and when these shows are unless you follow specific comedians on social media. Comedy Tracker is a user sourced site that will allow people to track what... |
7edb0194-f5a4-4138-a780-48c3d0b7bd81 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-03-23 07:31:09", "repo_name": "need4spd/crescent", "sub_path": "/crescent_core_web/src/main/java/com/tistory/devyongsik/crescent/collection/entity/CrescentAnalyzerHolder.java", "file_name": "CrescentAnalyzerHolde... | https://github.com/need4spd/crescent | 237 | FILENAME: CrescentAnalyzerHolder.java | 0.23231 | package com.tistory.devyongsik.crescent.collection.entity;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
@XStreamAlias("analyzer")
public class CrescentAnalyzerHolder {
@XStreamAsAttribute
private String type;
@XStreamAlias("className")... |
0a9e7ff9-5ea2-4710-928e-748428615df6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-09-28T03:13:23", "repo_name": "jcnesci/cct-project1", "sub_path": "/sake-label-simulator/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1078, "line_count": 22, "lang": "en", "doc... | https://github.com/jcnesci/cct-project1 | 277 | FILENAME: README.md | 0.226784 | # Sake Label Maker
For exhibition at Creative Code Tokyo, September 2019.
## TODO
- add dat.gui to control sake label params
- [TOCONFIRM]
- sake region -> background gradient color (Ine = red (inemankai), Akita = white (doburoku))
- sake style (junmai, gingjo, daiginjo, honjozo, futsushu) -> shortcut for ... |
0d2a21e7-2874-464e-b7f2-2ba0b322084d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-05-18T16:17:29", "repo_name": "oddlydrawn/flapShmup", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1027, "line_count": 23, "lang": "en", "doc_type": "text", "blob... | https://github.com/oddlydrawn/flapShmup | 372 | FILENAME: README.md | 0.208179 | # flapShmup
A flappy bird shoot em up created with love2d.. LÖVE.. LÖVE2d.. the game framework formerly known as love2d?

 to store Customer data. (update dependencies in the build file, create schema.sql). **Note:** All fields are mandatory.
2. Hard-code 2-3 sample records using data.sql.
3. I... |
7849cc6b-e362-4e99-805e-7953e6c78f4e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-03-19T19:48:51", "repo_name": "Alex-Dobrynin/Xamarin.Controls.TabView", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1107, "line_count": 34, "lang": "en", "doc_ty... | https://github.com/Alex-Dobrynin/Xamarin.Controls.TabView | 217 | FILENAME: README.md | 0.262842 | # Xamarin.Controls.TabView
Fully customizable Xamarin.Forms TabView
It is written using Xamarin.Forms without native code and it is fully compatible with all platforms Xamarin.Forms supports
The nuget package: https://www.nuget.org/packages/Xamarin.Controls.TabView
### Initialize:
Make sure to initialize the UI of ... |
770b277c-6644-4bfd-8498-c6bffd947830 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-04-10T00:12:03", "repo_name": "hamiltont/clasp", "sub_path": "/www/views/doc/getting-started.md", "file_name": "getting-started.md", "file_ext": "md", "file_size_in_byte": 1152, "line_count": 29, "lang": "en"... | https://github.com/hamiltont/clasp | 282 | FILENAME: getting-started.md | 0.262842 | ## Getting Started
Run `tools/autodetect-config.sh` script to automate detection of
appropriate SDK binaries and configuration setup.
If `tools/autodetect-config.sh` fails, configuration has to be
done manually.
The first item to specify is the path to the appropriate SDK binaries e.g.
android, emulator, adb, etc. Co... |
be36bced-3af1-4ba6-aba9-99ad862dc5e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-02-22T23:13:03", "repo_name": "sallyvdv/crackerhash", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1082, "line_count": 37, "lang": "en", "doc_type": "text", "blob... | https://github.com/sallyvdv/crackerhash | 271 | FILENAME: README.md | 0.23092 | # crackerhash
What is it?
===========
This is a script to automate password cracking using Hashcat.
Quick Start
------------
Grab the script, unpack it and define variables at the top of the script.
Requirements
------------
Hashcat
Password dictionary such rockyou or crackstation
Usage
-----
Open the script and d... |
d968577d-b6aa-4bb6-af00-d242600ab6ce | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-18 05:08:45", "repo_name": "joelcasteel/Artificer", "sub_path": "/src/main/java/artificer/ui/elements/ModNumberField.java", "file_name": "ModNumberField.java", "file_ext": "java", "file_size_in_byte": 969, "li... | https://github.com/joelcasteel/Artificer | 199 | FILENAME: ModNumberField.java | 0.290981 | package main.java.artificer.ui.elements;
/**
* A special type of NumberField for displaying modifiers
*
* @author Joel Castel
* @version June 2020
*
*/
public class ModNumberField extends NumberField {
@Override
public int getNumericValue() throws NumberFormatException {
try {
int v... |
3000e1f3-e6bd-4c83-a4bf-ea44da353f80 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-22 05:07:15", "repo_name": "githubken0426/SpringInAction", "sub_path": "/SpringInAction/src/spring/chapter_04SpringAOP/test/SpringAopMain.java", "file_name": "SpringAopMain.java", "file_ext": "java", "file_siz... | https://github.com/githubken0426/SpringInAction | 243 | FILENAME: SpringAopMain.java | 0.288569 | package spring.chapter_04SpringAOP.test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import spring.chapter_04SpringAOP.service.Constant;
import spring.chapter_04SpringAOP.service.Performer;
import spring.chapter_04SpringAOP.s... |
8afef321-20df-41ab-96b7-e947944e4624 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-14 05:44:21", "repo_name": "zhouzgang/ecomb", "sub_path": "/ecomb-common/ecomb-common-provider-api/src/main/java/cn/ecomb/common/provider/api/constant/SxApiUserConstant.java", "file_name": "SxApiUserConstant.j... | https://github.com/zhouzgang/ecomb | 384 | FILENAME: SxApiUserConstant.java | 0.27513 | package cn.ecomb.common.provider.api.constant;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author zhouzg
* @date 2019/8/5
*/
public enum SxApiUserConstant {
SUI_XING(Arrays.asList("5e8ee649e92b")),
KOU_BEI(Arrays.asList("77a42fbb415a... |
4fc9dc11-74ba-44b7-b8d0-17d6ba0bc201 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-11 03:48:14", "repo_name": "derysudrajat/Pemrogramman-Mobile", "sub_path": "/MyShopingCart/app/src/main/java/com/derysudrajat/daftarbelanja/MyViewHolder.java", "file_name": "MyViewHolder.java", "file_ext": "ja... | https://github.com/derysudrajat/Pemrogramman-Mobile | 220 | FILENAME: MyViewHolder.java | 0.236516 | package com.derysudrajat.daftarbelanja;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
public class MyViewHolder extends RecyclerView.ViewHolder {
View myview;
TextView mType;
TextView mNote;
TextView m... |
8a5b6639-f0da-4a43-a041-045267fc62cf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-08-13T12:23:33", "repo_name": "BinarCode/laravel-restify", "sub_path": "/docs-v2/content/en/testing/testing.md", "file_name": "testing.md", "file_ext": "md", "file_size_in_byte": 1040, "line_count": 28, "lang... | https://github.com/BinarCode/laravel-restify | 209 | FILENAME: testing.md | 0.279828 | ---
title: Testing Repositories
menuTitle: Testing Repositories
description: Unlike traditional static method calls, repositories may be mocked. This provides a great advantage over traditional static methods and grants you the same testability you would have if you were using dependency injection. When testing, you ma... |
fe65a71a-e68c-4a40-9eb6-060dfe542135 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-30 08:59:55", "repo_name": "lucifax301/chelizi", "sub_path": "/chelizi/access/src/main/java/com/lili/net/CommonMessageClientHandler.java", "file_name": "CommonMessageClientHandler.java", "file_ext": "java", "f... | https://github.com/lucifax301/chelizi | 246 | FILENAME: CommonMessageClientHandler.java | 0.290981 | package com.lili.net;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.lili.component.AbstractCommandComponent;
import com.lili.component.ComponentManager;
import com.lili.net.command.ICommand;
public class CommonMessageClientHandler implements IClientPacketHandler
{
private static Logger LOGG... |
dc8f6a41-58c9-4b03-97e4-90633c1df857 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-19 07:21:50", "repo_name": "caishuwei/MusicPlatform", "sub_path": "/app/src/main/java/com/csw/musicplatform/utils/HintForException.java", "file_name": "HintForException.java", "file_ext": "java", "file_size_in... | https://github.com/caishuwei/MusicPlatform | 233 | FILENAME: HintForException.java | 0.258326 | package com.csw.musicplatform.utils;
import android.content.Context;
import com.csw.musicplatform.R;
import com.google.gson.JsonParseException;
import com.google.gson.stream.MalformedJsonException;
import java.net.ConnectException;
import java.net.SocketTimeoutException;
import retrofit2.HttpException;
/**
* Crea... |
62dba992-7d37-4b81-9a18-8f215adb632c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2013-10-17T00:29:43", "repo_name": "gmaggess/gradle-project-template", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 977, "line_count": 31, "lang": "en", "doc_type": "t... | https://github.com/gmaggess/gradle-project-template | 191 | FILENAME: README.md | 0.262842 | Gradle Project Template
=======================
It consists of 3 projects:
## ear
* settings.gradle - Projects list.
* gradle.properties - Properties used on the gradle scripts.
* ear.gradle - ear file assembly information. You'll notice Spring dependencies added to the APP-INF/lib and ViewController and Model are... |
90e7e576-6b99-4a4d-ae7a-950b86135644 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-15 21:01:33", "repo_name": "catBoris453alexmol/TestHome", "sub_path": "/Test/src/main/java/ru/sapteh/models/ClientService.java", "file_name": "ClientService.java", "file_ext": "java", "file_size_in_byte": 1033... | https://github.com/catBoris453alexmol/TestHome | 200 | FILENAME: ClientService.java | 0.282988 | package ru.sapteh.models;
import lombok.*;
import javax.persistence.*;
import java.util.Date;
import java.util.Set;
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table()
public class ClientService {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
... |
e2819a3c-701e-459e-9a25-15e65288eb23 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-08-24 06:03:37", "repo_name": "Spyobird/CraftableUncraftables", "sub_path": "/craftableuncraftables-common/me/spyobird/CraftableUncraftables/CraftableUncraftables.java", "file_name": "CraftableUncraftables.java",... | https://github.com/Spyobird/CraftableUncraftables | 263 | FILENAME: CraftableUncraftables.java | 0.268941 | package me.spyobird.CraftableUncraftables;
import me.spyobird.CraftableUncraftables.recipes.CraftingRecipes;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FM... |
cba83a59-89bb-4e41-be52-633dd125529c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-13 11:23:39", "repo_name": "Huawei/ICP_CDSDemo_Java", "sub_path": "/src/CDSDemo/src/com/huawei/cdsdemo/bean/RegisterRequest.java", "file_name": "RegisterRequest.java", "file_ext": "java", "file_size_in_byte": ... | https://github.com/Huawei/ICP_CDSDemo_Java | 216 | FILENAME: RegisterRequest.java | 0.255344 | package com.huawei.cdsdemo.bean;
public class RegisterRequest
{
private String requestType;
private String callBackURL;
private String registerServerType;
public RegisterRequest(String registerServerType, String callBackUrl, int isRegister)
{
this.registerServerType = re... |
455b9652-3105-4d16-840b-a8f57fbc5704 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-13 04:08:30", "repo_name": "davigre/ConexiaTest", "sub_path": "/CocinaApp/src/main/java/com/conexia/test/services/CamareroServiceImpl.java", "file_name": "CamareroServiceImpl.java", "file_ext": "java", "file_s... | https://github.com/davigre/ConexiaTest | 236 | FILENAME: CamareroServiceImpl.java | 0.277473 | package com.conexia.test.services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.conexia.test.entities.Camarero;
import com.conexia.test.repositories.CamareroRepository;
@Service
public class CamareroServiceImpl implem... |
d174757b-073c-4be8-95ba-115d036f7606 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-06-07 07:36:16", "repo_name": "ielvxiao/develop", "sub_path": "/MySQL/src/main/java/com/lvxiao/mysql/sharding/TestShading.java", "file_name": "TestShading.java", "file_ext": "java", "file_size_in_byte": 1128, "li... | https://github.com/ielvxiao/develop | 239 | FILENAME: TestShading.java | 0.262842 | package com.lvxiao.mysql.sharding;
import lombok.SneakyThrows;
import org.apache.shardingsphere.shardingjdbc.api.yaml.YamlShardingDataSourceFactory;
import javax.sql.DataSource;
import java.io.File;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
/**
* @author lvxiao
* @da... |
029962c6-5e6d-4afd-bb5e-e3eebb579857 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-21 21:08:07", "repo_name": "sDurgam/LearnMaterialDesign", "sub_path": "/app/src/main/java/udacityproject5/learnmaterialdesign/RecyclerAnimActivity.java", "file_name": "RecyclerAnimActivity.java", "file_ext": "... | https://github.com/sDurgam/LearnMaterialDesign | 225 | FILENAME: RecyclerAnimActivity.java | 0.276691 | package udacityproject5.learnmaterialdesign;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import b... |
6dabf3e9-31c1-4125-8c77-6471ff0695e3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-05-19T17:41:30", "repo_name": "damog/REPL", "sub_path": "/kinks/level4/web_development/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1038, "line_count": 26, "lang": "en", "doc_t... | https://github.com/damog/REPL | 292 | FILENAME: README.md | 0.181263 | [Go back to the main page](https://github.com/world-class/REPL)
# Table of contents
<!-- vim-markdown-toc GFM -->
* [Web Development - Reported problems](#web-development---reported-problems)
* [Week 6](#week-6)
* [Lecture: 3.3.10 HTML media tags](#lecture-3.3.10-html-media-tags)
* [Practice Quiz:... |
74b2f3ef-69d5-495f-b546-e12ed6aa3e49 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-16 01:13:58", "repo_name": "dyf901/marketing", "sub_path": "/src/main/java/com/zty/marketing/entity/Msg.java", "file_name": "Msg.java", "file_ext": "java", "file_size_in_byte": 1042, "line_count": 51, "lang": ... | https://github.com/dyf901/marketing | 204 | FILENAME: Msg.java | 0.228156 | package com.zty.marketing.entity;
public class Msg {
private String message;//中文信息
private Object data;//实体
private Object statistics;
public Msg(){
super();
}
public Msg(String message, Object data, Object statistics) {
this.message = message;
this.data = data;
... |
b44eb4c6-03c7-4d06-b0b3-11a6fc7d79c6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-14 15:21:01", "repo_name": "ebi-uniprot/QuickGOBE", "sub_path": "/indexing/src/test/java/uk/ac/ebi/quickgo/index/annotation/AnnotationMocker.java", "file_name": "AnnotationMocker.java", "file_ext": "java", "fi... | https://github.com/ebi-uniprot/QuickGOBE | 333 | FILENAME: AnnotationMocker.java | 0.261331 | package uk.ac.ebi.quickgo.index.annotation;
/**
* A class for creating stubbed annotations, representing rows of data read from
* annotation source files.
*
* Created 22/04/16
* @author Edd
*/
public class AnnotationMocker {
public static Annotation createValidAnnotation() {
Annotation annotation = n... |
2e31c96e-cff6-496e-a8a9-1b80536af993 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-05 16:47:29", "repo_name": "Vorobeyyyyyy/pokerface", "sub_path": "/src/main/java/by/bsuir/pokerface/entity/card/Deck.java", "file_name": "Deck.java", "file_ext": "java", "file_size_in_byte": 999, "line_count":... | https://github.com/Vorobeyyyyyy/pokerface | 230 | FILENAME: Deck.java | 0.289372 | package by.bsuir.pokerface.entity.card;
import java.util.List;
public class Deck {
private List<Card> cards;
public Deck() {
cards = CardStorage.getCards();
}
public List<Card> getCards() {
return cards;
}
public void setCards(List<Card> cards) {
this.cards = cards;
... |
25e62e6b-41e7-4256-abd5-3a029ebcd8b4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-03-21T15:59:00", "repo_name": "tepeumut/spring-rest-example", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1152, "line_count": 27, "lang": "en", "doc_type": "text... | https://github.com/tepeumut/spring-rest-example | 284 | FILENAME: README.md | 0.271252 | # Spring Boot REST API Example Project with MySQL
## Running Project
Project is a [Spring Boot](https://spring.io/guides/gs/spring-boot) application built using [Maven](https://spring.io/guides/gs/maven/). You can build a jar file and run it from the command line:
```
git clone https://github.com/tepeumut/spring-rest-e... |
a11f132b-d19f-4b00-97a3-e398760837cc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-21 07:51:55", "repo_name": "CPstudy/SilsiganMetro-Android-legacy", "sub_path": "/app/src/main/java/com/ganada/silsiganmetro/activity/OpenSourceActivity.java", "file_name": "OpenSourceActivity.java", "file_ext"... | https://github.com/CPstudy/SilsiganMetro-Android-legacy | 222 | FILENAME: OpenSourceActivity.java | 0.200558 | package com.ganada.silsiganmetro.activity;
import android.app.Activity;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import com.ganada.silsiganmetro.R;
... |
8b3dfafb-da9d-4e4c-b3ba-b3d7570a47c4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-18 13:43:33", "repo_name": "OvidiuPintilei/Bug-Report-App", "sub_path": "/src/main/java/serviceLayer/bugOperations.java", "file_name": "bugOperations.java", "file_ext": "java", "file_size_in_byte": 1026, "line... | https://github.com/OvidiuPintilei/Bug-Report-App | 225 | FILENAME: bugOperations.java | 0.291787 | package serviceLayer;
import dataAccessLayer.Bug;
import dataAccessLayer.DBQuery;
import dataAccessLayer.DBUpdate;
public class bugOperations {
private Bug bug = new Bug();
private DBUpdate dbu = new DBUpdate();
private DBQuery dbq = new DBQuery();
public void addBug(String empId, String prodId, Str... |
b58a568b-9238-42a6-ae6d-01f188e24ada | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-02 08:53:36", "repo_name": "magenta-aps/OpenDESK-foundation-application", "sub_path": "/backend/src/main/java/dk/opendesk/foundationapplication/webscripts/foundation/PostStartGroupsAndUsers.java", "file_name":... | https://github.com/magenta-aps/OpenDESK-foundation-application | 202 | FILENAME: PostStartGroupsAndUsers.java | 0.221351 | package dk.opendesk.foundationapplication.webscripts.foundation;
import dk.opendesk.foundationapplication.webscripts.JacksonBackedWebscript;
import org.alfresco.service.cmr.repository.NodeRef;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.extensions.webscripts.WebScriptRequest;
impo... |
acab309d-35fc-46ff-bf6b-137277dd7a7a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-17 10:18:40", "repo_name": "treasurect/Android_XT", "sub_path": "/app/src/main/java/com/treasure_ct/android_xt/studyfragment/corecontrols/viewpager/tabhost/TabHostActivity.java", "file_name": "TabHostActivity.... | https://github.com/treasurect/Android_XT | 230 | FILENAME: TabHostActivity.java | 0.282196 | package com.treasure_ct.android_xt.studyfragment.corecontrols.viewpager.tabhost;
import android.app.TabActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.widget.TabHost;
import android.widget.Toast;
import com.treasure_ct.android_xt.R;
public class TabHostActivity extends TabActiv... |
b0a0359d-23f6-4696-83e8-623ea3cee677 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-28 13:48:03", "repo_name": "Madhu0/FifaPlayerStats", "sub_path": "/app/repository/UserRepository.java", "file_name": "UserRepository.java", "file_ext": "java", "file_size_in_byte": 1006, "line_count": 37, "lan... | https://github.com/Madhu0/FifaPlayerStats | 219 | FILENAME: UserRepository.java | 0.27048 | package repository;
import io.ebean.Ebean;
import io.ebean.EbeanServer;
import io.ebean.Expr;
import models.User;
import play.db.ebean.EbeanConfig;
import play.db.ebean.EbeanDynamicEvolutions;
import javax.inject.Inject;
import javax.inject.Named;
@Named
public class UserRepository {
private final EbeanServer e... |
b7d8c6e8-5dd4-4df6-8ded-e7111239fae8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-07 14:15:31", "repo_name": "Netcracker-Spring-2021-Group-4/project-marketplace-java", "sub_path": "/src/main/java/com/netcrackerg4/marketplace/controller/AuthStoreController.java", "file_name": "AuthStoreContr... | https://github.com/Netcracker-Spring-2021-Group-4/project-marketplace-java | 185 | FILENAME: AuthStoreController.java | 0.243642 | package com.netcrackerg4.marketplace.controller;
import com.netcrackerg4.marketplace.model.dto.password.PasswordUpdateDto;
import com.netcrackerg4.marketplace.model.response.UserInfoResponse;
import com.netcrackerg4.marketplace.service.interfaces.IUserService;
import lombok.AllArgsConstructor;
import org.springframewo... |
7156cc91-3ab5-4476-b8e0-52ccf0b31517 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-03-09T01:53:20", "repo_name": "neil-lindquist/swank-client", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1151, "line_count": 23, "lang": "en", "doc_type": "text"... | https://github.com/neil-lindquist/swank-client | 265 | FILENAME: README.md | 0.242206 | # swank-client
[](https://travis-ci.org/neil-lindquist/swank-client)
This is an implementation of a Swank client in Javascript, intended for communicating with running Common Lisp processes running a swank server, just like SLIME in Em... |
48434d79-667b-439a-9e11-e463a725af37 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-17 15:08:11", "repo_name": "sebastiankorkko/CWPClient", "sub_path": "/app/src/main/java/com/korkkosebastian/cwpclient/model/Signaller.java", "file_name": "Signaller.java", "file_ext": "java", "file_size_in_byt... | https://github.com/sebastiankorkko/CWPClient | 233 | FILENAME: Signaller.java | 0.264358 | package com.korkkosebastian.cwpclient.model;
import android.media.AudioManager;
import android.media.ToneGenerator;
import java.util.Observable;
import java.util.Observer;
public class Signaller implements Observer {
private CWPMessaging cwpMessaging;
private ToneGenerator toneGenerator;
public Signalle... |
4b92c237-5271-4294-a398-c2047921891f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-22 13:17:18", "repo_name": "honeythigh1/spring_practice", "sub_path": "/SpringMVC/src/kr/co/project/board/dao/BoardDaoImpl.java", "file_name": "BoardDaoImpl.java", "file_ext": "java", "file_size_in_byte": 1106... | https://github.com/honeythigh1/spring_practice | 219 | FILENAME: BoardDaoImpl.java | 0.283781 | package kr.co.project.board.dao;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import kr.co.project.board.dto.BoardDto;
@Repository
public class BoardDaoImpl implements B... |
14fdb5f6-2568-41c4-a217-502ccbd7dcc1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-18 23:33:17", "repo_name": "shankulk/spring-boot-tdd", "sub_path": "/src/main/java/com/shankulk/model/Objective.java", "file_name": "Objective.java", "file_ext": "java", "file_size_in_byte": 1053, "line_count"... | https://github.com/shankulk/spring-boot-tdd | 214 | FILENAME: Objective.java | 0.293404 | package com.shankulk.model;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.UUID;
public class Objective {
private final UUID id;
private final String metricName;
private final ObjectiveComparator comparator;
private final Double metricValve;
private final String objectiveName;
private Obje... |
2a958b89-3383-4e6d-8ef4-c6b850ac1b9a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-15 13:30:16", "repo_name": "dcostinett/unleash-client-java", "sub_path": "/src/main/java/no/finn/unleash/metric/MetricsBucket.java", "file_name": "MetricsBucket.java", "file_ext": "java", "file_size_in_byte": ... | https://github.com/dcostinett/unleash-client-java | 258 | FILENAME: MetricsBucket.java | 0.282196 | package no.finn.unleash.metric;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.HashMap;
import java.util.Map;
class MetricsBucket {
private final Map<String, ToggleCount> toggles;
private final LocalDateTime start;
private LocalDateTime stop;
MetricsBucket() {
this.... |
1527dd69-27a2-45b6-a266-5a82aa16ee2a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-10-01T00:17:03", "repo_name": "2bmio/docs", "sub_path": "/skills/cka/concepts/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1152, "line_count": 30, "lang": "en", "doc_type": "te... | https://github.com/2bmio/docs | 275 | FILENAME: README.md | 0.252384 | ---
description: >-
The Concepts section helps you learn about the parts of the Kubernetes system
and the abstractions Kubernetes uses to represent your cluster , and helps you
obtain a deeper understanding of how Kubern
---
# Concepts
### Overview <a id="overview"></a>
### Kubernetes objects <a id="kubernetes... |
cd4dfe85-44e4-4c18-a09f-9c4f8d5df3bb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-08 09:23:47", "repo_name": "wwj912790488/PGCLivePlatform2", "sub_path": "/Commander/src/main/java/com/arcvideo/pgcliveplatformserver/model/PageBean.java", "file_name": "PageBean.java", "file_ext": "java", "fil... | https://github.com/wwj912790488/PGCLivePlatform2 | 229 | FILENAME: PageBean.java | 0.246533 | package com.arcvideo.pgcliveplatformserver.model;
import java.util.List;
/**
* Created by slw on 2018/8/3.
*/
public class PageBean<T> {
long total;
int pageNum;
int pageSize;
List<T> list;
public PageBean(long total, int pageNum, int pageSize, List<T> list) {
this.total = total;
... |
05470a73-0170-4e1c-af61-334a12d85d82 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-23 18:18:13", "repo_name": "MalenaMoix/dan-ms-usuarios", "sub_path": "/src/main/java/jms/dan/usuarios/config/SwaggerConfig.java", "file_name": "SwaggerConfig.java", "file_ext": "java", "file_size_in_byte": 103... | https://github.com/MalenaMoix/dan-ms-usuarios | 176 | FILENAME: SwaggerConfig.java | 0.206894 | package jms.dan.usuarios.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import springfox.documentation.swagger.web.InMemorySwaggerResourcesProvider;
import springfox.documentation.swagger.we... |
0de27080-eea6-4a83-a8f8-2d8623dc50e8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-08 01:04:45", "repo_name": "abinash526/Spring-boot-task", "sub_path": "/src/main/java/com/stackroute/springBoot/domain/Track.java", "file_name": "Track.java", "file_ext": "java", "file_size_in_byte": 1065, "li... | https://github.com/abinash526/Spring-boot-task | 227 | FILENAME: Track.java | 0.23793 | package com.stackroute.springBoot.domain;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Track {
@Id
private int id;
private String name;
private String comment;
@Override
public String toString() {
return "Track{" +
"id=" + id +
... |
37a945df-f2c5-4f7e-b2c3-3927addc863e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-10-27T01:44:05", "repo_name": "joshfeldstein/joshfeldstein.github.io", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1097, "line_count": 38, "lang": "en", "doc_typ... | https://github.com/joshfeldstein/joshfeldstein.github.io | 311 | FILENAME: README.md | 0.221351 | # Josh Site
26 Oct 2019
## Edit Content
* Go to https://github.com/joshfeldstein/joshfeldstein.github.io (password is same as Wifi)
* Click "_posts" (https://github.com/joshfeldstein/joshfeldstein.github.io/tree/master/_posts)
* Edit files on that page:
* Click the Pencil icon - upper right above your text
* ... |
c58cf6f6-6fa0-4fcf-8c3b-3348cef54674 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-04 11:30:53", "repo_name": "rudwns/teamproject", "sub_path": "/teamSsum/src/com/service/UpdateContent.java", "file_name": "UpdateContent.java", "file_ext": "java", "file_size_in_byte": 1129, "line_count": 46, ... | https://github.com/rudwns/teamproject | 218 | FILENAME: UpdateContent.java | 0.282196 | package com.service;
import java.io.IOException;
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 com.model.BoardDAO;
@WebServlet("... |
05718540-7379-493e-b489-284cf098621d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-07-06 16:20:08", "repo_name": "uniprot/enzymeportal", "sub_path": "/enzyme-portal/enzymeportal-website/src/test/java/uk/ac/ebi/ep/web/controller/HomeControllerIT.java", "file_name": "HomeControllerIT.java", "file... | https://github.com/uniprot/enzymeportal | 225 | FILENAME: HomeControllerIT.java | 0.278257 |
package uk.ac.ebi.ep.web.controller;
import static org.hamcrest.Matchers.equalTo;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBo... |
a217259e-7307-40cc-a650-a5132932dd39 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-22 15:03:17", "repo_name": "jinhanlai/JavaSourceCode", "sub_path": "/src/main/java/designmode/singleton/InnerclassSingleton.java", "file_name": "InnerclassSingleton.java", "file_ext": "java", "file_size_in_byt... | https://github.com/jinhanlai/JavaSourceCode | 208 | FILENAME: InnerclassSingleton.java | 0.293404 | package designmode.singleton;
import org.junit.jupiter.api.Test;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
/**
* @Author laijinhan
* @date 2020/12/22 下午9:38
*/
public class InnerclassSingleton {
private InnerclassSingleton() { }
private static class InnerclassS... |
a4e0c297-24aa-4853-87fe-091de9d28404 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-08 09:23:47", "repo_name": "wwj912790488/PGCLivePlatform2", "sub_path": "/Commander/src/main/java/com/arcvideo/pgcliveplatformserver/model/delayer/DelayerStatusDto.java", "file_name": "DelayerStatusDto.java", ... | https://github.com/wwj912790488/PGCLivePlatform2 | 259 | FILENAME: DelayerStatusDto.java | 0.2227 | package com.arcvideo.pgcliveplatformserver.model.delayer;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
* Created by slw on 2018/4/24.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Delay... |
6847c817-1523-487d-8030-3bb4e6512e57 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-19 19:50:48", "repo_name": "jonathan-sh/alfred-api-java", "sub_path": "/src/main/java/com/alfred/api/app/model/tasks/TaskBuild.java", "file_name": "TaskBuild.java", "file_ext": "java", "file_size_in_byte": 101... | https://github.com/jonathan-sh/alfred-api-java | 221 | FILENAME: TaskBuild.java | 0.253861 | package com.alfred.api.app.model.tasks;
import com.alfred.api.app.model.interfaces.Processor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Compone... |
69ff3d2b-5ebf-4785-9337-4649a8eb107e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-07 01:45:07", "repo_name": "AaronGuW/Weizu", "sub_path": "/Weizu/app/src/main/java/com/demo/aaronapplication/fragments/releaseokFragment.java", "file_name": "releaseokFragment.java", "file_ext": "java", "file_... | https://github.com/AaronGuW/Weizu | 188 | FILENAME: releaseokFragment.java | 0.218669 | package com.demo.aaronapplication.fragments;
import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.demo.aaronapplication.weizu.R;
/**
* Created by Aaro... |
78add267-fe35-4cf6-bfea-e4c1909410a0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-07-27 00:47:15", "repo_name": "timothyekl/ShellParser", "sub_path": "/src/com/lithium3141/shellparser/states/StartState.java", "file_name": "StartState.java", "file_ext": "java", "file_size_in_byte": 1121, "line_... | https://github.com/timothyekl/ShellParser | 251 | FILENAME: StartState.java | 0.291787 | package com.lithium3141.shellparser.states;
import java.util.List;
import com.lithium3141.shellparser.ParseException;
public class StartState extends State {
@Override
public List<String> parse(String parsing, String accumulator, List<String> parsed, State referrer) throws ParseException {
if(parsin... |
01d72d87-d770-4c5b-ac6c-6b31d09a78c8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-13 04:58:14", "repo_name": "thunderferret/user08-ticket", "sub_path": "/ticket/src/main/java/com/example/rumyticket/Ticket.java", "file_name": "Ticket.java", "file_ext": "java", "file_size_in_byte": 1019, "lin... | https://github.com/thunderferret/user08-ticket | 204 | FILENAME: Ticket.java | 0.267408 | package com.example.rumyticket;
import javax.persistence.*;
import org.springframework.beans.BeanUtils;
import java.util.List;
import java.util.Date;
@Entity
@Table(name="Ticket_table")
public class Ticket{
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long id;
private Integer price;
... |
741c549f-6bcc-461e-a112-60f0945f7ea2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-29 07:08:01", "repo_name": "followmyego/Ego_Server_Java_Application", "sub_path": "/src/main/java/com/amazonaws/geo/server/util/Facebook_Class.java", "file_name": "Facebook_Class.java", "file_ext": "java", "fi... | https://github.com/followmyego/Ego_Server_Java_Application | 211 | FILENAME: Facebook_Class.java | 0.23793 | package com.amazonaws.geo.server.util;
import com.restfb.DefaultFacebookClient;
import com.restfb.FacebookClient;
import com.restfb.types.User;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
/**
* Created by Lucas on 09/08/2016.
*/
pub... |
fbdc6ce4-5b2b-4cc8-a7ae-05b4c3cb7f69 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-08 20:13:56", "repo_name": "DavidSuazo/GenericUtil", "sub_path": "/src/main/java/com/credencial/util/invoker/bill/AuthenticationResponse.java", "file_name": "AuthenticationResponse.java", "file_ext": "java", "... | https://github.com/DavidSuazo/GenericUtil | 251 | FILENAME: AuthenticationResponse.java | 0.23793 | package com.credencial.util.invoker.bill;
import com.credencial.util.JSonable;
import com.credencial.util.StringUtils;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
/**
*
* @author cj_sr
*/
public class AuthenticationResponse implements JSonable {
private String token;
private String ex... |
5a4a89a7-7f05-470c-a79d-1d5cdffb751f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-06-10 10:17:08", "repo_name": "deline/SpringMVCTalk", "sub_path": "/src/main/java/com/delineneo/web/form/Player.java", "file_name": "Player.java", "file_ext": "java", "file_size_in_byte": 1048, "line_count": 56, ... | https://github.com/deline/SpringMVCTalk | 234 | FILENAME: Player.java | 0.2227 | package com.delineneo.web.form;
import com.delineneo.web.validation.MyCustomConstraint;
import org.hibernate.validator.constraints.NotBlank;
/**
* User: deline
* Date: 1/05/13
* Time: 8:42 PM
*/
public class Player {
private int id;
@NotBlank(message = "First name is required")
private String first... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.