id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
603c97a0-fa77-4f87-a384-6491462c1f05 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-04-16 16:27:31", "repo_name": "myrddraall/coremod", "sub_path": "/common/cp/mods/CoreMod/core/integration/computercraft/peripheral/PeriperalBase.java", "file_name": "PeriperalBase.java", "file_ext": "java", "file... | package cp.mods.CoreMod.core.integration.computercraft.peripheral;
import java.util.ArrayList;
import dan200.computer.api.IComputerAccess;
import dan200.computer.api.IPeripheral;
public abstract class PeriperalBase implements IPeripheral
{
protected ArrayList<String> collectedLuaMethods = new ArrayList<... |
a01d67c8-e9c0-43f1-a9b5-46b2ad6f4055 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-16 19:29:03", "repo_name": "GabrielLewis/BattleShip", "sub_path": "/Cell.java", "file_name": "Cell.java", "file_ext": "java", "file_size_in_byte": 1210, "line_count": 72, "lang": "en", "doc_type": "code", "blo... | /**
* Cell
*/
public class Cell
{
private boolean hasShip;
private Ship ship;
private boolean isHit;
private int xcoord;
private int ycoord;
public Cell ( int ycoord, int xcoord)
{
this.xcoord = xcoord;
this.ycoord = ycoord;
hasShip = false;
isHit = false... |
6a8379e7-279c-4906-8815-ca6a80d5da56 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-12-05T00:43:14", "repo_name": "Brndon/RoundOne", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1212, "line_count": 33, "lang": "en", "doc_type": "text", "blob_id":... | # LimitMonkey
Lambda application to periodically query Trusted Advisor for your AWS resource limits
and publish messages to an SNS topic as a proactive alarm. Think "Push over Pull" for AWS Limits.
## Requirements
This sample project depends on Boto3, the AWS SDK for Python, and requires
Python 2.6 or 2.7. You can ... |
b18052ba-a89e-4579-ad64-8ee4a5cecf35 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-04-08T18:57:56", "repo_name": "BrianKopp/hasta-la-vista", "sub_path": "/docs/cloudprovider/aws.md", "file_name": "aws.md", "file_ext": "md", "file_size_in_byte": 1211, "line_count": 28, "lang": "en", "doc_typ... | # AWS Cloud Provider
In order to run this function using AWS as the cloud provider, pass
the environment variable `CLOUDPROVIDER=aws`. You'll need to
specify the `AWS_REGION` environment variable and bring your
own credentials, e.g. by using the lambda execution role.
## How It Works
The `hasta-la-vista` deregistrat... |
5a78893e-92fa-4f90-87e3-5bcc1d585057 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-31 19:30:00", "repo_name": "macashare/macashare-api", "sub_path": "/src/main/java/org/bdados/sapi/empenho/EmpenhoController.java", "file_name": "EmpenhoController.java", "file_ext": "java", "file_size_in_byte"... | package org.bdados.sapi.empenho;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;
import static org.springframework.http.Respon... |
091ea6fe-5070-434c-972f-33715d6719a4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-18 05:24:18", "repo_name": "kmhasan-class/spring2017java", "sub_path": "/GradePrediction/src/main/java/bd/ac/seu/gradeprediction/ConnectionSingleton.java", "file_name": "ConnectionSingleton.java", "file_ext": ... | /*
* 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 bd.ac.seu.gradeprediction;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @aut... |
b2ea9fe5-acc9-46cb-b3c0-f8d43f1fb130 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-20 01:24:51", "repo_name": "AsTheStarsFall/MultiThread", "sub_path": "/src/main/java/com/tianhy/doit/threadlocal/InitValueInThreadLocal.java", "file_name": "InitValueInThreadLocal.java", "file_ext": "java", "f... | package com.tianhy.doit.threadlocal;
import java.util.concurrent.TimeUnit;
/**
* @Author: thy
* @Date: 2020/2/27 18:14
* @Desc: ThreadLocal不能解决共享变量更新的问题
*/
public class InitValueInThreadLocal {
private static final StringBuilder INIT_VALUE = new StringBuilder("init");
//ThreadLocal初始化,返回StringBuilder的引用
... |
fbdc6ce4-5b2b-4cc8-a7ae-05b4c3cb7f69 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-08 20:13:56", "repo_name": "DavidSuazo/GenericUtil", "sub_path": "/src/main/java/com/credencial/util/invoker/bill/AuthenticationResponse.java", "file_name": "AuthenticationResponse.java", "file_ext": "java", "... | package com.credencial.util.invoker.bill;
import com.credencial.util.JSonable;
import com.credencial.util.StringUtils;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
/**
*
* @author cj_sr
*/
public class AuthenticationResponse implements JSonable {
private String token;
private String ex... |
2a958b89-3383-4e6d-8ef4-c6b850ac1b9a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-15 13:30:16", "repo_name": "dcostinett/unleash-client-java", "sub_path": "/src/main/java/no/finn/unleash/metric/MetricsBucket.java", "file_name": "MetricsBucket.java", "file_ext": "java", "file_size_in_byte": ... | package no.finn.unleash.metric;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.HashMap;
import java.util.Map;
class MetricsBucket {
private final Map<String, ToggleCount> toggles;
private final LocalDateTime start;
private LocalDateTime stop;
MetricsBucket() {
this.... |
44069e9f-4ccd-4396-adaf-0bf286187ab6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-13 06:04:35", "repo_name": "yirujiwang2001/Shiina-repository", "sub_path": "/demo3/src/com/shiina/SERV/RegisterToLoginServlet.java", "file_name": "RegisterToLoginServlet.java", "file_ext": "java", "file_size_i... | package com.shiina.SERV;
import org.apache.taglibs.standard.extra.spath.Step;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOExceptio... |
d54922c5-ff59-4d0e-81eb-f37ceeff0c9a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-03-18T15:50:37", "repo_name": "enterstudio/gtbjj.github.io", "sub_path": "/_drafts/linux/aur-updates.md", "file_name": "aur-updates.md", "file_ext": "md", "file_size_in_byte": 1213, "line_count": 29, "lang": ... | ---
layout: post
title:
excerpt:
category:
- Linux
tags:
comments: true
---
There are many AUR helper programs that will allow for pacmna-like use of the Arch User Responsitory, but I always feel sense of accomplishment
when I'm able to figure out / do something myself.
I've often flip flopped on AUR / Git versions ... |
b2392e55-1bb1-4f0f-a305-6f3dce7db869 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-08-29T03:11:06", "repo_name": "shendepu/fedora-dockfiles", "sub_path": "/mariadb/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1213, "line_count": 67, "lang": "en", "doc_type": ... | # Fedora Dockerfile for mariadb
## Create docker image for mariadb with root password configured
Based on https://github.com/fedora-cloud/Fedora-Dockerfiles/tree/master/mariadb
Change root password of mysql in **mysql.conf** file
MYSQL_ROOT_PASSWORD=Root_Passowrd
Perform the build
sudo docker build -t <yournam... |
e9ebd9ff-4c66-4423-bd76-e0995c69f0e6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-16 08:58:16", "repo_name": "lxb89/DailyStudyDemos", "sub_path": "/app/src/main/java/angqin/myapplication/enum_study/base/BaseFragment.java", "file_name": "BaseFragment.java", "file_ext": "java", "file_size_in_... | package angqin.myapplication.enum_study.base;
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import angqin.myapplication.enum_stud... |
05718540-7379-493e-b489-284cf098621d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-07-06 16:20:08", "repo_name": "uniprot/enzymeportal", "sub_path": "/enzyme-portal/enzymeportal-website/src/test/java/uk/ac/ebi/ep/web/controller/HomeControllerIT.java", "file_name": "HomeControllerIT.java", "file... |
package uk.ac.ebi.ep.web.controller;
import static org.hamcrest.Matchers.equalTo;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBo... |
e4f3dc9d-001e-4035-9613-f84fa3ed57ca | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-06 14:46:14", "repo_name": "shrivastava-prateek/proxy", "sub_path": "/src/main/java/com/proxy/servlets/ProxyServlet.java", "file_name": "ProxyServlet.java", "file_ext": "java", "file_size_in_byte": 1211, "line... | package com.proxy.servlets;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.net.URL;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Htt... |
41cbe863-e02a-4cbe-aab0-4943d6dc26ce | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-30 15:56:59", "repo_name": "Cristianoaf81GIT/dio_live", "sub_path": "/src/main/java/com/dio/live/controller/OcorrenciaController.java", "file_name": "OcorrenciaController.java", "file_ext": "java", "file_size_... | package com.dio.live.controller;
import com.dio.live.dto.OcorrenciaDTO;
import com.dio.live.model.Ocorrencia;
import com.dio.live.service.OcorrenciaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import ... |
a3b02ff1-0757-4f80-9230-bcd07fd51021 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-21 11:35:54", "repo_name": "Mugenor/RailwayTravels", "sub_path": "/RailwayTravels/src/main/java/javaschool/service/exception/NoSuchEntityException.java", "file_name": "NoSuchEntityException.java", "file_ext": ... | package javaschool.service.exception;
/**
* The type No such entity exception.
*/
public class NoSuchEntityException extends RuntimeException {
private final Class entityClass;
/**
* Instantiates a new No such entity exception.
*
* @param entityClass the entity class
*/
public NoSuch... |
15047434-7933-409f-bc8c-401ea2a2307d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-10-03 11:53:53", "repo_name": "ghanshujee4/JBOSS", "sub_path": "/src/com/tresfocus/ekart/spring/bean/AuthenticationSuccessHandlerImpl.java", "file_name": "AuthenticationSuccessHandlerImpl.java", "file_ext": "java... | package com.tresfocus.ekart.spring.bean;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authenticati... |
c1a996c5-3870-41ff-a244-b623e328e85f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-26 01:10:33", "repo_name": "leoGCoelho/Scientific-Calculator", "sub_path": "/src/calculadora/Excessao.java", "file_name": "Excessao.java", "file_ext": "java", "file_size_in_byte": 1212, "line_count": 54, "lang... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package calculadora;
/**
*
* @author Meu computador
*/
public class Excessao {
boolean flag;
public Exce... |
880049cd-98bb-424d-8422-3979f1ce037d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-11 01:30:17", "repo_name": "cloudhubs/tms-testbed", "sub_path": "/tms-qms/src/main/java/edu/baylor/ecs/qms/controller/CategoryInfoController.java", "file_name": "CategoryInfoController.java", "file_ext": "java... | package edu.baylor.ecs.qms.controller;
import edu.baylor.ecs.qms.model.Category;
import edu.baylor.ecs.qms.model.dto.CategoryInfoDto;
import edu.baylor.ecs.qms.repository.CategoryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.a... |
029962c6-5e6d-4afd-bb5e-e3eebb579857 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-21 21:08:07", "repo_name": "sDurgam/LearnMaterialDesign", "sub_path": "/app/src/main/java/udacityproject5/learnmaterialdesign/RecyclerAnimActivity.java", "file_name": "RecyclerAnimActivity.java", "file_ext": "... | package udacityproject5.learnmaterialdesign;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import b... |
fe65a71a-e68c-4a40-9eb6-060dfe542135 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-30 08:59:55", "repo_name": "lucifax301/chelizi", "sub_path": "/chelizi/access/src/main/java/com/lili/net/CommonMessageClientHandler.java", "file_name": "CommonMessageClientHandler.java", "file_ext": "java", "f... | package com.lili.net;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.lili.component.AbstractCommandComponent;
import com.lili.component.ComponentManager;
import com.lili.net.command.ICommand;
public class CommonMessageClientHandler implements IClientPacketHandler
{
private static Logger LOGG... |
1406bac3-0145-497c-afdf-8e4a2fa4e731 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-08-23T14:56:38", "repo_name": "Sharqiewicz/Wiki-Search", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1211, "line_count": 34, "lang": "en", "doc_type": "text", "b... | ## How to run the application
- clone the repository
- to run the project you need to have NodeJS and NPM installed on your computer
In the project directory, you can run:
- `npm install`
- `npm start`
or you can use yarn
- `yarn install`
- `yarn start`
## Description
In README.md I added instructions how to ... |
a8f5e422-a6e7-4579-ba01-efc4b88c0d8d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-05-23 13:42:16", "repo_name": "tomaaron/ID3-Tag-Editor", "sub_path": "/src/model/id3/ID3Frame.java", "file_name": "ID3Frame.java", "file_ext": "java", "file_size_in_byte": 1211, "line_count": 57, "lang": "en", "d... | package model.id3;
/**
*
* represents a mp3 frame
*
* @author MPGI 4, WS 11/12, Tutorium 01, Gruppe 05
*
*/
public class ID3Frame {
public static final int TAG_ALTER_PRESERVATION = 0;
public static final int FILE_ALTER_PRESERVATION = 1;
public static final int READ_ONLY = 2;
public static final int COMPRE... |
98c94e29-023a-4a7e-bd7e-af8a2db1e335 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-25 13:59:16", "repo_name": "akinyeleolat/videorentalapi", "sub_path": "/src/main/java/com/videorentalapi/service/services/UserServiceImpl.java", "file_name": "UserServiceImpl.java", "file_ext": "java", "file_s... | package com.videorentalapi.service.services;
import com.videorentalapi.service.models.User;
import com.videorentalapi.service.repository.UserRepository;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import java.util.Optional;
@Service
public ... |
40b460d6-574c-4233-8c11-eb88c8df41dc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-06-07T02:03:01", "repo_name": "victorwizeline/kotlin-contest", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1211, "line_count": 30, "lang": "en", "doc_type": "tex... | # Kotlin Contest
**Kotlin Contest** is an android app that shows a list of top albums. The app utilizes [Last FM API](http://www.last.fm/api).
## Project setup
To run the project you should obtain a new Last FM api key that needs to be set in the gradle.properties file.
## Open-source libraries used
- [Retrofit](h... |
7b7a8909-93ef-45ba-b5b4-d7afc193244d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-14 07:18:58", "repo_name": "rkskekabc/shoppingmall_front", "sub_path": "/src/main/java/com/cafe24/shoppingmall_front/security/CustomUserDetailService.java", "file_name": "CustomUserDetailService.java", "file_e... | package com.cafe24.shoppingmall_front.security;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNot... |
3164474d-f833-4664-85e0-fe704d3245c0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-01-22 17:37:19", "repo_name": "cescoffier/vertx-cache", "sub_path": "/src/main/java/examples/Examples.java", "file_name": "Examples.java", "file_ext": "java", "file_size_in_byte": 1211, "line_count": 48, "lang": ... | package examples;
import io.vertx.core.Vertx;
import io.vertx.ext.cache.Cache;
import io.vertx.ext.cache.CacheOptions;
import io.vertx.ext.cache.ExpirationPolicy;
/**
* @author <a href="http://escoffier.me">Clement Escoffier</a>
*/
public class Examples {
public void create(Vertx vertx) {
Cache.create(vertx,... |
2b30f647-8738-4ef4-8ec4-427db6986198 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-05-23 04:17:49", "repo_name": "jakartaredhat/cdi", "sub_path": "/api/src/main/java/jakarta/enterprise/inject/literal/SingletonLiteral.java", "file_name": "SingletonLiteral.java", "file_ext": "java", "file_size_in... | /*
* Copyright 2008, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
cafdbbe0-6cc5-482e-8297-b733d3fcd673 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-05T16:21:59", "repo_name": "operationBrass/Homework-assignment-15", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1210, "line_count": 41, "lang": "en", "doc_typ... | # Workout Tracker
[](http://www.wtfpl.net/about/)

### Description
Manage your workouts with this workout tracker.
### Table of Contents
- [Usage Guide](#Usage-Guide)
- [Install Instruct... |
2a1a2cb8-06bd-4484-bf76-5fa242884936 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-09-25 09:53:44", "repo_name": "DeTreMusketere/Database-Business-Slagelse-Server", "sub_path": "/dbs/src/model/data/Picture.java", "file_name": "Picture.java", "file_ext": "java", "file_size_in_byte": 1210, "line_... | package model.data;
import abstracts.Data;
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
import java.io.Serializable;
import org.json.JSONObject;
/**
*
* @author Patrick
*/
public class Picture extends Data implements Serializable {
private String name;
private byte[] byteArray;
publ... |
0a56190a-0761-4e29-96d3-6014c2a27eac | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-21 02:09:59", "repo_name": "kukaro/Tiramisu", "sub_path": "/TiramisuProject/Tiramisu/src/work/model/dto/Image.java", "file_name": "Image.java", "file_ext": "java", "file_size_in_byte": 1280, "line_count": 83, ... | package work.model.dto;
/**
* 사진
* ID : 시퀀스 + 프라이머리
* 파일명 : 200자
* @author cse
*
*/
public class Image {
private int imageId;
private String fileName;
/**
* Image 기본 생성자
*/
public Image() {
super();
}
/**
* Image 필수 / 모든 데이터 생성자
* @param imageId
* @param fileName
*/
public Image(int im... |
0ed52519-4e12-4ecc-908d-7cbcd69188cc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-03 13:25:50", "repo_name": "SeekingHearts/ECSurvivalSystem", "sub_path": "/[EC] SurvivalSystem/src/me/aaron/survivalsystem/listeners/trade/listenerGameModeChange.java", "file_name": "listenerGameModeChange.jav... | package me.aaron.survivalsystem.listeners.trade;
import org.bukkit.GameMode;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerGameModeChangeEvent;
import me.aaron.survivalsystem.main.Main;
import me.aaron.survivalsys... |
85432d17-d1d8-4857-ae21-83a790b79dee | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-21 10:12:32", "repo_name": "pordaniel01/Car-rental-website", "sub_path": "/back-end/cars/src/main/java/pd/cars/cars/model/Rent.java", "file_name": "Rent.java", "file_ext": "java", "file_size_in_byte": 1210, "l... | package pd.cars.cars.model;
import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction;
import javax.persistence.*;
import java.time.LocalDateTime;
@Entity
@Table(name = "rent")
public class Rent {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "re... |
810694c1-a8b3-4690-a1e3-34bb6d0d8015 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-23 15:45:11", "repo_name": "JakubPetr/ebean", "sub_path": "/src/test/java/org/tests/transaction/TestBeginTransactionWithExisting.java", "file_name": "TestBeginTransactionWithExisting.java", "file_ext": "java",... | package org.tests.transaction;
import io.ebean.BaseTestCase;
import io.ebean.Ebean;
import io.ebean.Transaction;
import io.ebean.annotation.TxIsolation;
import org.junit.Test;
import javax.persistence.PersistenceException;
import java.sql.Connection;
import static org.junit.Assert.assertEquals;
import static org.jun... |
70943583-8d5f-4b36-b1eb-1e2e4087f7a1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-27 21:38:46", "repo_name": "FRC5113/2019-Robot-Java-Postseason", "sub_path": "/src/main/java/frc/robot/subsystems/CargoIntake.java", "file_name": "CargoIntake.java", "file_ext": "java", "file_size_in_byte": 12... | package frc.robot.subsystems;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
import edu.wpi.first.wpilibj.DoubleSolenoid;
import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
import edu.wpi.first.wpilibj.command.Subsystem;
import frc.robot.RobotMap;
public class CargoIntake extends Subsystem {
private WPI_Ta... |
dec9dcc8-b203-422e-8f78-29116158fb93 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-20 22:32:09", "repo_name": "NEMAR/PaNeRo", "sub_path": "/panero-tools/debs-simulator/src/main/java/org/panero/debs/config/PaneroConfiguration.java", "file_name": "PaneroConfiguration.java", "file_ext": "java",... | package org.panero.debs.config;
import org.panero.gateway.client.GatewayClient;
import org.panero.gateway.client.GatewayConfiguration;
import org.panero.gateway.client.http.DefaultHttpClient;
import org.panero.gateway.client.http.HttpClientConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
i... |
37e7ed0f-9ae5-429c-8a84-95ca05f80137 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-20 02:54:46", "repo_name": "zsj6102/zsjda", "sub_path": "/app/src/main/java/com/colpencil/propertycloud/Ui/RecordView.java", "file_name": "RecordView.java", "file_ext": "java", "file_size_in_byte": 1210, "line... | package com.colpencil.propertycloud.Ui;
import android.content.Context;
import android.os.SystemClock;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ImageView;
/**
* User:Chenbao
* This View is a view for recording
*/
public class RecordView extends ImageView {
priva... |
4e028f55-7f6c-478f-98b6-0137a678a4df | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-08T18:41:15", "repo_name": "JKK86/squash_club", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1210, "line_count": 50, "lang": "en", "doc_type": "text", "blob_id... | # Squash club
A squash/tennis club management web application with court reservation system, built with Django Framework.
## Technologies:
- Python
- Django
- Celery
- JavaScript
- HTML
- CSS
## Features:
- user authorization (register, login, logout, edit profile, change password, reset password)
- courts reservati... |
e32faf3c-3f07-4115-9595-94cec6313f96 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-11 04:14:52", "repo_name": "fmtlyw/WeiYun", "sub_path": "/modulemvp/src/main/java/com/lyw/modulemvp/base/BaseActivity.java", "file_name": "BaseActivity.java", "file_ext": "java", "file_size_in_byte": 1228, "li... | package com.lyw.modulemvp.base;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;
import android.view.WindowManager;
import com.lyw.commonutils.dialog.LoadingDialog;
import com.lyw.modulemvp.dialog.LoadingLayout;
/**... |
44cd247a-61b2-4a8f-9628-c658b330817e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-28 10:16:36", "repo_name": "arunavo4/EruditionPaper", "sub_path": "/app/src/main/java/in/co/erudition/paper/data/model/University.java", "file_name": "University.java", "file_ext": "java", "file_size_in_byte":... | package in.co.erudition.paper.data.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by Arunavo Ray on 31-03-2018.
*/
public class University {
@SerializedName("_id")
@Expose
private String id;
@SerializedName("Code")
@Expose
... |
e7bb484f-88ca-4dbd-af9c-605ff85d53c8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-04-18T12:21:33", "repo_name": "42ways/the-beauty-of-git", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1210, "line_count": 24, "lang": "en", "doc_type": "text", "... | # The beauty of git
Short presentation about the concepts and internals of git, e.g. object types, trees, content-addressable etc.
To run the presentation, it has to be served from a web server, since the shell transcripts are loaded
from seperate files via the reveal-sampler plugin (using ajax calls).
Of course you ... |
67c529f6-5492-4c23-9104-cf990537986b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-24 11:12:44", "repo_name": "Swinger-w/cz", "sub_path": "/common/src/main/java/com/zhjl/tech/common/zjlsign/request/GenRequestSignStr.java", "file_name": "GenRequestSignStr.java", "file_ext": "java", "file_size... | package com.zhjl.tech.common.zjlsign.request;
import lombok.extern.slf4j.Slf4j;
import java.util.*;
@Slf4j
public class GenRequestSignStr {
/**
* 上传文件所需请求签名参数 checked
* @param accessKey 渠道accessKey
* @param random 随机数
* @param ordersn 订单号
* @param fileToken 文件上传标识
... |
febd3ead-fc49-4719-a47d-01e6d7337eb4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-21 15:29:58", "repo_name": "lgf-Allen/spring-boot-demo", "sub_path": "/spring-boot-was/src/main/java/com/allen/spring/config/IbmmqConfig.java", "file_name": "IbmmqConfig.java", "file_ext": "java", "file_size_i... | /**
*
*/
package com.allen.spring.config;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web.support.ErrorPageFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframew... |
41f893a4-98a8-4537-ad29-9ec19176e804 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-24 08:44:24", "repo_name": "yanghp1984/CompInfo", "sub_path": "/src/main/java/common/exception/ExceptionResolver.java", "file_name": "ExceptionResolver.java", "file_ext": "java", "file_size_in_byte": 1234, "li... | package common.exception;
import java.io.PrintWriter;
import java.io.StringWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.servlet.HandlerExceptionRe... |
2de525f0-74ae-4d86-b57b-123f685827f8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-27 14:16:43", "repo_name": "arraycto/Market-Data-Analysis", "sub_path": "/demo/src/main/java/com/example/demo/controller/LoginController.java", "file_name": "LoginController.java", "file_ext": "java", "file_si... | package com.example.demo.controller;
import com.example.demo.mapper.AdministratorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPar... |
45a0dcf3-1e3d-44ed-be15-2b52c3d8537a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-07 12:55:46", "repo_name": "geekbrains-sms/backend", "sub_path": "/warehouse/src/main/java/com/geekbrains/internship/warehouse/controllers/rest/ImagesController.java", "file_name": "ImagesController.java", "fi... | package com.geekbrains.internship.warehouse.controllers.rest;
import com.geekbrains.internship.warehouse.entities.Image;
import com.geekbrains.internship.warehouse.services.ImageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.A... |
f6e139dc-1989-46dd-9942-3cf20542f670 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-16 05:07:39", "repo_name": "JaysonCheng/LeetCode", "sub_path": "/JavaLeetCode/src/LeetCode/ValidParantheses.java", "file_name": "ValidParantheses.java", "file_ext": "java", "file_size_in_byte": 1210, "line_cou... | package LeetCode;
import java.util.HashMap;
import java.util.Stack;
public class ValidParantheses {
public static boolean isValid(String s) {
if(s.length() < 2) return false;
boolean isValid = false;
HashMap<Character, Character> parentheses = new HashMap<>();
parentheses.put('{'... |
173d3718-8e43-401a-962d-94b19bc4a94d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-08-11T21:29:39", "repo_name": "modern-software-dev-team-3/msdagenda", "sub_path": "/Day03.md", "file_name": "Day03.md", "file_ext": "md", "file_size_in_byte": 1210, "line_count": 15, "lang": "en", "doc_type":... | # Day 3
0. Ensure you tag your master branch as day02 before working on Day 3 tasks.
1. Configure your project to use an embedded database (HSQL) to store Customer data. (update dependencies in the build file, create schema.sql). **Note:** All fields are mandatory.
2. Hard-code 2-3 sample records using data.sql.
3. I... |
e6282c28-4a46-4c32-b822-da6d0dddad38 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-19 04:49:04", "repo_name": "kungfuwushu/backend", "sub_path": "/src/main/java/fr/kungfunantes/backend/resource/TestResource.java", "file_name": "TestResource.java", "file_ext": "java", "file_size_in_byte": 121... | package fr.kungfunantes.backend.resource;
import com.google.common.base.Preconditions;
import fr.kungfunantes.backend.model.test.Test;
import fr.kungfunantes.backend.repository.TestRepository;
import fr.kungfunantes.backend.utils.RestPreconditions;
import org.springframework.beans.factory.annotation.Autowired;
import ... |
2cc4af85-22f6-452d-aca3-2a43b074a778 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-17 18:46:08", "repo_name": "akarsic2/NWT-Projekat-Tim2", "sub_path": "/Services/user-movie-service/src/main/java/usermanagment/Models/MovieBasicInfo.java", "file_name": "MovieBasicInfo.java", "file_ext": "java... | package usermanagment.Models;
import com.fasterxml.jackson.annotation.JsonBackReference;
import javax.persistence.*;
import java.util.Set;
@Entity
public class MovieBasicInfo {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Integer Id;
private Integer movieId;
private String naziv;... |
a11f132b-d19f-4b00-97a3-e398760837cc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-21 07:51:55", "repo_name": "CPstudy/SilsiganMetro-Android-legacy", "sub_path": "/app/src/main/java/com/ganada/silsiganmetro/activity/OpenSourceActivity.java", "file_name": "OpenSourceActivity.java", "file_ext"... | package com.ganada.silsiganmetro.activity;
import android.app.Activity;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import com.ganada.silsiganmetro.R;
... |
76976ec2-c43b-4507-a8e0-f22392f0ce20 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-18 17:47:45", "repo_name": "azimoff98/STEP_IT-isp-payment-billing-service", "sub_path": "/src/main/java/az/itstep/pbs/resource/PaymentResource.java", "file_name": "PaymentResource.java", "file_ext": "java", "f... | package az.itstep.pbs.resource;
import az.itstep.pbs.dto.PaymentRequest;
import az.itstep.pbs.entities.Payment;
import az.itstep.pbs.service.impl.PaymentService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaTyp... |
54629644-edfe-4107-8bb3-7202dcd08c17 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-04-22T19:29:58", "repo_name": "LukvonStrom/Amethyst", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1212, "line_count": 22, "lang": "en", "doc_type": "text", "blob... | # Amethyst [](https://travis-ci.com/LukvonStrom/Amethyst) [](https://nodesecurity.io/orgs/lukas/projects/e46837c8-2... |
934a77ce-a1a9-4481-a986-8fd9b814717e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-08 16:46:19", "repo_name": "losthere/rest", "sub_path": "/src/main/java/com/optum/hedis/domain/Numerator.java", "file_name": "Numerator.java", "file_ext": "java", "file_size_in_byte": 1210, "line_count": 58, "... | package com.optum.hedis.domain;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import com.fasterxml.jac... |
c31686fd-9654-4479-ac8a-037331acc352 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-16 14:20:30", "repo_name": "rodrigocbass/quub-chat", "sub_path": "/src/main/java/br/com/quub/jms/consumer/JmsConsumer.java", "file_name": "JmsConsumer.java", "file_ext": "java", "file_size_in_byte": 1208, "lin... | package br.com.quub.jms.consumer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.stereotype.Component;
import br.com.quub.model.Chat;
import br.com.quub.model.User;
import... |
d0b2d2b6-41d5-47b9-9e91-aced85aebb88 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-21 09:19:18", "repo_name": "sofmeireles/ProjetoSD", "sub_path": "/Meta2/SD meta2/src/hey/action/PassaURLAction.java", "file_name": "PassaURLAction.java", "file_ext": "java", "file_size_in_byte": 1210, "line_co... | package hey.action;
import com.opensymphony.xwork2.ActionSupport;
import hey.model.HeyBean;
import org.apache.struts2.interceptor.SessionAware;
import java.rmi.RemoteException;
import java.util.Map;
public class PassaURLAction extends ActionSupport implements SessionAware {
private Map<String, Object... |
ff740fc4-80ca-472a-a82f-a4b60b83191c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-06 12:59:33", "repo_name": "daimaren/PhoneGuard-master", "sub_path": "/app/src/main/java/cn/ixuehu/phoneguard/receiver/BootCompleteReceiver.java", "file_name": "BootCompleteReceiver.java", "file_ext": "java", ... | package cn.ixuehu.phoneguard.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.telephony.SmsManager;
import android.telephony.TelephonyManager;
import cn.ixuehu.phoneguard.utils.MyConstants;
/**
... |
438994fd-866e-4dc1-8885-f65c245c050a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-25 06:58:41", "repo_name": "amindraa05/CovidTracker", "sub_path": "/app/src/main/java/com/example/covidtracker/preference/UserPreference.java", "file_name": "UserPreference.java", "file_ext": "java", "file_siz... | package com.example.covidtracker.preference;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
public class UserPreference {
private final SharedPreferences sharedPreferences;
private final SharedPreferences.Editor editor;
private static fin... |
21480937-8c7f-47e3-808f-05f11c03b202 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-31 02:25:55", "repo_name": "jiangyukun/commodity-manage", "sub_path": "/src/main/java/com/ieebook/wxshop/test/SpringContainerBeans.java", "file_name": "SpringContainerBeans.java", "file_ext": "java", "file_siz... | package com.ieebook.wxshop.test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware... |
e1f69724-d467-49e4-86d3-21675a405e74 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-10 01:28:39", "repo_name": "phronesys/EDDyA", "sub_path": "/Tareas/Tarea5/entropia.java", "file_name": "entropia.java", "file_ext": "java", "file_size_in_byte": 1209, "line_count": 41, "lang": "en", "doc_type"... | import java.util.*;
import java.lang.*;
public class entropia {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String line = scan.nextLine();
while(!line.equals("****END_OF_INPUT****"))
{
int nWords = 0;
... |
7ed08347-750f-45c2-9ac2-7b26d5b0745c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-24 03:23:48", "repo_name": "xddpool/mmj-cloud", "sub_path": "/mmj-cloud-oauth/src/main/java/com/mmj/oauth/supper/CustomOauthExceptionSerializer.java", "file_name": "CustomOauthExceptionSerializer.java", "file_... | package com.mmj.oauth.supper;
import java.io.IOException;
import java.util.Map;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
public class CustomOauthExceptionSerializer extends StdSeria... |
56bfb835-c636-454a-8abb-356bc42edf8a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-06-28 13:42:24", "repo_name": "fabianacristina89/agenda-caelum", "sub_path": "/app/src/main/java/receiver/caelum/com/br/cadastrocaelum/SMSReceiver.java", "file_name": "SMSReceiver.java", "file_ext": "java", "file... | package receiver.caelum.com.br.cadastrocaelum;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.telephony.SmsMessage;
import android.widget.Toast;
import cadastro.caelum.com.br.cadastroca... |
16bfb2f6-05e2-4ee9-a25b-1335a1dd9e3d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-09 15:43:03", "repo_name": "ChenKangQiang/javaSE", "sub_path": "/javaSE-core/src/main/java/edu/tongji/comm/example/thread/concurrencyutils/cyclicBarrier/Sportsman.java", "file_name": "Sportsman.java", "file_ex... | package edu.tongji.comm.example.thread.concurrencyutils.cyclicBarrier;
import java.util.Random;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.TimeUnit;
/**
* @Author chenkangqiang
* @Data 2017/10/18
*/
public class Sportsman implements Ru... |
51cb8cec-98a8-4bf5-ae10-18413907968b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-07-05 17:56:54", "repo_name": "dharanimishra/DD-ZJPlatform", "sub_path": "/ziksana-app/zsecurity/src/test/java/com/ziksana/service/security/impl/EmailSenderTest.java", "file_name": "EmailSenderTest.java", "file_e... | package com.ziksana.service.security.impl;
import org.apache.velocity.app.VelocityEngine;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.j... |
abe1afe8-772b-4dc7-b246-6e83010fc19b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-06-01 10:37:05", "repo_name": "nosidedeng/MeiCalculator", "sub_path": "/app/src/main/java/cn/noside/meicalculator/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byte": 130... | package cn.noside.meicalculator;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.... |
28956bc9-e636-4d91-b497-c1b76f37ef57 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-24 01:14:46", "repo_name": "fhbkoller/certificacao", "sub_path": "/Cert804/src/test/java/br/com/koller/certification/chapter7/test/ExceptionsTest.java", "file_name": "ExceptionsTest.java", "file_ext": "java", ... | package br.com.koller.certification.chapter7.test;
import br.com.koller.certification.chapter7.ExceptionHandling;
import br.com.koller.certification.util.exception.CertificationException;
import org.hamcrest.Matchers;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Expecte... |
6d02f5f9-c808-439c-9488-d67d56795a51 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-10-07T18:30:03", "repo_name": "section77/otto", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1209, "line_count": 49, "lang": "en", "doc_type": "text", "blob_id": ... | # OTTO
| Folder | Description |
|-----------------|--------------------------------------------------|
| initial_sketch/ | initial sketch for the s77 otto builder workshop |
## initial_sketch/
This sketch supports two modes:
- walk and detect obstacles
- calib... |
03b86f0c-088c-487f-a6e0-9b01b376c4e2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-17T15:31:54", "repo_name": "antoninastefanowska/SocialSynchro", "sub_path": "/app/src/main/java/com/antonina/socialsynchro/common/model/services/Services.java", "file_name": "Services.java", "file_ext": "java"... | package com.antonina.socialsynchro.common.model.services;
import com.antonina.socialsynchro.services.deviantart.model.DeviantArtService;
import com.antonina.socialsynchro.services.facebook.model.FacebookService;
import com.antonina.socialsynchro.services.twitter.model.TwitterService;
public class Services {
priva... |
85037b27-72c8-4c01-ab5d-c51f7569f64a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-13 15:28:16", "repo_name": "anilbhomi/MVVM-pattern", "sub_path": "/app/src/main/java/com/aaneal/mvvm/viewmodel/UserModel.java", "file_name": "UserModel.java", "file_ext": "java", "file_size_in_byte": 1209, "li... | package com.aaneal.mvvm.viewmodel;
import android.databinding.BaseObservable;
import com.aaneal.mvvm.R;
import com.aaneal.mvvm.model.User;
public class UserModel extends BaseObservable {
private String username;
private String password;
private String usernameHint;
private String passwordHint;
... |
8492b446-e570-4155-a85e-f36202a22d5d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-09 18:57:43", "repo_name": "ekersenbrock/DLinkedList", "sub_path": "/TreeNode.java", "file_name": "TreeNode.java", "file_ext": "java", "file_size_in_byte": 1214, "line_count": 57, "lang": "en", "doc_type": "co... |
/**
* Write a description of class TreePractice here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class TreeNode<T> implements Comparable<T>
{
// References to the other nodes.
private TreeNode parent;
private TreeNode leftChild;
private TreeNode rightChild;
// H... |
e6f3a763-4d6d-43b4-a870-88f037f0a701 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-11-27T01:10:17", "repo_name": "RU09342/lab-5-sensing-the-world-around-you-glenn-dawson", "sub_path": "/PCB Design/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1208, "line_count... | # PCB Design
This sub-folder contains the Gerber files for the MSP430FR2311 Breakout Board. This includes a .zip of all the files required for PCB printing according to the Rowan University ECE Department guidelines (see [the included .pdf](https://github.com/RU09342/lab-5-sensing-the-world-around-you-glenn-dawson/blo... |
3bbe9911-592a-42b4-b53b-e1b3b0ca9c4e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-20 09:28:45", "repo_name": "shineM/weebo", "sub_path": "/app/src/main/java/com/danlvse/weebo/ui/WelcomeActivity.java", "file_name": "WelcomeActivity.java", "file_ext": "java", "file_size_in_byte": 1221, "line_... | package com.danlvse.weebo.ui;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.WindowManager;
import com.danlvse.weebo.R;
import com.danlvse.weebo.activity.main.MainActivity;
import com.danlvse.weebo.utils.weibo.AccessTokenKeeper;
import ja... |
392c7d4a-c4ec-48f7-b4f6-7f26a8d20454 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-24 05:11:32", "repo_name": "carpanese/gourmetGame", "sub_path": "/src/main/java/br/com/carpanese/objective/model/Node.java", "file_name": "Node.java", "file_ext": "java", "file_size_in_byte": 1208, "line_count... | package br.com.carpanese.objective.model;
/**
* Classe de nos para arvore
* @author tiago.carpanese
*
*/
public class Node {
private String description;
private Node left;
private Node right;
public Node (String description) {
this.description = description;
right = null;
le... |
1a0665b4-2ade-4d82-a29c-472d6876a522 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-06-19 04:07:59", "repo_name": "csaki/FakkuDroidV3", "sub_path": "/app/src/main/java/com/devsaki/fakkudroid/MessageSupportActivity.java", "file_name": "MessageSupportActivity.java", "file_ext": "java", "file_size_... | package com.devsaki.fakkudroid;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.preference.PreferenceManager;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import com.devsaki.fakkudroi... |
c45b5f3b-ee86-43d1-91ba-1ee018fa5305 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-04-11T07:28:34", "repo_name": "shunwatai/SDN_school_project", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1208, "line_count": 21, "lang": "en", "doc_type": "text... | # What is this?
- This is just a school project that about "SDN security". However, it is not really about the security in SDN. I was actually working on "detecting the traditional malicious traffics in SDN".
- Also:
- the code are messy and unreadable.
- do not expect has good performance
- many bugs
... |
2aa412b8-a50b-497a-8ab5-5ef618eb1227 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-04-02 15:22:22", "repo_name": "duongtran97/hair-salon", "sub_path": "/src/main/java/com/duongtv/hair/controller/HomeController.java", "file_name": "HomeController.java", "file_ext": "java", "file_size_in_byte": 1... | package com.duongtv.hair.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import com.d... |
9e1097d6-0dab-45ff-b324-f5061ebd8b59 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-10T01:25:40", "repo_name": "Statikman619/Team-Profile-Generator", "sub_path": "/Lib/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1208, "line_count": 45, "lang": "en", "doc_t... | # Team Profile Generator
\*GitHubLink https://github.com/Statikman619/Team-Profile-Generator/tree/main
\*VideoWalkThroughLink
[](https://opensource.org/licenses/MIT)
## Table of Contents
- [Title](#Title)
- [Description](#description)
- [Installati... |
997406b5-bdaa-4e6e-8938-e8f61710bce5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-06 04:03:41", "repo_name": "GauravNadar/COVID-19", "sub_path": "/app/src/main/java/com/gauravnadar/covid19stats/BroadcastReceiver/CustomBroadcastReceiver.java", "file_name": "CustomBroadcastReceiver.java", "fi... | package com.gauravnadar.covid19stats.BroadcastReceiver;
import android.app.job.JobInfo;
import android.app.job.JobScheduler;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import an... |
e32b27af-49d4-4765-8673-73d33ba3a69f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-20 16:40:53", "repo_name": "TimVonsee/csp-store", "sub_path": "/src/main/java/nl/sharecompany/writer/csp/TokenHandler.java", "file_name": "TokenHandler.java", "file_ext": "java", "file_size_in_byte": 1208, "li... | package nl.sharecompany.writer.csp;
import nl.sharecompany.pattern.buffers.SerializableByteBuffer;
import nl.sharecompany.pattern.bytebuffercommand.IByteBufferCommand;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
/**
* Used for debu... |
e5177cf9-bf45-4ddb-b1b5-70b8296902e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-10 11:41:45", "repo_name": "ParshakovaIrina/backendBooks", "sub_path": "/src/main/java/com/example/libr/domain/MyUser.java", "file_name": "MyUser.java", "file_ext": "java", "file_size_in_byte": 1208, "line_cou... | package com.example.libr.domain;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.util.Set;
@Getter
@Setter
@Entity
@Table(name = "usr")
public class MyUser {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String login;
private Stri... |
3e9f3a80-9011-4767-8502-3331f9111227 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-28 16:37:41", "repo_name": "Greed54/databaseJDBC", "sub_path": "/src/main/java/model/Parameter.java", "file_name": "Parameter.java", "file_ext": "java", "file_size_in_byte": 1209, "line_count": 46, "lang": "en... | package model;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
public class Parameter {
private final StringProperty idParameter;
private final StringProperty date;
private final StringProperty tareWeight;
private final StringProperty cost1Kg;
publi... |
7eba0881-4206-4853-946a-6b5f74d72b28 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-11 15:39:43", "repo_name": "snooker17/JavaAdvanced", "sub_path": "/01.StacksAndQueues/_11_PoisonousPlants.java", "file_name": "_11_PoisonousPlants.java", "file_ext": "java", "file_size_in_byte": 1209, "line_co... | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.Stack;
public class _11_PoisonousPlants {
public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
int n=Integer.parseInt(scanner.nextLine());
String[] input=sc... |
fa7aec1f-bb85-4e90-b29d-ddf1157e8c26 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-14 22:41:05", "repo_name": "c-jvt/jvt-microservice", "sub_path": "/jvt-api/src/main/java/com/jvt/microservice/api/core/filter/ValidationUniqueFilter.java", "file_name": "ValidationUniqueFilter.java", "file_ext... | package com.jvt.microservice.api.core.filter;
import com.jvt.microservice.infrastructure.http.HttpHelper;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
@SuppressWarnings("restriction")
public class ValidationUniqueFilter implements Filter {
@Override
publi... |
8605144e-1a7e-47b9-be39-78774ef4ff60 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-23 23:00:49", "repo_name": "Ben-Diliberto/HotelApi", "sub_path": "/src/main/java/com/dilib/hotelapi/domain/Room.java", "file_name": "Room.java", "file_ext": "java", "file_size_in_byte": 1208, "line_count": 59,... | package com.dilib.hotelapi.domain;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Objects;
@Entity
public class Room {
@Id
private Integer id;
private RoomType type;
private Integer price;
public Room() {
}
public Room(Integer id, RoomType type, Integer p... |
b4094b76-4849-4052-a176-6fc8311d609a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-11-04 09:27:37", "repo_name": "tianzhiyuan/wechatinterface", "sub_path": "/src/com/sns/wechat/mp/impl/JsonSerializerImpl.java", "file_name": "JsonSerializerImpl.java", "file_ext": "java", "file_size_in_byte": 125... | package com.sns.wechat.mp.impl;
import java.io.StringWriter;
import org.codehaus.jackson.map.DeserializationConfig.Feature;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion;
import com.sns.wechat.mp.JsonSerializer;
public class JsonSerializer... |
b43ead22-8cae-4493-b58a-a93d5a44ee55 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-08 01:56:28", "repo_name": "pnt239/Untiword", "sub_path": "/src/Model/Account/UntiWordDocument.java", "file_name": "UntiWordDocument.java", "file_ext": "java", "file_size_in_byte": 1208, "line_count": 71, "lan... | /*
* 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.Account;
import java.util.Date;
/**
*
* @author Lilium Aikia
*/
public class UntiWordDocument
{
private int _id... |
b587f16d-d467-4896-b02b-a94198d46c95 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-07-19 00:30:06", "repo_name": "jonathancfr/combustivel-em-conta", "sub_path": "/app/src/main/java/br/inf/combustivelemconta/models/Price.java", "file_name": "Price.java", "file_ext": "java", "file_size_in_byte": ... | package br.inf.combustivelemconta.models;
import com.google.firebase.database.Exclude;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import br.inf.combustivelemconta.enums.FuelType;
public class Price {
private double price;
private Date date;
private ... |
b6573259-7df6-4673-bf4f-47da899f2835 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-24 06:29:51", "repo_name": "swj0704/androidClassroom", "sub_path": "/bokseup/bokseup2/src/main/java/com/example/bokseup2/SecondActivity.java", "file_name": "SecondActivity.java", "file_ext": "java", "file_size... | package com.example.bokseup2;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class SecondActivity extends AppCompatActivity {
... |
c9e09d35-e89f-4419-91db-35cf9feb08f6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-12-16T18:38:10", "repo_name": "IQSS/datafest", "sub_path": "/DataFest-2017/datafest2017_dashboard_shiny/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1208, "line_count": 33, "la... | # DataFest 2017 | Intro to dynamic web documents with dashboards and Shiny
**Authors**: *Christopher Gandrud* and *Dustin Tingley*
**GitHub repo**: https://github.com/christophergandrud/datafest2017_dashboard_shiny
18 January 2017 (16:00-17:30)
> This session introduces tools for creating dynamic web documen... |
56ed4a43-2222-4bee-9539-8da0f17d02ec | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-14 21:13:21", "repo_name": "EyesEater/projetMIRAGE", "sub_path": "/mirage-ejb/src/main/java/fr/miage/xfe/metier/GestionPersonnel.java", "file_name": "GestionPersonnel.java", "file_ext": "java", "file_size_in_b... | /*
* 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 fr.miage.xfe.metier;
import fr.miage.xfe.entities.Candidat;
import fr.miage.xfe.entities.Collaborateur;
import fr.miage.xfe.en... |
96793bfc-bc2c-4b51-94ed-f44b82e67957 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-01 20:18:46", "repo_name": "nreed1/psychic-memory", "sub_path": "/FieldOutlookAndroid/app/src/main/java/com/example/niki/fieldoutlookandroid/helper/NetworkHelper.java", "file_name": "NetworkHelper.java", "file... | package com.example.niki.fieldoutlookandroid.helper;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.widget.Toast;
/**
* Created by Owner on 4/1/2016.
*/
public class Netwo... |
925924d4-480d-4612-8ebd-c3ed81f9c94f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-08 02:46:12", "repo_name": "sithanh1997/PhamDuy", "sub_path": "/PvD_cau1/app/src/main/java/com/example/windows10timt/myapplication/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "fil... | package com.example.windows10timt.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
Button buttona;
... |
20f21a91-853e-4724-8773-022bb92d46a3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-04-12 12:08:01", "repo_name": "anascimento/braido", "sub_path": "/ braido/SpringStudy/SpringProject/src/springexample/service/ServiceIntegration.java", "file_name": "ServiceIntegration.java", "file_ext": "java", ... | package springexample.service;
import springexample.email.EmailInterface;
import springexample.sms.SMSInterface;
public class ServiceIntegration implements ServiceIntegrationInterface {
private EmailInterface emailInterface;
private SMSInterface smsInterface;
public EmailInterface getEmailInterface() {
... |
4141be7b-fd4b-4ac2-8f6f-49c50c5b8955 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-24 03:33:02", "repo_name": "kchiappone/elasticsearch-rest-security", "sub_path": "/src/main/java/net/chiappone/elastic/plugin/RestSecurityHandler.java", "file_name": "RestSecurityHandler.java", "file_ext": "ja... | package net.chiappone.elastic.plugin;
import net.chiappone.elastic.plugin.util.ConfigurationHelper;
import org.elasticsearch.client.Client;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.rest.BaseRestHandler;
import org.elasticsearch.rest.Rest... |
3137a6b1-fefc-4f28-8be0-a0f36879dea7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-23 03:41:30", "repo_name": "Noviv/Commons", "sub_path": "/src/chemistry/exception/ChemException.java", "file_name": "ChemException.java", "file_ext": "java", "file_size_in_byte": 1208, "line_count": 40, "lang"... | package chemistry.exception;
/**
* Exception dealing with Commons chemistry.
*
* @author Matthew Webb
* @version 1.0
*/
public class ChemException extends Exception {
/**
* Thrown if an electron configuration has no base.
*/
public static final ChemException E_CONFIG_BASE_NOT_FOUND = new ChemEx... |
52cc42c0-193a-4b98-8db2-a397bd3815df | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2010-12-25 10:03:35", "repo_name": "tdaudelin24/server", "sub_path": "/modules/competitioncontroller/src/main/java/org/powertac/server/module/competitioncontroller/BrokerManager.java", "file_name": "BrokerManager.java... | /*
* Copyright 2002-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
1866574f-4d51-4b63-b6ca-bff1ed7d4a67 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-08 08:59:41", "repo_name": "group03-JQ021/HelloWorld", "sub_path": "/kid-sub/kid/src/com/jxdedu/servlet/TestLoginServlet.java", "file_name": "TestLoginServlet.java", "file_ext": "java", "file_size_in_byte": 12... | package com.jxdedu.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServl... |
c2eb4f73-fbb7-4969-8399-c1e377e3febf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-06-16T08:46:45", "repo_name": "thomas-vogel444/helm-sandbox", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1207, "line_count": 55, "lang": "en", "doc_type": "text... | ### Sandbox for Helm
Helm is a package manager for kubernetes objects
A good package manager provides
- Automated installation
- `helm install ...`
- Version control
- `helm upgrade ...`
- Dependency management
- `helm dep list|update`
- `helm repo ...`
- Automated removal
- `helm delete`
### Ins... |
b4b5ec22-ff9f-474a-86e5-38a284226ead | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-04 11:57:33", "repo_name": "Shneppermann/a-house", "sub_path": "/auction/src/main/java/com/epam/auction/entity/Entity.java", "file_name": "Entity.java", "file_ext": "java", "file_size_in_byte": 1208, "line_cou... | package com.epam.auction.entity;
import java.io.Serializable;
import java.util.Objects;
/**
* Base entity
*/
public abstract class Entity implements Serializable, Cloneable {
private static final long serialVersionUID = -635267118661362561L;
private int id;
public Entity() {
}
public Entity(i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.