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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8bccf4555832949b4d5214336561cddffc85dfa6 | Java | silvana30/newsAgency | /OnlineMarket/src/main/java/com/test/assign3/NewsAgency/services/ArticleService.java | UTF-8 | 1,573 | 2.4375 | 2 | [] | no_license | package com.test.assign3.NewsAgency.services;
import com.test.assign3.NewsAgency.model.Article;
import com.test.assign3.NewsAgency.repositories.ArticleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Obse... | true |
299f65bd8a11b14dfa0109ce954bc5048eb15b4d | Java | xacthom/bhlkmt | /bhlkmt/src/main/java/com/teambh/bhlkmt/controller/HomeController.java | UTF-8 | 460 | 1.828125 | 2 | [] | no_license | package com.teambh.bhlkmt.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
@RestController
public class HomeControl... | true |
99d7cbbd964adce1321185c23a882db7a860954a | Java | ndousson/MAtmos | /main-src/eu/ha3/matmos/game/data/modules/M__ply_inventory.java | UTF-8 | 935 | 1.726563 | 2 | [
"Apache-2.0"
] | permissive | package eu.ha3.matmos.game.data.modules;
import eu.ha3.matmos.engine.core.interfaces.Data;
import eu.ha3.matmos.game.data.abstractions.module.Module;
import eu.ha3.matmos.game.data.abstractions.module.ModuleProcessor;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
/*
--filen... | true |
7ef70e30976d4ce4bd99a4dfcce16e86735da733 | Java | AnWonYoung/JavaClass | /chap01/src/sec06/ch07/ArrayListExam2.java | UTF-8 | 392 | 2.921875 | 3 | [] | no_license | package sec06.ch07;
import java.util.ArrayList;
import java.util.List;
import sec06.ch06.blackjack.Card;
public class ArrayListExam2 {
public static void main(String[] args) {
List<Card> list = new ArrayList(); // 카드 객체 주소값만 넣고 빼는 것이 가능
Card c1 = new Card("", "");
list.add(c1);
// list.add("ddd"); 불가능
... | true |
8da891922947babaf8ddaa0c81be712f631eff51 | Java | chano21/springcamp2017 | /core/src/main/java/jace/shim/springcamp2017/core/infra/InfraConstants.java | UTF-8 | 239 | 1.648438 | 2 | [] | no_license | package jace.shim.springcamp2017.core.infra;
/**
* Created by jaceshim on 2017. 4. 19..
*/
public class InfraConstants {
public static final String LOCAL_DATE_TIME_TYPE = "jace.shim.springcamp2017.core.infra.LocalDateTimeUserType";
}
| true |
3335be67777ee4d0c95cc95bf009076b86740a87 | Java | psikac/NWTiS_projekt | /psikac_aplikacija_2/src/main/java/org/foi/nwtis/psikac/aplikacija_2/dretve/PreuzimanjeMeteoPodataka.java | UTF-8 | 4,967 | 1.953125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.foi.nwtis.psikac.aplikacija_2.dretve;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gso... | true |
e954013db42d113a0945de50c5df3abdab9bdfec | Java | Subrahmanyam83/Selenium | /src/test/java/com/My-Project/pages/eatsmart/MealPlansPage.java | UTF-8 | 1,131 | 2.375 | 2 | [] | no_license | package com.tbb.pages.eatsmart;
import com.tbb.constants.TestConsts;
import com.tbb.constants.UIRepository.Dashboard;
import com.tbb.framework.BaseTest;
import com.tbb.logging.LoggingSelenium;
/**
*
* Page Object encapsulates the Meal Plans Page
* @author Jaya
*/
public class MealPlansPage extends BaseTest {
p... | true |
aafd839c1d3713abd85c9004786d1dd9e2479e56 | Java | sulman121/EQRS-Project | /Savynt/src/test/java/Steps/GUIStepDefination.java | UTF-8 | 5,528 | 1.765625 | 2 | [] | no_license | package Steps;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
imp... | true |
45923714ca2fb5e05a18579ebfb977d424311399 | Java | bigmtn1113/Baekjoon | /BOJ_2606/Main.java | UTF-8 | 1,809 | 3.078125 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.Queue;
import java.util.StringTokenizer;
public class Ma... | true |
8d51ce08189b7c4d2a8e62219ab820d151b65fb5 | Java | 1260408088/Naturalhistory | /src/main/java/com/king/naturalhistory/NaturalhistoryApplication.java | UTF-8 | 344 | 1.5625 | 2 | [] | no_license | package com.king.naturalhistory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class NaturalhistoryApplication {
public static void main(String[] args) {
SpringApplication.run(NaturalhistoryApplication... | true |
1fb9f4ba5e20400ede4043b86826416217068dc8 | Java | mateusz1012/films8k | /src/main/java/com/example/films8k/model/Director.java | UTF-8 | 692 | 2.484375 | 2 | [] | no_license | package com.example.films8k.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
@Data
@EqualsAndHashCode(of = {"id"})
@Entity
public class Director {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
... | true |
0909f5788f1eae79af86510816c679a5f57d89e0 | Java | bellmit/ace | /framework-cloud/ace-modules/ace-tool/src/main/java/com/github/wxiaoqi/log/biz/BizBusLogBiz.java | UTF-8 | 390 | 1.554688 | 2 | [] | no_license | package com.github.wxiaoqi.log.biz;
import com.github.wxiaoqi.log.entity.BizBusLog;
import com.github.wxiaoqi.log.mapper.BizBusLogMapper;
import org.springframework.stereotype.Service;
import com.github.wxiaoqi.security.common.biz.BusinessBiz;
/**
*
*
* @author zxl
* @Date 2019-04-09 14:18:21
*/
@Service
public... | true |
f205ce8bfef47aea8cf7b0fa44824d522f55a842 | Java | ongakuer/Android-ObservableScrollView | /observablescrollview/src/main/java/com/github/ksoichiro/android/observablescrollview/ObservableWebView.java | UTF-8 | 2,865 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Soichiro Kashima
*
* 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 agree... | true |
70e2217e2dd605177310b75561b70500848a349b | Java | sangeetha1485/E2s-Automation-Updated-Code | /E2SProject Automation/src/utility/GenericMEthods.java | UTF-8 | 16,646 | 1.929688 | 2 | [] | no_license | package utility;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.datatransfer.StringSelection;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
... | true |
4ccf15f459a79484e28d4236a5395503375f76e9 | Java | zhigang2008/dqs_shareplat | /src/com/dqs/biz/dao/StationDao.java | UTF-8 | 1,963 | 2.328125 | 2 | [] | no_license | package com.dqs.biz.dao;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.dqs.biz.model.Station;
import com.dqs.biz.vo.query.StationQuery;
import com.steven.framework.base.BaseIbatis3Dao;
import com.steven.framework.core.page.Page;
@Repository
public class StationDao e... | true |
7f7a9e0e46b1b08ba2bb9dfe3c3e768ef1480389 | Java | DiukarevSergii/JavaOOP | /src/lesson03/newfigure/Circle.java | UTF-8 | 273 | 3.21875 | 3 | [] | no_license | package lesson03.newfigure;
public class Circle extends Figure {
protected Circle(int height, int weidth, int radius) {
super(height, weidth, radius);
}
@Override
protected int square() {
return (int) Math.PI * radius * radius;
}
}
| true |
fd80123848d4d6c5e39bb2b8402a99ae00a4ec5a | Java | qinshuang1998/TdCloud-OAuth | /src/main/java/com/tdxy/oauth/model/mapper/TeacherMapper.java | UTF-8 | 653 | 1.984375 | 2 | [
"MIT"
] | permissive | package com.tdxy.oauth.model.mapper;
import com.tdxy.oauth.model.po.Teacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
public interface TeacherMapper {
@Select("SELECT * FROM oauth_user_teacher WHERE tch_name = #{tchName}")
Teacher findAllByName(String tchName);
... | true |
2b0cd8e82b4608db645853dd330b823671945078 | Java | renanferrari/TesteAndroidv2 | /app/src/main/java/com/renanferrari/testeandroidv2/domain/model/user/User.java | UTF-8 | 2,477 | 2.46875 | 2 | [] | no_license | package com.renanferrari.testeandroidv2.domain.model.user;
import androidx.annotation.NonNull;
import java.math.BigDecimal;
import java.util.Objects;
public class User {
private final int userId;
private final String name;
private final String bankAccount;
private final String agency;
private final BigDeci... | true |
897355255c85f714a538ffd61039e1789194a7b8 | Java | tranlam076/Java-work-space | /Task13/src/model/DAO/FieldDAO.java | UTF-8 | 4,592 | 2.796875 | 3 | [] | no_license | package model.DAO;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import library.ConnectDBLibrary;
import model.bean.Field;
public class FieldDAO {
private ConnectDBLibrary connectDBLibrar... | true |
14dd223713326998df0f9df85beb766a21660f7a | Java | Dyly/DYLandDUST | /Pong/src/com/pong/framework/Player.java | UTF-8 | 76 | 2 | 2 | [] | no_license | package com.pong.framework;
public enum Player {
One(),
Two();
}
| true |
4a0e4271ccd743f395c24c68b3c76c71f31e97b6 | Java | knockoutone/LEADERBOARD | /app/src/main/java/com/koc/leaderboard/repository/remoteDataSource/LeaderBoardService.java | UTF-8 | 1,765 | 2.109375 | 2 | [] | no_license | package com.koc.leaderboard.repository.remoteDataSource;
import com.koc.leaderboard.api.LeaderBoardApi;
import java.util.List;
import com.koc.leaderboard.repository.model.*;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit... | true |
78ae1c044de35e2bcec13c41ebf5b271f0850b20 | Java | gregcarlin/ODRA-with-Enums | /src/odra/transactions/impl/TransactionCapableImpl.java | UTF-8 | 513 | 2.140625 | 2 | [] | no_license | package odra.transactions.impl;
import odra.transactions.ITransactionCapabilities;
import odra.transactions.ITransactionCapable;
public abstract class TransactionCapableImpl implements ITransactionCapable {
private final ITransactionCapabilities capsTransaction;
protected TransactionCapableImpl(ITransact... | true |
5270194dce268fb09d566bcecb373242506456c5 | Java | tectronics/insect-island-game | / insect-island-game/BeeGame/src/gin/dev/game/Entity/Visible/WeaponLevelInfo.java | UTF-8 | 4,337 | 2.109375 | 2 | [] | no_license | package gin.dev.game.Entity.Visible;
import gin.dev.BeeGameActivity;
import gin.dev.game.Entity.Visible.Characters.Hero;
import gin.dev.game.Entity.Visible.Weapons.Weapon;
import gin.dev.game.GlobleProvider.Definition;
import gin.dev.game.GlobleProvider.GameConfig;
import gin.dev.game.Prototype.TexturePrototype... | true |
d6a245609f24c302e07c8c8e10e29eb7e73f3244 | Java | hyleekr9580/member | /app/src/main/java/contentsstudio/kr/membershipapplication/BroaddCast/BroadcastActivity.java | UTF-8 | 5,226 | 2.1875 | 2 | [] | no_license | package contentsstudio.kr.membershipapplication.BroaddCast;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7... | true |
f08af9300b8f88486a77f135667d9518fb027343 | Java | fengjiangwei65/bcs-boot | /bcs-service-interface/src/main/java/com/phy/bcs/service/ifs/netty/codec/udf/UdfMessage.java | UTF-8 | 363 | 1.53125 | 2 | [] | no_license | package com.phy.bcs.service.ifs.netty.codec.udf;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;
@Builder
@ToString
@Data
public class UdfMessage {
private byte[] sid;
private byte[] did;
private byte[] mid;
private byte[] bid;
private byte[] res;
private byte[] js;
priv... | true |
1b824da85084e5d696ffbc82e64c609d6ac50409 | Java | KenSB/reflect | /Base/src/Escape/Entities/Box.java | UTF-8 | 640 | 3.140625 | 3 | [] | no_license | package Escape.Entities;
import Escape.States.Level;
import java.awt.*;
public class Box extends Entity implements Animatable{
public Box(int xGrid, int yGrid, Level level) {
super(xGrid, yGrid, level, true);
}
@Override
public void draw(Graphics g) {
g.setColor(Color.GRAY);
... | true |
9fd94bebc6ed9b73a7cd09472db49d9c61ed028b | Java | lucasrialb/TP-2-Algoritmos-3 | /TP-2-Al-Go-Oh!/src/modelo/cartasEspecificas/CilindroMagico.java | UTF-8 | 1,447 | 2.75 | 3 | [] | no_license | package modelo.cartasEspecificas;
import modelo.cartasGenericas.CartaMonstruo;
import modelo.cartasGenericas.CartaTrampa;
import modelo.cartasGenericas.ModoDeUso;
import modelo.cartasGenericas.ModoInhabilitada;
public class CilindroMagico extends CartaTrampa{
private ModoDeUso modoAtacanteAnterior;
private... | true |
3c95e49c4f86e493db549d37e5e338768362e8af | Java | DikshaJaiswal13/final_vrs | /Vehicle_Reservation_System/src/com/pack/bean/AdminEntity.java | UTF-8 | 1,751 | 1.984375 | 2 | [] | no_license | package com.pack.bean;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity(name="Admin")
@Table(name="tbl_Admin")
public class AdminEntity {
@Id
private String adminId;
private String firstName;
private S... | true |
20064db9332bdefc524f2a00e91d3036dd846012 | Java | dblodgett-usgs/nldi-services | /src/test/java/gov/usgs/owi/nldi/controllers/DeprecatedLinkedDataControllerFlowlineIT.java | UTF-8 | 4,048 | 1.898438 | 2 | [
"CC0-1.0"
] | permissive | package gov.usgs.owi.nldi.controllers;
import com.github.springtestdbunit.annotation.DatabaseSetup;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springfr... | true |
975a5dc30091af3f678b06fa9dc84ecd854e0faa | Java | MarcoLoddo/NfcSystem | /corner_service/src/main/java/it/extrasys/tesi/tagsystem/corner_service/db/manager/NfcReaderManager.java | UTF-8 | 428 | 1.859375 | 2 | [] | no_license | package it.extrasys.tesi.tagsystem.corner_service.db.manager;
import java.util.List;
import javax.transaction.Transactional;
import it.extrasys.tesi.tagsystem.corner_service.db.jpa.entity.NfcReaderEntity;
public interface NfcReaderManager {
NfcReaderEntity getById(String id);
List<NfcReaderEntity> getAll(... | true |
1ac1d31aa6f0800d3b288de778e12968b06012ef | Java | maazsabahuddin/Sawari-Android | /app/src/main/java/com/sohaibaijaz/sawaari/Fragments/RidesFragment.java | UTF-8 | 3,801 | 2.21875 | 2 | [] | no_license | package com.sohaibaijaz.sawaari.Fragments;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import android.widget... | true |
207772c6f809055c5af094f3aed90c1bbe38a659 | Java | cherispanty/bootdo-master | /bootdo/src/main/java/com/bootdo/common/dao/PaperManagerDao.java | UTF-8 | 583 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package com.bootdo.common.dao;
import com.bootdo.common.domain.FileDO;
import com.bootdo.common.dto.PaperDTO;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;
/**论文管理(注意这里的名字PaperManagerDao是比其他的地方多了一个'r'的)
* @author Linchong
* @date 2018/4/9 10:17
*/
@Mapper
public interfa... | true |
1cfeb8a24ca82cfde44fd61e990388e98fc31229 | Java | Ashish680/Meal_Alarm | /app/src/main/java/com/ashish/mealalarm/AlarmReceiver.java | UTF-8 | 3,329 | 2.03125 | 2 | [] | no_license | package com.ashish.mealalarm;
import android.app.NotificationChannel;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.media.Ringtone;
import android.media.RingtoneManager;
import an... | true |
2df70af15abb7dd9abe6263d69bb6459fd7cd1bb | Java | SetAdapter/KMYYAPP | /lib_personinfo/src/main/java/com/kmwlyy/personinfo/ModificationInfoActivity.java | UTF-8 | 8,446 | 2.0625 | 2 | [] | no_license | package com.kmwlyy.personinfo;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.InputFilter;
import android.text.TextWatcher;
import android.view.View;
import androi... | true |
30be82c8e10b4a0cf4a6ff513c36bf0bf7a86ab3 | Java | goldenhairs/fundsystem | /Android客户端/graduation_3/src/com/chenjun/utils/StringUtils.java | GB18030 | 4,784 | 3.59375 | 4 | [] | no_license | package com.chenjun.utils;
public class StringUtils {
/**
* ͳһֵС4λ
* @param jz
* @return
*/
public static String jzFormat(String jz){
if(jz == null){
return null;
}
int pointInt = jz.indexOf(".");
return jz.substring(0, pointInt + 5);
}
/**
* ͳһǷС3λ
* @param jz... | true |
c86300585fac8b3040f2924a10844e719f98067e | Java | ghbertuzzo/GerenciadorEstacionamentoRFID | /ControleFrota/src/Entidades/Logs.java | UTF-8 | 3,799 | 2.25 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Entidades;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column... | true |
3886341be800fe9a0ec7fb5f791cac28ca468f8b | Java | Micromoving/bcp | /代码bcp1.0/010_source/src/main/java/cn/micromoving/bcp/common/utils/word/ImportWord.java | UTF-8 | 2,914 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package cn.micromoving.bcp.common.utils.word;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Unsupporte... | true |
40caac4fb6ebc19d1076510dbd053f9c58034d0a | Java | rfechtner/pasaro | /Alignment/src/runner/Runner.java | UTF-8 | 2,604 | 2.46875 | 2 | [] | no_license | package runner;
import java.util.ArrayList;
import alignment.Alignment;
import alignment.Freeshift;
import alignment.Global;
import alignment.GotohFreeshift;
import alignment.GotohGlobal;
import alignment.GotohLocal;
import alignment.Local;
import alignmentUtils.GapFunction;
import alignmentUtils.Output;
import alignm... | true |
5ce8502df2228e8c35cb2c822c3d41e54e791a4a | Java | kicsikoko/degree | /PasswordsToDo/app/src/main/java/com/kicsiroot/passwordstodo/Post.java | UTF-8 | 1,787 | 2.25 | 2 | [] | no_license | package com.kicsiroot.passwordstodo;
import com.google.firebase.database.ServerValue;
public class Post {
private String postKey;
private String addUrl;
private String addEmail;
private String addUsername;
private String addPassword;
private String userID;
private Object timeStamp;
... | true |
2cf62172108a69714e1febd5d71230633f057877 | Java | P79N6A/icse_20_user_study | /methods/Method_1006201.java | UTF-8 | 409 | 2.9375 | 3 | [] | no_license | @Override public String format(String fieldText){
StringBuilder sb=new StringBuilder(100);
if (!fieldText.contains(" and ")) {
singleAuthor(sb,fieldText,1);
}
else {
String[] names=fieldText.split(" and ");
for (int i=0; i < names.length; i++) {
singleAuthor(sb,names[i],i + 1);
if (i < (n... | true |
a8148ffbf0b000707715d1294ab89c5399fae4cd | Java | luan-everton/Exemplo-Factory-Mothod | /src/gft/com/Main.java | UTF-8 | 223 | 1.921875 | 2 | [] | no_license | package gft.com;
public class Main {
public static void main(String[] args) {
Fabrica fabricaCaneta = new FabricaCaneta();
Caneta caneta = (Caneta)fabricaCaneta.criarProduto();
caneta.status();
}
}
| true |
08d255f8943d09fdd6cf055b8f1b75775de6e4d6 | Java | merlinvarghese/twvpsi-p1-e1 | /src/test/com/tw/vapasi/SquareTest.java | UTF-8 | 424 | 2.703125 | 3 | [] | no_license | package com.tw.vapasi;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class SquareTest {
@Test
void expectAreaIs4ForInput2() {
Square square = new Square(2);
assertEquals(4, square.area());
}
@Test
void expectPerimeterIs20Fo... | true |
d501565276ea910f00a685b2760fa607da33aaf6 | Java | zuiwengf/architect-awesome-code | /src/main/java/com/architectawesome/cornerstone/parsexml/completedemo3/model/City.java | UTF-8 | 598 | 1.9375 | 2 | [] | no_license | package com.architectawesome.cornerstone.parsexml.completedemo3.model;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
/**
* Created by renwujie on 2018/07/03 at 14:20
*/
@XStreamAlias("d")
public class City {
@XStreamAsAttribute
@XSt... | true |
eb11a7cf150233cc4a13ec72a532427e79f958fa | Java | Skyseaee/JavaHomework | /Homework02/src/HomeworkCode/ReverseInterger.java | UTF-8 | 1,098 | 3.828125 | 4 | [
"MIT"
] | permissive | package HomeworkCode;
import java.util.ArrayList;
import java.util.Scanner;
public class ReverseInterger {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("please input the number will be test.");
int number = sc.nextInt();
boolean r... | true |
ca79ab4fc1b994c658b5ae3dd0abd76d12a782fc | Java | MoccDev/segreteriaweb | /src/main/java/com/segreteria/webapp/model/ExamAppeal.java | UTF-8 | 744 | 2 | 2 | [] | no_license | package com.segreteria.webapp.model;
import java.io.Serializable;
import java.sql.Date;
public class ExamAppeal implements Serializable
{
private static final long serialVersionUID = 2246573429685565754L;
private int id;
private int idExam;
private Date date;
private String codEmployee;
public int getId() {... | true |
e113bbf551dbde9e5d5e147da8dc2b1812bdb6c4 | Java | adrisparkle/Software-UPTE | /src/controlador/Listas.java | UTF-8 | 6,125 | 2.390625 | 2 | [] | no_license | package controlador;
import java.io.FileOutputStream;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
import com.itextpdf.text.Chunk;
import com.itextpdf.text.Document;
import com.itextpdf.text.Element;
import com.itextpdf.text.ElementListener;
import com.itextpdf.text.Font;
import com.itextpdf.text.Image... | true |
0f98d5d8f6afc0e8b7e9625dd11f10c3c4f4ce76 | Java | Dicee/algorithmicProblems | /src/main/java/codility/lessons/leader/Dominator.java | UTF-8 | 880 | 3.234375 | 3 | [] | no_license | package codility.lessons.leader;
import java.util.*;
/**
* Level : painless
*/
class Dominator {
public int solution(int[] A) {
Deque<Integer> deque = new LinkedList<>();
int equalValues = 0;
for (int i : A) {
if (deque.isEmpty()) {
deque.push(i);
... | true |
03d2baddb16b9f09a094467761482d8b51329954 | Java | ITEA3-Measure/M-ELKI | /measure-analysis-platform/src/main/java/eu/measure/platform/api/Project.java | UTF-8 | 1,091 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package eu.measure.platform.api;
public class Project {
private Long id;
private String projectName;
private String projectDescription;
private String projectImage;
private String creationDate;
private User owner;
public Long getId() {
return id;
}
public void setId(Long id) {
th... | true |
37fa4a5c6fc291bde3e22cc39ddef3d43495565f | Java | AmberPoo1/PEPBench | /app/main/java/com/jingpu/android/apersistance/ormlite/OrmliteAgent.java | UTF-8 | 2,724 | 2.234375 | 2 | [
"MIT"
] | permissive | package com.jingpu.android.apersistance.ormlite;
import android.content.Context;
import com.j256.ormlite.android.apptools.OpenHelperManager;
import com.j256.ormlite.support.ConnectionSource;
import com.j256.ormlite.table.TableUtils;
import com.jingpu.android.apersistance.ormlite.model.*;
import java.sql.SQL... | true |
0e91eebb9c1c34663700323a053b7a831354e393 | Java | PalookaUniversity/BlueAndruino | /LatencyAndroid/src/edu/palookaville/latency/LatencyActivity.java | UTF-8 | 9,746 | 2.0625 | 2 | [
"MIT"
] | permissive | package edu.palookaville.latency;
import android.app.Activity;
import android.app.AlertDialog;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.... | true |
5689c55a0128d57bcd8d184f7ec490835427667d | Java | lyysb/MyYimiao100 | /app/src/main/java/com/yimiao100/sale/api/Api.java | UTF-8 | 1,900 | 2.515625 | 3 | [] | no_license | package com.yimiao100.sale.api;
import com.yimiao100.sale.other.HttpLoggingInterceptor;
import com.yimiao100.sale.utils.Constant;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.G... | true |
f61e52190e8a1447dad025d535409d1ad5adf494 | Java | tanbinh123/online-movie-ticket-booking-system | /Movie-ticket/src/main/java/in/co/movie/ticket/dao/InvoiceDAOInt.java | UTF-8 | 599 | 1.90625 | 2 | [] | no_license | package in.co.movie.ticket.dao;
import java.sql.Blob;
import java.sql.SQLException;
import java.util.List;
import javax.sql.rowset.serial.SerialException;
import in.co.movie.ticket.entity.InvoiceEntity;
public interface InvoiceDAOInt {
public long add(InvoiceEntity bean);
public void update(InvoiceEntity bean)... | true |
71793bd5724301b2edf3c209da484ff02a9c5cf2 | Java | Theoant2/2D-3DRenderer | /src/me/twodengine/engine/elements/Vector2D.java | UTF-8 | 790 | 3.28125 | 3 | [] | no_license | package me.twodengine.engine.elements;
public class Vector2D {
private float x, y;
public Vector2D(float x, float y)
{
this.x = x;
this.y = y;
}
public void add(float x, float y)
{
this.x += x;
this.y += y;
}
public void incX() { this.x++; }
public void incY() { this.y++; }
public void decX() ... | true |
0017af133e38834b7c5fe65f6b76e2a30f24ea81 | Java | Belousov-EA/university | /Физкультура/ВДНХ/VelnessBMSTU_v1.2b_apkpure.com_source_from_JADX/com/google/api/services/sheets/v4/model/SourceAndDestination.java | UTF-8 | 1,132 | 2.25 | 2 | [] | no_license | package com.google.api.services.sheets.v4.model;
import com.google.api.client.json.GenericJson;
import com.google.api.client.util.Key;
public final class SourceAndDestination extends GenericJson {
@Key
private String dimension;
@Key
private Integer fillLength;
@Key
private GridRange source;
... | true |
f22e101842a020537daaddea720bd80d7dcba796 | Java | zathras/misc | /JsonPretty.java | UTF-8 | 18,784 | 2.28125 | 2 | [
"MIT"
] | permissive |
/*
* This was adapted from code from hdcookbook (http://hdcookbook.jovial.com/),
* so I've retained the Sun copyright...
*/
/*
* Copyright (c) 2009, Sun Microsystems, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided... | true |
bb96f79b3a193b2cd64ac4433f813ee7687f1e74 | Java | nastyakatya77/java_bigdata | /Lab7/Lab7_1/src/anastasiya/kunitskaya/Main.java | UTF-8 | 812 | 2.921875 | 3 | [] | no_license | package anastasiya.kunitskaya;
import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
System.out.println("Type text");
String line = scanner.nextLine();
System.out.println("Length");
int len = sc... | true |
061ed36b3c6138da8b70787b8deb7b87459c47ff | Java | a2en/Zenly_re | /src/app.zenly.locator_4.8.0_base_source_from_JADX/sources/app/zenly/locator/chat/p055o5/C2164i.java | UTF-8 | 475 | 1.914063 | 2 | [] | no_license | package app.zenly.locator.chat.p055o5;
import kotlin.jvm.functions.Function1;
import p389io.reactivex.functions.Function;
/* renamed from: app.zenly.locator.chat.o5.i */
final class C2164i implements Function {
/* renamed from: e */
private final /* synthetic */ Function1 f6678e;
C2164i(Function1 functi... | true |
444d4944b775e099db00e3ebc54a5b467c28f253 | Java | apache/openjpa | /openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestTargetedIFaceRelations.java | UTF-8 | 2,484 | 2.09375 | 2 | [
"Apache-2.0",
"CDDL-1.0",
"LicenseRef-scancode-oracle-openjdk-exception-2.0",
"GPL-2.0-only",
"EPL-1.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
55ba6ce7c6e04099cc035f67962be187fd312a89 | Java | quangloc99/software-testing-lab3 | /src/main/java/ru/ifmo/se/s267880/softwareTesting/lab3/pages/github/FileBrowsingPage.java | UTF-8 | 1,584 | 2.375 | 2 | [] | no_license | package ru.ifmo.se.s267880.softwareTesting.lab3.pages.github;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.WebDriverWait;
import ru.ifmo.se.s267880.softwareTesting.lab3.utils.WebDriverUtil;
import java.util.stream.Col... | true |
35ecce6ba4cd642f5c0f41089eb4e4ac1c6716cc | Java | gongaustin/yuechi | /src/main/java/com/gongjun/yuechi/controller/NewsController.java | UTF-8 | 5,326 | 1.960938 | 2 | [] | no_license | package com.gongjun.yuechi.controller;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.gongjun.yuechi.core.bean.ResponseBean;
import com.gongjun.yuechi.core.utils.JWTUtil;
import com.gongjun.yuechi.model.Att... | true |
f268a38fcf2cc821a1255246dfebaebc849c8741 | Java | parasagarwal0107/Javapractice | /TestEnum2.java | UTF-8 | 1,367 | 4.3125 | 4 | [] | no_license | package pack;
//enum deceleration outside class.
enum Days {
MONDAY, TUESDAY, WEDNESDAY,
THURSDAY, FRIDAY, SATURDAY,SUNDAY;
}
public class TestEnum2 {
Days day;//Taking a variable day using enum Days as datatype
public TestEnum2(Days day) {
this.day = day;
}
/*method for applying... | true |
120701db2b1c6d0fafaed426790ad2ada930d3c9 | Java | ronghao/DialogFactory | /library/src/main/java/com/haohaohu/dialogfactory/TextAnimUtil.java | UTF-8 | 2,286 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package com.haohaohu.dialogfactory;
import android.support.annotation.NonNull;
import android.widget.TextView;
/**
* 文字动画类
*
* @author haohao(ronghao3508@gmail.com) on 2017/11/23 上午 10:40
* @version v1.0
*/
public class TextAnimUtil {
public TextAnimUtil() {
}
public static void showTextLoadingAnim(... | true |
93809cc0af24c169bdbe04e4585609d7e5c509b5 | Java | haochangforgit/lighting-platform-service | /src/main/java/com/lighting/service/service/impl/UserService.java | UTF-8 | 763 | 2.125 | 2 | [] | no_license | package com.lighting.service.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lighting.platform.base.entity.User;
import com.lighting.service.dao.UserDao;
import com.lighting.service.service.IUserService;
/**
* 用户业务类
*... | true |
7c36c25c6addec2fc524cbcbe9dc322b6e7fa0a5 | Java | amoghdhumal/TestSelenium4 | /src/main/java/com/ScreenShot.java | UTF-8 | 1,117 | 2.09375 | 2 | [] | no_license | package com;
import java.io.File;
import org.openqa.selenium.By;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
/**
* Hello world!
*
*/
public class ScreenShot
{
public static WebDriver driver... | true |
2f0bedf0466f484bbdd2947a846e226a1744d11f | Java | yinlin19900826/bio-platform | /bio-basemanager/src/main/java/com/biocome/platform/basemanager/vo/UserVo.java | UTF-8 | 2,280 | 1.828125 | 2 | [] | no_license | package com.biocome.platform.basemanager.vo;
import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
public class UserVo {
@Id
private Integer id;
@Column(name = "u... | true |
d04b99c26c60dde672396d67e9c3c5cea7264a41 | Java | kursatsmsek/okulsistemi-java-oop | /src/Ogretmen.java | UTF-8 | 816 | 2.875 | 3 | [] | no_license | public class Ogretmen extends Insan {
private String brans;
public Ogretmen(String isim, String soyisim, int id, String brans) {
super(isim, soyisim, id);
this.brans = brans;
}
public String getBrans() {
return brans;
}
public void setBrans(String brans) {
this... | true |
c575472d05ef8879ff19aa559edf4f5b82a28743 | Java | compbio-UofT/medsavant | /custom-libs/mfiume-component-transition/src/main/java/mfiume/component/transition/Animator.java | UTF-8 | 7,637 | 2.40625 | 2 | [] | no_license | /**
* Copyright (c) 2014 Marc Fiume <mfiume@cs.toronto.edu>
* Unauthorized use of this file is strictly prohibited.
*
* All rights reserved. No warranty, explicit or implicit, provided.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRAN... | true |
c759a361810f84303a99bc2637a49eb8ed4f0584 | Java | Diogo-Miranda/bach | /src/de.sormuras.bach/test/java/de/sormuras/bach/internal/GitHubTests.java | UTF-8 | 2,129 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Bach - Java Shell Builder
* Copyright (C) 2020 Christian Stein
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | true |
e67a6f8d570cfbff19a4a79af3bc30074f5efde9 | Java | keregann/automation | /src/main/java/homework_3_OOP/Main.java | UTF-8 | 594 | 2.734375 | 3 | [] | no_license | package homework_3_OOP;
import static homework_3_OOP.MessageProcessor.printOutMessage;
public class Main {
public static void main(String[] args) {
JsonMessage jsonMessage1 = new JsonMessage("i am Json 1");
XmlMessage xmlMessage1 = new XmlMessage("i am XML 1");
printOutMessage(jsonMessage... | true |
39c6865978f800d15dbfe182a7ec9fec3251c6c4 | Java | RishabhDidwania/core-java | /Day1/src/com/lab06/CurrentAccount.java | UTF-8 | 518 | 2.921875 | 3 | [] | no_license | package com.lab06;
public class CurrentAccount extends Account{
private String name;
private int limit = 10;
private static final int widtdrawlAmountLimit = 1000000;
public int getWithdrawlLimit(){return 10;};
public CurrentAccount(int amount, String theName) {
super(amount);
th... | true |
809fc9f5adaceb7cc79d4ba66b0986be051fb124 | Java | github188/Android-171017 | /Mmt/src/com/mapgis/mmt/module/systemsetting/backgruoundinfo/items/BackgroundTaskStateItem.java | UTF-8 | 1,024 | 1.9375 | 2 | [] | no_license | package com.mapgis.mmt.module.systemsetting.backgruoundinfo.items;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import com.mapgis.mmt.MyApplication;
import com.mapgis.mmt.module.systemsetting.setting.BaseMoreSettingItem;
/**
* Creat... | true |
1acf3b9fa6eab2e23c5cade0a79f2e98053e7ffb | Java | leoclana/Bioqualitas | /sistemalaboratorio - 25 .1 - lista itensPadrao em microrganismo/src/main/java/com/service/INotificacaoService.java | UTF-8 | 333 | 1.953125 | 2 | [] | no_license | package com.service;
import java.util.List;
import com.model.Notificacao;
import com.model.Usuario;
public interface INotificacaoService extends IService{
public abstract List<Notificacao> getAll(Usuario usuario);
public abstract void salvar(Notificacao notificacao);
public abstract void atualizar(Notificacao not... | true |
0fa08ab2fe045fb2c21d40e7969d01a72c9240ad | Java | FeanorTheElf/VilshofenGuide | /app/src/main/java/com/example/simon/vilshofenguide/controller/PathChangeController.java | UTF-8 | 1,839 | 2.359375 | 2 | [] | no_license | package com.example.simon.vilshofenguide.controller;
import com.example.simon.vilshofenguide.sightseeing.SightManager;
import com.example.simon.vilshofenguide.sightseeing.pathfinder.Pathfinder;
import com.example.simon.vilshofenguide.sightseeing.Path;
import com.example.simon.vilshofenguide.sightseeing.Sight;
import c... | true |
3010a7cdbbed0eb8f9da86233589a1f97823b340 | Java | Blackbaud-MattWalsh/common-akka | /src/main/java/demo/ApplicationConfiguration.java | UTF-8 | 1,418 | 1.929688 | 2 | [] | no_license | package demo;
import akka.actor.ActorSystem;
import com.blackbaud.akka.actors.Endpoint;
import com.blackbaud.akka.actors.ShardRegions;
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.ann... | true |
c34a11c7f79311271d5ff4cd8b59fc0e2bebf848 | Java | corefine/common | /common-web-mvc/src/main/java/org/corefine/common/web/mvc/ControllerAdvice.java | UTF-8 | 5,590 | 2.265625 | 2 | [] | no_license | package org.corefine.common.web.mvc;
import org.corefine.common.web.constant.CodeConstant;
import org.corefine.common.web.controller.OAuthException;
import org.corefine.common.web.service.ServiceException;
import org.corefine.common.web.vo.MessageVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.... | true |
6b1031214640d6939c99cd4b4319795a5f66cf45 | Java | hychen12/springboot_demo | /src/main/java/com/example/demo2/Demo2Application.java | UTF-8 | 1,671 | 2.609375 | 3 | [] | no_license | package com.example.demo2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframewo... | true |
ee453793363c807efcaad4be5557d8255c5c556d | Java | VladimirYushkevich/transaction-service | /src/main/java/com/n26/utils/TxnUtils.java | UTF-8 | 1,049 | 2.484375 | 2 | [] | no_license | package com.n26.utils;
import com.n26.model.Stat;
import lombok.experimental.UtilityClass;
import java.math.BigDecimal;
import java.util.stream.Collector;
@UtilityClass
public class TxnUtils {
public static Collector<BigDecimal, Stat, Stat> combineTxnStat() {
return Collector.of(
Stat::n... | true |
11b1621fe22fbf44d8f156ce43ccd4db977d28b0 | Java | pmd/pmd | /pmd-java/src/test/java/net/sourceforge/pmd/lang/java/rule/bestpractices/missingoverride/AbstractClass.java | UTF-8 | 463 | 2.21875 | 2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.rule.bestpractices.missingoverride;
/**
* @author Clément Fournier
* @since 6.2.0
*/
public abstract class AbstractClass {
Object fun(String s) {
return new Object();
}
... | true |
6543698ac077caac9bffebd41cec608d24c52ed6 | Java | Ippen-Digital/tigergraph-sdk | /src/main/java/de/id/tigergraph/sdk/restpp/RestPPOperations.java | UTF-8 | 213 | 1.632813 | 2 | [
"Apache-2.0"
] | permissive | package de.id.tigergraph.sdk.restpp;
import java.util.List;
import de.id.tigergraph.sdk.model.Vertex;
public interface RestPPOperations {
List<Vertex> listVerticesForGraph(String graph, String vertexType);
}
| true |
1282fcf6265debc799696a18111963092ed41b31 | Java | abdullah249/Software-for-Mobile-Devices | /Project_smd/java/com/example/abdullah/project2/logout.java | UTF-8 | 789 | 2.109375 | 2 | [] | no_license | package com.example.abdullah.project2;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.google.firebase.auth.FirebaseAuth;
public class logout extends AppCompatActivity {
FirebaseAuth mAuth;
@Override
protected void onCreate... | true |
eca8645f847cab4e90dba882fa8b79840822f55d | Java | mshostak-phunware/Drop | /Drop/src/com/example/drop/RecipientsArrayAdapter.java | UTF-8 | 7,134 | 2.203125 | 2 | [] | no_license | package com.example.drop;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Activity;
import android.content.Context;
import android.util.Log;
import androi... | true |
c9a6d0211c9b5573713d7f505b14cee593f833d7 | Java | chocozhao/BrushFace | /app/src/main/java/com/yzf/king/model/servicesmodels/UploadPhotosResult.java | UTF-8 | 3,488 | 2.1875 | 2 | [] | no_license | package com.yzf.king.model.servicesmodels;
import com.yzf.king.model.BaseModel;
public class UploadPhotosResult extends BaseModel {
private int code;
private DataBean data;
private String message;
public static class DataBean {
private BankCardBean bankCardBean;
private IdBeanBean idB... | true |
11252abf9e20d867f5bdebbf7f384f36b96a416a | Java | mightybyte/gigs | /src/net/mightybyte/gigs/ConnectedUser.java | UTF-8 | 4,853 | 2.8125 | 3 | [] | no_license | package net.mightybyte.gigs;
import java.util.ArrayList;
import java.util.List;
import net.mightybyte.gigs.game.PendingGame;
import net.mightybyte.gigs.game.ServerGame;
public class ConnectedUser {
private String name;
private ClientConnection connection;
/**
* List of games that the user is currently pla... | true |
5145935fc9cf63fe985df915db31d0a5b8df82d2 | Java | varungarg26/Key-Kilmber | /RollDie.java | UTF-8 | 269 | 2.328125 | 2 | [] | no_license | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
public class RollDie extends Actor
{
public RollDie()
{
setImage(new GreenfootImage("CLICK YOUR BALL\nTO ROLL YOUR DIE", 24, Color.BLACK, Color.WHITE));
}
}
| true |
389b8ace996367e92ea245c845615629ca1936f5 | Java | przemyslawwozniak/javalon4_java-zaawansowana-zadania | /src/main/java/pl/sda/javalon4/pdf/ex5/Visit.java | UTF-8 | 1,554 | 3.421875 | 3 | [] | no_license | package pl.sda.javalon4.pdf.ex5;
public class Visit {
private Customer customer;
private int productExpense, serviceExpense;
public Visit(Customer customer) {
this.customer = customer;
}
public Visit(Customer customer, int productExpense, int serviceExpense) {
this.customer = cus... | true |
b62287f7f41c6a676bac227b43e668d25cca7896 | Java | ISIS1206-4-Equipo-2/T2_202020 | /test/test/data_structures/TestShellSort.java | UTF-8 | 9,994 | 2.703125 | 3 | [] | no_license | package test.data_structures;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import model.data_structures.ShellSort;
@SuppressWarnings("all")
public class TestShellSort {
private Integer[] sortedInt;
private Integer[] integers;
private String[] sortedStr;
... | true |
28fb1072449f1ac171cb70f7be2dfa12af67cae2 | Java | thomas-martin-adaming/test_jenkins_docker | /src/main/java/com/adaming/entities/Tribunal.java | UTF-8 | 1,602 | 2.296875 | 2 | [] | no_license | package com.adaming.entities;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.... | true |
b63e9c27b972bf77e3dad3c9b656f81b3b5c97a3 | Java | shuoxinli/JavaDesign | /src/com/design/demo/Decorator/IDecorator/IDecorator.java | UTF-8 | 238 | 2.03125 | 2 | [] | no_license | package com.design.demo.Decorator.IDecorator;
import com.design.demo.Decorator.IEquip.IEquip;
//装饰品的接口类,要继承装备接口类,后期子类才能实现装备类的方法
public interface IDecorator extends IEquip {
}
| true |
d7c5e4c43202492a0cae4a00744fa8a17cd74744 | Java | your-group-92/AppDoAn | /app/src/main/java/com/example/appgiaitri/RegisterActivity.java | UTF-8 | 3,326 | 2.125 | 2 | [] | no_license | package com.example.appgiaitri;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
impor... | true |
92a232610723f09be399c5f305d0cbd71dc10f3d | Java | halfThread/luceneTest | /src/test/java/com/lhweb/lucene/dao/impl/IndexDaoImplTest.java | UTF-8 | 1,903 | 2.5625 | 3 | [] | no_license | package com.lhweb.lucene.dao.impl;
import java.util.List;
import org.junit.Test;
import com.lhweb.lucene.main.IndexDao;
import com.lhweb.lucene.po.Article;
public class IndexDaoImplTest {
IndexDao indexDao = new IndexDaoImpl();
@Test
public void testSaveArticle() {
for (int i = 0; i < 25; i++) {... | true |
718323c0a4dd40c94ef93ce5f88f04ee81d4d7b6 | Java | miguel1989/hwm | /src/main/java/hwm/enums/TeamType.java | UTF-8 | 57 | 1.796875 | 2 | [] | no_license | package hwm.enums;
public enum TeamType {
RED,
BLUE
}
| true |
31a6384a47a59e8d72a7894d71103f97eff0d80d | Java | riversking/timer | /account/src/main/java/com/clouddeer/account/entity/CdAccountZhihu.java | UTF-8 | 3,015 | 1.90625 | 2 | [] | no_license | package com.clouddeer.account.entity;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* 授权账户-知乎表
*
* @author clouddeer
* @email cd@clouddeer.com
* @date 2018-06-13 15:27:02
*/
@Table(name = "cd_acco... | true |
8ea601c2adbbfb18f7cc829b4a0a73ea56d3d139 | Java | jejecrunch/catchthehealth | /src/feature/NoticeView.java | UTF-8 | 4,762 | 2.484375 | 2 | [] | no_license | package feature;
import java.awt.Color;
import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Graphics;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import jav... | true |
1e31b50ea550f1fab93a16c5aee534113010f674 | Java | QAQ-QVQ/hjyGameLy | /common/src/main/java/com/renard/common/utils/log/LogAdapter.java | UTF-8 | 248 | 2.0625 | 2 | [] | no_license | package com.renard.common.utils.log;
/**
* Created by Riven_rabbit on 2019/4/25
*
* @author Lemon酱
*/
public interface LogAdapter {
boolean isLoggable(int priority, String tag);
void log(int priority, String tag, String message);
}
| true |
4315dffa44b106d8fab150e5ab222b7ed4458c3a | Java | omailson/RGMS | /RGMS/src/br/ufpe/cin/rgms/membro/apresentacao/AlterarMembroServlet.java | UTF-8 | 865 | 2.265625 | 2 | [] | no_license | package br.ufpe.cin.rgms.membro.apresentacao;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import br.ufpe.cin.rgms.Facade;
... | true |
ad5f6edea94f257afedd2e1a010820f12f032e9a | Java | vaquarkhan/Scoot-mobile-app | /ScootAppSource/com/parse/ParseAnalytics$3.java | UTF-8 | 439 | 1.914063 | 2 | [] | no_license | package com.parse;
import java.util.LinkedHashMap;
import java.util.Map.Entry;
final class ParseAnalytics$3
extends LinkedHashMap<String, Boolean>
{
protected boolean removeEldestEntry(Map.Entry<String, Boolean> paramEntry)
{
return size() > 10;
}
}
/* Location: D:\Android\dex2jar-2.0\class... | true |
339e75c381faa5167f9b0b6fb8c6449a37b6ee09 | Java | raulmmorais/tutorialGame | /core/src/com/tutorial/game/map/GameObject.java | UTF-8 | 1,078 | 2.6875 | 3 | [] | no_license | package com.tutorial.game.map;
import com.badlogic.gdx.math.Vector2;
import com.tutorial.game.type.GameObjectType;
public class GameObject {
private final GameObjectType type;
private final Vector2 position;
private final float width;
private final float height;
private final float rotDegree;
... | true |
71027922ee38717e924819977af4238c267e79cf | Java | GavinWon/JavaLabs | /Ch49B_ArraysOfObj/PhoneEntry.java | UTF-8 | 1,037 | 3.421875 | 3 | [] | no_license | /**
Represents an entry in a phonebook consisting of a first name,
last name, and phone number.
@author George Peck
@version Feb 26, 2007
@author Period - 1-7
@author Assignment - Ch49B_PhoneBook
@author Sources - Bradley Kjell
*/
public class PhoneEntry
{
public String firstName; // f... | true |
8f94a11334c0925e896a77a3506ff32cf3e6f6da | Java | allolar/JsDroid3 | /app-hidden-api/src/main/java/com/jsdroid/app_hidden_api/InputUtil.java | UTF-8 | 492 | 2 | 2 | [] | no_license | package com.jsdroid.app_hidden_api;
import android.view.inputmethod.InputMethodManager;
public class InputUtil {
public static void setInputMethod(String id) {
try {
InputMethodManager.getInstance().setInputMethod(null, id);
} catch (Exception e) {
}
}
public static v... | true |
f5f89dc8721d69d71e8027aec82c2884e47fbaff | Java | vespa-engine/vespa | /container-search/src/main/java/com/yahoo/search/cluster/TrafficNodeMonitor.java | UTF-8 | 2,726 | 2.703125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.cluster;
import com.yahoo.container.protect.Error;
import com.yahoo.search.result.ErrorMessage;
/**
* This node monitor is responsible for maintaining the state of a monitored node.
* It... | true |