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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
126dcc2294929c56c4ca5a2a888634f2d226b9c7 | Java | mojingdada/my-javaweb-code | /Student_Struts2_Hibernate/src/com/lyl/Action/StudentDeleteAction.java | UTF-8 | 531 | 2.140625 | 2 | [] | no_license | package com.lyl.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.lyl.Service.studentService;
@SuppressWarnings("serial")
public class StudentDeleteAction extends ActionSupport {
private int id;
private studentService studentService;
public void setstudentService(studentService studentService) {
th... | true |
83879354a1ba632bb0c58615b8f3fb51517e2f49 | Java | ZYHGOD-1/Aosp11 | /packages/services/Car/tests/carservice_test/src/com/android/car/vms/VmsClientTest.java | UTF-8 | 104,239 | 1.53125 | 2 | [] | no_license | /*
* Copyright (C) 2020 The Android Open Source Project
*
* 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 app... | true |
89ba2cfc3d378ac9555e2b260cc6ef87655f3050 | Java | lining041038/zrt | /src/main/java/antelope/utils/XmlEnumsUtil.java | UTF-8 | 1,630 | 2.484375 | 2 | [] | no_license | package antelope.utils;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.Ele... | true |
45197a5eab659a57b6516adeac4212df5f5fb58e | Java | amatke/Evidencije-zaposlenih | /evidencija/src/main/java/com/matovic/evidencija/controller/ZaposleniController.java | UTF-8 | 2,411 | 2.171875 | 2 | [] | no_license | package com.matovic.evidencija.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.w... | true |
5a7d4b544b6b97383f5228a1308b7ee3c7bb4e91 | Java | felipel1292/drones | /src/test/java/InputReaderTest.java | UTF-8 | 1,390 | 2.90625 | 3 | [] | no_license | import io.reactivex.Observable;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import static org.junit.jupiter.api.Assertions... | true |
0192a1aab2e319bb1b71ca13ad0d5ae8656b4c39 | Java | lougw/Downloader | /src/main/java/com/lougw/downloader/utils/DToastUtil.java | UTF-8 | 3,800 | 2.59375 | 3 | [] | no_license | package com.lougw.downloader.utils;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import android.widget.Toast;
import com.lougw.downloader.DownloadUtils;
import com.lougw.downloader.Downloader;
/**
* 管理toast的类,整个app用该类来显示toast
*/
public class DT... | true |
786422229771d886a438e56d3b63fec85203a6ad | Java | YemingLakeForest/finance-o-matic | /src/main/java/net/mingism/financeomatic/service/origin/CsvCategoryDictionaryImporter.java | UTF-8 | 986 | 2.265625 | 2 | [] | no_license | package net.mingism.financeomatic.service.origin;
import com.opencsv.CSVReader;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.io.FileReader;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.Map;
i... | true |
a2260d14c14943e29241a6280e3f23d2881d3261 | Java | yunhacho/SelfStudy | /Kafka/Consumer_Base.java | UTF-8 | 1,457 | 2.8125 | 3 | [] | no_license | package Kafka.KafkaProducer;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import java.util.Arrays;
import java.util.Properties;
public class Consumer {
public static void main(String[] args... | true |
86fc2b7427d2fd01f991d0d960f71ed048c8ebf2 | Java | 1056215801/-MITC-YING_TAN | /modules/app-community-wanli/app-community-wanli-entity/src/main/java/com/mit/community/entity/entity/InfoSearch.java | UTF-8 | 3,782 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | package com.mit.community.entity.entity;
import java.util.List;
public class InfoSearch {
private PersonBaseInfo personBaseInfo;
private int validityDays;
public int getValidityDays() {
return validityDays;
}
public void setValidityDays(int validityDays) {
this.validityDays = v... | true |
224c5c6f85b5b1d73d7079c145bf6479d14a151e | Java | LarsBreuer/FS2 | /src/de/fivestrikes/fs2/SmartPlayerEdit.java | UTF-8 | 5,499 | 1.90625 | 2 | [] | no_license | package de.fivestrikes.fs2;
import java.util.ArrayList;
import android.app.ActionBar;
import android.app.Activity;
import android.app.AlertDialog;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.util.Log;... | true |
d5859de9f98e7dfd526d74357f4ff7ec56923e9e | Java | schaffe/Voting | /src/main/java/ua/dzidzoiev/vote/rest/TestResource.java | UTF-8 | 1,307 | 2.03125 | 2 | [] | no_license | package ua.dzidzoiev.vote.rest;
import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import ua.dzidzoiev.vote.security.rest.AuthToken;
import ua.dzidzoiev.vote.service.SecurityTestService;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
impo... | true |
2195fb7d9b810677a87dd8f2feb3957cbeed162c | Java | kaysonyang/itstack-demo-bytecode | /itstack-demo-bytecode-4-05/src/main/java/org/itstack/demo/agent/MyAdvice.java | UTF-8 | 1,049 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package org.itstack.demo.agent;
import net.bytebuddy.asm.Advice;
import org.itstack.demo.agent.track.TrackContext;
import org.itstack.demo.agent.track.TrackManager;
import java.util.UUID;
/**
* 博客:http://itstack.org
* 论坛:http://bugstack.cn
* 公众号:bugstack虫洞栈 {获取学习源码}
* create by fuzhengwei on 2019
*/
public cla... | true |
d4384c85c81e2dacdd05f37501dc4738fa4a6fb3 | Java | wdx9652/Dicex | /mycar/src/main/java/com/qf/service/impl/RoleServiceImpl.java | UTF-8 | 488 | 1.921875 | 2 | [] | no_license | package com.qf.service.impl;
import com.qf.dao.SysRoleMapper;
import com.qf.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class RoleServiceImpl implements RoleService {
@Autowired
priv... | true |
b368328769b9ad1560f3b32d98ef51aedceff46c | Java | LaszloBogacsi/csvtodxf-web | /csvtodxf-service/src/main/java/com/laszlobogacsi/csvtodxfwebservice/StorageService.java | UTF-8 | 298 | 2.046875 | 2 | [] | no_license | package com.laszlobogacsi.csvtodxfwebservice;
import org.springframework.core.io.Resource;
import org.springframework.web.multipart.MultipartFile;
public interface StorageService {
public void store(MultipartFile file, String destination);
Resource loadFileAsResource(String fileName);
}
| true |
32af353f7828f7d66b448c710c828334a3f36587 | Java | dwightnaylor/MOAP | /algorithmMaker.input/src-gen/algorithmMaker/input/Input.java | UTF-8 | 3,836 | 1.78125 | 2 | [
"MIT"
] | permissive | /**
*/
package algorithmMaker.input;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Input</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@... | true |
80403a1b20b590e033bde492f5dd915f8f1f8420 | Java | huangjianqin/kin-rpc | /kin-rpc-cluster/src/main/java/org/kin/kinrpc/cluster/invoker/ZoneAwareClusterInvoker.java | UTF-8 | 5,826 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package org.kin.kinrpc.cluster.invoker;
import org.kin.framework.utils.CollectionUtils;
import org.kin.framework.utils.ExtensionLoader;
import org.kin.framework.utils.StringUtils;
import org.kin.kinrpc.Invocation;
import org.kin.kinrpc.ReferenceInvoker;
import org.kin.kinrpc.RpcException;
import org.kin.kinrpc.cluster... | true |
e4aa7bd3ac51d5a034bd3b0ea8a7d1894bdef1f8 | Java | VikasAsija/microservice | /movie-info-service/src/main/java/io/microservice/utils/RequestHeadersContext.java | UTF-8 | 461 | 1.890625 | 2 | [] | no_license | package io.microservice.utils;
public class RequestHeadersContext {
public static final String AUTHORIZATION_HEADER = "Authorization";
private String authHeader;
public String getAuthHeader() {
return authHeader;
}
public void setAuthHeader(String authHeader) {
this.authHeader = authHeader;
... | true |
ad685a403dcb9eb3ebd1d5fe11f47654834a993d | Java | BrandonLondon/UMSL-2261-Object-Oriented-Programming | /2261/project 1/Prefixes.java | UTF-8 | 742 | 4 | 4 | [] | no_license | import java.util.Scanner;
public class Prefixes {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter the First string: ");
String s1 = input.nextLine();
System.out.print("Enter the Second string: ");
String s2 = input.nex... | true |
18cf49c0f93de6703283db26cdf0c3d65c5e8a5c | Java | shuixi2013/AmapCode | /app/src/main/java/android/support/v7/widget/ViewInfoStore.java | UTF-8 | 5,257 | 2.015625 | 2 | [] | no_license | package android.support.v7.widget;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.VisibleForTesting;
import android.support.v4.util.ArrayMap;
import android.support.v4.util.LongSparseArray;
import android.support.v4.util.Pools.Pool;
import andro... | true |
523847b47d93534ce7495a090c16e4d7710eda09 | Java | monowai/fd-discovery | /src/test/java/org/flockdata/test/discovery/DiscoveryServiceApplicationTests.java | UTF-8 | 1,284 | 1.929688 | 2 | [] | no_license | package org.flockdata.test.discovery;
import org.flockdata.discovery.FdDiscovery;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.boot.web.server.LocalServer... | true |
a9159ff452c7dbb116d7b3f61615ffdef1e97cb8 | Java | GarrettForsyth/the_liquor_cabinet | /app/src/main/java/com/games/garrett/theliquorcabinet/fragments/RatingFragment.java | UTF-8 | 13,368 | 2.15625 | 2 | [] | no_license | package com.games.garrett.theliquorcabinet.fragments;
import android.app.Activity;
import android.app.Fragment;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.database.sqlite.... | true |
f61dadb3d669df470c92ae8f62aa1770966b3d9a | Java | a-pavlov/fantlab | /src/main/java/org/fantlab/FLMahout.java | UTF-8 | 4,642 | 2.71875 | 3 | [] | no_license | package org.fantlab;
import lombok.extern.slf4j.Slf4j;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by apavlov on 10.03.18.
*/
@Slf4j
public class FLMahout {
private static final ... | true |
30d89d262e25c584f004a718f22aef720b985eaf | Java | webpercher/wd | /src/main/java/advancedOOPS/AbstractDemoOne.java | UTF-8 | 84 | 1.867188 | 2 | [] | no_license | package advancedOOPS;
abstract class AbstractDemoOne
{
abstract void sum();
}
| true |
eb47c4b42edc3b446ee8ee053decd3af50f589c9 | Java | cloudcentrik2015/hbsserver | /src/main/java/net/cloudcentrik/hbs/Booking.java | UTF-8 | 1,415 | 2.3125 | 2 | [] | no_license | package net.cloudcentrik.hbs;
import java.sql.Time;
import java.util.Date;
public class Booking {
private String shopEmail;
private String customerEmail;
private Date bookingDate;
private Time bookingStartTime;
private Time bookingEndTime;
public String getShopEmail() {
return shopEmail;
}
public void setSh... | true |
8376e5277075cabafbb383bc55d1b2013b4a2385 | Java | maestro-performance/maestro-java | /maestro-common/src/main/java/org/maestro/common/inspector/MaestroInspector.java | UTF-8 | 1,661 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 Otavio R. Piske <angusyoung@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | true |
daaba51a9c08893b33aeb353e3f216b70835455f | Java | srdantas/fortnight | /app/src/test/java/com/fortnight/gateways/database/mysql/CustomerSaveOnDatabaseTest.java | UTF-8 | 2,440 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.fortnight.gateways.database.mysql;
import br.com.six2six.fixturefactory.Fixture;
import com.fortnight.UnitTest;
import com.fortnight.domains.exceptions.CustomerAlreadyExistsException;
import com.fortnight.gateways.database.mysql.adapters.CustomerEntityAdapter;
import com.fortnight.gateways.database.mysql.a... | true |
4f83b1e46cb2a05b82c3c03ee53454a435262f15 | Java | muskanmahajan486/autoscaler_cloud | /core/src/test/java/com/elastisys/autoscaler/core/autoscaler/builder/TestAutoScalerBuilder.java | UTF-8 | 16,086 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.elastisys.autoscaler.core.autoscaler.builder;
import static com.elastisys.autoscaler.core.autoscaler.AutoScalerTestUtils.assertDefaultComponents;
import static com.elastisys.autoscaler.core.autoscaler.AutoScalerTestUtils.assertStorageDir;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.... | true |
9e579825797e71d6a8145b15d04dd25dd1a71850 | Java | LucasGeovanni/designspatterns | /src/dev/lucasgeovanni/pattern/observer/EnviarSMS.java | UTF-8 | 197 | 2.25 | 2 | [] | no_license | package dev.lucasgeovanni.pattern.observer;
public class EnviarSMS implements RotinaPagamento {
@Override
public void executa() {
System.out.println("Enviando SMS para 9999-99999...");
}
}
| true |
ae70a981f6e3b7710e9755bf41328806d5a14895 | Java | manya08/javaPlane | /src/com/tarena/shoot/Award.java | UTF-8 | 294 | 2.15625 | 2 | [] | no_license | package com.tarena.shoot;
public interface Award {
int LIFE = 0; // 1条命 1
int FIRE = 3; // 双倍火力 2
int TRICK = 5;// 大招 3
int HP = 5;// 血量 3
int DAMEGE = 10;// 伤害 1
int BIGFIRE=0;
/** 获得奖励类型(上面的0或1) */
int getType();
}
| true |
88639a0a2814a6bb9e76cad3a8538ad16b3031e0 | Java | xeonye/boot_sys | /DGT/src/main/java/com/lunar/utils/SimHashUtils.java | UTF-8 | 5,502 | 3.109375 | 3 | [] | no_license | //package com.lunar.utils;
//
//import java.math.BigInteger;
//import java.util.StringTokenizer;
//
///**
// * SimHash工具类
// */
//public class SimHashUtils{
//
// private static final int HASH_BITS = 128;
//
// public static BigInteger simHash(String tokens) {
// BigInteger r = new BigInteger("0");
//
// ... | true |
ccfd9c25e03c6b80f5728a089d1a8f65dc357026 | Java | PalakMundra/INFO6205_FinalProject | /src/main/java/edu/northeastern/eplranking/model/Referee.java | UTF-8 | 129 | 1.5625 | 2 | [] | no_license | package edu.northeastern.eplranking.model;
import lombok.Data;
@Data
public class Referee {
private String name;
}
| true |
49db789a0f5a0887eca55f00762f9d484422be60 | Java | PoonamKesarkar/ExpandableListView | /ExpandableListView/app/src/main/java/in/co/poonam/expandablelistview/adapter/ListAdapter.java | UTF-8 | 3,273 | 2.28125 | 2 | [] | no_license | package in.co.poonam.expandablelistview.adapter;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RatingBar;
import ... | true |
991f23c5ca36e4be4e9d45dfefe559653b3c3df7 | Java | SilvaLan/ScheduleCourseSystem | /src/main/java/courseschesystem/service/impl/ScheduleServiceImpl.java | UTF-8 | 2,929 | 3.015625 | 3 | [] | no_license | package courseschesystem.service.impl;
import courseschesystem.dao.ScheduleDAO;
import courseschesystem.dao.impl.ScheduleDAOImpl;
import courseschesystem.common.Schedule;
import courseschesystem.service.ScheduleService;
import java.util.ArrayList;
import java.util.List;
/**
* @Author: zzh
* @Description:
* @Date:... | true |
ca2d8ca3b1ef7fc44f2e6346cfd1b4455099ccbf | Java | Rajkumarbhunia/springboot | /SpringbootMongocrudoperations/src/main/java/com/user/registration/controller/Registrationcontroller.java | UTF-8 | 1,951 | 2.125 | 2 | [] | no_license | package com.user.registration.controller;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import ... | true |
9e8216ed349f4b42acbae58ee62d19654d9384a2 | Java | xunzhaotelunsu/cloud | /service-parent/activiti-service/src/main/java/com/baosight/cloud/service/activiti/ActivitiApplication.java | UTF-8 | 1,016 | 1.742188 | 2 | [] | no_license | package com.baosight.cloud.service.activiti;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.ManagementWebSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootAp... | true |
f8e3f12debd1026054d868d5852bf97a84481987 | Java | Larryyuan2015/Player | /app/src/main/java/com/goertek/ground/utils/SysUtil.java | UTF-8 | 9,914 | 1.9375 | 2 | [] | no_license | package com.goertek.ground.utils;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.Dialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import and... | true |
0f1a2f88f8293815f8cf0aac7a3669258bf0e274 | Java | kevinvandervlist/rascal | /src/org/rascalmpl/value/impl/persistent/SetWriter.java | UTF-8 | 6,499 | 1.882813 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2013-2014 CWI
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http... | true |
b1476a265d663bd87faed70d39923a66d70b4ed3 | Java | pkomuda/solid2020 | /src/main/java/pl/zzpj2020/solid/srp/book/solution/Book.java | UTF-8 | 256 | 1.914063 | 2 | [] | no_license | package pl.zzpj2020.solid.srp.book.solution;
import lombok.Data;
import java.util.HashMap;
import java.util.Map;
public @Data class Book {
private String title;
private String author;
private Map<Integer, String> pages = new HashMap<>();
}
| true |
09c1ed8f82a71370dd7c8bed5acc7180aca9a113 | Java | furyegg/interview-java | /src/main/java/interview/tree/TreeNode.java | UTF-8 | 450 | 2.78125 | 3 | [] | no_license | package interview.tree;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class TreeNode<T> {
private T value;
private TreeNode<T> left;
private TreeNode<T> right;
private boolean visited;
public boolean hasLeft() {
return left != null;
}
public boolean has... | true |
a38c65c286bdc00233c994184e8e8d94ffc1ab66 | Java | rociodellasala/TP-POD-VOT1 | /pod-archetype/podtpe/client/src/main/java/ar/edu/itba/fiscalclient/FiscalClient.java | UTF-8 | 2,124 | 2.609375 | 3 | [] | no_license | package ar.edu.itba.fiscalclient;
import java.io.IOException;
import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ar.edu.itba.remo... | true |
8206c77a3927591e26590ca56cc6ddd4c0919685 | Java | guweihua/YouHuo | /app/src/main/java/com/example/administrator/youhuo/fragment/GuanZhuFragment.java | UTF-8 | 514 | 1.835938 | 2 | [] | no_license | package com.example.administrator.youhuo.fragment;
import android.view.Gravity;
import android.widget.TextView;
/**
* Created by Administrator on 2017/1/11.
*/
public class GuanZhuFragment extends BaseStausFragment {
@Override
protected void initChildView() {
TextView tv = new TextView(a);
... | true |
010593d90836e52393d265a024fd6186b77ebe6a | Java | DawidLachor/Pizzeria | /src/main/java/dev/dawidlachor/pizzeria/service/PizzaService.java | UTF-8 | 849 | 2.203125 | 2 | [] | no_license | package dev.dawidlachor.pizzeria.service;
import dev.dawidlachor.pizzeria.dto.MenuDto;
import dev.dawidlachor.pizzeria.mapping.MenuPizzaMapping;
import dev.dawidlachor.pizzeria.repository.PizzaRepository;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.stream.Collectors;
@Servi... | true |
dd5a8fb9aab1b27323415c2068f06f5cc0f0645d | Java | haiduong07137/hlu-master-angularJS | /hlu-master/hr/hr-api/src/main/java/com/globits/hr/repository/StaffRepository.java | UTF-8 | 1,299 | 2.0625 | 2 | [] | no_license | package com.globits.hr.repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.globits.hr.d... | true |
ee20c98fd9059f8640c1f5a1485852d12044a90d | Java | jenkinsci/dry-plugin | /src/test/java/hudson/plugins/dry/ThresholdValidationTest.java | UTF-8 | 4,628 | 2.484375 | 2 | [
"MIT"
] | permissive | package hudson.plugins.dry;
import static org.junit.Assert.*;
import hudson.util.FormValidation;
import org.junit.Test;
/**
* Tests the class {@link ThresholdValidation}.
*
* @author Ulli Hafner
*/
public class ThresholdValidationTest {
private static final String WRONG_VALUE_FOR_NORMAL_THRESHOLD = "Wrong va... | true |
e59f668cd78329beb51dbbdbb8731f08b13ee984 | Java | salmahanyfarh/colleage-examination-system | /src/FCIHCaseStudy/Staff.java | UTF-8 | 1,002 | 3.0625 | 3 | [] | no_license | package FCIHCaseStudy;
import java.io.Serializable;
/**
*
* @author Salma Hnay
*/
public abstract class Staff extends Person implements Serializable {
protected double salary;
public Staff() {
}
public Staff(String user, String pass, int id, String fname, String lname, int age, double salary, De... | true |
4c42069cf652ab0928d03e2de145c2edf6cded11 | Java | JetMas/Lasers | /src/ptui/ControllerPTUI.java | UTF-8 | 1,736 | 3.515625 | 4 | [] | no_license | package ptui;
import model.LasersModel;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
/**
* This class represents the controller portion of the plain text UI.
* It takes the model from the view (LasersPTUI) so that it can perform
* the operations that are input in the run me... | true |
49051bc9bef1a3ad2ab5fb8441ff5687fc3592b4 | Java | archana-kodati/hobsons-assesment | /src/test/java/com/hobson/assesment/steps/LocationsStepDef.java | UTF-8 | 3,308 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.hobson.assesment.steps;
import com.hobson.assesment.pages.CareersPage;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import org.junit.Assert;
public class LocationsStepDef extends BaseStepDef {
public CareersPage careersPage;
public LocationsS... | true |
cc48937beacb63c1b238003553e8541b454a8851 | Java | djtorres002/Geeks | /app/src/main/java/com/example/geeks/Fragments/ProfileFragment.java | UTF-8 | 7,045 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | package com.example.geeks.Fragments;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.content.FileProvider;
import androidx.fragment.app.Fragment;
import andro... | true |
c3420aacf6e310c95fc9d5fa2014dddddf74bd70 | Java | sunliangzhen/Drink5_Boss | /app/src/main/java/com/toocms/drink5/boss/ui/mine/mines/RecordAty.java | UTF-8 | 16,060 | 1.703125 | 2 | [] | no_license | package com.toocms.drink5.boss.ui.mine.mines;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import androi... | true |
c529a1a07944e374b935dd2d23f3e198b7eef0fd | Java | nutsudapankik/nutsudapan | /src/app/nutsudapan/listview_55410797/MainActivity_797.java | UTF-8 | 2,482 | 2.265625 | 2 | [] | no_license | package app.nutsudapan.listview_55410797;
import java.util.ArrayList;
import android.app.Activity;
import android.content.ClipData.Item;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import... | true |
6cd1b3d59327d2b9a96a0941faa9587be6dc8103 | Java | vamsitallapudi/DataStructuresAndAlgorithms | /src/main/concepts/hashMaps/SynchronizedMapEg.java | UTF-8 | 868 | 3.71875 | 4 | [] | no_license | package main.concepts.hashMaps;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public class SynchronizedMapEg {
public static void main(String[] args) {
Map<Integer, String> studentsMap = new HashMap<>();
studentsMap.put(1, "Gowri");
... | true |
b3d43f6ac2d99604c056fe6304e61e874f2a9742 | Java | 18002712919/Intellegent | /app/src/main/java/com/asus/intellegent/ui/adapter/Base.java | UTF-8 | 1,269 | 2.390625 | 2 | [] | no_license | package com.asus.intellegent.ui.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.TextView;
import java.util.List;
import java.util.Map;
/**
* Created by ASUS on 20... | true |
c2e50f1cafaa68c77e9407af8d0faa6167e822b1 | Java | Dun-Njuguna/petfirst | /app/src/main/java/com/freshfred/petfirst/view/ui/ClickListener.java | UTF-8 | 131 | 1.648438 | 2 | [] | no_license | package com.freshfred.petfirst.view.ui;
import android.view.View;
public interface ClickListener {
void onClicked(View v);
}
| true |
b0a9aaf5964cb047550e1184c6b5192a728a15af | Java | damianfigarski/Workshop | /src/main/java/com/workshop/app/controllers/MainPageController.java | UTF-8 | 465 | 1.84375 | 2 | [] | no_license | package com.workshop.app.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class MainPageController {
@RequestMapping("/mainPage")
public ModelAndView back(){
return... | true |
10690c16d09ec7dea9433a0ac969d593d3796b0a | Java | LexZavala/codeup-java-exercises | /src/SuperHero.java | UTF-8 | 715 | 3.40625 | 3 | [] | no_license | public class SuperHero extends Person {
@SuppressWarnings("all")
private String publicPersona;
private int age;
public int getAge() {
return age;
}
public SuperHero(String firstName, String lastName, String publicPersona, int age) {
super(firstName, lastName);
this.pub... | true |
0794139690f060241eccd9b2f3ca691e48283686 | Java | ajkx/victory-hr | /src/main/java/com/victory/common/utils/NullUtils.java | UTF-8 | 779 | 2.546875 | 3 | [] | no_license | package com.victory.common.utils;
import java.util.Collection;
public class NullUtils {
public static boolean check(String str) {
if(str == null) return false;
return str.equals("");
}
public static boolean check(Boolean flag) {
if(flag == null) return false;
return flag;
... | true |
6b7e6697218cc2c89cbd72c69f19b138a9af1ac8 | Java | tuanns/bccs_sm | /src/java/com/viettel/im/database/BO/StockDeposit.java | UTF-8 | 4,034 | 2.171875 | 2 | [] | no_license | package com.viettel.im.database.BO;
import java.util.Date;
/**
* StockDeposit entity.
*
* @author MyEclipse Persistence Tools
*/
public class StockDeposit implements java.io.Serializable {
// Fields
private Long stockDepositId;
private Long stockModelId;
private Long chanelTypeId;
private Lon... | true |
15de9233f37aa84e8085eb19a975bf111abcf341 | Java | elephantbirdconsulting/netkernel-contribution | /urn.org.netkernel.neo4j.embedded/org/netkernel/neo4j/embedded/representation/Neo4jTransaction.java | UTF-8 | 652 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package org.netkernel.neo4j.embedded.representation;
import org.neo4j.graphdb.Transaction;
public class Neo4jTransaction {
private final Transaction mTransaction;
private final String mName;
public Neo4jTransaction(String aName, Transaction aTransaction) {
mTransaction = aTransaction;
mName = aName... | true |
4a37d18f3f976e0b2e5d770d1c0de33c39b77a38 | Java | kouckma/2018-BI-ZNS | /uloha2/src/expertsystemfw/DataBase/DataBase.java | UTF-8 | 1,622 | 2.6875 | 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 expertsystemfw.DataBase;
import expertsystemfw.KnowledgeBase.Element.Predicate;
import java.util.ArrayList;
import java.util.... | true |
e7552ab05365c9963081ff6e91d00ad023cba71e | Java | MardanovTimur/11-502_Mardanov_homeworks | /Web-Project/src/main/java/ru/itis/inform/servlets/SignUp.java | UTF-8 | 2,196 | 2.3125 | 2 | [] | no_license | package ru.itis.inform.servlets;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import ru.itis.inform.config.SpringConfig;
import ru.itis.inform.factories.ServiceFactory;
import ru.itis.inform.messages.Message;
import ru.itis.inf... | true |
dd55ae1e35428d7dfe6be965e6af6a83f3cd4068 | Java | Vasilyev81/otus-java-2018-12-AVasilyev | /L12.1/src/main/java/ru/otus/servlets/ListOfUsersServlet.java | UTF-8 | 1,255 | 2.453125 | 2 | [] | no_license | package ru.otus.servlets;
import ru.otus.dao.DBService;
import ru.otus.datasets.UserDataSet;
import ru.otus.processor.TemplateProcessor;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java... | true |
b9b1408f010abcc1f9e4b22822c27f77189b6e6f | Java | matech44/default-poker | /DefaultPokerWeb/src/ee/ut/defaultpoker/model/Player.java | UTF-8 | 2,546 | 2.828125 | 3 | [] | no_license | package ee.ut.defaultpoker.model;
import ee.ut.defaultpoker.evaluation.Card;
import ee.ut.defaultpoker.evaluation.Hand;
public class Player {
private int id;
private String name;
private int chips;
private int bet;
private boolean fold;
private boolean dealer;
private String session;
private bool... | true |
fc68b2ef6374591dd308abd638f18185c29696e0 | Java | mednasr/JEE | /Evpro-vent/evpro/evpro-web/src/main/java/evpro/edu/esprit/ressources/TaskRessource.java | UTF-8 | 1,718 | 2.25 | 2 | [] | no_license | package evpro.edu.esprit.ressources;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Remote;
import javax.ejb.Remove;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import... | true |
a9c261bc0d130367b7a0032dbf033b19fa806325 | Java | zhongxingyu/Seer | /Diff-Raw-Data/4/4_c67f842e2a0d2466dfb4b57ca1c4697d4ab7793b/PreparedTailoredQueryTest/4_c67f842e2a0d2466dfb4b57ca1c4697d4ab7793b_PreparedTailoredQueryTest_t.java | UTF-8 | 6,675 | 2.234375 | 2 | [] | no_license | /**
*
*/
package org.melati.poem.test;
import java.util.Enumeration;
import org.melati.poem.AccessPoemException;
import org.melati.poem.Capability;
import org.melati.poem.Column;
import org.melati.poem.FieldSet;
import org.melati.poem.PoemTask;
import org.melati.poem.PoemThread;
import org.melati.poe... | true |
18b968e3502eaa8b024c013c2cb3e4cab87fc8e0 | Java | dnacher/delemetrion-window | /Delemetrion/src/entes/Ente.java | UTF-8 | 814 | 2.5 | 2 | [] | no_license | package entes;
import graficos.Pantalla;
import mapa.Mapa;
public abstract class Ente {
protected int x;
protected int y;
private boolean eliminado = false;
protected Mapa mapa;
public void actualizar() {
}
public void mostrar(final Pantalla pantalla) {
}
publ... | true |
0a397edc9c67669f5be347b7f2de3c2cd2110188 | Java | monilgudhka/low_level_design | /src/main/java/edu/monilgudhka/rental/User.java | UTF-8 | 229 | 1.75 | 2 | [] | no_license | package edu.monilgudhka.rental;
import lombok.Data;
@Data
public class User {
private String userId;
private String emailId;
private String phoneNumber;
private Address address;
private UserStatus status;
}
| true |
af98b40a23620549febd5e5cd698ecb20518ba00 | Java | lagerspetz/brightness-energy-profile | /src/edu/helsinki/cs/nodes/energy/BrightnessEnergyProfile.java | UTF-8 | 4,947 | 2.609375 | 3 | [] | no_license | package edu.helsinki.cs.nodes.energy;
import android.os.Bundle;
import android.provider.Settings.SettingNotFoundException;
import android.app.Activity;
import android.view.Menu;
import android.view.WindowManager;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widge... | true |
aa588a2351ace68ec52bfdfa12a4739672f7de02 | Java | jingqizhang/spring-boot-shiro-sample | /spring-boot-shiro-demo/src/main/java/com/hannstar/shiro/spring/boot/shiro/demo/service/IOperatorUserService.java | UTF-8 | 884 | 1.867188 | 2 | [] | no_license | package com.hannstar.shiro.spring.boot.shiro.demo.service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hannstar.shiro.spring.boot.shiro.demo.entity.OperatorUser;
import com.hannstar.shiro.spring.boot.shiro.demo.model.PerssionInfoListBO;
import com.hannstar.shir... | true |
95b136440a5e1fd1c10fee34879957d67a1aec36 | Java | Max-010-Fire/NC.EDU-DEV-Summer-2021 | /src/main/java/max/springbootapp/domain/model/responses/TaskResponse.java | UTF-8 | 1,791 | 2.671875 | 3 | [] | no_license | package max.springbootapp.domain.model.responses;
import max.springbootapp.port.adapter.entities.TaskEntity;
import java.text.SimpleDateFormat;
public class TaskResponse {
private String userId = "0";
private String title = "";
private String description = "";
private String taskStatusId = "0";
... | true |
2ec10198fd9b82f1eda0f9c5817ac02fb41e9055 | Java | fenxui/fenxui-ootb | /ootb-jfx-common/src/main/java/org/fenxui/ootb/jfx/widget/util/glyph/SvgGlyphFileResource.java | UTF-8 | 596 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package org.fenxui.ootb.jfx.widget.util.glyph;
import org.fenxui.core.exception.FenxuiInitializationException;
import java.io.File;
import java.util.Map;
/**
* Directory with single-glyph *.svg files or single single-glyph *.svg file
*/
public class SvgGlyphFileResource implements GlyphResource<File> {
private fi... | true |
97eef0c2f170ba76a03f151ea91a545402964094 | Java | purings2/javacode__ | /pkg15/ThreadHomeWork.java | UTF-8 | 143 | 1.617188 | 2 | [] | no_license | package pkg15;
public class ThreadHomeWork {
public static void main(String[] args) {
Generator gn = new Generator();
gn.start();
}
}
| true |
488bea07a8ab40f5e280b374a1ff18e65a0cae31 | Java | 823984418/EDO | /src/net/dxzc/edo/Document.java | UTF-8 | 9,162 | 2.375 | 2 | [
"BSD-2-Clause"
] | permissive | /*
* Copyright (c) 2020, 823984418@qq.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list... | true |
420516fb3f75ac13a4c849fda3dedb5264e1b819 | Java | LRunt/UUR-Semestralni-prace | /src/bunky/FormattedDateTableCell.java | UTF-8 | 1,759 | 3.046875 | 3 | [] | no_license | /**
*
*/
package bunky;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import javafx.scene.control.DatePicker;
import javafx.scene.control.Label;
import javafx.scene.control.TableCell;
import javafx.scene.input.KeyCode;
/**
* Vlastni bunka tabulky,
* pro cteni label, pro editovani datePi... | true |
1c461e04e8ccb8f9076d69e558174c73ddaaab7b | Java | lshy0000/wuziqi | /chinachess/src/main/java/com/lshy/game/ATurnBase.java | UTF-8 | 568 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package com.lshy.game;
// 游戏试探类,表示试探策略,
public abstract class ATurnBase extends TurnBaseGame {
// 仅供参考
public void shitanliucheng() {
activityRole(getJuMian().getCurrentJuMianRole());
getJuMian().getCurrentJuMianRole().getMyAction().changeJuMian();
while (getState() == Game_State_Doin... | true |
1d15518393a1b7961cc98cc43da19e839c0c7a7a | Java | RSuiteCMS/rsuite-oxygen-author-component | /rsuite-oxygen-author-component-plugin/src/main/java/com/rsicms/rsuite/editors/oxygen/integration/utils/resolver/RSuiteOxygenEntityResolver.java | UTF-8 | 2,995 | 2.21875 | 2 | [] | no_license | package com.rsicms.rsuite.editors.oxygen.integration.utils.resolver;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource;
import or... | true |
786a97efa01bf965f375409073cebd59b3524545 | Java | pranav83/com.JavaRevision | /src/Demo1/MethodClass.java | UTF-8 | 742 | 3.390625 | 3 | [] | no_license | package Demo1;
public class MethodClass {
/* Interview Question what is Method
What is Method ?
Method are also called Functions
Method is piece of code which execute some logic
and we can call the method when it is necessary
The name of the method should be relative
Method has Acesses Modifier
Method... | true |
fc2b670ed58929a867a49d04636209c43cd2e899 | Java | KevinZapata/Odontologia | /ejb/src/main/java/com/utn/tesis/model/CampoDetalle.java | UTF-8 | 1,514 | 2.4375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.utn.tesis.model;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.validation.constraints.Size;
@Entity
@DiscriminatorValue(value = ... | true |
e955c125d0f4a9976212121c7842a6220f0a0715 | Java | altafjava/product-management-system | /src/main/java/by/kraskovski/pms/application/controller/dto/error/ErrorDto.java | UTF-8 | 730 | 2.5 | 2 | [] | no_license | package by.kraskovski.pms.application.controller.dto.error;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* Data transfer object for response errors
*/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class ErrorDto {
private Err... | true |
57f9f98633089842710d59384594b267fc959b48 | Java | Harish-Garpally/PageObjectModel | /crm/src/test/java/com/crm/qa/testcases/ContactsPageTest.java | UTF-8 | 1,653 | 2.078125 | 2 | [] | no_license | package com.crm.qa.testcases;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import com.crm.qa.base.TestBase;
import com.crm.qa.pages.ContactsPage;
import com.crm... | true |
8cdaa04638e47a9ea425dd253df36c22e7e5a6d6 | Java | JasperZhao97/JavaSELearning-ING-20190715 | /demo20190821/src/com/demo/socket/MutilClientSocketServer.java | UTF-8 | 2,284 | 3.3125 | 3 | [] | no_license | package com.demo.socket;
import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;
/**
* @version 1.0.0
* @auther ZhaoLei
* @creatTime 2019年08月21日 15:35:56
*/
public class MutilClientSocketServer {
private class SocketRunable implements Runnable{
... | true |
e514ccfd9cb05404c515ec02861a23aa68a87240 | Java | felinosalac/pos | /src/main/java/com/fsalac/form/dao/impl/PosUserDAOImpl.java | UTF-8 | 480 | 2.015625 | 2 | [] | no_license | package com.fsalac.form.dao.impl;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.fsalac.form.dao.GenericDAOHibernate;
import com.fsalac.form.dao.PosUserDAO;
import com.fsalac.form.model.PosUser;
@Repository
public class PosUserDAOImpl extends GenericDAOHibernate<PosUser> impleme... | true |
282f279f54de9f2799e2b8e4ec0f1b49649c5381 | Java | jiangrenyu/java-ftp-scan | /ftputil-comm/src/main/java/com/bonc/ftputil/bean/FtpPartitioner.java | UTF-8 | 963 | 2.15625 | 2 | [] | no_license | package com.bonc.ftputil.bean;
import org.apache.kafka.clients.producer.Partitioner;
import org.apache.kafka.common.Cluster;
import java.util.Map;
import java.util.Random;
public class FtpPartitioner implements Partitioner {
private int l = 0;
public FtpPartitioner( ){
}
@Override
public int partition(S... | true |
e3f37462de681109e2d1361bef2ce47e9f23c048 | Java | phemidawhiz/CryptoCurrencyApp | /app/src/main/java/com/femi/alc/cryptocash/db_lite/CryptoHelper.java | UTF-8 | 1,441 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.franklyn.alc.cryptocash.db_lite;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.provider.BaseColumns;
/**
* Created by AGBOMA franklyn on 10/10/17.
*/
public class CryptoHelper extends SQLiteOpenHelper {
... | true |
e4bb4337d4f15a916fe5ada26ee5b47542b17dbf | Java | rabo2/BasicJava-Study | /chapter25/Question227.java | UTF-8 | 371 | 3.0625 | 3 | [] | no_license | package chapter25;
import java.util.Arrays;
public class Question227 {
public static void main(String[] args) {
int[] num = {5,2,3,1,4};
int tmp;
for(int i = 0; i<num.length-2; i++) {
if(num[i] < num[i+1]) {
tmp = num[i];
num[i] = num[i + 1];
num[i + 1] = tmp;
System.out.pri... | true |
ac6d91a64e95818524d84aa6ecb6b7e92c1f53fb | Java | mcekovic/redis-test | /src/main/java/org/strangeforest/test/redis/TwoWayMap.java | UTF-8 | 253 | 2.328125 | 2 | [] | no_license | package org.strangeforest.test.redis;
import java.util.*;
public interface TwoWayMap {
Set<String> get1(String key1);
Set<String> get2(String key2);
void put(String key1, String... keys2);
void remove1(String key1);
void remove2(String key2);
}
| true |
b8fba1a30dcb1f3326ba76214719926b465cea0d | Java | PeeckDann/iot-2019-os | /src/main/java/ua/lviv/iot/model/entity/WorkerHasWorkspace.java | UTF-8 | 2,919 | 2.375 | 2 | [] | no_license | package ua.lviv.iot.model.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.T... | true |
c9c3d32228d52b31e64b9514abd5d7eda7a9e6fe | Java | ZXSoftCN/FanF | /src/test/java/com/zxsoft/fanfanfamily/test/MenuControllerTest.java | UTF-8 | 13,281 | 1.992188 | 2 | [] | no_license | package com.zxsoft.fanfanfamily.test;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.zxsoft.fanfanfamily.base.domain.Menu;
import com.zxsoft.fanfanfamily.base.repository.MenuDao;
import com.zxsoft.fanfanfamily.base.service.MenuService;
import com.zxsoft.fanfanfam... | true |
20390422827cc7bef5dee864847f909820f04dcf | Java | vineet210/AssignmentsImportant | /Assignment 2/class/Student.java | UTF-8 | 1,184 | 2.875 | 3 | [] | no_license | class Student{
int i;
int j;
int k;
String firstName;
String lastName;
Address addr;
String dateofbirth;
String[] skills;
Qualification qual[];
Project projects[];
String email;
String contactNo;
Student(){
firstName=" ";
lastName= " ";
addr=null;
date of birth=" ";
email=" ";
contactNo=" ";
... | true |
dad67fb8e3703e84bc5b5829628cebfc88ec2501 | Java | Tainet/NoteBugs | /src/by/epamlab/command/MainCommand.java | UTF-8 | 959 | 2.203125 | 2 | [] | no_license | package by.epamlab.command;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import by.epamlab.beans.Role;
import by.epamlab.beans.User;
import by.epamlab.controller.ActionCommand;
public class MainCommand implements ActionCommand {
... | true |
fe503f6ee5555f2bf2cd1c2f02239d502737e743 | Java | anlingxiao/DesignPattern | /src/抽象类和接口/抽象类/FileLogger.java | UTF-8 | 720 | 3.125 | 3 | [] | no_license | package 抽象类和接口.抽象类;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.util.logging.Level;
/**
* Created by c06042 on 2019/12/2.
*/
//抽象类的子类:输出日志到文件
public class FileLogger extends Logger{
private Writer fileWriter;
public FileLogger(String name, boolean enabled, Leve... | true |
001a703c21e06674ece89236643acf90e5b7221f | Java | RezaMor/rpn_calculator | /src/com/anz/rpncalc/Main.java | UTF-8 | 1,481 | 3.53125 | 4 | [] | no_license | package com.anz.rpncalc;
import java.math.BigDecimal;
import java.util.Scanner;
import com.anz.rpncalc.calculator.RPNCalculator;
import com.anz.rpncalc.exception.RPNCalcException;
/**
* Main class to run Reverse Polish Notation (RPN) calculator,
* the class waits for the input from the user. It evaluates... | true |
7e93284a89ee12f34dacf57aac6bb4c4cb1de2cb | Java | carolcezareti/arqswaula4 | /arqsw_sdesk_aula3/src/br/usjt/arqsw/dao/ChamadoDAO.java | UTF-8 | 2,028 | 2.4375 | 2 | [] | no_license | package br.usjt.arqsw.dao;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import... | true |
60637d0e4aedf18d0eaacbf7dbd62579eb87e67a | Java | LimagoHub/fiducia-eventbases-services-maerz-2021 | /kreditantragservice/src/main/java/de/fiducia/kreditantragservice/events/KreditAntragNegativEvent.java | UTF-8 | 507 | 1.6875 | 2 | [] | no_license | package de.fiducia.kreditantragservice.events;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
pu... | true |
f0ef24e2785e398df678f21d27b2f76cb39fe12b | Java | wajd/NetworksProject | /task4/tcpclient/TCPClient.java | UTF-8 | 1,576 | 3.03125 | 3 | [] | no_license | package tcpclient;
import java.net.*;
import java.io.*;
public class TCPClient {
public static String askServer(String hostname, int port, String optionalToServer) throws IOException {
Socket cSocket = null;
String serverResponse = "";
try {
cSocket = new Socket(hostname... | true |
cdaf99918cfcc7f0b2d5a807c65dd404d2c7c58c | Java | CarolRivera192/Generation-Java-2 | /Farmacia/src/main/java/br/com/generation/farmacia/controller/ProdutoController.java | UTF-8 | 2,739 | 2.578125 | 3 | [] | no_license | package br.com.generation.farmacia.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bi... | true |
04735121fbdc998ceb156ae7d4c520bcc054b4b5 | Java | LiWenGu/LogNet_grpc-spring-boot-starter_115 | /src/main/java/com/liwenguang/App.java | UTF-8 | 805 | 1.679688 | 2 | [] | no_license | package com.liwenguang;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org... | true |
f6d2db01c3ccb7b141bcc73eaf34854920f28a12 | Java | bhardwajrahul20/aem-communities-samples | /aem-communities-idea-extension/bundle/aem-communities-idea-extension/src/main/java/com/adobe/aem/communities/extensions/SetStatusOperation.java | UTF-8 | 2,689 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.adobe.aem.communities.extensions;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.jcr.Session;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Property;
import org.apache.felix.scr.annotations.Refer... | true |
c56214356edb63db14b393054a7d4694a24547b4 | Java | 425868130/HelloSpring | /src/main/java/hellospring/model/Message.java | UTF-8 | 1,401 | 2.359375 | 2 | [] | no_license | package hellospring.model;
import java.sql.Timestamp;
/**
* 消息实体
* @author Dream Sky
*
*/
public class Message {
private long MsgID;
private long SenderUID;
private String SenderNick;
private long ReceiverUID;
private String ReceiverNick;
private Timestamp MsgTime;
private String MsgContent;
private int M... | true |
63f9dee1b3ec4b86b11a858bdc3a3c5ace61c1c2 | Java | shaie/lucenelab | /src/main/java/com/shaie/solr/ReplicaInfo.java | UTF-8 | 1,430 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
236e2b9659313add000a12c4a71e49f743f7e835 | Java | aliyun/aliyun-openapi-java-sdk | /aliyun-java-sdk-cdrs/src/main/java/com/aliyuncs/cdrs/transform/v20201101/ListVehicleTopResponseUnmarshaller.java | UTF-8 | 2,384 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | true |