id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
77dd4d00-3989-48c2-956f-f7362f3f1fe4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-23 10:13:15", "repo_name": "macrock777/SBcom", "sub_path": "/src/main/java/com/mudra/mboss/master/restcontroller/ClientGroupmasterRestcontroller.java", "file_name": "ClientGroupmasterRestcontroller.java", "fil... | package com.mudra.mboss.master.restcontroller;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.an... |
e2e6a257-de48-43f0-a3f2-ba7b30f59c68 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-12-19 01:08:11", "repo_name": "bountin/oop", "sub_path": "/Aufgabe5/TestString.java", "file_name": "TestString.java", "file_ext": "java", "file_size_in_byte": 992, "line_count": 47, "lang": "en", "doc_type": "cod... | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Johannes Wawerda <johannes.wawerda@student.tuwien.ac.at>
*/
public class TestString implements Shorter<TestString> {
private String s;
public TestString(String s) {
this.s = s;
}... |
3fa31c1b-0086-4524-a2c5-e69ae501e59d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-10 18:01:09", "repo_name": "FrankieCamelCase/CucumberProject", "sub_path": "/src/test/java/com/libraryapp/utils/TakeScreenShot.java", "file_name": "TakeScreenShot.java", "file_ext": "java", "file_size_in_byte"... | package com.libraryapp.utils;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class TakeScreenShot {
/** Take screen shot *... |
14b82d1a-4d37-49f0-9e6c-e9cc83e1c551 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-16 17:04:30", "repo_name": "sahil085/IskconGhaziabad", "sub_path": "/src/main/java/iskcongzb/dao/DaoClasses/UserLoginDaoImp.java", "file_name": "UserLoginDaoImp.java", "file_ext": "java", "file_size_in_byte": ... | package iskcongzb.dao.DaoClasses;
import iskcongzb.dao.DaoInterfaces.UserLoginDao;
import iskcongzb.domain.User;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;... |
352ee383-3d31-4542-97c9-05e8d69419e5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-25 23:03:38", "repo_name": "wagnerwave/Dossier_Hacking_de_peluche", "sub_path": "/Application_code_source/eMybaby/sources/androidx/core/content/SharedPreferencesCompat.java", "file_name": "SharedPreferencesCom... | package androidx.core.content;
import android.content.SharedPreferences;
import androidx.annotation.NonNull;
@Deprecated
public final class SharedPreferencesCompat {
@Deprecated
public static final class EditorCompat {
public static EditorCompat sInstance;
public final Helper mHelper = new He... |
bfc31f97-2624-4b9b-8297-9d8b26639317 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-15 04:15:51", "repo_name": "ccppjj1981/java_web_git_test", "sub_path": "/src/main/java/com/netease/NoodlesServlet.java", "file_name": "NoodlesServlet.java", "file_ext": "java", "file_size_in_byte": 991, "line_... | package com.netease;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.netease.Kitchen;
import org.apache.lo... |
18bdc694-6d85-436e-a38d-24ba13921b49 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-10-04 04:45:15", "repo_name": "Stealth2800/SimplePromoter", "sub_path": "/src/main/java/com/stealthyone/mcb/simplepromoter/UpdateCheckRunnable.java", "file_name": "UpdateCheckRunnable.java", "file_ext": "java", "... | package com.stealthyone.mcb.simplepromoter;
import com.stealthyone.mcb.simplepromoter.SimplePromoter.Log;
import com.stealthyone.mcb.simplepromoter.config.ConfigHelper;
public final class UpdateCheckRunnable implements Runnable {
private SimplePromoter plugin;
public UpdateCheckRunnable(SimplePromoter plugin) ... |
537d71a8-bb61-4a60-9d51-c946fc346b6b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-26 08:25:08", "repo_name": "blueshen/pomelo-rpc", "sub_path": "/pomelo-examples/src/main/java/cn/shenyanchao/pomelo/rpc/demo/entity/RpcUser.java", "file_name": "RpcUser.java", "file_ext": "java", "file_size_in... | package cn.shenyanchao.pomelo.rpc.demo.entity;
import java.io.Serializable;
/**
* @author shenyanchao
*/
public class RpcUser implements Serializable {
private static final long serialVersionUID = -467668234191746603L;
private String name;
private String age;
/**
* @return the name
*/
... |
b90c7bde-96c8-4228-bc53-d5b5f3135a9c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-08-17 22:42:42", "repo_name": "sutromedia/android-travel-guide", "sub_path": "/android-app-core/src/com/sutromedia/android/core/NavigationRoot.java", "file_name": "NavigationRoot.java", "file_ext": "java", "file_... | package com.sutromedia.android.core;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import com.sutromedia.android.lib.app.INavigationEntry;
public class NavigationRoot extends NavigationBase {
public NavigationRoot() {
}
public void onForceReloadView(Activity ... |
2a4436a7-9138-4bff-8b71-e83c9d3324cc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-21 14:13:21", "repo_name": "hardenikhil/Selenium_Nikhil", "sub_path": "/src/practicedemo/Disabledevmode.java", "file_name": "Disabledevmode.java", "file_ext": "java", "file_size_in_byte": 992, "line_count": 41... | package practicedemo;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeTest;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.testng.annotations.AfterTest;
public clas... |
1c3f9d67-79af-4f46-873d-dccdbba15d3f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-14 08:02:48", "repo_name": "fajingyin/generate-code", "sub_path": "/src/main/java/com/yin/code/generator/GeneratorMain.java", "file_name": "GeneratorMain.java", "file_ext": "java", "file_size_in_byte": 1070, "... | package com.yin.code.generator;
import cn.hutool.core.util.StrUtil;
import cn.org.rapid_framework.generator.GeneratorFacade;
import cn.org.rapid_framework.generator.GeneratorProperties;
import org.h2.util.StringUtils;
import java.io.IOException;
/**
* @author yin
* @since 2021/1/3 22:44
*/
public class GeneratorM... |
41e7bf20-2855-4d50-88c0-e1926fa2666c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-16 18:17:49", "repo_name": "Java-19/16_03_18", "sub_path": "/app/src/main/java/com/sheygam/java_19_16_03_18/NameActivity.java", "file_name": "NameActivity.java", "file_ext": "java", "file_size_in_byte": 992, "... | package com.sheygam.java_19_16_03_18;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class NameActivity extends AppCompatActivity implements View.OnClickListener {
... |
8b22cb89-d37e-4cdc-9d53-a185cdc9dedb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-17 13:21:57", "repo_name": "gauravrmsc/My-Drive", "sub_path": "/src/test/java/com/gauravrmsc/superduperdrive/pages/SignupPage.java", "file_name": "SignupPage.java", "file_ext": "java", "file_size_in_byte": 992... | package com.gauravrmsc.superduperdrive.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.springframework.stereotype.Component;
public class SignupPage {
@FindBy(name = "firstName... |
62777bf0-8b3f-4890-8630-caf7680a62e6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-08 04:48:56", "repo_name": "jonathanaschultz/EventMap", "sub_path": "/app/src/main/java/edu/ucla/cs/eventmap/Comment.java", "file_name": "Comment.java", "file_ext": "java", "file_size_in_byte": 992, "line_coun... | package edu.ucla.cs.eventmap;
import java.io.Serializable;
public class Comment implements Serializable {
public String event;
public String owner;
public String username;
public String comment;
public String time;
public long hash; //Comment creation time in milliseconds is the hash, odds of ... |
7ab11481-a924-4a35-be27-da27fd88753a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-11-17T09:03:32", "repo_name": "kojiyamauchi/typescript-work", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1011, "line_count": 28, "lang": "en", "doc_type": "text... | <h1 align="center">
💉<br>
Work of TypeScript on Project No.***
</h1>
## 🌡 Resource.
```
resource
|
|- /base -> TypeScript.
| |- *.js -> Creates Entry Point for Each View Page.
| |- /Apps -> App**.ts is Choose Required Modules.ts for Each Pages. And Pass to *.js
| |- /Modules -> Various Modules.... |
235304b6-dd72-40bc-9ac3-e2df95a76431 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-04-02T11:20:42", "repo_name": "genmauger/rails-blog", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 991, "line_count": 30, "lang": "en", "doc_type": "text", "blob_... | # README
This README would normally document whatever steps are necessary to get the
application up and running.
## Practice Blog Application
We are currently exploring the use of Application Programming Interfaces (APIs) in our class. After working with databases (such a sequel and sqlite3) and practicing pairing t... |
4180de38-2cbe-4595-afa8-59855cabd4e1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-12 09:58:48", "repo_name": "Manojkumarchow/reactappwithspringboot", "sub_path": "/Spring-with-React-JS/src/main/java/com/example/Spring/with/React/JS/SpringWithReactJsApplication.java", "file_name": "SpringWit... | package com.example.Spring.with.React.JS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.example.Spring.with.React.JS.mo... |
a98865a4-cd4a-440b-8f7d-6f776b01805d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-23 22:08:10", "repo_name": "OpenGridMap/OpenGridMapApp", "sub_path": "/app/src/main/java/tanuj/opengridmap/models/Payload.java", "file_name": "Payload.java", "file_ext": "java", "file_size_in_byte": 992, "line... | package tanuj.opengridmap.models;
import android.content.Context;
import org.json.JSONException;
import org.json.JSONObject;
import tanuj.opengridmap.R;
/**
* Created by Tanuj on 13/10/2015.
*/
public class Payload {
private long submissionId;
private long imageId;
private JSONObject payloadJSON;
... |
dba27bb2-1192-4ace-b13d-1eacbdddf503 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-10 16:36:00", "repo_name": "isdom/jocean-wechat", "sub_path": "/src/main/java/org/jocean/wechat/spi/msg/EnterSessionEvent.java", "file_name": "EnterSessionEvent.java", "file_ext": "java", "file_size_in_byte": ... | package org.jocean.wechat.spi.msg;
import com.alibaba.fastjson.annotation.JSONField;
public class EnterSessionEvent extends BaseWXMessage {
@JSONField(name="Event")
public String getEvent() {
return _event;
}
@JSONField(name="Event")
public void setEvent(final String event) {
thi... |
2741f578-50e4-4fa5-a8b5-19c7f0a200bc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-09-12 03:57:51", "repo_name": "fishpro/spring-boot-study", "sub_path": "/spring-boot-study-webserviceclient/src/main/java/com/fishpro/webserviceclient/WebserviceclientApplication.java", "file_name": "Webservicecl... | package com.fishpro.webserviceclient;
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Webservicecli... |
7189ef2f-ba9f-4531-bcec-b385cbe1404c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-24 00:39:33", "repo_name": "FM-EC/concesionario-unal", "sub_path": "/src/java/businessLogic/ProviderFacade.java", "file_name": "ProviderFacade.java", "file_ext": "java", "file_size_in_byte": 992, "line_count":... | /*
* 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 businessLogic;
import dataAccess.Provider;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityM... |
fa74b48d-b9ea-47be-afb3-b8bbb2c5c59b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-06-28 10:43:47", "repo_name": "miujoke/miujoke-springcloud", "sub_path": "/miujoke-common/src/main/java/com/miujoke/common/aspect/IdempotentAspect.java", "file_name": "IdempotentAspect.java", "file_ext": "java", ... | package com.miujoke.common.aspect;
import com.miujoke.common.annotation.IdempotentAnnotation;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Compon... |
a918ddc3-f8ae-49cb-9c59-284ce0b7d307 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-10 06:29:54", "repo_name": "edkins/pantheist", "sub_path": "/src/main/java/io/pantheist/api/flatdir/model/ListFileItemImpl.java", "file_name": "ListFileItemImpl.java", "file_ext": "java", "file_size_in_byte": ... | package io.pantheist.api.flatdir.model;
import javax.inject.Inject;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.inject.assistedinject.Assisted;
import io.pantheist.common.util.OtherPreconditions;
final class ListFileItemImpl implements ListFileItem
{
private final String url;
private f... |
896a2c1d-f8bf-4c6f-8987-d90481bdf892 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-03-30T23:03:05", "repo_name": "robertoeb/CodeNation-React-Challenge", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 992, "line_count": 34, "lang": "en", "doc_type"... | # Using React to list and filter recipes
In this challenge, you will create an interface for listing and filtering recipes.
## Topics
With this challeng, I learn:
- React
- ES6
- Javascript
- Unitary tests
## Requirements
You will need the NodeJS (LTS or Current) installed on your machine.
### Tasks
- [x] Render d... |
4543276d-63ac-40ea-a389-17a4e2450e86 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-24 14:08:23", "repo_name": "Babator/android-demo-app", "sub_path": "/app/src/main/java/babator/com/sdkdemo/CustomViewHolder.java", "file_name": "CustomViewHolder.java", "file_ext": "java", "file_size_in_byte":... | package babator.com.sdkdemo;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
/**
* A View holder class for the RecyclerView holding the players list
*/
public class CustomViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener{
final Te... |
19288151-ee1f-4388-9c6f-412d7d797c89 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-28 16:32:18", "repo_name": "imrana559/travel-planner", "sub_path": "/app/src/main/java/ba/unsa/pmf/planerputovanja/PutovanjeActivity.java", "file_name": "PutovanjeActivity.java", "file_ext": "java", "file_size... | package ba.unsa.pmf.planerputovanja;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import java.util.UUID;
public class PutovanjeActivity e... |
cefc1d02-461c-4e8e-9d31-8045f22b3ae0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-01-19T17:58:30", "repo_name": "RedKenrok/Web-FittingIn", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 992, "line_count": 14, "lang": "en", "doc_type": "text", "bl... | # Fitting in
Fitting in is a two person co-operative game where one player takes control of the phone, the other stands in front of the back facing camera. The phone holder then has to tell -not show- the other how to has to pose themself based on the instruction on screen. The better you do the more points you will e... |
f8b71189-371c-4b7e-9c4b-4dbd7d6b5482 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-31 05:55:19", "repo_name": "nuzzz/ConspecDashboard", "sub_path": "/src/main/java/com/example/helper/TodoistConfig.java", "file_name": "TodoistConfig.java", "file_ext": "java", "file_size_in_byte": 991, "line_c... | package com.example.helper;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class TodoistConfig {
@Value("#{environment.TODOIST_CLIENT_ID}")
private String clientID;
@... |
c0309f7f-d843-43f2-9f78-ba5033e583a0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-13 13:17:01", "repo_name": "V-E-S-T/voting", "sub_path": "/src/main/java/voting/repository/RestaurantRepositoryImpl.java", "file_name": "RestaurantRepositoryImpl.java", "file_ext": "java", "file_size_in_byte":... | package voting.repository;
import org.springframework.beans.factory.annotation.Autowired;
import voting.model.RestaurantMenu;
import voting.repository.jpaRepository.JpaRestaurantRepository;
import java.util.List;
public class RestaurantRepositoryImpl implements RestaurantRepository{
@Autowired
private JpaRe... |
e399f398-2127-4bb8-af3e-09f8a76a4320 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-16 15:13:27", "repo_name": "lajosadam/training-solutions", "sub_path": "/src/main/java/jdbc2/ConnectDb.java", "file_name": "ConnectDb.java", "file_ext": "java", "file_size_in_byte": 992, "line_count": 36, "lan... | package jdbc2;
import org.mariadb.jdbc.MariaDbDataSource;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
public class ConnectDb {
public static void main(String[] args) {
MariaDbDataSource dataSource = new MariaDbDataSource();
... |
012724f5-cc50-43af-a21d-3c05e7b07737 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-31 10:35:05", "repo_name": "nvduong97/CarGara", "sub_path": "/src/com/ptit/model/DetailBill.java", "file_name": "DetailBill.java", "file_ext": "java", "file_size_in_byte": 992, "line_count": 52, "lang": "en", ... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.ptit.model;
/**
*
* @author DUONGNV
*/
public class DetailBill {
private int billID;
private String DetailBill... |
3fe4ad56-4d0f-4399-8d2e-0d3cabe27255 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-19 18:54:59", "repo_name": "morosanag/OCPP-Project", "sub_path": "/OCPP_Interface_Websocket_REST/src/java/com/offnet/ocpp/controllerS/GetLocalListVersionController.java", "file_name": "GetLocalListVersionContr... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.offnet.ocpp.controllerS;
import com.offnet.ocpp.client.Client;
import com.offnet.ocpp.request.GetLocalListVersionRequest;
... |
d7d89d9c-e515-43fc-940d-c19c90b86f73 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-13 17:06:37", "repo_name": "IncPlusPlus/classpath-fixer", "sub_path": "/src/main/java/io/github/incplusplus/classpathfixer/ImlClasspathPair.java", "file_name": "ImlClasspathPair.java", "file_ext": "java", "fil... | package io.github.incplusplus.classpathfixer;
import io.github.incplusplus.classpathfixer.ec.classpath.Classpath;
import io.github.incplusplus.classpathfixer.ij.module.Module;
import java.io.File;
/**
* This is just an easy way to return both a .classpath and .iml from one method
*/
public class ImlClasspathPair
{... |
7a2b9025-9eee-4f3f-bb54-add72b44a649 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-13 06:59:20", "repo_name": "principrincess/Selenium", "sub_path": "/src/main/java/MouseMovementConcept.java", "file_name": "MouseMovementConcept.java", "file_ext": "java", "file_size_in_byte": 995, "line_count... |
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
import java.util.concurrent.TimeUnit;
public class MouseMovementConcept{
private WebDriver driver;
public static void main(String... |
795f49ef-0dd2-45d7-ad8d-632aca3a6e23 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-08 20:28:05", "repo_name": "hadeerelnaggar/ITI-Work", "sub_path": "/Java-Database/Users-Edit-with-GUI/src/main/java/useredit/utilities/StageCoordinator.java", "file_name": "StageCoordinator.java", "file_ext": ... | package useredit.utilities;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
public class StageCoordinator {
private Stage stage;
private static StageCoordinator stageCoordinator;
private StageCoordinator(){
... |
2c58ab63-7f6e-4471-88fa-bf50321616cd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-02-19T13:46:20", "repo_name": "pennywise81/webboilerplate", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 992, "line_count": 72, "lang": "en", "doc_type": "text", ... | # webboilerplate
Let's start something new
## Download
```
git clone git@github.com:pennywise81/webboilerplate.git PROJECTNAME
```
## Download without version control
```
git clone --depth=1 git@github.com:pennywise81/webboilerplate.git PROJECTNAME && rm -rf PROJECTNAME/.git
```
## NPM tasks
### Install
Installs d... |
27e88912-3933-4e82-9661-d411d6e34d98 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-16 20:20:28", "repo_name": "khrystiian/JAVA_Repository", "sub_path": "/BuildPc/src/controller/ProductController.java", "file_name": "ProductController.java", "file_ext": "java", "file_size_in_byte": 992, "line... | package controller;
import java.util.ArrayList;
import modelLayer.*;
public class ProductController {
private ProductContainer prodCont;
public ProductController(){
prodCont = new ProductContainer();
}
public ArrayList<Cpu> getCpus(){
return prodCont.getCpus();
}
public ArrayList<Cooler> getCoolers()... |
dc91b483-d6f0-4ab9-9c09-5e316e8d419f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-30 08:19:32", "repo_name": "ArkiZh/Laboratory", "sub_path": "/laboratory-parent/laboratory-snippet/src/main/java/com/arki/laboratory/snippet/image/ImageScan.java", "file_name": "ImageScan.java", "file_ext": "j... | package com.arki.laboratory.snippet.image;
import com.drew.imaging.ImageMetadataReader;
import com.drew.imaging.ImageProcessingException;
import com.drew.metadata.Directory;
import com.drew.metadata.Metadata;
import com.drew.metadata.Tag;
import java.io.File;
import java.io.IOException;
import java.util.Collection;
... |
240cb72c-e419-41de-9cc2-f5a2bf0ad718 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-04 09:12:02", "repo_name": "KingJA/DidaDemoAS", "sub_path": "/dida_demo/src/main/java/com/dida/first/holder/BaseHolder.java", "file_name": "BaseHolder.java", "file_ext": "java", "file_size_in_byte": 995, "line... | package com.dida.first.holder;
import android.view.View;
import java.util.List;
/**
* @author KingJA
* @data 2015-8-14 上午9:54:08
* @use
*/
public abstract class BaseHolder<T> {
protected View view;
public boolean b;
public int position;
private T mData;
private List<T> mList;
public Bas... |
b886712b-6b31-4108-aa47-b303ca2cf2ee | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-12-17T09:02:18", "repo_name": "Kenan7/bakujobs", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 999, "line_count": 53, "lang": "en", "doc_type": "text", "blob_id": ... | # Setting Up for Development
* install dependencies (Debian/Ubuntu)
$ sudo apt-get update
$ sudo apt-get install -y gcc python3-dev python3-venv
* prepare directory for project code and virtualenv:
$ mkdir -p ~/webapps
$ cd ~/webapps
* download the project code:
$ git cl... |
f49c9b64-0890-428d-89a8-7b26e9cf624b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-27 01:11:33", "repo_name": "ChungYuCheng/AccountingApp", "sub_path": "/app/src/main/java/com/joe/accountingapp/ui/settings/SettingsViewModel.java", "file_name": "SettingsViewModel.java", "file_ext": "java", "f... | package com.joe.accountingapp.ui.settings;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.joe.accountingapp.bean.MoreFunction;
import java.util.ArrayList;
public class SettingsViewModel extends ViewModel {
private MutableLiveData<S... |
29c31bae-faa4-403d-9a7d-b22a035e677a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-25 15:51:14", "repo_name": "robertokur/eletronicPoint-api", "sub_path": "/src/main/java/com/robertokur/eletronicpoint/api/services/impl/CompanyServiceImpl.java", "file_name": "CompanyServiceImpl.java", "file_e... | package com.robertokur.eletronicpoint.api.services.impl;
import java.util.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.robertokur.eletronicpoint.api.entities.Company;
import c... |
f49884f8-2a2b-4bd0-895a-f54494d46b56 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-12-11 18:24:03", "repo_name": "yarivg/WaitForIt", "sub_path": "/app/src/main/java/company/wfi/com/waitforit/ItemInPlaylist.java", "file_name": "ItemInPlaylist.java", "file_ext": "java", "file_size_in_byte": 992, ... | package company.wfi.com.waitforit;
public class ItemInPlaylist {
private String id;
private String url;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getId() {
return id;
}
public void setId... |
5d3af141-5c26-4a1b-900b-670282fceb77 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-30 20:27:03", "repo_name": "oracle/weblogic-kubernetes-operator", "sub_path": "/integration-tests/src/test/java/oracle/verrazzano/weblogic/VerrazzanoWebLogicWorkload.java", "file_name": "VerrazzanoWebLogicWork... | // Copyright (c) 2023, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
package oracle.verrazzano.weblogic;
import io.kubernetes.client.openapi.models.V1ObjectMeta;
import io.swagger.annotations.ApiModel;
import io.swagger.annotati... |
d28d05bb-4945-47f2-b174-dd335300087c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-13 02:25:48", "repo_name": "biantaiwuzui/netx", "sub_path": "/trunk/netx-common/src/main/java/com/netx/common/vo/business/UpdateAddressRequestDto.java", "file_name": "UpdateAddressRequestDto.java", "file_ext":... | package com.netx.common.vo.business;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;
import java.util.List;
/**
* Created By liwei
* Description: 修改用户收货地址请求参数
* Date: 2018-01-29
*/
@ApiModel
public class UpdateAddressReq... |
78b6a190-3df1-480a-9e69-781c4def3fc2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-10 08:15:01", "repo_name": "IvanButakov/simple", "sub_path": "/src/main/java/com/but/simple/service/MessageService.java", "file_name": "MessageService.java", "file_ext": "java", "file_size_in_byte": 992, "line... | package com.but.simple.service;
import com.but.simple.entity.Message;
import com.but.simple.entity.User;
import com.but.simple.repository.MessageRepository;
import com.but.simple.utils.Utils;
import org.springframework.stereotype.Service;
import java.util.Map;
@Service
public class MessageService {
private final... |
1b8e6eb7-e124-4cb4-b151-69c7ea35e6ca | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-02-09T12:38:51", "repo_name": "lucascastejon/go-angular", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 993, "line_count": 45, "lang": "en", "doc_type": "text", "b... |
# Go - Angular
This is a test application to communicate Angular and Go with Sign-up
### The Go application is in the main.go file
### The Angular application is in the /assets folder
### Run
Just run `go run main.go` and it will start a server at :1357 so enter `localhost:1357` and you'll see the angular applicat... |
f6a6e321-0be0-481a-abbd-55d799d083de | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-18 10:46:47", "repo_name": "tanyaoley/java_course", "sub_path": "/01-workshop/src/it/sevenbits/workshop/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 991, "line_count": 29, "la... | package it.sevenbits.workshop;
import it.sevenbits.workshop.matrix.Matrix;
import it.sevenbits.workshop.queue.DoubleEndedQueue;
public class Main {
public static void main(String[] args){
Matrix matrix = new Matrix(Integer.parseInt(args[0]), Integer.parseInt(args[1]));
System.out.println(matrix.to... |
790f3220-66ee-488c-bcf0-9841af1a5674 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-01 07:53:07", "repo_name": "colinbut/rabbitmq-tutorials", "sub_path": "/helloworld/src/main/java/com/mycompany/rabbitmq/Send.java", "file_name": "Send.java", "file_ext": "java", "file_size_in_byte": 821, "line... | /*
* |-------------------------------------------------
* | Copyright © 2017 Colin But. All rights reserved.
* |-------------------------------------------------
*/
package com.mycompany.rabbitmq;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.Chann... |
6f8994d2-de2e-4635-9da3-4b3c39a0c3f2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-29 00:47:02", "repo_name": "ValentinCPE/materiallogindemo", "sub_path": "/app/src/main/java/com/sourcey/mbal/service/PropertiesReader.java", "file_name": "PropertiesReader.java", "file_ext": "java", "file_size... | package com.sourcey.mbal.service;
import android.content.Context;
import android.content.res.AssetManager;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/**
* Created by valen on 28/03/2018.
*/
public class PropertiesReader {
private stat... |
4f24583d-7985-488f-b225-6b88f7cede89 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-05-23 00:30:21", "repo_name": "ChanaLieba/mco152-spring-2014", "sub_path": "/src/stein/weathermap/WeatherFrameThread.java", "file_name": "WeatherFrameThread.java", "file_ext": "java", "file_size_in_byte": 992, "l... | package stein.weathermap;
import java.io.IOException;
import javax.swing.JPanel;
import javax.swing.JTextArea;
public class WeatherFrameThread extends Thread {
private String city;
private WeatherMain wm;
private JTextArea conditionsLabel;
private TheChart chart;
public void run() {
try {
... |
ff5253bd-b0d1-4dd9-818a-00037a50c019 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-28 22:08:51", "repo_name": "wing324/cmpe202", "sub_path": "/lab6/PackingSlip.java", "file_name": "PackingSlip.java", "file_ext": "java", "file_size_in_byte": 992, "line_count": 38, "lang": "en", "doc_type": "c... |
/**
* Write a description of class PackingSlip here.
*
* @author (Min Yu)
* @version (03/14/2019)
*/
public class PackingSlip implements BillStrategy
{
@Override
public void printBill()
{
System.out.println("Patties - 1");
System.out.println();
System.out.println("Order Number: 45");
System.... |
3b87c006-89fa-4dc3-9c85-3bc6023e4f7a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-05 13:07:13", "repo_name": "Dmitriy-Butramyou/SleeplessLife", "sub_path": "/src/main/java/home/pet/production/SleeplessLife/model/Image.java", "file_name": "Image.java", "file_ext": "java", "file_size_in_byte"... | package home.pet.production.SleeplessLife.model;
import lombok.*;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
/**
* Модель описывающая класс изображений загружаемых пользователями
*
* @author D.Butramyou
*/
@Entity
@Getter
@Setter... |
95e15253-e0bf-463b-b48f-2795106ec5ac | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-12-08 20:18:44", "repo_name": "basedaolib/projeto-integrador", "sub_path": "/Projeto-Integrador-IV/src/main/java/br/com/belaAgenda/infra/resourceBundle/MessageProviderImpl.java", "file_name": "MessageProviderImpl... | package br.com.belaAgenda.infra.resourceBundle;
import java.util.ResourceBundle;
import javax.faces.context.FacesContext;
import javax.inject.Named;
@Named
public class MessageProviderImpl implements MessageProvider{
private static final long serialVersionUID = -852715624365556741L;
public Resource... |
7092e629-4519-41a1-9f08-f731da44b8f3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-20 12:12:51", "repo_name": "adafflitto/java-web-dev-exercises", "sub_path": "/src/org/launchcode/java/demos/lsn3classes1/Course.java", "file_name": "Course.java", "file_ext": "java", "file_size_in_byte": 991, ... | package org.launchcode.java.demos.lsn3classes1;
import java.util.ArrayList;
public class Course {
private ArrayList<Student> students;
private String courseName;
private String courseDescription;
public Course (ArrayList<Student> students, String courseName, String courseDescription) {
this.... |
53f9d346-1b80-46eb-9b1b-ad84c93f82b1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-05 12:32:13", "repo_name": "yjn8888/kunyao", "sub_path": "/kunyao-core/src/main/java/com/kunyao/message/MessageEntity.java", "file_name": "MessageEntity.java", "file_ext": "java", "file_size_in_byte": 1005, "l... | package com.kunyao.message;
import com.kunyao.core.entity.base.Entity;
public class MessageEntity<T> implements Entity {
private static final long serialVersionUID = -2708504431483704392L;
/**
* 用于分布式追踪
*/
private String messageId;
private T data;
public MessageEntity(){
}
p... |
ced9ba08-834a-4a5c-ade9-585f6cf68493 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-14 21:04:33", "repo_name": "thombergs/code-examples", "sub_path": "/spring-security/getting-started/SecureApplication/src/main/java/com/reflectoring/security/exception/UserForbiddenErrorHandler.java", "file_na... | package com.reflectoring.security.exception;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.security.web.access.AccessDeniedHandler;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResp... |
0d34f003-40b0-47be-842d-67eea497c063 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-24 06:29:28", "repo_name": "zaobo/ccp", "sub_path": "/HighConcurrent/hccp_concurrency/src/main/java/com/zab/hccpexample/example/aqs/SemaphoreExample1.java", "file_name": "SemaphoreExample1.java", "file_ext": "... | package com.zab.hccpexample.example.aqs;
import lombok.extern.slf4j.Slf4j;
import java.util.concurrent.*;
@Slf4j
public class SemaphoreExample1 {
private static int threadCount = 20;
public static void main(String[] args) throws Exception {
ExecutorService executorService = Executors.newCachedThrea... |
8cc4101f-731e-459d-b6bd-fc5eb075778c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-28 18:11:47", "repo_name": "tobiasquinteiro/alura-cursos", "sub_path": "/jsf2/livraria/src/br/com/caelum/livraria/dao/UsuarioDAO.java", "file_name": "UsuarioDAO.java", "file_ext": "java", "file_size_in_byte": ... | package br.com.caelum.livraria.dao;
import java.io.Serializable;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import br.com.caelum.livraria.modelo.Usuario;
public class UsuarioDAO im... |
b16cf220-4c13-4e08-8e8c-fe5ced118295 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-12-12T19:36:00", "repo_name": "bnielsen1965/NoCon-PayPal-NVP", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 994, "line_count": 45, "lang": "en", "doc_type": "text... | # NoCon-PayPal-NVP
This is a set of classes used to make API calls to the PayPal NVP service.
The classes were developed for the NoCon framework but could theoretically be
used in other frameworks and/or applications.
---------------------------------
#INSTALLATION
The package can be installed one of two ways, ei... |
a3d8bc6a-fb72-4c69-a3e7-004edc6ab62e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-03 01:55:50", "repo_name": "daniel-winner/customers", "sub_path": "/src/main/java/com/crm/customers/controller/UserController.java", "file_name": "UserController.java", "file_ext": "java", "file_size_in_byte":... | package com.crm.customers.controller;
import com.crm.customers.entity.BaseUser;
import com.crm.customers.entity.ReturnObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@Reque... |
252c5ada-f128-40d7-b0ad-c3916fcea089 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-27 03:22:19", "repo_name": "545923664/xx-im", "sub_path": "/xx-im/src/main/java/com/jzwl/mytest/login/service/impl/LoginServiceImpl.java", "file_name": "LoginServiceImpl.java", "file_ext": "java", "file_size_i... | package com.jzwl.mytest.login.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jzwl.base.service.BaseService;
import com.jzwl.mytest.login.dao.LoginDao;
import com.jzwl.mytest.login.serv... |
419dd661-45fe-49a7-8d21-8b31766834fc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-01 20:18:51", "repo_name": "mateusleiteaalmeida/codenation-java-central-de-erros-back-end", "sub_path": "/src/main/java/com/project/centralDeErros/converter/LogConverter.java", "file_name": "LogConverter.java"... | package com.project.centralDeErros.converter;
import com.project.centralDeErros.dto.LogDto;
import com.project.centralDeErros.entity.Log;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.stereotype.Component;
import java.util.List;
import java.ut... |
494db12d-97d5-4b5d-be48-4a6e59758ee7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-27 06:50:07", "repo_name": "ankitanubhav212/SpringBoot", "sub_path": "/docker-spring/src/main/java/com/doc/DockerSpringApplication.java", "file_name": "DockerSpringApplication.java", "file_ext": "java", "file_... | package com.doc;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.doc.... |
6b6b27ac-4e58-4e7b-870d-1567c6687894 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-08 22:52:34", "repo_name": "Awesome20o0/HydraRelicRecoveryMaster", "sub_path": "/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Libraries/Pushers.java", "file_name": "Pushers.java", "file_ext": "java", ... | package org.firstinspires.ftc.teamcode.Libraries;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.Servo;
/**
* Created by willi on 10/10/2017.
*/
public class Pushers {
LinearOpMode opMode;
Servo pusherR;
Servo pusherL;
private final String LOG_T... |
f15f85e3-7507-45ac-a98f-fad34b258c71 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-03 20:32:30", "repo_name": "javiera2020/Requerimientos", "sub_path": "/Requerimientos/src/java/Conexion/Conexion.java", "file_name": "Conexion.java", "file_ext": "java", "file_size_in_byte": 992, "line_count":... | /*
* 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 Conexion;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
/**
*
* @autho... |
0065a31a-3175-42c6-b367-f3099ddd0ed9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-08-20T18:04:58", "repo_name": "maingockien01/learning-database", "sub_path": "/PostgreSQL/app.md", "file_name": "app.md", "file_ext": "md", "file_size_in_byte": 992, "line_count": 27, "lang": "en", "doc_type"... | # Overview
This is my small assignment of how to use PostgreSQL and Go Lang
The app will be simple and console-interaction.
The app will have the function of getting movies based on genre and actor. It will show all result for strict matching and top 5 (genres or actors) for fuzzy searching.
# Functions
- Receive com... |
887d0238-6da1-4617-8bd1-a4adc640ad6d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-06-11 09:35:51", "repo_name": "yisiwei/Vaccination", "sub_path": "/src/cn/mointe/vaccination/domain/VaccinationCategory.java", "file_name": "VaccinationCategory.java", "file_ext": "java", "file_size_in_byte": 103... | package cn.mointe.vaccination.domain;
import java.util.ArrayList;
import java.util.List;
public class VaccinationCategory {
private String categoryName;
private List<Vaccination> categoryItem = new ArrayList<Vaccination>();
public VaccinationCategory(String categoryName) {
this.categoryName = categoryName;
}
... |
77dd0ec9-75f3-42a7-8b84-4348dfb01db7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-04 21:00:55", "repo_name": "sfdc-excel-macros/myfaces2a", "sub_path": "/myfaces2a/main/java/myfaces2a/GreetingService.java", "file_name": "GreetingService.java", "file_ext": "java", "file_size_in_byte": 991, "... | package myfaces2a;
import java.io.*;
import java.sql.*;
import javax.inject.Named;
import javax.enterprise.context.ApplicationScoped;
@Named
@ApplicationScoped
public class GreetingService
{
public String createGreeting(String name)
{
try {
Connection c = DriverManager.getConnection("jdbc:... |
03a45394-ca20-4b6d-a26d-29d51138f560 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-18 17:40:00", "repo_name": "tarantula251/class-organizer", "sub_path": "/app/src/main/java/model/data/Course.java", "file_name": "Course.java", "file_ext": "java", "file_size_in_byte": 991, "line_count": 58, "... | package model.data;
import java.io.Serializable;
import java.util.ArrayList;
public class Course implements Data, Serializable
{
private int id;
private String name;
private User supervisor;
private Field field;
private ArrayList<User> students = new ArrayList<User>();
public Course(int id)
... |
537ca357-e545-4bb2-8299-913bf8ecc220 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-28 20:27:36", "repo_name": "ohMyJason/zybar", "sub_path": "/src/main/java/com/zybar/bar/service/impl/UserServiceImpl.java", "file_name": "UserServiceImpl.java", "file_ext": "java", "file_size_in_byte": 997, "l... | package com.zybar.bar.service.impl;
import com.zybar.bar.dao.UserMapper;
import com.zybar.bar.model.User;
import com.zybar.bar.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @author 刘佳昇
* @Date 2019/8/8 10:21
*/
@Service
publ... |
79ee2417-d445-4fc4-bf1c-0abc5daa21a5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-12 10:55:25", "repo_name": "NoumanBaig/PlanetZoom", "sub_path": "/app/src/main/java/com/angadi/tripmanagementa/models/RegisterResponse.java", "file_name": "RegisterResponse.java", "file_ext": "java", "file_siz... | package com.angadi.tripmanagementa.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class RegisterResponse {
@SerializedName("UID")
@Expose
private Integer uID;
@SerializedName("rand")
@Expose
private Integer rand;
@SerializedName... |
aace05c5-462f-44be-bd40-d5002f1a2c1c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-04-24 12:36:00", "repo_name": "malkiev96/Oauth-login", "sub_path": "/auth-server/src/main/java/ru/malkiev/oauth/service/UserInitializer.java", "file_name": "UserInitializer.java", "file_ext": "java", "file_size_i... | package ru.malkiev.oauth.service;
import lombok.AllArgsConstructor;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
import ru.malkiev.oauth.dto.UserDto;
import ru.malkiev.oauth.entity.Role;
import ru.malkiev.oauth... |
cd50c0df-9819-45a6-8147-1d8b5e1b38ca | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-11 16:08:20", "repo_name": "celine-villain/JavaTrainings", "sub_path": "/Generics/src/academy/learnprogramming/League.java", "file_name": "League.java", "file_ext": "java", "file_size_in_byte": 991, "line_coun... | package academy.learnprogramming;
import java.util.ArrayList;
import java.util.Collections;
public class League<T extends Team> {
private String name;
private ArrayList<T> league = new ArrayList<T>();
//constructor
public League(String name) {
this.name = name;
}
public boolean addT... |
de6bc459-f003-434d-9532-00a8f08010dc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-29 04:20:29", "repo_name": "hgongguo/SpringBootSample", "sub_path": "/src/main/java/com/redis/RedisTest.java", "file_name": "RedisTest.java", "file_ext": "java", "file_size_in_byte": 1011, "line_count": 38, "l... | package com.redis;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
/**
* Created by hgg on 2019/10/29.
*/
public class RedisTest {
public static void main(String[] args) {
Jedis jedis = new Jedis("127.0.0.1",6379);
jedis.set("test","Hello");
System.out.println(je... |
68540c08-18e0-4a3c-888d-91b8b5d3a64f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-05 08:28:55", "repo_name": "amatke/Task-managment-app", "sub_path": "/TaskManagmentApp/src/main/java/com/matovic/conntroller/ProfileController.java", "file_name": "ProfileController.java", "file_ext": "java", ... | package com.matovic.conntroller;
import java.security.Principal;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapp... |
e83929e5-9176-4546-9f9a-fbdb5a3eca8a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-12 10:06:03", "repo_name": "adnanisajbeg/apache-camel-playground", "sub_path": "/split-examples/src/main/java/is/symphony/test/split/examples/routes/strategy/ListPersonAggregationStrategy.java", "file_name": "... | package is.symphony.test.split.examples.routes.strategy;
import is.symphony.test.split.examples.model.Person;
import org.apache.camel.Exchange;
import org.apache.camel.processor.aggregate.AggregationStrategy;
import java.util.ArrayList;
import java.util.List;
public class ListPersonAggregationStrategy implements Agg... |
770d2b4f-282e-4279-8ea3-a49602221c78 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-08-13T23:24:19", "repo_name": "dansilivestru/BootCamp", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 991, "line_count": 45, "lang": "en", "doc_type": "text", "blo... | Startup Live & Lessons Learned
========
Women Entrepreneur Summer Bootcamp Summer 2014
## Presented by:
Pj Lowe-Silivestru
Dan Silivestru
## Introduction
An introduction to Pj and Dan, past experience and how we got here.
## Myths about startup life
- Being your own boss is easy
- You get to make your own hours
... |
6850ed6b-9900-4bcc-a4de-4c7f340b2db5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-18 05:35:38", "repo_name": "NavjotPanesar/IRCu", "sub_path": "/app/src/main/java/ircu/navjotpanesar/com/ircu/models/SystemMessage.java", "file_name": "SystemMessage.java", "file_ext": "java", "file_size_in_byt... | package ircu.navjotpanesar.com.ircu.models;
import ircu.navjotpanesar.com.ircu.pircbot.ChannelItem;
/**
* Created by Navjot on 6/24/2015.
*/
public class SystemMessage extends BaseMessage{
public enum SystemMessageType{
INFO,
TOPIC,
JOIN,
LEAVE
}
private SystemMessageTy... |
e25d62ed-b891-4911-be85-1c417575a1b6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-28 13:06:37", "repo_name": "adminpp/sjdemo", "sub_path": "/src/main/java/com/itqf/enums/ResultEnum.java", "file_name": "ResultEnum.java", "file_ext": "java", "file_size_in_byte": 1161, "line_count": 44, "lang"... | package com.itqf.enums;
public enum ResultEnum {
PRODUCT_NOT_EXISTS(6,"商品不存在"),
PRODUCT_STOCK_ERROR(7,"商品库存不足"),
PARAM_ERROR(8,"参数不正确"),
CART_ERROR(9,"购物车为空"),
OPENID_NULL(10,"微信号为空"),
ORDER_NOT_EXISTS(11,"订单不存在"),
ORDER_DETAIL_NOT_EXISTS(12,"订单详情不存在"),
ORDER_OWNER_ERROR(13,"不是订单所有者"),... |
bec1d430-bada-4fca-a14e-dcb7e6ffa67f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-01-31 23:36:55", "repo_name": "hfaulds/Satellites-Client", "sub_path": "/src/main/java/net/msgs/LoginRequestMsg.java", "file_name": "LoginRequestMsg.java", "file_ext": "java", "file_size_in_byte": 991, "line_coun... | package net.msgs;
public class LoginRequestMsg {
private final String username;
private final String password;
public LoginRequestMsg() {
this("", "");
}
public LoginRequestMsg(String username, String password) {
this.username = username;
this.password = password;
}
public String getUse... |
e081e783-7e4c-4a44-b635-8859e8eb5229 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-03-20T18:42:51", "repo_name": "matt-bendel/4900_capstone_web", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 990, "line_count": 36, "lang": "en", "doc_type": "text... | # Setting Up the App
In order to get started, clone the repository then run the following
command:
###`npm install`
This will install all required packages - with appropriate versions -
as specified in package-lock.json
Next, in order to run the app locally, run the following command:
### `npm start`
Runs the ap... |
650afd07-b991-4c5e-a240-bfdc173579db | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-05 01:50:06", "repo_name": "DylanRedfield/IowaCaucusResults", "sub_path": "/src/main/java/me/dylanredfield/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 990, "line_count": 39, ... | package me.dylanredfield;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import retrofit.Call;
import retrofit.GsonConverterFactory;
import retrofit.Retrofit;
import java.io.IOException;
public class Main {
public static final String BASE_URL = "https://www.idpcaucuses.com/api/";
public s... |
ede64bf8-fc80-4d3e-b1b1-4b9665d487a2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-20 21:27:41", "repo_name": "AixNPanes/genealogy", "sub_path": "/Ftm2Html/src/ws/daley/genealogy/gedcom/attribute/GcWhereWithinSourceAttribute.java", "file_name": "GcWhereWithinSourceAttribute.java", "file_ext"... | package ws.daley.genealogy.gedcom.attribute;
/**
* WHERE_WITHIN_SOURCE:= {Size=1:248}
*
* Specific location with in the information referenced. For a published work,
* this could include the volume of a multi-volume work and the page number(s).
* For a periodical, it could include volume, issue, and ... |
b8c0187e-2ce1-46fe-8ac5-47c24f177e08 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-09-19T12:18:01", "repo_name": "kentchiu/kentchiu.github.com", "sub_path": "/_posts/2011-10-17-postgresql_config.md", "file_name": "2011-10-17-postgresql_config.md", "file_ext": "md", "file_size_in_byte": 1293... | ---
author: Kent Chiu
published: true
layout: post
title: "設定PostgrSQL的連線配置"
date: 2011-10-17
comments: true
external-url:
sharing: true
footer: true
tags:
- postgresql
---
設定可以連線的IP是在 data\\postgresql.conf
```
listen_addresses = '*' # what IP address(es) to listen on;
```
設定連線的認證方式是在 data\\pg\_hba... |
8791f7c1-6880-4298-9a04-79e6d175d98c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-13 08:38:00", "repo_name": "chlbeyond/smartPos", "sub_path": "/smartpos/smartPOS/src/main/java/com/rainbow/smartpos/gson/DateTimeDeserializer.java", "file_name": "DateTimeDeserializer.java", "file_ext": "java"... | package com.rainbow.smartpos.gson;
import java.lang.reflect.Type;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseE... |
6fc654ae-0ddc-40c4-ac0e-49731230be68 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-30 16:10:41", "repo_name": "zhangchenmmtd/mediamonks-wechat-web", "sub_path": "/src/main/java/com/mediamonks/configuration/MvcConfiguration.java", "file_name": "MvcConfiguration.java", "file_ext": "java", "fil... | package com.mediamonks.configuration;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.*;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
/**
* Created by zhangchen on 16/6/1.
*/
@Configuration
@EnableWebMvc
public class ... |
d180086b-db31-4604-bb1b-f8c6d1d54567 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-14 09:49:55", "repo_name": "hungnb94/Diary", "sub_path": "/app/src/main/java/example/com/hb/diary/fragment/ProgressFragment.java", "file_name": "ProgressFragment.java", "file_ext": "java", "file_size_in_byte":... | package example.com.hb.diary.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import example.com.hb.diary.App;
import example.com.hb.diary.R;
public class ProgressFragment extends Fragment {
p... |
a5b34fce-bf21-4bc3-91f4-b005921f8d7e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-04-07 23:34:27", "repo_name": "wiredcats/EventBasedWiredCats", "sub_path": "/src/Util2415/BlockingQueue.java", "file_name": "BlockingQueue.java", "file_ext": "java", "file_size_in_byte": 991, "line_count": 50, "l... | package Util2415;
import java.util.Vector;
/**
* Queue used to organize events in systems
*
* @author Robotics
*/
public class BlockingQueue {
private Vector queue; //events are held here
public BlockingQueue(int limit) {
queue = new Vector(limit);
}
public synchronized... |
37d6ef32-8c6d-430d-9d1a-b49e95be32a6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-10-05T14:40:27", "repo_name": "cardososamantha/superheromarket", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 989, "line_count": 29, "lang": "en", "doc_type": "te... | ## Steps to step
To run this project locally, you must follow this steps:
### 0: `Install the CORS Unblock extention`
This is required due to how browsers deal with different domains requests.\
Without this, the connection with the Super Hero API won't be possible.\
Install the extension here -> https://chrome.googl... |
38a51667-b28e-49f6-bd78-678fccdc303f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-24 16:57:13", "repo_name": "kangzhihu/gewara", "sub_path": "/gewara-api/src/main/java/com/gewara/api/vo/order/CheckAddOrderGoodsGiftRes.java", "file_name": "CheckAddOrderGoodsGiftRes.java", "file_ext": "java",... | package com.gewara.api.vo.order;
import java.io.Serializable;
import com.gewara.api.vo.goods.GoodsVo;
public class CheckAddOrderGoodsGiftRes implements Serializable{
/**
*
*/
private static final long serialVersionUID = -1237001182538322948L;
private Integer quantity;//赠品数量
private boolean isGiftExist;/... |
e8fa5b2d-d83b-4da0-b9a1-b0b719f08a9e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-27 14:04:14", "repo_name": "kinglongchen/mango", "sub_path": "/mango-core/src/test/java/com/kinglong/mango/core/common/util/ReflectUtilsTest.java", "file_name": "ReflectUtilsTest.java", "file_ext": "java", "fi... | package com.kinglong.mango.core.common.util;
import com.kinglong.mango.core.config.PropertyHolder;
import lombok.Data;
import org.junit.Test;
import java.lang.reflect.Method;
import java.util.List;
/**
* Created by chenjinlong on 16/1/14.
*/
public class ReflectUtilsTest {
@Test
public void getProperties()... |
f19a2ad0-225f-4cbe-accb-a405722065c5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-11-11 08:18:37", "repo_name": "cesarebek/todo-app-springboot", "sub_path": "/src/main/java/com/cezarybek/todoApp/controller/RoleController.java", "file_name": "RoleController.java", "file_ext": "java", "file_size... | package com.cezarybek.todoApp.controller;
import com.cezarybek.todoApp.model.Role;
import com.cezarybek.todoApp.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.List;
i... |
7b30af90-8537-40a1-a6ac-03b1fc43196b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-30 08:49:43", "repo_name": "fchen521/springLearn", "sub_path": "/miaosha/src/main/java/com/example/miaosha/miaosha/response/ResponseEntity.java", "file_name": "ResponseEntity.java", "file_ext": "java", "file_s... | package com.example.miaosha.miaosha.response;
public class ResponseEntity<T> {
public enum Status{
SUCCESS(200),FAIL(400);
private int code;
Status(int i) {
this.code = i;
}
public void setCode(int code) {
this.code = code;
}
... |
5754309e-0941-4536-ac8e-d1b96984b519 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-14 11:39:01", "repo_name": "mkhan9047/whatsOutside", "sub_path": "/app/src/main/java/com/example/mujahid/whatsoutside/Model/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 990, "... | package com.example.mujahid.whatsoutside.Model;
/**
* Created by Mujahid on 2/8/2018.
*/
public class Main {
private double temp;
private double pressure;
private int humidity;
private double temp_min;
private double temp_max;
private double sea_level;
public double getTemp() {
... |
6e03103d-f974-4fea-81d7-dd3f9e473a71 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-08-27T05:49:05", "repo_name": "arcinxe/ArktiDevicesWebApp", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 993, "line_count": 36, "lang": "en", "doc_type": "text", ... | # [ArktiDevices](https://arkti.azurewebsites.net) alpha
This application generates configurable interactive bar charts based on the changes of the parameters of mobile devices over time.
[arkti.azurewebsites.net](https://arkti.azurewebsites.net)
#### Features
* Choosing which brands and device types to include in c... |
1d3d649b-c347-4017-ad6b-e5722e774e3b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-10 10:32:08", "repo_name": "tito5460/practice", "sub_path": "/springboot-gradle-rabbitmq/produce/src/main/java/com/example/rabbit/produce/sender/TopicSender.java", "file_name": "TopicSender.java", "file_ext": ... | package com.example.rabbit.produce.sender;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class TopicSender {
@Autowired
private AmqpTemplate rabbitTemplate;
public void send1() ... |
a8f48355-9f9a-4ece-bdf5-1a42f0f002d7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-29 08:25:59", "repo_name": "dyj3344/mybatis_dyj", "sub_path": "/src/main/java/com/dyj/mybatis/test/OrderTest.java", "file_name": "OrderTest.java", "file_ext": "java", "file_size_in_byte": 990, "line_count": 33... | package com.dyj.mybatis.test;
import com.dyj.mybatis.domain.Orders;
import com.dyj.mybatis.mapper.OrderMapper;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.ju... |
549f1165-0025-4536-af34-d5cbca6e0ccc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-13 05:00:13", "repo_name": "amritkrishan/ParallelUniverse", "sub_path": "/src/main/java/com/universe/tasks/service/FamilyServiceImpl.java", "file_name": "FamilyServiceImpl.java", "file_ext": "java", "file_size... | package com.universe.tasks.service;
import com.universe.tasks.model.Family;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import com.universe.tasks.repository.FamilyRepository;
import ja... |
f73a008b-ce2d-451b-8d4f-9113c30efe7e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-03-17 08:17:37", "repo_name": "Harishwar/Sensorem", "sub_path": "/src/com/harishwar/sensorem/Proximity.java", "file_name": "Proximity.java", "file_ext": "java", "file_size_in_byte": 989, "line_count": 43, "lang":... | package com.harishwar.sensorem;
import com.harishwar.sensorem.SensorHandler;
import com.harishwar.sensorem.Proximity;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.widget.TextView;
public class Proximity extends SensorHandler {
private float lastVal = -1;
ComponentName compN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.