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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d2fd0e99c7c8a73756a277ed54f99f80392b00ff | Java | lixingdeyongyuan/NetUtils | /netutilslib/src/main/java/com/aixue/netutilslib/http/api/CommonApi.java | UTF-8 | 794 | 1.953125 | 2 | [] | no_license | package com.aixue.netutilslib.http.api;
import java.util.Map;
import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.HeaderMap;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import retrofit2.ht... | true |
80fcab287d823a2ecf5cca801a494aff83faa4b2 | Java | EloyMB/ironhack-midterm-project | /src/main/java/com/ironhack/bankingsystem/model/account/StudentCheckingAccount.java | UTF-8 | 1,079 | 2.5 | 2 | [] | no_license | package com.ironhack.bankingsystem.model.account;
import com.ironhack.bankingsystem.model.Money;
import com.ironhack.bankingsystem.model.account.enums.Type;
import com.ironhack.bankingsystem.model.user.impl.Owner;
import javax.persistence.*;
import java.math.BigDecimal;
@Entity
//@Table(name = "student_checking_acco... | true |
3cde0fd747caef9e49eb4953815cc04e2390ff11 | Java | livarb/move-service-registry | /serviceregistry-server/src/main/java/no/difi/meldingsutveksling/serviceregistry/service/ks/FiksAdresseClient.java | UTF-8 | 1,990 | 2.078125 | 2 | [] | no_license | package no.difi.meldingsutveksling.serviceregistry.service.ks;
import net.logstash.logback.marker.Markers;
import org.apache.http.client.utils.URIBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.HttpClientErrorExcept... | true |
ee89ccfffc72d74e81e1034baa0cb82e8043a501 | Java | danilowilliam87/api-navita | /src/main/java/com/navita/test/desafioApiNavita/service/MarcaRn.java | UTF-8 | 608 | 1.789063 | 2 | [] | no_license | package com.navita.test.desafioApiNavita.service;
import com.navita.test.desafioApiNavita.dto.MarcaDTO;
import com.navita.test.desafioApiNavita.dto.PatrimonioDTO;
import com.navita.test.desafioApiNavita.model.Marca;
import com.navita.test.desafioApiNavita.model.Patrimonio;
import java.util.List;
import java.util.Opti... | true |
9d56a4f3ed5e63b647593623d8441c40e04e8084 | Java | wildfly/maven-plugins | /quickstart-documentation-plugin/src/main/java/org/wildfly/maven/plugins/quickstart/documentation/drupal/CodingResourceGenerator.java | UTF-8 | 3,191 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package org.wildfly.maven.plugins.quickstart.documentation.drupal;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import org.apache.maven.p... | true |
4584bda73653e2dc6d028ea5e36351c783243cb0 | Java | lizhijun81/myrpc | /myrpc-core/src/main/java/com/myrpc/rpc/netty/NettyInstanceFatory.java | UTF-8 | 2,021 | 2.515625 | 3 | [] | no_license | package com.myrpc.rpc.netty;
import com.myrpc.extension.RpcComponent;
import com.myrpc.exception.MyRpcRpcException;
import com.myrpc.rpc.InstanceFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
@RpcComponent... | true |
23d913b23911aa0afb56d8374fd2cca525001bdd | Java | praneethdodedu/KafkaExamples | /news-aggregator-app-producer/src/main/java/com/aggregator/news/client/NewsAggregator.java | UTF-8 | 2,184 | 2.640625 | 3 | [] | no_license | package com.aggregator.news.client;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.spring... | true |
b5bfef57b931533ec619761d4e9183d789940e42 | Java | Angel777d/ChartApplication | /app/src/main/java/ru/angelovich/chartapplication/drawer/Bounds.java | UTF-8 | 178 | 2.125 | 2 | [] | no_license | package ru.angelovich.chartapplication.drawer;
class Bounds {
float leftEdge = 0;
float rightEdge = 1;
float delta() {
return rightEdge - leftEdge;
}
}
| true |
ba7ad79a6e334cd4d0658059fe18150b5296377c | Java | xhhqyh/Demo | /2-Java/3-Java/Test/src/Demo/MePhone.java | GB18030 | 460 | 2.6875 | 3 | [] | no_license | package Demo;
public class MePhone extends Telphone implements IPlayGame{
@Override
public void call() {
// TODO Auto-generated method stub
System.out.println("绰");
}
@Override
public void message() {
// TODO Auto-generated method stub
System.out.println("");
}
@Override
public void playGame() {
/... | true |
fedbd4ea5dc1a4c16f46d4b1d079b0420198ff13 | Java | 72worthyTh/Bus-payment | /app/src/main/java/ism/com/worthyth/beep/interfaces/EditorView.java | UTF-8 | 209 | 1.679688 | 2 | [] | no_license | package ism.com.worthyth.beep.interfaces;
public interface EditorView {
void showProgress();
void hideProgress();
void onRequestSuccess(String messege);
void onRequestError(String messege);
}
| true |
1eb99d51f44102b51799d09f6091f81459dd4194 | Java | Alexanderser/WanAndroid | /app/src/main/java/com/foxconn/lau/wanandroid/module/base/BaseAdapter.java | UTF-8 | 3,310 | 2.125 | 2 | [] | no_license | package com.foxconn.lau.wanandroid.module.base;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.View;
import com.foxconn.lau.dialog.recyclerview.LauRecyclerAdapter;
import com.foxconn.lau.dialog.recyclerview.LauRecyclerViewHolder;
import com.foxconn.lau.dialog.recyclerview.... | true |
bba73318f698218ff486f3b1f4b52af188c6ec30 | Java | Sherry280/java-code | /20210101剑指offer/src/day30/TestDay30.java | UTF-8 | 829 | 3.609375 | 4 | [] | no_license | package day30;
import java.util.Scanner;
public class TestDay30 {
/**
* 奇偶校验
* 输入:每一个字符判断其二进制位的每一位是奇还是偶
*/
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
while(sc.hasNext()){
String s=sc.nextLine();
char[] c=s.toCharArray();
... | true |
1b2f8920a04cf7a0df1b0e698f5a755229b3a64f | Java | sahajs/MyFiles | /src/com/trupt/myfiles/persist/SaveToFileThread.java | UTF-8 | 952 | 2.828125 | 3 | [] | no_license | package com.trupt.myfiles.persist;
import java.io.File;
import java.io.FileOutputStream;
import java.io.ObjectOutputStream;
import android.content.Context;
public class SaveToFileThread extends Thread {
private Context context;
private String fileName;
private Object object;
public SaveToFileThread(Context c... | true |
7ec66faff790c34d8f47aee8bc90cbcba179c4e8 | Java | def-demo/Weavon1495098673033 | /src/main/java/com/ford/fleet/models/AltiGeography.java | UTF-8 | 2,556 | 2.171875 | 2 | [] | no_license | package com.ford.fleet.models;
import java.util.Date;
import java.util.Objects;
import java.util.Objects;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persis... | true |
f13d9031dc5f457366149787ec06a9b4125634db | Java | y971140/ewt | /src/main/java/im/zhaojun/system/service/ProviderService.java | UTF-8 | 520 | 1.726563 | 2 | [] | no_license | package im.zhaojun.system.service;
import im.zhaojun.system.model.Provider;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public interface ProviderService {
List<Provider> selectAllProvider(int page, int limit, Provider provider);
String add(Provider provider);
int disablePro... | true |
3e26a4e388c1bdc8cf49913a0381440cfaa1dbcc | Java | DylanHooch/Pisces | /app/src/main/java/scut218/pisces/network/ProtoCodecFactory.java | UTF-8 | 627 | 1.929688 | 2 | [] | no_license | package scut218.pisces.network;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;
public class ProtoCodecFactory implements ProtocolCodecFactory{
// priv... | true |
7c0470296bf022241215a186cedbdfa2d2a06b50 | Java | tfisher1226/ARIES | /aries/common/common-data/src/main/java/org/aries/common/entity/PhoneNumberEntity.java | UTF-8 | 2,186 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package org.aries.common.entity;
import static org.hibernate.annotations.CacheConcurrencyStrategy.READ_WRITE;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;... | true |
3f0152b3e668029474bb9f5673c3016c4244ff82 | Java | mpi2/impc-production-tracker | /impc_prod_tracker/core/src/main/java/org/gentar/biology/plan/attempt/breeding/BreedingTypeRepository.java | UTF-8 | 198 | 1.539063 | 2 | [
"Apache-2.0"
] | permissive | package org.gentar.biology.plan.attempt.breeding;
import org.springframework.data.repository.CrudRepository;
public interface BreedingTypeRepository extends CrudRepository<BreedingType, Long>
{
}
| true |
31a2c9e645b492ef18b3a18eb5037206d16e3e7d | Java | RedHatQE/polarize | /src/main/java/com/github/redhatqe/polarize/metadata/Param.java | UTF-8 | 473 | 1.796875 | 2 | [
"Apache-2.0"
] | permissive | package com.github.redhatqe.polarize.metadata;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Target;
/**
* This class is used to fill in information for com.github.redhatqe.polarize.importer.testcase.Parameter
* It can only be used as an inner annotation type (it can't decorate any other metho... | true |
f326a98f833aa01467ecda74884a18a05b4e346d | Java | wind-clothes/IDWorker | /src/main/java/com/hunk/idworker/config/NettyConfig.java | UTF-8 | 2,458 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package com.hunk.idworker.config;
import com.hunk.idworker.util.Constants;
/**
* <pre>
* </pre>
*
* @author: xiongchengwei
* @date: 2016年3月28日 下午12:09:09
*/
public class NettyConfig {
/**
* 默认端口
*/
private final static int DEFAULT_PORT = 80;
private final static int DEFAULT_NETTY_BACKLOG = 1024;
... | true |
e53765d153cdf7b03a56aad2cf866aaf07e9f8ac | Java | zehranuralkan/JavaLesson4Hw1 | /Interfaces1/src/CostumerDal.java | UTF-8 | 50 | 1.601563 | 2 | [] | no_license |
public interface CostumerDal {
void add();
}
| true |
414669bc61bcee6d5533da9c05d40f1c3def66f8 | Java | RyanCccc/LeetCode | /src/algorithm/Path_Sum.java | UTF-8 | 780 | 2.921875 | 3 | [] | no_license | package algorithm;
import util.TreeNode;
import program.*;
public class Path_Sum implements Testable{
public boolean hasPathSum(TreeNode root, int sum) {
if(root==null)
return false;
return hasPathSumHelper(root,sum,0);
}
public boolean hasPathSumHelper(TreeNode node, int sum, int cur_sum){
if(node==nul... | true |
9c9135bd895b724e6b2f5d51a7e5cb1a4e24b9dc | Java | DeanLXY/apt-dggbinder | /dggcompiler/src/main/java/com/example/ProxyClass.java | UTF-8 | 1,057 | 2.421875 | 2 | [] | no_license | package com.example;
import java.util.ArrayList;
import java.util.List;
import javax.lang.model.element.TypeElement;
import javax.lang.model.util.Elements;
/**
* @Author: xujie.wang
* @Email: xujie.wang@17zuoye.com
* @Date: 2017/5/12
* @Project: DggBind
*/
public class ProxyClass {
private TypeElement type... | true |
11820f7c9b45e4c706f12710837389a34f18314b | Java | bushixiaofan/template-archetype | /target/test-classes/projects/basic/project/basic/src/main/java/it/pkg/service/impl/HelloWorldServiceImpl.java | UTF-8 | 304 | 2.265625 | 2 | [] | no_license | package it.pkg.service.impl;
import it.pkg.service.HelloWorldService;
public class HelloWorldServiceImpl implements HelloWorldService {
@Override
public String SayHelloWorld() {
System.out.println("Hello World~");
return "执行业务方法的返回值为:Hello World";
}
} | true |
2b1f0ad61c79af0ba2a1740081edb04bd4f9e191 | Java | Sainase/MonkeyAndroid | /app/src/main/java/com/sunjiajia/monkeyandroid/mustlearn/databinding/bean/User.java | UTF-8 | 2,162 | 2.21875 | 2 | [] | no_license | /*
*
* *
* * *
* * * * ===================================
* * * * Copyright (c) 2016.
* * * * 作者:安卓猴
* * * * 微博:@安卓猴
* * * * 博客:http://sunjiajia.com
* * * * Github:https://github.com/opengit
* * * *
* * * * 注意**:如果您使用或者修改该代码,请务必保留此版权信息。
* * * * ================================... | true |
f1aa8a74a0db9192f6293ebbb24e86df389aef1a | Java | thiagoalvesec/curso-java-basico | /src/com/loiane/cursojava/aula24/labs/Exercicio04.java | UTF-8 | 2,277 | 2.84375 | 3 | [] | 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 com.loiane.cursojava.aula24.labs;
import java.util.Date;
/**
*
* @author thiago
*/
public class Exercicio04 {
pub... | true |
9383194a12f0c89c575ed2e5825b3af06abe8ad3 | Java | cowwoc/requirements.java | /test/src/test/java/com/github/cowwoc/requirements/test/java/internal/terminal/TerminalTest.java | UTF-8 | 1,716 | 2.265625 | 2 | [
"Apache-2.0",
"EPL-1.0",
"Classpath-exception-2.0",
"LGPL-2.1-or-later",
"CDDL-1.0",
"MIT",
"GPL-2.0-only",
"LicenseRef-scancode-public-domain"
] | permissive | /*
* Copyright (c) 2016 Gili Tzabari
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
package com.github.cowwoc.requirements.test.java.internal.terminal;
import com.github.cowwoc.requirements.java.internal.scope.DefaultJvmScope;
import com.github.cowwoc.requirements.ja... | true |
8a2c6f0c018e3cc1cd3137e7f2cc7382afc23890 | Java | huyuanbin5/tms | /src/main/java/com/wh/tms/entity/po/WorkToolsMaintenance.java | UTF-8 | 7,097 | 2.046875 | 2 | [] | no_license | package com.wh.tms.entity.po;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* 机具维修
* @ClassName: WorkToolsMaintenance
* @Description: TODO
* @author Huqk
* @date... | true |
b76cd0125b49c44421455114b24c6bbb17d9b82e | Java | Smart-Gates/capstone-spring-boot-server | /src/main/java/smartgate/capstonespringboot/models/Organization.java | UTF-8 | 1,359 | 2.09375 | 2 | [] | no_license | package smartgate.capstonespringboot.models;
import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import java... | true |
00307a8813070664f6e7d3e3570bc2f90c16785b | Java | CEYeYuan/Data-Structure-Algorithm | /cc150/9.3magicIndex.java | UTF-8 | 579 | 3.578125 | 4 | [] | no_license | /*A magic index in an array A[0...n-1] is defined to be an index such that A[i]=i.
Given a sorted array, write a method to find a magic index, if one exists, in
array A.
Follow up
What if the values are not distinct */
class test{
public static void printIndex(int[] arr,int start){
if (start>=arr.length/*|| if dupl... | true |
befbb3e6bd59a3ff0f8a34fd8a3e53b209f6c119 | Java | smcclain56/semanticCache | /Java/VLC_QueryMain.java | UTF-8 | 4,821 | 2.359375 | 2 | [] | no_license | package bcf;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.io.BufferedReader;
import java.util.ArrayList;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.Fi... | true |
24f99cc80701e9ef9a7cbe7d8dfd5df6ad0b42f2 | Java | OnabanjoTitus/SpringBootE_Note | /Entry.java | UTF-8 | 335 | 2.0625 | 2 | [] | no_license | package com.notePad.notepad.Model;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Entry {
private final String EntryBody;
public Entry(@JsonProperty("EntryBody") String entryBody) {
EntryBody = entryBody;
}
public String getEntryBody() {
return EntryBody... | true |
231df788de433151260eff7d5c49d6c1359e9c4e | Java | BenHilderman/Assignment-5 | /Maze.java | UTF-8 | 5,372 | 3.421875 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
import java.util.concurrent.TimeUnit;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
/**
* Class Maze.
* @author BenHilderman
* @version 1.0
* @since ... | true |
7825afb888a8807a788ea301d174e86dc0afeb73 | Java | mahindajayakody/pawn-pmb | /pawn/src/java/com/m4/pawning/dao/impl/PawnerDAOImpl.java | UTF-8 | 8,278 | 2.0625 | 2 | [] | no_license | package com.m4.pawning.dao.impl;
import java.text.DecimalFormat;
import java.util.List;
import org.apache.log4j.Logger;
import org.hibernate.Criteria;
import org.hibernate.FetchMode;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Projections;
import org.hibernate.criterion.R... | true |
52763a4ebcd72667cc9d0dbd4534282eae8ac6bf | Java | ini8262/jpa-study | /src/main/java/jpa/entity/BaseEntity.java | UTF-8 | 225 | 2.0625 | 2 | [] | no_license | package jpa.entity;
import javax.persistence.MappedSuperclass;
import java.time.LocalDateTime;
@MappedSuperclass
public abstract class BaseEntity {
private String createdId;
private LocalDateTime createdDateTime;
}
| true |
983642233d6089bd98c56a47fbaf45e4f221317f | Java | tenji/ecommerce | /src/main/java/com/tenjishen/service/affiliate/impl/StateServiceImpl.java | UTF-8 | 647 | 1.8125 | 2 | [] | no_license | package com.tenjishen.service.affiliate.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.tenjishen.dao.StateDao;
import com.tenjishen.model.affiliate.State;
import com.tenjishen.service.BaseServ... | true |
2b7c8af58f550dd0c00569c26c7771ef03eeee5f | Java | Rhadamys/ddm-usach | /src/Vistas/SubVistaCuadroDialogo.java | UTF-8 | 3,131 | 2.46875 | 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 Vistas;
import Controladores.ControladorPrincipal;
import Otros.BotonImagen;
import Otros.Constantes;
import Otros.V... | true |
6f1574ff7b825321485ca79611b0450bded8e128 | Java | a20103111/thumbsup | /src/main/java/com/thumbsup/service/ILoginService.java | UTF-8 | 423 | 1.523438 | 2 | [] | no_license | package com.thumbsup.service;
import com.thumbsup.dto.TStudent;
import com.thumbsup.vo.VO4Login_Rtn;
public interface ILoginService {
public VO4Login_Rtn selectStudentByUserName(String StudentUserName,String StudentPassWord);
public VO4Login_Rtn selectTeacherByUserName(String StudentUserName,String StudentPassW... | true |
071f458c48bdbce4b4f1d2969331cc0d6763b315 | Java | flywelkin/welkin-fast | /welkin-im/src/test/java/io/gitee/welkinfast/im/ImAppTest.java | UTF-8 | 868 | 1.71875 | 2 | [] | no_license | package io.gitee.welkinfast.im;
import io.gitee.welkinfast.im.distributed.LocalNodeProcesser;
import org.apache.curator.framework.CuratorFramework;
import org.apache.zookeeper.CreateMode;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.t... | true |
7221fc6363d312d47946ee190b1ade73cc211f6a | Java | BAschl/MMu18RetRiot | /app/src/main/java/at/ac/tuwien/ims/uemultimediatemplate/GameActivity.java | UTF-8 | 749 | 2.171875 | 2 | [] | no_license | package at.ac.tuwien.ims.uemultimediatemplate;
import android.annotation.SuppressLint;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.os.Handler;
import android.view.MotionEvent;
import android.view.View;
/**
* The main game takes pl... | true |
f1c02b687297a378ab128854d39e85f18abcc6d8 | Java | albertPu/YtAndroid | /net/src/main/java/com/yt/net/client/ApiStore.java | UTF-8 | 3,354 | 2.40625 | 2 | [] | no_license | package com.yt.net.client;
import android.app.Application;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2Call... | true |
167f2a1b0a90fc4a79dd0ca782e15c879b24e94d | Java | yoboitel/Udacity-BuildItBigger | /jokesandroidlibrary/src/main/java/yohan/builditbigger/com/jokesandroidlibrary/DisplayJokeFromIntent.java | UTF-8 | 812 | 2.109375 | 2 | [] | no_license | package yohan.builditbigger.com.jokesandroidlibrary;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import android.widget.Toast;
/**
* Created by Yohan on 17/06/2018.
*/
public class DisplayJokeFromIntent extends AppCompatActivity {
TextView tv_joke... | true |
5f8070c0cb941ca5af87bb9a81c3846ed3f14781 | Java | 1456017852/springboot | /springboot-day01-helloworld/src/main/java/com/naruto/springboot/SpringbootHelloworldApplication.java | UTF-8 | 4,334 | 2.78125 | 3 | [] | no_license | package com.naruto.springboot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* 一、springboot简介
* 1、简介
* (1)、springboot是spring家族中的一个全新的框架,它用来简化spring应用程序的创建和开发,也就是说springboot能简化我们之前用的ssm框架进行开发的过程
* (2)、在我们以往采用ssm框架开发的时候,塔尖和整合三大框架我们要做许多的工作... | true |
3330f0b43ef664f751ee69366dfa25a0cec19046 | Java | AngelineKeshya/Pubhub100-core-maven | /src/com/bookapp/model/TestUser.java | UTF-8 | 425 | 2.578125 | 3 | [] | no_license | package com.bookapp.model;
import com.bookapp.model.User;
public class TestUser {
public static void main(String[] args) {
User user=new User();
user.setId(101);
user.getId();
System.out.println("The user id is"+user.getId());
user.setName("Angel");
user.getName();
System.out.println("M... | true |
6f132c79e36029082cd8e89ba9ad440cbbe83166 | Java | thinkaboutgod/dsmp | /src/main/java/com/dsmp/service/impl/TopicServiceImpl.java | UTF-8 | 14,301 | 2.3125 | 2 | [] | no_license | package com.dsmp.service.impl;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
impo... | true |
77fad6a4f78340ac58588ac2daa1562cf890b6f9 | Java | Baibhabswain/PP2_JAVA | /chapter 4/Queue/Queue.java | UTF-8 | 4,301 | 3.625 | 4 | [
"Apache-2.0"
] | permissive | import java.util.*;
class arrayQueue
{
protected int Queue[] ;
protected int front, rear, size, len;
public arrayQueue(int n)
{
size = n;
len = 0;
Queue = new int[size];
front = -1;
rear = -1;
}
public boolean isEmpty()
{
return front == ... | true |
55f8625be3922cf919607cd212508506367623fa | Java | goodCardTeam/goodCard2 | /app/src/main/java/com/dytj/goodcard/ui/fragment/HomeFragment.java | UTF-8 | 4,989 | 1.8125 | 2 | [] | no_license | package com.dytj.goodcard.ui.fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.Toast;
import com.dytj.goodcard.R;
import com.dytj.goodcard.base.LifecycleLaz... | true |
fd02d9ec2bbf766546b0e78cd32be6f914390529 | Java | rodrigojasa/api-taxi24 | /src/main/java/com/taxi/dominio/properties/ApplicationProperties.java | UTF-8 | 308 | 1.953125 | 2 | [] | no_license |
package com.taxi.dominio.properties;
/**
*
* @author rjacome
*/
public interface ApplicationProperties<T> {
/**
* Obtener propiedades de archivo de configuracion
* @param source
* @return
* @throws Exception
*/
public T getProperties(String source) throws Exception;
}
| true |
30fb130836c5128647e10f9beabb37536cb81d89 | Java | leeqiang250/Android_Reader | /PengBaoBao/src/main/java/cn/com/pyc/media/MediaBaseAdapter.java | UTF-8 | 9,548 | 2.296875 | 2 | [
"MIT"
] | permissive | package cn.com.pyc.media;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.view.LayoutInflater;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;
import android.w... | true |
d195e7eb06a029b66dbf2ee2107f4218ed9b7ca4 | Java | Rdore88/robot | /src/main/java/Robot/VolcanoRobot.java | UTF-8 | 1,298 | 3.078125 | 3 | [] | no_license | package Robot;
public class VolcanoRobot {
String status;
String name;
String location;
int speed;
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public String getName() {
return name... | true |
9b26619e7732f42f5e231084d0e543c77c92ccfc | Java | Nathan2k/secv | /src/main/java/mbean/ChartPieMBean.java | UTF-8 | 1,127 | 2.28125 | 2 | [] | no_license | package mbean;
import java.util.List;
import javax.faces.bean.ManagedBean;
import org.primefaces.model.chart.LegendPlacement;
import org.primefaces.model.chart.PieChartModel;
import DAO.GraficosDAO;
import entity.GraficoPizza;
@ManagedBean
public class ChartPieMBean {
private PieChartModel pieModel1;
private Gr... | true |
c7c3ee9305dc7124ce5b2f262160a5db32169ce0 | Java | RockwellC09/APD2_Repo_CRockwell | /Release/Ratebox/src/com/RockwellChristopher/ratebox/StoresArrayAdapter.java | UTF-8 | 1,892 | 2.859375 | 3 | [] | no_license | /*
* Author: Christopher Rockwell
*
* Project: Ratebox
*
* Package: com.RockwellChristopher.ratebox
*
* File: MoviesArrayAdapter.java
*
* Purpose: This custom array adapter will get the movie title and poster image and populate my ListView.
*
*/
package com.RockwellChristopher.ratebox;
import... | true |
8993a26bd8c6923472617f5e29ed0fd2967f68f8 | Java | sleepygarden/Color2 | /src/color2/space/Color2Activity.java | UTF-8 | 5,914 | 2.625 | 3 | [] | no_license | package color2.space;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
///////////////////////////////////////////////////////////////////////
//Importin... | true |
4e5d0de9eeaa6f3bf2d44be79226964eff20eafb | Java | Fed-or/Mate_Homework | /src/com/fediroryshchuk/homework3/carconstructor/CarWheel.java | UTF-8 | 897 | 3.640625 | 4 | [] | no_license | package com.fediroryshchuk.homework3.carconstructor;
public class CarWheel {
private double tyreIntegrity;
private static final double GOOD_TYRE = 1;
private static final double BAD_TYRE = 0;
public CarWheel() {
tyreIntegrity = GOOD_TYRE;
}
public CarWheel(double stateWheels) {
... | true |
36d8438fa62a9c6cbe71179f2a615135bfd03964 | Java | GuilhermeINF3A/aula-java-git | /ProjetoGitJava/src/br/edu/ifro/Calculadora.java | UTF-8 | 453 | 2.921875 | 3 | [] | no_license | package br.edu.ifro;
/**
*
* @author 02233249224
*/
public class Calculadora {
public double soma(double num1, double num2){
return num1+num2;
}
public double subtracao(double num1, double num2){
return num1-num2;
}
public double multiplica(double num1, double num2... | true |
e8c53b92498359a3a35dfd4a900078887bea6573 | Java | alisabudur/Final-project-AOP | /src/main/java/security/ILoginService.java | UTF-8 | 199 | 1.71875 | 2 | [] | no_license | package security;
import org.springframework.security.core.Authentication;
/**
* Created by Alisa on 5/15/2017.
*/
public interface ILoginService {
Authentication getAuthenticationToken();
}
| true |
0713faeccd6e65b67bf4837e008360db423ee056 | Java | command7/spark_data_lake_capstone | /src/com/datageneration/TitleEpisode.java | UTF-8 | 678 | 2.484375 | 2 | [] | no_license | package com.datageneration;
import org.json.JSONObject;
public class TitleEpisode extends DataUnit {
public TitleEpisode() {
super("title_episodes_sampled.csv");
}
@Override
public JSONObject convertToJson(String[] rowData) {
JSONObject dataInJson = new JSONObject();
this.in... | true |
dcf3f4310429e3bbe929ce16de7f57049a7c13f2 | Java | nagyist/quandl4j | /core/src/main/java/com/jimmoores/quandl/processing/Request.java | UTF-8 | 491 | 2.671875 | 3 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.jimmoores.quandl.processing;
/**
* Interface implemented by all request classes containing visitor accept
* method for RequestProcessors. Also acts as a marker interface.
*/
public interface Request {
/**
* Process this request using the provided processor.
* @param <T> the type returned by th... | true |
2139450e548b76e09fe465529b49ae19e2368737 | Java | coolyboy/ruoyi-flowable | /ruoyi-flowable/src/main/java/com/ruoyi/flowable/domain/dto/FlowSaveXmlVo.java | UTF-8 | 392 | 1.5 | 2 | [
"MIT"
] | permissive | package com.ruoyi.flowable.domain.dto;
import lombok.Data;
import java.io.Serializable;
/**
* @author XuanXuan
* @date 2021/3/28 19:48
*/
@Data
public class FlowSaveXmlVo implements Serializable {
/**
* 流程名称
*/
private String name;
/**
* 流程分类
*/
private String category;
... | true |
9ffcfe3bcb742e13a415123598233f135124c1a0 | Java | fakhriariza/androidapp | /java/com/lpikitb/lpikitbmobile/Activity/LoginActivity.java | UTF-8 | 3,422 | 2.015625 | 2 | [] | no_license | package com.lpikitb.lpikitbmobile.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.... | true |
e54d29fb751b51389eef23b72c2f727cdb4949c3 | Java | abhinavsarma98/ConnectFour | /ConnectFour.java | UTF-8 | 2,180 | 2.71875 | 3 | [] | no_license | import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class ConnectFour {
static JFrame frame = new JFram... | true |
439d0902f02f59b58c8f5c472f595841e8851c33 | Java | AnantLabs/conquiris | /conquiris/conquiris-core/src/main/java/net/conquiris/api/index/Subindexer.java | UTF-8 | 1,069 | 2 | 2 | [] | no_license | /*
* Copyright (C) the original author or authors.
*
* 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... | true |
ecca3f8f88bd900ac9e02c43ab0e857641e5f157 | Java | koalaanntree/ssh2-springboot | /src/main/java/com/sam/ssh2springboot/util/DataFormatUtil.java | UTF-8 | 845 | 2.140625 | 2 | [] | no_license | package com.sam.ssh2springboot.util;
import com.sam.ssh2springboot.dataobject.TopResult;
import java.util.Map;
import java.util.UUID;
/**
* @Author: huangxin
* @Date: Created in 下午2:09 2018/3/19
* @Description:
*/
public class DataFormatUtil {
public static TopResult formatTopResult(Map<String, String> topRe... | true |
9e0eaa5b5f0c93bee627fb1e13582a80c0250da9 | Java | mtiasp/foodfavorites | /app/src/main/java/se/mtiasp/foodfavorites/model/SearchRepository.java | UTF-8 | 6,490 | 2.28125 | 2 | [] | no_license | package se.mtiasp.foodfavorites.model;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import io.realm.Case;
import io.realm.Realm;
import io.realm.RealmQuery;
import okhttp3.ResponseBody;
import retrofit2.Response;
import rx.Subscription;
import rx.and... | true |
6f86f23c091a5825b1c90ee7f43a242fdd25d2b2 | Java | Suryansh-Bhadouria-007/gfg | /leetcode/src/main/java/PreDivBy5.java | UTF-8 | 1,487 | 3.34375 | 3 | [] | no_license | import java.util.Arrays;
public class PreDivBy5 {
private static String processNumber(int A[]) {
int length = A.length;
StringBuilder sb = new StringBuilder();
StringBuilder result = new StringBuilder();
if (length % 2 != 0) {
sb.append('0');
length += 1;
... | true |
9d97f04c977364b0fccee238c56af39783afda47 | Java | infernix/Cloudfeeds | /src/net/cloudfeeds/exception/ErrorViewExceptionResolver.java | UTF-8 | 785 | 2.078125 | 2 | [] | no_license | package net.cloudfeeds.exception;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.SimpleMappingExceptionResolver;
public class ErrorViewExceptionResolver extends Si... | true |
3ba3523990099d85553efa9ad0325e2eb98ba64b | Java | rogervaas/Mutters | /mutters-templated-intent/src/test/java/com/rabidgremlin/mutters/TestDateSlot.java | UTF-8 | 8,164 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | /* Licensed under Apache-2.0 */
package com.rabidgremlin.mutters;
import static com.google.common.truth.Truth.assertThat;
import java.time.LocalDate;
import java.util.Locale;
import java.util.TimeZone;
import org.junit.jupiter.api.Test;
import com.rabidgremlin.mutters.core.Context;
import com.rabidgremlin.mutters.c... | true |
765ccb4a3f92192fa05accc0092afff75705c5cf | Java | UCOld/UnderCurrentBlocks | /src/main/java/undercurrentblocks/definitions/UCMobCounterDefinition.java | UTF-8 | 705 | 2.1875 | 2 | [] | no_license | package undercurrentblocks.definitions;
import api.undercurrent.iface.UCCollection;
import api.undercurrent.iface.UCTileDefinition;
import api.undercurrent.iface.editorTypes.InfoEditorType;
import net.minecraft.inventory.IInventory;
import java.util.List;
/**
* Created by Niel on 10/16/2015.
*/
public class UCMobC... | true |
eb598c91b2dfbb95620c7d302395ef288d550ca4 | Java | LoMoon/SpringTutorial | /src/main/Collections/ArrayListDemo.java | UTF-8 | 632 | 3.546875 | 4 | [] | no_license | package main.Collections;
import java.util.ArrayList;
public class ArrayListDemo {
public static void main(String[] args) {
ArrayList arrayList = new ArrayList();
System.out.println( "Initial size of al: "+ arrayList.size() );
arrayList.add("C");
arrayList.add("A");
arrayLi... | true |
f743648adef04128a257d025c1a9420bed8a7230 | Java | Glenn-Aaron-Fisher-BP/CircleReboot | /src/Shapes/Circle.java | UTF-8 | 625 | 2.796875 | 3 | [] | no_license | package Shapes;
import Points.Point;
public class Circle {
Point center;
int scale;
double radius;
double thickness;
CircleData circleData;
Circle (Point center, int scale, double radius, double thickness) {
this.center = center;
this.scale = scale;
this.radius = radiu... | true |
5d55b474ab9a3630dc1d539755eb9bc1a8c5070a | Java | smilemahi7/ReverseStringProject | /ReverseString.java | UTF-8 | 306 | 3.515625 | 4 | [] | no_license | package Practice;
public class ReverseString {
public static void main(String[] args) {
String str = "HELLO";
int len = str.length();
String rev = "";
for(int i=len-1; i>=0; i--)
{
rev= rev + str.charAt(i);
}
System.out.println("1st Reverse String = "+rev);
}
}
| true |
f43d3200ebd14389cebdc4b5f71f23a0ece4c6ed | Java | zhfang9915/rapp | /rapp-comm/src/main/java/org/rapp/comm/velocity/VelocityTemplate.java | UTF-8 | 1,941 | 2.453125 | 2 | [] | no_license | package org.rapp.comm.velocity;
import java.io.IOException;
import java.io.StringWriter;
import java.util.Properties;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.Velocity;
import org.apache.velocity.exception.ParseErrorException;
import org.apache.ve... | true |
725fef580ea929803ea790cd84e55d25ef78af1e | Java | mmnaseri/spring-data-mock | /spring-data-mock/src/test/java/com/mmnaseri/utils/spring/data/sample/models/EntityWithTimestampDateLastModifiedDate.java | UTF-8 | 711 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.mmnaseri.utils.spring.data.sample.models;
import org.springframework.data.annotation.LastModifiedDate;
import java.sql.Timestamp;
/**
* @author Milad Naseri (m.m.naseri@gmail.com)
* @since 1.0 (4/12/16, 5:20 PM)
*/
@SuppressWarnings("unused")
public class EntityWithTimestampDateLastModifiedDate {
... | true |
78cb87888c6aa47aca88975402ec5b0076069605 | Java | NomBytes/Paint | /src/controller/AbstractAnimation.java | UTF-8 | 3,178 | 3.125 | 3 | [] | no_license | /**
*
*/
package controller;
import java.awt.event.ActionListener;
import java.awt.geom.GeneralPath;
import java.awt.geom.Path2D;
import java.awt.geom.Point2D;
import java.awt.geom.RectangularShape;
import java.util.List;
import javax.swing.JPanel;
import model.ArtModel;
import model.ShapeProperties;
/**
* Proj... | true |
525f553e8fcdb90d54742bff88f384a828b89582 | Java | mesilat/oracle-htp-plugin | /src/main/java/com/mesilat/ora/PlsqlCacheImpl.java | UTF-8 | 7,177 | 1.976563 | 2 | [] | no_license | package com.mesilat.ora;
import com.atlassian.confluence.core.BodyContent;
import com.atlassian.confluence.event.events.content.page.PageCreateEvent;
import com.atlassian.confluence.event.events.content.page.PageRemoveEvent;
import com.atlassian.confluence.event.events.content.page.PageRestoreEvent;
import com.atlassi... | true |
8df326867ef3eb5ba07cb7f1f8b6b59c225e698c | Java | zhengqingya/java-workspace | /SpringBoot系列/10-整合MinIO实现文件上传与下载/分片上传&断点续传&秒传/demo/demo-api/src/main/java/com/zhengqing/demo/model/vo/FileUploadVO.java | UTF-8 | 1,198 | 2.15625 | 2 | [
"MIT"
] | permissive | package com.zhengqing.demo.model.vo;
import io.minio.messages.Part;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* <p>文件上传-响应参数</p>
*
... | true |
21e36d6c953c3611083635d7bf255fa4408098a6 | Java | jcustovic/CChat | /CChat/src/main/java/hr/chus/cchat/struts2/action/common/Default.java | UTF-8 | 307 | 1.625 | 2 | [] | no_license | package hr.chus.cchat.struts2.action.common;
import com.opensymphony.xwork2.ActionSupport;
/**
* Web GET or POST action that returns nothing (Struts2 SUCCESS is always returned).
*
* @author Jan Čustović (jan.custovic@gmail.com)
*/
@SuppressWarnings("serial")
public class Default extends ActionSupport ... | true |
8c26ddf6f83eaef06b5413915de4f362dff2e792 | Java | ad-freiburg/pdfact | /pdfact-core/src/main/java/pdfact/core/pipes/parse/stream/pdfbox/operators/graphic/BeginMarkedContent.java | UTF-8 | 701 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | package pdfact.core.pipes.parse.stream.pdfbox.operators.graphic;
import java.io.IOException;
import java.util.List;
import org.apache.pdfbox.contentstream.operator.Operator;
import org.apache.pdfbox.cos.COSBase;
import pdfact.core.model.Page;
import pdfact.core.model.Document;
import pdfact.core.pipes.parse.stream.p... | true |
f9b824c20cf5e24580cafa20a4bc68c5402eed6a | Java | apiportal/abyss-portal | /src/main/java/com/verapi/portal/controller/ForgotPasswordPortalController.java | UTF-8 | 13,872 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Verapi Inc
*
* 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 agreed to i... | true |
378b9527ca1623a03257e125574980154c257976 | Java | lastwhispers/project | /project-param-validate/src/main/java/cn/lastwhisper/project/validator/annotation/CheckPhone.java | UTF-8 | 1,085 | 2.109375 | 2 | [] | no_license | package cn.lastwhisper.project.validator.annotation;
import cn.lastwhisper.project.validator.PhoneValidator;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.... | true |
5d9f3f3af33e9472eed15e29f7b88ac55a66f19b | Java | pengzhetech/leetcode | /editor/cn/IncreasingSubsequences_491.java | UTF-8 | 995 | 3.296875 | 3 | [] | no_license | //给定一个整型数组, 你的任务是找到所有该数组的递增子序列,递增子序列的长度至少是2。
//
// 示例:
//
//
//输入: [4, 6, 7, 7]
//输出: [[4, 6], [4, 7], [4, 6, 7], [4, 6, 7, 7], [6, 7], [6, 7, 7], [7,7], [4,7,7
//]]
//
// 说明:
//
//
// 给定数组的长度不会超过15。
// 数组中的整数范围是 [-100,100]。
// 给定数组中可能包含重复数字,相等的数字应该被视为递增的一种情况。
//
// Related Topics 深度优先搜索
// 👍 217 👎 0
impo... | true |
5f6e3293f99bc61e66f7f921282ab0de0175ae2a | Java | jasond1016/learnAlgorithm | /java/leetcode/p0028_implement_strstr/Solution.java | UTF-8 | 1,536 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | package leetcode.p0028_implement_strstr;
/**
* @author Wang Botai
* @date 2022/08/26 18:06
*/
public class Solution {
public static void main(String[] args) {
Solution solution = new Solution();
System.out.println(solution.strStr("hello", "ll")); // 2
System.out.println(solution.strStr("... | true |
e270b25d3347dcf0c7e8aee6daaa480e87168078 | Java | aws/aws-sdk-java | /aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/transform/DataBarsOptionsMarshaller.java | UTF-8 | 2,602 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | true |
ea16fc645f2c8195bed920ecfb199759545b6abd | Java | abishekvashok/vCare | /app/src/main/java/io/github/pranavgade20/pennapps/BackgroundJobService.java | UTF-8 | 7,176 | 1.75 | 2 | [] | no_license | package io.github.pranavgade20.pennapps;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.content.Context;
import android.content.Intent;
import android.content.Share... | true |
c18285177000394dd34dd5578627cbf684178aec | Java | zim846/5kmSystem | /src/main/java/com/system/Service/AdvertisementService.java | UTF-8 | 7,608 | 2.125 | 2 | [] | no_license | package com.system.Service;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.system.Enum.ResultEnum;
import com.system.Exception.SystemException;
im... | true |
5c1e0432535c0c60749d55d98acd918a5ae18688 | Java | kimbs0301/junit4 | /src/test/java/com/example/junit/PrivateTest.java | UTF-8 | 1,483 | 2.609375 | 3 | [] | no_license | package com.example.junit;
import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat;
import junit.extensions.PA;
import org.hamcrest.CoreMatchers;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.example.model.Person;
import com.example.util.Tes... | true |
c8b51799a4b2e58b7921cc74f71a55155e554f4e | Java | nicho96/Practice | /Practise/src/com/github/practise/world/World.java | UTF-8 | 521 | 2.796875 | 3 | [] | no_license | package com.github.practise.world;
import java.io.IOException;
import com.github.practise.file.WorldLoader;
public class World {
private int[][] map;
public World(String url, String name){
try {
map = WorldLoader.loadMap(url);
} catch (IOException e) {
e.printStackTrace();
System.exit(-1);
}
}
... | true |
b40dd080ee84011dc117119fba218c70887f8265 | Java | brothersome/ecm | /src/main/java/nl/brothersome/ecm/module/LdapCommunicator.java | UTF-8 | 6,096 | 2.3125 | 2 | [
"BSD-3-Clause"
] | permissive | package nl.brothersome.ecm.module;
import javafx.util.Pair;
import nl.brothersome.ecm.configuration.LdapConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ldap.core.AttributesMapper;
import org.springframework.ldap.core.DirContextAdapter;
import org.springfr... | true |
36bd264b0fb3bfaf15c02a492059aa541563de1f | Java | liexiaofen/GitSource | /OASystem/src/com/lw/oa/pa/master/pa006/IPA006Service.java | UTF-8 | 270 | 1.609375 | 2 | [] | no_license | package com.lw.oa.pa.master.pa006;
import javax.servlet.http.HttpServletRequest;
/**
**@author yuliang
*/
public interface IPA006Service {
public PA006Command pa006001view(String empid);
public int pa006001save(PA006Command command, HttpServletRequest request);
}
| true |
455db22d5fcd1782d16d43e44b6ae26bc4a3155b | Java | FAP-Team/Fap-Module | /fap/test/messages/MessagesTest.java | UTF-8 | 347 | 1.992188 | 2 | [] | no_license | package messages;
import static org.junit.Assert.*;
import org.junit.Test;
import net.sf.oval.constraint.AssertFalse;
public class MessagesTest {
@Test
public void noMessages(){
assertFalse(Messages.hasMessages());
}
@Test
public void addMessages(){
Messages.error("mensaje de error");
assertTrue(Mess... | true |
e32a2e8f7f1e577b316841ef7ba410102f222269 | Java | orlyda/spl191BookStore | /src/main/java/bgu/spl/mics/application/services/ResourceService.java | UTF-8 | 1,890 | 2.796875 | 3 | [] | no_license | package bgu.spl.mics.application.services;
import bgu.spl.mics.Callback;
import bgu.spl.mics.Future;
import bgu.spl.mics.MicroService;
import bgu.spl.mics.application.messages.GetCarEvent;
import bgu.spl.mics.application.messages.ReleaseCarEvent;
import bgu.spl.mics.application.messages.TerminateBroadcast;
import bgu.... | true |
481642ac3309707f45525de3ec80bfd5c428502d | Java | MatteoT9890/BLETracking | /BeaconProject/BlueGiga/src/org/thingml/bglib/gio/BleCodes.java | UTF-8 | 70,579 | 2.484375 | 2 | [] | no_license | package org.thingml.bglib.gio;
/**
* Questa classe contiene diversi metodi, usati per ottenere il significato dei vari codici (es: codici errore) del protocollo BGAPI
* @author Giorgio Avalle
*/
public class BleCodes {
//stampa a schermo
private static void _line(String msg){
System.out.println(msg);
}
... | true |
c925641912d9a4ad995d9325a63ad9f1aafe8a40 | Java | wanghengjie563135/gitresp2 | /src/whj/edu/tjcu/Test/jacksonTest.java | UTF-8 | 3,636 | 2.859375 | 3 | [] | no_license | package whj.edu.tjcu.Test;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import whj.edu.tjcu.domain.Person;
import javax.xml.crypto.Data;
import java.io.File;
import java.io.FileWriter;
import java.util.*;
public class jacksonTes... | true |
357e3e97c75ad8643a75907a7104cd5b55d7c265 | Java | MatthieuPauchet/JavaNetbeans | /GreenVillage/src/main/java/DAL/Rubrique.java | UTF-8 | 1,284 | 2.359375 | 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 DAL;
/**
*
* @author 80010-58-17
*/
public class Rubrique {
private int id;
private String nom;
private St... | true |
75699f69c179e7c0f2f8ced0eea4bb37ec2d45cb | Java | alexandraback/datacollection | /solutions_2755486_0/java/GregD/Wall.java | UTF-8 | 10,168 | 3.078125 | 3 | [] | no_license | /*
* Google Code Challenge Java
*
* Code written for the Google Code Challenge by Greg Dougherty
* Created: May 20, 2011
*
* Copyright 2011 by Greg Dougherty
*/
package com.google.GregTD.CodeJam2013.Round1C.Problem3;
import java.io.*;
import java.text.NumberFormat;
import java.util.*;
/**
* Class that lets... | true |
99292b7443c4d9ea81e598aac6e57a648774b12c | Java | BenMaGit/Hypnosis | /src/gameobject/items/Light.java | UTF-8 | 1,362 | 2.65625 | 3 | [] | 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 gameobject.items;
import gameobject.GameObject;
import gameobject.ObjectID;
import java.awt.Graphics;
import scene.Animation;
... | true |
9c1abd5b5dca348b3fc75415fda94f92b373ed5f | Java | saya-ac-cn/dubbo-nacos | /dubbo-nacos-provider1/src/main/java/ac/cn/saya/mapper/OrderMapper.java | UTF-8 | 685 | 1.851563 | 2 | [] | no_license | package ac.cn.saya.mapper;
/**
* Created by Administrator on 2019/4/3 0003.
*/
import ac.cn.saya.entity.OrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* 订单Dao
* @Title: OrderMapper
* @ProjectName dubbo-nacos
* @Description: TODO
* @Author Adminis... | true |
929944d2fc34673156d246c8d67c70e6ee391bd9 | Java | imzxx/spring-demo | /spring-cloud/rabbitmq-consumer/src/main/java/com/example/rabbitmq/service/FanoutSmsService.java | UTF-8 | 570 | 1.929688 | 2 | [] | no_license | package com.example.rabbitmq.service;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;
/**
* @ClassName FanoutEmailService
* @Description TODO
* @Author zxx
* @Date 2021/3/24 2:55
* @V... | true |
392536ae4570db65a872dfd2b7698bae6053a118 | Java | syedzaidahmed/bank | /src/com/bank/dao/IFarmerHouseDao.java | UTF-8 | 716 | 1.953125 | 2 | [] | no_license | package com.bank.dao;
import java.util.List;
import com.bank.beans.Farmer;
import com.bank.beans.FarmerHouse;
import com.bank.beans.FarmerHouseExample;
import com.common.dao.GenericDAO;
public interface IFarmerHouseDao extends GenericDAO<FarmerHouse, Long> {
public int countByExample(FarmerHouseExample... | true |
e427eb67ca17bdfa3852dd65b76bb691e5a11f9b | Java | Ranunculus/znamenka | /src/main/java/ru/znamenka/service/page/client/ClientPageService.java | UTF-8 | 788 | 1.828125 | 2 | [] | no_license | package ru.znamenka.service.page.client;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import ru.znamenka.api.domain.ClientApi;
import ru.znamenka.jpa.reposit... | true |