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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f4066f78644be60ba4f80fe4f57a29fb18b5606b | Java | aunzamayo/JumpOfNewWorld_Project | /src/aun/manager/MonsterManager.java | UTF-8 | 3,272 | 2.421875 | 2 | [] | no_license | package aun.manager;
import java.util.ArrayList;
import java.util.Random;
import org.andengine.entity.scene.Scene;
import aun.activity.GameJumpActivity;
import aun.object.GameObject;
import aun.object.Monster;
import aun.object.monster.Monster_Test2_in_Sky_village_1;
import aun.object.monster.Monster_Test3_in_Sky_vi... | true |
c3975e618a23a6e6a2701ddd2d7060cae3e0c8a6 | Java | panda2025/GitToolBox | /GitToolBox/src/main/java/zielu/gittoolbox/ui/projectview/GitRepositoryFinder.java | UTF-8 | 2,697 | 2.046875 | 2 | [
"CC-BY-3.0",
"Apache-2.0"
] | permissive | package zielu.gittoolbox.ui.projectview;
import com.google.common.collect.ImmutableSet;
import com.intellij.ide.projectView.ProjectViewNode;
import com.intellij.ide.projectView.impl.ProjectRootsUtil;
import com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode;
import com.intellij.openapi.diagnostic.Logger;
import ... | true |
a9152d5350d670a229bc249ec7041862b8fc3503 | Java | achivestar/spring_study | /spring_di_aop/src/main/java/study/spring/aop/AspectTestInterface.java | UTF-8 | 91 | 1.601563 | 2 | [] | no_license | package study.spring.aop;
public interface AspectTestInterface {
void interfaceTest();
}
| true |
4af44bb248acc966ef097666ad33c2c65b4db4b2 | Java | marcinogo/robot | /src/main/java/edition/academy/seventh/security/AuthenticationRestController.java | UTF-8 | 3,648 | 2.53125 | 3 | [] | no_license | package edition.academy.seventh.security;
import edition.academy.seventh.security.request.LoginForm;
import edition.academy.seventh.security.request.RegisterForm;
import edition.academy.seventh.security.response.JwtResponse;
import edition.academy.seventh.security.response.ResponseMessage;
import org.slf4j.Logger;
imp... | true |
1930592da12eb2e2844fde30e196bd8f283e42a1 | Java | TianZonglin/MaizeMeeting | /src/register/Login.java | UTF-8 | 1,607 | 2.203125 | 2 | [] | no_license | package register;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;
import org.util.DbBean;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.sun.rowset.CachedRowSetImpl;
public class Login extends ActionSupport{
private String usern... | true |
5747539100e880ce4b9f3b6854d8daea107cfd20 | Java | CCNetMC/Gods | /src/test/java/GodsTest.java | UTF-8 | 3,486 | 2.296875 | 2 | [] | no_license | package test.java;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.ArrayList;
import org.bukkit.Server;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginManager;
import org.bukkit... | true |
d98cfe304576a8ac56274c1d05da3c490eeec778 | Java | priyanka66/JustCoding | /Leetcode/src/Easy/RemoveElement.java | UTF-8 | 991 | 3.671875 | 4 | [] | no_license | package Easy;
import java.lang.reflect.Array;
import java.util.Arrays;
public class RemoveElement {
public static int removeElement(int[] nums, int val){
int count = 0;
int i ;
if (nums.length == 0) return 0;
for (i =0; i< nums.length; i++){
if (nums[i] != val) {
... | true |
1b07287764d7406262028e13e674549bacdb6ab7 | Java | yuanziyi1996/suanfa | /排序算法/src/选择排序.java | UTF-8 | 580 | 3.40625 | 3 | [] | no_license | import java.util.Arrays;
public class 选择排序 {
public static void selectSort(int [] arr){
int length = arr.length;
for (int i = 0; i < length-1; i++) {
int min = i;
for (int j = i+1; j <length ; j++) {
if(arr[j]<arr[min]){
min =j;
... | true |
a06a4079ae65e3cfb4bf9443a0af90b0c39ef6a0 | Java | lxdd/violation-applet | /src/main/java/com/auto/applet/violation/common/service/BaseService.java | UTF-8 | 2,602 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package com.auto.applet.violation.common.service;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.web.client.RestTemplate;
import com.auto.applet.violation.common.ut... | true |
ace6842f118d7472f71ca9fed13ae1d3dda30792 | Java | MChandrakumar95/CS3004_Network_Computing | /CS3004_Network_Computing_Coursework/src/MainProgram.java | UTF-8 | 1,564 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.Random;
/**
* @author 1442877
* <p>
* This class is used to run the client side code.
*/
public class MainProgram {
private static final String TAG = "MainProgram_Class";
public s... | true |
4467495ad71c489efe2d6bf450dbce4ec61f376f | Java | weichen19930711/apoeafm | /src/main/java/com/perficient/library/core/repository/DamagedRecordRepository.java | UTF-8 | 600 | 1.953125 | 2 | [] | no_license | package com.perficient.library.core.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import com.perficient.library.core.model.DamagedRecord;
impor... | true |
a46cd6f62278c28ea983b20e25779634663f4f1e | Java | SummerShoohaw/INFO7250_FinalProject | /src/main/java/datapreprocess/HeroJoinMapper.java | UTF-8 | 762 | 2.28125 | 2 | [] | no_license | package datapreprocess;
import java.io.IOException;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
public class HeroJoinMapper extends Mapper<LongWritable, Text, IntWritable, Text>{
private IntWritab... | true |
96de6f7d5e210759ff4b7271a15272d75cfd751a | Java | luhanlin/concurrent-design | /src/main/java/com/luhanlin/concurrentdesign/bus/SynEventBus.java | UTF-8 | 1,742 | 2.859375 | 3 | [] | no_license | package com.luhanlin.concurrentdesign.bus;
import java.util.concurrent.Executor;
/**
* @description: 同步 EventBus
* @author: Mr.Lu
* @create: 2019-03-11 15:10
**/
public class SynEventBus implements Bus{
private final Register register;
private String busName;
private static final String DEFAULT_TOP... | true |
698e550322eb75a5796d644d0b819647fb58635e | Java | kimffy24/EJoker_demo | /src/main/java/pro/jiefzz/demo/ejoker/transfer/debug/DAssemblier.java | UTF-8 | 703 | 1.921875 | 2 | [] | no_license | package pro.jiefzz.demo.ejoker.transfer.debug;
import pro.jk.ejoker.common.context.annotation.context.Dependence;
import pro.jk.ejoker.common.context.annotation.context.EInitialize;
import pro.jk.ejoker.common.context.dev2.IEJokerSimpleContext;
import pro.jk.ejoker.infrastructure.impl.AbstractMessageHandler;
public a... | true |
e1af28da9cc52c97bf6a1763b89eb1bb8f493b7c | Java | Starodubenko/LiveWater_Project | /src/main/java/com/epam/star/dao/util/EntityFromParameters/GetRefFieldOptions.java | UTF-8 | 3,458 | 2.359375 | 2 | [] | no_license | package com.epam.star.dao.util.EntityFromParameters;
import com.epam.star.dao.H2dao.*;
import com.epam.star.entity.*;
import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class GetRefFieldOptions {
public static M... | true |
7eb860f40c6ed7c4429ba79f125c3d5f7a3e7db5 | Java | kady1711/CS584---Enterprise-Web-Application | /HW5_Patel,Kripa/Assignment_kp/WEB-INF/classes/DealMatches.java | UTF-8 | 1,408 | 2.359375 | 2 | [] | no_license | import javax.servlet.http.*;
import javax.servlet.*;
import java.util.*;
import java.io.*;
public class DealMatches implements Serializable {
ArrayList<String> fileContents ;
public HashMap getPromoProducts()
{
String p = null;
MySqlDataStoreUtilities dbInstance = new MySqlDataStoreUtilities();
dbInstance... | true |
1216d3cd55c882b1f59bb17fe2f4e2b6c309da06 | Java | q2p/VioletR34Desktop | /src/q2p/violet34desktop/windows/ideas/Ideas.java | UTF-8 | 6,431 | 2.4375 | 2 | [] | no_license | package q2p.violet34desktop.windows.ideas;
import java.awt.Graphics;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedList;
import q2p.violet34desktop.Assist;
import q2p.violet34desktop.Colors;
import q2p.violet34desktop.Fon... | true |
68ddba3dbf44fdacccbbd0badf038d6b7b446388 | Java | Laura-Rodrigues/Football-Manager | /src/Controller/SerializeData.java | UTF-8 | 4,982 | 3.109375 | 3 | [] | no_license | package Controller;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import Model.*;
import Model.Game.*;
import java.lang.String;
import Controller.Parser.*;
public class Se... | true |
2ea2c33ec6cf920700d2e2d9c057646880d9b394 | Java | belenriquez/TPO_IOO_final | /src/model/ValorExacto.java | UTF-8 | 239 | 2.375 | 2 | [] | no_license | package model;
public class ValorExacto extends Valor {
private int valor;
public int devolverValor() {
return 0;
}
public int getValor() {
return valor;
}
public void setValor(int valor) {
this.valor = valor;
}
}
| true |
5487626b66e669a106163cf1658042100b658e30 | Java | sabrynaasousa/Design-Patterns | /State/MarioFogo.java | UTF-8 | 263 | 2.734375 | 3 | [] | no_license | public class MarioFogo implements MarioSate{
public MarioSate pegarCogumelo(){
System.out.println("Mário ganhou 200 pontos");
return this;
}
public MarioSate pegarFlor(){
System.out.println("Mário ganhou 300 pontos");
return this;
}
}
| true |
ab760905f9924a00f0e2b1a229f3b766350a1d0b | Java | kolorowerowe/Inzynieria-Oprogramowania-Project | /src/main/java/com/github/swapbook/model/Specimen.java | UTF-8 | 4,443 | 2.140625 | 2 | [
"BSD-2-Clause"
] | permissive | package com.github.swapbook.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import javax.persistence.*;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
@JsonIgnoreProper... | true |
1e22241cb9897d4a907036bfb682b889c859391a | Java | ufpa-engenharia-software/reserva-veiculos-web | /src/main/java/br/ufpa/facomp/veiculos/service/criteria/UsuarioCriteria.java | UTF-8 | 13,681 | 2.09375 | 2 | [] | no_license | package br.ufpa.facomp.veiculos.service.criteria;
import br.ufpa.facomp.veiculos.domain.enumeration.Identificador;
import br.ufpa.facomp.veiculos.domain.enumeration.NivelCNH;
import br.ufpa.facomp.veiculos.domain.enumeration.PerfilUsuario;
import java.io.Serializable;
import java.util.Objects;
import tech.jhipster.ser... | true |
70d2b69a18a9dd01072be686cdb9d1871cf61fbb | Java | dlswo/Algorithm_ | /src/level1/MockTest.java | UTF-8 | 1,873 | 3.4375 | 3 | [] | no_license | package level1;
import java.util.ArrayList;
import java.util.Arrays;
public class MockTest {
// 모의고사
// 코드 에디터의 단축키를 설정하는 옵션입니다. 선호하는 에디터 옵션이 없다면 sublime을 선택해 주세요.
// 문제 설명
// 수포자는 수학을 포기한 사람의 준말입니다. 수포자 삼인방은 모의고사에 수학 문제를 전부 찍으려 합니다. 수포자는 1번 문제부터 마지막 문제까지 다음과 같이 찍습니다.
//
// 1번 수포자가 찍는 방식: 1, 2, 3, 4, 5, 1... | true |
a3bfa6f3e3580bfa6d293509ccc6abdb0ef7b811 | Java | RummeniggePires/Projeto-Java | /TrabalhoLocadora/src/view/JFCliente.java | UTF-8 | 11,927 | 2.234375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package view;
/**
*
* @author Rummenigge
*/
public class JFCliente extends javax.swing.JFrame {
/**
* Creates new form Cl... | true |
0d87a8a796ea68a23bc97230f263c8a035f10b95 | Java | z466459262/springboot | /src/main/java/com/zwz/d/enable/defaultenable/Runner.java | UTF-8 | 565 | 2.15625 | 2 | [] | no_license | package com.zwz.d.enable.defaultenable;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import java.util.concurrent.TimeUnit;
/**
* Created by zhouwenzhe on 16/12/17.
*/
@Component
public class Runner {
@Async
public void run() {
for (int i... | true |
8a6f1be7f74b994d890e33ad7b9d134f60c3160c | Java | natanmaia/springestudo | /springestudo/src/main/java/br/com/natanmaia/data/vo/PessoaVO.java | UTF-8 | 2,690 | 2.3125 | 2 | [] | no_license | package br.com.natanmaia.data.vo;
import java.io.Serializable;
import org.springframework.hateoas.ResourceSupport;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.github.dozermapper.core.Mapping;
@JsonPropertyOrder({"id", "endereco", "nome... | true |
9bf4beee30a54464f948cc7e8208eecd306dac23 | Java | a64307410/junggle | /library-plugin/src/main/java/com/okwyx/plugin/core/PluginDynamicImpl.java | UTF-8 | 2,370 | 2.078125 | 2 | [] | no_license | package com.okwyx.plugin.core;
import android.app.Application;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.os.Build;
import com.okwyx.plugin.utils.RefUtil;
import java.io.File;
import java.lang.reflect.Field;
public class PluginDynamicImpl implements PluginIDynamic {
p... | true |
7f3f1b0a08babc8e56e1ee986495c95a527e7ed2 | Java | Faelivrinx/EvFinders | /app/src/main/java/com/example/dominik/evfinders/command/EventCommand.java | UTF-8 | 5,526 | 2.375 | 2 | [] | no_license | package com.example.dominik.evfinders.command;
import android.os.Parcel;
import android.os.Parcelable;
import com.bluelinelabs.logansquare.LoganSquare;
import com.example.dominik.evfinders.database.pojo.Event;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
im... | true |
eb8cc2204b7f54c9615d6cfb6e1360a3ce3e9346 | Java | pk1397117/javase01 | /src/collection/map/Demo05.java | GB18030 | 389 | 3.234375 | 3 | [] | no_license | package collection.map;
import java.util.EnumMap;
public class Demo05 {
public static void main(String[] args) {
EnumMap<Weekday,Employee> map = new EnumMap<>(Weekday.class)
{{
put(Weekday.MONDAY,new Employee("",15));
put(Weekday.THURSDAY,new Employee("",18));
put(Weekday.WEDNESDAY,new Employee("",... | true |
9d871b00133bfa754651bc930a0bfefc17a2e4b0 | Java | muneer37/ReturnTEst | /Project/src/Basics/LoginPage.java | UTF-8 | 518 | 2.15625 | 2 | [] | no_license | package Basics;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;
public class LoginPage {
@Test
public void testLogin()
{
String browser="chrome";
if(browser.equalsIgnoreCase("chrome"))
{... | true |
050b2b84d4f66527010d6e78fa4c2e5189e29261 | Java | ankitraj827/codechef-practice-programs | /codechef/SEGM.java | UTF-8 | 878 | 3.140625 | 3 | [] | no_license | import java.util.*;
class SEGM
{
public static void main(String []rk)
{
Scanner sc=new Scanner(System.in);
int n=Integer.parseInt(sc.nextLine());
for(int i=0;i<n;i++)
{
String str=sc.nextLine();
int m=str.indexOf('1');
int m1=str.indexOf('0');
if(m<0)
{
System.out.println("NO");
}
els... | true |
f4128e47ad96f467bd969405d0d691092981558c | Java | AlexRokalo/KnowMeApp | /domain/src/main/java/alex/mrrok/domain/usecases/CreateUserInfoUseCase.java | UTF-8 | 868 | 2.234375 | 2 | [] | no_license | package alex.mrrok.domain.usecases;
import javax.inject.Inject;
import alex.mrrok.domain.entity.UserInformation;
import alex.mrrok.domain.executors.PostExecutionThread;
import alex.mrrok.domain.repositories.UserRepository;
import alex.mrrok.domain.usecases.baserusecase.BaseUseCase;
import io.reactivex.Completable;
p... | true |
c36709f66a87191b32a78747c1bd83ffe98974bc | Java | guoliang73133795/repo4 | /dubboDemo/consumer/src/main/java/com/shengfa/controller/HelloController.java | UTF-8 | 680 | 2.078125 | 2 | [] | no_license | package com.shengfa.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.shengfa.service.HelloService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* <p>Title:He... | true |
7ca360ef89cd5e06087446109f763c18ba85fa1a | Java | JackAuxLanternes/El-Presidente | /src/main/java/fr/elpresidente/game/resources/resource/Resource.java | UTF-8 | 429 | 1.953125 | 2 | [] | no_license | package fr.elpresidente.game.resources.resource;
import fr.elpresidente.game.builders.LoadFromSaveBuilder;
import org.json.simple.JSONObject;
public interface Resource extends LoadFromSaveBuilder {
int getSize();
void setSize(int size);
void addSize(int size);
void subtractSize(int size);
voi... | true |
cb61cee0cc25f7e2a5079c2bad6be9ff40358cbf | Java | ErebusMaligan/Misc | /JSoupTest/src/scraper/text/GameFAQsSystemDescriptionScraper.java | UTF-8 | 1,357 | 2.65625 | 3 | [
"MIT"
] | permissive | package scraper.text;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
/**
* @author Daniel J. Rivers
* 2015
*
* Created: Jul 27, 2015, 4:46:44 AM
*/
public class Gam... | true |
6979a0dab3dc14ce04b55ee29b9f2d11bfdee99b | Java | 269/2019RobotCode | /src/main/java/frc/robot/subsystems/rearIntakeRotation_subsystem.java | UTF-8 | 2,093 | 2.15625 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
2c2102871b7c52c68e4ce3d533493612bd1d7460 | Java | maybeLab/Lovest | /Lovest/push/src/main/java/com/digo/push/domestic/receiver/OppoPushService.java | UTF-8 | 1,556 | 2.109375 | 2 | [] | no_license | package com.digo.push.domestic.receiver;
import android.content.Context;
import com.coloros.mcssdk.PushService;
import com.coloros.mcssdk.mode.AppMessage;
import com.coloros.mcssdk.mode.CommandMessage;
import com.coloros.mcssdk.mode.SptDataMessage;
import com.digo.platform.logan.mine.Logz;
import com.google.gson.Gson... | true |
3117de1a605edf4322109dd5f4fca2cae7bb3d4a | Java | dibyendu-ganguly/Capgemini_Internship | /LabBook/Lab1/AllExercise/src/com/capgemini/lab1allexercise/Exercise_7.java | UTF-8 | 1,309 | 4.1875 | 4 | [] | no_license | /*
*
* Exercise 7: Create a method to check if a number is an increasing number
* Method Name checkNumber
* Method Description Check if a number is an increasing number
* Argument int number
* Return Type boolean
* Logic A number is said to be an increasing number if no digit is exceeded by th... | true |
007e1fd082d8c846ac15b8dc1c6b8104adcfa337 | Java | ceharris/proto-configurator | /src/main/java/ceh/demo/ScriptingDemo.java | UTF-8 | 615 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package ceh.demo;
import java.net.URL;
import ceh.demo.configuration.JaxbConfigurationLoader;
public class ScriptingDemo {
public static void main(String[] args) throws Exception {
URL config = ConfiguratorDemo.class.getClassLoader().getResource(
"configuration.xml");
URL rules = ConfiguratorDemo.... | true |
67d32d6cb6f539bb3e6f19193a647342f9cbf73d | Java | lijiangjiajun/work | /不等式数列/src/Main.java | UTF-8 | 2,614 | 3.46875 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int k = scanner.nextInt();
long[][] dp = new long[n+1][n+1];
if (n == 1){
... | true |
bfe6f2d05ad9a192ae9b6f23d1f6169c1c19c4a3 | Java | ersefa/P2 | /src/lps/pr2/commands/MoveCommand.java | UTF-8 | 2,350 | 3.5 | 4 | [] | no_license | package lps.pr2.commands;
import java.util.Scanner;
import lps.pr2.Game;
import lps.pr2.Parser.Direction;
/**
* The Movement command. It parses the input in order to move the player in a
* given direction. This direction is stored in order to execute and undo this
* command.
*
* @see lps.pr2.Parser.Direction
... | true |
a31d1d2de367cceadc9be22dd24b07f5022ee942 | Java | JoshYoung-Cannon/Assesment3 | /src/main/java/com/qa/swampgame/PointOfInterest.java | UTF-8 | 2,671 | 3.34375 | 3 | [] | no_license | package com.qa.swampgame;
public class PointOfInterest {
private Integer x = null, y = null;
private int startMin, startMax, z, scale = 1000;
private int[] distance = {0,0};
private String nameOfInterest;
/**
* PointOfInterest holds the name, distance (z) and coordinates of a goal
* relative to a player. The... | true |
6f094e1d8a2b66d095015cd47baedc3940db3f94 | Java | pythons/alita | /alita-examples/demo-service/src/test/java/top/klw8/alita/test/log4j2Test/test2/Test2.java | UTF-8 | 413 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package top.klw8.alita.test.log4j2Test.test2;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @ClassName: Test2
* @Description:
* @author klw
* @date 2018年3月15日 下午2:11:45
*/
public class Test2 {
private static Logger logger = LoggerFactory.getLogger(Test2.class);
public void doSomei... | true |
f3c79b8c2b1a8dccc34fb08cb255cbdb9f38134a | Java | markovandooren/rejuse | /src/main/java/org/aikodi/contract/Contract.java | UTF-8 | 4,150 | 3.453125 | 3 | [
"MIT"
] | permissive | package org.aikodi.contract;
import java.util.Collection;
import java.util.List;
import java.util.stream.IntStream;
/**
* A class with methods for defensive programming.
*
* @author Marko van Dooren
*/
public class Contract {
/**
* Check whether the original list would be equal to the result list if the
... | true |
a764506447e02fe295e0c649b8866c849ab960a1 | Java | tarunocean/Revision_of_CodingNinjas_JavaDSA | /src/Group2Set6/GetAllSubarrayToP.java | UTF-8 | 1,722 | 3.609375 | 4 | [] | no_license | package Group2Set6;
public class GetAllSubarrayToP {
/*
A sequence of integers N1, N2, N3, .... Nm. This sequence can generate an integer P, only if it is possible to find another sequence of integers: O1, O2, O3 .... Om such that:
Equation (1) -> O1 * N1 + O2 * N2 + .... Om * Nm = P
For this problem, you are ... | true |
b98a5d7042ca86d8b058d53ad8ee156bb41441a4 | Java | HusnaAudhora/RoutineMangerFinal | /MainActivity.java | UTF-8 | 3,994 | 2.421875 | 2 | [] | no_license | package com.example.myapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
publi... | true |
cfbe9f81052a3ce209981d16952a30b089aa31c4 | Java | lhy1234/sw-app-server | /src/main/java/com/sw/core/exception/BusinessException.java | UTF-8 | 776 | 2.546875 | 3 | [] | no_license | package com.sw.core.exception;
import com.sw.beans.ErrorEnum;
/**
* 业务异常
*/
public class BusinessException extends RuntimeException{
/**
* @Fields serialVersionUID : TODO
*/
private static final long serialVersionUID = 1L;
private Integer status;
private String msg;
public BusinessExceptio... | true |
62d0eb7aff64ad00ac4a268570cacc13529bf218 | Java | KamelZyadeh/taxi | /src/main/java/com/java/tutorial/command/impl/AccountByLogin.java | UTF-8 | 1,424 | 2.421875 | 2 | [] | no_license | package com.java.tutorial.command.impl;
import com.java.tutorial.command.Command;
import com.java.tutorial.devObjs.Page;
import com.java.tutorial.entities.Account;
import com.java.tutorial.entities.UserType;
import com.java.tutorial.exceptions.DAOException;
import com.java.tutorial.exceptions.ServiceException;
... | true |
1e7de8154c3abbb42814c08e9c4e62fb43a045d9 | Java | wook3210/rest-api-sample | /src/main/java/me/whiteship/domain/Account.java | UTF-8 | 389 | 1.945313 | 2 | [] | no_license | package me.whiteship.domain;
import lombok.*;
import javax.persistence.*;
import java.util.Date;
/**
* @author Baik KeeSun
*/
@Entity
@Getter
@Setter
public class Account {
@Id @GeneratedValue
private Long id;
private String username;
private String password;
@Lob
private String introdu... | true |
c0584f6a571ea9011af1ce917fcc6b7268c299c5 | Java | JerlyJr/PPD2019.2 | /s06e02_contato/src/Main.java | UTF-8 | 345 | 2.71875 | 3 | [] | no_license | public class Main {
public static void main(String[] args) {
Iventário iven = new Iventário(6);
iven.addItem(1,"luva", 50, 60, 90);
iven.addItem(4,"peitoral", 70, 50, 100);
iven.addItem(3,"elmo", 20, 50, 60);
iven.addItem(5,"bota", 20, 30, 80);
System.out.println(iven... | true |
917a680059252fcd842235dbf010e3de069746f2 | Java | petermcneil/musiclibrary | /app/src/main/java/petermcneil/musiclibrary/controllers/StatusController.java | UTF-8 | 842 | 2.5625 | 3 | [] | no_license | package petermcneil.musiclibrary.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import petermcneil.musiclibrary.services.StatusService;
@Con... | true |
d18af0b2138b5acb585d41f06d455ca15240b58d | Java | osmanyoy/borsa | /BorsaJava/src/com/training/borsa/reflection/PropObject2.java | UTF-8 | 698 | 2.5 | 2 | [] | no_license | package com.training.borsa.reflection;
@PropFile(fileName = "myprop2.properties")
public class PropObject2 {
@Prop(name = "server.test")
private String test;
@Prop(name = "server.mest")
private String mest;
@Prop(name = "server.cest")
private int cest;
public String getTest() {
return test;
}
public void ... | true |
c8b75fad844518e4f5b9fd57795fb94abe8f8112 | Java | slideroller/SCB | /src/me/God_Tenshi/scb/PlayerManager.java | UTF-8 | 813 | 2.578125 | 3 | [] | no_license | package me.God_Tenshi.scb;
import java.util.HashMap;
import java.util.Map;
import org.bukkit.entity.Player;
public class PlayerManager {
private Main plugin;
private Map<String, SCBPlayer> players = new HashMap<String, SCBPlayer>();
public PlayerManager(Main plugin) {
this.plugin = plugin;
}
public SCB... | true |
2696ee674f97416d618d7a08ad8815feb0cfdbb9 | Java | hakat0m/Chessboxing | /com.gumtree.android.beta/java/com/gumtree/android/auth/forgotpassword/presenter/DefaultForgotPasswordPresenter$$Lambda$1.java | UTF-8 | 829 | 1.90625 | 2 | [] | no_license | package com.gumtree.android.auth.forgotpassword.presenter;
import com.gumtree.android.services.NetworkState;
import java.lang.invoke.LambdaForm.Hidden;
import rx.functions.Action1;
final /* synthetic */ class DefaultForgotPasswordPresenter$$Lambda$1 implements Action1 {
private final DefaultForgotPasswordPresente... | true |
65972db5dd5982f30ca5f92089d798fb78a1f502 | Java | kin660066/residential-property-management-system | /src/main/java/com/sontan/rpms/service/impl/MessageServiceImpl.java | UTF-8 | 502 | 1.617188 | 2 | [] | no_license | package com.sontan.rpms.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sontan.rpms.dao.MessageDao;
import com.sontan.rpms.entity.Message;
import com.sontan.rpms.service.MessageService;
import org.springframework.stereotype.Service;
/**
* (Message)表服务实现类
*
* @author mak... | true |
b5556915682fd344b180d2337a17ce155f431c7f | Java | pratamawijaya/recyclerViewToTheRescue | /RecyclerViewDemo/app/src/main/java/org/duncavage/recyclerviewdemo/fragments/ListPagerFragment.java | UTF-8 | 3,371 | 2.203125 | 2 | [
"MIT"
] | permissive | package org.duncavage.recyclerviewdemo.fragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.PagerTabStrip;
import android... | true |
36a556c090358cb26c26bf410d351e302f900332 | Java | hishamcse/RSA-Cryptography | /RSA Cryptography/src/sample/InstructMultGenerate/MultiplicationController.java | UTF-8 | 713 | 2.421875 | 2 | [] | no_license | package sample.InstructMultGenerate;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import sample.CommonFunction;
import java.math.BigInteger;
public class MultiplicationController {
@FXML
public TextArea a, b, modulo;
@FXML
public Button btn;
... | true |
7bdc47a81ab8ca13c5363fc2c2773b2f023bcb5e | Java | AsherAngelo/springcloudpart | /feign/src/main/java/com/cnpc/client/ClientMain.java | UTF-8 | 428 | 2.046875 | 2 | [] | no_license | package com.cnpc.client;
import feign.Feign;
/**
* Created by 赵梦杰 on 2018/5/28.
*/
public class ClientMain {
public static void main(String[] args) {
HttpClient client = Feign.builder()
.contract(new MyContract())
.target(HttpClient.class,
"http://... | true |
29cf9afebbeeff48464ec97b5872581539686bc8 | Java | Zloied/CarRental | /src/main/java/com/vais/entities/Order.java | UTF-8 | 4,952 | 2.546875 | 3 | [] | no_license | package com.vais.entities;
import java.io.Serializable;
import java.sql.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.ConstructorResult;
import javax.persistence.ColumnResult;
import javax.persistence.En... | true |
8cab54fd96104a9acd784a6cab05a993939b6efe | Java | dilip8030/Test | /src/collecton/Test.java | UTF-8 | 390 | 2.609375 | 3 | [] | no_license | package collecton;
import java.util.*;
public class Test {
public static void main(String[] args) {
ArrayList<String> L= new ArrayList<String>();
L.add("Mumbai");
L.add("Delhi");
L.add("Calcutta");
L.add("Agra");
Collections.sort(L);
System.out.println(L);
String[] arr= {"Mumbai","Delhi","Agra"};
Arrays.sor... | true |
b2c1c1f09b832383779b5748faec9d8015cc3da8 | Java | STAMP-project/dspot-experiments | /benchmark/training/com/baeldung/s3/AWSS3ServiceIntegrationTest.java | UTF-8 | 4,361 | 2.34375 | 2 | [] | no_license | package com.baeldung.s3;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.model.CopyObjectResult;
import com.amazonaws.services.s3.model.DeleteObjectsRequest;
import com.amazonaws.services.s3.model.DeleteObjectsResult;
import com.amazonaws.services.s3.model.PutObjectResult;
import java.io.F... | true |
b282913b098c56a56b5b40d3d388d0c2e98b1bc1 | Java | alvindaiyan/cassava | /src/test/java/com/cassava/core/dao/createtest/CreationTest.java | UTF-8 | 1,275 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | //package com.cassava.core.dao.createtest;
//
//import com.cassava.core.dao.BaseTest;
//import com.cassava.util.ColumnFamilyCreatorUtil;
//import com.datastax.driver.core.ResultSet;
//import com.datastax.driver.core.Row;
//import org.junit.Test;
//
//import static org.junit.Assert.assertTrue;
//
///**
// * Created by y... | true |
f7b6e81faf1511ad5fbffdf343ad00ec1b918b26 | Java | VeeraPrathapSelenium/Seleniun_-15Batch | /src/Synchronization/ExplicitWait.java | UTF-8 | 1,414 | 2.1875 | 2 | [] | no_license | package Synchronization;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.sup... | true |
f83170a30d5505b004ccea8e7854192bf3e4635d | Java | zzh5301/LeetCode | /src/leetcode/binaryTree/BinaryTreeZigzagLevelOrderTraversal.java | UTF-8 | 1,482 | 3.734375 | 4 | [] | no_license | package leetcode.binaryTree;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
/**
* Created by lenovo on 2017/6/7.
*/
/*
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next ... | true |
a6bd428dcbd9d1f08d4d4cc7647c4ac2b55fcb17 | Java | maz0bk/gb_java2 | /lesson2/src/com/geekbrains/MyArraySizeException.java | UTF-8 | 202 | 2.078125 | 2 | [] | no_license | package com.geekbrains;
public class MyArraySizeException extends Exception {
@Override
public String toString() {
return "Размер массива превышает 4х4";
}
}
| true |
059809a1cc747fb4019c8ec4f9ef715e3b9a5635 | Java | UnsungHero0/portal | /src/test/java/vn/com/vndirect/business/TestCRMService.java | UTF-8 | 2,913 | 2.0625 | 2 | [] | no_license | package vn.com.vndirect.business;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import vn.com.vndirect.domain.OnlineAccount;
import vn.com.vndirect.domain.crm.leadcontract.ConvertLeadToCustomerResult;
import vn.com... | true |
ce66ca0dabcd5f1e091f47a453d2509c4f73e9ee | Java | rayhan-ferdous/code2vec | /codebase/dataset/x/763_frag1.java | UTF-8 | 293 | 2.671875 | 3 | [] | no_license | public void unmute() {
try {
user.unmute();
} catch (ManagerCommunicationException e) {
log.error("Failed to unmute participant: " + user.getUserNumber() + " due to '" + e.getMessage() + "'");
e.printStackTrace();
}
}
| true |
c60be6792c776fa4168c54028918d245b29d6cdf | Java | alexforrester/movies-now-playing | /app/src/main/java/com/digian/movies/di/AppComponent.java | UTF-8 | 385 | 1.890625 | 2 | [] | no_license | package com.digian.movies.di;
import javax.inject.Singleton;
import dagger.Component;
/**
* Created by alexforrester on 15/09/2017.
*/
@Singleton
@Component(modules = {AppModule.class, NetworkModule.class})
public interface AppComponent {
MoviesGridComponent plus(MoviesGridModule moviesGridModule);
Movie... | true |
fb45ca683047df805893285d7525582e08e80756 | Java | ziomollo/blog | /src/main/java/com/example/demo/service/PostServiceImpl.java | UTF-8 | 2,276 | 2.03125 | 2 | [] | no_license | package com.example.demo.service;
import com.example.demo.model.Post;
import com.example.demo.repository.PostRepository;
import com.example.demo.web.dto.PostDto;
import com.fasterxml.jackson.databind.JsonSerializer;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory... | true |
061d997a9f85e282a750c1662dc0c40019c929eb | Java | ebonywolf/Aulatdd | /src/game/Main.java | UTF-8 | 294 | 2.234375 | 2 | [] | no_license | package game;
import gui.Renderer;
import gui.Window;
public class Main {
public static void main(String[] args) {
Renderer rend = new Renderer();
Game game = new Game(rend);
game.PingaPonga();
(new Thread(game)).start();
Window a = new Window();
a.setRenderer(rend);
}
}
| true |
f94ef07f99f70e0d536b254a00fdba44ced91da0 | Java | bleujin/ISearcher | /src/net/ion/nsearcher/extend/BaseSimilarity.java | UTF-8 | 3,005 | 2.140625 | 2 | [] | no_license | package net.ion.nsearcher.extend;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.Terms;
import org.apache.lucene.index.TermsEnum;
import org.apache.lucene... | true |
5639b9e221436551ccceb15d119ee0decfef6d33 | Java | Xevaltan/XevMod-1.12.2 | /src/main/java/net/mcreator/xevaltansworld/creativetab/TabXevaltansWorld.java | UTF-8 | 885 | 2.015625 | 2 | [] | no_license |
package net.mcreator.xevaltansworld.creativetab;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraft.item.ItemStack;
import net.minecraft.init.Blocks;
import net.minecraft.creativetab.CreativeTabs;
import net.mcreator.xevaltansworld.ElementsXevaltan... | true |
0c200f3fe6eef81e13420d976541b960795fb3a0 | Java | arrgee23/Practice | /src/rahul/collection/Arraylist.java | UTF-8 | 744 | 3.953125 | 4 | [] | no_license | package rahul.collection;
import java.util.ArrayList;
import java.util.Iterator;
/**
* Using thre ArrayList
* @author rahul
**/
class Arraylist{
public static void main(String[] args) {
ArrayList <String> a = new ArrayList<String>();
for(int i=0;i<10;i++){
a.add(new String()+i);
}
@SuppressWarnings(... | true |
06447ddb655f0106609429053da3320e571e78c4 | Java | sergeyzhirkov/JavaRushTasks | /1.JavaSyntax/src/com/javarush/task/task07/task0719/Solution.java | UTF-8 | 779 | 3.09375 | 3 | [] | no_license | package com.javarush.task.task07.task0719;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
/*
Вывести числа в обратном порядке
*/
public class Solution {
public static void main(String[] args) throws IOException {
//BufferedReader reader =... | true |
c36758984eaace46b87d7f4b114f021fa2be56f0 | Java | hbrender/spirodvt-android-app | /app/src/main/java/com/example/incentive_spirometer_and_dvt_application/fragments/DvtFragment.java | UTF-8 | 20,495 | 1.90625 | 2 | [] | no_license | package com.example.incentive_spirometer_and_dvt_application.fragments;
/**
* Description: creates a graph of patient data as pulled from the database. Also shows a scrollable
* table of the same data
*
* Graphing software source: https://github.com/PhilJay/MPAndroidChart
*
* v1.0: 04/22/20
*/
import android.b... | true |
4786402b3f0ae54ad4f85f7239caf816dfc5caab | Java | Yiny123/USER | /app/src/main/pb_gen/com/yijianyi/protocol/UserAddress.java | UTF-8 | 27,428 | 1.765625 | 2 | [] | no_license | // Code generated by Wire protocol buffer compiler, do not edit.
// Source file: SaasModel.proto at 336:1
package com.yijianyi.protocol;
import com.squareup.wire.FieldEncoding;
import com.squareup.wire.Message;
import com.squareup.wire.ProtoAdapter;
import com.squareup.wire.ProtoReader;
import com.squareup.wire.ProtoW... | true |
cfe4af0a784cf08677982980ebbde7fe6890f2af | Java | crpeng2004/mooc_web | /src/org/mooc/utility/APICrawler.java | UTF-8 | 802 | 2.8125 | 3 | [] | no_license | package org.mooc.utility;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
/**
* @author : wuke
* @date : 20170331 7:06:09
* Title : APICrawler
* Description : Get all the content in a URL.
*/
public class APICrawler {
/**
* get all the content in the URL, ret... | true |
5d17dbc0206e3927e1b2983f678c17a759624519 | Java | Omer-Demirtas/Manport | /Backend/manport/src/main/java/com/manportq/manport/Servies/IssuesService.java | UTF-8 | 437 | 1.8125 | 2 | [] | no_license | package com.manportq.manport.Servies;
import com.manportq.manport.Model.Messages.ErrorMessage;
import com.manportq.manport.Model.Issue;
import com.manportq.manport.Repository.IssueRepository;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import org.springframework.stereotype.Service;
import java.u... | true |
d7c61c9652097092fb305d95fa24468e76fe7ebd | Java | lvyandong1/DemoOne | /app/src/main/java/com/demo/app/activity/MainActivity.java | UTF-8 | 4,710 | 2.109375 | 2 | [] | no_license | package com.demo.app.activity;
import android.content.Intent;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.LinearLayout;
import android.widget.ListView;... | true |
7ad52066081f0f3f233338f5289372e3f786f44b | Java | surmurat/JavaBootCamp | /MuratSurenlerU1Capstone/MuratSurenlerU1Capstone/src/test/java/com/example/MuratSurenlerU1Capstone/Dao/TShirtsDaoTest.java | UTF-8 | 5,311 | 2.546875 | 3 | [] | no_license | package com.example.MuratSurenlerU1Capstone.Dao;
import com.example.MuratSurenlerU1Capstone.Model.TShirts;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context... | true |
47fc12ab833e3ac0295adcdb34d810c2fdae62cd | Java | apache/qpid-broker-j | /broker-plugins/query-engine/src/test/java/org/apache/qpid/server/query/engine/parsing/expression/function/numeric/RoundExpressionTest.java | UTF-8 | 6,510 | 2.359375 | 2 | [
"Apache-2.0",
"GPL-2.0-only",
"CDDL-1.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | 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"); y... | true |
7ed8ae059e12c773d19600a4900bcfb63eb744d3 | Java | freemo/AetherMUD-coffee | /src/main/java/com/syncleus/aethermud/game/Items/MiscMagic/StdScroll.java | UTF-8 | 11,150 | 2 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2017 Syncleus, Inc.
* with portions copyright 2004-2017 Bo Zimmerman
*
* 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... | true |
e49ab9fd55dcb1c0e6abdf3a072384620b5be347 | Java | AlexRychkov/stock_exchange | /src/main/java/com/exchange/app/factory/OutputDisruptorFactory.java | UTF-8 | 1,221 | 2.21875 | 2 | [] | no_license | package com.exchange.app.factory;
import com.exchange.app.disruptor.output.Marshaller;
import com.exchange.app.event.out.OutgoingEvent;
import com.lmax.disruptor.BlockingWaitStrategy;
import com.lmax.disruptor.RingBuffer;
import com.lmax.disruptor.dsl.Disruptor;
import com.lmax.disruptor.dsl.ProducerType;
import com.l... | true |
18b4b8f586ede183f8021c38076ff8473717a1f5 | Java | nutzam/nutz | /src/org/nutz/dao/impl/sql/WorkingStack.java | UTF-8 | 1,739 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | package org.nutz.dao.impl.sql;
import java.util.ArrayList;
import java.util.List;
import org.nutz.lang.Strings;
import org.nutz.lang.util.LinkedIntArray;
/**
* It will record the date like
*
* <pre>
* chain: [str1][...][str2][...][...][str3]
* indexes [1,3,4] // 0 base indexes
* </pre>
*/
c... | true |
5a9a67b4ac072a9c97c9ffb2793b3ece0ee571d6 | Java | DoubleYang168/HBaseDemo | /src/main/java/cn/edu/hhu/dingy/AppHuaihebenbuThread.java | UTF-8 | 3,129 | 2.46875 | 2 | [] | no_license | package cn.edu.hhu.dingy;
import cn.edu.hhu.dingy.directory.TraverseDirectoryFiles;
import cn.edu.hhu.dingy.hdf5.ReadHdf5Files;
import cn.edu.hhu.dingy.hdf5.ReadLatLon;
import cn.edu.hhu.dingy.inceptor.InceptorDML;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class AppHuaiheb... | true |
507c2092ea9851fea72d0e3da1ec67c691a2b169 | Java | AOKarabelnik/2GisRegionsTestCase | /src/test/java/com/DoubleGis/CountryCodeTestCase.java | UTF-8 | 781 | 2.328125 | 2 | [] | no_license | package com.DoubleGis;
import io.restassured.RestAssured;
import java.util.ArrayList;
import static org.hamcrest.Matchers.is;
public class CountryCodeTestCase {
private static final int COUNT_REGIONS_RU = 13;
public static void countryCodeCheck(){
RestAssured
.given()
... | true |
7ad845d5d495d2d200f19850f65d9fcbb265745a | Java | GalYehezkel/Arkanoid-game | /arkanoid/CountdownAnimation.java | UTF-8 | 1,888 | 3.015625 | 3 | [] | no_license | //ID: 315786228
package arkanoid;
import biuoop.DrawSurface;
import biuoop.Sleeper;
import java.awt.Color;
/**
* The CountdownAnimation will display the given gameScreen,
* for numOfSeconds seconds, and on top of them it will show
* a countdown from countFrom back to 1, where each number will
* appear on th... | true |
59a20b12d0771c6794c72c0a8641a4f240ae9feb | Java | ReshmaSivadasan/Spring-Boot-CRUD | /src/main/java/com/example/service/UserService.java | UTF-8 | 355 | 1.8125 | 2 | [] | no_license | package com.example.service;
import java.util.List;
import org.springframework.stereotype.Service;
import com.example.entity.Employee;
@Service
public interface UserService {
List<Employee> getUserInfo();
void updateUserInfo(Employee emp, String firstName);
void deleteUserInfo(int id);
Em... | true |
84233702f8bce79ce8642f5f89b33ad1e809c0d1 | Java | gdams/bnd | /biz.aQute.bndlib.tests/java8/type_annotations/src/invisible/annotations/InvisibleRepeatedAnnotation.java | UTF-8 | 241 | 1.546875 | 2 | [
"Apache-2.0"
] | permissive | package invisible.annotations;
import invisible.annotations.repeated.InvisibleRepeatedAnnotations;
import java.lang.annotation.Repeatable;
@Repeatable(InvisibleRepeatedAnnotations.class)
public @interface InvisibleRepeatedAnnotation {
}
| true |
9e92287e62b99858370193d091218190c8b50fdb | Java | YvonZhang/Leetcode | /Array/Q277_FindTheCelebrity.java | UTF-8 | 3,910 | 3.390625 | 3 | [] | no_license | /*
* @Author: Yuang Zhang
* @email: yuang.zhang.chn@gmail.com
* @github: https://github.com/YvonZhang
* @Description:
* @Date: 2021-01-29 18:02:34
* @LastEditors: Yuang Zhang
* @LastEditTime: 2021-01-30 11:14:17
* @FilePath: /Leetcode/Array/Q277_findTheCelebrity.java
*/
package Array;
public class Q277_Find... | true |
fdd0159220120780dd0e37f12a1c3aaab9933fe4 | Java | ArthurL602/MaterialReader | /app/src/main/java/com/ljb/materialreader/ui/presenter/EBookPresenter.java | UTF-8 | 4,664 | 1.945313 | 2 | [] | no_license | package com.ljb.materialreader.ui.presenter;
import com.ljb.materialreader.app.App;
import com.ljb.materialreader.base.BasePresenter;
import com.ljb.materialreader.bean.response.ebook.CategoryList;
import com.ljb.materialreader.bean.response.ebook.HotWords;
import com.ljb.materialreader.bean.response.ebook.Rankings;
i... | true |
b9818b73545ecea0c0f0c81530f9546f601863c3 | Java | nitinmendiratta/DataStructures-Algorithms | /LeetCode/src/Easy/E_0521_LongestUncommonSubsequence1.java | WINDOWS-1252 | 1,167 | 3.953125 | 4 | [] | no_license | package Easy;
/*
* https://leetcode.com/problems/longest-uncommon-subsequence-i/
*/
public class E_0521_LongestUncommonSubsequence1 {
/*
* If both the strings are identical, for example: ac and ac, it is obvious
* that no subsequence will be uncommon. Hence, return 0.
*
* If length(a) = length(b) and a !=... | true |
2bebbc84ec9b91972ed048abb81b2e20d548143e | Java | wusjustdoit/KM | /src/controller/Mjoin.java | UTF-8 | 2,457 | 2.421875 | 2 | [] | no_license | package controller;
import java.io.IOException;
import java.sql.Date;
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 com.oreilly.se... | true |
f55269568a56a08196c5ebc5129d56fe2522cbb2 | Java | yoteshjami/yoteshjami_NewYearGift | /src/main/java/Chocolates.java | UTF-8 | 636 | 3.234375 | 3 | [] | no_license | public class Chocolates implements GiftItems{
double protiens;
double weight;
}
class Silk extends Chocolates {
public double display() {
return weight;
}
public void calculate (int n) {
weight=20*n;
protiens=1.0*n;
}
}
class Nestlie extends Chocolates{
public doub... | true |
90882afb85ed4b71280f225c0bf58bfc1a0dec5e | Java | PedroAguiar/taller-practico-4 | /src/com/ues21/Main.java | UTF-8 | 4,412 | 3.40625 | 3 | [] | no_license | package com.ues21;
import com.ues21.algoritmos.Quicksort;
import com.ues21.algoritmos.Shellsort;
import java.util.*;
public class Main {
public static void main(String[] args) {
// testSortingWithOrderedArrays();
testSortingWithUnOrderedArrays();
}
private static void testSortingWithUnOr... | true |
e7eb2c949ab238cfba831ff289f59a439c7117c8 | Java | isthaail13/Minotaur | /src/testing/KeyEventDemo.java | UTF-8 | 3,840 | 2.96875 | 3 | [] | no_license | package testing;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class KeyEventDemo extends JFrame {
private KeyboardPanel keyboardPanel = new KeyboardPanel();
static final int TIME_LAPSE = 250;
private static Timer keyPause = new Timer(TIME_LAPSE, new KeyPause());
static boolean pause;
... | true |
70f97db9ad8026068522794483678a9d0ee33a0f | Java | xicp/learngit | /JavaWeb/1-12/11/266/src/com/lh/dao/EmpDao.java | GB18030 | 1,780 | 2.9375 | 3 | [] | no_license | package com.lh.dao;
import java.io.File;
import java.io.FileReader;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
public class EmpDao {
private static EmpDao instance = null;
public static EmpDao getInstance() {
if(instance == null) {
in... | true |
99391b6338c6017020f26cd3d1144f462fbc3808 | Java | Kurlabo/backend | /src/main/java/com/kurlabo/backend/model/Favorite.java | UTF-8 | 467 | 1.960938 | 2 | [
"MIT"
] | permissive | package com.kurlabo.backend.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import javax.persistence.*;
@Data
@Entity
@RequiredArgsConstructor
@AllArgsConstructor
@Builder
public class Favorite {
@Id
@GeneratedValue
@Column(name =... | true |
1d7d857f65f6dd7f8128f30891a28aeabedebcd7 | Java | Gustibimo/occurrence | /occurrence-ws-client/src/main/java/org/gbif/occurrence/ws/client/OccurrenceWsClientModule.java | UTF-8 | 2,127 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package org.gbif.occurrence.ws.client;
import org.gbif.api.service.occurrence.DownloadRequestService;
import org.gbif.api.service.occurrence.OccurrenceSearchService;
import org.gbif.api.service.occurrence.OccurrenceService;
import org.gbif.ws.client.guice.GbifWsClientModule;
import org.gbif.ws.mixin.Mixins;
import ja... | true |
1f429e0150edcbfc1aa8dcffd1b23b91fb0bf157 | Java | whitesource/agents | /wss-agent-utils/src/test/java/org/whitesource/agent/utils/JsonUtilsTest.java | UTF-8 | 905 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package org.whitesource.agent.utils;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.whitesource.agent.api.dispatch.UpdateInventoryRequest;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.file.Paths;
public class JsonUtilsTest {
... | true |