id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
1400fdd7-ef00-4d60-87f3-87ef02f4bb70 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-09-14T11:54:57", "repo_name": "akkomar/spray-invitation-demo", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 736, "line_count": 20, "lang": "en", "doc_type": "text... | ## Spray invitation service demo
Invitee repository can be configured to use embedded H2 database or immutable stub containing one invitee.
To configure, set `invitee.repository.impl` parameter to `H2DB` or `immutableList`.
### To compile and run tests:
$ sbt test
### To start application:
$ sbt run
or
... |
68e1c765-6256-478b-bd0c-4580850cbc36 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-10-06T16:08:11", "repo_name": "aelesia/npm-commons", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 737, "line_count": 23, "lang": "en", "doc_type": "text", "blob_i... | # @aelesia/commons
This is a collection of common functions used by me across several different projects. These utilities are generally context agnostic and can be applied to a large variety of applications.
# README
You are free to use this package, or copy code from it. However this package is tailored specificall... |
23625320-b881-4af6-a38a-e028f8ab10d1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-07 09:36:18", "repo_name": "minamicr/BehavioralPatterns", "sub_path": "/behavioral-patterns/src/main/java/br/com/cod3r/template/persist/model/UserModel.java", "file_name": "UserModel.java", "file_ext": "java",... | package br.com.cod3r.template.persist.model;
public class UserModel extends ModelPersist{
private String userName;
private String password;
public UserModel(String userName, String password){
this.userName = userName;
this.password = password;
}
@Override
protected void preSave() {
System.out... |
b85fced0-6cfc-4491-bd4f-aa3ff95055ec | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-12 16:36:02", "repo_name": "mehrasaumyaa/lookup-us-zipcode", "sub_path": "/Place.java", "file_name": "Place.java", "file_ext": "java", "file_size_in_byte": 737, "line_count": 42, "lang": "en", "doc_type": "cod... | /*Name: Saumyaa Mehra
* File : Place.java
* Description: Program to create a place object whenever the class is called.
*/
public class Place
{
private String zipcode; //holds the value of the zipcode
private String town;//holds the value of the name of the town
private String state;//holds the value of the nam... |
e05a9927-9408-4cd3-aacb-5cafdc2930de | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-01 10:58:33", "repo_name": "vsundaramvj/JavaStepIns", "sub_path": "/JavaStepInS/src/com/mine/Exceptions/MultipleException.java", "file_name": "MultipleException.java", "file_ext": "java", "file_size_in_byte": ... | package com.mine.Exceptions;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.nio.CharBuffer;
public class MultipleException {
public int k;
public MultipleException multiExpSample(int i, int j)
{
try(FileReader fr = new FileReader("F:/J... |
3772330c-93fb-43cf-b9ae-4368b4962486 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-17 14:45:37", "repo_name": "hallo-boxing/hallo-boxing-pi", "sub_path": "/src/main/java/org/xiaoheshan/hallo/boxing/pi/looper/ServerMessageLooper.java", "file_name": "ServerMessageLooper.java", "file_ext": "jav... | package org.xiaoheshan.hallo.boxing.pi.looper;
import org.xiaoheshan.hallo.boxing.pi.executor.Executors;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;
/**
* @author : _Chf
* @since : 03-22-2018
*/
public class ServerMessageLooper {
private static final BlockingQu... |
c144c4b5-d7df-48b7-bf64-d1ab46ab7599 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-01 16:18:51", "repo_name": "IceX2020/JAVA-000", "sub_path": "/Week_11/redis/src/main/java/io/bruce/redis/RedisDemoApplication.java", "file_name": "RedisDemoApplication.java", "file_ext": "java", "file_size_in_... | package io.bruce.redis;
import io.bruce.redis.service.PublishOrder;
import io.bruce.redis.service.SubscribeOrder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import redis.clients.jedis.JedisPool;
@SpringBootApplication(scanBasePackages = "io.... |
d19f0bbb-9e32-48e7-a01c-8340d43c7f5c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-13 09:44:01", "repo_name": "yilaoban/hy_esite2.0", "sub_path": "/src/com/huiyee/esite/dto/PublishDto.java", "file_name": "PublishDto.java", "file_ext": "java", "file_size_in_byte": 739, "line_count": 37, "lang... | package com.huiyee.esite.dto;
import com.huiyee.esite.model.Page;
import com.huiyee.esite.model.SinaApp;
import com.huiyee.esite.model.WeixinApp;
import java.util.List;
public class PublishDto implements IDto {
private List<Page> plist;
private List<SinaApp> applist;
private List<WeixinApp> wxlist;
... |
5f947c80-5fd0-43d7-a88e-87fa2b47a482 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-30 03:13:34", "repo_name": "why1314/baseKnowledgeEnhance", "sub_path": "/day0301/src/com/itheima/demo3/MyTestPro.java", "file_name": "MyTestPro.java", "file_ext": "java", "file_size_in_byte": 747, "line_count"... | package com.itheima.demo3;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
* @author wz
* @create 2019-03-01 12:30
*/
/*注解解析器*/
public class MyTestPro {
public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, ... |
929b1b27-c084-4717-947e-74b497d2c236 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-07 01:50:27", "repo_name": "1362289734/understandc", "sub_path": "/projects/javase/src/作业530/作业1/练习2/CopyImg.java", "file_name": "CopyImg.java", "file_ext": "java", "file_size_in_byte": 749, "line_count": 24, ... | package 作业530.作业1.练习2;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
public class CopyImg {
public static void main(String[] args) throws IOException {
File file = new File("D:\\img.jpg");
File file2 = new File("D:\\img1.jpg");
... |
1cf33548-6095-4033-a39e-6efe8ece4ae7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-04 18:28:15", "repo_name": "lewbacca/Software-Engineering-Group-Assignment", "sub_path": "/ClassDirector.java", "file_name": "ClassDirector.java", "file_ext": "java", "file_size_in_byte": 737, "line_count": 38... | import java.io.Serializable;
public class ClassDirector extends Staff implements Serializable{
/**
* objects of this class allow the user to log in, see the list of requirements and add new ones
*/
private String name,title,password;
protected int ID;
public ClassDirector(String name, int ID, String password... |
4762afc8-31c5-447c-a26c-e1af43876537 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-15 18:57:56", "repo_name": "preet1211/Threading-In-Java", "sub_path": "/neww.java", "file_name": "neww.java", "file_ext": "java", "file_size_in_byte": 744, "line_count": 41, "lang": "en", "doc_type": "code", "... |
import java.util.Scanner;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author PREETINDER SINGH
*/
class hello extends Thread{
public void run()
{
String a;int i;
Scanner s=new Scanner(System.in);
System.out.prin... |
23ea13f8-e615-4f6f-a44c-2502f2bbe6ef | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-07T17:03:25", "repo_name": "freebz/Lucene-in-Action", "sub_path": "/ch02/ex2-2.java", "file_name": "ex2-2.java", "file_ext": "java", "file_size_in_byte": 757, "line_count": 25, "lang": "en", "doc_type": "code"... | // 예제 2.2 색인에서 문서 삭제
public void testDeleteBeforeOptimize() throws IOException {
IndexWriter writer = getWriter();
assertEquals(2, writer.numDocs());
writer.deleteDocuments(new Term("id", "1"));
writer.commit();
assertTrue(writer.hasDeletions());
assertEquals(2, writer.maxDoc());
assertEqu... |
99f4aa63-4c29-4d63-a607-8413b9dd29e0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-10 07:34:01", "repo_name": "cxiiiiiii/demon-java", "sub_path": "/src/main/java/pegging/configure/MongoConfigure.java", "file_name": "MongoConfigure.java", "file_ext": "java", "file_size_in_byte": 741, "line_co... | package pegging.configure;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/**
* <p>Title: pegging.configure pegging</p>
* <p>Description: </p>
* <p>Company: WPT</p>
*
* @author caixiao
* @version 1.0
* @date 2018/5/4 上午11:46
*/
public class MongoConfigure implements BaseC... |
555ccf03-506f-4577-97e3-7087b1569886 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-29 22:42:42", "repo_name": "flynny75/snap", "sub_path": "/snap-tree/src/main/java/org/snapscript/tree/define/TypeName.java", "file_name": "TypeName.java", "file_ext": "java", "file_size_in_byte": 886, "line_co... | package org.snapscript.tree.define;
import org.snapscript.core.Scope;
import org.snapscript.core.Type;
import org.snapscript.tree.NameReference;
import org.snapscript.tree.literal.TextLiteral;
public class TypeName {
private final NameReference reference;
public TypeName(TextLiteral literal) {
thi... |
98d3f6d3-44c0-47f0-983b-a9773ab25ecc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-29 06:31:48", "repo_name": "JimmyYouhei/servlet-jsp-login-and-register-page", "sub_path": "/src/main/java/com/jimmyyouhei/assignment3/bean/UserBean.java", "file_name": "UserBean.java", "file_ext": "java", "fil... | package com.jimmyyouhei.assignment3.bean;
public class UserBean {
private String username;
private String password;
private Integer loggedInTimes;
public UserBean() {
}
public UserBean(String username, String password) {
this.username = username;
this.password = password;
}
public String get... |
11920d01-1e41-4535-a1c1-6019579173f2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-19 15:39:23", "repo_name": "ArmannGokdemir/Java-React-Kamp", "sub_path": "/coffeeProject/src/Concrete/StarbucksCustomerManager.java", "file_name": "StarbucksCustomerManager.java", "file_ext": "java", "file_siz... | package Concrete;
import Abstract.CustomerManager;
import Abstract.ICustomerService;
import Abstract.IPersonCheckService;
import Entities.Customer;
public class StarbucksCustomerManager extends CustomerManager {
public IPersonCheckService personCheckService;
public StarbucksCustomerManager(IPersonCheckS... |
1ed28725-89bc-49c9-8996-52c67585667c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-18 13:02:25", "repo_name": "lxiaog/mybatis", "sub_path": "/demo-springboot-mybatis/src/main/java/com/springboot/demo/controller/PersonController.java", "file_name": "PersonController.java", "file_ext": "java",... | package com.springboot.demo.controller;
import com.springboot.demo.service.PersonService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Rest... |
dcae7468-87c6-479a-8133-6d6548c266d8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-06-24 08:52:20", "repo_name": "jeromewu/ntu-pdpc-1022", "sub_path": "/mapreduce.homework/SortReducer.java", "file_name": "SortReducer.java", "file_ext": "java", "file_size_in_byte": 737, "line_count": 24, "lang":... | import java.io.IOException;
import java.util.Iterator;
import java.lang.String;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
public class SortReducer extends Reducer<IntWritable, Text, IntWritable, Text> {
public void reduce(IntWritable key... |
75c6c962-537d-4650-9a85-bb3f1aca2402 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-07 20:57:40", "repo_name": "kavigupta/41-Plus-Plus", "sub_path": "/41++ General/src/fortytwo/vm/expressions/LiteralVoid.java", "file_name": "LiteralVoid.java", "file_ext": "java", "file_size_in_byte": 737, "li... | package fortytwo.vm.expressions;
import fortytwo.compiler.Context;
import fortytwo.language.type.ConcreteType;
import fortytwo.language.type.PrimitiveType;
import fortytwo.language.type.PrimitiveTypeWOC;
public class LiteralVoid extends LiteralExpression {
public static final LiteralVoid INSTANCE = new LiteralVoid(
... |
03b682cc-f77e-47ad-a253-72bf7a82c2d3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-15 02:59:43", "repo_name": "caohaibing/CHB_Learned", "sub_path": "/MyStruts_4/src/main/java/com/caohaibing/struts/action/ModifyUserAction.java", "file_name": "ModifyUserAction.java", "file_ext": "java", "file_... | package com.caohaibing.struts.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.caohaibing.struts.manager.UserManager;
public class ModifyUserAction implements Action {
@Override
public String execute(HttpServletRequest req, HttpServletResponse resp)
... |
cbecceea-5d11-4fe6-8928-f210408a07f1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-04 17:44:44", "repo_name": "mbogunovic/conferences", "sub_path": "/app/src/main/java/com/conferences/helpers/CalendarHelper.java", "file_name": "CalendarHelper.java", "file_ext": "java", "file_size_in_byte": 7... | package com.conferences.helpers;
import android.os.Build;
import androidx.annotation.RequiresApi;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class CalendarHelper {
@RequiresApi(api = Build.VERSION_CODES.O)
public static Calend... |
c2c60759-8db3-4c7a-a822-5b1092c68bd7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-11 17:44:27", "repo_name": "DgKyK/servletsFp", "sub_path": "/src/main/java/ua/alex/project/model/dao/mapper/QuestionMapper.java", "file_name": "QuestionMapper.java", "file_ext": "java", "file_size_in_byte": 73... | package ua.alex.project.model.dao.mapper;
import ua.alex.project.model.entity.Question;
import ua.alex.project.model.enums.Answer;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* class that helps to map the Question entity from DB;
*/
public class QuestionMapper implements ObjectMapper<Question> {
... |
e5805140-1473-4579-81d0-1cf8f7430f3c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-22 19:05:18", "repo_name": "alvaromoyaoliva/myapp", "sub_path": "/app/src/test/java/com/example/myapplication/presenters/LoginPresenterTest.java", "file_name": "LoginPresenterTest.java", "file_ext": "java", "f... | package com.example.myapplication.presenters;
import com.example.myapplication.views.ILoginView;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import static org.mockito.Mockito.*;
public class LoginPresenterTest {
... |
340b14b6-b3e5-4a5f-85f3-d1fe5c3cc714 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-22 20:10:20", "repo_name": "edisonpinzon/EdisonCallCenter", "sub_path": "/src/main/java/com/edison/model/Empleado.java", "file_name": "Empleado.java", "file_ext": "java", "file_size_in_byte": 737, "line_count"... | package com.edison.model;
public class Empleado implements Comparable<Empleado> {
private final String name;
private Integer value;
public void setValue(int num) {
this.value = num;
}
public Integer getValue(){
return this.value;
}
public Empleado(String name... |
f6e4a724-6dc9-4623-96d8-880a644844c6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-22 21:48:44", "repo_name": "xochipillia/AvanceLabQWrande", "sub_path": "/app/src/main/java/wrande/cecyt9/pt/Teoria.java", "file_name": "Teoria.java", "file_ext": "java", "file_size_in_byte": 737, "line_count":... | package wrande.cecyt9.pt;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
/**
* Created by Xochipilli on 23/04/2017.
*/
public class Teoria extends AppCompatActivity {
@Override
protected void o... |
2174a545-5f4d-47ce-b4ad-123f54eeed64 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-19 02:49:40", "repo_name": "stormtrooper96/polimorfismojava", "sub_path": "/src/modelo/Lote.java", "file_name": "Lote.java", "file_ext": "java", "file_size_in_byte": 741, "line_count": 36, "lang": "en", "doc_t... | /*
* 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 modelo;
/**
*
* @author ESTUDIANTE2502
*/
public class Lote extends Inmueble{
private double area;
publi... |
41f3d082-5a67-4967-99ed-3672bc88a8ea | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-06 11:45:29", "repo_name": "1cao2mu/Plan", "sub_path": "/app/src/main/java/com/project/cyy/plan/tool/Utils.java", "file_name": "Utils.java", "file_ext": "java", "file_size_in_byte": 747, "line_count": 37, "lan... | package com.project.cyy.plan.tool;
import android.content.Context;
import android.graphics.Point;
import android.view.Display;
import android.view.WindowManager;
/**
* Created by cyy
* on 18-5-30下午3:54
*/
public class Utils {
static void sysout(Object object) {
System.out.println(object);
}
p... |
b73f6505-894d-46b8-b752-28a42e96cc5a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-16 13:11:54", "repo_name": "djayaram1995/SpringBasic", "sub_path": "/src/com/spring/basic/InitialApp.java", "file_name": "InitialApp.java", "file_ext": "java", "file_size_in_byte": 737, "line_count": 22, "lang... | package com.spring.basic;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class InitialApp {
public static void main(String[] args) {
ClassPathXmlApplicationContext cxt = new ClassPathXmlApplicationContext("applicationContext.xml");
FoodStall food = cxt.getBean("indian", Food... |
6e23939d-3ca8-4616-b58b-2bdd4fa2ddcf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-06 14:10:46", "repo_name": "Yusei37/SpringBootDemo", "sub_path": "/mqtt/src/main/java/club/yusei37/mqtt/controller/MqttController.java", "file_name": "MqttController.java", "file_ext": "java", "file_size_in_by... | package club.yusei37.mqtt.controller;
import club.yusei37.mqtt.client.MqttPushClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation... |
60e46b3f-4990-474d-9861-af9a1d3389f9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-08 14:35:37", "repo_name": "xiongliang0309/Online-Learning", "sub_path": "/Online-Learning/src/main/java/com/ruanko/rent/service/CourseService.java", "file_name": "CourseService.java", "file_ext": "java", "fil... | package com.ruanko.rent.service;
import com.ruanko.rent.dao.CourseDao;
import com.ruanko.rent.entity.Course;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class CourseService {
@Autowired
private CourseDao... |
61534ef6-7eca-4c5d-923c-f5ff6f3112ee | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-03-07 01:53:22", "repo_name": "rraaff/tdil-pq", "sub_path": "/ tdil-pq --username subcmd@gmail.com/ThalamusJClient/src/com/tdil/thalamus/client/test/TestLogout.java", "file_name": "TestLogout.java", "file_ext": "... | package com.tdil.thalamus.client.test;
import junit.framework.TestCase;
import net.sf.json.JSONObject;
import com.tdil.thalamus.client.core.UnauthorizedException;
import com.tdil.thalamus.client.facade.ThalamusClientFacade;
public class TestLogout extends TestCase {
public void testLogoutSuccess() throws Exception... |
7fdd021f-3c5d-4d20-93b5-e8fe36cba741 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-16 10:23:09", "repo_name": "likeflower950/zzgutils", "sub_path": "/src/main/java/com/zzgproject/mailclient/TestSendMail.java", "file_name": "TestSendMail.java", "file_ext": "java", "file_size_in_byte": 811, "l... | package com.zzgproject.mailclient;
public class TestSendMail {
public static void main(String[] args){
TestSendMail tm = new TestSendMail();
tm.sendTextMail();
}
public void sendTextMail(){
MailSenderInfo mailInfo = new MailSenderInfo();
mailInfo.setMailServerHost("smtp.163.com");
mailInfo.setMailSe... |
99534f57-8934-4dcf-b9da-a314b13fd03c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-10 19:10:20", "repo_name": "alexisdc94/hadoop-examples-mapreduce", "sub_path": "/src/main/java/com/opstty/reducer/HighTreeReducer.java", "file_name": "HighTreeReducer.java", "file_ext": "java", "file_size_in_b... | package com.opstty.reducer;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
import java.io.IOException;
//***************************************************
//******************** 1.8.5 **********************
//********************************... |
492f046e-4bdb-4eac-8d7f-6a035cf5c110 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-16 07:46:00", "repo_name": "yuanpneg/crawler-province-zhaobiao", "sub_path": "/src/main/java/crawler_city/KezilesuThread.java", "file_name": "KezilesuThread.java", "file_ext": "java", "file_size_in_byte": 757,... | package crawler_city;
import bean.Tender;
import dao.BaseDao;
import dao.FormalDao;
import org.apache.xpath.SourceTree;
import services_city.KezilesuService;
import utils.GetContentUtil;
import java.util.List;
/**
* 克孜勒苏市
*/
public class KezilesuThread implements Runnable{
private KezilesuService service = ne... |
715a70cf-ec77-47a1-9eda-942aca7c546c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-15 03:02:09", "repo_name": "xuyue1998/anti-addiction-kit-1", "sub_path": "/Server/tds-registration-server/src/main/java/com/taptap/tds/registration/server/job/CheckIdentificationJob.java", "file_name": "CheckI... | package com.taptap.tds.registration.server.job;
import com.taptap.tds.registration.server.service.PublicityService;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.A... |
841c8152-ba44-4381-84d4-097b87462e47 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-28 11:14:27", "repo_name": "DarkEyeCircle/BM_android", "sub_path": "/lib_coremodel/src/main/java/com/askia/coremodel/util/Utils.java", "file_name": "Utils.java", "file_ext": "java", "file_size_in_byte": 792, "... | package com.askia.coremodel.util;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
public class Utils {
//解析方法
public static String convertText(String text) {
if (text != null) {
//将string文本转换成html文本
Doc... |
31e5487c-c438-4659-acaf-5d502442fe06 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-03 01:31:38", "repo_name": "JSQF/NettyLearn", "sub_path": "/src/main/java/com/yyb/learn/character7/MsgPackDeconder.java", "file_name": "MsgPackDeconder.java", "file_ext": "java", "file_size_in_byte": 736, "lin... | package com.yyb.learn.character7;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageDecoder;
import org.msgpack.MessagePack;
import java.util.List;
/**
* @Author yyb
* @Description
* @Date Create in 2020-09-01
* @Time 14:43
*/
public cla... |
901b0deb-61a0-4200-9ca0-9013ee00767c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-02 00:51:42", "repo_name": "lcgerke/pinto", "sub_path": "/pinto-lang/src/main/java/tech/pinto/function/DefinedFunctionFactory.java", "file_name": "DefinedFunctionFactory.java", "file_ext": "java", "file_size_i... | package tech.pinto.function;
import tech.pinto.Indexer;
import tech.pinto.Namespace;
import tech.pinto.Pinto;
import tech.pinto.function.functions.Defined;
public class DefinedFunctionFactory implements FunctionFactory {
private final ComposableFunction function;
public DefinedFunctionFactory(Composab... |
2a425e1e-cc84-4a4d-a506-35fa7fd19057 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-28 22:01:41", "repo_name": "KashyapAdarsh/LeetCode", "sub_path": "/CommonPrefix_14.java", "file_name": "CommonPrefix_14.java", "file_ext": "java", "file_size_in_byte": 735, "line_count": 25, "lang": "en", "doc... | public class Solution {
public String longestCommonPrefix(String[] strs) {
Arrays.sort(strs);
StringBuilder temp = new StringBuilder();
int len = 0;
if(strs.length < 1)
return "";
if(strs.length == 1)
return strs[0];
if(strs[0].lengt... |
71c288d5-fd94-44d6-b231-61e4fe375042 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-29 04:37:21", "repo_name": "mrkevinomar/Comunitarias", "sub_path": "/app/src/main/java/com/example/personal/comunitarias/Mision/mision.java", "file_name": "mision.java", "file_ext": "java", "file_size_in_byte"... | package com.example.personal.comunitarias.Mision;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import com.example.personal.comunitarias.R;
import com.squareup.picasso.Picasso;
/**
* Created by kleberstevendiazcoello on 23/1/17.
*/
public class mision ... |
6f89f61a-ef31-4350-acc2-c3e9cfaf33ee | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-01-16T23:11:33", "repo_name": "Almostalantern/readMeGenerator", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 739, "line_count": 34, "lang": "en", "doc_type": "tex... | # ReadMe Generator

# Table of Contents
*[Description](#description)
*[Installation Instructions](#installationinstructions)
*[Contribution Guidelines](#contributionguidelines)
*[Testing Information](#testinginformation)
*[Conta... |
ebf515a9-99ab-4c2a-8349-00769ddaa7e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-06 04:16:06", "repo_name": "hawtio/hawtio", "sub_path": "/tests/hawtio-test-suite/src/main/java/io/hawt/tests/features/stepdefinitions/camel/endpoints/CamelEndpointsStepDefs.java", "file_name": "CamelEndpoints... | package io.hawt.tests.features.stepdefinitions.camel.endpoints;
import io.cucumber.java.en.When;
import io.hawt.tests.features.pageobjects.fragments.camel.tabs.endpoints.CamelEndpoints;
public class CamelEndpointsStepDefs {
private final CamelEndpoints camelEndpoints = new CamelEndpoints();
@When("^User adds... |
b2c82565-62a6-4a89-8384-24287299a25f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-05-17 11:59:56", "repo_name": "akkerman/SCJP-sessies", "sub_path": "/Opdracht 2 - Generic Libraries/Generic Library V03/src/scjp/genericlibrary/Library.java", "file_name": "Library.java", "file_ext": "java", "fil... | package scjp.genericlibrary;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
public class Library<C, L extends Lendable<C>> {
Map<C, L> available = new HashMap<C, L>();
Map<C, L> due = new HashMap<C, L>();
public L lendItem(C libraryCode) {
L item = available.get(libraryC... |
882f35c3-409f-4615-bff8-cdc3146acf11 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-05-03T07:25:09", "repo_name": "binaryage/totalspaces2-desktopname", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 736, "line_count": 19, "lang": "en", "doc_type": ... | totalspaces2-desktopname
========================
TotalSpaces2 plugin to display the name of the current space in the menu bar
This is the simplest possible implementation, and shows how to use the TotalSpaces2
API from Swift.
_Only the name of the main screen is displayed._ Secondary screens will not display
their ... |
55ae457b-2f28-4cea-9d1a-2c16e3bc8d3c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-04-10T13:43:48", "repo_name": "nguereza-tony/tphpsql", "sub_path": "/tphpsql-1.0.0/tphpsql-1.0.0/README.MD", "file_name": "README.MD", "file_ext": "md", "file_size_in_byte": 736, "line_count": 28, "lang": "en... | #tphpsql#
###PHP SQL Table Class generator###
This app is used to create the PHP class (OOP) for every MySQL table and their manager.
you must have PHP 5.3 and less than 7 because the app use the mysql extension removing in PHP 7.
just download the package by version and install.
* [tphpsql-1.0.0 (debian or ubuntu... |
3d736b0b-72b3-46fb-8a54-21ff0aaee650 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-05 18:03:48", "repo_name": "sunup2sundown/SmartHomeAndroid", "sub_path": "/app/src/main/java/edu/temple/m/smarthomedroid/Objects/Camera.java", "file_name": "Camera.java", "file_ext": "java", "file_size_in_byte... | package edu.temple.m.smarthomedroid.Objects;
/**
* Created by M on 4/23/2017.
*/
public class Camera {
String id;
String name;
String houseName;
String session;
final String TAG = "Camera Object";
public Camera(){
}
public Camera(String sess,String house, String name){
this... |
3a70a878-93dc-48c5-8d7d-e637ab6efdce | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-14 07:02:09", "repo_name": "zhangcm/spring-redis-lock", "sub_path": "/src/main/java/com/justz/lock/annotation/LockConfigurationSelector.java", "file_name": "LockConfigurationSelector.java", "file_ext": "java",... | package com.justz.lock.annotation;
import org.springframework.context.annotation.AdviceMode;
import org.springframework.context.annotation.AdviceModeImportSelector;
import java.util.ArrayList;
import java.util.List;
/**
* Selects which implementation of {@link AbstractLockConfiguration} should be used
* based on t... |
efee2b6f-9014-4563-be15-4c06d7eef7d8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-19 22:07:57", "repo_name": "andreho/aop", "sub_path": "/src/main/java/net/andreho/aop/spi/impl/matchers/ReturningMatcher.java", "file_name": "ReturningMatcher.java", "file_ext": "java", "file_size_in_byte": 73... | package net.andreho.aop.spi.impl.matchers;
import net.andreho.aop.spi.ElementMatcher;
import net.andreho.haxxor.api.HxMethod;
import net.andreho.haxxor.api.HxType;
/**
* <br/>Created by a.hofmann on 17.06.2017 at 02:34.
*/
public class ReturningMatcher
extends AbstractMatcher<HxMethod> {
private final Element... |
b88c51e5-dddb-47c3-906f-96b9fbd6cdee | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-11 10:50:25", "repo_name": "vzhilin/patterns", "sub_path": "/src/main/java/ru/sberbank/gof/structural/composite/Item.java", "file_name": "Item.java", "file_ext": "java", "file_size_in_byte": 736, "line_count":... | package ru.sberbank.gof.structural.composite;
import java.util.List;
public abstract class Item {
private String description;
private int cost;
public Item(String description, int cost) {
this.description = description;
this.cost = cost;
}
public String getDescription() {
... |
9afff9cb-4184-4f36-a4df-a2cc15864a0f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-12 09:04:19", "repo_name": "andriisukmanovskyi/myscore", "sub_path": "/src/main/java/com/epam/e2/businessObjects/LoginBO.java", "file_name": "LoginBO.java", "file_ext": "java", "file_size_in_byte": 735, "line_... | package com.epam.e2.businessObjects;
import com.epam.e2.pageObjects.HomePageObjects;
import com.epam.e2.pageObjects.LoginPageObjects;
public class LoginBO {
HomePageObjects homePageObjects;
LoginPageObjects loginPageObjects;
public LoginBO() {
this.homePageObjects = new HomePageObjects();
... |
97f2d984-d77e-463a-9923-5905df43dc6b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-12-28T06:24:09", "repo_name": "DevOpsChandraSekhar/Spring-boot-rest-h2", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 740, "line_count": 24, "lang": "en", "doc_ty... | # springboot
# Clone or Fork this entire repository
https://github.com/DevOpsChandraSekhar/springrest.git
# 1Spring boot with rest and H2 database
1. Spring Boot 2.4.1.RELEASE
2. Spring 5.3.2.RELEASE
3. Spring Data JPA 2.4.2.RELEASE
4. H2 In-memory Database 1.4.200
5. Tomcat Embed 9.0.41
6. Maven 3
7. Java 8
*I... |
1ed38e8f-c168-4db1-a320-c9e14bd481d7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-11 12:10:31", "repo_name": "borjius/equationSystem", "sub_path": "/src/main/java/com/equation/system/model/Symbol.java", "file_name": "Symbol.java", "file_ext": "java", "file_size_in_byte": 736, "line_count": ... | package com.equation.system.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name="symbology")
@Entity
public class Symbol {
@Id
@XmlElement
private String symbol;
@XmlElement
priva... |
a27d6da9-2415-4e46-8a24-5896d82d701f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-05 15:06:41", "repo_name": "Lodour/SHU-Helper", "sub_path": "/src/shuhelper/ui/CJ_IdentFrameWindow.java", "file_name": "CJ_IdentFrameWindow.java", "file_ext": "java", "file_size_in_byte": 737, "line_count": 28... | package shuhelper.ui;
import java.io.IOException;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
public class CJ_IdentFrameWindow {
private CJ_IdentFrame controller = new CJ_IdentFrame();
Stage stage = new... |
42e20f5c-198e-4ae1-970b-a86bab8dfa03 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-01 10:57:53", "repo_name": "ChristianANoeddeboe/CDIO3", "sub_path": "/src/juniorMatador/LogicGoToJail.java", "file_name": "LogicGoToJail.java", "file_ext": "java", "file_size_in_byte": 736, "line_count": 32, "... | package juniorMatador;
public class LogicGoToJail extends LogicField {
private int ticket = 3;
private int JailLocation;
public LogicGoToJail(int fieldNo) {
super(fieldNo, "GOTOJAIL");
}
public int getTicket() {
return ticket;
}
public int getJailLocation() {
ret... |
579c7ff0-491b-43b0-a321-03f39a9022c6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-24 16:20:11", "repo_name": "imRichardNg/medipal", "sub_path": "/app/src/main/java/iss/nus/medipal/asyncTask/EditCategoryList.java", "file_name": "EditCategoryList.java", "file_ext": "java", "file_size_in_byte"... | package iss.nus.medipal.asyncTask;
import android.content.Context;
import android.os.AsyncTask;
import iss.nus.medipal.AppFolder.Category;
import iss.nus.medipal.dao.CategoryDAO;
/**
* Created by richard on 17/3/17.
*/
public class EditCategoryList extends AsyncTask<Category, Void, Long> {
private CategoryDAO ... |
20e01aa8-2beb-4ef7-b258-43f714217f8b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-03-16 05:29:57", "repo_name": "SwingFrog/Summer", "sub_path": "/src/main/java/com/swingfrog/summer/protocol/protobuf/ReqProtobufMgr.java", "file_name": "ReqProtobufMgr.java", "file_ext": "java", "file_size_in_byt... | package com.swingfrog.summer.protocol.protobuf;
import com.google.protobuf.Message;
public class ReqProtobufMgr extends AbstractProtobufMgr {
private static final String PREFIX_REQ = "req";
private static class SingleCase {
public static final ReqProtobufMgr INSTANCE = new ReqProtobufMgr();
}
... |
f1a12198-a005-4840-a17f-14a3eefe9898 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-06-01T15:04:25", "repo_name": "wooly/Nodobo-Capture", "sub_path": "/ContextCapture/src/com/nodobo/capture/HeadphoneStateReceiver.java", "file_name": "HeadphoneStateReceiver.java", "file_ext": "java", "file_size_i... | package com.nodobo.capture;
import android.content.Context;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import java.lang.StringBuilder;
public class HeadphoneStateReceiver extends AbstractNodoboReceiver
{
private final String TAG = "HeadphoneStateReceiver";
private final Str... |
c4a2a704-6565-4381-b209-0334b069f0a2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-19 10:04:22", "repo_name": "marian-margeta/Assignment", "sub_path": "/src/main/java/com/garwan/assignment/auth/UserDetailsServiceImpl.java", "file_name": "UserDetailsServiceImpl.java", "file_ext": "java", "fil... | package com.garwan.assignment.auth;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.*;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
public class UserDetailsServiceImpl imple... |
efaa3054-a02f-459b-a1b6-f4546b909e27 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-06-27T13:40:28", "repo_name": "mac10046/SimpleAccount", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 737, "line_count": 22, "lang": "en", "doc_type": "text", "blo... | # SimpleAccount
SimpleAccount is desktop application made in JAVA and JavaFx, Its an embedded application for recording simple transactions. It can be kept in a pendrive as well and can work on MAC, Windows or Linux as well.
## Installation
It uses maven package, so in your console just enter this command
"mv... |
d738a5ca-c565-437b-921e-b178223eb5b7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-05-03T05:43:25", "repo_name": "zdhoward/HelpMeChoose", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 736, "line_count": 36, "lang": "en", "doc_type": "text", "blob... | HelpMeChoose
============
A windows desktop application that aids in randomly selecting media within a chosen directory.
Download
--------
http://www.ashedbit.com/ClickOnce/HelpMeChoose/setup.exe
Changelog
---------
_Current_ Release 0.7
- Cleaner UI
- Favourites and Extensions menus worked out
- Menu Strip with wo... |
4d632325-8de0-4549-b282-a7aa3d5e3a10 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-05-21 19:58:45", "repo_name": "Tolex-3000/Tron", "sub_path": "/src/LaserField.java", "file_name": "LaserField.java", "file_ext": "java", "file_size_in_byte": 739, "line_count": 31, "lang": "en", "doc_type": "code... |
import java.awt.Color;
import java.awt.Graphics;
/**
*
* @author Leon
*/
public class LaserField extends Wall implements Timed {
private int counter = 0;
public LaserField(int x, int y, Matrix m) {
super(x, y, m);
Clock.getInstance().login(this);
}
@Override
... |
1b9d630a-8a6c-4667-9aa3-3cd1c72acdce | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-05-23T21:16:02", "repo_name": "oasislabs/wasi-runner", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 736, "line_count": 28, "lang": "en", "doc_type": "text", "blob... | WASI Runner
===
Module entrypoint for instantiation and execution of WASI-targeted
WASM code. A modification of the [js-polyfill](https://wasi.dev/polyfill/) for easier use in testing / command line interactions.
Usage
---
```
const runner = require('wasi-runner');
let stdin = 'hello world';
let exitCode = await run... |
1c93bc1d-08df-4bb7-824c-c13b89ccee11 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-06 15:35:55", "repo_name": "git4deng/springbootdemo", "sub_path": "/spring-boot-03-logging/src/test/java/com/david/springboot/SpringBoot03LoggingApplicationTests.java", "file_name": "SpringBoot03LoggingApplica... | package com.david.springboot;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public c... |
32c8f084-9500-4697-989a-dc8122068724 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-13 14:06:33", "repo_name": "nokiiam/JEE-BusCompany", "sub_path": "/src/main/java/com/mti/controller/converter/StopControllerEntityConverter.java", "file_name": "StopControllerEntityConverter.java", "file_ext":... | package com.mti.controller.converter;
import com.mti.controller.data.StopRequest;
import com.mti.controller.data.StopResponse;
import com.mti.service.data.StopEntity;
public class StopControllerEntityConverter implements ControllerEntityConverter<StopRequest, StopResponse, StopEntity> {
@Override
public StopE... |
2e237f06-bf7a-40df-8b35-5adcd11abe27 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-06 17:10:21", "repo_name": "milehighdrew/mapreduceCountWords", "sub_path": "/src/main/java/SortKeyComparator.java", "file_name": "SortKeyComparator.java", "file_ext": "java", "file_size_in_byte": 736, "line_co... | import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.WritableComparator;
/**
* Created by petersoa on 7/6/15.
*/
public class SortKeyComparator extends WritableComparator{
protected SortKeyComparator() {
super(IntWritable.class, true);
... |
31a296d6-b58c-462f-8b56-2d8ca6980b9e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-21 13:06:02", "repo_name": "sknv/springify", "sub_path": "/src/main/java/com/github/skanukov/springify/apps/web/controllers/PageController.java", "file_name": "PageController.java", "file_ext": "java", "file_s... | package com.github.skanukov.springify.apps.web.controllers;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class PageController {
private ... |
f875a9d5-fc35-4eae-91f8-0296b579fc94 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-20 02:33:31", "repo_name": "tranthienphuc/Owner", "sub_path": "/app/src/main/java/com/hbbsolution/owner/work_management/model/workmanager/History.java", "file_name": "History.java", "file_ext": "java", "file_s... | package com.hbbsolution.owner.work_management.model.workmanager;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
/**
* Created by tantr on 5/10/2017.
*/
public class History implements Serializable{
@SerializedName("createAt")
@Exp... |
32cceb50-d85a-4697-91fa-3320a52ed2c8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-21 16:29:32", "repo_name": "distiya/auth-service", "sub_path": "/src/main/java/com/uob/rd/authservice/service/ClientServiceImpl.java", "file_name": "ClientServiceImpl.java", "file_ext": "java", "file_size_in_b... | package com.uob.rd.authservice.service;
import com.uob.rd.authservice.entity.Client;
import com.uob.rd.authservice.repository.ClientRepository;
import org.springframework.stereotype.Component;
import java.util.Optional;
@Component
public class ClientServiceImpl implements ClientService {
private final ClientRepo... |
c0f77199-96ed-4bfb-9b2d-2c134169f367 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-05-10T14:37:20", "repo_name": "dukt/social-linkedin", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 749, "line_count": 28, "lang": "en", "doc_type": "text", "blob_... | LinkedIn login provider for Social
=======================
This plugin provides a [LinkedIn](https://linkedin.com/) integration for [Social 2 for Craft CMS](https://github.com/dukt/social).
## Requirements
This plugin requires Social 2.0.0-beta.1 or later.
## Installation
To install the plugin, follow these inst... |
e73f6a16-db51-41b0-bb56-a9019f35dbb0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-11 19:42:37", "repo_name": "gabrieltnishimura/evans", "sub_path": "/java/evans-server1.2/src/br/com/evans/db/dao/tasks/InsertTests.java", "file_name": "InsertTests.java", "file_ext": "java", "file_size_in_byte... | package br.com.evans.db.dao.tasks;
import java.net.UnknownHostException;
import java.util.Date;
import org.jongo.Jongo;
import org.jongo.MongoCollection;
import br.com.evans.notifications.core.Notifications;
import com.mongodb.Mongo;
public class InsertTests {
public static void main(String[] args) {
Metronic... |
e93e3890-6821-4e7a-a43b-0df162e18d7c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-12 14:35:39", "repo_name": "YantraQA/batch12-cucumber-fw", "sub_path": "/src/test/java/com/yantraQA/stepdefs/StepDefs2.java", "file_name": "StepDefs2.java", "file_ext": "java", "file_size_in_byte": 736, "line_... | package com.yantraQA.stepdefs;
import com.yantraQA.core.TestContext;
import com.yantraQA.core.WebDriverFactory;
import io.cucumber.java.Scenario;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import lombok.extern.log4j.Log4j2;
@Log4j2
public class StepDefs2 {
... |
6a6ab1c9-8457-49fb-8bc3-99a01701026e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-03-28T04:17:04", "repo_name": "Olincy/Brouter-ios", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 960, "line_count": 40, "lang": "zh", "doc_type": "text", "blob_id... | ## Brouter-ios
一款iOS路由处理组件 [platform: iOS8+]
## Install
直接将Brouter文件夹拖拽到工程中
## Usage
注册:
<pre>
<code>
//url 中不包含参数
[Brouter route:@"test://foo/bar" toHandler:^(BrouterContext * _Nonnull context) {
NSLog(@"%@",context);
}];
// url 中包含参数, 并且用正则表达式规定参数的格式
[Brouter route:@"test://foo/channel... |
13f58864-bf6f-419f-9ace-b6a230446a8e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-02-13 18:30:16", "repo_name": "Kenjaman/UDEV3", "sub_path": "/JAVA EE/SpringEtORM/animoz/src/main/java/com/animoz/dao/EnclosDao.java", "file_name": "EnclosDao.java", "file_ext": "java", "file_size_in_byte": 736, ... | package com.animoz.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.stereotype.Repository;
import com.animoz.modele.Enclos;
@Repository
public class EnclosDao {
@PersistenceContext
private EntityManager em;
public Lis... |
06702f17-bec7-47ac-b73f-0323dae249ba | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-17 19:31:30", "repo_name": "systemcgl/Main", "sub_path": "/src/br/com/systemcgl/Systemcgl.java", "file_name": "Systemcgl.java", "file_ext": "java", "file_size_in_byte": 737, "line_count": 36, "lang": "en", "do... |
/*
* 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 br.com.systemcgl;
import br.com.systemcgl.screens.TelaLogin;
import java.sql.*;
/**
*
* @author zare
*/
public class Sys... |
5651fa56-b895-45c9-986d-4a0561830824 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-26 05:30:19", "repo_name": "musibs/java-cryptography", "sub_path": "/src/main/java/io/tbc/java/crypto/basics/ProviderCapabilities.java", "file_name": "ProviderCapabilities.java", "file_ext": "java", "file_size... | package io.tbc.java.crypto.basics;
import java.security.Provider;
import java.security.Security;
import java.util.Set;
public class ProviderCapabilities {
public static void main(String[] args) {
//Provider provider = Security.getProvider("SunJCE");
Provider provider = Security.getProvider("BC");
Set<Objec... |
5e761d7e-68a0-484b-b7c9-4df67de72497 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-01 10:44:48", "repo_name": "moldovean/n26-challenge-spring", "sub_path": "/src/main/java/club/cheapok/n26/repository/impl/TransactionRepositoryImpl.java", "file_name": "TransactionRepositoryImpl.java", "file_e... | package club.cheapok.n26.repository.impl;
import club.cheapok.n26.model.Transaction;
import club.cheapok.n26.repository.TransactionRepository;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
import java.util.List;
@Repository
public class TransactionRepositoryImpl implements Transaction... |
ef957f9a-afa0-4174-9742-92b821eeb052 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-01-18T18:41:04", "repo_name": "danferth/fliers-catalog", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 737, "line_count": 12, "lang": "en", "doc_type": "text", "bl... | ```
oooooooooooo oooo o8o
`888' `8 `888 `"'
888 888 oooo .ooooo. oooo d8b .oooo.o
888oooo8 888 `888 d88' `88b `888""8P d88( "8
888 " 888 888 888ooo888 888 `"Y88b.
888 888 888 888 .o 888 o.... |
8d928693-0eed-4326-b535-22b9f7ef61e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-02 04:44:21", "repo_name": "Ananya1594/Anu15", "sub_path": "/SupplierTest.java", "file_name": "SupplierTest.java", "file_ext": "java", "file_size_in_byte": 737, "line_count": 24, "lang": "en", "doc_type": "cod... | package store;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.store.dao.SupplierDao;
import com.store.model.Supplier;
public class SupplierTest {
public static void main(String[] args) {
AnnotationConfigApplicationContext Context = new AnnotationConfigApplica... |
560811f9-ad18-4217-8604-06ddb4ca5265 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-12 13:16:15", "repo_name": "zulnerub/Java---Java-Advanced", "sub_path": "/Sets And Maps Advanced/Phonebook.java", "file_name": "Phonebook.java", "file_ext": "java", "file_size_in_byte": 736, "line_count": 24, ... | import java.util.HashMap;
import java.util.Scanner;
public class Phonebook {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
HashMap<String, String> phonebook = new HashMap<>();
String input;
while (!"search".equalsIgnoreCase(input = sc.nextLine())){
... |
3b296127-95cc-4d87-8a95-a45f6bb6b894 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-25 12:13:35", "repo_name": "Zanexess/Messenger_Technotrack_Android_03", "sub_path": "/app/src/main/java/com/zanexess/messenger_tech_03/Messages/UserInfoResponceData.java", "file_name": "UserInfoResponceData.ja... | package com.zanexess.messenger_tech_03.Messages;
public class UserInfoResponceData implements Data {
private String status;
private String error;
private String nick;
private String user_status;
public UserInfoResponceData() {
}
public UserInfoResponceData(String status, String error, Str... |
081163b5-2552-4d5c-a01c-4b3ba2c2aa00 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-10 09:34:12", "repo_name": "SaitoAsuka/base_sort", "sub_path": "/src/binary_tree/preOrderWithoutRecursion.java", "file_name": "preOrderWithoutRecursion.java", "file_ext": "java", "file_size_in_byte": 772, "lin... | package binary_tree;
import java.util.Stack;
/*先序遍历,不通过栈*/
public class preOrderWithoutRecursion {
public static void order(tree_node current) {
Stack<tree_node> preOrder = new Stack<>();
preOrder.push(current);
while (!preOrder.isEmpty()) {
current = preOrder.pop();
... |
52b2f53a-21f6-4a22-a510-6cbf844120fd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-18 19:25:29", "repo_name": "caren1/JavaExcercises", "sub_path": "/GrandsonShopping2ndVersion/src/Money/Person.java", "file_name": "Person.java", "file_ext": "java", "file_size_in_byte": 741, "line_count": 29, ... | package Money;
public abstract class Person implements IComplexSourceOfMoney {
public Person(String imie, Integer wiek) {
this.imie = imie;
this.wiek = wiek;
}
private String imie;
private Integer wiek;
private ComplexSourceOfMoney complexSourceOfMoney = new ComplexSour... |
edef4b6c-ed24-4909-a1dc-371ef33ba143 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-18 06:34:07", "repo_name": "alokthink/NewJavaCode", "sub_path": "/HibernateCrudOperation/src/test/Client.java", "file_name": "Client.java", "file_ext": "java", "file_size_in_byte": 736, "line_count": 35, "lang... | package test;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import bean.Student;
public class Client {
public static void main(String[] args) {
Configuration cfg= new Configuration();
cfg.configure("resource/student... |
b1daa8ba-d5ac-4414-8121-61ce472108c8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-02-18 12:06:52", "repo_name": "manojkumar2015/grad-IR-NewsSearcher", "sub_path": "/src/edu/buffalo/cse/irf14/analysis/CategoryAnalyzer.java", "file_name": "CategoryAnalyzer.java", "file_ext": "java", "file_size_i... | package edu.buffalo.cse.irf14.analysis;
import java.util.ArrayList;
public class CategoryAnalyzer implements Analyzer
{
TokenStream stream = null;
// will contain all the token filters
private ArrayList<TokenFilter> Filters=new ArrayList<TokenFilter>();
public CategoryAnalyzer(TokenStream stream)
{
this.st... |
758a85e5-4578-43d0-adf8-d25faeeb0195 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-09 08:10:33", "repo_name": "AgnitumuS/gitv", "sub_path": "/gitv/src/main/java/com/gala/tvapi/vrs/model/IChannelItem.java", "file_name": "IChannelItem.java", "file_ext": "java", "file_size_in_byte": 736, "line_... | package com.gala.tvapi.vrs.model;
import com.gala.tvapi.type.IChannelType;
public class IChannelItem extends Model {
public static final int HORICAONTAL_LAYOUT = 1;
public static final int VIRTUAL_LAYOUT = 2;
private static final long serialVersionUID = 1;
public String channelId = "";
public Stri... |
362d8769-c082-40d3-abb0-b26cba8f3c21 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-20 14:17:29", "repo_name": "xiaoyanghapi/babasport", "sub_path": "/src/test/java/cn/itcast/core/service/TestTbServiceImpl.java", "file_name": "TestTbServiceImpl.java", "file_ext": "java", "file_size_in_byte": ... | package cn.itcast.core.service;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cn.itcast.core.bean.TestTable;
import cn.itcast.core.dao.TestTbDao;
/**
* @author 作者 yjj:
... |
63fea0f0-876e-4331-8ead-dbf5a332da9d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-08-22 21:27:45", "repo_name": "tbepler/JProbe", "sub_path": "/src/util/genome/peak/AbstractPeakQuery.java", "file_name": "AbstractPeakQuery.java", "file_ext": "java", "file_size_in_byte": 736, "line_count": 28, "... | package util.genome.peak;
import util.genome.GenomicCoordinate;
import util.genome.GenomicRegion;
import util.genome.reader.query.LocationQuery;
public abstract class AbstractPeakQuery extends LocationQuery{
private static final long serialVersionUID = 1L;
private final Peak m_Peak;
public AbstractPeakQuery(Pe... |
cb0669a5-5349-415f-a391-7319a1dfe3be | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-04 12:00:44", "repo_name": "tusharrajput18/myssknew", "sub_path": "/src/main/java/in/co/vsys/myssksamaj/font_wrappers/OpenSansBoldFontWrapper.java", "file_name": "OpenSansBoldFontWrapper.java", "file_ext": "ja... | package in.co.vsys.myssksamaj.font_wrappers;
import android.content.Context;
import android.graphics.Typeface;
/**
* @author abhijeet.j
*/
public class OpenSansBoldFontWrapper {
private static OpenSansBoldFontWrapper instance;
private static Typeface typeface;
public static OpenSansBoldFontWrapper get... |
ceebcaf7-7c83-462d-9876-a67b62031f98 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-18 12:56:12", "repo_name": "Sugarhl/Java-hw", "sub_path": "/AnnotateLIb/src/main/sugar/error/Error.java", "file_name": "Error.java", "file_ext": "java", "file_size_in_byte": 736, "line_count": 38, "lang": "en"... | package sugar.error;
import sugar.validation.ValidationError;
public class Error implements ValidationError {
final String message;
private Object object;
private String path;
public Error(Object object, String message, String path) {
this.object = object;
this.message = message;
... |
096cf1d9-2f05-459a-97a7-cc7e04309223 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-12-29T14:38:28", "repo_name": "darkdemonking/Face-Recognition-with-PyQT", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 736, "line_count": 11, "lang": "en", "doc_t... | # Face-Recognition-with-PyQT
A program which uses openCV to detect and recognize faces in image.
Just run the python file and it will open a window which includes three buttons and a text field. Write your name in textbox.
Following buttons are used in program:
1. Get data and train: This will get the dataset of faces... |
b807c2fe-85ee-4f97-90df-32ac8c1716a7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-03 15:00:51", "repo_name": "pascalcpp/leetcode", "sub_path": "/src/com/xpcf/algorithm/leetcode/linkedlist/IntersectionNode.java", "file_name": "IntersectionNode.java", "file_ext": "java", "file_size_in_byte": ... | package com.xpcf.algorithm.leetcode.linkedlist;
import java.util.List;
/**
* @author XPCF
* @version 1.0
* @date 5/10/2021 1:10 PM
*/
public class IntersectionNode {
public ListNode getIntersectionNode(ListNode headA, ListNode headB) {
if (headA == null || headB == null) {
return null;
... |
ba21100f-d12d-40bd-9663-dff821245a2e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-02-13 13:04:51", "repo_name": "him-bhar/jsf2", "sub_path": "/src/main/java/com/himanshu/jsf2/poc/events/bean/PreRenderViewEventBean.java", "file_name": "PreRenderViewEventBean.java", "file_ext": "java", "file_siz... | package com.himanshu.jsf2.poc.events.bean;
import javax.faces.application.ConfigurableNavigationHandler;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;
import javax.faces.event.ComponentSystemEvent;
@ManagedBean (name="preRenderViewEventBean")
@Req... |
3bf09596-4a00-4f4a-b110-c13795d7e1bc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-15 05:46:44", "repo_name": "tranhung9349/FinishModule2", "sub_path": "/src/Model/Group.java", "file_name": "Group.java", "file_ext": "java", "file_size_in_byte": 736, "line_count": 40, "lang": "en", "doc_type"... | package Model;
import Service.ContactManager;
public class Group {
private String name;
private ContactManager contactList;
public Group(String name) {
this.name = name;
this.contactList = new ContactManager();
}
public Group() {
}
public String getName() {
return... |
dc0d495b-f81c-4526-a5c9-032ec8b543f4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-07 06:39:49", "repo_name": "bhansriguer/java-chat-server", "sub_path": "/src/sample/chat/server/Client.java", "file_name": "Client.java", "file_ext": "java", "file_size_in_byte": 736, "line_count": 41, "lang":... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sample.chat.server;
import java.net.Socket;
/**
*
* @author bhans
*/
public class Client {
private String login;
... |
f2f24f16-4c61-4e70-80a2-56602bf65c05 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-14 02:37:49", "repo_name": "liepeiming/xposed_chatbot", "sub_path": "/alimama/src/main/java/mtopsdk/mtop/common/MtopFinishEvent.java", "file_name": "MtopFinishEvent.java", "file_ext": "java", "file_size_in_byt... | package mtopsdk.mtop.common;
import com.taobao.weex.el.parse.Operators;
import mtopsdk.mtop.domain.MtopResponse;
public class MtopFinishEvent extends MtopEvent {
public MtopResponse mtopResponse;
public String seqNo;
public MtopFinishEvent(MtopResponse mtopResponse2) {
this.mtopResponse = mtopRes... |
dd8df1ad-1586-4bac-b798-c03ce33068de | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-01-17T15:24:45", "repo_name": "Davidnet/balena-cli-docker-compose", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 735, "line_count": 31, "lang": "en", "doc_type": ... | # Container for balena-cli
This repo contains a files for manage devices and applications that are related to the balena-cli application.
## Usage
Please add your token in a file at:
```
echo "YOUR_BALENA_TOKEN_HERE" > balena_cli_configs/token
```
and add your public and private keys at:
```
cp $PUB_KEY_LOCATION $... |
510d0177-fffe-4c1a-ac63-7c9ee69e100b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-25 09:30:00", "repo_name": "xianzid/demo-java", "sub_path": "/src/main/java/com/example/demo/test/encode/SymmetricEncryption.java", "file_name": "SymmetricEncryption.java", "file_ext": "java", "file_size_in_by... | package com.example.demo.test.encode;
import javax.crypto.Cipher;
import java.io.UnsupportedEncodingException;
/**
* 对称加密算法,使用AES算法
*/
public class SymmetricEncryption {
private final String ALGORITHM="AES";
private final String CHARSET="UTF-8";
public byte[] encryption(String key){
byte[] bytes... |
c5fc5985-bee0-4346-b58f-0aa068268c9a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-02 18:47:48", "repo_name": "enmanuelcruzdejesus/PracticaSpringBoot", "sub_path": "/src/main/java/com/example/demo/service/RoleService.java", "file_name": "RoleService.java", "file_ext": "java", "file_size_in_b... | package com.example.demo.service;
import com.example.demo.model.Role;
import com.example.demo.repo.RoleRepo;
import com.example.demo.repo.RoleRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;
@Service
... |
5b11bdc8-94d6-4557-91eb-9d0f6abed835 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-22 10:09:09", "repo_name": "JaggerW/banxing-mini-app", "sub_path": "/src/main/java/com/nju/banxing/demo/mw/redis/BaseRedisKeyPrefix.java", "file_name": "BaseRedisKeyPrefix.java", "file_ext": "java", "file_size... | package com.nju.banxing.demo.mw.redis;
/**
* @Author: jaggerw
* @Description: redisKey前缀基类
* @Date: 2020/11/3
*/
public abstract class BaseRedisKeyPrefix implements RedisKeyPrefix {
private Integer expireSeconds;
private String prefix;
protected BaseRedisKeyPrefix(String prefix){
this.expire... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.