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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
af13cb2ad98c60e4830b372529730d93273ec2aa | Java | zergona/PodBack | /src/main/java/com/thesis/redomat/data/dtos/ConfirmationDto.java | UTF-8 | 702 | 2.15625 | 2 | [] | no_license | package com.thesis.redomat.data.dtos;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Data
@Getter
@Setter
@NoArgsConstructor
public class ConfirmationDto {
private int requestId;
private int response;
public int getRequestId() {
return requestId... | true |
eeaf8005b2b01a8e866ef09fe213269db46c2755 | Java | rooneen/Lesson1 | /src/main/java/ru/geekbrains/Lesson2/Lessons1.java | UTF-8 | 2,822 | 3.515625 | 4 | [] | no_license | package ru.geekbrains.Lesson2;
public class Lessons1 {
public static void main(String[] args) {
//task(new int[]{7, 4, 1, 2, 4, 5, 7});
System.out.println(task2_1(new int[]{1, 2, 3, 5, 1}));
System.out.println(task2_1(new int[]{1, 2, 3, 5, 2}));
int[] a = {1, 0, 1, 0, 0, 1};
... | true |
4ecd9447c8bff5c6ed87eef26b033f4d127bf5fa | Java | Tibor17/webapp-security | /jax-rs-jwt/quarkus-jwt/src/test/java/JoseHeader.java | UTF-8 | 498 | 2.34375 | 2 | [] | no_license | import javax.annotation.Nonnull;
public final class JoseHeader {
private final String cty;
private final String type;
private final String alg;
public JoseHeader(@Nonnull String cty, @Nonnull String type, @Nonnull String alg) {
this.cty = cty;
this.type = type;
this.alg = alg;
... | true |
cb9699d58e364d44369f952c2b55ed347bcb12c0 | Java | tsuyoikaze/WhiteRabbit-new-GUI | /src/org/ohdsi/rabbitInAHat/dataModel/Database.java | UTF-8 | 6,940 | 2 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright 2016 Observational Health Data Sciences and Informatics
*
* This file is part of WhiteRabbit
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | true |
5957cf9fda540eb2f6ee357cb2cc283048c30123 | Java | fulln/SpringCloud | /pips/src/main/java/com/fulln/pips/Service/Impl/SysLoginServiceImpl.java | UTF-8 | 885 | 1.960938 | 2 | [] | no_license | package com.fulln.pips.Service.Impl;
import com.fulln.pips.Common.BaseResult.GlobalResult;
import com.fulln.pips.Common.util.ExceptionEnum;
import com.fulln.pips.Dao.SysLoginDao;
import com.fulln.pips.Entity.userEmpEntity;
import com.fulln.pips.Service.ISysLoginService;
import com.github.pagehelper.PageHelper;
import ... | true |
af7eb1de7bc5c051af90eec7a6b4d742b8765624 | Java | wuyuzhou12345/CourseSystem | /src/org/javatribe/courseSystem/adapter/.svn/text-base/AdminDeptAdapter.java.svn-base | UTF-8 | 3,253 | 2.4375 | 2 | [] | no_license | package org.javatribe.courseSystem.adapter;
import java.util.List;
import org.javatribe.courseSystem.R;
import org.javatribe.courseSystem.ui.MyDialog;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.LayoutInflater;
import android.view.View;
... | true |
f5dd0dbf69d69f7b89f83078c667d30d8a87f2cc | Java | Brooke-Hung/SpringMVCRestControllerExample | /src/test/java/com/brookehung/springmvcrestcontroller/web/controller/AccountCertificateRestControllerTest.java | UTF-8 | 5,129 | 2.078125 | 2 | [] | no_license | package com.brookehung.springmvcrestcontroller.web.controller;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilde... | true |
ae6ac7c4d82a142158a293a526f9c1e3c080bc8e | Java | zeismoi/AppCarros | /app/src/main/java/br/com/legasist/controlevendas/domain/FornecedorService.java | UTF-8 | 9,512 | 2.15625 | 2 | [] | no_license | package br.com.legasist.controlevendas.domain;
import android.content.Context;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import livroandroid.lib.ut... | true |
ec9aa19af75dcb53bbe3415725d88433d2347472 | Java | ngphloc/rem | /3_implementation/src/net/rem/em/ExponentialEM.java | UTF-8 | 4,172 | 2.53125 | 3 | [
"MIT"
] | permissive | /**
* SIM: MACHINE LEARNING ALGORITHMS FRAMEWORK
* (C) Copyright by Loc Nguyen's Academic Network
* Project homepage: sim.locnguyen.net
* Email: ng_phloc@yahoo.com
* Phone: +84-975250362
*/
package net.rem.em;
import java.io.Serializable;
import java.rmi.RemoteException;
import net.hudup.core.alg.SetupAlgEvent.... | true |
93e5ddaa93f03ba1b739c9f9797c556a68f5a9f7 | Java | asidun/spring_course | /src/main/java/com/spring/lesson4/qaBean.java | UTF-8 | 174 | 1.820313 | 2 | [] | no_license | package com.spring.lesson4;
public class qaBean implements Bean {
public void aboutBean(){
System.out.println("qaBean name" + this.getClass().getName());
}
}
| true |
f08873e368c1d4fde744ec36e59ca1b6f9b28b6e | Java | CadeLaRen/AircraftSurveillance | /src/aircraftsurveillance/transponder/ModeSMessage.java | UTF-8 | 674 | 2.390625 | 2 | [] | no_license | package aircraftsurveillance.transponder;
import java.time.Instant;
public abstract class ModeSMessage extends TransponderMessage {
int dataFormat = 0;
public static ModeSMessage parse(Instant timestamp, Double receiverLatitude, Double receiverLongitude, Double receiverAltitude, int[] data) {
if (da... | true |
4862e28609d87a7a4a7012e2871e9c2510540629 | Java | nickydraz/Portfolio | /CSC161/Lab 10/Lab10.java | UTF-8 | 3,691 | 3.953125 | 4 | [] | no_license | //Coded by Nicholas Drazenovic
// Java program to simulate the arrival and processing of people at a drive-up teller
// at a bank between 10:00 and 11:00 am
//
// Modified by: <Nicholas_Drazenovic_,_No_Really_It's_Me!>
import java.util.Random; // for # of cars arriving and and being served
public class Lab... | true |
7bad0887a5e84d8eefcd7c71a0fdc7db73a3b464 | Java | xiaoCong2014/Test | /app/src/main/java/mvvm/IVisible.java | UTF-8 | 160 | 1.828125 | 2 | [] | no_license | package mvvm;
import android.view.View;
/**
* mvvm.IVisible
*/
public interface IVisible {
int visible = View.VISIBLE;
int unvisible = View.GONE;
}
| true |
c0d4fe34359d5c9386477140b391ffa68abfb67e | Java | xjq9426586/pol | /src/main/java/thread/DeadLock.java | UTF-8 | 569 | 3.15625 | 3 | [] | no_license | package thread;
public class DeadLock {
private Object o1 = new Object();
private Object o2 = new Object();
public void t1() throws InterruptedException {
synchronized (o1) {
Thread.sleep(2000);
synchronized (o2) {
System.out.println(1);
... | true |
8cb200b2e74d29be354065e66114534ef1b3f89a | Java | rajatahujaatinmobi/Intercom | /src/main/java/com/intercom/inmemorydatastructure/KDimentionalTree.java | UTF-8 | 4,439 | 3.0625 | 3 | [] | no_license | package com.intercom.inmemorydatastructure;
import com.intercom.DTO.LocationEntity;
import com.intercom.DTO.Pair;
import com.intercom.exception.ErrorCode;
import com.intercom.exception.NearestCustomerApplicationException;
import lombok.Data;
import java.util.*;
/**
* Created by hadoop on 15/3/18.
*/
@Data
public ... | true |
4b5f327a069c0ff1ffd72b431bf7563c365787ed | Java | westmelon/qiaoqiaochat-server | /qiaoqiaochat-websocket/src/main/java/com/neo/qiaoqiaochat/websocket/model/emun/MiCommand.java | UTF-8 | 829 | 2.625 | 3 | [
"MIT"
] | permissive | package com.neo.qiaoqiaochat.websocket.model.emun;
/**
* 消息命令类型
* @author Neo Lin
* @date 2020/4/11
*/
public enum MiCommand {
/**
* 连接
*/
CONNECT(1),
/**
* 关闭连接
*/
CLOSE(2),
/**
* 心跳包
*/
HEARTBEAT(3),
/**
* 上线
*/
ONLINE(4),
/**
* ... | true |
ba4c32c4738a61fdb730ef7d960270d0dc487984 | Java | COMP2911/Testing | /quoridor/appClientModule/quoridor/PlayerMove.java | UTF-8 | 3,655 | 3.296875 | 3 | [] | no_license | package quoridor;
import java.util.ArrayList;
/**
* Generate and Validate player moves
*
*/
public class PlayerMove extends AbstractMove {
/**
* Constructor to initialise current board state
* @param boardState
*/
public PlayerMove ( Board boardState ) {
super (boardState);
}
/**
... | true |
8dd8caca095d47e4d9f9cccd025f78012eaad32a | Java | zhangjunfang/eclipse-dir | /restlet01/src/aa/bb/Parent.java | UTF-8 | 144 | 2.140625 | 2 | [
"BSD-2-Clause"
] | permissive | package aa.bb;
public class Parent {
private int member=10;
public void get(){
System.out.println("member:=="+member);
}
}
| true |
dabc6bd2abbaec2bc312cc40e232fa19dd8b283e | Java | moutainhigh/cloud_platform | /src/main/java/cn/sensordb2/stcloud/util/PushMessageUtil.java | UTF-8 | 6,476 | 2.078125 | 2 | [] | no_license | package cn.sensordb2.stcloud.util;
import cn.sensordb2.stcloud.core.Database;
import cn.sensordb2.stcloud.server.ClientManager;
import cn.sensordb2.stcloud.server.ConnectionInfo;
import cn.sensordb2.stcloud.server.common.Account;
import cn.sensordb2.stcloud.server.common.PhoneType;
import cn.sensordb2.stcloud.server.m... | true |
e6b3bcdd25f7d964ce2a09b5d4a61f93e0c230cd | Java | yanhong-tech/TweetAPP | /app/src/main/java/com/codepath/apps/restclienttemplate/DetailActivity.java | UTF-8 | 1,969 | 2.109375 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | package com.codepath.apps.restclienttemplate;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
import com.bum... | true |
df57751dfdc8b07aa86ee2fb3100bd837b5d2a81 | Java | tectronics/luccy | /luccy/src/test/java/luccy/desc/impl/ConstructorDescImplTest.java | UTF-8 | 1,036 | 2.796875 | 3 | [] | no_license | package luccy.desc.impl;
import java.lang.reflect.Constructor;
import junit.framework.TestCase;
import luccy.desc.ClassDesc;
public class ConstructorDescImplTest extends TestCase {
public void testGetSuitableConstructor1() throws Exception {
ClassDesc<A> cd = new ClassDescImpl<A>(A.class);
Construct... | true |
c2c151a7d4d4594151fd39faabb64746e5b9cdd8 | Java | draknyte1/VillageWipe | /src/Java/villagerWipe/core/util/dynamicswitch/ExecuteSwitchStatement.java | UTF-8 | 1,693 | 2.890625 | 3 | [] | no_license | package villagerWipe.core.util.dynamicswitch;
import java.util.HashMap;
import java.util.Map;
public class ExecuteSwitchStatement implements DynamicSwitchStatementCommand{
@Override public String execute(String S) {return null;}
@Override public int checkID(String S) {return 0;}
@Override public String checkName(... | true |
5a915ea321a913d37965aefd991d04e3a328b44c | Java | guchuanhang/EmojiDemo | /app/src/main/java/com/hang/emojidemo/Main2Activity.java | UTF-8 | 836 | 2.125 | 2 | [] | no_license | package com.hang.emojidemo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.TextView;
import com.util.emotions.EmojiUtil;
public class Main2Activity extends AppCompatActivity {
EmojiUtil emojiUtil;
@Override
protected void o... | true |
f93f11c2d7581690a92a2e3b8b1a3f2e48baa22d | Java | Evanlovea/personal_info_manage | /src/dao/impl/FileManagerDaoImpl.java | UTF-8 | 8,863 | 2.53125 | 3 | [] | no_license | package dao.impl;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.slf4j.Logger;
import org.slf4j.Log... | true |
bfa55d2bfa7dc25b4cda7b614ba9e564ad61a551 | Java | jarodknoten/reproduction4j | /src/com/jarodknoten/reproduction/ReproUtil.java | UTF-8 | 671 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | package com.jarodknoten.reproduction;
import java.util.Random;
public class ReproUtil {
public final static void clearConsole()
{
try
{
final String os = System.getProperty("os.name");
if (os.contains("Windows"))
{
Runtime.getRuntime().exec("cls");
}
... | true |
c42efd2688342ae1a6fc6688968d533fe1ed9de3 | Java | WillAlso/Multithreaded-programming | /code/file management/src/Operator.java | GB18030 | 920 | 3.265625 | 3 | [] | no_license | import java.util.Scanner;
public class Operator extends User{
Operator(String name,String password,String role){
setName(name);
setPassword(password);
setRole(role);
}
public void uploadFile() {
String file;
System.out.print("ϴļ:");
Scanner input = new Scanner(System.in);
file = input.next();
System... | true |
09150990f978493dc62365aea89874fcd4e8cda7 | Java | avijitdey/Hospital-Management | /Classes/Hospital.java | UTF-8 | 3,203 | 3.375 | 3 | [] | no_license | package Classes;
import Interfaces.*;
public class Hospital implements PatientOperations, StuffOperations {
public int totalPatients = 0, maximumPatients = 1000;
public int totalStuff = 0, maximumStuff = 100;
Patient patients[] = new Patient[maximumPatients];
Stuff stuffs[] = new Stuff[maximumStuff];
... | true |
0622130ae05208511847820c54a217f40ad890d1 | Java | kevin9041/springcloud-Finchley-2.0.3 | /sc-f-chapter9/service-miya-zipkin/src/main/java/com/misrobot/springcloud/controller/HelloZipkinController8989.java | UTF-8 | 964 | 2.1875 | 2 | [] | no_license | package com.misrobot.springcloud.controller;
import com.misrobot.springcloud.ServiceMiyaZipkinApplication;
import com.misrobot.springcloud.service.HelloZipkinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework... | true |
4cc23929e159f82d29e0abcf0cc3a0659b9a02b1 | Java | VirtualFlyBrain/vfb-data-ingest-ui | /src/main/java/vfb/ebi/dataingest/ui/elements/TermInfoWindow.java | UTF-8 | 1,013 | 2.4375 | 2 | [] | no_license | package vfb.ebi.dataingest.ui.elements;
import com.vaadin.ui.Component;
import com.vaadin.ui.Panel;
import com.vaadin.ui.RichTextArea;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
//Define a sub-window by inheritance
public class TermInfoWindow extends Window {
private static final long serialVe... | true |
7a61bac1dc9912fa22a5ae1f2ee9d3108db8eb41 | Java | jkill123/drumpadTest | /src/main/java/com/utils/CurrentDateTime.java | UTF-8 | 422 | 2.796875 | 3 | [] | no_license | package com.utils;
import java.text.SimpleDateFormat;
import java.util.Date;
/***
* Class contains methods for getting current data and time
*/
public class CurrentDateTime {
public static String currentDate(){
String FORMAT_DATE = "dd-MM-yyyy HH:mm:ss";
Date date = new Date();
SimpleDa... | true |
bb2e53aad2ae13349a75c0a8e509ddc0fad68464 | Java | amit2103/tutorials | /core-java/src/test/java/com/baeldung/linkedlist/MiddleElementLookupUnitTest.java | UTF-8 | 1,782 | 3.296875 | 3 | [
"MIT"
] | permissive | package com.baeldung.linkedlist;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class MiddleElementLookupUnitTest {
@Test
public void whenFindingMiddle_thenMiddleFound() {
String middle = MiddleElementLookup.findMiddleElement(createList(5).head());
assertEquals("3... | true |
7a8272f526ef7632e29fdb541f67908324fed2b6 | Java | AcesDream/spring-cloud-demo | /microservice-api-gateway-filter/src/main/java/com/itmuch/cloud/filter/PreRequestLogFilter.java | UTF-8 | 2,433 | 2.609375 | 3 | [] | no_license | package com.itmuch.cloud.filter;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;
/**
* 自定义过滤器
* @ClassName: PreRequestLogFilter
* @Description: TODO
*
* zuu... | true |
4454a927ca7c10d1473da5ca98aa7f66bc6fc9c8 | Java | MIJAEL888/Sigma.Logistica | /src/main/java/com/sigma/domain/Laboratorio.java | UTF-8 | 9,412 | 1.921875 | 2 | [] | no_license | package com.sigma.domain;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.HashSet;
import java.util.Set;
/**
* A Laboratorio... | true |
c02a76ce88697e0a97698bd0fc920131b58af068 | Java | renato-castillo/spring-boot-oauth2-resource-server-jwt | /src/main/java/com/my/poc/springbootoauth2resourceserverjwt/security/CustomOAuth2ResourceServerConfig.java | UTF-8 | 5,148 | 2.125 | 2 | [] | no_license | package com.my.poc.springbootoauth2resourceserverjwt.security;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframe... | true |
56d0e8330783f8ffdbafad0070637df06b3b15d9 | Java | shubhendra/WebServer | /SourceCode/SequentialServer.java | UTF-8 | 2,327 | 2.6875 | 3 | [] | no_license |
import java.net.ServerSocket;
import java.net.Socket;
public class SequentialServer extends WebServer {
public static void main(String[] args) throws Exception{
// TODO Auto-generated method stub
if (args.length < 2) {
System.out.println("Wrong input: -config config.file");
return;
}
if (!args[0].eq... | true |
f77fe9872ba1c414210ab9b5e93278d7cba30d74 | Java | luizfilho00/Trabalho-de-ProgWeb | /app/src/main/java/com/example/a201619060353/atividadeextra2/modelo/FingerprintHandler.java | UTF-8 | 1,953 | 2.34375 | 2 | [] | no_license | package com.example.a201619060353.atividadeextra2.modelo;
import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.hardware.fingerprint.FingerprintManager;
import android.os.CancellationSignal;
import a... | true |
7c6c7eaac791b13500afd095e190b56a1a0327cd | Java | Morcal/FB_project | /joke-android/joke/src/com/feibo/recorder/FeiboRecorder.java | UTF-8 | 21,157 | 2.203125 | 2 | [] | no_license | package com.feibo.recorder;
import java.io.File;
import java.io.FilenameFilter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElem... | true |
3b87c5ae71845bd411f9d5ee8b7eff687646a31f | Java | s3664099/21-Or-Bust | /src/controller/RemovePlayerEvent.java | UTF-8 | 779 | 2.734375 | 3 | [] | no_license | package controller;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import model.interfaces.GameEngine;
import model.interfaces.Player;
import view.GameFrame;
public class RemovePlayerEvent implements ActionListener {
private GameEngine gameEngine;
private GameFrame frame;
private Player... | true |
b5bcd3ba109bb56d5a1ed908cf44af8c6c3f3648 | Java | VitalyPorsev/JavaGuru1 | /src/main/java/students/arkadij/lesson_6/level_3/task_15/ArrayServiceDemo.java | UTF-8 | 237 | 1.648438 | 2 | [] | no_license | package students.arkadij.lesson_6.level_3.task_15;
class ArrayServiceDemo {
public static void main(String[] args) {
ArrayServiceTest replacedAllTests = new ArrayServiceTest();
replacedAllTests.allTests();
}
}
| true |
aacb365ad36c68b560a95cd0d93bb472c477d3cd | Java | weiwei196/spingcloud-dubbo | /web/src/main/java/com/jk/service/OrderService.java | UTF-8 | 751 | 1.796875 | 2 | [] | no_license | package com.jk.service;
import com.jk.entity.OrderEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Lis... | true |
3f9223541a7a86e8a398157c28ada410e0984a03 | Java | xkw1643469771/xumou | /ssh/src/main/java/com/xumou/ssh/service/H2DatabaseService.java | UTF-8 | 3,634 | 2.71875 | 3 | [] | no_license | package com.xumou.ssh.service;
import com.xumou.ssh.entity.User;
import com.xumou.ssh.repository.UserRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.... | true |
90743325194276307527727f29f8ae57f01f88d8 | Java | rossbelldev/HonoursProjectApp | /App/app/src/main/java/com/honoursapp/activities/BrowseItemsActivity.java | UTF-8 | 7,649 | 2.328125 | 2 | [] | no_license | package com.honoursapp.activities;
import androidx.activity.OnBackPressedCallback;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapt... | true |
dc73d18f3a3cc6d82b5b7b437f5d4917bc8cb430 | Java | cmmdy/YiYouPatient | /app/src/main/java/com/zwt/yiyoupatient/activity/RecordActivity.java | UTF-8 | 2,044 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.zwt.yiyoupatient.activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.TextView;
import com.zwt.yiyoupatient.Base.BaseActivity;
import com.zwt.yiyoupatient.R;
import com.zwt.yiyoupatient.adapter.RecordAdapter;... | true |
09400c0396e05284f61628a8f72d696301547dfc | Java | xiaodaguan/spiderplatform | /engine/src/main/java/cn/guanxiaoda/spider/engine/conf/ThreadPoolConf.java | UTF-8 | 1,845 | 2.1875 | 2 | [] | no_license | package cn.guanxiaoda.spider.engine.conf;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.... | true |
e6fa85e354e136b275f8daee4e9bb743ec1a5ec9 | Java | lkl123456/education1 | /adks-people_express/adks-commons/src/main/java/com/adks/commons/util/DateUtils.java | UTF-8 | 19,621 | 3.375 | 3 | [] | no_license | package com.adks.commons.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class DateUtils {
private static Calendar CALENDAR = Calendar.getInstance();
private static final ThreadLocal<SimpleDateFormat> DATE_FORMATER = new ... | true |
44becc12854550084054f3652f40600f7e42a3a1 | Java | lanaflonform/p3_escalade | /p3_escalade-model/src/main/java/org/oc_j2ee/projet3/model/Borrow.java | UTF-8 | 980 | 2.234375 | 2 | [] | no_license | package org.oc_j2ee.projet3.model;
import java.util.Date;
public class Borrow {
private Integer id;
private Date startDate;
private Date endDate;
private Integer topoId;
private Integer utilisateurId;
public Date getStartDate() {
return startDate;
}
public void setStartDate... | true |
706a884abe77d13aa76645555e3c763f98c735a4 | Java | sanherushi/pervue | /src/main/java/com/majingji/pervue/controller/Menu_roleController.java | UTF-8 | 1,454 | 1.921875 | 2 | [] | no_license | package com.majingji.pervue.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.majingji.pervue.entity.Menu_role;
import com.majingji.pervue.service.IMenu_roleService;
import com.majingji.pervue.vo.ResultEntity;
import org.springframework.web.bind.annotation.RequestMapping;
imp... | true |
53f6ff1b818496ed69535a8a94b28e4f3a2d6349 | Java | mau5atron/java_programming | /01_day_one/01_MarsRobot/MarsApplication.java | UTF-8 | 766 | 3.328125 | 3 | [] | no_license | class MarsApplication{
public static void main(String[] arguments){
// declaring new MarsRobot object named spirit
MarsRobot spirit = new MarsRobot();
spirit.status = "exploring";
spirit.speed = 2;
spirit.temperature = -60;
spirit.showAttributes();
System.out.println("Increasing speed to 3.");
spiri... | true |
7f396230d49878d56278294403979ee60709115b | Java | zhuyufeng0809/AiLab | /Admin/src/main/java/hdu/ailab/admin/dao/staff_collegeMapper.java | UTF-8 | 473 | 1.921875 | 2 | [] | no_license | package hdu.ailab.admin.dao;
import hdu.ailab.admin.bean.staff_college;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface staff_collegeMapper {
int insert(staff_college record);
int insertSelective(st... | true |
3639cd7342c7bb10c257c0c35d63825679c7380d | Java | uwitec/sisys2 | /sisys_beta2.0/src/com/sisys/util/Test.java | UTF-8 | 537 | 2.453125 | 2 | [] | no_license | package com.sisys.util;
import java.util.ArrayList;
import java.util.List;
public class Test {
public void test() {
OP op = OP.BETWEEN;
Link link = Link.WHERE;
Object[] value = {3,10};
Element element = new Element(link, op, "id", value);
List<Element> elements = new ArrayList<Element>();
ele... | true |
1b91a15cc87b637f2a300db20f832daa9c4bf401 | Java | zhongzeyu/creditcardsdk.github.io | /IOTPayAndroidCredit/src/main/java/iotpay/androidcredit/widgets/IOTPayCardShadow.java | UTF-8 | 808 | 1.851563 | 2 | [
"MIT"
] | permissive | package iotpay.androidcredit.widgets;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import java.util.List;
import iotpay.androidcredit.util.IOTPayEditText;
public class IOTPayCardShadow extends Re... | true |
be5652c9bd4eac21d7e2a00cdeb5ddc96638a292 | Java | m10119002/IF1-10119002-Latihan60-Akatsuki | /src/m10119002/pbo/latihan60/target/village/Takigakure.java | UTF-8 | 1,116 | 3.03125 | 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 m10119002.pbo.latihan60.target.village;
/**
*
* @author
*/
// (2/2) Class Cabang Polymorphism
public class Taki... | true |
93b0c6482aea12f6e4ab798b3f47e167fc227ddd | Java | pedrobacchini/ecommerce-kafka | /service-log/src/main/java/com/github/pedrobacchini/LogService.java | UTF-8 | 1,371 | 2.5 | 2 | [] | no_license | package com.github.pedrobacchini;
import com.github.pedrobacchini.consumer.KafkaService;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.common.serialization.StringDeserializer;
import java.util.Map;
import java.util.concurrent.... | true |
ce42dfe6df9b379064d3817387110cc41ce450c9 | Java | vanisri3/vani | /Assignment 3/Inventory.java | UTF-8 | 11,438 | 2.53125 | 3 | [] | no_license | package Assignment3;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.border.MatteBorder;
import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import java... | true |
068025530b64016d28af4217c4f9d533147f300a | Java | sandorszucs/CinemaProject | /src/main/java/org/project/persistence/UserRepository.java | UTF-8 | 292 | 2.015625 | 2 | [] | no_license | package org.project.persistence;
import org.project.domain.User;
import org.springframework.data.repository.PagingAndSortingRepository;
public interface UserRepository extends PagingAndSortingRepository<User, Long> {
User findUserById(long id);
User findByEmail(String email);
}
| true |
bba42b84e801d4b6e83e9610b103965d1c5e5c02 | Java | uselesscloudlet/Java_Labs | /src/com/uselesscloud/FirstLab/FirstLab.java | UTF-8 | 2,479 | 3.375 | 3 | [] | no_license | package com.uselesscloud.FirstLab;
import java.text.DateFormatSymbols;
import java.util.*;
public class FirstLab {
public static void makeCalendar(int dayOfWeek) {
Calendar gregorianCalendar = new GregorianCalendar(TimeZone.getDefault());
Map<String, Integer> monthMap = gregorianCalendar.getDispl... | true |
e97e3736c18c87ddde679fafe966bc708367dcc4 | Java | league-level4-student/level4-module1-SISBEST | /src/_03_Switch_Statement_Practice/CustomButtonOptionPanes.java | UTF-8 | 3,541 | 3.3125 | 3 | [] | no_license | package _03_Switch_Statement_Practice;
import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import javax.swing.JOptionPane;
public class CustomButtonOptionPanes {
public static void main(String[] args) {
String[] options = { "Sunday", "... | true |
e8379d6c6f636abe738412d6726024455e94049b | Java | CodegileTraining/Work | /Cosmin/Week1/Day 3/Paranteze.java | UTF-8 | 895 | 3.390625 | 3 | [] | no_license | package Day3;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Scanner;
public class Paranteze {
static boolean checkString(String line){
Deque<Character> stiva=new ArrayDeque<Character>();
for(int i=0;i<line.length();i++){
i... | true |
a60933a888ab481c07c4efe3852def97135d0c5c | Java | payencai/SuperLove | /app/src/main/java/com/love/novalue/adapter/SharePhotoAdapter.java | UTF-8 | 1,280 | 2.125 | 2 | [] | no_license | package com.love.novalue.adapter;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.love.novalue.R;
import com.lov... | true |
c4cb0e2f8744faf042670d204619af98fb38c7f7 | Java | Jongwon0318/BusanIt | /Java_Basic/chap06_2019_11_12/SayHello.java | UHC | 703 | 3.5625 | 4 | [] | no_license | package chap06_2019_11_12;
public class SayHello {
public static void main(String[] args) {
String[] msg = {"ȳϼ", "Hi","Hello","","ȳ"};
//10 λ縻
try {
for(int i=0 ; i <10; i++) {
int num = (int)(Math.random()*10);
System.out.println(num +" : " + msg[num]);
}
}catch(ArrayIndexOutOfBoundsExcepti... | true |
2346f107357196bf15576b7e61bb806e1b1a3a61 | Java | zhang2/JavaDesignPattern | /src/com/zjg/observe/demo/Thief.java | UTF-8 | 448 | 2.75 | 3 | [] | no_license | package com.zjg.observe.demo;
import java.util.ArrayList;
import java.util.List;
public abstract class Thief {
private List<PoliceMan> policeMans = new ArrayList<PoliceMan>();
void attachPoliceMan(PoliceMan policeMan) {
policeMans.add(policeMan);
}
void detachPoliceMan(PoliceMan policeMan) {
policeMans.r... | true |
f251404c1e5f272bab838711950142b5dcf27fd3 | Java | PH9/Captcha | /src/main/java/OperandFactory.java | UTF-8 | 710 | 3.390625 | 3 | [] | no_license | public class OperandFactory {
private final int pattern;
private final int leftOperand;
private final int rightOperand;
public OperandFactory(int pattern, int leftOperand, int rightOperand) {
this.pattern = pattern;
this.leftOperand = leftOperand;
this.rightOperand = rightOpera... | true |
2cab67b0f50847889c1c9014d5f37c2015c589e4 | Java | cha63506/CompSecurity | /Entertainment/crackle_source/src/com/comscore/android/id/API9.java | UTF-8 | 1,056 | 1.875 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.comscore.android.id;
import android.content.Context;
import android.os.Build;
public class API9
{
public API9()
{
}
... | true |
f616e4eec39a3a10bf1246746bed06b2b0b789fb | Java | cgb-middleware/SpringBootMybatisShardingDemo | /jpademo/src/main/java/com/zb/demo/JpademoApplication.java | UTF-8 | 746 | 1.71875 | 2 | [] | no_license | package com.zb.demo;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.transaction.jta.JtaAutoC... | true |
4c3710399b06631c44a1ebebc4c93fc6f10cd86f | Java | SevDan/jmix-docs | /content/modules/charts/examples/ex1/src/main/java/charts/ex1/screen/charts/config/MultipleValueaxisChart.java | UTF-8 | 1,953 | 2.375 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-4.0"
] | permissive | package charts.ex1.screen.charts.config;
import charts.ex1.entity.DateValueVolume;
import io.jmix.ui.model.CollectionContainer;
import io.jmix.ui.screen.Screen;
import io.jmix.core.Metadata;
import io.jmix.core.TimeSource;
import io.jmix.ui.screen.Subscribe;
import io.jmix.ui.screen.UiController;
import io.jmix.ui.scr... | true |
fff1a0231e6e16e20c50f2ba64cf1b8152a75bd8 | Java | gtagliani/MiEncuesta | /miencuesta-model/src/main/java/model/IDataList.java | UTF-8 | 124 | 2.09375 | 2 | [] | no_license | package model;
import java.util.List;
public interface IDataList {
String getName();
List<IDataListItem> getItems();
}
| true |
8b02897a3e085d078dd2a45b94cf17baee101520 | Java | prabhat50ranjan/minor_project | /src/java/org/neuroph/contrib/RecommenderNetwork.java | UTF-8 | 14,383 | 2.375 | 2 | [] | no_license | /***
* Neuroph http://neuroph.sourceforge.net
* Copyright by Neuroph Project (C) 2008
*
* This file is part of Neuroph framework.
*
* Neuroph is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; eit... | true |
be08b8332254a80bf4859ca3707b91de154ae86c | Java | t-sek/mio | /src/ac/neec/mio/ui/activity/SyncTrainingListActivity.java | UTF-8 | 11,370 | 2 | 2 | [] | no_license | package ac.neec.mio.ui.activity;
import java.util.ArrayList;
import java.util.List;
import ac.neec.mio.R;
import ac.neec.mio.dao.ApiDao;
import ac.neec.mio.dao.DaoFacade;
import ac.neec.mio.dao.SQLiteDao;
import ac.neec.mio.dao.Sourceable;
import ac.neec.mio.exception.CreateTrainingIdException;
import ac.neec.mio.exc... | true |
573d0967832827211d34baa4f304d5d936e45cea | Java | allthatjava/boot-example-web-app | /src/main/java/brian/example/boot/web/app/controller/AppPostController.java | UTF-8 | 4,424 | 2.359375 | 2 | [] | no_license | package brian.example.boot.web.app.controller;
import brian.example.boot.web.app.command.PostCommand;
import brian.example.boot.web.app.domain.AppPost;
import brian.example.boot.web.app.domain.AppUser;
import brian.example.boot.web.app.exception.CreationException;
import brian.example.boot.web.app.exception.NotFoundEx... | true |
7cecd4126e122b9cd5416577339d8e1ee9d5c282 | Java | AmanAgrahari/genericPrograms | /Concurrency1/src/com/aman/concurrent/PriorityQueueBasics.java | UTF-8 | 2,775 | 3.4375 | 3 | [] | no_license | package com.aman.concurrent;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.DelayQueue;
import java.util.concurrent.PriorityBlockingQueue;
class FirstWorker1 implements Runnable{
private BlockingQueue<Person> blockingQueue;
public FirstWorker1(BlockingQueue<Person> blockingQueue... | true |
6b2906731d5340e151d8268906ec56e9e73e1597 | Java | prapawity/SOP_afterMidterm | /clientConfig/clientconfig/src/main/java/com/prapawity/clientconfig/ClientconfigApplication.java | UTF-8 | 891 | 1.875 | 2 | [] | no_license | package com.prapawity.clientconfig;
import com.prapawity.clientconfig.model.ServiceConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotatio... | true |
c8bfbe00373377e5251097cff3858cfcd84b04be | Java | pengweiqiang/bldj | /bldj-android/src/com/bldj/lexiang/adapter/CheepCardsAdapter.java | UTF-8 | 4,742 | 2.296875 | 2 | [] | no_license | package com.bldj.lexiang.adapter;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import android.content.Context;
import android.graphics.Color;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.style.BackgroundColorSpan;
i... | true |
eb7b404bdb7747c934716e6f87ea63a5d6c2c516 | Java | delowarsikder/Android-Apps-Developement | /Project/AndroiD/GridView_University/app/src/main/java/com/example/delowar/gridview_university/customAdapter.java | UTF-8 | 1,396 | 2.3125 | 2 | [] | no_license | package com.example.delowar.gridview_university;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
public class customAdapter extends BaseAdapt... | true |
c80584887ccac1e905fcc41fff64aa1c470e0cca | Java | LebedevaNastia/JavaKazan | /Figure/src/Area.java | UTF-8 | 101 | 1.765625 | 2 | [] | no_license | /**
* by Anastasia Lebedeva on 11.11.2016.
*/
public interface Area {
public double getArea();
}
| true |
4a3c12caf06f3744015dd639a7cf6b1d1956417a | Java | zskamljic/aoc-2020 | /src/Day16.java | UTF-8 | 4,613 | 2.90625 | 3 | [] | no_license | import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.*;
import java.util.stream.Collectors;
public class Day16 {
public static void main(String[] args) throws IOException {
var input = Files.readString(Paths.get("input16.txt"));
var parts = input.spli... | true |
cf1ffa4d6de7a048aa8d486f6ec56ffb93d0382c | Java | 1529740851/springboot | /src/main/java/com/example/demo/Util/HtmlUtil.java | UTF-8 | 5,609 | 2.375 | 2 | [] | no_license | package com.example.demo.Util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import org.jsoup.Jsoup;
import com.example.d... | true |
ea54e378b19588a6f0b30975318cd75dc4f09315 | Java | IdeaUJetBrains/PersistenceIssues | /src/data/TABLENAME.java | UTF-8 | 2,201 | 2.5 | 2 | [] | no_license | package data;
import javax.persistence.*;
/**
* Created by Olga Pavlova on 11/2/2015.
*/
@Entity
@NamedQueries({@NamedQuery(name = "Foo.findCreated",
query = "SELECT f FROM TABLENAME f WHERE f.status=" +
"testdata.FooStatus1.created " +
"ORDER BY f.priority DESC")})
@Table(na... | true |
78daedd6ba5228776d42ce3f7423dd75e0f4559d | Java | FOXFOUND/study-and-thinking | /testproject/src/main/java/algorithm/test/longestPalindrome/Solution2.java | UTF-8 | 1,291 | 3.453125 | 3 | [
"MIT"
] | permissive | package algorithm.test.longestPalindrome;
class Solution2 {
public String longestPalindrome(String s) {
int n = s.length();
boolean[][] dp = new boolean[n][n];
String ans = "";
// l 代表回文子串左右指针的距离
for (int l = 0; l < n; ++l) {
// i 代表当前的left指针的位置, j代表right指针的位置
... | true |
699003ea83577bcb8e8a31393a561f5a0fa467eb | Java | ValentinKiselev/StudyJava_ru | /3.JavaMultithreading/src/com/javarush/task/task35/task3513/Tile.java | UTF-8 | 1,205 | 3.15625 | 3 | [] | no_license | package com.javarush.task.task35.task3513;
import java.awt.*;
public class Tile {
int value;
public Tile(int value) {
this.value = value;
}
public Tile() {
this.value = 0;
}
public boolean isEmpty(){
return value == 0;
}
public Color getFontColor(){
if(... | true |
ed7a0a387d74dcfc7e9161e6fccf66142ed38130 | Java | mtimmerman/missing-content-crawler | /src/main/java/com/mtimmerman/security/PatchedAuthorizationServerSecurityConfigurer.java | UTF-8 | 6,169 | 1.789063 | 2 | [] | no_license | package com.mtimmerman.security;
import org.springframework.http.MediaType;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.SecurityConfigurerAdapter;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import ... | true |
9a00b310c00309b3b8a8505f602ab77a5e537751 | Java | qinpeng/housemart-server | /housemart-server/src/main/java/org/housemart/server/dao/entities/HouseSale.java | UTF-8 | 3,662 | 2.40625 | 2 | [] | no_license | /**
* Created on 2012-11-18
*
* Copyright (c) Comprice, Inc. 2010. All rights reserved.
*/
package org.housemart.server.dao.entities;
/**
* @author pqin
*/
public class HouseSale {
Integer count = 0;// 5555, //总记录条数
Integer id = 0;// 3333, //houseID
String type = "";// ‘高层’, //房屋类型
String room... | true |
276628ed2b37093c8faa237c390dbd434af11ab5 | Java | gitter-badger/VERDI | /verdi_core/src/anl/verdi/plot/gui/PlotPanel.java | UTF-8 | 2,763 | 2.4375 | 2 | [] | no_license | package anl.verdi.plot.gui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JComponent;
import javax.swing.JMenuBar;
import javax.swing.JPanel;
import javax.swing.JToolBar;
import saf.core.ui.event.DockableFrameEvent;
impo... | true |
d4bd91c71e99910712a4a32ecbd4832c99b3dee5 | Java | shenke93/LinkedForever | /src/com/uvsq/dao/FriendshipDAO.java | UTF-8 | 1,459 | 2.9375 | 3 | [] | no_license | package com.uvsq.dao;
import java.util.ArrayList;
import java.util.List;
import com.uvsq.domain.Friendship;
import com.uvsq.domain.Student;
import com.uvsq.idao.IFriendshipDAO;
public class FriendshipDAO extends BasicDAO implements IFriendshipDAO
{
public void makeFriend(Student s1, Student s2)
{
Friendship f ... | true |
1622d31c2f6448bd79a904c06c002b08f8ef34a0 | Java | eidis/AdvancedJavaCodingJavaRemoteLT9 | /src/main/java/sda/SDAHashSetBonus.java | UTF-8 | 2,288 | 3.40625 | 3 | [] | no_license | package sda;
public class SDAHashSetBonus<E> {
private static class Obj<T> {
private T value;
private Obj<T> next;
public Obj(T value) {
this.value = value;
}
}
private Obj<E> value = null;
public int size() {
return 1;
}
public boolean ... | true |
4f6633acb0877e77944360b7465b37dd97aa6131 | Java | eduhernandorena/addresstype-service | /src/main/java/br/org/fiergs/addresstypeservice/controllers/AddressTypeController.java | UTF-8 | 1,519 | 2.109375 | 2 | [] | no_license | package br.org.fiergs.addresstypeservice.controllers;
import br.org.fiergs.addresstypeservice.entities.AddressType;
import br.org.fiergs.addresstypeservice.services.AddressTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.w... | true |
3a8c5c89a51a2f5eabf8742cc6bbedb3a94b2b98 | Java | 545314690/topcom-cloud | /topcom-webservice/webservice-yuqing/src/main/java/com/topcom/cms/yuqing/vo/request/WarningLogRequest.java | UTF-8 | 1,073 | 1.796875 | 2 | [] | no_license | package com.topcom.cms.yuqing.vo.request;
import com.topcom.cms.common.page.DateParam;
import com.topcom.cms.common.page.PageRequest;
import com.topcom.cms.yuqing.domain.Briefing;
import java.io.Serializable;
/**
* Created by lism on 2017/5/17.
*/
public class WarningLogRequest implements Serializable {
priva... | true |
c755d17adc508b09a7686e962cc7db9c9facc552 | Java | nikhilsn45/clinic | /src/main/java/com/persistent/entities/VerifyReq.java | UTF-8 | 276 | 2.265625 | 2 | [] | no_license | package com.persistent.entities;
public class VerifyReq {
private String req;
public VerifyReq(String req) {
super();
this.req = req;
}
public VerifyReq() {
}
public String getReq() {
return req;
}
public void setReq(String req) {
this.req = req;
}
}
| true |
1dfa2fa939eefa8efede1b0c6b97a4af18547f43 | Java | y2j855/JUC | /src/main/java/com/tony/juc/c_021_ThreadPool/T03_Future.java | UTF-8 | 797 | 3.578125 | 4 | [] | no_license | package com.tony.juc.c_021_ThreadPool;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
import java.util.concurrent.TimeUnit;
/**
* @author: Tony.Chen
* Create Time : 2020/12/27 20:26
* Description: Future 封装Callable的返回值
* 一般配合线程池使用
* F... | true |
124846763fcc6e97d57ab5a5d71665d240ac7a36 | Java | yuryseo/algorithm | /20190807/Product/ProductTest.java | UTF-8 | 1,185 | 2.578125 | 3 | [] | no_license | package Product;
public class ProductTest {
public static void main(String[] args) {
ProductMgrImpl pm = ProductMgrImpl.getinstance();
try {
/* pm.add(new TV("tv23", "mul", 3000000, 3, 30));
pm.add(new Refrigerator("wLOT", "baba", 150000, 3, 200));
pm.add(new TV("tv93", "hana", 2000000, 3, 25)... | true |
328e0030f3334f4adeccf76ff790b7672bc08b59 | Java | vinidomeli/bootcamp-spring-challenge | /src/main/java/com/bootcamp/spring/challenge/application/controller/FollowController.java | UTF-8 | 2,403 | 2.28125 | 2 | [
"MIT"
] | permissive | package com.bootcamp.spring.challenge.application.controller;
import com.bootcamp.spring.challenge.application.dto.follow.FollowReportDTO;
import com.bootcamp.spring.challenge.application.dto.follow.FollowRequestDTO;
import com.bootcamp.spring.challenge.application.dto.follow.FollowResponseDTO;
import com.bootcamp.spr... | true |
c8d329381e8ffde0588762db8bb4878b64dbd2a3 | Java | PavelMiloslavskii/homeWork1 | /src/main/java/ru/miloslavskii/task/BoxOfSweets.java | UTF-8 | 359 | 2.203125 | 2 | [] | no_license | package main.java.ru.miloslavskii.task;
import java.util.List;
public interface BoxOfSweets {
List<AllKindsOfSweets> addSweet(AllKindsOfSweets sweet);
void removeSweet(int index);
int totalWeightBox(List<AllKindsOfSweets> allKindsOfSweets);
double totalPriceBox(List<AllKindsOfSweets> allKindsOfSwe... | true |
99a6ef303d5fec59c5e948e28fae7e4aba81a0b4 | Java | CTCbaxia/HelloWorld | /Easy/1047-Remove-All-Adjacent-Duplicates-In-String.java | UTF-8 | 1,167 | 3.75 | 4 | [] | no_license | /*
E
1047. Remove All Adjacent Duplicates In String
*/
/*
Recursion + index
Time: O(n)
Space: O(1)
*/
class Solution {
public String removeDuplicates(String S) {
return removeHelper(S, 0);
}
private String removeHelper(String s, int start){//checking from the i
char pre = 'A';//S consists o... | true |
6d0585d1ee6a42caa2c13ed2f4391bbd086af7ba | Java | YMSHXH/MaillYMS | /app/src/main/java/com/king/maillyms/activity/AmapActivity.java | UTF-8 | 6,206 | 2.359375 | 2 | [] | no_license | package com.king.maillyms.activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.amap.api.location.AMapLocation;
import com.amap.api.location.AMapLocationClient;
import com.amap.api.location.AMapLocationClientOption;
import com.amap.api.location.AMapLocationListener;
import co... | true |
2f729d94051e69db0f7278cfe47176988c291d7d | Java | sgholamian/log-aware-clone-detection | /LACCPlus/Hadoop/597_2.java | UTF-8 | 2,544 | 2.5 | 2 | [
"MIT"
] | permissive | //,temp,ZKFailoverController.java,628,688,temp,ZKFailoverController_before_log_fix.java,627,687
//,2
public class xxx {
private void doGracefulFailover()
throws ServiceFailedException, IOException, InterruptedException {
int timeout = FailoverController.getGracefulFenceTimeout(conf) * 2;
// Phase 1... | true |
93b88cb9a3cd8628c334534e487ad2012bedec10 | Java | folaulau/incomemanager-springboot | /src/main/java/com/kaveingas/incomemanager/config/ThreadPoolConfig.java | UTF-8 | 2,625 | 2.546875 | 3 | [] | no_license | package com.kaveingas.incomemanager.config;
import java.util.concurrent.ThreadPoolExecutor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotatio... | true |
35175c68455b325109fa59686ea68b73b8e9bcdd | Java | ibenian/LearningProtobuf | /src/main/java/step21/TestApp.java | UTF-8 | 1,031 | 2.46875 | 2 | [] | no_license | package step21;
import com.google.protobuf.InvalidProtocolBufferException;
import step21.AddressBookProtos.SearchRequest;
import java.util.HashMap;
/**
* Created by ibenian on 3/11/17.
*
* map field
*
*/
public class TestApp {
public static void main(String[] args)
throws InvalidProtocolBuffer... | true |
7dd2b6f078e6d4af267a179071d95782095d8c0e | Java | whdnjsdyd111/capstone_hotpleGO_App | /app/src/main/java/com/example/hotplego/ui/user/mypage/PickActivity.java | UTF-8 | 1,432 | 2.1875 | 2 | [] | no_license | package com.example.hotplego.ui.user.mypage;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;
import com.example.hotplego.R;
import com.example.hotplego.ui.user.mypage.adapter.PlacePickFragment;
import com.example.hotplego.ui.user.course.CoursesFr... | true |
ed8d39e886264ce7a962588885379e76334e9d58 | Java | trabalho-tcp-android/trabalho-tcp-android | /src/com/android/mechawars/map/InteractionSpot.java | UTF-8 | 245 | 2.078125 | 2 | [] | no_license | package com.android.mechawars.map;
public class InteractionSpot extends IntegerPointCoordinates{
String interactionDescription;
public InteractionSpot(int x, int y, String event){
super(x,y);
this.interactionDescription = event;
}
}
| true |
43f2fb380c9a9137a292cfd2a35aa67035e72c3f | Java | fpmoleg/java-univer-unit1 | /HomeTask01/src/HomeTaksCore.java | UTF-8 | 940 | 2.75 | 3 | [] | no_license | import ua.univer.tasks.bool.BoolTasks;
import ua.univer.tasks.begin.BeginTasks;
import ua.univer.tasks.integer.IntegerTasks;
public class HomeTaksCore {
public static void main(String[] args) {
/**
* Begin tasks.
* */
BeginTasks.task17(5, 7, 9);
BeginTasks.task22(5, 7);
BeginTasks.task27(4);
/**
... | true |
fbfcd9309e1ef13296967b67d929e214c392996d | Java | v0rt3xProject/vindicator | /src/main/java/ru/v0rt3x/vindicator/modules/web/handler/DefaultHandler.java | UTF-8 | 326 | 1.523438 | 2 | [] | no_license | package ru.v0rt3x.vindicator.modules.web.handler;
import org.apache.velocity.VelocityContext;
import org.json.simple.JSONObject;
import ru.v0rt3x.vindicator.modules.web.WebUIPageHandler;
public class DefaultHandler implements WebUIPageHandler {
@Override
public void prepareContext(VelocityContext ctx) {
... | true |