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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
422ea2ba2ce816d05b46cf753d6a7a6dc1feb049 | Java | victormaxim/snippets | /src/main/java/sandbox/arrays.java | UTF-8 | 1,747 | 3.296875 | 3 | [] | no_license | package A;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import static java.lang.Thread.sleep;
public class arrays {
HashMap<String, Long> instanceElapsedTimeByEnv = new HashMap<>();
String envIdentify;
public static void main(String[] args) throws InterruptedException {
... | true |
d861c1352c7b042d3c3fd8640596e0ec041e7037 | Java | schen246/Algorithm-Coding | /ReversePairs.java | UTF-8 | 1,542 | 3.53125 | 4 | [] | no_license | public class ReversePairs {
// M1: bf - time: O(n^2) space: O(1)
// M2: divide and conquer - merge sort - time: O(nlogn) space: O(n)
public int reversePairs(int[] nums) {
int[] help = new int[nums.length];
int[] res = new int[1];
mergeSort(0, nums.length - 1, nums, help, res);
... | true |
4eeacc8f442cf75f737274ae2479da9cc02b0343 | Java | vorousja/recipeDetective | /src/main/java/com/techelevator/controller/RecipeController.java | UTF-8 | 1,047 | 2.203125 | 2 | [] | no_license | package com.techelevator.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springfram... | true |
d0ec9d5ac26932d8fc9f6343e5d3665df196d91b | Java | noeivanvivero/storemanager | /StoreManager/src/main/java/com/noe/repository/IRepositoryTax.java | UTF-8 | 196 | 1.539063 | 2 | [] | no_license | package com.noe.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.noe.data.Tax;
public interface IRepositoryTax extends JpaRepository<Tax,Long> {
}
| true |
61237115df31d74179a4e45f16e6caf0f58e611e | Java | afleming1992/supermarket | /src/main/java/me/ajfleming/qikserve/dao/BasketPromotionDAOImpl_JDBC.java | UTF-8 | 4,371 | 2.34375 | 2 | [] | no_license | package me.ajfleming.qikserve.dao;
import me.ajfleming.qikserve.helpers.RowMapperConverter;
import me.ajfleming.qikserve.model.Basket;
import me.ajfleming.qikserve.model.BasketPromotion;
import me.ajfleming.qikserve.model.Item;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.d... | true |
51e49a2e6c7edfb14f83876d813c471bc84f7f23 | Java | kuroiyuki48/FundersApp | /app/src/main/java/com/example/funderapps/RecyclerAdapter.java | UTF-8 | 2,736 | 2.203125 | 2 | [] | no_license | package com.example.funderapps;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.TextView;
imp... | true |
3238b0922441f34626cd19464d52d9e79bd20b76 | Java | golgo8128/rs_Java_Projs | /rs_Java_Proj4/src/testFolder/swing1/SwingPoller1.java | UTF-8 | 2,964 | 2.640625 | 3 | [] | no_license | // This is from http://www.javadrive.jp/tutorial/timer/index1.html
package testFolder.swing1;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Box;
import javax.swing.... | true |
6719433cf853195c902b03e33e0585b7a97fdf7e | Java | khyati789/Automation | /src/test/java/com/fhlb/cds/maintenance/exceptionexplanation/AdvExcptnExplntnDBTest.java | UTF-8 | 552 | 2.15625 | 2 | [] | no_license | package com.fhlb.cds.maintenance.exceptionexplanation;
import static org.junit.Assert.*;
import org.junit.Test;
import com.fhlb.cds.maintenance.exceptionexplanation.AdvExcptnExplntnDB;
public class AdvExcptnExplntnDBTest {
@Test
public void testAdvExcptnExplntnDB() {
AdvExcptnExplntnDB advExcptnExp... | true |
f6f144ff88c182b365076f8cc7fff7d1b9dfd859 | Java | shizhuwnaqin/lzweb | /src/main/java/com/lezhuan/lzweb/controller/UserController.java | UTF-8 | 877 | 2.0625 | 2 | [] | no_license | package com.lezhuan.lzweb.controller;
import com.lezhuan.lzweb.po.User;
import com.lezhuan.lzweb.service.UserService;
import com.lezhuan.lzweb.util.ResultUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java... | true |
57feea9430b913150037b49f12214ab85cda0a25 | Java | alangerinf/AndroidApp-fastBici | /app/src/main/java/com/alanger/ioquiero/views/OrdersTrayActivity.java | UTF-8 | 385 | 1.578125 | 2 | [] | no_license | package com.alanger.ioquiero.views;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.alanger.ioquiero.R;
public class OrdersTrayActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);... | true |
47129fe490b5c824f01a31c58ed8837dcf70703f | Java | andy420811/Java1 | /Program/ch10/10_4/10_4_2/10_4_2_1/Ex10_4_2_1.java | UTF-8 | 473 | 3.1875 | 3 | [] | no_license | class myException extends Exception {
myException() {
super("myException Message");
}
}
class Ex10_4_2_1 {
public static void main (String args[]) {
int x, y;
try {
x = 10;
y = 0;
if(y==0) throw new myException();
x = 10 / 0;
Sys... | true |
a46bf9d27f0bd40490a125c27e54b7b1ad8eff14 | Java | QsMichael/sentence-cloud-platform | /service-provider/user-service-project/user-service-app/src/main/java/com/github/xf717/userservice/dal/mysql/dataobject/user/UserPositionCollectDO.java | UTF-8 | 780 | 1.75 | 2 | [] | no_license | package com.github.xf717.userservice.dal.mysql.dataobject.user;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.xf717.mybatis.core.dataobject.DeletableDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 用户_职位_收藏
*
* @author xiaofeng
* @date... | true |
09eb8295e9ac8f3ab26836d031c8e979650308db | Java | zhongxingyu/Seer | /Diff-Raw-Data/9/9_5512518a8e2714a3c1d9ebb50d8c8e3aefd89400/Baeckerei/9_5512518a8e2714a3c1d9ebb50d8c8e3aefd89400_Baeckerei_t.java | UTF-8 | 1,932 | 2.921875 | 3 | [] | no_license | import java.util.Iterator;
public class Baeckerei {
private Doppelkeksmaschine dkm;
private Formmaschine fm;
public Baeckerei() {
dkm = new Doppelkeksmaschine();
fm = null;
}
private void set(Formmaschine fm){
this.fm = fm;
}
private Keks einzelBacken(String form... | true |
a53cc5e24f029e09398b87341c7ce8e50e91781f | Java | NiteshRajput131/Spring-Boot | /Multiplication-Service/src/main/java/com/example/prod/DTO/ProductResponceDTO.java | UTF-8 | 234 | 1.664063 | 2 | [] | no_license | package com.example.prod.DTO;
import org.springframework.stereotype.Component;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Component
public class ProductResponceDTO {
private Double result;
}
| true |
230686036f33d41b6fec0f3a5d45b85f6f638483 | Java | saimounikanedunuri/java | /variables/static_var.java | UTF-8 | 359 | 3.4375 | 3 | [] | no_license | public class Static
{
static int j=1;
public void data()
{
int i=2;
System.out.println("local var value: "+i);
}
public static void main(String args[])
{
Static s=new Static();
s.data();
System.out.println("static var value: "+j);
}
}
/*output:
loc... | true |
d1de9c72ea777236ddd886c2077162d839b43ad1 | Java | edbertestevez/SungemPharmaMobileApp | /app/src/main/java/com/example/sungem/sungempharma/Medrep/Dashboard/SalesMedrepAdapter.java | UTF-8 | 2,284 | 2.34375 | 2 | [] | no_license | package com.example.sungem.sungempharma.Medrep.Dashboard;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.example.sungem.sungempharma.R;
import java.util.List;
/**
* Created by trebd on 10/3/2017.... | true |
d64efda19dd2530d87bc1ac6baaf887a438c2219 | Java | slamgp/sport-quiz | /src/main/java/com/slamgp/games/sportquiz/controller/WelcomeController.java | UTF-8 | 693 | 2 | 2 | [] | no_license | package com.slamgp.games.sportquiz.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMe... | true |
e31bc799678f9ff3a51fa1261750cc73624d1da5 | Java | dwkegu/ZhihuClient | /app/src/main/java/top/psf/zhihuclient/api/BaseView.java | UTF-8 | 392 | 1.773438 | 2 | [] | no_license | package top.psf.zhihuclient.api;
import com.google.gson.JsonObject;
import retrofit2.Response;
public interface BaseView {
public static enum REMOTE_TYPE {
LOGIN_PW,
LOGIN_PWC,
LOGIN_TOKEN
}
public void onRemoteResultCallback(REMOTE_TYPE type, Response<JsonObject> re... | true |
cb073b4043e8cbb9bd71f469458cdaadc695f666 | Java | NoahThacker31/Revature | /Project1/Maven/Project1/src/main/java/com/revature/models/InsertReimbursement.java | UTF-8 | 2,033 | 2.46875 | 2 | [] | no_license | package com.revature.models;
public class InsertReimbursement {
int author;
double amount;
String description;
//Blob receipt;
int type;
public int getAuthor() {
return author;
}
public void setAuthor(int author) {
this.author = author;
}
public double getAmount() {
return amount;
}
public void set... | true |
92911300e8a0685f46dde592afeb1f93fb65bc7c | Java | Onemakarov/test-assignment | /src/main/java/com/makarov/testassignment/service/CategoryService.java | UTF-8 | 921 | 2.125 | 2 | [] | no_license | package com.makarov.testassignment.service;
import com.makarov.testassignment.dao.CategoryDao;
import com.makarov.testassignment.entity.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional... | true |
ecc9709bcab5ba878507dfce2f4b43955fa9a789 | Java | luciferldy/Bnimation | /app/src/main/java/io/luciferldy/bnimation/view/Comet.java | UTF-8 | 3,886 | 2.5 | 2 | [] | no_license | package io.luciferldy.bnimation.view;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.support.annotation.Nullable;
import android.util.AttributeSet... | true |
b1ce83b4f93fe353b4e92c557b2fce9a67efab8e | Java | sjhxxd/sjhxxd.github.com | /spring-boot-springdatajpa-inheritance/src/main/java/bishe/admin/repository/DoctorLoginRepository.java | UTF-8 | 760 | 2.015625 | 2 | [] | no_license | package bishe.admin.repository;
import bishe.entity.DoctorInfoEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
/**
* Created by sjh on 16/5/25.
*/
public interface DoctorLoginRepository extends JpaRepository<DoctorInfoEntity, Long>{
@Que... | true |
980b7d0301f7fbd7a0c100ea448167f3c83e445e | Java | dlvip/jiushiguang | /app/src/main/java/com/old/time/activitys/TakePicActivity.java | UTF-8 | 17,037 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | package com.old.time.activitys;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.Rect;
import android.hardware.Camera;
import android.os.Build;
import android.support.constraint.ConstraintLayout;
import android.support.v7.widget.LinearLayoutManager;... | true |
c89f156ac84f242b29ff0cf101059524f8f926a7 | Java | vaibhav1601/Demo_project | /app/src/main/java/com/ts/demo_project/repository/LoginRepo.java | UTF-8 | 684 | 2.046875 | 2 | [] | no_license | package com.ts.demo_project.repository;
import com.google.gson.JsonElement;
import com.ts.demo_project.api.ApiServiceGenerator;
import com.ts.demo_project.model.response.LoginRequest;
import com.ts.demo_project.service.ApiService;
import java.util.HashMap;
import java.util.Map;
import io.reactivex.Observable;
publi... | true |
16fea09fb17297d3c633742b9fd4213985d4abff | Java | Aastha23/Java-Assignment | /answers/Q33.java | UTF-8 | 461 | 3.3125 | 3 | [] | no_license | import java.util.*;
class Q33
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.print("how many no you want to enter ");
int n=sc.nextInt();
int a[]=new int[n];
for(int i=0;i<n;i++)
{
System.out.print("enter a no");
a[i]=sc.nextInt();
}
int temp;
for(int i=n-1,j... | true |
2df9786fe0a39e9b69bc88eb26c457d3d90bfdc5 | Java | glameyzhou/nacos-example | /service-gateway/src/main/java/com/pintec/springcloud/controller/StatusController.java | UTF-8 | 492 | 2.0625 | 2 | [] | no_license | package com.pintec.springcloud.controller;
import com.google.common.collect.ImmutableMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
* @author yang.zhou
* @date 2019.08.20.14.
*/
@RestController
public class S... | true |
2550b39f45acd8d3a269866ccbf71bd43b16b885 | Java | gejiankui/zscx | /zyd-common/src/main/java/org/zyd/common/constants/Gender.java | UTF-8 | 276 | 2.328125 | 2 | [] | no_license | package org.zyd.common.constants;
/**
*
* 性别
*
*/
public enum Gender {
A0100010("未输入"),
A0100020("男"),
A0100030("女");
private String desc;
public String getDesc() {
return this.desc;
}
Gender(String desc) {
this.desc = desc;
}
}
| true |
d59d98633c6264197c5755d5f78bf9b24b83855d | Java | wonderfulive/qianyouba_app_server | /qianyouba_app_server/src/main/java/com/qianyouba/entity/Message.java | UTF-8 | 488 | 2.234375 | 2 | [] | no_license | package com.qianyouba.entity;
public class Message<T> {
private int resultCode;// 返回码
private T data;// 数据
public Message() {
}
public Message(int resultCode, T data) {
super();
this.resultCode = resultCode;
this.data = data;
}
public int getResultCode() {
return resultCode;
}
public void setResul... | true |
f4f585fce39ca349039fe1692566c8ff0d995c24 | Java | nasar9980/Trypush | /workspace/IntervewQuezstions2.53/src/pac1/MultiWindow.java | UTF-8 | 1,497 | 2.421875 | 2 | [] | no_license | package pac1;
import java.util.Set;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
import org.testng.annotations.AfterTest;
import org.testng.annotations.Befo... | true |
efd25a91b51d243614f1ab6a64c53873d9388a33 | Java | CoderEslam/NexOnlineMarket | /app/src/main/java/com/lymin/nexonlinemarket/view/activity/SplashScreenActivity.java | UTF-8 | 1,822 | 1.859375 | 2 | [] | no_license | package com.lymin.nexonlinemarket.view.activity;
import android.content.Intent;
import android.os.Bundle;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.lymin.nexonlinemarket.R;
import com.lymin.nexonlinemarket.constance.Constants;
import com.lymin.nexonlinemark... | true |
2bdb5e19d4f2f4938a3733806d7352a056aa4107 | Java | ixtf/social-sdk | /weixin-mp/src/main/java/org/jzb/weixin/mp/authorizeCode/MpAuthorizeUnionInfoResponse.java | UTF-8 | 1,426 | 2.046875 | 2 | [] | no_license | package org.jzb.weixin.mp.authorizeCode;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import org.jzb.weixin.mp.MpClient;
/**
* 描述:
*
* @author jzb 2017-10-28
*/
public class MpAuthorizeUnionInfoResponse {
private final MpClient client;
private final... | true |
16fe640b167fe3973a601d34c979ce0caca2f8df | Java | wsachoo/mypoc | /salesapp-microservices/salesapp/src/main/java/com/att/salesexpress/webapp/service/db/DbServiceImpl.java | UTF-8 | 21,833 | 1.96875 | 2 | [] | no_license | package com.att.salesexpress.webapp.service.db;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.la... | true |
780761a4b29e5df5394639783c34e3d57d60726d | Java | jas3542/Jobs | /Jobs/src/org/Intercepters/LoginIntercepter.java | UTF-8 | 142 | 1.78125 | 2 | [] | no_license | package org.Intercepters;
// it has do implement the intercepter and them implement the INTERCEPT method
public class LoginIntercepter {
}
| true |
b580be5392f72e3ed04dc211470157f0b843014b | Java | SCCapstone/iTipper | /app/src/main/java/com/example/csce490m3research/TipScreenActivity.java | UTF-8 | 1,743 | 2.5 | 2 | [] | no_license | // coded by John Esco, iTipper
// Modified by @paolomilan
package com.example.csce490m3research;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
public class TipScreenActivity extends AppCompatActivity ... | true |
211473c26d43b74315ae450a18ce3143d74cfd4c | Java | software-engineering-amsterdam/many-ql | /kennedy-langlotz/KLS/src/com/kls/ast/node/value/FontStyleValue.java | UTF-8 | 395 | 2.515625 | 3 | [] | no_license | package com.kls.ast.node.value;
/**
* Created by Timon on 06.03.2015.
*/
public class FontStyleValue extends AValue<String> {
public static final String FONT_BOLD = "bold";
public static final String FONT_ITALIC = "italic";
public static final String FONT_UNDERLINED = "underlined";
public FontStyleV... | true |
aa890f175dbbced5c8fe5e4089d34798c416cf55 | Java | greatdistance/LeetCode_project | /LeetCode/src/edu/xufe/leetcode/demo/Demo350.java | UTF-8 | 1,318 | 3.390625 | 3 | [] | no_license | package edu.xufe.leetcode.demo;
import java.util.*;
/**
* @ClassName Demo350
* @Description 350. 两个数组的交集 II
* @Author greatDistance
* @Date 2019/5/15 10:40
* @Version 1.0
*/
public class Demo350 {
public static void main(String[] args) {
int[] nums1 = {4, 9, 5};
int[] nums2 = {9, 4, 9, 8, 4}... | true |
bcf778a6c7ac081dac4a6d7ed7df864ce34a9f28 | Java | weikong/LipWar | /app/src/main/java/com/king/speak/httptask/HttpTaskUtil.java | UTF-8 | 3,928 | 2.359375 | 2 | [] | no_license | package com.king.speak.httptask;
import com.king.speak.config.UrlConstants;
import com.squareup.okhttp.MediaType;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.RequestBody;
import com.squareup.okhttp.Response;
import java.io.IOException;
import java.util.concu... | true |
fd94cdac134ba123aceb857e950fe2aedd2a457e | Java | rsmbf/joana | /joana.wala.core/src/edu/kit/joana/wala/core/ObjectField.java | UTF-8 | 2,259 | 2.40625 | 2 | [] | no_license | /**
* This file is part of the Joana IFC project. It is developed at the
* Programming Paradigms Group of the Karlsruhe Institute of Technology.
*
* For further details on licensing please read the information at
* http://joana.ipd.kit.edu or contact the authors.
*/
package edu.kit.joana.wala.core;
import com.ib... | true |
d335331b1455bcd871326cbb99f0d06848c7f415 | Java | sabarnath/spring-boot-batch-demo | /src/main/java/com/poc/bootbatch/email/RangePartitioner.java | UTF-8 | 1,284 | 2.5 | 2 | [] | no_license | package com.poc.bootbatch.email;
/**
* https://blog.codecentric.de/en/2013/07/spring-batch-2-2-javaconfig-part-6-partitioning-and-multi-threaded-step/
*/
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.partiti... | true |
bd20a950c84a65a5768ed35b14af6f058120c88e | Java | Blooof/DartWithArrays | /src/main/java/ru/ifmo/larionov/dart/intermediate/ValueType.java | UTF-8 | 1,582 | 2.5625 | 3 | [] | no_license | package ru.ifmo.larionov.dart.intermediate;
import org.objectweb.asm.Type;
import java.util.HashMap;
import java.util.Map;
import static org.objectweb.asm.Type.INT_TYPE;
import static org.objectweb.asm.Type.VOID_TYPE;
/**
* @author Oleg Larionov
*/
public class ValueType {
public static final ValueType VOID =... | true |
75c505f6f70de64b567f356ab73e87fb24a9f92f | Java | GhoneimX7/Binary-Converter | /src/dbc/DBC.java | UTF-8 | 1,957 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | /*
* 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 dbc;
import java.util.Locale;
import java.util.Scanner;
import javax.swing.JOptionPane;
/**
*
* @author T.Ghon... | true |
c62a2f1d3afcbf8cbed44fa6a56165349c00b0c9 | Java | L-san/cib-interns-test-task | /src/main/java/ru/lsan/cibinternstesttask/controller/SockController.java | UTF-8 | 1,115 | 2.21875 | 2 | [
"MIT"
] | permissive | package ru.lsan.cibinternstesttask.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import ru.lsan.cibinternstesttask.database.service.SockService;
import ru.lsan.cibinternstesttask.dto.SockDto;
... | true |
c3ae1f64dbdc68fc79255568dc9a4fae49a3efad | Java | KMA91/DojoAssignments | /Java/JavaWork/Pet/src/com/kevinma/pet/models/Animal.java | UTF-8 | 129 | 2.1875 | 2 | [] | no_license | package com.kevinma.pet.models;
public class Animal {
protected String name;
protected String breed;
protected int weight;
}
| true |
a598fb201c266f09f97c0070848043747bc91660 | Java | WillanMendieta/Proyecto-Abaceria-Final | /src/Vista/VntLogin.java | UTF-8 | 5,490 | 2.421875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Vista;
import com.sun.imageio.plugins.jpeg.JPEG;
import java.awt.BorderLayout;
import java.awt.Color;
import java.aw... | true |
3b450f81ae8ee175840fd92cc7cf54ebbeea9962 | Java | pumamaheswaran/news-indexer | /src/edu/buffalo/cse/irf14/analysis/TokenStream.java | UTF-8 | 10,279 | 3.28125 | 3 | [] | no_license | /**
*
*/
package edu.buffalo.cse.irf14.analysis;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
/**
* @author nikhillo
* Class that represents a stream of Tokens. All {@link Analyzer} and
* {@link TokenFilter} instances op... | true |
d05acadaa5ef689ca70145767e82d713fa772571 | Java | SawCunha/peoplemanager | /src/main/java/com/dio/sawcunha/peoplemanager/controller/PersonController.java | UTF-8 | 3,306 | 2.25 | 2 | [
"MIT"
] | permissive | package com.dio.sawcunha.peoplemanager.controller;
import com.dio.sawcunha.peoplemanager.dto.PersonDTO;
import com.dio.sawcunha.peoplemanager.exceptionmanager.enums.eMessageError;
import com.dio.sawcunha.peoplemanager.exceptionmanager.exception.ExceptionPeopleManager;
import com.dio.sawcunha.peoplemanager.servi... | true |
6827e0d56fce758184d1d7fcc8a5808e17cff4f3 | Java | zhzhouq9/item | /src/main/java/com/gmail/sq/model/domain/CommunityVillage.java | UTF-8 | 3,860 | 1.882813 | 2 | [] | no_license | package com.gmail.sq.model.domain;
import java.sql.Timestamp;
/**
* CommunityVillage entity. @author MyEclipse Persistence Tools
*/
public class CommunityVillage {
// Fields
private Long villageId;
private Long tenementId;
private Long creater;
private Timestamp createTime;
pr... | true |
4164020be2c3ab2109aab9a98f4b0ca7c4d7ec69 | Java | CS601-F18/project-2-pontakornp | /src/main/java/cs601/project2/Config.java | UTF-8 | 3,437 | 2.75 | 3 | [] | no_license | package cs601.project2;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
/**
*
* @author pontakornp
*
* Serves as... | true |
3ac387b044b97289c351c8463c2278a31547f6a1 | Java | mcanthony/st-js | /generator/src/test/java/org/stjs/generator/writer/inlineFunctions/InlineFunctions4.java | UTF-8 | 365 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package org.stjs.generator.writer.inlineFunctions;
public class InlineFunctions4 {
public static void method(FunctionInterface func) {
}
public static void main(String[] args) {
@SuppressWarnings("unused")
FunctionInterface func = new FunctionInterface() {
@Override
public void $invoke(int ar... | true |
704ce7e9a3d06612f7256a8fe0fb541b3d0da5db | Java | IDmitrenko/JavaCore2 | /src/ru/geekbrains/lesson6/EchoServer.java | UTF-8 | 2,235 | 3.484375 | 3 | [] | no_license | package ru.geekbrains.lesson6;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;
public class EchoServer {
private static final int PORT = 7777;
public static void main(String[] args) {... | true |
047a033813fc2a9e6d5afa416a57f7c3fbe6fd22 | Java | MatrixYang/testproject | /zenofAS/launcher/src/main/java/com/cooeeui/basecore/utilities/CommonUtil.java | UTF-8 | 3,831 | 2.609375 | 3 | [] | no_license | package com.cooeeui.basecore.utilities;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.util.Log;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.Inpu... | true |
0ef9d138298fa72f0ce38b63ae1ccdb43362aed5 | Java | sankalpnarayan27/sankalp_tool | /backend/src/main/java/com/xebia/assessmenttool/util/UserPasswordGenerator.java | UTF-8 | 207 | 1.820313 | 2 | [] | no_license | package com.xebia.assessmenttool.util;
import org.springframework.stereotype.Component;
@Component
public class UserPasswordGenerator {
public String generate() {
return "Admin@123";
}
}
| true |
d517b9953fa5f520edb02b2e99dbdc7b45555706 | Java | carolinaRC/Proyecto-compiladores | /src/analizador/sintactico/SintacticoController.java | UTF-8 | 2,107 | 2.609375 | 3 | [] | no_license | package analizador.sintactico;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
/**
* FXML Controller class
* @author Juan Carlos
*/
public cl... | true |
a39b45489caac9680a60cc61707ce6dc42fff6d9 | Java | TushH96/Angular-Project | /src/main/java/com/tush/AngularPrj/entity/Employee.java | UTF-8 | 3,574 | 2.5 | 2 | [] | no_license | package com.tush.AngularPrj.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import j... | true |
3615c2ff67f9f69c6a8c0e8c9b995ecd6a774f88 | Java | ultrasecreth/jersey-test-utils | /src/test/java/com/github/bbonanno/TestService.java | UTF-8 | 978 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package com.github.bbonanno;
import lombok.RequiredArgsConstructor;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.Response;
import static javax.ws.rs.core.Response.Status.Family.SUCCESSFUL;
@RequiredArgsConstructor
public class TestService {
private final WebTarget dependency;
public String... | true |
06f488faf13b7352b266b9b6a6778ba1c4285c92 | Java | EchoZhu/buerhaitao | /BUERHAITAO/src/com/ZYKJ/buerhaitao/view/UIDialog.java | UTF-8 | 3,565 | 2.390625 | 2 | [] | no_license | package com.ZYKJ.buerhaitao.view;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.inputmethod.InputMethodManager;
import andr... | true |
e39bf517610bee23b36ff77ba05e306e410c0487 | Java | godaddy-icfp/icfp-2019 | /thirdparty/galois-2.0/src/main/java/gmetis/main/Refiner.java | UTF-8 | 3,395 | 2.546875 | 3 | [
"Unlicense"
] | permissive | /*
Galois, a framework to exploit amorphous data-parallelism in irregular
programs.
Copyright (C) 2010, The University of Texas at Austin. All rights reserved.
UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING THIS SOFTWARE
AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR ANY
... | true |
ae9814146b6a0c1aa549c45fa997e54d2af1bf49 | Java | suxiixus/NewYc | /app/src/main/java/com/app/youcheng/activity/login/UserMsgActivity.java | UTF-8 | 1,079 | 1.875 | 2 | [] | no_license | package com.app.youcheng.activity.login;
import android.os.Bundle;
import com.app.youcheng.R;
import com.app.youcheng.base.BaseActivity;
import com.zhouyou.http.EasyHttp;
import io.reactivex.disposables.Disposable;
public class UserMsgActivity extends BaseActivity {
private Disposable disposable1;
@Over... | true |
7d0780263d4874e9d3e973eb6895eca061096b3d | Java | razvanveina/javatraining-Oct-2018 | /src/sessions/s05/teme/Factorial.java | UTF-8 | 313 | 3.578125 | 4 | [] | no_license | package sessions.s05.teme;
public class Factorial {
public static void main(String[] args) {
// 5! + 6!
System.out.println(factorial(5));
factorial(6);
}
private static int factorial(int n) {
int produs = 1;
for (int i = 2; i <= n; i++) {
produs *= i;
}
return produs;
}
}
| true |
67aa013f20f4a32d1992331c7f29bbcc59102cd3 | Java | slamdev/old-micro-ci | /backend/src/test/java/com/github/slamdev/microci/business/executor/boundary/JobExecutorTest.java | UTF-8 | 2,354 | 2.34375 | 2 | [
"MIT"
] | permissive | package com.github.slamdev.microci.business.executor.boundary;
import com.github.slamdev.microci.business.executor.entity.Build;
import com.github.slamdev.microci.business.executor.entity.Status;
import com.github.slamdev.microci.business.executor.entity.TaskExecutionResult;
import com.github.slamdev.microci.business.... | true |
72ab3424f7e19c31b1caaa26cc140ec3e92c50fe | Java | ntub-109205/MemeMaker | /app/src/main/java/com/example/mememaker/RecyclerViewAdapter__elderTemp.java | UTF-8 | 2,190 | 2.296875 | 2 | [] | no_license | package com.example.mememaker;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com... | true |
8b68b31627504e8374e55d2de983b7a752d4fff4 | Java | Dirken/SMDE | /Lab1/RNG-Algorithms/fibonacciLagged.java | UTF-8 | 989 | 3.265625 | 3 | [] | no_license | //Initialize the vector antics in order that no empty position exists.
//So began a few values with different values between them. The results genrand returns are calculated from the number 3000.
class fiblagged {
public static int n=3000;
public static double antics[] = new double[30000];
... | true |
e0ea9bad813e6a89f8856488421549264974b965 | Java | netikras/StudentBuddy | /api/api-private/src/main/java/com/netikras/studies/studentbuddy/api/handlers/RawExceptionHandler.java | UTF-8 | 2,017 | 2.171875 | 2 | [] | no_license | package com.netikras.studies.studentbuddy.api.handlers;
import com.netikras.studies.studentbuddy.commons.exception.handler.AbstractStudBudExceptionHandler;
import com.netikras.tools.common.exception.ErrorBody;
import com.netikras.tools.common.exception.FriendlyExceptionBase;
import com.netikras.tools.common.remote.htt... | true |
cc5d46f0102ac7fb94903d44712d6b1586e2bc8e | Java | SHENJIAYUN/zorm | /src/main/java/com/zorm/loader/BatchingCollectionInitializer.java | UTF-8 | 2,720 | 2.265625 | 2 | [] | no_license | package com.zorm.loader;
import java.io.Serializable;
import com.zorm.engine.LoadQueryInfluencers;
import com.zorm.entity.Loader;
import com.zorm.exception.MappingException;
import com.zorm.persister.QueryableCollection;
import com.zorm.persister.entity.CollectionPersister;
import com.zorm.session.SessionFactoryImple... | true |
f462709133f5efb1312e9e9c8826f8b3c5e251f0 | Java | sailinnaung/sim-edts-source | /SIMWeb/src/java/example/GoogleColChart.java | UTF-8 | 2,671 | 2.421875 | 2 | [] | no_license | /*
* $Id: HelloWorld.template,v 1.2 2008-03-27 05:47:21 ub3rsold4t Exp $
*
* 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 fil... | true |
9e908fe1be38f92b741f8face5fedc7f4bdc8409 | Java | cdel2/Agile | /agile/src/main/java/optimodlyon/agile/xml/DeserializerXML.java | UTF-8 | 8,010 | 2.109375 | 2 | [] | no_license | package optimodlyon.agile.xml;
import optimodlyon.agile.models.*;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.stream.StreamSource;
import javax.xml.validation.*;
import javax.xml.XMLConstants;
import javax.xml.parsers.DocumentBuilder;
import org.w3c.dom.Document;
import org.w3c.dom.NodeL... | true |
c986f0665c9ce75f7229ea39f58e076e17159d50 | Java | romainGuiet/CSBDeep_fiji | /src/test/java/de/csbdresden/csbdeep/network/model/ImageTensorTest.java | UTF-8 | 5,783 | 2.3125 | 2 | [
"BSD-2-Clause"
] | permissive | package de.csbdresden.csbdeep.network.model;
import static org.junit.Assert.*;
import java.util.Arrays;
import org.junit.Test;
import de.csbdresden.csbdeep.tiling.Tiling;
import net.imagej.axis.Axes;
import net.imagej.axis.AxisType;
public class ImageTensorTest {
@Test
public void getFinalAxesArray() {
ImageT... | true |
e4dca8ccac825707eff2d0ed618981dc6275b9df | Java | nguyendaidien/BCTS | /src/main/java/com/etrade/bcts/model/PermitOutTransport.java | UTF-8 | 15,598 | 1.601563 | 2 | [] | no_license | package com.etrade.bcts.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
... | true |
97a898f4d05a29f57dbc556cf47a3b07c5710451 | Java | MihailGurulea/Homework | /Date/src/TestDate.java | UTF-8 | 457 | 2.953125 | 3 | [
"MIT"
] | permissive | import java.util.Scanner;
public class TestDate {
public static void main(String[] args) {
Date date = new Date();
Scanner s = new Scanner(System.in);
System.out.println("Input the month: ");
date.setMonth(s.nextInt());
System.out.println("Input the day: ");
date.set... | true |
d7622bc871c7f06bffe0da6752908d1b83265fb5 | Java | jasleensingh/livecanvas | /LiveCanvas_v1.0/src/livecanvas/image/AbstractRenderer.java | UTF-8 | 1,773 | 2.296875 | 2 | [] | no_license | package livecanvas.image;
import java.awt.Color;
import java.awt.Paint;
import java.awt.geom.Point2D;
import common.typeutils.ColorType;
import livecanvas.BackgroundRef;
import livecanvas.components.Layer;
public abstract class AbstractRenderer<T> implements Renderer<T> {
@ColorType(name = "Background"... | true |
33a87962c4c5fc2747aeb122ae8101d377316ced | Java | y12uc231/jetty.toolchain | /jetty-version-maven-plugin/src/main/java/org/eclipse/jetty/toolchain/version/git/GitCommand.java | UTF-8 | 4,944 | 2 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2011 Intalio, Inc.
* ======================================================================
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public L... | true |
016893c8648bb98f6af6483f41e6890bfd8d0060 | Java | xutaowin/spring | /src/main/java/com/dbapp/spring/factory/PersonServiceFactory.java | UTF-8 | 470 | 2.015625 | 2 | [] | no_license | package com.dbapp.spring.factory;
import com.dbapp.spring.service.PersonService;
import com.dbapp.spring.service.impl.PersonServiceImpl;
/**
* @desc:
* @Company :DBAPP
* @Created By xutao
* @Date: 2017/9/2
* @Time: 22:00
*/
public class PersonServiceFactory {
public static PersonService createPersonService(... | true |
3ad92cdf43cef6245a09e5e7e7a5b82d57e96733 | Java | Gperez88/Orders-dishes | /Ordersdishes/app/src/main/java/com/android/app/ordersdishes/fragments/LoginFragment.java | UTF-8 | 5,082 | 2.234375 | 2 | [] | no_license | package com.android.app.ordersdishes.fragments;
import android.app.AlertDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.view.View;
import android.widget.AutoCompleteTextView;
import android.widget.Button;
import android.widget... | true |
d7a54322bd6b56823559a338978d28681db0af1d | Java | angelmaskill/demo | /src/main/java/com/netty/NettyStickyPacket/stickdemo/client/Client.java | UTF-8 | 400 | 2.59375 | 3 | [] | no_license | package com.netty.NettyStickyPacket.stickdemo.client;
import java.net.Socket;
public class Client {
public static void main(String[] args) throws Exception {
Socket socket = new Socket("127.0.0.1", 10101);
String message = "hello";
for (int i = 0; i < 20; i++) {
socket.getOutp... | true |
20ca51d33ce21bdaed39ca48ec19ffe2d9801b12 | Java | iks1012/Data-Structures-and-Algorithms | /src/Homework05/Box.java | UTF-8 | 236 | 1.96875 | 2 | [] | no_license | package Homework05;
public enum Box {
O,
X,
E,
N//N is an enum for me to know not to fill anything and for the program to know its full,
//usedd when someone wins, the other vals that are all E are replaced with N.
} | true |
ac0537a72735e0f6d643151dc502a0bd3d542798 | Java | Kawser-nerd/CLCDSA | /Source Codes/CodeJamData/14/12/7.java | UTF-8 | 26,110 | 2.859375 | 3 | [] | no_license | import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Random;
import java.util.Scanner;
public class B implements Runnable {
@SuppressWarnings("unused")
public void run() ... | true |
b9dd4640357ebfa92e603ae8593ef04790e4abc4 | Java | buv3x/elo | /elo-api/src/main/java/by/bsu/orienteering/service/ReportService.java | UTF-8 | 4,145 | 2.40625 | 2 | [] | no_license | package by.bsu.orienteering.service;
import by.bsu.orienteering.dao.ReportDAO;
import by.bsu.orienteering.model.*;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import java.util.Collections;
import java.util.Comparator;
... | true |
4bc60c3675228b97b47c2d806cf4676d67043402 | Java | SevostyanovGerman/pizza-crm | /src/main/java/com/pizza/crm/service/impl/UnitsOfMeasurementServiceImpl.java | UTF-8 | 1,559 | 2.21875 | 2 | [] | no_license | package com.pizza.crm.service.impl;
import com.pizza.crm.model.UnitsOfMeasurement;
import com.pizza.crm.repository.UnitsOfMeasurementRepository;
import com.pizza.crm.service.UnitsOfMeasurementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ... | true |
318852b9cfc95dec7bafe6729885d489619e3bb2 | Java | Wcqsss11/Java4 | /Doctor.java | GB18030 | 1,688 | 3.0625 | 3 | [] | no_license | package wcq;
class Doctor implements Studentjiekou,Teacherjiekou {
String Name;
String Sex;
String Age;
String tuition;
String salary;
final double tex=0.1;
public void semester1() {
int s=10000;
System.out.println("ÿѧѧΪ:"+s);
int y=10000*2;
System.out.println("һѧΪ:"+y);
int s1=10000;
}... | true |
f7ffddb3f436ee8b4b40d0c0b1672fe6c7132739 | Java | fmixing/fslinternship | /src/main/java/dbclasses/Action.java | UTF-8 | 669 | 2.78125 | 3 | [] | no_license | package dbclasses;
import java.sql.Timestamp;
public class Action {
private final int id;
private final String userName;
private final Timestamp timestamp;
private final ActionType type;
public Action(int id, String userName, Timestamp timestamp, ActionType type) {
this.id = id;
... | true |
bbdd207b4cc520eb60fd9460562aa50690779f34 | Java | CSBDeep/CSBDeep_fiji | /src/test/java/de/csbdresden/csbdeep/tasks/InputProcessorTest.java | UTF-8 | 2,576 | 2.15625 | 2 | [
"BSD-2-Clause"
] | permissive | /*-
* #%L
* CSBDeep: CNNs for image restoration of fluorescence microscopy.
* %%
* Copyright (C) 2017 - 2020 Deborah Schmidt, Florian Jug, Benjamin Wilhelm
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
... | true |
e052546036d1104d3548767ab1833d6a4e23618b | Java | javaknow/mall | /src/com/igomall/controller/admin/BackupController.java | UTF-8 | 3,958 | 2.171875 | 2 | [] | no_license | package com.igomall.controller.admin;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Controlle... | true |
4e1ba9f146288efd1cc2efe58a4692bce12edb4f | Java | fmarchioni/Hands-On-Cloud-Native-Applications-with-Java-and-Quarkus | /Chapter10/kafka-demo/src/main/java/org/acme/kafka/QuoteEndpoint.java | UTF-8 | 1,017 | 2.0625 | 2 | [
"MIT"
] | permissive | package org.acme.kafka;
import java.util.UUID;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.eclipse.microprofile.reactive.messaging.Channel;
import org... | true |
8c8700dd1b1e6584aa133b0cf09bda4953839d75 | Java | tsuzcx/qq_apk | /com.tencent.mm/classes.jar/com/tencent/mm/plugin/appbrand/jsapi/ac/c.java | UTF-8 | 4,139 | 1.578125 | 2 | [] | no_license | package com.tencent.mm.plugin.appbrand.jsapi.ac;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.game.g.b.3;
import com.tencent.mm.plugin.appbrand.game.g.b.8;
import com.tencent.mm.plugin.appbrand.game.g.b.9;
import com.tencent.mm.plugin.appbrand.game.g.d;
import com.te... | true |
a2daf93e371c5a7c93a33ae5a33e8f0d3fd6dbc5 | Java | Melisac105/cabrera-cop3330-assignment3 | /src/main/java/ex43/App.java | UTF-8 | 1,219 | 3.25 | 3 | [] | no_license | /*
UCF COP3330 Summer 2021 Assignment 3 Solution
Copyright 2021 Melissa Cabrera
Exercise 43 - Website Generator
Programming languages can create files and folders too.
Create a program that generates a website skeleton with the following specifications:
Prompt for the name of the site.
Prompt for the author of the s... | true |
13d8ada0f04edab5a9845762ae32d4be02ffe589 | Java | Aayush9507/SpringCoreSkeleton | /src/main/java/controller/EmployeeController.java | UTF-8 | 1,301 | 2.28125 | 2 | [] | no_license | package controller;
import entity.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import service.EmployeeService;
import java.util.List;
@Cross... | true |
db5e551b6fe6e38dfeef465b236a8ff1b521ca8b | Java | mmuruev/ZebraPuzzle | /src/main/java/zebrapuzzle/parse/IRuleParser.java | UTF-8 | 588 | 2 | 2 | [] | no_license | package zebrapuzzle.parse;
import zebrapuzzle.resolve.rules.CRule;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* User: mf
* Date: 06.06.12
* Time: 16:29
*/
public interface IRuleParser {
/**
* N/A value for rule
*/
public static final int POSITION_INDEX = -1;
/**
* Get n... | true |
a47ec9b09367f3466a59a15aef94987a5ff684c6 | Java | gc1156939681/SpringBootStudy | /quartz/src/main/java/com/example/quartz/service/Impl/StepServiceImpl.java | UTF-8 | 882 | 2.25 | 2 | [] | no_license | package com.example.quartz.service.Impl;
import com.example.quartz.dao.StepRepository;
import com.example.quartz.entity.Step;
import com.example.quartz.service.StepService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.R... | true |
cf2ce704bf908f44dc559ebc21c2f866af795ddd | Java | ThisIsIPat/kilodungeons | /src/main/java/me/phein/kiloplugins/mc/kilodungeons/exception/ConfigUnknownVersionException.java | UTF-8 | 541 | 2.609375 | 3 | [] | no_license | package me.phein.kiloplugins.mc.kilodungeons.exception;
import java.io.File;
public class ConfigUnknownVersionException extends ConfigVersionException {
public ConfigUnknownVersionException(File configFile, String version) {
super("Config file \"" + configFile.getAbsolutePath() + "\" specifies to be in an... | true |
e393fcb94244246eda161a5cdf66a4ebcaefbe85 | Java | hflorah/NetPay | /src/netpay/NetPay.java | UTF-8 | 495 | 3.34375 | 3 | [] | no_license | /*
* Bennie
* NetPay.java
* This program calculates the net pay for an employee
* February 27,2018
*/
package netpay;
/**
*
* @author huangsiwen
*/
public class NetPay {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int h;
double n,w... | true |
2f18ef80a36d2461687c114dacbe318e7650f04f | Java | yongdaW/snmpManage | /src/main/java/com/example/demo/Graph/DevData.java | UTF-8 | 1,578 | 2.671875 | 3 | [] | no_license | package com.example.demo.Graph;
public class DevData {
private String name;
private String ip;
private String readcommunity;
private String writecommunity;
private NodeType deviceType;
public void setDeviceType(NodeType type) {
this.deviceType = type;
}
public NodeType getDevi... | true |
c8e2cdb759cfc54ae7b93b5145530e53bc140757 | Java | MahaElOuni/PiJEE1 | /examen/examen-ejb/src/main/java/persistence/MethodeDePayemment.java | UTF-8 | 80 | 1.710938 | 2 | [] | no_license | package persistence;
public enum MethodeDePayemment {
OnLine, OnTheBoxOffice
}
| true |
4a352146a93a69ee9a5d682149daa2f6be192b7c | Java | shuvojit007/programming_hero | /app/src/main/java/com/example/test/programmingmama/Model/Reply_Model.java | UTF-8 | 708 | 2.375 | 2 | [] | no_license | package com.example.test.programmingmama.Model;
public class Reply_Model {
private String reply;
private long time;
private String Uid;
public Reply_Model(String reply, long time, String uid) {
this.reply = reply;
this.time = time;
Uid = uid;
}
public Reply_Model() {
... | true |
6794bc8baa0ee4504d21e4e91db74a299aa64e1c | Java | lanlan12912/ScoreSys | /ScoreManagerSystem/src/main/java/com/yelanlan/scoremanagersystem/RepositoryIface/IMenu.java | UTF-8 | 1,145 | 1.882813 | 2 | [] | no_license | package com.yelanlan.scoremanagersystem.RepositoryIface;
import java.sql.Timestamp;
public interface IMenu {
public String getMenuId();
public void setMenuId(String menuId);
public String getMenuName();
public void setMenuName(String menuName);
public String getMenuIcon();
public void setMenuI... | true |
fd54c37dfbaf28477a97dda2e9f213928d796668 | Java | P79N6A/basic | /sdk-service/src/main/java/com/itcast/basic/jdk/util/concurrentlinkeddequeue/JDKConcurrentLinkedDequeMain.java | UTF-8 | 362 | 1.976563 | 2 | [] | no_license | package com.itcast.basic.jdk.util.concurrentlinkeddequeue;
/**
* Created by qfl on 2018/3/31.
*/
public class JDKConcurrentLinkedDequeMain {
public static void main(String[] args) {
try {
System.out.println("enter into JDKConcurrentLinkedDequeMain");
} catch (Exception e) {
... | true |
26ad45d927b14dae6ef091ba9b7a85e0d6283fa4 | Java | juneglee/bitcamp-study | /bitcamp-java/src/main/java/com/eomcs/corelib/ex02/Exam0230.java | UTF-8 | 2,188 | 4.03125 | 4 | [] | no_license | // Wrapper 클래스 - wrapper 객체 생성
package com.eomcs.corelib.ex02;
public class Exam0230 {
public static void main(String[] args) {
Integer obj1 = new Integer(100); // Heap에 인스턴스 생성
Integer obj2 = new Integer(100); // Heap에 인스턴스 생성
System.out.println(obj1 == obj2); // false
// 설명:
// => new 연산자를 통해 ... | true |
54737c983a10c765cd1b61756f0e1edb3f030add | Java | Ingvar28/Lesson9 | /src/ru/nosov/Main.java | UTF-8 | 1,689 | 3.5 | 4 | [] | no_license | package ru.nosov;
public class Main {
public static void main(String[] args){
//Реализация в классе DoubleArray
DoubleArray doubleArray = new DoubleArray();
int[][] array = {{3, 2, 1}, {32, 1, 2}, {2, 1, 2}};
System.out.println("Exceptions Home Tasks" + "\n");
//Task... | true |
64fe3e86db5ed967a15e9a57d925b1d3f0c68e0b | Java | WilliamMajanja-zz/node-eduoa | /src/main/java/com/sample/service/impl/TaskServiceImpl.java | UTF-8 | 2,499 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /**
* <pre>
* Copyright: Copyright(C) 2012-2013, node.com
* Filename: com.node.sample.service.impl.TaskServiceImpl.java
* Class: TaskServiceImpl
* Date: 2013-4-21
* Author: <a href="mailto:node@gmail.com">node</a>
* Version 2.0.0
* Description:
*
* </pre>
**/
package com.sample.service.i... | true |
6b01790f0e2f205389d8329fbb9fc4d4c2b048e3 | Java | devmobileaim/cordovasenseconnector | /src/android/java/ch/aimservices/android/plugin/action/LoginErrorHandler.java | UTF-8 | 4,134 | 2.25 | 2 | [] | no_license | package ch.aimservices.android.plugin.action;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import ch.sysmosoft.sense.client.exception.DeviceNotCompliantException;
import ch.sysmosoft.sense.client.exception.InvalidNewPasswordException;
import ch.sysmosoft.sense.client.exception.PasswordN... | true |
40e4ce5187ede7f1db0a5c740201bfa6213bd8eb | Java | xiangyong/JDMall | /src/com/jd/common/util/bean/BeanUtils.java | UTF-8 | 3,442 | 2.453125 | 2 | [] | no_license | package com.jd.common.util.bean;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Map;
public class BeanUtils
{
private static final String GET_METHOD = "get";
private static BeanUtils instance;
public static BeanUtils getInstanc... | true |