id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
be8336ec-26da-4725-aa86-137e42d99664 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-26 09:38:03", "repo_name": "noftomer/MavenTestng", "sub_path": "/src/test/java/MavenTestng.java", "file_name": "MavenTestng.java", "file_ext": "java", "file_size_in_byte": 636, "line_count": 21, "lang": "en", ... | import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.testng.annotations.Test;
public class MavenTestng {
@Test
public void test1() throws InterruptedException {
System.setProperty("webdriver.chrome.driver","C:\\Users\\Lenovo\\Downloa... |
2f34830d-cc02-4592-852b-1c5e9606057c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-27 21:17:17", "repo_name": "jorisvddonk/future-battlegrounds", "sub_path": "/src/main/java/futurebattlegrounds/ShipDataFetcher.java", "file_name": "ShipDataFetcher.java", "file_ext": "java", "file_size_in_byte... | package futurebattlegrounds;
import java.util.Optional;
import javax.inject.Inject;
import javax.inject.Singleton;
import graphql.schema.DataFetcher;
import graphql.schema.DataFetchingEnvironment;
@Singleton
public class ShipDataFetcher implements DataFetcher<Ship> {
@Inject
private Battleground battlegrou... |
8ba081a5-4410-4fdc-a23d-3a48769a4f45 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-12 01:04:47", "repo_name": "pmlab-ucd/android-ml-weka", "sub_path": "/src/utils/test/TestLog.java", "file_name": "TestLog.java", "file_ext": "java", "file_size_in_byte": 636, "line_count": 41, "lang": "en", "d... | package utils.test;
import org.junit.Before;
import org.junit.Test;
import utils.Log;
/**
* Description:
*
* @author Hao Fu(haofu@ucdavis.edu)
* @since 2019/1/10
*/
public class TestLog {
private static Log log;
@Before
public void init() {
log = Log.getLogger("TestLog", Log.DEBUG);
}
... |
84e5792b-6f82-434b-9041-927d088ba20c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-24 21:21:23", "repo_name": "jakubklimek97/TabletopSimulator", "sub_path": "/src/main/java/pl/polsl/gk/tabletopSimulator/gui/ColoredQuad2D.java", "file_name": "ColoredQuad2D.java", "file_ext": "java", "file_siz... | package pl.polsl.gk.tabletopSimulator.gui;
import org.joml.Vector4f;
import pl.polsl.gk.tabletopSimulator.utility.Shader;
public class ColoredQuad2D extends GuiElement {
public ColoredQuad2D(float posX, float posY, float width, float height, Vector4f color) {
super(posX, posY, width, height);
this... |
82a6de83-6963-4ad9-8e12-2529038f65f4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-11-15T19:20:34", "repo_name": "truekubas/patsanjs", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 636, "line_count": 27, "lang": "en", "doc_type": "text", "blob_id... | # Patsanjs
Angular 1 / Vue like framework. Written with ES6 and love
============
## Installation
First clone the repo, install packages via yarn or classical 'npm i'
## Build
Use typical 'webpack' to build app into dist folder in development mode.
Use -p flag to build prod ('webpack -p')
## Usage
Use markup like t... |
ede4002d-e752-4143-9b94-162fe52b0c6b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-02 15:42:23", "repo_name": "rohitx71/Codechef-CCDSAP-problems", "sub_path": "/src/Arrays/LECANDY.java", "file_name": "LECANDY.java", "file_ext": "java", "file_size_in_byte": 638, "line_count": 31, "lang": "en"... | package Arrays;
import java.util.Scanner;
/**
* Created by rohitx71 on 18-10-2017.
*/
public class LECANDY {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
for (int i = 0; i < t; i++) {
int e = sc.nextInt();
i... |
a6509b29-f8c5-4953-af21-d14fa7a4a6ed | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-20 04:56:07", "repo_name": "changchanglccc/TowerDefenseGame", "sub_path": "/src/view/critter/CritterType.java", "file_name": "CritterType.java", "file_ext": "java", "file_size_in_byte": 636, "line_count": 31, ... | package view.critter;
/**
* set constants for critters
* @author yongpinggao
* @since 3/19/16.
* @version 1.0
*/
public enum CritterType {
CritterA("critterA"),
CritterB("critterB"),
CritterC("critterC"),
CritterD("critterD");
private String critterImageName;
/**
* Constructor for... |
ba93c6e2-8d02-4f93-830c-711a3a1bdddb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-08 19:45:58", "repo_name": "quickeee/Coding-Bootcamp", "sub_path": "/Coding Bootcamp/29_11_2016_Java_Data_Structures/DataStructuresExercise4/src/Exercise4.java", "file_name": "Exercise4.java", "file_ext": "jav... | import java.util.Queue;
import java.util.concurrent.LinkedBlockingQueue;
public class Exercise4 {
private static String snippet;
private static Queue<Character> q = new LinkedBlockingQueue<>();
public static void main(String[] args) {
snippet = "for (T t : list1) {" + "if(list2.contains(t)) {" + "list.add(t);" ... |
62720942-e570-419f-bfda-86e333748bf5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-04-10T20:28:02", "repo_name": "skenne21/ux-ui", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 636, "line_count": 16, "lang": "en", "doc_type": "text", "blob_id": "... | Fitness Box!
Adam is a 23yr old gamer, living in his parents basement. His mother is concerned that his dad bod is quickly becoming just a fat bod.
Adam is a man of simplicity. He only wants the info that he needs and nothing more. Too much reading and he flips out! He also needs positive feedback only, otherwise ... |
9ef4878d-2cf0-4b5f-8efe-440d0747349b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-04 09:37:25", "repo_name": "ze4737/SpringMVC_Pro", "sub_path": "/SpringMVC_Pro/src/main/java/com/springmvc/advice/interceptor/LoginInteceptorAdvice.java", "file_name": "LoginInteceptorAdvice.java", "file_ext":... | package com.springmvc.advice.interceptor;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
/**
* Created by Administrator on 2016/1/14 0014.
*/
public class LoginInteceptorAdvice implements MethodInterceptor {
public Object invoke(MethodInvocation methodInvo... |
d3a3aefe-1fa7-4362-8f94-5cb6820ff041 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-01-19T06:07:40", "repo_name": "vikeshkumar/goblog", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 636, "line_count": 19, "lang": "en", "doc_type": "text", "blob_id... | A Blogging Application build with Golang
---
Yes, the only goal of this is to have a working Application - as simple and dumb but functional as it can be.
There are two parts of this app
1. One that a reader will see - this application contains everything for the reader.
2. One that an admin will use - it's a SPA, wr... |
e2fe7993-7c7e-45c6-bcb7-49c47a558fc5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-13 14:44:12", "repo_name": "shadowforyou/shadowforyou.github.io", "sub_path": "/src/main/java/com/poi/testpoi/ApiExceptionHandler.java", "file_name": "ApiExceptionHandler.java", "file_ext": "java", "file_size_... | package com.poi.testpoi;
import org.apache.catalina.servlet4preview.http.HttpServletRequest;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import com.poi.testpoi.common.ApiResponse;
@RestControllerAdvice
public class ApiException... |
6cf8affd-28cf-4348-b153-7dea9c8293bc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-24 12:11:41", "repo_name": "gaeperez/twitter-analyzer", "sub_path": "/src/main/java/es/uvigo/ei/sing/twitteranalyzer/services/UserService.java", "file_name": "UserService.java", "file_ext": "java", "file_size_... | package es.uvigo.ei.sing.twitteranalyzer.services;
import es.uvigo.ei.sing.twitteranalyzer.entities.UserEntity;
import es.uvigo.ei.sing.twitteranalyzer.repositories.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Optional;
... |
307480b2-ab01-49ff-b902-f356629cd5f9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-15 15:28:13", "repo_name": "Topru333/TelegramBot", "sub_path": "/src/main/java/com/topru/telegrambot/mysql/data/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byte": 636, "line_count":... | /*
* Class created by Topru
* My GitHub https://github.com/Topru333
* For any questions message me by telegram Topru Everywhere
*/
package com.topru.telegrambot.mysql.data;
/**
*
* @author topru
*/
public class User {
private final int id;
private final String name;
private final int isadmin;
... |
d5857790-3345-4348-b652-ef3250f2ad63 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-08 05:10:34", "repo_name": "alexiscaceres/AndroidContacts", "sub_path": "/app/src/main/java/com/example/dcaceres/project/QRActivity.java", "file_name": "QRActivity.java", "file_ext": "java", "file_size_in_byte... | package com.example.dcaceres.project;
import android.content.Intent;
import android.graphics.Bitmap;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
public class QRActivity extends AppCompatActivity {
private ImageView ivQRCode;
@Override
prote... |
422659fb-3391-4e71-99bb-387f5ed527f4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-21 23:34:14", "repo_name": "qiuchili/ggnn_graph_classification", "sub_path": "/program_data/JavaProgramData/53/470.java", "file_name": "470.java", "file_ext": "java", "file_size_in_byte": 637, "line_count": 41... | package <missing>;
public class GlobalMembers
{
public static void Main()
{
int n;
int[] a = new int[301];
int i;
int h;
int k;
String tempVar = ConsoleInput.scanfRead();
if (tempVar != null)
{
n = Integer.parseInt(tempVar);
}
for (i = 1;i <= n;i++)
{
String tempVar2 = ConsoleInput.scanfR... |
a638dfa4-2915-45fd-a11f-10bb71d7115a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-02-17 14:38:14", "repo_name": "sakuramilk/TweakGS4", "sub_path": "/src/net/sakuramilk/TweakGS4/Config.java", "file_name": "Config.java", "file_ext": "java", "file_size_in_byte": 636, "line_count": 22, "lang": "en... | package net.sakuramilk.TweakGS4;
import net.sakuramilk.util.SystemCommand;
public class Config {
public static final String KBC_DATA_DIR = "/kbc";
public static final String BACKUP_DIR = KBC_DATA_DIR + "/backup";
public static boolean checkDevice() {
String model = SystemCommand.get_prop("r... |
050c1e85-4bd8-4886-ab89-80ac0ffd16e8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-09 23:09:29", "repo_name": "namiranianp/Adventure-Game", "sub_path": "/src/Model/BaseBoard.java", "file_name": "BaseBoard.java", "file_ext": "java", "file_size_in_byte": 636, "line_count": 42, "lang": "en", "d... | package Model;
import java.util.Random;
public class BaseBoard {
private String file;
private int monsters;
private boolean dark;
HostileCreature mob;
public BaseBoard(String fileName, int numMonsters, boolean isDark, HostileCreature monster) {
file = fileName;
monsters = numMonsters;
dark = isDark;
mob... |
9f44475d-ff0f-4362-a40e-af65a8c95270 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-13 14:54:10", "repo_name": "johnb1003/DataStructuresAndAlgsRefresh", "sub_path": "/Code/LinkedListStackImpl.java", "file_name": "LinkedListStackImpl.java", "file_ext": "java", "file_size_in_byte": 636, "line_c... | public class LinkedListStackImpl<T> {
LinkedListNodeImplementation head;
public LinkedListStackImpl() {
this.head = null;
}
public void push(T element) {
LinkedListNodeImplementation newNode = new LinkedListNodeImplementation(element);
newNode.next = this.head;
this.head... |
08171f84-5d54-422c-b8cf-3cec85db6a8e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-15 17:08:11", "repo_name": "jeffliveco/quotes-coins-ee-test", "sub_path": "/qc-transversal/qc-util/src/main/java/com/quotescoins/util/exception/data/DataAccessError.java", "file_name": "DataAccessError.java", ... | package com.quotescoins.util.exception.data;
/**
* @author <a href="mailto:me@jeffersonortiz.com">Jefferson Ortiz Quiroga</a>
* @version 1.0
*/
public enum DataAccessError {
ENTITY_EXIST ("ENTITY_EXIST"),
NOT_ENTITY ("NOT_ENTITY"),
QUERY_ERROR ("QUERY_ERROR"),
NO_CLONABLE_ENTITY ("NO_CLONABLE_ENTITY"),
GENERAL... |
593c04c3-7aa1-40d7-9467-1ef26fc97924 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-08 03:24:08", "repo_name": "hbfangqiao/practice", "sub_path": "/src/entity/Teacher.java", "file_name": "Teacher.java", "file_ext": "java", "file_size_in_byte": 654, "line_count": 37, "lang": "en", "doc_type": ... | package entity;
import java.util.List;
/**
* @author fq
* @create 2019-09-07
*/
public class Teacher extends Person{
private String schoolName;
private List<String> subjectList;
public void teach(){
System.out.println("teach");
}
public void kick(){
System.out.println("修复了k... |
404ec9c5-29d3-4957-a699-9a6c59b7fe30 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-25 10:53:17", "repo_name": "benbi73tt/mad", "sub_path": "/src/main/java/ru/madbrains/javacourse/lesson1ANDlesson_2/Lesson2Example.java", "file_name": "Lesson2Example.java", "file_ext": "java", "file_size_in_by... | package ru.madbrains.javacourse.lesson1ANDlesson_2;
public class Lesson2Example {
public static void main(String[] args){
Employer employer = new Employer();
employer.setName("Sergey Kalashnikov");
employer.setAge(30);
System.out.println(employer);
employer.work();
... |
8d1ff925-65fc-4d11-b322-37e744abc918 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-17 01:33:34", "repo_name": "wlve2012/secondRepository", "sub_path": "/cloudone/cloud-provider-payment8002/src/main/java/com/cloud/learn/serviceImpl/BooksServiceImpl.java", "file_name": "BooksServiceImpl.java",... | package com.cloud.learn.serviceImpl;
import com.cloud.learn.dao.Books;
import com.cloud.learn.service.BooksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class BooksServiceImpl implements BooksService {
... |
37987d6a-8111-46d7-aed3-297dc360677d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-08 21:15:29", "repo_name": "DamianHoffmann/git-tetris", "sub_path": "/src/d/main/Window.java", "file_name": "Window.java", "file_ext": "java", "file_size_in_byte": 635, "line_count": 24, "lang": "en", "doc_typ... | package d.main;
import javax.swing.JFrame;
public class Window {
public static final int WIDTH = 315, HEIGHT =637;
private JFrame window;
private MyPanel myPanel;
public Window(){
window = new JFrame("TETRIS");
window.setSize(WIDTH, HEIGHT);
window.setDefaultCloseOperation(JFr... |
cde7c2f8-26c5-4863-8aac-2318d6ed6d6a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-14 13:57:43", "repo_name": "junwei-wang/com.hotfixs.books", "sub_path": "/thinking-in-java/holding/src/main/java/com/hotfixs/thinkinginjava/holding/IterableClass.java", "file_name": "IterableClass.java", "file... | package com.hotfixs.thinkinginjava.holding;
import java.util.Iterator;
/**
* @author wang
*/
public class IterableClass implements Iterable<String> {
protected String[] words = "And that is how we know the Earth to be banana-shaped.".split(" ");
@Override
public Iterator<String> iterator() {
re... |
c2f65216-aec0-40be-8516-c08cf44a8f85 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-09 17:20:14", "repo_name": "ajaykedia1992/GraphDataStructure", "sub_path": "/src/Graph/Graph.java", "file_name": "Graph.java", "file_ext": "java", "file_size_in_byte": 636, "line_count": 38, "lang": "en", "doc... | package Graph;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
class Neighbor{
int neighborNum;
Neighbor next;
public Neighbor(int num, Neighbor next) {
this.neighborNum = num;
this.next = next;
}
}
class Vertex{
String name;
Neighbor adjList;
public Vertex(String name... |
17336e58-9b0c-47b1-b868-1a159e8372fd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-15 23:19:30", "repo_name": "LuisMendoza2295/PassengerManagement-User", "sub_path": "/PassengerManagement-User-Service/src/main/java/com/pm/user/service/impl/UserServiceImpl.java", "file_name": "UserServiceImpl... | package com.pm.user.service.impl;
import com.pm.user.domain.model.User;
import com.pm.user.domain.vo.UserID;
import com.pm.user.repository.impl.UserRepositoryImpl;
import com.pm.user.service.UserService;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Mono;
@Service
public class UserServi... |
bed7f3ce-7095-4869-895f-7a9737694480 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-14 23:09:43", "repo_name": "sheldonchaves/maven-multi-modules", "sub_path": "/web/src/main/java/io/kyrios/web/ApiController.java", "file_name": "ApiController.java", "file_ext": "java", "file_size_in_byte": 63... | package io.kyrios.web;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import io.kyrios.domain.KyriosSample;
import io.kyrios.persistence.SampleRepository;
@RestController
public class ApiController {
private Sample... |
5c58cb18-2ea1-46c4-a415-4fbb4ddb95ad | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-14 09:01:10", "repo_name": "AntwonC/Soft_Meth-Project2-3", "sub_path": "/Profile.java", "file_name": "Profile.java", "file_ext": "java", "file_size_in_byte": 637, "line_count": 41, "lang": "en", "doc_type": "c... | /**
*
* @author Anthony Chen, Hoda Moustafa
*
*/
public class Profile {
private String fname;
private String lname;
public Profile(String fname, String lname) {
this.fname = fname;
this.lname = lname;
}
/**
* @return the fname
*/
public String getFname() {
return fname;
... |
797542b0-9f54-4798-a737-5b540f0a1695 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-01-02T00:11:12", "repo_name": "Gaichu/gin", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 645, "line_count": 16, "lang": "en", "doc_type": "text", "blob_id": "b6e0... | Just a little weekend time filler. I hope you have fun playing it either way ^-^
# credits
* Inspiration and reused Code for wall generation (see map.lua): ftr (great game) by DestructiveReality (http://github.com/VADS/)
* Programming: Gaichu
* Gaichu Art: Created with http://8biticon.com/
* Capsule and Father ElHuron... |
197b1e51-07ee-4321-a6d0-65eb14a77692 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-03-30 17:50:47", "repo_name": "PedroBelchior/PADebugger", "sub_path": "/src/Test.java", "file_name": "Test.java", "file_ext": "java", "file_size_in_byte": 636, "line_count": 35, "lang": "en", "doc_type": "code", ... |
public class Test {
public static int counter;
public Test(){
counter = 0;
}
public static void del() throws Exception {
counter = 0;
throw new Exception("d");
}
public static void add() throws Exception {
counter = counter+1;
int a = Integer.parseInt("abc");
System.out.println(a);
del();
... |
b2e78d7a-0238-4d17-b27d-d1113728151e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-05 08:36:28", "repo_name": "Prashanthirave73/VickyDemo", "sub_path": "/src/main/java/com/qa/pages/LoginPage.java", "file_name": "LoginPage.java", "file_ext": "java", "file_size_in_byte": 636, "line_count": 35,... | package com.qa.pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import com.qa.util.TestBase;
public class LoginPage extends TestBase {
@FindBy(name="email")
WebElement email;
@FindBy(name="password")
WebElement password;
... |
4ad94219-37bc-434b-a64a-a1ac96f68c35 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-07-18 09:27:42", "repo_name": "Ezcred-Org/community-app", "sub_path": "/src/main/java/com/mifos/api/datamanager/DataManagerUser.java", "file_name": "DataManagerUser.java", "file_ext": "java", "file_size_in_byte":... | package com.mifos.api.datamanager;
import com.mifos.api.BaseApiManager;
import com.mifos.objects.user.User;
import javax.inject.Inject;
import javax.inject.Singleton;
import rx.Observable;
@Singleton
public class DataManagerUser {
public final BaseApiManager mBaseApiManager;
@Inject
public DataManagerUser(Ba... |
f19ccd02-21c0-4936-aadc-10d6f91fcd31 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-10-07T22:28:34", "repo_name": "dvirbd/Ground-sector-configurator", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 636, "line_count": 12, "lang": "en", "doc_type": "... | # Ground Sector Configurator
this programs allows you to change all of the ground sector colors automatically based on their name, making it easier to use the website that converts KMLs to SCTs from http://fsmine.dhis.org/euroscope/design/
this programs was designed to create sectors for Euroscope and for the AeroNav ... |
e2c7753f-1c6a-4f56-97c9-bef66b999b56 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-07-07 13:38:17", "repo_name": "tamada/pochi3", "sub_path": "/birthmarks/src/main/java/jp/cafebabe/birthmarks/io/ComparisonsJsonier.java", "file_name": "ComparisonsJsonier.java", "file_ext": "java", "file_size_in_... | package jp.cafebabe.birthmarks.io;
import jp.cafebabe.birthmarks.comparators.Comparisons;
import java.io.StringWriter;
import java.io.Writer;
import java.util.stream.Collectors;
public class ComparisonsJsonier implements Jsonier<Comparisons> {
@Override
public String toJson(Comparisons target) {
Stri... |
8f407368-fe36-4967-983e-710cde7e20a4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-13 13:53:19", "repo_name": "levphon/ore", "sub_path": "/ore-boot/ore-boot/src/main/java/org/oreframework/boot/logging/logback/OreFilter.java", "file_name": "OreFilter.java", "file_ext": "java", "file_size_in_b... | package org.oreframework.boot.logging.logback;
import ch.qos.logback.classic.spi.LoggingEvent;
import ch.qos.logback.core.filter.Filter;
import ch.qos.logback.core.spi.FilterReply;
/**
* @author huangzz
* 2017年3月18日
*/
@SuppressWarnings("rawtypes")
public class OreFilter extends Filter
{
@Override
pub... |
1aa7d62a-6a39-41fb-8134-42b7c2fac52f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-12-02 10:01:32", "repo_name": "eguahlak/espresso-spike", "sub_path": "/src/main/java/dk/kalhauge/grinder/MonadicOperatorGrinder.java", "file_name": "MonadicOperatorGrinder.java", "file_ext": "java", "file_size_in... | package dk.kalhauge.grinder;
import dk.kalhauge.tokenizer.OperatorToken;
import dk.kalhauge.tokenizer.Token;
import dk.kalhauge.util.Ring;
public class MonadicOperatorGrinder implements Grinder {
private final String[] texts;
public MonadicOperatorGrinder(String... texts) {
this.texts = texts;
}
@Ov... |
386fc5af-729e-467b-9ba2-8b21f318e25e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-23 11:26:23", "repo_name": "freshmall/freshmall-project", "sub_path": "/freshmall-product-service/src/main/java/cn/tedu/product/controller/CreateIndex.java", "file_name": "CreateIndex.java", "file_ext": "java"... | package cn.tedu.product.controller;
import cn.tedu.product.service.CreateIndexService;
import com.fresh.common.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Res... |
06fb59a7-01d0-4eca-8391-5d975533d5cd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-23 19:56:02", "repo_name": "condon18/EpicSpellWars", "sub_path": "/app/src/main/java/scottie/cs301/EpicActuals/Resources/Cards/CardActuals/Boulderiffic.java", "file_name": "Boulderiffic.java", "file_ext": "jav... | package scottie.cs301.EpicActuals.Resources.Cards.CardActuals;
import scottie.cs301.EpicActuals.Resources.Info.GameStateActual;
/**
* Created by mukai18 on 4/12/2016.
*/
public class Boulderiffic extends CardNode {
protected Boulderiffic() {
super(2, 0, 2, -1, SCHOOL.PRIMAL);
}
@Override
pu... |
0fe3aaca-0c3e-4afc-abe2-3bfb1c0e8436 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-25 12:00:28", "repo_name": "huduny/python", "sub_path": "/class08java/Tire0903.java", "file_name": "Tire0903.java", "file_ext": "java", "file_size_in_byte": 669, "line_count": 24, "lang": "en", "doc_type": "co... | package CHAPTER7;
public class Tire0903 {
public int maxRotation;
public int accumulateRotation;
public String location;
public Tire0903(int maxRotation, String location) {
this.maxRotation = maxRotation;
this.location = location;
}
public boolean rooll() {
accumulateRotation++;
if(accum... |
2d75ecfa-2dd9-4573-b079-d7719085d539 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-09-04T04:11:48", "repo_name": "burkegg/aviator_game", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 636, "line_count": 12, "lang": "en", "doc_type": "text", "blob_... | # aviator_game
I wrote this for the Intro to Coding class that I taught, using Processing.
My students worked through each part, testing it as they went.
Eventually they integrated all of the parts into a cohesive game.
After this project was over, they created their own object-oriented games.
If you would like to us... |
8740f9f1-1e39-4c32-8c4e-95df16097c5c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-17 09:26:11", "repo_name": "leotsai/jframe", "sub_path": "/51.jframe-web-pc/src/main/java/org/jframe/web/pc/viewModels/CaseIndexViewModel.java", "file_name": "CaseIndexViewModel.java", "file_ext": "java", "fil... | package org.jframe.web.pc.viewModels;
import org.jframe.core.extensions.PageResult;
import org.jframe.services.pc.dtos.CaseDto;
import org.jframe.web.viewModels.LayoutViewModel;
/**
* Created by Leo on 2018/7/2.
*/
public class CaseIndexViewModel extends LayoutViewModel {
public CaseIndexViewModel() {
... |
e6cf407e-6d49-4002-863e-d5a1cac9a4b9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-04-20T05:35:51", "repo_name": "ranchauh/here-we-park", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 636, "line_count": 18, "lang": "en", "doc_type": "text", "blob... | # HERE WE PARK
Smart Parking Lot Management System comprising Consumer Mobile app to Book Parking slot using QR codes by the rider and an Admin Webapp where the parking lot information can be uploaded to HERE Platform catalog by a vendor, which will consumed in the mobile app during parking lot search and allocation. ... |
c1a250d0-dc0c-4a9a-8ba2-186ac3290ec7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-10 14:12:19", "repo_name": "Ashraf512/search", "sub_path": "/src/main/java/com/mobile/search/controller/CustomerController.java", "file_name": "CustomerController.java", "file_ext": "java", "file_size_in_byte"... | package com.mobile.search.controller;
import com.mobile.search.enums.Country;
import com.mobile.search.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMappi... |
9594149c-4833-41f7-b2b3-923a0daa3b6d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-11-17T14:11:59", "repo_name": "CELAR/app-orchestrator", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 636, "line_count": 25, "lang": "en", "doc_type": "text", "blo... | CELAR Orchestrator
============
What is it?
----------
CELAR Orchestrator is responsible for the provisioning and the enforcement of scaling actions during the lifetime of a single deployment.
Licensing
---------
This project is under the Apache License v2.0. For further details please
see the LICENSE file.
Insta... |
23abe7b3-24ed-48d9-9a96-8b887e29f3df | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-08 16:21:52", "repo_name": "PltPierre/ProjetJavaSIO", "sub_path": "/DriveExpress/src/test/test.java", "file_name": "test.java", "file_ext": "java", "file_size_in_byte": 637, "line_count": 30, "lang": "en", "do... | package test;
import java.sql.*;
import dao.DaoDriveExpress;
public class test {
public static void main(String[] args) {
Connection connect = DaoDriveExpress.SQLConnection();
try {
Statement stLienBD = connect.createStatement();
String req = "SELECT * FROM USERS";
ResultSet re... |
ff3f1267-ba3d-4b37-85d9-494369c1c81c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-25 01:52:24", "repo_name": "ahzhangfeifei/exercise", "sub_path": "/src/main/java/com/core/java/v2/v2ch09/jaas/JAASTest.java", "file_name": "JAASTest.java", "file_ext": "java", "file_size_in_byte": 636, "line_c... | package com.core.java.v2.v2ch09. jaas;
import javax.swing.*;
import java.awt.*;
/**
* The type Jaas test.
*/
public class JAASTest
{
/**
* Main.
*
* @param args the args
*/
public static void main(final String[] args)
{
System.setSecurityManager(new SecurityManager());
EventQueu... |
300eed8d-e21f-4f0d-8608-5326af9b0f6d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-04-17 06:55:02", "repo_name": "kratoswu/avaDGWall", "sub_path": "/PlanetHA/src/com/avadesign/ha/ActivityAbout.java", "file_name": "ActivityAbout.java", "file_ext": "java", "file_size_in_byte": 636, "line_count": ... | package com.avadesign.ha;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;
import com.avadesign.ha.frame.BaseActivity;
public class ActivityAbout extends BaseActivity
{
private TextView text_html;
@Override
protected void onCreat... |
d35afd7c-44c0-447b-a425-ba14fb012864 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-07-24 02:13:51", "repo_name": "Tejaswi2468/Webxen", "sub_path": "/src/main/java/com/org/practicum/service/OracleServiceController.java", "file_name": "OracleServiceController.java", "file_ext": "java", "file_size... | package com.org.practicum.service;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;
import com.org.practicum.dao.OracleFactDAO;
@Component
public class OracleServiceController {
private ... |
b3373d65-01b4-4a46-b113-a054ab7f4085 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-20 08:11:30", "repo_name": "YC-YC/TestApplications", "sub_path": "/BigApp/BigApps/src/com/example/bigapps/picasso/PicassoActivity.java", "file_name": "PicassoActivity.java", "file_ext": "java", "file_size_in_b... | /**
*
*/
package com.example.bigapps.picasso;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;
import com.example.bigapps.R;
import com.squareup.picasso.Picasso;
/**
* @author YC
* @time 2016-5-17 下午4:02:22
*/
public class PicassoActivity extends Activity {
@Override
p... |
e2341482-58a2-4435-b0b6-6dd86cc00a64 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-29T08:37:25", "repo_name": "Maixianda/work", "sub_path": "/liangce/app/src/main/java/com/gzliangce/dto/BannerDTO.java", "file_name": "BannerDTO.java", "file_ext": "java", "file_size_in_byte": 648, "line_count"... | package com.gzliangce.dto;
import com.gzliangce.entity.BannerImageInfo;
import java.util.List;
/**
* Created by leo on 16/2/23.
* 广告数据对象
*/
public class BannerDTO extends BaseDTO {
/**
* id : 1
* title : test
* image : http://1.jpg
* url : http://www.qq.com
*/
private List<Banne... |
c2d38488-b774-4023-ac25-cf98c10ad803 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-10-13T21:19:02", "repo_name": "ElTimablo/7daystodocker", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 636, "line_count": 24, "lang": "en", "doc_type": "text", "bl... | # 7daystodocker
Simple script to start a 7 Days to Die server in Docker. Really, really hastily implemented, but I'll fix that eventually.
# Usage
* Install Docker if you don't already have it. Package names are as follows:
**Ubuntu/Debian** docker.io
**Red Hat and Friends** docker
**Arch** docker
* Modify serverc... |
f0d46240-6e77-4bc0-80e0-b869a482471a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-15 23:14:24", "repo_name": "chenwenbiao/Note", "sub_path": "/JAVA/core/src/main/java/org/java/core/advanced/DesignPatterns/behavioral/Template/TemplatePatternTest.java", "file_name": "TemplatePatternTest.java"... | package org.java.core.advanced.DesignPatterns.behavioral.Template;
import java.util.ArrayList;
import java.util.List;
public class TemplatePatternTest {
public static void main(String[] args) {
AbstractStudentGetter ageGetter = new AgeStudentGetter();
AbstractStudentGetter nameGetter = new NameSt... |
1dc8c7f9-eb66-4a31-8d24-e03981270183 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-07-13T15:03:23", "repo_name": "ThomasThongCE/Dotfiles-and-scripts", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 637, "line_count": 12, "lang": "en", "doc_type": ... | # Dotfiles and scripts
This repo contains simple dotfiles and some scripts which use to install the necessary program on a new machine or reinstall Debian-base Linux. Tested on ubuntu 20.
The `install_all.sh` file will run all the scripts end with `.sh` contant in `scripts\` folder. For more detail about scripts, ple... |
9b3f7624-93f1-4fe2-9ca4-bfc06e836090 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-02 14:40:47", "repo_name": "yuriy-tsarenko/java_essential_courses", "sub_path": "/src/main/java/com/java_essential/tsarenko/lesson8/additional_task/quiz/entity/Answer.java", "file_name": "Answer.java", "file_e... | package com.java_essential.tsarenko.lesson8.additional_task.quiz.entity;
public class Answer {
private String answer;
private boolean rightChoice;
public Answer(String answer, Boolean rightChoice) {
this.answer = answer;
this.rightChoice = rightChoice;
}
public Answer() {
}
... |
4f521221-57e0-4413-bc0a-ca4b8791744a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-28 14:46:56", "repo_name": "Tans5/LeetCode", "sub_path": "/src/com/leetcode/practice/solutions/Solution122.java", "file_name": "Solution122.java", "file_ext": "java", "file_size_in_byte": 635, "line_count": 24... | package com.leetcode.practice.solutions;
public class Solution122 {
public int maxProfit(int[] prices) {
int max = 0;
Integer buyIndex = null;
int size = prices.length;
for (int i = 0; i < size; i ++) {
if (buyIndex != null) {
max += prices[i] - prices[bu... |
65eae08c-166c-4bdd-884c-c78dccf87776 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-05-27 18:37:29", "repo_name": "xyz-dev/diamond", "sub_path": "/diamond-util/src/main/java/com/galaxy/hsf/util/Utils.java", "file_name": "Utils.java", "file_ext": "java", "file_size_in_byte": 636, "line_count": 31... | /**
* High-Speed Service Framework (HSF)
*
*/
package com.galaxy.hsf.util;
import java.net.InetAddress;
import java.net.UnknownHostException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
*
* @author sihai
*
*/
public class Utils {
private sta... |
bba084e3-8770-41bc-a66a-59e269f05e4d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-07-07 09:51:11", "repo_name": "badberry/zone-service", "sub_path": "/src/main/java/cn/cloudtop/zone/controllers/country/CountriesGetResponse.java", "file_name": "CountriesGetResponse.java", "file_ext": "java", "f... | package cn.cloudtop.zone.controllers.country;
import cn.cloudtop.strawberry.rest.RestResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
/**
* Created by jackie on 16-4-22
*/
@ApiModel
public class CountriesGetResponse extends RestResponse {
... |
f07daebd-4b22-465e-909c-3a1639a9f35e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-18 02:40:33", "repo_name": "iKarosStudio/sv1", "sub_path": "/server/process_server/ModelAction.java", "file_name": "ModelAction.java", "file_ext": "java", "file_size_in_byte": 657, "line_count": 29, "lang": "e... | package vidar.server.process_server;
import vidar.server.packet.*;
import vidar.server.opcodes.*;
/*
* 指定uuid執行一個action code
*/
public class ModelAction
{
PacketBuilder packet = new PacketBuilder ();
public ModelAction (int actionCode, int uuid, int heading) {
packet.writeByte (ServerOpcodes.MODEL_ACTION) ;
... |
cee63917-4d24-4705-bd62-b7232a7c683b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-03 04:38:57", "repo_name": "routdh2/java-spring", "sub_path": "/src/com/springdemo/Instrumentalist.java", "file_name": "Instrumentalist.java", "file_ext": "java", "file_size_in_byte": 635, "line_count": 35, "l... | package com.springdemo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
public class Instrumentalist implements Performer {
@Autowired
private Song song;
@Autowired
@Qualifier("piano")
private Instrument instrument;
public Instrum... |
64b36176-d5b8-486a-a9b2-ed2db5484e05 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-12 04:50:01", "repo_name": "rohitnaik007/DataValidator", "sub_path": "/server/DataValidator/src/main/java/com/validator/model/Result.java", "file_name": "Result.java", "file_ext": "java", "file_size_in_byte": ... | package com.validator.model;
import java.util.List;
public class Result {
//Bean for storing result
List<String> duplicates;
List<String> nonDuplicates;
public Result(List<String> duplicates,List<String> nonDuplicates)
{
this.duplicates = duplicates;
this.nonDuplicates = nonDuplicates;
}
public List<... |
9208ab44-5098-407a-a47d-ff0ca98dc29f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-10-05 22:06:12", "repo_name": "TrentoLeaf/CineWeb", "sub_path": "/src/main/java/tk/trentoleaf/cineweb/beans/rest/in/Auth.java", "file_name": "Auth.java", "file_ext": "java", "file_size_in_byte": 635, "line_count"... | package tk.trentoleaf.cineweb.beans.rest.in;
import org.hibernate.validator.constraints.NotEmpty;
import java.io.Serializable;
public class Auth implements Serializable {
@NotEmpty(message = "Email cannot be null")
private String email;
@NotEmpty(message = "Password cannot be null")
private String ... |
cb1407c0-f818-4e47-885b-3704826410e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-15T06:10:59", "repo_name": "zhangpan1/lander-xhz", "sub_path": "/src/main/java/com/eversec/xhz/listener/Student.java", "file_name": "Student.java", "file_ext": "java", "file_size_in_byte": 647, "line_count": 3... | package com.eversec.xhz.listener;
public class Student {
private String name;
private StudentListener listener;
public Student(String name){
this.name = name;
}
public void eat(){
if (listener != null){
listener.preEat(new StudentEvent(this));
}
System.out.println(name+":开吃");
}
public void Study(){
... |
61a4e39b-9595-4664-80ff-d815b88951ee | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-08-29 00:11:12", "repo_name": "bchang/p4tools", "sub_path": "/p4api/src/main/java/com/github/bchang/p4/base/PathChange.java", "file_name": "PathChange.java", "file_ext": "java", "file_size_in_byte": 635, "line_co... | package com.github.bchang.p4.base;
/**
* Created with IntelliJ IDEA.
* User: bchang
* Date: 2/21/12
* Time: 12:10 AM
* To change this template use File | Settings | File Templates.
*/
public class PathChange extends Path {
public static PathChange create(String p, int change) {
return new PathChange(p, cha... |
aaf6d312-6cd0-4163-a11a-585003f90a9e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-07 13:23:37", "repo_name": "min373/Human", "sub_path": "/app/src/main/java/jp/techacademy/minami/yamamoto/myapplication/Human.java", "file_name": "Human.java", "file_ext": "java", "file_size_in_byte": 753, "li... | package jp.techacademy.minami.yamamoto.myapplication;
import android.util.Log;
public class Human extends Animal implements Thinkable {
//hobby変数の宣言
String hobby;
//コンストラクタの実装
public Human(String name, String hobby, int age) {
this.name = name;
this.hobby = hobby;
this.age = ... |
34a90065-c0f5-4885-ba0d-40525a029ead | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-14 15:21:01", "repo_name": "ebi-uniprot/QuickGOBE", "sub_path": "/ontology-rest/src/main/java/uk/ac/ebi/quickgo/ontology/model/graph/AncestorGraph.java", "file_name": "AncestorGraph.java", "file_ext": "java", ... | package uk.ac.ebi.quickgo.ontology.model.graph;
import java.util.HashSet;
import java.util.Set;
/**
* Data Structure for sub graph of ontology.
* @author Tony Wardell
* Date: 14/06/2017
* Time: 10:47
* Created with IntelliJ IDEA.
*/
public class AncestorGraph<T> {
public final Set<AncestorEdge> edges;
... |
b7b4a396-1e56-4e5c-9883-b182904d945e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-24 12:51:23", "repo_name": "jadeoti/Phence", "sub_path": "/app/src/main/java/uniosun/geofence/ui/fragment/LogsFragment.java", "file_name": "LogsFragment.java", "file_ext": "java", "file_size_in_byte": 635, "li... | package uniosun.geofence.ui.fragment;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.Query;
public class LogsFragment extends LogsListFragment {
public LogsFragment() {
}
@Override
public Query getQuery(DatabaseReference databaseReference) {
// [ST... |
493415c5-8d40-4ca8-a2cf-14da991ff42e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-06-19 16:37:00", "repo_name": "ccodeDevs/Osijek031", "sub_path": "/Osijek031/src/com/ccode/osijek031/utils/NetworkUtils.java", "file_name": "NetworkUtils.java", "file_ext": "java", "file_size_in_byte": 634, "line... | package com.ccode.osijek031.utils;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
* Title: CCode Osijek031 <br />
* Copyright: Copyright @ 2014 <br />
*
* @author Josip Jurisic
* @version 1.0
*/
public final class NetworkUtils {
public static boo... |
186dcd02-0d66-4253-b7e0-c98801d1aebc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-16 07:49:08", "repo_name": "academy-codex/RHoK", "sub_path": "/app/src/main/java/com/siddhantchadha/rhok_method/models/LoginResponse.java", "file_name": "LoginResponse.java", "file_ext": "java", "file_size_in_... | package com.siddhantchadha.rhok_method.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by siddh on 7/16/2017.
*/
public class LoginResponse {
@SerializedName("user_key")
@Expose
private String userKey;
@SerializedName("code")
@... |
0dbb70d3-4d46-4bd2-9c1f-bb396cff479e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-17 11:46:35", "repo_name": "vippulpanditgit/myrewardengine", "sub_path": "/src/main/java/com/myreward/engine/audit/AuditContext.java", "file_name": "AuditContext.java", "file_ext": "java", "file_size_in_byte":... | package com.myreward.engine.audit;
import com.myreward.parser.util.StopWatch;
public final class AuditContext {
/** The audit output stream. */
private static IAuditOutputStream<AuditEvent> auditStream;
private AuditContext() {
init();
}
final static void init() {
StopWatch stopWatch = new StopWatch... |
8b0e607b-ef62-436b-ba8a-0156062f4d78 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-04-13T06:55:59", "repo_name": "afty2/Music-Composition-Using-Artificial-Intelligence", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 638, "line_count": 32, "lang":... | ## Setup
Please ensure the following are installed and accessible by the directory containing the program files (the libraries may be installed using pip):
* Python3
* Music21
* Keras
* Tensorflow
* h5py
## To Train the LSTM:
Simply run **mcuai_lstm.py** from the command line.
(MacBook Pro) Ex:
`python3 ./m... |
7e7ff744-9e40-46ac-8415-59150e6fbeb9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-19 05:07:23", "repo_name": "dvijay96/spring_batch_csv_db", "sub_path": "/src/main/java/com/example/batch/job/processor/UserProcessor.java", "file_name": "UserProcessor.java", "file_ext": "java", "file_size_in_... | package com.example.batch.job.processor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.stereotype.Component;
import com.example.batch.job.model.User;
@Component
public class UserProcessor implements ItemProcessor<User, User> {... |
5eddb943-1960-47eb-a350-5dc1d4ba68c9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-15 03:28:36", "repo_name": "jkrambeer/Object-Oriented-Projects", "sub_path": "/Word-Model/Driver.java", "file_name": "Driver.java", "file_ext": "java", "file_size_in_byte": 634, "line_count": 31, "lang": "en",... | import java.io.*;
public class Driver
{
/*
Patrick L. Jarvis
September 23, 2014
Test out the Word class a bit
*/
public static void main ( String[] args )
{
WordMeister temp;
WordList[] test;
long startTime;
long endTime;
long startTime2;
long endTime2;
temp= new WordM... |
82f0d581-276c-4ad9-87db-0afb0b06aa07 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-08-08 08:33:55", "repo_name": "hxy91819/StudyOfJava", "sub_path": "/Study4/src/awt76/FrameWithPanel.java", "file_name": "FrameWithPanel.java", "file_ext": "java", "file_size_in_byte": 635, "line_count": 34, "lang... | package awt76;
import java.awt.Color;
import java.awt.Frame;
import java.awt.Panel;
/**
* ≤‚ ‘Panel
* @author hxy
*
*/
public class FrameWithPanel extends Frame {
public FrameWithPanel(String title){
super(title);
}
public static void main(String[] args) {
FrameWithPanel frameWithPanel = new FrameWithPan... |
a5b7affc-968d-4305-ae4b-bb7ccbaf3c08 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-27 10:21:19", "repo_name": "Setorator/ZombieMania", "sub_path": "/zombiemania/src/main/java/Creep.java", "file_name": "Creep.java", "file_ext": "java", "file_size_in_byte": 635, "line_count": 41, "lang": "en",... | package main.java;
/**
* Created by Kim on 26/04/15
*/
public class Creep extends GameObject
{
private int speed;
public Creep(int x, int y) {
setX(x);
setY(y);
}
// setters
public void setSpeed(int x) {
this.speed = x;
}
// move's the creep depending on which "movement-boolean... |
ea8d8fe6-e4a0-4167-bdca-501244c4a37f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-12 20:04:23", "repo_name": "DrStraight/Straight-Talk-Foundation", "sub_path": "/app/src/main/java/com/madonasyombua/straighttalk/Activities/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "ja... | package com.madonasyombua.straighttalk.Activities;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import com.madonasyombua.straighttalk.R;
public class MainActivity extends AppCompatActivity {
private static final int SHOW_INTRO ... |
39abb09c-5f3e-4b19-9ff4-c54fe4bb579c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-07-16T19:01:53", "repo_name": "chraghuram5/Superhero-Hunter-JS", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 640, "line_count": 12, "lang": "en", "doc_type": "te... | # Superhero-Hunter-JS
Do you love superHeroes? Then, you are at the right place
## Description
- A simple hobby project to get information of any super hero you like.
- You can also add a super Hero as your favourite and he will be there whenever you want!!❤
- Information is fetched from [superHeroApi](https://superh... |
3202e075-abe4-43ef-95dc-1ccb6b1388f3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-04 08:16:17", "repo_name": "JongHyun94/JavaHomework", "sub_path": "/src/ch15/exam05/Example.java", "file_name": "Example.java", "file_ext": "java", "file_size_in_byte": 641, "line_count": 24, "lang": "en", "do... | package ch15.exam05;
import java.io.FileReader;
import java.util.Properties;
public class Example {
public static void main(String[] args) throws Exception {
Properties prop = new Properties();
String path = Example.class.getResource("database.properties").getPath(); //경로 찾기 중요
prop.load(new FileReader(p... |
6f2cfe08-2aec-463d-9a85-1e23256053c1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-09-20 03:41:47", "repo_name": "ZuoShouShiJie/boss", "sub_path": "/facade/src/main/java/com/maiziyun/boss/facade/system/enums/OperatorStatusEnum.java", "file_name": "OperatorStatusEnum.java", "file_ext": "java", "... | package com.maiziyun.boss.facade.system.enums;
import com.solar.framework.core.base.AbstractEnum;
/**
* Created by songliang on 2016/11/15.
*/
public class OperatorStatusEnum extends AbstractEnum {
public static final OperatorStatusEnum VALID=new OperatorStatusEnum("01","用户有效");
public static final Operator... |
5a151de1-83c4-4e49-8a0c-39adbbfe979f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-11-06 08:36:31", "repo_name": "CloudSen/clouds3n-blog-java", "sub_path": "/clouds3n-blog-common/src/main/java/com/clouds3n/blog/common/service/dto/TopicSimpleDto.java", "file_name": "TopicSimpleDto.java", "file_e... | package com.clouds3n.blog.common.service.dto;
import com.clouds3n.blog.common.entity.Topic;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* @author CloudS3n
* @date 2020-05-29 21:38
*/
@Data
@Accessors(chain = true)
@NoArgsConstructor
p... |
ac76242a-c66e-4e19-9872-7a9d6170a2ce | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-09 13:14:39", "repo_name": "seerdaryilmazz/OOB", "sub_path": "/crm-inbound-service/src/main/java/ekol/crm/inbound/domain/QuoteType.java", "file_name": "QuoteType.java", "file_ext": "java", "file_size_in_byte":... | package ekol.crm.inbound.domain;
import java.util.Set;
import java.util.stream.*;
import ekol.json.serializers.common.ConverterType;
import ekol.resource.json.annotation.EnumSerializableToJsonAsLookup;
import lombok.*;
@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@EnumSerializableToJsonAsLookup(Converte... |
412acd8a-bc10-4c75-b2cc-d60aecbc5e38 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-14 17:45:53", "repo_name": "andressaguerra/appCosmetics", "sub_path": "/src/test/java/br/edu/infnet/appCosmetics/model/negocio/CosmeticoTest.java", "file_name": "CosmeticoTest.java", "file_ext": "java", "file_... | package br.edu.infnet.appCosmetics.model.negocio;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
public class CosmeticoTest {
@Test
void testCreme() {
Creme c = new Creme("Vanilla Crea... |
b6300ada-7c49-4e0f-a0bb-d66055114a58 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-04-02T13:56:22", "repo_name": "GaoHawk/my-blog", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 636, "line_count": 29, "lang": "en", "doc_type": "text", "blob_id": ... |
**demo**:
This is a project [blog](http://www.gg-gaohawk.top:3000/)
# blog
> A Vue.js project
## Build Setup
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyz... |
35e51616-c7ff-4277-99a5-f43729c207c2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-31 13:12:50", "repo_name": "VladHumeniuk/BattleShips", "sub_path": "/app/src/main/java/humeniuk/battleships/domain/entity/Ship.java", "file_name": "Ship.java", "file_ext": "java", "file_size_in_byte": 635, "li... | package humeniuk.battleships.domain.entity;
import java.util.ArrayList;
import java.util.List;
public class Ship {
private List<Cell> cells;
private ShipType type;
public Ship(ShipType type) {
this.type = type;
cells = new ArrayList<>();
}
public void addCell(Cell cell) {
... |
4fd2be84-a296-4dab-aa63-b88da3b241ef | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-21 06:35:56", "repo_name": "Sailor-wu/currentjava", "sub_path": "/src/main/java/com/start/StartThread.java", "file_name": "StartThread.java", "file_ext": "java", "file_size_in_byte": 650, "line_count": 25, "la... | package main.java.com.start;
/**
* StartThread
*/
public class StartThread implements Runnable{
int time = 1;
@Override
public void run() {
while (time<10) {
System.out.println(Thread.currentThread().getName()+"\t执行次数:"+time);
try {
System.out.println("状态:... |
118f79f4-8cfc-47a0-84ed-d0b0d37c0d5d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-02 03:03:49", "repo_name": "bluemote/jftone", "sub_path": "/src/main/java/org/jftone/component/core/ControllerLoader.java", "file_name": "ControllerLoader.java", "file_ext": "java", "file_size_in_byte": 653, "... | package org.jftone.component.core;
import org.jftone.action.Action;
import org.jftone.annotation.Controller;
import org.jftone.component.ControllerContext;
class ControllerLoader extends BeanLoader {
<T> ControllerLoader(Class<T> beanClazz) {
super(beanClazz);
}
@Override
@SuppressWarnings("unchecked")
<T>... |
27c9e461-c21a-4c3e-98de-d5fb0454a2b1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-06-12T08:40:43", "repo_name": "MrShailandra/TurtleVideoConference", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 635, "line_count": 27, "lang": "en", "doc_type": ... | # TurtleVideoConference
**Features**
- Firebase Based Login and Register
- Intro Slider
- Splash Screen
- Jitsi SDK
- Ready To Use Application
- Push Notification
# How To Build
1. Download Android Studio
2. Download Java And JDK
3. Import Project in Android Studio
4. Go to Firebase Add your App There Down... |
42c11206-1bbd-473c-b336-7f851d5e34ce | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-10-28T04:59:13", "repo_name": "796F/git-scan", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 637, "line_count": 29, "lang": "en", "doc_type": "text", "blob_id": "e... | git-scan
========
scan open source
# 1. install Tor
install tor and give it a first run
`brew install tor`
`tor`
# 2. symlink our config file
tor looks for the tor config file `torrc` in the `/usr/local/etc/tor` folder.
link that location to the config in our github.
`ln /path/to/project/git-scan/config/to... |
3521177f-822d-44b7-a852-0735ccf9ab6a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-28 00:31:55", "repo_name": "gpe-mw-training/camel-labs", "sub_path": "/7_Advanced_features/camel-jms-transaction/src/main/java/com/redhat/gpte/training/camel/PaymentBean.java", "file_name": "PaymentBean.java",... | package com.redhat.gpte.training.camel;
import com.redhat.training.payment.Payments;
import org.apache.camel.Body;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class PaymentBean {
private static final Logger LOG = LoggerFactory.getLogger(PaymentBean.class);
public void validate(@Body Paym... |
e5f6459b-3063-4037-a643-df58295d2195 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-13 17:49:24", "repo_name": "cmFodWx5YWRhdjEyMTA5/GreenFashionJava", "sub_path": "/data/src/main/java/com/zeowls/data/entity/Item_data.java", "file_name": "Item_data.java", "file_ext": "java", "file_size_in_byt... |
package com.zeowls.data.entity;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Item_data {
@SerializedName("item_quantity")
@Expose
private Integer itemQuantity;
@SerializedName("item_id")
@Expose
private Integer itemId;
public... |
9b3ed915-db69-4420-a6b9-2b570c1aa124 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-09 11:59:53", "repo_name": "lucasmunioz0/cursos", "sub_path": "/1-Java/8 - Patrones de Diseño/Patrones/src/state/Personaje.java", "file_name": "Personaje.java", "file_ext": "java", "file_size_in_byte": 634, "l... | /*
* 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 state;
import java.util.LinkedList;
import java.util.List;
public class Personaje {
private List<Arma> armas = new Link... |
03e0fef6-2b61-446c-934c-771b43a97630 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-24 07:28:51", "repo_name": "secret1123/JavaSE_20171", "sub_path": "/src/main/java/java1702/javase/reflect/Chinese.java", "file_name": "Chinese.java", "file_ext": "java", "file_size_in_byte": 635, "line_count":... | package java1702.javase.reflect;
import java1702.javase.basic.Human;
/**
* Created by AnLu on
* 2017/5/3 16:55.
* JavaSE_20171
*/
public class Chinese extends Human {
private int i;
public Chinese(int i) {
this.i=i;
}
public void m(String s){
System.out.println(s);
}
}
class... |
9bf9fd1e-67ca-448b-b869-82eeaa8c5b0b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-08-06T12:23:03", "repo_name": "hiddely/PersistentObservable", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 635, "line_count": 18, "lang": "en", "doc_type": "text"... | # PersistentObservable
Add local persistence to any RxSwift observable
## Usage
If we have an observable that loads some `Codable` data, such as a network API call to some service, we can locally cache the last returned result on disk by calling `.persist(key)` on the `Observable`.
```
let account = apiClient.loadAcc... |
ceb16e8f-3ed1-4e17-8259-b825e50e2f6a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-15 19:41:14", "repo_name": "GSiesto/JAVA_AKARI_SolvingAlgorithms", "sub_path": "/aima-core/src/main/java/aima/core/environment/lightCross/LightCrossAction.java", "file_name": "LightCrossAction.java", "file_ext... | package aima.core.environment.lightCross;
import aima.core.agent.impl.DynamicAction;
import aima.core.util.datastructure.XYLocation;
/**
@author aeprieto
*/
public class LightCrossAction extends DynamicAction {
//Action names
public static final String INCLUIR_FUENTE_LUZ = "incluirFuenteLuz";
//Action params
... |
3e91f7ba-37d6-4c8c-9ee5-87459443b120 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-25 09:00:40", "repo_name": "james-hadoop/JamesSpring", "sub_path": "/src/main/java/com/james/spring/controller/HelloController.java", "file_name": "HelloController.java", "file_ext": "java", "file_size_in_byte... | package com.james.spring.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.james.spring.entity.TEventPage;
import com.james.spring.s... |
22792a8e-ee1a-49a0-9914-9d72db08afcc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-15 06:20:16", "repo_name": "rensamatar/ez-volley", "sub_path": "/app/src/main/java/fi/iwa/ez_volley/config/EZApplication.java", "file_name": "EZApplication.java", "file_ext": "java", "file_size_in_byte": 635, ... | package fi.iwa.ez_volley.config;
import android.app.Application;
import android.content.Context;
import android.util.Log;
public class EZApplication extends Application {
private static final String TAG = EZApplication.class.getSimpleName();
private static Application mInstance;
@Override
public vo... |
d327fcec-30c2-449f-bbe1-dbdd76491fd1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-30 10:17:43", "repo_name": "staudttomasz/kamsoft-recruitment-application", "sub_path": "/src/main/java/pl/staudt/kamsoft/currency/model/ChangeCurrencyRequest.java", "file_name": "ChangeCurrencyRequest.java", "... | package pl.staudt.kamsoft.currency.model;
import io.vavr.control.Option;
import lombok.Builder;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Value;
import java.math.BigDecimal;
@Value
@RequiredArgsConstructor
@Builder(toBuilder = true)
public class ChangeCurrencyRequest {
@NonNull... |
cfcb5220-afbb-4293-aa24-18ccdbe15fc9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-08 21:48:16", "repo_name": "KamrulSumon/Object-Oriented-Design", "sub_path": "/ATMMachine/NoCard.java", "file_name": "NoCard.java", "file_ext": "java", "file_size_in_byte": 635, "line_count": 37, "lang": "en",... | package com.sumon.prog.ood;
public class NoCard implements ATMState {
ATMMachine atmMachine;
public NoCard(ATMMachine newATMMachine) {
atmMachine = newATMMachine;
}
@Override
public void insertCard() {
System.out.println("Please enter PIN");
atmMachine.setATMState(atmMachine.getYesCardState());
}
@O... |
bb3919c2-51af-4eab-a5ab-abe58adaeab9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-08 13:06:15", "repo_name": "wronkam/GalaxyConqueror", "sub_path": "/galaxyconqueror/src/main/java/GalaxyConqueror/Model/Ships/Ship.java", "file_name": "Ship.java", "file_ext": "java", "file_size_in_byte": 634,... | package GalaxyConqueror.Model.Ships;
import GalaxyConqueror.Model.Bullet;
import GalaxyConqueror.Model.Factory;
import javafx.scene.image.Image;
public abstract class Ship extends Bullet {
public boolean isShooting;
public Factory gun;
public Ship(Image image, int moveListid, double moveScale, int collis... |
bf674395-1b38-4233-a410-560b98401ff2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-12-31T11:17:57", "repo_name": "mofizul21/Meranda_CI_Blog", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 635, "line_count": 35, "lang": "en", "doc_type": "text", "... | # Meranda CodeIgniter Blog
I have created a basic blog with CodeIgniter PHP Framework. The application is under-development. But you can use it. Gradually I'll improve the functionality of the application.
**Features:**
* Full fledged admin dashboard
* Secure working contact form
* Blogs page
* 'Recent Blogs' widg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.