id stringlengths 36 36 | meta stringlengths 429 697 | code_content large_stringlengths 612 1.26k |
|---|---|---|
f07eae5e-4bed-4864-82b6-2449f392f8fa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-12-22T09:13:57", "repo_name": "ianwinter/ian.io", "sub_path": "/_posts/2004-11-21-thismonth-udf.md", "file_name": "2004-11-21-thismonth-udf.md", "file_ext": "md", "file_size_in_byte": 856, "line_count": 15, "... | ---
layout: post
status: publish
title: thisMonth UDF
date: '2004-11-21 19:55:00 +0000'
date_gmt: '2004-11-21 19:55:00 +0000'
tags:
- coldfusion
---
Just submitted to <a href="http://www.cflib.org">CFLib.org</a> a new <abbr title="User Defined Function">UDF</abbr> that I've written called thisMonth().
thisMonth() will... |
0ee6dc22-b9be-4e94-8048-4d608a36cbb1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-12-24 19:30:34", "repo_name": "GravityGames/bytt-strikes-back", "sub_path": "/Bytt Strikes Back/src/com/gravitygamesinteractive/byttstrikesback/Bullet.java", "file_name": "Bullet.java", "file_ext": "java", "file_... | package com.gravitygamesinteractive.byttstrikesback;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import javax.swing.ImageIcon;
public class Bullet extends Enemy{
public static ImageIcon bullet;
public static int xSpeed=-5;
public Bullet(int x, int y, int width, int height, int ... |
b2f63a4b-48d4-47ec-aa15-fb606e92b4cd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-10-14 10:21:16", "repo_name": "iScian/SMSStorm", "sub_path": "/SMSStorm/src/com/scian/smsstorm/service/SendServiceBinder.java", "file_name": "SendServiceBinder.java", "file_ext": "java", "file_size_in_byte": 857,... | package com.scian.smsstorm.service;
import java.util.List;
import com.scian.smsstorm.data.bean.SearchItem;
import com.scian.smsstorm.interfaces.ISMSServiceController;
import android.os.Binder;
public class SendServiceBinder extends Binder implements ISMSServiceController {
ISMSServiceController mSer... |
16e6d7e0-e66c-4760-8c82-7fc36e6fe39b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-11-01T12:16:13", "repo_name": "barrosfilipe/steam-apps", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 856, "line_count": 24, "lang": "en", "doc_type": "text", "bl... | 
# Steam Apps API
It's just a Steam Store API Example using Node, Express and MongoDB
## How to run
`$ git clone https://github.com/barrosfilipe/steam-apps.git`
`$ yarn`
`$ yarn test`
`$ yarn start`
## Technical Details
* API is using [Node.js](https://nodejs.org/en/) with... |
d6a596c6-908d-4e2d-bd27-c6b6ae53ca44 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-06-27 05:47:06", "repo_name": "ynthm/spring-boot-demo", "sub_path": "/spring-boot-web/jpa-demo/src/main/java/com/ynthm/demo/jpa/config/FilterConfig.java", "file_name": "FilterConfig.java", "file_ext": "java", "fi... | package com.ynthm.demo.jpa.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ynthm.common.util.HmacHelper;
import com.ynthm.demo.jpa.common.filter.SignatureFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import ... |
f8ab2d35-c8aa-49d8-a600-22ef888b95dd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-04 06:13:49", "repo_name": "wang-shun/kindless", "sub_path": "/src/test/resources/codes/MetadataServiceTest.java", "file_name": "MetadataServiceTest.java", "file_ext": "java", "file_size_in_byte": 857, "line_c... | package com.harmony.kindless.core.service;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
... |
65ef92ae-cfa4-4097-a8b8-00d52c5f9a9f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-29 05:02:50", "repo_name": "KarimGuesmi/Arabic-Stenotype", "sub_path": "/Steno-Genetic/classes/main.java", "file_name": "main.java", "file_ext": "java", "file_size_in_byte": 856, "line_count": 32, "lang": "en"... | package classes;
import java.util.ArrayList;
public class main {
public static void main(String[] args) {
/*
Creating the new Individual
Individual = caracter from the word got from the book
*/
Individual indiv = new Individual();
String file="briefs.txt";
ArrayList<String> list = new ArrayList<Stri... |
1f0d77f5-17fa-407c-a1ee-203d5522c2d9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-09 01:34:24", "repo_name": "suthardhaval24/webapp", "sub_path": "/WebApplication/src/test/java/com/cloud/UserServiceTest.java", "file_name": "UserServiceTest.java", "file_ext": "java", "file_size_in_byte": 856... | package com.cloud;
import com.cloud.repository.UserRepository;
import com.cloud.entity.User;
import com.cloud.service.UserService;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.springframe... |
50c3c304-8800-44f9-b500-91088df8c31f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-02-11 16:18:59", "repo_name": "broadinstitute/ddp-study-manager", "sub_path": "/src/main/java/org/broadinstitute/dsm/model/elastic/filter/splitter/DateSplitter.java", "file_name": "DateSplitter.java", "file_ext":... | package org.broadinstitute.dsm.model.elastic.filter.splitter;
import org.broadinstitute.dsm.model.Filter;
import org.broadinstitute.dsm.model.elastic.Util;
public class DateSplitter extends EqualsSplitter {
// DATE(FROM_UNIXTIME(k.scan_date/1000)) = DATE(FROM_UNIXTIME(1640563200))
@Override
public Strin... |
eafd11bd-1c26-4d90-93ca-7e4025ec94e0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-25 20:32:13", "repo_name": "teamapps-org/teamapps-examples", "sub_path": "/src/main/java/org/teamapps/examples/util/ExampleUtil.java", "file_name": "ExampleUtil.java", "file_ext": "java", "file_size_in_byte": ... | package org.teamapps.examples.util;
import org.teamapps.icon.material.MaterialIcon;
import org.teamapps.ux.component.absolutelayout.Length;
import org.teamapps.ux.component.absolutelayout.SizeUnit;
import org.teamapps.ux.component.panel.Panel;
public class ExampleUtil {
public static Panel generateContainerP... |
b252a372-2773-4791-b93c-1c350b4fc647 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-03-10 21:58:32", "repo_name": "kdoteu/eu.kdot.twitch", "sub_path": "/eu.kdot.twitch.kbot/src/main/java/MAIN.java", "file_name": "MAIN.java", "file_ext": "java", "file_size_in_byte": 856, "line_count": 42, "lang":... | import java.io.IOException;
import org.pircbotx.exception.IrcException;
import eu.kdot.twitch.kbot.model.Bot;
import eu.kdot.twitch.kbot.model.BotConfiguration;
import eu.kdot.twitch.kbot.model.BotManager;
/**
*
*/
/**
* @author kdot
*
*/
public class MAIN {
/**
* @param args
* @throws IrcException
*... |
d53b1216-11d3-41d4-a1fc-8afec4f4f9ae | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-27 13:14:03", "repo_name": "LeoDemon/javalab", "sub_path": "/ConCurrencyApp/src/com/concur/junit/TestThread.java", "file_name": "TestThread.java", "file_ext": "java", "file_size_in_byte": 857, "line_count": 37... | /*
* Test for java Thread concurrency programe
*
* @author: Demon.Lee
* @date: 2016/9/26 17:08:18
*/
package com.concur.junit;
public class TestThread extends Thread{
public TestThread(String thread_name){
super(thread_name);
}
public void run(){
for(int i=0; i<5; i++){
fo... |
a7c920db-aabe-426a-94f6-e8e55b21f383 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-21 17:28:48", "repo_name": "probhe31/ExamenFinalADS-Cliente", "sub_path": "/app/src/main/java/com/probe31/probe/studentapp/MODEL/Student.java", "file_name": "Student.java", "file_ext": "java", "file_size_in_by... | package com.probe31.probe.studentapp.MODEL;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Student {
@SerializedName("idStudent")
@Expose
private int idStudent;
@SerializedName("firstName")
@Expose
private String firstName;
@Se... |
956afde5-6312-42a8-b35c-edbcb72328e7 | {"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/19/1927.java", "file_name": "1927.java", "file_ext": "java", "file_size_in_byte": 857, "line_count": ... | package <missing>;
public class GlobalMembers
{
public static int Main()
{
String s = new String(new char[999]);
String a = new String(new char[100]);
String b = new String(new char[100]);
int i = 0;
int j = 0;
int k;
int add;
final String word = "";
s = new Scanner(System.in).nextLine();
a = new... |
c4ed7542-e363-4c20-89a3-2ac6ea86e595 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-15 20:35:41", "repo_name": "jkarloz/spring5-recipe-app", "sub_path": "/src/main/java/guru/springframework/converters/UnitOfMeasureToUnitOfMeasureCommand.java", "file_name": "UnitOfMeasureToUnitOfMeasureCommand... | package guru.springframework.converters;
import org.springframework.core.convert.converter.Converter;
import org.springframework.lang.Nullable;
import org.springframework.stereotype.Component;
import guru.springframework.command.UnitOfMeasureCommand;
import guru.springframework.domain.UnitOfMeasure;
import lombok.Syn... |
a51d5562-c3d5-4a4f-8d6a-fe770fd2fc8c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-01 01:12:35", "repo_name": "franplk/SpringBoot-1.5.15", "sub_path": "/sb-async/src/main/java/com/plk/sbdemo/async/service/AsyncClassService.java", "file_name": "AsyncClassService.java", "file_ext": "java", "fi... | package com.plk.sbdemo.async.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
/**
* @Async Annotation Added To Method indicates that all methods perform Asynchronously
*/
@Async
@Service
public cl... |
2e4da812-453b-45d6-ab98-d9862b9cf06f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-18 01:51:46", "repo_name": "shitalkadam/SmartStreet", "sub_path": "/app/src/main/java/com/example/android/smartstreet/ReviewViewWrapper.java", "file_name": "ReviewViewWrapper.java", "file_ext": "java", "file_s... | package com.example.android.smartstreet;
import android.view.View;
import android.widget.RatingBar;
import android.widget.TextView;
/**
* Created by sesharika on 4/24/16.
*/
class ReviewViewWrapper {
View base;
RatingBar rate=null;
TextView commnet=null;
TextView label=null;
ReviewViewWrapper(V... |
5585fb5a-a2d4-4c2c-9329-e76771416986 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-12 03:39:10", "repo_name": "ashishranjandev/Practice", "sub_path": "/src/org/home/prac/design/composite/MenuComponent.java", "file_name": "MenuComponent.java", "file_ext": "java", "file_size_in_byte": 856, "li... | package org.home.prac.design.composite;
import java.util.ArrayList;
import java.util.List;
public abstract class MenuComponent {
String name;
String url;
List<MenuComponent> menuComponents = new ArrayList<>();
public abstract String toString();
String print(MenuComponent menuComponent) {
StringBuilder bui... |
83ca23c1-ed8b-4b8e-b113-e615f32be503 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-11-16 10:53:07", "repo_name": "Himawari0125/MySQLiteUtils", "sub_path": "/app/src/main/java/com/example/slee/sqlitedemo/utils/ConvertUtils.java", "file_name": "ConvertUtils.java", "file_ext": "java", "file_size_i... | package com.example.slee.sqlitedemo.utils;
import android.text.TextUtils;
import com.example.slee.sqlitedemo.Myexceptions.InputException;
import java.util.regex.Pattern;
/**
* Created by S.Lee on 2017/11/14.
*/
public class ConvertUtils {
public static int StringParseInteger(String str,int RequestCode)throws... |
da2e5494-4012-4c30-b2cc-b555bd27d70c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-30 13:35:24", "repo_name": "MahmudMoon/Satrong-fashion", "sub_path": "/src/Connection.java", "file_name": "Connection.java", "file_ext": "java", "file_size_in_byte": 857, "line_count": 31, "lang": "en", "doc_t... | import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
/**
*
* @author moonc
*/
public class Connection {
public static Connection Conn = null;
public static Connection dbConnector()
... |
65f9f851-d1f6-46ef-aec2-ec9f09d3bfcb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-09-06T20:08:01", "repo_name": "pjsinco/backbone-starter-app", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 856, "line_count": 44, "lang": "en", "doc_type": "text"... | # Starter template for projects
**Configure package.json and install the packages:**
```bash
sudo npm install
```
**Configure Gruntfile.js**
**If using Compass, configure config.rb**
**Install Susy, Compass Normalize**
```bash
gem install susy
gem install compass-normalize
```
**Add livereload script to bottom of j... |
a05229e7-32f7-4581-a384-f652714ce710 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-07-09T13:53:43", "repo_name": "fr3d3rico/lumen-redbean", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 856, "line_count": 53, "lang": "en", "doc_type": "text", "bl... | c:/tools/php/php.ini ... uncoment "extension=pdo_mysql" line
Criar projeto
https://lumen.laravel.com/docs/5.8/installation
Sobre RedBean
https://redbeanphp.com/manual3_0/index.php?p=/manual3_0/quick_tour
Install RedBean on lumen project
https://github.com/gabordemooij/redbean
> composer update
Tutorial
ht... |
f3e26744-d236-4bf7-a5f4-f25e5e068420 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-14 10:41:47", "repo_name": "Cyberfasolya/app_database", "sub_path": "/src/main/java/database/app_database/Converter/SpeciesConverter.java", "file_name": "SpeciesConverter.java", "file_ext": "java", "file_size_... | package database.app_database.Converter;
import database.app_database.Dto.SpeciesBaseDto;
import database.app_database.Dto.SpeciesDto;
import database.app_database.Model.Animal.Species;
import org.springframework.stereotype.Component;
@Component
public class SpeciesConverter {
public SpeciesDto convertSpecies(Sp... |
f5cfb43b-576a-4752-a407-8de29031e02a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-29 10:00:41", "repo_name": "onestep-ssw/demo", "sub_path": "/app/src/main/java/com/example/demo/TActivity.java", "file_name": "TActivity.java", "file_ext": "java", "file_size_in_byte": 855, "line_count": 34, "... | package com.example.demo;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import butterknife.BindView;
import butterknife.ButterKnife;
public class TActivity extends AppCompatActivity {
@BindView(R... |
2d7ac98c-b58d-4a88-8c3d-95a455bfb2f9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-03-24 07:06:10", "repo_name": "lxcsige/test", "sub_path": "/src/java/design/pattern/proxy/dynamicProxy/ProxyHandler.java", "file_name": "ProxyHandler.java", "file_ext": "java", "file_size_in_byte": 876, "line_cou... | package design.pattern.proxy.dynamicProxy;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
/**
* @author liuxucheng
* @since 2022/12/23
*/
public class ProxyHandler implements InvocationHandler {
private Object target;
public ProxyHandler(Objec... |
cc5df0ea-6ffc-4791-90f0-e7333456dbc8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-01-07T20:40:11", "repo_name": "jaeveedee/libPDhelper", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 856, "line_count": 14, "lang": "en", "doc_type": "text", "blob... | libPD Helper Class
==================
This is a helper class for libpd. I found myself recreating this for projects so I wanted to make it easier for myself and thought I'd attempt sharing it with the world!
To use this copy the files into your project and import the classes. There are definitely some things to take ... |
6a2ae467-3614-4b16-b19c-59b6ed4474ef | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-16 00:08:23", "repo_name": "neonithe/Java_IO", "sub_path": "/src/main/java/se/lexicon/data/ex4.java", "file_name": "ex4.java", "file_ext": "java", "file_size_in_byte": 857, "line_count": 32, "lang": "en", "doc... | package se.lexicon.data;
import java.io.*;
/**
* Create a method that can copy a file using both BufferedInputStream and BufferedOutputStream.
*/
public class ex4 {
public static void copyFile(){
String copyFile = "C:\\Java_Text\\test.txt";
String toFile = "C:\\Java_Text\\testCopy.txt";
t... |
9fdab0da-9fd7-42c0-ab57-c0e75e6a37ab | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-26 23:02:27", "repo_name": "RuslanKovshar/ServletCashMachine", "sub_path": "/src/main/java/ruslan/kovshar/controller/command/post/OpenCheckCommand.java", "file_name": "OpenCheckCommand.java", "file_ext": "java... | package ruslan.kovshar.controller.command.post;
import ruslan.kovshar.controller.command.Command;
import ruslan.kovshar.model.entity.Check;
import ruslan.kovshar.textconstants.Params;
import ruslan.kovshar.textconstants.URI;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
public ... |
80b82d47-2ccf-453c-af75-34b7090b296f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-07-06 14:49:16", "repo_name": "kisonar/poc", "sub_path": "/learning/java/my-interview/berlin-clock/src/main/java/kisonar/poc/learning/java/myinterview/berlinclock/logic/converter/ConvertionResult.java", "file_nam... | package kisonar.poc.learning.java.myinterview.berlinclock.logic.converter;
public class ConvertionResult {
public final int hoursRangeFive;
public final int hoursRangeOne;
public final int minutesRangeFive;
public final int minutesRangeOne;
public int hours;
public int minutes;
public ConvertionResult(... |
1cb0b1dd-e3fc-436d-98a8-f22cbc499dfc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-06-09T08:46:09", "repo_name": "materliu/materliu.github.io", "sub_path": "/all/web/_posts/2014-04-28-javascript_error_type.md", "file_name": "2014-04-28-javascript_error_type.md", "file_ext": "md", "file_size... | ---
layout: post
title: javascript_error_type
---
# javascript_error_type
Error
Base type for all errors. Never actually thrown by the engine.
EvalError
Thrown when an error occurs during execution of code via eval().
RangeError
Thrown when a number is outside the bounds of its range—for example, trying to c... |
eb14714c-6201-472d-bbde-3633a6e1577a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-16 12:38:39", "repo_name": "rrayst/oio-hauskonferenz-2016", "sub_path": "/speaker-service/src/main/java/de/predic8/domain/Speaker.java", "file_name": "Speaker.java", "file_ext": "java", "file_size_in_byte": 85... | package de.predic8.domain;
import javax.persistence.*;
/**
* @author Oliver Weiler (weiler@predic8.de)
*/
@Table(uniqueConstraints = {@UniqueConstraint(columnNames = {"abbreviation"})})
@Entity
public class Speaker {
@Id
@GeneratedValue
private Long id;
private String firstname;
private String l... |
ebef2a31-1ce0-45cf-91fc-1f83f433aca2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-26 10:08:48", "repo_name": "developTiger/sy-oa", "sub_path": "/lemon-ay/src/main/java/com/sunesoft/lemon/ay/equipment/domain/hibernate/EquipmentResultRepositoryImpl.java", "file_name": "EquipmentResultReposito... | package com.sunesoft.lemon.ay.equipment.domain.hibernate;
import com.sunesoft.lemon.ay.equipment.domain.*;
import com.sunesoft.lemon.fr.ddd.infrastructure.repo.hibernate.GenericHibernateRepository;
import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Service... |
64f14a7b-c568-4757-b1f6-03b8e05ac8cb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-25 19:31:58", "repo_name": "eferrone99/Progect-1", "sub_path": "/Book.java", "file_name": "Book.java", "file_ext": "java", "file_size_in_byte": 856, "line_count": 44, "lang": "en", "doc_type": "code", "blob_id... | package ferroneericfinalexam;
import java.time.LocalDate;
import java.time.Period;
/**
*
* @author Ferro
*/
public class Book extends Library {
private String author;
private int numPages;
private static final int CHECKED_OUT_TIME = 21;
public static final double FINE_PER_DAY = .50;
private Loca... |
63b7dac7-8b69-4057-8192-fd9c7c288957 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-04 21:01:50", "repo_name": "quincy-roman/employee-reimbursement-system", "sub_path": "/src/main/java/com/revature/aspect/LoggingAspect.java", "file_name": "LoggingAspect.java", "file_ext": "java", "file_size_i... | package com.revature.aspect;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.revature.excpetion.ERSException;
@Aspect
@Component
public class LoggingAspect... |
d5f1b71b-90fe-4999-a674-9721d1dfde1e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-16 02:28:01", "repo_name": "CMyae/News", "sub_path": "/app/src/main/java/com/chan/samples/news/utils/KeyboardUtils.java", "file_name": "KeyboardUtils.java", "file_ext": "java", "file_size_in_byte": 856, "line_... | package com.chan.samples.news.utils;
import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
/**
* Created by chan on 1/27/18.
*/
public class KeyboardUtils {
public static void showInputMethod(Context context,View v){
InputMethodManager imm = (In... |
288edca4-7b9f-4c80-834f-7068da32ab41 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-02 16:54:52", "repo_name": "bancao/netty_l", "sub_path": "/src/main/java/com/structure/trees/rb/RBNode.java", "file_name": "RBNode.java", "file_ext": "java", "file_size_in_byte": 857, "line_count": 53, "lang":... | package com.structure.trees.rb;
public class RBNode<E> {
private static final boolean RED = false;
private static final boolean BLACK = true;
E value;
RBNode<E> left;
RBNode<E> right;
RBNode<E> parent;
boolean color = BLACK;
public E getValue() {
return value;
}
public void setValue(E valu... |
5b1788cb-bec7-43e3-bf07-fbeddfb21098 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-16 20:27:03", "repo_name": "Joelitooo/Springmvc", "sub_path": "/Spring/src/main/java/com/joelito/spring/Controller/FornecedorController.java", "file_name": "FornecedorController.java", "file_ext": "java", "fil... | package com.joelito.spring.Controller;
import com.joelito.spring.DAL.FornecedorEntity;
import com.joelito.spring.Service.FornecedorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;... |
9d504024-c278-4353-91c7-f43a45045066 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-16 07:45:46", "repo_name": "projectImplementer/My-practice", "sub_path": "/src/test/java/softvisionProject/testcases/ApproachPagesTestCases/GuildsPageSoftTechHashtagTestCase.java", "file_name": "GuildsPageSoft... | package softvisionProject.testcases.ApproachPagesTestCases;
import org.testng.annotations.Test;
import softvisionProject.POM.GuildsPage;
import softvisionProject.POM.HomePage;
import softvisionProject.POM.softwareTechnologyCategoryPage;
import softvisionProject.testcases.BaseTest;
public class GuildsPageSoftTechHasht... |
e77173d3-86bf-45e9-b9ee-2bd0823d4e2c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-01-26T04:20:07", "repo_name": "GonzalezG97/Homework-wk1-semantic-tags", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 854, "line_count": 27, "lang": "en", "doc_typ... | <<<<<<< HEAD
# Horiseon Website
This Project's goal is to help this website to be read by site readers. Site readers are software that reads the website for the visually impared.
This done by placing the correct semantic tags in the HTML code. Having the correct semantic tags impacts all aspects of the website. If t... |
ed4e6be1-960b-41f9-8e9d-cd6bd59dee2d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-15T18:29:58", "repo_name": "IsadoraV13/Java-fundamentals", "sub_path": "/src/labs_examples/multi_threading/labs/ExOne_RunnableA.java", "file_name": "ExOne_RunnableA.java", "file_ext": "java", "file_size_in_byt... | package labs_examples.multi_threading.labs;
public class ExOne_RunnableA implements Runnable {
Thread thread01;
public ExOne_RunnableA(String name) {
thread01 = new Thread(this, name);
thread01.start();
}
@Override
public void run() {
System.out.println("Runnable class ExO... |
c75106ab-b180-448a-8d30-4e5d3d765897 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-10 01:46:33", "repo_name": "gabrieldutra/Compiler", "sub_path": "/src/model/Const.java", "file_name": "Const.java", "file_ext": "java", "file_size_in_byte": 855, "line_count": 49, "lang": "en", "doc_type": "co... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package model;
/**
*
* @author gabriel
*/
public class Const {
private Object value;
private Type type;
public Const(O... |
dfbdaf15-65c5-4604-9deb-241e612adc3c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-07-27T16:38:32", "repo_name": "adamlaska/Auth0-", "sub_path": "/articles/logout/guides/logout-auth0.md", "file_name": "logout-auth0.md", "file_ext": "md", "file_size_in_byte": 855, "line_count": 29, "lang": "... | ---
title: Log Users Out of Auth0
description: Learn how to force a user to log out of Auth0 using the Auth0 logout endpoint.
topics:
- logout
contentType: how-to
useCase:
- manage-logout
---
# Log Users Out of Auth0
<%= include('../_includes/_logout-endpoint') %>
To force a logout, redirect the user to the fol... |
18ee7d62-7ced-4565-b9da-4d8b6c67364d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-04-19T18:36:37", "repo_name": "tsimashenkava/YaSearch", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 855, "line_count": 35, "lang": "en", "doc_type": "text", "blo... | # YaSearch
### Deploy link: https://yasearch-besovadevka.netlify.app/
Stack:
1. React - https://reactjs.org/
2. Redux, redux-thunk, redux-devtools-extension - https://redux.js.org/
3. Typescript - https://www.typescriptlang.org/
Used libs:
1. styled-components - https://askd.rocks/pres/styled-gdg/
Addit... |
f6ec32fe-99d9-492f-9373-ac704d6cc9a9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-07 05:39:35", "repo_name": "Ixidor92/CS360eVoteProject", "sub_path": "/src/eVoting/Member.java", "file_name": "Member.java", "file_ext": "java", "file_size_in_byte": 856, "line_count": 41, "lang": "en", "doc_t... | package eVoting;
public class Member
{
private String name;
private int IDNumber;
private String login;
//creates a new member with the given name, member ID, and password
public Member(String introName, int ID, String password)
{
this.name = introName;
this.IDNumber = ID;
this.login = pass... |
10732cd3-7a9d-4ddf-9c1a-e056febdf300 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-06 21:06:02", "repo_name": "danielvazquezcruz/SpringProjects", "sub_path": "/registration-app/src/main/java/com/user/service/registration/model/UserDetailDO.java", "file_name": "UserDetailDO.java", "file_ext":... | package com.user.service.registration.model;
public class UserDetailDO {
private String userName;
private String password;
private String dob;
private String ssn;
public UserDetailDO(String userName, String password, String dob, String ssn){
super();
this.userName = userName;
this.password = password;
... |
b4fd948b-1464-4c13-88d6-38b869784787 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-17 03:07:03", "repo_name": "lsm6654/transaction-reporter", "sub_path": "/core/src/test/java/com/kb/jess/core/support/kafka/KafkaTransactionProducerTest.java", "file_name": "KafkaTransactionProducerTest.java", ... | package com.kb.jess.core.support.kafka;
import com.kb.jess.core.BaseTest;
import com.kb.jess.core.model.SessionStartLog;
import com.kb.jess.core.support.util.LocalDateTimeUtils;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
public class KafkaTransactionProducerTe... |
26301829-caa0-40fd-ba0f-045588fbd097 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-06-15T01:51:56", "repo_name": "NREL/openstudio-model-articulation-gem", "sub_path": "/lib/measures/create_deer_prototype_building/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 8... |
###### (Automatically generated documentation)
# Create DEER Prototype Building ALPHA Version
## Description
Creates the DEER Prototype Building Models as starting points for other analyses. This measure is a work-in-progress ALPHA version. Some of the building types do not simulate correctly, and no attempt has ... |
a3d7cb43-0bb9-4889-a589-3cfe2555a487 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2013-03-23 12:40:49", "repo_name": "eaoAdegbileyahoocouk/Tayra", "sub_path": "/src/test/java/com/ee/tayra/fixtures/MongoSourceAndTargetConnector.java", "file_name": "MongoSourceAndTargetConnector.java", "file_ext": "j... | package com.ee.tayra.fixtures;
import java.net.UnknownHostException;
import com.ee.tayra.fixtures.support.NamedParameters;
import com.mongodb.MongoClient;
public class MongoSourceAndTargetConnector {
private MongoClient source;
private MongoClient destination;
public MongoSourceAndTargetConnector(final Named... |
02176336-112e-405f-a566-a8d2111b26b1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-09 12:31:28", "repo_name": "chamking/logistics", "sub_path": "/src/main/java/com/chamking/demo/service/impl/DriverInfoServiceImpl.java", "file_name": "DriverInfoServiceImpl.java", "file_ext": "java", "file_siz... | package com.chamking.demo.service.impl;
import com.github.pagehelper.PageHelper;
import com.chamking.demo.dao.DriverInfoDao;
import com.chamking.demo.entity.DriverInfo;
import com.chamking.demo.service.DriverInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereoty... |
4f43f9ff-1929-4c63-b47a-35af216282df | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-05-02 15:01:06", "repo_name": "wuttke/nephro-registry-freiburg", "sub_path": "/NephroRegistryFreiburg/src/main/java/eu/wuttke/nrf/ui/medication/MedicationListPresenter.java", "file_name": "MedicationListPresenter... | package eu.wuttke.nrf.ui.medication;
import java.util.Collection;
import eu.wuttke.nrf.domain.medication.Medication;
import eu.wuttke.nrf.domain.subject.Subject;
import eu.wuttke.nrf.ui.presenter.EditorPresenter;
import eu.wuttke.nrf.ui.presenter.ListPresenter;
public class MedicationListPresenter
extends ListPres... |
2a410a96-aa4f-4484-8475-d1e6721eff40 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-08 03:09:20", "repo_name": "tkobayas/RHPAM70examples", "sub_path": "/jBPM73Ex002_kie-server-client/src/test/java/com/sample/GetVariablesTest.java", "file_name": "GetVariablesTest.java", "file_ext": "java", "fi... | package com.sample;
import static com.sample.Constants.CONTAINER_ID;
import java.util.HashMap;
import java.util.Map;
import junit.framework.TestCase;
import org.kie.server.client.ProcessServicesClient;
public class GetVariablesTest extends TestCase {
public void testRest() throws Exception {
Map<Strin... |
c983cb7c-3b36-4e6a-adbe-800b88c68c66 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-11 06:50:50", "repo_name": "lvliangxiong/gof23-examples", "sub_path": "/src/main/java/com/joey/learning/gof23/behavioral/state/Room.java", "file_name": "Room.java", "file_ext": "java", "file_size_in_byte": 928... | package com.joey.learning.gof23.behavioral.state;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
/**
* 房间对象,如果是银行系统,那么这个类就是银行账户
*/
@Slf4j
@Getter
public class Room {
private State freeState;
private State reservedState;
private State checkedInState;
private State state;
public Room... |
69d84099-c8cb-478a-8df1-265b8fd29b2a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-09 02:20:52", "repo_name": "coding-new-talking/java-class-file", "sub_path": "/src/main/java/org/codingnewtalking/classfile/attribute/util/ChopFrame.java", "file_name": "ChopFrame.java", "file_ext": "java", "f... | package org.codingnewtalking.classfile.attribute.util;
/**
* @author lixinjie
* @since 2019-08-09
*/
public class ChopFrame extends Frame {
private OffsetDelta offsetDelta;
public ChopFrame(byte[] bytes, int offset) {
super(bytes, offset);
}
public int getByteOffset() {
return offset;
}... |
869e48de-b694-410c-9168-466becf8218a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-07-28T15:33:06", "repo_name": "OmniBlade/GameSpyEmulator", "sub_path": "/README.MD", "file_name": "README.MD", "file_ext": "md", "file_size_in_byte": 855, "line_count": 17, "lang": "en", "doc_type": "text", "... | # GameSpy Emulator
This repository clone everything you need to start using the RetroSpy Emulator.,
Please download the Git software at https://git-scm.com/
So run this command in git bash:
`git clone https://github.com/GameProgressive/GameSpyEmulator` wating for cloning finish.
Make sure to write this command after y... |
dbad4831-502a-48e3-bb94-75207194e102 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-05-20T11:20:19", "repo_name": "Dude29/configs", "sub_path": "/eslint/README.MD", "file_name": "README.MD", "file_ext": "md", "file_size_in_byte": 855, "line_count": 14, "lang": "en", "doc_type": "text", "blob... | As of the last time this repo was updated ESLint does not support working with ESM (`import/export`) and only supports CommonJS (`require()`) syntax
As a result if you use a package.json with the `"type":"module"` directive all modules at it's level and underneath are automatically considered by `node` to be in ESM wh... |
384b68a2-027d-483d-be5d-67fe5096d9fc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-14 10:11:50", "repo_name": "TerryShare/yiyao", "sub_path": "/ssmdemo/src/main/java/org/medicine/service/impl/UserImpls.java", "file_name": "UserImpls.java", "file_ext": "java", "file_size_in_byte": 867, "line_... | package org.medicine.service.impl;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.medicine.dao.UserDaos;
import org.medicine.entity.panel;
import or... |
96ce1945-8177-49c4-b4db-4f28a29e9595 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-22 07:18:59", "repo_name": "dve/bean-auto-utils", "sub_path": "/bean-auto-utils-demo/src/test/java/net/vergien/beanautoutils/demo/TestDemoToString.java", "file_name": "TestDemoToString.java", "file_ext": "java... | package net.vergien.beanautoutils.demo;
import static org.hamcrest.CoreMatchers.endsWith;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.jupiter.api.Test;
public class TestDemoToString {
@Test
public v... |
455bdf62-17d7-44a8-b3ab-3f13ec95d3cc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-07 18:00:31", "repo_name": "iiacoban42/go-green", "sub_path": "/gg-client/src/main/java/client/entities/Badge.java", "file_name": "Badge.java", "file_ext": "java", "file_size_in_byte": 855, "line_count": 53, "... | package client.entities;
import java.util.Date;
public class Badge {
private long id;
private Date dateTime;
private String badgeName;
private String user;
private int level;
public Badge() {}
/**
* Constructor.
* @param id .
* @param dateTime .
* @param badgeName .
... |
b0f5e8b7-c914-4f9c-b07c-72111db2546a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-12 15:43:20", "repo_name": "007Falco/DrunkGuard", "sub_path": "/app/src/main/java/com/example/dalton/drunkguard/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byte": 85... | package com.example.dalton.drunkguard;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TimePicker;
public class MainActivity extends AppCompatActivity {
private Button getTime;
private TimePicker timepick... |
c397d1a6-0fc5-47c6-95a4-c918a2b2d892 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-03 13:32:22", "repo_name": "danish4uonly/practice-program", "sub_path": "/src/FirstNonRepeatedCharacter.java", "file_name": "FirstNonRepeatedCharacter.java", "file_ext": "java", "file_size_in_byte": 855, "line... | public class FirstNonRepeatedCharacter
{
public static String Test()
{
String name="mohammad nasim ali";
//ilamisan damma hom
StringBuilder sb = new StringBuilder(name);
String m1 = sb.reverse().toString();
String m2= m1.replaceAll(" ", "");
StringBuilder sBuild=new StringBuilder(m2);
System.out.... |
afe5ea0c-e25c-4184-b372-73db2c7ebde5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-16 19:16:41", "repo_name": "Manuel-Sandoval/temperature-actuator", "sub_path": "/src/main/java/spring_five/temp_actuator/domain/emitter/RxSseEmitter.java", "file_name": "RxSseEmitter.java", "file_ext": "java",... | package spring_five.temp_actuator.domain.emitter;
import java.io.IOException;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
import rx.Subscriber;
import spring_five.temp_actuator.domain.model.Temperature;
public class RxSseEmitter extends SseEmitter{
public static final long SSE_SESSION... |
10a9f1c5-9e50-4440-ba34-3524f975389a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-16 02:50:18", "repo_name": "cl900503/dragon-framework", "sub_path": "/examples/dragon-framework-example-client/src/main/java/com/vrv/example/client/Client.java", "file_name": "Client.java", "file_ext": "java",... | package com.vrv.example.client;
import com.vrv.example.base.thrift.User;
import com.vrv.example.base.thrift.UserService;
import com.vrv.framework.client.ServiceFactory;
import org.apache.thrift.TException;
/**
* @author chenlong
* @date 2021/8/27 18:22
*/
public class Client {
public static void main(String[]... |
47993d50-da93-4ab3-abff-523fbe2e55c6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-13 22:10:10", "repo_name": "BernieYi/JavaLab", "sub_path": "/src/main/java/com/bernie/gfg/CountPairsInArray.java", "file_name": "CountPairsInArray.java", "file_ext": "java", "file_size_in_byte": 855, "line_cou... | package com.bernie.gfg;
import java.util.Scanner;
public class CountPairsInArray {
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int testCase = sc.nextInt(); // total number of test cases
for (int t=0; t<testCase; t++)
{
int arraySize = sc.nextInt(); // the size of the ... |
c3183f93-b813-4ee7-bdb6-a1129820079d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-19 02:49:03", "repo_name": "hudhandou/learngit", "sub_path": "/netexam/src/main/java/com/turing/framework/util/ScheduleTask.java", "file_name": "ScheduleTask.java", "file_ext": "java", "file_size_in_byte": 939... | package com.turing.framework.util;
import java.util.Date;
import java.util.LinkedList;
import org.apache.commons.lang.time.DateFormatUtils;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/*... |
d35b2304-4414-47a4-bd57-ec5fe08796d3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-02-24T14:51:17", "repo_name": "infinite-sahil/node_work", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 855, "line_count": 25, "lang": "en", "doc_type": "text", "b... | # Node.js Learning and work
This repository contains all the application i have build during my node.js work exposure or during learning.
If you are a Java developer, you will feel node as a piece of cake.
it's so dam easy, you just need to read basic concepts of Javascript to get started.
## Installation
1. Downlo... |
b4e3c9ca-16b0-4612-86a8-88c0c1cf86c4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-09-18T21:20:41", "repo_name": "susobhang70/java-visualizer", "sub_path": "/meeting_minutes/client/September01.md", "file_name": "September01.md", "file_ext": "md", "file_size_in_byte": 855, "line_count": 31, ... | ## Date and time
01 September, 2015
5:00 PM - 5:20 PM
## Attendees
- Suresh Kumar Kornala
- Deepanshu Jain
- Susobhan Ghosh
- Vanjape Rajas Mangesh
## Agenda
To discuss the planning for next two weeks.
## Minutes
20 Minutes
### Discussion
1. Where should we start with to resolve the problem with Jeliot plugin.
* O... |
e1182038-b254-4549-ada7-a09905acfd5d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-10-23T16:33:59", "repo_name": "Baka9k/express-chat", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 854, "line_count": 24, "lang": "en", "doc_type": "text", "blob_i... | # Anonymous chat web-application built with Node.js
This is a simple self-hosted chat application.
## How to host it on your own server
To install express-chat you need node and npm on your server, then just do the following:
```
git clone https://github.com/Baka9k/express-chat
cd express-chat
npm install
node app.js ... |
0d64eebc-fd93-4a8e-ac6b-bb43a186f702 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-08-17T13:34:53", "repo_name": "tkawczynski/docker-cassandra-spark", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 855, "line_count": 22, "lang": "en", "doc_type": ... | # docker-cassandra-spark
Set of docker images for learning spark and Cassandra.
# Content
Docker images with spark and cassandra collocated in the same docker container and separate spark-master container
# Images
- __spark-base__: common docker image with raw Spark 2.2.1
- __spark-master__: spark "master" node image... |
ca67391b-ad86-49f9-af52-e9f736207108 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-07 19:34:07", "repo_name": "mpetrunic/healthmon", "sub_path": "/src/main/java/hr/fer/zpr/marinpetrunic/healthmon/config/JacksonConfig.java", "file_name": "JacksonConfig.java", "file_ext": "java", "file_size_in... | package hr.fer.zpr.marinpetrunic.healthmon.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.springframework.contex... |
be31cc7d-2a08-42b8-a534-a77b90368541 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-19 20:15:58", "repo_name": "AhmedNahas/FootballLeague", "sub_path": "/app/src/main/java/com/example/footballleague/leagueModel/LeagueResponse.java", "file_name": "LeagueResponse.java", "file_ext": "java", "fil... |
package com.example.footballleague.leagueModel;
import java.util.List;
import com.google.gson.annotations.SerializedName;
@SuppressWarnings("unused")
public class LeagueResponse {
@SerializedName("competitions")
private List<Competition> mCompetitions;
@SerializedName("count")
private Long mCount;
... |
d332553a-1eb4-4d00-826a-99fcd3026f52 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-27 23:46:16", "repo_name": "bcbusby01/Spotify_Matchmaker", "sub_path": "/app/src/main/java/com/example/spotifymatchmaker/Pop.java", "file_name": "Pop.java", "file_ext": "java", "file_size_in_byte": 855, "line_... | package com.example.spotifymatchmaker;
import android.os.Bundle;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
public class Pop extends AppCompatActivity {
TextView artistView;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState... |
db12e068-dfea-4824-b0b4-0990460c68e5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-02 14:57:40", "repo_name": "aytoku/android", "sub_path": "/app/src/main/java/com/example/myapplication_1/Alerts/AlertFragment.java", "file_name": "AlertFragment.java", "file_ext": "java", "file_size_in_byte": ... | package com.example.myapplication_1.Alerts;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import com.example.myapplication_1.R;
public class AlertFragment extends Fragment {
public static final Strin... |
7c909176-062d-48e7-b55e-61899486c92d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-22 16:23:44", "repo_name": "ahqlab/FarmSeed", "sub_path": "/app/src/main/java/com/whyble/farm/seed/view/friend/invite/InviteFriendPresenter.java", "file_name": "InviteFriendPresenter.java", "file_ext": "java",... | package com.whyble.farm.seed.view.friend.invite;
import android.content.Context;
import com.whyble.farm.seed.common.CommonModel;
public class InviteFriendPresenter implements InviteFriendIn.Presenter {
InviteFriendIn.View view;
InviteFriendModel model;
public InviteFriendPresenter(InviteFriendIn.View ... |
e87a492b-b874-47ba-a4b7-f55d7fd597a0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-03 06:29:30", "repo_name": "Sravyapenugoti/SmartTutor", "sub_path": "/src/dao/AdminLoginDao.java", "file_name": "AdminLoginDao.java", "file_ext": "java", "file_size_in_byte": 855, "line_count": 39, "lang": "en... | package dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import Models.Admin;
import util.DbConnectionUtil;
public class AdminLoginDao {
Statement statement = null;
ResultSet resultSet = null;
Connection connection = null;
// PreparedStatem... |
062eb456-1818-44cf-8b58-4e9406e1e1f9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-18 08:06:11", "repo_name": "jiubaK/spring-parent", "sub_path": "/emily-spring-boot-common/src/main/java/com/emily/boot/common/mail/model/MimeMailMessage.java", "file_name": "MimeMailMessage.java", "file_ext": ... | package com.emily.boot.common.mail.model;
import java.io.File;
import java.util.Map;
/**
* @program: spring-parent
* @description: 复杂邮件实体类
* @create: 2020/08/14
*/
public class MimeMailMessage extends MailMessage {
//附件
private File[] attachments;
//正文inline元素,key为ID关联正文规则如cid:myId
private Map<Str... |
2cb6cd5a-d5ed-4d4f-af4a-a4d9a56dd4a3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-06 19:18:20", "repo_name": "paulovitor/poc-grpc-spring-boot", "sub_path": "/poc-grpc-spring-boot-client/src/main/java/br/com/paulo/pocgrpcspringbootclient/HelloController.java", "file_name": "HelloController.j... | package br.com.paulo.pocgrpcspringbootclient;
import br.com.paulo.lib.HelloRequest;
import br.com.paulo.lib.HelloResponse;
import br.com.paulo.lib.HelloServiceGrpc;
import net.devh.boot.grpc.client.inject.GrpcClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotat... |
8c02be44-c6ad-479b-ab26-d41fb545cd9d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-13 11:52:07", "repo_name": "YanevichStas99/DZ10zad2", "sub_path": "/src/com/company/Person.java", "file_name": "Person.java", "file_ext": "java", "file_size_in_byte": 855, "line_count": 37, "lang": "en", "doc_... | package com.company;
import java.util.Random;
public class Person {
private Name name;
private SecondName secname;
private int age;
private int high;
private int mass;
private Random random=new Random();
public Person(Name name, SecondName secname) {
this.name = name;
this... |
baf0837d-62b8-41a1-92bd-11c947dc157c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-17 14:56:24", "repo_name": "Douglas-Ssilva/Lembretes", "sub_path": "/admin-faces/src/main/java/br/com/admin/service/TarefaService.java", "file_name": "TarefaService.java", "file_ext": "java", "file_size_in_byt... | package br.com.admin.service;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.inject.Inject;
import br.com.admin.dao.TarefaDAO;
import br.com.admin.model.Tarefa;
import br.com.admin.util.Transacional;
//Classe na qual fica toda regra de negócio, faz o meio de campo entre o da... |
0eb8ea74-ed2a-4536-b0e8-5e2fbbeae5de | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-13 11:04:36", "repo_name": "malikbhawana/Framework", "sub_path": "/Framework/src/test/java/com/pymidol/pages/LoginPage.java", "file_name": "LoginPage.java", "file_ext": "java", "file_size_in_byte": 856, "line_... | package com.pymidol.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class LoginPage {
WebDriver driver;
public LoginPage(WebDriver ldriver) //constructor
{
this.driver=ldriver;
}
@FindBy(name="isec_user... |
2b12396e-33d1-4b14-bef6-13ee831a1dfe | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-29 07:28:11", "repo_name": "YMnZSdlc/BankGroupProject", "sub_path": "/bank-parent/commons/src/main/java/pl/sda/bankcommons/domain/dtos/ServiceDto.java", "file_name": "ServiceDto.java", "file_ext": "java", "fil... | package pl.sda.bankcommons.domain.dtos;
import lombok.Data;
import pl.sda.bankcommons.domain.enums.ServiceEnum;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@Valid
public class ... |
96c0a19c-a6e7-4866-880e-6e890709f58a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-02-18 00:03:38", "repo_name": "halilkaya/ab2014", "sub_path": "/src/veritabani/Veritabani.java", "file_name": "Veritabani.java", "file_ext": "java", "file_size_in_byte": 855, "line_count": 40, "lang": "en", "doc_... | package veritabani;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class Veritabani extends SQLiteOpenHelper {
private static final String VERITABANI_ADI = "adres_defteri";
private static final int VERSION = 1;
public Verita... |
593ce19b-93c3-45b2-8481-6810bd1aae4b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-04-05T18:36:12", "repo_name": "ronyBesp/Smart_Fridge_Pi", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 856, "line_count": 28, "lang": "en", "doc_type": "text", "b... | # Smart_Fridge_Pi
The Pi code of the Smart Fridge Project.
The Pi will take photos of the fridge/cupboard using the Pi camera module
and will send it to the Server using a POST request every 10 minutes.
This interval can be changed in the take_picture.py
In the POST request, the user_name must be specified i.e. ios... |
2ac52b9b-9309-4d69-b2d8-fc63af37e2aa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-06 21:05:18", "repo_name": "mchrystal1/cs_481", "sub_path": "/src/main/java/MainApp.java", "file_name": "MainApp.java", "file_ext": "java", "file_size_in_byte": 854, "line_count": 35, "lang": "en", "doc_type":... | package main.java;
import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
public class MainApp extends Application {
public static Stage primaryStage;
public static ... |
42328240-77fd-4843-a25f-ef971f9dc527 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-17 14:42:39", "repo_name": "yangyiyi88/o2o", "sub_path": "/src/main/java/com/imooc/o2o/enums/LocalAuthStateEnum.java", "file_name": "LocalAuthStateEnum.java", "file_ext": "java", "file_size_in_byte": 939, "lin... | package com.imooc.o2o.enums;
public enum LocalAuthStateEnum {
LOGINFAIL(-1, "密码或账号输入有误"), SUCCESS(0, "操作成功"), NULL_AUTH_INFO(-1006, "注册信息为空"),
ONLY_ONE_ACCOUNT(-1007,"最多只能绑定一个本地账号");
private int state;
private String stateInfo;
LocalAuthStateEnum(int state, String stateInfo) {
this.state... |
58c90809-37c1-4fb5-b845-f9daa5684b97 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-31 12:12:48", "repo_name": "mhcrnl/PhoneBook", "sub_path": "/src/PhoneInfo.java", "file_name": "PhoneInfo.java", "file_ext": "java", "file_size_in_byte": 854, "line_count": 46, "lang": "en", "doc_type": "code"... | public class PhoneInfo
{
private String name;
private String phoneNumber;
public PhoneInfo(String name, String phoneNumber){
this.name = name;
this.phoneNumber = phoneNumber;
}
public String toString(){
String info = "";
info += name;
info += ", ";
info += p... |
5d1ab91f-a1fa-48de-9689-5a3a039231fb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-08 17:11:01", "repo_name": "Chris781231/mentor-tools", "sub_path": "/src/main/java/training360/mentortools/entity/TrainingClass.java", "file_name": "TrainingClass.java", "file_ext": "java", "file_size_in_byte"... | package training360.mentortools.entity;
import lombok.Data;
import lombok.NoArgsConstructor;
import training360.mentortools.othertypes.InternalDates;
import javax.persistence.*;
import java.time.LocalDate;
@Data
@NoArgsConstructor
@Entity
@Table(name = "training_classes")
public class TrainingClass {
@Id
@G... |
9e200d40-fddc-427d-a3a1-4791512947ef | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-07 10:14:55", "repo_name": "YusufIsah/javaee8withdocker", "sub_path": "/src/main/java/code/learningjavaee8/entity/Specification.java", "file_name": "Specification.java", "file_ext": "java", "file_size_in_byte"... | /*
* 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 code.learningjavaee8.entity;
/**
*
* @author hanin
*/
public class Specification {
private CarColor color;
private... |
488bea74-c602-4742-9964-28f0e25b2831 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-12 22:12:55", "repo_name": "Sumayya-Syeda/CSFinalProject", "sub_path": "/app/src/main/java/com/example/school/cougarcalendar/assignments.java", "file_name": "assignments.java", "file_ext": "java", "file_size_i... | package com.example.school.cougarcalendar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.content.Intent;
public class assignments extends AppCompatActivity {
private Button button;
@Override
protected void ... |
e175f04c-8f39-431d-8fe9-d15addea269b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-07-26 03:48:50", "repo_name": "ngocitbk/chatworkapi", "sub_path": "/src/main/java/vn/framgia/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byte": 855, "line_count": 35, "... | package vn.framgia;
import java.io.IOException;
import java.util.List;
import java.util.stream.Collectors;
/**
* Created by ngo.dinh.ngoc on 7/26/16.
*/
public class MainActivity {
//Replace your token
private static final String TOKEN_KEY = "2238c0751ddaef806ba25525acfc202a";
public static void main... |
ec7a4bbf-d273-4cf1-aadc-b5d0d096059d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-02 22:15:27", "repo_name": "FunnyPhantom/roulang_compiler", "sub_path": "/src/main/java/appl/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 855, "line_count": 34, "lang": "en", ... | package appl;
import parser.CodeGenerator;
import parser.Lexical;
import parser.Parser;
import java.io.File;
import java.io.InputStream;
public class Main {
public static InputStream getInputStreamFromResource(String fileName) {
try{
ClassLoader classLoader = ClassLoader.getSystemClassLoader... |
dad1a751-d91f-412e-b2a9-a6d785fbb7d9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-03-20 06:23:04", "repo_name": "vivekworks/block-breaker", "sub_path": "/BlockBreaker/src/game/Animate.java", "file_name": "Animate.java", "file_ext": "java", "file_size_in_byte": 855, "line_count": 33, "lang": "e... | package game;
import components.BlockBreakerPanel;
public class Animate implements Runnable {
BlockBreakerPanel panel;
public Animate(BlockBreakerPanel panel){
this.panel=panel;
}
/**
* When an object implementing interface <code>Runnable</code> is used
* to create a thread, starting... |
b2254154-6eb5-43f5-8994-91372952602b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-06-13 13:41:15", "repo_name": "stuartclayman/VLSP", "sub_path": "/usr/events/vim/StartJvmEvent.java", "file_name": "StartJvmEvent.java", "file_ext": "java", "file_size_in_byte": 855, "line_count": 40, "lang": "en... | package usr.events.vim;
import usr.engine.EventEngine;
import usr.events.AbstractEvent;
import usr.logging.Logger;
import usr.logging.USR;
/** Class represents a global controller event for creating a jvm in an app*/
public class StartJvmEvent extends AbstractEvent implements StartJvm {
public final String classN... |
133f572c-cdf8-4846-9162-e44551a365be | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-04-27T08:35:06", "repo_name": "Navarrskij/mytwitt", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 856, "line_count": 45, "lang": "en", "doc_type": "text", "blob_id... | # README
Features
The application allows you to log in through Twitter and send twitts with images to Twitter.
Installation
$ git clone git@github.com:Navarrskij/mytwitt.git
$ cd mytwitt/
$ bundle
$ mv /config/database.yml.sample /config/database.yml
$ rake db:create
$ rake db:migrate
$ mv /config/secrats.yml... |
8e2c032d-f631-4f8b-b7ee-d476c3d45d6b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-04 02:14:58", "repo_name": "Mohammedislamqa95/Javapactice", "sub_path": "/main/java/seleniumPractice/AlertsANDpopupnotification.java", "file_name": "AlertsANDpopupnotification.java", "file_ext": "java", "file_... | package seleniumPractice;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import io.github.bonigarcia.wdm.WebDriverManager;
public class AlertsANDpopupnotification {
public static void main(String[] args) throws InterruptedException {
WebDriverManager.chromedriver().... |
b32868f5-ccbf-4300-9ebf-a0bdc0ed545e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-04-23T10:05:11", "repo_name": "urban-1/gopipe", "sub_path": "/docs/output/udp.md", "file_name": "udp.md", "file_ext": "md", "file_size_in_byte": 855, "line_count": 41, "lang": "en", "doc_type": "text", "blob_... | # Output: UDP
Similar with the Output UDP component, each packet is processed as a separate
message. (might change)
There are different ways for this module to interpret messages, depending on
which Codec is used:
# `UDPJSONOutput`
This is the default and will try to decode every line into a JSON object.
Example co... |
b107bd2e-f57d-45e4-a8c8-7e1b62d9d9d8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2015-10-08T23:23:06", "repo_name": "egikander/tools", "sub_path": "/memcache/web/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 855, "line_count": 19, "lang": "en", "doc_type": "text"... | # MemcacheTool web app
This is simple web application for monitoring your **Memcache** keys and values. Need to have installed **PHP** with **Memcache** support. Not for *production* use, use this tool on your own sandbox for debugging. :-)
# Installation
1. `git clone https://github.com/egikander/tools.git`
2. Go t... |
d130661d-66fd-4567-92dd-399cad91dfac | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-04-02T19:55:44", "repo_name": "Naman311/ReconSubsea-Trainee", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 855, "line_count": 18, "lang": "en", "doc_type": "text"... | # ReconSubsea-Trainee
Please follow these instructions before committing any change-
(I recommend you to complete the github course first and then do this)
1. first of all, do fetch origin to get your local host updated.
2. After downloading updates,copy your code folder in sensor directory which is already present i... |
9074b7d6-e5e2-4344-a325-b203012b173b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-18 02:43:40", "repo_name": "BrianShen/fanli-scheduler-web", "sub_path": "/src/main/java/com/fanli/scheduler/service/LocalExcuterService.java", "file_name": "LocalExcuterService.java", "file_ext": "java", "file... | package com.fanli.scheduler.service;
import java.io.IOException;
/**
* Created by wei.shen on 2015/8/28.
*/
public class LocalExcuterService {
public static int executeCMD(final String[] cmdStrArr)
{
Runtime rt = Runtime.getRuntime();
int exitVal = -99;
Process p = null;
try... |
ebdae62e-5130-42df-abef-43dcb88477dc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-01-30 03:12:39", "repo_name": "moutainhigh/autofund", "sub_path": "/src/main/java/com/xwguan/autofund/dto/plan/tactic/IndexChangeTacticDto.java", "file_name": "IndexChangeTacticDto.java", "file_ext": "java", "fil... | package com.xwguan.autofund.dto.plan.tactic;
public class IndexChangeTacticDto extends TacticDto {
/**
* 采样时间范围, 即在n个交易日内. 最小为1, 若值为null或小于1则设为1.
* 应用场景例如: 3交易日内净值增加10%
*/
private Integer inTradeDays;
public Integer getInTradeDays() {
return inTradeDays;
}
public void set... |
b779a5f1-c7b6-4bfd-a9b0-d599ad6b9d8b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-13 15:34:00", "repo_name": "fanyu088/myrepertory", "sub_path": "/src/main/java/com/example/demo7/MultipartFileResource.java", "file_name": "MultipartFileResource.java", "file_ext": "java", "file_size_in_byte":... | package com.example.demo7;
import org.springframework.core.io.InputStreamResource;
import java.io.IOException;
import java.io.InputStream;
public class MultipartFileResource extends InputStreamResource {
private final String filename;
private final long size;
public MultipartFileResource(String filen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.