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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
65cd3d57183eb58febc19c653977c695c67f59c2 | Java | IgaguriMK/MinecraftMapImager | /src/main/java/net/kurikagononaka/mapImager/model/map/image/Color.java | UTF-8 | 1,775 | 2.75 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Main Author: Igaguri
* Copyright: 2017 Igaguri
* License: MIT LICENSE
* See README in repository.
*/
package net.kurikagononaka.mapImager.model.map.image;
public class Color {
private final short red;
private final short green;
private final short blue;
private final short alph... | true |
dcf9da207c116efd76296b6b4476ea2db2ef542c | Java | aeremenok/unisender | /src/main/java/com/unisender/responses/SendEmailResponse.java | UTF-8 | 770 | 2.640625 | 3 | [] | no_license | package com.unisender.responses;
public class SendEmailResponse {
private String email;
private String id;
private String error;
public SendEmailResponse(String email, String id, String error) {
super();
this.email = email;
this.id = id;
this.error = error;
}
public String getEmail() {
... | true |
ae6013481b3ceb55f7eebf9e1228edcde55cc2a4 | Java | epigeek/LgUhc | /src/main/java/org/epigeek/lguhc/MessageCreator.java | UTF-8 | 1,979 | 2.65625 | 3 | [] | no_license | package org.epigeek.lguhc;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
public class MessageCreator {
private static String QuitJoin(Player player, boolean isjoin) {
String message = ChatColor.DARK_GRAY + "[";
message += isjoin ? ChatColor.GREEN: ChatColor.RED;
... | true |
09e03c6681fa147c98b94560c8c8dea576b55937 | Java | cbaciliodev/ep-evaluaciones | /ep-backend/src/main/java/pe/mil/ejercito/ms/exception/DataBaseException.java | UTF-8 | 1,039 | 2.59375 | 3 | [] | no_license | package pe.mil.ejercito.ms.exception;
import pe.mil.ejercito.ms.commons.LoggerService;
public class DataBaseException extends Exception{
private static final long serialVersionUID = -1403026729455280650L;
private LoggerService logger;
private Exception ex;
private Integer cod;
private String codErrorMessage;
... | true |
52321a1d84da0de0e26bc0bf9e7dfb300666f407 | Java | raju99459/csvimport | /csv/src/main/java/com/csv/csv/service/impl/VendorServiceImpl.java | UTF-8 | 1,280 | 2.234375 | 2 | [] | no_license | package com.csv.csv.service.impl;
import com.csv.csv.entity.Vendor;
import com.csv.csv.repository.VendorRepository;
import com.csv.csv.service.VendorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.HashSet... | true |
2bd73b69bceaef1adab995851eb8a21170ffbfa5 | Java | ChessChicken-KZ/StationAPI | /station-biome-events-v0/src/main/java/net/modificationstation/stationapi/api/event/level/biome/BiomeRegisterEvent.java | UTF-8 | 294 | 1.960938 | 2 | [
"CC0-1.0"
] | permissive | package net.modificationstation.stationapi.api.event.level.biome;
import net.mine_diver.unsafeevents.Event;
public class BiomeRegisterEvent extends Event {
@Override
protected int getEventID() {
return ID;
}
public static final int ID = NEXT_ID.incrementAndGet();
}
| true |
7c96fb1f8c2530daec45b8898069cf51a77136fb | Java | billcz/Math4j | /src/main/java/org/billcz/common/math/interfaces/Matrix2DProperties.java | UTF-8 | 317 | 1.929688 | 2 | [] | no_license | package org.billcz.common.math.interfaces;
/**
* Description:
* Author: billcz
* Create time: 2017/12/4
*/
public interface Matrix2DProperties extends MatrixProperties {
public int DIMENSION_SPARSE_LIMIT = 10000;
public int getRows();
public int getCols();
public int makeIndex(int i, int j);
}
| true |
280cccdc540df299fc277cb8bb7becebc6f67e4f | Java | Nickstar2020/smarsh-cop3330-assignment2 | /src/main/java/ex34/App.java | UTF-8 | 1,578 | 3.734375 | 4 | [] | no_license | /*
* UCF COP3330 Fall 2021 Assignment 2 Solution
* Copyright 2021 Nicholas Smarsh
*/
package ex34;
import java.util.Objects;
import java.util.Scanner;
public class App {
public static void removeEmployee(String input, String[] arrayList) {
int skip = 0;
//take input and string compare into n... | true |
e6ca7119d69bee00fc29c551ac8c8dc3810c7531 | Java | jitsi/jitsi-meet-torture | /src/test/java/org/jitsi/meet/test/FollowMeTest.java | UTF-8 | 6,936 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright @ 2016 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | true |
af51e93f990c95d6fb361690ffcb3aefa25cc6b0 | Java | atcle1/LSProfiler | /wear/src/main/java/kr/ac/snu/cares/lsprofiler/util/StreamGobbler.java | UTF-8 | 2,507 | 2.625 | 3 | [] | no_license | /*
* Copyright (C) 2012-2014 Jorrit "Chainfire" Jongma
*
* 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 appl... | true |
891e256ddfcfb855457d8520f9e78f71dff8918d | Java | cnh57811/JeepForecast | /app/src/main/java/com/cgavlabs/jeepforecast/repos/WeatherRepoImpl.java | UTF-8 | 3,062 | 2.4375 | 2 | [] | no_license | package com.cgavlabs.jeepforecast.repos;
import com.cgavlabs.jeepforecast.events.DataSavedEvent;
import com.cgavlabs.jeepforecast.models.domain.Currently;
import com.cgavlabs.jeepforecast.models.domain.DailyData;
import com.cgavlabs.jeepforecast.models.domain.Weather;
import com.cgavlabs.jeepforecast.models.view.Weath... | true |
cda70c4edec12f43386bfa2dc1d86433c3912545 | Java | t0HiiBwn/CoolapkRelease | /sources/com/coolapk/market/model/DeviceParams.java | UTF-8 | 2,462 | 1.875 | 2 | [] | no_license | package com.coolapk.market.model;
import com.coolapk.market.model.C$$AutoValue_DeviceParams;
import com.coolapk.market.model.C$AutoValue_DeviceParams;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import java.util.List;
public abstract class DeviceParams implements Entity {
public static final ... | true |
362961375eb5b56ca5c8d907165c248a7e0e0463 | Java | Deeeeeeeee/leetcode | /src/main/java/com/sealde/basics/graph/undirected/CC.java | UTF-8 | 2,792 | 3.5625 | 4 | [] | no_license | package com.sealde.basics.graph.undirected;
import com.sealde.basics.datastruct.queue.ResizingArrayQueue;
public class CC {
private boolean marked[];
private int id[];
private int size[];
private int count;
public CC(Graph g) {
marked = new boolean[g.V()];
id = new int[g.V()];
... | true |
2181a12ee66cae14dcb311a025f2023341a38edd | Java | phanindrakavuri/JavaPrograms | /examples/src/examples/StringReverse.java | UTF-8 | 730 | 3.765625 | 4 | [] | no_license | package examples;
public class StringReverse {
public static void main(String[] args) {
//using StringBuffer and StringBuilder
String input = "mindq";
StringBuilder input1 = new StringBuilder();
input1.append(input);
input1 = input1.reverse();
System.out.println(input1);
String... | true |
d4a82e3f932adbbe6b0196387757c4b4d8aa11df | Java | limingcode/task | /src/com/skyedu/service/impl/LoginLogServiceImpl.java | UTF-8 | 1,639 | 2.375 | 2 | [] | no_license | package com.skyedu.service.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.skyedu.dao.impl.LoginLogDao;
import com.skyedu.model.WaTeacher... | true |
dc763e74be500901d338bbdf5b1159a34a184783 | Java | mikastamm/chess-time | /client_project/app/src/main/java/com/mikastamm/chesstime/Game/Board/MoveValidator.java | UTF-8 | 4,765 | 2.75 | 3 | [] | no_license | package com.mikastamm.chesstime.Game.Board;
import android.graphics.Point;
import com.mikastamm.chesstime.Game.Figures.Figure;
import com.mikastamm.chesstime.Game.Figures.FigureMovePattern;
import com.mikastamm.chesstime.Game.Game;
import com.mikastamm.chesstime.Game.UserInfo;
import java.util.ArrayList;
import java... | true |
d8cb084362a3de75b693d9229ccaad03f3848d7f | Java | adamorzelski/basic-rest-crm | /src/main/java/com/example/basic_crm/DataInit.java | UTF-8 | 1,137 | 2.40625 | 2 | [] | no_license | package com.example.basic_crm;
import com.example.basic_crm.model.Customer;
import com.example.basic_crm.model.User;
import com.example.basic_crm.repository.UserRepository;
import com.example.basic_crm.service.domain.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframe... | true |
aaa87304fd16919fa963a6596f59f1ba5e6d0d47 | Java | liuyijiang/mxkphone | /src/com/mxkapp/dao/comments/MxkCommentsService.java | GB18030 | 2,041 | 2.109375 | 2 | [] | no_license | package com.mxkapp.dao.comments;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.entity.mime.HttpMultipartMode;
import org.apache.http.entity.mime.MultipartEntity;
import org.apache.http.entity.mime.content.StringBody;
im... | true |
1012561254cdc60086282a8975fef209db496777 | Java | TykkiMikk/tw20181740 | /src/test/java/OrderTest.java | UTF-8 | 1,776 | 2.78125 | 3 | [] | no_license | import org.junit.Test;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import static org.junit.Assert.assertEquals;
public class OrderTest {
@Test
public void shouldReturnIsEqual() throws ParseException {
SimpleDateFormat simFormat = new SimpleDateFormat("yy... | true |
7cd90ac4034d39bda0b78ef2aeda9bb8241cb07d | Java | vmazt/maiden | /agent/src/main/java/com/toolazydogs/maiden/agent/DefaultDispatcher.java | UTF-8 | 2,409 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | /**
*
* Copyright 2010-2011 (C) The original author or 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | true |
6ecd4395114b20ef35561d8c9fd4b58d3982fbe6 | Java | MohamedZainHardTask/ESAAL-App | /app/src/main/java/app/esaal/webservices/responses/slider/Slider.java | UTF-8 | 242 | 1.726563 | 2 | [] | no_license | package app.esaal.webservices.responses.slider;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Slider {
@SerializedName("imagePath")
@Expose
public String imagePath;
}
| true |
0ab74c8d2e7d5159639e03bd80ddcecf41fe79f3 | Java | nisheeth84/prjs_sample | /aio-service/src/main/java/com/viettel/aio/bo/AppParamBO.java | UTF-8 | 3,724 | 2.09375 | 2 | [] | no_license | /*
* Copyright 2011 Viettel Telecom. All rights reserved.
* VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.viettel.aio.bo;
import com.viettel.aio.dto.AppParamDTO;
import com.viettel.service.base.model.BaseFWModelImpl;
import org.hibernate.annotations.GenericGenerator;
import org.... | true |
0aeca021226066ed2f0bed153ee07e3450a7c304 | Java | yongyu0102/MobileSafe | /src/peng/zhang/mobilesafe01/SetuoOneActivity.java | GB18030 | 920 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package peng.zhang.mobilesafe01;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.GestureDetector;
import android.view.GestureDetector.SimpleOnGestureListener;
import android.view.MotionEvent;
import android.view.View;
public class SetuoOneActivity extends Base... | true |
7108b9bc2195ed9a9a2922cb34b6e20997622cd4 | Java | markandeyulu/tmp | /src/main/java/com/tmp/dao/CandidateDAO.java | UTF-8 | 1,188 | 1.875 | 2 | [] | no_license | package com.tmp.dao;
import java.sql.PreparedStatement;
import java.util.ArrayList;
import javax.sql.DataSource;
import com.tmp.entity.Associate;
import com.tmp.entity.Departments;
public interface CandidateDAO {
public void setDataSource(DataSource dataSource);
public int insertCandidateList(ArrayLis... | true |
63d1d12869d847950ea2b442ef7f879ac8088329 | Java | teamcicd/java-chess-web | /web_games/test/com/brasee/games/chess/web/commands/singleclient/SingleClientChessCommandFactoryTest.java | UTF-8 | 3,131 | 2.296875 | 2 | [] | no_license | package com.brasee.games.chess.web.commands.singleclient;
import org.junit.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import com.brasee.games.chess.web.commands.singleclient.InvalidSingleClientCommand;
import com.brasee.games.chess.web.commands.singleclient.MoveSingleClientCommand;
import com.b... | true |
d3df719d33f0b373fd3c773180eed3ea4da439c2 | Java | chosh95/Java | /project/Chapter 5/Class/src/referrence/Student.java | UHC | 342 | 2.78125 | 3 | [] | no_license | package referrence;
public class Student {
public int stuId;
public String stuName;
Subject koreaSubject;
public Student(String name, int id) {
stuName = name;
stuId = id;
koreaSubject = new Subject(100, "");
}
public void showStudentScore() {
System.out.println("л " + koreaSubject.score);
}
}
| true |
09864a666b3572a3993bd63ba2f9773cfd489787 | Java | shenxiaoxu/leetcode | /practice/articulationpoints1192.java | UTF-8 | 997 | 3.65625 | 4 | [] | no_license | /*You are given an undirected connected graph. An articulation point (or cut vertex) is defined as a vertex which,
when removed along with associated edges, makes the graph disconnected (or more precisely, increases the number of connected components in the graph).
The task is to find all articulation points in the g... | true |
df437495155dd1a9540ba3f4fb44aa96889e78c3 | Java | Paltoquet/Netodin | /src/util/Users.java | UTF-8 | 1,195 | 3.71875 | 4 | [] | no_license | package util;
import java.util.TreeMap;
/**
* We have implemented this class because
* it is easier writing "Users()" than
* "TreeMap<String, Nicknames>(String.Case_INSENSITIVE_ORDER)"
*
* Furthermore we have overwritten some
* method to make the users case
* insensitive
*
* We use a TreeMap because it has a... | true |
f66d8e5b1564b3609042b04870e368b21e55ebef | Java | Deefster10k/Better3DEngine | /src/main/java/termin8or/base/engine/rendering/BasicShader.java | UTF-8 | 871 | 2.546875 | 3 | [] | no_license | package termin8or.base.engine.rendering;
import termin8or.base.engine.core.Matrix4f;
import termin8or.base.engine.core.Transform;
public class BasicShader extends Shader
{
private static final BasicShader instance = new BasicShader();
public static BasicShader getInstance()
{
return instance;
}
public Basi... | true |
c6a7ea82034a3a5553e7d67e4ad1718700fb6a7f | Java | SimJaeMin/practice05 | /src/prob2/SmartPhone.java | UTF-8 | 460 | 2.9375 | 3 | [] | no_license | package prob2;
public class SmartPhone extends MusicPhone {
@Override
public void execute(String function) {
if("통화".equals(function))
super.execute(function);
else if("음악".equals(function))
playMusic();
else{
playApp();
}
}
@Override
protected void playMusic() {
Syst... | true |
b77ccda1341ca6a8ae3352aa79ae0d7e36bd8cc0 | Java | ghunkins/Istoria | /Istoria/app/src/main/java/com/support/android/designlibdemo/Book.java | UTF-8 | 3,722 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.support.android.designlibdemo;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Book {
private String id;
private String books_count;
private String ratings_count;
private String text_reviews_count;
private String original_publication_year;
priva... | true |
3e4c239cf975ea18b7d3a59678c75757e443ad4e | Java | ssniu/IntroductionToJava10 | /chapter05/Exercise13.java | UTF-8 | 458 | 3.890625 | 4 | [] | no_license |
/**
* (Find the largest n such that n^3 < 12,000)
* Use a while loop to find the largest integer n such that n^3 is less than 12,000.
*
*/
public class Exercise13{
public static void main(String[] args){
int n = 0; // Initialize n to 0
//Find the largest integer n and n^3 less than 12000
while(M... | true |
1a9f61a7f9a8cf13d60b64d87858f3d367152a08 | Java | mrincodi/Algorithms2018 | /Algorithms2018/src/pinos/Stairs.java | UTF-8 | 469 | 2.953125 | 3 | [] | no_license | package pinos;
//https://www.interviewbit.com/problems/stairs/
//Fibonacci. Easy.
public class Stairs {
public int climbStairs(int A) {
if ( A <= 1 ) return A;
int minus1 = 1;
int minus2 = 1;
int current = 0;
for ( int i = 2; i <= A; i++){
current = minus1 + minus2;
minus2 = minus1... | true |
0c9667e48a74874894a0304d102b67915739872c | Java | dossantospat/book-store-backend | /demo-infrastructure/src/main/jaxrs-cxf-server/src/gen/java/io/swagger/model/Book.java | UTF-8 | 2,838 | 2.390625 | 2 | [] | no_license | package io.swagger.model;
import io.swagger.model.Author;
import java.util.ArrayList;
import java.util.List;
import org.joda.time.LocalDate;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootEleme... | true |
93159048e82395cd3226a41314020696239d8a2d | Java | huilaner/huilaner.github.io | /algorithm_questions/LC*ReverseBits/ReverseBits.java | UTF-8 | 1,159 | 3.515625 | 4 | [] | no_license | /**
* difficulty: easy
* url: https://leetcode.com/problems/reverse-bits/
* tag: bit manipulation
*/
public class Solution {
// you need treat n as an unsigned value
/**
* given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 0011... | true |
ed5d8ba2939af9cfbf9bc7aab321db443e3b384d | Java | DLari/ProjectWebSite | /src/main/java/ru/reksoft/interns/carstore/service/ColorService.java | UTF-8 | 950 | 1.96875 | 2 | [] | no_license | package ru.reksoft.interns.carstore.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ru.reksoft.interns.carstore.Mapper.ColorMapper;
import ru.reksoft.interns.carstore.Search.SearchSpecifications;
import ru.reksoft.interns.carstore.dao.ColorR... | true |
66318bca09779580a1575eca4a6a1ce768810a26 | Java | D8ger/D8gerStarters | /spring-cloud-starter-d8ger-common-util/src/test/java/com/xyz/caofancpu/StrategyRuleTest.java | UTF-8 | 19,974 | 1.96875 | 2 | [] | no_license | /*
* Copyright 2016-2020 the original author
*
* @D8GER(https://github.com/caofanCPU).
*
* 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/LICEN... | true |
8fa98457678d9d3e76d44f223e3147df2f03c4bd | Java | PtitNoony/MAV | /jpf_mas/src/main/gov/nasa/jpf/mas/db/Agent.java | UTF-8 | 1,689 | 2.4375 | 2 | [] | no_license | /**
Copyright © 2016, United States Government, as represented
by the Administrator of the National Aeronautics and Space
Administration. All rights reserved.
The MAV - Modeling, analysis and visualization of ATM concepts
platform is licensed under the Apache License, Version 2.0
(the "License"); you may not use this... | true |
e812093d43fea3216439011a2891727c8e97365f | Java | bellmit/oa-parent | /oaBase/src/main/java/com/ule/oa/base/po/EmpType.java | UTF-8 | 596 | 1.851563 | 2 | [] | no_license | package com.ule.oa.base.po;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.ule.oa.base.po.tbl.EmpTypeTbl;
@JsonInclude(Include.NON_NULL)
public class EmpType extends EmpTypeTbl{
/**
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
... | true |
d84a84d121015353ed1993312fd390d40e3db407 | Java | OlessiaKharchenko/university | /src/main/java/com/kharchenko/university/model/ClassRoom.java | UTF-8 | 315 | 1.867188 | 2 | [] | no_license | package com.kharchenko.university.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ClassRoom {
private Integer id;
private int buildingNumber;
private int roomNumber;
private Faculty faculty;
}
| true |
acff9f13e1489c0c89a1c800216a7abc9e85bc98 | Java | qualitrain/ProyVideoTransacc | /src/main/java/qtx/web/ArranqueListener.java | UTF-8 | 1,361 | 2.03125 | 2 | [] | no_license | package qtx.web;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
//import qtx.gestorDatos.ServicioDatos;
import qtx.jpa.dominio.Cliente;
import qtx.jpa.dominio.Vendedor;
import qtx.servici... | true |
1bb336b205a9eea571b013def9ca46557ee8d349 | Java | tex-other/nts | /nts/texmf/source/nts/nts-1.00-beta/nts/hyph/ArrayHyphens.java | UTF-8 | 1,940 | 2.234375 | 2 | [] | no_license | // Copyright 2001 by
// DANTE e.V. and any individual authors listed elsewhere in this file.
//
// This file is part of the NTS system.
// ------------------------------------
//
// It may be distributed and/or modified under the
// conditions of the NTS Public License (NTSPL), either version 1.0
// of this license ... | true |
c4a9ce9ddea910c8dc1d51611aca1b3ed0ccd9d4 | Java | kronhardt/directory-watcher-service | /src/test/java/br/com/agibank/directorywatcherservice/stub/ItemStub.java | UTF-8 | 940 | 2.515625 | 3 | [
"MIT"
] | permissive | package br.com.agibank.directorywatcherservice.stub;
import br.com.agibank.directorywatcherservice.domain.Item;
public class ItemStub {
public static Item createPriceItem100() {
return Item.builder()
.idItem(55L)
.price(120.00)
.quantity(1.0)
... | true |
e943612682e80ad7fc528bc974ac8089da2d79b6 | Java | JacekDl/AlgorithmsAndDataStructures | /AlgorytmySortowania/src/algorithms/sortingalgorithms/BubbleSortTest.java | UTF-8 | 592 | 3.21875 | 3 | [] | no_license | package algorithms.sortingalgorithms;
import logging.ArrayLogger;
import testdata.TestDataGenerator;
public class BubbleSortTest {
public static void main(String[] args) {
TestDataGenerator generator = new TestDataGenerator();
int[] newlist = generator.generateRandomNumbers(10, 100);
// Prints l... | true |
ad62ceb390f28eeb7034493c52549f8de8e43fc4 | Java | SonarSonic/Practical-Logistics-2 | /src/main/java/sonar/logistics/core/tiles/displays/info/elements/base/IHyperlinkRequirement.java | UTF-8 | 174 | 1.851563 | 2 | [
"MIT"
] | permissive | package sonar.logistics.core.tiles.displays.info.elements.base;
public interface IHyperlinkRequirement {
String getHyperlink();
void onGuiClosed(String hyperlink);
}
| true |
6e951892c96024d8910e50621f118be56f3a1ab9 | Java | DouglasTex/POO | /Documents/workspace/POO/src/Questao8/TestaCadastro.java | UTF-8 | 956 | 3.3125 | 3 | [] | no_license | package Questao8;
import java.util.ArrayList;
import java.util.List;
public class TestaCadastro {
public static void main(String[] args) {
List<Pessoa> p = new ArrayList<Pessoa>();
p.add(new Cliente(1123, "Zacarias", (new Data(1, 2, 2000))));
p.add(new Cliente(666, "Josué da Barra", (new Data(10, 10, 1... | true |
e06eef4ea2edde3c27d3f9ce910a5944200ba93f | Java | flyinnight/ms_gradle | /Radar/src/com/dilapp/radar/domain/Login.java | UTF-8 | 2,526 | 1.960938 | 2 | [] | no_license | /*********************************************************************/
/* 文件名 Login.java */
/* 程序名 抽象登录域 */
/* 版本履历 2015/5/5 修改 刘伟 */
/* Copyright 2015 LENOVO. ... | true |
a2e6b7825da984c00c363e85fbe9df5b8175e1a5 | Java | dubrsl/tolven | /org.tolven.command/tpf/source/org/tolven/command/TolvenApplication.java | UTF-8 | 22,513 | 1.539063 | 2 | [] | no_license | /*
* Copyright (C) 2009 Tolven Inc
* This library is free software; you can redistribute it and/or modify it under the terms of
* the GNU Lesser General Public License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This libra... | true |
0cadfd7bbfa6ddedc21d2454627427d5139c71ea | Java | ximodante/OpenWebMavenPhGH | /OpenWebMavenPhGH/src/main/java/openadmin/web/LoginAction.java | UTF-8 | 1,211 | 1.859375 | 2 | [] | no_license | package openadmin.web;
//import java.io.IOException;
import java.io.Serializable;
import java.util.Locale;
import javax.enterprise.context.RequestScoped;
import javax.faces.context.FacesContext;
import javax.faces.event.ValueChangeEvent;
import javax.inject.Inject;
import javax.inject.Named;
import lombok... | true |
883629c94a430f64a9c0fa177d358d3a5706e375 | Java | SUHONGJIAN/Equals-Hashcode-Implementation | /src/main/java/edu/nyu/cs9053/homework4/hierarchy/BodyOfWater.java | UTF-8 | 687 | 3.109375 | 3 | [] | no_license | package edu.nyu.cs9053.homework4.hierarchy;
/**
* an abstract class {@code BodyOfWater} represents all water. Strongly recommend to see {@literal Hierarchy Profile.png} to understand the hierarchy.
* @author Hongjian Su
* @version 1.0
*/
public abstract class BodyOfWater {
private final String name;
... | true |
cd08b75d29fb146ea442d3606e23ecc39081f616 | Java | paola0298/inmemDB-Server | /src/Test/HashTableTest.java | UTF-8 | 2,172 | 2.890625 | 3 | [] | no_license | package Test;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.Hashtable;
public class HashTableTest {
public static void main(String[] args) {
Hashtable<String, Hashtable<String, JSONObject>> collections = new Hashtable<>();
Hashtable<String, JSONObject> registros = n... | true |
69e180b6b78e4ad7efe1629e4e2dad9bf2f40428 | Java | ZuoShouShiJie/fmgw | /dal/src/main/java/com/dzjk/qzgw/dal/dataobject/QzgwTransInfoDO.java | UTF-8 | 4,433 | 2.046875 | 2 | [] | no_license | package com.dzjk.qzgw.dal.dataobject;
import java.io.Serializable;
import java.util.Date;
/**
* The table QZGW_TRANS_INFO
*/
public class QzgwTransInfoDO implements Serializable{
/**
* id ID.
*/
private Long id;
/**
* status STATUS.
*/
private String status;
/**
* creat... | true |
1cd54a7042f16739bad6b11dbbf8d82823ad7ec5 | Java | attilax/vod2 | /src/com/focusx/quartz/GroupDaoImpl.java | UTF-8 | 3,147 | 2.203125 | 2 | [] | no_license | package com.focusx.quartz;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.jdbc.Work;
import org.hibernate.transform.Transforme... | true |
0407d6822fef69f7f7ab23ba34c282e8f251d0b6 | Java | OsQOscar/proxyee-down | /ui/src/main/java/lee/study/down/update/UpdateService.java | UTF-8 | 296 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | package lee.study.down.update;
import lee.study.down.boot.AbstractHttpDownBootstrap;
import lee.study.down.model.UpdateInfo;
public interface UpdateService {
UpdateInfo check(float currVersion) throws Exception;
AbstractHttpDownBootstrap update(UpdateInfo updateInfo) throws Exception;
}
| true |
8959c4810c900f605fec01901486a278a97f7058 | Java | agclyy/AlgorithmCHUNZHAO | /Week_02/UglyNumber.java | UTF-8 | 652 | 3.53125 | 4 | [] | no_license | package com.agclyy.better.algorithm.week02.homework;
class UglyNumber {
public int nthUglyNumber(int n) {
int[] uglyNums = new int[n];
uglyNums[0] = 1;
int a = 0;
int b = 0;
int c = 0;
for (int i = 1; i < n; i++) {
uglyNums[i] = Math.min(Math.min(uglyNu... | true |
916ace76997d268483e1b9221bac639d151d0f50 | Java | Mercykwazi/java | /guiceExample/src/main/java/CreditCardProcessor.java | UTF-8 | 110 | 1.945313 | 2 | [] | no_license | public interface CreditCardProcessor {
public ChargeResult charge(CreditCard creditCard, Object order);
}
| true |
493ba8436f3cfa2f36a4ec73de647b7ff874e970 | Java | changange/study_test_dev | /mock-server/src/main/java/cakes/mock/controller/MockDemoController.java | UTF-8 | 2,087 | 2.625 | 3 | [] | no_license | package cakes.mock.controller;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import java.io.BufferedReader;
import java.io.File;
import java.io.Fil... | true |
962cb071e79268c1d5105817fdad0db45654cfc6 | Java | georgekoki/Ticket-To-Ride-Game | /src/view/classes/WindowDestinationCardBuyer.java | UTF-8 | 3,251 | 2.90625 | 3 | [] | no_license | package view.classes;
import java.awt.Color;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import controller.classes.Destination... | true |
32f6354ad898896342c86782b2d596be6fadbd22 | Java | alexthaler/EchoX3 | /EchoX3Client/src/main/java/com/expedia/echox3/basics/monitoring/jvm/AbstractMeasureProxy.java | UTF-8 | 2,191 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2014 Expedia, Inc. All rights reserved.
* EXPEDIA PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.expedia.echox3.basics.monitoring.jvm;
import com.expedia.echox3.basics.collection.simple.StringGroup;
import com.expedia.echox3.basics.monitoring.event.BasicEvent;
import com.e... | true |
6caf48460b0affc1db1175028bf8d41d19765912 | Java | Julie0u812/OOP-2015 | /Students/Others/Huruiala V. Vasile Alexandru/java/The Baer and the Seals/src/theseal/model/Entity.java | UTF-8 | 474 | 2.796875 | 3 | [] | no_license | package theseal.model;
import java.awt.Image;
import java.awt.Point;
public abstract class Entity implements Drawable {
private Point position;
private Image image;
public Entity(Point position) {
this.position = position;
}
public Point getPosition() {
return position;
}
public void setPosition(Point p... | true |
cd35ed40f52a2377a5c82cbd164fa41b1fb7108a | Java | SukruOzturk42/TeknoGarage | /src/main/java/com/musu/repository/RoleRepository.java | UTF-8 | 336 | 2.09375 | 2 | [
"MIT"
] | permissive | package com.musu.repository;
import com.musu.model.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
public interface RoleRepository extends JpaRepository<Role, Long>{
@Query("select r from Role r where r.name = ?1")
Role findRoleByName(... | true |
11affdd6e326ccc48db3ee35175ed243da58ac0a | Java | StephenPWalker/Java | /P6_Assignment_Group9_SAAMS/src/GateConsole.java | UTF-8 | 16,440 | 2.578125 | 3 | [] | no_license | import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Observable;
import java.util.Observer;
import java.util.regex.Pattern;
import javax.swing.*;
// Generate... | true |
6c7cfd4c9e60c4dbf36a7868d287e0b2a467f90c | Java | gloryof/spring-boot-todo | /springboot-todo/src/test/java/jp/glory/todo/context/user/domain/value/PasswordTest.java | UTF-8 | 7,930 | 2.5 | 2 | [] | no_license | package jp.glory.todo.context.user.domain.value;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.stream.Stream;
import org.junit.jupiter.api.BeforeEach;
import org.juni... | true |
ed65e97eaa90dc92cb566c7303448f4479c7be86 | Java | shubh573/java-program | /A9/IntOperations.java | UTF-8 | 198 | 2.265625 | 2 | [] | no_license | package ass10;
public interface IntOperations {
boolean isPositive();
boolean isNegative();
boolean isOdd();
boolean isEven();
boolean isPrime();
int factorial();
int sumOfDigit();
}
| true |
c65b30a70cbd6b7809783016211ada3937eda846 | Java | toannguyen71195/REMServer | /toannguyen.rem.entity/src/toannguyen/rem/entity/EstateEntity.java | UTF-8 | 2,431 | 2.25 | 2 | [] | no_license | package toannguyen.rem.entity;
import java.sql.Timestamp;
public class EstateEntity extends Entity {
public static String ESTATE_LIST = "estates";
public static String IS_VISITED = "isVisited";
public static String RATE = "rate";
public static String TIME = "time";
public static int STATUS_AVAILABLE = 1;
User... | true |
4e7a230f6062b1ca1e5a06f760863f37bde72b14 | Java | wuchaooooo/zhijiang-reservation-system | /src/main/java/com/hzmoyan/javabean/vo/VLog.java | UTF-8 | 339 | 1.609375 | 2 | [] | no_license | package com.hzmoyan.javabean.vo;
import lombok.Data;
import java.util.Date;
/**
* Created by wuchaooooo on 11/04/2017.
*/
@Data
public class VLog {
private Long id;
private String level;
private String userName;
private String type;
private String desc;
private Date gmtCreate;
private S... | true |
d7ca385f336ca485a0b84051a598bea87d8aa025 | Java | tretiakov13/java | /src/tretiakov15/Manual.java | WINDOWS-1251 | 5,329 | 3.234375 | 3 | [] | no_license | package ua.khpi.oop.tretiakov15;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactoryConfigurationError;
import java.io.*;
import java.util.ArrayList;
import java.util.Scanner;
public class Manual {
... | true |
1feae021b255cb715f79de2cca683f6320a74b51 | Java | magefree/mage | /Mage/src/main/java/mage/game/permanent/token/FaerieToken.java | UTF-8 | 744 | 2.484375 | 2 | [
"MIT"
] | permissive | package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author spjspj
*/
public final class FaerieToken extends TokenImpl {
public FaerieToken() {
super("Faerie Token", "1/1 blue Faerie cr... | true |
be2fce0fb36502c5ab10dc5eac9edf05fd60e65d | Java | freedzj/State-Game | /Jumping.java | UTF-8 | 680 | 3.40625 | 3 | [] | no_license | public class Jumping extends State
{
Hero hero;
public Jumping(Hero hero)
{
this.hero = hero;
}
void upReleased(){
System.out.println(hero.getName() + " is standing.");
hero.setState(hero.getStandingState());
}
void downPressed(){
System.out.println(hero.getName(... | true |
186d371e9396c679a0292d2a937edcf21d5c353d | Java | SaranRaj786/Data_Driven | /Core_Java/src/day2/Que_11_eng.java | UTF-8 | 483 | 2.640625 | 3 | [] | no_license | package day2;
public class Que_11_eng extends Q_11_med{
public void be() {
System.out.println("Batchelor of Engineering");
}
public void btech() {
System.out.println("Batchelor of Technology");
}
public static void main(String[] args) {
Que_11_eng q =new Que_11_eng();
System.out.println("Engineering");
Sy... | true |
af987f7f3e2dd5425626f82a23baf7a6bfe997d0 | Java | pursuedream0820/keyan | /src/main/java/com/hebeu/keyan/po/customPO/EIncludeCustom.java | UTF-8 | 1,401 | 1.945313 | 2 | [] | no_license | package com.hebeu.keyan.po.customPO;
import com.hebeu.keyan.po.EInclude;
/**
* 作者:冯嘉龙
* 时间:2017-08-22 16:13
* 描述:论文收录 拓展实体类
*/
public class EIncludeCustom extends EInclude {
private String paperName;
private String includeToolName;
private String auditStatusName;
private Integer isEdit;
publ... | true |
caa864dd3eecece7157ad237b95ef216c159fa18 | Java | NaveenRaj88/ThinkJava | /src/com/hortsmann/LabdasMultiMethodsTest.java | UTF-8 | 304 | 2.28125 | 2 | [] | no_license | package com.hortsmann;
public class LabdasMultiMethodsTest {
public static void getDetails(LabdasMultiMethods lab){
System.out.println(lab.getName("a", "b"));
// System.out.println(lab.isMajor(18));
}
public static void main(String[] args) {
getDetails((s1,s2)->{return s1+s2;});
}
}
| true |
95532d6de7efe65ec60c859bfd3bf17920f00348 | Java | ckontomaris/data-structures | /ArrayListPractice.java | UTF-8 | 743 | 3.703125 | 4 | [] | no_license | import java.util.*;
public class ArrayListPractice{
public static void main(String [] args){
ArrayList<int []> ayy = new ArrayList<int []>();
int [] rand = {12,32};
int [] rand1 = {4, 45};
ayy.add(rand);
ayy.add(rand1);
// # of elements
System.out.pr... | true |
698408ac8f424ea4c8c284fa03b515d53a156ab6 | Java | Flakebi/tox4j | /projects/tox4j/src/main/java/im/tox/tox4j/crypto/exceptions/ToxDecryptionException.java | UTF-8 | 935 | 2.6875 | 3 | [
"BSD-2-Clause"
] | permissive | package im.tox.tox4j.crypto.exceptions;
import im.tox.tox4j.annotations.NotNull;
import im.tox.tox4j.exceptions.ToxException;
public final class ToxDecryptionException extends ToxException<ToxDecryptionException.Code> {
public enum Code {
/**
* The input data is missing the magic number (i.e. wasn't creat... | true |
f343758d054c6f4339adb88db818f7240d6fdc46 | Java | connorarnold2/Topic-Analyser1 | /OverLapTopic.java | UTF-8 | 6,292 | 2.53125 | 3 | [] | no_license |
import java.io.File;
import java.io.IOException;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
//import java.util.HashSet;
//import java.util.Set;
//import java.util.Arrays;
public class OverLapTopic
{
//public static Set<String> stopWordSet = new HashSet<String>(Arrays.asList(stopWords));
//public sta... | true |
03ec15cc294d2aa83f1c7d123dd23b295db7755c | Java | GuilDraco/My-Book | /app/src/main/java/com/e/myebook/DataBase/IMyBooksDAO.java | UTF-8 | 242 | 1.976563 | 2 | [] | no_license | package com.e.myebook.DataBase;
import com.e.myebook.Model.Book;
import java.util.List;
public interface IMyBooksDAO {
boolean salvar(Book book);
boolean procurarLivro(Book book);
List<Book> listar();
void cleanBooks();
}
| true |
4334cd2033a270740226b5b5f4500ab28485f771 | Java | Beemal/JavaTwists | /com/codingTest/java/SortMapByValue.java | UTF-8 | 1,589 | 3.5 | 4 | [] | no_license | package com.codingTest.java;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.TreeMap;
public class SortMapByValu... | true |
3f12a33a21cfafc8b25ce11efcb25be73cda3146 | Java | tedybeardb/FossilArcheology | /fossil/tags/FloatTag.java | UTF-8 | 648 | 2.796875 | 3 | [] | no_license | package fossil.tags;
public final class FloatTag extends Tag
{
private final float value;
public FloatTag(String var1, float var2)
{
super(var1);
this.value = var2;
}
public Float getValue()
{
return Float.valueOf(this.value);
}
public String toString()
{
... | true |
62ef631efe5ccace2e0e33a4b39907bae638a1d5 | Java | AnvilPuncher/Climate-Control | /src/climateControl/utils/RandomIntUser.java | UTF-8 | 303 | 2.015625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package climateControl.utils;
import climateControl.utils.IntRandomizer;
/**
*
* @author Zeno410
*/
public abstract class RandomIntUser {
public abstract int value(IntRandomizer randomizer);
}
| true |
04a6d8d3d85f2956b76effda302d5b354ffd7b04 | Java | woshixiaoabao/java8Test | /src/main/java/com/abao/java8/chapter6/Chapter6Test.java | UTF-8 | 7,436 | 3.015625 | 3 | [] | no_license | package com.abao.java8.chapter6;
import com.abao.java8.chapter4.Dish;
import lombok.Getter;
import java.util.*;
import java.util.stream.Collectors;
import static java.util.stream.Collectors.*;
/**
* @author anpei
* @version 1.0
* @Description: ${todo}
* @date 2018/9/13 14:13
*/
public class Chapter6Test {
... | true |
0a8545f51c8eda9d166dd7389aa84c50e549760b | Java | didclab/onedatashare | /src/test/java/org/onedatashare/server/system/mockuser/WithMockCustomUser.java | UTF-8 | 2,188 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /**
##**************************************************************
##
## Copyright (C) 2018-2020, OneDataShare Team,
## Department of Computer Science and Engineering,
## University at Buffalo, Buffalo, NY, 14260.
##
## Licensed under the Apache License, Version 2.0 (the "License"); you
## may not use this fi... | true |
4937b2acc7a066d5ebea3f456bbb5d621dd8182e | Java | justinjohnson-dev/java-sorting-algorithm | /Java/src/Application/SortingAlgorithm.java | UTF-8 | 2,948 | 3.453125 | 3 | [] | no_license | import java.util.Scanner;
public class SortingAlgorithm {
public static void main(String[] args) {
commentOnArgs(args);
Scanner input = new Scanner(System.in);
pl("Enter the number of elements in the array (less than 100)");
int size = input.nextInt();
int[] array = new i... | true |
ae07eacd9326fe5c875f2483c9cb70b3f77d3272 | Java | alipay/alipay-sdk-java-all | /v2/src/main/java/com/alipay/api/domain/SimpleOperatorModel.java | UTF-8 | 964 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 操作员简单模型,包含操作员id,操作员类型
*
* @author auto create
* @since 1.0, 2018-03-23 11:31:59
*/
public class SimpleOperatorModel extends AlipayObject {
private static final long serialVersionUID = 54725... | true |
e39f2da4fe83d0a12d707930dee297fdbdcfb4ef | Java | jhu-digital-manuscripts/rosa | /rosa-sharedcanvas-demo-website/src/main/java/rosa/scanvas/demo/website/client/disparea/TextDrawable.java | UTF-8 | 1,400 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | package rosa.scanvas.demo.website.client.disparea;
import com.google.gwt.canvas.dom.client.Context2d;
/**
* A line of text with a drawn polygon bounding box
*/
public class TextDrawable implements DisplayAreaDrawable {
private final TextDisplayElement el;
public TextDrawable(TextDisplayElement el) {
t... | true |
185513696cfd479e4fd967cf47fe8f2ce0e6cd44 | Java | Vampire/teamcity-ssh-tunnel | /common/src/main/java/net/kautler/teamcity/ssh_tunnel/common/ModelBuilder.java | UTF-8 | 4,343 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Björn Kautler
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | true |
55f289eda0b2a934f9afbc185939afc176ecf67a | Java | SlimShady9/Bosquesillo | /src/controlador/Controlador.java | UTF-8 | 6,070 | 2.578125 | 3 | [] | no_license | package controlador;
import java.awt.Point;
import java.util.concurrent.ThreadLocalRandom;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import modelo.*;
import vista.*;
public class Controlador{
private Bosquesillo b;
private JFrameP p;
private Tablero t;
privat... | true |
ba804332fd468932738722fa8f0057f5caa85687 | Java | collicalex/AutoSave | /src/core/device/LocalStorage.java | UTF-8 | 7,840 | 2.703125 | 3 | [] | no_license | package core.device;
import java.io.Closeable;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.ByteBuffer;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteC... | true |
4daf63223a23a0072dfaaf31599ba1fbe655bf46 | Java | lihongjie0209/java8_feature | /src/test/java/cn/lihongjie/lambda/stream/StreamTest.java | UTF-8 | 5,671 | 2.640625 | 3 | [] | no_license | package cn.lihongjie.lambda.stream;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import java.math.BigDecimal;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Long... | true |
21d1bd550575ee643cff266851bd4638deee8e31 | Java | arunkumar-97/Tracking-Supervisor | /src/main/java/com/jesperapps/tracksupervisor/api/extra/Response.java | UTF-8 | 220 | 1.71875 | 2 | [] | no_license | package com.jesperapps.tracksupervisor.api.extra;
public class Response extends BaseResponse {
public Response() {
super();
}
public Response(Integer code, String description) {
super(code, description);
}
}
| true |
534521cca67520f81937a22b3472ae116896b352 | Java | islammahmoud95/AQARAT-APP | /app/src/main/java/com/sawa/aqarat/utilities/SessionManager.java | UTF-8 | 5,054 | 2.21875 | 2 | [] | no_license | package com.sawa.aqarat.utilities;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import com.sawa.aqarat.MainActivity;
import java.util.HashMap;
public class SessionManager {
// Shared Preferences
private SharedPreferences pref;
// Editor for S... | true |
17fbaea3bc46e72a027e3eb9f5dfe4ba2a8a2c86 | Java | gilmaslima/noverde.challenge | /src/main/java/br/com/noverde/challenge/utils/CommitmentUtils.java | UTF-8 | 2,741 | 2.859375 | 3 | [] | no_license | package br.com.noverde.challenge.utils;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
public class CommitmentUtils {
private static final int SCALE = 2;
private static List<InterestFeeTable> list;
static {
list = Arrays.asLi... | true |
63f4639bab680cd46b585690bf485fb7a4ccadef | Java | koszta5/pbj-pbcs-client | /src/main/java/com/jasonwjones/pbcs/cli/command/ListFilesCommand.java | UTF-8 | 558 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package com.jasonwjones.pbcs.cli.command;
import com.beust.jcommander.Parameters;
import com.jasonwjones.pbcs.PbcsClient;
import com.jasonwjones.pbcs.interop.impl.ApplicationSnapshot;
@Parameters(separators = "=", commandDescription = "List files on the server")
public class ListFilesCommand implements PbjCliCommand ... | true |
77447f5eaf50cb84ca668ae5807ec95f11b2f398 | Java | gongweibiao1986/LitePalTest | /app/src/main/java/database/itheima/com/litepaltest/Category.java | UTF-8 | 656 | 2.1875 | 2 | [] | no_license | package database.itheima.com.litepaltest;
/**
* Created by Ken on 2018/3/11.
*/
public class Category {
private int id;
private String cagegoryName;
private int categoryCode;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Stri... | true |
02f69f68b8122b503c4c78272f9c0bc9ddbc65eb | Java | raseemGit/Day-By-Day-Selenium-Tasks | /src/org/day5/test/Quest5.java | UTF-8 | 984 | 2.671875 | 3 | [] | no_license | package org.day5.test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
public class Quest5 {
//Mobile and electronics is first mouseOver and click range Rs5001 ... | true |
618fd7bb1a0aba448df21fd05f9407243e273049 | Java | dengguibin/t_qas | /src/com/deceen/system/majordirection/model/QasDMajordirection.java | UTF-8 | 3,274 | 2.203125 | 2 | [] | no_license | /**
*/
package com.deceen.system.majordirection.model;
import java.io.Serializable;
import java.util.*;
import com.upath.plat.common.page.Pagination;
/**
*
* @ClassName: QasDMajordirection.java 专业方向唯一标识
* @Description: qas_d_majordirection
* @author upaths@gmail.com
* @date 2017-11-30 10:31:54
* @version V1.0... | true |
c153d9f5e12d7ce968aec890fa361f6d567f8b7d | Java | hukla/gaenari | /src/controller/FrontController.java | UTF-8 | 1,740 | 2.328125 | 2 | [] | no_license | package controller;
import java.io.IOException;
import java.util.HashMap;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import controller.action.Action;
publ... | true |
dfe3b6b4c8e241001cc042f8277e6dd8d850afa3 | Java | 4sh/rxinvoice | /srv/src/main/java/rxinvoice/service/PrintService.java | UTF-8 | 209 | 1.890625 | 2 | [] | no_license | package rxinvoice.service;
import java.io.IOException;
import java.io.OutputStream;
public interface PrintService {
void exportUriToPdf(String invoiceId, OutputStream outputStream) throws IOException;
}
| true |
7ba8ea55c5df354b5b6a997f0078b57b01fa94bd | Java | toconn/java-core-06 | /src/main/java/ua/core/exceptions/BaseRuntimeException.java | UTF-8 | 1,920 | 2.5625 | 3 | [] | no_license | package ua.core.exceptions;
import java.util.ArrayList;
import java.util.List;
import ua.core.utils.CollectionUtils;
import ua.core.utils.MessageUtils;
public abstract class BaseRuntimeException extends RuntimeException {
private static final long serialVersionUID = -3138741202946024745L;
private List<String> ... | true |
de84dba1d99a333d16bd7ba095831149cb6555df | Java | baichunqiu/net | /oklib/src/main/java/com/bcq/oklib/base/AbsListFragment.java | UTF-8 | 3,274 | 2 | 2 | [] | no_license | package com.bcq.oklib.base;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import com.bcq.oklib.R;
import com.bcq.oklib.UI;
import com.bcq.oklib.net.Parser;
import com.bcq.oklib.net.utils.ApiType;
import com.bcq.oklib.net.view.LoadDialog;
imp... | true |
5ad8099be1337118523ee17588e79b47eca2c8d2 | Java | atheis4/palisades_java | /src/main/PlayerTest.java | UTF-8 | 1,196 | 2.828125 | 3 | [] | no_license | package main;
import org.junit.Assert;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
public class PlayerTest {
Player p1 = new Player("Daryl");
@Test
public void testGetName() {
String expected = "Daryl";
Assert.assertEquals("Error - getPlayerName() failed."... | true |