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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f1cf2b6f961bb8a712ff34e994e2ffc0cd9719d5 | Java | j782282271/jcode | /src/main/java/com/jy/spring/App.java | UTF-8 | 1,145 | 2.265625 | 2 | [] | no_license | //package com.jy.spring;
//
//import org.springframework.beans.BeansException;
//import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
//import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
//import org.springframework.context.support.ClassPathXmlApplicationContext;
//
//... | true |
ddc6943e4deae8e70732812fa21aed3692c5baaf | Java | flyqxf/book | /src/com/yuanneng/book/manage/login/entity/AdminUserBean.java | UTF-8 | 898 | 1.851563 | 2 | [] | no_license | /*
* @(#)UserBean.java
*/
package com.yuanneng.book.manage.login.entity;
import com.yuanneng.book.common.entity.CommonBean;
public class AdminUserBean extends CommonBean {
/**
* 序列化
*/
private static final long serialVersionUID = 1L;
private String userId=null;
private String userPasswo... | true |
9ef75a6213b8bcdba0a4625dcd6845c689fd8946 | Java | sanjeev00/censusapp | /trainingweb/src/main/java/trainingweb/utilities/EntityManagerUtility.java | UTF-8 | 359 | 1.929688 | 2 | [] | no_license | package trainingweb.utilities;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
public class EntityManagerUtility {
public static EntityManagerFactory emf = Persistence.createEntityManagerFactory("jpa-home");;
public static EntityManager e... | true |
ef6cf11315939492fbc64143a668c8d4921269f8 | Java | danishlyy/demo-mapStruct | /src/main/java/com/example/demo/dto/request/PersonRequestDTO.java | UTF-8 | 355 | 1.75 | 2 | [] | no_license | package com.example.demo.dto.request;
import lombok.Data;
import java.io.Serializable;
/**
* @author liyongyong
* @date 2021-04-06
*/
@Data
public class PersonRequestDTO implements Serializable {
private static final long serialVersionUID = -5099997314615241386L;
private Integer age;
private String ... | true |
259a5d8f15ca95ea0ef6861d4aca2301f84152bf | Java | picarjava/PiCar | /src/com/broadcast/model/BroadcastVO.java | UTF-8 | 798 | 2.046875 | 2 | [] | no_license | package com.broadcast.model;
public class BroadcastVO {
private String msgID ;
private String memID ;
private String message ;
private Integer confirmed ;
public BroadcastVO() {
}
public String getMsgID() {
return msgID;
}
public ... | true |
67726a59f55e6ba43cc0a11791ac0fa7c5e7a9bc | Java | MaryAPc/SpeakingChatV2 | /app/src/main/java/com/speakingchat/network/GoogleApiUrls.java | UTF-8 | 624 | 1.921875 | 2 | [] | no_license | package com.speakingchat.network;
public class GoogleApiUrls {
public static final String BASE_URL = "https://www.googleapis.com";
static final String YOUTUBE_URL = BASE_URL + "/youtube/v3";
static final String OAUTH_URL = BASE_URL + "/oauth2/v3";
public static class Youtube {
static final S... | true |
82e7e9ebf3052f43f5c0c008c39c96245cf9c3c5 | Java | dosterji/reversi | /core/src/test/java/plu/blue/reversi/test/CoordinateTest.java | UTF-8 | 1,108 | 2.546875 | 3 | [] | no_license | package plu.blue.reversi.test;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import plu.blue.reversi.client.Coordinate;
/**
* A test for a few methods in the coordinate class
* Created by John on 4/23/2017.
*/
public class CoordinateTest {
Coordinate same1, same2, diff;
@Before
... | true |
aa50920069a6819c78aa0acefe3457f5c119dffa | Java | jaquelinebonoto/EstagioVemSer | /modulo01/src/exercicios_extras/exercicios_extras/NumerosTest.java | UTF-8 | 1,156 | 2.875 | 3 | [] | no_license | import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class NumerosTest {
private final double DELTA = 0.1;
@Test
public void calcularMediaDeArrayPreenchido() {
double[] entrada = { 1.0, 3.0, 5.0, 1.0, -10.0 };
double[] esperado =... | true |
9a3a35f916ea3cf82fa7505eba529e63739bfe49 | Java | tuananhvtatb/Spring-Boot | /Ex8_SQL_Injection/src/main/java/com/sapo/sql_injection/entity/UserEntity.java | UTF-8 | 658 | 2.1875 | 2 | [] | no_license | package com.sapo.sql_injection.entity;
import lombok.Data;
import javax.persistence.*;
import java.time.LocalDateTime;
@Data
@Entity
@Table(name = "tbl_user")
public class UserEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(name = "username", nullable ... | true |
2d5d092180b9015dfb9815384b2a41a20764c373 | Java | albsanmil/training | /src/main/java/com/training/exercise/collections/arraylist/AL_Exercise4.java | UTF-8 | 1,114 | 4.1875 | 4 | [] | no_license | package com.training.exercise.collections.arraylist;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
// 4. Write a Java program to retrieve an element (at a specified index) from a given array list.
public class AL_Exercise4 {
public static void main(String[] args) {
List<Int... | true |
f46bb1222fd16b8d304ec6c5e91b7ac5fa05f759 | Java | zhouzongyu/jt808 | /src/main/java/cn/edu/sdu/jt808/jtframework/annotation/Endpoint.java | UTF-8 | 177 | 1.695313 | 2 | [] | no_license | package cn.edu.sdu.jt808.jtframework.annotation;
import java.lang.annotation.*;
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Endpoint {
} | true |
d96b07d25b7f04df60f694dd1c56fe09a5db5576 | Java | DorianKossowski/CodeLearningApp | /back/src/main/java/com/server/parser/java/value/NullValue.java | UTF-8 | 1,935 | 2.8125 | 3 | [] | no_license | package com.server.parser.java.value;
import com.server.parser.java.ast.expression.Expression;
import com.server.parser.java.ast.expression.NullExpression;
import com.server.parser.util.exception.ResolvingException;
import com.server.parser.util.exception.ResolvingNullPointerException;
import com.server.parser.util.ex... | true |
3d784d5b21f4bf60d089086f7fbad59855cb46e5 | Java | yukuku/androidbible | /AlkitabYes2/src/main/java/yuku/alkitab/yes2/io/RandomInputStream.java | UTF-8 | 406 | 2.65625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | package yuku.alkitab.yes2.io;
import java.io.IOException;
import java.io.InputStream;
/**
* A class that implements InputStream but supports random access by calling {@link #seek(long)} and
* {@link #getFilePointer()}.
*/
public abstract class RandomInputStream extends InputStream {
public abstract void seek(long... | true |
828de797999f937b4ea7988e0bbb0284acb4f4a9 | Java | vinaud/engajamundo | /Engajamundo/src/model/ValidatorLogin.java | UTF-8 | 894 | 2.40625 | 2 | [
"MIT"
] | permissive | package model;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.FacesValidator;
import javax.faces.validator.Validator;
import javax.faces.validator.ValidatorException;
import dao.DaoHibernate;
import... | true |
8dc5146b20404d0fbadcf123972328a018d1af00 | Java | metherton/jsfDemo | /src/main/java/com/martinetherton/persist/UserRepositoryImpl.java | UTF-8 | 1,192 | 2.390625 | 2 | [] | no_license | package com.martinetherton.persist;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org.springframework.stereotype.Repository;
import com.martinetherton.flows.AowBean;
import com.martinetherton.model.Partner;
import com.martinetherton.model... | true |
54c3d6df045382acf377297c8baf5466c74a8045 | Java | dragonetail/EmbeddedMicroservicePoc | /authorization/src/main/java/com/github/dragonetail/service/OauthClientDetailsServiceImpl.java | UTF-8 | 2,169 | 2.03125 | 2 | [] | no_license | package com.github.dragonetail.service;
import com.github.dragonetail.model.OauthClient;
import com.github.dragonetail.repository.OauthClientRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.spr... | true |
5bca23fa0edd5649c33cd064f551d20f4e38dd9d | Java | okantekdas/leetcode | /other/DetectCapital.java | UTF-8 | 789 | 3.1875 | 3 | [] | no_license | package leetcode.other;
public class DetectCapital {
public boolean detectCapitalUse(String word) {
char[] charArr = word.toCharArray();
boolean isFirstUpper = charArr[0] < 97;
int upperCount = 0;
for (int i = 1; i < charArr.length; i++) {
if (charArr[i] < 97) {
... | true |
812cafe97dbf3bc7ccdb2c60cd81323234e52f3a | Java | vinci2015/ReManager | /data/src/main/java/com/njrobot/huangyouqiang/redevicemanager/data/entity/ParamsBeanEntity.java | UTF-8 | 1,592 | 2.46875 | 2 | [] | no_license | package com.njrobot.huangyouqiang.redevicemanager.data.entity;
import java.util.ArrayList;
import java.util.List;
/**
* Created by huangyouqiang on 2016/6/23.
*/
public class ParamsBeanEntity {
private int code;
private List<DataBean> data;
private String info;
public ParamsBeanEntity() {
this.code = 0;
}
... | true |
1451eb11556579780a578a187b4d0b5d39ccaa0c | Java | shiracrammer/JAVA-- | /src/geometries/Sphere.java | UTF-8 | 4,076 | 3.296875 | 3 | [] | no_license | package geometries;
import primitives.Point3D;
import primitives.Ray;
import primitives.Vector;
import java.util.List;
import static primitives.Util.alignZero;
import static primitives.Util.isZero;
/**
* Class Sphere, representing a sphere in 3D.
* Extends Geometry.
* @author Deborah Lellouche
*/
public class S... | true |
a694dd4cbc50126962401733f2e32823b1bcd52d | Java | holiday519/uams | /src/main/java/com/opzoon/license/creator/SuiteLicenseCreator.java | UTF-8 | 1,111 | 2.21875 | 2 | [] | no_license | package com.opzoon.license.creator;
import org.apache.log4j.Logger;
import com.opzoon.license.common.Constants;
import com.opzoon.license.common.ShellUtil;
import com.opzoon.license.exception.BasicException;
public class SuiteLicenseCreator {
private static Logger log = Logger.getLogger(SuiteLicenseCreator.class)... | true |
af01ac7a4c828c03d94ede03737d5c03780a0ebe | Java | singhshivank/ecart | /emart/src/main/java/com/shopping/mart/service/ProductService.java | UTF-8 | 1,438 | 2.53125 | 3 | [] | no_license | package com.shopping.mart.service;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shopping.mart.entity.ProductEntity;
import com.shopping.mart.model.Product;
import com.shopping.mart.repositor... | true |
e2d144ad59cc41ff7decb854534c6b73ed5da015 | Java | rsfirst/TruyenTNV | /TruyenTNV_Web/src/main/java/vn/com/fis/controller/css/SupportController.java | UTF-8 | 332 | 1.710938 | 2 | [] | no_license | package vn.com.fis.controller.css;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class SupportController {
@RequestMapping("/bs/support")
public String support(Map<String, Object> model) {
return "css/sup... | true |
7c3aec0d34e487cd52b786a7fc62021dae1ccef5 | Java | fishjd/HappyNewMoonWithReport | /src/test/java/happynewmoonwithreport/type/Int8Test.java | UTF-8 | 1,428 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 - 2021 Whole Bean Software, 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 a... | true |
7162120b8688a1b522a91b464f75d30b669ba23e | Java | RobertIndra/CursoGit | /src/com/indracompany/vendasdecarro/Autenticavel.java | UTF-8 | 154 | 1.929688 | 2 | [] | no_license | package com.indracompany.vendasdecarro;
public interface Autenticavel {
boolean autenticaLogin(String login);
boolean autenticaSenha(String senha);
}
| true |
11512aaa5e0eb83a4fcc76057b3f7bcb154c76c6 | Java | nikolajbrinch/diy-layout-creator | /diylc-app/src/main/java/org/diylc/app/controllers/PrintController.java | UTF-8 | 677 | 2.296875 | 2 | [] | no_license | package org.diylc.app.controllers;
import java.awt.print.PrinterException;
import org.diylc.app.view.DrawingExporter;
import org.diylc.app.view.canvas.IDrawingProvider;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public interface PrintController extends MenuController {
static final Logger LOG = L... | true |
e19a546abf180b5d04c2351ad4156eb5ce4effb2 | Java | sdpsdpsdpsdp/cloud-parent | /cloud-server/src/main/java/com/laison/server/config/WechatCompon.java | UTF-8 | 1,209 | 1.9375 | 2 | [] | no_license | package com.laison.server.config;
import com.github.binarywang.wxpay.config.WxPayConfig;
import com.github.binarywang.wxpay.service.WxPayService;
import com.github.binarywang.wxpay.service.impl.WxPayServiceImpl;
import com.github.binarywang.wxpay.util.XmlConfig;
import org.apache.commons.lang3.StringUtils;
import org.... | true |
912f847c2cff9e6a07b59cbd9d3430327d7d31ec | Java | Vukoo/restapi | /src/test/java/com/gadek/restapi/controller/PostControllerTest.java | UTF-8 | 4,569 | 2.234375 | 2 | [] | no_license | package com.gadek.restapi.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.gadek.restapi.dto.PostDTO;
import com.gadek.restapi.model.Comment;
import com.gadek.restapi.model.Post;
import com.gadek.restapi.repository.CommentRepository;
import com.gadek.restapi.repository.PostRepository;
import ... | true |
41a353f6af004707aabbc417e055c727f9cce92b | Java | MannSaab/MFPE-Angular-Pharmacy-Supply-Management-System | /Medicine-Stock-master/src/main/java/com/medicine/stock/pojo/MedicineSupply.java | UTF-8 | 297 | 1.796875 | 2 | [] | no_license | package com.medicine.stock.pojo;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class MedicineSupply {
private String medicineName ;
private Integer supplyCount;
}
| true |
0e59177d8d675bd01c2bba5531e522a9f3bb2d65 | Java | 8788808434/ProgrammeTest | /test_project/src/main/java/com/example/task/service/DoctorService.java | UTF-8 | 4,408 | 2.15625 | 2 | [] | no_license | package com.example.task.service;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage;... | true |
556b4ef0d10d8fe6d54a196824b7624993009622 | Java | NikitaElmanov/repo-j | /SintGenerator/src/main/java/ru/web/app/controller/RegServlet.java | UTF-8 | 1,336 | 2.328125 | 2 | [] | no_license | package ru.web.app.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.web.app.model.pojo.User;
import ru.web.app.model.service.UserService;
import ru.web.app.util.CryptoUtil;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Http... | true |
6b3a7a7892b27ccd906ef780bc7411263c43201e | Java | AnchitPandey/Coding-Algorithms | /Leetcode/Sum_Of_Absolute_differences_In_A_Sorted_Array.java | UTF-8 | 1,031 | 2.734375 | 3 | [] | no_license | class Solution {
public int[] getSumAbsoluteDifferences(int[] nums) {
int n = nums.length;
int[] prefix = new int[n];
prefix[0] = nums[0];
for(int i =1; i< n;i+=1)
{
prefix[i] = prefix[i-1]+ nums[i];
}
int[] result = new int[n];
re... | true |
d2835bd0d89b7c8264634e35c729b9c1242ff2b6 | Java | PioTech6719/RelicRecovery1718 | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/subsystem/drive/drivecontroller/PID/consts/GyroPIDConstants.java | UTF-8 | 3,495 | 2.34375 | 2 | [
"BSD-3-Clause"
] | permissive | package org.firstinspires.ftc.teamcode.subsystem.drive.drivecontroller.PID.consts;
public class GyroPIDConstants implements PIDConstants {
private double KP = 0.35;
private double KI = 0.05;
private double KD = 0.05;
private double KF = 0.1;
private double TOLERANCE = 5; //Degrees
private doub... | true |
40b1e3e0aab07ed591d76c5d2427a3a8fd76ef9a | Java | chihyuyang/Maze | /stuff demo/Goal.java | UTF-8 | 598 | 2.703125 | 3 | [] | no_license | import java.awt.Color;
public class Goal extends Tile
{
private int xCoord;
private int yCoord;
private boolean passable = true;
private Color tileColor = Color.GREEN;
private String type = "Goal";
public boolean complete = false;
public Goal(int x, int y)
{
super(x, y);
}
public voi... | true |
64349989bd8102f3896dde7fcbecebd3962d2889 | Java | joaobatista99/disease-diagnosis | /ifneed/Interfaces/IWebService.java | UTF-8 | 118 | 1.828125 | 2 | [
"MIT"
] | permissive | public interface IWebService {
public boolean startWebService(url, port);
public boolean closeWebAppointment();
}
| true |
b641ff0e162e2f67d95357e62a644d4187f79ebd | Java | CS2103JAN2017-W15-B4/main | /src/main/java/seedu/geekeep/logic/LogicManager.java | UTF-8 | 2,170 | 2.484375 | 2 | [
"MIT"
] | permissive | package seedu.geekeep.logic;
import java.util.List;
import java.util.logging.Logger;
import javafx.collections.ObservableList;
import seedu.geekeep.commons.core.ComponentManager;
import seedu.geekeep.commons.core.LogsCenter;
import seedu.geekeep.logic.commands.Command;
import seedu.geekeep.logic.commands.CommandResul... | true |
d011f38a4c42a44c20745c697a1ff5d61af0a65f | Java | royc0003/CZ2002-SS2-Group2 | /OODP_2/src/main/java/MovieManager.java | UTF-8 | 13,848 | 3.25 | 3 | [] | no_license | import java.io.IOException;
import java.io.Serializable;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Scanner;
import java.util.*;
import java. util. Iterator;
public class MovieManager implements Serializable {
/**
* MovieDisplay object
*/
private MovieDisplay displayMovie;
... | true |
0f6115b6292eaa6ac730986d773372d164b4a14f | Java | APTX486913/technology-market-static | /src/main/java/com/wulianwang/technology_markets/Service/AddService/AddzhuanlixinxiService.java | UTF-8 | 1,730 | 1.820313 | 2 | [] | no_license | package com.wulianwang.technology_markets.Service.AddService;
import com.wulianwang.technology_markets.DataBaseController.AddDao.AddzhuanlixinxiDao;
import com.wulianwang.technology_markets.Interface.AddInterface.Addzhuanlixinxi_Interface;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... | true |
41d29972dad6a1852a09a65b68bd82d7e92e4468 | Java | cswenor/Slimy-Sam | /src/com/convolutededge/androidgames/slimysam/LoadingScreen.java | UTF-8 | 2,376 | 2.046875 | 2 | [] | no_license | package com.convolutededge.androidgames.slimysam;
import com.convolutededge.androidgames.framework.Game;
import com.convolutededge.androidgames.framework.Graphics;
import com.convolutededge.androidgames.framework.Graphics.PixmapFormat;
import com.convolutededge.androidgames.framework.Screen;
public class LoadingScree... | true |
b87310814b6aad1287c855cf85b2786699157452 | Java | haihaotao/FruitMachine | /app/src/main/java/com/example/fruitmachine/util/SoundPoolUtil.java | UTF-8 | 2,512 | 2.359375 | 2 | [] | no_license | package com.example.fruitmachine.util;
import android.annotation.SuppressLint;
import android.content.Context;
import android.media.SoundPool;
import android.os.Handler;
import android.util.Log;
import com.example.fruitmachine.R;
import java.util.HashMap;
public class SoundPoolUtil {
private static SoundPoolUt... | true |
893349754b9a9c85ac2e025845e89fd2fd429358 | Java | godanny86/asset-share-commons | /core/src/main/java/com/adobe/aem/commons/assetshare/content/properties/impl/AssetTypeImpl.java | UTF-8 | 5,777 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | /*
* Asset Share Commons
*
* Copyright (C) 2017 Adobe
*
* 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 ap... | true |
d4c24feffa89e07ba60a80f964d9ba0a7dc9d672 | Java | T-Goon/WOOL_Compiler | /src/asmify/ASMRunner.java | UTF-8 | 1,715 | 2.15625 | 2 | [] | no_license | /*******************************************************************************
* This files was developed for CS4533-Techniques of Program Translation and
* CS544-Compiler Construction at Worcester Polytechnic Institute.
*
* All rights reserved. This program and the accompanying materials
* are made available un... | true |
12542caaff34fe5e2454fc737c9a64d97fcdbd87 | Java | nirbar/jenkins-ibvc-plugin | /src/main/java/jenkins/plugins/Ibvc/IbvcPostBuildSave.java | UTF-8 | 6,840 | 1.671875 | 2 | [
"MIT"
] | permissive | package jenkins.plugins.Ibvc;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Map.Entry;
import java.util.Collection;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.StaplerRequest;
import hudson.AbortException;
import hudson.EnvVars;
... | true |
efe65b91874351b1dea67dbcd6d05f7f433a4747 | Java | hornaszenko/neotral-web.github.io | /communicator-rest-server/src/main/java/pl/lodz/uni/math/Communicator/ServletInitializer.java | UTF-8 | 507 | 1.898438 | 2 | [] | no_license | package pl.lodz.uni.math.Communicator;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
/**
* Initializer for DispatcherServlet.
*
* @author Piotr Krzyminski
*/
public class ServletInitializer extends SpringBootServ... | true |
4eb12f23efa83da8a81bf274280b16a5f9ddd9d5 | Java | Rovio01/Minesweeper | /src/com/rovio/minesweeper/game/Space.java | UTF-8 | 863 | 3.203125 | 3 | [
"MIT"
] | permissive | package com.rovio.minesweeper.game;
public class Space {
//Not currently used
//Surrounding values
//-1=bomb
//0=empty with none surrounding
//1-8=empty with its value surrounding
private int surrounding;
private boolean marked;
private boolean clicked;
private int x;
private int y;
public Space(int sur... | true |
1d23ceb0a777d1da802fbe95b4be6264c8458ee2 | Java | SuzyWu2014/coprhd-controller | /vipr-portal/portal/app/util/PasswordUtil.java | UTF-8 | 8,303 | 2.390625 | 2 | [] | no_license | /*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package util;
import java.security.SecureRandom;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.digest.Crypt;
imp... | true |
00bc3143651291d0d4840d9662ec186e701d7bb7 | Java | sunidhi11/Leave-managent-system | /src/sis/com/dao/impl/FeedBackImpl.java | UTF-8 | 1,262 | 2.53125 | 3 | [] | no_license | package sis.com.dao.impl;
import java.sql.*;
import java.util.Date;
import sis.com.bo.FeedBack;
import sis.com.dao.FeedbackDao;
import sis.com.util.SisDbUtil;
public class FeedBackImpl implements FeedbackDao{
public boolean add(FeedBack feedback){
Connection con=null;
PreparedStatement pstmt = null;
int rs =0;... | true |
6953fc9d662c14a01080748f5114703618228c2b | Java | nijeshu/GameServer | /src/gameserver/FXMLDocumentController.java | UTF-8 | 4,249 | 2.796875 | 3 | [] | no_license | package gameserver;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.URL;
import java.util.Date;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.uti... | true |
24ee9a6bde4ac8fde73b3f20b0393ca54d67aa2f | Java | 0305zhanna/JavaCore | /test/codingbat/string1/startWord/SolutionTest.java | UTF-8 | 1,122 | 2.71875 | 3 | [] | no_license | package codingbat.string1.startWord;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class SolutionTest {
Solution s;
@Before
public void setUp() throws Exception {
s = new Solution();
}
@Test
public void test1() {
assertEquals("hi",... | true |
129ebf4d07dcfb65973f7ff5d36b3732d9e5d939 | Java | lysf/Company_FutureInst | /src/com/futureinst/widget/CustomInterpolator.java | UTF-8 | 487 | 2.390625 | 2 | [] | no_license | package com.futureinst.widget;
import android.view.animation.Interpolator;
public class CustomInterpolator implements Interpolator {
/**
*
*/
public CustomInterpolator() {
}
@Override
public float getInterpolation(float input) {
// return (float)(Math.sin(2 * mCyc... | true |
1f79c577c3c3ca49ace635d489b3191e24ff0b9e | Java | Hmago/data-structures-and-algorithm | /dataStructureAlgorithms/src/main/java/problems/dp/CountOfSubsetSum.java | UTF-8 | 1,625 | 3.390625 | 3 | [] | no_license | package problems.dp;
/**
* @author harshit.mago
*/
public class CountOfSubsetSum {
public static int count(int arr[], int sum, int n, int count, int mem[][]) {
if (n < 0 && sum != 0) {
return count;
} else if (sum == 0) {
return count + 1;
}
if (mem[n][su... | true |
f42f4d6e6beb9075dbb52aa838cf0712c94fe41e | Java | Pabloamun/HackerRank-CoreCS | /Basic Programming Challenges/Utopian Tree/UtopianTree.java | UTF-8 | 572 | 3.296875 | 3 | [] | no_license | package basicProgrammingChallenges;
import java.util.Scanner;
public class UtopianTree {
public static void main(String[] args) {
/*
* Enter your code here. Read input from STDIN. Print output to STDOUT.
* Your class should be named Solution.
*/
Scanner in = new Scanner(System.in);
int test... | true |
a12e852d3047c64c600e3a709d124a90cf92eac2 | Java | rohitmanokaran/beyondinfinity | /java/infinity/src/infinity/Infinity.java | UTF-8 | 2,858 | 2.484375 | 2 | [] | no_license | package infinity;
import infinity.gameengine.*;
import infinity.gameobjects.*;
import infinity.networking.GameServer;
import infinity.networking.GameServerClient;
import infinity.networkingevent.RotateAndMove;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import java.io.IOExceptio... | true |
4801b49bdedf3e230e53e43441d2cb973faf0d08 | Java | Hyo-Won-Lee/humanBackup | /src/com/human/ex/Java24_No1.java | UHC | 838 | 3.78125 | 4 | [] | no_license | package com.human.ex;
class Circle2{
public int radius;
public Circle2() {}
public Circle2(int radius) {
this.radius = radius;
}
public void show() {
System.out.println(" " + radius + " ̴.");
}
public int getRadius() {
return radius;
}
public void setRadius(int radius) {
this.radius = radius;
}
}
c... | true |
338c3760ea021b9e803105124a9996669c708807 | Java | k4557616/demooo | /SSM/src/main/java/com/zhiyou/service/impl/SpeakerServiceImpl.java | UTF-8 | 1,269 | 2.046875 | 2 | [] | no_license | package com.zhiyou.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhiyou.dao.SpeakerDao;
import com.zhiyou.model.Speaker;
import com.zhiyou.service.SpeakerService;
@Service
public class Speaker... | true |
70565100233664f305e26b3e6c9a9a09b932f34a | Java | crgt-liuxiantao/zookeeperStudy | /src/main/java/com/crgt/lxt/service/ZookeeperService.java | UTF-8 | 2,619 | 2.21875 | 2 | [] | no_license | package com.crgt.lxt.service;
import jdk.nashorn.internal.runtime.regexp.joni.constants.OPCode;
import lombok.extern.slf4j.Slf4j;
import org.apache.zookeeper.AsyncCallback;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.ZooKeeper;
import org.apache.zook... | true |
41b641d16827c16f12993036bbbff16e70ae53eb | Java | shaath/Madhuri_Kavitha | /Selenium/src/Java/Reuse.java | UTF-8 | 164 | 2.265625 | 2 | [] | no_license | package Java;
public class Reuse
{
public static void main(String[] args)
{
IfEg s=new IfEg();
System.out.println(s.a);
System.out.println(s.b);
}
}
| true |
e538aa0bdda915f5f3c1d76471d35d6109239515 | Java | webclinic017/tradesystem | /src/MacroEconomic/Exit.java | UTF-8 | 9,327 | 2.390625 | 2 | [] | no_license | package MacroEconomic;
// Import Java utilities and Interactive Brokers API
import com.ib.client.Contract;
import com.ib.client.ContractDetails;
import com.ib.client.EClientSocket;
import com.ib.client.EWrapper;
import com.ib.client.Execution;
import com.ib.client.Order;
import com.ib.client.OrderState;
import com.ib.... | true |
7fd02c2121206228e0404d5612f3e88fcc6fd7a0 | Java | game4dream/java.me.rep | /design/src/com/aganzo/design/yg/bean/SubFour.java | UTF-8 | 131 | 1.992188 | 2 | [] | no_license | package com.aganzo.design.yg.bean;
public class SubFour {
void methodFour(){
System.out.println("SubFour.methodFour");
}
}
| true |
b5ca5a9b5120edcc2960b6cbc237480a3f89b4cc | Java | OlgaAnay/infomat | /src/test/java/emias/tests/appManager/NavigationHelper.java | UTF-8 | 5,649 | 2.296875 | 2 | [] | no_license | package emias.tests.appManager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class NavigationHelper extends Helper {
public NavigationHelper(WebDriver driver) {
super(driver);
}
protected ApplicationManager manager;
public... | true |
fb6ac58228da7a4b4673ff1ba1a9166463034b08 | Java | Md-Shamshad/Corona-main | /CoronaMain/src/com/hp/psg/corona/replication/common/exception/CacheException.java | UTF-8 | 2,204 | 2.515625 | 3 | [] | no_license | package com.hp.psg.corona.replication.common.exception;
/**
* This class represents the CacheFramework related exception.
* During CacheFramework if any exception comes need to wrap the exception
* into to this exception class.
*
* @author kn
*
*/
public class CacheException extends CoronaException {
... | true |
f5abb5fe8ae82e8d3d40d09381a94d4a66249e3a | Java | tigerxie/SSH_EMWeb | /tiger_shop/src/cn/tiger/shop/category/vo/Category.java | UTF-8 | 1,159 | 2.421875 | 2 | [] | no_license | package cn.tiger.shop.category.vo;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import cn.tiger.shop.categorysecond.vo.CategorySecond;
/**
* 一级分类实体类
* @author tiger
*
*/
@SuppressWarnings("serial")
public class Category implements Serializable{
private Integer cid;
private Strin... | true |
a6589b0b2d777d97215fa31b2d5453eabc10b2ee | Java | LuckLittleBoy/dqwr | /src/com/dqwr/expert/servlet/DeleteExpertServlet.java | UTF-8 | 1,831 | 2.078125 | 2 | [] | no_license | package com.dqwr.expert.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import beans.Emp;
import com... | true |
ac509f9fb119eeac1b5ae550f2cb69fc688f067d | Java | paulxi/LeetCodeJava | /src/test/java/com/leetcode/algorithm/easy/uniqueemailaddresses/SolutionTest.java | UTF-8 | 395 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.leetcode.algorithm.easy.uniqueemailaddresses;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class SolutionTest {
@Test
public void testCase1() {
Solution solution = new Solution();
String[] emails = {"test.email+alex@leetcode.com", "tes... | true |
0443243a99dcabdc4b3b273dbbe915ab5829e773 | Java | mswiate/lab9 | /src/edu/mswiate/lab9/tests/DataReaderTest.java | UTF-8 | 463 | 2.3125 | 2 | [] | no_license | package edu.mswiate.lab9.tests;
import static org.junit.Assert.*;
import java.io.BufferedReader;
import java.io.StringReader;
import org.junit.Test;
import edu.mswiate.lab9.DataReader;
public class DataReaderTest {
@Test
public void testReadAll() {
BufferedReader br = new BufferedReader(new StringReader("xyxz... | true |
403a04d3bac4872cf182c7c31113f79ff9fab386 | Java | never-sleeps/mail-crypto-client | /src/main/java/com/mailclient/configuration/MailConfiguration.java | UTF-8 | 1,598 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.mailclient.configuration;
import com.mailclient.entity.MailSession;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;... | true |
d13608abed2ccd26947512c36b0a8e6269e66cf8 | Java | stamie/TLOG16Java | /TLOG16Java/src/test/java/TestWorkMonth.java | UTF-8 | 17,580 | 2.78125 | 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.
*/
/**
*
* @author stampel
*/
//import junit.framework.TestCase;
//import org.junit.Before;
import org.junit.Test;
import static org.j... | true |
32d5b46d00cc06e6df7dc0ca50128abf31a4f551 | Java | minstrelsy/comic-epub-reader | /src/app/src/main/java/net/nkbits/epubcomic/ui/widget/ComicFrame.java | UTF-8 | 4,508 | 1.882813 | 2 | [] | no_license | /*******************************************************************************
* Copyright 2009 Robot Media SL
*
* 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.apac... | true |
c539c24e409e16347089bf6ddd51e2ef0b71b322 | Java | zaaztt/pat-a | /PAT1050.java | UTF-8 | 757 | 2.875 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Set;
public class PAT1050 {
public static void main (String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
... | true |
c8fc273ad0aafa7754f071cd5f45c2d4a27476f0 | Java | mmrqs/blakkat | /app/src/main/java/fr/efrei/android/blakkat/consuming/providers/IMovieProvider.java | UTF-8 | 768 | 2.171875 | 2 | [] | no_license | package fr.efrei.android.blakkat.consuming.providers;
import java.util.List;
import fr.efrei.android.blakkat.model.Movie;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface IMovieProvider extends IProvider {
@GET("movies/movie")
Call<Movie> getOne(@Quer... | true |
362694ed10a6c705a97ac4cce88d6712c78e0ac5 | Java | bencsexton/csci310group3project1shared | /src/main/java/csci310/servlet/vacation/VacationPlanningSearch.java | UTF-8 | 3,414 | 2.203125 | 2 | [] | no_license | package csci310.servlet.vacation;
import com.google.gson.Gson;
import csci310.Locations;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
im... | true |
4e51b35c5ee0c2d359f7b4b0a341523018caf3ae | Java | percussion/percussioncms | /modules/utils/src/main/java/com/percussion/utils/container/adapters/DtsConnectorConfigurationAdapter.java | UTF-8 | 1,875 | 1.734375 | 2 | [
"LicenseRef-scancode-dco-1.1",
"Apache-2.0",
"OFL-1.1",
"LGPL-2.0-or-later"
] | permissive | /*
* Copyright 1999-2023 Percussion Software, 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 applicabl... | true |
6beb9b34d00d4fcf51ef45d6d4f86a1c896863a5 | Java | 51bbn/core-spring-patterns | /patterns/creation/singleton/src/main/java/io/spring2go/corespring/singleton_v1/EagerSingleton.java | UTF-8 | 382 | 2.46875 | 2 | [
"MIT"
] | permissive | package io.spring2go.corespring.singleton_v1;
/**
* 提前初始化单例
*/
public class EagerSingleton {
// 静态提前加载
private static final EagerSingleton INSTANCE = new EagerSingleton();
// 私有构造函数,避免被客户端代码使用
private EagerSingleton() {}
// 获取单例入口
public static EagerSingleton getInstance() {
return INSTANCE;
}
}
| true |
93b902ea203596f5a4b1cc8801e0407bf7a73c38 | Java | moutainhigh/kstory-new | /kstore_goods/src/main/java/com/ningpai/goods/dao/impl/GoodsBrandMapperImpl.java | UTF-8 | 11,407 | 2.234375 | 2 | [] | no_license | /*
* Copyright 2013 NINGPAI, Inc.All rights reserved.
* NINGPAI PROPRIETARY / CONFIDENTIAL.USE is subject to licence terms.
*/
package com.ningpai.goods.dao.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.ningpai.api.bean.Auth;
import com.ningpai.goods.bean.GoodsAuth;
impor... | true |
4311eeda99037aeeab0d6ff44269781e51265e2b | Java | wdowon/coupon-manager-webapp | /src/main/java/com/jaeholee/coupon/common/config/db/CouponDBConfig.java | UTF-8 | 2,586 | 2.21875 | 2 | [] | no_license | package com.jaeholee.coupon.common.config.db;
import com.jaeholee.coupon.common.util.CommonDBUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotatio... | true |
109dd881d6c9dbe2c0ddca1ba30cb17c1ad7086d | Java | rraki68/TechAviator_codes | /TechAviator/src/test/java/party_23/party.java | UTF-8 | 455 | 3.359375 | 3 | [] | no_license | package party_23;
public class party {
public static void main(String[] args) {
int a =teaparty(2, 8);
if (a==1){System.out.println("Good");}
else if(a==0){System.out.println("Bad");}
else if(a==2){System.out.println("Geat");}
}
public static int teaparty(int t, int c)
{
int ret = 0;
if(... | true |
0453352174b2f8a8c28575328e7c7169ca5bfc42 | Java | mdNazmulHasan/BitcoinWatcher | /app/src/main/java/najmul/bitcoinwatcher/Constants.java | UTF-8 | 171 | 1.632813 | 2 | [] | no_license | package najmul.bitcoinwatcher;
/**
* Created by Administrator on 10/2/2017.
*/
public class Constants {
public static String BASE_URL="https://api.coindesk.com/";
}
| true |
311960728792d63ca37c0cbc44f9010622ca87da | Java | suisen-cp/cp-library-java | /src/lib/algorithm/longs/LongArraySWAG.java | UTF-8 | 1,823 | 3.3125 | 3 | [] | no_license | package lib.algorithm.longs;
import java.util.NoSuchElementException;
import java.util.function.LongBinaryOperator;
/**
* @author https://atcoder.jp/users/suisen
*
* Sliding Window Aggregation
*/
public final class LongArraySWAG {
private final LongBinaryOperator op;
private final long e;
private fin... | true |
4d17ecd2d182d88f93208e128592d52038dd0227 | Java | Kiboom/Java_Hausaufgabe | /141009 김기범 - 미로과제/src/maze/utils/Define.java | UTF-8 | 793 | 2.296875 | 2 | [] | no_license | package maze.utils;
public class Define {
/* 맵 사이즈 */
public static final int MAP_ROW_SIZE = 6;
public static final int MAP_COL_SIZE = 6;
public static final int MAP_SIZE = MAP_ROW_SIZE * MAP_COL_SIZE;
/* 시작, 끝 위치 */
public static final int START_ROW = 1;
public static final int START_COL = 1;
public stati... | true |
2ef03de38fee0d57a729de3034e770945537ef7b | Java | eastflag/HealthCareServer | /healthcare/src/test/java/com/aurasystem/healthcare/PredictTest.java | UTF-8 | 6,391 | 1.976563 | 2 | [] | no_license | package com.aurasystem.healthcare;
import java.io.FileWriter;
import java.io.IOException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.List;
import javax.crypto.BadPaddingException;
import j... | true |
6da70a86c01b94905a99b576ae0aa9a1b38f4b17 | Java | JokerSSmile/MiniGame | /core/src/ru/patrushevoleg/minigame/states/StatisticsState.java | UTF-8 | 8,282 | 2.140625 | 2 | [] | no_license | package ru.patrushevoleg.minigame.states;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.Preferences;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
impo... | true |
ba4cff79ea692c47e9aaadbab5bb3a3c15393970 | Java | fuyuanxiu/xk_logistics | /src/main/java/com/ansel/bean/CustomerReceiptInfo.java | UTF-8 | 2,548 | 2.296875 | 2 | [
"MIT"
] | permissive | package com.ansel.bean;
import java.sql.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
/**
* 4.7 客户回执信息表
*
* @author Ansel
*
*/
@Entity(name = "customerreceiptinfo")
public class CustomerReceiptInfo extends AnselBaseEntity {
@Column(length = 50)
private String goodsBillCode;
@Colum... | true |
b99ff3de58d747ac4dac1b922eec6925542bed94 | Java | ej0703/java | /javaTP/AdminFrame.java | UHC | 9,642 | 2.53125 | 3 | [] | no_license | package javaTP;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
public class AdminFrame extends JFrame {
JPanel leftPanel, signPanel,
mainPanel_1, mainPanel_2;
// īװ г, ǥ г, г1,2
//г κи ī ̾ƿ ٲ
JLabel lblAdminName, lblMsg;
// ̸,¸
JButton bt... | true |
74fa6a5e573f54651a555be129e1e1c1c6c98c50 | Java | radwasherif/ACM | /src/camp/KefaAndPark.java | UTF-8 | 1,690 | 3.109375 | 3 | [] | no_license | package camp;
import java.awt.Adjustable;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.StringTokenizer;
public class KefaAndPark {
static int [] cat;
static boolean vis[];
static int C, X;
st... | true |
cb26137be497c4454edaab889eef8d80d4f4d799 | Java | SPLMC/reana-spl | /src/parsing/SplGeneratorModels/ActivityDiagram.java | UTF-8 | 4,599 | 2.875 | 3 | [] | no_license | package parsing.SplGeneratorModels;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
//import java.util.Vector;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Documen... | true |
75907f7896af544165ec923e52070459aea298cd | Java | MrHangVIP/VehicleSystem | /app/src/main/java/com/lhj/vehiclesystem/business/ApplyListActivity.java | UTF-8 | 4,509 | 1.90625 | 2 | [] | no_license | package com.lhj.vehiclesystem.business;
import android.graphics.Color;
import android.support.v7.widget.DefaultItemAnimator;
import android.text.TextUtils;
import android.widget.TextView;
import com.google.gson.Gson;
import com.lhj.vehiclesystem.BaseActivity;
import com.lhj.vehiclesystem.BaseApplication;
import com.l... | true |
98812b8a5d5a0241775fe5c01d2a392c7731142d | Java | Tremble666/PermissionSystem | /src/com/chenjin/dao/IGenericDAO.java | UTF-8 | 836 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.chenjin.dao;
import java.util.List;
import com.chenjin.domain.Department;
import com.chenjin.query.IQuery;
import com.chenjin.query.PageResult;
public interface IGenericDAO<T> {
void save(T obj);
void update(T obj);
void delete(Long id);
T get(Long id);
List<T> list();
//高级查询+分页查询
PageResult a... | true |
25c746c17420bae3081d9e1a1be686d5ab966269 | Java | wyxingyuX/Laba | /src/utils/MyToolKit.java | UTF-8 | 2,627 | 2.578125 | 3 | [] | no_license | package utils;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
impor... | true |
670a2a2700df04ac5f071cb268005a437acd0d43 | Java | yong9900/volcano | /src/main/java/upgrade/volcano/adapter/rest/exception/BookingExceptionHandler.java | UTF-8 | 1,672 | 2.28125 | 2 | [] | no_license | package upgrade.volcano.adapter.rest.exception;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.spri... | true |
ce63f3dea7a497ee73d9b52cab43b2f1f3357ee1 | Java | wwj912790488/Ingest-for-struts2 | /commander-web/src/main/java/com/arcsoft/commander/service/system/impl/SystemServiceImpl.java | UTF-8 | 7,712 | 2.234375 | 2 | [] | no_license | package com.arcsoft.commander.service.system.impl;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import org.springframework.beans.BeanUtils;
import com.arcsoft.arcvideo.common.net.NetworkHelper;
import com.arcsoft.arcvideo.common.utils.StringHelper;
import com.arcsoft.arcvideo.ha.HASer... | true |
6a4e1c2892fdb0172d2f5c1934ecea1e4ba8581f | Java | krishna0512/dotfile | /Mail_Server_Setup/src/com/ubitous/socialworkpod/bean/Comment.java | UTF-8 | 1,345 | 2 | 2 | [] | no_license | package com.ubitous.socialworkpod.bean;
import java.util.Arrays;
public class Comment {
private String commentid;
private String tileid;
private String commenttext;
private String createdby;
private String[] attachment;
private String replytoid;
public String getCommentid() {
return commentid;
}
pub... | true |
3b16b2121fcbde5e959c5094bcaeb02cdab0711e | Java | lite5408/jf-plus | /jf-plus-api/jf-plus-api-mobile/src/main/java/com/jf/plus/api/mobile/product/controller/OrgGroupController.java | UTF-8 | 2,173 | 2.0625 | 2 | [] | no_license | package com.jf.plus.api.mobile.product.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind... | true |
811dc8c3af2583053e40ddb6ffe25ec7dd4f3b67 | Java | nuxeo-sandbox/nuxeo-jit-blobstore | /nuxeo-data-generator/src/test/java/org/nuxeo/data/gen/tests/BenchPDF2Text.java | UTF-8 | 1,845 | 2.65625 | 3 | [] | no_license | package org.nuxeo.data.gen.tests;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.commons.io.IOUtils;
import ... | true |
c5056a2e98350e135e13fa7c8e688538bbaf6b7a | Java | parthsdoshi/EarthShare | /app/src/main/java/com/hackathon/areebmehmood/earthshare/PublishFragment.java | UTF-8 | 4,302 | 2.203125 | 2 | [] | no_license | package com.hackathon.areebmehmood.earthshare;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import and... | true |
ccdb394c7a9a365b53e3dcfc684dc7ecfcda2d9d | Java | tushendra1998/Calculator | /app/src/main/java/com/signature/tableviewlayout/MainActivity.java | UTF-8 | 11,759 | 2.71875 | 3 | [
"MIT"
] | permissive | package com.signature.tableviewlayout;
import android.os.Bundle;
import android.text.SpannableStringBuilder;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import java.util.Locale;
import java.util.Stack;
import java.util.reg... | true |
5f15575e12f3d41bc000d4de9f89b49f753db3c0 | Java | Juni-Dai/livingspace-ssm | /src/cn/juni/service/DailyService.java | UTF-8 | 447 | 1.851563 | 2 | [] | no_license | package cn.juni.service;
import java.util.List;
import java.util.Map;
import cn.juni.pojo.Daily;
import cn.juni.pojo.DailyCustom;
public interface DailyService {
public Map<String,Object> insertDaily(Daily daily);
public List<Daily> queryAllDaily();
public DailyCustom queryAllDailyByPage(int pageIndex,int pag... | true |
9010a2f091b5106bbbdbb78cdc86ceb4f35fcf79 | Java | 4321mapuna/QtRecognitionTest | /src/main/java/QTRecognition/kudosPage.java | UTF-8 | 1,044 | 2.125 | 2 | [] | no_license | package QTRecognition;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class kudosPage {
public WebDriver Driver;
By kudos = By.xpath("//div[@class='navbar-nav']/following-sibling::div[1]/a");
By email = By.xpath("//input[@id='email_address']");
... | true |
dd2f8bbb041621e77529ef35e744a7d9ee55a0e3 | Java | natife/quwi | /app/src/main/java/com/natife/testapp/ui/main/MainViewModel.java | UTF-8 | 2,702 | 2.078125 | 2 | [] | no_license | package com.natife.testapp.ui.main;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import com.natife.testapp.Router;
import com.natife.testapp.base.BaseViewModel;
import com.natife.testapp.listeners.ProjectChangeListener;
import com.natife.testapp.model.Project;
import com.natife.testap... | true |
14d4d774ea2530092b436f6480c08691824300f3 | Java | tiffanychuang2/code-day | /src/main/java/codeday/TaskTrackerPopulator.java | UTF-8 | 2,411 | 2.375 | 2 | [] | no_license | package codeday;
import javax.annotation.Resource;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import codeday.models.Customer;
import codeday.models.Project;
import codeday.models.Task;
import codeday.models.TaskLog;
import codeday.repositories.CustomerReposito... | true |
0d9dee9cbedf880c4129ba1b37e0c5977576f372 | Java | OASISBloc/Android_Wallet | /app/src/main/java/io/oasisbloc/wallet/base/PolicyUtils.java | UTF-8 | 3,399 | 2.21875 | 2 | [] | no_license | package io.oasisbloc.wallet.base;
import android.util.Patterns;
import androidx.annotation.IntegerRes;
import androidx.annotation.StringRes;
import io.oasisbloc.wallet.App;
import io.oasisbloc.wallet.R;
public class PolicyUtils {
/*
amount
*/
private static final double MIN_AMOUNT = 0.001;
... | true |
1ef22caa80e35ed1421839268d78d905e5bbfe15 | Java | AhmadHusein5853/DB_Praktikum | /src/main/java/de/unidue/inf/is/domain/Benutzer.java | UTF-8 | 506 | 2.390625 | 2 | [] | no_license | package de.unidue.inf.is.domain;
public final class Benutzer {
private int bnummer;
private String email ;
private String name;
public Benutzer() {
}
public Benutzer(int bnummer, String email,String name) {
this.bnummer = bnummer;
this.email = email;
this.name = name;... | true |