id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
8248ffd1-8a8e-4019-88bf-ddd5632cfaf9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-09 08:57:23", "repo_name": "qoorocky/syncer", "sub_path": "/src/main/java/com/github/zzt93/syncer/consumer/filter/impl/SwitchCondition.java", "file_name": "SwitchCondition.java", "file_ext": "java", "file_size... | package com.github.zzt93.syncer.consumer.filter.impl;
import com.github.zzt93.syncer.common.expr.Expression;
import org.springframework.expression.EvaluationContext;
import org.springframework.expression.ExpressionParser;
/**
* Created by zzt on 9/11/17. <p> <h3></h3>
*/
public class SwitchCondition implements Expr... |
dd415a46-38c8-4188-8ca1-ca01070e1c9c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-02 17:24:51", "repo_name": "ArsenPodoba/OOP", "sub_path": "/podoba-arsen/OOP_Java/Lab06/src/RusWords.java", "file_name": "RusWords.java", "file_ext": "java", "file_size_in_byte": 703, "line_count": 30, "lang":... | import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class RusWords
{
MyLinkedList<String> rusWords;
RusWords(){
rusWords = new MyLinkedList<>();
}
void fillContainer(){
BufferedReader bufferedReader;
try {
b... |
ce08b661-3b4d-406e-9754-da482f941d5b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-08 03:54:35", "repo_name": "parand-co/sokan", "sub_path": "/src/dataBaseModel/dao/AmarKarmandanTajrobiDao.java", "file_name": "AmarKarmandanTajrobiDao.java", "file_ext": "java", "file_size_in_byte": 702, "line... | package dataBaseModel.dao;
import amar.model.amarRozaneJireBegir.AmarKarmandanElmi;
import amar.model.amarRozaneJireBegir.AmarKarmandanTajrobi;
import dataBaseModel.query.BaseQuery;
import dataBaseModel.query.BaseQueryDaoI;
public class AmarKarmandanTajrobiDao implements BaseQueryDaoI {
private static AmarKarmand... |
08219c08-49e1-4ab3-8342-b2a06085eca9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-10 17:10:27", "repo_name": "achuzhmarov/wtfwords", "sub_path": "/src/main/java/wtf/wtfgames/wtfwords/controller/InAppController.java", "file_name": "InAppController.java", "file_ext": "java", "file_size_in_byt... | package wtf.wtfgames.wtfwords.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import wtf.wtfgames.wtfwords.controller.type.InAppRequest;
import wtf.wtfgames.wtfwords.controller.type.InAppResponse;
import wtf.wtfgames.wtfwords.service.inapp.In... |
170ece05-bd09-4f40-ac4e-9a13452f4df4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-02-21T19:27:25", "repo_name": "brucemalis/iplHunting", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 707, "line_count": 33, "lang": "en", "doc_type": "text", "blob... | Load Imaps and cycle through a list
-------------------------------------
IPL list can be altered in the client.lua
Commands are:
-------------------------------------
/save description (without spaces)
saves location and ipl of where you are and a description to the text file. This adds to text file, does not ove... |
37a7581e-1d8d-4ea2-96e8-0152b34474c4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-26 08:10:00", "repo_name": "replyashu/WeatherInfo", "sub_path": "/app/src/main/java/ashu/gojekdemo/model/ForeCastDTO.java", "file_name": "ForeCastDTO.java", "file_ext": "java", "file_size_in_byte": 702, "line_... | package ashu.gojekdemo.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by apple on 14/04/18.
*/
@JsonInclude(... |
024996d4-4dea-4122-8d32-3757825d8e8b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-21 07:33:24", "repo_name": "kevinrigot/java8certif", "sub_path": "/src/main/java/com/example/threads2/NetworkClientCallable.java", "file_name": "NetworkClientCallable.java", "file_ext": "java", "file_size_in_b... | package com.example.threads2;
import java.io.IOException;
import java.net.Socket;
import java.util.Scanner;
import java.util.concurrent.Callable;
public class NetworkClientCallable implements Callable<RequestResponse> {
private RequestResponse requestResponse;
public NetworkClientCallable(RequestResponse requestRe... |
cadde705-2357-4ce6-8699-1e9f010597ea | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-09-27T16:19:22", "repo_name": "Martinchit/solidity_simple_shared_wallet", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 701, "line_count": 23, "lang": "en", "doc_t... | # Shared Wallet
## Introduction
It is a simple shared wallet smart contract built with solidity 0.6.0.
Development is done on [Remix IDE](http://remix.ethereum.org/) with JavaScript VM for gas usage
## Features
- Contract owner can assign allowance to different account
- Contract owner / whitelisted account can w... |
c9788183-7d4e-490b-8b39-fbf51124671e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-01T11:26:54", "repo_name": "oxydev/SubsCrypt-docs", "sub_path": "/Tech/index.md", "file_name": "index.md", "file_ext": "md", "file_size_in_byte": 702, "line_count": 22, "lang": "en", "doc_type": "text", "b... | # Technical Specification
## This project contains three basic modules
* Smart Contract
* BackEnd RestAPI and wrapper libraries
* FrontEnd components
## Smart Contract
This part will be executed on a parachain that can excute contracts.
We have both ink! and solidity implementation.
## FrontEnd components
UI dash... |
29bf87e1-6bd7-4fff-bd33-a6069b50febd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-09-11T17:16:35", "repo_name": "zihadul10101/News-Portral-client", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 704, "line_count": 21, "lang": "en", "doc_type": "t... | live link: https://news-protal-728a9.web.app
## Front-End
1.All news articles on the home page
2.Added a Header
3. Added Sliding Banner,
4. Added Sidebar(for top news),
5. Added Footer.
6.Users can view news articles by category. When they select a category they will see all of the news articles from that category.... |
cf241be5-4258-4104-8694-ebcad90de6cf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-04 06:02:07", "repo_name": "zhaoyuzhong1/fxptweb", "sub_path": "/src/main/java/com/fxptw/web/UserGoodsController.java", "file_name": "UserGoodsController.java", "file_ext": "java", "file_size_in_byte": 710, "l... | package com.fxptw.web;
import com.fxptw.dao.GoodsDao;
import com.fxptw.dao.UserGoodsDao;
import com.fxptw.dto.Goods;
import com.fxptw.dto.UserGoods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springfr... |
b2daa6b3-3a73-4511-9e6d-ada557e9c92e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-06-27T03:05:38", "repo_name": "kellyhoang0610/CONSORT-TM", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 703, "line_count": 13, "lang": "en", "doc_type": "text", "... | ## CONSORT-TM ##
This corpus contains 50 randomized controlled trial articles annotated with 37 fine-grained [CONSORT checklist items](http://www.consort-statement.org/) at the sentence level.
`data/50_XML` contains all the data in XML format.
`bert` directory contains a [BioBERT](https://github.com/dmis-lab/biobe... |
5a24d7c7-e65b-4a27-81a5-02c2df85640d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-11-03 20:23:24", "repo_name": "Adyeu/FilmApp", "sub_path": "/src/main/java/fr/utbm/App1.java", "file_name": "App1.java", "file_ext": "java", "file_size_in_byte": 703, "line_count": 29, "lang": "en", "doc_type": "... | /*
* 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.utbm;
import fr.utbm.entity.Film;
import fr.utbm.service.FilmService;
import java.io.Serializable;
import java.sq... |
cba88116-b31f-4994-afc4-c50092b2278b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-27 10:56:27", "repo_name": "sasd13/goinfromania", "sub_path": "/goinfromania-view/src/main/java/com/sasd13/goinfromania/view/App.java", "file_name": "App.java", "file_ext": "java", "file_size_in_byte": 702, "l... | package com.sasd13.goinfromania.view;
import javax.swing.SwingUtilities;
import com.sasd13.goinfromania.bean.setting.EnumSetting;
import com.sasd13.goinfromania.bean.setting.Gamepad;
import com.sasd13.goinfromania.util.preferences.SettingPreferencesFactory;
public class App {
public static void main(String[] args... |
6d92966c-abc2-4216-ae5d-9da9cb237439 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-08 20:10:06", "repo_name": "SBellido/SistemaDePeliculas", "sub_path": "/src/SistemaDePeliculas/allFavoriteGenres.java", "file_name": "allFavoriteGenres.java", "file_ext": "java", "file_size_in_byte": 702, "lin... | package SistemaDePeliculas;
import java.util.ArrayList;
public class allFavoriteGenres implements StrategyFavoriteGenres {
public allFavoriteGenres() {
}
@Override
public ArrayList<Movie> favoriteGenres(UserComponent user, ArrayList<Movie> movieLibrary) {
ArrayList<Movie> matchCategories = new ArrayList<Movie... |
acbe1ace-fd6d-4f23-89fe-066af817b44c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-05-23 15:42:20", "repo_name": "e105725/JavaFX_Vending_Machine", "sub_path": "/JavaFX_Vending_Machine/src/first/VendingMachine.java", "file_name": "VendingMachine.java", "file_ext": "java", "file_size_in_byte": 70... | package first;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
import first.controller.MainFrameController;
import first.system.tool.FileTool;
public final class VendingMachine extends Application {
public static void main(String[] a... |
86048d72-7aea-4cb0-badd-835db5e8a50a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-31 14:30:11", "repo_name": "Kerzlin/sfg-pet-clinic", "sub_path": "/pet-clinic-data/src/main/java/guru/springframework/sfgpetclinic/model/Person.java", "file_name": "Person.java", "file_ext": "java", "file_size... | package guru.springframework.sfgpetclinic.model;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter // klase koje se inherituj... |
19873ec8-9b6b-49db-85fe-c62a7927d2da | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-07-07 12:48:51", "repo_name": "tracythink/sb", "sub_path": "/SB-Security/src/main/java/com/sb/hyh/entities/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byte": 703, "line_count": 39, "la... | package com.sb.hyh.entities;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
@Entity
public class User {
@Enumerated(EnumType.STRING)
private ROLE role;
@Id
private String username;
private String password;
pub... |
1701fd91-d827-48ed-9314-e90e0fd78d52 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-07-27T13:16:21", "repo_name": "unoya/BeyondAbilityInstitution", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1207, "line_count": 38, "lang": "zh", "doc_type": "te... | ---
---
<h1 id="beyond-abilityi-nstitution">Beyond AbilityI nstitution</h1>
<p>七日殺專用的模組:<strong>超能機構</strong><br>
master代表最新的版本。</p>
<p><strong>目前最新版本</strong>:18.4</p>
<ul>
<li>
<p>BEABIN<br>
為主模組,一定要安裝。</p>
</li>
<li>
<p>BedRecoveryHealth<br>
為附加模組,非強制安裝。<br>
用途:當玩家站在床上時,會逐漸回復生命力與耐力。</p>
</li>
<li>
<p>DropOtherMin... |
82d155e0-e9e5-4355-816d-76b34251beed | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-07-09 03:27:36", "repo_name": "LawOfSynergy/Roguelike", "sub_path": "/Roguelike/src/roguelike/engine/world/World.java", "file_name": "World.java", "file_ext": "java", "file_size_in_byte": 703, "line_count": 35, "... | package roguelike.engine.world;
import java.awt.Point;
import java.util.*;
import roguelike.engine.entity.Entity;
import roguelike.engine.entity.PlayerCharacter;
/**
* World exists as a manager of the map and entities.
* It manages entities and ensures that they do not exhibit
* impossible behaviors ... |
26792dec-6ccc-4861-a8e3-8184494c2862 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-26 16:31:58", "repo_name": "nabolsy/pofstores", "sub_path": "/controller/AddBrandPostController.java", "file_name": "AddBrandPostController.java", "file_ext": "java", "file_size_in_byte": 703, "line_count": 21... | package na.com.pieceoffuck.controller;
import na.com.pieceoffuck.dao.BrandDao;
import na.com.pieceoffuck.model.Brand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springf... |
8f727d64-8325-4b9d-a608-9d9c125fc6c5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-06-09T11:38:48", "repo_name": "osma/FinnaBot", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 702, "line_count": 27, "lang": "en", "doc_type": "text", "blob_id": "8... | # FinnaBot
This is a Twitter bot that publishes pictures from the Finna portal
# Installing
You need Python 2.x with the following libraries:
* twitter
* requests
* PIL
You can install the dependencies using `pip install` or your distribution's package manager.
# Operation
When started up, this bot will perform ... |
bbd47ebe-318e-4844-8e6a-09b59ecef9ea | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-01-18T08:16:09", "repo_name": "ashr/no-username-telnet-bruter", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 702, "line_count": 11, "lang": "en", "doc_type": "tex... | # no-username-telnet-bruter
Telnet bruter for systems with no username like some video conferencing devices including anti-bruteforce-detection-and-mitigation
Herpa derp derp derp.
We got tasked with auditing the video conferencing infrastructure (cisco devices - i forget the models, will come update this) and tools l... |
1fdbb72c-143a-487b-9972-b6b9218c0b5e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-21 05:55:14", "repo_name": "StockAccountingSelenium/scarepository", "sub_path": "/PrimusBank/src/com/primusbank/testng/AdminLoginTest.java", "file_name": "AdminLoginTest.java", "file_ext": "java", "file_size_i... | package com.primusbank.testng;
import org.testng.Assert;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
import com.primusbank.constant.PrimusBankConstants;
import com.primusbank.libraries.AdminHomePage;
import com.primusbank.libraries.PrimusBankHomePage;
public class Admi... |
dffadff4-eed5-4e25-95dc-4d240d86e2e6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-03-18 06:10:53", "repo_name": "pearl2201/Space-Invaders", "sub_path": "/Space Invaders/src/Background/Background.java", "file_name": "Background.java", "file_ext": "java", "file_size_in_byte": 702, "line_count": ... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Background;
import Handler.ImageLoader;
import Main.GamePanel;
import java.awt.Graphics2D;
import java.awt.image.BufferedImag... |
711c46d8-b8ee-4829-9c10-5ad3ead218bb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-17 07:23:28", "repo_name": "mxn771208/cat021_collection", "sub_path": "/fms/redis-common/src/main/java/com/pekall/fms/redis/dao/RedisSetDao.java", "file_name": "RedisSetDao.java", "file_ext": "java", "file_siz... | package com.pekall.fms.redis.dao;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Set;
public abstract class RedisSetDao<T> {
@Autowired
private RedisClient<T> redisClient;
public abstract String getId(T t);
public boolean isMember(String key, T t) {
return r... |
05b76f1f-b415-4eb6-944e-445de01d6ea1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-05 08:35:38", "repo_name": "simdhy5/wsxzaq", "sub_path": "/McDelivvv/src/main/java/com/spring/mcdeliveryyy/service/UserServiceImp.java", "file_name": "UserServiceImp.java", "file_ext": "java", "file_size_in_by... | package com.spring.mcdeliveryyy.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.spring.mcdeliveryyy.dao.UserDao;
import com.spring.mcdeliveryyy.dto.UserDto;
@Service
public class UserServiceImp implements UserService {
@Auto... |
106886a8-8efa-45f3-9682-714b1969a4ca | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-06 15:35:19", "repo_name": "shadow-dragon/Java-Programming-Exercises", "sub_path": "/week3-050.SeparatingFirstCharacters/src/FirstCharacters.java", "file_name": "FirstCharacters.java", "file_ext": "java", "fil... |
import java.util.Scanner;
public class FirstCharacters {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
System.out.print("Type your name: ");
String text = reader.nextLine();
calculateCharacters(text);
int n = 0;
if (calculateCha... |
894a6b4a-1d6b-4a97-8f9b-89f9c330c122 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-20 18:39:11", "repo_name": "benjamincadiz/ISO_Drones2People", "sub_path": "/src/test/java/com/drones2people/spotify/TestCancion.java", "file_name": "TestCancion.java", "file_ext": "java", "file_size_in_byte": ... | package com.drones2people.spotify;
import static org.junit.Assert.*;
import com.drones2people.spotify.dominio.Cancion;
import org.junit.Before;
import org.junit.Test;
/**
* Unit test for simple Cancion.
*/
public class TestCancion {
private Cancion cancion;
@Before
public void setUp() {
cancio... |
e124adf7-88b4-46db-9f89-506b055b8f7c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-22 12:46:36", "repo_name": "Adrion/TwitterJavaLPDim", "sub_path": "/TwitterAnaliticsJAVA/src/TweeterSocket.java", "file_name": "TweeterSocket.java", "file_ext": "java", "file_size_in_byte": 701, "line_count": ... | import java.io.IOException;
import java.net.ServerSocket;
public class TweeterSocket {
public TweeterSocket ()
{
}
public void listenSocket(){
ServerSocket server = null;
try{
System.out.println("--------------- SOCKET Launched ----------------");
server = new ServerSocket(4444);
} catch (IOException e) ... |
7bf94095-f069-4e70-abe8-11eb2d3da5a7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-10-20T09:57:42", "repo_name": "kisorbiswal/accounter", "sub_path": "/src/com/vimukti/accounter/mobile/MobileApplicationAdaptor.java", "file_name": "MobileApplicationAdaptor.java", "file_ext": "java", "file_size_i... | /**
*
*/
package com.vimukti.accounter.mobile;
import com.google.gson.Gson;
import com.vimukti.accounter.mobile.xtream.JResult;
/**
* @author Prasanna Kumar G
*
*/
public class MobileApplicationAdaptor implements MobileAdaptor {
public static MobileAdaptor INSTANCE = new MobileApplicationAdapto... |
274e1c17-1aa5-4248-bbbc-a0dde7a5892f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-07 16:42:40", "repo_name": "konifar/annict-android", "sub_path": "/app/src/main/java/com/konifar/annict/MainApplication.java", "file_name": "MainApplication.java", "file_ext": "java", "file_size_in_byte": 702,... | package com.konifar.annict;
import com.konifar.annict.di.AppComponent;
import com.konifar.annict.di.AppModule;
import com.konifar.annict.di.DaggerAppComponent;
import com.squareup.leakcanary.LeakCanary;
import android.app.Application;
import android.support.annotation.NonNull;
public class MainApplication extends Ap... |
b9564eab-fd2c-44dd-bde7-3ada3f03c723 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-01-05T18:53:21", "repo_name": "PierreMH/Dataiku_test_exercise", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 702, "line_count": 21, "lang": "en", "doc_type": "tex... |
*************** USAGE ****************
1. Launch the index.php file on a local server
2. Select the colum in the drop box.
3. HOver the bars to get the informations.
*************** INFORMATIONS ****************
# Time spent
1. Discvery of the exercise: 10min
2. Searching PHP and SQLite documentations + conception: ... |
67a3aab5-2478-444c-be40-ee5052f14418 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-14 00:30:06", "repo_name": "nisreensalihmohammed/E-connect-system", "sub_path": "/src/main/java/webapp/econnect/poSs/POS.java", "file_name": "POS.java", "file_ext": "java", "file_size_in_byte": 702, "line_coun... | package webapp.econnect.poSs;
public class POS {
private String serialNumber;
private String name;
private String status;
public POS() {
}
public POS(String serial, String name, String stats) {
super();
this.serialNumber = serial;
this.name = name;
this.status = stats;
}
publi... |
6a67b938-806e-4cbb-b10d-eb2c56585213 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-20 06:24:06", "repo_name": "PtrMan/AGI-X0", "sub_path": "/src/java/ptrman/agix0/Evolution/InheritageDag.java", "file_name": "InheritageDag.java", "file_ext": "java", "file_size_in_byte": 702, "line_count": 24,... | package ptrman.agix0.Evolution;
import com.syncleus.dann.graph.AbstractDirectedEdge;
import com.syncleus.dann.graph.MutableDirectedAdjacencyGraph;
import java.util.ArrayList;
import java.util.List;
/**
* Used to store the whole inheritage history of all individuals
*/
public class InheritageDag {
public List<I... |
8cd2decb-dc1f-48aa-9f93-68d694a9c0ea | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-12 11:41:47", "repo_name": "Lookupatstars/StudyLive", "sub_path": "/app/src/main/java/com/aaron/studylive/base/BaseFragment.java", "file_name": "BaseFragment.java", "file_ext": "java", "file_size_in_byte": 716... | package com.aaron.studylive.base;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import butterknife.ButterKnife;
/**
* Created by recker on 16/5/27.
*/
public abstract class BaseFragment extends Fragment ... |
28e356de-d30b-4a41-baed-c7dcdabdfa90 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-13 13:57:04", "repo_name": "sunsetmorn/hello", "sub_path": "/morn/src/main/java/cn/comm/util/ConverterStoD.java", "file_name": "ConverterStoD.java", "file_ext": "java", "file_size_in_byte": 728, "line_count": ... | package cn.comm.util;
import org.springframework.core.convert.converter.Converter;
import org.springframework.util.StringUtils;
import java.text.SimpleDateFormat;
import java.util.Date;
public class ConverterStoD implements Converter<String, Date> {
/**
* String source
* @param source
* @return
... |
5c0db573-4345-45d0-ae90-8793e8ee8609 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-28 07:44:58", "repo_name": "mpusio/ec2k19", "sub_path": "/src/main/java/com/canvasjs/chart/data/CurriesData.java", "file_name": "CurriesData.java", "file_ext": "java", "file_size_in_byte": 704, "line_count": 3... | package com.canvasjs.chart.data;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.Set;
import static com.canvasjs.chart.useful.HandleJson.readJsonFromUrl;
public class CurriesData {
private static JSONObject json = null;
static {
try {
json = readJsonFromUrl("ht... |
437e05f9-a395-4086-beae-a02be23bd43f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-14 04:49:52", "repo_name": "duggankimani/WIRA", "sub_path": "/src/main/java/com/duggan/workflow/shared/requests/SaveProcessRequest.java", "file_name": "SaveProcessRequest.java", "file_ext": "java", "file_size_... | package com.duggan.workflow.shared.requests;
import com.duggan.workflow.shared.model.ProcessDef;
import com.duggan.workflow.shared.responses.SaveProcessResponse;
import com.wira.commons.shared.request.BaseRequest;
import com.wira.commons.shared.response.BaseResponse;
public class SaveProcessRequest extends BaseReques... |
f67cfaf7-0388-46d0-a8f8-e48ee128e38e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-13 13:39:22", "repo_name": "Montego/terminalMock", "sub_path": "/src/main/java/com/terminalmock/test/services/enumsServices/AttrTypeService.java", "file_name": "AttrTypeService.java", "file_ext": "java", "file... | package com.terminalmock.test.services.enumsServices;
import com.terminalmock.test.entities.enums.AttrType;
import com.terminalmock.test.repositories.enumsrepo.AttrTypeRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
p... |
481d7747-ed3b-4f5f-8877-d5f529853bf0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-15 03:50:21", "repo_name": "StevenHuang3300/PPLearn", "sub_path": "/common/src/main/java/com/hqb/pplearn/common/util/spring/ApplicationContextHelper.java", "file_name": "ApplicationContextHelper.java", "file_e... | package com.hqb.pplearn.common.util.spring;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
public class ApplicationContextHelper implements ApplicationContextAware {
private static ApplicationContext ... |
14401f93-9ecd-40e3-8ff6-3e2a1cdf2511 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-12-09T21:30:09", "repo_name": "mdsitton/RhythmGameChart", "sub_path": "/readme.md", "file_name": "readme.md", "file_ext": "md", "file_size_in_byte": 701, "line_count": 19, "lang": "en", "doc_type": "text", "b... | Rhythm Game Chart
=================
This is a new rhythm game chart file. It is binary, and has song meta-data embeded within it. This repo contains a WIP specfication, and several projects in development for reading and writing the format.
Various development goals are:
- Faster than .chart
- More compact note data... |
a7395ab6-7814-41cb-8e74-1b312979af63 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-13 09:44:01", "repo_name": "yilaoban/hy_esite2.0", "sub_path": "/src/project/caidan/dto/TaskDto.java", "file_name": "TaskDto.java", "file_ext": "java", "file_size_in_byte": 703, "line_count": 41, "lang": "en",... | package project.caidan.dto;
import java.util.List;
import com.huiyee.esite.dto.Pager;
import project.caidan.model.Task;
import project.caidan.model.TaskRecord;
public class TaskDto {
private List<Task> list;
private List<TaskRecord> recordList;
private Pager pager;
public List<Task> getList() {... |
693cea86-d804-4197-9801-662e287c4a82 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-17 15:45:52", "repo_name": "linhvovn/demo-google-storage", "sub_path": "/src/main/java/com/legalfab/util/PDFGenerator.java", "file_name": "PDFGenerator.java", "file_ext": "java", "file_size_in_byte": 702, "lin... | package com.legalfab.util;
import java.io.OutputStream;
import com.itextpdf.text.Document;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
public class PDFGenerator {
public static void generatePDF(String text, String number,OutputStream out){
Document document = new Document();
try... |
35e26720-add7-49d0-87da-3a80051a2767 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-14 08:13:40", "repo_name": "juicycool92/project-WEB-copy", "sub_path": "/src/net/epress/action/pressViewAdmin.java", "file_name": "pressViewAdmin.java", "file_ext": "java", "file_size_in_byte": 701, "line_coun... | package net.epress.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.epress.db.pressDAO;
import net.epress.db.pressVO;
public class pressViewAdmin implements Action {
@Override
public ActionForward execute(HttpServletRequest req... |
447b0924-0b1c-4f77-af6c-1563f0b368db | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-09-23T00:59:35", "repo_name": "AlastairTaft/closure-library-starter", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 702, "line_count": 23, "lang": "en", "doc_type"... |
This proof of concept demonstrates using Google's closure library in the CommonJS
ecosystem. It uses a custom babel plugin so that instead of having to do
```
goog.require('goog.array')
```
You can now require any goog module the CommonJS way.
```
var array = require('goog.array')
```
It uses React's jsx plugin wit... |
9fff19bc-866c-42e0-bc91-6dd96296d98d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-10-07 03:05:46", "repo_name": "jon914/polydes", "sub_path": "/Data Structures Extension/src/com/polydes/datastruct/data/structure/cond/IsCondition.java", "file_name": "IsCondition.java", "file_ext": "java", "file... | package com.polydes.datastruct.data.structure.cond;
import com.polydes.datastruct.data.structure.StructureField;
public class IsCondition extends SubCondition
{
public StructureField field;
public String value;
public IsCondition(StructureField field, String value)
{
this.field = field;
this.value = value;
... |
f8499303-3bd4-43c5-9fdb-564dac51678d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-22 16:53:46", "repo_name": "SM-APCS/sports-stats-l1onh3art88", "sub_path": "/Sport_Stats/src/sport_stats/Sport.java", "file_name": "Sport.java", "file_ext": "java", "file_size_in_byte": 701, "line_count": 33, ... | /*
* 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 sport_stats;
/**
*
* @author spenc_000
*/
public abstract class Sport {
String player;
int score;
public S... |
2ce2e09c-ca8d-4f5a-86ca-fcaf95e8cccb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-03-05T07:57:04", "repo_name": "bfocht/win-bin", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 702, "line_count": 33, "lang": "en", "doc_type": "text", "blob_id": "... | win-bin
=======
batch files to make git commands more convenient
## Installation
First install git-scm
During installation choose
### Use Git and optional Unix tools from Windows Command Prompt
### Checkout Windows-style, commit Unix-style line endings
```
git clone git@github.com:bfocht/win-bin.git c:\bin
```
add... |
7bbb608c-07cb-4c60-bc56-bd02bd44e689 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-10 09:42:25", "repo_name": "curroblanco/spring-formation", "sub_path": "/swearing-microservice/src/test/java/es/urjc/code/service/SwearingServiceImplTest.java", "file_name": "SwearingServiceImplTest.java", "fi... | package es.urjc.code.service;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class SwearingServiceImplTest {
private SwearingService swearingService = new SwearingServiceImpl();
@Test
public void shouldReturnTrue() {
String t... |
594c499b-d843-453d-90e3-f9c0c824d215 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-09 09:35:13", "repo_name": "Apurba000Biswas/MyJavaPractise", "sub_path": "/src/polimorphism_example/Polymorphism_example.java", "file_name": "Polymorphism_example.java", "file_ext": "java", "file_size_in_byte"... | package polimorphism_example;
public class Polymorphism_example {
public static void main(String[] args) {
Polymorphism_example obj = new Polymorphism_example();
obj.opertaion();
}
private void opertaion() {
Human human1 = new Bangladeshi("Apurba", "Dhaka-Mirpur");
Human human2 = new Indian("Masum", "... |
3ef843f4-9c52-4320-a787-4775eeaa9dac | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-08-23T01:52:49", "repo_name": "Tzcodes101/passwordGenerator", "sub_path": "/Develop/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 701, "line_count": 19, "lang": "en", "doc_type"... | # 03 JavaScript: Password Generator
This password generator does the following:
- Prompt user to input length
- checks input is a number between 8 and 128 characters long
- prompts user to enter number that matches criteria if it does not
- Promt user to include at least one lower, upper, numeric, or special... |
025245f3-c26d-4e21-8062-729539ec2848 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-08-14T01:18:52", "repo_name": "crs2here/workshop", "sub_path": "/tech/react/index.md", "file_name": "index.md", "file_ext": "md", "file_size_in_byte": 708, "line_count": 18, "lang": "en", "doc_type": "text", ... | ---
title: "React"
---
React is a declarative, efficient, and flexible JavaScript library for building user interfaces. It lets you compose complex UIs from small and isolated pieces of code called “components”.
**source** = [Tutorial: Intro to React - React](https://reactjs.org/tutorial/tutorial.html)
### React... |
a960ded8-1de8-4c35-8a33-0bb0f67810c9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-22 08:22:04", "repo_name": "springcloud-wxsell/design-patterns", "sub_path": "/src/main/java/com/david/design/patterns/creational/builder/Coach.java", "file_name": "Coach.java", "file_ext": "java", "file_size_... | package com.david.design.patterns.creational.builder;
/**
* Created by wangwei on 2019/8/30.
*/
public class Coach {
private CourseBuilder courseBuilder;
public Coach(CourseBuilder courseBuilder) {
this.courseBuilder = courseBuilder;
}
public Course createCourse(String courseName, String c... |
3e203b30-fb3d-462e-9c26-46ecb86bdc80 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-03-10T03:16:28", "repo_name": "timesculptor/timesculptor.github.io", "sub_path": "/_drafts/blog/2016-12-14-rtfsc-with-opengrok.md", "file_name": "2016-12-14-rtfsc-with-opengrok.md", "file_ext": "md", "file_si... | ---
layout: post
title: Mybatis逆向工程
categories: Java
description: mybatis逆向工程-mybatis-generator。
keywords: Mybatis
---
mybatis官方提供逆向工程 可以针对单表自动生成mybatis执行所需要的代码
### 逆向工程
MyBatis Generator(MBG),可以逆向生成持久层的基本代码,可以自由组合完成比较复杂的查询。
[官方文档](http://www.mybatis.org/generator/configreference/xmlconfig.html)。
### maven依赖
* My... |
03a02ea2-1798-43e2-96b5-72259d7bd16f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-01-20 06:00:25", "repo_name": "zhangzhixiu/LeetCode", "sub_path": "/src/main/java/com/github/zhangzhixiu/leetcode/LongestValidParentheses.java", "file_name": "LongestValidParentheses.java", "file_ext": "java", "f... | /**
*
*/
package com.github.zhangzhixiu.leetcode;
import java.util.Stack;
/**
* @author zhangzhixiu
*
*/
public class LongestValidParentheses {
public int longestValidParentheses(String s) {
char[] array = s.toCharArray();
int count = 0;
int max = 0;
Stack<Character> stack = new Stack<Character... |
4e1cbd34-7be7-4b4c-9a02-aa31821a0b03 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-30 13:02:33", "repo_name": "hurusea/LeetCode", "sub_path": "/src/aimoffer/findRepeatNumber.java", "file_name": "findRepeatNumber.java", "file_ext": "java", "file_size_in_byte": 701, "line_count": 30, "lang": "... | package aimoffer;
/**
* @hurusea
* @create2020-03-19 11:44
*/
public class findRepeatNumber {
public static void main(String[] args) {
findRepeatNumber question03 = new findRepeatNumber();
int[] nums ={3, 1, 2, 3};
question03.findRepeatNumber(nums);
}
public int findRepeatNumber... |
a0e4c20e-eef7-4db2-b696-2a88995cb696 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-15 17:29:34", "repo_name": "gokulnathperiasamy/WeatherMap", "sub_path": "/app/src/main/java/com/kpgn/weathermap/manager/RetrofitManager.java", "file_name": "RetrofitManager.java", "file_ext": "java", "file_siz... | package com.kpgn.weathermap.manager;
import android.content.Context;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
/**
* Created by gokulnathkp on 24/10/17.
*/
public class RetrofitManager {
public static Ret... |
ece2e25e-9470-44ec-b02d-6bd8e302888e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-07 09:20:51", "repo_name": "Calimerico/eventify", "sub_path": "/eventify-backend/user-service/src/main/java/com/eventify/userban/api/rest/BanUserRequest.java", "file_name": "BanUserRequest.java", "file_ext": "... | package com.eventify.userban.api.rest;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.... |
90d1f437-768e-46c8-b715-88be7ac1ec38 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-27 15:45:18", "repo_name": "DoubanBJFU/BjfuDouban", "sub_path": "/jdbcFordouban/src/bean/MT_link.java", "file_name": "MT_link.java", "file_ext": "java", "file_size_in_byte": 702, "line_count": 40, "lang": "en"... | package bean;
public class MT_link {
private int SL_id;
private int MT_id;
private int M_id;
public MT_link(int mL_id, int mT_id, int m_id) {
super();
SL_id = mL_id;
MT_id = mT_id;
M_id = m_id;
}
public MT_link() {
super();
}
@Override
public String toString() {
return "MT_link [M... |
683da292-3474-47c0-88de-5e8923ed0d6e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-23 05:37:03", "repo_name": "YOUSSEFHARGAM/Gestion-des-migrations-2021", "sub_path": "/CountryAndNumber.java", "file_name": "CountryAndNumber.java", "file_ext": "java", "file_size_in_byte": 702, "line_count": 3... | package it.polito.tdp.borders.model;
public class CountryAndNumber implements Comparable<CountryAndNumber> {
private Country country ;
private int number ;
public CountryAndNumber(Country country, int number) {
super();
this.country = country;
this.number = number;
}
public Country getCoun... |
7cd8cc8c-d4a0-440a-88c4-55b156b5630e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-01-19T17:03:46", "repo_name": "AICIP-UTK/notes", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 701, "line_count": 25, "lang": "en", "doc_type": "text", "blob_id": ... | # notes
1. add everyone to github
2. get code on github
3. make a docker for code to work on lab computer
4. download data
5. add pictures of data to github
6. add nice picture of plan to github
7. work out how the linestring function works and its reverse
8. mess with UNET
9. add an example of the process to UNET
10. ... |
a4458a69-b349-4e60-874a-0e38685a714b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-05 13:10:40", "repo_name": "arcbass/wstest", "sub_path": "/src/java/ws/MessageTextEncoder.java", "file_name": "MessageTextEncoder.java", "file_ext": "java", "file_size_in_byte": 704, "line_count": 34, "lang": ... |
package ws;
import com.google.gson.Gson;
import javax.websocket.EncodeException;
import javax.websocket.Encoder;
import javax.websocket.EndpointConfig;
import wsmessages.WsMessage;
/**
*
* @author Arnau
*/
public class MessageTextEncoder implements Encoder.Text<WsMessage>{
private final G... |
5cf95874-3ebe-45c3-b1ae-ead6d44e2f29 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-26 20:45:50", "repo_name": "trj8497/WebCheckers", "sub_path": "/src/main/java/com/webcheckers/model/BoardView.java", "file_name": "BoardView.java", "file_ext": "java", "file_size_in_byte": 702, "line_count": 3... | package com.webcheckers.model;
import java.util.ArrayList;
import java.util.Iterator;
/**
* The object to represent the board as a list of Row objects.
*
* @author Elyse Castles
* @author Jasmine Liang
*/
public class BoardView implements Iterable<Row> {
//Attributes
private ArrayList<Row>... |
5f4b9489-949a-4936-9053-f6280a70fe56 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-01 14:35:02", "repo_name": "Marin955/compname-orders", "sub_path": "/compname-orders-api/src/main/java/com/compname/orders/api/message/request/employee/SearchEmployeeRequest.java", "file_name": "SearchEmployee... | package com.compname.orders.api.message.request.employee;
import com.compname.orders.api.message.request.ApiPaginationRequest;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
public class SearchEmploy... |
37430d3c-60c6-4cf0-9566-a37bd41ef8e4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-07 03:13:47", "repo_name": "DavidNovo/DropBookmarks", "sub_path": "/src/main/java/net/novogrodsky/api/Saying.java", "file_name": "Saying.java", "file_ext": "java", "file_size_in_byte": 701, "line_count": 40, "... | package net.novogrodsky.api;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.validator.constraints.Length;
/**
* This is a POJO. It represents information that will be sent across
* a request.
* <p>
* Also this is immutable.
* <p>
* Uses JavaBeans standard.
* Created by david on 6/7/... |
d3259a11-7c42-448b-9d22-064e558cda53 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-08 17:04:47", "repo_name": "MaximPifagor/WebWallet", "sub_path": "/src/Wallet/WalletService/WalletMain.java", "file_name": "WalletMain.java", "file_ext": "java", "file_size_in_byte": 701, "line_count": 24, "la... | package Wallet.WalletService;
import Dispatcher.ThreadDispatcher;
import Dispatcher.ThreadMonitor;
import java.net.ServerSocket;
import java.net.Socket;
public class WalletMain {
public static void main(String[] args) {
ThreadDispatcher dispatcher = ThreadDispatcher.getInstance(new ThreadMonitor("Server... |
1efee0ff-c99a-4ea7-9e1a-04f9a36d4f5e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-06 00:53:44", "repo_name": "mnfera/AcudaMeAPP", "sub_path": "/app/src/main/java/com/mgtech/acudame/model/CostumItem.java", "file_name": "CostumItem.java", "file_ext": "java", "file_size_in_byte": 701, "line_co... | package com.mgtech.acudame.model;
public class CostumItem {
private String spinnerItemName;
private int spinnerItemImage;
public CostumItem(String spinnerItemName, int spinnerItemImage) {
this.spinnerItemName = spinnerItemName;
this.spinnerItemImage = spinnerItemImage;
}
public S... |
5294eddc-dd8d-4a2a-a478-f406931a87a8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-14 15:27:19", "repo_name": "bishalpaudel/auctionProject", "sub_path": "/src/main/java/org/auctionproject/web/dto/PWResetEmailDTO.java", "file_name": "PWResetEmailDTO.java", "file_ext": "java", "file_size_in_by... | package org.auctionproject.web.dto;
import org.auctionproject.web.model.User;
import org.auctionproject.web.validation.EmailAlreadyExists;
import org.auctionproject.web.validation.ValidEmail;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import javax.validatio... |
1d0bdbff-4c96-4e2f-85e6-29c0a3f78023 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-03 13:46:20", "repo_name": "Omender123/ImTrade", "sub_path": "/app/src/main/java/com/trade/imtrade/Model/request/ChangeEmailBody.java", "file_name": "ChangeEmailBody.java", "file_ext": "java", "file_size_in_by... | package com.trade.imtrade.Model.request;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class ChangeEmailBody {
@SerializedName("email")
@Expose
public String email;
@SerializedName("newEmail")
@Expose
public String newemail;
@Seriali... |
75ee261c-aa3d-41c1-8d48-55b0c467659a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-03-19T14:00:16", "repo_name": "atom-ocaml/build-dune", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 701, "line_count": 32, "lang": "en", "doc_type": "text", "blob... | # build-dune
_Use [dune] and [build] to compile your OCaml projects in Atom._
## Usage
If your project contains a `<package>.opam` file, this package provides the
following build targets with corresponding commands.
| Target | Atom Command |
| --------- | -------------------------- |
| build |... |
b64f837f-ce34-4927-8b95-5011eb077e4f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-09 00:54:28", "repo_name": "BreakerBots/Tsunami_2020", "sub_path": "/src/main/java/frc/team5104/auto/actions/ZeroTurretAction.java", "file_name": "ZeroTurretAction.java", "file_ext": "java", "file_size_in_byte... | /* BreakerBots Robotics Team (FRC 5104) 2020 */
package frc.team5104.auto.actions;
import frc.team5104.auto.AutoPathAction;
import frc.team5104.subsystems.Turret;
import frc.team5104.util.console;
import frc.team5104.util.console.c;
public class ZeroTurretAction extends AutoPathAction {
private double angleToZeroT... |
544849c4-a4b8-4538-a2e4-04dc9eb19e0d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-28 02:12:46", "repo_name": "thomas-dean/GITS", "sub_path": "/src/main/java/me/tomdean/gits/services/RoleServiceImpl.java", "file_name": "RoleServiceImpl.java", "file_ext": "java", "file_size_in_byte": 701, "li... | package me.tomdean.gits.services;
import me.tomdean.gits.daos.RoleDao;
import me.tomdean.gits.models.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.transaction.Transactional;
import java.util.List;
@Service("roleService")
@Transactiona... |
7248fbb2-e609-468a-bde9-857b52eef22e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-09 10:00:44", "repo_name": "NikolasManes/GraphAlgorithms", "sub_path": "/src/com/nikolas/Path.java", "file_name": "Path.java", "file_ext": "java", "file_size_in_byte": 701, "line_count": 31, "lang": "en", "doc... | package com.nikolas;
public class Path {
// The path connects 2 nodes - has direction and weight
private Node mStart;
private Node mEnd;
private int mWeight;
// Basic constructor
public Path(Node start, Node end, int weight) {
this.mStart = start;
this.mEnd = end;
this.m... |
ab040e02-6d24-4ad9-abfd-61ceb47c804c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-09 14:06:25", "repo_name": "karlex7/Virgo_Hospital", "sub_path": "/src/MODEL/Adress/Street.java", "file_name": "Street.java", "file_ext": "java", "file_size_in_byte": 702, "line_count": 39, "lang": "en", "doc_... | package MODEL.Adress;
/**
*
* @author Karlo
*/
public class Street{
private int IDStreet;
private String StreetName;
private int CityID;
public Street(int IDStreet, String StreetName, int CityID) {
this.IDStreet = IDStreet;
this.StreetName = StreetName;
this.Ci... |
6b007082-677d-42b6-9ed2-1a831cdfa854 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-26 21:01:23", "repo_name": "Krivv9/Projekt-Flota", "sub_path": "/src/main/java/pl/kamilracki/flota/models/entities/BaseEntity.java", "file_name": "BaseEntity.java", "file_ext": "java", "file_size_in_byte": 700... | package pl.kamilracki.flota.models.entities;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.time.LocalDateTime;
@Getter @Setter
@MappedSuperclass
public abstract class BaseEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(... |
7dd068a1-9517-44aa-a957-1520d371eec3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-27 13:16:26", "repo_name": "hedesandxlii/matching", "sub_path": "/java_solution/src/main/java/Man.java", "file_name": "Man.java", "file_ext": "java", "file_size_in_byte": 701, "line_count": 26, "lang": "en", "... | /**
* Created by andre on 2018-03-21.
*/
public class Man extends Person{
boolean[] womenPorposedTo;
public Man(String name, int id, int[] preferences) {
super(name, id, preferences);
womenPorposedTo = new boolean[preferences.length*2+1];
}
public int getMostPreferedWoman() {
... |
d8d8cc31-5d13-49a9-a0dd-9b0a5120e78c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-26 04:20:42", "repo_name": "kgaurv/PracticePrograms", "sub_path": "/src/com/arrays/KadaneAlgo.java", "file_name": "KadaneAlgo.java", "file_ext": "java", "file_size_in_byte": 701, "line_count": 33, "lang": "en"... | package com.arrays;
import java.io.IOException;
import java.util.Scanner;
public class KadaneAlgo {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
System.out.println("Enter the number of test cases/ arrays u want");
Scanner scan = new Scanner(Sy... |
8d9bae79-3e4c-4802-8aba-e9078a95a384 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-05-13 08:34:21", "repo_name": "weeg/AntFarm", "sub_path": "/src/view/PoisonView.java", "file_name": "PoisonView.java", "file_ext": "java", "file_size_in_byte": 701, "line_count": 34, "lang": "en", "doc_type": "co... | package view;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;
import modell.Drawable;
import modell.Poison;
import modell.Field;
public class PoisonView implements View {
private Poison poison;
public void redraw(Graphics2D g) {
Field field = poison.getPosition();
FieldVie... |
a5baf11b-aab0-4571-b6e4-53451b39b991 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-04 03:42:43", "repo_name": "rorens05/cake_android", "sub_path": "/app/src/main/java/com/example/pristinepastries/models/Categories.java", "file_name": "Categories.java", "file_ext": "java", "file_size_in_byte"... | package com.example.pristinepastries.models;
public class Categories {
public String id;
public String name;
public String description;
public String image;
public Categories(String id, String name, String description, String image) {
this.id = id;
this.name = name;
this.d... |
d6068db3-cfe7-464c-b355-e500622ed209 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-12-02T20:56:38", "repo_name": "joaocruz123/Lab-Nutri", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 702, "line_count": 14, "lang": "en", "doc_type": "text", "blob... | # Lab-Nutri
System for management of laboratory experiments on the campus of Veterinary Medicine(Federal University of Pará).
# Version
The system is under development and is currently in Version 1.0
# Description
The project is based on the design and development of software that aims to: scheduling Animal Nutrition... |
f0ed055b-b9b7-46df-8b84-d329de29e5ca | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-24 08:06:21", "repo_name": "kukuruzca/stackoverflow_challenge", "sub_path": "/src/main/java/sample/service/stackoverflow/objects/CommonWrapperObject.java", "file_name": "CommonWrapperObject.java", "file_ext": ... | package sample.service.stackoverflow.objects;
import java.util.List;
public class CommonWrapperObject<T> {
public final int quota_max;
public final int quota_remaining;
public final String error_message;
public final String error_name;
public final boolean has_more;
public final List<T> items;... |
a25a3078-d91b-43fd-9a71-271ac6d22f87 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-18 14:32:16", "repo_name": "patilana22/receipt--mtwyford", "sub_path": "/Transaction.java", "file_name": "Transaction.java", "file_ext": "java", "file_size_in_byte": 701, "line_count": 37, "lang": "en", "doc_t... | import java.util.Scanner;
public class Transaction {
Scanner scan = new Scanner(System.in);
public void greet()
{
System.out.println("Welcome! \nPlease choose an item: ");
}
public int purchase()
{
boolean isCompleted = false;
int finalInt = 0;
//Loop asking if they do not input a number 1...2
whil... |
a00734e5-aaba-4fcc-bc43-7ce03b93a8b2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-21 14:04:22", "repo_name": "Flexinit/JesusIsLordRadioAndroidApp", "sub_path": "/app/src/main/java/businessregistration/lightspace/com/radioapp/Recording/FolderHistory.java", "file_name": "FolderHistory.java", ... | package businessregistration.lightspace.com.radioapp.Recording;
import android.os.Environment;
import java.io.File;
import java.util.Stack;
/**
* Created by user on 10/5/2018.
*/
public class FolderHistory {
Stack<String> folderHistory;
public FolderHistory()
{
folderHistory = new Stack<>();... |
dc2b3f4b-782b-4228-aa0c-fb1363ff6f6a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-02-17T08:45:02", "repo_name": "SargoDarya/dogeapi.js", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 702, "line_count": 41, "lang": "en", "doc_type": "text", "blob... | DogeAPI.js
==========
As per the [documentation](https://dogeapi.com/api_documentation), the API is ~~currently in testing mode only~~ now live!
Author
------
Adam Schodde
Version
-------
1.0.1
Installation
-----------
```bash
npm install git+<repo>
edit src/settings.js
```
Examples
--------
Check /example folder
... |
07b3684c-f9e4-4270-949d-b6ae1920bce4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-26 20:47:31", "repo_name": "holydrinker/2048-chrome-bot", "sub_path": "/src/main/java/com/example/MyResource.java", "file_name": "MyResource.java", "file_ext": "java", "file_size_in_byte": 700, "line_count": 2... | package com.example;
import javax.ws.rs.*;
import com.example.brain.Brain;
import com.example.brain.BruteBrain;
/**
* Root resource (exposed at "myresource" path)
*/
@Path("/")
public class MyResource {
Brain brain = new BruteBrain();
/**
* Method handling HTTP GET requests. The returned object will be ... |
36810e6b-81ab-4982-81db-d3df9c190f58 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-19 22:28:04", "repo_name": "Jannled/Minecraft-MdI", "sub_path": "/Minecraft-MdI/src/com/github/jannled/mdiServer/P.java", "file_name": "P.java", "file_ext": "java", "file_size_in_byte": 701, "line_count": 29, ... | package com.github.jannled.mdiServer;
import org.bukkit.ChatColor;
/**
* Class for reusing the plugin prefix,
* @author Jannled
*
*/
public class P
{
/** The permission prefix used in plugin.yml */
public static final String pluginPermission = "mdiServer";
/** The name to prefix in chat */
public static fi... |
b76f1ec2-d9f0-499c-b461-8942d8396d96 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-28 22:35:53", "repo_name": "starkjosh/Revature", "sub_path": "/Week 6/SpringCoreDemo/src/main/java/com/revature/beans/BearWithAutomagic.java", "file_name": "BearWithAutomagic.java", "file_ext": "java", "file_s... | package com.revature.beans;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class BearWithAutomagic extends Bear {
@Autowired //@Inject is pretty much synonymous
private Cave cave;
@Override
public Cave getCave(){
return this.... |
6434e75b-be5b-4b57-8b02-2d470580c3df | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-20 21:22:58", "repo_name": "simonmx1/JavaChat", "sub_path": "/app/src/main/java/com/example/javachat/Timeout.java", "file_name": "Timeout.java", "file_ext": "java", "file_size_in_byte": 701, "line_count": 34, ... | package com.example.javachat;
public class Timeout extends Thread {
private int millis = 7000;
private boolean timeout = false;
private boolean timeout2 = false;
public Timeout(int millis) {
this.millis = millis;
}
@Override
public void run() {
while (!(timeout && timeout... |
1da21729-b840-466e-80c9-9c43aee99f9b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-08-04T14:07:18", "repo_name": "chanbaihai/wending", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 942, "line_count": 43, "lang": "zh", "doc_type": "text", "blob_id... | # 课工厂文鼎官网
> 首页制作
> webpack+sass
# 💪🏻 start
1. npm i
2. ❤️npm start
> 启动webpack-dev-serve
3. npm run build
> 打包文件
### 4. 👉 配置文件为config文件夹,html模板为src/pages文件夹,增加页面需要在config/pages.js里面添加相应的入口,并在src/pages,src/js新建相应名字的html和js
```
// config/pages.js
const htmlplugin = require('html-web... |
5f25ac22-fd04-4cd8-916f-9694e1e3232c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-12 08:06:55", "repo_name": "Kanarek93/Win-the-trophy-app", "sub_path": "/src/test/java/canary/domain/UserMapperTest.java", "file_name": "UserMapperTest.java", "file_ext": "java", "file_size_in_byte": 700, "lin... | package canary.domain;
import canary.domain.user.User;
import canary.domain.user.UserDto;
import canary.domain.user.UserMapper;
import org.junit.jupiter.api.Test;
import org.mapstruct.factory.Mappers;
import static org.junit.jupiter.api.Assertions.*;
class UserMapperTest {
private UserMapper mapper = Mappers.ge... |
d3cc4a99-fa24-4f70-997f-402155759e20 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-23 01:12:01", "repo_name": "numen06/JBM", "sub_path": "/jbm-framework/jbm-framework-autoconfigure/jbm-framework-autoconfigure-mqtt/src/main/java/jbm/framework/boot/autoconfigure/mqtt/KeySerialization.java", "f... | package jbm.framework.boot.autoconfigure.mqtt;
public class KeySerialization {
private String clientId;
private String defaultTopic;
public KeySerialization() {
super();
}
public KeySerialization(String clientId, String defaultTopic) {
super();
this.clientId = clientId;
... |
aa2ed078-bd4b-4af7-99c3-3fac4cb98cea | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-02-06 01:18:34", "repo_name": "jbooth/hcache", "sub_path": "/src/main/java/hcache/io/StringReader.java", "file_name": "StringReader.java", "file_ext": "java", "file_size_in_byte": 701, "line_count": 30, "lang": "... | package hcache.io;
import java.io.Closeable;
import java.io.IOException;
import org.apache.hadoop.io.Text;
/**
* Composes a CdbReader<Text,Text> and provides fast utilities for
* String queries by maintaining a static threadlocal Text as a buffer.
*/
public class StringReader implements Closeable {
private sta... |
6d903d64-90c5-45fa-9f73-17b1362a842d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-13 06:59:52", "repo_name": "iamfocused/process-script", "sub_path": "/src/test/java/com/isaac/TestOfJava.java", "file_name": "TestOfJava.java", "file_ext": "java", "file_size_in_byte": 705, "line_count": 33, "... | package com.isaac;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
public class TestOfJava {
static boolean includeItem(Map map, String items) {
if (items.equals("all")) {
return true;
} else {
if (Arrays.stream(items.split(",")).anyMatch(map.get("... |
812871ed-f057-4bdd-b405-e6a4e113c77b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-01 13:28:02", "repo_name": "Kanishqdev/LogicCrackers1", "sub_path": "/app/src/main/java/com/calculator/kanis/logiccrackers/finalScore.java", "file_name": "finalScore.java", "file_ext": "java", "file_size_in_by... | package com.calculator.kanis.logiccrackers;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
/**
* Created by kanis on 28-02-2018.
*/
public class finalScore extends AppCompatActivit... |
5cf4a196-7391-4eef-8ad7-7c5df19cd10b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-21 16:01:39", "repo_name": "AmadeusITGroup/Postman-Orchestrator", "sub_path": "/PostmanOrchestratorCommon/src/test/java/postman/orchestrator/common/OrchestratorTest.java", "file_name": "OrchestratorTest.java",... | package postman.orchestrator.common;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
class OrchestratorTest {
@Test
void testGetTestList() {
Orchestrator orch = new Orchestrator();
OrchestratorItem item = new Orchestra... |
290d7b36-1997-46f2-abbd-7080047aa93f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-22 01:30:16", "repo_name": "chichengfengye/cas-demo-servlet", "sub_path": "/src/main/java/com/tdt/demo/listener/SessionListener.java", "file_name": "SessionListener.java", "file_ext": "java", "file_size_in_byt... | package com.tdt.demo.listener;
import com.tdt.demo.util.SessionUtil;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
public class SessionListener implements HttpSessionListener {
public void sessionCreated(HttpSessionEvent httpSes... |
c843e565-bb12-4a0b-b0ee-51aafd1507fd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-07-11T16:09:34", "repo_name": "arturolei/ls_notes_2019", "sub_path": "/16 Components II/190417_lecture_notes.md", "file_name": "190417_lecture_notes.md", "file_ext": "md", "file_size_in_byte": 701, "line_coun... | # April 17, 2019 Lecture Notes, Components
# Useful Links
- [Lambda School Training Kit](https://learn.lambdaschool.com/fsw/module/recd6kdks6emapsrq)
- [Codepen.io My Fork](https://codepen.io/arturolei/pen/eoerpj?editors=1010)
- [Codepen.io Instructor Codepent](https://codepen.io/campope/pen/xePpeG?editors=1011)
- [M... |
96f2855e-78ce-4c97-91b7-88acb61237f3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-15 08:00:15", "repo_name": "bigbubble/springboottest", "sub_path": "/src/main/java/me/peabee/DemoApplication.java", "file_name": "DemoApplication.java", "file_ext": "java", "file_size_in_byte": 715, "line_coun... | package me.peabee;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;
@MapperScan("me.p... |
220f2925-fe62-4bb6-bff3-0f3f89acdd93 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-08-02T22:15:23", "repo_name": "datasnakes/github-readme-templates", "sub_path": "/folder-readme-template/folder_readme_temp.md", "file_name": "folder_readme_temp.md", "file_ext": "md", "file_size_in_byte": 70... |
Folder Name & Description
-------------------------
At the top of the file there should be a short introduction and/ or overview that explains **what** the folder contains and how it relates to the project. This description should match descriptions added for package managers (Gemspec, package.json, etc.)
Usage
----... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.