id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
feb8425f-3275-44dd-9b1f-8bc735cb9e5f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-27 02:36:50", "repo_name": "wptqlcrnfma1/jdbc-practices", "sub_path": "/jdbc/src/main/java/mysql/ConnectionTest.java", "file_name": "ConnectionTest.java", "file_ext": "java", "file_size_in_byte": 869, "line_co... | package mysql;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnectionTest {
public static void main(String[] args) {
Connection connection = null;
try {
// 1. JDBC Driver(Mysql) 로딩
Class.forName("org.mariadb.jdbc.Driver");
// 2. 연... |
2b20147a-cf6d-4e1d-aa8a-a36c0224f05c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-07-18T20:14:23", "repo_name": "Stuff-Technologies-Inc/Woocommerce-Functions", "sub_path": "/change-default-wordpress-login.md", "file_name": "change-default-wordpress-login.md", "file_ext": "md", "file_size_i... | # This changes the Wordpress login to match branding.
/* Login Page Editing */
function my_login_logo() { ?>
<style type="text/css">
#login h1 a, .login h1 a {
background-image: url(https://coincards.ca/wp-content/uploads/2018/12/cclogo.png);
height:94px;
... |
4cdde4a4-e71a-448c-a972-1441770638f7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-12 16:58:55", "repo_name": "balu251994/EIS", "sub_path": "/EIS/src/main/java/com/ey/hcp/dao/DocumentDAO.java", "file_name": "DocumentDAO.java", "file_ext": "java", "file_size_in_byte": 823, "line_count": 38, "... | package com.ey.hcp.dao;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import org.apache.chemistry.opencmis.client.api.Folder;
import com.ey.hcp.jpa.Document;
import com.ey.hcp.jpa.Document2;
import com.ey.hcp.jpa.Folders;
public class DocumentDAO {
@Inject
EntityManager em;
... |
95f9c847-9256-42cb-a8d6-987b50ed185b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-12-17 11:54:13", "repo_name": "jaalto/project-emacs--lint-layout", "sub_path": "/test/java/Variables.java", "file_name": "Variables.java", "file_ext": "java", "file_size_in_byte": 824, "line_count": 30, "lang": "... | /**
* JavaLint tests: [code] in method call ....
*
* @author John Doe
* @version 2015.1002
* @since 1.7
*/
class Variables {
/**
* Starts the application.
*
* @param args not used
*/
public static void main(String[] args) {
String avgTemp = ""; // Comment
String count = ""; /... |
a9351a62-26f8-4970-a42f-b05870743193 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-01 13:50:32", "repo_name": "Vito913/VideoGame", "sub_path": "/JavaCode/src/Handler.java", "file_name": "Handler.java", "file_ext": "java", "file_size_in_byte": 824, "line_count": 46, "lang": "en", "doc_type": ... | import java.awt.*;
import java.util.LinkedList;
public class Handler {
LinkedList<GameObject> object = new LinkedList<GameObject>();
public void tick(){ //Update all game objects.
for(int i = 0; i < object.size(); i++){ //For all game objects.
GameObject tempObject = object.get(i); //To... |
ed1212f8-1f54-4d07-afb9-862e19aa59be | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-25 06:49:19", "repo_name": "Exorth98/heroyn-java-libraries", "sub_path": "/Plugins/AH_SurveyV2/src/fr/exorth/events/SurveysMenuInteract.java", "file_name": "SurveysMenuInteract.java", "file_ext": "java", "file... | package fr.exorth.events;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryType.SlotType;
import fr.exorth.surveys.Survey;
import fr.exorth.util.SurveyOpen;
import ... |
4ccc6de1-c7ca-4417-a5ee-32b35a7896bb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-23 05:08:39", "repo_name": "Soongbing/study", "sub_path": "/work-space/Report01/app/src/main/java/com/example/report01/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_by... | package com.example.report01;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... |
03a691c0-d494-4234-a0e9-a8925c556555 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-09 05:39:19", "repo_name": "bobshih/AircraftChatBot", "sub_path": "/app/src/main/java/bob/mhmc/aircraftchatbot/MessageVo.java", "file_name": "MessageVo.java", "file_ext": "java", "file_size_in_byte": 824, "lin... | package bob.mhmc.aircraftchatbot;
/**
* Created by Bob on 2017/5/21.
*/
public class MessageVo {
public static final int To_Server = 0;
public static final int From_Server = 1;
private int direction;
private String content;
private String url;
public MessageVo(int direction, String content) {
super();
t... |
4c6921ce-57c9-448c-a629-577370051e79 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-08 01:44:31", "repo_name": "liutingwangrui/tool", "sub_path": "/app/src/main/java/com/example/administrator/slidetool/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byt... | package com.example.administrator.slidetool;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.example.slide_libray.swipeback.SwipeBackActivity;
public class MainActivity extends SwipeBackActivity {
@Override
protected void onCreate... |
7f7c79d2-0d90-4c8c-a77a-34bd37c7975b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-05-26 19:08:59", "repo_name": "domasmar/os2", "sub_path": "/src/os2/main/resources/descriptors/LoaderPacketDescriptor.java", "file_name": "LoaderPacketDescriptor.java", "file_ext": "java", "file_size_in_byte": 82... | package os2.main.resources.descriptors;
import java.util.ArrayList;
import os2.main.hardware.memory.VMMemory;
import os2.main.resources.descriptors.interfaces.ResourceDescriptorInterface;
/**
*
* @author Arturas
*/
public class LoaderPacketDescriptor implements ResourceDescriptorInterface {
private VMMemory ... |
5b6ebb33-15fc-4697-9c20-d9f3186097f1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-03 12:50:24", "repo_name": "shutup/MyFast4Android", "sub_path": "/app/src/main/java/com/shutup/myfast4android/listview_adapter_demo/ListMenuAdapterUseBasic.java", "file_name": "ListMenuAdapterUseBasic.java", "... | package com.shutup.myfast4android.listview_adapter_demo;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.shutup.myfast4android.R;
import com.shutup.myfast4android.main_menu.Menu;
import java.util.List;
/**
* Created by shutup on 16... |
12f6af6e-0f43-471c-9a0e-4b44617cd552 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-05-22 14:15:30", "repo_name": "elvis9xu163/mol-lite", "sub_path": "/src/test/java/com/xjd/mol/utl/JsonUtilTest.java", "file_name": "JsonUtilTest.java", "file_ext": "java", "file_size_in_byte": 827, "line_count": ... | package com.xjd.mol.utl;
import com.xjd.mol.BaseTest;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
public class JsonUtilTest extends BaseTest {
@Test
public void testToString() throws Exception {
Map<String, String> map = new HashMap<String, String>();
map.put("pwd", "HELLO");
map.... |
26a4df99-1360-4865-a484-e7032d70336f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-27 05:19:49", "repo_name": "ltt19921124/spring_all", "sub_path": "/spring_jdbctemplate_01/src/test/java/com/msb/test/Test1.java", "file_name": "Test1.java", "file_ext": "java", "file_size_in_byte": 825, "line_... | package com.msb.test;
import com.msb.pojo.Emp;
import com.msb.service.EmpService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.util.List;
public class Test1 {
@Test
public void testEmpServ... |
6a62b5af-2ae6-4f27-a825-13d8ed0dacb1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-10-02 03:03:59", "repo_name": "cs2103aug2014-t10-3j/TaskBar", "sub_path": "/src/taskbar/Task.java", "file_name": "Task.java", "file_ext": "java", "file_size_in_byte": 824, "line_count": 41, "lang": "en", "doc_typ... | package taskbar;
public class Task {
public Task(String description, String[] labels, int importance) {
super();
Discription = description;
this.labels = labels;
this.importance = importance;
}
private String Discription;
private boolean isDone;
private String[] labels;
private int importance;
publi... |
b5b762ff-d0e2-4ed6-9cf0-70ea06956b96 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-15 16:19:49", "repo_name": "divprnc/android", "sub_path": "/prg5/src/com/example/prg5/SmsListener.java", "file_name": "SmsListener.java", "file_ext": "java", "file_size_in_byte": 825, "line_count": 31, "lang":... | package com.example.prg5;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsMessage;
public class SmsListener extends BroadcastReceiver{
@Override
public void onReceive(Context context, Intent inte... |
2d61ff68-d953-432f-9187-7ab3efdc4638 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-14 11:00:51", "repo_name": "Madhur215/CollegeBuddy-2.0", "sub_path": "/app/src/main/java/com/example/collegebuddyversion2/ViewModels/AnswersViewModel.java", "file_name": "AnswersViewModel.java", "file_ext": "j... | package com.example.collegebuddyversion2.ViewModels;
import android.app.Application;
import android.app.ListActivity;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import com.example.collegebuddyversion2.Models.Answers;
import com.example.collegeb... |
54539e7c-d1de-434b-8bcf-ddf86a2d0cd6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-09 08:20:00", "repo_name": "shreesha08/Alumni_App", "sub_path": "/alumniapp/gateway.java", "file_name": "gateway.java", "file_ext": "java", "file_size_in_byte": 825, "line_count": 33, "lang": "en", "doc_type":... | package com.example.alumniapp;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class gateway extends AppCompatActivity {
EditText text;
Button button;
Float amont;
... |
1274e80b-cb5a-4f19-9167-dfa52c89e8fd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-10 13:27:38", "repo_name": "bharatraju78/sandbox", "sub_path": "/ActiveManager/src/main/java/com/app/erp/security/SecurityUtil.java", "file_name": "SecurityUtil.java", "file_ext": "java", "file_size_in_byte": ... | package com.app.erp.security;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
public class SecurityUtil {
public static void main(String[] args) ... |
e906d3e4-2326-4ca5-b19a-f4fcbc32e087 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-13 15:48:09", "repo_name": "natakolesnikova/user", "sub_path": "/book-rating-service/src/main/java/com/example/bookratingservice/controller/RatingController.java", "file_name": "RatingController.java", "file_e... | package com.example.bookratingservice.controller;
import com.example.bookratingservice.model.Rating;
import com.example.bookratingservice.model.UserRating;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.ann... |
59de56d0-cd87-4a14-ab79-2b1ab6eb47ec | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-02 15:09:41", "repo_name": "Tenbra/-De-Serialisation", "sub_path": "/src/GenerationSchema.java", "file_name": "GenerationSchema.java", "file_ext": "java", "file_size_in_byte": 824, "line_count": 25, "lang": "e... | import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.SchemaOutputResolver;
import javax.xml.transform.Result;
import javax.xml.transform.stream.StreamResult;
import java.io.File;
import java.io.IOException;
public class GenerationSchema {
public static void main(String[] a... |
1ab88e80-bc0a-483b-a264-34499c2e18fa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-04T10:26:48", "repo_name": "chrisdrifte/crypto-connect", "sub_path": "/packages/errors/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 824, "line_count": 39, "lang": "en", "doc... | # CryptoConnect Errors
```ts
import {
UndocumentedResultError,
CryptoConnectError,
NoCredentialsError,
NotAuthorizedError,
ServerError,
} from "@crypto-connect/errors";
try {
// Do something with Crypto Connect
// ...
} catch (err) {
if (err instanceof CryptoConnectError) {
// All custom errors
... |
4560819d-8a07-46da-9acc-c787d8b07d22 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-01-07 04:35:29", "repo_name": "Aivree/SnippetMatcher", "sub_path": "/main/JavaResults/_javaSnippet13/Source.java", "file_name": "Source.java", "file_ext": "java", "file_size_in_byte": 823, "line_count": 24, "lang... | public MyAdapter(Context context, List<MyObject> objects) extends ArrayAdapter {
super(context, 1, objects);
/* We get the inflator in the constructor */
mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}
@Override
public View getView(int position, View convertView, ViewGro... |
e5ffacc8-e63d-4c58-99fb-23556614c3ad | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-27 05:18:08", "repo_name": "cuiqiqi/SpringBootDemo", "sub_path": "/Spring01/src/main/java/com/taiji/bean/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byte": 982, "line_count": 51, "l... | package com.taiji.bean;
/**
* xml使用构造器的方式建造bean,people类作为User类中的属性使用,调用people中的方法
* 不建议使用构造器的方式创建bean,因为在实例化时会造成资源浪费
* @author Cqq
*/
public class User {
//people类作为User类中的属性使用,调用people中的方法
private People people;
private String type;
public People getPeople() {
return people;
}
public... |
fba73ec7-3bdb-41ae-862d-307a414397a8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-22 18:18:57", "repo_name": "finkmoritz/cardgameframework", "sub_path": "/src/main/java/cgf/internal/rule/RuleArrayList.java", "file_name": "RuleArrayList.java", "file_ext": "java", "file_size_in_byte": 824, "l... | package cgf.internal.rule;
import java.util.ArrayList;
import java.util.Collection;
import cgf.rule.Rule;
public class RuleArrayList extends RuleCollection {
protected ArrayList<Rule> rules = new ArrayList<Rule>();
@Override
protected Collection<Rule> getAllRules() {
return rules;
}
@Overri... |
1e76170f-8b4e-4cb3-be26-08058ac4231d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-04-04T23:08:39", "repo_name": "ucsb-cs48-s20/demo-spring-github-oauth-app", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 826, "line_count": 28, "lang": "en", "doc... | # cs48 s20 demo-spring-github-oauth-app
This code is intended to be a demo of a minimal web app using:
* Spring Boot as the backend
* Thymeleaf templating and server side rendering
* Only Bootstrap and JQuery as front-end frameworks
* Heroku Postgres as backend db
* Simple user management via Github OAuth
* Admin user... |
dda910f6-5be0-4877-9162-9a2bacbc8bac | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-04-20 07:27:33", "repo_name": "YngJian/practice", "sub_path": "/logback/src/main/java/com/example/logback/LogbackApplication.java", "file_name": "LogbackApplication.java", "file_ext": "java", "file_size_in_byte":... | package com.example.logback;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author Administrator
*/
@SpringBootApplication
publi... |
38df46e4-cc36-4df7-8142-d3d7a0d62a35 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-24 17:28:44", "repo_name": "Teddy98122/ProiectDAR-TeodorBranescu", "sub_path": "/src/sample/Eroare.java", "file_name": "Eroare.java", "file_ext": "java", "file_size_in_byte": 824, "line_count": 32, "lang": "en... | package sample;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.stage.Stage;
public class Eroare {
@FXML
private Button button;
private Stage e... |
be2a5ef3-8ac4-4408-a901-63c2e1d9b2c8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-29 03:00:17", "repo_name": "Linklmm/thinkInJava", "sub_path": "/src/main/java/com/typeinfo/HiddenImplementation.java", "file_name": "HiddenImplementation.java", "file_ext": "java", "file_size_in_byte": 919, "l... | package com.typeinfo;
import com.typeinfo.interfacea.A;
import com.typeinfo.packageaccess.HiddenC;
import java.lang.reflect.Method;
public class HiddenImplementation {
public static void main(String[] args) throws Exception{
A a=HiddenC.makeA();
a.f();
System.out.println(a.getClass().getN... |
b959ded5-c00d-4312-8443-4c010d4e3b48 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-29 16:21:27", "repo_name": "QuanTran91/VideoStreamer", "sub_path": "/app/src/main/java/tran/quan/videostreamer/service/fcm/webservice/servicemodel/Camera.java", "file_name": "Camera.java", "file_ext": "java", ... | package tran.quan.videostreamer.service.fcm.webservice.servicemodel;
import com.google.gson.annotations.SerializedName;
import org.parceler.Parcel;
import java.util.UUID;
/**
* Created by myrap_000 on 5/23/2016.
*/
@Parcel
public class Camera
{
@SerializedName("camera_id")
private UUID id;
@Serializ... |
7bbdd9de-7359-4d7d-b272-0fec553c1b19 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-09-16T22:16:26", "repo_name": "mrguyorama/QuoteDB", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 822, "line_count": 33, "lang": "en", "doc_type": "text", "blob_id... | # QuoteDB
This is a small anonymous quote board written in ASP.NET
## Installation
Create a new asp.net app. This will generate the correct binaries required by IIS.
Edit the config file "EDITME" and set up the neccessary connection string and rename to web.config
Copy into wwwroot directory of the asp.net app you ... |
d169c75c-e093-4fe6-a5c2-de778cd56ee1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-16 17:38:10", "repo_name": "flabser/2next", "sub_path": "/src/com/flabser/restful/provider/ObjectMapperProvider.java", "file_name": "ObjectMapperProvider.java", "file_ext": "java", "file_size_in_byte": 823, "l... | package com.flabser.restful.provider;
import javax.ws.rs.ext.ContextResolver;
import javax.ws.rs.ext.Provider;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
@Provider
public class ObjectMa... |
85688ae2-4983-4856-a627-27dcc219f7d5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-15 17:06:30", "repo_name": "davidhamblin/Android-Projects", "sub_path": "/Eggs_Project/app/src/main/java/hamblin/eggs_project/EggReceiver.java", "file_name": "EggReceiver.java", "file_ext": "java", "file_size_... | package hamblin.eggs_project;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class EggReceiver extends BroadcastReceiver {
/**
* Receives MainActivity intent, with eggs and a boolean for making breakfast
* Starts a service with the extras... |
fd588997-011a-4bca-8df0-40e81a8eb47e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-06-13T23:37:23", "repo_name": "quarkusio/quarkus-http", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 823, "line_count": 19, "lang": "en", "doc_type": "text", "blo... | Quarkus HTTP
============
[](https://search.maven.org/artifact/io.quarkus.http/quarkus-http-core)
[
@Proxy(lazy = false)
@Entity // This tells Hibernate to make a table out of this class
public class User {
@Id
@Generat... |
230964b7-8270-40f2-91a1-47a0b6de2300 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-16 11:13:39", "repo_name": "lingfengcoder/springboot-DAEProgrem", "sub_path": "/travel-common/src/main/java/com/travel/common/superHttpCenter/controller/httpResponseBean/Http400.java", "file_name": "Http400.ja... | package com.travel.common.superHttpCenter.controller.httpResponseBean;
public class Http400 {
public int code=400 ;//状态码
public String message="客户端错误";//信息
public Http400(){
}
public Http400(String msg){
this.message=msg;
}
public Http400(int code,String message){
this.co... |
79b43182-e913-491b-9a81-30ea6f6445a4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-02-09 13:17:12", "repo_name": "antonsarov/maven-repo-from-jars", "sub_path": "/MRFJ/src/com/antonsarov/mrfj/model/WizardInput.java", "file_name": "WizardInput.java", "file_ext": "java", "file_size_in_byte": 823, ... | package com.antonsarov.mrfj.model;
import java.io.File;
import java.util.HashSet;
import java.util.Set;
/**
* @author Anton Sarov
*
*/
public class WizardInput {
private static Set<Dependency> dependencies;
private static ProjectRepository repo;
public static Set<Dependency> getDependencies() {
return d... |
2af06532-0a1f-418a-be46-694c0fb3e8fe | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-10T10:01:36", "repo_name": "nassimbg/Problems", "sub_path": "/src/main/java/NextPermutation.java", "file_name": "NextPermutation.java", "file_ext": "java", "file_size_in_byte": 823, "line_count": 35, "lang": "... | import java.util.Arrays;
public class NextPermutation {
public static void nextPermutation(int[] nums) {
for (int i = nums.length - 1; i >= 1; i--) {
if (nums[i] > nums[i -1]) {
int max = i -1;
for (int j = nums.length - 1; j > i -1; j--) {
if (nums[max] < nums... |
90d58892-3297-41cb-9264-9456116ec6b9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-10 04:32:47", "repo_name": "thomazmz/twu-biblioteca-spring", "sub_path": "/src/main/java/com/twu/biblioteca/application/user/UserController.java", "file_name": "UserController.java", "file_ext": "java", "file_... | package com.twu.biblioteca.application.user;
import com.twu.biblioteca.domain.user.InvalidUserCredentialsException;
import com.twu.biblioteca.domain.user.UserService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@RestCont... |
86193b08-550e-4fd7-a534-c74bca3a1f24 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-09-01 06:00:32", "repo_name": "Kelsimm/sd", "sub_path": "/Camera/src/com/example/camera/RegisterActivity.java", "file_name": "RegisterActivity.java", "file_ext": "java", "file_size_in_byte": 832, "line_count": 30... | package com.example.camera;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class RegisterActivity extends Activity {
Button buttonBack = null;
public void onCreate(Bundle ... |
1ae06e4c-2500-4557-910b-cdfcb351bb9a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-15 03:54:20", "repo_name": "rongcloud/server-sdk-java", "sub_path": "/src/main/java/io/rong/models/message/MentionedInfo.java", "file_name": "MentionedInfo.java", "file_ext": "java", "file_size_in_byte": 823, ... | package io.rong.models.message;
/**
*
* @author rongcloud
*/
public class MentionedInfo {
private int type;
private String[] userIds;
private String pushContent;
public MentionedInfo(int type, String[] userIds, String pushContent) {
this.type = type;
this.userIds = userIds;
... |
12617387-1305-4bde-a00a-fc708b66932c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-01 08:58:20", "repo_name": "kimjaneclark/codeclan_working_2019", "sub_path": "/week_12/ClarkCars/src/test/java/ElectricCarTest.java", "file_name": "ElectricCarTest.java", "file_ext": "java", "file_size_in_byte... | import CarTypes.ElectricCar;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class ElectricCarTest {
public ElectricCar electricCar;
@Before
public void setup(){
electricCar= new ElectricCar("BMW", "i3",25000.0, "Black", 150);
}
@Test
... |
1373e023-e5c7-49f0-8250-0db681dabfe4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-29 16:57:34", "repo_name": "EsratEmu/Bachelor_Toolbar", "sub_path": "/app/src/main/java/com/esratemu/bachelortoolbar/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byte... | package com.esratemu.bachelortoolbar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.os.Build;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
Toolbar MainToolbarDefault;
@Override
protected void onCreate(Bundle ... |
1cdf7e20-89eb-4926-ac0f-1061364ecd73 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-08-06 09:52:06", "repo_name": "sonyfe25cp/webtrec2013", "sub_path": "/src/test/java/Ad_hocMainDebug.java", "file_name": "Ad_hocMainDebug.java", "file_ext": "java", "file_size_in_byte": 859, "line_count": 40, "lan... | import java.util.List;
import junit.framework.TestCase;
import lemurproject.indri.ParsedDocument;
import lucene.IndexTopKResults;
import org.junit.Test;
import edu.bit.dlde.utils.DLDELogger;
public class Ad_hocMainDebug extends TestCase {
private DLDELogger logger = new DLDELogger();
@Test
public void testAd_ho... |
8ca31ff0-cd5d-4ea4-9721-802b998fca8d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-16 10:52:53", "repo_name": "ssaran791/OpenDataSearchEngine", "sub_path": "/src/main/java/com/studentsdealz/Utils/UrlUtils.java", "file_name": "UrlUtils.java", "file_ext": "java", "file_size_in_byte": 823, "lin... | package com.studentsdealz.Utils;
import ch.sentric.URL;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
/**
* Created by saran on 8/7/17.
*/
public class UrlUtils {
public static String getNormalisedURL(String orginal_url)
{
String new_url="";
... |
1a321f63-b2dd-4d8f-8603-d40b29ab6430 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-29 14:05:37", "repo_name": "nadavg54/FSCrawler", "sub_path": "/src/main/java/imp/TreeCrawler.java", "file_name": "TreeCrawler.java", "file_ext": "java", "file_size_in_byte": 823, "line_count": 32, "lang": "en"... | package imp;
import abstraction.ITree;
import abstraction.ITreeCrawler;
import imp.worker.RequestData;
import org.apache.log4j.Logger;
import java.util.LinkedList;
import java.util.Queue;
import java.util.function.Consumer;
public class TreeCrawler implements ITreeCrawler {
final static Logger logger = Logger.g... |
9bf34b34-3e63-4bee-971c-1e54c45c3348 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-11 00:23:55", "repo_name": "Sylvia-Olliff/Learn2D", "sub_path": "/app/src/main/java/com/example/titanjc/learn2d/LaserFlash.java", "file_name": "LaserFlash.java", "file_ext": "java", "file_size_in_byte": 823, "... | package com.example.titanjc.learn2d;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Rect;
/**
* Created by TITANJC on 12/16/2016.
*/
public class LaserFlash implements GameObject {
private Rect rectangle;
private AnimationManag... |
9926998c-ed9f-4e7b-bf12-8c0f72346863 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-22 19:16:47", "repo_name": "Harutyun92/final-project", "sub_path": "/src/main/java/pl/sda/finalproject/events/EventForm.java", "file_name": "EventForm.java", "file_ext": "java", "file_size_in_byte": 823, "line... | package pl.sda.finalproject.events;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.time.LocalDate;
@Getter
@Setter
public class EventForm {
@NotBlank
pr... |
84214f7e-50cb-4891-b2cd-4edb377baf39 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-29 19:04:02", "repo_name": "gemini-hlsw/ocs", "sub_path": "/bundle/edu.gemini.catalog/src/main/java/jsky/catalog/URLQueryResult.java", "file_name": "URLQueryResult.java", "file_ext": "java", "file_size_in_byte... | package jsky.catalog;
import java.net.*;
/**
* Represents a query result of some type pointed to by a URL.
*/
public class URLQueryResult implements QueryResult {
/** A URL pointing to the query result */
protected URL url;
/** For FITS tables, the index of the HDU in the FITS file, otherwise -1. */
... |
b80748d9-bad5-4c09-9c78-be2e71c17dd1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-27 13:33:14", "repo_name": "soleiana/minibank", "sub_path": "/src/test/java/com/minibank/testutil/repositories/TestCustomerRepositoryTest.java", "file_name": "TestCustomerRepositoryTest.java", "file_ext": "jav... | package com.minibank.testutil.repositories;
import com.minibank.SpringContextTest;
import com.minibank.core.fixtures.CustomerFixture;
import com.minibank.core.model.Customer;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import static org.junit.Assert.a... |
ac7ae321-c66a-4bf9-9a3e-b24352eb70bf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-11 17:59:21", "repo_name": "seshukalvakuri/java-programs", "sub_path": "/AbstractClassesDemo/src/AbstractClasses/LocalContractEmployee.java", "file_name": "LocalContractEmployee.java", "file_ext": "java", "fil... | /*
* 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 AbstractClasses;
/**
*
* @author Kalvakuri,Lakshmi Seshu
*/
public class LocalContractEmployee extends contractEmployee {
... |
ee8cd3d1-ce1a-402a-963a-43042e675150 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-04-22T18:14:00", "repo_name": "ShreyaHolla/ATM-virtual-machine", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 823, "line_count": 22, "lang": "en", "doc_type": "te... | # ATM-virtual-machine
this machine is made using c++.
This machine has 5 main fucntions:
1)Creating a new account.
2)Depositing an amount into your account.
3)Withdrawing an amount from your account.
4)Transfering an amount from your account.
5)Checking the balance in your account.
The atm machine provides secur... |
4f0e268c-d796-4e1d-8c1f-28fdab4308a4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-08 08:47:43", "repo_name": "blastlab/indoornavi-backend", "sub_path": "/src/test/java/co/blastlab/indoornavi/rest/facade/util/violation/ViolationMatcher.java", "file_name": "ViolationMatcher.java", "file_ext":... | package co.blastlab.indoornavi.rest.facade.util.violation;
import org.hamcrest.CustomMatcher;
import java.util.Arrays;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.instanceOf;
public class ViolationMatcher {
public static CustomMatcher<SpecificViolation> validViolation(... |
46d0ddce-7db6-4586-bfe5-22690d4a96e1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-26 09:31:54", "repo_name": "lijun4311/myFood", "sub_path": "/service/src/main/java/com/mhs66/service/impl/ItemsImgServiceImpl.java", "file_name": "ItemsImgServiceImpl.java", "file_ext": "java", "file_size_in_b... | package com.mhs66.service.impl;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.mhs66.enums.BusinessStatus;
import com.mhs66.mapper.ItemsImgMapper;
import com.mhs66.pojo.ItemsImg;
import com.mhs66.service.IItemsImgService;
import org.springframework.stereotype.Service;
/**
* <p>
* 商品图片 服务实现类
* <... |
f4869c5f-ca98-4662-a3f4-8428d0fceb26 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-08-29T07:57:55", "repo_name": "Gigaspaces/xap-docs", "sub_path": "/site-hugo/content/xap/12.3/dev-dotnet/space-based-remoting-overview.markdown", "file_name": "space-based-remoting-overview.markdown", "file_e... | ---
type: post123
title: Space-Based Remoting
categories: XAP123NET, PRM
parent: none
weight: 1300
canonical: auto
---
Remoting allows you to use remote invocations of POJO services, with the Space as the transport layer. For each option, you have to define the contract between the client and server, provide an impl... |
964e207e-a47a-4387-b003-272415940c4e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-11 00:54:41", "repo_name": "SofiaIriarte/TIC-I", "sub_path": "/EjemplosPrevios/BDD/jpa-hibernate/src/main/java/edu/um/database/examples/AppHibernateJPA.java", "file_name": "AppHibernateJPA.java", "file_ext": "... | package edu.um.database.examples;
import java.util.Date;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.Query;
public class AppHibernateJPA {
public static void main(String[] args) {
EntityManagerFactory emf =
... |
c13f1980-d48a-42ee-9a46-d03dfe28cd19 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-04 00:00:38", "repo_name": "cwpark2193/Java_Study", "sub_path": "/javaProject/java project/chapter18/chapter18/url/URILConnection.java", "file_name": "URILConnection.java", "file_ext": "java", "file_size_in_by... | package chapter18.url;
import java.io.IOException;
import java.io.*;
import java.net.URL;
import java.net.URLConnection;
public class URILConnection {
public static void main(String[] args) throws IOException {
//1. File file=new File("index.html")
URL url=new URL("http://www.google.com:80/index.html");
//2. ... |
f170b4d3-ebf4-41b9-b688-c90158f27146 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-11 05:24:20", "repo_name": "kyhoolee/Triechecker", "sub_path": "/src/main/java/com/flakks/spelling/SpecialRule.java", "file_name": "SpecialRule.java", "file_ext": "java", "file_size_in_byte": 823, "line_count"... | package com.flakks.spelling;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class SpecialRule {
public static String deduplicates(String origin) {
String result = "";
List<Set<Character>> table = new ArrayList<>();
Set<Character> current = new Has... |
0280444e-fa2e-40f2-a2de-c132aec57f56 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-14 01:42:24", "repo_name": "Last-Mile-Delivery-Team/LastMileProto", "sub_path": "/LastMileProto/app/src/main/java/com/lastmile/lastmileproto/courier/CourierActivity.java", "file_name": "CourierActivity.java", ... | package com.lastmile.lastmileproto.courier;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import com.lastmile.lastmileproto.R;
import com.lastmile.lastmileproto.login.CourierLogin;
public class CourierActivity extends AppCompa... |
8f998f2e-c5ba-4c86-8d01-f2a0b165aeda | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-10 01:05:25", "repo_name": "K2bookmage/FRC2020_robot", "sub_path": "/src/main/java/frc/robot/subsystems/Intake.java", "file_name": "Intake.java", "file_ext": "java", "file_size_in_byte": 822, "line_count": 34,... | package frc.robot.subsystems;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
public class Intake extends SubsystemBase {
public static final double INTAKE_IN_SPEED = 1;
public static final double INTAKE_OUT_SPEED = -.3;
private final Solenoid solenoid;
private final WPI_VictorSPX victor;
... |
117eed58-1165-4816-ac9a-fc009cdfb13d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-15 06:36:37", "repo_name": "Junh-b/spring-data-jpa-example", "sub_path": "/src/main/java/net/junhabaek/spring_data_jpa_example/persistence/domain/Article.java", "file_name": "Article.java", "file_ext": "java",... | package net.junhabaek.spring_data_jpa_example.persistence.domain;
import lombok.*;
import org.springframework.data.domain.AbstractAggregateRoot;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
@Builder @Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED) @AllArgsConstruct... |
03030a8a-a22e-4781-8607-991df5d6c236 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-30 00:26:52", "repo_name": "yaoReadingCode/jetbrains-open-in-git-host", "sub_path": "/tests/unit/uk/co/ben_gibson/open/in/git/host/test/Git/FileTest.java", "file_name": "FileTest.java", "file_ext": "java", "fi... | package uk.co.ben_gibson.open.in.git.host.test.Git;
import com.intellij.openapi.vfs.VirtualFile;
import junit.framework.TestCase;
import uk.co.ben_gibson.open.in.git.host.Git.File;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
public class FileTest extends TestCase
{
public void ... |
1afd8e77-0b99-433f-8391-5f0158280ec4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-23 07:00:01", "repo_name": "royyoung388/Mark", "sub_path": "/app/src/main/java/com/roy/mark/receiver/ClockAlarmReciver.java", "file_name": "ClockAlarmReciver.java", "file_ext": "java", "file_size_in_byte": 833... | package com.roy.mark.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Vibrator;
import com.roy.mark.activity.clock.ClockActivity;
/**
* Created by Administrator on 2017/7/21.
*/
public class Cloc... |
2a9ef96d-1d44-4446-a613-ed63306783d6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-26 16:30:19", "repo_name": "wym777/gmall_DW", "sub_path": "/logger/src/main/java/com/gmall/logger/controller/LogJsonController.java", "file_name": "LogJsonController.java", "file_ext": "java", "file_size_in_by... | package com.gmall.logger.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestCon... |
07333bcf-5fd0-4217-aa10-6c2024f80307 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-18 01:30:46", "repo_name": "verygoodwlk/shop1909", "sub_path": "/shop_web/shop_search/src/main/java/com/qf/controller/SearchController.java", "file_name": "SearchController.java", "file_ext": "java", "file_siz... | package com.qf.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.qf.entity.Goods;
import com.qf.service.ISearchService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import java.util.List... |
554be098-69b8-4b90-84ce-8d71be683617 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-17 13:10:57", "repo_name": "HeathChang/Acorn_class", "sub_path": "/Projects/ShopMiniMall/src/com/service/GoodsService.java", "file_name": "GoodsService.java", "file_ext": "java", "file_size_in_byte": 823, "lin... | package com.service;
import java.util.HashMap;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import com.config.MySqlSessionFactory;
import com.dao.GoodsDAO;
import com.dto.GoodsDTO;
public class GoodsService {
public List<GoodsDTO> goodsList(String category) {
SqlSession session = MySqlSe... |
2eba104d-c3df-4b9d-8d83-e279a2361b38 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-21 04:05:54", "repo_name": "YLLQQ/self", "sub_path": "/boot/src/main/java/org/yang/boot/scanner/MyBeanClassPathDefinitionScanner.java", "file_name": "MyBeanClassPathDefinitionScanner.java", "file_ext": "java",... | package org.yang.boot.scanner;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ClassPathBeanDefinitionScanner;
import org.springframework.core.type.filter.AnnotationTypeFilter;
import java.lang.annotation.Annotation;
/**
* org.yang.boot.scanner.... |
98facb25-f15a-446e-893d-c6e955f7f2ae | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-15 07:36:55", "repo_name": "gpnine/java-study", "sub_path": "/web/src/main/java/com/project/entity/Student.java", "file_name": "Student.java", "file_ext": "java", "file_size_in_byte": 825, "line_count": 52, "l... | package com.project.entity;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
/**
* web .
*
* @description: .
* @author: Chenglin Zhu .
* @date: 19-8-30 .
*/
public class Student {
private Integer age;
private String name;
public Student(Integer age, String... |
08538c4e-97ce-4d01-bf40-1104cd6b676b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-10-08T02:06:01", "repo_name": "rishithareddye/clipboard", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 824, "line_count": 30, "lang": "en", "doc_type": "text", "b... | # clipboard
Pure Jquery based personal clipboard to share content easily
# setup
Works as a pure browser solution, does not require web hosting.
Can be used as a whole. But can create your own firebase database and change the below code with your firebase config
```javascript
var config = {
apiKey: "AIz... |
99fdb375-aa0c-4ae8-b685-07aae456ab97 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-10 14:14:08", "repo_name": "arashyousefi/Bozorg", "sub_path": "/src/bozorg/common/objects/EventHandler.java", "file_name": "EventHandler.java", "file_ext": "java", "file_size_in_byte": 823, "line_count": 41, "... | package bozorg.common.objects;
import java.io.Serializable;
import java.util.ArrayList;
import bozorg.common.exceptions.BozorgExceptionBase;
@SuppressWarnings("serial")
public class EventHandler implements Serializable {
private ArrayList<Event> events = new ArrayList<>();
public EventHandler() {
}
public voi... |
5d71515f-d7a3-41f0-8b7f-62c94a7a4e31 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-06 05:05:12", "repo_name": "hisouske/NetworkingExample", "sub_path": "/New Server/src/com/cj4dplex/test/udpfunction/UpdateClientList.java", "file_name": "UpdateClientList.java", "file_ext": "java", "file_size_... | package com.cj4dplex.test.udpfunction;
import javax.swing.JTextArea;
import com.cj4dplex.test.udpserver.UdpResource;
public class UpdateClientList {
JTextArea userArea = null;
private volatile static UpdateClientList updateClientList = null;
public static final UpdateClientList getInstance() {
if (null == up... |
39396f23-1fdd-4a4d-abe8-c553f2cc6eb5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-10-17 16:08:05", "repo_name": "s4553711/HiDeployUtil", "sub_path": "/HiDeployUtil/src/com/ck/util/Runner.java", "file_name": "Runner.java", "file_ext": "java", "file_size_in_byte": 823, "line_count": 24, "lang": ... | package com.ck.util;
import java.util.Map;
import com.ck.analyzer.AppAnalyze;
import com.ck.analyzer.AppScanner;
public class Runner {
public static void main(String[] args) {
System.out.println("Log> Start");
String[] hosts = ConfigHelper.getProperty("cluster").split(":");
for(String host : host... |
48099140-0048-40c5-b73e-31863a988717 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-30 06:54:03", "repo_name": "AaronW-BE/remote-desktop-control-java", "sub_path": "/src/main/java/server/ServerSocketChannel.java", "file_name": "ServerSocketChannel.java", "file_ext": "java", "file_size_in_byte... | package server;
import io.netty.channel.*;
import pojo.Message;
import java.awt.*;
import java.io.IOException;
public class ServerSocketChannel extends ChannelHandlerAdapter {
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { // (4)
// 当出现异常就关闭连接
cause.printS... |
5e30a2a3-770a-4f6b-8f26-d13aba10fdea | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-07-25T18:24:46", "repo_name": "dafuallah96/Hotel-Booking", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 823, "line_count": 20, "lang": "en", "doc_type": "text", "... | <h1 align="center">Hotel Booking Buddy</h1>
Android Folder: https://drive.google.com/file/d/1qIMiXWe1Kgi3zs2rhHksprSKwRzWRVRn/view?usp=sharing
Task: https://docs.google.com/spreadsheets/d/1ttzdAriECfP_GCgdvBQaUTXPZRq_rHUV1VsddAMLbVo/edit?usp=sharing
## Requirements
* [`npm`](https://www.npmjs.com/get-npm)
* [`react... |
ed8133e9-38a3-4f1c-b58f-7d5fc9b26f75 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-01-26 10:48:20", "repo_name": "Gogeta05/Freezer", "sub_path": "/Project/app/utils/Util.java", "file_name": "Util.java", "file_ext": "java", "file_size_in_byte": 822, "line_count": 31, "lang": "en", "doc_type": "c... | package utils;
import models.User;
import org.jasypt.util.password.ConfigurablePasswordEncryptor;
import play.db.ebean.Model;
import play.mvc.Controller;
import play.mvc.Http;
import com.avaje.ebean.Expr;
import com.ning.http.client.Request;
public final class Util {
/* paths */
static public String url_LiftXls =... |
24e3ec79-f118-4311-adaf-7d53bbc46365 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-14 18:44:58", "repo_name": "MehOkay/CS213-Projects", "sub_path": "/Chess38/src/Chess/Piece.java", "file_name": "Piece.java", "file_ext": "java", "file_size_in_byte": 824, "line_count": 30, "lang": "en", "doc_t... | package Chess;
/**
* Piece is an abstract class that all the chess pieces will extend.
* @author Wesley Cheung
* @author Dennis Yu
*
*/
public abstract class Piece {
public String type;
public char team;
public abstract char getTeam();
public abstract String getType();
/**
* Each subclass... |
21896366-be4d-4fde-ae1f-41f9d6ebf320 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-12 18:11:32", "repo_name": "kitoguimaraes/LabFour", "sub_path": "/IDCard.java", "file_name": "IDCard.java", "file_ext": "java", "file_size_in_byte": 823, "line_count": 39, "lang": "en", "doc_type": "code", "bl... | public class IDCard extends Card {
private String idNumber;
public IDCard(String n, String id) {
super(n);
idNumber = id;
}
public String format() {
//System.out.println(super.format());
return super.format() + "ID Number: " + idNumber;
}
public String getIDnumber() {
... |
105d161c-09c6-49cb-9af0-6dcac7a34b75 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-16 14:58:00", "repo_name": "edzio94/Crawler", "sub_path": "/src/main/java/mainpackage/databases/TransactionManager.java", "file_name": "TransactionManager.java", "file_ext": "java", "file_size_in_byte": 823, "... | package mainpackage.databases;
import mainpackage.datas.DataHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
/**
* Cr... |
9761ec87-f8aa-4f13-992d-369fba799be6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-23 10:16:28", "repo_name": "fengerhu1/web_bookstore", "sub_path": "/backend/src/main/java/sample/MongoUsers.java", "file_name": "MongoUsers.java", "file_ext": "java", "file_size_in_byte": 823, "line_count": 39... | package sample;
import org.springframework.data.mongodb.core.mapping.Document;
@Document(collection="users")
public class MongoUsers {
private String name;
private int age;
private String pic;
public MongoUsers() {
}
public MongoUsers(String name, String pic) {
this.name = name;
... |
49ece1de-78be-4805-97a4-22fc28cfe6a9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-22 16:51:46", "repo_name": "buddddddy/test_repository", "sub_path": "/src/main/java/org/mdlp/basestate/data/DocumentTypeEnum.java", "file_name": "DocumentTypeEnum.java", "file_ext": "java", "file_size_in_byte"... | package org.mdlp.basestate.data;
/**
* Short description text.
* <p>
* Long detailed description text for the specific class file.
*
* @author SSukhanov
* @version 23.05.2017
* @package org.mdlp.basestate.data
*/
public enum DocumentTypeEnum {
CHEQUE(1),
BSO(2),
AGREEMENT(3),
OTHER(4);
pr... |
19791be8-1483-4f8a-b39f-b06819f2f768 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-19 11:47:17", "repo_name": "alvetab/Led_Matrix", "sub_path": "/app/src/main/java/com/example/appled/parsejson.java", "file_name": "parsejson.java", "file_ext": "java", "file_size_in_byte": 823, "line_count": 2... | package com.example.appled;
public class parsejson {
public static native byte[] nativeParseBin(byte[] bArr, int i);
static {
//System.load("C:/Users/hector/IdeaProjects/datagram/lib/libSDL2.so");
//System.load("C:/Users/hector/IdeaProjects/datagram/lib/libSDL2_ttf.so");
System.load("C... |
62323138-d842-45e8-a7b2-66bcbbed376a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-07 09:57:22", "repo_name": "davidleiti/Toy-Language-Interpreter", "sub_path": "/src/model/statements/WhileStatement.java", "file_name": "WhileStatement.java", "file_ext": "java", "file_size_in_byte": 823, "lin... | package model.statements;
import containers.MyIDictionary;
import containers.IHeap;
import model.PrgState;
import model.expressions.Expression;
public class WhileStatement implements Statement {
private Expression expr;
private Statement stmt;
public WhileStatement(Expression expr, Statement stmt) {
... |
8eeb67cb-fa40-49ae-a062-1d17dd1d60c8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-25 02:22:19", "repo_name": "yinyuxuan2016/springmvc", "sub_path": "/src/main/java/org/emall/cn/common/jmx/HelloAgent.java", "file_name": "HelloAgent.java", "file_ext": "java", "file_size_in_byte": 823, "line_c... | package org.emall.cn.common.jmx;
import javax.management.MBeanServer;
import javax.management.MBeanServerFactory;
import javax.management.ObjectName;
/**
* @Description
* @Author <a href="mailto:dongbiaozheng@ebnew.com">zhengdb</a>
* @Date 2017/1/22
*/
public class HelloAgent {
public static void main(String[]... |
53f1f6ca-ac39-4460-855c-b28cdd4c3780 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-26 20:58:17", "repo_name": "fustesr/floatingimage", "sub_path": "/app/src/main/java/dk/nindroid/rss/menu/WallpaperSettings.java", "file_name": "WallpaperSettings.java", "file_ext": "java", "file_size_in_byte":... | package dk.nindroid.rss.menu;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import dk.nindroid.rss.R;
public class WallpaperSettings extends PreferenceActivity
implements SharedPreferences.OnSharedPreferenceChangeListener {
public static ... |
fa6559f8-1f5e-478c-84e0-4a01abe520b4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-06-02T13:16:38", "repo_name": "vivekbhalla/BasicInstantMessenger", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 823, "line_count": 21, "lang": "en", "doc_type": "... | BasicInstantMessenger
=====================
A simple 1 to 1 Instant Messaging Application in Java
Swing API was used for the GUI.
The server needs to be started at one end and the client at another. These two will be used for communication.
It does not support multiple clients at the moment.
The client needs to be ... |
217f9feb-1d99-4fc8-a775-a6dce4974db9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-23 09:29:43", "repo_name": "sunilreddyg/22nd_Aug_10-30_2019", "sub_path": "/Project_172/src/pageobjects/PageFactory/Using_Super_Constructor/Run_Facebook_Signup.java", "file_name": "Run_Facebook_Signup.java", "... | package pageobjects.PageFactory.Using_Super_Constructor;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.PageFactory;
public class Run_Facebook_Signup
{
public static void main(String[] args) ... |
b059b3b6-645d-4ae0-847c-aff48718f4f9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-16 11:07:56", "repo_name": "guleidamu/febs_self", "sub_path": "/febs-server/febs-server-test/src/main/java/com/damu/febs/server/test/bySelf/jvm/StackAllocation.java", "file_name": "StackAllocation.java", "file... | package com.damu.febs.server.test.bySelf.jvm;
/**
* @ Author :damu
* @ Date :Created in 19:21 2021/7/15
* @ Modified By:
* @Version: 1.0.0
*
* 栈上分配测试
*
* 栈上分配测试
* -Xmx1G -Xms1G -XX:-DoEscapeAnalysis -XX:+PrintGCDetails
*/
public class StackAllocation {
public static void main(String[] args) {... |
faf0d7df-9016-4963-abef-f9aceadd1f8c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-11 00:20:16", "repo_name": "Mauro-Galeano/ProgramacionConcurrente", "sub_path": "/TP6Concurrente/src/Punto7/Empaquetador.java", "file_name": "Empaquetador.java", "file_ext": "java", "file_size_in_byte": 824, "... | /*
* 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 Punto7;
/**
*
* @author carme
*/
public class Empaquetador implements Runnable{
private Cinta cinta;
p... |
f938b266-9d02-4640-a001-0694028bab93 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-01-11 22:57:52", "repo_name": "TRex22/OldCodeArchive", "sub_path": "/SchoolWork/2010/IT10_2010/Page 135 Exercise 4 Number 4/myCommission/Commission.java", "file_name": "Commission.java", "file_ext": "java", "file... | package myCommission;
import java.text.DecimalFormat;
import javax.swing.JOptionPane;
public class Commission {
/**
* Salesman is paid commission as follows:
* sales(R) Commission
* 0-500 2% of sales
* 501-5000 5% of sales
* 5001+ 8% of sales
* Input sales
* Calculate commiss... |
198f9a89-816a-46db-b65d-2cd28e24223f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-05-23 07:05:51", "repo_name": "politrons/reactive", "sub_path": "/src/test/java/utils/PojoTest.java", "file_name": "PojoTest.java", "file_ext": "java", "file_size_in_byte": 822, "line_count": 29, "lang": "en", "d... | package utils;
import nl.jqno.equalsverifier.EqualsVerifier;
import nl.jqno.equalsverifier.Warning;
import org.junit.Test;
import org.meanbean.test.BeanTester;
import org.reflections.Reflections;
import java.util.Set;
/**
* Created by pabloperezgarcia on 02/04/2017.
*/
public class PojoTest {
@Test
public... |
02410f69-57cf-44e7-a24e-8375f7f41e14 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-17 02:02:30", "repo_name": "rafaellarosa07/votacao-challenge", "sub_path": "/src/main/java/com/br/desafio/votacao/domain/AssociadoSessao.java", "file_name": "AssociadoSessao.java", "file_ext": "java", "file_si... | package com.br.desafio.votacao.domain;
import com.br.desafio.votacao.domain.enuns.VotoEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstruc... |
33284a4b-6ace-4407-a36c-e212717c2a50 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-20 13:19:30", "repo_name": "cht123456abc/snake", "sub_path": "/src/main/java/Applicaiton.java", "file_name": "Applicaiton.java", "file_ext": "java", "file_size_in_byte": 868, "line_count": 34, "lang": "en", "d... | import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
public class Applicaiton {
public static void main(String[] args) {
final Map GAME = Map.createInstance();
// 用一个额外线程接受键盘输入
new Thread(new Runnable() {
public void run() {
// 设置键盘监听器
... |
7b6cdc42-844e-49f1-9917-bd29dc516129 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-29 23:32:52", "repo_name": "lampkin1988/SyntaxTech", "sub_path": "/class13/Dog.java", "file_name": "Dog.java", "file_ext": "java", "file_size_in_byte": 823, "line_count": 62, "lang": "en", "doc_type": "code", ... | package com.syntax.class13;
public class Dog {
public static void main(String[] args) {
//Dog
/*Write some of the attributes that a dog can have*/
Dog dog=new Dog();
String breed;
String color;
int age;
String color1;
String name;
... |
8c312193-03ee-4bd2-a919-17974cdf7519 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-11-06 22:40:25", "repo_name": "RyanDur/Java-class", "sub_path": "/day_16/mkdir/src/test/java/TestMakeDir.java", "file_name": "TestMakeDir.java", "file_ext": "java", "file_size_in_byte": 822, "line_count": 34, "la... | import org.junit.*;
import java.io.*;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import org.junit.contrib.java.lang.system.*;
import static org.junit.contrib.java.lang.system.TextFromStandardInputStream.*;
public class TestMakeDir {
MakeDir md;
File file;
@Rule
public... |
a5fe7d51-68fc-4173-9839-6cceae49d615 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-04 16:47:01", "repo_name": "zhangwq0312/admin", "sub_path": "/src/com/shengxi/dao/IAccountDao.java", "file_name": "IAccountDao.java", "file_ext": "java", "file_size_in_byte": 823, "line_count": 32, "lang": "en... | package com.shengxi.dao;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.shengxi.common.dao.BaseDaoImpl;
import com.shengxi.common.dao.IBaseDao;
import com.shengxi.model.IAccount;
import com.shengxi.model.Operator;
@Repository("iaccountDao"... |
a1a9b906-5ef8-4bbf-86ae-8f550ffeb28d | {"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/103/632.java", "file_name": "632.java", "file_ext": "java", "file_size_in_byte": 823, "line_count": 4... | package <missing>;
public class GlobalMembers
{
public static int Main()
{
String a = new String(new char[1001]);
int n;
int i;
n = 1;
String tempVar = ConsoleInput.scanfRead();
if (tempVar != null)
{
a = tempVar.charAt(0);
}
if ((a.charAt(0) > 96) && (a.charAt(0) < 123))
{
a = tangible.StringFunctions... |
e4a71d5b-4d5b-46df-b3ae-aa6417ba52a4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-09-13 08:03:38", "repo_name": "charite/jannovar", "sub_path": "/jannovar-core/src/test/java/de/charite/compbio/jannovar/mendel/GenotypeCallsBuilderTest.java", "file_name": "GenotypeCallsBuilderTest.java", "file_e... | package de.charite.compbio.jannovar.mendel;
import com.google.common.collect.ImmutableList;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class GenotypeCallsBuilderTest {
@BeforeEach
public void setUp() throws Exception {
}
@Test
pub... |
2296fdd5-125a-4e25-b6fa-9e7021aa1e67 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-18 06:20:53", "repo_name": "VasilPanovski/Java", "sub_path": "/JavaSE/JavaOOP/Interfaces/MilitaryElite/classes/SpyImpl.java", "file_name": "SpyImpl.java", "file_ext": "java", "file_size_in_byte": 823, "line_co... | package pr8_MilitaryElite.classes;
import pr8_MilitaryElite.Interfaces.Spy;
/**
* Created by mm on 12.7.2016 г..
*/
public class SpyImpl extends SoldierImpl implements Spy {
private String codeNumber;
public SpyImpl(String id, String firstName, String lastName, String codeNumber) {
super(id, firstN... |
b8ed682d-696c-4631-ac8d-c56cf97d4a78 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-04 18:21:43", "repo_name": "rinighosh07/Rmg", "sub_path": "/RmgYantraApplication/src/test/java/BDD/Put.java", "file_name": "Put.java", "file_ext": "java", "file_size_in_byte": 827, "line_count": 42, "lang": "e... | package BDD;
import static io.restassured.RestAssured.*;
import org.json.simple.JSONObject;
import org.junit.Assert;
import org.testng.annotations.Test;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import io.restassured.response.Response;
import io.restassured.specification.RequestSpecif... |
9d81dc72-492b-4077-b7e0-7f6ce7879aee | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-30 14:07:16", "repo_name": "sujl95/javaPractice", "sub_path": "/javaPractice/src/kr/javaPractice/GodOfJava/ETC/PrintlnTest.java", "file_name": "PrintlnTest.java", "file_ext": "java", "file_size_in_byte": 830, ... | package kr.javaPractice.GodOfJava.ETC;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.util.logging.Logger;
public class PrintlnTest {
static final Logger logger = Logger.getLogger(PrintlnTest.class.getName());
public static void main(String[] args) throws Exception {
long st... |
1b9ab74a-04e7-4208-bcbb-4adfbf5469fa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-15 16:19:03", "repo_name": "NoCtrlZ1110/TowerDefense", "sub_path": "/src/TowerDefense/GameOverScreen.java", "file_name": "GameOverScreen.java", "file_ext": "java", "file_size_in_byte": 822, "line_count": 24, "... | package TowerDefense;
import javafx.scene.Cursor;
import static TowerDefense.GameField.layout;
import static TowerDefense.GameField.stopGame;
import static TowerDefense.PauseScreen.pauseBlack;
import static TowerDefense.Sound.playGameOverSound;
public class GameOverScreen {
private static ImageObject gameOver = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.