id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
074e2dfc-b782-4fe7-a56e-d0dca668e174 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-10-23T00:09:34", "repo_name": "juniorxsound/ICM-Fall-2016", "sub_path": "/5_Tones_of_Emotion/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 753, "line_count": 17, "lang": "en", "... | # 5 Tones of Emotion
A small app that analyses color data from a library of images shared between my and my girlfriend who lives abroad.
[Demo](https://juniorxsound.github.io/ICM-Fall-2016/5_Tones_of_Emotion/)
{
JFrame frame = new JFrame();
Container contentPane = frame.getContentPane()... |
9ff7927a-3024-4da0-8575-846f091b3b08 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-05-12 08:08:02", "repo_name": "hijookim/ImageSearchApp", "sub_path": "/app/src/main/java/com/hijookim/android/imagesearchapp/app/utils/SaveQueryWordTask.java", "file_name": "SaveQueryWordTask.java", "file_ext": "... | package com.hijookim.android.imagesearchapp.app.utils;
import android.content.Context;
import android.os.AsyncTask;
/**
* This task used to save the most recently used image query word asychronously
*/
public class SaveQueryWordTask extends AsyncTask<Void, Void, Void> {
private Context mContext;
private Stri... |
7e3d516d-a50b-418d-96b7-b3c714621606 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-29 14:02:03", "repo_name": "mercutiy/MambaTest", "sub_path": "/app/src/main/java/ru/mamba/test/mambatest/activity/Login.java", "file_name": "Login.java", "file_ext": "java", "file_size_in_byte": 753, "line_cou... | package ru.mamba.test.mambatest.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import ru.mamba.test.mambatest.R;
import ru.mamba.test.mambatest.api.Session;
public class Login extends AppCompatActivity {
... |
22e76837-8f51-41ea-baa3-d18736804939 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2010-05-17 14:23:55", "repo_name": "ngothachlam/devlead-tool", "sub_path": "/src/com/jonas/agile/devleadtool/gui/component/DesktopPane.java", "file_name": "DesktopPane.java", "file_ext": "java", "file_size_in_byte": 7... | package com.jonas.agile.devleadtool.gui.component;
import java.awt.Color;
import javax.swing.JDesktopPane;
public class DesktopPane extends JDesktopPane {
public DesktopPane() {
super();
setBackground(new Color(188, 218, 241));
}
public void addInternalFrame(MyInternalFrame internalFrame) {
ad... |
5a23851b-6ab5-432b-84bc-01d251622a37 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-05 02:27:57", "repo_name": "wang-shun/transaction", "sub_path": "/background/transport-ship/src/main/java/com/sinochem/crude/trade/transport/service/impl/MapPortServiceImpl.java", "file_name": "MapPortServiceI... | package com.sinochem.crude.trade.transport.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sinochem.crude.trade.transport.dao.MapPortMapper;
import com.sinochem.crude.trade.transport.do... |
3db8f1e3-e2c0-4c07-9944-5ee876f73442 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-27 07:28:51", "repo_name": "Antosnio/weathertest", "sub_path": "/src/main/java/com/weather/domains/Request.java", "file_name": "Request.java", "file_ext": "java", "file_size_in_byte": 753, "line_count": 32, "l... | package com.weather.domains;
import java.io.IOException;
import java.util.Properties;
import org.springframework.web.client.RestTemplate;
public class Request {
private String url = "";
private String apikey = "";
public Request() {
}
public Quote MakeRequest(String city, String units) throws IOException {
... |
a48cbf4a-e0e4-4b51-8097-a74a73404ea0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-06-17 12:30:12", "repo_name": "t0tec/formula-one-api", "sub_path": "/main/rest/src/main/java/org/formulaone/rest/wrapper/SeasonTable.java", "file_name": "SeasonTable.java", "file_ext": "java", "file_size_in_byte"... | package org.formulaone.rest.wrapper;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import org.formulaone.service.dto.SeasonDto;
import java.util.List;
/... |
b117550b-a888-4e48-93ca-cb8172baf61e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-16 18:10:42", "repo_name": "FutureGraphics/XtremeEssentials", "sub_path": "/src/essentials/future/code/Listeners/PlayerMoveListener.java", "file_name": "PlayerMoveListener.java", "file_ext": "java", "file_size... | package essentials.future.code.Listeners;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerMoveEvent;
import essentials.future.code.main.main;
public class PlayerMoveListener implements Listener {
private main p... |
fe433379-9a34-4414-aeae-6b133ba5e83f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-20 10:33:55", "repo_name": "Ghost-Win/eclipseremote", "sub_path": "/GUCCI/src/cn/gucci/util/SendMsgUtil.java", "file_name": "SendMsgUtil.java", "file_ext": "java", "file_size_in_byte": 839, "line_count": 36, "... | package cn.gucci.util;
/**
* @Title: http://www.smschinese.cn/api.shtml
* @date 2011-3-22
* @version V1.2
*/
public class SendMsgUtil {
//用户名
private static String Uid = "·冰与火·";
//接口安全秘钥
private static String Key = "d41d8cd98f00b204e980";
//手机号码,多个号码如13800000000,13800000001,13800000002
//private s... |
fa75e72f-432c-4505-9012-f0bab8c7612e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-22 14:20:19", "repo_name": "allanJacques/hinario", "sub_path": "/src/org/hinario/negocio/fconverters/OcasiaoConverter.java", "file_name": "OcasiaoConverter.java", "file_ext": "java", "file_size_in_byte": 753, ... | package org.hinario.negocio.fconverters;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
import org.hinario.dao.OcasiaoDAO;
import org.hinario.model.Ocasiao;
@FacesConverter(forClass = Ocasiao.class, v... |
c9680227-818b-490e-8db4-9dc4e89891d6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-19 10:28:27", "repo_name": "YagoYmbern/NaturalComputingProject", "sub_path": "/EvolutionarySimulatorV2/src/analysis/WindowsBinarySequence.java", "file_name": "WindowsBinarySequence.java", "file_ext": "java", "... | /*
* 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 analysis;
import java.util.ArrayList;
import locus.BinarySequence;
import locus.Fragment;
/**
*
* @author Osca... |
34acd0c1-64e2-4512-9c35-ceaa54048a2f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-15 16:14:32", "repo_name": "helpsolution/u-marketplace", "sub_path": "/backend/marketplace/src/main/java/com/reljicd/model/ProductInBasket.java", "file_name": "ProductInBasket.java", "file_ext": "java", "file_... | package com.reljicd.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import java.math.BigDecimal;
/**
* @author aguminskaya
* @since 2019-01-... |
82d45ce7-b821-4ea8-a92a-a9bb786d3f55 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-13 05:46:10", "repo_name": "Rokastur/reddit-clone", "sub_path": "/src/main/java/com/blog/reviewwebsite/entities/Score.java", "file_name": "Score.java", "file_ext": "java", "file_size_in_byte": 752, "line_count... | package com.blog.reviewwebsite.entities;
import com.blog.reviewwebsite.controller.RatingType;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Getter
@Setter
@Table(name = "Score")
public class Score {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long i... |
6588f5ab-a9ed-477f-8a08-3703cf6a638b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-25 10:38:35", "repo_name": "Demivk/OOPD-Game-Space-Arena", "sub_path": "/src/main/java/nl/han/ica/spacearena/Keys.java", "file_name": "Keys.java", "file_ext": "java", "file_size_in_byte": 752, "line_count": 42... | package nl.han.ica.spacearena;
public class Keys {
private int pressedKey;
private boolean isKeyPressed = false;
/**
* Constructor
* @param pressedKey
* @param isKeyPressed
*/
public Keys(int pressedKey, boolean isKeyPressed) {
this.pressedKey = pressedKey;
this.isKeyPressed = isKeyPressed;
}
/*... |
c53ab3e7-a053-47a0-916f-fa5997ef71e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-02-17 21:49:32", "repo_name": "HillaryP/quizdroid", "sub_path": "/app/src/main/java/edu/washington/prathh/quizdroid/Quiz.java", "file_name": "Quiz.java", "file_ext": "java", "file_size_in_byte": 752, "line_count"... | package edu.washington.prathh.quizdroid;
/**
* Created by iguest on 2/16/15.
*/
public class Quiz {
private String question;
private String[] answers;
private int correctIndex;
public Quiz() {
this.answers = new String[4];
}
public String getQuestion() {
return this.question... |
be0887b5-f603-4b85-9579-dc6432561a58 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-08 23:11:23", "repo_name": "voirtimid/web-emt", "sub_path": "/job-management/src/main/java/mk/metalkat/webemt/jobmanagement/domain/model/Company.java", "file_name": "Company.java", "file_ext": "java", "file_si... | package mk.metalkat.webemt.jobmanagement.domain.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.NoArgsConstructor;
import mk.metalkat.webemt.sharedkernel.domain.address.Address;
import mk.metalkat.webemt.sharedkernel.domain.address.ContactNumber;
import org.springframework.lang.NonNull;
imp... |
e24bc420-94aa-4153-852e-d8f571e062ce | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-29 04:12:55", "repo_name": "ShibuKuppelanLearning/Microservices", "sub_path": "/supermarket-microservices/microservices/product-service/src/main/java/com/shibu/microservices/core/product/services/ProductServic... | package com.shibu.microservices.core.product.services;
import com.shibu.supermarket.api.core.product.Product;
import com.shibu.supermarket.api.core.product.ProductService;
import com.shibu.supermarket.util.http.ServiceUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.b... |
0e9ac1f6-d7b2-44e5-80ab-73e9c36eaa1b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-01-01 15:58:38", "repo_name": "gramer/address", "sub_path": "/edu-lig-2013/src/main/java/com/ligs/address/module/AddressController.java", "file_name": "AddressController.java", "file_ext": "java", "file_size_in_b... | package com.ligs.address.module;
import java.util.List;
import com.ligs.domain.Address;
public class AddressController {
private AddressService service;
public void setService(AddressService service) {
this.service = service;
}
public void add(Address address) {
service.save(address);
}... |
66370123-f6d3-45fd-abba-93bfa5c29067 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-20 22:13:45", "repo_name": "usamarabbani/Swapping-and-Paging", "sub_path": "/src/LFU.java", "file_name": "LFU.java", "file_ext": "java", "file_size_in_byte": 753, "line_count": 34, "lang": "en", "doc_type": "c... |
/**
* Implementation of the least-frequently-used paging algorithm
*/
public class LFU extends Pager
{
/**
* @return index of the least frequently used process in the page table
*/
public int getEvictionIndex()
{
int index = 0, min = 0, i = 0;
for (Page p : getMemoryTable())
... |
aa0ad0fb-7fe3-4c12-9140-40d16a5cab00 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-10-05 02:40:31", "repo_name": "oakkub/JobInternWithTab", "sub_path": "/app/src/main/java/com/example/oakkub/jobintern/Activities/TabMainActivity.java", "file_name": "TabMainActivity.java", "file_ext": "java", "fi... | package com.example.oakkub.jobintern.Activities;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.example.oakkub.jobintern.Fragments.TabMainActivityFragment;
import com.example.oakkub.jobintern.R;
public class TabMainActivity extends AppCompatActivity {
@Override
protect... |
a4c1ad7f-28d2-43ce-a629-6ebd18f85605 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-01 14:24:23", "repo_name": "raja3q/RNotepad", "sub_path": "/Notepad/src/notepad/gui/NotepadPopupMenu.java", "file_name": "NotepadPopupMenu.java", "file_ext": "java", "file_size_in_byte": 753, "line_count": 33,... | package notepad.gui;
import java.awt.event.ActionEvent;
import java.util.Hashtable;
import java.util.Map;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;
@SuppressWarnings({"rawtypes", "unchecked"})
public class NotepadPopupMenu {
private JMenuItem menuItem;
private static Map menus = new... |
cfaac7c0-18c9-498f-bc9a-344eba57585c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-08 11:09:45", "repo_name": "dwimagita/Napkeen-Project", "sub_path": "/app/src/main/java/com/example/imadedwimagitadirtana_1202150054_si3906/napkeen/TempatMakanTerdekat.java", "file_name": "TempatMakanTerdekat.... | package com.example.imadedwimagitadirtana_1202150054_si3906.napkeen;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
public class TempatMakanTerdekat extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {... |
e3c12a1e-abe2-4523-9292-38ffa48d0ea2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-11-11 07:05:47", "repo_name": "maksimlikharev/juicerator", "sub_path": "/src/main/java/com/thomson/governator/impl/PersonImpl.java", "file_name": "PersonImpl.java", "file_ext": "java", "file_size_in_byte": 752, "... | package com.thomson.governator.impl;
import java.util.Date;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.name.Named;
import com.netflix.governator.annotations.Configuration;
import com.thomson.governator.GenericInterface;
import com.thomson.governator.Person;
public cl... |
700790f5-5520-4200-8932-ca1f40c3cb09 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-11 09:38:53", "repo_name": "vyasashok/springboot-angular-socket", "sub_path": "/websocket-backend/src/main/java/com/ashok/websocketbackend/controller/WebSocketController.java", "file_name": "WebSocketControlle... | package com.ashok.websocketbackend.controller;
import java.text.SimpleDateFormat;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.messaging.simp.Si... |
8ad07acf-9ffb-4c06-84da-978ea88be5f1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-12 11:37:15", "repo_name": "CMoyaC/p3ed_carlos", "sub_path": "/src/pruebapersona/Random.java", "file_name": "Random.java", "file_ext": "java", "file_size_in_byte": 752, "line_count": 43, "lang": "en", "doc_typ... | /*
* 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 pruebapersona;
/**
*
* @author Carlos
*/
public class Random {
private int random;
private String nombre;
publ... |
0fc22ab3-015a-468a-8db8-662507dbc811 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-09-28T00:43:42", "repo_name": "nathanesau/sd-mint", "sub_path": "/cache/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 751, "line_count": 30, "lang": "en", "doc_type": "text", "b... | # Cache
running postgres docker for cache:
```bash
docker run -p 6379:6379 --name mint-redis -v /root/dumps:/data -d redis redis-server --requirepass yourpass
```
to connect to image with python:
```python
import redis
r = redis.StrictRedis(host="165.22.234.253", port=6379, db=0, password='yourpass')
```
## additi... |
a173c030-61cb-4710-91b0-11999dd0c566 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-22 01:13:09", "repo_name": "LinYing89/Pressure", "sub_path": "/app/src/main/java/test/lygzb/com/pressure/network/MySearchDeviceResult.java", "file_name": "MySearchDeviceResult.java", "file_ext": "java", "file_... | package test.lygzb.com.pressure.network;
import android.os.Message;
import lygzb.zsmarthome.net.SearchDeviceResult;
import test.lygzb.com.pressure.systemset.SearchActivity;
/**
* Created by Administrator on 2016/4/10.
*/
public class MySearchDeviceResult extends SearchDeviceResult{
public static final int NO_MESS... |
185a83eb-4b2b-4e82-a901-80450eb1e2cb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-21 20:31:48", "repo_name": "RoboticsTeam4904/2017-Code", "sub_path": "/src/org/usfirst/frc4904/robot/subsystems/LIDAR.java", "file_name": "LIDAR.java", "file_ext": "java", "file_size_in_byte": 752, "line_count... | package org.usfirst.frc4904.robot.subsystems;
import org.usfirst.frc4904.standard.custom.motioncontrollers.MotionController;
import org.usfirst.frc4904.standard.subsystems.motor.VelocitySensorMotor;
import edu.wpi.first.wpilibj.SpeedController;
public class LIDAR extends VelocitySensorMotor {
public static double M... |
cdb2dd1b-7924-4427-a4ee-1fa591cb8758 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-18 09:22:19", "repo_name": "ouDongSheng/fixBackground", "sub_path": "/src/main/java/com/logicalthining/endeshop/conf/BeanConfig.java", "file_name": "BeanConfig.java", "file_ext": "java", "file_size_in_byte": 7... | package com.logicalthining.endeshop.conf;
import com.github.pagehelper.PageHelper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.Properties;
/**
* @author chenlijia
* @version 1.0
* @since 2019/8/8 0008 下午 7:50
**/
@Configuration... |
21b6b709-e3d5-493d-a788-f480ff44782b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-01-09 04:06:18", "repo_name": "apparentlymart/FooCompile", "sub_path": "/uk/me/alexhaig/FooCompile/IndentingWriter.java", "file_name": "IndentingWriter.java", "file_ext": "java", "file_size_in_byte": 755, "line_c... |
package uk.me.alexhaig.FooCompile;
import java.io.*;
public class IndentingWriter {
int ind = 0;
PrintStream pw;
public IndentingWriter(PrintStream pw) {
this.pw = pw;
}
public void indent() {
ind++;
}
public void outdent() {
if (ind >= 0) ind-... |
8d199586-8528-40e5-b8c8-0880bfc95972 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-01 18:08:36", "repo_name": "didgns10/coupleapp", "sub_path": "/app/src/main/java/com/example/coupleapp/Model/AlbumViewData.java", "file_name": "AlbumViewData.java", "file_ext": "java", "file_size_in_byte": 752... | package com.example.coupleapp.Model;
public class AlbumViewData {
private String img_idx;
private String img;
private String album;
public AlbumViewData(String img_idx, String img, String album) {
this.img_idx = img_idx;
this.img = img;
this.album = album;
}
public St... |
237fea0f-86e9-4e50-acef-dedc81f8dbb9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-15 08:07:33", "repo_name": "wjymo/example", "sub_path": "/xunwu/src/main/java/com/wjy/xunwu/dto/HousePictureDTO.java", "file_name": "HousePictureDTO.java", "file_ext": "java", "file_size_in_byte": 756, "line_c... | package com.wjy.xunwu.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
/**
* Created by 瓦力.
*/
@Data
public class HousePictureDTO {
private Long id;
@JsonProperty(value = "house_id")
private Long houseId;
private String path;
@JsonProperty(value = "cdn_prefix")
... |
03e06dff-562a-4488-9660-7bca8ade606f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-09-14T11:09:44", "repo_name": "kimcavalcanti/react-treeview-light", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 751, "line_count": 46, "lang": "en", "doc_type": ... | # React-treeview [](https://www.npmjs.com/package/react-treeview-light)
Easy and light treeview component made with React
## install
Npm:
```sh
npm i react-treeview-light -S
```
# API
#### <TreeView />
- `data`: content to ... |
e90c17c3-153d-4901-a487-630697ef0fdd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-07 07:15:36", "repo_name": "mjg2095/nuesoft2019", "sub_path": "/mvcweb002/src/main/java/com/nuesoft/mvcweb002/controller/UserController.java", "file_name": "UserController.java", "file_ext": "java", "file_size... | package com.nuesoft.mvcweb002.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.neusoft.busmis.security.model.UserModel;
im... |
71dfd815-dbb4-4c5d-a38f-c36e949425ce | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-28 18:54:37", "repo_name": "calabozo/TestSpringMVC", "sub_path": "/src/test/java/com/testspringmvc/app/scenario/BasicModelScenarioTest.java", "file_name": "BasicModelScenarioTest.java", "file_ext": "java", "fi... | package com.testspringmvc.app.scenario;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.testspringmvc.app.config.TestSpringConfig;
import com.tngtech.jgiven.integrat... |
6e3da4cd-62a1-405c-8197-225abf09060c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-12 01:02:11", "repo_name": "Cazio/learning", "sub_path": "/netty/src/main/java/com/cazio/netty/nio/NIOFileChannelA.java", "file_name": "NIOFileChannelA.java", "file_ext": "java", "file_size_in_byte": 756, "lin... | package com.cazio.netty.nio;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
/**
* @author Ca2io
* @version 1.0
* @description
* @since 2020/4/15 14:20
*/
public class NIOFileChannelA {
public static... |
2191b4b9-d2bd-493c-b267-f81ec0034e66 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-02 15:13:32", "repo_name": "maxotov/carrental", "sub_path": "/src/kz/project/carrental/entity/Entity.java", "file_name": "Entity.java", "file_ext": "java", "file_size_in_byte": 752, "line_count": 44, "lang": "... | package kz.project.carrental.entity;
import java.io.Serializable;
public abstract class Entity implements Serializable {
private int id;
protected Entity() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
@Override
public boolea... |
ee810f9e-5f9f-4646-86e8-59c82e7e4910 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-04-09T20:45:45", "repo_name": "tommeagher/pycar14", "sub_path": "/project4/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 753, "line_count": 26, "lang": "en", "doc_type": "text",... | # 3:15 - 4:50 p.m.
## Project #4
Scrape many websites and merge them together
_or_
python for converting all your data: json, xml, excel into one big csv!
Let's use an API to get information programatically.
[Govtrack.us](https://www.govtrack.us/developers/api) has an API. Let's
create a spreadsheet of the 100 late... |
7e214b51-58f6-4a05-8341-0ba277532b09 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-13 14:31:06", "repo_name": "harlibott/Reversi", "sub_path": "/cs1302-reversi-alpha/RandomComputerPlayer.java", "file_name": "RandomComputerPlayer.java", "file_ext": "java", "file_size_in_byte": 751, "line_coun... | package cs1302.p2;
import java.util.Random;
/**
* <h1>RandomComputerPlayer</h1>
* A child class of ComputerPlayer that represents
* a random computer player.
*
* @author Harli Bott
* @version 1.0
* @since 2017-10-2
*/
public class RandomComputerPlayer extends ComputerPlayer{
Random r = new Random();
... |
24965ffc-134c-49f1-8e56-690969f8ec90 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-13 17:29:52", "repo_name": "saber72237/whclass", "sub_path": "/vxclass/src/main/java/com/yygq/vxclass/service/impl/StudentServiceImpl.java", "file_name": "StudentServiceImpl.java", "file_ext": "java", "file_si... | package com.yygq.vxclass.service.impl;
import com.yygq.vxclass.bean.Student;
import com.yygq.vxclass.mapper.StudentMapper;
import com.yygq.vxclass.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Copyright: Copyright (c)2021
... |
d41ba9a5-4140-4471-8c4d-ef75ba0f67c1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-21 14:57:12", "repo_name": "s2viphan0i/mrs-api", "sub_path": "/src/main/java/com/sinnguyen/mapper/ViewMapper.java", "file_name": "ViewMapper.java", "file_ext": "java", "file_size_in_byte": 752, "line_count": 2... | package com.sinnguyen.mapper;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.sinnguyen.entities.Song;
import com.sinnguyen.entities.User;
import com.sinnguyen.entities.View;
import com.sinnguyen.util.MainUtility;
public class ViewMapper implements... |
f7942ea4-3dad-4d01-acfe-4b68f8e6e0b7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-22 18:21:56", "repo_name": "Sirbiladze-Irakli/CarsDB", "sub_path": "/app/src/main/java/model/Car.java", "file_name": "Car.java", "file_ext": "java", "file_size_in_byte": 752, "line_count": 46, "lang": "en", "d... | package model;
public class Car {
private int id;
private String name;
private String prise;
public Car() {
}
public Car(int id, String name, String prise) {
this.id = id;
this.name = name;
this.prise = prise;
}
public Car(String name, String prise) {
... |
486e9e44-458c-41d8-9b68-92d418b0884a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-18 09:29:11", "repo_name": "bartem08/SpringApp", "sub_path": "/src/main/java/com/baranovskiy/webapp/model/BaseModel.java", "file_name": "BaseModel.java", "file_ext": "java", "file_size_in_byte": 752, "line_cou... | package com.baranovskiy.webapp.model;
import javax.persistence.*;
/**
* Base model of entity, includes identifier and entity name
*
* @version 1.0
* @author Baranovskiy Artem
*/
@MappedSuperclass
public abstract class BaseModel {
/** Entity ID **/
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
... |
de24e221-6c0a-4a15-b6b2-22e453ded55d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-13 20:14:53", "repo_name": "Tompy23/GameAI", "sub_path": "/src/main/java/net/tompy/gameai/ProcessGameImpl.java", "file_name": "ProcessGameImpl.java", "file_ext": "java", "file_size_in_byte": 753, "line_count":... | package net.tompy.gameai;
import java.util.Properties;
import net.tompy.common.CommonConstants;
import net.tompy.common.CommonException;
import net.tompy.common.CommonProcess;
import org.springframework.context.ApplicationContext;
public class ProcessGameImpl implements CommonProcess
{
private Game myG... |
06d1ded4-9051-4d4c-9f7e-f511e30b0506 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-10 12:15:18", "repo_name": "lotockijj/workspace", "sub_path": "/demo/src/test/java/designpatterns/twelve/two/VehicleFactoryTest.java", "file_name": "VehicleFactoryTest.java", "file_ext": "java", "file_size_in_... | package designpatterns.twelve.two;
import org.junit.Test;
import org.testng.Assert;
public class VehicleFactoryTest {
@Test
public void test() {
VehicleFactory factory = VehicleFactory.getVehicleFactory("Luxury");
Car car = factory.getCar();
Assert.assertEquals("Conditioning, computer, TV, JPS.", car.getC... |
2562ac5d-0fd5-4212-ab99-88ff1eb60f04 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-08 12:45:57", "repo_name": "dohyun22/JST3", "sub_path": "/src/main/java/dohyun22/jst3/items/behaviours/IB_Migrate.java", "file_name": "IB_Migrate.java", "file_ext": "java", "file_size_in_byte": 752, "line_coun... | package dohyun22.jst3.items.behaviours;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
public class IB_Migrate extends ItemBehaviour {
private final ItemStack replacem... |
ee022043-b00e-425b-97df-f7a97341391b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-30 15:09:52", "repo_name": "zak0/Scrooge", "sub_path": "/src/no/domain/zak0/scrooge/activity/AccountOnLongClickListener.java", "file_name": "AccountOnLongClickListener.java", "file_ext": "java", "file_size_in_... | package no.domain.zak0.scrooge.activity;
import no.domain.zak0.scrooge.dataclass.PoormanAccount;
import no.domain.zak0.scrooge.utils.DatabaseHelper;
import android.content.Context;
import android.view.View;
import android.view.View.OnLongClickListener;
public class AccountOnLongClickListener implements OnLongClickLi... |
96dc0ffc-ae12-4285-bce2-fb7608edf84f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-23 16:44:24", "repo_name": "leonardob26/mydemo", "sub_path": "/src/main/java/com/infosys/mydemo/model/Product.java", "file_name": "Product.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 50,... | package com.infosys.mydemo.model;
import java.io.Serializable;
import javax.persistence.*;
/**
* The persistent class for the products database table.
*
*/
@Entity
@Table(name="products")
public class Product implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strat... |
033f3cb3-db9a-4f6c-bd14-f4b894eef42a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-22 09:58:17", "repo_name": "avgulavani/SeleniumDesignPattern", "sub_path": "/src/test/java/srp/BaseTest.java", "file_name": "BaseTest.java", "file_ext": "java", "file_size_in_byte": 752, "line_count": 31, "lan... | package srp;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import com.google.common.util.concurrent.Uni... |
84c679b8-09eb-42ce-b8eb-78bc6aebe252 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-17 02:19:48", "repo_name": "2802612334/guli", "sub_path": "/service/service-edu/src/main/java/com/atguigu/eduservice/entity/vo/TeacherQueryVO.java", "file_name": "TeacherQueryVO.java", "file_ext": "java", "fil... | package com.atguigu.eduservice.entity.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
@ApiModel(value = "Teacher模糊查询对象",description = ... |
32b91141-36bf-406e-9af3-3611f74f8317 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-07 20:06:37", "repo_name": "caricsvk/sb-utils", "sub_path": "/src/main/java/milo/utils/auth/AuthSessionsService.java", "file_name": "AuthSessionsService.java", "file_ext": "java", "file_size_in_byte": 752, "li... | package milo.utils.auth;
import milo.utils.jpa.EntityService;
import javax.transaction.Transactional;
import java.util.List;
public abstract class AuthSessionsService<T extends AuthSession<U>, U extends AuthUser> extends EntityService<T, Long> {
public AuthSessionsService(Class<T> entityClass) {
super(entityClas... |
5cbf6ccd-ab40-485a-9b60-9a9285f11ce8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-15 15:27:04", "repo_name": "joshehrlich24/ILOC_P5_FinalTry", "sub_path": "/src/main/java/edu/jmu/decaf/ASTProgram.java", "file_name": "ASTProgram.java", "file_ext": "java", "file_size_in_byte": 753, "line_coun... | package edu.jmu.decaf;
import java.util.*;
/**
* Decaf program. Basically just a list of {@link ASTVariable} and {@link
* ASTFunction} declarations.
*/
public class ASTProgram extends ASTNode
{
public List<ASTVariable> variables;
public List<ASTFunction> functions;
public ASTProgram()
{
su... |
92aff2df-cb37-44ed-8058-f5a333b0960c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-21 13:00:35", "repo_name": "TrioFunny/Trio", "sub_path": "/src/main/java/com/triofunny/trio/util/filter/doMainFilter.java", "file_name": "doMainFilter.java", "file_ext": "java", "file_size_in_byte": 756, "line... | package com.triofunny.trio.util.filter;
import org.springframework.core.annotation.Order;
import javax.naming.Name;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@Order(1)
//重点
@WebFilter(filterName = "MainFinter",urlPatt... |
bf333c31-20ff-409e-8af4-78ceb07a42a0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-13 03:27:01", "repo_name": "ryzencool/mongo-jpa", "sub_path": "/src/main/java/com/zmy/springbooy/mongojpa/enity/HeroTemplate.java", "file_name": "HeroTemplate.java", "file_ext": "java", "file_size_in_byte": 79... | package com.zmy.springbooy.mongojpa.enity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructo... |
72d21508-3f71-4477-b57c-782d80d0eb7b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-21 12:28:36", "repo_name": "bprollinson/robotzombieninjawizard", "sub_path": "/rznw/game/maincharacter/inventory/EquipmentGroup.java", "file_name": "EquipmentGroup.java", "file_ext": "java", "file_size_in_byte... | package rznw.game.maincharacter.inventory;
public class EquipmentGroup
{
private EquipmentItem item;
private int numItems;
public EquipmentGroup(EquipmentItem item, int numItems)
{
this.item = item;
this.numItems = numItems;
}
public EquipmentItem getItem()
{
retur... |
0959aa0d-b3cd-4cbb-866b-8fd10075d81f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-18 12:32:40", "repo_name": "Maria61/Java02", "sub_path": "/VacationPractice/src/Chatchat/ClientReciverThread.java", "file_name": "ClientReciverThread.java", "file_ext": "java", "file_size_in_byte": 751, "line_... | package com.imooc.inetadderss;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Socket;
public class ClientReciverThread implements Runnable {
private Socket s;
BufferedReader br = null;
//¶àÌõ½ÓÊÕ
public ClientReciverThread(Socket s) throws ... |
f185ce82-d029-4b27-9ce1-590c5ecfe31f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-05-28 03:26:27", "repo_name": "wocommunity/wonder", "sub_path": "/Examples/Misc/ERPDFExamples/Sources/er/pdfexamples/components/SimpleHTML2FOP2PDF.java", "file_name": "SimpleHTML2FOP2PDF.java", "file_ext": "java"... | package er.pdfexamples.components;
import com.webobjects.appserver.WOContext;
import er.extensions.components.ERXComponent;
public class SimpleHTML2FOP2PDF extends ERXComponent {
public SimpleHTML2FOP2PDF(WOContext context) {
super(context);
}
/**
* get the location (on the classpath) of... |
caca0d2f-6665-4fd4-b7b0-b58a942f81e1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-01-24T10:50:56", "repo_name": "SyncfusionExamples/How-to-show-the-snack-bar-at-the-bottom-of-listview", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 752, "line_co... | # How to show the snack bar at the bottom of list
This example demonstrates how to display the snackbar at the bottom of listview.
See [How to show the snack bar at the bottom of list](https://www.syncfusion.com/kb/9317/how-to-show-the-snack-bar-at-the-bottom-of-list) for more details.
## Requirements to run the dem... |
cf34c887-45d7-4a74-8a17-511032274526 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-14 10:23:59", "repo_name": "ShinJaeW0n/Olive-Young", "sub_path": "/young_pro/src/shop/Action/orderRemoveAction.java", "file_name": "orderRemoveAction.java", "file_ext": "java", "file_size_in_byte": 770, "line_... | package shop.Action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.shop.dao.PrdDAO;
import Action.Action;
import vo.ActionForward;
public class orderRemoveAction implements Action{
@Override
public ActionForward execute(HttpServletRequest request, HttpSe... |
bdb43ff5-a562-41c6-8e19-b55b74c5f0c2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-07-14T19:29:39", "repo_name": "amandaciobanu/Balancer", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 752, "line_count": 24, "lang": "en", "doc_type": "text", "blo... | ## Balancer
Social Impact Investing platform that aims to support and listen to the needs of women and Persons of Color entrepreneurs with great ideas.
Entrepreneurs can add their projects and create campaigns for raising funding
Investors are able to browse through campaigns and make a pledge.
-------------------... |
f1a02217-481d-4ab3-a0c1-fcbc556a295e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-30 09:33:09", "repo_name": "wangpengda1210/Budget-Manager", "sub_path": "/Problems/Parse url/src/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 28, "lang": "e... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
// put your code here
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
String query = input.split("\\?")[1];
String[] params = query.split("&");
String passw... |
22c03925-ea14-45d9-ac35-3d111fd31aeb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-18 09:08:26", "repo_name": "DingShiFeng/BackPropagation", "sub_path": "/src/network/Layer.java", "file_name": "Layer.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 39, "lang": "en", "doc_ty... | package network;
import java.util.ArrayList;
public class Layer {
String name;
private ArrayList<Node> nodeList = null;
public Layer(String name) {
this.name = name;
this.nodeList = new ArrayList<Node>();
}
public void addNode(Node node) {
this.nodeList.add(node);
node.setAssociatedLay... |
64efa772-8ad7-4f2e-994c-4399f5b3fa15 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-09 09:03:20", "repo_name": "zjw641220480/project", "sub_path": "/tom-util/src/main/java/org/tom/util/code/GetEncoding.java", "file_name": "GetEncoding.java", "file_ext": "java", "file_size_in_byte": 779, "line... | package org.tom.util.code;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
/**
* @ClassName:GetEncoding
* @Description:获取文本文件编码
* @author TOM
* @date 2016年5月24日 上午11:21:16
* @version V1.0.0
*/
public class GetEncoding {
public static void main(String[] args) {
}
public ... |
d2072d9c-72ca-4a73-9534-83c8a97141e1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-30 09:40:44", "repo_name": "kermek/intro-to-selenium6", "sub_path": "/src/main/java/com/softserveinc/training/page/SignInPage.java", "file_name": "SignInPage.java", "file_ext": "java", "file_size_in_byte": 770... | package com.softserveinc.training.page;
import static com.codeborne.selenide.Selenide.page;
import com.codeborne.selenide.SelenideElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
public class SignInPage {
@FindBy(how = How.LINK_TEXT, using = "Зарегистрироваться")
p... |
e1f15bdb-9d88-4bf5-a075-2c870be58099 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-13 05:27:51", "repo_name": "rgkarthicbalaji/carkparkapp", "sub_path": "/ParkApp/src/main/java/com/asses/park/model/Customer.java", "file_name": "Customer.java", "file_ext": "java", "file_size_in_byte": 751, "l... | package com.asses.park.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "CUSTOMER")
... |
96bcfa06-c5a3-4f07-aa87-f46c3b362fbf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2011-05-17 11:08:11", "repo_name": "jeroenvalk/aaw.xml", "sub_path": "/src/test/java/nl/agentsatwork/attribute/AbstractAttributeTest.java", "file_name": "AbstractAttributeTest.java", "file_ext": "java", "file_size_in_... | package nl.agentsatwork.attribute;
import static org.junit.Assert.*;
import nl.agentsatwork.aggregates.Entity;
import nl.agentsatwork.aggregates.Location;
import org.junit.Before;
import org.junit.Test;
public class AbstractAttributeTest extends AbstractImmutableAttributeTest {
@Before
public void setUp() {
su... |
f5ff4e32-f874-4682-85f5-4f5826610c5d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-14 21:14:11", "repo_name": "recj/ProyectoFinal_StudyJam", "sub_path": "/app/src/main/java/com/example/rodrigo/aboliviapresidentes/ConsultaWeb.java", "file_name": "ConsultaWeb.java", "file_ext": "java", "file_s... | package com.example.rodrigo.aboliviapresidentes;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class ConsultaWeb extends AppCompatActivity {
... |
7d279ecb-91c5-4479-8220-858aeb9cb7da | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-21 05:05:44", "repo_name": "anushavinno2276/onlineshop", "sub_path": "/src/org/online/shopping/repository/Database.java", "file_name": "Database.java", "file_ext": "java", "file_size_in_byte": 751, "line_count... | package org.online.shopping.repository;
import java.sql.Connection;
import java.sql.SQLException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
/***
*
* @author Akshay
*
*/
public class Database implements IDatabase {
/***
*... |
12a51e8e-5388-41c4-b3a0-500d3de7ef98 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-01 13:27:51", "repo_name": "rzfzr/IA", "sub_path": "/JavaApplication1/src/Structures/Variable.java", "file_name": "Variable.java", "file_ext": "java", "file_size_in_byte": 752, "line_count": 38, "lang": "en", ... | package Structures;
/*
* 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.
*/
/**
*
* @author rzfzr
*/
public class Variable {
private boolean objective;
private String identi... |
bde5a9f7-f642-4c39-9a96-0aa9652a5f35 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-09 01:48:47", "repo_name": "billott/java-microservices", "sub_path": "/hello-dropwizard/src/main/java/com/kos/examples/dropwizard/resources/HelloRestResource.java", "file_name": "HelloRestResource.java", "file... |
package com.kos.examples.dropwizard.resources;
import com.codahale.metrics.annotation.Timed;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import java.net.InetAddress;
import java.net.UnknownHostException;
/**
* Created by billott
*/
@Path("/api")
public class HelloRestResource {
private String saying;
... |
291e1ae1-3e03-483c-b9f7-1c07086af39d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-08-24T18:55:34", "repo_name": "maxsjohn/Learnings", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 679, "line_count": 15, "lang": "en", "doc_type": "text", "blob_id... | # Learnings
## [This link will show how to set up GIT in the Eclipse](https://www.youtube.com/watch?v=r5C6yXNaSGo#t=75.656741)
## Hadoop Releated Stuff
### [To start Debugging Map Reduce hadoop in Eclipse](http://pingax.com/getting-started-with-mapreduce-using-eclipse-2/)
### [Setting Hadoop in ubuntu](http://www.bogo... |
0c16ae1f-e28c-438f-92df-bf75b8bb97cc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-28 07:21:49", "repo_name": "imacback/bs", "sub_path": "/bs-dao/src/test/java/cn/aiyuedu/bs/dao/mongo/repository/SiteRepositoryTest.java", "file_name": "SiteRepositoryTest.java", "file_ext": "java", "file_size_... | package cn.aiyuedu.bs.dao.mongo.repository;
import cn.aiyuedu.bs.dao.BaseTest;
import cn.aiyuedu.bs.dao.entity.Site;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Date;
/**
* Description:
*
* @author yz.wu
*/
@Ignore
public class S... |
f4b52808-c908-48f8-9a98-9d438ac90dca | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-09-23T02:12:05", "repo_name": "kenhudak/VetsWhoCode-Week2", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 751, "line_count": 15, "lang": "en", "doc_type": "text", ... | # VetsWhoCode-Week2
A Basic Framework HTML Page Managed by GitHub Process
Site Palette Favorite Site...
In this exercise I realized I really hated the UX on the sites I really love. See: The Atlantic, Reddit, Weather.gov.
Two sites made the cut. One is from the Crypto world, which really seems to be putting in some ... |
2ea64697-fac8-4ecc-be53-17a51e41b8fd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-12 15:32:40", "repo_name": "ikikon/learngit", "sub_path": "/src/P3/Player/Player.java", "file_name": "Player.java", "file_ext": "java", "file_size_in_byte": 768, "line_count": 47, "lang": "en", "doc_type": "co... | package P3.Player;
import P3.Piece.*;
import java.util.*;
public class Player {
// AF:该玩家m名字对应playerName,是否是当前玩家对应firstHand
// RI playerName!=null
// secure way:using defensive copy and all fields are private
private final String playerName;
private boolean firstHead;
//checkRep()
public void checkRep() {
... |
f872653a-52e6-42e3-b5b8-a2664890bd8d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-04-05 06:07:47", "repo_name": "smxknife/smxknife", "sub_path": "/smxknife/smxknife-javaagent/smxknife-javaagent-main/src/main/java/com/smxknife/javaagent/main/AttachAgent.java", "file_name": "AttachAgent.java", "... | package com.smxknife.javaagent.main;
import com.sun.tools.attach.AgentInitializationException;
import com.sun.tools.attach.AgentLoadException;
import com.sun.tools.attach.AttachNotSupportedException;
import com.sun.tools.attach.VirtualMachine;
import java.io.IOException;
/**
* @author smxknife
* 2020/6/10
*/
publ... |
611df240-c384-4624-a8da-1d69f17d0e37 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-28 08:49:25", "repo_name": "zhaoyifanlalala/JavaEA", "sub_path": "/bblog/blog-hann/src/main/java/club/banyuan/blog/service/MailService.java", "file_name": "MailService.java", "file_ext": "java", "file_size_in_... | package club.banyuan.blog.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.stereotype.Service;
@Service
public class MailService {
@Autowired
private Ja... |
e822ddb2-6f95-4449-874f-1e9548432832 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-12 13:55:58", "repo_name": "ThiagoHSouza/heroku", "sub_path": "/src/main/java/br/com/developer/openshift/MyApplicationProperties.java", "file_name": "MyApplicationProperties.java", "file_ext": "java", "file_si... | package br.com.developer.openshift;
import java.util.List;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import lombok.Data;
@Component
@Data
@ConfigurationProperties("heroku")
public class MyApplicationProperties {
priva... |
ee247ef7-552e-45c8-849e-d2f76a7ae3fe | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-17 09:06:01", "repo_name": "robwebb72/zarrax", "sub_path": "/core/src/com/gwenci/zarrax/TextureManager.java", "file_name": "TextureManager.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 36,... | package com.gwenci.zarrax;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import java.util.HashMap;
import java.util.Map;
public class TextureManager {
private Map<String,Texture> textures = new HashMap<>();
private static TextureManager instance = new TextureManager();
private TextureM... |
a5802bf7-c41d-4d3c-bced-33b8f8b84ac1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-18 00:52:13", "repo_name": "Manish-Kumar-Vats/NewsApp", "sub_path": "/app/src/main/java/android/example/guardiannewsapp/NewsLoader.java", "file_name": "NewsLoader.java", "file_ext": "java", "file_size_in_byte"... | package android.example.guardiannewsapp;
import android.content.Context;
import androidx.loader.content.AsyncTaskLoader;
import java.util.List;
public class NewsLoader extends AsyncTaskLoader<List<NewsArticle>> {
private static final String LOG_TAG = NewsLoader.class.getName();
private String mUrl;
... |
74c4359e-fa28-4f71-850b-7d91fc43bb19 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-19 10:35:49", "repo_name": "zhuyouzhong/Quarter", "sub_path": "/app/src/main/java/com/example/quarter/bean/SendBean.java", "file_name": "SendBean.java", "file_ext": "java", "file_size_in_byte": 755, "line_coun... | package com.example.quarter.bean;
import java.util.List;
/**
* Created by 祝文 on 2017/11/29.
*/
public class SendBean {
private String msg;
private String code;
public SendBean() {
}
public SendBean(String msg, String code) {
this.msg = msg;
this.code = code;
}
@Ove... |
f7b329c5-e08c-44b7-b019-d2f6ff624e58 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-11 07:08:16", "repo_name": "maz0bk/Spring1", "sub_path": "/_18_qualifier_convention/src/main/java/cc/vgur/spring/App.java", "file_name": "App.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": ... | package cc.vgur.spring;
import cc.vgur.spring.service.BetaService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import java.applet.AppletContext;
@ComponentScan("cc... |
2db2b463-e3fe-446e-84b5-2f489273c7c7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-03 07:20:04", "repo_name": "SequencingDOTcom/Weather-My-Way-RTP-app", "sub_path": "/Android/app/src/main/java/com/sequencing/weather/database/SQLiteAccessData.java", "file_name": "SQLiteAccessData.java", "file... | package com.sequencing.weather.database;
import android.content.Context;
/**
* Created by omazurova on 5/10/2017.
*/
public class SQLiteAccessData {
private android.database.sqlite.SQLiteDatabase sqLiteDatabase;
private DatabaseCreater databaseCreater;
public SQLiteAccessData(Context context){
... |
15c439bf-40fa-42af-9130-0e1854a4674e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-27 10:44:32", "repo_name": "LIENA-G/java-spring-readcsv-opencsv-tutorial", "sub_path": "/src/main/java/com/csvRead/Services/ReadWithAnnotation/CsvBindByName.java", "file_name": "CsvBindByName.java", "file_ext"... | package com.csvRead.Services.ReadWithAnnotation;
import com.csvRead.Entities.UserBindByName;
import com.opencsv.bean.CsvToBeanBuilder;
import org.springframework.stereotype.Service;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.List;
@Service("CsvBi... |
e8da1283-75e8-4163-84c0-aad7f178e972 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-14 17:58:13", "repo_name": "cuongvm-55/WebApplication", "sub_path": "/Branchs/Trunk/CoffeeShop/src/com/luvsoft/MMI/components/LuvsoftNotification.java", "file_name": "LuvsoftNotification.java", "file_ext": "ja... | package com.luvsoft.MMI.components;
import com.vaadin.server.Page;
import com.vaadin.shared.Position;
import com.vaadin.ui.Notification;
public class LuvsoftNotification {
Notification notify;
public LuvsoftNotification(String caption, String description, Notification.Type type) {
caption +... |
eea233eb-363a-4c6a-8616-18cf3043453c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-19 15:29:30", "repo_name": "RyanThompson123/bpdts-api-test", "sub_path": "/src/main/java/com/ryanthompson123/bpdtsapitest/model/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byte": 75... | package com.ryanthompson123.bpdtsapitest.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class User {
@JsonProperty("id")
pri... |
1c7df271-3248-4726-8ccd-394a0196a450 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-04 16:26:45", "repo_name": "roberthunt/hms-java", "sub_path": "/src/main/java/uk/org/nottinghack/service/impl/GroupServiceImpl.java", "file_name": "GroupServiceImpl.java", "file_ext": "java", "file_size_in_byt... | package uk.org.nottinghack.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import uk.org.nottinghack.domain.Group;
import uk.org.nottinghack.repository.GroupRepository;
import uk.org.nottinghack.service.GroupService;
import java.util.List;
/... |
43f1b5a6-9482-47b3-959c-49788c2bd588 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-02-05T16:38:29", "repo_name": "lucas-bch/DataViz", "sub_path": "/spark/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 751, "line_count": 23, "lang": "en", "doc_type": "text", "bl... | This is the project that generates the Spark script that runs on the database.
It adds the foreign keys to the `forecast` collection, in the `hist_id` field
of each document.
To compile it run
```bash
sbt package
```
The resulting .jar will be located in `./target/scala-2.10/`.
This folder also has a symbolic link ... |
7f85c33a-104f-4a99-9073-3b6bcea0a3f7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-06 11:04:01", "repo_name": "NyikaGiving/GiveOUTApp", "sub_path": "/app/src/main/java/com/giveout/nyika/giveoutapp/DonorInforActivity.java", "file_name": "DonorInforActivity.java", "file_ext": "java", "file_siz... | package com.giveout.nyika.giveoutapp;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class DonorInforActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedIns... |
4050ea35-b8c0-4c8b-92da-f2cc30347f07 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-27 08:27:23", "repo_name": "thanhlong1543/social-network", "sub_path": "/src/main/java/tp/kits3/ambi/service/impl/ChatUserServiceImpl.java", "file_name": "ChatUserServiceImpl.java", "file_ext": "java", "file_s... | package tp.kits3.ambi.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tp.kits3.ambi.dao.ChatUserDao;
import tp.kits3.ambi.service.ChatUserService;
import tp.kits3.ambi.vo.ChatUser;
@Service
public class ChatUserServiceImpl implements ... |
51a7e7f0-61ba-4adb-8bd9-afad7cd2c476 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-04 20:45:19", "repo_name": "jegolo/testexamples.java", "sub_path": "/src/test/java/de/lostuxos/testexamples/archunit/ArchunitTest.java", "file_name": "ArchunitTest.java", "file_ext": "java", "file_size_in_byte... | package de.lostuxos.testexamples.archunit;
import com.tngtech.archunit.core.domain.JavaClasses;
import com.tngtech.archunit.core.importer.ClassFileImporter;
import com.tngtech.archunit.lang.ArchRule;
import org.junit.jupiter.api.Test;
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.classes;
public... |
2eae6b61-9c5b-484d-8ff7-1b3131de9f8a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-25 10:51:52", "repo_name": "minhtu311288/DA-Training-java-minhtu", "sub_path": "/src/main/java/com/example/demo/utils/DateTimeUtil.java", "file_name": "DateTimeUtil.java", "file_ext": "java", "file_size_in_byt... | package com.example.demo.utils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
public class DateTimeUtil {
private static final String DATE_FORMAT = "dd-M-yyyy hh:mm:ss a";
public static String datetimefor... |
ee4b246a-0fab-4e38-8bb3-8d36cf08fbf6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-24 21:53:08", "repo_name": "atef93/PI_ADVY", "sub_path": "/Piadvy-ejb/src/main/java/tn/advyteam/entities/Developpeur.java", "file_name": "Developpeur.java", "file_ext": "java", "file_size_in_byte": 752, "line_... | package tn.advyteam.entities;
import java.io.Serializable;
import java.util.List;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
@Entity
@DiscriminatorValue(value = "devloppeur")
public class Developpeu... |
9c8edbab-b22e-4934-ba0e-f6887dabaf97 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-24 02:50:14", "repo_name": "aslongyouloveme/learning-project", "sub_path": "/src/main/java/com/ineverleft/leraning/async/AsyncLearn.java", "file_name": "AsyncLearn.java", "file_ext": "java", "file_size_in_byte... | package com.ineverleft.leraning.async;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
/**
* @Description @ClassName AsyncLearn @Author ineverleft
*
* @date 2021.01.13 15:33
*/
public class AsyncLearn {
public static void main(String[] args) throws ExecutionExcept... |
d168767d-7c63-43c5-ab21-c886ffa82af4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-23 04:56:25", "repo_name": "5870FirstBanting/5870FRC2016", "sub_path": "/test/src/org/usfirst/frc/team5870/robot/RobotMap.java", "file_name": "RobotMap.java", "file_ext": "java", "file_size_in_byte": 751, "lin... | package org.usfirst.frc.team5870.robot;
/**
* The RobotMap is a mapping from the ports sensors and actuators are wired into
* to a variable name. This provides flexibility changing wiring, makes checking
* the wiring easier and significantly reduces the number of magic numbers
* floating around.
*/
public class Ro... |
f67f532a-6e1d-4c19-853a-cd7ca11efd6b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-08 17:26:17", "repo_name": "lucasschiochet/ipeServer", "sub_path": "/src/java/com/manhattan/ipe/log/IpeLog.java", "file_name": "IpeLog.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": 28, "la... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.manhattan.ipe.log;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
*
* @author lucasschiochet
*/
public... |
92e7401f-66e8-4fb1-81a5-cb95647a63b5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-28 07:29:23", "repo_name": "vanik-jain/FacebookClone", "sub_path": "/app/src/main/java/com/example/frenzbook/DTO/Content.java", "file_name": "Content.java", "file_ext": "java", "file_size_in_byte": 750, "line_... | package com.example.frenzbook.DTO;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
public class Content implements Serializable
{
@SerializedName("text")
String text;
String image;
String video;
public String getText() {
return this.text;
}
public void setText(String text)... |
f93216f3-7862-4237-8f06-c571540ab8b2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-01 17:37:03", "repo_name": "lindakhny/login", "sub_path": "/app/src/main/java/com/android/iak3/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byte": 751, "line_count": ... | package com.android.iak3;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
TextView namaA, namaB;
@Override
protected void onCreate(Bundle savedInstanceState) {
... |
0e58d827-4659-4603-9871-e2ca1a2bee56 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-24 17:29:28", "repo_name": "windsonsm/SIMED", "sub_path": "/src/br/com/simed/controller/Relogio.java", "file_name": "Relogio.java", "file_ext": "java", "file_size_in_byte": 752, "line_count": 38, "lang": "en",... | /*
* 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 br.com.simed.controller;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Timer;
import ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.