id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
648545a3-7572-461b-a025-7e71d3293c2f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-10-26T15:04:07", "repo_name": "Glazzes/reanimating", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 731, "line_count": 13, "lang": "en", "doc_type": "text", "blob_i... | ## ReAnimating
### About
React native reanimated 2 has been a game changer since it's release, the idea behind this project it's to re-invent animations from real world apps, designs or code challenges with it.
### Known problems and limitations
- Binding `onScroll` values from scrollable components like `ScrollView`... |
68bd5c9a-0ea9-4c2d-8eab-db05b517c354 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-02-05T11:43:32", "repo_name": "nawnaw7/study-log", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 735, "line_count": 24, "lang": "en", "doc_type": "text", "blob_id"... | # Study Log
## *This is a journal of my Front End learning path*
I'm going to document my progress in the field of web development by putting up a journal containing all my learnings, exercises, courses, as well as everything else than helped me on my path of becoming a better Front End Developer.
I'm going to keep... |
cbc1f450-041c-4ac5-b500-f38095dac8a5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-28 07:52:49", "repo_name": "BorisKunda/SimaRedesigned", "sub_path": "/app/src/main/java/com/happytrees/simpletorefuel/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byt... | package com.happytrees.simpletorefuel;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected v... |
809f2beb-20c7-4ee3-a0fb-0a2c7b33624b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-09 17:51:55", "repo_name": "Aneta90/DevMeet", "sub_path": "/src/main/java/pl/com/devmeet/devmeetcore/group_associated/group/domain/GroupDto.java", "file_name": "GroupDto.java", "file_ext": "java", "file_size_i... | package pl.com.devmeet.devmeetcore.group_associated.group.domain;
import lombok.*;
import org.joda.time.DateTime;
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
public class GroupDto {
private Long id;
private String groupName;
private String website;
private String description;
// ... |
b01416ed-bceb-4cf5-9bcb-32d0cefa27c8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-08-01T12:54:04", "repo_name": "dtw/versionpkg", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 732, "line_count": 16, "lang": "en", "doc_type": "text", "blob_id": "... | # versionpkg
In 2005 Arch Linux didn't have any standard methods for building packages from VCS repositories using makepkg.
To begin to address this I added this page to the Arch Linux wiki:
https://wiki.archlinux.org/index.php?title=VCS_package_guidelines&oldid=758
A few days later I created an extremely rudimenta... |
25b8b1dd-5bf3-4bf4-a534-bff6f6f15816 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-12 14:32:06", "repo_name": "Ctrl937q/MovieDB", "sub_path": "/app/src/main/java/com/example/moviedb/model/tv/details/ImagesTV.java", "file_name": "ImagesTV.java", "file_ext": "java", "file_size_in_byte": 732, "... | package com.example.moviedb.model.tv.details;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class ImagesTV {
@SerializedName("backdropTVs")
@Expose
private List<BackdropTV> backdropTVs = null;
@SerializedName("posters")
... |
d870b25f-d52c-4dc7-a813-2f2d0aaffff4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-29 02:35:46", "repo_name": "SummerRock/PhoneFeatureTest", "sub_path": "/app/src/main/java/com/example/yanxia/phonefeaturetest/TestItem.java", "file_name": "TestItem.java", "file_ext": "java", "file_size_in_byt... | package com.example.yanxia.phonefeaturetest;
import android.support.annotation.Nullable;
/**
* @author yanxia
* @date 2017/2/10
*/
public class TestItem {
private String name;
private int imageId;
private Class activityClass;
public TestItem(String name, int imageId) {
this(name, imageId,... |
a3814265-ffb0-435b-aa1d-e171cd8e039f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-30 02:06:32", "repo_name": "51team/thinking_in_java", "sub_path": "/src/main/java/com/example/demo/utils/MD5Util.java", "file_name": "MD5Util.java", "file_ext": "java", "file_size_in_byte": 812, "line_count": ... | package com.example.demo.utils;
public class MD5Util {
public static boolean vlidateMD5sign(String text, String sign) {
String vsign=MD5sign(text);
System.out.println("MD5验证签名生成的签名:"+vsign);
System.out.println("MD5验证签名生成的签名与原签名是否一致:sign=vsign true?false:\":"+(vsign.equals(sign)));
ret... |
69e76f2b-6bc3-4c1f-b489-55c5a13c6a78 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-04 09:49:41", "repo_name": "cangqiong/daily-code-java", "sub_path": "/java-base-relearning/src/main/java/com/chason/base/relearning/optional/OptionalTest.java", "file_name": "OptionalTest.java", "file_ext": "j... | package com.chason.base.relearning.optional;
import java.util.Optional;
/**
* Optional功能
* Author: chason
* Date: 2020/3/21 19:36
**/
public class OptionalTest {
class Company{
Empoyee empoyee;
public Empoyee getEmpoyee() {
return empoyee;
}
}
class Empoyee{
... |
d0a95dec-705a-43ef-853c-2b08d457ab25 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-30 03:58:28", "repo_name": "Mondragon-L/spv-ropa", "sub_path": "/src/mx/venado/pvr/vista/TableCellRendererConfig.java", "file_name": "TableCellRendererConfig.java", "file_ext": "java", "file_size_in_byte": 732... | package mx.venado.pvr.vista;
import java.awt.Component;
import javax.swing.JPasswordField;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;
public class TableCellRendererConfig extends DefaultTableCellRenderer {
public TableCellRendererConfig() {
}
@Override
public Compo... |
9e0cb472-a507-4478-a54e-d617321bda71 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-18 09:45:13", "repo_name": "manaspratimdas/SpringMvcSeed", "sub_path": "/nee/src/main/java/nee/dao/RequestDaoImpl.java", "file_name": "RequestDaoImpl.java", "file_ext": "java", "file_size_in_byte": 733, "line_... | package nee.dao;
import javax.transaction.Transactional;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import nee.model.Request;
@Repository("RequestDao")
public class ... |
1c1fb5eb-9373-4556-bdac-f3ba38fbbc42 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-04-11T11:21:32", "repo_name": "josesoc/spring-boot", "sub_path": "/spring-boot-base/Readme.md", "file_name": "Readme.md", "file_ext": "md", "file_size_in_byte": 738, "line_count": 28, "lang": "en", "doc_type"... | ## spring-boot-base
* spring-boot-base
- versions
- v2.7: spring-data jpa criteria support
- v2.6: spring-data jpa relations
- v2.5: multiple databases support by spring-profiles
- v2.4: i18n support
- v2.3: Twitter Bootstrap support
- v2.2: spring-data jpa support with unit tests
- ... |
eb856261-4106-4f2b-9999-f52b2e9a3050 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-13 08:26:45", "repo_name": "AbdiMusse/NumberQuiz", "sub_path": "/src/controller/InstructionController.java", "file_name": "InstructionController.java", "file_ext": "java", "file_size_in_byte": 731, "line_count... | package controller;
import model.Model;
import view.InstructionView;
/**
* A Controller class that handles the user action when in the how to play page.
* Sends user back to the home page.
*
* @author Abdi-rahman Musse
* @version 1.0
*/
public class InstructionController implements ControllerIF {
... |
540aa9af-7523-4419-977b-79edbd754465 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-19 14:53:37", "repo_name": "ReymondWang/mcm", "sub_path": "/src/main/java/com/purplelight/mcm/action/BaseAction.java", "file_name": "BaseAction.java", "file_ext": "java", "file_size_in_byte": 732, "line_count"... | package com.purplelight.mcm.action;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;
public class BaseAction extends ActionSupport implements SessionAware {
private static final long serialVersionUID = 8290222100137187228L;
private String me... |
6e7b9edb-b92a-4958-91b4-58bf300d51df | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-02 08:56:37", "repo_name": "nikodem911/sudoku-validator", "sub_path": "/src/main/java/com/sudoku/validator/ValidationError.java", "file_name": "ValidationError.java", "file_ext": "java", "file_size_in_byte": 7... | package com.sudoku.validator;
import com.sudoku.validator.exception.ErrorCode;
public class ValidationError implements ValidationResult {
private final ErrorCode errorCode;
private final String errorMessage;
public ValidationError(ErrorCode errorCode, String errorMessage) {
this.errorCode = error... |
8e440b1f-fd51-41a0-a08a-23b82e7e7283 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-26 11:12:10", "repo_name": "sharmaischandan/JavaBasic", "sub_path": "/src/com/cdrock/multithreading/JoinDemo.java", "file_name": "JoinDemo.java", "file_ext": "java", "file_size_in_byte": 732, "line_count": 31,... | package com.cdrock.multithreading;
/**
* @author Chandan Sharma
*/
public class JoinDemo extends Thread{
public void run(){
System.out.println("This is thread="+Thread.currentThread().getName());
try {
Thread.sleep(200);
} catch (InterruptedException e) {
e.printSt... |
2c88ff8d-a607-4a11-b162-5c71bd1f35cb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-29 07:36:30", "repo_name": "lahmenev/HibernateProjects", "sub_path": "/Caching/src/main/java/com/hibernate/entity/Person.java", "file_name": "Person.java", "file_ext": "java", "file_size_in_byte": 732, "line_c... | package com.hibernate.entity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;
import javax.persistence.Entity;
/**
* email : s.lakhmenev@andersenlab.com
*
* @author Lakhmenev Sergey
* @version 1.1
*/
@Entity
@Cacheable
@Cache(usage = ... |
3f3fc679-09a2-4928-954e-6f9baac2eb13 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-25 00:27:06", "repo_name": "lpriyasivakumar/futurevalue", "sub_path": "/FutureValueWebApp/src/FutureValue.java", "file_name": "FutureValue.java", "file_ext": "java", "file_size_in_byte": 732, "line_count": 41,... | import java.io.Serializable;
public class FutureValue implements Serializable{
private static final long serialVersionUID = 1L;
private int years;
private double amount;
private String futureValue;
public FutureValue(){
years=0;
amount = 0;
}
public FutureValue(int years, double amount){
this.y... |
7e8aad1e-2543-4fcc-aa49-a71d3c5471aa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-15 10:38:28", "repo_name": "adam-mautner/iMarcats-OrderMatching-Microservice", "sub_path": "/order-matching-microservice/src/main/java/com/imarcats/microservice/order/matching/market/CloseMarketAction.java", "... | package com.imarcats.microservice.order.matching.market;
import com.imarcats.internal.server.infrastructure.datastore.MarketDatastore;
import com.imarcats.internal.server.interfaces.market.MarketInternal;
import com.imarcats.internal.server.interfaces.order.OrderManagementContext;
public class CloseMarketAction... |
13554a77-b1bb-439e-96a7-59ceec45ea93 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-05 09:04:29", "repo_name": "lele94218/ArchitectureProject", "sub_path": "/src/com/architecture/project/memory/MemorySegment.java", "file_name": "MemorySegment.java", "file_ext": "java", "file_size_in_byte": 73... | package com.architecture.project.memory;
/**
* Memory data entity.
*
* @author taoranxue on 9/15/16 8:49 PM.
*/
public class MemorySegment {
private Character data;
/**
* Construct with char data.
*
* @param data data.
*/
public MemorySegment(char data) {
this.data = data;
... |
0a635058-d99f-431f-8cea-d20c79ff5de6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-01-02 08:01:48", "repo_name": "dstweihao/dst-android-example", "sub_path": "/app/src/main/java/com/jweihao/jdemo/ui/activity/example/SlingActivity.java", "file_name": "SlingActivity.java", "file_ext": "java", "fi... | package com.jweihao.jdemo.ui.activity.example;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebView;
import com.wh.customcontrol.R;
import butterknife.BindView;
import butterknife.ButterKnife;
public class SlingActivity extends AppCompatActivity {
@BindView(R... |
c3c99284-1e65-4a1d-a92d-9a9eae6bc562 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-13 08:59:40", "repo_name": "girish54321/shopy", "sub_path": "/app/src/main/java/com/example/girish/shopy/Data/Electronics.java", "file_name": "Electronics.java", "file_ext": "java", "file_size_in_byte": 732, "... | package com.example.girish.shopy.Data;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class Electronics {
@SerializedName("error")
@Expose
private Boolean error;
@SerializedName("product")
@Expose
... |
6eb26742-04ca-45d5-bf18-3b7d7be67534 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-04 06:11:36", "repo_name": "SuganthiRamani/Amazon", "sub_path": "/src/test/java/com/cucumber/testrunner/day2.java", "file_name": "day2.java", "file_ext": "java", "file_size_in_byte": 732, "line_count": 33, "la... | package com.cucumber.testrunner;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.openqa.selenium.WebDriver;
import Reusablecode.Baseclass;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
featu... |
574a3f74-adbd-48bc-a991-3278ca166a0a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-02-15T18:43:01", "repo_name": "jonesca/Development", "sub_path": "/dotNet/CSharp/OO Prog Fundamentals in CSharp/General.md", "file_name": "General.md", "file_ext": "md", "file_size_in_byte": 732, "line_count"... | ###Object != Class
- <i class="highlight">Classes</i> are code
- <i class="highlight">Objects</i> are instances of a class
- <i class="highlight">Business Objects</i> generally refer to classes for example Customer, Employee, etc...
- <b>Metaphor</b> == A cookie cutter is the *class* the cookies made from that class ... |
74199ddc-4d6d-471a-acb0-9b8998838f1a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-21T20:28:12", "repo_name": "killian-oconnor/FootyFlask", "sub_path": "/readme.md", "file_name": "readme.md", "file_ext": "md", "file_size_in_byte": 732, "line_count": 14, "lang": "en", "doc_type": "text", ... | # FootyFlask
#### Video Demo: https://youtu.be/FQHr0Kdbsf4
#### Description:
A soccer fixtures tracking site using data from football-data.org
The technologies used for this website are:
1. Flask for backend of the site, using python and Jinja to dynamically generate HTML and collect API data to display the inform... |
f57f44cf-ad61-4480-85af-1db941493bab | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-25 14:58:37", "repo_name": "adamint/FlashcardGenerator", "sub_path": "/src/main/java/com/adamratzman/flashcards/models/Flashcard.java", "file_name": "Flashcard.java", "file_ext": "java", "file_size_in_byte": 7... | package com.adamratzman.flashcards.models;
import java.util.List;
/**
* Flashcard is defined by user during game setup and is used during the game and is shown in the game gui.
* <br>
* {@code hint} is a read only field that could be null.
*/
public class Flashcard {
private String question;
private Strin... |
01f2da30-5cff-497f-9ce0-96dfae1fac3d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-26 13:47:06", "repo_name": "raminmohammadi/Java_codes", "sub_path": "/Network Analysis/src/NetworkData.java", "file_name": "NetworkData.java", "file_ext": "java", "file_size_in_byte": 732, "line_count": 36, "l... | /*
* Within this class we will create a array list and add each data record which we have created within DataRecord class to the array list
*/
import java.util.ArrayList;
public class NetworkData {
ArrayList list = new ArrayList();
public void addDataRecords(DataRecord dr){
list.add(dr);
if(dr!=null){
}... |
142a8f14-efe8-40a3-bab6-7264644a69d4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-09-28 15:41:19", "repo_name": "stefanwapnick/AndroidCameraMessenger", "sub_path": "/app/src/main/java/com/example/stefan/cameramessengerapp/dialogs/BaseDialogFragment.java", "file_name": "BaseDialogFragment.java"... | package com.example.stefan.cameramessengerapp.dialogs;
import android.app.DialogFragment;
import android.os.Bundle;
import com.example.stefan.cameramessengerapp.infrastructure.CameraMessengerApplication;
import com.squareup.otto.Bus;
public class BaseDialogFragment extends DialogFragment{
protected CameraMesseng... |
dd62aa91-c7cc-447d-a9be-2d3c68b8de0b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-09 20:53:00", "repo_name": "tmad40blue/EntityScripter", "sub_path": "/src/main/java/me/lordsaad/entityscripter/EntityScripter.java", "file_name": "EntityScripter.java", "file_ext": "java", "file_size_in_byte":... | package me.lordsaad.entityscripter;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.File;
import java.util.HashMap;
import java.util.UUID;
/**
* Created by Saad on 1/23/2016.
*/
public class EntityScripter extends JavaPlugin {
public static HashMap<UUID, File> mobs = new HashMap<>();
public stati... |
dc0839fc-bdba-464f-bab0-c9ee9405ca4e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2010-04-08 22:43:17", "repo_name": "smb/ATechG2", "sub_path": "/G2_GUI/src/de/adv/atech/roboter/gui/components/MainFrame.java", "file_name": "MainFrame.java", "file_ext": "java", "file_size_in_byte": 733, "line_count"... | package de.adv.atech.roboter.gui.components;
import javax.swing.JFrame;
import javax.swing.WindowConstants;
import de.adv.atech.roboter.gui.core.GUIController;
import de.adv.atech.roboter.gui.panel.MenuBar;
import de.adv.atech.roboter.gui.panel.RootPanel;
public class MainFrame extends JFrame {
public M... |
7518aa54-4af7-4191-a90c-f700ea4703d5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-21 17:18:01", "repo_name": "MatasSilinskas/psk1", "sub_path": "/src/main/java/vu/lt/persistence/UniversitiesDAO.java", "file_name": "UniversitiesDAO.java", "file_ext": "java", "file_size_in_byte": 732, "line_c... | package vu.lt.persistence;
import vu.lt.entities.University;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.util.List;
@ApplicationScoped
public class UniversitiesDAO {
@PersistenceCon... |
b5beb521-a33d-4edd-9f86-63a70a695e55 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-30 17:35:13", "repo_name": "jwwj/JPetStore", "sub_path": "/src/main/java/com/clps/demo/util/EncryptUtil.java", "file_name": "EncryptUtil.java", "file_ext": "java", "file_size_in_byte": 766, "line_count": 32, "... | package com.clps.demo.util;
import java.math.BigInteger;
import java.security.MessageDigest;
/**
* 单向加密工具
* @author jwj
*
*/
public class EncryptUtil {
public static final String KEY_MD5 = "MD5";
/**
* MD5加密算法
* @param inputStr
* @return 加密后的MD5字符串
*/
public static String ... |
58cc794e-9b9c-468d-8e62-e68195c76bb3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-25 06:28:49", "repo_name": "zhaohongbo/spring-cloud-practice", "sub_path": "/cloud-server/src/main/java/org/springboot/cloud/server/HelloController.java", "file_name": "HelloController.java", "file_ext": "java... | package org.springboot.cloud.server;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author Eric Zhao
* @date 2017/11/25
*/
@RestController
public class HelloController {
... |
40626b00-c9fd-4d21-aa24-f8c326701d0e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-14 02:37:49", "repo_name": "liepeiming/xposed_chatbot", "sub_path": "/alimama/src/main/java/com/huawei/hms/update/e/n.java", "file_name": "n.java", "file_ext": "java", "file_size_in_byte": 732, "line_count": 2... | package com.huawei.hms.update.e;
import android.app.AlertDialog;
import com.huawei.hms.c.h;
/* compiled from: InstallConfirm */
public class n extends b {
private String a = h.d("hms_update_title");
/* access modifiers changed from: protected */
public AlertDialog a() {
int c = h.c("hms_update_me... |
fa21dd45-c4d6-4a0a-9fc8-83fd45c2a293 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-13 14:06:30", "repo_name": "zjnzx/FoolPark", "sub_path": "/app/src/main/java/cn/com/fooltech/smartparking/cache/BitmapCache.java", "file_name": "BitmapCache.java", "file_ext": "java", "file_size_in_byte": 738,... | package cn.com.fooltech.smartparking.cache;
import android.graphics.Bitmap;
import android.support.v4.util.LruCache;
import com.android.volley.toolbox.ImageLoader.ImageCache;
/**
* 缓存类
* @author Administrator
*
*/
public class BitmapCache implements ImageCache {
private LruCache<String, Bitmap> cache;
private ... |
504619c1-9ee2-4501-9319-6ab97138e58c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-01 07:39:50", "repo_name": "mortal-github/learn-spring", "sub_path": "/src/main/java/pers/mortal/learn/springmvc/OtherFilter.java", "file_name": "OtherFilter.java", "file_ext": "java", "file_size_in_byte": 732... | package pers.mortal.learn.springmvc;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
public class OtherFil... |
51e1d8e1-e22c-4103-89e4-87c0690ddd40 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-17 18:28:28", "repo_name": "Dean-Faturrahman/PBOIF2-10119053-Latihan60--OO-Akatsuki", "sub_path": "/src/model/Akatsuki.java", "file_name": "Akatsuki.java", "file_ext": "java", "file_size_in_byte": 732, "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 model;
/**
*
* @author Dean
*/
public class Akatsuki {
protected String nama;
protected String jutsu;
... |
16b1eb81-9436-444b-b11d-fd10a9d67273 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-01-18T15:24:46", "repo_name": "angelos/swig-testbed", "sub_path": "/readme.md", "file_name": "readme.md", "file_ext": "md", "file_size_in_byte": 730, "line_count": 20, "lang": "en", "doc_type": "text", "blob_... | ## What's this?
A simple [SWIG][swig]-to-Java testbed, to test our your SWIG interface files outside of the context of your project.
## Using it
We have the following inputs,
- `c` contains your C source code, in a single header, and a single implementation file. Just drop all your implementation in there.
- `java` co... |
5e2af9a5-bc79-4f7c-8e03-b287476da1a9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-30 20:27:44", "repo_name": "Trikkeri/coursework-mooc-2016", "sub_path": "/viikko03-Viikko03_064.Sanat/src/Sanat.java", "file_name": "Sanat.java", "file_ext": "java", "file_size_in_byte": 731, "line_count": 26,... | import java.util.ArrayList;
import java.util.Scanner;
public class Sanat {
public static void main(String[] args) {
Scanner lukija = new Scanner(System.in);
ArrayList<String> sanat = new ArrayList<>();
//for(String sana : sanat) {
for(int i = 0;i <= sanat.size();i++) {
... |
22294acc-85bf-4c3a-8829-f0dd111b39f0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-05-05 23:34:59", "repo_name": "witrdotnet/wAndroid-template-sideBar", "sub_path": "/src/main/java/net/witr/wandroid/Store.java", "file_name": "Store.java", "file_ext": "java", "file_size_in_byte": 731, "line_coun... | package net.witr.wandroid;
import java.util.ArrayList;
import java.util.List;
/**
* Created by witrdotnet <witr.net@gmail.com> on 03/05/15.
*/
public class Store {
private String id;
private String name;
private List<ModelElement> modelElements = new ArrayList<ModelElement>();
public Store(String ... |
9a7c07ae-0266-442b-a588-174d637a6feb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-10 07:03:06", "repo_name": "moriswala/mvp-sample", "sub_path": "/app/src/main/java/com/moriswala/mvp/app/common/Utils.java", "file_name": "Utils.java", "file_ext": "java", "file_size_in_byte": 731, "line_count... | package com.moriswala.mvp.app.common;
import androidx.annotation.NonNull;
import com.moriswala.mvp.R;
import com.moriswala.mvp.api.model.Contact;
public class Utils {
public static int getImageResourceId(Contact contact) {
String imagePath;
if (contact.getParty() != null && !contact.getParty().... |
844d7182-a748-49f8-aa6e-759c66ddbdf8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-02-16 02:08:23", "repo_name": "ylw530788697/springboot", "sub_path": "/src/main/java/com/evan/springboot/study/basic/objectDemo/Persion.java", "file_name": "Persion.java", "file_ext": "java", "file_size_in_byte":... | package com.evan.springboot.study.basic.objectDemo;
import lombok.Data;
/**
* @author evanYang
* @version 1.0
* @date 12/20/2019 11:46
*/
@Data
public class Persion {
private String name;
private Integer age;
public Persion(String name, Integer age) {
this.name = name;
this.age = age;... |
68e8936a-3be2-45c5-9bc9-65a83f933659 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-26 12:30:25", "repo_name": "riv-hoss/Java_CodeReview4_Hosseini", "sub_path": "/src/PurchaseHistory.java", "file_name": "PurchaseHistory.java", "file_ext": "java", "file_size_in_byte": 731, "line_count": 34, "l... | import java.util.Date;
public class PurchaseHistory {
private Date date;
private Product product;
private int quantity;
public PurchaseHistory(Date date, Product product, int quantity) {
this.date = date;
this.product = product;
this.quantity = quantity;
}
public Date g... |
b3c7d03e-d8c4-4395-9179-cc20600605e1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-27 11:39:52", "repo_name": "flowi42/daimlerInterval", "sub_path": "/daimlerInterval/src/main/java/com/fdmgroup/daimlerInterval/model/Interval.java", "file_name": "Interval.java", "file_ext": "java", "file_size... | package com.fdmgroup.daimlerInterval.model;
/**Interval is the class that combines two values to form an interval*/
public class Interval {
private double value1;
private double value2;
public Interval() {
super();
}
public Interval(double value1, double value2) {
super();
this.value1 = ... |
cfd00fa6-30a9-49c4-b536-c94c6adc9bdf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-06 19:42:57", "repo_name": "corbs-9/music-server", "sub_path": "/CorboMusicWebService/src/main/java/com/corbo/musicstreaming/model/CallResult.java", "file_name": "CallResult.java", "file_ext": "java", "file_si... | /**
*
*/
package com.corbo.musicstreaming.model;
/**
* Encapsulates a return code and a return object to be sent back to a caller.
*
* @author Oliver Corbisiero
*
*/
public class CallResult<T> {
private int returnCode;
private T resultObject;
/**
* Create a resource result with the supplied return cod... |
083807f2-95ac-4dc5-b4ba-089b466e6ebc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-22 09:52:30", "repo_name": "wangyudong2018/liumo", "sub_path": "/yiyun/web/src/main/java/com/yiyun/web/liumo/util/SpringContent.java", "file_name": "SpringContent.java", "file_ext": "java", "file_size_in_byte"... | package com.yiyun.web.liumo.util;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
/**
* @title SpringContent
* @author wangyudong
* @date 20... |
e8ae7b01-ac97-4f21-9aae-f0b5382acf57 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-15 23:04:21", "repo_name": "Dmitriy9196/testsolution", "sub_path": "/src/main/java/helpers/Properties.java", "file_name": "Properties.java", "file_ext": "java", "file_size_in_byte": 731, "line_count": 28, "lan... | package helpers;
import org.jetbrains.annotations.NotNull;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import java.util.concurrent.TimeUnit;
public class Properties {
@NotNull
public static WebDriver makeSettings() {
System.setProperty("webdriver.gecko.dri... |
47c65548-8eb4-401a-948e-6a3329265f3b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-01-22 05:26:28", "repo_name": "hooj0/design-patterns", "sub_path": "/src/behavioral/chain-of-responsibility/java/io/github/hooj0/chainofresponsibility/leave/support/EmployeePositionType.java", "file_name": "Emplo... | package io.github.hooj0.chainofresponsibility.leave.support;
/**
* employee position type, defined employee that power
* @author hoojo
* @createDate 2018年11月17日 下午8:27:31
* @file EmployeePositionType.java
* @package io.github.hooj0.chainofresponsibility.leave.support
* @project design-patterns
* @blog http://ho... |
7341e50c-99bf-43d5-8def-e2da4337ec86 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-01 04:14:31", "repo_name": "yangguang2055/iTripBackendCodeProject2020", "sub_path": "/itrip-biz-provider/src/main/java/com/whackode/itrip/service/imp/UserLinkUserServiceImpl.java", "file_name": "UserLinkUserSe... | package com.whackode.itrip.service.imp;
import com.whackode.itrip.dao.UserLinkUserDao;
import com.whackode.itrip.pojo.entity.UserLinkUser;
import com.whackode.itrip.service.UserLinkUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.spri... |
f5b49fe8-fe5b-4e1a-8606-f8e2281b579c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-18 16:37:31", "repo_name": "omidrayaneh/KharidChiMobileApp", "sub_path": "/app/src/main/java/com/omidrayaneh/omid/kharidchi/model/Photos.java", "file_name": "Photos.java", "file_ext": "java", "file_size_in_byt... | package com.omidrayaneh.omid.kharidchi.model;
public class Photos {
int id;
int product_id;
String web_url;
public Photos() {
}
public Photos(int id, int product_id, String web_url) {
this.id = id;
this.product_id = product_id;
this.web_url = web_url;
}
public... |
b5711eab-c183-4f83-889a-e159e7d9a3f4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-10-02T12:48:57", "repo_name": "dancolq/trailhead", "sub_path": "/dx/geolocation/docs/getorgdescription.md", "file_name": "getorgdescription.md", "file_ext": "md", "file_size_in_byte": 732, "line_count": 28, "... | ## Get Org Description
Output includes your access token, client ID, connected status, org ID, instance URL, username, and alias, if applicable. Use --verbose to include the SFDX auth URL.
Option | Description
--- | ---
```-u, --targetusername TARGETUSERNAME``` | username for the target org; overrides default targ... |
d935ecfa-31b2-4004-b577-c6b107f3daf5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-01-05 09:16:18", "repo_name": "SINIER/SINIER-SNRTools-as", "sub_path": "/app/src/main/java/com/bluetooth/modbus/snrtools2/common/SNRApplication.java", "file_name": "SNRApplication.java", "file_ext": "java", "file... | package com.bluetooth.modbus.snrtools2.common;
import android.app.Application;
import android.bluetooth.BluetoothAdapter;
import com.bluetooth.modbus.snrtools2.manager.AppStaticVar;
import com.tencent.bugly.crashreport.CrashReport;
import java.util.Locale;
/**
*
*/
public class SNRApplication extends Application... |
d755a78c-30c7-4ee9-b471-220edb880490 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-19 13:32:19", "repo_name": "Jarrettluo/ReservationService", "sub_path": "/user/src/main/java/com/ty/user/config/MyBatisConfig.java", "file_name": "MyBatisConfig.java", "file_ext": "java", "file_size_in_byte": ... | package com.ty.user.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@MapperScan("com.ty.user.dao")
public c... |
b16a43c8-6165-46c1-9720-532d5526d106 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-22 12:11:48", "repo_name": "aakulasaikiran/XmlPrograms_Workspace", "sub_path": "/Sir_Workspace/Axis2_Contract_Last_Example/src/com/contractlastexample/dao/ProductDAOImpl.java", "file_name": "ProductDAOImpl.jav... | package com.contractlastexample.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import com.contractlastexample.bo.ProductBO;
import com.contractlastexample.factory.ConnectionFactory;
public class ProductDAOImpl implements
ProductDAO{
public int registerProduct(ProductB... |
c102936b-b58c-4e83-bc62-f0ccdb84415c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-07 15:07:20", "repo_name": "787178256/ForOffer", "sub_path": "/src/leetcode/MyQueue.java", "file_name": "MyQueue.java", "file_ext": "java", "file_size_in_byte": 731, "line_count": 44, "lang": "en", "doc_type":... | package leetcode;
import java.util.Stack;
/**
* Created by kimvra on 2019-03-10
*/
public class MyQueue {
private Stack<Integer> in = new Stack<>();
private Stack<Integer> out = new Stack<>();
public MyQueue() {
}
public void push(int x) {
in.push(x);
}
public int pop() {
... |
ebb5877f-c12c-423c-b915-83c9931ad598 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-15 01:45:47", "repo_name": "liuwx1992/companyhelloidea", "sub_path": "/helloidea/src/com/practice/thread/FutureDemo02.java", "file_name": "FutureDemo02.java", "file_ext": "java", "file_size_in_byte": 731, "lin... | package com.practice.thread;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
/**
* @Description:
* @Author: liuweixin
* @Date: 2019/3/27
* @Time: 10:12
*/
public class FutureDemo02 {
public static void main(String[] args) {
FutureDemoCounter futureDemoCounter =... |
c62df52f-71de-4e68-b5ee-13b24281a408 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-30 10:18:11", "repo_name": "shenkewdd/kangcuiying", "sub_path": "/game/game-container/src/main/java/net/keshen/fishgame/manager/LayoutManager.java", "file_name": "LayoutManager.java", "file_ext": "java", "file... | package net.keshen.fishgame.manager;
/**
* 布局管理器
* @author shenke
* @date 2016-3-9 下午1:27:56
*/
public class LayoutManager {
private ComponetsManager componetsManager;
//设置大炮底座位置
public void setCannonBottomLayout(){
componetsManager.getBottom().setLayout_x(layout_x);
componetsManager.getBot... |
f45ae70f-298c-4330-bfcd-0ac384a4e3db | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-10-11 11:53:32", "repo_name": "claus437/test-utils", "sub_path": "/src/main/java/dk/fujitsu/utils/test/table/TableObjectVerifier.java", "file_name": "TableObjectVerifier.java", "file_ext": "java", "file_size_in_b... | package dk.fujitsu.utils.test.table;
import dk.fujitsu.utils.test.IOUtil;
import java.io.InputStream;
/**
* Created by IntelliJ IDEA.
* User: DENCBR
* Date: 26-09-11
* Time: 09:22
* To change this template use File | Settings | File Templates.
*/
public class TableObjectVerifier {
private Str... |
0a86b363-636b-45bd-8010-5479497c83f2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-05-31 15:05:31", "repo_name": "ammarblue/brad-baze-code-bank", "sub_path": "/LangueParts/src/Word.java", "file_name": "Word.java", "file_ext": "java", "file_size_in_byte": 731, "line_count": 44, "lang": "en", "do... | public class Word implements Comparable<Word> {
public String Text;
public long Tags;
public Word(String text) {
this(text, 0L);
}
public Word(String text, long tags) {
Text = text;
Tags = tags;
}
public int compareTo(Word other) {
return Text.compareTo(other.Text);
}
public boolean equals(Object o... |
086bc611-0ac3-4758-9f27-14ad63d49be1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-04 09:45:34", "repo_name": "zkchs1991/researches", "sub_path": "/researches-google/src/main/java/com/zk/google/guava/collections/collectionUtilities/StaticConstructorsUsage.java", "file_name": "StaticConstruct... | package com.zk.google.guava.collections.collectionUtilities;
import com.google.common.collect.*;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Created by zk_chs on 5/1/17.
*
* 详细文档地址 -> https://github.com/google/guava/wiki/CollectionUtilitiesExplained
*/
public class StaticConstructors... |
63e84609-c2e4-4134-a829-ba4ce7e5f4fb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-06-30T18:54:58", "repo_name": "david654100/inventory10_0_0", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 731, "line_count": 41, "lang": "en", "doc_type": "text",... | # New libraries Please install
```
conda django, sqlparse, Pillow
pip django-widget-tweaks
Might use Chart.js <- I will handle this
```
# TO DO LIST
```
- Success Log in Page
- Database Page
- Password reset
- Profile page
- Stats Page
- Activity Logger
- Sign in Logger
- in actives accounts gets automaticall... |
b25a862e-a0d4-4257-8ba8-373f18f89fd9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-08 16:42:53", "repo_name": "jinminer/design-patterns", "sub_path": "/deep-in-design-pattern/category-2-structural-design-patterns/section-3-proxy-pattern/src/main/java/com/jinm/proxy/CommandExecutorProxy.java"... | package com.jinm.proxy;
/**
* Proxy Design Pattern – Proxy Class
*/
public class CommandExecutorProxy implements CommandExecutor {
private boolean isAdmin;
private CommandExecutor executor;
public CommandExecutorProxy(String user, String pwd){
if ("jinm".equals(user) && "jinm".equals(pwd)){
... |
e517922e-761f-4c21-8f2e-e2de14c86aba | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-18 01:23:18", "repo_name": "jameszkw/demo", "sub_path": "/src/main/java/com/zkw/file/traversal/TraversalFiles.java", "file_name": "TraversalFiles.java", "file_ext": "java", "file_size_in_byte": 732, "line_coun... | package com.zkw.file.traversal;
import java.io.File;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
public class TraversalFiles {
private static void travelFiles(){
BlockingQueue<String> tQ = new LinkedBlockingQueue<String>();
// File root = new File("/data/re... |
597e1057-0a4e-4a47-add1-cbcac8214ad4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-16 23:47:28", "repo_name": "alexyukiouemura/ExampleJPA", "sub_path": "/src/main/java/br/com/exemplo/jpql/resource/repository/ProdutoRepositoryImpl.java", "file_name": "ProdutoRepositoryImpl.java", "file_ext": ... | package br.com.exemplo.jpql.resource.repository;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;
@Repository
@Q... |
35c1c079-7168-4c59-99ce-a2ec857c9ae8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-09-27T03:33:01", "repo_name": "JessaWitzel/vocabtest", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 732, "line_count": 33, "lang": "en", "doc_type": "text", "blob... | Vocab Test
==========
With this project you can test yourself on any set of vocabulary words that has
a vocab word and a definition. You can choose to be given the vocab word or the
definition.
Requirements
============
* Python3.6
* Your vocabulary file (in .txt)
Running
=======
> python3.6 vocabtest.py
You... |
6f1dde40-cf4c-40bf-9891-9938045e4e74 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-12 00:41:15", "repo_name": "HarisDelalic/tdd-by-example", "sub_path": "/src/main/java/guru/springframework/Pair.java", "file_name": "Pair.java", "file_ext": "java", "file_size_in_byte": 731, "line_count": 27, ... | package guru.springframework;
import java.util.Objects;
public class Pair {
private final String fromCurrency;
private final String toCurrency;
public Pair(String fromCurrency, String toCurrency) {
this.fromCurrency = fromCurrency;
this.toCurrency = toCurrency;
}
@Override
pu... |
f3d44644-30f2-4028-856b-1efbfa96e195 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-07 22:40:49", "repo_name": "Raman281990/Bakery-Application", "sub_path": "/Bakery-Application/src/main/java/com/imdb/process/info/vo/LineItems.java", "file_name": "LineItems.java", "file_ext": "java", "file_si... | package com.imdb.process.info.vo;
import java.io.Serializable;
public class LineItems implements Serializable{
/**
*
*/
private static final long serialVersionUID = -1638592419800178443L;
private String product;
private int quantity;
public String getProduct ()
{
return produ... |
a189883c-9702-47b9-a593-ba2eee3860e6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-23 00:44:26", "repo_name": "jamilovf/book-spring-boot-graphql", "sub_path": "/src/main/java/com/example/bookspringbootgraphql/api/BookQueryResolver.java", "file_name": "BookQueryResolver.java", "file_ext": "ja... | package com.example.bookspringbootgraphql.api;
import com.coxautodev.graphql.tools.GraphQLQueryResolver;
import com.example.bookspringbootgraphql.entity.Book;
import com.example.bookspringbootgraphql.repository.BookRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
imp... |
63ccf4d6-f51d-467f-82ab-3dcf704f915e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-12 02:17:29", "repo_name": "Catherine22/DesignPattern", "sub_path": "/src/com/catherine/builder/NewStyleRobotBuilder.java", "file_name": "NewStyleRobotBuilder.java", "file_ext": "java", "file_size_in_byte": 73... | package com.catherine.builder;
/**
* Created by Catherine on 2016/10/4.
* Soft-World Inc.
* catherine919@soft-world.com.tw
*/
public class NewStyleRobotBuilder implements RobotBuilder {
Robot robot;
public NewStyleRobotBuilder() {
robot = new Robot();
}
@Override
public void buildRob... |
401f8caf-e2a6-44d6-801e-04717681b45d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-09-04 11:47:13", "repo_name": "RCXcrafter/PowerGlove", "sub_path": "/src/main/java/com/rcx/powerglove/commands/CommandSimpleEmbed.java", "file_name": "CommandSimpleEmbed.java", "file_ext": "java", "file_size_in_b... | package com.rcx.powerglove.commands;
import net.dv8tion.jda.api.entities.MessageEmbed;
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
import net.dv8tion.jda.api.exceptions.InsufficientPermissionException;
public class CommandSimpleEmbed implements Command {
MessageEmbed returns;
public CommandSim... |
01b9fd6f-abfa-42f2-9a92-8bdc2b007b7f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-04 07:39:47", "repo_name": "kapacabana/android", "sub_path": "/GCS_Timer/app/src/main/java/com/nelumbo_gcs/gcs_timer/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byte... | package com.nelumbo_gcs.gcs_timer;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class MainActivity extends Activity {
Button btnStart;
@Override
protected void onCreate... |
ac21f28e-13c0-497b-97dd-9dbd1046a0fb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-17 06:44:45", "repo_name": "Mr2277/JavaNio", "sub_path": "/src/main/java/com/test/javanio/TestNio.java", "file_name": "TestNio.java", "file_ext": "java", "file_size_in_byte": 731, "line_count": 27, "lang": "en... | package com.test.javanio;
public class TestNio {
public static void main(String[] args) throws Exception {
NIOServer server = new NIOServer();
ThreadServer threadServer=new ThreadServer(server);
Thread thread=new Thread(threadServer);
thread.start();
Thread.sleep(1000);
... |
92028172-0b82-461c-b0b1-0fe8a28bb5a4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-05-23T17:20:27", "repo_name": "devinsmith/onc", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 731, "line_count": 30, "lang": "en", "doc_type": "text", "blob_id": "... | # onc
onc is a chat client with a GUI for Michael Kohn's Nakenchat (www.naken.cc).
It was originally written in 2000 against the Win32 API. It should run on
Windows 98 and higher.

# Building
On Windows you are expected to use mingw under the default cmd.exe console
host. Make sure to set your ... |
444cba69-07b8-4319-bebf-b7e256639d0b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-22 13:08:05", "repo_name": "Zexylitol/DataStructureAndAlgorithms", "sub_path": "/src/DataStructure/Stack/DequeStack.java", "file_name": "DequeStack.java", "file_ext": "java", "file_size_in_byte": 755, "line_co... | package DataStructure.Stack;
import java.util.ArrayDeque;
import java.util.Deque;
/**
* 弃用java中的Stack类,使用Deque接口实现stack!
* https://www.zhihu.com/question/25372706/answer/1252100096
* @author yzz
* @create 2020-09-15 20:18
*/
public class DequeStack<E> implements iStack<E> {
private final Deque<E> deque = n... |
739cc374-5e32-44c8-8248-f475a5289700 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-09 11:44:29", "repo_name": "ro-mak/Chat", "sub_path": "/Network/src/ru/geekbrains/network/samples/SimpleClient.java", "file_name": "SimpleClient.java", "file_ext": "java", "file_size_in_byte": 731, "line_count... | package ru.geekbrains.network.samples;
import java.io.*;
import java.net.Socket;
import java.util.Scanner;
public class SimpleClient {
private static final Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
try(Socket socket = new Socket("127.0.0.1",8189)){
... |
d75b35d5-9fec-47ae-a04c-136f313721f9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-10-25T20:03:32", "repo_name": "cyberfishtools/CFT-Artificial-intelligence-WAF", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 732, "line_count": 26, "lang": "en", ... | # CFT-Artificial-intelligence-based-Web-Firewall
## Details
> Python version 3.5
1. System dependent software :
sudo apt-get install python-matplotlib ipython ipython-notebook
sudo apt-get install python-pandas python-sympy python-nose
2.Install requirements :
pip install -r requirement.t... |
e1365b70-0b59-4ad1-8d7a-9cc0b8ad2cbf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-06-11T15:27:53", "repo_name": "Tcheny/exercism", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 732, "line_count": 29, "lang": "en", "doc_type": "text", "blob_id": ... | ## Level up your programming skills
- Download and solve practice problems in over 30 different languages.
- Submit the solution to the site for feedback (beta).
For code newbies and experienced programmers.
## Setup
Go through the setup instructions for JavaScript to
install the necessary dependencies:
http://ex... |
117dc159-09f3-4af5-a3a1-379451c77124 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-11 06:46:44", "repo_name": "sergei-quantum/calculator", "sub_path": "/src/test/java/com/airwallex/assignment/ui/ConsoleReaderTest.java", "file_name": "ConsoleReaderTest.java", "file_ext": "java", "file_size_in... | package com.airwallex.assignment.ui;
import org.junit.jupiter.api.Test;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Unit tests for {@link ConsoleReader} class
*/
class ConsoleReaderTest {
@Test
public void readInputEx... |
ac2ed61c-fd89-4bf2-a527-c5186b953c0d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-16 13:29:00", "repo_name": "soukainamabchour/Microservices", "sub_path": "/BILLING-SERVICE/src/main/java/io/mabchour/billingservice/entities/ProductItem.java", "file_name": "ProductItem.java", "file_ext": "jav... | package io.mabchour.billingservice.entities;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import net.bytebuddy.build.ToStringPlugin;
import javax.persistence.*;
@Entity
@Data
@AllArgsConstructor
@N... |
e1704e93-9992-4443-8911-f5286e5fc803 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-26 08:39:36", "repo_name": "NiksTAndroid/-LisunguiPharma", "sub_path": "/app/src/main/java/com/lisungui/pharma/models/ListMedicine.java", "file_name": "ListMedicine.java", "file_ext": "java", "file_size_in_byt... | package com.lisungui.pharma.models;
import java.util.ArrayList;
/**
* Created by khrishi on 1/1/17.
*/
public class ListMedicine {
private int status;// medCount;
private ArrayList<MedicinePojo> find_medicine = new ArrayList<>();
public int getStatus() {
return status;
}
public void s... |
6587aefe-483b-4491-846f-67af4b43cba0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-21 07:03:24", "repo_name": "Aukomn/AwesomeWanandroid", "sub_path": "/app/src/main/java/com/hy/wanandroid/ui/viewmodel/LoginViewModel.java", "file_name": "LoginViewModel.java", "file_ext": "java", "file_size_in... | package com.hy.wanandroid.ui.viewmodel;
import android.view.View;
import androidx.databinding.ObservableField;
import androidx.lifecycle.ViewModel;
import com.hy.wanandroid.ui.R;
/**
* author:created by huangyong on 2020/4/7 15:58
* email:756655135@qq.com
* description :
*/
public class LoginViewModel extends V... |
4ac1d4fb-4cc1-4ac9-a0aa-4e4862a6ec5c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-13 23:43:54", "repo_name": "KMorganAkiba/theFernandesGroupProject", "sub_path": "/src/Main/PyschatricAppointmentSystem.java", "file_name": "PyschatricAppointmentSystem.java", "file_ext": "java", "file_size_in_... | package Main;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
import java.sql.SQLException;
public class PyschatricAppointmentSystem extends Application {
public void start (Stag... |
7ef2137c-506b-43ac-b40f-d58671ed85a3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-17 05:22:25", "repo_name": "hblolj/BasicDemo1", "sub_path": "/rxjava2demo/src/main/java/com/hblolj/rxjava2demo/ImagerLoaderActivity.java", "file_name": "ImagerLoaderActivity.java", "file_ext": "java", "file_si... | package com.hblolj.rxjava2demo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.ImageView;
import com.hblolj.rxjava2demo.imageLoader.RxImageLoader;
public class ImagerLoaderActivity extends AppCompatActivity {
private Button btn_load... |
f60639d4-cb8c-40bc-94e1-b1b14183249d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-03 12:01:10", "repo_name": "dada-mazza/Flora", "sub_path": "/src/main/java/ua/itea/dao/jpa/UserDAO.java", "file_name": "UserDAO.java", "file_ext": "java", "file_size_in_byte": 731, "line_count": 34, "lang": "e... | package ua.itea.dao.jpa;
import ua.itea.entity.UserEntity;
import java.util.List;
/**
* This class implements basic methods for connect database
*
* @author Maksym Stetsenko
*/
public class UserDAO extends AbstractDAO<UserEntity> {
public UserEntity getUserById(Long id) {
return super.getEntityByI... |
77d819d8-513d-40f5-a48e-93470e192d40 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-29 18:47:58", "repo_name": "teshi04/WearDemo", "sub_path": "/wear/src/main/java/jp/tsur/wearui/GridViewPagerActivity.java", "file_name": "GridViewPagerActivity.java", "file_ext": "java", "file_size_in_byte": 7... | package jp.tsur.wearui;
import android.app.Activity;
import android.os.Bundle;
import android.support.wearable.view.DotsPageIndicator;
import android.support.wearable.view.GridViewPager;
/**
* Created by teshi on 2015/11/29.
*/
public class GridViewPagerActivity extends Activity {
@Override
protected void ... |
77a58298-3759-4697-ba0e-b0fca0268a87 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-15 09:44:44", "repo_name": "AnnaPivovarchik/pdd", "sub_path": "/app/src/main/java/com/anna/pdd/Entities/Answer.java", "file_name": "Answer.java", "file_ext": "java", "file_size_in_byte": 730, "line_count": 42,... | package com.anna.pdd.Entities;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Answer {
@SerializedName("id")
@Expose
private int id;
@SerializedName("text")
@Expose
private String text;
@SerializedName("isTrue")
@Expose
p... |
8edce812-e9fd-4062-8759-9cdd547cd4b7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-02 01:33:43", "repo_name": "enuocheng/github", "sub_path": "/designpattern/src/main/java/com/study/adapter/objectadapter/Adapter.java", "file_name": "Adapter.java", "file_ext": "java", "file_size_in_byte": 726... | /*
* Copyright (C) 2009-2016 Hangzhou 2Dfire Technology Co., Ltd. All rights reserved
*/
package main.java.com.study.adapter.objectadapter;
import main.java.com.study.adapter.classadapter.Adaptee;
/**
* Adapter
*
* @author zhutou
* @since 2019-01-14
*/
public class Adapter implements Target{
private Adapte... |
faac746d-a3ce-41ed-9003-f9c25cf94f14 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-08 09:17:16", "repo_name": "RemainderTime/designPatternDemoAll", "sub_path": "/src/main/java/cn/xf/pattern/_04_builder_pattern/Meal.java", "file_name": "Meal.java", "file_ext": "java", "file_size_in_byte": 737... | package cn.xf.pattern._04_builder_pattern;
import java.util.ArrayList;
import java.util.List;
/**
* @author : remaindertime (xiongfeng)
* @date : 14:04 2019/10/8
* @description :套餐类
*/
public class Meal {
List<Item> items =new ArrayList<Item>();
public void addItem(Item item){
items.add(item);
... |
518383d1-034f-433a-9943-30d137b8859a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-12-10T17:58:38", "repo_name": "LDSSA/hackathon-4-learning", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 730, "line_count": 25, "lang": "en", "doc_type": "text", ... | # hackathon-4-learning
Learning material for Hackathon #4.
## Instructions for running the notebooks
1. Go to src/data and unzip the ml-100k.zip file.
In Linux and OSX this can be done with the following command, run from the root directory (hackathon-4-learning)
```
$ unzip src/data/ml-100k.zip
```
2. If you want... |
b16bf278-e41c-4fe1-8639-ab325ae786af | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-09-22 06:03:08", "repo_name": "bigsurge/pay-platfrom", "sub_path": "/src/main/java/com/isoftstone/pay/utils/SimpleIbatisDao.java", "file_name": "SimpleIbatisDao.java", "file_ext": "java", "file_size_in_byte": 782... | package com.isoftstone.pay.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import com.ibatis.sqlmap.client.SqlMapClient;
/**
* 封装Ibatis数据访问类,继承spring的SqlMapC... |
9a73ef55-bfbd-4ba8-a906-480109180a81 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-12 23:09:48", "repo_name": "deathcoder/WebsiteDetector", "sub_path": "/src/test/java/com/demo/deathcoder/controller/util/JsonUtil.java", "file_name": "JsonUtil.java", "file_ext": "java", "file_size_in_byte": 7... | package com.demo.deathcoder.controller.util;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.StringWriter;
/**
* Created by davide on 21/10/16.
*/
public class JsonUtil {
private static Logger logger = Logge... |
243f0950-253b-49c3-9a46-bf13176d4ab7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-03 10:26:25", "repo_name": "qopeq/ZarzadzanieHotelem", "sub_path": "/src/main/java/pl/zarzadzanie/hotelem/database/EnityModels/Rabat.java", "file_name": "Rabat.java", "file_ext": "java", "file_size_in_byte": 7... | package pl.zarzadzanie.hotelem.database.EnityModels;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "Rabat")
public class Rabat implements Serializable {
@Id
@Column(name = "rabat_id")
private Long rabat_id;
@Column(name = "kod")
private Long kod;
... |
b86fab79-45e0-4e77-aa5d-1f0c285d0c90 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-19 17:45:53", "repo_name": "amitkapps/pocs", "sub_path": "/HibernateSearch/src/main/java/hibernateSearch/HibernateUtil.java", "file_name": "HibernateUtil.java", "file_ext": "java", "file_size_in_byte": 731, "l... | package hibernateSearch;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Created by IntelliJ IDEA.
* User: axk
* Date: 4/30/11
* Time: 2:01 AM
* To change this template use File | Settings | File Templates.
*/
public cla... |
70fcedf2-45d4-4fbc-a542-efdda2a60cd5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-03 14:08:27", "repo_name": "h149911/Oblig1", "sub_path": "/src/no/hvl/dat108/oppgave3/HamburgerKlient.java", "file_name": "HamburgerKlient.java", "file_ext": "java", "file_size_in_byte": 731, "line_count": 33,... | package no.hvl.dat108.oppgave3;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
public class HamburgerKlient {
public static void main(String[] args) {
BlockingQueue<Integer> burgerKo = new LinkedBlockingQueue<Integer>();
Thread kokk1 = new Kokk(burgerKo);
kokk1.... |
f3758a14-42dc-45b1-99c1-1a767770ecc6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-09-20 08:40:30", "repo_name": "XuBigRich/Thread", "sub_path": "/src/xitongxuexi/Acourse/volatil/SynTest.java", "file_name": "SynTest.java", "file_ext": "java", "file_size_in_byte": 799, "line_count": 30, "lang": ... | package xitongxuexi.Acourse.volatil;
public class SynTest {
//这个关键字的意义是每次读写值都直接刷新到内存当中,不保存于高速缓存区
private volatile int age=100000;
private static class TestThread extends Thread{
private SynTest synTest;
public TestThread(SynTest synTest,String name){
super(name);
thi... |
1720d273-8a1c-4443-8cbf-1afa9217d760 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-08 17:48:36", "repo_name": "glogle/Android", "sub_path": "/app/src/main/java/com/ttit/helloworld/entity/News.java", "file_name": "News.java", "file_ext": "java", "file_size_in_byte": 731, "line_count": 41, "la... | package com.ttit.helloworld.entity;
public class News {
private String title;
private String content;
private int aIcon;
public News() {
}
public News(String title, String content, int aIcon) {
this.title = title;
this.content = content;
this.aIcon = aIcon;
}
... |
e89c06e7-19fd-4a42-923b-82fb723ced6d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-19 09:50:49", "repo_name": "wecreateproblems/spring-submissions", "sub_path": "/i-042b65d282b2aafcc/src/main/java/com/wecp/cpm/repository/UserService.java", "file_name": "UserService.java", "file_ext": "java",... | package com.wecp.cpm.repository;
import java.util.ArrayList;
import java.util.List;
import com.wecp.cpm.domain.User;
import org.springframework.stereotype.Service;
@Service
public class UserService implements UserRepository {
public List<User> gblListOfUsers = new ArrayList<>();
@Override
public List<Us... |
003ae8de-dcc7-406a-afef-6092dc841dd8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-27 06:48:19", "repo_name": "pengjianbo3478/sfront", "sub_path": "/src/main/java/com/gl365/app/dto/enum_type/PartnerType.java", "file_name": "PartnerType.java", "file_ext": "java", "file_size_in_byte": 808, "li... | package com.gl365.app.dto.enum_type;
import com.gl365.app.dto.ValuedEnum;
/**
* Created by ryan on 2017/6/20.
*/
public enum PartnerType implements ValuedEnum<Integer> {
/**
* 平台(实际业务中不存在此类型代理)
*/
PLATFORM(0),
/**
* 商户
*/
MERCHANT(1),
/**
* 市级代理
... |
477f8424-269e-4f40-b9a4-87df2470429b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-07-18 08:00:57", "repo_name": "chenjw/beanCopyUtils", "sub_path": "/core/java/com/chenjw/tools/beancopy/copier/javassist/support/Field.java", "file_name": "Field.java", "file_ext": "java", "file_size_in_byte": 43... | /*
* Copyright 1999-2011 Alibaba.com All right reserved. This software is the confidential and proprietary information of
* Alibaba.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 wit... |
8201f0d9-63db-47c3-b4b9-a346731def68 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-29 13:06:34", "repo_name": "Jurrio/patterns", "sub_path": "/src/observer/system/model/Processor.java", "file_name": "Processor.java", "file_ext": "java", "file_size_in_byte": 731, "line_count": 42, "lang": "en... | package observer.system.model;
public class Processor {
private Integer maxProcesses;
private Integer processesCount;
private Float temperature;
public Processor(int maxProcesses) {
this.maxProcesses = maxProcesses;
this.processesCount = 0;
this.temperature = 45f;
}
public void addProcess(int p) {
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.