id stringlengths 36 36 | meta stringlengths 439 610 | url stringlengths 29 78 | tokens int64 189 410 | domain_prefix stringlengths 18 70 | score float64 0.2 0.3 | code_content stringlengths 1.23k 1.25k |
|---|---|---|---|---|---|---|
27326b5a-4670-4a0c-b8aa-9d0e10b1bbfc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-14 06:19:52", "repo_name": "SoulofSZY/steamedfish-all", "sub_path": "/java/jdk8op/src/test/java/com/szy/lamda/concurrent/threads_runnable/DeadLockSample.java", "file_name": "DeadLockSample.java", "file_ext": "... | https://github.com/SoulofSZY/steamedfish-all | 299 | FILENAME: DeadLockSample.java | 0.282196 | package com.szy.lamda.concurrent.threads_runnable;
/**
* 〈一句话功能简述〉<br>
* 〈测试java 死锁〉
*
* @author sunzhengyu
* @create 2019/8/20
* @since 1.0.0
*/
public class DeadLockSample extends Thread {
private String first;
private String second;
public DeadLockSample(String name, String first, String second... |
4f693d1f-36d5-476b-866b-0c6ddaf5277e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-02-20T19:56:39", "repo_name": "dragona/dragona.github.com", "sub_path": "/_posts/2019-11-07-let-me-recap-what-did-I-use-for-this-github-io.md", "file_name": "2019-11-07-let-me-recap-what-did-I-use-for-this-gi... | https://github.com/dragona/dragona.github.com | 316 | FILENAME: 2019-11-07-let-me-recap-what-did-I-use-for-this-github-io.md | 0.218669 | # Building an IO Page
## Creating the repository:
1. Name the new repo "github_account_name.io"
2. Add a theme in the Github "settings" tab.
## Using a Bootstrap theme:
1. Clone Bootstrap 4 for Github to your local machine.
2. Clone your newly created repo and remove the default two files.
3. Drag and drop the conten... |
a9e3fa66-dd3e-47bd-988d-c5bdc6ba18d6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-10-07 14:36:00", "repo_name": "ssvaghasiya/AllProject", "sub_path": "/Shopkeeper/app/src/main/java/com/example/shopkeeper/ui/models/Transfer_Model.java", "file_name": "Transfer_Model.java", "file_ext": "java", "f... | https://github.com/ssvaghasiya/AllProject | 259 | FILENAME: Transfer_Model.java | 0.262842 | package com.example.shopkeeper.ui.models;
import java.io.Serializable;
public class Transfer_Model implements Serializable {
int id;
String item_name;
int quantity;
float price;
public Transfer_Model(int id, String item_name, int quantity, float price) {
this.id = id;
this.item_n... |
c8baf911-fac8-46db-a0f9-0329276fc8cd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-26 20:09:16", "repo_name": "klebermo/oauth2_server", "sub_path": "/src/main/java/oauth/server/App.java", "file_name": "App.java", "file_ext": "java", "file_size_in_byte": 1231, "line_count": 40, "lang": "en", ... | https://github.com/klebermo/oauth2_server | 211 | FILENAME: App.java | 0.250913 | package oauth.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.co... |
4d388e27-d391-4264-8594-6cddde3cc3e4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-21 08:05:00", "repo_name": "Mysteryzzz/Recruitment-website", "sub_path": "/src/main/java/com/cn/company/controller/CompanyHrInfoController.java", "file_name": "CompanyHrInfoController.java", "file_ext": "java"... | https://github.com/Mysteryzzz/Recruitment-website | 244 | FILENAME: CompanyHrInfoController.java | 0.243642 | package com.cn.company.controller;
import com.cn.company.service.CompanyHrInfoService;
import com.cn.controller.BaseController;
import com.cn.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Post... |
eee50f10-80e3-4e2c-8084-74ab228ee21b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-10 05:00:08", "repo_name": "swaroopaDeshpande/CodeBase-I", "sub_path": "/src/test/java/com/qa/selenium/quickrecap/ScreenShotPracto.java", "file_name": "ScreenShotPracto.java", "file_ext": "java", "file_size_in... | https://github.com/swaroopaDeshpande/CodeBase-I | 260 | FILENAME: ScreenShotPracto.java | 0.267408 | package com.qa.selenium.quickrecap;
import java.awt.AWTException;
import java.awt.Robot;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import ... |
f7d8da9f-be8e-4e03-abd2-9492eb22e4d2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-10 02:46:52", "repo_name": "xingtingbiao/springboot-example", "sub_path": "/springboot1/security/src/main/java/com/example/spring/handler/TestArgumentResolver.java", "file_name": "TestArgumentResolver.java", "... | https://github.com/xingtingbiao/springboot-example | 189 | FILENAME: TestArgumentResolver.java | 0.253861 | package com.example.spring.handler;
import com.example.spring.User;
import com.example.spring.annotation.InjectUserInfo;
import org.springframework.core.MethodParameter;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.support.WebDataBinderFactory;
import org.springframework.web.con... |
42ea3b83-cb2a-42ec-88b9-c325478b62a6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-12 03:15:28", "repo_name": "safekids-ai/nitmproxy", "sub_path": "/src/main/java/com/github/chhsiao90/nitmproxy/handler/ToServerHandler.java", "file_name": "ToServerHandler.java", "file_ext": "java", "file_size... | https://github.com/safekids-ai/nitmproxy | 241 | FILENAME: ToServerHandler.java | 0.274351 | package com.github.chhsiao90.nitmproxy.handler;
import com.github.chhsiao90.nitmproxy.ConnectionContext;
import io.netty.channel.ChannelDuplexHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelPromise;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static com.githu... |
e3c5e460-538a-4f65-82ed-5f1966adbb9e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-10 05:05:19", "repo_name": "jiass123/pinyougou", "sub_path": "/pinyougou-manager/src/main/java/com/asiainfo/common/exception/GlobalExceptionHandler.java", "file_name": "GlobalExceptionHandler.java", "file_ext"... | https://github.com/jiass123/pinyougou | 241 | FILENAME: GlobalExceptionHandler.java | 0.233706 | package com.asiainfo.common.exception;
import com.asiainfo.common.entity.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springf... |
187072a2-7332-4c47-9a4b-2f454029cede | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2013-02-22T20:42:30", "repo_name": "lacides/Publisher", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1229, "line_count": 26, "lang": "en", "doc_type": "text", "blob_id... | https://github.com/lacides/Publisher | 296 | FILENAME: README.md | 0.280616 | # Publisher
## What's this?
A example of Sinatra::Streaming
It serves SSEs in a channel/event schema
## What can you do with it?
For starters, fire it up with thin start or foreman start.
Then open your SSE/websocket supporting browser (let's go with the latest version of chrome) and hit localhost:3000/test
Y... |
0da0f9e2-806d-4dba-9330-35358b3758ea | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-05-18T13:45:37", "repo_name": "wengair/codewizard", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1230, "line_count": 42, "lang": "en", "doc_type": "text", "blob_i... | https://github.com/wengair/codewizard | 326 | FILENAME: README.md | 0.268941 | # Code Wizard
A Rails project turns flash cards into a webpage game to make the learning the basics of Ruby more interesting and engaging.
## Features
- Fully animated with sound effect
- Fully functional combat system
- Fully functional item and inventory system
- Leaderboard and points system
## Using Cos Find
Link: ... |
511c55c6-85fb-4d6c-b0d1-a33e7bc40ca0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-26 06:50:47", "repo_name": "levonyang/springboot_learning", "sub_path": "/springboot_helloworld/src/main/java/com/wujun/servlet/MyServlet.java", "file_name": "MyServlet.java", "file_ext": "java", "file_size_in... | https://github.com/levonyang/springboot_learning | 251 | FILENAME: MyServlet.java | 0.268941 | package com.wujun.servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebInitParam;
import javax.servlet.annotation.WebServlet;
import javax.se... |
e6cebcaa-929c-4287-a025-89789659a049 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-16 23:48:07", "repo_name": "smdb21/java-miape-api", "sub_path": "/src/main/java/org/proteored/miapeapi/cv/ms/CollisionPressure.java", "file_name": "CollisionPressure.java", "file_ext": "java", "file_size_in_by... | https://github.com/smdb21/java-miape-api | 297 | FILENAME: CollisionPressure.java | 0.287768 | package org.proteored.miapeapi.cv.ms;
import org.proteored.miapeapi.cv.Accession;
import org.proteored.miapeapi.cv.ControlVocabularyManager;
import org.proteored.miapeapi.cv.ControlVocabularySet;
import org.proteored.miapeapi.cv.ControlVocabularyTerm;
import org.proteored.miapeapi.cv.ControlVocabularyTermImpl;
public... |
4fd1ff42-bbe8-46c6-aaab-475db39e12e0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-24 07:30:32", "repo_name": "colorfulfrog/springboot-dubbox", "sub_path": "/platform-system/platform-system-provider/src/main/java/com/yxhl/stationbiz/system/provider/task/CreateOperatePlanTask.java", "file_nam... | https://github.com/colorfulfrog/springboot-dubbox | 286 | FILENAME: CreateOperatePlanTask.java | 0.283781 | package com.yxhl.stationbiz.system.provider.task;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.yxhl.stationbiz.system.domain.request.CreateScheduleBusRequest;
import com.yxhl.stationbiz.system.domain.service.schedule.ScheduleBusService;
/**
* 生成制作计划任务
*/
public class CreateOperatePlanTask im... |
11746875-bb50-42c1-b775-499c3f6aa874 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-16 18:02:53", "repo_name": "TristanNeret/Oops", "sub_path": "/Oops-web/src/main/java/com/gdf/validators/ZipCodeValidator.java", "file_name": "ZipCodeValidator.java", "file_ext": "java", "file_size_in_byte": 12... | https://github.com/TristanNeret/Oops | 260 | FILENAME: ZipCodeValidator.java | 0.282988 | package com.gdf.validators;
import com.gdf.singleton.PopulateDB;
import javax.ejb.EJB;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.FacesValidator;
import javax.faces.validator.Validator;
import javax.faces.... |
08a2d030-01f8-4716-9b46-07652855d97f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-06-22 22:33:01", "repo_name": "abarson/PA-Google-API", "sub_path": "/gactions-sample/src/main/java/com/frogermcs/gactions/api/request/RawInput.java", "file_name": "RawInput.java", "file_ext": "java", "file_size_i... | https://github.com/abarson/PA-Google-API | 298 | FILENAME: RawInput.java | 0.267408 | package com.frogermcs.gactions.api.request;
/**
* Created by froger_mcs on 17/01/2017.
*/
public class RawInput {
public Time create_time;
public String query;
public InputType input_type;
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || ge... |
089baf94-e798-41a8-a359-b81bc3aa1412 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-18 11:33:58", "repo_name": "MicWes/DAC", "sub_path": "/SistemaLOL/src/java/com/ufpr/tads/dac/ws/Entregador.java", "file_name": "Entregador.java", "file_ext": "java", "file_size_in_byte": 1231, "line_count": 39... | https://github.com/MicWes/DAC | 265 | FILENAME: Entregador.java | 0.286169 | /*
* 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.ufpr.tads.dac.ws;
import com.ufpr.tads.dac.model.Pedido;
import javax.ws.rs.client.Client;
import javax.ws.rs.cli... |
c78ab1ed-61f9-42b2-9410-d72f314e0145 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-26 08:40:28", "repo_name": "andreasdan/Ships-and-Sails", "sub_path": "/src/main/java/com/kea/shipsandsails/communication/SocketClient.java", "file_name": "SocketClient.java", "file_ext": "java", "file_size_in_... | https://github.com/andreasdan/Ships-and-Sails | 230 | FILENAME: SocketClient.java | 0.246533 | /**
* @Author Daniel Blom
* A Socket client for sending and requesting data
*/
package com.kea.shipsandsails.communication;
import java.io.*;
import java.net.Socket;
public class SocketClient implements ISocketClient {
private Socket socket;
private PrintWriter out;
private DataInputStream in;
p... |
c8be81fa-3165-4e98-9b73-f9be47ced71c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-06-02 13:21:04", "repo_name": "Baeldung/reddit-app", "sub_path": "/reddit-common/src/main/java/org/baeldung/web/metric/MetricFilter.java", "file_name": "MetricFilter.java", "file_ext": "java", "file_size_in_byte"... | https://github.com/Baeldung/reddit-app | 210 | FILENAME: MetricFilter.java | 0.285372 | package org.baeldung.web.metric;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Ht... |
607d0228-5881-4100-9fc9-8253551388c5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-12 15:49:52", "repo_name": "coach-K/Fellomation", "sub_path": "/app/src/main/java/com/andela/fellomation/controller/RecyclerAdapter.java", "file_name": "RecyclerAdapter.java", "file_ext": "java", "file_size_in... | https://github.com/coach-K/Fellomation | 247 | FILENAME: RecyclerAdapter.java | 0.288569 | package com.andela.fellomation.controller;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.andela.fellomation.R;
import com.andela.fellomation.model.Fellow;
import com.andela.fellomation.model.FellowManager;
import... |
c958614d-7695-47c0-8c53-97d2727b4076 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-03 08:03:30", "repo_name": "daydreamer1988/CommonApplication", "sub_path": "/app/src/main/java/common/com/activity/BaseActivity.java", "file_name": "BaseActivity.java", "file_ext": "java", "file_size_in_byte":... | https://github.com/daydreamer1988/CommonApplication | 246 | FILENAME: BaseActivity.java | 0.27513 | package common.com.activity;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import common.com.MyApplication;
import common.com.custom.PgDialog;
import common.com.globle.Appconstants;
/**
* Created by Aus... |
703ecd49-09ce-4f92-8cf8-1aa516d2b04e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-23 19:12:49", "repo_name": "PaulinaBinas/tachoactivecms", "sub_path": "/src/main/java/com/binas/tachographcms/service/impl/AdminServiceImpl.java", "file_name": "AdminServiceImpl.java", "file_ext": "java", "fil... | https://github.com/PaulinaBinas/tachoactivecms | 231 | FILENAME: AdminServiceImpl.java | 0.262842 | package com.binas.tachographcms.service.impl;
import com.binas.tachographcms.model.entity.Admin;
import com.binas.tachographcms.repository.AdminRepository;
import com.binas.tachographcms.service.AdminService;
import javassist.NotFoundException;
import org.springframework.stereotype.Service;
import javax.security.auth... |
e42918ec-3b03-4ffe-8ce2-be5e6155cf2a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-05-17T23:39:27", "repo_name": "cagdaskarademir/aspnetcore-graphql-dapper-sqlkata-sqlserver", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1229, "line_count": 35, ... | https://github.com/cagdaskarademir/aspnetcore-graphql-dapper-sqlkata-sqlserver | 295 | FILENAME: README.md | 0.279828 | # tutorial-aspnetcore-graphql-sqlserver
Tutorial Asp.Net Core 3.0 + GraphQLApi + Sql Server
This tutorial sample was created by .net core, dapper and sqlkata.
If you new on graphql for .net, you could use that sample.
This example is very simple. You could connect database, search entity or entities a... |
d2fefa67-a957-4b3a-8429-8cfb29e4ba9f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-08-05T23:59:06", "repo_name": "NareshAruna/WebSocket", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1230, "line_count": 42, "lang": "en", "doc_type": "text", "blo... | https://github.com/NareshAruna/WebSocket | 308 | FILENAME: README.md | 0.27048 | # WebsocketNew
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.8.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng new a... |
ff08068d-9358-4258-9090-2523401048ff | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-12-14T13:52:40", "repo_name": "gaborveres-planorama/teaching-materials", "sub_path": "/java-spring/ioc-bean/workshop/Workshop02.md", "file_name": "Workshop02.md", "file_ext": "md", "file_size_in_byte": 1229, ... | https://github.com/gaborveres-planorama/teaching-materials | 302 | FILENAME: Workshop02.md | 0.284576 | #Workshop02 - Swapping Services through Beans
To get this to work, when you start the project you need to be sure that you've informed IntelliJ that you're working with Spring. Same as last time, but this time you need at least 1 library (but as I'm unsure which one, chose the first 4).
If you didn't select a partic... |
9a05cbc0-e347-4eef-8354-9c5187b7f414 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-14 21:04:33", "repo_name": "thombergs/code-examples", "sub_path": "/spring-boot/spring-boot-and-reactjs/publisher_register/src/main/java/io/reflectoring/publisher_register/controller/PublisherController.java",... | https://github.com/thombergs/code-examples | 212 | FILENAME: PublisherController.java | 0.258326 | package io.reflectoring.publisher_register.controller;
import io.reflectoring.publisher_register.model.Publisher;
import io.reflectoring.publisher_register.repository.PublisherRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.... |
e8aaf297-5ecd-4e1e-b0f6-6ab2f878ba41 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-04 01:48:55", "repo_name": "codenbox/MavenProject", "sub_path": "/src/test/java/codenbox/MavenProject/WdManagerTest.java", "file_name": "WdManagerTest.java", "file_ext": "java", "file_size_in_byte": 1230, "lin... | https://github.com/codenbox/MavenProject | 270 | FILENAME: WdManagerTest.java | 0.272799 | package codenbox.MavenProject;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import io.github.bonigarcia.wdm.WebDriv... |
0e3402d6-f0dd-4ac9-99bd-9e320b8fcc3f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-05 01:51:26", "repo_name": "lqj12267488/Gemini", "sub_path": "/src/main/resourcelibrary/com/goisan/type/service/impl/ResourceTypeCourseServiceImpl.java", "file_name": "ResourceTypeCourseServiceImpl.java", "fil... | https://github.com/lqj12267488/Gemini | 237 | FILENAME: ResourceTypeCourseServiceImpl.java | 0.289372 | package com.goisan.type.service.impl;
import com.goisan.type.dao.ResourceTypeCourseDao;
import com.goisan.type.service.ResourceTypeCourseService;
import com.goisan.system.bean.BaseBean;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class Resou... |
dfcd7f6c-b79f-4f83-8604-44775667ca91 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-25 12:10:11", "repo_name": "chineseunicorn/scd", "sub_path": "/service-ribbon/src/main/java/com/unicorn/serviceribbon/web/HelloControler.java", "file_name": "HelloControler.java", "file_ext": "java", "file_siz... | https://github.com/chineseunicorn/scd | 222 | FILENAME: HelloControler.java | 0.240775 | package com.unicorn.serviceribbon.web;
import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet;
import com.unicorn.serviceribbon.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import or... |
f0a0ac54-8e97-410a-b59e-e819a0e54e87 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-10-21 13:39:01", "repo_name": "lpw151817/nercms-wxapp-service", "sub_path": "/src/android/wxapp/service/model/OrgNodeStaffModel.java", "file_name": "OrgNodeStaffModel.java", "file_ext": "java", "file_size_in_byte... | https://github.com/lpw151817/nercms-wxapp-service | 299 | FILENAME: OrgNodeStaffModel.java | 0.285372 | package android.wxapp.service.model;
import android.content.Context;
import android.wxapp.service.dao.DAOFactory;
import android.wxapp.service.dao.PersonDao;
/**
* 机构节点成员模型
*
* @author WEIHAO
*
*/
public class OrgNodeStaffModel {
private String orgCode; // 机构节点代码
private String contactID;// 联系人... |
e07fc2b1-685a-436d-869c-560132348e74 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-12 17:02:05", "repo_name": "gsapountzis/samson", "sub_path": "/samson-examples/samson-example-jsp/src/main/java/samson/example/jsp/model/Order.java", "file_name": "Order.java", "file_ext": "java", "file_size_i... | https://github.com/gsapountzis/samson | 255 | FILENAME: Order.java | 0.274351 | package samson.example.jsp.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.NotEmpty;
public class Order {
public Long... |
7b4407ad-1c34-4505-81fd-9eb54c551aa0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-06 10:29:09", "repo_name": "jdqm/ConcurrencyArt", "sub_path": "/src/main/java/com/jdqm/concurrency/chapter7/ExchangerTest.java", "file_name": "ExchangerTest.java", "file_ext": "java", "file_size_in_byte": 1276... | https://github.com/jdqm/ConcurrencyArt | 242 | FILENAME: ExchangerTest.java | 0.290176 | package com.jdqm.concurrency.chapter7;
import java.util.concurrent.Exchanger;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* 线程交互数据
* Created by Jdqm on 2021/3/5
*/
public class ExchangerTest {
private static final Exchanger<String> exgr = new Exchanger<>();
priva... |
02ee3b68-8a8c-4b23-b501-4e145fbdaf3d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-23 20:36:03", "repo_name": "diegodh1/pokeApi", "sub_path": "/src/main/java/com/example/poke/pokeApi/models/ExternalApi/PokemonApiSprites.java", "file_name": "PokemonApiSprites.java", "file_ext": "java", "file_... | https://github.com/diegodh1/pokeApi | 262 | FILENAME: PokemonApiSprites.java | 0.252384 | package com.example.poke.pokeApi.models.ExternalApi;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class PokemonApiSprites {
//variables
@JsonAlias("front_shiny")
private String frontSh... |
e9b0e8b3-1e66-426c-a6c3-bfab35bc2efd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-09 08:02:42", "repo_name": "Kelly-JJ/MyWebSite", "sub_path": "/MyWebSite-ChatRoom/src/main/java/com/gjj/website/threaddemo/threaddemo2/ThreadLocalDemo.java", "file_name": "ThreadLocalDemo.java", "file_ext": "j... | https://github.com/Kelly-JJ/MyWebSite | 233 | FILENAME: ThreadLocalDemo.java | 0.268941 | package com.gjj.website.threaddemo.threaddemo2;
import java.util.concurrent.TimeUnit;
/**
* @author :
* @since 2020/3/18 22:57
*/
public class ThreadLocalDemo {
static ThreadLocal<Person> tl = new ThreadLocal<Person>();
public static void main(String[] args) {
new Thread(new Runnable() {
... |
7c8cacbf-e0b6-4409-aee3-123984325743 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-06-27 16:54:53", "repo_name": "hkjinlee/SleepCover", "sub_path": "/app/src/main/java/com/hkjinlee/sleepcover/CoverImage.java", "file_name": "CoverImage.java", "file_ext": "java", "file_size_in_byte": 1229, "line_... | https://github.com/hkjinlee/SleepCover | 260 | FILENAME: CoverImage.java | 0.283781 | package com.hkjinlee.sleepcover;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.util.Log;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* Class holding actual cover image data.
* Offers method to export cover image to JPG fil... |
f952274a-fe78-4b96-b95f-4bf8fc45cac4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-03 19:52:20", "repo_name": "zmckee2/MobileApp", "sub_path": "/PA5/app/src/main/java/com/example/pa5/WelcomeActivity.java", "file_name": "WelcomeActivity.java", "file_ext": "java", "file_size_in_byte": 1229, "l... | https://github.com/zmckee2/MobileApp | 243 | FILENAME: WelcomeActivity.java | 0.286968 | /**
* This program contains the backend logic for the start screen
* of PA5
* CPSC 312-02, Fall 2019
* Programming assignment #5
* No sources to cite
*
* @author Zach McKee
* @version 1.0 10/22/2019
*/
package com.example.pa5;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivit... |
d6ebd812-aa33-4451-9311-58bdbf5bf3b7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-07 08:18:32", "repo_name": "honj51/tn_abt", "sub_path": "/vla-base/src/main/java/com/tuniu/vla/base/tsp/TspErrorCodeException.java", "file_name": "TspErrorCodeException.java", "file_ext": "java", "file_size_in... | https://github.com/honj51/tn_abt | 269 | FILENAME: TspErrorCodeException.java | 0.285372 | package com.tuniu.vla.base.tsp;
/**
* TSP接口返回false异常
*
* @copyright(C) 2006-2012 Tuniu All rights reserved
* @author xiehui
*/
class TspErrorCodeException extends RuntimeException {
private static final long serialVersionUID = -7026557876228668588L;
private String errorCode;
public TspErrorCodeExc... |
b1809130-3abb-4ae6-9e08-fc335eba9477 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-16 19:09:54", "repo_name": "s19971014y/mytaotao", "sub_path": "/taotao-common/src/main/java/com/taotao/utils/JedisGetUtils.java", "file_name": "JedisGetUtils.java", "file_ext": "java", "file_size_in_byte": 126... | https://github.com/s19971014y/mytaotao | 402 | FILENAME: JedisGetUtils.java | 0.249447 | package com.taotao.utils;
import redis.clients.jedis.*;
import java.util.HashSet;
import java.util.Set;
public class JedisGetUtils {
static{
//单机版
JedisPoolConfig config = new JedisPoolConfig();
config.setMaxWaitMillis(100000);
config.setMaxTotal(50);
jedisPool = new Jedis... |
471e5d0b-930c-42b4-a3be-6d4904de20e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-15 13:17:26", "repo_name": "chrishaining/Stereo", "sub_path": "/src/main/java/stereo/Stereo.java", "file_name": "Stereo.java", "file_ext": "java", "file_size_in_byte": 1229, "line_count": 52, "lang": "en", "do... | https://github.com/chrishaining/Stereo | 274 | FILENAME: Stereo.java | 0.282196 | package stereo;
import components.CassetteDeck;
import components.Component;
import components.Radio;
public class Stereo {
private String name;
private CassetteDeck cassetteDeck;
private Radio radio;
// private String model;
// private String make;
public Stereo(String name, CassetteDeck cass... |
d2c5e4bc-3473-4bbb-a945-7a94dbe08e2c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-05-14T01:22:49", "repo_name": "thestar-faiz/microexpression", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1228, "line_count": 19, "lang": "en", "doc_type": "text... | https://github.com/thestar-faiz/microexpression | 284 | FILENAME: README.md | 0.261331 | # microexpression
Detecting Micro-Expression Emotion in Real Time
Live at https://affectiva-web.surge.sh/
To see the app in action, just open the above link in web browser from your mobile phone. Have fun!
Based on https://github.com/Affectiva/js-sdk-sample-apps and https://jsfiddle.net/affectiva/opyh5e8d/show/
Ide... |
f48f9343-39b5-4000-b726-7dedf04f88e0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-19 20:35:54", "repo_name": "only-us-app/UDONG_SERVER", "sub_path": "/src/main/java/solux/woodong/web/service/WebClientService.java", "file_name": "WebClientService.java", "file_ext": "java", "file_size_in_byte... | https://github.com/only-us-app/UDONG_SERVER | 215 | FILENAME: WebClientService.java | 0.245085 | package solux.woodong.web.service;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;
import reactor.core.publisher.Mono;
import... |
2220361b-7e2b-4e72-b30d-5d382629b2b1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-23 17:34:25", "repo_name": "whakey/discordBot", "sub_path": "/src/main/java/com/discord/bot/Emote.java", "file_name": "Emote.java", "file_ext": "java", "file_size_in_byte": 1230, "line_count": 73, "lang": "en"... | https://github.com/whakey/discordBot | 270 | FILENAME: Emote.java | 0.220007 |
package com.discord.bot;
public class Emote
{
private String code;
private String id;
private String imagetype;
private boolean downloaded;
private boolean largeDownloaded;
public Emote(String code, String id, String imagetype, boolean downloaded)
{
this.code = code;
this... |
53011057-b134-4f37-8c64-60a52da217ef | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-26 19:07:51", "repo_name": "vujaaa88/personal-library-application", "sub_path": "/src/main/java/com/myLibrary/myLibrary/service/UserService.java", "file_name": "UserService.java", "file_ext": "java", "file_siz... | https://github.com/vujaaa88/personal-library-application | 216 | FILENAME: UserService.java | 0.285372 | package com.myLibrary.myLibrary.service;
import java.util.List;
import java.util.Optional;
import org.hamcrest.Matcher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import com.myL... |
a621a0cc-82d5-4717-8094-e43c16d54eeb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-21 02:34:30", "repo_name": "fangls/simple-seckill", "sub_path": "/src/main/java/com/fang/seckill/consumer/BlockingQueueConsumer.java", "file_name": "BlockingQueueConsumer.java", "file_ext": "java", "file_size_... | https://github.com/fangls/simple-seckill | 256 | FILENAME: BlockingQueueConsumer.java | 0.246533 | package com.fang.seckill.consumer;
import com.fang.seckill.service.GoodsSeckillService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.st... |
4837746a-798f-4d76-a400-7d85bec52c6f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-27 05:01:50", "repo_name": "taubidien2011/DemeHeathycare1", "sub_path": "/app/src/main/java/com/example/admin/myapplication/MenuFragment/Adpter/PaperAdapterinside.java", "file_name": "PaperAdapterinside.java",... | https://github.com/taubidien2011/DemeHeathycare1 | 244 | FILENAME: PaperAdapterinside.java | 0.275909 | package com.example.admin.myapplication.MenuFragment.Adpter;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import com.example.admin.myapplication.MenuFragment.FragmenttuVanTuXa;
import com.example.admin.myapplication.Men... |
78a07d45-d44e-4c11-8104-8f57c026a5a2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-14 21:22:47", "repo_name": "wyaldalex/delphi-stats-java-test", "sub_path": "/src/main/java/com/tudux/testing/delphibackendtest/domain/Payment.java", "file_name": "Payment.java", "file_ext": "java", "file_size_... | https://github.com/wyaldalex/delphi-stats-java-test | 260 | FILENAME: Payment.java | 0.26588 | package com.tudux.testing.delphibackendtest.domain;
import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
/**
* The persistent class for the payment database table.
*
*/
@Entity
@NamedQuery(name="Payment.findAll", query="SELECT p FROM Payment p")
public ... |
e7cffc69-1457-4c72-aa38-71e0df0b3b97 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-28 15:41:09", "repo_name": "olegthinks/maven_CircleCI", "sub_path": "/src/test/java/helperClasses/APIInterrogator.java", "file_name": "APIInterrogator.java", "file_ext": "java", "file_size_in_byte": 1229, "lin... | https://github.com/olegthinks/maven_CircleCI | 226 | FILENAME: APIInterrogator.java | 0.259826 | package helperClasses;
import io.restassured.RestAssured;
import io.restassured.response.Response;
import io.restassured.specification.RequestSpecification;
import static io.restassured.RestAssured.given;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
/**
* Wiki RestAssur... |
e117f09a-1e5d-456d-8343-6898331d5b45 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-09 08:11:46", "repo_name": "adarsharegmi/Covid19tracker", "sub_path": "/app/src/main/java/com/example/finalproject/News2Model.java", "file_name": "News2Model.java", "file_ext": "java", "file_size_in_byte": 123... | https://github.com/adarsharegmi/Covid19tracker | 267 | FILENAME: News2Model.java | 0.240775 | package com.example.finalproject;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class News2Model {
@SerializedName("data")
@Expose
private List<Newsmodel> data = null;
@SerializedName("total")
@Expose
private Integ... |
3786bb84-eb87-4c4a-84a6-66f1ab61a146 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-15 01:21:47", "repo_name": "vincentgwzhang/kafka", "sub_path": "/src/main/java/com/atguigu/kafka/LowerAPI.java", "file_name": "LowerAPI.java", "file_ext": "java", "file_size_in_byte": 1229, "line_count": 47, "... | https://github.com/vincentgwzhang/kafka | 252 | FILENAME: LowerAPI.java | 0.201813 | package com.atguigu.kafka;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
public class LowerAPI {
public static void main(String[] args) {
List<String> lists = new ArrayList<>();
lists.add("localhost");
... |
50f4f958-4807-40e6-85a0-6356ad498963 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-08 08:12:24", "repo_name": "Sameh16/AndroidApp", "sub_path": "/app/src/main/java/com/example/sameh/sensordatatest/Rate.java", "file_name": "Rate.java", "file_ext": "java", "file_size_in_byte": 1229, "line_coun... | https://github.com/Sameh16/AndroidApp | 224 | FILENAME: Rate.java | 0.275909 | package com.example.sameh.sensordatatest;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import me.itangqi.waveloadingview.WaveLoadingView;
public class Rate extends App... |
781f03f8-1fb4-49e3-b2b1-358770f480e8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-05-29T16:02:35", "repo_name": "cradlepoint/api-samples", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1229, "line_count": 46, "lang": "en", "doc_type": "text", "b... | https://github.com/cradlepoint/api-samples | 372 | FILENAME: README.md | 0.206894 | # api-samples
Sample code using the NetCloud Manager API for key use cases
# How To Try
## Setup a python virtual environment
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
## Setup your keys in your environment
You need to create API keys in NCM to use these scripts so they... |
bd8b73cc-4319-4a2f-8e13-7c3f4ff3c02d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-23 14:55:45", "repo_name": "Moearly/Weekend", "sub_path": "/app/src/main/java/com/martn/weekend/view/ToastCommom.java", "file_name": "ToastCommom.java", "file_ext": "java", "file_size_in_byte": 1239, "line_cou... | https://github.com/Moearly/Weekend | 295 | FILENAME: ToastCommom.java | 0.293404 | package com.martn.weekend.view;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import com.martn.weekend.R;
/**
* Title: Weekend
* Packag... |
5a956fca-3caa-49ea-9d4e-e67850abc836 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-08 01:44:01", "repo_name": "alfayedoficial/Fm_Market.Retrofit.JSON_Data", "sub_path": "/app/src/main/java/com/alialfayed/marketapp/view/activities/SlidesActivity.java", "file_name": "SlidesActivity.java", "fil... | https://github.com/alfayedoficial/Fm_Market.Retrofit.JSON_Data | 223 | FILENAME: SlidesActivity.java | 0.261331 | package com.alialfayed.marketapp.view.activities;
import android.os.Bundle;
import com.alialfayed.marketapp.R;
import com.alialfayed.marketapp.viewmodel.SlidesViewModel;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle... |
d18d84e5-f85c-485c-b67f-3ad0e66dd7bf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-18 04:15:33", "repo_name": "ZGAOF/spring-cloud-2020", "sub_path": "/seata-order-service-2001/src/main/java/cn/zzf/spring/cloud/seata/order/service/OrderService.java", "file_name": "OrderService.java", "file_ex... | https://github.com/ZGAOF/spring-cloud-2020 | 284 | FILENAME: OrderService.java | 0.282988 | package cn.zzf.spring.cloud.seata.order.service;
import cn.zzf.spring.cloud.entity.UserOrder;
import cn.zzf.spring.cloud.seata.order.manager.AccountManager;
import cn.zzf.spring.cloud.seata.order.manager.StorageManager;
import cn.zzf.spring.cloud.seata.order.mapper.OrderMapper;
import io.seata.spring.annotation.Global... |
97931537-f0a1-4bb5-ba46-d38ca3139758 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-11-03T04:42:00", "repo_name": "Abdur-rahmaanJ/InternalO", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1232, "line_count": 68, "lang": "en", "doc_type": "text", "... | https://github.com/Abdur-rahmaanJ/InternalO | 347 | FILENAME: README.md | 0.23793 | # 📧 InternalO
Open Php framework for Internal office use. It helps you track a small team with roster upload and in-mail system.
# How?
Non-admins log in and sign up via their phone number. Admins decide whether or not to approve.
# Setup
Environment
Xamp, see [here](https://www.apachefriends.org/download.html)
S... |
70a310db-0c07-4b5e-a1fe-0e22c5bc88f1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-13 01:50:44", "repo_name": "sjcnhlm/My_Work", "sub_path": "/count_people(安卓端)/app/src/main/java/com/example/lm/count_people/Activity/BaseCompatActivity.java", "file_name": "BaseCompatActivity.java", "file_ext"... | https://github.com/sjcnhlm/My_Work | 244 | FILENAME: BaseCompatActivity.java | 0.283781 | package com.example.lm.count_people.Activity;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.example.lm.count_people.BroadcastReceiver.LoginOutBroadcastReceiver;
import com.example.lm.count_people.util.ActivityCollector;
public class BaseCom... |
5c03a64d-ece1-46f1-a345-1eeba4a1b812 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-13 03:55:58", "repo_name": "xiechangsong/project", "sub_path": "/src/main/java/com/api/service/system/MsgSystemService.java", "file_name": "MsgSystemService.java", "file_ext": "java", "file_size_in_byte": 1306... | https://github.com/xiechangsong/project | 283 | FILENAME: MsgSystemService.java | 0.29584 | package com.api.service.system;
import com.api.mapper.system.MsgSystemMapper;
import com.api.model.system.letter.MsgSystem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created by Administrator on 2017/7/6.
*/
@Service
pu... |
1c3e5437-5614-4d1f-b612-174ffeac4162 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-04 10:08:57", "repo_name": "apykac/internship", "sub_path": "/db-connector/src/main/java/internship/connectors/postgresConnector/Connector.java", "file_name": "Connector.java", "file_ext": "java", "file_size_i... | https://github.com/apykac/internship | 253 | FILENAME: Connector.java | 0.259826 | package internship.connectors.postgresConnector;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.Connection;
import java.sql.SQLException;
public class Connector implements IConnector {
private final Logger... |
edf66498-6c9f-43d3-91aa-127b366b1c0a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-22 07:09:23", "repo_name": "aoden2/AWSExample", "sub_path": "/AWSWebSample/src/com/tdt/aws/model/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byte": 1228, "line_count": 59, "lang": "... | https://github.com/aoden2/AWSExample | 296 | FILENAME: User.java | 0.243642 | package com.tdt.aws.model;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable;
@DynamoDBTable(tableName = "Login")
public class User {
@DynamoDBHashKey(att... |
88379ce5-b020-4839-853c-7e69045a439f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-08-15T18:23:07", "repo_name": "HomeDing/homeding.github.io", "sub_path": "/examples/rfbridge.md", "file_name": "rfbridge.md", "file_ext": "md", "file_size_in_byte": 1227, "line_count": 42, "lang": "en", "doc_... | https://github.com/HomeDing/homeding.github.io | 281 | FILENAME: rfbridge.md | 0.245085 | ---
title: RF Bridge Example
tags: ["Example", "WIP"]
layout: "page.njk"
description: --
excerpt: >
This example has a local RFCodes Element to send and receive RF Signals using 433 MHz
transmitters and receivers with the <a href="https://github.com/mathertel/rfcodes">RFCodes
library</a>. Some more Elemen... |
b424405e-9019-44a2-b43a-84ff0507b143 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-27 03:12:21", "repo_name": "Marlysonn/MoraisLibrary", "sub_path": "/src/main/java/TesteBanco/UpdateDB.java", "file_name": "UpdateDB.java", "file_ext": "java", "file_size_in_byte": 1228, "line_count": 45, "lang... | https://github.com/Marlysonn/MoraisLibrary | 215 | FILENAME: UpdateDB.java | 0.276691 | package TesteBanco;
import conexoes.ConexaoSQLite;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class UpdateDB {
public static void main(String[] args) {
ConexaoSQLite conexaoSQLite = new ConexaoSQLite();
conexaoSQLite.conectar();
... |
154b5478-8496-4ff8-a1ef-18946f9026ae | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-09-16T05:34:57", "repo_name": "mule-deer-2014/susteq", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1228, "line_count": 36, "lang": "en", "doc_type": "text", "blo... | https://github.com/mule-deer-2014/susteq | 365 | FILENAME: README.md | 0.256832 | Susteq
======
End-to-End Water Hub Data Management Platform for [Susteq](http://susteq.nl) in Kenya
DevBootcamp Mule Deer 2014 Final Project
###Team Members
- Whitney O'Banner
- Eric Kennedy
- Igor Gaelzer
- Ori Pleban
- Alex Birdsall
- Melissa McCoy
###MVP Features
- User Login for (1) Admin and (2) Water Service ... |
a8cc0004-85c7-4450-b8ef-c81f3cf151e2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-21 05:42:37", "repo_name": "Zxnui/BusTicket", "sub_path": "/app/src/main/java/cn/zxnui/www/busticket/MainActivity.java", "file_name": "MainActivity.java", "file_ext": "java", "file_size_in_byte": 1229, "line_c... | https://github.com/Zxnui/BusTicket | 225 | FILENAME: MainActivity.java | 0.246533 | package cn.zxnui.www.busticket;
import android.app.Activity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import java.io.InputStream;
import cn.zxnui.www.busticket.... |
54f0fe61-d28b-480f-b475-f8b8b9f73e84 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-09 01:29:56", "repo_name": "JackyLin18/spring-boot-03-web-restfulcrud", "sub_path": "/src/main/java/com/smart/controller/HelloController.java", "file_name": "HelloController.java", "file_ext": "java", "file_si... | https://github.com/JackyLin18/spring-boot-03-web-restfulcrud | 240 | FILENAME: HelloController.java | 0.259826 | package com.smart.controller;
import com.smart.dao.UserDao;
import com.smart.exception.UserNotExistException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bi... |
4cf0e765-fc94-48bf-9b76-c97c1df731d9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-08 14:13:52", "repo_name": "dkaramanov/falcon", "sub_path": "/src/main/java/com/karamanov/falcon/db/model/MessageEntity.java", "file_name": "MessageEntity.java", "file_ext": "java", "file_size_in_byte": 1229, ... | https://github.com/dkaramanov/falcon | 262 | FILENAME: MessageEntity.java | 0.267408 | package com.karamanov.falcon.db.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
* @auth... |
5dc09918-7d5f-4849-81b7-af18370701a5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-07 18:51:50", "repo_name": "saumyasrivastava22/user-registration", "sub_path": "/src/main/java/com/codedefnotfound/userregistration/service/ProfileService.java", "file_name": "ProfileService.java", "file_ext":... | https://github.com/saumyasrivastava22/user-registration | 218 | FILENAME: ProfileService.java | 0.272025 | package com.codedefnotfound.userregistration.service;
import com.codedefnotfound.userregistration.model.Profile;
import com.codedefnotfound.userregistration.persistence.mapper.ModelMapper;
import com.codedefnotfound.userregistration.persistence.repository.ProfileRepository;
import org.springframework.beans.factory.ann... |
20a259c9-8e36-41e5-bc11-a094fe8f4055 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-25 15:32:57", "repo_name": "a307b/Blockchain", "sub_path": "/src/main/Main.java", "file_name": "Main.java", "file_ext": "java", "file_size_in_byte": 1228, "line_count": 46, "lang": "en", "doc_type": "code", "b... | https://github.com/a307b/Blockchain | 227 | FILENAME: Main.java | 0.282988 | /**
* Main Class - used ot initializeBlockchain Blockchain
*
* Methods Used :
* main : psvm to execute starting the blockchain
*
*/
import java.net.ServerSocket;
import java.net.Socket;
public class Main
{
public static void main(String[] args)
{
boolean running = true;
Blockchain block... |
61134ff3-7c9f-48fc-9817-6ec5b89328bb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-05-10 10:25:17", "repo_name": "Abhi1code/Callrecorder", "sub_path": "/app/src/main/java/util/Filehandler.java", "file_name": "Filehandler.java", "file_ext": "java", "file_size_in_byte": 1228, "line_count": 41, "l... | https://github.com/Abhi1code/Callrecorder | 235 | FILENAME: Filehandler.java | 0.295027 | package util;
import android.content.Context;
import android.os.Environment;
import java.io.File;
public class Filehandler {
public boolean isExternalStorageAvailable() {
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state)) {
return true... |
8fa91f98-f90a-49ef-b3ca-1bd48eaec6d0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-11 02:27:01", "repo_name": "ellien-lucky-monkey/jooqdemo", "sub_path": "/src/main/java/com/jooq/demo/controller/AdminController.java", "file_name": "AdminController.java", "file_ext": "java", "file_size_in_byt... | https://github.com/ellien-lucky-monkey/jooqdemo | 265 | FILENAME: AdminController.java | 0.256832 | package com.jooq.demo.controller;
import com.jooq.demo.domain.tables.pojos.Admin;
import com.jooq.demo.service.AdminService;
import com.jooq.demo.vos.AdminVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* @author ellien
* @package com.jooq.dem... |
60e53749-1557-4515-9543-ea9b1b5a9c5c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-02-21T23:09:00", "repo_name": "murilorr90/laravel-crawler", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1228, "line_count": 57, "lang": "en", "doc_type": "text",... | https://github.com/murilorr90/laravel-crawler | 279 | FILENAME: README.md | 0.221351 | > ### Crawler Project (using Laravel)
>
----------
# Getting started
## Installation
Please check the official laravel installation guide for server requirements before you start. [Official Documentation](https://laravel.com/docs/5.4/installation#installation)
Clone the repository
git clone git@github.com:mu... |
a8a9a12b-b5b7-49c4-a1eb-cc5fbaa317ca | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-20 01:58:12", "repo_name": "ingoskr19/breakingbad", "sub_path": "/app/src/main/java/com/overgara/test/xumak/screens/character/data/repository/service/CharacterApi.java", "file_name": "CharacterApi.java", "file... | https://github.com/ingoskr19/breakingbad | 242 | FILENAME: CharacterApi.java | 0.290176 | package com.overgara.test.xumak.screens.character.data.repository.service;
import com.overgara.test.xumak.base.BaseRetrofit;
import com.overgara.test.xumak.screens.character.data.repository.service.dto.CharacterDTO;
import java.util.List;
import io.reactivex.Observable;
import retrofit2.Retrofit;
import retrofit2.ad... |
17ac11b7-3e98-4572-a5ba-fc70010a6e61 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-03 15:48:06", "repo_name": "Veske/protostuff-compiler", "sub_path": "/protostuff-parser/src/main/java/io/protostuff/compiler/parser/ClasspathFileReader.java", "file_name": "ClasspathFileReader.java", "file_ext... | https://github.com/Veske/protostuff-compiler | 238 | FILENAME: ClasspathFileReader.java | 0.27048 | package io.protostuff.compiler.parser;
import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.CharStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.InputStream;
import javax.annotation.Nullable;
/**
* @author Kostiantyn Shchepanovskyi
*/
public class ClasspathFileR... |
2e9e0d1e-37fc-4cf9-a183-0d020408cc7f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-27 22:49:55", "repo_name": "kyupid/spring-boot-qna-kyu", "sub_path": "/src/main/java/com/codessquad/qna/domain/Answer.java", "file_name": "Answer.java", "file_ext": "java", "file_size_in_byte": 1228, "line_cou... | https://github.com/kyupid/spring-boot-qna-kyu | 238 | FILENAME: Answer.java | 0.261331 | package com.codessquad.qna.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Objects;
@Entity
public class Answer extends AbstractEnt... |
d6952500-b295-4326-b312-07e4d0dda5d5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-04 05:07:57", "repo_name": "Iced-Milk-Tea/ztjschedule", "sub_path": "/springboot/scheduleapi/src/main/java/com/ztj/schedule/config/CorsConfig.java", "file_name": "CorsConfig.java", "file_ext": "java", "file_si... | https://github.com/Iced-Milk-Tea/ztjschedule | 260 | FILENAME: CorsConfig.java | 0.23793 | package com.ztj.schedule.config;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsCo... |
08aa14f7-25ce-46a1-9d60-be8481d26066 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-04-02T19:11:04", "repo_name": "kennyjoseph/cse199", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1228, "line_count": 20, "lang": "en", "doc_type": "text", "blob_i... | https://github.com/kennyjoseph/cse199 | 306 | FILENAME: README.md | 0.259826 | # cse199
Repository for "How does social media work" section of CSE 199
The main piece of this repo is ```activity.ipynb```, a self-contained tutorial on playing with the reddit API.
You'll learn how to create a reddit app and use it to scrape reddit data.
Then, you'll pull down data for a few subreddits and ask:
- ... |
7047d8c2-1891-4cea-9e68-5e9db2a11260 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-12 08:00:58", "repo_name": "fadoul1/GAB", "sub_path": "/tg.esiba.groupe2.gab.client.gui/src/tg/esiba/groupe2/gab/client/gui/TgEsibaGroupe2GabClientGui.java", "file_name": "TgEsibaGroupe2GabClientGui.java", "fi... | https://github.com/fadoul1/GAB | 253 | FILENAME: TgEsibaGroupe2GabClientGui.java | 0.268941 | /*
* 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 tg.esiba.groupe2.gab.client.gui;
import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoa... |
78a4e35f-ea86-4c42-b5da-b4527aa5537c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-24 01:44:47", "repo_name": "spectrumthunderbots/team7167_2019", "sub_path": "/src/main/java/frc/robot/subsystems/Sub_Lift.java", "file_name": "Sub_Lift.java", "file_ext": "java", "file_size_in_byte": 741, "lin... | https://github.com/spectrumthunderbots/team7167_2019 | 258 | FILENAME: Sub_Lift.java | 0.286968 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
843cabaa-8abd-4e0e-9128-26b3de63a61f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-11-01T10:11:28", "repo_name": "brettkirk/TripTracks", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1230, "line_count": 47, "lang": "en", "doc_type": "text", "blob... | https://github.com/brettkirk/TripTracks | 344 | FILENAME: README.md | 0.276691 | # TripTracks
### Description
This is a web app that produces playlists based on your location. The goal of the app is to create playlists that contain lyrics with reference to the places you are near. It will assign importance of areas based on population and distance from that city. The idea is to make an app that wi... |
52109342-bc6d-4be6-b9f5-b219e2324287 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-19 13:48:55", "repo_name": "RashidulHasanRatul/Selenium-20-days", "sub_path": "/Basic/DynamicXpath.java", "file_name": "DynamicXpath.java", "file_ext": "java", "file_size_in_byte": 1229, "line_count": 46, "lan... | https://github.com/RashidulHasanRatul/Selenium-20-days | 242 | FILENAME: DynamicXpath.java | 0.287768 | package Testing;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class DynamicXpath {
public static void main(String[] args) {
... |
cf82cb6a-f8a2-448c-b0b5-6afd0734b0d1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-03-16 04:09:43", "repo_name": "csuczh/GouDaForAndroid", "sub_path": "/GouDaForAndroid/dg/src/main/java/com/dg/app/ui/CollectionActivity.java", "file_name": "CollectionActivity.java", "file_ext": "java", "file_siz... | https://github.com/csuczh/GouDaForAndroid | 215 | FILENAME: CollectionActivity.java | 0.216012 | package com.dg.app.ui;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import com.dg.app.AppManager;
import com.dg.app.R;
import com.dg.app.fragment.CollectionFragment;
import com.umeng.message.... |
d710f11e-9f70-40c2-b20f-8c9fc487f759 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-11-13T12:40:53", "repo_name": "gitdoit/learning-springboot", "sub_path": "/spring-websocket/src/main/java/org/seefly/springwebsocket/interceptor/HandshakeInterceptor.java", "file_name": "HandshakeInterceptor.java... | https://github.com/gitdoit/learning-springboot | 231 | FILENAME: HandshakeInterceptor.java | 0.229535 | package org.seefly.springwebsocket.interceptor;
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse;
import org.springframework.http.server.ServletServerHttpRequest;
import org.springframework.stereotype.Component;
import org.springframework.web.socket.We... |
cc48cd48-8e73-4e1e-8244-68a9f09702c4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-06 10:15:03", "repo_name": "LikhanovP/s14_question", "sub_path": "/motocross/src/main/java/com/rosa/swift/core/network/json/sap/swchat/JRoom.java", "file_name": "JRoom.java", "file_ext": "java", "file_size_in_... | https://github.com/LikhanovP/s14_question | 305 | FILENAME: JRoom.java | 0.27048 | package com.rosa.swift.core.network.json.sap.swchat;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
/**
* Created by yalang on 04.12.2014.
* <p>
* ROOM_ID ZCHAT_ROOM_ID
* TOPIC CHAR100
* LAST_CHANGE TIMESTAMP
* MESSAGE_COUNT INT4
* SWIFT_CHAT ZSWIFT_CHAT
*/
public class JRoom... |
4080bcfa-088c-4bd1-99e6-1a152e62b6f9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-29 21:49:36", "repo_name": "FcoJavierSainz/mx-gas-stations-javadevday", "sub_path": "/app/src/main/java/org/javadevday/gas/app/resources/GasStationsResource.java", "file_name": "GasStationsResource.java", "fil... | https://github.com/FcoJavierSainz/mx-gas-stations-javadevday | 243 | FILENAME: GasStationsResource.java | 0.273574 | package org.javadevday.gas.app.resources;
import org.javadevday.gas.app.application.GasStationApplicationService;
import org.javadevday.gas.app.model.stations.GasStation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annota... |
848ff6d2-01b9-407f-824b-20bad544801c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2022-03-07 10:03:36", "repo_name": "cuijiabin/java8_function", "sub_path": "/src/com/thread/chapter04/MyService6.java", "file_name": "MyService6.java", "file_ext": "java", "file_size_in_byte": 1255, "line_count": 48, ... | https://github.com/cuijiabin/java8_function | 227 | FILENAME: MyService6.java | 0.243642 | package com.thread.chapter04;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class MyService6 {
private ReentrantLock lock = new ReentrantLock();
private Condition condition = lock.newCondition();
private boolea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.