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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a5548e9566e1dfbaa96d08b7b07a0fcddecfd0be | Java | InfinityRaider/NinjaGear | /src/main/java/com/infinityraider/ninjagear/item/ItemShuriken.java | UTF-8 | 2,806 | 1.984375 | 2 | [
"MIT"
] | permissive | package com.infinityraider.ninjagear.item;
import com.infinityraider.ninjagear.NinjaGear;
import com.infinityraider.ninjagear.api.v1.IHiddenItem;
import com.infinityraider.ninjagear.entity.EntityShuriken;
import com.infinityraider.ninjagear.handler.NinjaAuraHandler;
import com.infinityraider.ninjagear.reference.Refere... | true |
ab02ea62f6c63172041b07d33145401c412a88c5 | Java | wwmengtao/AndroidTest_AS | /rxjava-android-sample/src/main/java/com/example/rxjava_android_sample/utils/ThrObserverInfo.java | UTF-8 | 2,351 | 2.46875 | 2 | [] | no_license | package com.example.rxjava_android_sample.utils;
import android.os.SystemClock;
import com.example.rxjava_android_sample.ALog;
import java.util.List;
import rx.Observable;
import static com.example.rxjava_android_sample.utils.ObserverInfo.BaseObserver;
/**
* Created by mengtao1 on 2017/12/20.
*/
public class Th... | true |
ebfda6f9bfe0ce6c2be630a2d9f1e22f0255fbad | Java | gellmr/Consultant-Tool | /src/consultanttool3/ConsultantDateInput.java | UTF-8 | 3,525 | 3.53125 | 4 | [] | no_license | /**
* Title: Consultant Tool
*
* Author: Michael Gell (Student 30276096)
*
* Date: 11 May 2012
*
* File Name: ConsultantDateInput.java
*
* Purpose: A DateInput which is associated with a particular Consultant.
*
*
* Assumptions / Conditions
*
* Form of Input:
*
* ... | true |
dc10f6846db410adbff0edb36e9ddd2af0a2a40b | Java | TencentCloud/tencentcloud-sdk-java | /src/main/java/com/tencentcloudapi/bda/v20200324/BdaClient.java | UTF-8 | 21,226 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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 |
8567b5b999d22fa0f2c909bcf10b3000dfaa0b22 | Java | lenkalee814089/domain | /insight-domain-security/src/main/java/com/dataexa/insight/domain/security/spark/dataset/model/RailwayRecord.java | UTF-8 | 2,831 | 1.914063 | 2 | [] | no_license | package com.dataexa.insight.domain.security.spark.dataset.model;
import com.alibaba.fastjson.JSONObject;
import java.io.Serializable;
public class RailwayRecord implements Serializable {
private String GMSFHM;
private String SFD;
private String MDD;
private String CC;
private String CXH;
pri... | true |
f67cb8b72b98ae7d246119f0c4d1396f6c2ee1e0 | Java | wyczol/gra_Test_Spostrzegawczosci | /PracaSemestralna/src/controller/MainWindowController.java | WINDOWS-1250 | 2,411 | 2.71875 | 3 | [] | no_license | package controller;
import java.io.IOException;
import controller.Main;
import javafx.scene.control.*;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.Cell;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane;
import ... | true |
e7590dbe5bfb25593de8a685acf9b81c1a5f044e | Java | 793753509/InterviewIForJob | /Arithmetic/src/main/java/com/zcprog/arithmetic/LeetCode_0031_NextPermutation.java | UTF-8 | 2,109 | 4.15625 | 4 | [
"Apache-2.0"
] | permissive | package com.zcprog.arithmetic;
import java.util.Arrays;
/**
* @Description 下一个排列
* @Author zhaochao
* @Date 2020/12/21 17:38
* @Email zcprog@foxmail.com
* @Version V1.0
*/
public class LeetCode_0031_NextPermutation {
/**
* LeetCode地址:https://leetcode-cn.com/problems/next-permutation/
* 实现获取下一个排列的函... | true |
e4b0f81b0cb8c6f7a5848b0d8309d7b56d558968 | Java | vicchiam/AppFichas | /AppFichas/src/pcs/interfacesDAO/LanguageDAO.java | UTF-8 | 619 | 2.140625 | 2 | [] | no_license | package pcs.interfacesDAO;
import java.sql.SQLException;
import java.util.Collection;
import pcs.language.Language;
public interface LanguageDAO {
public Collection<Language> listLanguages(String name, int state) throws SQLException;
public Language getLanguage(int id) throws SQLException;
publ... | true |
f3df704aa8a4adfd79b57968c07e5af487dba29d | Java | luseek/house | /src/main/java/com/jzfq/house/swagger/model/amp/ProjectReq.java | UTF-8 | 483 | 1.648438 | 2 | [] | no_license | package com.jzfq.house.swagger.model.amp;
import lombok.Data;
/**
* 项目入参
*
* @author Garen Gosling
* @create 2018-04-21 14:11
* @since v1.0
*/
@Data
public class ProjectReq {
private Integer projectId;
private String houseName;
private String name;
private String leader;//person表username
pri... | true |
7577ae237651460080f15261eea67e73b6c5f1a0 | Java | gcomte/zeus | /backend/src/main/java/ch/puzzle/ln/zeus/web/rest/BitcoinResource.java | UTF-8 | 3,290 | 2.09375 | 2 | [
"MIT"
] | permissive | package ch.puzzle.ln.zeus.web.rest;
import ch.puzzle.ln.zeus.config.ApplicationProperties;
import ch.puzzle.ln.zeus.service.BitcoinService;
import io.micrometer.core.annotation.Timed;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.actuate.health.AbstractHealthIndicator;
import... | true |
ae3cfbc51c24d894515663b07845682669d8d005 | Java | yuananye/fcoin-java-api | /src/main/java/com/fcoin/api/client/domain/Depth.java | UTF-8 | 392 | 1.726563 | 2 | [
"MIT"
] | permissive | package com.fcoin.api.client.domain;
import lombok.Getter;
import lombok.Setter;
import java.math.BigDecimal;
import java.util.List;
/**
* created by jacky. 2018/7/21 2:28 PM
*/
@Getter
@Setter
public class Depth {
private String type;
private String seq;
private long ts;
//[price,vol,price1,vol1]
... | true |
9cdca151a88635c686f0bfd2dab4b34ce0746a5b | Java | appirio-tech/direct-app | /services/catalog_services/src/java/main/com/topcoder/catalog/service/CatalogServiceImpl.java | UTF-8 | 89,011 | 1.734375 | 2 | [] | no_license | /*
* Copyright (C) 2009 TopCoder Inc., All Rights Reserved.
*/
package com.topcoder.catalog.service;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Calendar;
import java.uti... | true |
ffa34d4b10333d11056887853534a96968a0f66d | Java | azzdinemj/edu-crmclub | /educrm-api/src/main/java/com/wuxue/api/controller/junhua/TrophicAnalysisController.java | UTF-8 | 1,708 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.wuxue.api.controller.junhua;
import com.wuxue.api.service.junhwa.StudentNutritionAnalysisService;
import com.wuxue.api.service.junhwa.TrophicAnalysisService;
import com.wuxue.model.ParentOrder;
import com.wuxue.model.junhwa.StudentNutritionAnalysis;
import com.wuxue.utils.contract.Request;
import com.wuxue... | true |
7c044498557e9b8ef2b22dc36cd03b5558c1856a | Java | zhongxingyu/Seer | /Diff-Raw-Data/31/31_5a6498dd14c1fbeec9581df62b66e0686918ed99/RequisitionServiceTest/31_5a6498dd14c1fbeec9581df62b66e0686918ed99_RequisitionServiceTest_s.java | UTF-8 | 65,345 | 1.617188 | 2 | [] | no_license | /*
*
* * Copyright © 2013 VillageReach. All Rights Reserved. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* *
* * If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
package org.openlmis.rnr.service;
... | true |
7fe6ce83ddfa6deb03846d53252716de000e6fe1 | Java | dmifed/JavaRush | /2.JavaCore/src/tests/CharArrayToString.java | UTF-8 | 429 | 3.109375 | 3 | [] | no_license | package tests;
/**
* Created by dima on 01.03.2017.
*/
public class CharArrayToString {
public static void main(String[] args) {
String s= "abcdef";
char[] chars = s.toCharArray();
StringBuilder stringBuilder = new StringBuilder();
for(int i = chars.length-1; i>=0; i--){
... | true |
67f322933c51012a1880bbd2960cd808c2a7223a | Java | maomengya/eclipseremeto | /2.1 第二章1—顺序表/src/第二章_顺序表/Student.java | GB18030 | 1,092 | 3.640625 | 4 | [] | no_license | package ڶ_˳;
public class Student extends Object implements Comparable<Student> //ѧ
{
String name; //
int score; //ijſγ̳ɼ
public Student (String name,int score) //췽
{
this.name = ... | true |
23870d81a2f6ffe9bebc3b2ede783a90e2e28b31 | Java | voxwivas/lab-inventory | /src/main/java/com/labfolder/labexperimentinventory/devices/store/FakeDeviceStore.java | UTF-8 | 2,190 | 3.015625 | 3 | [] | no_license | package com.labfolder.labexperimentinventory.devices.store;
import com.labfolder.labexperimentinventory.devices.models.Device;
import com.labfolder.labexperimentinventory.exceptions.DeviceExistsException;
import com.labfolder.labexperimentinventory.exceptions.DeviceNotFoundException;
import java.util.*;
public class... | true |
609d91f7ad5dc893991896f2aa1e5455e82f36a5 | Java | marssong123/FrameApp | /ioc/src/main/java/com/ssjj/ioc/http/PutTask.java | UTF-8 | 915 | 2.265625 | 2 | [] | no_license | package com.ssjj.ioc.http;
import com.android.volley.AuthFailureError;
import com.android.volley.Request;
import java.util.Map;
/**
* Created by GZ1581 on 2016/5/30
*/
public class PutTask extends HttpTask {
private String mBodyContentType;
private Map<String, String> mBodyParams;
privat... | true |
c29adc29205ac88cf447029d7994ca4838275419 | Java | ducpm8/CloudinaryUploadTool | /src/main/java/cloudinary/repositories/ImageObject.java | UTF-8 | 2,563 | 2.46875 | 2 | [] | no_license | package cloudinary.repositories;
public class ImageObject {
public String sku = "";
public String image1;
public String image2;
public String image3;
public String image4;
public String newImage1;
public String newImage2;
public String newImage3;
public String newImage4;
public String reason = "";
publi... | true |
d4ea1484ce6d0c13e45b702ae81064aea95549ac | Java | sudcea/openjsfshop | /src/main/java/com/openshop/beans/UserSearchBean.java | UTF-8 | 972 | 2.21875 | 2 | [] | no_license | package com.openshop.beans;
/**
* User: Patrick Trautmann
* Date: 13.05.11
* Time: 18:15
* Contact & Support: http://sharea.de
*/
public class UserSearchBean {
private String eMail;
private String prename;
private String surname;
public UserSearchBean() {
}
private bo... | true |
1949fc8d596cb1c1d39cf569dad255938570c0fb | Java | ReadingGroup534/DailyReading | /server/reading/reading-web/src/main/java/com/aiteu/reading/web/api/ApiDealer.java | UTF-8 | 1,425 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.aiteu.reading.web.api;
import java.util.List;
import java.util.Map;
import org.springframework.ui.ModelMap;
import com.aiteu.reading.api.model.Browse;
import com.aiteu.reading.api.service.ArticleService;
import com.aiteu.reading.api.service.BrowseService;
/**
* 主要是处理api的核心事物
* @author liwei
*
*/
pub... | true |
3bb520798e0c8ec5ee8d3dd03d2ddacdefc743ea | Java | lwj278455/frame | /src/main/java/com/xxx/frame/Entity/AdminUser.java | UTF-8 | 4,399 | 2.25 | 2 | [] | no_license | package com.xxx.frame.Entity;
import java.io.Serializable;
import java.util.List;
public class AdminUser implements Serializable {
private Integer id;
private String name;
private String username;
private String password;
private String adminlevel;
private String qrcodeurl;
private L... | true |
17fd46e2ac3baf7aaaac7c74fae4ea80d430d349 | Java | AnilSrinivasMuddineni/testingWorks | /SingletonExample.java | UTF-8 | 947 | 3.15625 | 3 | [] | no_license | package testing1;
class SingletonExample {
private static SingletonExample singletonExample;
public String s = null;
private SingletonExample() {
s = "this is what singleton class is pppp :)";
}
public static SingletonExample SingletonExampleMethod() {
if(singletonExample ==nu... | true |
69e9042605b472e293f45e49f8c085ef4f57260d | Java | jenniferpetersen/INTE-Projekt | /HedgeFund.java | UTF-8 | 463 | 2.609375 | 3 | [] | no_license | package netrunner;
public class HedgeFund extends Operation{
public HedgeFund(){
super("HedgeFund", "Transaction", "Gain 9 credits", 5, "neutral", "0", false);
}
protected void playCard(Corporation corp){
if (corp.getCredits() >= this.getCost()) {
corp.gainCredits(9);
corp.removeCardFromHQ(this);
c... | true |
a586386610d3bf6295224f6f7d4663fef645300c | Java | suxpro/YA801G3 | /src/back/employee/controller/LoginHandler.java | UTF-8 | 2,762 | 2.65625 | 3 | [] | no_license | package back.employee.controller;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import back.employee.model.EmployeeDAO;
import back.employee.model.EmployeeVO;
public class LoginHandler extends HttpServlet {
// 【檢查使用者輸入的帳號(account) 密碼(password)是否有效】
// 【實際上... | true |
f1e59998a720aa59a10a02ddbdbdff179e9665da | Java | ppazos/hapi-testpanel | /hunit/hunit-impl/src/main/java/ca/uhn/hunit/compare/hl7v2/bulk/BulkHl7V2Comparison.java | UTF-8 | 6,171 | 2.1875 | 2 | [] | no_license | package ca.uhn.hunit.compare.hl7v2.bulk;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.logging.Logger;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.model.Message;
import ca.uhn.hl7v2.p... | true |
f33e2283d84bd64c4dd2d3e7fe013f30adc10b3c | Java | PMKCHOWDARY/Java-Programs | /48.java | UTF-8 | 343 | 2.96875 | 3 | [] | no_license | import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int n=s.nextInt();
int[] arr=new int[n];
for(int i=0;i<n;i++)
arr[i]=s.nextInt();
int k=0;
for(int j=0;j<n;j++) {
arr[k]=Math.abs(arr[j]*arr[j]);
k++;
}
Arrays.sort(arr);
for(int i=0;i<n;i++)
System.out... | true |
a4d33809c801fcc8521c3beabdea7a85114b195a | Java | ChikaKanu/fashionApp | /fashion/src/main/java/com/example/codeclan/fashion/repository/fabricSuppliers/FabricSupplierRepository.java | UTF-8 | 506 | 1.742188 | 2 | [] | no_license | package com.example.codeclan.fashion.repository.fabricSuppliers;
import com.example.codeclan.fashion.models.FabricSupplier;
import com.example.codeclan.fashion.projections.FabricSupplierProjection;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.Reposi... | true |
30709bdb4394313a2676d0fbb140d78e9c67865d | Java | entropy64/JiraRESTClient | /src/main/java/com/softwareleaf/jira/jql/JQLOrder.java | UTF-8 | 855 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | package com.softwareleaf.jira.jql;
/**
* Provides an API for handling {@literal "ORDER BY"} JQL Keyword
* grammar rules.
*
* @author Jonathon Hope
*/
public class JQLOrder {
/**
* This enum provides the types of JQL ordering.
*
* @author Jonathon Hope
*/
public enum Ord... | true |
0581abe20038bc27d7964ce7cc3c2d55e84262e7 | Java | yiner233/Age-of-Exile | /src/main/java/com/robertx22/age_of_exile/vanilla_mc/items/gearitems/weapons/MaceWeapon.java | UTF-8 | 850 | 2.296875 | 2 | [] | no_license | package com.robertx22.age_of_exile.vanilla_mc.items.gearitems.weapons;
import com.robertx22.age_of_exile.uncommon.enumclasses.WeaponTypes;
import com.robertx22.library_of_exile.utils.RandomUtils;
import com.robertx22.library_of_exile.utils.SoundUtils;
import net.minecraft.entity.LivingEntity;
import net.minecraft.item... | true |
a902e0b3c1bed33f4990ed265660b346a5f811fd | Java | TinyEaves/webflux-samples | /webflux-spring-security/src/test/java/org/javaboy/webflux/springsecurity/WebfluxSpringSecurityApplicationTests.java | UTF-8 | 250 | 1.515625 | 2 | [
"Apache-2.0"
] | permissive | package org.javaboy.webflux.springsecurity;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class WebfluxSpringSecurityApplicationTests {
@Test
void contextLoads() {
}
}
| true |
54acfe60213dc4d7953c9a08232a1917200fb2d0 | Java | smitdetroja96/RCTMP | /app/src/main/java/com/example/rctmp/SuggestionsBookCount.java | UTF-8 | 829 | 2.828125 | 3 | [] | no_license | package com.example.rctmp;
import java.util.Comparator;
public class SuggestionsBookCount {
BooksClass book;
int cnt;
public SuggestionsBookCount() {
}
public SuggestionsBookCount(BooksClass book, int cnt) {
this.book = book;
this.cnt = cnt;
}
public BooksClass getBook(... | true |
3facebc153beeb7721e77ff1de4e6b78b7b6b01b | Java | jsbradley523/LeetCode | /src/test/java/jamison/bradley/leet/code/questions/algorithms/PopulatingNextRightPointersInEachNodeTest.java | UTF-8 | 2,592 | 2.8125 | 3 | [] | no_license | package jamison.bradley.leet.code.questions.algorithms;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Before;
import org.junit.Test;
public class PopulatingNextRightPointersInEachNodeTest {
private PopulatingNextRightPointersInEachNode connector;
@Before
public void before()... | true |
f654ddd938705d44fdbcaa4e277640b859d8224f | Java | b96705008/te_matrix_system | /src/paper/semantic/matrix/LSI.java | UTF-8 | 5,821 | 3.25 | 3 | [] | no_license | package paper.semantic.matrix;
import weka.core.matrix.Matrix;
import weka.core.matrix.SingularValueDecomposition;
/**
* This class implements the Latent Semantic Indexing technique. <br/>
* LSI generalises a sparse matrix of indexed terms using term co-occurrences.
* The approximation uses a given l... | true |
a886a8ae17cfc48fb4342b5be4801d29a69c6bb8 | Java | lukacsd/aws-scheme | /src/org/lukacsd/aws/scheme/ui/SchemeFragment.java | UTF-8 | 7,413 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 David Lukacs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | true |
6aee2d8f8ffa12defd8cad331ac917184e2f34ed | Java | mycom-int/jersey-guice-aop | /src/test/java/com/mycom/samples/aop/application/TestMusicianFinderApp.java | UTF-8 | 973 | 2.21875 | 2 | [] | no_license | package com.mycom.samples.aop.application;
import static org.fest.assertions.Assertions.assertThat;
import javax.inject.Inject;
import org.jukito.JukitoRunner;
import org.jukito.TestModule;
import org.junit.Test;
import org.junit.runner.RunWith;
import com.mycom.samples.aop.domain.model.Instrument.Category;
import ... | true |
534e84fdf0d6e9674ee8e6def4f04c03b69544a2 | Java | HelixOW/UHC-Spigot | /UHC-Remake/src/main/java/de/alphahelix/uhc/inventories/TeamInventory.java | UTF-8 | 1,317 | 2.4375 | 2 | [] | no_license | package de.alphahelix.uhc.inventories;
import de.alphahelix.alphalibary.item.ItemBuilder;
import de.alphahelix.uhc.instances.UHCTeam;
import de.alphahelix.uhc.register.UHCFileRegister;
import de.alphahelix.uhc.util.TeamManagerUtil;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Player;
... | true |
fd57199084bd9c166dac2a0683f97c4d6d772d37 | Java | IsoyaKureno/QueteSimpleUI | /app/src/main/java/com/example/apprenti/quetesimpleui/MainActivity.java | UTF-8 | 2,391 | 2.3125 | 2 | [] | no_license | package com.example.apprenti.quetesimpleui;
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.CheckBox;
import android.widge... | true |
4e8b13c1973f3a01547237425f4036f795ed45f2 | Java | priyankvex/Mobile-applications | /Label The Diagram/source-code/LabeltheDiagram/src/com/buildmlearn/labeldiagram/DiagramMenuMicroogranisms.java | UTF-8 | 2,563 | 2.328125 | 2 | [
"BSD-3-Clause"
] | permissive | package com.buildmlearn.labeldiagram;
import com.buildmlearn.labeldiagram.resources.BacteriaFragment;
import com.buildmlearn.labeldiagram.resources.VirusFragment;
import com.example.labelthediagram.R;
import android.app.ActionBar;
import android.content.Context;
import android.content.SharedPreferences;
import androi... | true |
fd96814bc009d077387488c00f7cb7a9fb36902f | Java | 0is2/GDmarket-Premium | /GDmarket-premium/alarm/src/main/java/gdmarketpremium/Alerted.java | UTF-8 | 252 | 2.09375 | 2 | [] | no_license | package gdmarketpremium;
public class Alerted extends AbstractEvent {
private Long id;
public Alerted(){
super();
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
} | true |
c132582208aac627c6954f1bdb82a194fe07664b | Java | 1145087558/flightServer | /src/main/java/com/example/flight/exception/GlobalExceptionHandler.java | UTF-8 | 1,487 | 2.203125 | 2 | [] | no_license | package com.example.flight.exception;
import com.example.flight.model.error.ErrorInfo;;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotati... | true |
d7360507eaa075f858c7f3ab9cd2e7290a11ab16 | Java | callMeZJ/wondeful | /src/main/java/com/wonderful/service/MasterCardPurchaseDetailsSummaryService.java | UTF-8 | 349 | 1.625 | 2 | [] | no_license | package com.wonderful.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wonderful.bean.dto.MasterCardPurchaseDetailsSummaryDTO;
public interface MasterCardPurchaseDetailsSummaryService {
IPage<MasterCardPurchaseDetailsSummaryDTO> pageSummary(MasterCardPurchaseDetailsSummaryDTO masterCardP... | true |
16433d414df3ab2fe22559803bf59528b9489178 | Java | markdathorne/geektastic | /src/main/java/com/fsbtech/interviews/entities/MarketRefType.java | UTF-8 | 713 | 2.71875 | 3 | [] | no_license | package com.fsbtech.interviews.entities;
import java.io.Serializable;
public class MarketRefType implements Serializable
{
private final Integer marketRefId;
private final String marketRefName;
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(marketRefId).appe... | true |
c369ec9c998afa3429e81c9fb7ded17043ce4f97 | Java | capitalhumain/homepage | /java/lab/springboot/junit5-playground/src/test/java/playground/simple/SimpleTest.java | UTF-8 | 784 | 2.921875 | 3 | [] | no_license | package playground.simple;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.List;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class SimpleTest {
@Test
public void testAllMatch() {
List<Inte... | true |
334a1d99da9edc156eb03c1e0210bda033a8126c | Java | rforshaw/MalletEngine | /src/com/linxonline/mallet/input/InputEvent.java | UTF-8 | 2,845 | 2.65625 | 3 | [
"Zlib"
] | permissive | package com.linxonline.mallet.input ;
import com.linxonline.mallet.util.caches.Cacheable ;
public final class InputEvent implements Cacheable
{
public InputID id ;
public InputType inputType ;
public KeyCode keycode ;
public int mouseX = 0 ;
public int mouseY = 0 ;
public boolean isActionKey = false ;
public ... | true |
d2a1d28ec001a437777427fae3ba5644978b319b | Java | situjun/order-management | /src/main/java/com/flyingwillow/restaurant/web/waiter/controller/WaiterOrderRestController.java | UTF-8 | 8,085 | 2.140625 | 2 | [] | no_license | package com.flyingwillow.restaurant.web.waiter.controller;
import com.flyingwillow.restaurant.domain.CustomOrder;
import com.flyingwillow.restaurant.domain.CustomOrderDetail;
import com.flyingwillow.restaurant.domain.FoodCategory;
import com.flyingwillow.restaurant.domain.Menu;
import com.flyingwillow.restaurant.servi... | true |
2150c1ce86325dd14a3c6849a84699b0daf209da | Java | stormning/platform | /catering-service/src/main/java/com/le07/catering/model/BoardItem.java | UTF-8 | 1,751 | 2.171875 | 2 | [] | no_license | package com.le07.catering.model;
import org.hibernate.annotations.*;
import java.io.Serializable;
import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;
/**
* Model
*
* Created with IDEA
* User: 虎
* Date: 13-7-21
* Time: 下午10:39
*/
@Entity
@Table(n... | true |
0351c14d1734f574f673c0e745f7ff423fc3a5f8 | Java | satelite54/BUSAN_IT_ACADEMY | /Spring_Infearn/Web_RTC_Sgnaling_Spring_Server/src/main/java/org/nextrtc/signalingserver/domain/EventContext.java | UTF-8 | 4,159 | 2.3125 | 2 | [
"MIT"
] | permissive | package org.nextrtc.signalingserver.domain;
import com.google.common.collect.Maps;
import org.nextrtc.signalingserver.api.NextRTCEvents;
import org.nextrtc.signalingserver.api.dto.NextRTCConversation;
import org.nextrtc.signalingserver.api.dto.NextRTCEvent;
import org.nextrtc.signalingserver.api.dto.NextRTCMember;
imp... | true |
65a47bb1bb32bd0a01d0b33a486ca9313e5c5f09 | Java | liuandhisgithub/myblog | /blog/src/main/java/com/liu/myblog/action/CommentAction.java | UTF-8 | 907 | 1.984375 | 2 | [] | no_license | package com.liu.myblog.action;
import com.liu.myblog.entity.Comment;
import com.liu.myblog.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.w... | true |
547a65803de9fa882fec05b09c57091ec81af67b | Java | reverseengineeringer/fr.dvilleneuve.lockito | /src/io/fabric/sdk/android/services/persistence/PersistenceStrategy.java | UTF-8 | 378 | 1.835938 | 2 | [] | no_license | package io.fabric.sdk.android.services.persistence;
public abstract interface PersistenceStrategy<T>
{
public abstract void clear();
public abstract T restore();
public abstract void save(T paramT);
}
/* Location:
* Qualified Name: io.fabric.sdk.android.services.persistence.PersistenceStrategy
* Jav... | true |
fe6aeb1315330d19954d57922a1fcbc976bf59c7 | Java | 18731218717/jewelry_manager | /src/main/java/org/bdyy/jewelry/pojo/FinishedProductSubclassExample.java | UTF-8 | 14,227 | 2.328125 | 2 | [] | no_license | package org.bdyy.jewelry.pojo;
import java.util.ArrayList;
import java.util.List;
public class FinishedProductSubclassExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public FinishedProductSubclassExample() {
oredCriteria = new Arr... | true |
3c8cc8a2ff469b051c47abac193d3c230d44f414 | Java | Mararsh/MyBox | /alpha/MyBox/src/main/java/mara/mybox/controller/JsonAddElementController.java | UTF-8 | 2,578 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package mara.mybox.controller;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import javafx.fxml.FXML;
import javafx.scene.control.TreeItem;
import mara.mybox.data.JsonTreeNode;
import mara.mybox.dev.MyBoxLog;
import mara.mybox.fxml.WindowTools;
import mara.mybox.... | true |
71317ce30a07857bfe532f0bd265431c0e22ce2f | Java | mictra/ooprojekt2015 | /calendarplusplus/src/test/java/edu/chl/calendarplusplus/model/NotificationManagerTest.java | UTF-8 | 1,551 | 2.65625 | 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 edu.chl.calendarplusplus.model;
import java.util.Calendar;
import org.junit.Test;
import org.junit.Assert;
/**
*... | true |
76bcce655109d30a7056c8ae6c845d1a51fe4f0a | Java | marcoeilers/pcsd | /assignment-3/master/src/dk/diku/pcsd/assignment3/master/impl/KeyValueBaseMasterImplService.java | UTF-8 | 2,931 | 2.109375 | 2 | [] | no_license | package dk.diku.pcsd.assignment3.master.impl;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebService;
import dk.diku.pcsd.assignment3.impl.KeyImpl;
import dk.diku.pcsd.assignment3.impl.ValueListImpl;
import dk.diku.pcsd.keyvalu... | true |
348aba1fb10a6d711ee5c8ff31515a48801e8179 | Java | Park-SooYeon/Coding-Test-Practice | /bruteForce/permutation/Baekjoon1339.java | UTF-8 | 2,107 | 3.390625 | 3 | [] | no_license | package bruteForce.permutation;
/*
문제 출처 : https://www.acmicpc.net/problem/1339
단어 수학
푼 날짜 : 2021-03-07
*/
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.Ha... | true |
ff65fb97826de92e7d096aac67a5bc9c1d493cb0 | Java | seycileli/TimBuchalkaJavaMasterClass | /ClassesConstructorsInheritance/point/entities/Point.java | UTF-8 | 2,128 | 4.4375 | 4 | [] | no_license | package entities;
public class Point {
/*
You have to represent a Point in 2D space.
The class needs two fields (instance variables) with name x and y, of type int
*/
private int x, y;
/*
The class needs to have two constructors.
The first constructor does not have any parameters ... | true |
3a1a3713f7179a0568cc0aba2c42f30a93807925 | Java | duketeaches/ds_algo | /src/main/java/duke/learn/stacks/StackOps.java | UTF-8 | 2,080 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | package duke.learn.stacks;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
public class StackOps {
public static String reverseWord(String word) {
Stack<Character> charStack = new Stack<>(word.length());
for (int i = 0; i < word.length(); i++)
charStack.push(word.ch... | true |
9e757174901633bc4ee571f9d0948879c1dffa5b | Java | believe6998/hocjava | /Game/src/entity/Game.java | UTF-8 | 1,559 | 2.859375 | 3 | [] | no_license | package entity;
public class Game {
private String name;
private String description;
private double price;
private String releaseAt;
private String website;
public Game() {
}
public Game(String name, String description, double price, String releaseAt, String website) {
this.na... | true |
35f5e180b94f5bd5c4bbec44c602b8108a981aaf | Java | mcparkournet/anfodis | /anfodis-paper/src/main/java/net/mcparkour/anfodis/channel/registry/PaperChannelListenerRegistry.java | UTF-8 | 4,995 | 1.664063 | 2 | [
"MIT"
] | permissive | /*
* MIT License
*
* Copyright (c) 2020 MCParkour
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify... | true |
bf5145dd88bec090607e299d6c8e5426c7131176 | Java | seshasaisrivatsav/data-structures-java | /src/main/java/arraysAndStrings/MajorityElement.java | UTF-8 | 4,253 | 4.4375 | 4 | [] | no_license | package arraysAndStrings;
import java.util.Arrays;
/*
Given an array nums of size n, return the majority element.
The majority element is the element that appears more than ⌊n / 2⌋ times.
You may assume that the majority element always exists in the array.
Try to solve the problem in linear time a... | true |
72bc44587ac4101ec882d59c74a9198083bc6176 | Java | colbymorrison/chord-app-v2 | /src/main/java/backend/Resty.java | UTF-8 | 577 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | package backend;
import org.jfugue.theory.Note;
public class Resty extends Note implements Useable{
private Duration duration;
public Resty(Duration duration) {
super("R"+duration.getDur());
this.duration = duration;
}
public boolean isRest(){
return true;
}
public ... | true |
337d0017276504cf6df53e9f3dcbe38a7fc92837 | Java | xwhPanda/MyToolsProject | /NoteBook/src/main/java/com/lanshu/fragment/BaseFragment.java | UTF-8 | 1,180 | 2.140625 | 2 | [] | no_license | package com.lanshu.fragment;
import android.databinding.DataBindingUtil;
import android.databinding.ViewDataBinding;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
impor... | true |
13aedce99bf49e8ef44714a7f2391133e24bded7 | Java | Jonol3/retoLogin-Android | /app/src/main/java/com/example/reto1/LogOut.java | UTF-8 | 1,447 | 2.515625 | 3 | [] | no_license | package com.example.reto1;
import androidx.appcompat.app.AppCompatActivity;
import retoLogin.User;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
/**
* ... | true |
bff857b13fc6cfa52845e963c815a8f3876715be | Java | kylelee0617/SpringBootSample | /ModuleWeb/src/main/java/com/fg/web/zbean/LoginBean.java | UTF-8 | 596 | 2.015625 | 2 | [] | no_license | package com.fg.web.zbean;
import com.fg.service.vo.Result;
public class LoginBean {
private String useracc = "";
private String userpwd = "";
private Result result = null; //登入結果
public String getUseracc() {
return useracc;
}
public void setUseracc(String useracc) {
this.useracc = useracc;... | true |
2aca1ef993206e60cd81f9a543a94e98396b923e | Java | Yatharth0045/ProgrammingStuff | /javaPrograms/AlternateElementProduct.java | UTF-8 | 1,093 | 3.890625 | 4 | [] | no_license | /*
Given an array of integers, find the pair of adjacent elements that has the largest product and return that product.
Example
For inputArray = [3, 6, -2, -5, 7, 3], the output should be
adjacentElementsProduct(inputArray) = 21.
7 and 3 produce the largest product.
*/
class AlternateElementProduct{
... | true |
f9b7fc56cb59aaa4060bee9197b8d4bae0756a91 | Java | pombredanne/maven-verifier | /src/main/java/org/apache/maven/it/launcher/ForkedLauncher.java | UTF-8 | 5,791 | 1.890625 | 2 | [] | no_license | package org.apache.maven.it.launcher;
/*
* 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 Licens... | true |
752110be39617ad3d09dcfe7905e61206574d4c7 | Java | kan86197/pa1 | /src/converter/Length.java | UTF-8 | 453 | 3.265625 | 3 | [] | no_license | package converter;
public enum Length implements Unit{
METER("Meter", 1),
KILOMETER("Kilometer", 1000.0),
CENTIMETER("Centimeter", 0.01),
MILE("Mile", 1609.344),
FOOT("Foot", 0.3048),
WA("Wa", 2)
;
private String name;
private double value;
private Length(String name, double value){
this.na... | true |
cf7d44f3f4f62ad0a9cf783786007da450a3cd4d | Java | krizzikuse/MTe | /app-core/src/main/java/com/mercury/platform/core/utils/interceptor/plain/FrenchIncLocalizationMatcher.java | UTF-8 | 495 | 2.078125 | 2 | [
"MIT"
] | permissive | package com.mercury.platform.core.utils.interceptor.plain;
import org.apache.commons.lang3.StringUtils;
public class FrenchIncLocalizationMatcher extends LocalizationMatcher {
@Override
public boolean isSuitableFor(String message) {
return message.contains("@De");
}
@Override
public boole... | true |
016c7d6e65cee5d44790f9911e902afcf580894b | Java | jskd/ProtIntTP1 | /documentation/TP/TP3/Serveur.java | UTF-8 | 1,099 | 3.546875 | 4 | [] | no_license | import java.net.*;
import java.io.*;
import java.util.Random;
public class Serveur{
public static void main(String args[]){
try{
ServerSocket serv = new ServerSocket(3434);
Random rand = new Random();
int number = rand.nextInt(100)+1;
Socket socket = serv.accept();
BufferedReader br = new Buffe... | true |
e256e6cc37bef09b9d6919721e5bd0d57bbb5356 | Java | avirupdutta/30-days-of-Java | /src/LeetCode/Solution.java | UTF-8 | 5,120 | 3.375 | 3 | [] | no_license | package LeetCode;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Solution{
public int fib(int N){
if (N == 1)
return 1;
else if (N == 2)
return 1;
else if (N <= 0)
return 0;
return fib(N-1)+fib(N-2);
... | true |
32934c6889e9d4c1db83d1ac1ccf22318753a615 | Java | 0Zix0/PixelEngine | /PixelEngine/src/com/engine/Colors.java | UTF-8 | 698 | 2.46875 | 2 | [] | no_license | package com.engine;
public class Colors {
public static final int BLACK = 0x000000;
public static final int WHITE = 0xFFFFFF;
public static final int RED = 0xFF0000;
public static final int GREEN = 0x00FF00;
public static final int BLUE = 0x0000FF;
public static final int YELLOW = 0xFFFF00;
public s... | true |
c26f4d7d0189c29d871aaf0b67195eabb83bdec6 | Java | rathoreamrsingh/InventoryManagementSystem | /src/com/inventory/core/ApparelCategory.java | UTF-8 | 1,519 | 2.75 | 3 | [] | no_license | /**
*
*/
package com.inventory.core;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Properties;
/**
* @author amar
*
*/
public abstract class ApparelCategory extends ApparelImpl {
private Appa... | true |
9b8f7ad860a395a4eaa3673ab9883af34169db04 | Java | Diba15/TugasPerpustakaan | /src/Main.java | UTF-8 | 14,414 | 2.9375 | 3 | [] | no_license | import java.util.*;
public class Main {
static OpenLibrary openLibrary = new OpenLibrary();
static Scanner scanner = new Scanner(System.in);
static int pilih;
public static void add() {
String jenis, status, namaKoleksi, penerbit, tangter;
int noKoleksi, pilihStatus;
System.out... | true |
e176f08323182c37ff8b65831a79632b578b3a99 | Java | ChizhikovAlexey/LightUtilitiesBot | /src/main/java/chizhikov/utilitiesbot/bot/commands/Help.java | UTF-8 | 2,472 | 2.484375 | 2 | [] | no_license | package chizhikov.utilitiesbot.bot.commands;
import chizhikov.utilitiesbot.bot.KeyboardResolver;
import chizhikov.utilitiesbot.bot.userdata.ChatState;
import chizhikov.utilitiesbot.bot.userdata.ChatsManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;... | true |
edbdfbef9155bf66997373d6a8063751e07685a7 | Java | DevSnox/SmoothTimber | /src/main/java/com/syntaxphoenix/syntaxapi/utils/java/Reflections.java | UTF-8 | 1,224 | 3.0625 | 3 | [] | no_license | package com.syntaxphoenix.syntaxapi.utils.java;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class Reflections {
public static boolean hasSameArguments(Class<?>[] compare1, Class<?>[] compare2) {
if (compare1.length == 0 && compare2.length == 0) {
return ... | true |
dffc2c924c9b5e0c6f6771e949d70e13643510e2 | Java | braveyly/fangdongliqi | /code/src/main/java/com/tvt/fdlq/domain/Property.java | UTF-8 | 3,546 | 2.296875 | 2 | [] | no_license | package com.tvt.fdlq.domain;
public class Property extends PropertyKey {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column property.name
*
* @mbg.generated
*/
private String name;
/**
*
* This field ... | true |
2f40659a3f21e1b8cdbcf7384d5ef0a560eb530c | Java | Aksh12/Learningconcepts | /testprojectAutomationTool/fittrapplication/src/test/java/utilities/CommonUtils.java | UTF-8 | 2,801 | 1.9375 | 2 | [] | no_license | package utilities;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URL;
import java.util.Properties;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
import org.openqa.selenium.remote.DesiredCapabilities;
import io.appium.java_client.remote.AndroidMobileCapabilityType;... | true |
9f9f51188f17edbf3db8a1439cbc2d3c08a580ca | Java | wuwushijunru/snack-app | /app/src/main/java/com/shuyue/snack/ui/snack/SnackViewModel.java | UTF-8 | 436 | 1.890625 | 2 | [] | no_license | package com.shuyue.snack.ui.snack;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MediatorLiveData;
import androidx.lifecycle.ViewModel;
public class SnackViewModel extends ViewModel {
private MediatorLiveData<String> mText;
public SnackViewModel() {
mText = new MediatorLiveData<>();
... | true |
6b1fb2cc199bfd787ea080362bf65d0ff5fca591 | Java | dmzadorin/clientService | /src/main/java/ru/dmzadorin/clientservice/net/request/RequestDispatcher.java | UTF-8 | 500 | 2.234375 | 2 | [] | no_license | package ru.dmzadorin.clientservice.net.request;
import ru.dmzadorin.clientservice.model.response.ResponseType;
import java.io.InputStream;
/**
* Created by Dmitry Zadorin on 07.03.2018
*/
public interface RequestDispatcher {
/**
* Parses request body into xml RequestType and dispatches that request to app... | true |
1b6ac3cf2254403fd72ab517e897a8f37f1deef6 | Java | OlBiMaCooJam/heaven-games | /src/main/java/com/olbimacoojam/heaven/mafia/MafiaResult.java | UTF-8 | 95 | 1.5625 | 2 | [] | no_license | package com.olbimacoojam.heaven.mafia;
public enum MafiaResult {
MAFIA_WIN, CITIZEN_WIN
}
| true |
d58d8f855427f392b33edca4a5283d9ebfcbdb4e | Java | adrics97/api-rest-miyofuturo | /src/main/java/es/uv/api/miyofuturo/services/TestUsuarioService.java | UTF-8 | 829 | 1.921875 | 2 | [] | no_license | package es.uv.api.miyofuturo.services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import es.uv.api.miyofuturo.entities.TestUsuario;
import es.uv.api.miyofuturo.entities.Usuario;
import es.uv.api.miyofuturo.repositories.TestUsua... | true |
40591c03a5561f5fddf43fcc572d361d574f0afb | Java | korinneramcharitar/Ramcharitar-cop3330-ex05 | /src/main/java/base/base.java | UTF-8 | 1,482 | 4.09375 | 4 | [] | no_license | /*
* UCF COP3330 Summer 2021 Assignment 1 Solution
* Copyright 2021 Korinne Ramcharitar
*/
package base;
//You’ll often write programs that deal with numbers. And depending on the programming language you use, you’ll have to convert the inputs you get to numerical data types.
//Write a program that prompts for two... | true |
2949dbf48c61b80cd1f2e7fefab29c4b3a40a03f | Java | Zajaczekk/ProjektIO | /app/src/main/java/com/trener/activity/DodajCwiczenieActivity.java | UTF-8 | 4,569 | 2.015625 | 2 | [] | no_license | package com.trener.activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.Toast;
imp... | true |
84c820b728d24efbda199c6d52c90b67cda8570a | Java | abhimaniac4/BLRS | /BRLS/testCases/library/entities/CalendarTest.java | UTF-8 | 1,162 | 2.34375 | 2 | [] | no_license | package library.entities;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.*;
import java.util.List;
import java.util.Date;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach... | true |
58384d603216af6badee1c2ab72485d8de569db5 | Java | HafizullahQambari/MyBasicJavaProject | /src/com/synax/class26/PropertiesFileReading.java | UTF-8 | 1,233 | 3.421875 | 3 | [] | no_license | package com.synax.class26;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.Set;
public class PropertiesFileReading {
public static void main(String[] args) throws IOException {
//1. to read the file we need to have file
St... | true |
0f684b2fa4b48e61bf32a821e4953c73d99f7f2c | Java | hugopte/ProjetJava | /model/src/main/java/element/mobile/Monster2.java | UTF-8 | 519 | 2.640625 | 3 | [] | no_license | package element.mobile;
import element.Permeability;
/**
* Element type Monster2 class
* @author RICOUARTTANGUY
*
*/
public class Monster2 extends Mobile
{
/**
* Define permeability type, the sprite and the position of the element.
* @param Y
* define positionY of the element
* @param... | true |
08c954116770d2d9e31c916a22221f0288e4325e | Java | ZoneMo/com.tencent.mm | /src/com/tencent/mm/plugin/sight/encode/a/b.java | UTF-8 | 1,143 | 1.5 | 2 | [] | no_license | package com.tencent.mm.plugin.sight.encode.a;
import android.hardware.Camera.PreviewCallback;
public abstract interface b
{
public abstract void SA();
public abstract void a(a parama);
public abstract void a(b paramb);
public abstract void aI(String paramString1, String paramString2);
public abs... | true |
9dc40032465307c926e3b9ca56abefc31eac0668 | Java | megamott/Notes | /app/src/main/java/com/megamott/notes/view/adapter/NumberAdapter.java | UTF-8 | 4,527 | 2.59375 | 3 | [] | no_license | package com.megamott.notes.view.adapter;
import android.app.Activity;
import android.graphics.Paint;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recycler... | true |
9e56df6bdcc485ab0bd27a373bee0dedf545f498 | Java | uweerakoon/managedisaster | /managedisaster-service/src/main/java/edu/usu/cs/mas/managedisaster/model/AgentModel.java | UTF-8 | 7,240 | 2.34375 | 2 | [] | no_license | package edu.usu.cs.mas.managedisaster.model;
import java.awt.Color;
import java.util.List;
import org.pojomatic.Pojomatic;
import org.pojomatic.annotations.AutoProperty;
import org.pojomatic.annotations.PojomaticPolicy;
import org.pojomatic.annotations.Property;
import edu.usu.cs.mas.managedisaster.common.AgentRole;... | true |
bcf1e252c777990587fbd7dadc9516a81dbc3f77 | Java | 2010USFJava/CarlsonA | /Training Project 0/CarlsonJDBCBank/src/main/java/com/revature/driver/Main.java | UTF-8 | 494 | 2 | 2 | [
"MIT"
] | permissive | package com.revature.driver;
import java.sql.SQLException;
import com.revature.Meta.DatabaseIO;
import com.revature.ui.BankUI;
public class Main {
public static void main(String[] args) throws SQLException {
//
// CustAcctRelDaoImple custAct = new CustAcctRelDaoImple();
// ArrayList<Employee> emps =custAct.getEm... | true |
a5f5a036bb3e268b81cfd38ea519870e1b93aa95 | Java | futurexv2016/url-shortener | /url-shortener-backend/src/main/java/com/bondle/shortenurl/repository/ShortenUrlRepository.java | UTF-8 | 368 | 1.90625 | 2 | [] | no_license | package com.bondle.shortenurl.repository;
import com.bondle.shortenurl.entity.*;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.*;
import java.util.*;
@Repository
public interface ShortenUrlRepository extends JpaRepository<Url, UUID>, JpaSpecificationExecutor<Url> {
List<... | true |
01f218c815c5a1ba794e19ff6bcb6a878bb50e9a | Java | rammaina01/urlshortener | /src/main/java/com/url/service/IUrlShortenerService.java | UTF-8 | 267 | 1.898438 | 2 | [] | no_license | package com.url.service;
import com.url.entity.UrlDetails;
import com.url.model.Url;
import java.util.List;
public interface IUrlShortenerService {
Url createShortenUrl(Url url);
Url getShortenUrl(String url);
List<UrlDetails> getAllShortenUrls();
}
| true |
73dca8ef1b58eae72b51533ab914701dc2a5eadb | Java | fahmi54321/ExpandableListView | /app/src/main/java/com/android/a33expandablelistview/MainActivity.java | UTF-8 | 1,878 | 2.546875 | 3 | [] | no_license | package com.android.a33expandablelistview;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ExpandableListAdapter;
import android.widget.ExpandableListView;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class MainActivity extends ... | true |
30c4a55a0adc64b4c5d60c915468502c856adc4a | Java | chessnerd/GoPass | /src/gopass/engine/Board.java | UTF-8 | 2,024 | 3.953125 | 4 | [
"MIT"
] | permissive | package gopass.engine;
import gopass.GoBoard;
/**
* The logic of a Go board
*
* @author Jason Mey
* @version 1.0
*/
public class Board implements GoBoard {
/** Denotes an empty space on the board */
public static final int EMPTY = 0;
/** Denotes a space with a black piece */
public static final in... | true |
c532e83d8b1e9641e8e780cafce8ceeae9bd8725 | Java | PriNova/talos | /editor/src/com/talosvfx/talos/editor/nodes/widgets/ButtonWidget.java | UTF-8 | 990 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package com.talosvfx.talos.editor.nodes.widgets;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.utils.Json;
import com.badlogic.gdx.utils.JsonValue;
import com.badlogic.gdx.utils.XmlReader;
import com.talosvfx.talos.editor.widgets.ui.common.Roun... | true |
5c9057d81478b70ea8ca85a2774865a4e003ca4f | Java | zacscoding/web-tracer | /tracer-agent/src/test/java/StringInvokeUtilTest.java | UTF-8 | 870 | 2 | 2 | [] | no_license | import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import com.zaccoding.tracer.util.StringInvokeUtil;
import org.junit.Test;
/**
* @author zacconding
* @Date 2018-01-21
* @GitHub : https://github.com/zacscoding
*/
public class StringInvokeUtilTest {
@Test
public void ch... | true |
47735d225764f8b2e341b8a8da2dc666e734f290 | Java | myFuckFuture/film | /ssmFilmTest/src/org/gec/service/UserService.java | UTF-8 | 257 | 1.84375 | 2 | [] | no_license | package org.gec.service;
import org.gec.pojo.Users;
/**
* @Description 用户类Service
* @Author 余永浩
* @Date 21:17 2020/6/20
**/
public interface UserService {
// 1.登陆
Users login(String username, String password);
}
| true |
79cb1e23f878e2027448f9cd5d560ce1148e458d | Java | drew21/Spring-Hibernate-login | /src/main/java/net/drew/dao/LoginDAO.java | UTF-8 | 153 | 1.898438 | 2 | [] | no_license | package net.drew.dao;
import net.drew.model.*;
public interface LoginDAO{
public boolean checkLogin(String userName, String userPassword);
} | true |
bbba1f46568c2aa5d7c09b9aa5f62618a8937345 | Java | retrogamer500/no-idea-engine | /src/main/java/net/loganford/noideaengine/graphics/RenderBatcher.java | UTF-8 | 5,930 | 2.453125 | 2 | [
"BSD-2-Clause"
] | permissive | package net.loganford.noideaengine.graphics;
import net.loganford.noideaengine.graphics.shader.ShaderProgram;
import net.loganford.noideaengine.graphics.shader.ShaderUniform;
import net.loganford.noideaengine.utils.memory.UnsafeMemory;
import net.loganford.noideaengine.utils.memory.UnsafeMemoryTracker;
import org.joml... | true |
0606727991daaea43dc4563fd4f0b53e265775a8 | Java | awesomedavid/RobotWarsRepoV1 | /eclipse-workspace/Robot Wars/src/animations/beam/AnimBeamBurst.java | UTF-8 | 708 | 2.3125 | 2 | [] | no_license | package animations.beam;
import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;
import animations.Animation;
import objects.GameObject;
import objects.Point;
import objects.Unit;
import values.CoreValues;
public abstract class AnimBeamBurst extends AnimBeam {
int width;
public AnimBeamBurst(Point or... | true |