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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b2376a92cb4d162a5b02eaf1ea32a2df6186fccf | Java | rPraml/org.openntf.domino | /domino/rest/src/main/java/org/openntf/domino/rest/servlet/ODARootResource.java | UTF-8 | 1,465 | 1.9375 | 2 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"ICU",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.openntf.domino.rest.servlet;
import java.io.IOException;
import java.net.URI;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.... | true |
5fd216b56a09319b2cbe8a25ee83db7edd9d49b7 | Java | achyutpoudel365/javaPrograms | /EmployeeExample/src/com/company/SalaryEmployee.java | UTF-8 | 647 | 3.46875 | 3 | [] | no_license | package com.company;
import java.util.Scanner;
public class SalaryEmployee extends Employee {
private double monthlySalary;
public double getMonthlySalary() {
return monthlySalary;
}
public void setMonthlySalary(double monthlySalary) {
this.monthlySalary = monthlySalary;
}
... | true |
2e2427cf08ff457d33effa42f3752f047bf53193 | Java | Mojo774/RecipeMaster | /src/sample/WindowClass.java | UTF-8 | 521 | 2.5 | 2 | [] | no_license | package sample;
import javafx.stage.Stage;
import sample.controller.Controllers;
// Класс окна
// Содержит stage и controller
public class WindowClass {
private Stage stage = new Stage();
private Controllers controller;
public WindowClass(Stage stage, Controllers controller) {
this.stage = stag... | true |
e8ae2af96579934b787f2db57ba2896296a6e435 | Java | JCRN/Sprint-Challenge--RDBMS-and-API-Intros-java-todos | /javatodos/src/main/java/local/jcrn/javatodos/service/UserService.java | UTF-8 | 373 | 1.953125 | 2 | [
"MIT"
] | permissive | package local.jcrn.javatodos.service;
import local.jcrn.javatodos.model.User;
import java.util.List;
public interface UserService {
void delete(long id);
List<User> findAll();
User findUserById(long id);
org.springframework.security.core.userdetails.User findUserByName(String name);
User sav... | true |
7ed1b56841adfde717f16552dc6e945a043835ca | Java | therealbop/Android-Driver | /HeRide_partner/app/src/main/java/com/karry/side_screens/profile/profile_model/ProfileDriverDetail.java | UTF-8 | 2,075 | 2.046875 | 2 | [] | no_license | package com.karry.side_screens.profile.profile_model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.karry.pojo.Signup.PreferencesList;
import java.util.ArrayList;
public class ProfileDriverDetail
{
@SerializedName("lastName")
@Expose
private Str... | true |
e37bb8e78b36548b7eccebb2fe06d86a81f82c75 | Java | ankitkatiyar91/java-framework-examples | /Struts/StrutsForm/src/com/ask/action/HtmlTest.java | UTF-8 | 457 | 1.921875 | 2 | [] | no_license | package com.ask.action;
import com.opensymphony.xwork2.ActionSupport;
public class HtmlTest extends ActionSupport {
private String ank;
public String getAnk() {
return ank;
}
public void setAnk(String ank) {
this.ank = ank;
}
public void validate()
{
System.out.println("HtmlTest.validate()");
add... | true |
b1604d38def304048c1196dc7ce799f28e243dbf | Java | aldehir/TS3ServerQuery | /src/test/java/net/visualcoding/ts3serverquery/TS3ServerDummy.java | UTF-8 | 10,070 | 2.640625 | 3 | [] | no_license | package net.visualcoding.ts3serverquery;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.lang.reflect.Method;
import java.math.BigInteger;
import java.net.ServerSocket;
import java.net.Socket;
import java.security.SecureRandom;
import java.util.HashMap;
import java.util.HashSet;
import... | true |
52cf2e5a21d693130236c69034b9f664a9dbcb63 | Java | EBojilova/Java | /ExamPreparation/src/regex/EnigmaEB.java | UTF-8 | 931 | 3.375 | 3 | [] | no_license | package regex;
import java.util.Scanner;
public class EnigmaEB {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.nextLine());
for (int i = 0; i < n; i++) {
String input = scanner.nextLine();
String... | true |
c6cfe1b5c166796ccba71523742d667426a74ab0 | Java | Seitenbau/stu | /stu-common/src/test/java/com/seitenbau/stu/rules/CompositeRuleTest.java | UTF-8 | 2,231 | 2.671875 | 3 | [] | no_license | package com.seitenbau.stu.rules;
import static org.fest.assertions.Assertions.*;
import java.util.Stack;
import org.fest.assertions.Fail;
import org.junit.Test;
import org.junit.rules.MethodRule;
import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.Statement;
public class CompositeRuleTest... | true |
d4d9c4f7784badc1b37f056f97917d675a1bc537 | Java | suao123/mavendemo | /src/main/java/com/demo/model/StudioExample.java | UTF-8 | 20,822 | 2.328125 | 2 | [] | no_license | package com.demo.model;
import java.util.ArrayList;
import java.util.List;
public class StudioExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public StudioExample() {
oredCriteria = new ArrayList<Criteria>();
}
public voi... | true |
79dffcd1568b9f4e61e3aeae41150fcc2d42814a | Java | Garfield-Qiang/Jarvis | /leetcode/src/algorithms/easy/LongestCommonPrefix.java | UTF-8 | 1,448 | 4.3125 | 4 | [] | no_license | package algorithms.easy;
/**
* 给定一个字符串数组,求出这个数组里,最长的公共前缀
* @author Jarvis
*
*/
public class LongestCommonPrefix {
/**
* 先提取出前两个的公共前缀,再拿去和后面的字符串依次提取,
* 如果公共前缀为空了,则停止比较,直接返回空
* @param strs
* @return
*/
public String longestCommonPrefix(String[] strs) {
if(strs.length == 0) {
ret... | true |
3836cf79afeb3f2bb4e2c951ff5154a51b19cd7f | Java | EBISPOT/goci | /goci-tools/goci-datapublisher/src/main/java/uk/ac/ebi/spot/goci/service/DefaultGWASOWLConverter.java | UTF-8 | 29,851 | 1.617188 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | package uk.ac.ebi.spot.goci.service;
import org.semanticweb.owlapi.model.AddAxiom;
import org.semanticweb.owlapi.model.AddImport;
import org.semanticweb.owlapi.model.IRI;
import org.semanticweb.owlapi.model.ImportChange;
import org.semanticweb.owlapi.model.OWLAnnotationAssertionAxiom;
import org.semanticweb.owlapi.mod... | true |
1d8ee637503e4549dcd4fffaeccd5ee2064b0dca | Java | ecemkrpyk/BTM-SGW | /SpringBootWebLogic-BTM/src/main/java/com/argelastaj/springbootweblogicbtm/kafka/service/Producer.java | UTF-8 | 1,766 | 2.375 | 2 | [] | no_license | package com.argelastaj.springbootweblogicbtm.kafka.service;
import com.argelastaj.springbootweblogicbtm.model.Incoming_Message;
import com.argelastaj.springbootweblogicbtm.model.User;
import com.argelastaj.springbootweblogicbtm.utilities.ContentPartnerCounter;
import org.springframework.beans.factory.annotation.Autow... | true |
e428415f226491111a80c8b0f3930f09ac9498a3 | Java | alexdmiller/spacefiller | /src/spacefiller/spaceplants/plants/PlantSystem.java | UTF-8 | 4,238 | 2.5625 | 3 | [] | no_license | package spacefiller.spaceplants.plants;
import processing.core.PGraphics;
import spacefiller.math.Vector;
import spacefiller.spaceplants.System;
import spacefiller.particles.Particle;
import spacefiller.particles.ParticleSystem;
import spacefiller.particles.ParticleTag;
import spacefiller.particles.Spring;
import spac... | true |
f731c1a623e7b4b3e0f2ae90a0fa1ea826c44c46 | Java | xiongqisong/authen | /authen_middleware_server/src/main/java/com/xqs/interceptor/CORSInterceptor.java | UTF-8 | 1,726 | 2.25 | 2 | [] | no_license | package com.xqs.interceptor;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import javax.annotation.PostConstruct;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org... | true |
4f8c879cd24e3626dc3197195dfad02e105b9bf1 | Java | leeyouseung/Fiba | /app/src/main/java/com/example/fiba/database/db_api/FindChildDao.java | UTF-8 | 671 | 2.15625 | 2 | [] | no_license | package com.example.fiba.database.db_api;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import com.example.fiba.model.FindChild;
import java.util.List;
@Dao
public interface FindChildDa... | true |
f95242d43c5ed8513b08a60677ab98d76928a317 | Java | OsiacAlexandru/MedCom | /app/src/main/java/osiac/ase/ro/medcom/Activities/PatientPageActivity.java | UTF-8 | 15,600 | 1.890625 | 2 | [] | no_license | package osiac.ase.ro.medcom.Activities;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Build;
impo... | true |
4af789caa10375c541410440a56e548a4e23bcdf | Java | sophialee8568/8-Connected-Component | /boundingBox.java | UTF-8 | 554 | 2.953125 | 3 | [] | no_license | import java.io.PrintWriter;
public class boundingBox {
int minrow;
int mincol;
int maxrow;
int maxcol;
boundingBox(){
minrow = 0;
mincol = 0;
maxrow = 0;
maxcol = 0;
}
boundingBox(int count){
minrow = count;
mincol = count;
maxrow = 0;
maxcol = 0;
}
boundingBox(int minr, int minc, in... | true |
473c8c6ca9a86c8c35d264f76faab88c58ff5a7e | Java | maxim-zhvdv/Search-Engine | /src/sample/ReadFile.java | UTF-8 | 2,471 | 3 | 3 | [] | no_license | package sample;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.nodes.TextNode;
import org.jsoup.select.Elements;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedList;
public class ReadFile
{
private Lin... | true |
e350a62b0aca8ce0eb83dbd5d3a595ae17be99f9 | Java | jiney518/MapTest | /MAP_PC_RegressionTest/src/test/java/example/TC02_search_menu.java | UHC | 8,997 | 2.109375 | 2 | [] | no_license | package example;
import org.testng.annotations.Test;
import junit.framework.Assert;
import org.testng.annotations.BeforeTest;
import java.io.File;
import java.util.concurrent.TimeUnit;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.TakesScreenshot;
import org.open... | true |
242bad83488ae0290305b73cb15a1d3e629e504e | Java | JosephCasal/MACTraining | /projects/Weekend1/app/src/main/java/com/example/joseph/weekend1/PictureActivity.java | UTF-8 | 1,689 | 2.21875 | 2 | [] | no_license | package com.example.joseph.weekend1;
import android.content.Intent;
import android.graphics.Bitmap;
import android.provider.MediaStore;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;
import and... | true |
2281f740ffa77c6c1fe1f5af643a81443f76c3b7 | Java | alexolirib/BEA_WebLogic_Integration_quote- | /Tutorial_Process_Application_Web/src/requestquote/services/TaxCalcProcessTransformation.java | UTF-8 | 706 | 1.570313 | 2 | [] | no_license | package requestquote.services;
import com.bea.wli.common.XQuery;
import com.bea.wli.transform.DataTransformation;
import com.bea.wli.transform.XQueryTransform;
@DataTransformation()
@XQuery(version = XQuery.Version.v2004)
public abstract class TaxCalcProcessTransformation implements java.io.Serializable
{
sta... | true |
ad9345e8eee43c8f0bca2266a2557136b918a547 | Java | dramyaa88/PersonalLoanJDBC | /PersonalLoan/src/com/peronal/loan/dbconnection/MySQLclass.java | UTF-8 | 7,644 | 2.609375 | 3 | [] | no_license | package com.peronal.loan.dbconnection;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Scanner;
import com.peronal.loan.javabean.JavaBean;
import com.personal.loan.interfaces.InterMethods;
... | true |
793b4c20cf19b37257283fd68844cc596d865519 | Java | haranprithvii/JavaPrograms | /com/ds/collections/NonRepeatingCharacter.java | UTF-8 | 1,056 | 3.90625 | 4 | [] | no_license | package com.ds.collections;
import java.util.*;
public class NonRepeatingCharacter {
public static void main(String[] args) {
// NOTE: The following input values will be used for testing your solution.
//System.out.println(nonRepeating("abcab"));
// should return 'c'
//System.out.println(nonRepeatin... | true |
9d30c5ef0bc1d45237b129e85841c66b2863fb8a | Java | FanWenTao-Felix/hello-spring-cloud-alibaba | /commons/commons-cache/src/main/java/com/funtl/spring/cloud/alibaba/commons/redisson/enums/RedissonLockModel.java | UTF-8 | 2,060 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | package com.funtl.spring.cloud.alibaba.commons.redisson.enums;
public enum RedissonLockModel {
/**
* 可重入锁:某个线程已经获得某个锁,可以再次获取锁而不会出现死锁
*/
REENTRANT,
/**
* 公平锁:加锁前先查看是否有排队等待的线程,有的话优先处理排在前面的线程
*/
FAIR,
/**
* 联锁:可以把一组锁当作一个锁来加锁和释放
* 基于 Redis 的分布式 RedissonMultiLock 对象将多个 RL... | true |
b641a408e02d2e17d58579c980eab0ceb0c138e1 | Java | MrHiepdh/Java-MrDan- | /Week7/Cricle.java | UTF-8 | 682 | 3.6875 | 4 | [] | no_license | package Week7;
import java.util.*;
public class Cricle {
private double radius;
private double pi = 3.14;
public void Cricle(double radius) {
this.radius = radius;
}
public double getAre() {
return radius * radius * pi;
}
public double getPre() {
return 2 * pi * ... | true |
b436ffe3f1679dd462af8344a63765e8786a683b | Java | vinitmk/CodingPatterns | /src/main/java/com/mkv/codingpatterns/inplacereversallinkedlist/ReverseAlternatingKElements.java | UTF-8 | 1,977 | 4.1875 | 4 | [] | no_license | package com.mkv.codingpatterns.inplacereversallinkedlist;
/*
Given the head of a LinkedList and a number ‘k’, reverse every alternating ‘k’ sized sub-list starting from the head.
If, in the end, you are left with a sub-list with less than ‘k’ elements, reverse it too.
Time complexity #
The time complexity of our algo... | true |
34a6df422764cfda45ed01f24cd42c57a5c3bfe1 | Java | charu11/sum | /School.java | UTF-8 | 320 | 3 | 3 | [] | no_license | import java.util.*;
class School{
public static void main(String args[]){
Scanner input=new Scanner(System.in);
System.out.println("Enter num1:");
int num1=input.nextInt();
System.out.println("Enter num2");
int num2=input.nextInt();
int total=num1+num2;
System.out.println("Tolal is:"+total);
}
}
| true |
d5193bedc73b567d8c2ba563c94fa18cb26cbbac | Java | Stanislav77753/Module_1_6_Patterns | /src/com/stanislav/patterns/behavioral/state/StateRunner.java | UTF-8 | 317 | 3.125 | 3 | [] | no_license | package com.stanislav.patterns.behavioral.state;
public class StateRunner {
public static void main(String[] args) {
Radio radio = new Radio();
radio.setStation(new RadioOne());
for(int i = 0; i < 5; i++){
radio.playRadio();
radio.nextStation();
}
}
}
| true |
8d7e420d2e866d4b5914d88ee247402b66aa474c | Java | FruitWave/FritzLevelONE | /src/Mediempire.java | UTF-8 | 2,708 | 2.59375 | 3 | [] | no_license | import java.applet.AudioClip;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import ... | true |
904c2a2501ba0e3c5121397871c56642eb3544c7 | Java | AjayKumar465/SpringBootMultiTenancy | /SpringBootMultiTenancy/src/main/java/com/poc/multitenancy/SampleJerseyApplication.java | UTF-8 | 3,201 | 2.15625 | 2 | [
"MIT"
] | permissive | package com.poc.multitenancy;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import javax.sql.DataSource;
import org.apache.commons.dbcp2.BasicDataSource;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilde... | true |
b3d08a7f9b18d995dd4bede8ab1fecff390a736f | Java | tsmacdonald/Discretion | /src/main/java/com/discretion/SolveHomework.java | UTF-8 | 2,725 | 3.015625 | 3 | [] | no_license | package com.discretion;
import com.discretion.problem.Homework;
import com.discretion.problem.ProblemSet;
import com.discretion.proof.Proof;
import com.discretion.proof.printer.IndentedProofPrinter;
import com.discretion.proof.printer.ParagraphProofPrinter;
import com.discretion.proof.printer.ProofPrettyPrinter;
impor... | true |
6ce199fcf8f0cdbc7ce7d34ac1872b11122f105b | Java | lowkey42/java-jumpandrun-dev | /core/src/main/java/de/secondsystem/game01/impl/gui/ElementContainer.java | UTF-8 | 5,738 | 2.375 | 2 | [
"Unlicense"
] | permissive | package de.secondsystem.game01.impl.gui;
import java.util.ArrayList;
import java.util.List;
import org.jsfml.graphics.RenderTarget;
import org.jsfml.system.Vector2f;
import de.secondsystem.game01.impl.gui.AttributesDataTable.AttributesSource;
import de.secondsystem.game01.impl.gui.DataTable.ColumnDef;
import de.seco... | true |
236eeb177c5cc28cd4885ecfdf5dd31d0796030b | Java | 12urenloop/Telraam | /src/main/java/telraam/logic/external/ExternalLapper.java | UTF-8 | 3,545 | 2.359375 | 2 | [
"MIT"
] | permissive | package telraam.logic.external;
import io.dropwizard.jersey.setup.JerseyEnvironment;
import org.jdbi.v3.core.Jdbi;
import telraam.database.daos.LapDAO;
import telraam.database.daos.LapSourceDAO;
import telraam.database.models.Detection;
import telraam.database.models.Lap;
import telraam.database.models.LapSource;
impo... | true |
8b8728a3d90999a4af6b602bb2740985317b0496 | Java | manikantat/YelpNew | /src/com/mani/yelp/attributeType.java | UTF-8 | 264 | 2.140625 | 2 | [] | no_license | package com.mani.yelp;
public class attributeType {
String userID;
double starRating;
int usefulCount =0;
int funnyCount=0;
int coolCount=0;
int totalNumberofVotes;
public void setRatingClass()
{
this.starRating = Math.ceil(this.starRating);
}
}
| true |
78a2e4b3612a3ee3d150ce27d0ad6a4f5001a303 | Java | xiaodaozuihou/ServletStudyDemo | /javaStudy/src/main/sorm/core/TableContext.java | UTF-8 | 3,707 | 2.828125 | 3 | [] | no_license | package core;
import bean.ColumnInfo;
import bean.Configuration;
import bean.TableInfo;
import utils.JavaFileUtils;
import utils.StringUtils;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
imp... | true |
deacd6c2e86dde04acbe622a6b002585b0e6e1d4 | Java | ThinkmanWang/ThinkSpringbootV2 | /src/main/java/com/thinkman/thinkspringboot/project/netty/tcpclient/ClientHandler.java | UTF-8 | 1,013 | 2.265625 | 2 | [] | no_license | package com.thinkman.thinkspringboot.project.netty.tcpclient;
import com.thinkman.thinkspringboot.project.netty.tcpserver.TCPServerHandler;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerAdapter;
import io.netty.channel.Cha... | true |
c02cbca4f046865d567f83a4a5a4a468a7e916e1 | Java | CommercialWebDevelopment/pyramid | /src/main/java/com/financial/pyramid/web/ContactsController.java | UTF-8 | 3,034 | 1.929688 | 2 | [] | no_license | package com.financial.pyramid.web;
import com.financial.pyramid.domain.Contact;
import com.financial.pyramid.service.ContactService;
import com.financial.pyramid.service.EmailService;
import com.financial.pyramid.service.SettingsService;
import com.financial.pyramid.service.UserService;
import com.financial.pyramid.se... | true |
2e17f0fc3f7a652cb36e6ea804f26c4746453619 | Java | 88543024/open | /lunwen/app/models/X86SynchDto.java | UTF-8 | 7,593 | 2.015625 | 2 | [] | no_license | package models;
public class X86SynchDto{
//TSAM信息同步
private String tsamInfoDay_hour;//每天几点
private String tsamInfoDay_minute;//几分
private String tsamInfoWeek_day;//每周几
private String tsamInfoWeek_hour;//几点
private String tsamInfoWeek_minute;//几分
private String tsamInfoMonth_day;//每月最后一天
private String t... | true |
c37ad2c9aa48841a8f2d4c488705756cd7ee422a | Java | Zhuinden/flowless | /flowless-sample-master-detail/src/main/java/com/zhuinden/flow_alpha_master_detail/paths/FourthMasterKey.java | UTF-8 | 620 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package com.zhuinden.flow_alpha_master_detail.paths;
import com.google.auto.value.AutoValue;
import com.zhuinden.flow_alpha_master_detail.IsMaster;
import com.zhuinden.flow_alpha_master_detail.R;
import com.zhuinden.flow_alpha_master_detail.extracted.FlowAnimation;
import com.zhuinden.flow_alpha_master_detail.extracte... | true |
2baaebd494cae013f75d036af80bc4326a4a42cf | Java | bo91678/itheima_health | /health_parent/health_web/src/main/java/com/itheima/health/controller/CheckGroupController.java | UTF-8 | 3,483 | 2.125 | 2 | [] | no_license | package com.itheima.health.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.health.constant.MessageConstant;
import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.entity.Result;
import com.itheima.health.pojo.CheckGrou... | true |
07c5de88768d5c3fd14e89a67c7ce8c897c2e806 | Java | LongYeh/OCPJP | /src/main/java/com/test/exception/Question98.java | UTF-8 | 511 | 3.140625 | 3 | [] | no_license | package com.test.exception;
import java.io.IOException;
public class Question98 {
public static void main(String[] args) {
X obj=new X();
try{
obj.printFileContent();
}
// catch (Exception K){ }Exception 是IOException的superclass因此若例外發生Exception已經抓到.
catch (IOException... | true |
3ab527bbdb53af83773ed81a9ba2242881474d00 | Java | charroch/chrogeo | /chrogeo/src/com/novoda/chrogeo/server/Chrogeo.java | UTF-8 | 2,141 | 2.5625 | 3 | [] | no_license | package com.novoda.chrogeo.server;
import java.io.IOException;
import java.net.URI;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.beoui.geocell.GeocellManager... | true |
cefe8fb7b74a89ad29e349c4c43f80a3e6774bb5 | Java | for-l00p/data-structures-and-algorithms | /java/ds/BinaryHeap.java | UTF-8 | 3,906 | 3.5 | 4 | [] | no_license | package ds;
import java.util.List;
import java.util.ArrayList;
import java.util.*;
interface MinPQ<E> {
public void insert (E element);
public E min();
public E deleteMin();
}
class Job implements Comparable<Job>{
int duration;
String name;
int priority;
public Job(int duration, String name, int priority){... | true |
c2c8977eb92d260410bb047d92ebbc4634732cab | Java | Arquitectura-Proyecto/bodysoft-mobileapp | /app/src/main/java/com/example/myapplication/Model/Repositories/ProfileTrainerRepository.java | UTF-8 | 8,758 | 2.015625 | 2 | [] | no_license | package com.example.myapplication.Model.Repositories;
import android.widget.Toast;
import com.apollographql.apollo.ApolloCall;
import com.apollographql.apollo.ApolloClient;
import com.apollographql.apollo.api.Response;
import com.apollographql.apollo.exception.ApolloException;
import com.example.apollographqlandroid.... | true |
2b77ca0d690c9c895b5f62100ab13c8f906ac08e | Java | ahmedtanjim/Dora_TV | /app/src/main/java/com/crazybotstudio/doratv/ui/subChannelActivity.java | UTF-8 | 5,416 | 1.75 | 2 | [] | no_license | package com.crazybotstudio.doratv.ui;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.appcompat.app... | true |
d434bb02bfea4e59ffd516e9da17d083bbd752fc | Java | IsaiasSantana/entrevista-android | /app/src/main/java/com/isaias_santana/desafioandroid/mvp/model/mainActivity/MainActivityModel.java | UTF-8 | 6,423 | 2.453125 | 2 | [
"MIT"
] | permissive | package com.isaias_santana.desafioandroid.mvp.model.mainActivity;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.util.Log;
import com.isaias_santana.desafioandroid.domain.People;
import com.isaias_santana.desafioandroid.domain.PeopleResult;
import com.isaias_santana.desafioandro... | true |
2be10b40c405e6cfd28867ffc684355b57e520da | Java | zzyyppqq/AndroidAudioVideoStudy | /app/src/main/java/com/zyp/androidaudiovideostudy/LiblameActivity.java | UTF-8 | 4,406 | 2.171875 | 2 | [] | no_license | package com.zyp.androidaudiovideostudy;
import android.os.Environment;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
i... | true |
1f6f666cbf78981cff7b2212750e1b2653f88f82 | Java | ranjithaselvam/maven | /AutomateAtmecs/src/main/java/com/atmecs/project/report/LogReport.java | UTF-8 | 522 | 2.21875 | 2 | [] | no_license | package com.atmecs.project.report;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import com.atmecs.project.constants.Constants;
/**
* Which keeps track of the record when any event happens or any software run.
* @author ranjitha.selvam
*
*/
public class LogReport {
static Logge... | true |
9ecf6aea69a775e6553b2a65d2046586bd594c7a | Java | dongryoung/Class_Examples | /1. 수업 예제/20. JDBC/Ex04_update.java | UHC | 1,075 | 3.3125 | 3 | [] | no_license | import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
public class Ex04_update {
public static void main(String[] args) {
// ȣ(num) 1 ȸ(ȫ浿) (age) 31 ,
// ȭ ȣ(tel) 010-9876-1234
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
String url = "jdbc:oracl... | true |
a2614af78c6084687a4003c132b6e65da55cc4b8 | Java | AOCAMPH/automation_petcenter | /src/main/java/pe/com/web/petcenter/core/ElementNotPresentException.java | UTF-8 | 318 | 1.921875 | 2 | [] | no_license | package pe.com.web.petcenter.core;
import org.openqa.selenium.NoSuchElementException;
public class ElementNotPresentException extends NoSuchElementException{
/**
*
*/
private static final long serialVersionUID = 7866845021122785932L;
public ElementNotPresentException(String reason) {
super(reason);
}
} | true |
99ff5e6e88255d817360f60acc351483f19f949f | Java | Angkna/CinemaFinalBackEnd | /src/test/java/cinema/persistence/entity/test/TestMovie.java | UTF-8 | 21,848 | 2.65625 | 3 | [] | no_license | package cinema.persistence.entity.test;
import static org.junit.jupiter.api.Assertions.*;
import java.time.LocalDate;
import java.util.Collections;
import java.util.List;
import javax.persistence.EntityManager;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import ... | true |
7a803b85f85a9b4f4ec0faeb6cd26b7fbb5cd9f2 | Java | evertonschuster/SistemaPOO2 | /SistemaPOO2/src/br/edu/udc/sistemas/poo2/main/Main.java | UTF-8 | 481 | 2.03125 | 2 | [] | no_license | package br.edu.udc.sistemas.poo2.main;
import br.edu.udc.sistemas.poo2.gui.FormMain;
import br.edu.udc.sistemas.poo2.infra.IOTools;
public class Main {
public static void main(String[] args) throws Exception {
// br.edu.udc.sistemas.poo2.tui.FormMain frm = new br.edu.udc.sistemas.poo2.tui.FormMain();
// ... | true |
57278ef0701d6ad3f837abf5c4b1e5eed4adf925 | Java | gache/exercicesProgrammationJava | /src/lesConditions/Date.java | UTF-8 | 1,141 | 3.578125 | 4 | [] | no_license | package lesConditions;
import java.util.Scanner;
public class Date {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// Déclarion des variables
int jour, mois, annee;
System.out.println("Saisir un jour: ");
jour = scanner.nextInt();
... | true |
9b88e8453b4cf0bfabed615a1836cfa65d0df028 | Java | ThangaArchi/ODC | /JavaSource/oem/edge/ed/odc/dropbox/service/helper/ServiceMulticaster.java | UTF-8 | 4,299 | 2.359375 | 2 | [] | no_license | package oem.edge.ed.odc.dropbox.service.helper;
import java.util.*;
/* ------------------------------------------------------------------ */
/* Copyright Header Check */
/* ------------------------------------------------------------------ */
/* ... | true |
f23462ef0ff0443526f76612ffb25c34f8807062 | Java | yinyifan1991/SimpleDht | /app/src/main/java/edu/buffalo/cse/cse486586/simpledht/Message.java | UTF-8 | 792 | 2.28125 | 2 | [] | no_license | package edu.buffalo.cse.cse486586.simpledht;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
* Created by yifan on 4/9/17.
*/
public class Message implements Serializable {
String nodeId;
String predId;
String succId;
int type;
String port;
String predPort;
... | true |
104be46bddbd7c686abb0a9f243943cb300d1401 | Java | juanmav/SiuWeb | /src/com/diphot/siuweb/client/services/InspeccionService.java | UTF-8 | 569 | 1.5625 | 2 | [] | no_license | package com.diphot.siuweb.client.services;
import java.util.ArrayList;
import com.diphot.siuweb.shared.dtos.EncodedImageDTO;
import com.diphot.siuweb.shared.dtos.InspeccionDTO;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
@RemoteServic... | true |
9e37fae7d4c512b6947f31737834689f49a049ee | Java | juancsosap/javatraining | /JavaApps/src/WebDownloader/Downloader.java | UTF-8 | 1,755 | 3.125 | 3 | [] | no_license | package WebDownloader;
import java.io.BufferedReader;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.Reader;
import java.io.Writer;
import java.net.URL;
publi... | true |
4a57d283222f8748ba89eaeb5d01c76fb8ddddfd | Java | ppareit/pebble-locker | /pebble-locker-android/pebblelocker/src/main/java/com/lukekorth/pebblelocker/receivers/ConnectionReceiver.java | UTF-8 | 3,905 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.lukekorth.pebblelocker.receivers;
import android.annotation.SuppressLint;
import android.bluetooth.BluetoothDevice;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.SystemClock;
import android.preference.PreferenceManager;
import co... | true |
e03449440220c95d26d675838abc441243daa7aa | Java | charles-lo/TaipeiZooDemo | /app/src/main/java/com/example/charleslo/taipeizoodemo/model/ZooSection.java | UTF-8 | 1,135 | 1.859375 | 2 | [] | no_license | package com.example.charleslo.taipeizoodemo.model;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
/**
*/
public class ZooSection implements Serializable {
@SerializedName("E_Pic_URL")
public String m_PicUrl;
@SerializedName("E_Geo")
private String m_Geo;
@Serial... | true |
bba75574d04ff9e59d691330a1959034dd795c9b | Java | Searge-DP/Practical-Logistics | /src/main/java/sonar/logistics/info/providers/tile/AE2GridProvider.java | UTF-8 | 6,697 | 1.851563 | 2 | [] | no_license | package sonar.logistics.info.providers.tile;
import java.util.Iterator;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
import sonar.logistics.api.Info;
import sonar.logistic... | true |
dc3566f2e9c4a1c931129e867532c16dea9be118 | Java | alexasp/tdt4100-exercise-lectures | /src/programs/CellStructure.java | UTF-8 | 338 | 2.34375 | 2 | [] | no_license | package programs;
public class CellStructure {
public CellStructure(int rows, int columns) {
// TODO Auto-generated constructor stub
}
public Cell get(int row, int column) {
// TODO Auto-generated method stub
return null;
}
public void set(int row, int column, Cell cell) {
// TODO Auto-generated meth... | true |
c6b8964c3fa40795dd1b9d5de4e5b43bab6abec5 | Java | y62wang/vegapunk | /src/main/java/com/y62wang/chess/engine/magic/MagicCache.java | UTF-8 | 3,836 | 2.984375 | 3 | [] | no_license | package com.y62wang.chess.engine.magic;
import com.y62wang.chess.engine.Bishop;
import com.y62wang.chess.engine.BoardUtil;
import com.y62wang.chess.engine.Rook;
import java.util.List;
import java.util.function.BiFunction;
import java.util.function.Function;
import static com.y62wang.chess.engine.BoardConstants.BOARD... | true |
993fe8ec4fb90ae2d49e020783bf1b50a8615e87 | Java | yokotary/basic | /src/objectSample/StaticSample.java | UTF-8 | 803 | 3.671875 | 4 | [] | no_license | package objectSample;
//staticのまとめ
class StaticTest {
//staticField
static String staticField = "school";
//staticMethod
static String staticMethod() {
return "wars";
}
static int max(int x,int y){
if (x>y) {
return x;
} else {
return y;
... | true |
40247cb32ebdb3d5727b1cb623a65ac8bfd34c4b | Java | babbaj/pepsimod | /src/main/java/net/daporkchop/pepsimod/module/ModuleManager.java | UTF-8 | 8,059 | 2.21875 | 2 | [] | no_license | /*
* Adapted from the Wizardry License
*
* Copyright (c) 2017 Team Pepsi
*
* Permission is hereby granted to any persons and/or organizations using this software to copy, modify, merge, publish, and distribute it.
* Said persons and/or organizations are not allowed to use the software or any derivatives of the wo... | true |
6556aca3e1821c4ec1f20b9ca834b3415e855f4b | Java | db117/example | /leetcode/src/main/java/com/db117/example/leetcode/solution1/Solution130.java | UTF-8 | 4,075 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | package com.db117.example.leetcode.solution1;
import java.util.Arrays;
/**
* 130. 被围绕的区域
* 给定一个二维的矩阵,包含 'X' 和 'O'(字母 O)。
* <p>
* 找到所有被 'X' 围绕的区域,并将这些区域里所有的 'O' 用 'X' 填充。
* <p>
* 示例:
* <p>
* X X X X
* X O O X
* X X O X
* X O X X
* 运行你的函数后,矩阵变为:
* <p>
* X X X X
* X X X X
* X X X X
* X O X X
* 解释:
* <... | true |
d8fb7e29a08819bd162080eedeabaa4914454806 | Java | kristinagerdt/CheatSheet | /src/time/DiffParseFormat.java | UTF-8 | 3,347 | 3.015625 | 3 | [] | no_license | package time;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import java.util.Collections;
... | true |
5005ee923eda301d404d92dad473148f9638a3e9 | Java | micrometer-metrics/micrometer | /micrometer-core/src/main/java/io/micrometer/core/instrument/binder/jms/JmsInstrumentation.java | UTF-8 | 3,084 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2023 VMware, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | true |
ed4ea44dd29df5dd9f49f667d302c76bc94088b3 | Java | jamestweeddale/weather | /station/src/main/java/station/io/GpioServiceImpl.java | UTF-8 | 1,939 | 2.40625 | 2 | [] | no_license | package station.io;
import com.pi4j.gpio.extension.base.AdcGpioProvider;
import com.pi4j.gpio.extension.mcp.MCP3008GpioProvider;
import com.pi4j.io.gpio.*;
import com.pi4j.io.spi.SpiChannel;
import com.pi4j.io.spi.SpiDevice;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.fact... | true |
3dd7a473daf9fe5d4d65e9a87d6e17e7e3466d21 | Java | HubertYoung/AcFun | /acfun5_7/src/main/java/com/xiaomi/mipush/sdk/FCMPushHelper.java | UTF-8 | 1,592 | 1.742188 | 2 | [] | no_license | package com.xiaomi.mipush.sdk;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import com.huawei.hms.support.api.push.PushReceiver.BOUND_KEY;
import java.util.Map;
public class FCMPushHelper {
public static void clearToken(Context context) {
i.a(context, f.ASS... | true |
65bc1aa21e85fbbd502036eac530a6550d3818f4 | Java | fabiano-cortez-souza/testeDeConceitoJC | /teste-conceito-agenda-cliente/src/main/java/br/com/fcs/agendacliente/business/AgendaClienteBusiness.java | UTF-8 | 12,931 | 1.976563 | 2 | [] | no_license |
package br.com.fcs.agendacliente.business;
import java.time.LocalTime;
import java.time.format.DateTimeParseException;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.apache.commons.lang3.StringUtils;
import org.joda.time.DateTime;
import org.slf4j.Logger;
import org.slf4j.Lo... | true |
b0f8fdb025ad6e9ff580470f76d1afb6b980edb0 | Java | ArpNetworking/metrics-aggregator-daemon | /src/main/java/com/arpnetworking/metrics/proxy/models/protocol/v1/HeartbeatMessagesProcessor.java | UTF-8 | 2,604 | 1.921875 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Groupon.com
*
* 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 |
6091843d09b7ab6b7de385c9f78d22776f514d00 | Java | JetBrains/intellij-community | /java/java-impl-inspections/src/com/intellij/codeInspection/MeaninglessRecordAnnotationInspection.java | UTF-8 | 3,839 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInspection;
import com.intellij.codeInsight.AnnotationTargetUtil;
import com.intellij.codeInsight.daemon.impl.analysis.HighlightingFeature;
import com.intellij.codeInsight.d... | true |
0ed3d3040a84bdb806d48cdffc4b9f0c4fbfc03f | Java | rafaelhdr/tccsauron | /Barra/fusao_framework/sources/src/br/com/r4j/research/image/sequence/sfm/VLineMatcherWrapperImageGrabber.java | ISO-8859-1 | 3,100 | 2.34375 | 2 | [] | no_license | package br.com.r4j.research.image.sequence.sfm;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import JSci.maths.AbstractDoubleSquareMatrix;
import br.com.r4j.research.RigidBodyTranformation2D;
import br.com.r4j.research.image.sequence.ImageGrabber;
import br.com.r4j.research.ima... | true |
9b707cc2bcb62520b139ef8ba9372f45fd85caa0 | Java | Bilalesque/HogwartsExpress | /app/src/main/java/com/example/bilalsalman/hogwartsexpress/RouteObjForFireBase.java | UTF-8 | 1,917 | 2.171875 | 2 | [] | no_license | package com.example.bilalsalman.hogwartsexpress;
public class RouteObjForFireBase {
String start, stop1, stop2, stop3, stop4, stop5, trackId, dest, id;
public RouteObjForFireBase() {
}
public RouteObjForFireBase(String start, String stop1, String stop2, String stop3, String stop4, String st... | true |
1ee868fdd8f131cf74d2728b355ab774a46b1aef | Java | RobbieAvans/ivh11a1b | /src/main/java/edu/avans/hartigehap/service/ManagerService.java | UTF-8 | 248 | 1.882813 | 2 | [] | no_license | package edu.avans.hartigehap.service;
import edu.avans.hartigehap.domain.Manager;
public interface ManagerService {
Manager findByEmail(String email);
Manager findBySessionID(String sessionID);
Manager save(Manager manager);
}
| true |
16a82e60ce9bf4198b038806e13d6e52c69a010e | Java | Rein4ldoAlv3s/ProjetoIntegrador3PeriodoCompleto | /src/java/dao/dao_tipoAcessorio.java | UTF-8 | 5,627 | 2.46875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
i... | true |
fa64e598a762c82c2aac323991f782135c80196e | Java | NychyporenkoM/DietGen | /app/src/main/java/antarit/dietgen/activities/BaseActivity.java | UTF-8 | 6,879 | 1.945313 | 2 | [] | no_license | package antarit.dietgen.activities;
import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.support.design.widget.NavigationView;
import android.support.design.widget.Snackbar;
import android.support.v4.content.ContextCompat;
import android.support.v4.widget... | true |
06db6b031265323db8f0960932940cda5ff0b4ef | Java | onap/archive-sdc-dcae-d-dt-be-main | /dcaedt_be/src/main/java/org/onap/sdc/dcae/rule/editor/translators/LogEventTranslator.java | UTF-8 | 1,681 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | /*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* ===================================================================... | true |
a84010f58b853542eaf52ce646d97cbdc27519e8 | Java | is-alpha/CalorieM8 | /app/src/main/java/com/dingo/caloriem8/ExerciseSubmenuFragment.java | UTF-8 | 2,091 | 2.21875 | 2 | [] | no_license | package com.dingo.caloriem8;
import android.os.Bundle;
import androidx.cardview.widget.CardView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.google.firebase.auth.Fireb... | true |
3eb8072b15b6e7d988e55e947568432ea996a473 | Java | davidarcila93/maratones | /Codeforces/src/GukizHatesBoxes.java | UTF-8 | 882 | 2.859375 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.StringTokenizer;
public class GukizHatesBoxes {
static ArrayList<Integer> list, acum, remainder;
static int n,m;
public static boolean can(long k){
return true;
}
public static void main(String[... | true |
52f978a3ebaefd50793d7576a8fc80a4605ddcbe | Java | zhouxu-z/data-structure | /src/com/xysfxy/collection/Queue.java | UTF-8 | 2,252 | 3.9375 | 4 | [] | no_license | package com.xysfxy.collection;
import java.util.Iterator;
/**
* @Auther: 周宝辉
* @Date: 2020/7/15 15:16
* @Description:队列的实现
*/
public class Queue<T> implements Iterable<T> {
private Node head;
private Node last;
private int N;
public Queue() {
this.head = new Node(null, null);
thi... | true |
5a53e668d7f314404e4b230355f2e737f9798d6a | Java | abstractionLevel/ReporektBackend | /src/main/java/com/example/ReportPlayer/repository/report/type/ReportTypeBrazilRepository.java | UTF-8 | 389 | 1.90625 | 2 | [] | no_license | package com.example.ReportPlayer.repository.report.type;
import com.example.ReportPlayer.enumerated.Server;
import com.example.ReportPlayer.models.report.type.ReportTypeBrazil;
import org.springframework.stereotype.Repository;
@Repository("report_type_repository_"+ Server.Region.BRAZIL)
public interface ReportTypeBra... | true |
34ed35b8df50febfdaef27e7ef589fbc2d8ca152 | Java | POO-UNALMED/taller-7-Maik1104 | /src/main/java/comunicacion/Alfabeto.java | UTF-8 | 873 | 3.15625 | 3 | [] | no_license | package comunicacion;
public class Alfabeto extends Pictograma{
public Alfabeto(String origen, String[] letras, String interpretacion) {
super(origen);
this.letras = letras;
this.interpretacion = interpretacion;
}
private String[] letras;
private String interpretacion;
public int cantidadLetras() {
re... | true |
73ca5745b60a60cc2f9997e72ea946f00c66d956 | Java | aksalj/PocketHub | /app/src/main/java/com/github/pockethub/accounts/AuthenticatedUserLoader.java | UTF-8 | 2,637 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2015 PocketHub
*
* 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 t... | true |
d219554c5af0dd28863f23b8d1e6848b2bdb6f97 | Java | wyw9611/LoanBook | /src/model/Member.java | GB18030 | 3,530 | 2.671875 | 3 | [] | no_license | package model;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class Member {
private String Id;
private String Name;
private ArrayList<Loan> Loans = new ArrayList<Loan>();
private List < ISpecification < Member > > specifications = new ArrayLis... | true |
2d250757733b8321e3b8b0a2733f8979986f044f | Java | egorshulga/HireThem | /src/main/java/com/github/hirethem/model/dao/exception/DaoException.java | UTF-8 | 379 | 1.992188 | 2 | [] | no_license | package com.github.hirethem.model.dao.exception;
import com.github.hirethem.exception.ProjectException;
/**
* Created by egors.
*/
public class DaoException extends ProjectException {
public DaoException(String message) {
super(message);
}
public DaoException(String message, Exception maskedExc... | true |
7cd0bdb1f13b096376f9a0a50ddf1bf459e6281f | Java | r-c-s/Auth | /src/test/java/rcs/auth/testutils/InMemoryDataSourceTestBase.java | UTF-8 | 709 | 2.1875 | 2 | [] | no_license | package rcs.auth.testutils;
import org.junit.Before;
import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.jdbc.core.JdbcTemplate;
import javax.sql.DataSource;
public class InMemoryDataSourceTestBase {
protected JdbcTemplate template;
@Before
public final void setupTemplate... | true |
5756e5b69d8958f3cab9ffe454f3bb57572c24b4 | Java | dpdaidai/litespting | /src/test/java/top/dpdaidai/mn/test/v4/ClassPathBeanDefinitionScannerTest.java | UTF-8 | 2,639 | 2.34375 | 2 | [] | no_license | package top.dpdaidai.mn.test.v4;
import org.junit.Assert;
import org.junit.Test;
import top.dpdaidai.mn.beans.factory.BeanDefinition;
import top.dpdaidai.mn.beans.factory.support.DefaultBeanFactory;
import top.dpdaidai.mn.context.annotation.ClassPathBeanDefinitionScanner;
import top.dpdaidai.mn.context.annotation.Scan... | true |
d7c70d9ec9b6dd6626263a0672c99d90b8ecaf61 | Java | gunungloli666/web-analitik | /src/com/parsing/bilangan/CutLongString.java | UTF-8 | 582 | 3.09375 | 3 | [] | no_license | package com.parsing.bilangan;
public class CutLongString {
public static String CutString( String input , int maxlength , String newline){
String result = "";
StringBuilder builder = new StringBuilder();
String[] temp = input.split("\\s+");
int i = 0 , n = 0;
while( i < temp.length ){
int panjang... | true |
539496d3d54b9af205cc949bad4db03520890c90 | Java | stiffme/LearnOpenGL | /src/main/java/org/esipeng/opengl/rumen/HelloWindow.java | UTF-8 | 1,148 | 2.5625 | 3 | [] | no_license | package org.esipeng.opengl.rumen;
import org.esipeng.opengl.base.OGLApplicationAbstract;
import org.esipeng.opengl.base.OGLApplicationGL33;
import static org.lwjgl.opengl.GL33.*;
import static org.lwjgl.glfw.GLFW.*;
import static org.lwjgl.system.MemoryUtil.NULL;
public class HelloWindow extends OGLApplicationGL33 {
... | true |
2c28662fea6a13a34b0db3a9ceb2f9fc107b36ba | Java | ryaninhust/FindHust | /src/java/com/stip/find/service/HusterService.java | UTF-8 | 1,712 | 2.25 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates and open the template in
* the editor.
*/
package com.stip.find.service;
import com.stip.find.da.FindDao;
import com.stip.find.entity.UserHub;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.LocalBean;
import javax.ejb.... | true |
d82e682edb881c09f5beaca3895be66497a5f4bb | Java | jayyei/Repositorio | /Java/Java-pildoras-youtube/src/vector_4.java | UTF-8 | 816 | 3.84375 | 4 | [] | no_license | import java.util.Scanner;
public class vector_4 {
public int[] vector;
Scanner entrada = new Scanner(System.in);
public void cargar() {
vector = new int[10];
for (int i = 0; i < vector.length; i++) {
vector[i] = entrada.nextInt();
}
}
public void ordenamiento(){... | true |
932002508237ad880564d14c974b6f4d97cd313a | Java | Choonster-Minecraft-Mods/TestMod2 | /src/main/java/com/choonster/testmod2/creativetab/ItemSorter.java | UTF-8 | 1,869 | 2.9375 | 3 | [
"MIT",
"CC-BY-3.0"
] | permissive | package com.choonster.testmod2.creativetab;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
public class ItemSorter implements Comparator<ItemStack> {
private final Map<... | true |
5cbdaf7b99c116d29801197cf1609e6d79ce8ebc | Java | wasabiwithbun/KB | /MyKbs/plugin/org/javacoo/cowswing/plugin/core/service/dispose/CoreDisposeService.java | UTF-8 | 698 | 2.296875 | 2 | [] | no_license | /**
* 如石子一粒,仰高山之巍峨,但不自惭形秽.
* 若小草一棵,慕白杨之伟岸,却不妄自菲薄.
*/
package org.javacoo.cowswing.plugin.core.service.dispose;
import org.javacoo.cowswing.core.dispose.DisposeService;
import org.springframework.stereotype.Component;
/**
*
* <p>说明:</p>
* <li></li>
* @author DuanYong
* @since 2014-7-9 下午4:29:12
... | true |
27ac7597745d478ecb94a79bb0b5df99ee916afb | Java | RenzhiJ/JDEletericity | /src/main/java/com/example/bwie/mydemo/callback/YueBinglistCallback.java | UTF-8 | 202 | 1.773438 | 2 | [] | no_license | package com.example.bwie.mydemo.callback;
import com.example.bwie.mydemo.bean.YueBingBean;
public interface YueBinglistCallback {
void success(YueBingBean body);
void failed(Exception e);
}
| true |
a81994ff0b4c188bfef716266a7f49be30b0ce31 | Java | hariKing12/Elibrary | /src/com/sample/project/elibrary/AddquantityDao.java | UTF-8 | 600 | 2.390625 | 2 | [] | no_license | package com.sample.project.elibrary;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class AddquantityDao {
public static int quantity(int number,String callno){
int status=0;
try{
Connection connection=jdbcUtil.getConnection();
PreparedStatement ps=con... | true |
b1ff6f37b7035b8a33ebe5111310c29f84a24257 | Java | jakop52/Zadanie | /src/main/java/tests/AbstractTest.java | UTF-8 | 760 | 2.234375 | 2 | [] | no_license | package tests;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeSuite;
import java.util.concurrent.TimeUnit;
public class AbstractTest {
protected static WebDriver driver;
@BeforeSuite
publi... | true |
7aa7462c5ce3960bac0650fe081a4c8518a49d9f | Java | MakerYan/Fragment_Framework | /app/src/main/java/com/makeryan/lib/widget/ImageHorizontalContainer.java | UTF-8 | 2,232 | 2.390625 | 2 | [] | no_license | package com.makeryan.lib.widget;
import android.content.Context;
import android.support.v7.widget.OrientationHelper;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.makeryan.lib.util.ImageUtil;
import com.zhy.autolay... | true |
b8b7c601e4bf0b0b5e800483e06f132324641908 | Java | guoxuliang/yunshangzhihui_android | /app/src/main/java/yszhh/wlgj/com/yunshangzhihui_android/ui/fragment/Fragment3.java | UTF-8 | 1,074 | 1.859375 | 2 | [] | no_license | package yszhh.wlgj.com.yunshangzhihui_android.ui.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import ysz... | true |