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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3d07d913f243766cc8aaaad43332e6320510f288 | Java | majamaja/PriorityCoachRepository | /src/main/java/com/futuristlabs/p2p/spring/SecurityConfig.java | UTF-8 | 4,722 | 2.0625 | 2 | [] | no_license | package com.futuristlabs.p2p.spring;
import com.futuristlabs.p2p.utils.Utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.Authentication... | true |
fc291812d21c7123f0ccc1bd12203dee6fe9aae6 | Java | AllanYuriBM/cadastro-escolar | /src/main/java/com/darksiders/hbsis/model/Aluno.java | UTF-8 | 820 | 2.203125 | 2 | [] | no_license | package com.darksiders.hbsis.model;
import lombok.*;
import javax.persistence.*;
import java.util.List;
@Getter
@Setter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name= "aluno")
@Entity
public class Aluno {
@Id
@GeneratedValue
@Column(name = "id")
private Integer id;
@Col... | true |
73680540fec9a9922af0832727d4616baba32583 | Java | JLim9269/TestRepo | /WebMarketSemi/src/mvc/model/BoardDAO.java | UTF-8 | 2,673 | 2.71875 | 3 | [] | no_license | package mvc.model;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import mvc.database.DBConnection;
public class BoardDAO {
private static BoardDAO instance;
private BoardDAO() {}
public static BoardDAO getInstance(... | true |
b6adf46509fc85461d502cc27e89a8a10083af2d | Java | yangjiahao199853/demo | /src/main/java/com/example/demo/controller/IndexController.java | UTF-8 | 1,883 | 1.984375 | 2 | [] | no_license | package com.example.demo.controller;
import com.example.demo.entity.BookReq;
import com.example.demo.entity.BookResp;
import com.example.demo.service.impl.BookServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Mode... | true |
b5a15600ea325e757f3b10b8c8f48caebf70e7c5 | Java | neeraj11789/tech-interview-problems | /src/test/java/v1/datastructures/MinHeapImplTest.java | UTF-8 | 2,295 | 3.09375 | 3 | [] | no_license | package v1.datastructures;
import v1.datastructures.impl.LimitedSizedMinHeapImpl;
import v1.datastructures.impl.MinHeapImpl;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class MinHeapImplTest {
private int[] arr;
private MinHeap heap;
@BeforeEach
void setUp() {
... | true |
eefedadc1c8f3065c3765c419541068d9c67700d | Java | sunliang123/zhongbei-zhonghang-zhongzi-yidian | /applayer/strategist/src/main/java/com/waben/stock/applayer/strategist/payapi/wabenpay/config/WabenPayConfig.java | UTF-8 | 1,111 | 1.929688 | 2 | [] | no_license | package com.waben.stock.applayer.strategist.payapi.wabenpay.config;
@Deprecated
public class WabenPayConfig {
/**
* 商户号
*/
public static final String merchantNo = "888888888";
/**
* 签名key
*/
public static final String key = "134fb0bf3bdd54ee9098f4cbc4351b9a";
/**
* 证件类型
*/
public static final String... | true |
2bf7d48b5262d16946874607926a4e12dfc1e6ad | Java | hubeixiang/hello-word | /bootlearn.simpleweb/src/main/java/com/sven/mvel2/MathFunction.java | UTF-8 | 1,882 | 3.0625 | 3 | [] | no_license | package com.sven.mvel2;
import java.math.BigDecimal;
/**
* Created by sven on 2017/1/12.
*/
public class MathFunction {
private static final BigDecimal ZERO = new BigDecimal("0");
/**
* 取得率值
*
* @param dividend 被除数
* @param divisor 除数
* @return 计算后的率值
*/
public static Obj... | true |
803461996a820f2fbdc991b495f00d838c0dcff5 | Java | pradipawasthi/Droidcratic | /app/src/main/java/org/socratic/android/fragments/GroupsFragment.java | UTF-8 | 1,199 | 2.09375 | 2 | [
"MIT"
] | permissive | package org.socratic.android.fragments;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import org.socratic.android.R;
import org.socratic.android.contract.GroupsContract;
import org.socratic.android.databinding.FragmentGroupsBinding;
public cla... | true |
90676ffa94c5c6b1eda238ef52d1bbc0704650be | Java | rpruparel/NPRApp | /src/com/example/hw4/Story.java | UTF-8 | 3,028 | 2.71875 | 3 | [] | no_license | package com.example.hw4;
import java.io.Serializable;
class Story implements Serializable {
private String storyID;
private String title;
private String publicationDate;
private String imageURL;
private String audioURL;
private String textURL;
private String teaser;
private String repo... | true |
6d2fcbb3c4b9fb17a9e7eeea26e7e8629c7728a9 | Java | BackupTheBerlios/jumodel | /travel/src/travel/data/entities/jpa/Remark.java | UTF-8 | 1,190 | 2.453125 | 2 | [] | no_license | package travel.data.entities.jpa;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Tabl... | true |
2f3b15182afd4b2ae43dece465d4a83d8ff366c0 | Java | ESSE-xiaogui/kom_manager_new | /source/kom-manager-service/src/main/java/com/transsion/store/manager/TacManager.java | UTF-8 | 1,087 | 2.28125 | 2 | [] | no_license | package com.transsion.store.manager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shangkang.core.exception.ServiceException;
import com.shangkang.tools.UtilHelper;
import com... | true |
9f8bf8dc85571dfa40c6d5e33ca597e0e7dfa2a5 | Java | lilianggui/oas | /src/main/java/com/llg/oas/service/impl/CompanyServiceImpl.java | UTF-8 | 445 | 1.664063 | 2 | [] | no_license | package com.llg.oas.service.impl;
import com.llg.oas.entity.Company;
import javax.annotation.Resource;
import com.llg.oas.persistence.CompanyMapper;
import com.llg.oas.service.CompanyService;
import org.springframework.stereotype.Service;
/**
* Created by llg on 2018-04-02 22:12:59
*/
@Service
public class Company... | true |
eaef7e3e08e1a2aab583adc5813b353ad6b81d00 | Java | bweto/Control_Calificaciones | /controlCalificaciones/src/main/java/edu/konrad/controlcalificaciones/resource/UsuarioResource.java | UTF-8 | 2,565 | 2.6875 | 3 | [] | no_license |
package edu.konrad.controlcalificaciones.resource;
/**
*Servicios rest para la clase usuario, y consumo de su información
* @author Dayan Olaya y Roberto Garcia
*/
import edu.konrad.controlcalificaciones.dto.UsuarioDto;
import edu.konrad.controlcalificaciones.entities.UsuarioEntity;
import edu.konrad.controlcalif... | true |
60b4b95140f6ac5f87eea8d2d71913775a8db00b | Java | rondinelisaad/lockss-daemon | /plugins/src/org/lockss/plugin/atypon/hlthaff/HealthAffairsHtmlCrawlFilterFactory.java | UTF-8 | 5,639 | 1.578125 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* $Id$
*/
/*
Copyright (c) 2018 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including with... | true |
6bf64dbc762eec7b74e2acf47a26791256bfc014 | Java | revaturelabs/chronicle-storage-service | /src/test/java/com/revature/chronicle/controller/S3ControllerTest.java | UTF-8 | 7,710 | 2 | 2 | [] | no_license | package com.revature.chronicle.controller;
import com.revature.chronicle.interceptors.AuthenticationInterceptor;
import com.revature.chronicle.services.NoteService;
import com.revature.chronicle.services.S3FileService;
import com.revature.chronicle.services.TagService;
import com.revature.chronicle.services.VideoServi... | true |
4d2da66756cd8175946a9e151b10cf66ec3f00e6 | Java | virgiliuguraliuc/Agenda | /src/main/java/org/fasttrackit/App.java | UTF-8 | 619 | 1.992188 | 2 | [] | no_license | package org.fasttrackit;
import com.mysql.cj.util.StringUtils;
import org.fasttrackit.persistance.AgendaRepository;
import java.io.IOException;
import java.sql.SQLException;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args ) throws SQLException, IOException, ClassNotFoundExce... | true |
3bcbb3dd33431dfe060216d4cef9d8404d6f7695 | Java | SmileOops/JavaLab1 | /src/Tests/BasketTest.java | UTF-8 | 1,029 | 2.96875 | 3 | [] | no_license | package Tests;
import Classes.BasketBall.Ball;
import Classes.BasketBall.Basket;
import javafx.scene.paint.Color;
import org.junit.Assert;
import org.junit.Test;
public class BasketTest {
@Test
public void countBalls() throws Exception {
Basket basket = new Basket();
basket.addBall(new Ball(30... | true |
fcf650190efdb47a0257678ce7db8f65550b36e5 | Java | sbarona20545/javag1 | /punto6.java | ISO-8859-1 | 548 | 3.53125 | 4 | [] | no_license | package guia1;
import java.util.Scanner;
public class punto6 {
public static void main(String[] args) {
System.out.println("Ejercicio 6 - Ejercicio Un hexgono regular");
Scanner entrada=new Scanner(System.in);
System.out.println("Ingrese el lado en Centimetros");
double lado = entrada... | true |
c95ea9bdb193a0577d749cbd370d93332dccaa49 | Java | liufeiguo/netty | /netty/src/main/java/java8/time/TestLocalDateTime.java | UTF-8 | 4,705 | 3.078125 | 3 | [] | no_license | /**
* Project Name:netty
* File Name:TestLocalDateTime.java
* Package Name:java8.time
* Date:2019年1月4日下午1:55:35
* Copyright (c) 2019, chenzhou1025@126.com All Rights Reserved.
*
*/
package java8.time;
import java.time.DayOfWeek;
import java.time.Duration;
import java.time.Instant;
impor... | true |
8d7d9f9c3b51083cde7a3a1adc478408b164eec8 | Java | anagovitsyn/oss.FCL.sftools.dev.eclipseenv.wrttools | /plugins/org.chromium.sdk/src/org/chromium/sdk/internal/JsFunctionImpl.java | UTF-8 | 1,320 | 1.835938 | 2 | [
"BSD-3-Clause"
] | permissive | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.sdk.internal;
import org.chromium.sdk.JsFunction;
import org.chromium.sdk.Script;
/**
* Generic implementation of {@link JsFun... | true |
fba6cd99835a6c99f65bb506b57799dc85a7956d | Java | Sayantika23/2171-swen-610-01-1-alloy | /src/test/java/com.webcheckers/ui/GetResignControllerTest.java | UTF-8 | 1,484 | 1.929688 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.webcheckers.ui;
import com.webcheckers.appl.GameCenter;
import com.webcheckers.model.Player;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import spark.Request;
import spark.Response;
import spark.Session;
import static org.junit.Assert.*;
import static org.mockito.Mockito.mock;... | true |
dd915c1d030fdd66a7b35c5e99240f5425462765 | Java | flywind2/joeis | /src/irvine/oeis/a136/A136953.java | UTF-8 | 427 | 2.40625 | 2 | [] | no_license | package irvine.oeis.a136;
// Generated by gen_seq4.pl squaredig 04589 at 2019-07-11 10:10
// DO NOT EDIT here!
import irvine.oeis.SquareDigitsSequence;
/**
* A136953 Numbers n such that n and the square of n use only the digits <code>0, 4, 5, 8</code> and 9.
* @author Georg Fischer
*/
public class A136953 extends ... | true |
863d8fedecc8f64218a2d2768a3bb92f32708443 | Java | yogesh080989/restAssuredSample | /src/test/java/postRequest/PostData.java | UTF-8 | 1,172 | 2.109375 | 2 | [] | no_license | package postRequest;
import org.json.simple.JSONObject;
import org.junit.Test;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import io.restassured.mapper.ObjectMapperType;
import io.restassured.response.Response;
import junit.framework.Assert;
public class PostData {
String toke... | true |
b5b141704a6a98a2900a2dadf7fdcdb9cf68c979 | Java | bhaskardas/SSCorp | /sscorp-web/src/main/java/com/superconduits/web/plugin/ProductLoader.java | UTF-8 | 9,196 | 2.21875 | 2 | [] | no_license | /*
* This custom class loads the product information of super sales coeporation
* into the application memory at server startup.
*/
package com.superconduits.web.plugin;
import com.superconduits.core.business.interfaces.IProducts;
import com.superconduits.core.to.CompanyProfileTO;
import com.superconduits.core.to.... | true |
84c6c0a4a7e53a797b3a4f4e59fb28a45743e5f0 | Java | antonjohnz/pactera-test1 | /Pactera_test1/src/test/java/com/pactera/test/CSVDataParserTest.java | UTF-8 | 1,010 | 2.15625 | 2 | [] | no_license | package com.pactera.test;
import static org.junit.Assert.fail;
import java.io.File;
import javax.annotation.Resource;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.web.cont... | true |
7be89ac66a366c46f2eb088140305e06e03389f8 | Java | thatsabhi22/MiFragmentsPlay | /app/src/main/java/com/udacity/mifragmentsplay/ui/Communicator.java | UTF-8 | 115 | 1.71875 | 2 | [] | no_license | package com.udacity.mifragmentsplay.ui;
public interface Communicator {
public void passData(int position);
}
| true |
0a8ca4672198bdfee8315e869d5d28db18934480 | Java | SaiKrishna1908/SpringFrameworkProject | /spring-pet-data/src/main/java/com/spring5/springserviceproject/Service/PetTypeService.java | UTF-8 | 172 | 1.539063 | 2 | [] | no_license | package com.spring5.springserviceproject.Service;
import com.spring5.springserviceproject.Model.PetType;
public interface PetTypeService extends CRUD<PetType, Long> {
}
| true |
4269964958b4b1f69ec893669003fb72abaa3400 | Java | vsowrirajan/Distiller | /Distiller-cli/src/main/java/com/mapr/distiller/cli/commands/BaseSSHCommand.java | UTF-8 | 1,578 | 2.359375 | 2 | [] | no_license | package com.mapr.distiller.cli.commands;
import com.mapr.distiller.cli.base.common.Errno;
import com.mapr.distiller.cli.base.CLIBaseClass;
import com.mapr.distiller.cli.base.CLICommand;
import com.mapr.distiller.cli.base.CLIInterface;
import com.mapr.distiller.cli.base.CLIProcessingException;
import com.mapr.distiller... | true |
558efb323b75a990b2f8a4d92df4b8041ad2caa3 | Java | myroute/myroute | /app-sample/src/main/java/kr/co/myroute/sample/design/snackbar/SnackbarSampleActivity.java | UTF-8 | 1,030 | 2.109375 | 2 | [] | no_license | package kr.co.myroute.sample.design.snackbar;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.But... | true |
8f036840f59ff002f3d61f3e4c63b1df390998e5 | Java | Jamsek-m/krv-project-code | /services/src/main/java/com/mjamsek/auth/services/impl/ClientServiceImpl.java | UTF-8 | 8,213 | 2.140625 | 2 | [] | no_license | package com.mjamsek.auth.services.impl;
import com.kumuluz.ee.logs.LogManager;
import com.kumuluz.ee.logs.Logger;
import com.kumuluz.ee.rest.beans.QueryParameters;
import com.kumuluz.ee.rest.utils.JPAUtils;
import com.mjamsek.auth.lib.Client;
import com.mjamsek.auth.lib.enums.ClientStatus;
import com.mjamsek.auth.lib.... | true |
b5732beb5f3db9682a402e99527a861efd1a7317 | Java | NicholasBlackburn1/Blackburn-1.17 | /src/main/java/net/minecraft/world/level/levelgen/feature/EndIslandFeature.java | UTF-8 | 1,314 | 2 | 2 | [] | no_license | package net.minecraft.world.level.levelgen.feature;
import com.mojang.serialization.Codec;
import java.util.Random;
import net.minecraft.core.BlockPos;
import net.minecraft.util.Mth;
import net.minecraft.world.level.WorldGenLevel;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.levelgen... | true |
20fec55fd3a56302b1c071a278bd3d34e57dc8e5 | Java | scv119/eli-search | /java/src/main/java/com/eli/index/document/MemberDoc.java | UTF-8 | 2,171 | 2.1875 | 2 | [] | no_license | package com.eli.index.document;
import com.eli.index.DocumentSupport;
import com.eli.index.IField;
import com.eli.index.IndexType;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.BooleanClause;
import org.apache.lucene.search.BooleanQuery;
import org.apa... | true |
aa4a45d01f9665767ccb70ba337904fd5b13e33a | Java | BVMarius/VoteYourBook | /CarteaLunii/src/com/dao/BookDAO.java | UTF-8 | 1,948 | 2.796875 | 3 | [] | no_license | package com.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.time.LocalDate;
public class BookDAO {
public static void performCreateBook(String title, String author, String rating, int userId) {
String insertBook = "INSERT IN... | true |
fabf4dfe2990eff89d03f27d4530fd20e3dbfdff | Java | AmeeraSabbagh/Session2SimpleJavaCode | /src/jo/secondstep/task2/Task2_Resturant.java | UTF-8 | 2,047 | 3.40625 | 3 | [] | no_license | package jo.secondstep.task2;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
public class Task2_Resturant {
public static void main(String[] args) {
// TODO Auto-generated method stub
Map<String, Double> menue = new HashMap<String, ... | true |
03be683ad3030d3a458bef81c6a681ec03d5ec8a | Java | specs-feup/clava | /ClavaWeaver/src/pt/up/fe/specs/clava/weaver/options/CxxWeaverOption.java | UTF-8 | 5,707 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2016 SPeCS.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... | true |
a80fbbe66aedaab8ff50215efbc5d9c64f335e4a | Java | globalptr/ptpEarAll | /PtpApplication/PtpApplication-ejb/src/main/java/com/oakeel/ejb/entityAndEao/frontUserHoldPersonalBond/FrontUserHoldPersonalBondEao.java | UTF-8 | 1,135 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.oakeel.ejb.entityAndEao.frontUserHoldPersonalBond;
import com.oakeel.ejb.entityAndEao.eeroot.EaoRoot;
import com.oakeel.e... | true |
b11447a4301d75002cbc17ef2ce98783c609f75d | Java | KIZI/KeywordExtraction | /src/main/java/eu/linkedtv/keywords/v1/rest/DutchRestService.java | UTF-8 | 1,748 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package eu.linkedtv.keywords.v1.rest;
import javax.ws.rs.Path;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import eu.linkedtv.keywords.v1.dao.FilesDao;
import eu.linkedtv.keywords.v1.dao... | true |
e00d210f3971831ada7dd7794a4c8a69e9d6c30a | Java | NorbertSomogyi/MoodernizeExamples | /Hashcat.javaproj/src/application/pdf14_tmp.java | UTF-8 | 441 | 2.09375 | 2 | [] | no_license | package application;
public class pdf14_tmp {
private Object[] digest;
private Object[] out;
public pdf14_tmp(Object[] digest, Object[] out) {
setDigest(digest);
setOut(out);
}
public pdf14_tmp() {
}
public Object[] getDigest() {
return digest;
}
public void setDigest(Object[] newDigest) {
digest ... | true |
a015564a8adddce6fc5d9dae81fcbc58e16b9693 | Java | timgle/utilcode | /mmall-facade/src/main/java/com/xyl/mmall/cms/facade/impl/CategoryFacadeImpl.java | UTF-8 | 16,900 | 1.859375 | 2 | [] | no_license | package com.xyl.mmall.cms.facade.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.Resource;
import org.apache.commons.lang.StringUtils;
import org.springframework.util.Collection... | true |
e4c25ad344667990e5a4d8180404165137364798 | Java | ArtemKazakov/FinalWebProjectHostel_Kazakov | /src/main/java/com/epam/hostel/bean/entity/User.java | UTF-8 | 2,808 | 2.375 | 2 | [] | no_license | package com.epam.hostel.bean.entity;
import java.util.Arrays;
/**
* Created by ASUS on 27.10.2016.
*/
public class User {
private int id;
private String login;
private byte[] password;
private boolean banned;
private int visitsNumber;
private Passport passport;
private boolean admin;
... | true |
3957c7258845200ebc8eaca94cdc862893a4d02c | Java | Meninx-1/Spring-Boot-Learning | /SpringBootRowMapper/src/main/java/com/zetcode/mapper/CityMapper.java | UTF-8 | 635 | 2.84375 | 3 | [] | no_license | package com.zetcode.mapper;
import com.zetcode.model.City;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
public class CityMapper implements RowMapper<City> {
@Override
public City mapRow(ResultSet rs, int rowNum) throws SQLException {
return... | true |
ac197ec894a786603a244852b1e0d91d4fd997cd | Java | toky03/waschplan-backend | /src/main/java/ch/bfh/dto/ErrorMessage.java | UTF-8 | 216 | 1.664063 | 2 | [] | no_license | package ch.bfh.dto;
import io.quarkus.runtime.annotations.RegisterForReflection;
import lombok.Builder;
import lombok.Value;
@Value
@Builder
@RegisterForReflection
public class ErrorMessage {
String message;
}
| true |
9a1d90bf7bb96db9f042c187657d2447135b5a2e | Java | jonaslanglotz/studienprojekt | /src/main/java/model/world/Entity.java | UTF-8 | 2,557 | 2.96875 | 3 | [] | no_license | package main.java.model.world;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
import main.java.model.Vector2D;
import main.java.model.WorldModel;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.Arrays;
/**
* Base class for all entities containe... | true |
81baf6424a7413d11b22b1137e06bf65c5723464 | Java | 76creates/siembol | /alerting/alerting-storm/src/main/java/uk/co/gresearch/siembol/alerts/storm/KafkaWriterBolt.java | UTF-8 | 6,845 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | package uk.co.gresearch.siembol.alerts.storm;
import java.lang.invoke.MethodHandles;
import java.util.*;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.Producer;
import org.apache.kafka.clients.producer.Producer... | true |
e9d7413517fb7470ca1dee14934b72555ff40a7c | Java | s-webber/oakgp | /src/test/java/org/oakgp/evolve/mutate/SubTreeMutationTest.java | UTF-8 | 1,420 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 S. Webber
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | true |
160f54095496e101e95516aba18d8cd5eb8d6568 | Java | Ruiqi-Alipay/MobileAutomationAppium | /src/com/alipay/autotest/mobile/utils/CommandResult.java | UTF-8 | 434 | 1.679688 | 2 | [] | no_license | /**
* Alipay.com Inc.
* Copyright (c) 2004-2014 All Rights Reserved.
*/
package com.alipay.autotest.mobile.utils;
import java.util.ArrayList;
/**
*
* @author qiyi.wxc
* @version $Id: CommandResult.java, v 0.1 2014年9月16日 下午8:47:15 qiyi.wxc Exp $
*/
public class CommandResult {
public int ret = 0;
... | true |
26cdc7d17d7787e21b1bcd80fa5d96286bad0e5d | Java | Lim-hyung-Wook/inflearn | /src/main/java/com/example/inflearn/exception/CustomizedResponseEntityExceptionHandler.java | UTF-8 | 2,694 | 2.578125 | 3 | [] | no_license | package com.example.inflearn.exception;
import com.example.inflearn.user.UserNotFoundException;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.spring... | true |
dcdb2454549109d6ca7e39a9c0a0869f880bf380 | Java | askokov/calendar | /module/src/main/java/com/askokov/calendar/period/Event.java | UTF-8 | 468 | 2.484375 | 2 | [] | no_license | package com.askokov.calendar.period;
import org.joda.time.DateTime;
public class Event {
private DateTime dateTime;
private String description;
public Event(final DateTime dateTime, final String description) {
this.dateTime = dateTime;
this.description = description;
}
... | true |
819df814d30c62554c2145a2e59b2be5c6f73dc4 | Java | nee-raj/basic-spring-angular | /src/main/java/org/chikoo/core/service/SearchService.java | UTF-8 | 158 | 1.71875 | 2 | [
"MIT"
] | permissive | package org.chikoo.core.service;
import org.chikoo.core.model.entity.SearchResults;
public interface SearchService {
public SearchResults find(long id);
}
| true |
bc0902e55578a994fe86261e9b72204438cc9289 | Java | jackwysxw/combiz | /src/combiz/business/corp/CorporationImpl.java | GB18030 | 844 | 2.3125 | 2 | [] | no_license | package combiz.business.corp;
import combiz.domain.corp.Corporation;
import combiz.system.IBOBaseImpl;
/**
* ڸдҵ
* ߣС ڣ2006-12-17
*
*/
public class CorporationImpl extends IBOBaseImpl
implements CorporationSrv {
/**
* ɾû飬ͬʱɾûûӦȨ
* дɾɾûʱעɾ
*/
@Override
public void delete(Object obj)
throws Exception
... | true |
98920ba125b1f335bb8a24f304f48104dafcfabc | Java | shreeshamahishi/TameDragon | /tamedragon-compilers/src/main/java/org/tamedragon/compilers/mips/translate/MipsActivationFrameImpl.java | UTF-8 | 24,744 | 2.453125 | 2 | [] | no_license | package org.tamedragon.compilers.mips.translate;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.Vector;
import org.tamedragon.assemblyabstractions.ActivationFrame;
import org.tamedragon.assemb... | true |
c377130c7013c3867994832957d20c37d8d79205 | Java | DarpanVats007/software-engineering-ws17 | /toGrainDecorator.java | UTF-8 | 489 | 3.140625 | 3 | [] | no_license |
public class toGrainDecorator extends UnitConverterDecorator {
public toGrainDecorator(UnitConverter newUnitConverter) {
super(newUnitConverter);
}
public double convert(double inValue) {
return tempUnitConverter.convert(inValue) * 15.4324 ;
}
public String toString() {
return tempUnitConverter.toStr... | true |
27c96cbe9dd826a6769172d73b7c1d6270d30862 | Java | Adrisux/AdminFacesAdrianCarrion | /tarea001/src/java/ec/org/camariweb/entidades/clsFactura.java | UTF-8 | 1,914 | 2.3125 | 2 | [] | no_license | package ec.org.camariweb.entidades;
import java.util.Date;
public class clsFactura {
private int _numero_factura;
private clsCliente _clienteid;
private Date _fecha;
private double _subtotal;
private double _iva;
private double _total;
public clsFactura() {
}
p... | true |
17350a4d0960851fbf74c488849c202665287d5c | Java | LAOSChool/Java | /laoschool_firebase/src/com/itpro/laoschool/firebase/Utils.java | UTF-8 | 2,632 | 2.625 | 3 | [] | no_license | package com.itpro.laoschool.firebase;
import java.io.File;
import java.io.FileWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import org.codehaus.jackson.map.ObjectMap... | true |
c78f69161c3ad43f967650feca5a7cffa1ec4039 | Java | rocky1996/StudyRecycler | /app/src/main/java/com/example/recycler/MainActivity.java | UTF-8 | 5,487 | 2.421875 | 2 | [] | no_license | package com.example.recycler;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import android.suppor... | true |
cbf2c61311266ac688362fa8e39c8101777fabbe | Java | openube/Connect-SDK-Android | /src/com/connectsdk/service/config/CastServiceDescription.java | UTF-8 | 1,203 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | /*
* CastServiceDescription
* Connect SDK
*
* Copyright (c) 2014 LG Electronics.
* Created by Hyun Kook Khang on Feb 20 2014
*
* 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
*
* ... | true |
385ec8c0f289c3fc1dcaca2c7206334c312e98bb | Java | apple006/springboot-logging-trace | /src/main/java/springboot/logging/trace/utils/StringUtil.java | UTF-8 | 796 | 2.703125 | 3 | [] | no_license | package springboot.logging.trace.utils;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import org.springframework.util.StringUtils;
/**
* 字符串处理工具类 .
* @author leo
*/
public class StringUtil {
public static boolean isNotBlank(String value) {
return !isBlank(value);
}
... | true |
1ece5dd1220c495d133a9f06d48eeba1c6a24ef6 | Java | jeryfu/springmvc-mybatis | /src/main/java/com/roachf/survey/service/BaseService.java | UTF-8 | 500 | 1.820313 | 2 | [] | no_license | package com.roachf.survey.service;
import java.io.Serializable;
import com.roachf.survey.utils.page.Page;
public interface BaseService<T, PK extends Serializable> {
/** 获取所有列表 */
Page<T> getListByPage(Page<T> page, Object parameter);
/** 获取详情 */
T getInfo(PK id);
/** 获取详情 */
T getInfo(Object... | true |
1ed5bda5ce23a8c7ae6150ec5fe80c1044b8dec1 | Java | Sanika07/techment_training_2021 | /com/techment/OopsAssignment/BookDetails.java | UTF-8 | 1,501 | 3.546875 | 4 | [] | no_license | package OopsAssignment;
import java.util.Scanner;
class Book
{
private String title;
private String author;
private float price;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getAuthor() {
return author;
}
public void setAuthor... | true |
d1f475a1cb12059d77c4a2ae3699bf9992863fac | Java | kisate/DeepHearth | /src/com/company/Player.java | UTF-8 | 296 | 2.6875 | 3 | [] | no_license | package com.company;
import java.util.LinkedList;
/**
* Created by Dima on 23.02.2017.
*/
public class Player {
Team team = new Team();
public void makeMove(int user, int spell, Player enemy, int target) {
team.get(user).skills.get(spell).use(enemy.team.get(target));
}
}
| true |
eab0bade3c9846cb09cd61e09af7f8bc9df014d4 | Java | joakimkemeny/presentation.frontend | /demo/demo-server/src/main/java/frontend/events/note/CreateNoteEvent.java | UTF-8 | 347 | 2.03125 | 2 | [
"Apache-2.0",
"CC-BY-3.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | package frontend.events.note;
import frontend.events.CreateEvent;
public class CreateNoteEvent extends CreateEvent {
private final NoteDetails noteDetails;
// Constructors
public CreateNoteEvent(NoteDetails noteDetails) {
this.noteDetails = noteDetails;
}
// Getters
public NoteDetails getNoteDetails() {
... | true |
37b3af55f44084650fabfd9a489961856814fabd | Java | chgmxx/p2p | /platform-api/src/main/java/com/power/platform/lanmao/trade/service/LanMaoAsyncTransactionService.java | UTF-8 | 4,845 | 2.015625 | 2 | [] | no_license | package com.power.platform.lanmao.trade.service;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.io.IOUtils;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apach... | true |
fdb8322ebffc81d6dc790c1eed1c54e5719f190f | Java | rucky2013/FallWithRunninBE | /src/main/java/com/tamfign/model/User.java | UTF-8 | 1,809 | 2.953125 | 3 | [] | no_license | package com.tamfign.model;
public class User {
private enum POWER {
HIGH, MEDIUM, LOW,
}
private final static String POWER_HIGH = "HIGH";
private final static String POWER_MEDIUM = "MEDIUM";
private final static String POWER_LOW = "LOW";
private enum STATE {
NORMAL, EXPIRED, ERROR,
}
private final stati... | true |
9f67fbf149ca421a7d778a8ae946b1a74675bcef | Java | Samwisedumb/keatan | /java/src/client/server/ServerPoller.java | UTF-8 | 3,953 | 2.9375 | 3 | [] | no_license | package client.server;
import java.util.Timer;
import java.util.TimerTask;
import shared.exceptions.ServerException;
import client.model.ModelFacade;
import client.model.TransferModel;
/**
* This class is used to
* @author djoshuac
*/
public class ServerPoller {
/**
* UpdateModelTask is an inner class that ex... | true |
daa099353d4705717476e351460c4d09633d20a2 | Java | lesterfernandez/SuperSmashCraft_Repo | /src/me/thewarlord315/commands/Reload.java | UTF-8 | 565 | 2.140625 | 2 | [] | no_license | package me.thewarlord315.commands;
import me.thewarlord315.supersmashcraft.ArenaManager;
import me.thewarlord315.supersmashcraft.MessageManager;
import me.thewarlord315.supersmashcraft.MessageManager.MessageType;
import org.bukkit.entity.Player;
public class Reload extends SuperCommand {
public void onCommand(P... | true |
3a9b79ff19d8e0c84b264828ae6534cd2ba62bfe | Java | Zhongyu-Wu/java--2 | /PolyProl/src/sort/CatTest.java | UTF-8 | 1,023 | 3.421875 | 3 | [] | no_license | package sort;
import java.util.Collections;
import java.util.List;
import java.util.ArrayList;
public class CatTest {
public static void main(String[] args) {
//按名字升序排序
Cat huahua = new Cat("huahua",5,"yingduan");
Cat fanfan = new Cat("fanfan",2,"zhonghua");
Cat maomao = new Cat("... | true |
20f52142ed56fcec36e1dc5623b1aca37a1372e1 | Java | zhongxingyu/Seer | /Diff-Raw-Data/34/34_8fc83edcfcaec338c31e059864050d2efe0b4d6c/NoMainMethodInAbstractClass/34_8fc83edcfcaec338c31e059864050d2efe0b4d6c_NoMainMethodInAbstractClass_t.java | UTF-8 | 7,497 | 2.671875 | 3 | [] | no_license | ////////////////////////////////////////////////////////////////////////////////
// checkstyle: Checks Java source code for adherence to a set of rules.
// Copyright (C) 2001-2011 Oliver Burn
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser Genera... | true |
26c812fc8103256c77bf1d08125e3fc0d29984d4 | Java | AlexanderKalz/MidwifeSearchBL | /app/src/main/java/de/drkalz/midwifesearchbl/LoginActivity.java | UTF-8 | 5,523 | 1.976563 | 2 | [] | no_license | package de.drkalz.midwifesearchbl;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.w... | true |
36e0f18f635f122ee88b583dea53574236c9f878 | Java | juniorsolo/EstudoJava | /src/br/com/estudo/threads/MinhaRunnable.java | UTF-8 | 476 | 3.3125 | 3 | [] | no_license |
package br.com.estudo.threads;
public class MinhaRunnable implements Runnable{
private String palavra;
private Long tempo;
public MinhaRunnable(String palavra, Long tempo){
this.palavra = palavra;
this.tempo = tempo;
}
public void run(){
try{
for(int i = 1; i < 10; i++){
... | true |
90d947bae64afbc85387fe773a74a1cbf4211918 | Java | mydnac/myPersonalLibrary-api | /src/main/java/com/ckp4/myPersonalLibraryapi/MyPersonalLibraryApiApplication.java | UTF-8 | 350 | 1.578125 | 2 | [] | no_license | package com.ckp4.myPersonalLibraryapi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MyPersonalLibraryApiApplication {
public static void main(String[] args) {
SpringApplication.run(MyPersonalLibraryApiAp... | true |
ded2d50fb0b94f08aa587df3af348dcca6038cb4 | Java | ravi900kumar/SpringWithWebServicesDeleteProduct | /src/main/java/java9r/controller/com/ProductController.java | UTF-8 | 1,354 | 2.515625 | 3 | [] | no_license | package java9r.controller.com;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
im... | true |
18ca5de15bdb01995e453183515b57de30617f4b | Java | bthelen/jacoco-e2e-coverage | /src/test/java/com/ps/e2e/jacoco/testcoverageexample/TestCoverageExampleApplicationTests.java | UTF-8 | 851 | 2.0625 | 2 | [] | no_license | package com.ps.e2e.jacoco.testcoverageexample;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.test.context.junit4.SpringRunner;
import static org.assertj.core.api.Assertions.assertThat;
@RunWith(SpringRunner.class)
... | true |
71db72409027099fcda0ee57aba15ca366e55f98 | Java | UjwalParajuli/Automobiles-Nepal | /app/src/main/java/com/example/automobilesnepal/adapters/FuelTypeAdapter.java | UTF-8 | 2,273 | 2.34375 | 2 | [] | no_license | package com.example.automobilesnepal.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.example.automobilesnepal.R;
import co... | true |
37455474751801224645b243f302fb65270d1c0a | Java | MikeKMiller/wasabi | /modules/repository-datastax/src/test/java/com/intuit/wasabi/repository/database/DatabaseFavoritesRepositoryTest.java | UTF-8 | 6,314 | 1.71875 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright 2016 Intuit
* <p>
* 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
* <p>
* http://www.apache.o... | true |
91d8c01470e4f1012a0ee2740b0c0ccafb067d6e | Java | ysl092101/portfolio | /src/main/java/com/stone/ui_login/JoinController.java | UTF-8 | 1,629 | 2.25 | 2 | [] | no_license | package com.stone.ui_login;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.Req... | true |
3f4140a86d90afea027ccbd9ba0504117ef3e1ab | Java | lilyguibessette/Timber | /app/src/main/java/edu/neu/madcourse/timber/fcm_server/Utils.java | UTF-8 | 9,998 | 2.359375 | 2 | [] | no_license | package edu.neu.madcourse.timber.fcm_server;
import android.Manifest;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationManager;
import a... | true |
57d91f17aee6acfa90c383e02c4f7eb9566057fb | Java | andresnew00/Andres_Inciarte_JavaS1 | /U1-M1-Summative-Inciarte-Andres/src/main/java/ArrayFunReverseIt.java | UTF-8 | 765 | 4.09375 | 4 | [] | no_license | public class ArrayFunReverseIt {
public static void main(String[] args) {
int[] array = new int[]{1, 2, 3, 4, 5};
int[] ReverseArray = new int[array.length];
// variable that is going to contain the current position
int reverseValue = 0;
// loop backwards
for (int ... | true |
80357629ba51bf8ecac52c86139e85ea9b178e3b | Java | muflihfq/jhotel | /src/main/java/JHotel/TipeKamar.java | UTF-8 | 560 | 2.6875 | 3 | [] | no_license | package JHotel;
/**
* Enum tipe kamar, berfungsi sebagai pilihan tipe kamar yang
* tersedia pada hotel
*
* @author muflih fathan q
* @version 05/20/2018
*/
public enum TipeKamar
{
Single("Single"),Double("Double"),Premium("Premium");
private String deskripsi;
/**
* metode untuk memasukkan ... | true |
e39b062a074cad6afc717e79e42725bb4840b4d5 | Java | yurivin/java-blockchain-blockjane-framework-library | /src/test/java/com/github/yurivin/blockjane/TestBlockJane.java | UTF-8 | 1,535 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package com.github.yurivin.blockjane;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.yurivin.blockjane.infrastracture.Environment;
import com.github.yurivin.blockjane.identity.PublicKeyIdentity;
import com.github.yurivin.blockjane.... | true |
a5ab38b1c8ab247226358c30261ca2e70b4c917f | Java | LeticiaLP/Curso_Java_CTT | /texto/Texto.java | UTF-8 | 9,035 | 3.453125 | 3 | [
"MIT"
] | permissive | package curso.texto;
// Programa para manipular arquivos do tipo TXT por meio do Java
import java.io.*;
import java.util.Objects;
import java.util.Scanner;
public class Texto {
String local;
String pasta;
String txt;
String novoNome;
File diretorio;
File arquivo;
String linha; ... | true |
b790ba190ee3ebbbd986d34b9827b114843c9fc4 | Java | mingyeungAA/JAVA | /Code/Java09_Practice01/src/com/coffee02/MTest.java | UTF-8 | 307 | 2.40625 | 2 | [] | no_license | package com.coffee02;
public class MTest {
public static void main(String[] args) {
CoffeeMachine coffee = new CoffeeMachine();
coffee.inputMoney();
}
//돈을 넣어주세요
//몇잔 만들까요?
//커피 x잔 나왔습니다.
//잔돈은 y원입니다.
//커피 한잔의 가격은 300원
}
| true |
506ef7d1e08229eb410f7b0cb1246f6921069d3e | Java | rszy/clients-project | /src/main/java/com/rszy/clientsproject/repository/AddressRepository.java | UTF-8 | 1,069 | 2.203125 | 2 | [] | no_license | package com.rszy.clientsproject.repository;
import com.rszy.clientsproject.model.Address;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
@Repos... | true |
883f038512b29d8e9614bb4bc9b366e6b6f56aa4 | Java | jianjianH/Design-Patterns | /src/Factory/AbstractProduce.java | UTF-8 | 118 | 2.25 | 2 | [] | no_license | package Factory;
interface AbstractProduce {
public Aircondition createAircondition();
public Sofa createSofa();
}
| true |
fa1ebc198a6179a6d3bf82f7161bcdf6144af85a | Java | T-Systems-MMS/perfsig-jenkins | /dynatrace/src/main/java/de/tsystems/mms/apm/performancesignature/dynatracesaas/rest/api/TopologySmartscapeApplicationApi.java | UTF-8 | 2,851 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2014-2018 T-Systems Multimedia Solutions GmbH
*
* 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 require... | true |
c89f084cf678fe9a4f9fed762290423af7be30c5 | Java | NishthaN/User_Device_Manager | /Data.java | UTF-8 | 1,668 | 2.859375 | 3 | [] | no_license |
public class Data{
int documents_storage;
int music_storage;
int media_storage;
int applications_storage;
public Data internal (char ch){
switch(ch){
case 'D':
documents_storage = 50;
music_storage = 100;
media_storage = 100;
... | true |
23abf03cbdac8950481015a97ca357e5250e9633 | Java | kenkode/cbsapp | /app/src/main/java/com/softark/eddie/xara/activities/AppliedLoans.java | UTF-8 | 1,245 | 1.976563 | 2 | [] | no_license | package com.softark.eddie.xara.activities;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.widget.ProgressBar;
import com.softark.eddie.xara.requests.LoanRequest;
import com.softark.eddie.xara.requests.RequestUrl;
import com.soft... | true |
6ff22469760f07f87bb29a21f758bedc4293d9b4 | Java | DesamNaren/CTW | /app/src/main/java/com/cgg/twdinspection/gcc/viewmodel/GCCSyncViewModel.java | UTF-8 | 9,588 | 1.796875 | 2 | [] | no_license | package com.cgg.twdinspection.gcc.viewmodel;
import android.app.Application;
import android.content.Context;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import com.cgg.twdinspection.common.network.TWDService;
import com.cgg.twdinspection.... | true |
d45afb4bc4abf053ee10d8f9ea22635842d3a425 | Java | BogdanovAndrey/skillbox | /11_Multithreading/Transactions/src/test/java/AccountTest.java | UTF-8 | 662 | 2.921875 | 3 | [] | no_license | import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class AccountTest {
@Test
void testFields() {
Account account = new Account(5000, "1", AccountStatus.UNBLOCKED);
assertEquals(5000, account.getMoney());
assertEquals("1", account.getName());
... | true |
bc09773d6962c8da80941ff3dce2bfa5a42a19d1 | Java | sabahussain/letzchaat | /src/main/java/com/dao/ChatroomDAO.java | UTF-8 | 388 | 1.929688 | 2 | [] | no_license | package com.dao;
import java.util.List;
import com.model.Chatmessage;
import com.model.Chatroom;
public interface ChatroomDAO {
public List<Chatroom> list();
public Chatroom single(int id);
public void delete(int id);
public void save(Chatroom chatroom);
public void saveMessage(Chatmessage chatMessage);
public... | true |
d644b15a457438d0a848eabda9b315bc4cbe6491 | Java | derickdaniel/DreamAppService | /DreamAppMicroservice/src/main/java/com/dream/app/controller/AppUserController.java | UTF-8 | 1,862 | 2.203125 | 2 | [] | no_license | package com.dream.app.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.we... | true |
d3bbd55ded870843a87a5ccf06284748912b9ef5 | Java | wei142857/spring-ha | /SBP/src/main/java/com/sbp/app/config/DefaultConfig.java | UTF-8 | 2,583 | 2.84375 | 3 | [] | no_license | package com.sbp.app.config;
import java.util.Date;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* Spring 宽松绑定规则 (relaxed binding)
*
* default.email.serverStartTime
* default.email.serverstarttime
* default.email.server_start_time... | true |
13d9962017fe3a30e6d7a095762d0f348f53e66a | Java | faninks/HrManage | /src/com/whgghr/hrm/model/po/ExportDB.java | UTF-8 | 533 | 1.867188 | 2 | [] | no_license | package com.whgghr.hrm.model.po;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
public class ExportDB {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Configuration cfg = new Co... | true |
1cbfc7d517fc7ed044068fb32003ca05e08bb336 | Java | harutus22/CoffeeMachineClass | /src/com/homework/MoneyControl/ChangeReturn.java | UTF-8 | 825 | 3.34375 | 3 | [] | no_license | package com.homework.MoneyControl;
import java.util.Map;
import com.homework.Controle.*;
public class ChangeReturn {
public int returningChange(Map coins, int balance){
for(Coins money : Coins.values()){
while(balance >= money.getValue()) {
if (balance == 0) {
... | true |
aa2cac1a9cbb32b897d770ae2c9f72dfc7e079b5 | Java | sayaliborkar/PrintE-Client2-master | /app/src/main/java/com/example/lkh/printec/edit_profile.java | UTF-8 | 4,041 | 2.015625 | 2 | [] | no_license | package com.example.lkh.printec;
import android.app.ProgressDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.google.firebase.auth... | true |
e5ce9a0f74ece89e3d0c9bb7dfd378a0e57906ea | Java | orgimeno/pmm | /SoloBiciDidactico/app/src/main/java/com/example/user/solobicididactico/Juego.java | UTF-8 | 1,222 | 2.28125 | 2 | [] | no_license | package com.example.user.solobicididactico;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Juego extends Activity {
@Override
private Button bJuego;
// BICI //
private Grafico bici;
private i... | true |
fcd1bac682d16caf8da07cc7ebc84dec47100d07 | Java | howepeng/highSchool | /01_CODE/src/main/java/hs/service/impl/YearInfoServiceImpl.java | UTF-8 | 4,866 | 2.21875 | 2 | [] | no_license | package hs.service.impl;
import hs.dao.DictionaryDaoI;
import hs.dao.YearInfoDaoI;
import hs.model.TbDictionary;
import hs.model.TbYearInfo;
import hs.pageModel.Combobox;
import hs.pageModel.DataGrid;
import hs.pageModel.YearInfo;
import hs.service.YearInfoServiceI;
import hs.util.HSConstants;
import java... | true |
fba609cc2b874f64753c32503164f7225811c2b5 | Java | skrypkin/Java | /Project Euler/3/src/euler/project/Main.java | UTF-8 | 454 | 3.4375 | 3 | [] | no_license | package euler.project;
/*
Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
*/
public class Main {
public static void main(String[] args) {
double x = 600851475143d;
for (double i = 2; i * i <= x; i++) {
... | true |
12289898f5aa3759dfbc49dbb857f0cde071b3c0 | Java | keer123456789/bdqlWeb | /src/main/java/com/keer/bdql/Service/UserService.java | UTF-8 | 410 | 1.945313 | 2 | [] | no_license | package com.keer.bdql.Service;
import com.keer.bdql.pojo.WebResult;
public interface UserService {
/**
* 用户注册
* @param userName
* @param password
* @return
*/
WebResult register(String userName,String password);
/**
* 用户登录
* @param userName
* @param password
... | true |
8ea3b42f3818e7e4e1613e5459e2078297b6261a | Java | fweiss/jcr-workbench | /src/main/java/com/uttama/jcr/workbench/model/repository/RepositoryModelListener.java | UTF-8 | 317 | 1.5 | 2 | [] | no_license | package com.uttama.jcr.workbench.model.repository;
import java.util.EventListener;
public interface RepositoryModelListener extends EventListener {
void nodeStatusChanged(RepositoryModelEvent rpe);
void namespacesChanged(RepositoryModelEvent rpe);
void configurationChanged(RepositoryModelEvent rpe);
}
| true |
c2f6984ea2b80cfb5963ff8463f4822b0dcd5796 | Java | Ankit199502/CollectionPrograms | /src/streams/StreamsFindAnyFirstExample.java | UTF-8 | 1,132 | 3.375 | 3 | [] | no_license | package streams;
import data.Student;
import data.StudentDataBase;
import java.util.Optional;
public class StreamsFindAnyFirstExample {
public static Optional<Student> findAny(){
return StudentDataBase.getAllStudents().stream()
.filter(student -> student.getGpa()>=3.8)
.... | true |