id stringlengths 36 36 | meta stringlengths 429 697 | url stringlengths 27 109 | tokens int64 137 584 | domain_prefix stringlengths 16 106 | score float64 0.16 0.3 | code_content stringlengths 960 1.25k |
|---|---|---|---|---|---|---|
6e1b3560-02f6-4e2b-8cbd-a5aba783ce0f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-13 14:30:01", "repo_name": "ArnoldVadiyants/Keep_ACC_POS", "sub_path": "/app/src/main/java/com/keepaccpos/network/data/DataBanquetContent.java", "file_name": "DataBanquetContent.java", "file_ext": "java", "fil... | https://github.com/ArnoldVadiyants/Keep_ACC_POS | 291 | FILENAME: DataBanquetContent.java | 0.283781 | package com.keepaccpos.network.data;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
/**
* Created by Arnold on 20.09.2016.
*/
@Generated("org.jsonschema2pojo")
public class Dat... |
4e1e5cbd-21e8-4755-bc4e-0723ba7394b8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-07-02T03:59:08", "repo_name": "matheuscas/realworld-starter-kit", "sub_path": "/readme.md", "file_name": "readme.md", "file_ext": "md", "file_size_in_byte": 1008, "line_count": 23, "lang": "en", "doc_type": "... | https://github.com/matheuscas/realworld-starter-kit | 256 | FILENAME: readme.md | 0.198064 | # 
> ### [Sanic](https://github.com/channelcat/sanic) codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld) spec and API.
### [Demo](https://github.com/gothinkster/realworld) ... |
d89cac4e-0e47-40c9-a739-38754d215524 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-02-15 19:47:26", "repo_name": "albertlockett/atlantic-chip", "sub_path": "/src/main/java/ca/albertlockett/atlanticchip/util/HibernateUtils.java", "file_name": "HibernateUtils.java", "file_ext": "java", "file_size... | https://github.com/albertlockett/atlantic-chip | 199 | FILENAME: HibernateUtils.java | 0.250913 | package ca.albertlockett.atlanticchip.util;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* adapted from mkyong
* @author Albert.Lockett
*
*/
public class HibernateUtils {
private static final Logger logger = LoggerFacto... |
ff5253bd-b0d1-4dd9-818a-00037a50c019 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-28 22:08:51", "repo_name": "wing324/cmpe202", "sub_path": "/lab6/PackingSlip.java", "file_name": "PackingSlip.java", "file_ext": "java", "file_size_in_byte": 992, "line_count": 38, "lang": "en", "doc_type": "c... | https://github.com/wing324/cmpe202 | 299 | FILENAME: PackingSlip.java | 0.275909 |
/**
* Write a description of class PackingSlip here.
*
* @author (Min Yu)
* @version (03/14/2019)
*/
public class PackingSlip implements BillStrategy
{
@Override
public void printBill()
{
System.out.println("Patties - 1");
System.out.println();
System.out.println("Order Number: 45");
System.... |
83e2f484-0c7b-414f-9cfb-c77f057ea6fb | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-27 11:18:05", "repo_name": "july1992/VilySDK", "sub_path": "/chart/src/main/java/com/vily/chart/MyValueFormatter.java", "file_name": "MyValueFormatter.java", "file_ext": "java", "file_size_in_byte": 1087, "lin... | https://github.com/july1992/VilySDK | 257 | FILENAME: MyValueFormatter.java | 0.268941 | package com.vily.chart;
import android.util.Log;
import com.github.mikephil.charting.components.AxisBase;
import com.github.mikephil.charting.formatter.ValueFormatter;
import java.text.DecimalFormat;
/**
* * description : 年 下标
*
**/
public class MyValueFormatter extends ValueFormatter {
private static... |
04e74949-cf8a-4cb9-85ee-402fca2d48a7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-01 06:08:36", "repo_name": "ravichandrae/tmdata", "sub_path": "/src/main/java/entities/Movie.java", "file_name": "Movie.java", "file_ext": "java", "file_size_in_byte": 1163, "line_count": 62, "lang": "en", "do... | https://github.com/ravichandrae/tmdata | 260 | FILENAME: Movie.java | 0.220007 | package entities;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;
import org.mongodb.morphia.annotations.Property;
/**
* Created by renaganti on 5/18/16.
*/
@Entity("movie")
public class Movie extends BaseEntity {
@Id
@Property("_id")
private long id;
@Pro... |
69c411b2-eadb-4f08-8b7a-f671bd9494dc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-27 11:28:57", "repo_name": "hetalrathod1/OrangeHrmWebsite", "sub_path": "/src/main/java/OrangeHrm/BrowserSelector.java", "file_name": "BrowserSelector.java", "file_ext": "java", "file_size_in_byte": 1050, "lin... | https://github.com/hetalrathod1/OrangeHrmWebsite | 213 | FILENAME: BrowserSelector.java | 0.268941 | package OrangeHrm;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import java.util.concurrent.TimeUnit;
public class BrowserSelector extends Utils {
LoadProp loadProp= new LoadProp();
public void setUpBrowser()
{
String bro... |
4186c56c-2ba1-4e9d-b10d-da0fe0e2a8ca | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-03 19:02:10", "repo_name": "marlonrochaeng/webAppTest", "sub_path": "/src/test/java/pages/RegisterPage.java", "file_name": "RegisterPage.java", "file_ext": "java", "file_size_in_byte": 986, "line_count": 43, "... | https://github.com/marlonrochaeng/webAppTest | 206 | FILENAME: RegisterPage.java | 0.27048 | package pages;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import com.github.javafaker.Faker;
import maps.LoginMap;
import maps.RegisterMap;
public class Re... |
e3ab0aac-e1af-4f55-99db-f83fc5ec5fb6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-17 16:01:14", "repo_name": "Minaouazar/geststock", "sub_path": "/app/src/main/java/com/example/test2/AddActivity.java", "file_name": "AddActivity.java", "file_ext": "java", "file_size_in_byte": 1161, "line_cou... | https://github.com/Minaouazar/geststock | 205 | FILENAME: AddActivity.java | 0.264358 | package com.example.test2;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import androidx.appcompat.app.AppCompatActivity;
public class AddActivity extends AppCompatActivity {
EditText produit_title, stock_unity, stock_quantity;
Button add_... |
54f05d24-473c-49cc-afb4-9cad53bd2b00 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-02-28 04:31:11", "repo_name": "jackkoppa/vueconf-2020-ts-api-demo", "sub_path": "/src/main/java/candidate/Candidate.java", "file_name": "Candidate.java", "file_ext": "java", "file_size_in_byte": 1162, "line_count... | https://github.com/jackkoppa/vueconf-2020-ts-api-demo | 219 | FILENAME: Candidate.java | 0.26588 | package candidate;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity // This tel... |
a84c6569-3520-474a-8682-70c81927fd1c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-27 02:46:01", "repo_name": "pujaesprojects/modval-servicio-pagos", "sub_path": "/modval-gas/src/main/java/edu/puj/modval/ms/feign/model/BalanceResponse.java", "file_name": "BalanceResponse.java", "file_ext": "... | https://github.com/pujaesprojects/modval-servicio-pagos | 256 | FILENAME: BalanceResponse.java | 0.224055 | package edu.puj.modval.ms.feign.model;
import org.apache.commons.lang3.builder.ToStringBuilder;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(
name = "ResultadoConsulta",
namespace = "http://www.servicios.co/pagos/schemas"
)
public class Balance... |
96632d09-6863-4105-b001-a4ffd11e7c6d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-25 09:14:42", "repo_name": "sonweizhang/was-pay-service", "sub_path": "/src/main/java/com/pay/common/utils/GetClient.java", "file_name": "GetClient.java", "file_ext": "java", "file_size_in_byte": 1113, "line_c... | https://github.com/sonweizhang/was-pay-service | 307 | FILENAME: GetClient.java | 0.249447 | package com.pay.common.utils;
import javax.servlet.http.HttpServletRequest;
/**
* GetClient:{获取客户端请求信息}
* date: 2015-8-23 下午09:58:57
* @author LiuJiangTao
* @version
*/
public class GetClient {
/**
* IpAddr:(获取客户端IP信息).
* @author LiuJiangTao
* @param request
* @return
*/
public static String IpAddr... |
56239ebb-8f39-4315-9493-a49d0f9c8a32 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-08-01 14:11:01", "repo_name": "Myst3ryX/FinanceManager", "sub_path": "/app/src/main/java/com/myst3ry/financemanager/ui/activity/about/AboutPresenter.java", "file_name": "AboutPresenter.java", "file_ext": "java", ... | https://github.com/Myst3ryX/FinanceManager | 206 | FILENAME: AboutPresenter.java | 0.27513 | package com.myst3ry.financemanager.ui.activity.about;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import com.myst3ry.financemanager.BuildConfig;
import com.myst3ry.financemanager.ui.activity.BasePresenter;
public final class AboutPresenter extends BasePresenter<AboutView> {
p... |
a69a774e-22bc-4880-8e6c-83f39dcbc85c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-07-12T20:34:47", "repo_name": "whistler/Fatsecret", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1073, "line_count": 47, "lang": "en", "doc_type": "text", "blob_i... | https://github.com/whistler/Fatsecret | 237 | FILENAME: README.md | 0.242206 | FatSecret Gem
=============
Introduction
------------
Access nutritional information from FatSecret. You need to register with FatSecret to get
a key and secret. At the moment you can search for food and get its nutritional information,
however FatSecret provides much more then that, which has not been implemented in ... |
ef630055-1405-40f7-812d-62efd6f5ae3b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-04-11 16:38:11", "repo_name": "stevenzearo/iblog", "sub_path": "/common/common-lib/src/main/java/app/util/PasswordEncryptHelper.java", "file_name": "PasswordEncryptHelper.java", "file_ext": "java", "file_size_in_... | https://github.com/stevenzearo/iblog | 195 | FILENAME: PasswordEncryptHelper.java | 0.274351 | package app.util;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* @author steve
*/
public class PasswordEncryptHelper {
public static String encryptPassword(String originPassword, String salt, int iterated_times) throws PasswordE... |
d424ad63-ac7a-42ed-a956-c0af24a62627 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-04-25T18:23:59", "repo_name": "noahgibbs/codefolio_octopress", "sub_path": "/source/_posts/2013-03-07-Could-Not-Fetch-Specs-From-https-rubygems-org.markdown", "file_name": "2013-03-07-Could-Not-Fetch-Specs-Fr... | https://github.com/noahgibbs/codefolio_octopress | 314 | FILENAME: 2013-03-07-Could-Not-Fetch-Specs-From-https-rubygems-org.markdown | 0.245085 | ---
layout: post
title: "Could Not Fetch Specs From https://rubygems.org/"
date: 2013-03-07 18:32
comments: true
published: true
categories: [ruby,rvm,openssl]
meta:
disqus_id: "http://codefol.io/posts/35"
---
Are you getting this error from Bundler?
Short version: if using rvm, do this:
rvm pkg install openssl
... |
94f86ddb-88ce-40a5-8e51-469668d05e18 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-11-10T09:33:38", "repo_name": "SmartsquareGmbH/solid-principles-kata", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1054, "line_count": 20, "lang": "en", "doc_typ... | https://github.com/SmartsquareGmbH/solid-principles-kata | 222 | FILENAME: README.md | 0.282988 | # Kotlin SOLID Principles
In this repository you'll find three payment gateway implementation with a bunch of code smells.
They could be code you inherited from a legacy code-base. Now you want to write unit tests for them, and that is harder than it needs to be.
The gateways fail to follow at least two of the SOLID ... |
6a651581-f4c3-4930-a21e-52ea81903ddd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-14 10:51:14", "repo_name": "TiveCS/ArdGuild", "sub_path": "/ArdGuild/src/team/creativecode/ardguild/manager/events/GuildCreateEvent.java", "file_name": "GuildCreateEvent.java", "file_ext": "java", "file_size_i... | https://github.com/TiveCS/ArdGuild | 197 | FILENAME: GuildCreateEvent.java | 0.239349 | package team.creativecode.ardguild.manager.events;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import team.creativecode.ardguild.manager.Guild;
public class GuildCreateEvent extends Event implements Cancellable {
... |
9e89523d-1943-4031-8780-cd77eb5643a4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-05 10:01:49", "repo_name": "huaxindeng/attendance_management", "sub_path": "/src/main/java/ncu/huaxin/attendancemanagement/service/impl/EmployeeServiceImpl.java", "file_name": "EmployeeServiceImpl.java", "file... | https://github.com/huaxindeng/attendance_management | 226 | FILENAME: EmployeeServiceImpl.java | 0.228156 | package ncu.huaxin.attendancemanagement.service.impl;
import ncu.huaxin.attendancemanagement.entity.Employee;
import ncu.huaxin.attendancemanagement.mapper.EmployeeMapper;
import ncu.huaxin.attendancemanagement.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfra... |
d33b2420-ac71-4188-9e49-d42d53b6c62e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-24 07:12:07", "repo_name": "JosipBaketaric/NickChat", "sub_path": "/NickChat/app/src/main/java/hr/jbaketaricetfos/nickchat/Activitys/CloudMagicCommunication/ShareMyOpinion.java", "file_name": "ShareMyOpinion.j... | https://github.com/JosipBaketaric/NickChat | 263 | FILENAME: ShareMyOpinion.java | 0.285372 | package hr.jbaketaricetfos.nickchat.Activitys.CloudMagicCommunication;
import com.android.volley.Response;
import com.android.volley.toolbox.StringRequest;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Josip on 05.05.2016..
*/
public class ShareMyOpinion extends StringRequest{
private static... |
8c41fc90-f032-4622-b8a5-fbef7e9ac164 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-23 22:18:33", "repo_name": "seifeddinhaj/gest_etudiant", "sub_path": "/src/gestetudiant/MaFonction.java", "file_name": "MaFonction.java", "file_ext": "java", "file_size_in_byte": 989, "line_count": 41, "lang":... | https://github.com/seifeddinhaj/gest_etudiant | 198 | FILENAME: MaFonction.java | 0.280616 | /*
* 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 gestetudiant;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;... |
3b659eea-0d99-4037-865b-f042a26c930d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-18T07:13:41", "repo_name": "sunlock/keycloak", "sub_path": "/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/broker/KcOidcBrokerVaultTest.java", "file_name": "KcOidcBrokerVault... | https://github.com/sunlock/keycloak | 220 | FILENAME: KcOidcBrokerVaultTest.java | 0.240775 | package org.keycloak.testsuite.broker;
import org.jboss.arquillian.container.test.api.ContainerController;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.junit.After;
import org.junit.Before;
import org.keycloak.testsuite.util.VaultUtils;
/**
* @author Martin Kanis <mkanis@redhat.com>
*/
public... |
3fb84d15-28f6-40d1-889f-26b8a2b292aa | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-07-13T18:50:42", "repo_name": "tecnomage/TitaTrader", "sub_path": "/TitaTrader/src/main/java/br/com/TitaTrader/models/TraderDao.java", "file_name": "TraderDao.java", "file_ext": "java", "file_size_in_byte": 977, ... | https://github.com/tecnomage/TitaTrader | 176 | FILENAME: TraderDao.java | 0.253861 | package br.com.TitaTrader.models;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.sp... |
48308b96-de6f-4b4f-a7da-b16cabd2b1e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-02 06:45:17", "repo_name": "Yushijvjin/Yunifang", "sub_path": "/app/src/main/java/com/bwie/xiaobing/yunifang/adapter/MyPagerAdapter.java", "file_name": "MyPagerAdapter.java", "file_ext": "java", "file_size_in_... | https://github.com/Yushijvjin/Yunifang | 223 | FILENAME: MyPagerAdapter.java | 0.240775 | package com.bwie.xiaobing.yunifang.adapter;
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
/**
* Created by 李小兵 on 2016/11/30.
*/
public class MyPagerAdapter extends PagerAdapter {
private ArrayList<View> slist;
public MyP... |
7deec444-2627-4efb-b3ff-f61197b4df68 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-12 11:31:14", "repo_name": "ItJava/RobotSSM", "sub_path": "/src/main/java/com/iot/handler/publisher/Publisher.java", "file_name": "Publisher.java", "file_ext": "java", "file_size_in_byte": 1007, "line_count": ... | https://github.com/ItJava/RobotSSM | 223 | FILENAME: Publisher.java | 0.274351 | package com.iot.handler.publisher;
import com.iot.handler.subscriber.Subcriber;
import com.ssm.promotion.core.service.impl.MqttUserServiceImpl;
import org.springframework.core.ResolvableType;
import java.lang.reflect.ParameterizedType;
public abstract class Publisher<Msg> {
@SuppressWarnings("WeakerAccess")
... |
58f96d9d-9886-4d33-9b63-159fea88d3b0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-02 05:23:48", "repo_name": "GANGANI/custom-introspection-dataprovider", "sub_path": "/src/main/java/org/wso2/carbon/identity/custom/introspection/dataprovider/internal/ServiceComponent.java", "file_name": "Ser... | https://github.com/GANGANI/custom-introspection-dataprovider | 215 | FILENAME: ServiceComponent.java | 0.239349 | package org.wso2.carbon.identity.custom.introspection.dataprovider.internal;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.osgi.framework.BundleContext;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
imp... |
ffe264eb-d5ac-4f3c-a1f9-e2ca106be198 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-18 08:14:09", "repo_name": "vinodvpillai/springboot-cqrs-two-database-command", "sub_path": "/src/main/java/com/vinod/cqrs/command/event/CustomerCreatedEvent.java", "file_name": "CustomerCreatedEvent.java", "f... | https://github.com/vinodvpillai/springboot-cqrs-two-database-command | 186 | FILENAME: CustomerCreatedEvent.java | 0.236516 | package com.vinod.cqrs.command.event;
import com.vinod.cqrs.command.service.IPublisherService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
@Service
@Slf4j
publ... |
272e9773-613e-46b8-93b9-ce2262d7e7dd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-05-23T21:38:26", "repo_name": "Almostalantern/Employee_Team_Gen", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1165, "line_count": 42, "lang": "en", "doc_type": "... | https://github.com/Almostalantern/Employee_Team_Gen | 280 | FILENAME: README.md | 0.246533 | # Employee_Team_Gen

# Table of Contents
*[Description](#description)
*[Installation Instructions](#installationinstructions)
*[Contribution Guidelines](#contributionguidelines)
*[Testing Information](#testinginformation)
*[Con... |
bd2de9e4-5f3e-48d3-983b-6ba9af131d26 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-16 06:21:05", "repo_name": "tpmiage/altea_seance1", "sub_path": "/src/main/java/univ/lille1/miagem2/VidePanier.java", "file_name": "VidePanier.java", "file_ext": "java", "file_size_in_byte": 1162, "line_count"... | https://github.com/tpmiage/altea_seance1 | 254 | FILENAME: VidePanier.java | 0.273574 | package univ.lille1.miagem2;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import java... |
0fa32f64-5bca-4b35-bae4-5cb9713bfe5c | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-10 06:11:31", "repo_name": "midhun288622/Selenium_Android", "sub_path": "/src/main/java/com/scs/commons/XLSReader.java", "file_name": "XLSReader.java", "file_ext": "java", "file_size_in_byte": 998, "line_count... | https://github.com/midhun288622/Selenium_Android | 191 | FILENAME: XLSReader.java | 0.272799 | package com.scs.commons;
import com.codoid.products.exception.FilloException;
import com.codoid.products.fillo.Connection;
import com.codoid.products.fillo.Fillo;
import com.codoid.products.fillo.Recordset;
import com.scs.driverfactory.BaseTest;
public class XLSReader {
private final Fillo fillo;
... |
90a2b7b7-0687-4c8d-95b5-fe7bf36e27a2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-05-30 08:26:02", "repo_name": "xinyoumotong/TestMy", "sub_path": "/app/src/main/java/hotP2B/WageGainTools/android/ui/fragment/AppIntroduceFragment.java", "file_name": "AppIntroduceFragment.java", "file_ext": "jav... | https://github.com/xinyoumotong/TestMy | 233 | FILENAME: AppIntroduceFragment.java | 0.226784 | package hotP2B.WageGainTools.android.ui.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import hotP2B.WageGainTools.android.R;
/**
* A simple {@link Fragment} subclass.
*/
public class AppIntro... |
be94405b-dd5d-4a56-b66f-6bb0616fdfe2 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-22 00:45:25", "repo_name": "michelFB/novoagro-vulneravel", "sub_path": "/src/SERVLET_COMENTARIOS.java", "file_name": "SERVLET_COMENTARIOS.java", "file_ext": "java", "file_size_in_byte": 974, "line_count": 34, ... | https://github.com/michelFB/novoagro-vulneravel | 179 | FILENAME: SERVLET_COMENTARIOS.java | 0.255344 | import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import projeto.FormWriter;
@WebServlet("/comentarios")
publ... |
8472db38-61a9-4bbb-a999-f51743a97a32 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-01-30 14:45:00", "repo_name": "henrique-vieira/workspaces", "sub_path": "/workspace_MD/Sistemaxm/src/main/java/br/com/sistemaxm/converter/FornecedorConverter.java", "file_name": "FornecedorConverter.java", "file_... | https://github.com/henrique-vieira/workspaces | 262 | FILENAME: FornecedorConverter.java | 0.287768 | package br.com.sistemaxm.converter;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
import javax.persistence.EntityManager;
import br.com.sistemaxm.entidades.Fornecedor;
import br.com.sistemaxm.reposito... |
c2588ce6-dd00-48b9-89d4-8ff20dd73637 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-31 01:40:07", "repo_name": "yingkun1/SpringCloudDemo-", "sub_path": "/article-service/src/main/java/com/article/controller/ProducerService.java", "file_name": "ProducerService.java", "file_ext": "java", "file_... | https://github.com/yingkun1/SpringCloudDemo- | 191 | FILENAME: ProducerService.java | 0.262842 | package com.article.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframe... |
143c8a9b-84a1-46ef-8373-f69bd870cd2f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-17 13:54:16", "repo_name": "ZahraAyyubi/Seminar-management", "sub_path": "/src/Seminar.java", "file_name": "Seminar.java", "file_ext": "java", "file_size_in_byte": 1097, "line_count": 30, "lang": "en", "doc_ty... | https://github.com/ZahraAyyubi/Seminar-management | 209 | FILENAME: Seminar.java | 0.283781 | import java.util.ArrayList;
import java.util.Calendar;
public class Seminar {
String subject;
String providerName;
Calendar startTime,endingTime;
int capacity,remainingCapacity;
ArrayList<Student> students=new ArrayList<Student>();
//constructor for the time we create new seminar when reading... |
97268e10-ed02-43c6-abfd-c998f9717d16 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-18 00:03:00", "repo_name": "LCQ622/Android__Exercise", "sub_path": "/Test09/app/src/main/java/cn/mcandroid/test09/FourthActivity.java", "file_name": "FourthActivity.java", "file_ext": "java", "file_size_in_byt... | https://github.com/LCQ622/Android__Exercise | 198 | FILENAME: FourthActivity.java | 0.250913 | package cn.mcandroid.test09;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class FourthActivity extends Activity {
private Button fourth_button;
@Override
prote... |
6d13eba0-3e8e-480e-9fac-b654aa8677f1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-09-13T04:25:35", "repo_name": "thealternator89/ytpm", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1163, "line_count": 26, "lang": "en", "doc_type": "text", "blob... | https://github.com/thealternator89/ytpm | 250 | FILENAME: README.md | 0.2227 | # YTPM
YTPM provides a player which can be controlled by multiple users to provide music for gatherings.
This project is in three parts:
* A NodeJS-based server for managing users, and orchestrating queues
* An Angular-based mobile client for interacting with the player
* A raw javascript client for displaying the p... |
5dd079b5-7fe6-4351-85f5-e64253e04daf | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-07-18 11:39:34", "repo_name": "SIX-TIM/timapi", "sub_path": "/doc/java/res/code/simpleTrx_async.java", "file_name": "simpleTrx_async.java", "file_ext": "java", "file_size_in_byte": 1055, "line_count": 32, "lang":... | https://github.com/SIX-TIM/timapi | 257 | FILENAME: simpleTrx_async.java | 0.29584 | package simpletransaction;
import com.six.timapi.Terminal;
import com.six.timapi.TerminalSettings;
import com.six.timapi.constants.TransactionType;
import com.six.timapi.Amount;
import com.six.timapi.constants.Currency;
public class SimpleTransaction {
public static void main(String[] args) {
// Create initial... |
10d1854f-b576-4507-ba1c-fa74212f223a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-31 23:25:33", "repo_name": "douglasselph/weatherhunt", "sub_path": "/WeatherHunt/app/src/main/java/com/dugsolutions/weatherhunt/MyApplication.java", "file_name": "MyApplication.java", "file_ext": "java", "file... | https://github.com/douglasselph/weatherhunt | 243 | FILENAME: MyApplication.java | 0.293404 | package com.dugsolutions.weatherhunt;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import com.dugsolutions.weatherhunt.data.BitmapHelper;
import timber.log.Timber;
/**
* Created by dug on 7/19/... |
97e87767-521c-4791-bd12-20f6218e7da0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-29 12:17:51", "repo_name": "Alisa1106/cloud.google.com", "sub_path": "/src/main/java/org/cloud_google/elements/Dropdown.java", "file_name": "Dropdown.java", "file_ext": "java", "file_size_in_byte": 975, "line_... | https://github.com/Alisa1106/cloud.google.com | 216 | FILENAME: Dropdown.java | 0.293404 | package org.cloud_google.elements;
import lombok.extern.log4j.Log4j;
import org.cloud_google.utils.JsAction;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
@Log4j
public class Dropdown {
WebDriver driver;
String label;
JsAction jsAction;
public Dropdown(WebDriver driver, String... |
1b5b50db-8f09-4dda-809a-0f18c3626394 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-04-08 19:10:25", "repo_name": "Prabhat789/Personal_LP", "sub_path": "/app/src/main/java/com/mobisys/aspr/widgets/CustomEditText.java", "file_name": "CustomEditText.java", "file_ext": "java", "file_size_in_byte": ... | https://github.com/Prabhat789/Personal_LP | 220 | FILENAME: CustomEditText.java | 0.246533 | package com.mobisys.aspr.widgets;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.EditText;
import com.mobisys.aspr.util.ApplicationConstant;
/**
* Created by ubuntu1 on 23/2/16.
*/
public class CustomEditText... |
94522ba1-cff7-41f5-8995-c4c54f284ac0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-04 22:48:55", "repo_name": "geleouet/esgi-socket", "sub_path": "/src/main/java/me/egaetan/socket/MainServer.java", "file_name": "MainServer.java", "file_ext": "java", "file_size_in_byte": 1162, "line_count": 4... | https://github.com/geleouet/esgi-socket | 250 | FILENAME: MainServer.java | 0.279828 | package me.egaetan.socket;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;
public class MainServer {
public static void main(String[] args) throws IOExce... |
296222dd-027b-42cb-b08c-b85bf83b17a0 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-15 18:37:29", "repo_name": "bilan-claudiu/SlaviciApp", "sub_path": "/src/main/java/com/slavicifinal/demo/model/Tempnote.java", "file_name": "Tempnote.java", "file_ext": "java", "file_size_in_byte": 985, "line_... | https://github.com/bilan-claudiu/SlaviciApp | 242 | FILENAME: Tempnote.java | 0.282196 | package com.slavicifinal.demo.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Date;
import java.sql.Time;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "tempnote")
public class... |
09f100c8-9db0-4f56-8e82-3ef6338f4410 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-14 16:48:43", "repo_name": "mcc/springsecurityboilerplat", "sub_path": "/src/main/java/hk/mcc/sample/spring/HelloController.java", "file_name": "HelloController.java", "file_ext": "java", "file_size_in_byte": ... | https://github.com/mcc/springsecurityboilerplat | 184 | FILENAME: HelloController.java | 0.218669 | package hk.mcc.sample.spring;
import hk.mcc.sample.spring.security.SampleUserDetails;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.... |
f83c40c0-ebf9-4b31-9e8e-91a27ac7f802 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-23 19:30:29", "repo_name": "shanky474/LibraryManagementSystem", "sub_path": "/src/main/java/controller/AddBook.java", "file_name": "AddBook.java", "file_ext": "java", "file_size_in_byte": 1088, "line_count": 3... | https://github.com/shanky474/LibraryManagementSystem | 206 | FILENAME: AddBook.java | 0.293404 | package controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import dao.DaoImpl;
import model.Book;
import model.User;
p... |
49038e4d-6279-4ad2-bff8-5c66abf608d1 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-13 00:37:40", "repo_name": "kakacordovil/javabank", "sub_path": "/src/test/java/org/academiadecodigo/javabank/controller/rest/RestIndexControllerTest.java", "file_name": "RestIndexControllerTest.java", "file_e... | https://github.com/kakacordovil/javabank | 204 | FILENAME: RestIndexControllerTest.java | 0.268941 | package org.academiadecodigo.javabank.controller.rest;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.MockitoAnnotations;
import org.springframework.http.MediaType;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup... |
0cf89e52-5f1f-401d-9de0-d02eecb86b12 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-12 05:38:01", "repo_name": "ambreen2006/UdacityWIP", "sub_path": "/MoviesAndFriend/app/src/main/java/moviesandfriends/ambreen/com/exceptions/SyncException.java", "file_name": "SyncException.java", "file_ext": ... | https://github.com/ambreen2006/UdacityWIP | 266 | FILENAME: SyncException.java | 0.277473 | /*
* Copyright (C) 2016 Ambreen Haleem (ambreen2006@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
5ea1b262-2d53-4fbb-8160-4ec25c8f9157 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-17 18:50:40", "repo_name": "smiiguel/SuperMario", "sub_path": "/Super Mario/src/dev/andrei/mario/entity/Entity.java", "file_name": "Entity.java", "file_ext": "java", "file_size_in_byte": 975, "line_count": 52,... | https://github.com/smiiguel/SuperMario | 215 | FILENAME: Entity.java | 0.262842 | package dev.andrei.mario.entity;
import java.awt.Graphics;
import java.awt.Rectangle;
import dev.andrei.mario.game.Handler;
public abstract class Entity {
protected int x, y;
protected int width, height;
protected Rectangle bounds = new Rectangle();
protected Handler handler;
protected boolean sol... |
f1a57437-e611-4ee9-bca1-ddb9a2cd7946 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-03-31 21:55:13", "repo_name": "AlexNayl/csci2020u_AlexNayl", "sub_path": "/lab04/src/lab04/Controller.java", "file_name": "Controller.java", "file_ext": "java", "file_size_in_byte": 1118, "line_count": 38, "lang"... | https://github.com/AlexNayl/csci2020u_AlexNayl | 213 | FILENAME: Controller.java | 0.246533 | package lab04;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.*;
import java.time.LocalDate;
public class Controller {
@FXML private TextField usernameField;
@FXML private PasswordField passwordField;
@FXML private TextField nameField;
@FXML privat... |
c30b90c4-5c87-40a5-874a-886f5bc46753 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-30 09:04:24", "repo_name": "jeddden/managers-api", "sub_path": "/src/main/java/com/yunku/demo/common/constant/ResponseStatusEnum.java", "file_name": "ResponseStatusEnum.java", "file_ext": "java", "file_size_in... | https://github.com/jeddden/managers-api | 390 | FILENAME: ResponseStatusEnum.java | 0.225417 | package com.yunku.demo.common.constant;
/**
* 返回结果状态封装
*
* @author Jeddden
* @create 2019-08-19 20:53
*/
public enum ResponseStatusEnum {
SECCESS_STATUS_DEFAULT(200, "请求成功"),
INVLIDE_DATE_STRING(400, "输入日期格式不对"),
FILE_READING_ERROR(500, "文件读取出错"),
FILE_NOT_FOUND(404, "文件未找到"),
REQUESTED_RESOUR... |
ad7735e3-dfa7-4105-bf92-3254a6c068c5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-02 23:05:35", "repo_name": "insanecoding/data-mining-tool", "sub_path": "/src/main/java/com/me/core/domain/entities/TextFromTag.java", "file_name": "TextFromTag.java", "file_ext": "java", "file_size_in_byte": ... | https://github.com/insanecoding/data-mining-tool | 257 | FILENAME: TextFromTag.java | 0.279042 | package com.me.core.domain.entities;
import lombok.*;
import javax.persistence.*;
import java.io.Serializable;
import static javax.persistence.GenerationType.IDENTITY;
@Entity
@Table(name = "text_from_tag")
@Data
@NoArgsConstructor
@RequiredArgsConstructor
@EqualsAndHashCode(exclude = "entryID")
public class TextF... |
3d9cd65d-a34f-4c44-9ec1-a8c915cde51d | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-03-28T23:37:10", "repo_name": "kanjirz50/viet-morphological-analysis-crf", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1220, "line_count": 59, "lang": "en", "doc... | https://github.com/kanjirz50/viet-morphological-analysis-crf | 411 | FILENAME: README.md | 0.279828 | # Vietnamese Morphological Anlyzer with CRF
Vietnamese morphological analysis with using CRF
## Requirements
* Python 2
* [CRF++ 0.58](https://taku910.github.io/crfpp/)
* [model file](https://drive.google.com/open?id=0BxSyNdemluFBcmdqRjk0OWo2eE0)
## Usage
Please download [model file](https://drive.google.com/open?id... |
e43e73b3-53fd-430a-824d-0ed281cd78bc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-08-01T00:36:56", "repo_name": "xiaopc/blog", "sub_path": "/source/_posts/从零开始的前端-i18n.md", "file_name": "从零开始的前端-i18n.md", "file_ext": "md", "file_size_in_byte": 1944, "line_count": 52, "lang": "zh", "doc_typ... | https://github.com/xiaopc/blog | 521 | FILENAME: 从零开始的前端-i18n.md | 0.292595 | ---
title: 从零开始的前端 i18n
categories:
- 前端
date: 2020-06-22 11:57:36
---
## 0. 零
internationalization, 抛去首尾是 18 个字母。
<!--more-->
## 1. 实现的基础
在后端做 i18n 时一般是通过检查 HTTP 头 `Accept-Language` 来判断语言的。(也有加 IP 判断什么的那种)
前端没法读到这个请求头,而是通过 `navigator.language` 返回一个首选语言,此外还有 `navigator.languages`(实验性)提供如 `Accept-Language` 那样的语言... |
43ab4407-ea67-4aac-b90d-ba6c8214d6fd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-09 08:36:36", "repo_name": "BorjaMateo95/libreria-prueba", "sub_path": "/prueba/src/main/java/com/example/prueba/DatabaseStorageDefault.java", "file_name": "DatabaseStorageDefault.java", "file_ext": "java", "f... | https://github.com/BorjaMateo95/libreria-prueba | 184 | FILENAME: DatabaseStorageDefault.java | 0.236516 | package com.example.prueba;
import android.content.Context;
import android.database.Cursor;
public class DatabaseStorageDefault implements DatabaseStorageInterface {
private DatabaseHelper databaseHelper;
private Context context;
public DatabaseStorageDefault(Context context) {
this.context = c... |
52d190d3-7ac7-4ade-9c47-8ba8a4e244cd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-17 11:50:02", "repo_name": "socialsoftware/mono2micro", "sub_path": "/backend/src/main/java/pt/ist/socialsoftware/mono2micro/operation/transfer/TransferOperation.java", "file_name": "TransferOperation.java", "... | https://github.com/socialsoftware/mono2micro | 232 | FILENAME: TransferOperation.java | 0.249447 | package pt.ist.socialsoftware.mono2micro.operation.transfer;
import pt.ist.socialsoftware.mono2micro.operation.Operation;
public class TransferOperation extends Operation {
public static final String TRANSFER_OPERATION = "TransferOperation";
protected String fromCluster;
protected String toCluster;
pr... |
70b01dca-9149-4bac-a46f-255c8fe57053 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-07-17 07:59:52", "repo_name": "jsoncc/weshop-houtai", "sub_path": "/src/main/java/cn/jsoncc/service/sys/impl/MenuServiceImpl.java", "file_name": "MenuServiceImpl.java", "file_ext": "java", "file_size_in_byte": 12... | https://github.com/jsoncc/weshop-houtai | 288 | FILENAME: MenuServiceImpl.java | 0.290981 | package cn.jsoncc.service.sys.impl;
import cn.jsoncc.bean.Menu;
import cn.jsoncc.bean.TreeMenu;
import cn.jsoncc.dao.sys.MenuDao;
import cn.jsoncc.service.sys.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Iterator;
import ja... |
a7cb5644-fdce-4642-8482-f1f70d5b4478 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-15 06:35:19", "repo_name": "eric581/Atms", "sub_path": "/src/test/java/com/demo/service/ShiroTest.java", "file_name": "ShiroTest.java", "file_ext": "java", "file_size_in_byte": 1010, "line_count": 37, "lang": ... | https://github.com/eric581/Atms | 211 | FILENAME: ShiroTest.java | 0.233706 | package com.demo.service;
import junit.framework.TestCase;
import org.apache.log4j.Logger;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.config.IniSecurityManagerFactory;
import org.apache.shiro.mgt.SecurityManager;
import org.apache.shiro.subject.Subject;
import org.apache.shiro.util.Factory;
/**
*... |
6bc35807-54f0-4052-900a-34cce9648e85 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-06-22 15:11:42", "repo_name": "pkormoczi/beer-store", "sub_path": "/beer-store-application/src/test/java/dev/ronin/demo/beerstore/CustomersIT.java", "file_name": "CustomersIT.java", "file_ext": "java", "file_size... | https://github.com/pkormoczi/beer-store | 218 | FILENAME: CustomersIT.java | 0.262842 | package dev.ronin.demo.beerstore;
import dev.ronin.demo.beerstore.base.IntegrationTest;
import dev.ronin.demo.beerstore.domain.customer.Customers;
import dev.ronin.demo.beerstore.domain.customer.data.CustomerData;
import dev.ronin.demo.beerstore.domain.customer.value.Address;
import org.junit.jupiter.api.DisplayName;
... |
d0c90263-5a6b-4356-aeaa-63c3b72e5b46 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-20 09:21:34", "repo_name": "srati15/sax-l", "sub_path": "/src/main/java/security/AdminAuthenticationFilter.java", "file_name": "AdminAuthenticationFilter.java", "file_ext": "java", "file_size_in_byte": 1155, "... | https://github.com/srati15/sax-l | 230 | FILENAME: AdminAuthenticationFilter.java | 0.285372 | package security;
import datatypes.user.User;
import enums.UserType;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@WebFilter(filterName = "AdminAuthenticationFilter", urlPatt... |
bd5a4e0a-01d3-4c31-8e79-fe383c04582f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-16 10:36:39", "repo_name": "karoltylenda/copiers-services-corp-web-app", "sub_path": "/src/main/java/com/tytanisukcesu/copiers/dto/ContractDto.java", "file_name": "ContractDto.java", "file_ext": "java", "file_... | https://github.com/karoltylenda/copiers-services-corp-web-app | 221 | FILENAME: ContractDto.java | 0.262842 | package com.tytanisukcesu.copiers.dto;
import com.fasterxml.jackson.annotation.*;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Set;
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
... |
6853b234-c293-4a8e-b7f3-5f00404919b3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-03 12:26:49", "repo_name": "josuetm1/lightSensor", "sub_path": "/mobile/src/main/java/com/example/josue/lightsensor/DeviceService.java", "file_name": "DeviceService.java", "file_ext": "java", "file_size_in_byt... | https://github.com/josuetm1/lightSensor | 233 | FILENAME: DeviceService.java | 0.268941 | package com.example.josue.lightsensor;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;
import android.widget.Toast;
/**
* Created by Josue on 16/04/17.
*/
public class DeviceService extends Service {
Devi... |
5d4c2b9e-905e-4f22-920b-fb923108634a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-02-08 16:33:04", "repo_name": "mykopoctc/SpringBoard", "sub_path": "/src/main/java/kr/ac/kopo/ctc/spring/board/web/UserController.java", "file_name": "UserController.java", "file_ext": "java", "file_size_in_byte"... | https://github.com/mykopoctc/SpringBoard | 248 | FILENAME: UserController.java | 0.264358 | package kr.ac.kopo.ctc.spring.board.web;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
... |
8efd57b5-5c74-4c0c-8c12-29740be8a4a7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-23 17:08:13", "repo_name": "hfgbarrigas/statsd-statful-exporter", "sub_path": "/src/main/java/io/hfbarrigas/config/Mapping.java", "file_name": "Mapping.java", "file_ext": "java", "file_size_in_byte": 1010, "li... | https://github.com/hfgbarrigas/statsd-statful-exporter | 189 | FILENAME: Mapping.java | 0.214691 | package io.hfbarrigas.config;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Arrays;
import java.util.Map;
@Getter
@Setter
@ToString
@EqualsAndHashCode
public class Mapping {
public enum ... |
0ca35731-fb89-4e2b-8d8f-4508f30802c9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-09-19 07:00:03", "repo_name": "wngjian/MyFinancial", "sub_path": "/src/cn/wang/financial/service/impl/UserServiceImpl.java", "file_name": "UserServiceImpl.java", "file_ext": "java", "file_size_in_byte": 1068, "li... | https://github.com/wngjian/MyFinancial | 216 | FILENAME: UserServiceImpl.java | 0.258326 | package cn.wang.financial.service.impl;
import cn.wang.financial.entities.User;
import cn.wang.financial.repositiory.UserRepository;
import cn.wang.financial.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
... |
b9281350-7721-4fbf-bb1c-07abd47ed3fd | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-26 14:28:48", "repo_name": "mars22716543/party", "sub_path": "/src/com/gw/zhsq/web/service/impl/WGYServiceImpl.java", "file_name": "WGYServiceImpl.java", "file_ext": "java", "file_size_in_byte": 1234, "line_co... | https://github.com/mars22716543/party | 342 | FILENAME: WGYServiceImpl.java | 0.292595 | package com.gw.zhsq.web.service.impl;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;
import com.gw.base.exception.OtherException;
import com.gw.zhsq.web.call.WGYClientCall;
import com.gw.zhsq.web.service.WGYService;
/**
* 网格员... |
ed5393b3-9926-4dac-ba08-801dd3616bb3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-04-28 02:20:11", "repo_name": "panjie01/crm", "sub_path": "/crm_demo/src/main/java/com/crm/controller/WenXinController.java", "file_name": "WenXinController.java", "file_ext": "java", "file_size_in_byte": 1220, "... | https://github.com/panjie01/crm | 233 | FILENAME: WenXinController.java | 0.217338 | package com.crm.controller;
import com.crm.service.IndexService;
import com.crm.util.SecurityUtil;
import com.crm.util.WeiXinUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.... |
175fe099-839a-48d7-8aa1-38d899caa3e5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-28 11:16:57", "repo_name": "icecoldgeiten/nerdy-delivery", "sub_path": "/src/main/java/org/openjfx/Sidebar.java", "file_name": "Sidebar.java", "file_ext": "java", "file_size_in_byte": 1233, "line_count": 58, "... | https://github.com/icecoldgeiten/nerdy-delivery | 257 | FILENAME: Sidebar.java | 0.26588 | package org.openjfx;
import com.dao.AdminDao;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.BorderPane;
import java.io.IOException;
import java.util.Objects;
public clas... |
e08bce12-90c6-40a7-b4ff-78f808b5f53b | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-10-02T13:04:29", "repo_name": "moldovanAndrei/gba-seminar-twi-trends", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1059, "line_count": 23, "lang": "en", "doc_typ... | https://github.com/moldovanAndrei/gba-seminar-twi-trends | 284 | FILENAME: README.md | 0.213377 | # gba-seminar-twi-trends
Demo application for Apache Storm and Heron used for GBA Seminar 2017
Building and running in local mode:
1. Insert your Twitter/Bing credentials in com.twitrends.util.TwitterCredentials
2. Build the project (mvn install)
3. Run com.twitrends.RunTopology to test that the app is running in loc... |
e03e1740-d1cc-4ab4-9cce-ccccdc60a848 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-25 16:00:05", "repo_name": "TrebitschTheReal/CarSalon", "sub_path": "/src/carSalon/controller/UploadServlet.java", "file_name": "UploadServlet.java", "file_ext": "java", "file_size_in_byte": 1220, "line_count"... | https://github.com/TrebitschTheReal/CarSalon | 194 | FILENAME: UploadServlet.java | 0.280616 | package carSalon.controller;
import carSalon.model.Car;
import carSalon.service.CarService;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
i... |
b229c7b5-e48d-4333-bd09-1253fe9095b8 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-12 13:08:24", "repo_name": "ram1225/Contacts", "sub_path": "/app/src/main/java/com/ram/contacts/webservice/ApiCall.java", "file_name": "ApiCall.java", "file_ext": "java", "file_size_in_byte": 1154, "line_count... | https://github.com/ram1225/Contacts | 231 | FILENAME: ApiCall.java | 0.29584 | package com.ram.contacts.webservice;
import com.google.gson.GsonBuilder;
import com.ram.contacts.models.ContactsList;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.htt... |
0fb52f91-7182-42d7-b3aa-719b7cdb0179 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-06 10:05:33", "repo_name": "yezijiang/cerp-dubbo", "sub_path": "/cerp-common-core/src/main/java/com/matthew/cerp/common/util/ContextHolderUtil.java", "file_name": "ContextHolderUtil.java", "file_ext": "java", ... | https://github.com/yezijiang/cerp-dubbo | 331 | FILENAME: ContextHolderUtil.java | 0.262842 | package com.matthew.cerp.common.util;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
/**
* 上下文工具类
* Created with IntelliJ IDEA
* User:... |
e93074ea-f015-4b44-b10b-a3e85cafccb4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-10-18 10:51:02", "repo_name": "EwoutLanduyt/TimeEwout", "sub_path": "/EwoutTime/src/main/java/SourceTime/FinnishWatch.java", "file_name": "FinnishWatch.java", "file_ext": "java", "file_size_in_byte": 1221, "line_... | https://github.com/EwoutLanduyt/TimeEwout | 228 | FILENAME: FinnishWatch.java | 0.27513 | package SourceTime;
/*
* 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.
*/
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
/**
*
* @... |
1b18017a-d407-4da1-b30c-bd49242261b5 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-01-12T05:40:37", "repo_name": "LavanyaJay/travel-client", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1013, "line_count": 34, "lang": "en", "doc_type": "text", "... | https://github.com/LavanyaJay/travel-client | 260 | FILENAME: README.md | 0.220007 | ## Table of content
- [Aim](#Goal)
- [How to start](#How-to-start)
- [Technologies used for this project](#Technologies-used-for-this-project)
- [Contributors](#Contributors)
## Goal
The goal of the project is to:
1. Create a 1 day itinerary in the city of choice based on time and preferred activities
2. Display th... |
cf4a9217-6d16-4b06-a458-9ae1106a25f9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-25 13:50:14", "repo_name": "wagaman/red-alter", "sub_path": "/app/biz/service-impl/src/main/java/com/bbd/dafei/biz/service/scheduled/CleanCacheScheduler.java", "file_name": "CleanCacheScheduler.java", "file_ex... | https://github.com/wagaman/red-alter | 295 | FILENAME: CleanCacheScheduler.java | 0.242206 | package com.bbd.dafei.biz.service.scheduled;
import com.bbd.dafei.common.dal.mapper.RaCacheMapper;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.datetime.Dat... |
83b534a1-f27e-4735-b3b6-b7c54edf660f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-06 08:09:38", "repo_name": "pokedo0/Java_project", "sub_path": "/StrutsNote/src/validator/ExcludeWordValidator.java", "file_name": "ExcludeWordValidator.java", "file_ext": "java", "file_size_in_byte": 1090, "l... | https://github.com/pokedo0/Java_project | 221 | FILENAME: ExcludeWordValidator.java | 0.253861 | package validator;
import com.opensymphony.xwork2.validator.ValidationException;
import com.opensymphony.xwork2.validator.validators.FieldValidatorSupport;
/**
* Created by pokedo on 2017/5/21.
*/
public class ExcludeWordValidator extends FieldValidatorSupport {
private String exclude = "";
public void set... |
f331fb1f-6a08-4e5d-96be-b8c80399cee6 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-01-26 08:24:51", "repo_name": "Eroven/dev_fw", "sub_path": "/performance/src/main/java/me/zhaotb/performance/concurrent/OrderPrint.java", "file_name": "OrderPrint.java", "file_ext": "java", "file_size_in_byte": 1... | https://github.com/Eroven/dev_fw | 223 | FILENAME: OrderPrint.java | 0.242206 | package me.zhaotb.performance.concurrent;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* @author zhaotangbo
* @since 2020/11/20
*/
public class OrderPrint {
public static void main(String[] args) {
Runnable printFirst = () -> System.out.println("first");
... |
026b6de1-3fa3-4028-aeae-2f09ca6c8ffc | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-11-25 02:14:07", "repo_name": "BaiYegithub/AndroidMyTemplate", "sub_path": "/Template/framework/src/main/java/app/vp/cn/framework/LiveData1Activity.java", "file_name": "LiveData1Activity.java", "file_ext": "java"... | https://github.com/BaiYegithub/AndroidMyTemplate | 224 | FILENAME: LiveData1Activity.java | 0.289372 | package app.vp.cn.framework;
import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.Observer;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import android.widget.TextView;
import butterknife.Bi... |
8da5ff47-1ae8-4697-950a-add4e60bcd01 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-09 09:36:30", "repo_name": "huanghezhen/servicecomb-test", "sub_path": "/common/src/main/java/hhz/common/entity/BaseResponse.java", "file_name": "BaseResponse.java", "file_ext": "java", "file_size_in_byte": 11... | https://github.com/huanghezhen/servicecomb-test | 273 | FILENAME: BaseResponse.java | 0.240775 | package hhz.common.entity;
/**
* @ClassName: BaseResponse
* @Description: 响应类
* @Author: huanghz
* @Date: 2020/2/11 12:36
*/
public class BaseResponse<T>
{
/**
* 返回码
*/
private int resultCode;
private int logicCode;
/**
* 返回信息
*/
private String resultMsg;
/**
* 返... |
9cac2dd5-1f3f-400b-82ca-79211a2646b7 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2017-02-09T01:15:39", "repo_name": "neptuneio/Community-runbooks", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1064, "line_count": 33, "lang": "en", "doc_type": "text... | https://github.com/neptuneio/Community-runbooks | 243 | FILENAME: README.md | 0.2227 | Runbooks
========
A runbook is a list of diagnostic or remediation steps for an on-call engineer to execute to resolve an IT alert.
Explore different categories of alerts under "runbooks" directory above.
host-level-alerts
application-alerts
db-alerts
network-alerts
If you have interesting alert use-cases and runbo... |
7f0fa174-ee43-473a-92f2-b0fe463895f9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-12-11 08:51:53", "repo_name": "dinamio/hillel-javaee", "sub_path": "/lab5/Kostiuk/blog/src/main/java/com/hillel/blog/utils/MessagePOSTDeserializer.java", "file_name": "MessagePOSTDeserializer.java", "file_ext": "... | https://github.com/dinamio/hillel-javaee | 218 | FILENAME: MessagePOSTDeserializer.java | 0.274351 | package com.hillel.blog.utils;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonNode;
import com.hillel.blog.model.Author;
import com.hillel.blog.model.Message;
i... |
88843024-c3c3-4a0a-91a9-39b2a1dbd30f | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-08-16T14:32:38", "repo_name": "PssbleTrngle/RPG", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 993, "line_count": 34, "lang": "en", "doc_type": "text", "blob_id":... | https://github.com/PssbleTrngle/RPG | 239 | FILENAME: README.md | 0.196826 | # RPG <img src="http://rpg.somethingcatchy.net/assets/img/icon.svg" align="right" height="100" />


### Requirements
- [Composer](https://getcompos... |
ba706322-41a4-48ea-8346-8f8f60628535 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-09-22 15:49:41", "repo_name": "alexcwyu/algotrader", "sub_path": "/algotrader-model/src/main/java/com/unisoft/algotrader/model/id/ClOrderId.java", "file_name": "ClOrderId.java", "file_ext": "java", "file_size_in_... | https://github.com/alexcwyu/algotrader | 237 | FILENAME: ClOrderId.java | 0.282988 | package com.unisoft.algotrader.model.id;
import com.google.common.base.Objects;
/**
* Created by alex on 9/20/15.
*/
public class ClOrderId {
public final int strategyId;
public final long orderId;
public ClOrderId(int strategyId, long orderId) {
this.strategyId = strategyId;
this.ord... |
778e2d81-6b7d-4495-8e49-7bc74ba481c4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-10-04 10:20:16", "repo_name": "wlk/MoneySavingTips", "sub_path": "/app/src/main/java/com/varwise/moneysavingtips/util/TipAdapter.java", "file_name": "TipAdapter.java", "file_ext": "java", "file_size_in_byte": 122... | https://github.com/wlk/MoneySavingTips | 251 | FILENAME: TipAdapter.java | 0.289372 | package com.varwise.moneysavingtips.util;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.varwise.moneysavingtips.R;
import com.varwise.moneysavingtips.Tip;
publ... |
03b58fa8-dd07-4dc1-9992-cdb3486883e9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-02-10 16:07:57", "repo_name": "tomas-langer/mn-repro-executable", "sub_path": "/src/main/java/io/micronaut/reproducers/execmethod/MethodProcessor.java", "file_name": "MethodProcessor.java", "file_ext": "java", "f... | https://github.com/tomas-langer/mn-repro-executable | 203 | FILENAME: MethodProcessor.java | 0.247987 | package io.micronaut.reproducers.execmethod;
import javax.inject.Singleton;
import io.micronaut.context.ExecutionHandleLocator;
import io.micronaut.context.processor.ExecutableMethodProcessor;
import io.micronaut.inject.BeanDefinition;
import io.micronaut.inject.ExecutableMethod;
import io.micronaut.inject.MethodExec... |
f84a2cc3-b6d0-47a3-a755-fe2d7da0ca4e | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-22 12:16:21", "repo_name": "hemanjali-hub/salesforce", "sub_path": "/src/main/java/Base/Base.java", "file_name": "Base.java", "file_ext": "java", "file_size_in_byte": 1044, "line_count": 40, "lang": "en", "doc... | https://github.com/hemanjali-hub/salesforce | 218 | FILENAME: Base.java | 0.271252 | package Base;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Base {
public WebDriver driver;
... |
5cc33ff3-9f05-4aff-b1f2-c7102fc9eac4 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2022-05-28T22:56:14", "repo_name": "resv/CUSTOM-SCRIPTS", "sub_path": "/FCCNotes Hotkeys/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1155, "line_count": 24, "lang": "en", "doc_type... | https://github.com/resv/CUSTOM-SCRIPTS | 277 | FILENAME: README.md | 0.198064 | # CUSTOM HOTKEY SCRIPTS FOR CODING
By: Adam Kim
GitHub: Resv
Email:Akim456@gmail.com
This script requires AHK (autohotkey.exe) which can be downloaded here: https://autohotkey.com
This is a simple script written by me to automatically type out a long HTML/CSS tag with openings and closings.
***THIS SCRIPT IS A P... |
0e77eb2c-ff42-44c9-ab4d-8d8a271a4b92 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-23 12:47:00", "repo_name": "jayasree777/java-basics", "sub_path": "/LinkedListMine.java", "file_name": "LinkedListMine.java", "file_ext": "java", "file_size_in_byte": 1077, "line_count": 55, "lang": "en", "doc... | https://github.com/jayasree777/java-basics | 211 | FILENAME: LinkedListMine.java | 0.264358 | import java.util.*;
class Node{
Node tail=null;
String value;
Node(String value){
this.value=value;
}
public static void add(String value){
//Node node = new Node();
Node node = this;
while (node.hasNext()) {
node=node.tail;
}
... |
c4472d60-2507-4aaa-ad6c-ab1bfe6a51ca | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-02 06:17:06", "repo_name": "shenzhanwang/SSM", "sub_path": "/src/main/java/boot/spring/po/Actor.java", "file_name": "Actor.java", "file_ext": "java", "file_size_in_byte": 1216, "line_count": 54, "lang": "en", ... | https://github.com/shenzhanwang/SSM | 275 | FILENAME: Actor.java | 0.259826 | package boot.spring.po;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel("演员表")
public class Actor implements Serializable{
@ApiModelProperty("主键")
private short actor_id;
@ApiModelProperty("名字")
private String first_name;
@ApiModelPr... |
e0d28496-7bd5-47e3-86f4-9175f9ea1b95 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-08-27 05:44:13", "repo_name": "Wanxp/examples", "sub_path": "/springboot/springboot-job-manager/src/main/java/com/wanxp/jobmanager/runner/JobRunner.java", "file_name": "JobRunner.java", "file_ext": "java", "file_... | https://github.com/Wanxp/examples | 252 | FILENAME: JobRunner.java | 0.267408 | package com.wanxp.jobmanager.runner;
import com.wanxp.jobmanager.constant.QuartzJobBeanConstant;
import com.wanxp.jobmanager.model.entity.QuartzJob;
import com.wanxp.jobmanager.service.QuartzJobService;
import com.wanxp.jobmanager.service.TaskService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.... |
98a94011-95a7-4ba2-80f4-b28dcaf5e69a | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-06 15:56:55", "repo_name": "nzl666/myblog", "sub_path": "/API/src/main/java/com/suyu/entity/BlogPublic.java", "file_name": "BlogPublic.java", "file_ext": "java", "file_size_in_byte": 1178, "line_count": 57, "l... | https://github.com/nzl666/myblog | 238 | FILENAME: BlogPublic.java | 0.23231 | package com.suyu.entity;
import java.util.List;
public class BlogPublic {
/**博客标题**/
private String title;
/**摘要**/
private String resume;
/**正文**/
private String content;
/**分类型**/
private List<Object> types;
public String getTitle() {
return title;
}
... |
736a41aa-29eb-4872-8718-28c90b1f2eab | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-11-21T13:38:44", "repo_name": "DivineCatCode/abyss.vim", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 997, "line_count": 25, "lang": "en", "doc_type": "text", "bl... | https://github.com/DivineCatCode/abyss.vim | 336 | FILENAME: README.md | 0.229535 | ## Abyss.vim
*abyss.vim* is a dark blue theme for vim.
<img alt="abyss.vim" src="https://user-images.githubusercontent.com/41639488/99878617-2848e500-2c4a-11eb-9398-9734ab78d118.png">
## Installation
1. Add `Plug 'ulwlu/abyss.vim'` in your .vimrc within vim-plug's loading function.
2. Run `:PlugInstall`
3. Activate... |
8868c218-0d16-49b4-8d95-2ccadc20be41 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-09-13 04:37:03", "repo_name": "firemonk9/innowhite-server", "sub_path": "/videoApp/src/com/innowhite/red5/stream/messaging/MessagingService.java", "file_name": "MessagingService.java", "file_ext": "java", "file_s... | https://github.com/firemonk9/innowhite-server | 217 | FILENAME: MessagingService.java | 0.256832 | /**
*
*/
package com.innowhite.red5.stream.messaging;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author firemonk
*
*/
public class MessagingService {
private static final Logger log = LoggerFactory.getLogger(MessagingService.class);
/**
* @param args
*/
VideoStreamS... |
9420831c-272f-4f5f-8843-95f8df0c6aec | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-07 03:06:01", "repo_name": "valiantkui/app_collegePlanning", "sub_path": "/app/src/main/java/com/planning/college/tools/Globle.java", "file_name": "Globle.java", "file_ext": "java", "file_size_in_byte": 1180, ... | https://github.com/valiantkui/app_collegePlanning | 332 | FILENAME: Globle.java | 0.245085 | package com.planning.college.tools;
/**
* Created by KUIKUI on 2018-05-23.
*/
public class Globle {
//public static String url="http://test.j2eeall.com";
// public static String HOST_PORT="http://test.j2eeall.com";
public static String HOST_PORT="http://39.105.76.3:8080";
public static String SUBJECT... |
d5f37aa6-9895-4dce-8a30-b40f468fbaee | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-04-16 12:52:08", "repo_name": "phcla/crmhoutai", "sub_path": "/src/main/java/com/sm/qy28/controller/DeptController.java", "file_name": "DeptController.java", "file_ext": "java", "file_size_in_byte": 1221, "line_c... | https://github.com/phcla/crmhoutai | 263 | FILENAME: DeptController.java | 0.273574 | package com.sm.qy28.controller;
import com.sm.qy28.common.http.AxiosResult;
import com.sm.qy28.controller.base.BaseController;
import com.sm.qy28.domain.entity.Category;
import com.sm.qy28.domain.entity.Dept;
import com.sm.qy28.serivce.CategoryService;
import com.sm.qy28.serivce.DeptService;
import org.springframewor... |
627ea4f2-d8f5-48dd-96a0-31fbd1b804b9 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2012-10-28T08:12:29", "repo_name": "Javran/pyoauth4twitter", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1155, "line_count": 36, "lang": "en", "doc_type": "text", "bl... | https://github.com/Javran/pyoauth4twitter | 267 | FILENAME: README.md | 0.255344 | # pyoauth4twitter 1.0
Provide a convenient way of obtaining access tokens & authorizing HTTP requests
You need to provide some information before demo get ready to work.
Go to [My applications](https://dev.twitter.com/apps), select one application (if you don't have one, you should [create one](https://dev.twitt... |
956c27f5-06f5-4325-9d84-a216f4d82060 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-07 07:42:15", "repo_name": "nishant23j/Hillffair", "sub_path": "/app/src/main/java/com/appteamnith/hillffair/SplashActivity.java", "file_name": "SplashActivity.java", "file_ext": "java", "file_size_in_byte": 1... | https://github.com/nishant23j/Hillffair | 218 | FILENAME: SplashActivity.java | 0.245085 | package com.appteamnith.hillffair;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
public class SplashA... |
19ce354f-d15d-41f1-8489-33da44004c70 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-30 22:16:44", "repo_name": "Pratzn/rest-api-archetype", "sub_path": "/src/main/java/th/or/set/AbstractController.java", "file_name": "AbstractController.java", "file_ext": "java", "file_size_in_byte": 1221, "l... | https://github.com/Pratzn/rest-api-archetype | 218 | FILENAME: AbstractController.java | 0.273574 | package th.or.set;
import java.net.InetAddress;
import java.net.UnknownHostException;
import org.springframework.validation.BindingResult;
import org.springframework.web.context.request.RequestContextHolder;
public abstract class AbstractController<T> extends AbstractComponent<T> implements Root{
public AbstractCo... |
47a008b9-83c9-438d-8920-b7c502c9fbe3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-02-07 10:54:59", "repo_name": "jonrios/pricecheck", "sub_path": "/app/src/main/java/com/jrios/pricecheck/view/fragments/ProductsFragment.java", "file_name": "ProductsFragment.java", "file_ext": "java", "file_size... | https://github.com/jonrios/pricecheck | 207 | FILENAME: ProductsFragment.java | 0.20947 | package com.jrios.pricecheck.view.fragments;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGr... |
20df919f-4986-4bc0-b811-d80a629bb113 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-11 04:55:18", "repo_name": "CloudSlang/cs-actions", "sub_path": "/cs-couchbase/src/main/java/io/cloudslang/content/couchbase/entities/couchbase/ApiUriSuffix.java", "file_name": "ApiUriSuffix.java", "file_ext":... | https://github.com/CloudSlang/cs-actions | 243 | FILENAME: ApiUriSuffix.java | 0.26971 | /*
* Copyright 2019-2023 Open Text
* This program and the accompanying materials
* are made available under the terms of the Apache License v2.0 which accompany this distribution.
*
* The Apache License is available at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
32203669-98be-458a-9d50-69d7174026c3 | {"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-04-16 10:16:06", "repo_name": "kisszpy/seller-center", "sub_path": "/seller-core/src/main/java/com/rrs/http/converter/xml/XStreamHttpMessageConverter.java", "file_name": "XStreamHttpMessageConverter.java", "file_... | https://github.com/kisszpy/seller-center | 233 | FILENAME: XStreamHttpMessageConverter.java | 0.205615 | package com.rrs.http.converter.xml;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.StaxDriver;
import org.springframework.http.HttpHeaders;
import org.springframework.http.converter.xml.MarshallingHttpMessageConverter;
import javax.xml.transform.Result;
import javax.xml.transform.Sour... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.