id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
c4842658-aea6-4e35-8a08-c055203263ab | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-02 11:55:31", "repo_name": "LiviaMitrica/News-Reader", "sub_path": "/app/src/main/java/com/liviamitrica/nr/ui/main/bindings/RecyclerBinding.java", "file_name": "RecyclerBinding.java", "file_ext": "java", "file... | package com.liviamitrica.nr.ui.main.bindings;
import androidx.databinding.BindingAdapter;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.liviamitrica.nr.ui.main.adapter.ArticleAdapter;
import com.liviamitrica.nr.ui.main.listener.NewsArticleHandler... |
84139307-1a56-4fa8-82fb-57e681638d27 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-07 12:50:24", "repo_name": "semiotproject/semiot-drivers", "sub_path": "/semiot-device-prototype/src/main/java/ru/semiot/platform/drivers/semiot/device/prototype/Activator.java", "file_name": "Activator.java",... | package ru.semiot.platform.drivers.semiot.device.prototype;
import org.apache.felix.dm.DependencyActivatorBase;
import org.apache.felix.dm.DependencyManager;
import org.osgi.framework.BundleContext;
import ru.semiot.platform.deviceproxyservice.api.drivers.DeviceDriver;
import ru.semiot.platform.deviceproxyservice.api.... |
60d811ef-a4e7-4039-8bf2-8d79f6b2b26f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-30 07:10:44", "repo_name": "DingSJ/Springboot-hello", "sub_path": "/src/main/java/com/example/demo/controller/HelloController.java", "file_name": "HelloController.java", "file_ext": "java", "file_size_in_byte"... | package com.example.demo.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import... |
99bd8082-be2e-4236-905e-5705918a35f6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-04 13:41:14", "repo_name": "hemanth1488/weatherapp", "sub_path": "/WeatherApp/app/src/main/java/com/ringmd/weatherapp/Model/DataPoint.java", "file_name": "DataPoint.java", "file_ext": "java", "file_size_in_byt... | package com.ringmd.weatherapp.Model;
import java.io.Serializable;
/**
* Created by hemanth on 31/12/2015.
*/
public class DataPoint implements Serializable {
Weather weather;
String city;
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getCla... |
1aa0ac85-895b-4e3b-bba2-9f0e5137c45d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-08 19:45:19", "repo_name": "Zan-the-Man01/QuoteBoss", "sub_path": "/app/src/main/java/com/example/quoteboss/SelectionActivity.java", "file_name": "SelectionActivity.java", "file_ext": "java", "file_size_in_byt... | package com.example.quoteboss;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
/**
* Represents the quote type selection menu of the app.
*/
public final class SelectionActivity extends AppCompatActivity {
@Override
pr... |
ae6a0da3-b5ae-4c85-a86b-020ecc5a71af | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-07 14:42:10", "repo_name": "Solomka/Pharmacy", "sub_path": "/src/main/java/com/upp/apteka/service/searchable/SearchablePatientService.java", "file_name": "SearchablePatientService.java", "file_ext": "java", "f... | package com.upp.apteka.service.searchable;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.upp.apteka.bo.Patient;
import com.upp.apteka.component.combobox.searchable.SearchableItem;
import com.... |
c63119b2-2901-409c-9c56-a5375f81a43e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-03 17:03:42", "repo_name": "ConnorYoto/GlyndwrTimetables", "sub_path": "/GlyndwrTimetables/app/src/main/java/com/example/glyndwrtimetables/AboutActivity.java", "file_name": "AboutActivity.java", "file_ext": "j... | package com.example.glyndwrtimetables;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class AboutActivity extends AppCompatActivity
{
// Interface
Button backButton;
@Override
protected void onCreate(Bundle sa... |
b49709d8-3de1-4c0b-ac44-0f12059d3505 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-15 19:34:24", "repo_name": "serenityHumbleness/openTriviaDBConsumption", "sub_path": "/consume-open-trivia-db/src/main/java/com/devprojects/consumeopentriviadb/views/QuestionResponse.java", "file_name": "Quest... | package com.devprojects.consumeopentriviadb.views;
import java.util.List;
import java.util.UUID;
public class QuestionResponse {
private UUID questionId;
private String question;
private List<String> answerChoices;
public QuestionResponse(UUID questionId, String question, List<String> answe... |
a0c2d2f0-8356-48d1-b613-f56b1796cf40 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-14 22:44:20", "repo_name": "Alex-astakhov/IO_Technologies", "sub_path": "/src/main/java/pageObjects/reportPages/LeftMenuBar.java", "file_name": "LeftMenuBar.java", "file_ext": "java", "file_size_in_byte": 998,... | package pageObjects.reportPages;
import core.MethodsFactory;
import org.openqa.selenium.By;
import ru.yandex.qatools.allure.annotations.Step;
public class LeftMenuBar extends MethodsFactory {
private By tvDashboardIcon = By.cssSelector(".fullscreen_icon");
private By homeLeftBar = By.cssSelector("[qa-... |
eb9748c0-4885-4aca-afca-addcf037fd36 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-22 02:49:05", "repo_name": "liao93213/codeTools", "sub_path": "/src/main/java/liao/utils/SpringTool.java", "file_name": "SpringTool.java", "file_ext": "java", "file_size_in_byte": 997, "line_count": 34, "lang"... | package liao.utils;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@Component
... |
e5c82e82-2264-4767-90b6-5cdedc0028ab | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-24 02:01:51", "repo_name": "htchepannou/uds-service", "sub_path": "/src/main/java/com/tchepannou/uds/dto/PermissionResponse.java", "file_name": "PermissionResponse.java", "file_ext": "java", "file_size_in_byte... | package com.tchepannou.uds.dto;
import com.google.common.base.Preconditions;
import com.tchepannou.uds.domain.Permission;
public class PermissionResponse {
//-- Attributes
private final long id;
private final String name;
//-- Constructor
private PermissionResponse(Builder builder){
Permi... |
7c354917-cc81-49ec-ab54-8f43b04dc300 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-13 17:22:09", "repo_name": "wrowston/MOOCHelsinki-Java-OOP-Part2", "sub_path": "/week10-week10_33.Dungeon/src/dungeon/GamePiece.java", "file_name": "GamePiece.java", "file_ext": "java", "file_size_in_byte": 99... | package dungeon;
import java.util.List;
public abstract class GamePiece {
String name;
int x;
int y;
int length;
int height;
public GamePiece(String name, int length, int height) {
this.name = name;
this.length = length;
this.height = height;
}
public String g... |
c0aa97f9-a9af-4ed1-9c7e-1dbfb0c44eb8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-04-19 07:10:29", "repo_name": "lukaselmer/ethz-db-project", "sub_path": "/src/main/java/ch/ethz/inf/dbproject/model/StretchGoal.java", "file_name": "StretchGoal.java", "file_ext": "java", "file_size_in_byte": 996... | package ch.ethz.inf.dbproject.model;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* Object that represents a stretch goal
*/
public class StretchGoal implements ComboInterface {
private final int id;
private final int project_id;
private final double amount;
private final String bonus;
publi... |
cdea120c-a949-4a9f-b12e-61c43c169f93 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-08 10:01:06", "repo_name": "zhangnengxian/GYPROJECT", "sub_path": "/GYproject-common/src/main/java/cc/dfsoft/uexpress/common/util/StringUtil.java", "file_name": "StringUtil.java", "file_ext": "java", "file_siz... | package cc.dfsoft.uexpress.common.util;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
/**
* 字符串处理工具类
* @author van.zheng
*
*/
public class StringUtil extends StringUtils{
/**
* 去除以逗号分隔的字符串的重复项
* @param str
* @return
*/
pub... |
e5b811fc-77ac-463f-82d8-9eb0a67d49c4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-08 02:06:56", "repo_name": "bootcamp-33-java/BPlacement_Spring", "sub_path": "/src/main/java/com/mii/BP/services/InterviewService.java", "file_name": "InterviewService.java", "file_ext": "java", "file_size_in_... | /*
* 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.mii.BP.services;
import com.mii.BP.entities.Interview;
import com.mii.BP.repositories.InterviewRepository;
import... |
2f34095f-0e99-4972-a990-7fb2113af4e7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-02-04 23:34:37", "repo_name": "Backchat/backchat-android", "sub_path": "/Backchat/src/com/youtell/backchat/tiles/GabTile.java", "file_name": "GabTile.java", "file_ext": "java", "file_size_in_byte": 996, "line_cou... | package com.youtell.backchat.tiles;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import com.youtell.backchat.Util;
import com.youtell.backchat.models.Friend;
import com.youtell.backchat.models.Gab;
import com.youtell.backchat.R;
import com.youtell.backchat.R.drawable;
publ... |
4f9e6476-0830-40c0-8c99-15935cf6197b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-04 20:26:39", "repo_name": "quasquilia/dumporly", "sub_path": "/src/main/java/com/guarascio/dumporly/Authenticator.java", "file_name": "Authenticator.java", "file_ext": "java", "file_size_in_byte": 996, "line_... | package com.guarascio.dumporly;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.WebDriverWait;
public class Authenticator {
private final WebDriver driver;
public Authenticator(WebDriver driver) {
this.d... |
3dbb1b5d-c26f-4072-bbd9-a5d4669a61ef | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-27 14:52:39", "repo_name": "nishad5089/University-Management", "sub_path": "/src/main/java/com/universitymanagementapp/universitymanagement/entity/SessionSemester.java", "file_name": "SessionSemester.java", "f... | package com.universitymanagementapp.universitymanagement.entity;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Set;
/**
* @author Abdur Rahim Nishad
* @created 09/01/2021 - 1:07 PM
... |
8b9ae558-d931-43b7-ae2b-7a88597dbf73 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-11-17 10:15:42", "repo_name": "yanpgeng/springbootdemo", "sub_path": "/springbootdemo-thread/src/main/java/com/example/springbootdemothread/productAndConsumer/productAndConsumerDemo01/Producer.java", "file_name":... | package com.example.springbootdemothread.productAndConsumer.productAndConsumerDemo01;
import java.util.Random;
/**
* @author YangPeng
* @Title: Producer
* @ProjectName springbootdemo
* @Description: 生产者线程类;
* @company ccxcredit
* @date 2019/5/20-16:13
*/
public class Producer implements Runnable {
/**
... |
9d690f14-cae4-48c4-96a9-84d86b020019 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-03 15:39:14", "repo_name": "ntduycs/candicode", "sub_path": "/src/main/java/vn/candicode/exception/handler/ResourceExceptionHandler.java", "file_name": "ResourceExceptionHandler.java", "file_ext": "java", "fil... | package vn.candicode.exception.handler;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.web.context.request.WebReq... |
3a201124-52ed-4ebe-9be3-19ab4ee21907 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-08-17T08:52:00", "repo_name": "conspir0/Hello-World", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1010, "line_count": 18, "lang": "en", "doc_type": "text", "blob... | # Hello Wolrd
>Welcome to my GitHhub profile. You can find some of my recent projects here. I have divided content in “Repositories” tab into three sections, for better readability and clarity.
## First Section - WEBSITE (numbers from 1 to 9)
>You can find websites (mostly designed and coded by myself; two of them is ... |
65040333-bc90-4c29-b624-052f8cd626bc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-24 06:12:38", "repo_name": "yashvardhan-kukreja/E-Guide-Android", "sub_path": "/app/src/main/java/com/eguide/yash1300/e_guide/responses/student/StudentFetchFavoriteTeachersResponse.java", "file_name": "Student... | package com.eguide.yash1300.e_guide.responses.student;
import com.eguide.yash1300.e_guide.models.FavoriteModel;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class StudentFetchFavoriteTeachersResponse {
@SerializedName("success")
... |
527fa2e2-8bb3-4cec-9a5f-74bc1676cb6d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-28 15:45:35", "repo_name": "musanabiyev/NBCOAPP", "sub_path": "/src/main/java/com/company/entity/CustomerData.java", "file_name": "CustomerData.java", "file_ext": "java", "file_size_in_byte": 995, "line_count"... | package com.company.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.Date;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "customer_data")
public class CustomerData {
@Id
@Ge... |
e4f9ea19-9070-4f9d-a8b2-aaee83b8f771 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-09 15:52:45", "repo_name": "enjoycode10/cloud2020", "sub_path": "/cloud-consumer-order80/src/main/java/com/okgo/springcloud/lb/MyLoadBalancerImpl.java", "file_name": "MyLoadBalancerImpl.java", "file_ext": "jav... | package com.okgo.springcloud.lb;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
/**
* @author Shawn
* @date 2020/3/27 14:47
* @title Function
*/
@Component
public class MyLoadBalanc... |
11c2ee6f-aec7-4a05-b069-3dd0d5bd3de5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-08-04 15:40:48", "repo_name": "andyglick/javATE", "sub_path": "/guidate/guidate-zk/src/main/java/it/amattioli/guidate/converters/EnumConverter.java", "file_name": "EnumConverter.java", "file_ext": "java", "file_s... | package it.amattioli.guidate.converters;
import it.amattioli.dominate.Described;
import it.amattioli.dominate.LocalDescribed;
import org.zkoss.util.Locales;
import org.zkoss.util.resource.Labels;
import org.zkoss.zk.ui.Component;
import org.zkoss.zkplus.databind.TypeConverter;
public class EnumConverter im... |
e5d445ad-e748-4a8a-8118-874a599f81f2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-26 16:19:18", "repo_name": "zhichao19930808/struts2-test", "sub_path": "/src/main/java/com/demo/utils/EncodingInterceptors.java", "file_name": "EncodingInterceptors.java", "file_ext": "java", "file_size_in_byt... | package com.demo.utils;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.Interceptor;
import org.apache.struts2.ServletActionContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class EncodingInterceptors implements I... |
cec24575-eab0-4eaa-811a-ec52f97c96fd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-12 14:40:32", "repo_name": "TarikoDan/Java-Lessons", "sub_path": "/src/lesson3_AbstractClass_Interface/Hierarchy/Wolf.java", "file_name": "Wolf.java", "file_ext": "java", "file_size_in_byte": 996, "line_count"... | package lesson3_AbstractClass_Interface.Hierarchy;
public class Wolf extends WildAnimal {
String name;
public void roar() {};
public Wolf() {
}
public Wolf(int age, String name) {
super(age);
this.name = name;
}
public String getName() {
return name;
}
pu... |
41b93ee1-2625-41de-9333-57469b04b646 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-30 01:35:47", "repo_name": "humbertonm/openweathermap-client", "sub_path": "/src/main/java/org/openweathermap/client/response/Clouds.java", "file_name": "Clouds.java", "file_ext": "java", "file_size_in_byte": ... |
package org.openweathermap.client.response;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* Created by beto on 26/11/15.
*/
@JsonIncl... |
9c611883-cf77-4223-994f-60d6416d8a3c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-08-26T16:07:28", "repo_name": "abbeygirl/nzedb", "sub_path": "/Release-Management.md", "file_name": "Release-Management.md", "file_ext": "md", "file_size_in_byte": 995, "line_count": 37, "lang": "en", "doc_ty... | # Managing Your Releases
Here a few commands/scripts that are useful for general day-to-day operations.
### Find a specific release based on ID
```
for i in {1..9999}; do ps aux | grep postprocess_new.php | grep -v grep | sed -e 's/://g' | awk '{print $13,$15 }' | grep 4751258; done
```
outputs the ID and GUID of the... |
8300a33a-9728-464c-89c1-0b3eba803608 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-17 15:26:11", "repo_name": "Samir009/Upasarga", "sub_path": "/app/src/main/java/com/samir/upasarga/activities/SwipeToRefresh.java", "file_name": "SwipeToRefresh.java", "file_ext": "java", "file_size_in_byte": ... | package com.samir.upasarga.activities;
import androidx.appcompat.app.AppCompatActivity;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import android.os.Bundle;
import android.widget.TextView;
import com.samir.upasarga.R;
public class SwipeToRefresh extends AppCompatActivity {
SwipeRefreshLayout... |
8e9a5419-9e47-4754-aa57-2f8bde5182f1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-01 05:20:15", "repo_name": "kaelbastos/Good_Clean_Fun", "sub_path": "/src/main/java/org/kaelbastos/Domain/UseCases/ProductsUseCases/InsertProductKit.java", "file_name": "InsertProductKit.java", "file_ext": "ja... | package org.kaelbastos.Domain.UseCases.ProductsUseCases;
import org.kaelbastos.Domain.CustomExceptions.EntityAlreadyExistsException;
import org.kaelbastos.Domain.Entities.Product.Product;
import org.kaelbastos.Domain.Entities.Product.ProductValidator;
import org.kaelbastos.Domain.Entities.utils.Notification;
import or... |
e141d261-377f-4c39-b73d-ca038a2b0711 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-18 10:33:41", "repo_name": "madhur-taneja/Student-Management-Portal", "sub_path": "/server/src/main/java/com/tektraining/loginmodule/models/student/Contact.java", "file_name": "Contact.java", "file_ext": "java... | package com.tektraining.loginmodule.models.student;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
public class Contact {
@NotBlank
@Size(max = 10)
private String phoneNumber;
private String address;
public Contact() {
}
public Contact(String p... |
a8b59f75-4476-4e20-8c92-8ac6ce6d3a14 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-14 09:39:26", "repo_name": "Doxuancanh3103/socialnetwork2", "sub_path": "/social-network/src/main/java/com/devteam/social_network/controller/FollowController.java", "file_name": "FollowController.java", "file_... | package com.devteam.social_network.controller;
import com.devteam.social_network.domain.Friend;
import com.devteam.social_network.service.FriendService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.spri... |
735bb467-57ef-49ce-95e0-0c317bf47dcb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-21 13:38:36", "repo_name": "xuhuawei131/PasManaSys", "sub_path": "/hwframeworklib/src/main/java/com/jiayuan/huawei/hwframeworklib/persistData/commdb/database/DataBaseConfig.java", "file_name": "DataBaseConfig.... | package com.jiayuan.huawei.hwframeworklib.persistData.commdb.database;
/**
* $desc$
*
* @author xuhuawei
* @time $date$ $time$
*/
public abstract class DataBaseConfig {
private String sqlCreate[];
private String sqlTableName[];
private String DB_NAME;
private int DB_VERSION;
public DataBaseCo... |
71cecb43-6ef9-4793-b2bf-5677eb66fdff | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-20 04:46:41", "repo_name": "astralbear435/KHFinalProject", "sub_path": "/src/main/java/kr/spring/websocket/ws/ChatHandshake.java", "file_name": "ChatHandshake.java", "file_ext": "java", "file_size_in_byte": 99... | package kr.spring.websocket.ws;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse;
import org.springframework.http.server.ServletServerHttpRequest;
import org.springframework.web.sock... |
9113b9bd-2e0f-44e3-bcc3-646e76ea2549 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-04 04:19:29", "repo_name": "tamvh/wahsis_cloud", "sub_path": "/src/com/wahsis/iot/model/RootAreaModel.java", "file_name": "RootAreaModel.java", "file_ext": "java", "file_size_in_byte": 996, "line_count": 36, "... | /*
* 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.wahsis.iot.model;
import java.io.IOException;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.Re... |
193d145e-65ae-4f65-9662-2bdfb1b6c072 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-22 09:51:39", "repo_name": "Yhongwu/springboot-demo", "sub_path": "/springboot_cache/src/main/java/com/howard/springboot03/web/TransactionController.java", "file_name": "TransactionController.java", "file_ext"... | package com.howard.springboot03.web;
import com.howard.springboot03.domain.Person;
import com.howard.springboot03.service.TransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
i... |
77461c46-5a5d-4814-910a-a18e70f02343 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-16 02:50:23", "repo_name": "MaybeAction/LoadImageThree-level", "sub_path": "/app/src/main/java/com/example/maybe/loadimagethreelevel/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "f... | package com.example.maybe.loadimagethreelevel;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity implements View.OnClickLis... |
120e936a-4501-4271-b35d-0759a58974c9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-10 10:38:25", "repo_name": "koushen001/study", "sub_path": "/src/main/java/com/cike/juc/sync/VectorExample2.java", "file_name": "VectorExample2.java", "file_ext": "java", "file_size_in_byte": 1006, "line_count... | package com.cike.juc.sync;
import lombok.extern.slf4j.Slf4j;
import java.util.List;
import java.util.Vector;
/**
* @Description 线程不安全
* @Author CIKE
* @Version 1.0
**/
@Slf4j
public class VectorExample2 {
private static List<Integer> vector = new Vector<>();
public static void main(String[] args) throws... |
9c253dff-e90a-45cc-9cd5-dd7418d42f19 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-29 14:02:48", "repo_name": "wangshujing/asaml", "sub_path": "/ASAML-Modeling-and-verification-system-Demo/src/com/saml/util/StateTransitionInfo.java", "file_name": "StateTransitionInfo.java", "file_ext": "java... | package com.saml.util;
import java.util.ArrayList;
import com.saml.util.StateTransitionRule;
public class StateTransitionInfo {
private ArrayList<StateTransitionRule> stRuleSet;
private ArrayList<String> states;
private ArrayList<String> edges;
public StateTransitionInfo(){
stRuleSet = new ArrayList<StateTra... |
dd4bcc52-bea2-406e-8dc8-91e3b295b391 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-30 13:43:28", "repo_name": "Phoen-X/ilia-practice", "sub_path": "/src/main/java/com/iredko/testBook/AvailableCharSets.java", "file_name": "AvailableCharSets.java", "file_ext": "java", "file_size_in_byte": 996,... | package com.iredko.testBook;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.Iterator;
import java.util.SortedMap;
public class AvailableCharSets {
public static void main(String[] args) {
int count = 0;
SortedMap<String, Charset> charSets= Charset.availableCharsets();
... |
33e3f1ac-f37f-46c9-ada7-b4c403e12bef | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-06-26 13:29:12", "repo_name": "iconmaster5326/HPPPlus", "sub_path": "/src/com/iconmaster/hppplus/link/LinkSpaceGlobal.java", "file_name": "LinkSpaceGlobal.java", "file_ext": "java", "file_size_in_byte": 997, "lin... |
package com.iconmaster.hppplus.link;
import java.util.HashMap;
/**
*
* @author iconmaster
*/
public class LinkSpaceGlobal extends LinkSpace implements Directable {
private final HashMap<String,FunctionPrototype> functions = new HashMap<>();
public LinkSpaceGlobal() {
super();
}
p... |
efa728db-5714-4beb-b0fb-9718ac7fb101 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-30 14:00:19", "repo_name": "rakshitkothari/RadiantAcademy", "sub_path": "/app/src/main/java/com/radiant/testradiant/ApplyNow.java", "file_name": "ApplyNow.java", "file_ext": "java", "file_size_in_byte": 995, "... | package com.radiant.testradiant;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
public class ApplyNow extends AppCompatActivity {
@SuppressLint("RestrictedApi")
... |
3c509b99-41d3-4808-b13f-0273e8cf733c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-12-08 06:54:37", "repo_name": "schmoe735/MaterialTest5", "sub_path": "/app/src/main/java/com/cliff/ozbargain/util/L.java", "file_name": "L.java", "file_ext": "java", "file_size_in_byte": 996, "line_count": 38, "l... | package com.cliff.ozbargain.util;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;
import com.ocpsoft.pretty.time.PrettyTime;
import java.util.Date;
import javax.xml.parsers.ParserConfigurationException;
/**
* Created by Clifford on 27/11/2015.
*/
public class L {
public ... |
65c6a68c-8ce3-472e-a2cc-306fcc7d66fc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-01 16:28:37", "repo_name": "olaholstad/shopcase", "sub_path": "/src/main/java/MockStoreMain.java", "file_name": "MockStoreMain.java", "file_ext": "java", "file_size_in_byte": 995, "line_count": 28, "lang": "en... | import routes.*;
import spark.Spark;
import storage.CustomerStorage;
import storage.CustomerStorageImpl;
import storage.OrderStorageImpl;
import util.Configuration;
import util.ConfigurationImpl;
public class MockStoreMain {
public static void main(String[] args) {
Configuration configuration = Configurat... |
d26ab304-6112-451e-bb82-b6ea1afed066 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-13 02:58:46", "repo_name": "huanshilang1985/zh-springboot-demo", "sub_path": "/zh-springboot-common/src/main/java/com/zh/common/web/ConfigController.java", "file_name": "ConfigController.java", "file_ext": "ja... | package com.zh.common.web;
import com.zh.common.common.JsonResult;
import com.zh.common.config.UserConfig;
import com.zh.common.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMa... |
5360fda4-2312-47d6-b885-d41668bfed36 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-10-30T11:58:27", "repo_name": "heyjaywilson/moodlogger", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 995, "line_count": 27, "lang": "en", "doc_type": "text", "bl... | 


;
public static Connection getConn()
{
Connection conn = ... |
e6b016c9-b9cd-47be-9993-77e3f25f885b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-17 18:14:53", "repo_name": "rafagameiro/SD", "sub_path": "/P3/src/impl/srv/soap/SoapMediaResources.java", "file_name": "SoapMediaResources.java", "file_ext": "java", "file_size_in_byte": 996, "line_count": 39,... | package impl.srv.soap;
import impl.srv.shared.JavaMedia;
import microgram.api.java.Media;
import microgram.api.java.Result;
import microgram.api.rest.RestMediaStorage;
import microgram.api.soap.MicrogramException;
import microgram.api.soap.SoapMedia;
public class SoapMediaResources implements SoapMedia {
final Medi... |
5ab9dd3f-687f-473d-84f9-8c57ecc15088 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2010-11-05 12:31:18", "repo_name": "wInuX/tz", "sub_path": "/tz-core/src/main/java/tz/interceptor/RepeaterLink.java", "file_name": "RepeaterLink.java", "file_ext": "java", "file_size_in_byte": 997, "line_count": 35, "... | package tz.interceptor;
/**
* @author Dmitry Shyshkin
*/
public class RepeaterLink {
private LinkControl masterSlaveControl;
private LinkControl slaveMasterControl;
public RepeaterLink(InterceptedConnection connection) {
masterSlaveControl = connection.getMasterSlaveControl();
... |
196a07ff-d2b2-4a61-938e-2e4d0d5d2210 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-12-28T23:19:25", "repo_name": "bselman1/udacity-lightsail", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 996, "line_count": 30, "lang": "en", "doc_type": "text", ... | # Item Catalog Hosted on Amazon Lightsail Instance
## IP Address:
35.172.137.85
## SSH Port
2200
## URL
http://35.172.137.85.xip.io
## Configuration changes
- Added user grader
- Added user grader to the sudoers list
- Removed non public key authentication
- Removed root ssh authentication
- Updated softw... |
0e46fccd-e207-431c-8be1-7de63547fb63 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-04 11:27:49", "repo_name": "baekcedar/Android-Basic", "sub_path": "/BasicWidget/app/src/main/java/com/hyangmok/android/basicwidget/SwitchActivity.java", "file_name": "SwitchActivity.java", "file_ext": "java", ... | package com.hyangmok.android.basicwidget;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.CompoundButton;
import android.widget.Switch;
import android.widget.TextView;
public class SwitchActivity extends AppCompatActivity {
TextView textView;
Switch sw;
@O... |
c0f8db33-ef0b-4968-a19e-caa7f0cfb71d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-03-11 06:17:12", "repo_name": "caimingqin/app", "sub_path": "/src/test/java/com/caimingqin/mvc/web/ObjectMapperTest.java", "file_name": "ObjectMapperTest.java", "file_ext": "java", "file_size_in_byte": 997, "line... | package com.caimingqin.mvc.web;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;
import org.junit.Test;
import com... |
44677aab-93a5-4e1c-a727-0d516133b7f7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-08-25T10:30:37", "repo_name": "site-prism/site_prism", "sub_path": "/.github/CONTRIBUTING.md", "file_name": "CONTRIBUTING.md", "file_ext": "md", "file_size_in_byte": 996, "line_count": 26, "lang": "en", "doc_... | # PR template for SitePrism framework
Thanks for offering to help by contributing a PR to site_prism.
Please help us understand your change by including the following information in your PR.
## Type of PR
- Feature / Bugfix / Refactor
## Reasons for Change
If you feel it easier to describe the change with code block... |
61a14183-c62e-47a9-ab8f-e75ae42085a1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-10 04:20:15", "repo_name": "dovikn/inegotiate-android", "sub_path": "/src/com/google/gdata/client/authn/oauth/GoogleOAuthHelper.java", "file_name": "GoogleOAuthHelper.java", "file_ext": "java", "file_size_in_b... | package com.google.gdata.client.authn.oauth;
import com.google.gdata.client.authn.oauthproxy.OAuthProxyRequest;
public class GoogleOAuthHelper extends OAuthHelper {
private static String accessTokenUrl;
private static String requestTokenUrl;
private static String revokeTokenUrl;
private static String ... |
3041d4ac-ad57-4186-90c1-2860ccfe2e5b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-09-30 08:58:43", "repo_name": "dzhukov89/test", "sub_path": "/src/main/java/quenue/TestProducer.java", "file_name": "TestProducer.java", "file_ext": "java", "file_size_in_byte": 1000, "line_count": 35, "lang": "e... | package quenue;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import java.io.IOException;
/**
* @author abelski
*/
public class TestProducer {
private static final String QUEUE_NAME = "testQ";
public static void main(String[] args)... |
4f01611e-5b40-4e2e-b216-8106c684c69c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-01 08:31:34", "repo_name": "LWHTarena/lwh-example", "sub_path": "/lwh-redis2020/lwh-redisson/src/test/java/com/lwhtarena/lettuce/BasicUsage.java", "file_name": "BasicUsage.java", "file_ext": "java", "file_size... | package com.lwhtarena.lettuce;
import io.lettuce.core.ClientOptions;
import io.lettuce.core.RedisClient;
import io.lettuce.core.api.StatefulRedisConnection;
import io.lettuce.core.api.sync.RedisStringCommands;
import io.lettuce.core.resource.ClientResources;
/**
* @author liwh
* @version 1.0
* @date 2021/04/18 17:... |
1e367038-2871-407b-911a-f2650c42be19 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-27 12:38:12", "repo_name": "Kalluri92/SamplePracticeSpring", "sub_path": "/OurPortal/src/main/java/com/ourportal/directory/Response.java", "file_name": "Response.java", "file_ext": "java", "file_size_in_byte":... | package com.ourportal.directory;
import java.util.List;
public class Response {
private boolean success;
private String responseMessage;
private List<Object> optionalResponseObject;
public boolean isSuccess() {
return success;
}
public void setSuccess(boolean success) {
this.success = succe... |
a9d5e2a9-ec2f-45a4-afd0-6ac29c85e9d6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-12 19:38:44", "repo_name": "nat32/levelup", "sub_path": "/main/java/com/springapp/controller/HelloController.java", "file_name": "HelloController.java", "file_ext": "java", "file_size_in_byte": 995, "line_coun... | package com.springapp.controller;
import com.springapp.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.... |
6cce7a3f-1a2a-4db8-9c81-5fc838ad6506 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-12-11T12:28:07", "repo_name": "BarbaraJoebstl/udagram-filtering-microservice", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 996, "line_count": 15, "lang": "en", "... | # Udagram Image Filtering Microservice
Udagram is a simple cloud application developed alongside the Udacity Cloud Engineering Nanodegree. It allows users to register and log into a web client, post photos to the feed, and process photos using an image filtering microservice. This is a part of the [cloud developer bas... |
8ad2dcbf-4883-483e-83aa-28febac53911 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-04 16:34:37", "repo_name": "searchgadchiroli/search-config", "sub_path": "/search-csv/search-registration/src/main/java/org/bahmni/implementation/searchconfig/request/PatientAddress.java", "file_name": "Patien... | package org.bahmni.implementation.searchconfig.request;
import lombok.Data;
@Data
public class PatientAddress {
private String uuid;
private String address3;
private String cityVillage;
private String countyDistrict;
private String stateProvince;
private String country;
public PatientAddr... |
f5d420ca-6518-4dbd-8166-7a28ec475bfa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-08 10:08:17", "repo_name": "cqupt-gsy/distributed-transaction", "sub_path": "/api/src/main/java/apprentice/practice/api/enums/Results.java", "file_name": "Results.java", "file_ext": "java", "file_size_in_byte"... | package apprentice.practice.api.enums;
public enum Results {
CREATE_TRANSACTION_SUCCESS("Transaction create success and in TRY status."),
TRYING_STATUS("Transaction still in TRY status, retry again."),
CONFIRM_STATUS("Transaction already finished with CONFIRM status, please do not retry."),
CANCEL_STATUS(
... |
47c342be-d631-4b0f-9249-25334ef7824b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-07-23 09:08:27", "repo_name": "duongbv93/SkypeMiniJava", "sub_path": "/ServerSide_OLD/src/database/ConnectionUtils.java", "file_name": "ConnectionUtils.java", "file_ext": "java", "file_size_in_byte": 996, "line_c... | /*
* 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 database;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
*
* @author NQH
*/
... |
711478c3-0e06-4485-a1d9-62bf6c362eef | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-06-08 13:09:31", "repo_name": "RyanTech/yueji", "sub_path": "/amazon/src/main/java/com/yue/app/web/amazon/member/MemberDefaultCondition.java", "file_name": "MemberDefaultCondition.java", "file_ext": "java", "file... | /*
* Copyright 2011-2016 YueJi.com All right reserved. This software is the confidential and proprietary information of
* YueJi.com ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into with Yu... |
d7477567-a8f7-4975-ba3b-511da663883a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-16 12:55:15", "repo_name": "gpraveenk88/williamssonomachallenge", "sub_path": "/src/main/java/com/test/williamssonoma/challenge/helpers/StringHelper.java", "file_name": "StringHelper.java", "file_ext": "java",... | package com.test.williamssonoma.challenge.helpers;
import com.test.williamssonoma.challenge.bean.ZipCodeRange;
public class StringHelper {
public static String connect(String[] arr, String delimiter) {
StringBuffer buf = new StringBuffer();
boolean first = false;
for(String item : arr) {... |
82814fcf-c600-44de-b69e-e2cd327a4f95 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-07 14:48:35", "repo_name": "namtv1997/Vdt", "sub_path": "/VPDT1/app/src/main/java/com/vpdt/vpdt/model/Noinhan.java", "file_name": "Noinhan.java", "file_ext": "java", "file_size_in_byte": 996, "line_count": 48,... | package com.vpdt.vpdt.model;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Noinhan implements Parcelable {
@SerializedName("mthu")
@Expose
private String mthu;
protected Noinhan(Parce... |
3283f041-fdcd-4583-9085-a31d115c3219 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-04 08:31:02", "repo_name": "moon928/MyAlbum-Boot", "sub_path": "/myalbum-service-provider-backstage/src/main/java/cn/yan_wm/myalbum/service/provider/backstage/job/RabbiMQJob.java", "file_name": "RabbiMQJob.jav... | package cn.yan_wm.myalbum.service.provider.backstage.job;
import cn.yan_wm.myalbum.commons.utils.MapperUtils;
import cn.yan_wm.myalbum.service.provider.backstage.service.BackstageService;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
im... |
025b7ce2-b089-4c5a-9b48-7af32b19263b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-31 07:02:57", "repo_name": "908472814/assisted_util", "sub_path": "/entity_util/src/main/java/org/hhp/opensource/entityutil/structure/Referenced.java", "file_name": "Referenced.java", "file_ext": "java", "file... | package org.hhp.opensource.entityutil.structure;
import org.hhp.opensource.entityutil.util.Utils;
/**
* 被引用方
*/
public class Referenced {
private String entityName;
private String entityColumnName;
public String getEntityName() {
return entityName;
}
public void setEntityName(String entityNa... |
47660338-c7d3-400e-aa27-519f2a580a74 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-15 10:49:20", "repo_name": "QuocTuan1998/MSC", "sub_path": "/app/src/main/java/com/example/quoctuan/msc/Adapter/Play/PlayViewpagerAdapter.java", "file_name": "PlayViewpagerAdapter.java", "file_ext": "java", "f... | package com.example.quoctuan.msc.Adapter.Play;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.example.quoctuan.msc.view.PlayMusic.fragment.ListMusicFragment;
import com.example.quoctuan.msc.view.PlayMusic.fragment.L... |
2bd2b762-93aa-4d1c-9bdf-ac10d7f75911 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-05-09T11:05:47", "repo_name": "FancyChaos/fcopy", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 997, "line_count": 26, "lang": "en", "doc_type": "text", "blob_id":... | # f(ile)copy - Copy the content of a file
**fcopy** is a simple and fast program, to copy the content of a file into the clipboard.
**fcopy** is programmed for the *X Window System* and currently does only support that (to an extend).
# Usage
For now, **fcopy** can only copy the whole content of a file to the clipboar... |
91a3a2d7-6bfc-48e0-b5e2-f0b461c4dd3e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-01 21:28:40", "repo_name": "ErikaFernandes/WeLoveLinux", "sub_path": "/WeLoveLinuxAPI/src/com/erika/welovelinuxapi/command/ExecCommand.java", "file_name": "ExecCommand.java", "file_ext": "java", "file_size_in_... | package com.erika.welovelinuxapi.command;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class ExecCommand {
public List<String> executeCommand(String command) throws IOException {
List<String> result = new Arr... |
23d18edf-8dc4-4fe6-bd09-d6e397701874 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-27 00:30:32", "repo_name": "ndefilippis/APCS-BlockMario", "sub_path": "/entities/Entity.java", "file_name": "Entity.java", "file_ext": "java", "file_size_in_byte": 995, "line_count": 65, "lang": "en", "doc_typ... | package entities;
import game.Direction;
import java.awt.Graphics;
import java.awt.geom.Rectangle2D;
public abstract class Entity{
protected int x, y, width, height;
protected boolean passThrough;
protected int serialNum;
public Entity(int x, int y, int width, int height) {
this.x = x;
this.y = y;
this.he... |
aa0485bb-215e-4fdf-bba1-aaf86ca7f271 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-10 21:13:40", "repo_name": "vsbpro/webserver", "sub_path": "/src/main/java/org/vsb/webserver/Request.java", "file_name": "Request.java", "file_ext": "java", "file_size_in_byte": 996, "line_count": 35, "lang": ... | package org.vsb.webserver;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.HttpClientBuilder;
public class Request {
public static void main(String[] ... |
40bc7d26-388b-4af1-a4a2-d03cae291dc0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2011-12-01T21:10:36", "repo_name": "jaekwon/YCatalyst", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 995, "line_count": 39, "lang": "en", "doc_type": "text", "blob_id"... | DEAD PROJECT
============
This project is dead. A new web framework for node.js+coffeescript is in the works.
YCatalyst
=========
YCatalyst is a Hacker News clone written for Node.js in Coffeescript.
You can view the original site at http://ycatalyst.com.
Please note that this is alpha quality and very ... |
93c5705f-ff44-4c34-9ce5-52dc502a3428 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-22 17:32:50", "repo_name": "ProgrammerChirag/assignment", "sub_path": "/app/src/main/java/com/selflearn/assignment2/walletActivity.java", "file_name": "walletActivity.java", "file_ext": "java", "file_size_in_b... | package com.selflearn.assignment2;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.DividerItemDecoration;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
public class walletActivity extends AppCo... |
bf10027b-9a87-405f-992e-a5f17b2a8c4b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-03-13 18:49:43", "repo_name": "guhama/dataConv", "sub_path": "/src/main/java/com/premierinc/informatics/dataconv/DataConversionStatus.java", "file_name": "DataConversionStatus.java", "file_ext": "java", "file_siz... | package com.premierinc.informatics.dataconv;
/**
* The Enum DataConversionStatus.
*
* @author ypatil
*/
public enum DataConversionStatus {
QMR_BLOCK("QB"), AE_PENDING("AP"), QMR_RUN("QR"), QMR_COMPLETE("QC");
private String statusCode;
/**
* Instantiates a new data conversion status.
*
* @param st... |
2cfce410-adaa-451f-8c0b-d058c72fca52 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-07 01:37:18", "repo_name": "i1red/oop-5th-sem", "sub_path": "/Problems/Problem1/Client/src/main/java/com/red/app/Client.java", "file_name": "Client.java", "file_ext": "java", "file_size_in_byte": 995, "line_co... | package com.red.app;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Socket;
public class Client implements AutoCloseable {
private final Socket socket;
private final DataOutputStream writer;
private final Buffer... |
bb2a60d5-c13c-4a80-aeaa-bbad08088317 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-30 06:44:11", "repo_name": "paperMountainn/InfoSys1D", "sub_path": "/notigoapplication50001/services/homework/MockHomeworkRepository.java", "file_name": "MockHomeworkRepository.java", "file_ext": "java", "file... | package com.example.notigoapplication50001.services.homework;
import com.example.notigoapplication50001.services.user.User;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class MockHomeworkRepository implements HomeworkRepository{
private final HashMap<User, List<Homework>> ... |
68498625-c9ac-48cb-b795-d3584f38dfbd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-19 16:15:59", "repo_name": "AleTid5/UTN_PAII_TP3", "sub_path": "/app/src/main/java/src/Activities/ui/account/AccountFragment.java", "file_name": "AccountFragment.java", "file_ext": "java", "file_size_in_byte":... | package src.Activities.ui.account;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProvider;
import com.example.tp3_pa_grupo_3.R;
publi... |
52b7aa07-7695-4a96-84c9-7fb02b92a53d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-10-12 05:00:50", "repo_name": "itskoolsid/dbslPropGen", "sub_path": "/DBSL_ProposalGenerator/src/com/dbsl/proposalgenerator/gui/admin/wizard/solution/form/SolutionAddForm.java", "file_name": "SolutionAddForm.java... | package com.dbsl.proposalgenerator.gui.admin.wizard.solution.form;
import java.util.Date;
import com.dbsl.proposalgenerator.commons.util.ImageUploadPanel;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.DateField;
import com.vaadin.ui.FormLayout;
import com.vaadin.ui.TextField;
@SuppressWarnings("serial")... |
60b9d742-f30b-4c3c-9fa4-ea42b0abde7a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-07-25 20:54:07", "repo_name": "Madzi/featurea", "sub_path": "/samples/mario/src/mario/objects/bonuses/Coin.java", "file_name": "Coin.java", "file_ext": "java", "file_size_in_byte": 995, "line_count": 43, "lang": ... | package mario.objects.bonuses;
import featurea.platformer.Animation;
import featurea.platformer.overlap.Overlap;
import featurea.platformer.physics.Body;
import mario.Sprites;
import mario.objects.hero.Hero;
import mario.objects.hero.World;
public class Coin extends Body {
private static final double width = Sprit... |
c77afe20-209f-4888-a884-dd2b5fbaf6d0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-03-24 08:03:13", "repo_name": "SeelabFhdo/lemma", "sub_path": "/de.fhdo.lemma.model_processing.eclipse.launcher/xtend-gen/de/fhdo/lemma/model_processing/eclipse/launcher/processing_configurations/arguments/kinds/... | package de.fhdo.lemma.model_processing.eclipse.launcher.processing_configurations.arguments.kinds;
import de.fhdo.lemma.model_processing.eclipse.launcher.processing_configurations.arguments.types.ArgumentTypeFactory;
import de.fhdo.lemma.model_processing.eclipse.launcher.processing_configurations.arguments.types.Inter... |
ba8342d6-daa5-4445-9488-e14929e6132b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-03 18:29:10", "repo_name": "etp404/vocabinator", "sub_path": "/app/src/main/java/uk/co/mould/matt/vocabinator/Question.java", "file_name": "Question.java", "file_ext": "java", "file_size_in_byte": 995, "line_c... | package uk.co.mould.matt.vocabinator;
public class Question {
public final String questionWord;
public final String correctAnswer;
public Question(String questionWord, String correctAnswer) {
this.questionWord = questionWord;
this.correctAnswer = correctAnswer;
}
@Override
pub... |
14877e78-1a8c-4647-91d6-333cc16fa5d2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-05-11 11:15:26", "repo_name": "cmusv-sc/OpenNEX-Team6", "sub_path": "/app/controllers/MakeSession.java", "file_name": "MakeSession.java", "file_ext": "java", "file_size_in_byte": 994, "line_count": 40, "lang": "e... | package controllers;
import models.Session;
import play.mvc.*;
import play.data.*;
import static play.data.Form.*;
import views.html.makesession.*;
import models.*;
public class MakeSession extends Controller {
/**
* Defines a form wrapping the User class.
*/
final static Form<models.Session... |
7a264236-3514-452a-985f-895e9f538ef2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-11 11:43:25", "repo_name": "ouya2/weather-rest-demo", "sub_path": "/weather-window-api/src/main/java/com/rocketco/weather/api/dto/response/LaunchWindow.java", "file_name": "LaunchWindow.java", "file_ext": "jav... | package com.rocketco.weather.api.dto.response;
import java.io.Serializable;
/**
* The launch window DTO.
*/
public class LaunchWindow implements Serializable {
private String location;
private String datetime;
private long score;
public LaunchWindow(String location, String datetime, long score) {
this... |
18dca546-e814-4936-abb6-471d6b7437c7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-14 07:09:26", "repo_name": "Hyq0823/GpsDemo", "sub_path": "/GpsDemo/src/main/java/com/spzh/controller/PdfController.java", "file_name": "PdfController.java", "file_ext": "java", "file_size_in_byte": 995, "line... | package com.spzh.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
@Controller
@RequestMapping("pdf")
public class PdfController {
@RequestMapping("/par... |
61ca68f7-9f6f-46f3-975c-68128799cacb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-06-15 21:49:40", "repo_name": "pageone/asmack", "sub_path": "/static-src/custom/org/jivesoftware/smack/SmackAndroid.java", "file_name": "SmackAndroid.java", "file_ext": "java", "file_size_in_byte": 995, "line_cou... | package org.jivesoftware.smack;
import org.jivesoftware.smackx.ConfigureProviderManager;
import org.xbill.DNS.ResolverConfig;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
public class SmackAndroid {
private static Sm... |
afaf2986-9044-4e4a-8e5a-6052a55799d2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-27 01:49:21", "repo_name": "mbragariano/go-study-api", "sub_path": "/src/main/java/br/com/mbragariano/gostudyapi/domains/presentation/handlers/failures/contracts/CreateUserFailureHandler.java", "file_name": "C... | package br.com.mbragariano.gostudyapi.domains.presentation.handlers.failures.contracts;
import br.com.mbragariano.gostudyapi.domains.application.failures.contracts.CreateUserFailure;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springfra... |
25019b31-5f0d-4043-a6b9-5a9e3f0180ad | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-20 12:18:48", "repo_name": "ruchikabobade/bank-account-manager", "sub_path": "/src/main/java/com/hackerearth/esri/bank/controller/BankAccountManagerController.java", "file_name": "BankAccountManagerController.... | package com.hackerearth.esri.bank.controller;
import com.hackerearth.esri.bank.model.BankTransactionDetailsResponse;
import com.hackerearth.esri.bank.service.BankAccountManagerService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... |
08d4b689-944e-4727-9d7d-529773b323ad | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-16 19:42:06", "repo_name": "JohnSzepesi/adios", "sub_path": "/src/main/java/hu/janos/adios/ejb/LoginManager.java", "file_name": "LoginManager.java", "file_ext": "java", "file_size_in_byte": 994, "line_count": ... | package hu.janos.adios.ejb;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import hu.janos.adios.model.User;
@Stateless
public class LoginManager implements ILoginManager{
@Persistenc... |
5904c87e-7e06-41f3-a478-8b381e5a8908 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-04 17:36:23", "repo_name": "seahen/restaurant-rn", "sub_path": "/src/main/java/com/demo/connectrn/models/ReservationResponse.java", "file_name": "ReservationResponse.java", "file_ext": "java", "file_size_in_by... | package com.demo.connectrn.models;
import java.util.ArrayList;
import java.util.List;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* Response data structure packaging which reservation requests were successful and which were not.
*
* @author sean
*/
@Schema(title = "Response to reservation requests.")... |
77684725-53bb-4bbd-b309-1ce86c6e5d64 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-05 15:28:55", "repo_name": "yuxuedanqing/SpringBoot", "sub_path": "/Spring-Boot-JdbcTemplate/src/main/java/com/snails/jdbc/service/impl/StudentServiceImpl.java", "file_name": "StudentServiceImpl.java", "file_e... | package com.snails.jdbc.service.impl;
import com.snails.jdbc.bean.Student;
import com.snails.jdbc.dao.StudentDao;
import com.snails.jdbc.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
@S... |
79ac8ffe-cfe2-4926-bd2b-f4aae7324a7a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-02-01 05:18:12", "repo_name": "Kenadia/Visualizing-Diff-Eqs", "sub_path": "/src/Function.java", "file_name": "Function.java", "file_ext": "java", "file_size_in_byte": 995, "line_count": 41, "lang": "en", "doc_typ... | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package differential;
/**
*
* @author kenschiller
*/
public class Function extends Graphable {
public Function(String string) {
super(string); //theory
}
public double operate(double x) {
... |
3cd7c1de-8351-4eee-a90b-d3ea4fb39092 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-06 13:15:35", "repo_name": "lindar-open/getAddress.io-client", "sub_path": "/src/main/java/com/lindar/getaddress/io/client/api/IPAddressResource.java", "file_name": "IPAddressResource.java", "file_ext": "java"... | package com.lindar.getaddress.io.client.api;
import com.google.gson.reflect.TypeToken;
import com.lindar.getaddress.io.client.util.GetAddressConfigs;
import com.lindar.getaddress.io.client.vo.GetAddressResponse;
import com.lindar.getaddress.io.client.vo.IPAddressVO;
import com.lindar.wellrested.vo.Result;
import java... |
3e2e8a1e-ea07-4a7b-abba-c171850c959f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-07-11T14:41:13", "repo_name": "PartapSBimrah/Social-Networking-Site", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 995, "line_count": 33, "lang": "en", "doc_type"... | # Social-Networking-Site
Just a social app. This app is mostly completed but some bugs would be there.
**google-services.json file has been deleted for security reasons. Place your google-services.json in /app folder**
## Available features
* Registration
- Registration and logging in using firebase **(stable)**... |
11491614-71bb-4858-b374-6292ac3025ef | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-03-17 13:05:04", "repo_name": "eniacce/hql-builder", "sub_path": "/hql-builder/hql-builder-web/hql-builder-webservice/src/main/java/org/tools/hqlbuilder/webservice/jquery/ui/owl_carousel_2/OwlCarousel2.java", "fi... | package org.tools.hqlbuilder.webservice.jquery.ui.owl_carousel_2;
import org.tools.hqlbuilder.webservice.jquery.ui.jqueryui.JQueryUI;
import org.tools.hqlbuilder.webservice.wicket.CssResourceReference;
import org.tools.hqlbuilder.webservice.wicket.JavaScriptResourceReference;
/**
* @author http://www.owlcarousel.owl... |
b622d0b6-b93d-454d-9bd6-b29e65fdcb3b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-08-07 22:37:53", "repo_name": "kwanggithub/floodlight-floodlight", "sub_path": "/core/src/main/java/org/projectfloodlight/core/types/NodeInterfaceTuple.java", "file_name": "NodeInterfaceTuple.java", "file_ext": "... | package org.projectfloodlight.core.types;
import org.openflow.util.HexString;
import org.projectfloodlight.db.data.annotation.BigDBProperty;
import org.projectfloodlight.topology.NodePortTuple;
/**
* Represents a Switch DPID along with it's port and interface.
* @author alexreimers
*
*/
public class NodeInterface... |
c22afca7-dbb8-41e7-84c8-9dd928539f9b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-28 04:15:19", "repo_name": "deividfsantos/bdd-cucumber-junit", "sub_path": "/src/main/java/com/deividsantos/bdd/service/ClientService.java", "file_name": "ClientService.java", "file_ext": "java", "file_size_in... | package com.deividsantos.bdd.service;
import com.deividsantos.bdd.dto.Client;
import com.deividsantos.bdd.repository.ClientRepository;
import com.deividsantos.bdd.restClient.CountryClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.io.IOEx... |
6bff5f69-882f-4261-8d15-1b648773905c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-08 18:31:59", "repo_name": "Feavy/Pokemon", "sub_path": "/src/fr/feavy/pokemon/ui/scenes/world/WorldScene.java", "file_name": "WorldScene.java", "file_ext": "java", "file_size_in_byte": 995, "line_count": 40, ... | package fr.feavy.pokemon.ui.scenes.world;
import fr.feavy.pokemon.map.Map;
import fr.feavy.pokemon.ui.scenes.Scene;
import java.awt.*;
import java.awt.image.ImageObserver;
import static fr.feavy.pokemon.ui.GamePanel.TILE_WIDTH;
public class WorldScene extends Scene {
private final Camera camera;
private Map... |
052b449d-ca20-4e79-99d9-f5d9e04d1d35 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-18 18:52:16", "repo_name": "trohovsky/coding-dojo-spring-boot", "sub_path": "/src/main/java/com/assignment/spring/client/api/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 995, ... | package com.assignment.spring.client.api;
import com.fasterxml.jackson.annotation.*;
import lombok.Data;
import java.util.HashMap;
import java.util.Map;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"temp",
"pressure",
"humidity",
"temp_min",
"temp_max"
})
@D... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.