blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 132 | path stringlengths 2 382 | src_encoding stringclasses 34
values | length_bytes int64 9 3.8M | score float64 1.5 4.94 | int_score int64 2 5 | detected_licenses listlengths 0 142 | license_type stringclasses 2
values | text stringlengths 9 3.8M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
b316bf6b68cc86c8091d34507532880ddf65b96e | Java | SanLeny/sanleny-springcloud | /study-demo/ribbon-v3/client-v2/src/test/java/cn/sanleny/study/springcloud/client/Test.java | UTF-8 | 2,773 | 2.671875 | 3 | [] | no_license | package cn.sanleny.study.springcloud.client;
import cn.sanleny.study.springcloud.client.service.MovieService;
import com.netflix.hystrix.strategy.concurrency.HystrixRequestContext;
import org.junit.After;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Auto... | true |
8c8ffcdc147df47fbeaa9b31cbccf82b226a66f3 | Java | Timeshifter43/chat | /src/test/java/com/telegrambot/core/BotMessageTest.java | UTF-8 | 221 | 1.734375 | 2 | [] | no_license | package com.telegrambot.core;
import org.junit.Test;
import static org.junit.Assert.*;
public class BotMessageTest {
@Test
public void send() {
new BotMessage(83190119,"Hi there again").send();
}
} | true |
ccbdc6ccf042e0ad2e47319d936fab7943d8aeea | Java | aoyj/canvansMaster-master2 | /app/src/main/java/com/aoyj/learn/canvas_master/BaseGraphActivity.java | UTF-8 | 696 | 2.03125 | 2 | [] | no_license | package com.aoyj.learn.canvas_master;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
/**
* Created by aoyuanjie on 2018/7/23.
*/
public class BaseGraphActivity extends AppCompatAct... | true |
9dac6ff2eef6c8bf1f68a1fed5bae36f1360ddac | Java | Lakshamana/spm | /src/main/java/br/ufpa/labes/spm/service/ToolParameterService.java | UTF-8 | 2,691 | 2.421875 | 2 | [] | no_license | package br.ufpa.labes.spm.service;
import br.ufpa.labes.spm.domain.ToolParameter;
import br.ufpa.labes.spm.repository.ToolParameterRepository;
import br.ufpa.labes.spm.service.dto.ToolParameterDTO;
import br.ufpa.labes.spm.service.mapper.ToolParameterMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
im... | true |
f86e3c7616e35cf8311a29d2836dabe188315a33 | Java | DreamsHer/Java | /MedicalSystem_SSM/src/com/qx/service/impl/OutstockServiceImpl.java | UTF-8 | 855 | 1.851563 | 2 | [] | no_license | package com.qx.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.qx.mapper.DrugroomMapper;
import com.qx.mapper.OutstockMapper;
import com.qx.po... | true |
838331ba3b7a0706df1d5a3fc7c826c06948bf0f | Java | goulartt/mip-serverless-tcc | /front-end/mip/src/main/java/br/edu/utfpr/cp/emater/midmipsystem/lambda/SurveyLambda.java | UTF-8 | 8,834 | 1.929688 | 2 | [
"MIT"
] | permissive | package br.edu.utfpr.cp.emater.midmipsystem.lambda;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.access.AccessDeniedException;
import org.spring... | true |
f87c30554768f93f08fee8bdf58c0d8e6ea3051c | Java | washi18/bio | /src/com/android/model/CElementos.java | UTF-8 | 14,337 | 2.03125 | 2 | [] | no_license | package com.android.model;
import java.util.ArrayList;
import com.android.dao.CElementosDAO;
import com.android.dao.CItemsDAO;
public class CElementos {
private int cElementosCod;// integer,
private int cItemsCod;// integer,
private int cSubMenuCod;// integer,
private String cNombre1Idioma1;// varchar... | true |
1af5a6b476a86b74e4f2c8fa2203b50634097fd4 | Java | KaiserAndres/danbooru-downloader | /src/main/java/com/kai/danbooruManager/DanbooruPage.java | UTF-8 | 1,621 | 2.734375 | 3 | [] | no_license | package com.kai.danbooruManager;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.SocketTimeoutException;
import java.util.ArrayList;
import java.util.logging.Logger;
public class DanbooruPage ... | true |
d080bf5a8026afc2a1d82ba733fc45fde6d3450b | Java | ammar871/ELSALAMMANGER | /app/src/main/java/com/mangerbaedis/elsalammanger/details/DetailsActivity.java | UTF-8 | 1,910 | 2.1875 | 2 | [] | no_license | package com.mangerbaedis.elsalammanger.details;
import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import android.util.Log;
import com.bumpte... | true |
8fe4afe9b1d8d51385b29ca5b516f03ca6e17306 | Java | Abhishek2601/bookStore | /src/main/java/restapi/tut/HelloWorldConfiguration.java | UTF-8 | 771 | 2.078125 | 2 | [] | no_license | package restapi.tut;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import io.dropwizard.db.DataSourceFactory;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
/**
* Created by root on 9/10/16.
*/
public class HelloWorldConfiguration extends Con... | true |
fa301b75ba13aef0dd49526c809aaa9cf4e44091 | Java | Ducninh1806/Module2 | /Week1/Vietcodedongian/src/CacSoNguyenToTu1DenN.java | UTF-8 | 611 | 3.5 | 4 | [] | no_license | import java.util.Scanner;
public class CacSoNguyenToTu1DenN {
static boolean isPrime(int x){
int count =0;
for (int i=2; i<x;i++) {
if (x % i == 0)
count++;
}
if (count ==0)
return true;
else
return false;
... | true |
058bb688e8098369ee085e5c9c40fe0e8cd3ea39 | Java | tkdiooo/QI | /backstage/backstage-dictionary/dictionary-model/src/main/java/com/qi/dictionary/model/domain/BaseDictionary.java | UTF-8 | 8,373 | 2.25 | 2 | [] | no_license | package com.qi.dictionary.model.domain;
import com.sfsctech.core.base.domain.dto.BaseDto;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Pattern;
import org.hibernate.validator.constraints.NotEmpty;
public class BaseDictionary extends BaseDto {
/**
* This field was g... | true |
0779f538fac02ebc95578bcf02a6ab20f7db8624 | Java | Rahul-Karma/myapp | /src/main/java/com/karma/app/example/StringAnagramCheck.java | UTF-8 | 1,546 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | package com.karma.app.example;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class StringAnagramCheck {
public static void main(String[] args) {
String s1 = "marz";
String s2 = "army";
if(s1.length() == s2.length()) {
checkAnagram(s1, s2);
} else {
System.out.println("N... | true |
ca4673e703348dd95b4f77a24dbbe2cf70c95eac | Java | sgholamian/log-aware-clone-detection | /LACCPlus/Hive/36284_1.java | UTF-8 | 532 | 1.8125 | 2 | [
"MIT"
] | permissive | //,temp,MetaStoreDirectSql.java,256,266,temp,ObjectStore.java,410,420
//,2
public class xxx {
static String getProductName(PersistenceManager pm) {
JDOConnection jdoConn = pm.getDataStoreConnection();
try {
return ((Connection)jdoConn.getNativeConnection()).getMetaData().getDatabaseProductName();
} ... | true |
8b3c34c1203c66c06db6f43a85db8d0a7b68eaa1 | Java | kldgarrido/GConsultores_Admin | /src/java/controller/ProspectTypeController.java | UTF-8 | 1,836 | 2.390625 | 2 | [] | no_license | package controller;
import entity.ProspectType;
import facade.ProspectTypeFacade;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import javax.annotation.PostConstruct;
@ManagedBean(name = "pr... | true |
d74888ce00e2936e66bc21c62eb7de34dc4650ee | Java | liveqmock/workspaces | /wrapper-project/channel-wg1/src/main/java/com/iwgame/xengine/xtask/wg1/worker/notice/NoticeSendingTask.java | UTF-8 | 1,679 | 2.09375 | 2 | [] | no_license | /****************************************************************
* 系统名称 : '消息任务系统-石器部落'
* 文件名 : NoticeSendingTask.java
* (C) Copyright Green Shore Network Technology Co.,Ltd.2012
* All Rights Reserved.
* **************************************************************
* 注意: 本内容仅限于上海绿岸网络科技有... | true |
02f7617eb89d0d4748a1ab0369819ecb90ec0226 | Java | 1131292790/CMS | /src/main/java/com/cms/controller/HomeController.java | UTF-8 | 2,237 | 1.898438 | 2 | [] | no_license | package com.cms.controller;
import com.cms.model.Attend;
import com.cms.model.Leave;
import com.cms.service.AttendService;
import com.cms.service.LeaveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation... | true |
222900f9d3173e58327828a1918097a00ca1d1f9 | Java | jonivey/SeniorProj | /src/com/jonivey/messages/DeclineChallengeMessage.java | UTF-8 | 242 | 2.328125 | 2 | [] | no_license | package com.jonivey.messages;
public class DeclineChallengeMessage extends Message
{
private String username;
public DeclineChallengeMessage(String name)
{
username = name;
}
public String getUsername()
{
return username;
}
}
| true |
6e043a73d6a18016af6ff7ee47aad89d01c3ff3a | Java | Arpitvarshney29/Teamium | /src/main/java/com/teamium/service/PackageService.java | UTF-8 | 7,407 | 2.4375 | 2 | [] | no_license | package com.teamium.service;
import java.util.List;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.teamium.constants.Constants;
import com.teamium.domai... | true |
405fcbe31afc9f4b33eecde2edd9e8d599931385 | Java | yeqifu/SummerHolidays | /src/Example0730/Demo02.java | UTF-8 | 1,045 | 3.59375 | 4 | [] | no_license | package Example0730;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
public class Demo02 {
public static void main(String[] args) throws IOException {
/*
* 案例:拷贝图片【优化二、这种方式开发中建议经常使用】
*
* 1.每次只读一个字节,觉得太慢
* 2... | true |
ceb74a383e1efbc642e20bef0cf58e89b9be2b7f | Java | wellCh4n/Redis-Schedule-Spring-Boot-Starter | /src/main/java/com/wellch4n/schedule/utils/KeyParserUtils.java | UTF-8 | 488 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package com.wellch4n.schedule.utils;
import com.wellch4n.schedule.enums.TaskTypeEnum;
/**
* @author wellCh4n
* 找到银弹,然后开枪
*/
public class KeyParserUtils {
private final static String SPLIT_STRING = "::";
public static TaskTypeEnum parserKey (String message) {
String[] keyArr = message.split(SPLIT_... | true |
7314bb8ed1d3cb5fe01dac9b3ce835ed1cc54a6b | Java | BGCX067/ezui001-svn-to-git | /trunk/deliver_ck_client_sdk/src/cn/com/vapk/vstore/client/ApiInvokerTask.java | UTF-8 | 1,977 | 2.21875 | 2 | [] | no_license | package cn.com.vapk.vstore.client;
import java.lang.ref.WeakReference;
import tw.com.sti.store.api.ApiInvoker;
import tw.com.sti.store.api.util.LangUtils;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import cn.com.vapk.vstore.client.R;
import cn.c... | true |
77638c2df7db971396f000959d5e52b646ebec74 | Java | Fureniku/Apocalypse | /src/main/java/com/silvaniastudios/apocalypse/blocks/DeadLog.java | UTF-8 | 2,815 | 2.265625 | 2 | [] | no_license | package com.silvaniastudios.apocalypse.blocks;
import com.google.common.collect.ImmutableList;
import com.silvaniastudios.apocalypse.Apocalypse;
import net.minecraft.block.BlockLog;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.... | true |
8575f8cbdc5629f8176f5c6e1f036831d41ec0c9 | Java | CodecoolBP20172/java-ee-shitwish-supreme-kar-ala-be | /src/main/java/com/codecool/enterprise/orderservice/api/OrderServiceREST.java | UTF-8 | 3,021 | 2.4375 | 2 | [] | no_license | package com.codecool.enterprise.orderservice.api;
import com.codecool.enterprise.orderservice.model.Order;
import com.codecool.enterprise.orderservice.service.OrderService;
import org.json.simple.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
impo... | true |
40108158233974cc7210c7a66beca405758675a7 | Java | tiancy112/spring-boot | /src/test/java/com/samsundot/invoice/SpringbootApplicationTests.java | UTF-8 | 1,499 | 2.3125 | 2 | [] | no_license | package com.samsundot.invoice;
import java.io.FileOutputStream;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.cont... | true |
f7e35277e4b04d8301ad91b5e7eb0e1de8347a97 | Java | cipmar/javathreads | /src/main/java/javathreads/threadmanagement/recipe05/Main.java | UTF-8 | 536 | 3.3125 | 3 | [] | no_license | package javathreads.threadmanagement.recipe05;
import java.util.Date;
/**
* Waiting for the finalisation of a thread.
*
* @author mropotica
*/
public class Main {
public static void main(String[] args) throws InterruptedException {
Thread thread1 = new Thread(new InitializationRunnable("database"));
thread... | true |
1978a49fd23e6100709a1aebb3772a916379f2a5 | Java | jejecrunch/spring | /security1/src/main/java/net/skhu/controller/UserController.java | UTF-8 | 1,422 | 2.40625 | 2 | [] | no_license | package net.skhu.controller;
import javax.servlet.http.HttpServletRequest;
import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public ... | true |
a44dd34c3651578327c7ae7e1ec209f658fa150c | Java | mieco7832/Delivery | /delivery/src/com/delivery/repository/PersonalImpl.java | UTF-8 | 611 | 2.09375 | 2 | [] | no_license | package com.delivery.repository;
import javax.transaction.Transactional;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.delivery.entity.Personal;
import com.delivery.utils.Abs;
import com.delivery.utils.... | true |
f9d16f6555240c3d7662aa6c19265a82d4da13e7 | Java | apache/struts | /core/src/test/java/org/apache/struts2/views/freemarker/FreeMarkerResultTest.java | UTF-8 | 5,937 | 1.90625 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
f6f1d8f668ab14eb0ad90970720f5b715622c92d | Java | RalucaLuca/Cauta-ti-medicamentul | /src/main/java/ro/raluca/repository/MedicamenteSediuJpaRepository.java | UTF-8 | 310 | 1.617188 | 2 | [] | no_license | package ro.raluca.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ro.raluca.model.MedicamenteSediu;
@Repository
public interface MedicamenteSediuJpaRepository extends JpaRepository<MedicamenteSediu, Integer> {
}
| true |
a46f92c1242da638883ea44cfc608ef2a3a2e9fa | Java | saber13812002/DeepCRM | /Code Snippet Repository/Spring/Spring9791.java | UTF-8 | 899 | 2.46875 | 2 | [] | no_license | @Override
public MultipartHttpServletRequest resolveMultipart(final HttpServletRequest request) throws MultipartException {
Assert.notNull(request, "Request must not be null");
if (this.resolveLazily) {
return new DefaultMultipartHttpServletRequest(request) {
@Override
protected void initializeMultipar... | true |
3fbb739ddc0c97d7ff2cb2cc6da20838324d1988 | Java | PyramidPlayer/repo | /money-movers-billing-ejb/src/main/java/me/jetmoney/response/pay/BillingPayData.java | UTF-8 | 1,661 | 2.140625 | 2 | [] | no_license | package me.jetmoney.response.pay;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Created by vk on 15.09.16.
*/
@XmlRootElement(name = "data")
@XmlAccessorType(XmlAc... | true |
b8e0e17dcd80f1c49cf4b37a68e0a401344920a4 | Java | xytyes/android-dataprovider-framework | /src/net/yoojia/dataprovider/logic/ProfileProvider.java | UTF-8 | 2,004 | 2.234375 | 2 | [] | no_license | package net.yoojia.dataprovider.logic;
import net.yoojia.dataprovider.ActionInvoker;
import net.yoojia.dataprovider.annotation.Table;
import net.yoojia.dataprovider.annotation.UriPath;
import net.yoojia.dataprovider.annotation.Table.Column;
import net.yoojia.dataprovider.annotation.Table.Column.Type;
import net.yoojia... | true |
6e77e94e9909586ec9860cf2296030223b9e6f79 | Java | Byube/Javacode | /JavaTest/src/baekjoon2/Main8.java | UTF-8 | 599 | 2.921875 | 3 | [] | no_license | package baekjoon2;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main8 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
... | true |
bfea8cda21aedc3b13e824ded3081aa0b9865688 | Java | ChristofferNyeland/ClientChris | /Client/src/guiLogic/LogicGUI.java | UTF-8 | 15,499 | 2.8125 | 3 | [] | no_license | package guiLogic;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import connection.ServerHandler;
import gui.AggregateGUI;
public class LogicGUI { // the class that contains all gui logic in order to follow the 3-layer model
p... | true |
9c53e76aa305fd9dfbb2e4a52610baf23b214e6d | Java | zcxshare/android | /app/src/main/java/com/demo/www/demo/PickingActivity.java | UTF-8 | 2,555 | 2.140625 | 2 | [] | no_license | package com.demo.www.demo;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.KeyEvent;
impor... | true |
4b5dc783ffe7239aad586610b0dafcc1ceea3447 | Java | bellmit/yonyou | /dms.gacfca/src/main/java/com/yonyou/dcs/gacfca/SADCS033CloudImpl.java | UTF-8 | 6,057 | 1.960938 | 2 | [] | no_license | package com.yonyou.dcs.gacfca;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... | true |
08c26b1b1ff32179d8f23e5801096e268c816333 | Java | B-19-SDET-06-02/Manav-Sharma | /Demoproject1/src/StringDemos/EqualDemo.java | UTF-8 | 659 | 2.84375 | 3 | [] | no_license | package StringDemos;
import java.util.Scanner;
public class EqualDemo {
String loginid;
String pass;
Scanner sc=new Scanner(System.in);
public void checkLogin()
{
System.out.println("Enter Login id");
loginid=sc.next();
System.out.println("Enter password");
pass=sc.next();
if(l... | true |
064a6ddb147359f0845dc2fdf9804a05ea31c44a | Java | apedano/interview-exercises | /src/main/java/ch11/CallMeNoSynchronized.java | UTF-8 | 500 | 3.109375 | 3 | [] | no_license | package ch11;
/**
* Created by Alex on 17/08/2017.
*/
public class CallMeNoSynchronized implements CallMe {
//this method is not synchronized, possible race-condition
public void call(String msg) {
System.out.print("[");
System.out.print(msg);
//this istruction makes synch process E... | true |
b9611c52249f0c045ca82d827e0478a04a91d272 | Java | tumbling-dice/Stub | /Scraping/ScrapingTestActivity.java | UTF-8 | 3,311 | 2.21875 | 2 | [] | no_license | package inujini_.nuechin.test.scraping;
import inujini_.function.Function.Action;
import inujini_.function.Function.Action1;
import inujini_.function.Function.Func1;
import inujini_.linq.Linq;
import inujini_.nuechin.test.R;
import inujini_.nuechin.test.scraping.Scraper.AttributeFilter;
import inujini_.nuechin.test.sc... | true |
97d2da6bd46d3721ccd7d8ca5c1142b06ad9de28 | Java | haniefmuhiburrahman/MyPosResto2 | /app/src/main/java/com/talaga/myposresto/model/SalesPaymentCash.java | UTF-8 | 6,523 | 2.015625 | 2 | [] | no_license | package com.talaga.myposresto.model;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android... | true |
1af5c45fa1feabc84fddf80a14571e993a36496c | Java | fabianojgf/JBAnnotation-Android | /JBAnnotation/src/main/java/org/jb/persistence/reader/runtime/configuration/XMLRuntimePersistenceConfigurarionReader.java | UTF-8 | 1,165 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package org.jb.persistence.reader.runtime.configuration;
import org.jb.common.reader.runtime.configuration.XMLRuntimeConfigurarionReader;
import org.jb.persistence.config.PersistenceConfiguration;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
/**
* Created by fabiano on 09/10/17.
*/
public clas... | true |
e57903af5553efb797dfe360ab2838108f5bc5f7 | Java | jacoffee/codebase | /src/main/java/com/jacoffee/codebase/concurrency/hashmapmodification/MultiThreadAccess.java | UTF-8 | 569 | 3.21875 | 3 | [] | no_license | package com.jacoffee.codebase.concurrency.hashmapmodification;
import java.util.Map;
import java.util.Set;
public class MultiThreadAccess implements Runnable {
private Map<String, Integer> map;
public MultiThreadAccess(Map<String, Integer> map) {
this.map = map;
}
@Override
public void run() {
Se... | true |
369732e2aadfbf84cce76f03e78bdddc2d97d816 | Java | Sairam7562/HealthProject | /src/main/java/com/cg/healthassist/exception/HospitalException.java | UTF-8 | 238 | 2.0625 | 2 | [] | no_license | package com.cg.healthassist.exception;
@SuppressWarnings("serial")
public class HospitalException extends RuntimeException{
public HospitalException() {
super();
}
public HospitalException(String msg) {
super(msg);
}
}
| true |
c0340a8d1e9aba13137a681fd1e813af9b753289 | Java | CodeHent/designpattern | /src/main/java/com/person/study/factory/abstractfactory/EarthFactory.java | UTF-8 | 399 | 2.46875 | 2 | [] | no_license | package com.person.study.factory.abstractfactory;
public class EarthFactory implements IFactory {
@Override
public Chicken createChicken() {
System.out.println("create earth chicken ");
return new EarthChicken();
}
@Override
public HairTail createHairTail() {
System.out.... | true |
e6e0cfd8638eb86b86f5484a33dafbb02da101d3 | Java | zhangchaof/java_learn_demo | /src/main/java/com/zhang/init/ServletContextAwareTest.java | UTF-8 | 677 | 2.21875 | 2 | [] | no_license | package com.zhang.init;
import org.springframework.stereotype.Component;
import org.springframework.web.context.ServletContextAware;
import javax.servlet.ServletContext;
/**
* @ClassName TestStarted
* @Description: TestStarted
* @Author clark
* @Date 2021/2/2 14:13
**/
@Component
public class ServletContextAwar... | true |
b2412adba2120446be8a45c4cf995f6307772180 | Java | factoryfx/factoryfx | /example/src/main/java/io/github/factoryfx/example/server/shop/Shop.java | UTF-8 | 668 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package io.github.factoryfx.example.server.shop;
import java.util.List;
import javafx.stage.Stage;
public class Shop {
private final String stageTitle;
private final List<Product> products;
private final Stage stage;
private final OrderStorage orderStorage;
public Shop(String stageTitle, List<Pr... | true |
d39659ad23ac91f71ca17ba26e726108c16c6bc0 | Java | ashutoshpurushottam/NewsApp | /app/src/main/java/com/eigendaksh/newsapp/home/sportsnews/SportsNewsViewModel.java | UTF-8 | 2,221 | 2.1875 | 2 | [] | no_license | package com.eigendaksh.newsapp.home.sportsnews;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;
import com.eigendaksh.newsapp.apiResponses.StoriesApiResponse;
import com.eigendaksh.newsapp.data.NewsService;
import com.eigendaksh.newsapp.m... | true |
fefe991f90cda351fa6736b385ea47b143d393a8 | Java | Hieda-no-TzZ/Hadoop-XNOR-EC | /rawcoder/XNORRawEncoder.java | UTF-8 | 2,129 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package org.apache.hadoop.io.erasurecode.rawcoder;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.io.erasurecode.ErasureCoderOptions;
import java.nio.ByteBuffer;
@InterfaceAudience.Private
public class XNORRawEncoder extends RawErasureEncoder {
public XNORRawEncoder(ErasureCod... | true |
d7a5df2b913ade46eae66c624cddcfdf74f5ca9f | Java | eomcs/eomcs-java-project-2020 | /mini-pms-45-a-server/src/main/java/com/eomcs/pms/web/filter/CharacterEncodingFilter.java | UTF-8 | 957 | 2.28125 | 2 | [] | no_license | package com.eomcs.pms.web.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
public class CharacterEncodingFilter impleme... | true |
247a97fc58e1a17060c65231ba3f9def0b6c258c | Java | WangYekun/spring-study | /sc-parent/sc-manage-web/src/main/java/org/crazyit/test/ctl/ManageController.java | UTF-8 | 2,250 | 2.171875 | 2 | [] | no_license | package org.crazyit.test.ctl;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.crazyit.test.entity.Book;
import org.crazyit.test.entity.User;
import org.crazyit.test.service.BookService;
import org.crazyit.test.service.UserService;
import org.craz... | true |
21fa51a42c2443959317bc9dd8c75c8d86b1f9aa | Java | molaith/basePackageLib | /src/main/java/com/example/basepackagelib/calendar/IDateCheckedListener.java | UTF-8 | 151 | 2.015625 | 2 | [] | no_license | package com.example.basepackagelib.calendar;
public interface IDateCheckedListener {
public void onDateChecked(int year,int month,int day);
}
| true |
1a5dae41ece660c70d942cb183f4c110172b489d | Java | 42BV/beanmapper | /src/test/java/io/beanmapper/utils/RecordsTest.java | UTF-8 | 1,299 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package io.beanmapper.utils;
import static org.junit.jupiter.api.Assertions.*;
import java.lang.reflect.Constructor;
import java.util.List;
import io.beanmapper.testmodel.record.PersonRecord;
import org.junit.jupiter.api.Test;
class RecordsTest {
@Test
void testGetRecordFieldNames() {
var result =... | true |
218140e91cfe5dd922c50ef4c2bff6fdc33996d4 | Java | danecek/customized | /hwee/src/main/java/edu/hwee/Facade.java | UTF-8 | 933 | 2.234375 | 2 | [] | no_license | /*
* 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 edu.hwee;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.L... | true |
a56692f6c747f497f00931962128bc11693c88ed | Java | pointofcollision/ECE480 | /WirelessAccelerometer/app/src/main/java/ist/wirelessaccelerometer/ConnectedDevices.java | UTF-8 | 1,193 | 2.65625 | 3 | [] | no_license | package ist.wirelessaccelerometer;
import android.util.Log;
import java.util.HashMap;
import java.util.Map;
import static ist.wirelessaccelerometer.MainActivity.debug;
//class to contain, and allow for the accessing of, a map of string names to device UUID's for bluetooth
//connected sensor to the cell-phone app.
p... | true |
c0c4523a9f4523f984ba7b890e6c54edfbe729bb | Java | musikidspace/TravelSong | /app/src/main/java/com/lg/travelsong/global/AppProperty.java | UTF-8 | 1,198 | 2.328125 | 2 | [] | no_license | package com.lg.travelsong.global;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import com.lg.travelsong.bean.User;
import com.lg.travelsong.utils.MyLogUtils;
import com.lg.travelsong.utils.MyStringUtils;
/**
* 应用相关信息
* @author LuoYi on 2016/8/1
*... | true |
a96c5c9ab9b1f3087552823f9a7c55c4d5556a13 | Java | bpcavalcante/ZUZ-Projeto-Integrador | /zuz/src/main/java/com/zeroum/zuz/repository/EnderecoRepository.java | UTF-8 | 373 | 1.875 | 2 | [] | no_license | package com.zeroum.zuz.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.zeroum.zuz.model.Endereco;
@Repository
public interface EnderecoRepository extends JpaRepository<Endereco, Long>{
public List<Enderec... | true |
9ef5057eeace3514d200a2670271dce7386b89af | Java | dikshitgupta/MiniProjects | /OOD/design_patterns/src/main/java/com/nagal/design/solid/Rectangle.java | UTF-8 | 185 | 2.625 | 3 | [] | no_license | package com.nagal.design.solid;
public class Rectangle implements shape {
int length;
int breadth;
public int Area() {
return length * breadth;
}
}
// open close principle
| true |
255051798ef7ae02d0db50ad9bec09a6155dc9bc | Java | otser/LabEjbSpringTransferApp | /transfer.service/src/main/java/com/softexploration/lab/ejbspring/transfer/service/impl/BaseMoneyTransferService.java | UTF-8 | 871 | 2.265625 | 2 | [] | no_license | package com.softexploration.lab.ejbspring.transfer.service.impl;
import com.softexploration.lab.ejbspring.transfer.service.MoneyTransferService;
import com.softexploration.lab.ejbspring.transfer.service.cmn.MoneyTransferRequest;
import com.softexploration.lab.ejbspring.transfer.service.cmn.MoneyTransferResponse;
impor... | true |
265464cd6b8d8b3fd60f16e95414c804a6ab7255 | Java | daniel-levy/distributed_system | /src/main/java/com/s34545153/CPEN431/A4/CPEN431_2020_A4/Commands/Remove.java | UTF-8 | 714 | 2.140625 | 2 | [] | no_license | package com.s34545153.CPEN431.A4.CPEN431_2020_A4.Commands;
import com.google.protobuf.ByteString;
import com.s34545153.CPEN431.A4.CPEN431_2020_A4.App;
import com.s34545153.CPEN431.A4.CPEN431_2020_A4.KVEntry;
import ca.NetSysLab.ProtocolBuffers.KeyValueRequest.KVRequest;
public class Remove {
public stat... | true |
e56996d6ec73d0639248173a9192101de9a42043 | Java | XDean/Deannotation-checker | /src/test/java/xdean/deannotation/checker/CheckMethodTest.java | UTF-8 | 1,661 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package xdean.deannotation.checker;
import com.google.testing.compile.Compilation;
import com.google.testing.compile.CompilationSubject;
import xdean.deannotation.checker.processor.MethodChecker;
import xdean.test.compile.CompileTestCase;
import xdean.test.compile.Compiled;
public class CheckMethodTest extends Compi... | true |
256fa99dedb7fbeb89c6ccc08a9153e16bfd8c8d | Java | delve-organization/server | /src/main/java/com/github/delve/security/service/jwt/JwtAuthTokenFilter.java | UTF-8 | 2,569 | 2.234375 | 2 | [] | no_license | package com.github.delve.security.service.jwt;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.Us... | true |
49fe0070ea802cd97d4d949ead2e89ec86f2ad04 | Java | LinZiYU1996/Learning-Java | /MyNotes/C_2/c_2_4/c_2_4_3/Person.java | UTF-8 | 639 | 3.125 | 3 | [] | no_license | package C_2.c_2_4.c_2_4_3;
/**
* \* Created with IntelliJ IDEA.
* \* User: LinZiYu
* \* Date: 2020/1/16
* \* Time: 16:57
* \* Description:
* \
*/
public class Person {
private String name;
private int age;
public Person(String name, int age) {
this.name = name;
this.age = age;
... | true |
77631aefd5ca829d8caa695f057fae9c1dbd0d49 | Java | chenxiang-coder/Learning | /hadoop/src/main/java/com/xufree/learning/hadoop/book/chapter02/my/CreateFile.java | UTF-8 | 1,779 | 3.203125 | 3 | [] | no_license | package com.xufree.learning.hadoop.book.chapter02.my;
import java.io.*;
public class CreateFile {
public static void main(String[] args) {
File dir = new File("D:/data");
if (!dir.exists()) {
dir.mkdirs();
}
for (int i = 0; i < 10; i++) {
int finalI = i;
... | true |
9c0f425e3182c5871da9518406478ea8f8d81235 | Java | ck76/Android-Yunxiang | /app/src/main/java/com/yunxiang/android/product/DetailViewModel.java | UTF-8 | 1,967 | 2.125 | 2 | [] | no_license | package com.yunxiang.android.product;
import android.arch.lifecycle.MutableLiveData;
import com.neuqer.android.network.response.ApiResponse;
import com.yunxiang.android.base.BaseViewModel;
import com.yunxiang.android.network.consumer.ExceptionConsumer;
import com.yunxiang.android.network.consumer.NetworkConsumer;
imp... | true |
3816e2e35991e94b506b1b31bb814366610ddd42 | Java | firugithub/MissionAtier | /MultilevelParkingLot/src/main/java/com/parkingLot/Vehicle/Car.java | UTF-8 | 913 | 3.515625 | 4 | [] | no_license | package com.parkingLot.Vehicle;
import com.parkingLot.ParkingSpot;
/**
* Car that is of type vehicle.A car is right now requires only one parking
* spot.This class defines features of a vehicle called as car.
*
* @author srawat1
*
*/
public class Car extends Vehicle {
public Car(String licensePlate, Color col... | true |
de21bceea6b90f24f9479786c2daacb614bb20ce | Java | basilevs/RED | /src/Eclipse-IDE/org.robotframework.ide.eclipse.main.plugin/src/org/robotframework/ide/eclipse/main/plugin/wizards/NewRobotTestSuitesFolderWizard.java | UTF-8 | 2,523 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.wizards;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.runtime.C... | true |
73e499ebbc55abf6c3db0209ed68762539f07b5e | Java | bellmit/outrel | /src/main/java/com/jy/modules/externalplatform/interfacerepository/mg/extwljxlmgbaseinfo/dto/ExtWlJxlMgUserSearchedStatisticDTO.java | UTF-8 | 1,229 | 1.796875 | 2 | [] | no_license | package com.jy.modules.externalplatform.interfacerepository.mg.extwljxlmgbaseinfo.dto;
import com.jy.platform.core.common.BaseDTO;
/**
* @className: ExtWlJxlMgUserSearchedStatisticDTO
* @package: com.jy.modules.externalplatform.interfacerepository.mg.extwljxlmgbaseinfo.dto
* @describe: 聚信立蜜罐用户注册信息情况
* @au... | true |
a6108973748bfa6dd33c3e7ee9b22cebeb637b1f | Java | hyydj/harmonyos-codelabs | /DistributedVideoCodelab/entry/src/main/java/ohos/codelabs/distributedvideo/util/AbilitySliceRouteUtil.java | UTF-8 | 2,722 | 2.28125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 by applicable law or ag... | true |
dcea7ffcad3e7e972a76445d10e49c4e5f90c28e | Java | careermasud/UVA | /Recent/src/recent/p12372.java | UTF-8 | 669 | 3 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package recent;
import java.util.Scanner;
/**
*
* @author Masudul Haque
*/
public class p12372 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int testCase=sc.nextIn... | true |
8a1c4fdda5e12789aab584daa364d86a4b277e37 | Java | hedingwei/dmc | /com.ambimmort.dmc.client/src/main/java/com/ambimmort/dmc/client/DMCBuilderFactory.java | UTF-8 | 765 | 2.25 | 2 | [
"MIT"
] | permissive | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.ambimmort.dmc.client;
/**
*
* @author Administrator
*/
public class DMCBuilderFactory<T> {
private String ip;
private Class<T> anInterface = null;
private String domain = null;
... | true |
d64741fe1cd6d87b2de7cbe809ca939a6eb6c877 | Java | gaul/s3proxy | /src/main/java/org/gaul/s3proxy/Quirks.java | UTF-8 | 3,819 | 1.71875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014-2021 Andrew Gaul <andrew@gaul.org>
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | true |
e41408c8332355c9d6d49e19796a9b247b5e4f89 | Java | thanhhau052/C0221G1-DuongThanhHau | /module_2/src/bai_11_DSA_stack_queue/thuc_hanh/bai1_trien_khai_stack_linkedList/MyGenericStack.java | UTF-8 | 1,828 | 3.75 | 4 | [] | no_license | package bai_11_DSA_stack_queue.thuc_hanh.bai1_trien_khai_stack_linkedList;
import java.util.EmptyStackException;
import java.util.LinkedList;
public class MyGenericStack<T> {
private LinkedList<T> stack;
public MyGenericStack(){
stack= new LinkedList<>();
}
public boolean isEmpty(){
... | true |
5e2c490f00695b5c0cdb4fbcaf38c94ec1a0f596 | Java | bellmit/myprojects | /Cgtz/src/java/com/tera/interfaces/model/AppJudgeAdviceBean.java | UTF-8 | 622 | 1.882813 | 2 | [] | no_license | package com.tera.interfaces.model;
/**
* 评审会意见接口bean
* @author QYANZE
*
*/
public class AppJudgeAdviceBean {
private String loanId; // 申请编号
private String auditAdv; // 评审会意见
private String loginId; // 登录名
public String getLoanId() {
return loanId;
}
public void setLoanId(String loanId) {
this.loanId =... | true |
69fb0969da9ecada0ee82cd5dafafd7d708d0a5c | Java | rmukhia/SimpleCompiler | /src/alang/lexer/Token.java | UTF-8 | 462 | 2.71875 | 3 | [] | no_license | package alang.lexer;
public class Token {
private String lexVal;
private int lineNum;
private int colNum;
public Token(String lexVal, int lineNum, int colNum) {
this.lexVal = lexVal;
this.lineNum = lineNum;
this.colNum = colNum;
}
public String getLexVal() {
re... | true |
e5ed0b1b68ada8c11cb9e46368bd6deb26dc9de4 | Java | SilenCN/URPCaptchaRecognition | /src/cn/silen_dev/Model/RecognitionWeight.java | UTF-8 | 421 | 2.375 | 2 | [] | no_license | package cn.silen_dev.Model;
/**
* Created by silen on 16-12-11.
*/
public class RecognitionWeight {
private int weight;
private char value;
public int getWeight() {
return weight;
}
public void setWeight(int weight) {
this.weight = weight;
}
public char getValue() {
... | true |
eba062bbfa6e4b7b3cf924a7be8f9b9daf227b7e | Java | Zeeshana2z/CaseStudyComments | /src/main/java/com/target/casestudy/repository/CommentsRepo.java | UTF-8 | 284 | 1.625 | 2 | [] | no_license | package com.target.casestudy.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.target.casestudy.model.Comments;
@Repository
public interface CommentsRepo extends JpaRepository<Comments, Long>{
}
| true |
e80b885cd6fcbf7cb5fe3eae8d14145788c6ddc4 | Java | anonauthors/SoHeal2021-SATA | /src/main/java/mainPipeline/FinalSolution.java | UTF-8 | 638 | 2.703125 | 3 | [] | no_license | package main.java.mainPipeline;
public class FinalSolution<S, C, D> {
private S solution;
private C cost;
private D diffusion;
public FinalSolution(S soultion, C cost, D diffusion) {
this.cost = cost;
this.diffusion = diffusion;
this.solution = soultion;
}
public C getCost() {
return this.cost;
}
... | true |
d1d0a53a9a3d4c0ca0e8ca9fd483712c5eb19d6a | Java | mvsparks/School | /Android/Lab4App1/app/src/main/java/sparks/csit/lab4app1/DisplayGrades.java | UTF-8 | 3,278 | 2.28125 | 2 | [] | no_license | package sparks.csit.lab4app1;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class DisplayGrades ... | true |
e5099ceacde5470cfc9a29efecf0ada2a0d6933f | Java | levangasviani/HikingPartners | /src/Database/NotificationsDM.java | UTF-8 | 2,576 | 2.828125 | 3 | [] | no_license | package Database;
import Models.Notification;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* Created by Saba on 7/16/2017.
*/
public class NotificationsDM {
/* ... | true |
0b574210af6cd4bae84919501775f47a509813d9 | Java | Lapeus/SchachProjekt | /Schach/daten/Spieldaten.java | UTF-8 | 5,252 | 3.359375 | 3 | [] | no_license | package daten;
import java.util.ArrayList;
import java.util.List;
import zuege.EnPassantZug;
import zuege.RochadenZug;
import zuege.Umwandlungszug;
import zuege.Zug;
/**
* Verwaltet alle spielspezifischen Daten, wie die durchgeführten
* Züge und die Zugzeit jeden Spielers.
* @author Christ... | true |
7b2858e2b9d4b3a6e891ed2ab994c75ea8a9bc49 | Java | joulupunikki/Phoenix | /src/gui/package-info.java | UTF-8 | 995 | 1.515625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2015 joulupunikki <joulupunikki@gmail.com>.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
* NON-INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL T... | true |
47cdea558b556a893018ffb986b906881fa83be0 | Java | E-Penguin/Flickr4Java | /Flickr4Java/test/src/com/flickr4java/flickr/test/UploaderSOAPTest.java | UTF-8 | 2,744 | 2.359375 | 2 | [
"Apache-2.0",
"Apache-1.1",
"BSD-2-Clause"
] | permissive | /* Copyright 2004, Aetrion LLC. All Rights Reserved. */
package com.flickr4java.flickr.test;
import static org.junit.Assert.assertNotNull;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.xml.... | true |
c40a950f31adc19ce698d5efc51ed6edfb7da703 | Java | IvanBegar/myfirstapp | /src/MainMenu.java | UTF-8 | 14,277 | 3.296875 | 3 | [] | no_license | import java.io.*;
import java.util.*;
public class MainMenu {
private static List<Brigade> brigades = new ArrayList<>();
private boolean exit;
private boolean back;
private boolean back2;
public static void main(String[] args) throws IOException, ClassNotFoundException {
readFile();
... | true |
97d398a7b89c9a0e50284faf31efdfad7075edd2 | Java | hoangcoi051296/T1904A_Java | /ListUser.java | UTF-8 | 2,791 | 2.46875 | 2 | [] | no_license | package sample;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.cell.Prope... | true |
4ced5ad35163ce1d5551379ae07cdf83bc0621ff | Java | GaoChengQuan/Java1703 | /src/day19/AppConfig.java | UTF-8 | 236 | 1.992188 | 2 | [] | no_license | package day19;
public class AppConfig {
private String paramA = "A";
private String paramB = "B";
private AppConfig() {
}
public String getParamA() {
return paramA;
}
public String getParamB() {
return paramB;
}
}
| true |
75d8fe9e9002518ea303427adfd582232df3f119 | Java | kbargiel099/repository | /auctions/src/main/java/com/auctions/system/portlet/nav_menu/controller/NavigationMenu.java | UTF-8 | 1,005 | 1.9375 | 2 | [] | no_license | package com.auctions.system.portlet.nav_menu.controller;
import java.io.IOException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import javax.portlet.ResourceRequest;
import javax.portlet.ResourceResponse;
import org.springframework.web.bind.annotation.RequestParam;
import org.springfram... | true |
ee74ef33837b2ee98738aabdbbf4420d8f6726a2 | Java | ThanhPhongTP/ProjectDocTruyenOnline | /app/src/main/java/com/example/projectdoctruyenonline/adapter/StoryAdapter.java | UTF-8 | 4,874 | 2.15625 | 2 | [] | no_license | package com.example.projectdoctruyenonline.adapter;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Filter;
import android.widget.Filterable;
import android.widget.... | true |
bf9e8ce5f69f7ed1297fd673abf71bc3ba2e7381 | Java | arjunkarnati/Enterprise6.8 | /lacek coda/src/test/java/library/Series_Testcases.java | UTF-8 | 5,359 | 2.203125 | 2 | [] | no_license | package library;
import org.testng.annotations.Test;
import DataBase.DataBaseLibrary;
import Utility.TestBase;
public class Series_Testcases extends TestBase{
//CREATE SERIES
/*create series test cases with workflow set to approved*/
@Test(priority=0)
//@Test(enabled=false)
public void create_a... | true |
0de7952aa018f10901bd4e34cf574c29e5c8b067 | Java | gabrielprimo/fehidro | /fehidro-client/src/main/java/fehidro/control/InstituicaoBean.java | ISO-8859-1 | 3,082 | 2.34375 | 2 | [] | no_license | package fehidro.control;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.model.SelectItem;
import fehidro.model.Instituicao;
import fehidro.model.enums.TipoInstituicaoEnum;
import fehidro.re... | true |
9bcca437b0112d8c4242aaa95c960605422aa881 | Java | supkingx/smiler-member | /smiler-member-service-impl/src/main/java/com/smiler/member/helper/UserEsMsgSenderHelper.java | UTF-8 | 1,733 | 2.03125 | 2 | [] | no_license | package com.smiler.member.helper;
import com.alibaba.fastjson.JSON;
import com.smiler.member.model.vo.UserIndexMessageVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springf... | true |
a2f9713fd1fcf65a6b74b191b27e4ce050696fda | Java | igorhvr/squirrel-sql | /sql12/plugins/smarttools/src/main/java/net/sourceforge/squirrel_sql/plugins/smarttools/SmarttoolsPlugin.java | UTF-8 | 10,282 | 1.671875 | 2 | [] | no_license | /*
* Copyright (C) 2008 Michael Romankiewicz
* microm at users.sourceforge.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or any later version.
... | true |
577f39a645322df45e21f7a4e9f53741b3d3655a | Java | Sharky666/elevatorSystem | /src/ElevatorSelectionAlgorithm.java | UTF-8 | 390 | 2.796875 | 3 | [] | no_license | import java.util.ArrayList;
public interface ElevatorSelectionAlgorithm {
/**
* Returns an elevator that best fits the given scenario according to the algorithm
* @param elevators List of elevators
* @param sourceFloor What floor the order was made from
* @return Elevator
*/
public El... | true |
df786dc4e3f571c1fbbf82537b15cb74e0c0c2c6 | Java | tobortechftc/min-bot | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/CharlieAutoPrototype.java | UTF-8 | 1,069 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
/**
* Created by 28761 on 9/3/2018.
*/
@Autonomous(name = "MiniBot: CharlieAutoTest", group = "MiniBot")
public class CharlieAutoPrototype extends LinearOp... | true |
806878316c5c8544eb7fffa4bbee2d9a43376866 | Java | huyanbin/medical | /src/main/java/com/gxuwz/medical/mapper/TChronicinfoMapper.java | UTF-8 | 1,286 | 2.1875 | 2 | [] | no_license | package com.gxuwz.medical.mapper;
import com.gxuwz.medical.domain.TChronicinfo;
import java.util.List;
/**
* 慢性信息Mapper接口
*
* @author 麦奇
* @date 2020-06-04
*/
public interface TChronicinfoMapper
{
/**
* 查询慢性信息
*
* @param id 慢性信息ID
* @return 慢性信息
*/
public TChronicinfo selectT... | true |
103ecd596d7fd9b9553d710e3d236ab7410ede58 | Java | jaeseon93/info_manager | /src/main/java/co/yedam/ic/hjs/passwords/controller/PwInsertController.java | UTF-8 | 2,571 | 2.296875 | 2 | [] | no_license | package co.yedam.ic.hjs.passwords.controller;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.sql.Connection;
import javax.crypto.BadPa... | true |
fe80471ee77215159c00996ab234ec7d2ca47357 | Java | NhatLong351996/C0321G1_HuynhNhatLong_module4 | /11_Web Service and RESTful/excercise/01_Blog_Springboot_restful/src/main/java/com/codegym/controller/BlogController.java | UTF-8 | 3,461 | 2.1875 | 2 | [] | no_license | package com.codegym.controller;
import com.codegym.model.bean.Blog;
import com.codegym.model.bean.Category;
import com.codegym.model.service.BlogServicce;
import com.codegym.model.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import... | true |
73cc610b52973abd4e1f17c5369b9c7eb842c1ec | Java | letingoo/BlogSystem | /src/main/java/blog/service/BlogService.java | UTF-8 | 4,324 | 2.59375 | 3 | [] | no_license | package blog.service;
import blog.dao.BlogMapper;
import blog.entity.Blog;
import follow.dao.FollowMapper;
import follow.service.FollowService;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.*;
import org.spri... | true |
df57ffd4188087256490db424981a72ecfd6a67d | Java | layornos/Palladio-Analyzer-SimuLizar | /bundles/org.palladiosimulator.simulizar/src/org/palladiosimulator/simulizar/modelobserver/IModelObserver.java | UTF-8 | 340 | 1.875 | 2 | [] | no_license | package org.palladiosimulator.simulizar.modelobserver;
import org.palladiosimulator.simulizar.runtimestate.AbstractSimuLizarRuntimeState;
public interface IModelObserver {
/**
* Syncs PCM models with SimuCom.
*/
public void initialize(final AbstractSimuLizarRuntimeState runtimeState);
public v... | true |
464c97d544001398fb721d1f6257c32e532ea7a1 | Java | taomylife521/soulcoder | /soulcoder-site/src/main/java/com/soulcoder/dao/SysUserDao.java | UTF-8 | 812 | 1.867188 | 2 | [] | no_license | package com.soulcoder.dao;
import com.soulcoder.pojo.SysUser;
import com.soulcoder.requestdto.Req_UpdatePassword;
import java.util.List;
import java.util.Map;
/**
* The interface Sys user dao.
*/
public interface SysUserDao extends BaseDao<SysUser> {
/**
* Query by username sys user.
*
* @param ... | true |