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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2e70d2953d33ad164cb15ef2170380311e5a8312 | Java | crocs-muni/JCAlgTest | /AlgTest_JavaCard/src/AlgTest/AlgStorageTest.java | UTF-8 | 17,152 | 1.914063 | 2 | [
"MIT"
] | permissive | /*
Copyright (c) 2004-2014 Petr Svenda <petr@svenda.com>
LICENSE TERMS
The free distribution and use of this software in both source and binary
form is allowed (with or without changes) provided that:
1. distributions of this source code include the above copyright
notice, this l... | true |
510a900a19191c69b29c5296c266978445d3ce60 | Java | xavierstone/CS_110_Final_Project | /WarCardGameGUI.java | UTF-8 | 3,304 | 3.203125 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class WarCardGameGUI extends JFrame implements ActionListener {
private WarCardGame game = new WarCardGame();
private JPanel topPanel, gamePanel, playPanel;
private JLabel title, personStatus, computerStatus, middle;
private JLabel p... | true |
782c02b63c5225df9da39c9d4f8139e2165d75fa | Java | dingsky/algorithm | /javaSrc/src/sort/SelectSort.java | UTF-8 | 1,151 | 4.21875 | 4 | [] | no_license | package sort;
import java.util.Random;
// 功能: 选择排序
// 基本思想: 每次从剩余的数组里面选一个最小的放到当前已有序序列的末尾
// 时间复杂度: O(N^2)
// 空间复杂度: O(1)
public class SelectSort {
public static void sort(int[] array) {
int min, index;
for(int i=0; i< array.length; i++) {
// 从剩余的数字里取一个最小的
min... | true |
83553e8f582c6d1e9415caa9d761e422ca47711d | Java | jay0709/java_basics | /src/code/hackerearth/java/FoundMinMaxSum.java | UTF-8 | 1,090 | 3.828125 | 4 | [] | no_license | package code.hackerearth.java;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.stream.IntStream;
public class FoundMinMaxSum {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int size = scn.nextInt();
int[] arr = new int[size];
for ... | true |
f901820a3eafd62efdabd814ee485dea1e4ee13b | Java | vvolkgang/NotPongWars | /src/com/notpongwars/activities/SinglePlayerActivity.java | UTF-8 | 1,481 | 2.046875 | 2 | [] | no_license | package com.notpongwars.activities;
import com.notpongwars.core.AudioPlayer;
import com.notpongwars.core.InputManager;
import com.notpongwars.game.GameSettings;
import com.notpongwars.game.NotPongWarsSinglePlayer;
import com.notslip.notpongwars.R;
import android.app.Activity;
import android.app.AlertDialog;
import an... | true |
104e6bb020126ba7e985a6ec8a1fbfc66084a1e3 | Java | MayuriGhawate/SpringMVC | /spring_rest/spring_rest/src/main/java/io/hari/spring_rest/repository/EmployeeRepositoryImp.java | UTF-8 | 765 | 2.25 | 2 | [] | no_license | package io.hari.spring_rest.repository;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.stereotype.Repository;
import io.hari.spring_rest.entity.Employee;
@Repository
public class EmployeeRepositoryImp implements EmployeeReposito... | true |
cfd897c4c96edc8a90dcfd00578f1a2d1ac2e5da | Java | kim00030/NFC-Paran-Plain-Note | /app/src/main/java/com/flashtopia/indeedplainnote/handler/NoteAlarmHandler.java | UTF-8 | 10,428 | 2.34375 | 2 | [] | no_license | /*
* This class handles note alarming
* */
package com.flashtopia.indeedplainnote.handler;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.AlertDialog;
import android.app.PendingIntent;
import android.app.TimePickerDialog;
import android.content.ContentResolver;
import android.content... | true |
a4588362ece759bb9725cd4feb8ee943f2331b16 | Java | wupei93/springCloud-Order | /order/src/main/java/com/spring/web/client/ProductClientFallBack.java | UTF-8 | 2,585 | 2.203125 | 2 | [] | no_license | package com.spring.web.client;
import com.spring.common.model.StatusCode;
import com.spring.common.model.model.ErrorInfo;
import com.spring.common.model.response.ObjectDataResponse;
import com.spring.domain.Product;
import com.spring.domain.request.StockReservationRequest;
import com.spring.repository.ErrorRepository... | true |
f23c7a9c0d45d383384540626aca193e124a712e | Java | jzjie007/order | /order-webapp/src/main/java/com/jzj/order/autoconfig/trace/TracingConfig.java | UTF-8 | 4,120 | 1.867188 | 2 | [] | no_license | package com.jzj.order.autoconfig.trace;
import brave.CurrentSpanCustomizer;
import brave.SpanCustomizer;
import brave.Tracing;
import brave.context.slf4j.MDCScopeDecorator;
import brave.http.HttpTracing;
import brave.propagation.B3Propagation;
import brave.propagation.ExtraFieldPropagation;
import brave.propagation.Th... | true |
9f694d93c72a31a7e8c6617c6d56d5b1ab727e24 | Java | ranjans3n/book-collections-tests | /ListTest1/src/ListTest1.java | UTF-8 | 3,363 | 2.90625 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
public class ListTest1 {
// truck location
static List<Integer> tl = Arrays.asList(4,0); // this is location of truck
static class Id_dist implements Comparable<Id_dist> {
Integer id = new Integer(0);... | true |
1d716a746c1a3c6866f734778365d86504b931c1 | Java | abedurftig/XML2Code | /Core/src/test/java/com/xml2code/core/loader/ProjectLoaderTest.java | UTF-8 | 1,864 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.xml2code.core.loader;
import java.io.File;
import java.net.URISyntaxException;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import util.TestResourceUtil;
import com.xml2code.core.exception.ProjectLoadFailedException;
@RunWith(JUnit4.c... | true |
fbe7e8ac6fc8d4ba4fb0d8a046405fe899cc9e75 | Java | bothmagic/marxenter-labs | /netbeans.labs/nodeMngmt/MyHibernateLib/test/de/mx/nb/nodemngmt/data/TestTestCase.java | UTF-8 | 1,675 | 2.28125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.mx.nb.nodemngmt.data;
import junit.framework.Assert;
import org.hibernate.Session;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.... | true |
638c95913a10e2b3fea765e3a82fb6c421464da5 | Java | valency007/ABER-Exchange | /Frontend/src/main/java/au/usyd/elec5619/service/UserManager.java | UTF-8 | 317 | 2.046875 | 2 | [] | no_license | package au.usyd.elec5619.service;
import java.io.Serializable;
import java.util.List;
import au.usyd.elec5619.domain.User;
public interface UserManager extends Serializable{
public void addNewUser(User user);
public User getUserByEmail(String email);
public List<User> getUsers();
} | true |
30131025cacdfd8e4ce457188682e591c7576429 | Java | MarkBoon/PlugAndGo | /source/tesuji/games/go/monte_carlo/AbstractMonteCarloAdministration.java | UTF-8 | 32,380 | 1.96875 | 2 | [] | no_license | /**
* Project: Tesuji Go Framework.<br>
* <br>
* <font color="#CC6600"><font size=-1> Copyright (c) 1985-2006 Mark Boon<br>
* All rights reserved.<br>
* <br>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... | true |
c2af3b05218320775e6ea5cda68478d4f1e6f262 | Java | GRIIMLY/ejemplo | /client/src/main/java/com/cliente/Cliente/service/Iface.java | UTF-8 | 535 | 1.734375 | 2 | [] | no_license | package com.cliente.Cliente.service;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@FeignClient(name="apiZuul",... | true |
107815eb002a3cc315af600c749379ee3c61771d | Java | ajai1/LeetCodeTopInterview | /src/ReverseBits.java | UTF-8 | 945 | 3.5 | 4 | [] | no_license | import java.util.ArrayList;
public class ReverseBits {
public static int reverseBitsUsingStringBuilder(int n) {
String binaryString = Integer.toUnsignedString(n, 2);
int zeroCount = Integer.numberOfLeadingZeros(n);
StringBuilder sb = new StringBuilder();
for(int i=0; i< zeroCount; i++)... | true |
ac9fd87b1d42f7194f267b12c385a9e33c7ffebe | Java | ncthanh239/javacore | /Bai_tap_cuoi_khoa/src/Objects/NhanVien.java | UTF-8 | 2,352 | 2.734375 | 3 | [] | 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 Objects;
/**
*
* @author Hieu Trung
*/
public class NhanVien {
private String manv;
private String tennv;
priva... | true |
9c7beb0738e955552f6926d30ababf79c05ef856 | Java | leejustin980/University_Course_Registration_System | /src/main/Admin.java | UTF-8 | 9,632 | 3.171875 | 3 | [] | no_license | package main;
import java.util.Scanner;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
public class Admin extends User implements AdminInterface, java.io.Serializable{
// Create a Scanner
transient Scanner input = new Scanner(System.in);
// data ... | true |
652c03406c18fad268e28e8f5fac379cdc86ba35 | Java | AinaArd/Digital-Gallery | /src/main/java/ru/itis/services/PhotoServiceImpl.java | UTF-8 | 1,401 | 2.34375 | 2 | [] | no_license | package ru.itis.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ru.itis.forms.PhotoForm;
import ru.itis.models.Gallery;
import ru.itis.models.Photo;
import ru.itis.repositories.PhotoRepository;
import ru.itis.utils.FileDownloader;
import j... | true |
7a16a35d6accb952469dcb5cf32c31a2251a9582 | Java | Binary22/CoronaTickets | /centralserver/src/excepciones/EjemploException.java | UTF-8 | 292 | 2.25 | 2 | [] | no_license | package excepciones;
/**
* Excepción de ejemplo para copiar cuando quieran hacer
* otras excepciones
*
* @author elacquaxd
*
*/
@SuppressWarnings("serial")
public class EjemploException extends Exception {
public EjemploException(String string) {
super(string);
}
}
| true |
c59150ee1010a373827961aa1f5e0114cada0722 | Java | noursattou/MovieWoody | /app/src/main/java/com/example/tcc/moviewoody/userAfterRegisterationInformation.java | UTF-8 | 478 | 2.078125 | 2 | [] | no_license | package com.example.tcc.moviewoody;
/**
* Created by TCC on 3/5/2018.
*/
public class userAfterRegisterationInformation {
public String firstName;
public String lastName;
public String address;
public userAfterRegisterationInformation(){
}
public userAfterRegisterationInformation(String f... | true |
a836777f44f84f0d83840e5577ae995a38e88a10 | Java | DorotaMiler/java-exercises | /src/main/java/_6_stream/NewFileCreation.java | UTF-8 | 646 | 3.421875 | 3 | [] | no_license | package _6_stream;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
public class NewFileCreation {
public static void main(String[] args) throws IOException {
File file = new File("created.txt");
boolean success = file.createNewFile();
System.out.println("Was fi... | true |
a7f250623c02e3acbbff210a035dac874f4319e9 | Java | hu7han73/137-datastructures | /src/main/java/onethreeseven/datastructures/view/DataStructuresMenuSupplier.java | UTF-8 | 1,944 | 2.5 | 2 | [
"MIT"
] | permissive | package onethreeseven.datastructures.view;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import onethreeseven.trajsuitePlugin.model.BaseTrajSuiteProgram;
import onethreeseven.trajsuitePlugin... | true |
2eb0ec73239a909055162d1460b9a15b5174fd18 | Java | ramtej/Qi4j.Feature.Spatial | /samples/dci-cargo/dcisample_b/src/main/java/org/qi4j/sample/dcicargo/sample_b/bootstrap/DCISampleApplication_b.java | UTF-8 | 3,525 | 1.835938 | 2 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | /*
* Copyright 2011 Marc Grue.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | true |
04f48209077d9e46376afc8df15b31b73f5e14bf | Java | 2ZeroSix/university | /java/new/lab1/src/ru/nsu/ccfit/lukin/morse/Parser.java | UTF-8 | 5,058 | 2.703125 | 3 | [] | no_license | package ru.nsu.ccfit.lukin.morse;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.NodeList;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
public class Parser {
private s... | true |
4981540b8758bf4c97f0600c89efa003b04666a7 | Java | berkaysahin/AkilliSogutucu | /src/AkilliCihaz/Classes/WebSitesi.java | UTF-8 | 1,352 | 2.8125 | 3 | [] | no_license | package AkilliCihaz.Classes;
import AkilliCihaz.Interfaces.IWebSitesi;
import java.util.Scanner;
public class WebSitesi implements IWebSitesi {
@Override
public void girisEkraniYazdir() {
System.out.println("\n Sogutucu Kontrol Sistemi \n"
+" Lutfen g... | true |
72cf5f0dda8379fde1055dba7007cfa734ae5d85 | Java | RaulPincotan/first-spring-project | /countries-spring/src/main/java/ro/fasttrackit/curs18/countries/countriesspring/ReadingCountries.java | UTF-8 | 1,419 | 2.796875 | 3 | [] | no_license | package ro.fasttrackit.curs18.countries.countriesspring;
import org.springframework.stereotype.Component;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
@Component
public class ReadingCountries {
public List<Country> readin... | true |
50cec9f643130cd519c88af4493a5a0fc9b80bf7 | Java | gogit/dvla-parser | /src/main/java/uk/gov/dvla/registration/source/FileTypeFilter.java | UTF-8 | 923 | 2.765625 | 3 | [] | no_license | package uk.gov.dvla.registration.source;
import java.io.File;
import java.io.FileFilter;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* File type filter to retrieve certain supported mime type files
*
*/
public final class FileTypeFilter implements FileFilter {
/**
* A set of file... | true |
3e87bfce51f59d47b7b0f2ef33a4d0498a06e929 | Java | yeonwookim1/yeonwoo_algo | /algo/src/HD2.java | UTF-8 | 2,050 | 3.15625 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
public class HD2 {
static String[] map;
static int visit[];
static List<Integer> list = new ArrayList<>();
static int ans = 9999999;
public void dfs(int idx){
if(list.size()>0){
for(int a : list){
... | true |
aa39af41cdd1b9a44660d13abcb6de84f0fcedb2 | Java | kandeshvari/idea-nim | /src/org/dmitrigb/ideanim/psi/elements/impl/EnumDefImpl.java | UTF-8 | 902 | 1.960938 | 2 | [] | no_license | package org.dmitrigb.ideanim.psi.elements.impl;
import java.util.List;
import org.dmitrigb.ideanim.psi.elements.EnumDef;
import org.dmitrigb.ideanim.psi.elements.EnumMember;
import org.dmitrigb.ideanim.psi.elements.Expression;
import org.dmitrigb.ideanim.psi.elements.Identifier;
import org.dmitrigb.ideanim.ty... | true |
423f808d0b17eb384430c8ab1db92186b77f6bc9 | Java | AndreeaRalucaH/Android-Project | /app/src/main/java/com/example/proiecthorhociagurita/CheltuieliDao.java | UTF-8 | 1,115 | 2.109375 | 2 | [] | no_license | package com.example.proiecthorhociagurita;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import java.util.List;
@Dao
public interface CheltuieliDao {
//-------------Inserari
@Insert
public void insert(Cheltuiala ch);
@Insert
publ... | true |
cc948d25995c58779c27bd9cf4cb21daad417507 | Java | Mbahmo/mobile-programming | /app/src/main/java/com/example/aplikasiku/Menu.java | UTF-8 | 2,243 | 2.09375 | 2 | [] | no_license | package com.example.aplikasiku;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Menu extends Activity implements View.OnClickListener {
private Button Profil, Kegiatan, Persegi, PersegiPanjang, Keluar;
... | true |
b06f93ad5c9f00038643b8c60d7637cbd839a3eb | Java | wando777/cwi-reset-02 | /exercicios-aula-02/src/models/Filme.java | UTF-8 | 2,633 | 3.015625 | 3 | [] | no_license | package models;
import java.util.List;
import exceptions.NotaInvalidaException;
public class Filme {
private String nome;
private String descricao;
private Integer duracao;
private Integer anoLancamento;
private Integer notaAvaliacao;
private Diretor diretor;
private List<Pessoa> elenco;
private static f... | true |
bb12cdeafcd5dd3575c35ac475e7fbd7de578d7b | Java | wangshuda/web-frame-2.0 | /src/com/cintel/frame/properties/PropertiesInfo.java | UTF-8 | 2,096 | 2.421875 | 2 | [] | no_license | package com.cintel.frame.properties;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
import java.util.Properties;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.Log... | true |
0934765577e10fbb8a68cbd46b2414ce275247a4 | Java | zhengjinzhou/Turtle | /app/src/main/java/com/zhou/turtle/ui/fragment/FriendFragment.java | UTF-8 | 375 | 1.78125 | 2 | [] | no_license | package com.zhou.turtle.ui.fragment;
import android.view.View;
import com.zhou.turtle.R;
import com.zhou.turtle.base.BaseFragment;
/**
* Created by zhou on 2017/12/6.
*/
public class FriendFragment extends BaseFragment {
@Override
public int getLayout() {
return R.layout.fragment_friend;
}
... | true |
24e37081c43ab02f28d83bbfec49428b3986bada | Java | xnx3/wangmarket | /src/main/java/com/ApiDoc.java | UTF-8 | 432 | 1.953125 | 2 | [
"LicenseRef-scancode-mulanpsl-1.0-en",
"MulanPSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com;
/**
* 自动扫描指定的包下所有controller的json接口,根据其标准的JAVADOC注释,生成接口文档。
* 使用参考 https://gitee.com/leimingyun/dashboard/wikis/leimingyun/wm/preview?sort_id=4518712&doc_id=1101390
* @author 管雷鸣
*/
public class ApiDoc {
public static void main(String[] args) {
new com.xnx3.doc.JavaDoc("com.xnx3.wangmarket.admin.c... | true |
32e1aa978fffa5999ea65c2cdf31aedec179924c | Java | deepexpert-gaohz/sa-d | /jnnsBank/apply-api/src/main/java/com/ideatech/ams/apply/enums/ParLegalIdCardType.java | UTF-8 | 1,319 | 2.703125 | 3 | [] | no_license | package com.ideatech.ams.apply.enums;
import java.util.HashMap;
import java.util.Map;
/**
* Created by hammer on 2018/3/20.
*/
public enum ParLegalIdCardType {
PAR_LEGAL_ID_CARD_TYPE_01 ("1", "身份证"),
PAR_LEGAL_ID_CARD_TYPE_02 ("2", "军官证"),
PAR_LEGAL_ID_CARD_TYPE_03 ("3", "文职干部证"),
PAR_LEGAL_ID_CARD... | true |
c7264aef409aefc6a70f79942c01fe27215e2c48 | Java | Gromewa/FixMe-master | /src/main/java/service/factory/ServiceFactory.java | UTF-8 | 1,090 | 2.15625 | 2 | [] | no_license | package service.factory;
/**
* Created by qw-user on 18.09.2017.
*/
import model.Mac;
import service.*;
import service.impl.IphoneServiceImpl;
import service.impl.MacServiceImpl;
import service.impl.OwnerServiceImpl;
import service.impl.PowerBankServiceImpl;
public class ServiceFactory {
public static MacServi... | true |
f74ad46daa35177a404769508490c6aa73674fa1 | Java | Kaueny-Alves/dio_personapi | /src/main/java/com/example/kaueny/personapi/enums/PhoneType.java | UTF-8 | 263 | 2.21875 | 2 | [] | no_license | package com.example.kaueny.personapi.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum PhoneType {
NOME("Nome"),
MOBILE("Mobile"),
COMERCIAL("Comercial");
private final String description;
}
| true |
184350862710d064e87d49523e1bb818242997db | Java | httpstart/japi | /java/client/src/main/java/com/dounine/japi/core/valid/jsr303/list/NotNullValid.java | UTF-8 | 2,901 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.dounine.japi.core.valid.jsr303.list;
import com.dounine.japi.common.JapiPattern;
import com.dounine.japi.core.IFieldDoc;
import com.dounine.japi.core.impl.EnumParser;
import com.dounine.japi.core.impl.JavaFileImpl;
import com.dounine.japi.core.impl.SearchInfo;
import com.dounine.japi.core.impl.TypeConvert;... | true |
03cd254a216a5265455a4184002abc7bb408e7f4 | Java | Gornova/a-droid-story | /core/src/it/randomtower/Entity.java | UTF-8 | 4,018 | 2.265625 | 2 | [] | no_license | package it.randomtower;
import java.util.HashMap;
import java.util.Map;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gd... | true |
3e5129940e86056dc65e1cb4097a91dd005ddf79 | Java | Trmpsanjay/CodingNinjas-DS | /Recursion 1/CheckNumbersInArrays.java | UTF-8 | 809 | 3.328125 | 3 | [] | no_license | public class Solution {
public static boolean checkNumber(int input[], int x) {
if(input[0]==x)
return true;
else{
if(input.length<=1){
if(input[0]==x)
return true;
else
return false;
}
... | true |
3e86d805f757da20a8aab72be78cdf8f4ac803d4 | Java | Antoninj/TrafficFlowSimulation | /src/dataStructuresGenerics/PriorityQueueBinary.java | UTF-8 | 1,184 | 3.734375 | 4 | [] | no_license | package dataStructuresGenerics;
public class PriorityQueueBinary {
/*
* Antonin Jousson
*
* Dual priorities Priority Queue data structure.
*/
public class PriorityPair implements Comparable {
public Comparable element;
public Comparable priority;
public PriorityPair(Comparable element, Comparable ... | true |
6dd1fc371b49877b48286c1782c0a9a9361f4c7c | Java | Riddarvid/AoC20 | /src/days/day24/Tile.java | UTF-8 | 1,175 | 3.140625 | 3 | [] | no_license | package days.day24;
import riddarvid.aoc.math.geometry.Point;
import java.util.Collection;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
public class Tile {
private final Point point;
public Tile(Point point) {
this.point = point;
}
@Override
public boolean e... | true |
f428ac422a94612d24c80b13fb9320e7f8afa105 | Java | JaxYoun/have | /src/main/java/com/youn/have/mapper/AppleMapper.java | UTF-8 | 854 | 2.015625 | 2 | [] | no_license | package com.youn.have.mapper;
import com.youn.have.dto.AppleDTO;
import com.youn.have.entity.Apple;
import com.youn.have.vo.AppleVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;
import java.util.Map;
//@Mapper(componentModel = "spring") Mapper实现类会被加上@Component注解,被... | true |
c4717191b82c2d7dff81d589787d0cfb8f1573b3 | Java | wy510574139/testgit | /QQlogin/src/cn/wy/qqlogin/MainActivity.java | WINDOWS-1252 | 3,210 | 2.015625 | 2 | [] | no_license | package cn.wy.qqlogin;
import org.json.JSONObject;
import com.tencent.connect.UserInfo;
import com.tencent.tauth.IUiListener;
import com.tencent.tauth.Tencent;
import com.tencent.tauth.UiError;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.View... | true |
420df396989f66496f421cb13b87d12d9e356ca6 | Java | JamesAreuming/PosManager | /PosManager/src/main/java/com/jc/pico/bean/UserNoti.java | UTF-8 | 7,645 | 1.882813 | 2 | [] | no_license | package com.jc.pico.bean;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.Date;
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserNoti {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tb_user_noti.ID... | true |
cde217795859356c0c12a503dcabf4ff455b9e1d | Java | ok0/algorithm | /src/test/java/programmers/exhaustive_search/prime_number/PrimeNumberTest.java | UTF-8 | 346 | 2.4375 | 2 | [] | no_license | package programmers.exhaustive_search.prime_number;
import org.junit.Assert;
import org.junit.Test;
public class PrimeNumberTest {
@Test
public void primeNumberTest() {
Solution solution = new Solution();
Assert.assertEquals(solution.solution("17"), 3);
Assert.assertEquals(solution.sol... | true |
359b441842e2da1ab3a6dea7df1c098d4637e93e | Java | bellmit/axon | /project/axon/src/main/java/com/sundy/axon/eventhandling/replay/ReplayAware.java | UTF-8 | 325 | 2.0625 | 2 | [] | no_license | package com.sundy.axon.eventhandling.replay;
/**
* 用于重建事件
* @author Administrator
*
*/
public interface ReplayAware {
/**
* 事件重建前调用
*/
void beforeReplay();
/**
* 事件重建后调用
*/
void afterReplay();
/**
* 事件重建失败后调用
*/
void onReplayFailed();
}
| true |
33f009ccf85836a4590112bc84fc514c02675637 | Java | gaoshenggithub/NodeProject | /cloud_note/src/org/anonymous/note/dao/test/imple/TestEmpDao.java | UTF-8 | 540 | 2.3125 | 2 | [] | no_license | package org.anonymous.note.dao.test.imple;
import org.anonymous.note.dao.EmpDao;
import org.anonymous.note.dao.test.TestBase;
import org.anonymous.note.entiry.Emp;
import org.springframework.context.ApplicationContext;
public class TestEmpDao {
public static void main(String[] args) {
ApplicationContext context = ... | true |
b2e8bdacca0b4f3d74142d1308bf3811830468c9 | Java | danfengzheng/student | /java/design-pattern/design-strategy/src/main/java/com/zhengdf/strategy/annotation/HandlerOrderType.java | UTF-8 | 364 | 2.265625 | 2 | [] | no_license | package com.zhengdf.strategy.annotation;
import java.lang.annotation.*;
/*注解出现的位置 type指 Class ElementType 为spring boot提供的枚举类*/
@Target({ElementType.TYPE})
/*注释保留时间*/
@Retention(RetentionPolicy.RUNTIME)
/*表明这个注释是由 javadoc记录的*/
@Documented
public @interface HandlerOrderType {
String value();
}
| true |
ac1c58421b8997255da7c9af477d3aa64c0fb9eb | Java | herotf3/FoodNow | /app/src/main/java/com/example/asus/foodnow/Activity/FoodDetail.java | UTF-8 | 7,056 | 2.078125 | 2 | [] | no_license | package com.example.asus.foodnow.Activity;
import android.support.annotation.NonNull;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Line... | true |
2f3558e3c760255f6737930c5f59f790a693b82c | Java | hakim-asrori/praktikum-pbo | /SOLID Programming/D/Main.java | UTF-8 | 140 | 1.617188 | 2 | [] | no_license | public class Main {
public static void main(String[] args) {
Buah b1 = new Buah(new Apel());
b1.show();
}
}
| true |
0a29ef4817a27de869b63e09a96bf875bfa899b9 | Java | ucp1202/Advanced-Java-Programming--First-Semeste- | /Week3SingeltonPatern/AJP-P3-2012-2013-STUDENT/src/uk/ac/tees/silver/L1087591/ShareWatcher.java | UTF-8 | 245 | 1.6875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package uk.ac.tees.silver.L1087591;
/**
*
* @author Anastasov
*/
public interface ShareWatcher
{
void updatePrice(double price);
}
| true |
5faded785c69502f5e9b93bc8024cc31327f7122 | Java | fghenrique/back-end-spring-boot-api-github | /src/main/java/com/spring/spring/controller/GitController.java | UTF-8 | 1,080 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.spring.spring.controller;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
impo... | true |
5ef267f16da72cf90858fbb4f816c2d130e6cce6 | Java | fusuiyi123/data-structure-algorithm | /src/com/dsalglc/graph/FriendCircles.java | UTF-8 | 567 | 2.75 | 3 | [] | no_license | package com.dsalglc.graph;
public class FriendCircles {
// 547. Friend Circles
public int findCircleNum(int[][] M) {
int N = M.length;
UnionFind uf = new UnionFind(N);
for (int i = 0; i < N; i++) {
for (int j = i + 1; j < N; j++) {
if (M[i][j] == 1) {
... | true |
bc998b8d7c29162df46d0448b81a6b3089a498bb | Java | JulijaLV/Java_jetbrains_ChatBot | /Problems/Numbers divisible by six/src/Main.java | UTF-8 | 416 | 3.046875 | 3 | [] | no_license | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int sumSix = 0;
int nextInt;
int seqElm = scan.nextInt();
for (int i = 0; i < seqElm; i++) {
nextInt = scan.nextInt();
sumSix = next... | true |
f2ae34536d0676d6196db4951fa20f8fee526449 | Java | iopass4/leopard | /modules/data4j/data4j-env/src/main/java/io/leopard/data4j/env/EnvLei.java | UTF-8 | 349 | 1.953125 | 2 | [] | no_license | package io.leopard.data4j.env;
import io.leopard.burrow.LeopardLei;
/**
* 环境配置.
*
* @author 阿海
*
*/
// Leopard Extended Interface
public interface EnvLei extends LeopardLei {
/**
* 是否启用当前.
*
* @return
*/
boolean isEnabled();
/**
* 获取项目根目录.
*
* @return
*/
String getRootDir();
}
| true |
d8306312890a2001062ade4812809e126385fcdb | Java | rrkjonnapalli/JavaLanguage | /classDemo4.java | UTF-8 | 585 | 3.140625 | 3 | [] | no_license | class Box3{
double width;
double height;
double depth;
int c;
void meth(){
System.out.println(c);
}
double volume(){
return width*height*depth;
}
//method over loading
void setDim(double w,double h,double d){
width = w;
height = h;
depth = d;
}
void setDim(double w,double h){
width = w;
he... | true |
3b4223c030337639cb5ed41771001504b8d9e864 | Java | sunnyday94/rose_practice | /src/main/java/com/sunny/rose/practice/controllers/NotBlankParamValidator.java | UTF-8 | 1,692 | 2.59375 | 3 | [] | no_license | /**
* FileName: NotBlankParamValidator Author: sunnyday Date: 2019/5/5 1:37 Description: 参数不为空验证
* History:
* <author> <time> <version> <desc>
* 作者姓名 修改时间 版本号 描述
*/
package com.sunny.rose.practice.controllers;
import com.sunny.rose.practice.annotat... | true |
73b7de74855b6093f996db499c4245ac8d744f78 | Java | alto-project/alto | /src/main/java/com/frs/alto/jdbc/ConnectionFactory.java | UTF-8 | 3,283 | 2.90625 | 3 | [] | no_license | package com.frs.alto.jdbc;
import org.apache.commons.pool.PoolableObjectFactory;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.util.Enumeration;
public class ConnectionFactory implements PoolableObjectFactory {
private Databases dbProfile = null;
private Stri... | true |
89effaea9c5386a75b066536120ec76d8b749c47 | Java | Shalini-BR/Retelzy_PSR | /src/test/java/com/psr/TestCases/ImportExcelForAllColumns.java | UTF-8 | 7,913 | 1.929688 | 2 | [] | no_license | package com.psr.TestCases;
import org.testng.annotations.Test;
import org.testng.annotations.Test;
import org.testng.annotations.Test;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.datatransfer.StringSelection;
import java.io.FileInputStream;
import java.io.IOException;
... | true |
394d41e7ef4ad01dadf55e67da7beb3f9580a1b2 | Java | idy-3/patientrecord | /src/main/java/com/example/patientrecord/service/UserPrincipalService.java | UTF-8 | 934 | 2.25 | 2 | [] | no_license | package com.example.patientrecord.service;
import com.example.patientrecord.model.User;
import com.example.patientrecord.config.UserPrincipal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.security.core.userdetails.UserDeta... | true |
3eb0b0562e61cac77904f066d62bc26189337b36 | Java | cckmit/Coupon | /flash-web-master/admin-web/src/main/java/vc/thinker/cabbage/web/action/UserRebateLogController.java | UTF-8 | 2,631 | 1.734375 | 2 | [] | no_license | package vc.thinker.cabbage.web.action;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotati... | true |
2fe51c519660c8b4adfb97d461e659b0739fb59b | Java | PeterMerkert/SoPeCo-WebUI | /org.sopeco.webui.client/src/org/sopeco/webui/client/layout/center/NoScenario.java | UTF-8 | 3,203 | 1.992188 | 2 | [] | no_license | /**
* Copyright (c) 2013 SAP
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | true |
e6e46dd8f707cca808712dfc55349ee37eece87e | Java | FreestyleDDCoder/intelligenceNCU | /app/src/main/java/com/intelligencencu/adapter/LostAdapter.java | UTF-8 | 4,986 | 2.1875 | 2 | [] | no_license | package com.intelligencencu.adapter;
import android.content.Context;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
im... | true |
34341b351d9342e0af760d8e3d76962336aa2175 | Java | ingenieria-de-software/InventarioGranoDeOro | /app/src/main/java/com/example/inventariogranodeoro/dao/ArticuloDAO.java | UTF-8 | 4,231 | 2.90625 | 3 | [] | no_license | package com.example.inventariogranodeoro.dao;
import com.example.inventariogranodeoro.entidades.Articulo;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.ArrayList;
/* ****************************************************
* ... | true |
7e2e24440cc8152139a328b8ff20765c17342e65 | Java | tansin02/Airlines-backend-Project | /flight/src/main/java/com/ixigo/flight/resource/bookingsController.java | UTF-8 | 1,675 | 2.234375 | 2 | [] | no_license | package com.ixigo.flight.resource;
import com.ixigo.flight.model.airplanes;
import com.ixigo.flight.model.bookings;
import com.ixigo.flight.model.users;
import com.ixigo.flight.repository.airplanesRepository;
import com.ixigo.flight.repository.bookingsRepository;
import org.bson.types.ObjectId;
import org.spri... | true |
72e89207ad72ad3d23457305ca6cfb39e24ee5b1 | Java | mccreery/sandbox | /java/platformer/tk/nukeduck/platformer/map/Tile.java | UTF-8 | 1,327 | 2.796875 | 3 | [
"Unlicense"
] | permissive | package tk.nukeduck.platformer.map;
public class Tile
{
public static Tile dirt = new Tile(4, 1);
public static Tile dirtLeft = new Tile(3, 1);
public static Tile dirtRight = new Tile(5, 1);
public static Tile grass = new Tile(1, 1);
public static Tile grassLeft = new Tile(0, 1);
public static Tile grassRight ... | true |
ac8e8d0549326e8d45788c91606d07e2d8be4f83 | Java | enathang/Basic_Chess | /King.java | UTF-8 | 1,544 | 3.4375 | 3 | [] | no_license |
// King: The king piece
public class King extends ChessPiece {
String[] chars = {"WK","BK"};
// String[] chars = {"♚","♔"}; ONLY USE IF UNICODE IS SUPPORTED
boolean hasMoved = false;
King(int color) {
super.color = color;
super.symbol = chars[color];
}
boolean canCastle(ChessSquare a, ChessSquar... | true |
ca90b719ea879a02f5650291fa8c753901612819 | Java | RutulDarji/DS-and-Algo | /src/algorithm/string/PermutationOfGivenString.java | UTF-8 | 881 | 3.890625 | 4 | [] | no_license | package algorithm.string;
public class PermutationOfGivenString {
public static void main(String[] args) {
String str = "ABC";
int n = str.length();
PermutationOfGivenString permutation = new PermutationOfGivenString();
permutation.permute(str, 0, n - 1);
}
private void per... | true |
3ebb6fa7ac37f379b1830b760b7b238bbc973dd2 | Java | AjayNK/Selenium_Automation | /src/test/java/Selenium/NullPointerEx.java | UTF-8 | 300 | 2.859375 | 3 | [] | no_license | package Selenium;
public class NullPointerEx {
public static void main(String[] args)
{
try
{
String x =null;
System.out.println(x.length());
}
catch(Exception e)
{
System.out.println("Passed");
System.out.println(e);
}
System.out.println("Outside of block");
}
}
| true |
febfbd0e4195a388e87cd15e6a3279063dc33c0a | Java | ChenHCY/SJSU-CS151 | /Assignment7/Exercise4/MethodTest.java | UTF-8 | 1,468 | 3.921875 | 4 | [] | no_license | //Student Name: Chenyu Yang
//student ID: 014277029
//Course: CS-151-2020SP
//Lab: Homework 7 Exercise-4
//Date: 2020/04/20
package Exercise4;
import java.util.ArrayList;
public class MethodTest
{
public static < T > int count(ArrayList< T > myList)
{
return(myList.size());
}
public static void main(String[]... | true |
5e26f37df1e994dc50799eca64f743a0c446c15b | Java | filipefreitassilva/MeuVeterinrio | /app/src/main/java/meuveterinario/filipe/com/br/meuveterinrio/ConsultaCep.java | UTF-8 | 796 | 1.851563 | 2 | [] | no_license | package meuveterinario.filipe.com.br.meuveterinrio;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class ConsultaCep {
@SerializedName("cep")
@Expose
private String cep;
@SerializedName("localidade")
@Expose
private String localidade;
... | true |
8021ccbceea7012cdb7c54d7389d64eb52e382c6 | Java | develnext/develnext | /ui-syntax-ext/src/main/java/org/develnext/php/ext/UISyntaxExtension.java | UTF-8 | 1,163 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | package org.develnext.php.ext;
import org.develnext.jphp.swing.SwingExtension;
import org.develnext.php.ext.classes.RSyntaxTextAreaExEventProvider;
import org.develnext.php.ext.classes.RSyntaxTextAreaReaders;
import org.develnext.php.ext.classes.UISyntaxTextArea;
import org.develnext.php.ext.classes.UISyntaxTextAreaTa... | true |
2d18aa12d25a90d49e86fe3bf3d28d1c0118938c | Java | KINGDSB/TestProject | /WebApp/src/main/java/com/dsb/client/FileClient.java | UTF-8 | 1,387 | 1.90625 | 2 | [] | no_license | package com.dsb.client;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Scope;
import org.... | true |
37f75ab7629ba42ad4d1dea0d1c265b185948ff8 | Java | sbobowiec/mobile-git-client | /GitClient/app/src/main/java/pl/edu/agh/gitclient/dto/CommitDTO.java | UTF-8 | 969 | 2.203125 | 2 | [] | no_license | package pl.edu.agh.gitclient.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class CommitDTO {
@JsonProperty(value = "sha")
private String sha;
@JsonProperty(value = "commit")
... | true |
e6d26c05415676edb39c517ff4522b20b0c57a0c | Java | kUzmeN/RecipesServer | /src/main/java/com/kuzmen/recipes/restservice/repository/RecipeRepository.java | UTF-8 | 246 | 1.609375 | 2 | [] | no_license | package com.kuzmen.recipes.restservice.repository;
import com.kuzmen.recipes.restservice.entity.Recipe;
import org.springframework.data.jpa.repository.JpaRepository;
public interface RecipeRepository extends JpaRepository<Recipe, Integer> {
}
| true |
882f4a6c531bc14068cf155f203ded865d1bcae1 | Java | Mezcal/swos1 | /ch.bfh.swos.eventmng.service/src/main/java/ch/bfh/swos/eventmng/service/LocationDao.java | UTF-8 | 1,231 | 2.53125 | 3 | [] | no_license | package ch.bfh.swos.eventmng.service;
import java.util.Collection;
import java.util.List;
import ch.bfh.swos.eventmng.model.Location;
/**
* A location DAO supports the general persistence mechanisms
* for a location
*
* @author Mezcal
*
*/
public interface LocationDao {
/**
* Create a ne... | true |
9863b3d03fedd7fd5e4c25580acebcd2e4a9cab0 | Java | yannyren/week_week_18_day_2 | /app/src/main/java/codeclan/com/genericsdemo/Borrower.java | UTF-8 | 501 | 3.125 | 3 | [] | no_license | package codeclan.com.genericsdemo;
import java.util.ArrayList;
/**
* Created by yanren on 08/11/2017.
*/
public class Borrower<E> {
private ArrayList<E> borrowedStuff;
public Borrower() {
this.borrowedStuff = new ArrayList<>();
}
public void addItem(E item) {
this.borrowedStuff.... | true |
881c7e7ff295a312f474b714568f795ae42cb8a9 | Java | TuoAiTang/HardCoding | /Solutions/lc486_MemorizationRecursion.java | UTF-8 | 749 | 3.25 | 3 | [] | no_license | //3ms beats 93.46%
import java.util.*;
class lc486_MemorizationRecursion {
//Time: O(n^2) <- n^2, the number of sub-problems
//Space: O(n^2 + n) <- memo size;
private int [] memo;
public boolean PredictTheWinner(int[] nums) {
int n = nums.length;
memo = new int[n * n + n];
... | true |
8d4d290ee36f4520b90d447c97359b92da865e76 | Java | SourceHot/spring-framework-read | /spring-source-hot-ioc-book/src/test/java/com/source/hot/ioc/book/ioc/beaninfo/BeanInfoTest.java | UTF-8 | 3,300 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | package com.source.hot.ioc.book.ioc.beaninfo;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import org.je... | true |
9e5b5598c65b7cc73077c7a8c08ba48782fdb7f4 | Java | bitonio00/projectJava | /RealEstateProject/src/Model/SellerDaoImpl.java | UTF-8 | 2,600 | 2.59375 | 3 | [] | 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 Model;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet... | true |
7e1bad587e2c5dcf4a7a3bbba5cdc39f3e8e2ca7 | Java | WilamisAviz15/PayrollRefactoring | /Payroll/src/payroll/payment/model/Payslip.java | UTF-8 | 4,060 | 2.75 | 3 | [
"MIT"
] | permissive | package payroll.payment.model;
import java.time.LocalDate;
public class Payslip {
private Double basicPay = 0.00; // bruto
private Double netPay = 0.00; // liquido
private Double hours = 0.00;
private Double extrasHours = 0.00;
private LocalDate date;
private Double commissionsValue ... | true |
7e596f9a87e0097fbe07fd4914e73377c1f4a630 | Java | ACLeiChen/CatMemory | /app/src/main/java/com/example/lchen/catmemory/domain/GameLogicImpl.java | UTF-8 | 5,014 | 2.84375 | 3 | [] | no_license | package com.example.lchen.catmemory.domain;
import com.example.lchen.catmemory.data.GameRecordRepository;
import com.example.lchen.catmemory.domain.model.Card;
import com.example.lchen.catmemory.domain.model.Difficulty;
import com.example.lchen.catmemory.domain.model.User;
import java.util.ArrayList;
import java.util... | true |
e126ca7f31651b2210e2a1bab05cb2270d8f5b0e | Java | mangstadt/emc-shopkeeper | /src/main/java/emcshop/model/ILoginModel.java | UTF-8 | 1,687 | 2.828125 | 3 | [] | no_license | package emcshop.model;
import java.io.IOException;
import com.github.mangstadt.emc.net.InvalidCredentialsException;
import com.github.mangstadt.emc.net.TwoFactorAuthException;
import emcshop.scraper.EmcSession;
public interface ILoginModel {
/**
* Logs a user into EMC
* @param username the username
* @param ... | true |
028d8f5a8ea442237e32f5c54bbbf3aafb6a5e26 | Java | huaweicloud/huaweicloud-sdk-java-v3 | /services/vod/src/main/java/com/huaweicloud/sdk/vod/v1/model/PictureReviewRet.java | UTF-8 | 9,115 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.huaweicloud.sdk.vod.v1.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.Collections;
import ... | true |
9feb839e798c76e36d8cba9bd43ebcf1cc9c3baf | Java | Wapic/MCTestRPG | /src/main/java/se/spreadthebread/mctestrpg/spells/Heal.java | UTF-8 | 408 | 2.546875 | 3 | [] | no_license | package se.spreadthebread.mctestrpg.spells;
import org.bukkit.entity.Player;
/**
* Heal
*/
public class Heal extends Spell{
public Heal() {
super(1, "Heal", "LLR", 1);
}
@Override
public void getEffect(Player player) {
if(player.getHealth() >= 17){
player.setHealth(20);... | true |
739baf89225a147611d03f1cdda78a77dc262055 | Java | tejact/dsalgos-practise | /src/sort/QuickSort.java | UTF-8 | 1,300 | 3.484375 | 3 | [] | no_license | package sort;
import java.util.Arrays;
public class QuickSort {
public static void main(String[] args) {
int[] arr = new int[]{3, 9, 10, 12, 1, 4, 6};
partition_algorithmDesignManual(arr, 0, arr.length - 1);
quickSort(arr, 0, arr.length - 1);
System.out.println(Arrays.toString(arr)... | true |
33b0e9d11dc4b28607e921b9dc019cd66c196084 | Java | nguyenquanghuy8/appmp3huynq8 | /app/src/main/java/com/example/appmp3/model/repository/CategoryRepository.java | UTF-8 | 1,198 | 2.140625 | 2 | [] | no_license | package com.example.appmp3.model.repository;
import android.os.Handler;
import android.os.Looper;
import com.example.appmp3.model.entity.Category;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Singleton;
@Singleton
public class CategoryRepository {
@Inject
... | true |
1ea54ac3129b4722c4460b8a8fa2142276601a84 | Java | tectronics/l2prime | /L2JPrime_CORE/java/com/it/br/gameserver/datatables/GMSkillTable.java | UTF-8 | 3,486 | 1.960938 | 2 | [] | no_license | /* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but ... | true |
3aa7ece1c9417ac4883314cfda611b5c09f4e1be | Java | lledinh/Twitch-Java-IRC-Client | /src/com/ledinh/twitch_irc/event/MessageEvent.java | UTF-8 | 1,909 | 2.5 | 2 | [] | no_license | package com.ledinh.twitch_irc.event;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.ledinh.twitch_irc.Message;
public class MessageEvent extends IRCEvent {
public enum Badge {
STAFF,
ADMIN,
GLOBAL_MOD,
MODERATOR,
SUBSCRIBER,
TURBO
}
public enum UserType {
STAFF,
ADMI... | true |
e11e476425f9a356017fa3e8f28d73d49aaa76b4 | Java | tlaplus/tlaplus | /tlatools/org.lamport.tlatools/src/util/Set.java | UTF-8 | 14,715 | 3.140625 | 3 | [
"MIT"
] | permissive | // Copyright (c) 2003 Compaq Corporation. All rights reserved.
// Last modified on Tue Sep 12 14:46:23 PDT 2000 by yuanyu
// modified on Thu Jul 9 22:10:25 PDT 1998 by manolios
/**
* This class was derived from the HashTable implementation
* in Sun's JDK. It supports quick membership check.
*/
package util... | true |
c114cee7f532721870a1175f10a80e4fd8602905 | Java | leonar/mango-ng | /src/test/java/com/winhong/core/FileViewTest.java | UTF-8 | 6,385 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package com.winhong.core;
import com.winhong.core.base.BaseTest;
import com.winhong.mango.AppConfig;
import com.winhong.mango.CommonUtil;
import com.winhong.mango.RandomString;
import org.apache.log4j.Logger;
import org.testng.annotations.Test;
import java.util.Map;
import static com.winhong.mango.Operations.*;
impo... | true |
db812202ee1f53e85e63aa9943f52f7ca44d5ccc | Java | Aserun/Othello3 | /src/manualStrategies/ManualStrategyGUI.java | SHIFT_JIS | 1,428 | 3 | 3 | [] | no_license | package manualStrategies;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import game.*;
import graphix.OthelloGraphics;
public class ManualStrategyGUI extends StrategyGUI{
String playerName;
BufferedReader br;
// volatile boolean flagWaitingForMouseC... | true |
b4461c007dc8561932b3c495fbf59159e08e0e8d | Java | JustinRoesner/EclipseProjects | /eclipseworkspace/TotemBiz/test/com/justin/totemBiz/TotemReporterTest.java | UTF-8 | 1,273 | 2.78125 | 3 | [] | no_license | package com.justin.totemBiz;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.justin.linkedlist.LinkedList;
public class TotemReporterTest {
TotemReporter totemReporterUnderTest;
Totem totemUnderTest1;
Totem totemUnderTest2;
Totem totemUnderTest3;
Totem totemUnderTest4;
L... | true |
29d81982cc928097bf142767f7d1de5091124b2e | Java | mierl/ZHT_Sim | /src/KVSStrongConsist/TaskDetail.java | UTF-8 | 762 | 2.53125 | 3 | [] | no_license | public class TaskDetail
{
public long taskId;
public int clientId;
public String taskSuccess;
public String taskType;
public long taskSubmitTime;
public long taskQueuedTime;
public long taskEndTime;
public long taskBackClientTime;
public int numHops;
public TaskDetail(long taskId, int clientId, String task... | true |
3998f44b595eeec9f679000e4c9c0b191c046f98 | Java | angrysea/storefront | /storefrontbeans/src/com/storefront/storefrontbeans/UserBean.java | UTF-8 | 42,881 | 1.976563 | 2 | [] | no_license | package com.storefront.storefrontbeans;
import java.util.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.storefront.storefrontrepository.*;
import javax.naming.*;
import javax.mail.*;
import javax.mail.internet.*;
public class UserBean
extends BaseBean {
final ... | true |
cf1b5599bcc20780f97630c28dbe4e078c423eaf | Java | pedroalmir/regressionTestingPriorization | /tmp/java/CorrecaoGuiaConsultaComProcedimentoDuplicado.java | ISO-8859-1 | 2,230 | 2.453125 | 2 | [] | no_license | package br.com.infowaypi.ecare.correcaomanual;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import org.hibernate.Transaction;
import br.com.infowaypi.ecarebc.atendimentos.GuiaConsulta;
import br.com.infowaypi.ecarebc.enums.SituacaoEnum;
import br.com.infowaypi.ecarebc.procedimentos.Proced... | true |
07f25899589e10fa396fd5a34b73771c3f324ef9 | Java | nikkieverett/java-telematics-project | /src/VehicleInfoTemplate.java | UTF-8 | 2,202 | 3.015625 | 3 | [] | no_license | public class VehicleInfoTemplate {
public static final String header = "<!DOCTYPE html>\n" +
"<html lang=\"en\">\n" +
"<head>\n" +
" <meta charset=\"UTF-8\">\n" +
" <title>Telematics Project</title>\n" +
"\n" +
"</head>\n" +
"... | true |