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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4e07406965d94a4dfe70ba9dfa2afbb4da0d1bda | Java | HuiqinZhu/java-exercises | /beginner's level java src/girl.java | UTF-8 | 656 | 3.625 | 4 | [] | no_license |
public class girl {
private String girlName;
private OtherClass wakeUpTime;
public girl(String name, OtherClass wakeUpTime) { //use constructor so that we can initiate variables as soon as an object is created //and do define variable types
this.girlName = name;
this.wakeUpTime = wakeUpTime;
}
public St... | true |
71b9eff59d3527938767c99360118cec2e2e4edc | Java | lithiumslave/Java_homework | /src/lesson2HomeWork/TriangleArea.java | UTF-8 | 762 | 4.09375 | 4 | [] | no_license | package lesson2HomeWork;
import java.util.Scanner;
public class TriangleArea {
public static void main(String[] args) {
// S = (a * b * sinA) / 2
Scanner scan = new Scanner(System.in);
System.out.println("Please, enter the triangle side A: ");
int sideA = scan.nextInt();
S... | true |
546ff2250934393418086ca3520a6c7c605d75b8 | Java | sriankit/coding | /Archive/2014.04/2014.04.14 - APRIL14/ANUCBC.java | UTF-8 | 2,290 | 2.796875 | 3 | [] | no_license | package Tasks;
import javaUtils.IOUtils;
import javaUtils.InReader;
import javaUtils.IntegerUtils;
import javaUtils.OutputWriter;
public class ANUCBC {
long MOD = (long) 1e9 + 9;
long[] facs;
long[] invFacs;
long nCr(int n, int r) {
return (facs[n] * ((invFacs[r] * invFacs[n - r]) % MOD)) % ... | true |
1ac30f2c789d51651084ea3d64956035ac68aa9c | Java | rcaso/calendar-app | /src/main/java/com/shava/calendar/presentation/view/CalendarBean.java | UTF-8 | 5,165 | 2.140625 | 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 com.shava.calendar.presentation.view;
import com.shava.calendar.appointment.boundary.ContactResource;
import com.shava.calenda... | true |
1cb3d1ab24e3dad5360def2deac273aa8f8bef2a | Java | MewX/kantv-decompiled-v3.1.2 | /sources/javax/servlet/ServletSecurityElement.java | UTF-8 | 3,286 | 2.46875 | 2 | [] | no_license | package javax.servlet;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import javax.servlet.annotation.HttpMethodConstraint;
import javax.servlet.annotation.ServletSecurity;
public class ServletSecurityElement extends HttpConstraintElement {
private Collection<HttpMethodConstr... | true |
6a158c0a9eed78aa888861124b4c5db07ac5e635 | Java | gceylan/pro-lang | /java/Ajanda/src/com/gceylan/ajanda/Veritabani.java | ISO-8859-9 | 6,080 | 2.515625 | 3 | [] | no_license | package com.gceylan.ajanda;
import java.sql.*;
import java.util.Arrays;
import java.util.Vector;
import javax.swing.*;
import org.apache.log4j.Logger;
public class Veritabani {
private static final Logger logger = Logger.getLogger(Veritabani.class);
private Connection connect = null;
private P... | true |
35c3df91f1acce39dd60db9af2e3d753df687e7c | Java | arpangrwl/JavaPOC | /src/main/java/javaPOC/String/CountVowels.java | UTF-8 | 711 | 3.8125 | 4 | [] | no_license | package javaPOC.String;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
/**
* Program to count vowels in a string (Iterative and Recursive)
*/
public class CountVowels {
public static void main(String[] args) {
String str = "hello How are you";
char arr[] = str.toCha... | true |
12d47c1d842d35dc7826a1d87f02154f4f8fc15f | Java | Sl-niko/MAD-project | /app/src/main/java/com/example/madmini/Appoinment.java | UTF-8 | 1,601 | 2.03125 | 2 | [] | no_license | package com.example.madmini;
public class Appoinment {
private String App_Id;
private String ownerName;
private String petName;
private String Type;
private String Breed;
private String Date;
private String Diseases;
public String getApp_Id() {
return App_Id;
}
publi... | true |
bca49b3ffdd4b07bec15fc3734946952d27d496b | Java | ycfn97/IdeaWorkspace | /JavaSETestProj/src/hard/exe02.java | UTF-8 | 667 | 3.8125 | 4 | [] | no_license | package hard;
/**
* 2.设计方法实现:一个球从100米高度自由落下,每次落地后反跳回原高度的一半,再落下,求它在第10次落地时,共经过多少米?第10次反弹多高?
*/
public class exe02 {
public static void main(String[] args) {
System.out.println(sum(100,10));
System.out.println(height(100,10));
}
public static double sum(double start,int time){
if (... | true |
099eb2abc1fcf04b98aa3637efef7c3fe7341cd4 | Java | dearHaoGeGe/SimpleSample | /app/src/main/java/com/my/simplesampletest/orientation_rc_view/self_net/OnYJHCallBack.java | UTF-8 | 701 | 2.265625 | 2 | [] | no_license | package com.my.simplesampletest.orientation_rc_view.self_net;
import android.graphics.Bitmap;
/**
* 请求结果回调
* 请求图片暂时和请求String用一个接口,
* 到时候需要在主线程里面更新UI
* <p>
* Created by YJH on 2016/10/20 17:42.
*/
public interface OnYJHCallBack {
/**
* 准备开始请求
*/
void onStart();
/**
* 请求成功
*
... | true |
e1d90aec481804290bf4f02106b55853b8812d7a | Java | agebru/Spring-Microservices-Collections_repo | /JdbcTemplateApp/src/main/java/com/test/FileProcessingApp.java | UTF-8 | 2,604 | 3.203125 | 3 | [] | no_license | package com.test;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.stream.Stream;
import org.apache.log4j.Logger;
import org.apache.log4j.xml.DOMConf... | true |
fae324569fa06f00256bdf21144f0f9332a5f15c | Java | sushmareddy123/ranford | /src/main/java/testdata/TestData.java | UTF-8 | 2,736 | 2.234375 | 2 | [] | no_license | package testdata;
public class TestData {
//Data for Fields in Ranford HomePage
public static class RanfordHomePage
{
// UserName Textbox Data
public static String sUserName = "Admin";
// Password Textbox Data
public static String sPassword = "Admin";
}
//Data for Fields in Branches Page
... | true |
630bfd59adc0b2471c665edc495fd8ce703ffc9e | Java | Tuscann/JAVA---Advanced---2017 | /07.String Processing/src/com/company/_07_Valid_Usernames2.java | UTF-8 | 954 | 3.140625 | 3 | [
"MIT"
] | permissive | package com.company;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader; // 100/100
import java.util.regex.Pattern;
public class _07_Valid_Usernames2 {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new Inpu... | true |
7747768354c1e76a92888acc6fe4e633e05f6098 | Java | clilystudio/NetBook | /allsrc/com/ushaqi/zhuishushenqi/ui/CircularSmartImageView.java | UTF-8 | 1,465 | 1.773438 | 2 | [
"Unlicense"
] | permissive | package com.ushaqi.zhuishushenqi.ui;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.net.Uri;
import android.util.AttributeSet;
import com.arcsoft.hpay100.a.a;
import com.ushaqi.z... | true |
f264c6e35fc292a74eb187c23aa58451b939b0e1 | Java | Lucifer3152/ap-2018-bomberman | /src/main/java/com/atofighi/bomberman/configs/GameConfiguration.java | UTF-8 | 549 | 2.078125 | 2 | [] | no_license | package com.atofighi.bomberman.configs;
public class GameConfiguration {
public static int bombAliveTime = 5000;
public static int defaultBombRange = 1;
public static int refreshTime = 10000; // in ms
public static int shieldTime = 10000; // in ms
public static int bombermanDefaultSpeed = 20;
p... | true |
39fea335d7748ee554c6999bbc61b8f75f95132d | Java | TriNguyen11061997/CDCNPM | /src/java/Dao/HotelDao.java | UTF-8 | 961 | 2.390625 | 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 Dao;
import Bean.HotelBean;
import Util.ConnectionPool;
import java.sql.Connection;
import java.sql.PreparedStatement;
import ... | true |
5e7a1512d725059262df3b3d41c08dc4d73868fc | Java | youngme/pt-cloud | /auth/authorization-server/src/main/java/com/bin/cloud/auth/server/entity/po/Users.java | UTF-8 | 1,760 | 1.984375 | 2 | [] | no_license | package com.bin.cloud.auth.server.entity.po;
import com.bin.cloud.common.core.entity.po.BasePo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.security.core.GrantedAuthority;
import... | true |
c6e07fac30eae1a430c9b08402a1d7899787869d | Java | catyguan/gamedev.platform | /gservice/javalib/luaservice/src/test/java/ge/lua/hostservice/dal/ServiceTC.java | UTF-8 | 2,132 | 1.992188 | 2 | [] | no_license | package ge.lua.hostservice.dal;
import ge.lua.LuaArray;
import ge.lua.LuaTable;
import ge.lua.hostservice.dal.ServiceLuaCall;
import java.util.Date;
import java.util.concurrent.Executors;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.jdbc.core.JdbcTemplate;
impor... | true |
34402c26c0d83eab83c6b5c0ce7f38b5e6336de9 | Java | krosek/task3 | /src/main/java/com/itra/ErrorMaker.java | UTF-8 | 4,451 | 2.796875 | 3 | [] | no_license | package com.itra;
import java.util.HashMap;
import javax.json.*;
public class ErrorMaker {
private int errorEveryNumberLines;
private int countErrorsInLine;
private String[] errorTypes = {"swap","add","remove"};
private JsonObject config;
private String lang;
public ErrorMaker(double errorsCo... | true |
9787d061daa81e2722b5fba95265755a44925e93 | Java | panya55410075/SQL | /src/app/it/kobboon/addActivity.java | UTF-8 | 1,572 | 2.46875 | 2 | [] | no_license | package app.it.kobboon;
import android.app.Activity;
import android.app.AlertDialog;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class addActivity extends Activity imple... | true |
3f6b8017e7365b3b066bf7ceea45322ec74fdf3a | Java | F-Praktikum/Lehreinheiten | /src/com/hoffrogge/lehreinheit05/CollectionsBeispiele.java | UTF-8 | 353 | 1.875 | 2 | [] | no_license | package com.hoffrogge.lehreinheit05;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.hoffrogge.lehreinheit04.Rechteck;
public class CollectionsBeispiele {
List<Rechteck> listeVonRechtecken = new ArrayList<>();
Set<Rechteck> setVonRec... | true |
4448060c23e4deea5b5a9dbb16e50b29125f402a | Java | rhomeister/mobile-sensors-main | /src/test/java/uk/ac/soton/ecs/mobilesensors/communication/TestCommunicationModule.java | UTF-8 | 3,440 | 2.296875 | 2 | [] | no_license | package uk.ac.soton.ecs.mobilesensors.communication;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import junit.framework.TestCase;
import org.junit.Ignore;
import uk.ac.soton.ecs.mobilesensors.Environment;
import uk.ac.soton.ecs.mobilesensors.Simulation;
import uk.ac.soton.ecs.mobile... | true |
28cea4aeed11afad5a136d4bc8a29d986e614e11 | Java | AnnaTalstaya/bsu-famcs-solutions | /Term6/Java_WEB_RMI_SQL/Task9_Servlets/src/main/java/by/talstaya/task09/model/camera/Person.java | UTF-8 | 2,786 | 2.8125 | 3 | [] | no_license | package by.talstaya.task09.model.camera;
import java.util.Objects;
public class Person {
private int id;
private String firstName;
private String surname;
private MobileNumber mobileNumber;
private int mobileNumberId;
public Person(int id, String firstName, String surname, MobileNumber mobile... | true |
40be35bbb0e67de11a81473928d1d452a22d3a97 | Java | pooja-ghodekar/string-manupulation | /src/EmValidation.java | UTF-8 | 214 | 2.265625 | 2 | [] | no_license | public class EmValidation {
private String emial_Id;
public String getEmial_Id() {
return emial_Id;
}
public void setEmial_Id(String emial_Id) {
this.emial_Id = emial_Id;
}
}
| true |
539fb73ef7097e5d3bc484ebd331c4e9063405df | Java | widnu/leetcode | /leetcodejava/src/leetcodejava/string/ValidPalindromTest.java | UTF-8 | 556 | 2.875 | 3 | [] | no_license | package leetcodejava.string;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
class ValidPalindromTest {
@Test
void testIsPalindromeTrue() {
ValidPalindrom obj = new ValidPalindrom();
String s = "A man, a plan, a canal: Panama";
boolean result = obj.isPalindrome(s);
Assert.assertEquals(tru... | true |
ddb68f54c8a099bb0ab30c5cf2c8054c77714247 | Java | TarasMatviiv/mentorship | /ServletMentorship/src/main/java/com/mentorship/servlet/Pages.java | UTF-8 | 317 | 1.695313 | 2 | [] | no_license | package com.mentorship.servlet;
public interface Pages {
String STUDENTS = "/pages/students.jsp";
String SUBJECTS = "/pages/subjects.jsp";
String ERROR = "/pages/error.jsp";
String HOME = "/pages/home.jsp";
String HOME_URI = "home";
String INDEX = "/index.jsp";
String INDEX_URI = "/";
}
| true |
c1510c8fc456135ac37597a02c1fa7f6766bc2f5 | Java | Ifaldzi/Object-Oriented-Programming | /Source Codes/ForEach.java | UTF-8 | 245 | 3.59375 | 4 | [] | no_license | public class ForEach
{
public static void main(String[] args)
{
int[] array = new int[10];
for(int i=0;i<10;i++)
{
array[i] = i+1;
}
int sum = 0;
for(int number : array)
{
sum += number;
}
System.out.println(sum);
}
} | true |
a0d9c9cf228a0917e0e0822a1385a30cc33224c7 | Java | taylorsmithgg/bootcamp | /BuildingRevNetwork/src/com/cooksys/bootcamp/building/XMLFormatter.java | UTF-8 | 456 | 2.234375 | 2 | [] | no_license | package com.cooksys.bootcamp.building;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "Building")
@XmlAccessorType(XmlAccessType.FIELD)
public class XMLFormatter {
protec... | true |
6d67953b80a0bc725854a1f6ac337920746effad | Java | alixnzt/papoteCar | /src/main/java/fr/papotecar/back/entities/Trip.java | UTF-8 | 2,742 | 2.90625 | 3 | [] | no_license | package fr.papotecar.back.entities;
import org.springframework.data.annotation.Id;
import java.util.ArrayList;
import java.util.HashMap;
public class Trip {
@Id
private String id;
private City startCity;
private City endCity;
private Car car;
private ArrayList<City> etapes;
private ... | true |
ec63031e7c6873fd9205f04ee2b526a5ad64615c | Java | ZheLiu1/aws-cicd | /webapp/src/main/java/com/howtodoinjava/rest/Service/AmazonSNSClientServiceImpl.java | UTF-8 | 2,088 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | package com.howtodoinjava.rest.Service;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.services.sns.AmazonSNS;
import com.amazonaws.services.sns.AmazonSNSClientBuilder;
import com.amazonaws.services.sns.model.PublishRequest;
import com.amazonaws.services.sns.model.PublishResult;
import com.howt... | true |
86f96101973a92d1969f723594743a7560d4f7e1 | Java | osvindiastae/NewMusicApp | /app/src/main/java/com/example/os/newmusicapp/music_details/adapter/MusicItemClickListener.java | UTF-8 | 214 | 1.914063 | 2 | [] | no_license | package com.example.os.newmusicapp.music_details.adapter;
import android.view.View;
/**
* Created by Os on 10/02/2018.
*/
public interface MusicItemClickListener {
void onCLick(View view, int position);
}
| true |
10678d879ed95c08eec8c7d7b088f72aff5806a2 | Java | Project-Herophilus/Event-Builder | /src/main/java/io/connectedhealth/idaas/hcdataobjects/hl7/MFI.java | UTF-8 | 2,144 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | package io.connectedhealth.idaas.hcdataobjects.hl7;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
public class MFI {
private String MFI_1_MasterFileIdentifier;
private String MFI_2_MasterFileApplicationIdentifier;
private String MFI_3_FileLevelEventCode;
private String MFI_4_Enter... | true |
aae9e10fa547d402e87467b7908c9f1eb9c652f3 | Java | chaoge555/DesignPattern-Java | /src/main/java/mode/factory/Circle.java | UTF-8 | 220 | 2.6875 | 3 | [] | no_license | package mode.factory;
public class Circle implements Shape{
@Override
public void draw() {
System.out.println("画圆形");
}
@Override
public boolean isNil() {
return false;
}
}
| true |
86e5090e36bad6b165c018afe6026e7bb8daae88 | Java | nbna0001/OCJP1Topics | /15Constants/src/com/nbna/constantsexample/GeometryConstants.java | UTF-8 | 179 | 1.820313 | 2 | [] | no_license | package com.nbna.constantsexample;
/*
* To Demo a scenario where two interfaces have definition for a
* variable
*/
public interface GeometryConstants {
double PI =3.1473;
}
| true |
5e68a33bde9cc9ec4c1b6f0cf33cabe6ed6c4c20 | Java | Janix520/Triana | /triana-toolboxes/common/src/main/java/common/lang/IsPanel.java | UTF-8 | 3,954 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | package common.lang;
import org.trianacode.gui.panels.ParameterPanel;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
/**
* $POPUP_DESCRIPTION
*
* @author $AUTHOR
* @version $Revision: 1.4 $
* @created $DATE
* @date $Date: 2006/04/04 13:44:26 $ mod... | true |
ef8aad70b1543e9a0b2dc6dad3215fda67aba8d4 | Java | Eagles2F/MapReduceAndDFS | /MapReduceAndDFS/src/utility/KeyValue.java | UTF-8 | 940 | 3 | 3 | [] | no_license | package utility;
import java.io.Serializable;
public class KeyValue<Key,Value> implements Comparable,Serializable{
private Key key;
private Value value;
public KeyValue(){
}
public KeyValue(Key k, Value v){
this.key = k;
this.value = v;
}
public void setKey(Key k)... | true |
90f200ede8cbeaacf4d4cc5da5d4b8bf806368bf | Java | John-Zoscak-02/CS-2110-Code | /Lab 3b/src/Rectangle.java | UTF-8 | 2,359 | 3.921875 | 4 | [] | no_license |
public class Rectangle {
// fields
private double length;
private double width;
private Point topLeftCorner;
// default constructor (takes no parameters)
public Rectangle() {
// length and width assigned default values (4 for length and 2 for width)
this.length = 4;
th... | true |
bb80f41df07ccd9105bf3ba877290ab63e88633d | Java | c-dot-gonz/Yet-Another-Magic-Card-Recognizer | /src/SetGenerator.java | UTF-8 | 3,640 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swi... | true |
88da6c1c385aaf78afea96850e6712167eb684e2 | Java | jeff-2/CounselingScheduler | /src/bean/Weekday.java | UTF-8 | 2,769 | 3.953125 | 4 | [] | no_license | package bean;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* The Enum Weekday represents the weekdays in a week. Provides utilities for
* converting to and from different representations (e.g. string, date) to a
* Weekday and back.
*
* @author jmfoste2, lim92
*/
public enum Weekday {
Monday, T... | true |
281a5413ab75108cdc15f41ec33445954714f275 | Java | Jayeshecs/data-compare | /src/db/compare/json/JSONHelper.java | UTF-8 | 5,315 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | /**
*
*/
package db.compare.json;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Generically convert a Java object graph to a JSON string.
* @author Sachin Saraf
*/
public class JSONHelper {
public static final String DOUBLE_QU... | true |
b5bf8cffec4cc6423a253367d9107bb7d9131aa6 | Java | fatalms/java-univer-practis | /Univer/Home/!semac/first_lab/src/myExeption/MissLenghtException.java | UTF-8 | 142 | 1.953125 | 2 | [] | no_license | package myExeption;
public class MissLenghtException extends Exception {
public MissLenghtException(String s){
super(s);
}
}
| true |
46c162ce0bfe389c7dfc84ef38cdf60c4d7b72bb | Java | AndreySulimov/java_for_testers | /mantis-tests/src/test/java/ru/jft/mantis/appmanager/HttpSession.java | UTF-8 | 3,602 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | package ru.jft.mantis.appmanager;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.clie... | true |
fe94e71dd8bbaf64c196db9be0c9e47131a6ab60 | Java | CharlesZqikai/ForOffer | /app/src/main/java/com/earnmoney/foroffer/tu/algorithm/SelectInDoubleArray.java | UTF-8 | 2,261 | 4.25 | 4 | [] | no_license | package com.earnmoney.foroffer.tu.algorithm;
/**
* create by tuzanhua on 2019/7/11
* 二维数组查找 输入一个值在二维数组中查找出来 找出 11
* 二维数组 从左到右 递增 从上往下递增
* <p>
* 1 2 8 9
* 2 4 9 12
* 4 7 10 13
* 6 8 11 15
* <p>
* 比如说查找 11
* 1: 暴力解法 双重for 循环解法 好理解时间复杂度比较高 o(n2)
* 2: 看这个二维数组 它是... | true |
b9efa525c58c873b031821820bbca76b7ef8c08b | Java | vijayEE1997/Gladiator_Online_Shopping | /BackEnd/WingBuy2/src/main/java/com/lti/CSVReaderUser.java | UTF-8 | 941 | 2.765625 | 3 | [] | no_license | package com.lti;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import com.lti.model.User;
public class CSVReaderUser {
public static List<User> load() {
String csvFile = "C:/Users/91830/Downloads/user_csv.csv";
String l... | true |
8634bcb371f321aa6449c7d99da8d55c136a7fa1 | Java | MaKePingGuo/BHFileBrowser | /bhbrowser/src/main/java/com/beardedhen/bhbrowser/lib/FileBrowserController.java | UTF-8 | 6,368 | 2.375 | 2 | [
"MIT"
] | permissive | package com.beardedhen.bhbrowser.lib;
import android.text.TextUtils;
import android.util.Log;
import com.beardedhen.bhbrowser.views.FileSelectedListener;
import java.io.File;
import java.io.FilenameFilter;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Compara... | true |
42d407b23893aeaf1961c4f052cb78360562f166 | Java | areyykarthik/Zhukouski_Pavel_BSU_Projects | /UP on Java (Educational practice on Java)/4 sem УП (Лаба 5, Вариант 10)/src/TableInfo.java | WINDOWS-1251 | 1,949 | 2.828125 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
import javax.swing.table.AbstractTableModel;
class TableInfo extends AbstractTableModel
{
String[] colnames =
{
"", ""
};
Class[] classes = new Class[]
{
String.class, ... | true |
c64169067b5b982d4bfd66d1477ce2f3b5cab682 | Java | vishalsinha21/core-java-practice | /src/vs/test/Vehicle.java | UTF-8 | 214 | 2.359375 | 2 | [] | no_license | package vs.test;
public interface Vehicle {
public void move();
default void hoot() {
System.out.println("peep!");
}
default void hoot1() {
System.out.println("peep!");
}
}
| true |
685c317faf0b286a9a3390d6597179e782d687d2 | Java | LoganElliott/ClinCor | /src/correlates/NewPatientExaminationsPanel.java | UTF-8 | 3,500 | 2.4375 | 2 | [] | no_license | package correlates;
import java.awt.Dimension;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
public class NewPatientExaminationsPanel extends JPanel {
p... | true |
7106f89cf808f1b7629dfc67789bde7756d3184f | Java | yinhangfeng/AndroidTest | /Java/JavaTest/src/com/example/test/LockSupportTest.java | UTF-8 | 995 | 3.046875 | 3 | [] | no_license | package com.example.test;
import java.util.concurrent.locks.LockSupport;
public class LockSupportTest {
public static void test() {
MyThread thread = new MyThread();
print("main thread.start");
thread.start();
thread.interrupt();
try {
Thread.sleep(3000);
} catch(Exception e) {
}
// print(Lock... | true |
ae1c7e41dea3c7ca24018bbf6bceac5750cffed5 | Java | hexedwalnut/Dungeonomicon | /src/Persistence/FileParser.java | UTF-8 | 3,654 | 2.734375 | 3 | [] | no_license | package Persistence;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml... | true |
bf171f12c75a3070f6db721ee8fa48ea40180360 | Java | asdfgfagwerw/java_streams | /src/demo/aj/ParallelStreams.java | UTF-8 | 2,334 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | package demo.aj;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.google.gson.*;
public cl... | true |
5d14a653950b4142fccd1d90aaf9cb48cda2f33f | Java | SoftwareEngineeringToolDemos/ICSE-2013-NavClus | /navclus.recommendation/src/renewed/invertedindex/SimilarityComparator.java | UTF-8 | 369 | 2.34375 | 2 | [] | no_license | package renewed.invertedindex;
import java.util.Comparator;
public class SimilarityComparator implements Comparator<DocListNode> {
@Override
public int compare(DocListNode o1, DocListNode o2) {
if (o1.getSimilarity() > o2.getSimilarity())
return -1;
else if (o1.getSimilarity() > o2.getSimilarity()... | true |
c66f0b757f7ed63d649efe721bbbab8695769bb8 | Java | arunkr1112/CsvToPdf | /CsvToPdf/src/main/java/com/stanra/csvtopdf/SendAttachment.java | UTF-8 | 4,126 | 2.671875 | 3 | [] | no_license | package com.stanra.csvtopdf;
import java.io.IOException;
import java.util.Date;
import java.util.Properties;
import javax.mail.Authenticator;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Multipart;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.... | true |
447b0f5c5f9508ce8a1fe813cc7b3ba970ec7243 | Java | linkedin/transport | /transportable-udfs-trino/src/main/java/com/linkedin/transport/trino/data/TrinoFloat.java | UTF-8 | 868 | 2.28125 | 2 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | /**
* Copyright 2018 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.transport.trino.data;
import com.linkedin.transport.api.data.StdFloat;
import io.trino.spi.block.BlockBuilder;
import static... | true |
ab0ab730e6a5a31b13e6bde2fb5be33a3d447628 | Java | amtech/a-tech-backend | /server/app/controllers/ArticleController.java | UTF-8 | 10,799 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | ////////
// This sample is published as part of the blog article at www.toptal.com/blog
// Visit www.toptal.com/blog and subscribe to our newsletter to read great posts
////////
package controllers;
import controllers.secured.AdminSecured;
import controllers.secured.ExpertSecured;
import models.*;
import models.enums... | true |
3ed306a0d87bdabc7b974221f66ab7c1b6d59264 | Java | lusl1991/waterfall | /data-collection/src/main/java/org/jeecg/modules/datasources/mapper/WaterfallModelMapper.java | UTF-8 | 535 | 1.828125 | 2 | [
"MIT"
] | permissive | package org.jeecg.modules.datasources.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.datasources.model.WaterfallModel;
public interface WaterfallModelMapper extends BaseMapper<WaterfallModel> {
int deleteByPrimaryKey(Integer id);
int insert(WaterfallModel record);
... | true |
3eb0e2f4d3f79dfb2efcee37d8dba3e59edc7b14 | Java | 13398199549/sh | /sh/src/main/java/org/framestudy/sh/m2mmag/dao/impl/PlayerDaoImpl.java | UTF-8 | 1,313 | 2.203125 | 2 | [] | no_license | package org.framestudy.sh.m2mmag.dao.impl;
import java.util.List;
import javax.annotation.Resource;
import org.framestudy.sh.m2mmag.PlayerBean;
import org.framestudy.sh.m2mmag.dao.IPlayerDao;
import org.springframework.orm.hibernate4.HibernateTemplate;
import org.springframework.stereotype.Repository;
@R... | true |
81f173fc63b76f546c1305affc15ef434ef64da3 | Java | rhq-project/ems | /src/ems-impl/org/mc4j/ems/impl/jmx/connection/bean/notification/DNotification.java | UTF-8 | 10,209 | 1.757813 | 2 | [] | no_license | /*
* Copyright 2002-2004 Greg Hinkle
*
* 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 agr... | true |
b4a7b3669c71d526cf565f3d9ea436c55e236ac9 | Java | SeemannBoot/MyEstore | /src/cn/itcast/estore/service/impl/GoodsServiceImpl.java | UTF-8 | 654 | 2.171875 | 2 | [] | no_license | package cn.itcast.estore.service.impl;
import java.util.List;
import cn.itcast.estore.dao.GoodsDAO;
import cn.itcast.estore.dao.impl.GoodsDAOImpl;
import cn.itcast.estore.domain.Goods;
import cn.itcast.estore.service.GoodsService;
public class GoodsServiceImpl implements GoodsService {
@Override
publi... | true |
db5aeea6e5b9d3070b683e33de71d68c745f8ff8 | Java | ShawFengZ/swordToOffer | /src/swordToOffer3/T36_findFirstCommonNode.java | UTF-8 | 1,248 | 3.78125 | 4 | [] | no_license | package swordToOffer3;
import swordToOffer3.utils.ListNode;
public class T36_findFirstCommonNode {
/**
* 输入两个链表,找出它们的第一个公共结点。
*
* 思路:
* 1. 分别计算两个链表的长度l1, l2;
* 2. 计算差值l1-l2
* 3. 比较长的那个先走l1-l2
* 4. 相遇则返回那个节点
* */
public static ListNode FindFirstCommonNode(ListNode pHead1... | true |
0a0ee1d1d02b1627f8c076050a97845753411a60 | Java | SurfGitHub/BLIZZARD-Replication-Package-ESEC-FSE2018 | /Corpus/eclipse.pde.ui/3766.java | UTF-8 | 12,297 | 1.632813 | 2 | [
"MIT"
] | permissive | /*******************************************************************************
* Copyright (c) 2005, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | true |
ea4ed37cc0637eccee60c129cf6bb338eb3a304c | Java | gkossareva/JavaProgrammingB15Online | /src/day31/Voting.java | UTF-8 | 418 | 2.828125 | 3 | [] | no_license | package day31;
public class Voting {
public static void main(String[] args) {
checkingEligibility(15);
int yourAge=12;
checkingEligibility(yourAge);
}
public static void checkingEligibility(int age){
// int age=15;
if (age>18){
System.out.println("You are eligible to v... | true |
8996bfbd8276cf803975adf4a943474ba4241177 | Java | LEIDYPUERTOG/TrabajoCampoSintraUPTC | /jsp/src/Logica/TipoDocumento.java | UTF-8 | 569 | 2.40625 | 2 | [
"MIT"
] | permissive | package Logica;
/**
* Este enum contiene los tipos de documentos que se pueden
* tener
* @author LEIDY
* @version 1.0
* @updated 24-sep.-2015 7:55:07 a. m.
*/
public enum TipoDocumento {
/**
* Documento tipo cedula que en la base de datos debe ser
* almacenado como CC
*/
Cedula,
/**
* Tipo de document... | true |
29c9117dd9d23da02724e19248deda38521bfd21 | Java | bk6717/springwork | /jwtStudy/src/main/java/com/cos/jwtStudy/controller/RestApiController.java | UTF-8 | 1,546 | 2.28125 | 2 | [] | no_license | package com.cos.jwtStudy.controller;
import java.util.List;
import org.springframework.security.core.Authentication;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import or... | true |
d6562765efcd70743cd964b52ee744216aabc380 | Java | mike-stu/DatingApp | /src/main/java/com/mike/course/app/validation/UserValidator.java | UTF-8 | 1,476 | 2.5 | 2 | [] | no_license | package com.mike.course.app.validation;
import com.mike.course.app.constant.UserValidatorConstant;
import com.mike.course.app.exception.InvalidUserException;
import com.mike.course.app.user.UserDto;
import com.mike.course.app.user.UserService;
import com.mike.course.app.util.UserUtil;
import org.springframework.beans.... | true |
715fa0b0dd45dfc38b7df2234db64d66ed9a11c9 | Java | sagasu/JavaPlayground | /playground-default/src/main/java/com/sagasu/generics/GenericsPlayground.java | UTF-8 | 375 | 2.390625 | 2 | [
"MIT"
] | permissive | package com.sagasu.generics;
import java.util.ArrayList;
import java.util.List;
public class GenericsPlayground<T> {
private T t;
// illegal w/o specifying type
//private ArrayList<> al;
public List<String> getArrayList(){
List<String> list = new ArrayList<>();
return list;
}
public T getT() {
retur... | true |
4d869cc0394c3dcc26973d3277b7e606759f6662 | Java | shinyFan/lintcode | /src/com/jzf/utils/PartPanel.java | UTF-8 | 1,426 | 2.984375 | 3 | [] | no_license | package com.jzf.utils;
import java.awt.*;
import java.awt.geom.RoundRectangle2D;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class PartPanel extends JPanel {
private static final long serialVersionUID = 1L;
public PartPanel() {
super();
set... | true |
ad604ec3eccfafa3a66b987647878771aeffecf8 | Java | zhiji6/mih | /MED-CLOUD/med-data/src/main/java/nta/med/data/dao/phr/ProfileRepository.java | UTF-8 | 3,488 | 1.851563 | 2 | [] | no_license | package nta.med.data.dao.phr;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import... | true |
3ce1e65da7f62eeca52d636c168c7c877a399b5b | Java | trydent-io/jooby | /modules/coverage-report/src/test/java/org/jooby/issues/Issue308.java | UTF-8 | 4,092 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package org.jooby.issues;
import static org.junit.Assert.assertEquals;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.TimeUnit;
import org.jooby.MediaType;
import org.jooby.json.Jackson;
import org.jooby.test.SseFeature;
import org.junit.Test;
import com.google.com... | true |
1c6ad1a25ec908a97b9ebe29563e798b52eab21f | Java | wesleywpy/demo-spring-cloud | /demo-rabbitmq/src/test/java/org/wesley/cloud/MqApplictionTest.java | UTF-8 | 633 | 1.929688 | 2 | [] | no_license | package org.wesley.cloud;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.wesley.cloud.jms.Sender;
/**
... | true |
634f87bfe3542d13075019de512f80c28c6efd7e | Java | sjhxhjs/sjms | /director/src/main/ConcreteDirector2.java | UTF-8 | 432 | 2.9375 | 3 | [] | no_license | package main;
/**
* @auther: abird
* @date: 2019/05/04
* @Description:
*/
public class ConcreteDirector2 extends Director {
public ConcreteDirector2(Component component) {
super(component);
}
//装饰类2的装饰方法
private void method2() {
System.out.println("装饰类2的装饰方法");
}
@Override
... | true |
c0575912b931191749e903a21aff24694e79b452 | Java | DreamNex/MobileProgamming | /MGPgame_R/app/src/main/java/com/sidm/mgpgame/Assets/Environment.java | UTF-8 | 1,265 | 3.015625 | 3 | [] | no_license | package com.sidm.assignment1.Assets;
import com.sidm.assignment1.Components.CollisionComponent;
import com.sidm.assignment1.Components.PhysicsComponent;
import com.sidm.assignment1.Components.Vector2D;
/**
* Created by Nil on 6/12/2015.
*/
public class Environment {
private Vector2D location;
private Collis... | true |
eb833618097f18e23951c8f8fc100c13315a00e7 | Java | zaidzeya/Zaidze.JavaDev | /figure/src/main/java/lesson2/FigureNames.java | UTF-8 | 316 | 3.1875 | 3 | [] | no_license | package lesson2;
public enum FigureNames {
SQUARE("Квадрат"),
TRIANGLE("Треугольник"),
RECTANGLE("Прямоугольник")
;
private String name;
FigureNames( String name ) {
this.name = name;
}
public String getName() {
return name;
}
}
| true |
f1049a805903b8249bca82833f821997f6ed24fd | Java | jimbarritt/bugsim | /src/main/java/com/ixcode/bugsim/view/map/MapImageView.java | UTF-8 | 5,999 | 2.453125 | 2 | [] | no_license | /**
* (c) planet-ix ltd 2005
*/
package com.ixcode.bugsim.view.map;
import com.ixcode.framework.swing.*;
import javax.swing.*;
import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileNotFoundException;
im... | true |
1196475d4c670b2ab521a8b584afa738e789b5c7 | Java | quantrocket-llc/ibapi | /samples/DdeSocketBridge/src/main/java/com/ib/api/dde/utils/ExecutionsUtils.java | UTF-8 | 4,051 | 2.203125 | 2 | [] | no_license | /* Copyright (C) 2019 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
* and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. */
package com.ib.api.dde.utils;
import java.util.ArrayList;
import com.ib.api.dde.socket2dde.data.ExecutionDat... | true |
d8a293800574dfab13e1670737e484fe53c443f2 | Java | lywszh/chat | /src/main/java/com/kinoymir/chat/entity/enums/RemindTime.java | UTF-8 | 151 | 1.867188 | 2 | [] | no_license | package com.kinoymir.chat.entity.enums;
/**
* 提前提醒时间类型
*/
public enum RemindTime {
oneHour,threeHour,fiveHour,oneDay,threeDay
}
| true |
b729f0e40cf0430daadd517ab904c603118ff1c3 | Java | JinbaoWeb/ACM | /C++/TextNumberConversion.java | UTF-8 | 3,696 | 3.53125 | 4 | [] | no_license | package com.zf.s2; //创建一个包
import java.util.Scanner;
public class TextNumberConversion{ //操作数制转换的类
public static int NumberToTen(int beforeConversion,String number){ //其他进制转成十进制
double result = 0; //声明转换后的数值
String subString;
for (int i = 0; i < number.length(); i++){ //根据字符串的长度循环获得单个元素
subString = number.... | true |
6834633fe03216c038bd2286b0447dfcbe5940b3 | Java | 786991884/sxnd-study | /web/Easyui/src/main/java/servlet/ProvinceServlet.java | UTF-8 | 2,024 | 2.515625 | 3 | [] | no_license | package servlet;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONArray;
impo... | true |
6d8233d039e90c29dd7c22be995060fee8fa83d8 | Java | rkprakash/fineZoomJavaTraining | /finezoom-java-may2018/src/com/finezoom/training/java/col/llist/RemoveElement.java | UTF-8 | 1,014 | 3.5625 | 4 | [] | no_license | package com.finezoom.training.java.col.llist;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
/**
* Remove the element and index
*
*/
public class RemoveElement {
public void remove() {
List<Integer> inputValue = new LinkedList<Integer>();
Scanner scan = new Scanne... | true |
6ce651b5a0dc353d576b5be2af6a1e157349f741 | Java | ueyudiud/FLE | /src/main/java/farcore/data/EnumSlabState.java | UTF-8 | 2,497 | 2.359375 | 2 | [] | no_license | /*
* copyright 2016-2018 ueyudiud
*/
package farcore.data;
import java.util.function.Function;
import javax.annotation.Nullable;
import nebula.common.util.Properties;
import nebula.common.util.Properties.EnumStateName;
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.util.EnumFa... | true |
e2cb2e6ecd7ccb881dae36176485141c62cc29e1 | Java | cristianelopez/unq-devapp | /src/_back/clientesSoap/src/ar/edu/unq/wannaplay/ClientSoapClient.java | UTF-8 | 1,611 | 2.4375 | 2 | [] | no_license | package ar.edu.unq.wannaplay;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPMessage;
public class ClientSoapClient extends SoapClient {
public static void main(final String args[]) {
try {
SOAPMessage message... | true |
58896ff7ed50e04a352fab09550d61ce11ce0271 | Java | httuyen/TMASolutions-MusicManager | /Client/src/main/java/com/crud/SongCRUD.java | UTF-8 | 5,349 | 2.375 | 2 | [] | no_license | package com.crud;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpEntity;
... | true |
9b204be10723dd271c3f66b093ccd5eeecdbd250 | Java | maoruibin/pgy.flight | /app/src/main/java/com/moji/daypack/ui/webview/WebViewActivity.java | UTF-8 | 5,381 | 1.984375 | 2 | [
"MIT"
] | permissive | package com.moji.daypack.ui.webview;
import android.annotation.SuppressLint;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
im... | true |
b4e5b372520e1a298e5a0c4536363676bae65380 | Java | arquimedesjr/app_muambyte | /src/br/com/muambyte/modelo/Carrinho.java | UTF-8 | 770 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package br.com.muambyte.modelo;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Carrinho {
@Id
@GeneratedValue
private int idCarrinho;
private double frete, qtdPeca, valorTotal;
public int getIdCarrinho() {
return idCarrinho;
}
pub... | true |
ad87f075ce4a5aac1c04c7a8b2f2ae5c07997c7c | Java | elenice2014/helpdesk | /helpdesk/src/main/java/br/com/unip/helpdesk/service/UsuarioService.java | UTF-8 | 632 | 2.09375 | 2 | [] | no_license | package br.com.unip.helpdesk.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.com.unip.helpdesk.model.Usuario;
import br.com.unip.helpdesk.repository.UsuarioRepository;
@Service
public class UsuarioService {
@Autowired
private Usuario... | true |
5e40b9f9492112dcc43ea3f4114277a1e5a9915c | Java | xiaobailalala/recipeSystem | /src/main/java/com/smxy/recipe/service/impl/ArticleCommentServiceImpl.java | UTF-8 | 4,866 | 1.882813 | 2 | [] | no_license | /**
* Copyright © 2018 eSunny Info. Developer Stu. All rights reserved.
* <p>
* code is far away from bug with the animal protecting
* <p>
* ┏┓ ┏┓
* ┏┛┻━━━┛┻┓
* ┃ ┃
* ┃ ━ ┃
* ┃ ┳┛ ┗┳ ┃
* ┃ ┃
* ┃ ┻ ┃
* ┃ ┃
* ┗━┓ ┏━┛
* ┃ ┃神兽保佑
* ┃ ┃代码无BUG!
* ┃ ┗━━━┓
* ┃ ┣... | true |
33f1ac3afb3e0c3bfcd2d36d585042e216107a1f | Java | KrishnaKTechnocredits/SeleniumTechnoMar2021 | /src/madhavi_Raut/Assignment_11_20/TestCase_14/TestCase_04/Displayed.java | UTF-8 | 1,395 | 2.703125 | 3 | [] | no_license | package madhavi_Raut.Assignment_11_20.TestCase_14.TestCase_04;
//1. validate visible button functionality click on button and validate button is displayed or not and vice versa
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;... | true |
c45fcaf53051bd4b9e9dbcf9259ade34dc324d66 | Java | ljw4101/OOP | /src/com/hanbit/oop/serviceImpl/LeapYearService.java | UTF-8 | 257 | 2.703125 | 3 | [] | no_license | package com.hanbit.oop.serviceImpl;
public class LeapYearService {
public String execute(int year){
String result = "";
if((year%4==0 && year%100 != 0) || year%400==0){
result = "윤년";
}else{
result = "평년";
}
return result;
}
}
| true |
02261ecfb638e615072c83b06150bc464a7bb5c6 | Java | VRER1997/MyCam | /src/View/YYmanager.java | GB18030 | 5,763 | 2.03125 | 2 | [] | no_license | package View;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.swt.widg... | true |
b85fc77ca643e71157dcf621bff45b63ce6ce6b5 | Java | littlewulei/SCOS | /app/src/main/java/es/source/code/model/OrderTable.java | UTF-8 | 735 | 2.453125 | 2 | [] | no_license | package es.source.code.model;
/**
* Created by LEI on 2017/10/17.
*/
import java.util.ArrayList;
import java.util.List;
import es.source.code.activity.OrderFragment;
import es.source.code.model.Food;
public class OrderTable{
final List<Food> orderfood = new ArrayList<>();
int orderNum = 0;
float price =... | true |
606044a8992eb5b140e48ab7933925a7ac822231 | Java | ox-it/sakai | /search/solr/impl/src/test/java/org/sakaiproject/search/indexing/TaskMatcher.java | UTF-8 | 631 | 2.515625 | 3 | [
"LicenseRef-scancode-generic-cla",
"ECL-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | package org.sakaiproject.search.indexing;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
/**
* Simple hamcrest matcher checking that a Task has a specific type.
*
* @author Colin Hebert
*/
public class TaskMatcher extends BaseMatcher<Task> {
private final String taskType;
public TaskMa... | true |
60c50aca00d7eb84d7796ed8f95bee3551f016f1 | Java | BestInTest/BitCore-plugin | /src/main/java/pl/BestInTest/BitCore/Modules/AntyProxy/Data/Cache.java | UTF-8 | 6,383 | 2.546875 | 3 | [] | no_license | package pl.BestInTest.BitCore.Modules.AntyProxy.Data;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;
public class Cache {
//------------------//| //------------------//| //------------------//|
// Nowy system cache//| // Nowy system cache//| // Nowy system cache//|
//-... | true |
a572f121de528a99e576c1480221886aa13c8074 | Java | gskebin/Workspace | /0602Day10/src/Circle/Point.java | UTF-8 | 185 | 2.5625 | 3 | [] | no_license | package Circle;
public class Point {
private int x , y ;
public Point(int a , int b ){
x = a;
y = b;
}
public String toString(){
return "Point("+x+","+y+")";
}
}
| true |
4e26e24c6a09b28bfea186a966a4d2b10496ad38 | Java | mvmn/learnjava_addressbook | /addressbook-api/src/main/java/x/mvmn/learn/java/addressbook/api/model/Address.java | UTF-8 | 281 | 2.09375 | 2 | [] | no_license | package x.mvmn.learn.java.addressbook.api.model;
public interface Address {
public long getId();
public String getCountry();
public String getRegion();
public String getCity();
public String getStreet();
public String getBuilding();
public String getAppartment();
}
| true |
abdae28922e7643b77e276e7b15ea314c33d8f09 | Java | opssemnik/FunModVannila | /java/FunMod/struturas/WorldGenBowserCastle.java | UTF-8 | 804,109 | 2.34375 | 2 | [] | no_license | package FunMod.struturas;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator;
public class WorldGenBowserCastle extends WorldGenerator
{
protected Block[] GetValidSpawnBlockss() {
retur... | true |
f91001767b62972ce71a72df7815ad52a4a2d021 | Java | techaftab/quotes | /app/src/main/java/com/quotesin/quotesin/adapter/AdsPagerAdapterSlider.java | UTF-8 | 2,885 | 1.90625 | 2 | [] | no_license | package com.quotesin.quotesin.adapter;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.fragment.app.FragmentActivity;
import androidx.fragment.app.FragmentTransaction;
import androidx.viewpager.widget.PagerAdapter;
import android.util.Log;
import android.view.LayoutInflater;
import andro... | true |
cc08eb8b2e4f40a939fe45e3d7fd2c8e1a1accc5 | Java | fabian-braun/reignOfDke | /reignOfDKE/AbstractRobotType.java | UTF-8 | 1,140 | 2.875 | 3 | [
"MIT"
] | permissive | package reignOfDKE;
import java.util.Random;
import battlecode.common.GameActionException;
import battlecode.common.RobotController;
public abstract class AbstractRobotType {
protected RobotController rc;
protected Random randall;
/**
* this constructor must be called by any extending class
*
* @param rc
... | true |
a10d32186caa252aa746ebabcb86ce763e40c605 | Java | reverseengineeringer/com.linkedin.android | /src/com/google/android/gms/ads/internal/client/AdSizeParcel.java | UTF-8 | 4,856 | 1.757813 | 2 | [] | no_license | package com.google.android.gms.ads.internal.client;
import android.content.Context;
import android.content.res.Resources;
import android.os.Parcel;
import android.util.DisplayMetrics;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.internal.util.client.zza;
import com.google.android.gms.com... | true |
574fb824d0fe2fb5f3662c2e1d759855196bd024 | Java | shochberg13/AdventOfCode | /AdventOfCode2016/src/AdventOfCode2016/problem02/Problem02a.java | UTF-8 | 1,866 | 3.5 | 4 | [] | no_license | package AdventOfCode2016.problem02;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Problem02a {
private Scanner scanner;
public Problem02a() throws FileNotFoundException {
File file = new File(
"C:\\Users\\S... | true |
19c5e3d40ab4ee9c6dd90d34bb19049f9b71a30b | Java | classli/Tetris | /app/src/main/java/com/sven/tetris/biz/TeterisPresenter.java | UTF-8 | 19,624 | 2.3125 | 2 | [] | no_license | package com.sven.tetris.biz;
import android.text.TextUtils;
import com.sven.tetris.ViewInterface;
import com.sven.tetris.model.Cell;
import com.sven.tetris.model.TetrisFactory;
import com.sven.tetris.model.Tetromino;
import com.sven.tetris.util.Constant;
import org.json.JSONArray;
import org.json.JSONException;
imp... | true |