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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d5e263723b4f52c7a2c3256b233035b491e33e9d | Java | de-jcup/eclipse-commons | /src/main/java/de/jcup/eclipse/commons/ui/CSSProvider.java | UTF-8 | 200 | 1.59375 | 2 | [
"Apache-2.0"
] | permissive | package de.jcup.eclipse.commons.ui;
public interface CSSProvider {
void setBackgroundColor(String backgroundColor);
void setForegroundColor(String foregroundColor);
String getCSS();
} | true |
abb5cf46f21defe7a368e6f3836972e62cdf79c2 | Java | spring-gamal/lucenex | /src/main/java/com/ld/lucenex/plugin/SpringBootPlugin.java | UTF-8 | 606 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright © 2018LD. All rights reserved.
*
* @Title: SpringBootPlugin.java
* @Prject: lucenex
* @Package: com.ld.lucenex.plugin
* @Description: TODO
* @author: Myzhang
* @date: 2018年5月28日 下午2:40:58
* @version: V1.0
*/
package com.ld.lucenex.plugin;
import com.ld.lucenex.base.BaseConfig;
import co... | true |
14cfbfa0052ec356a0ded1c719f78713792de133 | Java | Webkova/Covadonga.Diez.SVC | /src/main/java/PIndividual/C21.java | UTF-8 | 253 | 1.992188 | 2 | [] | no_license | package PIndividual;
public class C21 {
public String m1() {
return "C21: m1";
}
public String m2() {
return "C21: m2";
}
public String m3() {
return "C21: m3";
}
}
| true |
b01108261db7e63a4d66232f4f44f18640b7788d | Java | mohamedalighouma/demojenkins | /folder/com/CalculetteTest.java | UTF-8 | 702 | 2.8125 | 3 | [] | no_license | package com;
import org.testng.Assert;
import org.testng.annotations.Test;
public class CalculetteTest {
@Test(groups = { "test-group" })
public void add() {
Calculette calc = new Calculette();
Assert.assertEquals(calc.add(12, 8),20.0);
}
@Test
public void produit() {
Calculette calc = ... | true |
462f4a4ff10eec767fd221677172de4bcf93f611 | Java | Hrishikesh-Thakkar/Visa_Training | /oop/src/com/visa/prj/client/FunctionalExample.java | UTF-8 | 871 | 2.90625 | 3 | [] | no_license | package com.visa.prj.client;
@FunctionalInterface
interface Computation{
int compute(int x,int y);
//int cp(int x);
}
public class FunctionalExample {
public static void main(String[] args) {
// TODO Auto-generated method stub
Computation c1= new Computation() {
@Override
public int compute(int x, in... | true |
44eb0b13f33bdfbf0f76294c8733d9367fc5071a | Java | lvdong218/myProject | /project/src/main/java/com/ld/util/ResponseUtil.java | UTF-8 | 772 | 2.546875 | 3 | [] | no_license | package com.ld.util;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONObject;
/**
* 关于response和request的一些公用方法
* @author lvdong
*
*/
public class ResponseUtil {
/**
* 将json通过response输出
* @... | true |
1b94678bec1be9f290321434fb69e5d16b1a00fc | Java | zxli27/myprojects | /Simple_Language_Compiler/src/Type/Type.java | UTF-8 | 170 | 2.4375 | 2 | [] | no_license | package Type;
public abstract class Type {
public abstract String toString();
public abstract boolean equals(Object o);
public abstract String toChar();
}
| true |
53ac677e56aa5ab0eec98d242c21f7d64de189d7 | Java | dreamer888/zhihuinongmao | /zhnm/zhnm-miniapp/backend/mallweb/src/main/java/com/yq/service/user/impl/ShopUserService.java | UTF-8 | 2,168 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package com.yq.service.user.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yq.dao.DaoSupport;
import org.change.entity.Page;
import org.change.util.PageData;
import com.yq.service.user.ShopUserManager;
/**
* 说明: 会员用户
* 创建人:壹仟科技 q... | true |
c2057c538bdcd6295e22f527c5156947e8708ab9 | Java | Billwjn/witch | /question/src/main/java/com/wjn/question/service/mapper/QuestionMapper.java | UTF-8 | 301 | 1.554688 | 2 | [] | no_license | package com.wjn.question.service.mapper;
import com.wjn.api.dto.QuestionDto;
import com.wjn.base.mapper.BaseMapper;
import com.wjn.question.entity.Question;
import org.mapstruct.Mapper;
@Mapper(componentModel = "spring")
public interface QuestionMapper extends BaseMapper<Question, QuestionDto> {
}
| true |
e97dd3607655ca6a751fcf2363d4bb43d059dc7f | Java | 13sakshi13/the-lazy-chef-android | /app/src/main/java/com/example/thelazychef/SearchByIngredientsResults.java | UTF-8 | 8,819 | 2.234375 | 2 | [] | no_license | package com.example.thelazychef;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget... | true |
e2dd15447febc15ddc03f5b0795443bf1bbe836b | Java | hooheohee/Jupiter | /src/main/java/rpc/ItemHistory.java | UTF-8 | 3,285 | 2.46875 | 2 | [] | no_license | package rpc;
import db.MySQLConnection;
import entity.Item;
import org.json.JSONArray;
import org.json.JSONObject;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSe... | true |
a93896a45be6f1d9fec574ab64852c0a8ca832ed | Java | thb143/cec | /cec.site/src/cn/mopon/cec/site/actions/price/ChannelPolicyAction.java | UTF-8 | 11,604 | 1.976563 | 2 | [] | no_license | package cn.mopon.cec.site.actions.price;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import o... | true |
c8eefebeed70c8ad513282cec34aa7d633808897 | Java | pftx/api-mono | /common/common-core/src/main/java/com/x/api/common/validation/validator/EnumValidator.java | UTF-8 | 3,199 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | /**
* EnumValidator.java
*
* Copyright 2017 the original author or authors.
*
* We licenses this file to you 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/LICEN... | true |
0006c685d2d8865c9e4123c000e97a1d47c1f118 | Java | MakcSan/TheBadSunrise | /src/main/java/net/mcreator/badsunrise/MCreatorEntityOnFire.java | UTF-8 | 2,568 | 2.21875 | 2 | [] | no_license | package net.mcreator.badsunrise;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.event.TickEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraft.world.World;
import net.minecraft.util.math.BlockPos;
import net.minecraft.entity.Entity;
@Elementsbadsunr... | true |
5d66df6071d6be5bf945b0323065610e98cd67da | Java | zveno65/Spring-Boot | /src/main/java/ru/plotnikov/repository/UserRepository.java | UTF-8 | 231 | 1.914063 | 2 | [] | no_license | package ru.plotnikov.repository;
import org.springframework.data.repository.CrudRepository;
import ru.plotnikov.model.User;
public interface UserRepository extends CrudRepository<User, Long> {
User findByName(String name);
}
| true |
39f141398a661bdedd1a91001c201e3720a8a380 | Java | Hugo18x/Proyecto-javainicial | /Gym/src/Modelo/EntrenadoresEnum.java | UTF-8 | 95 | 1.726563 | 2 | [] | no_license | package Modelo;
public enum EntrenadoresEnum {
Lucas,
Pepito,
Walter,
Jose
}
| true |
1ca6500eb1ed606e46d7e68c83ebaae49591109a | Java | cappelleMedia/mfa_model | /src/domain/poll/PollItemAnswer.java | UTF-8 | 2,370 | 2.703125 | 3 | [] | no_license | package domain.poll;
import domain.DaoObject;
import domain.DomainException;
import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Entity;
@Entity
public class PollItemAnswer extends DaoObject implements Serializable{
private String answerText; //TODO add multi langs
pri... | true |
ebea243cbbb63f811939f59a5718dc0fc61df5e7 | Java | sandychn/LibraryManageSystem | /src/common/util/MyXMLReader.java | UTF-8 | 1,295 | 2.546875 | 3 | [
"MIT"
] | permissive | package common.util;
import org.w3c.dom.Document;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
public class MyXMLReader {
public Map<String, String> readXML() {
try {
File f = ne... | true |
8c9f502a21c0cf8ab606cf6ddbb7fe299b97cc64 | Java | korrio/SocialKit-VM | /app/src/main/java/co/aquario/socialkit/event/toolbar/ChatSubTitleEvent.java | UTF-8 | 214 | 1.8125 | 2 | [] | no_license | package co.aquario.socialkit.event.toolbar;
/**
* Created by Mac on 3/2/15.
*/
public class ChatSubTitleEvent {
public String str;
public ChatSubTitleEvent(String str) {
this.str = str;
}
}
| true |
40dfccfa4c5092ca652eff2e5e3fa700832438bc | Java | pdibez/trabajos-ia-2017 | /a-estrella/src/a_star/Nodo.java | UTF-8 | 1,305 | 3.515625 | 4 | [] | no_license | package a_star;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class Nodo implements Comparable<Nodo> {
private Map<Nodo, Integer> nodosHijos; // Nodo hijo -> Coste desde este nodo hasta nodo hijo
public final String nombre;
public final int h; // Heurística
public int co... | true |
be66f662c4b0ede4c1af3872ab6e72c46024243d | Java | andreipopov00/Programming-Projects | /CMSC203_Lab6/GradeBookTest.java | UTF-8 | 1,343 | 3.03125 | 3 | [] | no_license | package Lab6;
import static org.junit.Assert.*;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class GradeBookTest {
private GradeBook scores1;
private GradeBook scores2;
@BeforeEach
void setUp() throws Exception {
scores1 = new ... | true |
61df3b940acecaab6bf67227157a95b10c464199 | Java | GuiTom/showdance | /ShowDanceActivity/src/com/android/app/showdance/ui/oa/FoundNearManActivity.java | UTF-8 | 3,826 | 2.28125 | 2 | [] | no_license | package com.android.app.showdance.ui.oa;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ImageButton;
import android.widget.Lis... | true |
eb369ac2135aab200f650099fbee3b77d8ceeca8 | Java | JanaUnbekannt/LerntagebuchOOP | /app/src/main/java/com/example/students/lerntagebuchoop/fragment/Tasks.java | UTF-8 | 7,973 | 1.867188 | 2 | [] | no_license | package com.example.students.lerntagebuchoop.fragment;
import android.content.Context;
import android.content.res.XmlResourceParser;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import an... | true |
21dc4e00ef4a4f64207459bacdc7e469bf7ec7d3 | Java | northpl93/NorthPlatform | /Sources/MiniGame/ElytraRace/src/main/java/pl/north93/northplatform/minigame/elytrarace/scoreboard/ScoreScoreboard.java | UTF-8 | 4,615 | 2.40625 | 2 | [] | no_license | package pl.north93.northplatform.minigame.elytrarace.scoreboard;
import static pl.north93.northplatform.api.minigame.server.gamehost.MiniGameApi.getArena;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.apache.... | true |
572ed66d9986c4b3e55f59b59688ee4e13b4487f | Java | keyuri20/GraduateProgram | /src/main/java/springmvc/model/dao/applicationDao.java | UTF-8 | 164 | 1.773438 | 2 | [] | no_license | package springmvc.model.dao;
import java.util.List;
import springmvc.model.application;
public interface applicationDao
{
List<application> getApplication();
}
| true |
a764297a527769a87d43936ff1e8149d5a1ffd9b | Java | VUT-FEKT-IBE/School-IBE | /BPC-TIN/Czechbol/cviceni03/src/GrEditor/Slozenina.java | UTF-8 | 395 | 2.78125 | 3 | [
"MIT"
] | permissive | package GrEditor;
import java.awt.Graphics2D;
import java.util.Vector;
public class Slozenina extends GrObjekt {
public Slozenina(int x, int y) {
super(x, y);
}
private Vector<GrObjekt> slozenina = new Vector<>();
public void pridej(GrObjekt o) {
slozenina.add(o);
}
@Override
public void vykresli(Graph... | true |
56b116d0ca79500013e731c757c2b06efa4c31cd | Java | Dud3k9/Client-Server | /src/S_PASSTIME_SERVER1/Client.java | UTF-8 | 2,156 | 2.84375 | 3 | [] | no_license | /**
* @author Petrykowski Maciej S19267
*/
package S_PASSTIME_SERVER1;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.channels.SocketChannel;
import java.nio.charset.Charset;
public class Client {
... | true |
a2346b76c4cf4b6922de40197298335eaa084bd5 | Java | chengyuehao/ImageSearch | /src/main/java/com/cheng/mapping/ImageMapper.java | UTF-8 | 225 | 1.851563 | 2 | [] | no_license | package com.cheng.mapping;
import com.cheng.model.Image;
import java.util.List;
public interface ImageMapper {
List<Image> selectImages();
void insertImage(Image image);
List<Image> selectImagByVid(int vid);
}
| true |
eabdc7f8ca9633f797fcda148af9187e60e655d2 | Java | dami2450/despegarTest | /app/src/main/java/com/example/damian/despegartest/RankingHotelActivity.java | UTF-8 | 5,593 | 2.03125 | 2 | [] | no_license | package com.example.damian.despegartest;
import android.app.ActionBar;
import android.app.Activity;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.Display;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
... | true |
08601908d1eb116c7079a00edb640277e161d30e | Java | nsullivan1307/Cards | /src/DragBox.java | UTF-8 | 2,815 | 3.515625 | 4 | [] | no_license | import javax.swing.JPanel;
import java.awt.*;
import java.awt.event.*;
/**
* This is an abstract rectangle that can be 'dragged' on the panel. In order to drag,
* you must click on the rectangle, put your mouse to where you want to put it, and then click
* again to release the rectangle
*
* @author (Nicholas Sulli... | true |
082f5581db5cb335a80e8aefe24a7d474acc09d4 | Java | moutainhigh/chdHRP | /src/com/chd/hrp/budg/controller/budgincome/reportforms/query/MedInQueryController.java | UTF-8 | 3,948 | 1.898438 | 2 | [] | no_license | /**
* @Description:
* @Copyright: Copyright (c) 2015-9-16 下午9:54:34
* @Company: 杭州亦童科技有限公司
* @网站:www.s-chd.com
*/
package com.chd.hrp.budg.controller.budgincome.reportforms.query;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Co... | true |
dadb9757b1d6c8314939a1f30cea985390edf89c | Java | laisgraziele/oberser-reservas | /src/Reservas.java | UTF-8 | 600 | 2.671875 | 3 | [] | no_license | import java.util.Observable;
public class Reservas extends Observable implements Notificacoes {
private String acao = "";
@Override
public void criacao() {
acao="criada";
System.out.println("Reserva foi criada!");
this.mudaStatus();
}
@Override
public void alteracao() {
acao="alterada";
System.o... | true |
8b247d60126dd21bc14b60bbd30f38a0fa0f3784 | Java | CrazyStoneJy/CustomView | /CustomView/app/src/main/java/com/crazystone/me/customview/activity/TestActivity.java | UTF-8 | 3,732 | 2.375 | 2 | [] | no_license | package com.crazystone.me.customview.activity;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.... | true |
a72b17a5bce24e3cf1ead48973ace2aac641c323 | Java | PolyxeniCh/FeelyProject | /Feely/src/Destination.java | ISO-8859-7 | 666 | 2.46875 | 2 | [] | no_license | /*
* :
*/
public class Destination extends Category {
private String category; //
public Destination(String title, String link, String category) {
super(title, link);
this.category = category;
}
// ---------- GETTERS ----------
public String getCategory() {
re... | true |
dc7da4a66143f2813cefd3fd86d7d657d71efefc | Java | xyf18362929560/SoftwareEngineering | /源代码/1209_2256/ExpressService/src/nju/express/dataservice/impl/SenderDataServiceImpl.java | UTF-8 | 1,151 | 2.25 | 2 | [] | no_license | package nju.express.dataservice.impl;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.Vector;
import nju.express.dataservice.SenderDataService;
import nju.express.po.Sender;
import nju.express.util.DAO;
public class SenderDataServiceImpl extends UnicastRemoteObject imple... | true |
b4e73a1a92f12edeaa08823ac5a3ad445c5b6f2f | Java | NiteshPidiparars/CodeBlock | /Mix.java | UTF-8 | 823 | 3.5625 | 4 | [] | no_license | import java.util.*;
class Mix
{
public static void main(String[]args)
{
Scanner sc=new Scanner(System.in);
int a1[],a2[],a3[],i,j,n;
System.out.println("Enter the number of value: ");
n=sc.nextInt();
a1=new int[n];
a2=new int[n];
a3=new int[n+n];
S... | true |
036e5084fa70739237103e1b188109c08eef107e | Java | micronaut-projects/micronaut-core | /core-processor/src/main/java/io/micronaut/inject/ast/annotation/MethodElementAnnotationMetadata.java | UTF-8 | 1,981 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017-2023 original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | true |
9a32647527874ce8bfdfd14c9d4725f1bf0b6eb4 | Java | wstars1994/BTFinder | /src/com/boomzz/main/bencode/BencodeInteger.java | UTF-8 | 1,125 | 2.578125 | 3 | [] | no_license | /**
*
* 项目名称:[BTFounder]
* 包: [com.boomzz.main.bencode]
* 类名称: [BecodeInteger]
* 类描述: [一句话描述该类的功能]
* 创建人: [王新晨]
* 创建时间:[2018年3月31日 下午4:29:20]
* 修改人: [王新晨]
* 修改时间:[2018年3月31日 下午4:29:20]
* 修改备注:[说明本次修改内容]
* 版本: [v1.0]
*
*/
package com.boomzz.main.bencode;
import java.io.PushbackInpu... | true |
6cf8c7d655c5866637e84450110bc84368b0a793 | Java | ebi-uniprot/uniprot-subcell | /src/main/java/uk/ac/ebi/uniprot/uniprotsubcell/import_data/CombineSubcellAndRefCount.java | UTF-8 | 3,213 | 2.71875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | package uk.ac.ebi.uniprot.uniprotsubcell.import_data;
import uk.ac.ebi.uniprot.uniprotsubcell.domains.Subcellular;
import uk.ac.ebi.uniprot.uniprotsubcell.dto.SubcellReferenceCount;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Collecti... | true |
8a82a8c1f5c2037ed933c7248d82b0feec506052 | Java | balajavajee/JavaJee | /components/MSOne/src/main/java/com/microservices/msone/repository/UserRepository.java | UTF-8 | 377 | 1.9375 | 2 | [] | no_license | package com.microservices.msone.repository;
import java.util.Collection;
import org.springframework.stereotype.Repository;
import com.microservices.msone.model.UserDetails;
@Repository
public interface UserRepository extends BaseRepository<UserDetails, String> {
boolean containsName(String name);
Collection... | true |
4f12c02a926845511784f09389ab6f0b41074ad7 | Java | frsknalexis/crm-java | /crm_backend/src/main/java/com/dev/crm/core/service/impl/UsuarioServiceImpl.java | UTF-8 | 8,208 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package com.dev.crm.core.service.impl;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.security.core.userdetails.User;
import org.spr... | true |
1122470d3ecdbf90dc1288d6753ee2f796038c95 | Java | jinhanlai/JavaSourceCode | /src/main/java/thread/TestReadWriteLock.java | UTF-8 | 1,387 | 3.109375 | 3 | [] | no_license | package thread;
import org.junit.jupiter.api.Test;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.ReentrantReadWriteLock;
/**
* @Author laijinhan
* @date 2020/12/20 下午5:58
*/
public class TestReadWriteLock {
@Test
public void testReadwrite() {
ReadWriteLock readWriteLock=ne... | true |
478a896da313ac0d08bb3bc30068a1007d82c15c | Java | Vanderzui/coffeemachine | /src/main/java/org/vanderzui/cofeemachine/controller/CoffeeMachineController.java | UTF-8 | 978 | 2.375 | 2 | [] | no_license | package org.vanderzui.cofeemachine.controller;
import org.vanderzui.cofeemachine.entity.RecipeEntity;
import org.vanderzui.cofeemachine.entity.RecipeType;
import org.vanderzui.cofeemachine.entity.SupplyEntity;
import org.vanderzui.cofeemachine.service.MoneyService;
import org.vanderzui.cofeemachine.service.SimpleMoney... | true |
07cb270440ee5addc89b8e0c809bc5d32e4b012c | Java | Tomones/Java | /src/main/java/com/lyss/java/concurrent/threadcommunication/ListAdd1.java | UTF-8 | 1,032 | 3.5625 | 4 | [] | no_license | package com.lyss.java.concurrent.threadcommunication;
import java.util.ArrayList;
import java.util.List;
public class ListAdd1 {
private volatile static List list = new ArrayList<>();
public void add(){
list.add("guotao");
}
public int size(){
return list.size();
}
public static void main(String[] args) {
... | true |
e42d58cd24365c7197dd43d1bd8016d769b88cf4 | Java | nanxinW/LearnJava | /Code/day04/SwitchTest01.java | UTF-8 | 2,342 | 4.34375 | 4 | [] | no_license | /*
switch语句:
1、switch语句的语法格式:
switch(值){
case 值1:
java语句;
java语句;
break;
case 值2:
java语句;
java语句;
break;
......
default:
java语句;
}
以上是一个完整的switch语句,其中break语句和default分支也不是必须的。
2、switch语句支持的值有哪些?
支持int类型和String类型。
但一定要注意JDK的版本,在JDK8之前不支持String类型,只支持int。当值为byte s... | true |
01ae67f9fa5fedc0732db83920c94b4a5f4c059b | Java | antonyanmher91/MherAntonyan | /MyMassanger/app/src/main/java/com/example/mymassanger/massange/MassangerItem.java | UTF-8 | 384 | 2.734375 | 3 | [] | no_license | package com.example.mymassanger.massange;
public class MassangerItem {
String name;
String mass;
public MassangerItem() {
}
public MassangerItem(String name, String massange) {
this.name = name;
this.mass = massange;
}
public String getName() {
return name;
}
... | true |
d2d018269fb1cc5fe6ccd4de06ad61c633272151 | Java | sortaxie/babycar-mqtt | /src/main/java/com/adorgroup/babycar/mqtt/dao/DeviceMapper.java | UTF-8 | 875 | 2.015625 | 2 | [] | no_license | package com.adorgroup.babycar.mqtt.dao;
import com.adorgroup.babycar.mqtt.domain.Device;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
public interface DeviceMapper {
int deleteByPrimaryKey(Integer id);
int insert(Device ... | true |
c3c35d5b522fb0035c4aea833a65e05e077cf7f7 | Java | rossetti1983/lint | /src/dp/buttomUpDp/LongestCommonSubstring79.java | UTF-8 | 1,261 | 3.703125 | 4 | [] | no_license | package dp.buttomUpDp;
/**
* Created by zhizha on 10/1/17.
* Given two strings, find the longest common substring.
Return the length of it.
Notice
The characters in substring should occur continuously in original string. This is different with subsequence.
Have you met this question in a real interview? Yes
... | true |
2847eefac8d65a68c0c205a950a7fa7c5596ac94 | Java | SadManFahIm/HackerRank-Preparation-Kit | /Hash Tables-Ice Cream Parlour.java | UTF-8 | 1,197 | 3.0625 | 3 | [
"MIT"
] | permissive | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution
{
/**
* @param arr
* @param money
*/
static void solve (int[]arr, int money)
{
// Complete this function
if (arr == null || arr.length < 1)
{
Syste... | true |
8a2cdcc35582bc2a95b911d6f2d23c97c1d1f23e | Java | katemeronandroid/Session8 | /app/src/main/java/com/firstexample/emarkova/session8/ItemEntity.java | UTF-8 | 141 | 2.21875 | 2 | [] | no_license | package com.firstexample.emarkova.session8;
public class ItemEntity {
public int i;
ItemEntity(int i) {
this.i = i;
}
}
| true |
5f4b2745dd48245a763097c96e5c9308e048d182 | Java | Yelson11/Thread-Competition | /src/view/GraphicInterface.java | UTF-8 | 18,990 | 2.296875 | 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 view;
import controller.Simulator;
import java.awt.Graphics;
import controller.ThreadController;
import java.awt.event.ActionE... | true |
f01af10580c8ddb82d3647e2ef58dafe5d6dadf5 | Java | cckmit/itss | /tags/06_Office_release_20110726/src/com/xpsoft/oa/model/system/FunUrl.java | UTF-8 | 3,361 | 2.09375 | 2 | [] | no_license | /* */ package com.xpsoft.oa.model.system;
/* */
/* */ import com.xpsoft.core.model.BaseModel;
/* */ import org.apache.commons.lang.builder.EqualsBuilder;
/* */ import org.apache.commons.lang.builder.HashCodeBuilder;
/* */ import org.apache.commons.lang.builder.ToStringBuilder;
/* */
... | true |
7fec830203fbc841286bf4fcd771ce316439327d | Java | colinrobertson0911/soloproject | /src/main/java/com/fdmgroup/soloProject_Colin_OneDay/service/ItemService.java | UTF-8 | 617 | 2.0625 | 2 | [] | no_license | package com.fdmgroup.soloProject_Colin_OneDay.service;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fdmgroup.soloProject_Colin_OneDay.model.Item;
import com.fdmgroup.soloProject_Colin_OneDay.... | true |
727938bca8c18f4b2f52b6323145ec485d02b426 | Java | bgould/thriftee | /libthrift-ext/src/main/java/org/thriftee/thrift/schema/SchemaReference.java | UTF-8 | 3,182 | 2 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2013-2016 Benjamin Gould, and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | true |
0d297ad1d7d003ea09a89c87ec1492a2d0ab879d | Java | patelkarishma10/Garage | /src/Model/Vehicle.java | UTF-8 | 679 | 3.40625 | 3 | [] | no_license | package Model;
public abstract class Vehicle {
private String colour;
private String make;
private String model;
public Vehicle(String colour, String make, String model) {
this.colour = colour;
this.make = make;
this.model = model;
}
public String getColour() {
return colour;
}
public String getMake... | true |
29ca78332451f42b41b573efa19795ebf8c43b10 | Java | yuanqian-usf/CDATMController | /java/cdatm/src/test/java/com/circulardollar/cdatm/business/upstream/model/account/AccountRecordTest.java | UTF-8 | 2,507 | 2.40625 | 2 | [
"MIT"
] | permissive | package com.circulardollar.cdatm.business.upstream.model.account;
import static com.circulardollar.cdatm.TestBase.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.stream.IntStream;
import org.junit.Test;
public class AccountRecordTest {
@Test(expected... | true |
fa738235541c3c2c0c981c3854fd81fbba8a20b3 | Java | sweetca/oscar-controller | /src/main/java/com/oscar/controller/model/component/ComponentNvd.java | UTF-8 | 526 | 1.804688 | 2 | [
"MIT"
] | permissive | package com.oscar.controller.model.component;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
@Data
@Docu... | true |
202ed825dcedad9f19d57e7bc285619c4e23639f | Java | kartheektrilochan/testprjct | /test-project/src/com/test/entity/UserRole.java | UTF-8 | 2,255 | 1.929688 | 2 | [] | no_license | package com.test.entity;
import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
/**
* The persistent class for the USER_ROLES database table.
*
*/
@Entity
@Table(name="USER_ROLES")
@NamedQuery(name="UserRole.findAll", query="SELECT u FROM UserRole u")
public class Use... | true |
04e7a88692d898deb33417e3f7e4f1143b611bf1 | Java | BrunaLauton/ProjetoAM_Dot | /src/br/dot/form/FormLogin.java | UTF-8 | 16,391 | 2.078125 | 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 br.dot.form;
import br.dot.dao.LoginDAO;
import br.dot.modelo.Login;
import java.awt.event.KeyEvent;
import javax.swing.JOptio... | true |
c405bdc952986a9ef8f327ea155cf70de41d8451 | Java | Kadphol/basic-java-test | /Potter/src/test/java/com/example/potter/book/BookServiceTest.java | UTF-8 | 2,609 | 2.921875 | 3 | [] | no_license | package com.example.potter.book;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import java.util.Arrays;
import java.util.Optional;
import static org.junit.jupiter.api.Assertions.*;
import static org.mo... | true |
617b0a766cc71ba2d79fd7ac8f0bd9980c15f786 | Java | cwenlu/NestedScrolling | /app/src/main/java/com/cwl/nestedscrolling/TestView.java | UTF-8 | 1,607 | 2.5625 | 3 | [] | no_license | package com.cwl.nestedscrolling;
import android.content.Context;
import android.support.v4.view.MotionEventCompat;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
/**
* Created by Administrator on 2017/3/1 0001.
*/
public class TestView extends View {
public TestVi... | true |
10067d2854ad5cc04450b584c827f7bdffd34fa7 | Java | ItaloChagas/EAD | /06-DesignPatterns/src/br/com/fiap/jpa/test/CalculadoraTest.java | UTF-8 | 321 | 2.21875 | 2 | [] | no_license | package br.com.fiap.jpa.test;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import br.com.fiap.jpa.util.Calculadora;
class CalculadoraTest {
@Test
void somarTest() {
Calculadora calc = new Calculadora();
int soma = calc.somar(3, 5);
assertEquals(8, soma);
}
}... | true |
e9bef0f4653323e40aae0bf639e1f289355944a0 | Java | taylorkelly/ResponseSystem | /src/response/client/gui/MainPanel.java | UTF-8 | 2,591 | 2.734375 | 3 | [] | no_license | package response.client.gui;
import java.awt.Dimension;
import java.net.InetAddress;
import java.util.*;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import response.client.packets.*;
import response.shared.QuestionType;
/**
*
* @author taylor
*/
public class MainPanel extends JPanel {
private st... | true |
6612513cef2fd8127dd9a295259a7ecbec092378 | Java | Prabhat789/PhysicalWeb-12121454121456325125 | /app/src/main/java/com/pktworld/physicalweb/util/ApplicationConstant.java | UTF-8 | 457 | 1.65625 | 2 | [] | no_license | package com.pktworld.physicalweb.util;
/**
* Created by ubuntu1 on 4/5/16.
*/
public class ApplicationConstant {
public static final String BLE_URL_BROADCAST = "ble_url";
public static final String BLE_DATA = "ble_data";
public static final String APPLICATION_PREFERENCE_NAME = "com.pktworld.physicalweb.... | true |
b9785f51ee5e5d4cb8e8b65feccc8185e0ac0f29 | Java | launchfirst2020/xxpay4new | /xxpay-merchant/src/main/java/org/xxpay/mch/order/ctrl/MemberPayController.java | UTF-8 | 34,010 | 1.984375 | 2 | [] | no_license | package org.xxpay.mch.order.ctrl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.commons.lang3.StringUtils;
import org.springframewo... | true |
41692f4a313580433b69773fd40d42f5fab9e4c3 | Java | 32248480/Java11 | /Class01.java | UTF-8 | 821 | 3.9375 | 4 | [] | no_license | abstract class CShape{
protected String color;
public CShape(String str){
color=str;
}
public abstract void show();
}
class CRectangle extends CShape{
int width,height;
public CRectangle(int w,int h){
super("Yellow");
width=w;
height=h;
}
public void show(){
System.out.print("color="+color+", ");
... | true |
bb73babee0a928e3f13a5f6aceee387a49f630cb | Java | jbzhang99/YS_Distribute | /yb-public-api/src/main/java/com/api/service/product/IColorMasterService.java | UTF-8 | 2,355 | 1.75 | 2 | [] | no_license | package com.api.service.product;
import com.api.hystric.product.CategoryMasterServiceHystrix;
import com.product.entity.ColorMasterEntity;
import com.system.util.ServiceResult;
import com.system.util.SystemException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation... | true |
3c279227b431ba6d44b9300ecbeaaa331f4fec32 | Java | amhyry/hsrm.oose.2013.project.pacman | /src/de/hsrm/cs/oose13/GameTic.java | UTF-8 | 894 | 2.421875 | 2 | [] | no_license | package de.hsrm.cs.oose13;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
public class GameTic implements ActionListener {
GamePanel panel;
public GameTic(GamePanel gamePanel) {
this.panel = gamePanel;
}
@Override
public void actionPerformed(Action... | true |
9a02d41ff3a59b458ca13bcdde6df0e07f82674d | Java | RalphSu/789 | /p2p-facade/src/main/java/com/icebreak/p2p/rs/service/userManage/AppSetUserPwdService.java | UTF-8 | 2,844 | 2 | 2 | [] | no_license | package com.icebreak.p2p.rs.service.userManage;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import com.alibaba.fastjson.JSONObject;
import com.icebreak.p2p.dataobject.Role;
import com.icebreak.p2p.dataobject.UserBaseInfoDO;
import com.icebreak.... | true |
19320ecd63415f4de72ba4f33f02671f5f023297 | Java | mskjaldgaard/SwissKnightMinecraft | /SpongePowered/SpongeTests/src/main/java/ch/vorburger/minecraft/testsinfra/CommandTestHelper.java | UTF-8 | 10,083 | 1.765625 | 2 | [
"MIT"
] | permissive | /*
* This file is part of Michael Vorburger's SwissKnightMinecraft project, licensed under the MIT License (MIT).
*
* Copyright (c) Michael Vorburger <http://www.vorburger.ch>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and asso... | true |
9eb78c2765a34e0f80338326602714663994bd5d | Java | Gabrielgoc99/padraoMediator | /src/main/java/Hospital.java | UTF-8 | 1,015 | 2.609375 | 3 | [] | no_license | public class Hospital {
private static Hospital instancia = new Hospital();
private Hospital() {}
public static Hospital getInstancia() {
return instancia;
}
public String atestadoEncaminhamentoUTI (String atestado) {
return "Bem vindo ao Hospital St. Claude!\n"+
"... | true |
c30b6dc6a4e45b2451d6282898329eb8cb889c53 | Java | RexMilton/Old_Skill_Rack | /DC/2021/04/21/solution.java | UTF-8 | 1,085 | 3.109375 | 3 | [] | no_license | import java.util.*;
public class Hello {
public static void main(String[] args) {
Scanner q=new Scanner(System.in);
int x=q.nextInt(),y=q.nextInt();
char z[][]=new char[x][y];
q.nextLine();
for(int i=0;i<x;i++){
String[] t=q.nextLine().split(" ");
for(int j=0;j<y;j++){
z[i][j]=t[... | true |
975e8de54db1a73695087e63af55b0088796019c | Java | GJordao12/ISEP-LAPR4 | /lei20_21_s4_2dl_02/HelpdeskService/helpdesk.core/src/main/java/eapli/helpdesk/feedback/domain/FeedbackTicket.java | UTF-8 | 1,226 | 2.1875 | 2 | [
"MIT"
] | permissive | package eapli.helpdesk.feedback.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import eapli.framework.domain.model.AggregateRoot;
import eapli.framework.domain.model.DomainEntities;
import eapli.helpdesk.ticket.domain.Ticket;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
imp... | true |
d575c974f6047a5e23bc5c18ca32b65159e7e179 | Java | Selesito/job4j_grabber | /src/main/java/ru/job4j/grabber/utils/SqlRuDateTimeParser.java | UTF-8 | 2,100 | 2.875 | 3 | [] | no_license | package ru.job4j.grabber.utils;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.D... | true |
b1998b9a9de2daf7216edb45c933422171122353 | Java | sxinchuan/sxctest | /src/sxinchuan/TestInnerClass.java | GB18030 | 590 | 2.59375 | 3 | [] | no_license | package sxinchuan;
public class TestInnerClass {
public static void main(String[] args) {
// new Test().new Test2().print();
// new Test().new Test2().new Test3().print();
String url = " http://127.0.0.1:9000/ibot-robot-uap/robot-sgcc/services/robotService";
System.out.println(url.substring(0, ... | true |
bdf79c4fb797c8754ef8240fa59053cb65b983ee | Java | andrewpedia/SlideHoldSmoothDemo | /app/src/main/java/com/ganshenml/slideholdsmoothdemo/ScrollingActivity.java | UTF-8 | 2,083 | 2.203125 | 2 | [] | no_license | package com.ganshenml.slideholdsmoothdemo;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.design.widget.TabLayout;
imp... | true |
c9e8c1efc910c849ed4c017ed4fe29c207a7ef12 | Java | qaz4042/beBetter | /3-common/src/main/java/bebetter/basejpa/cfg/sub/CustomFormAuthenticationFilter.java | UTF-8 | 2,008 | 2.25 | 2 | [
"MIT"
] | permissive | package bebetter.basejpa.cfg.sub;
import cn.hutool.json.JSONUtil;
import bebetter.basejpa.model.vo.R;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.web.filter.authc.FormAuthenticationFilter;
import org.springframework.http.HttpMethod;
import javax.servlet.ServletReq... | true |
d127b5856ced7239aa8bafcbe67e95bf08f5be81 | Java | 1033132510/SCM | /src/main/java/com/zzc/modules/sysmgr/common/service/impl/SequenceEntityServiceImpl.java | UTF-8 | 1,294 | 2.078125 | 2 | [] | no_license | package com.zzc.modules.sysmgr.common.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zzc.core.dao.BaseDao;
import com.zzc.core.service.impl.BaseCrudServiceImp... | true |
4722d0deb75008cf5c61cc3060b785e790b0ed5c | Java | IsisVgoddess/isis | /commons/src/main/java/org/apache/isis/commons/internal/debug/xray/XrayUi.java | UTF-8 | 14,734 | 1.585938 | 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")... | true |
24f9a159b59fcce16e3306ecbb32c07f50336296 | Java | akshayTesting/Java-Logical-Programming | /Programming/src/Array1D/LargestArray.java | UTF-8 | 315 | 3.28125 | 3 | [] | no_license | package Array1D;
public class LargestArray {
public static void main(String[] args)
{
int a[]= {1,2,-9,5,6,3,7,9,3};
int max=a[0];
for(int i=0;i<a.length-1;i++)
{
if(a[i]>max)
{
max=a[i];
}
}
System.out.println("maximum number in the given array is "+max);
}
}
| true |
0a75e011df4b4ac0f8b1098d897fed0771a707e1 | Java | suyash-capiot/operations | /src/main/java/com/coxandkings/travel/operations/resource/user/CurrentCompany.java | UTF-8 | 3,687 | 2.203125 | 2 | [] | no_license |
package com.coxandkings.travel.operations.resource.user;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.io.Serializable;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
... | true |
65642e19369e96b29037047c165e149b8c9cdeed | Java | Alex-astakhov/Work_project_Java | /src/main/java/dataModels/apiModels/v1/errorModels/errorBlocks/ErrorDataWithBlocks.java | UTF-8 | 625 | 2.09375 | 2 | [] | no_license | package dataModels.apiModels.v1.errorModels.errorBlocks;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import dataModels.apiModels.v1.errorModels.ErrorData;
import java.util.List;
public class ErrorDataWithBlocks<T extends ErrorParams> extends ErrorData {
@Serializ... | true |
88048aec0f363c36a90b6a86142aac750659d63e | Java | light-max/mobileoffice | /src/main/java/com/lfq/mobileoffice/controller/sysadmin/AdminsController.java | UTF-8 | 3,473 | 2.109375 | 2 | [] | no_license | package com.lfq.mobileoffice.controller.sysadmin;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lfq.mobileoffice.constant.AssertException;
import com.lfq.mobileoffice.model.data.Pager;
import com.lfq.mobileoffice.model.entity.Admin;
import com.lfq.mobileoffice.service.AdminService;
impo... | true |
1ce0dae8a666b5769fc9f0eb8a430d02c25af21d | Java | jpedraza/uPortal | /uportal-war/src/test/java/org/jasig/portal/jgroups/protocols/JdbcPingDaoTest.java | UTF-8 | 4,940 | 2 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"GPL-2.0-only",
"xpp",
"CC-BY-3.0",
"EPL-1.0",
"Classpath-exception-2.0",
"CPL-1.0",
"CDDL-1.0",
"MIT",
"LGPL-2.1-only",
"MPL-2.0",
"MPL-1.1",
"LicenseRef-scancode-unknown-license-reference",
... | permissive | /**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in co... | true |
678e5f2b92f8fdd43599764f07ac8f05e8474c28 | Java | trabbis/test3 | /src/main/java/com/telus/mediation/usage/internal/model/SearchRawUsageDetailVO.java | UTF-8 | 840 | 1.84375 | 2 | [] | no_license | package com.telus.mediation.usage.internal.model;
import java.util.Date;
public class SearchRawUsageDetailVO extends ValueObject {
private Long dataServiceEventId;
private Date dataServiceEventTime;
private String dataServiceEventTypeCd;
public Long getDataServiceEventId() {
return dataServiceEventId;
}
pub... | true |
eba01e8edba58d7edd470526a9cd8ac4c896f8b3 | Java | jbosstools/jbosstools-quarkus | /tests/org.jboss.tools.quarkus.lsp4e.test/projects/maven/microprofile-graphql/src/main/java/io/openliberty/graphql/sample/PrecipType.java | UTF-8 | 817 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /******************************************************************************
* Copyright (c) 2019 IBM Corporation and others.
* 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 availa... | true |
b79e4d5cedee0c92e4004e1abffedeb182798d1e | Java | meghajagadale99/TestMaximum | /src/main/java/com/bridgelabz/FindMax.java | UTF-8 | 899 | 3.53125 | 4 | [] | no_license | package com.bridgelabz;
import java.util.Arrays;
public class FindMax<T extends Comparable<T>> {
T[] elements;
public FindMax(T[] elements) {
this.elements = elements;
}
public static <T extends Comparable<T>> T maxOfValues(T[] elements) {
Arrays.sort(elements);
int lengt... | true |
84e7ebec73fbec96ba3d2609352491ef46d2cbe6 | Java | BidsTeam/LandOfDKL_project | /src/main/java/DAO/logic/EffectLogic.java | UTF-8 | 2,025 | 2.828125 | 3 | [] | no_license | package DAO.logic;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.HashMap;
import java.util.Map;
@Entity
@Table(name="effect")
public class EffectLogic {
private int id;
@NotNull(message = "Название эффекта должно ... | true |
53d49fd17ebb2adf5e167a1a07c0fa0cde3d989a | Java | hazeluff/canucks-discord-bot | /src/main/java/com/hazeluff/nhl/game/data/LiveDataException.java | UTF-8 | 308 | 1.867188 | 2 | [] | no_license | package com.hazeluff.nhl.game.data;
public class LiveDataException extends Throwable {
private static final long serialVersionUID = 2076725347170125055L;
public LiveDataException(String message) {
super(message);
}
public LiveDataException(String message, Exception e) {
super(message, e);
}
}
| true |
0369745fa2fa9b0de823401f5bf1d1661f40ed38 | Java | NathanSalez/allSafe | /src/main/java/dao/impl/jdbc/UserJdbcDao.java | UTF-8 | 6,946 | 2.515625 | 3 | [] | no_license | package dao.impl.jdbc;
import dao.DAOException;
import dao.DAOFactory;
import dao.UserDao;
import model.Role;
import model.User;
import utils.DaoUtils;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Collection;
import java.util.... | true |
2b5c168e056b5bb97ef66241cab2d78d6cbfadb1 | Java | qcamei/scm | /java/com/genscript/gsscm/accounting/web/InitialServlet.java | UTF-8 | 1,516 | 2.296875 | 2 | [] | no_license | package com.genscript.gsscm.accounting.web;
import java.util.Timer;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import org.... | true |
fcfa6eefdcda5db0d248bd157ec1653872ee6856 | Java | stjordanis/artifactory-snyk-security-plugin | /snyk-sdk/src/main/java/io/snyk/sdk/api/v1/SnykHttpRequestBuilder.java | UTF-8 | 1,869 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package io.snyk.sdk.api.v1;
import io.snyk.sdk.SnykConfig;
import javax.annotation.Nonnull;
import java.net.URI;
import java.net.URLEncoder;
import java.net.http.HttpRequest;
import java.util.HashMap;
import java.util.Optional;
import java.util.stream.Collectors;
import static java.nio.charset.StandardCharsets.UTF_8... | true |
446d17c41e61f2fbaaab6673a1c2344ff065c7e3 | Java | lochuynh211/ePro-Toeic | /src/com/mZone/epro/client/data/BookItemServer.java | UTF-8 | 2,631 | 2.4375 | 2 | [] | no_license | package com.mZone.epro.client.data;
public class BookItemServer extends BookItem {
public static final int FREE = 0;
public static final int PAY_REQUIRED = 1;
private int localID;
private float bookPrice;
private String urlImage;
private String urlDownload;
private int paymentRequire;
private String updateD... | true |
fd1f203fa2fb9d702060637664bbf29cd0fc0110 | Java | fengyongshe/distributed-system-example | /helix-example/src/main/java/com/fys/helix/rsyncfile/SetupCluster.java | UTF-8 | 2,395 | 2.28125 | 2 | [] | no_license | package com.fys.helix.rsyncfile;
import org.apache.helix.manager.zk.ZKHelixAdmin;
import org.apache.helix.manager.zk.ZNRecordSerializer;
import org.apache.helix.manager.zk.ZkClient;
import org.apache.helix.model.IdealState;
import org.apache.helix.model.InstanceConfig;
import org.apache.helix.model.StateModelDefinitio... | true |
a10438df17813e05ddd320e81400a6d00444c6ef | Java | topcoder-platform/tc-website | /src/main/com/topcoder/web/privatelabel/controller/request/BaseCredentialReminder.java | UTF-8 | 4,089 | 1.984375 | 2 | [] | no_license | package com.topcoder.web.privatelabel.controller.request;
import com.topcoder.security.admin.PrincipalMgrRemote;
import com.topcoder.shared.dataAccess.Request;
import com.topcoder.shared.dataAccess.resultSet.ResultSetContainer;
import com.topcoder.shared.util.EmailEngine;
import com.topcoder.shared.util.TCSEmailMessag... | true |
8e688c7b03e990c3150cd098c9173f9062223301 | Java | kbirudoju/1800-PetMeds-Android | /app/src/main/java/com/petmeds1800/model/entities/PaymentGroup.java | UTF-8 | 2,503 | 2.28125 | 2 | [] | no_license | package com.petmeds1800.model.entities;
import java.io.Serializable;
/**
* Created by pooja on 8/17/2016.
*/
public class PaymentGroup implements Serializable{
private String lastName;
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.... | true |
6389bd3a46150d4adfa9a7119e499f8f77d11f0f | Java | ehabarman/Grad_Project_Version_3 | /src/mutex/Driver.java | UTF-8 | 1,029 | 3 | 3 | [] | no_license | package mutex;
import mutex.models.MutexHandler;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Driver {
public static void main(String[] args) throws FileNotFoundException {
File input = new File("resources/input.txt");
Scanner s = new Scanne... | true |
6fde30eb2916a757a78929b715aa9b81dee684a0 | Java | tiendungcmd/LunivaCODE | /src/utils/Common.java | UTF-8 | 6,485 | 2.515625 | 3 | [] | no_license | /**
* Coppyright (C) 2020 Luvina
* Common.java, Nov 17, 2020, BuiTienDung
*/
package utils;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Calendar;
import java... | true |
0a16aa7eccae7ee7b94095f3476e0ddf38a73316 | Java | deepalikhetam/Cinderella | /NewCorporateSite/src/test/java/corporatesite/testcases/TC06VerifyHomePage.java | UTF-8 | 561 | 1.890625 | 2 | [] | no_license | package corporatesite.testcases;
import org.openqa.selenium.By;
import org.testng.annotations.Test;
import corporatesite.Browser;
import corporatesite.HomePage;
public class TC06VerifyHomePage extends Browser
{
@Test(priority = 6)
public void verifyHomePage_TC06() throws Exception
{
try{
Thread.sleep(2... | true |
0ac7a3ad5d4a08b29a2559ade1ffa493adb6ab78 | Java | TheSignalMessenger/TheSignal | /src/thesignal/utils/Util.java | UTF-8 | 3,204 | 3.03125 | 3 | [] | no_license | package thesignal.utils;
import java.awt.Color;
import java.io.IOException;
import java.math.BigInteger;
import java.util.Random;
import thesignal.entity.Message;
import net.tomp2p.peers.Number160;
import net.tomp2p.storage.Data;
public final class Util {
public static Number160 add(final Number160 left, final N... | true |