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 |
|---|---|---|---|---|---|---|
8896d1c6-adb2-408e-93f9-d8ceb6c5bef9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-04 04:07:41", "repo_name": "sjtuwyf/java-basic-code", "sub_path": "/javaweb/day01_foundationstrengthen/src/cn/itcast/reflect/ReflectTest.java", "file_name": "ReflectTest.java", "file_ext": "java", "file_size_i... | https://github.com/sjtuwyf/java-basic-code | 181 | FILENAME: ReflectTest.java | 0.253861 | package cn.itcast.reflect;
import cn.itcast.domain.Person;
import cn.itcast.domain.Student;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.util.Properties;
/**
* 框架类
*/
public class ReflectTest {
public static void main(String[] args) throws Exception {
//... |
8757d390-b514-4738-be28-75879a04613a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-15 00:52:46", "repo_name": "amrhosny12/BankingSystem-Jaxrs-API", "sub_path": "/src/main/java/com/OnlineBanking/util/HibernateUtil.java", "file_name": "HibernateUtil.java", "file_ext": "java", "file_size_in_byt... | https://github.com/amrhosny12/BankingSystem-Jaxrs-API | 178 | FILENAME: HibernateUtil.java | 0.290981 |
package com.OnlineBanking.util;
import javax.imageio.spi.ServiceRegistry;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.boot.registry.StandardServiceRegistry;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.Configuration;
public ... |
2cfdd62e-954e-4ca5-aa9e-0622940569ee | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-16 21:14:33", "repo_name": "jamiepwhitt/pet-car-class", "sub_path": "/car.java", "file_name": "car.java", "file_ext": "java", "file_size_in_byte": 1052, "line_count": 67, "lang": "en", "doc_type": "code", "blo... | https://github.com/jamiepwhitt/pet-car-class | 257 | FILENAME: car.java | 0.26588 | package javahomework1110;
public class car {
//variables
private String make;
private int speed;
private boolean drive;
//getters&setters
public String getMake() {
return make;
}
public void setMake(String make) {
this.make = make;
}
public int getSpeed() {
return speed;
}... |
4f22ba5c-070f-4900-b616-ae38c448c02b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-18 05:59:58", "repo_name": "kufei88/rubbishAdmin", "sub_path": "/src/main/java/com/example/rubbish/controller/UserController.java", "file_name": "UserController.java", "file_ext": "java", "file_size_in_byte": ... | https://github.com/kufei88/rubbishAdmin | 244 | FILENAME: UserController.java | 0.23231 | package com.example.rubbish.controller;
import com.example.rubbish.POJO.DataReturn;
import com.example.rubbish.POJO.User;
import com.example.rubbish.services.UserServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @a... |
94fe6297-caa8-414d-a430-9fc3253e1756 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-12-19 19:29:35", "repo_name": "blickly/ghostrun", "sub_path": "/android_app/src/com/ghostrun/model/MazeGraphPoint.java", "file_name": "MazeGraphPoint.java", "file_ext": "java", "file_size_in_byte": 1207, "line_co... | https://github.com/blickly/ghostrun | 259 | FILENAME: MazeGraphPoint.java | 0.286169 | package com.ghostrun.model;
import java.util.ArrayList;
import java.util.Collection;
import com.ghostrun.util.RandUtils;
import com.google.android.maps.GeoPoint;
public class MazeGraphPoint {
public MazeGraphPoint(GeoPoint location) {
this.location = location;
neighbors = new ArrayList<MazeGraphP... |
1b091fb1-2a9a-46bd-9ad8-67f6257885c5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-01-26 20:51:47", "repo_name": "markap/SpeachRecognition", "sub_path": "/src/com/markap/speachrecognition/action/google/GoogleSearchAction.java", "file_name": "GoogleSearchAction.java", "file_ext": "java", "file_s... | https://github.com/markap/SpeachRecognition | 199 | FILENAME: GoogleSearchAction.java | 0.2227 | package com.markap.speachrecognition.action.google;
import android.app.Activity;
import android.app.SearchManager;
import android.content.Intent;
import com.markap.speachrecognition.action.AbstractTopAction;
import com.markap.speachrecognition.action.Action;
import com.markap.speachrecognition.util.ActionHelper;
pub... |
63ae2e53-4879-4c35-81fd-4e613f3c8bc7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-05-13T23:21:11", "repo_name": "0xm4ud/Public", "sub_path": "/ProFTPD-CVE-2015-3306/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1056, "line_count": 34, "lang": "en", "doc_type"... | https://github.com/0xm4ud/Public | 266 | FILENAME: README.md | 0.278257 | # ProFTPD 1.3.5 File Upload to RCE exploit!
ProFTPd 1.3.5 File Uploader
Usage: ProFTPD.py [options]
Options:
-h, --help show this help message and exit
-l LHOST, --lhost=LHOST
Local IP Required for Reverse Shell,
-p LPORT, --lport=LPORT
... |
68831646-44f4-4a46-86ea-8064d1f9c8a4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-17 08:16:27", "repo_name": "xiangguangma/InterviewDemo", "sub_path": "/src/com/my/jvm/SyncAndReentrantLockDemo.java", "file_name": "SyncAndReentrantLockDemo.java", "file_ext": "java", "file_size_in_byte": 1008... | https://github.com/xiangguangma/InterviewDemo | 243 | FILENAME: SyncAndReentrantLockDemo.java | 0.274351 | package com.my.jvm;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
class TestData{
private int number = 1; //A:1 B:2 C:3
//创建重复锁
private Lock lock = new ReentrantLock();
private Condition c1 = lock.newCondition();
... |
52ee6366-cd0d-43f7-b0cd-ebe336c06a92 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-12-19 04:01:18", "repo_name": "vestigo/vestigo", "sub_path": "/org.nightlabs.vestigo.cumulus4j.childvm.webapp/src/main/java/org/nightlabs/vestigo/cumulus4j/childvm/webapp/model/Cumulus4jConnectionProfileHelper.ja... | https://github.com/vestigo/vestigo | 221 | FILENAME: Cumulus4jConnectionProfileHelper.java | 0.278257 | package org.nightlabs.vestigo.cumulus4j.childvm.webapp.model;
import java.util.SortedSet;
import java.util.TreeSet;
import org.nightlabs.vestigo.childvm.webapp.model.ConnectionProfile;
public class Cumulus4jConnectionProfileHelper {
private ConnectionProfile connectionProfile;
public Cumulus4jConnectionProfileHe... |
f209b084-c100-46ca-8ba8-49074aaa2542 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-15 02:56:11", "repo_name": "lyf1350/APIDemo", "sub_path": "/src/main/java/com/test/demo/controller/TableController.java", "file_name": "TableController.java", "file_ext": "java", "file_size_in_byte": 1145, "li... | https://github.com/lyf1350/APIDemo | 213 | FILENAME: TableController.java | 0.245085 | package com.test.demo.controller;
import cn.hutool.core.lang.Console;
import com.test.demo.common.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.GetMapping;
im... |
8fba7728-61db-40b7-a185-fde0ada1c777 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-26 11:07:44", "repo_name": "bjmengyu/sofa-demo", "sub_path": "/sofa-web/src/main/java/com/mengyu/sofaweb/controller/TestController.java", "file_name": "TestController.java", "file_ext": "java", "file_size_in_b... | https://github.com/bjmengyu/sofa-demo | 230 | FILENAME: TestController.java | 0.193147 | package com.mengyu.sofaweb.controller;
import com.alipay.sofa.runtime.api.annotation.SofaReference;
import com.alipay.sofa.runtime.api.annotation.SofaReferenceBinding;
import com.mengyu.sofaapi.MessageService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation... |
9cfb07db-3125-4a52-99dc-6b94829ac63e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-29 15:41:56", "repo_name": "Doris-wr/MyProject", "sub_path": "/图书管理系统/src/main/java/Operation/DeleteBook.java", "file_name": "DeleteBook.java", "file_ext": "java", "file_size_in_byte": 1194, "line_count": 46, ... | https://github.com/Doris-wr/MyProject | 203 | FILENAME: DeleteBook.java | 0.293404 | package Operation;
import Conn.Mysql;
import table.Book;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class DeleteBook extends Mysql implements IOperation {//删除图书
@Override
public void work() {
System.out.println("删除书籍");
System.out.printl... |
f541ed15-76e8-4c1e-9470-b0473e8ac786 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-07-23T18:21:52", "repo_name": "HelloAndersJ/service-worker", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1206, "line_count": 59, "lang": "en", "doc_type": "text"... | https://github.com/HelloAndersJ/service-worker | 314 | FILENAME: README.md | 0.274351 | # Service worker test
A little test to try out how a service worker would work at a basic level
## Installation
You will need to install [node](https://nodejs.org/en/) and optionally [yarn](https://yarnpkg.com/en/) if you haven't already.
The first thing you'll need to do is install any dependencies which you can ... |
0feb7da2-6300-4c4e-9343-84219490043a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-15 10:15:55", "repo_name": "nans123987/Distributed-P2P-File-Sharing", "sub_path": "/FileShareP2P_Server/FileShareP2P_Server/src/P2P_FileShare/ServerThread.java", "file_name": "ServerThread.java", "file_ext": "... | https://github.com/nans123987/Distributed-P2P-File-Sharing | 203 | FILENAME: ServerThread.java | 0.261331 | /*
* 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 P2P_FileShare;
import java.net.Socket;
import java.net.ServerSocket;
/**
*
* @author nandan
*/
public class ServerThread... |
90958800-beb6-43e9-a74b-6d9b0f64d301 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-05 10:08:42", "repo_name": "xerfgydt/2.-og-3.-semester-kode", "sub_path": "/MovieApp/ModulOpgave3/Actor.java", "file_name": "Actor.java", "file_ext": "java", "file_size_in_byte": 1204, "line_count": 41, "lang"... | https://github.com/xerfgydt/2.-og-3.-semester-kode | 233 | FILENAME: Actor.java | 0.267408 | import java.util.*;
import java.io.*;
public class Actor implements java.io.Serializable{
private String actorName;
private String actorRole;
public Actor(String name,String role){
this.actorName = name;
this.actorRole = role;
}
public String getActorName(){
r... |
ab0bfda6-de8d-4b7f-8eca-525676afd517 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-10 09:06:04", "repo_name": "ishwar-soni/rest-easy", "sub_path": "/src/main/java/com/greatlearning/resteasy/dtos/LoginResponse.java", "file_name": "LoginResponse.java", "file_ext": "java", "file_size_in_byte": ... | https://github.com/ishwar-soni/rest-easy | 207 | FILENAME: LoginResponse.java | 0.195594 | package com.greatlearning.resteasy.dtos;
public class LoginResponse {
private String username;
private String message;
private String token;
public LoginResponse() {
}
public LoginResponse(String username, String message, String token) {
this.username = username;
this.message ... |
aadfc66f-6c33-41a4-95ab-28c8e7d98925 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-18 13:35:48", "repo_name": "wuyueandrew/framework", "sub_path": "/src/main/java/indi/wuyue/framework/jdbc/JDBC.java", "file_name": "JDBC.java", "file_ext": "java", "file_size_in_byte": 1057, "line_count": 40, ... | https://github.com/wuyueandrew/framework | 198 | FILENAME: JDBC.java | 0.217338 | package indi.wuyue.framework.jdbc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.*;
public class JDBC {
private final static Logger LOGGER = LoggerFactory.getLogger(JDBC.class);
/**
* 实际上读对事务没有影响
* @param args
* @throws Exception
*/
public static void mai... |
4a40e6ae-b909-47f2-955e-e0234efbfcc3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-07-22 07:18:16", "repo_name": "mike-neck/gradle-gitignore-plugin", "sub_path": "/core/src/main/groovy/org/mikeneck/gradle/git/files/IntelliJIDEA.java", "file_name": "IntelliJIDEA.java", "file_ext": "java", "file_... | https://github.com/mike-neck/gradle-gitignore-plugin | 221 | FILENAME: IntelliJIDEA.java | 0.250913 | package org.mikeneck.gradle.git.files;
import org.gradle.api.plugins.PluginContainer;
import org.mikeneck.gradle.git.IgnoreFiles;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* @author mike
*/
abstract public class IntelliJIDEA implements IgnoreFiles {
public static Ignore... |
c6338d87-d452-4384-9cb1-8216cfcad953 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-19 08:16:30", "repo_name": "sqc310226329/treasure", "sub_path": "/demo/src/main/java/com/treasure/demo/controller/TestSController.java", "file_name": "TestSController.java", "file_ext": "java", "file_size_in_b... | https://github.com/sqc310226329/treasure | 313 | FILENAME: TestSController.java | 0.228156 | package com.treasure.demo.controller;
import com.treasure.demo.model.ReqEntity;
import com.treasure.demo.model.Rest;
import com.treasure.demo.model.WorkExperience;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import o... |
b3cb9c1b-1f16-40d6-bf27-59df6c9758ce | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-31 13:41:11", "repo_name": "NicolasFujisawa/interview-tech-app", "sub_path": "/src/main/java/br/com/interview/technicalapp/question/controller/v1/dto/QuestionResponse.java", "file_name": "QuestionResponse.java... | https://github.com/NicolasFujisawa/interview-tech-app | 187 | FILENAME: QuestionResponse.java | 0.250913 | package br.com.interview.technicalapp.question.controller.v1.dto;
import br.com.interview.technicalapp.question.model.Question;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class QuestionResponse {
private UUID id;
... |
d30e5a21-5172-4423-9f72-f1f0662a8301 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-30 20:27:22", "repo_name": "LuceroAmpudia/SecondProject", "sub_path": "/service.a/src/main/java/com/bootcamp/serviceimplement/LessonServiceImplement.java", "file_name": "LessonServiceImplement.java", "file_ext... | https://github.com/LuceroAmpudia/SecondProject | 188 | FILENAME: LessonServiceImplement.java | 0.286968 | package com.bootcamp.serviceimplement;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bootcamp.entity.Lesson;
import com.bootcamp.repository.LessonRepository;
import com.bootcamp.service.Less... |
66984a11-c541-4141-9ae1-888958518858 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-26 04:19:51", "repo_name": "xiuyuzhao/community", "sub_path": "/src/main/java/life/majiang/community/community/controller/AuthorizaController.java", "file_name": "AuthorizaController.java", "file_ext": "java",... | https://github.com/xiuyuzhao/community | 244 | FILENAME: AuthorizaController.java | 0.243642 | package life.majiang.community.community.controller;
import life.majiang.community.community.dto.AccessTokenDTO;
import life.majiang.community.community.provider.GitHubProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.w... |
9c77f84a-bcb3-4f9b-8128-af02e962bbf6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-29 14:18:37", "repo_name": "suno09/leanbyte-larger-checklist-backend", "sub_path": "/src/main/java/de/leanbyte/checklisttask/config/ArangoDBConfiguration.java", "file_name": "ArangoDBConfiguration.java", "file... | https://github.com/suno09/leanbyte-larger-checklist-backend | 217 | FILENAME: ArangoDBConfiguration.java | 0.243642 | package de.leanbyte.checklisttask.config;
import com.arangodb.ArangoDB;
import com.arangodb.springframework.annotation.EnableArangoRepositories;
import com.arangodb.springframework.config.ArangoConfiguration;
import org.springframework.context.annotation.Configuration;
import java.io.InputStream;
/**
* ArangoDB con... |
3581a194-b78c-4921-b5c3-42e4c835f65b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-25 10:35:30", "repo_name": "VentusAIO/VentusAIO.Core", "sub_path": "/src/main/java/com/ventus/core/models/Cookie.java", "file_name": "Cookie.java", "file_ext": "java", "file_size_in_byte": 1206, "line_count": ... | https://github.com/VentusAIO/VentusAIO.Core | 294 | FILENAME: Cookie.java | 0.273574 | package com.ventus.core.models;
import lombok.Builder;
import lombok.Data;
import java.io.Serializable;
@Builder
@Data
public class Cookie implements Serializable {
private static final long serialVersionUID = 1617175930504994288L;
private final String name; // NAME= ... "$Name" style is reserved
priva... |
d149bd52-7bba-4c4f-8307-4beaa67043ac | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-04 02:29:21", "repo_name": "ItaloNovoa/ARSW", "sub_path": "/laboratorio2/src/main/java/edu/eci/laboratorio2/punto2.java", "file_name": "punto2.java", "file_ext": "java", "file_size_in_byte": 1073, "line_count"... | https://github.com/ItaloNovoa/ARSW | 255 | FILENAME: punto2.java | 0.273574 | package edu.eci.laboratorio2;
import java.io.*;
import java.net.*;
import java.util.Scanner;
public class punto2 {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
String a = scan.nextLine();
scan.close();... |
3439960a-8696-43c6-aa9c-f1d3b420cc0c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-19 08:51:01", "repo_name": "lisx22/fqg", "sub_path": "/src/main/java/com/fqg/service/qiantai/impl/AddToCartService.java", "file_name": "AddToCartService.java", "file_ext": "java", "file_size_in_byte": 1161, "l... | https://github.com/lisx22/fqg | 256 | FILENAME: AddToCartService.java | 0.278257 | package com.fqg.service.qiantai.impl;
import com.fqg.dao.CartMapper;
import com.fqg.entity.Cart;
import com.fqg.entity.Customer;
import com.fqg.service.qiantai.IAddToCartService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Res... |
5afbf438-bc32-4cca-9615-8369d76e35c0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-27 02:11:21", "repo_name": "Celine-lzl/practising", "sub_path": "/Main (2).java", "file_name": "Main (2).java", "file_ext": "java", "file_size_in_byte": 1138, "line_count": 44, "lang": "en", "doc_type": "code"... | https://github.com/Celine-lzl/practising | 259 | FILENAME: Main (2).java | 0.292595 | package jzof;
// Day1
public class Main {
public String replaceSpace(StringBuffer str) {
StringBuffer sb = new StringBuffer();
for(int i = 0; i < str.toString().length(); i++){
if(str.charAt(i) != ' '){
sb.append(str.charAt(i));
}else{
sb.appen... |
431df0b9-7246-4c12-a7e0-99cc0e1f58b2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-14 09:01:54", "repo_name": "traye2019/mango", "sub_path": "/src/main/java/com/louis/mangoadmin/controller/SysUserController.java", "file_name": "SysUserController.java", "file_ext": "java", "file_size_in_byte"... | https://github.com/traye2019/mango | 242 | FILENAME: SysUserController.java | 0.250913 | package com.louis.mangoadmin.controller;
import io.swagger.annotations.ApiImplicitParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotatio... |
30680d37-d34e-4dc8-9303-a88d271b5b2e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-20 14:35:07", "repo_name": "nitishcool0990/ParkingBackend", "sub_path": "/src/main/java/com/vpark/vparkservice/entity/AgentTransHistory.java", "file_name": "AgentTransHistory.java", "file_ext": "java", "file_s... | https://github.com/nitishcool0990/ParkingBackend | 242 | FILENAME: AgentTransHistory.java | 0.276691 | package com.vpark.vparkservice.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import org.hibernate.annotations.DynamicUpdate;
import com.vpark.vparkservice.constants.IConstants;
import l... |
a4a6fa6d-a0a4-4eee-85b9-1ad245e2a076 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-05T07:28:52", "repo_name": "atsyganenko/java-modularity-maven", "sub_path": "/books.json.printer/src/main/java/books/json/printer/JsonBookPrinter.java", "file_name": "JsonBookPrinter.java", "file_ext": "java",... | https://github.com/atsyganenko/java-modularity-maven | 186 | FILENAME: JsonBookPrinter.java | 0.23793 | package books.json.printer;
import books.printer.api.BookPrinter;
import books.storage.api.entities.Book;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import static java.lang.System.Logger;
import static java.lang.System.getLogger;
public class JsonBo... |
a5f69acc-acfa-4ab7-86dd-64c7bd3a91ae | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-27 08:15:32", "repo_name": "kaukanoer/maven-tra", "sub_path": "/src/main/java/com/spring/tra/service/SettlementService.java", "file_name": "SettlementService.java", "file_ext": "java", "file_size_in_byte": 970... | https://github.com/kaukanoer/maven-tra | 186 | FILENAME: SettlementService.java | 0.259826 | /*
* 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.spring.tra.service;
import com.spring.tra.entity.Settlements;
import com.spring.tra.interfaces.SettlementInterface... |
e791062a-143a-49de-9a2f-2b0fe4df4866 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-05 14:13:07", "repo_name": "viyski/circley", "sub_path": "/app/src/main/java/com/gm/circley/util/AppUtil.java", "file_name": "AppUtil.java", "file_ext": "java", "file_size_in_byte": 1145, "line_count": 40, "la... | https://github.com/viyski/circley | 227 | FILENAME: AppUtil.java | 0.256832 | package com.gm.circley.util;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.text.TextUtils;
/**
* Created by lgm on 2016/7/16.
* </p>
*/
public class AppUtil {
public static String getVersionName(Context context){
try {
... |
5f5086bf-ea55-4b3a-a941-6bb73b6cad86 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-12-13 18:30:47", "repo_name": "hyttijan/FlappyBirdClone", "sub_path": "/FlappyBirdClone/src/main/java/hyttijan/model/Player.java", "file_name": "Player.java", "file_ext": "java", "file_size_in_byte": 1055, "line_... | https://github.com/hyttijan/FlappyBirdClone | 214 | FILENAME: Player.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 hyttijan.model;
import java.io.Serializable;
import java.util.Objects;
/**
*
* @author janne
*/
public class Player imple... |
ca6cd5ae-54ec-4ec5-be9b-ea06fc917fe7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-23 12:04:50", "repo_name": "long-64/netty_demo", "sub_path": "/src/main/java/com/custom/msg/IMMessage.java", "file_name": "IMMessage.java", "file_ext": "java", "file_size_in_byte": 1040, "line_count": 49, "lan... | https://github.com/long-64/netty_demo | 266 | FILENAME: IMMessage.java | 0.256832 | package com.custom.msg;
import lombok.ToString;
import org.msgpack.annotation.Message;
import lombok.Data;
/**
* DATE 2020-05-16 自定义消息实体
*/
@Data
@ToString
@Message
public class IMMessage {
private String addr; // IP 地址
private String cmd; // 命令类型
private long time; // 发送时间
private int online; // 当前在线人数
priv... |
de861fd2-822c-44be-8e3b-51ceec209f74 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-10 11:42:40", "repo_name": "jadersonmb/CouponAPI", "sub_path": "/src/main/java/com/zuka/coupon/services/CouponServiceImpl.java", "file_name": "CouponServiceImpl.java", "file_ext": "java", "file_size_in_byte": ... | https://github.com/jadersonmb/CouponAPI | 219 | FILENAME: CouponServiceImpl.java | 0.294215 | package com.zuka.coupon.services;
import com.zuka.coupon.dtos.CouponDTO;
import com.zuka.coupon.mappers.CouponMapper;
import com.zuka.coupon.repositorys.CouponRepository;
import javax.inject.Singleton;
import java.util.ArrayList;
import java.util.List;
@Singleton
public class CouponServiceImpl implements CouponServi... |
5127dfb1-4276-4c9d-895d-e9f5280bbd57 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-02 07:10:13", "repo_name": "john-weiwei/spring-source", "sub_path": "/springSourceNative/nettyStu/src/main/java/com/cn/allen/rpc/register/RegisterCenter.java", "file_name": "RegisterCenter.java", "file_ext": "... | https://github.com/john-weiwei/spring-source | 264 | FILENAME: RegisterCenter.java | 0.290981 | package com.cn.allen.rpc.register;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
/**
* @Author:ZhangWeiWei
* @Date:2021/6/1
* @Description:
*/
public class RegisterCenter {
private static ConcurrentHashMap<String, Set<RegisterServiceV... |
f8e53386-4a9c-4740-bc81-16f85f0c9ebd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-09 18:43:40", "repo_name": "kickyourcuteass/embedded-poc", "sub_path": "/service-common/src/main/java/ro/home/model/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byte": 1207, "line_co... | https://github.com/kickyourcuteass/embedded-poc | 276 | FILENAME: User.java | 0.261331 | package ro.home.model;
import java.util.Objects;
public class User {
private Long id;
private String name;
private String data;
public User() {
}
public User(Long id, String name) {
this.id = id;
this.name = name;
}
public User(Long id, String name, String data) {
... |
6f5bdecf-ba67-44ed-aca1-bf64283452bb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-15 14:26:20", "repo_name": "fabien33700/galactic-ws", "sub_path": "/src/main/java/imie/tp/galactic/ws/resources/PlayerCreationRequest.java", "file_name": "PlayerCreationRequest.java", "file_ext": "java", "file... | https://github.com/fabien33700/galactic-ws | 231 | FILENAME: PlayerCreationRequest.java | 0.220007 | package imie.tp.galactic.ws.resources;
import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
public class PlayerCreationRequest {
@NotEmpty(message = "Vous devez renseigner le pseudo")
private String pseudo;
@NotEmpty(message = "Vous devez envoyer un mot de p... |
87299d30-bc1b-4692-9e5b-dbd1bb18fa55 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-23 03:11:12", "repo_name": "wanchenyang521/iGeek", "sub_path": "/Day27/src/com/homework/guanka01/Test04.java", "file_name": "Test04.java", "file_ext": "java", "file_size_in_byte": 1149, "line_count": 53, "lang... | https://github.com/wanchenyang521/iGeek | 240 | FILENAME: Test04.java | 0.288569 | package com.homework.guanka01;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
/**
* @author 晨阳
* @version 1.0
* @date 2019-04-15 15:16
* @description
**/
public class Test04
{
public static void main(String[] args)
{
I... |
2d72ad17-e425-4305-a541-4aaec6f2c82b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-09 19:51:04", "repo_name": "IvanBlinov/KyivSmartCityHackaton", "sub_path": "/src/main/java/com/ksc/schedule/entity/Block.java", "file_name": "Block.java", "file_ext": "java", "file_size_in_byte": 1059, "line_c... | https://github.com/IvanBlinov/KyivSmartCityHackaton | 212 | FILENAME: Block.java | 0.247987 | package com.ksc.schedule.entity;
import com.ksc.schedule.entity.core.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@Data
@Entity
@Table(name = Block.TABLE)
@NoArgsConstructor
public class Block extend... |
0f79c71c-4280-43bd-8450-697d091aedfb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-04 22:06:10", "repo_name": "Iamoscarbc/JN-2-12-18", "sub_path": "/ProyectoJN/src/Servlets/ServletCurso.java", "file_name": "ServletCurso.java", "file_ext": "java", "file_size_in_byte": 1000, "line_count": 37, ... | https://github.com/Iamoscarbc/JN-2-12-18 | 177 | FILENAME: ServletCurso.java | 0.242206 | package Servlets;
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 Bean.BeanCurso;
/**
* Servlet implementation cla... |
b7176e89-b458-4fdb-a5ff-76658681ffb0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-20 19:27:43", "repo_name": "JoanQues/MechanicalJava", "sub_path": "/src/com/evolution/WebUser.java", "file_name": "WebUser.java", "file_ext": "java", "file_size_in_byte": 1207, "line_count": 44, "lang": "en", ... | https://github.com/JoanQues/MechanicalJava | 291 | FILENAME: WebUser.java | 0.26588 | package com.evolution;
public class WebUser extends Client {
private String username;
private String password;
public WebUser(String dni, String name, String surnames, String email, int phone, long clientId, boolean premium,
String username, String password) {
super(dni, name, surnames, email, phone, clientI... |
d9eeeb43-598f-4bfb-b14b-0e2dcd496d0a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-02-09 13:50:23", "repo_name": "niklas-meyer/fptuebung", "sub_path": "/Übung0102/stud/src/main/java/MainClass.java", "file_name": "MainClass.java", "file_ext": "java", "file_size_in_byte": 1011, "line_count": 37, ... | https://github.com/niklas-meyer/fptuebung | 203 | FILENAME: MainClass.java | 0.27513 | import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
/**
* Created by NiklasM on 11.11.16.
*/
public class MainClass extends Application{
public static void main(String[] args) {Application.launch();}
public void start(Stage primaryStage) throws Exception {
... |
5b2c9a97-1ceb-445b-b746-debe473d4b64 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-18 17:53:57", "repo_name": "RodrigoRojoGarcia/Escape-Bandages", "sub_path": "/ServerEB/EscapeBandages/src/main/java/es/sidelab/EscapeBandages/App.java", "file_name": "App.java", "file_ext": "java", "file_size_... | https://github.com/RodrigoRojoGarcia/Escape-Bandages | 214 | FILENAME: App.java | 0.268941 | package es.sidelab.EscapeBandages;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.LinkedList;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBo... |
0b912e77-5178-4681-88ab-848f1c069955 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-26 20:03:32", "repo_name": "denix7/design-patterns-java", "sub_path": "/factoryBaseDeDatos/ConexionMongo.java", "file_name": "ConexionMongo.java", "file_ext": "java", "file_size_in_byte": 1056, "line_count": 4... | https://github.com/denix7/design-patterns-java | 244 | FILENAME: ConexionMongo.java | 0.236516 | package factoryBaseDeDatos;
/**
* Write a description of class ConexionMongo here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class ConexionMongo implements IConexion
{
private String name;
private String user;
private String password;
private String port;
... |
437e74a0-1405-4b19-8f85-b02fa1f16787 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-11 18:16:02", "repo_name": "Anekai/cinemax", "sub_path": "/src/main/java/services/CargoAcaoTelaService.java", "file_name": "CargoAcaoTelaService.java", "file_ext": "java", "file_size_in_byte": 970, "line_count... | https://github.com/Anekai/cinemax | 214 | FILENAME: CargoAcaoTelaService.java | 0.293404 |
package services;
import daos.CargoAcaoTelaDAO;
import entities.CargoAcaoTela;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transactional
publ... |
93ac4d84-cce5-4161-8468-bee578c703b7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-21T20:10:44", "repo_name": "minolettin/quartz-scheduler-demo", "sub_path": "/src/main/java/ch/minoletti/quartzschedulerdemo/rest/quartzjobs/configuration/SchedulerConfiguration.java", "file_name": "SchedulerCo... | https://github.com/minolettin/quartz-scheduler-demo | 211 | FILENAME: SchedulerConfiguration.java | 0.240775 | package ch.minoletti.quartzschedulerdemo.rest.quartzjobs.configuration;
import org.quartz.*;
import org.quartz.impl.StdSchedulerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configurat... |
ad04c5ec-3434-4636-91cf-85f4637b1fa0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-19 12:43:50", "repo_name": "faas-facts/fact-java-client", "sub_path": "/src/main/java/io/github/fact/FactConfigurationBuilder.java", "file_name": "FactConfigurationBuilder.java", "file_ext": "java", "file_size... | https://github.com/faas-facts/fact-java-client | 209 | FILENAME: FactConfigurationBuilder.java | 0.274351 | package io.github.fact;
import io.github.fact.io.ConsoleLogging;
public class FactConfigurationBuilder {
private boolean lazyLoading;
private FactIO io;
private boolean sendOnUpdate;
private boolean includeEnvironment = false;
public FactConfigurationBuilder setLazyLoading(boolean lazyLoading) {
... |
d3b9f6fb-8056-4c6f-9baa-fedc71f6f5d1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-11 17:33:38", "repo_name": "okzhangyu/epec-consen", "sub_path": "/consen-service/src/main/java/com/avatech/edi/consen/service/TokenService.java", "file_name": "TokenService.java", "file_ext": "java", "file_siz... | https://github.com/okzhangyu/epec-consen | 224 | FILENAME: TokenService.java | 0.285372 | package com.avatech.edi.consen.service;
import com.avatech.edi.consen.model.vo.Token;
import com.avatech.edi.consen.repository.ITokenRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;... |
aa0d13bf-1396-4308-b841-be30a4c36d40 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-25 18:45:35", "repo_name": "alireza-pirhadi/JTank", "sub_path": "/src/jtanks/GameComponents/StarItem.java", "file_name": "StarItem.java", "file_ext": "java", "file_size_in_byte": 1027, "line_count": 46, "lang"... | https://github.com/alireza-pirhadi/JTank | 220 | FILENAME: StarItem.java | 0.267408 | package jtanks.GameComponents;
import jtanks.AllImages;
import jtanks.SoundPlayer;
import org.jetbrains.annotations.NotNull;
import java.awt.*;
public class StarItem extends ObjectInMap implements Item {
private boolean caught = false;
public StarItem(@NotNull Point center){
super(center);
i... |
3847c528-af35-4c27-88f7-76a90cb9972a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-07 14:46:33", "repo_name": "huangjunpeng/java_code", "sub_path": "/webapp/src/main/java/com/alex/controller/HelloController.java", "file_name": "HelloController.java", "file_ext": "java", "file_size_in_byte": ... | https://github.com/huangjunpeng/java_code | 183 | FILENAME: HelloController.java | 0.262842 | package com.alex.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
... |
0b1535d6-3666-4a44-960c-ae7bdd0e1d69 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-22 06:35:38", "repo_name": "bullheadandplato/Nafees-App", "sub_path": "/app/src/main/java/com/bullhead/nafees/android/App.java", "file_name": "App.java", "file_ext": "java", "file_size_in_byte": 1145, "line_co... | https://github.com/bullheadandplato/Nafees-App | 214 | FILENAME: App.java | 0.274351 | package com.bullhead.nafees.android;
import android.app.Application;
import com.bullhead.nafees.android.injection.AppComponent;
import com.bullhead.nafees.android.injection.AppContextModule;
import com.bullhead.nafees.android.injection.DaggerAppComponent;
import javax.inject.Inject;
import dagger.android.AndroidInj... |
8d5f143e-36d0-4248-baf1-1a86ce117f86 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-21 23:34:14", "repo_name": "qiuchili/ggnn_graph_classification", "sub_path": "/program_data/JavaProgramData/7/41.java", "file_name": "41.java", "file_ext": "java", "file_size_in_byte": 1208, "line_count": 73, ... | https://github.com/qiuchili/ggnn_graph_classification | 427 | FILENAME: 41.java | 0.274351 | package <missing>;
public class GlobalMembers
{
public static void Main()
{
void copy(char a[],char b[],char c[]);
String S = new String(new char[100]);
String sub = new String(new char[100]);
String re = new String(new char[100]);
String tempVar = ConsoleInput.scanfRead();
if (tempVar != null)
{
S ... |
f6ecb399-8e45-4050-99b7-fd11610cc24e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-21 08:41:36", "repo_name": "rmk1409/race-car", "sub_path": "/src/main/java/com/veselov/alex/racecar/data/entity/Query.java", "file_name": "Query.java", "file_ext": "java", "file_size_in_byte": 1144, "line_coun... | https://github.com/rmk1409/race-car | 251 | FILENAME: Query.java | 0.285372 | package com.veselov.alex.racecar.data.entity;
import com.veselov.alex.racecar.service.validation.CheckSite;
import lombok.*;
import lombok.experimental.FieldDefaults;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;
import org.hibernate.validator.constraints.URL;
i... |
9d1c173d-d136-4289-99e9-6530a4548620 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-08 11:14:21", "repo_name": "idonoty/java_work", "sub_path": "/JiChuXueXi/src/main/java/Mysql/select_lieming.java", "file_name": "select_lieming.java", "file_ext": "java", "file_size_in_byte": 1119, "line_count... | https://github.com/idonoty/java_work | 232 | FILENAME: select_lieming.java | 0.290981 | package Mysql;
import java.sql.*;
public class select_lieming {
public static void main(String[] args) {
Connection conn = null;//定义为空值
Statement stmt = null;
ResultSet rs = null;
String sql = "select * from user order by id desc limit 3 ";//sql语句
conn = LianJie_Mysql.LJ_My... |
3cb19a0d-d03e-4a4a-bde4-2847dd3bb3b1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-26 07:36:28", "repo_name": "llnqykfa/as", "sub_path": "/app/src/main/java/com/aixianshengxian/printers/DialogManager.java", "file_name": "DialogManager.java", "file_ext": "java", "file_size_in_byte": 1072, "li... | https://github.com/llnqykfa/as | 200 | FILENAME: DialogManager.java | 0.240775 | package com.aixianshengxian.printers;
import android.app.AlertDialog;
import android.bluetooth.BluetoothDevice;
import android.content.Context;
import android.content.DialogInterface;
import com.aixianshengxian.activity.purchase.PurchaseDetailActivity;
import java.util.Set;
/**
* Created by Administrat... |
2893a93d-8afe-4a58-bb08-f440c1a8bca5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-10-23T18:11:55", "repo_name": "kellyjones-jpg/Hero-Project1", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 972, "line_count": 32, "lang": "en", "doc_type": "text"... | https://github.com/kellyjones-jpg/Hero-Project1 | 229 | FILENAME: README.md | 0.264358 | # Hop-To-It
Title - "Hop To It" a brewery directory
Proposal/Project Description
Hop To It is an app that a user can interact with to find a Brewery based on their location. The user will have an option to search based on the IP address geolocation, or city. After the user searches, the app will populate a list of Bre... |
bc0a39f8-9628-4442-9005-05692ed67e79 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-23 13:16:21", "repo_name": "HuiYuChang/Haston-Respository", "sub_path": "/ExpensesClaimRequestSystem(Final)/ViewController/src/view/DBRetrieve.java", "file_name": "DBRetrieve.java", "file_ext": "java", "file_s... | https://github.com/HuiYuChang/Haston-Respository | 228 | FILENAME: DBRetrieve.java | 0.276691 | package view;
import java.sql.*;
import java.io.IOException;
import javax.servlet.jsp.jstl.sql.Result;
public class DBRetrieve {
private String sql;
private Connection connection;
private String setTable;
private String getTable;
public DBRetrieve() throws SQLException {
su... |
2713b307-a2ae-43b9-8333-2f9bf1ad055a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-04 13:24:34", "repo_name": "scalacommunitybuild/playframework", "sub_path": "/persistence/play-java-jpa/src/main/java/play/db/jpa/TransactionalAction.java", "file_name": "TransactionalAction.java", "file_ext":... | https://github.com/scalacommunitybuild/playframework | 244 | FILENAME: TransactionalAction.java | 0.286968 | /*
* Copyright (C) Lightbend Inc. <https://www.lightbend.com>
*/
package play.db.jpa;
import play.mvc.*;
import play.mvc.Http.*;
import javax.inject.Inject;
import java.util.concurrent.CompletionStage;
/**
* Wraps an action in am JPA transaction.
*
* <p>This is a deprecated class. An injected JPAApi instance s... |
6d5e87a3-4c42-41b5-89e9-5d3e7dc969d3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-09 08:59:07", "repo_name": "warmpark/spring-boot-JPA-composite-PK-embedable", "sub_path": "/src/main/java/com/t3q/jpa/model/Address.java", "file_name": "Address.java", "file_ext": "java", "file_size_in_byte": ... | https://github.com/warmpark/spring-boot-JPA-composite-PK-embedable | 276 | FILENAME: Address.java | 0.295027 | package com.t3q.jpa.model;
import java.io.Serializable;
import javax.persistence.*;
/**
* The persistent class for the address database table.
*
*/
@Entity
@Table(name="address")
@NamedQuery(name="Address.findAll", query="SELECT a FROM Address a")
public class Address implements Serializable {
private static fi... |
7e723767-a6b6-4757-a9d2-5280fe5e995d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-24 18:10:14", "repo_name": "Diyas2001/Assignment2-EAD2", "sub_path": "/src/main/java/com/company/lifetimeFilter.java", "file_name": "lifetimeFilter.java", "file_ext": "java", "file_size_in_byte": 1051, "line_c... | https://github.com/Diyas2001/Assignment2-EAD2 | 192 | FILENAME: lifetimeFilter.java | 0.272799 | package com.company;
import javax.servlet.*;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class lifetimeFilter implements Filter {
@Override
public void init(FilterConfig filterConfig) throws S... |
fd8c1642-843a-425e-bacf-fa2b1d8af114 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-24 19:54:45", "repo_name": "qunniao/ewm_api", "sub_path": "/backstage/src/main/java/com/zhancheng/backstage/test/TestController.java", "file_name": "TestController.java", "file_ext": "java", "file_size_in_byte... | https://github.com/qunniao/ewm_api | 246 | FILENAME: TestController.java | 0.226784 | package com.zhancheng.backstage.test;
import cn.hutool.extra.qrcode.QrCodeUtil;
import cn.hutool.extra.qrcode.QrConfig;
import com.zhancheng.dto.ProductDto;
import com.zhancheng.util.FileUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
... |
98543c4d-9a81-4bf1-8844-38001f595c69 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-08-20T12:19:13", "repo_name": "creationx/mh_directory", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1018, "line_count": 20, "lang": "en", "doc_type": "text", "bl... | https://github.com/creationx/mh_directory | 289 | FILENAME: README.md | 0.204342 | # mh_directory
The next step to "mh_branchenbuch"; a TYPO3-Extension
[Community-Forum](http://forum.mh-dev.de/threads/13-mh_directory.html) - [ToDo-List](https://github.com/mhdev/mh_directory/wiki/ToDo-List) - [Twitter](https://twitter.com/mhdev)
## Features
In the beginning the extension will only have some basic f... |
bf912336-28d2-46ea-a7bd-45dad2cc8f93 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-02-14T21:51:58", "repo_name": "wndxlori/wndx.com", "sub_path": "/_posts/2011-01-27-ruby-on-rails-problems-solutions-jan-26-2011.md", "file_name": "2011-01-27-ruby-on-rails-problems-solutions-jan-26-2011.md", ... | https://github.com/wndxlori/wndx.com | 329 | FILENAME: 2011-01-27-ruby-on-rails-problems-solutions-jan-26-2011.md | 0.256832 | ---
layout: post
title: Ruby on Rails problems & solutions - Jan 26, 2011
categories:
- web development
tags: []
status: publish
published: true
meta: {}
---
RSpec'ing your rescue_from
You might remember from the previous post, we started using rescue_from in our Ajax actions. Now, how the heck do you test those su... |
2245a9c0-6f0f-40fc-88a6-f7456fef9c38 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-01 01:03:51", "repo_name": "JoaoGaManochio/TCCApp", "sub_path": "/app/src/main/java/com/manochio/mobile/tccapp/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byte": 114... | https://github.com/JoaoGaManochio/TCCApp | 201 | FILENAME: MainActivity.java | 0.176672 | package com.manochio.mobile.tccapp;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class MainActivity extends AppCompatActivity {
Button cadastro;
Button logar;
@Override
protected... |
25e412c5-9cb8-4c9d-9249-4f62898596c6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-09-11 19:14:05", "repo_name": "EsupPortail/ProlongationENT", "sub_path": "/utils/uportal3/MayLoginServlet.java", "file_name": "MayLoginServlet.java", "file_ext": "java", "file_size_in_byte": 1057, "line_count": 3... | https://github.com/EsupPortail/ProlongationENT | 234 | FILENAME: MayLoginServlet.java | 0.259826 | package org.jasig.portal;
/*
/MayLogin?uP_fname=xxx :
- if no session, redirects to CAS then uportal /Login
- otherwise skip login
(rationale: less useless sessions in uportal + speed-up going to another portlet via prolongationENT)
*/
import java.io.IOException;
import javax.servlet.ServletException;
import javax.s... |
93c5705f-ff44-4c34-9ce5-52dc502a3428 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-22 17:32:50", "repo_name": "ProgrammerChirag/assignment", "sub_path": "/app/src/main/java/com/selflearn/assignment2/walletActivity.java", "file_name": "walletActivity.java", "file_ext": "java", "file_size_in_b... | https://github.com/ProgrammerChirag/assignment | 137 | FILENAME: walletActivity.java | 0.213377 | package com.selflearn.assignment2;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.DividerItemDecoration;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
public class walletActivity extends AppCo... |
f3ffdb36-2416-4e40-a71c-330b01e5d6c3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-08-28T16:07:20", "repo_name": "selberget/dotfiles", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1016, "line_count": 30, "lang": "en", "doc_type": "text", "blob_i... | https://github.com/selberget/dotfiles | 263 | FILENAME: README.md | 0.181263 | # Dotfiles
Repository for handling my dotfiles.
Heavily inspired by [holman/dotfiles](https://github.com/holman/dotfiles).
Also borrowed a lot from [sdaschner/dotfiles](https://github.com/sdaschner/dotfiles), especially the handling of zsh aliases.
He has a blog post on zsh aliases [here](https://blog.sebastian-das... |
4ef402fd-9ce4-4d35-8510-7150e02f0a45 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-10 09:20:09", "repo_name": "Eugene-Shchemelyov/online_market_eshchemelyov", "sub_path": "/web-module/src/test/java/com/gmail/eugene/shchemelyov/market/web/app/GenericControllerSecureIntegrationTest.java", "fil... | https://github.com/Eugene-Shchemelyov/online_market_eshchemelyov | 216 | FILENAME: GenericControllerSecureIntegrationTest.java | 0.258326 | package com.gmail.eugene.shchemelyov.market.web.app;
import com.icegreen.greenmail.util.GreenMail;
import com.icegreen.greenmail.util.ServerSetup;
import org.junit.After;
import org.junit.Before;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.web.servlet.MockMvc;
import ... |
1021d3e3-14dc-4978-84e5-1d5de2824b3b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-20 20:02:45", "repo_name": "satishrkumar/request-manager", "sub_path": "/src/main/java/net/pay/you/back/request/manager/controller/EmailController.java", "file_name": "EmailController.java", "file_ext": "java"... | https://github.com/satishrkumar/request-manager | 210 | FILENAME: EmailController.java | 0.240775 | package net.pay.you.back.request.manager.controller;
import javax.servlet.http.HttpServletResponse;
import net.pay.you.back.request.manager.domain.Email;
import net.pay.you.back.request.manager.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpSt... |
11820e51-10be-4a23-b1fa-d4589dc99aa6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-14 11:07:24", "repo_name": "volamniharika/finalrepo", "sub_path": "/src/main/java/com/example/sampleapplication/entity/Product.java", "file_name": "Product.java", "file_ext": "java", "file_size_in_byte": 1145,... | https://github.com/volamniharika/finalrepo | 267 | FILENAME: Product.java | 0.255344 | package com.example.sampleapplication.entity;
import java.util.List;
import java.util.UUID;
public class Product {
UUID pid;
List<Product> lp;
public Product()
{
}
public List<Product> getLp() {
return lp;
}
public void setLp(List<Product> lp) {
this.lp = lp;
}... |
30d1d3d3-2e4c-43cf-96e7-c3fa09ce90f7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-04 11:57:37", "repo_name": "durian0214/haiyin", "sub_path": "/HaiYin/app/src/main/java/com/haiyin/gczb/my/entity/PaymentCertificateEntity.java", "file_name": "PaymentCertificateEntity.java", "file_ext": "java"... | https://github.com/durian0214/haiyin | 309 | FILENAME: PaymentCertificateEntity.java | 0.245085 | package com.haiyin.gczb.my.entity;
import com.haiyin.gczb.base.BaseEntity;
import java.util.List;
/**
* Created
* by durian
* 2019/1/26.
*/
public class PaymentCertificateEntity extends BaseEntity {
private List<DataBean> data;
public List<DataBean> getData() {
return data;
}
public vo... |
fa59b57c-ed61-4879-8a6e-71778f97d0e5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-03 06:21:13", "repo_name": "hhk8691608/spike", "sub_path": "/src/main/java/com/ace/study/spike/Controller/threadPool/dateWareHouse/WareHouse.java", "file_name": "WareHouse.java", "file_ext": "java", "file_size... | https://github.com/hhk8691608/spike | 259 | FILENAME: WareHouse.java | 0.249447 | package com.ace.study.spike.Controller.threadPool.dateWareHouse;
import com.ace.study.spike.Controller.threadPool.Middleware.OrderDispatcher;
import com.ace.study.spike.Controller.threadPool.prouduct.Product;
import lombok.Getter;
import lombok.Setter;
import java.util.concurrent.BlockingQueue;
import java.util.concu... |
e141d261-377f-4c39-b73d-ca038a2b0711 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-18 10:33:41", "repo_name": "madhur-taneja/Student-Management-Portal", "sub_path": "/server/src/main/java/com/tektraining/loginmodule/models/student/Contact.java", "file_name": "Contact.java", "file_ext": "java... | https://github.com/madhur-taneja/Student-Management-Portal | 195 | FILENAME: Contact.java | 0.195594 | package com.tektraining.loginmodule.models.student;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
public class Contact {
@NotBlank
@Size(max = 10)
private String phoneNumber;
private String address;
public Contact() {
}
public Contact(String p... |
950e1a61-9f98-4111-a608-ad35f2f81f02 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-06-04 08:45:14", "repo_name": "loopasam/chembl-annotator", "sub_path": "/app/models/Reviewer.java", "file_name": "Reviewer.java", "file_ext": "java", "file_size_in_byte": 1217, "line_count": 54, "lang": "en", "do... | https://github.com/loopasam/chembl-annotator | 247 | FILENAME: Reviewer.java | 0.26588 | package models;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import org.hibernate.annotations.ManyToAny;
import play.data.validation.Email;
import play.data.validation.Required;
import play.db.jpa.Model;
... |
19731f30-30ec-4909-a65f-1fb47320573f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-11 19:50:30", "repo_name": "HJH3077/java_project", "sub_path": "/src/com/ict07/IO/Ex25_VO.java", "file_name": "Ex25_VO.java", "file_ext": "java", "file_size_in_byte": 1185, "line_count": 75, "lang": "en", "doc... | https://github.com/HJH3077/java_project | 376 | FILENAME: Ex25_VO.java | 0.285372 | package com.ict07.IO;
import java.io.Serializable;
public class Ex25_VO implements Serializable{
// Scanner로 이름, 국어, 영어, 수학 받고 계속 할건지 물어보면서 list생성
// 이름, 총점, 평균, 학점을 저장하고 직렬화
private String name;
transient private int kor;
transient private int eng;
transient private int math;
private int total;
private doub... |
7b11a9b6-9a47-42c1-b727-c0a9b010508e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-09 03:05:48", "repo_name": "ZanyKun/CodingAssignment", "sub_path": "/SessionTypes/src/session/dao/HFResponseServlet.java", "file_name": "HFResponseServlet.java", "file_ext": "java", "file_size_in_byte": 1030, ... | https://github.com/ZanyKun/CodingAssignment | 176 | FILENAME: HFResponseServlet.java | 0.274351 | package session.dao;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/HFResponse... |
4437558c-0e3e-4890-9855-bfe1f7cdc452 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-02-20T04:03:47", "repo_name": "RamV13/LightSwitch", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1008, "line_count": 26, "lang": "en", "doc_type": "text", "blob_i... | https://github.com/RamV13/LightSwitch | 248 | FILENAME: README.md | 0.193147 | # Arduino WiFi Light Switch
## Usage
### Materials
1. Arduino UNO
2. Adafruit WiFi Shield
3. Arduino Relay
4. Tools - Screwdriver, Wire cutters, Soldering Kit
5. Cables - USB
### Hardware
1. Connect an Arduino UNO to a relay switch and an Adafruit WiFi Shield (adhere to the PIN connections in the code or adjust th... |
cdfe18d7-ddf3-4f6a-a11f-d320102f9710 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-03-11 10:30:17", "repo_name": "chiranjith/gherkin", "sub_path": "/java/src/main/java/gherkin/ast/ScenarioDefinition.java", "file_name": "ScenarioDefinition.java", "file_ext": "java", "file_size_in_byte": 1207, "l... | https://github.com/chiranjith/gherkin | 249 | FILENAME: ScenarioDefinition.java | 0.250913 | package gherkin.ast;
import java.util.List;
public abstract class ScenarioDefinition implements DescribesItself, HasDescription, HasSteps, HasTags {
private final String type = getClass().getSimpleName();
private final List<Tag> tags;
private final Location location;
private final String keyword;
... |
05d64c3f-f355-4639-ad67-3a695f36e260 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-24 15:07:20", "repo_name": "jizel/snap-im-tests", "sub_path": "/dpcorebackup/src/test/java/travel/snapshot/dp/qa/serenity/review/ReviewTravelersSteps.java", "file_name": "ReviewTravelersSteps.java", "file_ext"... | https://github.com/jizel/snap-im-tests | 222 | FILENAME: ReviewTravelersSteps.java | 0.285372 | package travel.snapshot.dp.qa.serenity.review;
import com.jayway.restassured.response.Response;
import net.thucydides.core.annotations.Step;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
public class ReviewTravelersSteps extends ReviewSteps {
private static final String BASE_PATH_LOCAT... |
191dc849-6a20-408f-8c28-79bc7f95999b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-31 23:12:11", "repo_name": "chetan1prajapati/my-start-boot", "sub_path": "/src/main/java/com/av/rfid/rest/component/CustomDateDeserializer.java", "file_name": "CustomDateDeserializer.java", "file_ext": "java",... | https://github.com/chetan1prajapati/my-start-boot | 216 | FILENAME: CustomDateDeserializer.java | 0.290981 | package com.av.rfid.rest.component;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
... |
dd0f907e-fb8c-4e24-aa79-d1536500aa19 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-03 12:01:10", "repo_name": "dada-mazza/Flora", "sub_path": "/src/main/java/ua/itea/dao/jdbc/manager/LocalManagerJDBC.java", "file_name": "LocalManagerJDBC.java", "file_ext": "java", "file_size_in_byte": 1242, ... | https://github.com/dada-mazza/Flora | 242 | FILENAME: LocalManagerJDBC.java | 0.286169 | package ua.itea.dao.jdbc.manager;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
* Клас реалізує підключення до Бази данних
*/
public class LocalManagerJDBC implements ManagerJDBC {
... |
5e4316ca-e62f-4707-81a4-b7fd6ddeb640 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-01 15:00:13", "repo_name": "BeFabulousJia12/AutoTestFramework", "sub_path": "/src/test/java/base/ResultToClient.java", "file_name": "ResultToClient.java", "file_ext": "java", "file_size_in_byte": 1059, "line_c... | https://github.com/BeFabulousJia12/AutoTestFramework | 182 | FILENAME: ResultToClient.java | 0.255344 | package base;
import org.eclipse.jetty.server.Request;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
public class ResultToClient {
public static void print(Request baseRequest, HttpServletResponse response,
String result) throw... |
008cee2b-b3c3-4eba-be57-46acc6963e6a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-26 14:33:10", "repo_name": "zzckm/Demo", "sub_path": "/src/main/java/com/zhiyou100/servlet/customerSource/RemoveServlet.java", "file_name": "RemoveServlet.java", "file_ext": "java", "file_size_in_byte": 1107, ... | https://github.com/zzckm/Demo | 217 | FILENAME: RemoveServlet.java | 0.255344 | package com.zhiyou100.servlet.customerSource;
import com.zhiyou100.service.CustomerSourceService;
import com.zhiyou100.service.impl.CustomerSourceServiceImpl;
import com.zhiyou100.util.AdminBaseServlet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpSe... |
967f0e83-faa7-464f-a0c4-cfc44663e49f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-09 10:57:30", "repo_name": "liuchengts/spring-boot-ts", "sub_path": "/search/search-demo/src/main/java/com/search/demo/controllers/TestController.java", "file_name": "TestController.java", "file_ext": "java", ... | https://github.com/liuchengts/spring-boot-ts | 231 | FILENAME: TestController.java | 0.236516 | package com.search.demo.controllers;
import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.index.query.QueryBuilders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Re... |
94223626-4f63-4bec-9419-b9e114740f20 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-29 10:01:26", "repo_name": "SweetBullet/daedalus", "sub_path": "/daedalus-base/src/main/java/com/bullet/sweet/daedalus/base/http/HttpClientFactory.java", "file_name": "HttpClientFactory.java", "file_ext": "jav... | https://github.com/SweetBullet/daedalus | 229 | FILENAME: HttpClientFactory.java | 0.26588 | package com.bullet.sweet.daedalus.base.http;
import com.bullet.sweet.daedalus.base.Constants;
import lombok.val;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.config.ConnectionConfig;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
... |
57f3eb18-815a-4056-bdac-8de51d1c094a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-25 19:34:52", "repo_name": "Saulo2706/Cebreja", "sub_path": "/app/src/main/java/com/gs/cebreja/network/response/UserLoginResponse.java", "file_name": "UserLoginResponse.java", "file_ext": "java", "file_size_in... | https://github.com/Saulo2706/Cebreja | 230 | FILENAME: UserLoginResponse.java | 0.216012 | package com.gs.cebreja.network.response;
import java.util.List;
public class UserLoginResponse {
private List<UserLoginRoles> roles;
private String email, firstName, lastName,gender,birthday,token;
public UserLoginResponse() {
}
public List<UserLoginRoles> getRoles() {
return roles;
... |
90be28ef-ce6b-4f00-9e45-b44b88c4a393 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-13 11:46:54", "repo_name": "liuxinyun/haq", "sub_path": "/haq-bms/src/main/java/com/lanwei/haq/bms/filter/AuthenticationInterceptor.java", "file_name": "AuthenticationInterceptor.java", "file_ext": "java", "fi... | https://github.com/liuxinyun/haq | 267 | FILENAME: AuthenticationInterceptor.java | 0.242206 | package com.lanwei.haq.bms.filter;
import com.lanwei.haq.bms.entity.user.UserEntity;
import com.lanwei.haq.comm.exception.NotLoginException;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servle... |
672bf731-857b-4055-9b4b-74f88602be92 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-12-30T15:09:46", "repo_name": "EdwynPeignon/my_website", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1035, "line_count": 63, "lang": "en", "doc_type": "text", "b... | https://github.com/EdwynPeignon/my_website | 261 | FILENAME: README.md | 0.258326 | # About
This Repository aim to build my web site
# Configuration
To work on the project:
Build the virtual environement:
```
virtualenv -p python3 venv
```
Activate your virtual environement:
```
source venv/bin/activate
```
Install the dependencies:
```
pip install -r requirements.txt
```
# Working on the pro... |
6d981f89-cfaa-4266-90d2-12446bdfac2a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-28 15:13:33", "repo_name": "TimmiTBy/SpringTask", "sub_path": "/src/main/java/com/jmp/dao/UserDaoImpl.java", "file_name": "UserDaoImpl.java", "file_ext": "java", "file_size_in_byte": 1067, "line_count": 42, "l... | https://github.com/TimmiTBy/SpringTask | 212 | FILENAME: UserDaoImpl.java | 0.289372 | package com.jmp.dao;
import com.jmp.model.User;
import org.hibernate.SessionFactory;
import org.hibernate.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import javax.transaction.Transactional;
import java.util.ArrayList;
import java.util.L... |
99e72c0e-f3f6-4754-a024-5771ef9c1976 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-29 13:51:48", "repo_name": "2dukes/PROJ2_SDIS_2021", "sub_path": "/src/chord/NodeInfo.java", "file_name": "NodeInfo.java", "file_ext": "java", "file_size_in_byte": 1207, "line_count": 51, "lang": "en", "doc_ty... | https://github.com/2dukes/PROJ2_SDIS_2021 | 261 | FILENAME: NodeInfo.java | 0.292595 | package chord;
import java.io.Serializable;
import java.math.BigInteger;
import java.net.InetAddress;
import java.net.UnknownHostException;
public class NodeInfo implements Serializable {
private InetAddress address;
private int port;
private BigInteger id;
public NodeInfo(String IP, int port, BigIn... |
f84365e5-d7f9-414a-be64-fa265628814f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-16 03:02:18", "repo_name": "UniqueSuccess/tdp-portal-parent", "sub_path": "/tdp-system/src/main/java/cn/goldencis/tdp/system/service/impl/TClientPackageLogServiceImpl.java", "file_name": "TClientPackageLogServ... | https://github.com/UniqueSuccess/tdp-portal-parent | 218 | FILENAME: TClientPackageLogServiceImpl.java | 0.278257 | package cn.goldencis.tdp.system.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.goldencis.tdp.system.dao.TClientPackageLogMapper;
import cn.goldencis.tdp.system... |
b667f5ac-996f-4b79-b707-70a9e44843fa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-04 15:19:14", "repo_name": "aschuurman9/Bibliotheek", "sub_path": "/src/main/java/com/example/bibliotheek/api/BibliotheekLidEndpoint.java", "file_name": "BibliotheekLidEndpoint.java", "file_ext": "java", "file... | https://github.com/aschuurman9/Bibliotheek | 279 | FILENAME: BibliotheekLidEndpoint.java | 0.29584 | package com.example.bibliotheek.api;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... |
ae9d6966-ca91-4696-863a-259067dcbb94 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-30 01:01:27", "repo_name": "krystiancorderoh/academy", "sub_path": "/JavaSpring/Tareas/todolistSpring-app/src/main/java/com/softtek/academy/jstl/dao/ConnectionDao.java", "file_name": "ConnectionDao.java", "fil... | https://github.com/krystiancorderoh/academy | 220 | FILENAME: ConnectionDao.java | 0.253861 | package com.softtek.academy.jstl.dao;
import java.sql.Connection;
//import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.sql.SQLException;
import javax.annotation.PostConstruct;
import org.apache.commons.dbcp2.BasicDataSource;
import org.springframework.beans.factory.annotation.Valu... |
9c46648f-eb53-4282-ba51-b153d020ff91 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-01 06:33:17", "repo_name": "humphrey0925/rungame", "sub_path": "/app/src/main/java/com/kbh/rungame/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byte": 1208, "line_cou... | https://github.com/humphrey0925/rungame | 215 | FILENAME: MainActivity.java | 0.23793 | package com.kbh.rungame;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.SupportMapFragment;
public class MainAct... |
c32c98cc-33a5-4358-950d-10d1e66009b6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-24 10:47:42", "repo_name": "RashmithaHebbar/Bayes", "sub_path": "/src/main/java/com/bayes/get/FromHttp.java", "file_name": "FromHttp.java", "file_ext": "java", "file_size_in_byte": 1034, "line_count": 32, "lan... | https://github.com/RashmithaHebbar/Bayes | 172 | FILENAME: FromHttp.java | 0.26588 | package com.bayes.get;
import org.springframework.stereotype.Service;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
@Service
public class FromHttp {
public String sendGet(String link) throws IOException {
... |
ab650d53-a288-4b42-bdbc-b9ed9c881811 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-01 13:24:21", "repo_name": "Greeengooo/Algorithms", "sub_path": "/MyLinkedList.java", "file_name": "MyLinkedList.java", "file_ext": "java", "file_size_in_byte": 1008, "line_count": 46, "lang": "en", "doc_type"... | https://github.com/Greeengooo/Algorithms | 208 | FILENAME: MyLinkedList.java | 0.277473 | import org.w3c.dom.Node;
import java.util.Iterator;
import java.util.LinkedList;
public class MyLinkedList<T> {
Node head = null, tail = null;
private class Node {
T item;
Node next;
private Node(T element) {
this.item = element;
}
}
public... |
037b93ea-150e-4843-8f87-6d2b51d6f581 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-05 07:28:05", "repo_name": "ChengchuangLin/office-automation", "sub_path": "/model/src/main/java/com/keveon/oa/model/Employee.java", "file_name": "Employee.java", "file_ext": "java", "file_size_in_byte": 1052,... | https://github.com/ChengchuangLin/office-automation | 288 | FILENAME: Employee.java | 0.252384 | package com.keveon.oa.model;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
/**
* Created by Keveon on 2017/3/5.
* 员工信息
*/
@Entity
@Table(name = "sys_employee")
@Data
@RequiredArgsConstructor
public class Employee implements Serializable {
p... |
d20a8a4c-82ec-48f8-831c-95c14ddea6bc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-31 19:17:22", "repo_name": "SandyDheringe/XPrivateChat", "sub_path": "/app/src/main/java/com/example/exoplayerdemo/ChatActivity.java", "file_name": "ChatActivity.java", "file_ext": "java", "file_size_in_byte":... | https://github.com/SandyDheringe/XPrivateChat | 169 | FILENAME: ChatActivity.java | 0.203075 | package com.example.exoplayerdemo;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import com.example.exoplayerdemo.adapter.ChatAdapter;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget... |
d5768875-6f83-4b38-8b41-1f4922fd02c1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-05-11 13:57:13", "repo_name": "chinazzl/JavaBase", "sub_path": "/javabasic/src/designpattern/proxypattern/dynasticproxy/jdkproxy/JDKProxyTest.java", "file_name": "JDKProxyTest.java", "file_ext": "java", "file_siz... | https://github.com/chinazzl/JavaBase | 259 | FILENAME: JDKProxyTest.java | 0.233706 | package designpattern.proxypattern.dynasticproxy.jdkproxy;
import sun.misc.ProxyGenerator;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* @author zhangzhaolin
* @version V1.0
* @Title: JavaBase
* @Package designpattern.proxypattern.dynasticproxy.jdkproxy
* @Description:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.