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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
9c31727660e4e144c2bb349b771f3b43203ec875 | Java | opentechgeeks/QASelenium | /src/main/java/com/lowes/qa/selenium/components/HomeProfile_Dim.java | UTF-8 | 16,356 | 1.765625 | 2 | [] | no_license | package com.lowes.qa.selenium.components;
import java.awt.Robot;
import java.awt.event.KeyEvent;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
imp... | true |
cbd4fa7eec34efdf5bdc266f76d337befbb532f1 | Java | jpaw/bonaparte-java | /bonaparte-refs/src/main/java/de/jpaw/bonaparte/refsw/impl/AbstractRequestContext.java | UTF-8 | 4,813 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package de.jpaw.bonaparte.refsw.impl;
import java.time.Instant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import de.jpaw.bonaparte.pojos.api.PersistenceProviders;
import de.jpaw.bonaparte.refs.PersistenceProvider;
import de.jpaw.bonaparte.refsw.RequestContext;
/** Base implementation of some request's... | true |
d60620540299e14b6798955f0c17bda0d8f02433 | Java | kSuroweczka/jdk | /com/sun/tools/javac/tree/DocCommentTable.java | UTF-8 | 618 | 2.078125 | 2 | [] | no_license | package com.sun.tools.javac.tree;
import com.sun.tools.javac.parser.Tokens.Comment;
public abstract interface DocCommentTable
{
public abstract boolean hasComment(JCTree paramJCTree);
public abstract Tokens.Comment getComment(JCTree paramJCTree);
public abstract String getCommentText(JCTree paramJCTree);
p... | true |
a4820148f2f64a0d66a1c1a64534c9238774949f | Java | ITSubmariner/Chat | /src/main/java/com/pet/chat/repository/GroupRepository.java | UTF-8 | 1,792 | 2.453125 | 2 | [] | no_license | package com.pet.chat.repository;
import com.pet.chat.domain.Group;
import com.pet.chat.domain.User;
import com.pet.chat.exception.NoPermissionException;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence.EntityManager;
import jav... | true |
5625babc155ce3d8fd1a59b7a1030c4ae47f9a84 | Java | drag0sd0g/ezDL | /dlservices/src/main/java/de/unidue/inf/is/ezdl/dlservices/library/manager/referencesystems/ReferenceSystemException.java | UTF-8 | 2,855 | 2.203125 | 2 | [] | no_license | /*
* Copyright 2009-2011 Universität Duisburg-Essen, Working Group
* "Information Engineering"
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... | true |
c94c66c177b2bdc94b5ba34c74779c0446fd28b6 | Java | marclx/tmdm-server-se | /org.talend.mdm.core/src/com/amalto/core/webservice/WSStartProcessInstanceVariableEntry.java | UTF-8 | 908 | 1.84375 | 2 | [] | no_license | // This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01,编译版 R40)
// Generated source version: 1.1.2
package com.amalto.core.webservice;
public class WSStartProcessInstanceVariableEntry {
protected java.lang.String key;
... | true |
c16e462d4439aacbee84b33c43764c1073357a17 | Java | shanghaif/YiGou | /YiGou_Item/src/main/java/com/breeze/yigo/item/service/ItemCatService.java | UTF-8 | 281 | 1.578125 | 2 | [] | no_license | package com.breeze.yigo.item.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.breeze.yigo.item.entity.ItemCat;
import com.qf.common.vo.R;
public interface ItemCatService extends IService<ItemCat> {
R queryParent();
R queryChild(int id);
}
| true |
a8d87e45e6ec7b246a7bd457d82f406615e81bc7 | Java | ZehraAsal/DayTwo | /workTwo/src/workTwo/Student.java | UTF-8 | 310 | 2.90625 | 3 | [] | no_license | package workTwo;
public class Student extends User{
private String pasword;
public Student(int id, String name, String pasword) {
super(id, name);
this.pasword = pasword;
}
public String getPasword() {
return pasword;
}
public void setPasword(String pasword) {
this.pasword = pasword;
}
}
| true |
6e14eefb1055c8d251203bebf9fab7eb80266f09 | Java | hzka/HDOJ-Java80 | /1996/src/Main.java | UTF-8 | 371 | 3 | 3 | [] | no_license | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc_01 = new Scanner(System.in);
int line_num=sc_01.nextInt();
for(int i = 0;i< line_num;i++){
int test_num = sc_01.nextInt();
double result = Math.pow(3,test_num);
Sy... | true |
8149b8287b2883a844b1b5023823af2093bb22b8 | Java | lispwu/thinkinjava | /src/holding/E01_Gerbil.java | UTF-8 | 586 | 3.75 | 4 | [] | no_license | package holding;
import java.util.ArrayList;
import java.util.List;
class Gerbil{
private int gerbilNumber;
public Gerbil(int gerbilNumber){
this.gerbilNumber = gerbilNumber;
}
void hop(){
System.out.println("Gerbil " + gerbilNumber + " is hopping!");
}
}
public class E01_Gerbil ... | true |
46a37c6cbd039b3ec65c1f92b445ad998387ffcb | Java | Ritesh786/CONDOMANAGEMENT123 | /app/src/main/java/com/infoservices/lue/fragments/ReturnToHomeFragment.java | UTF-8 | 1,410 | 2.140625 | 2 | [] | no_license | package com.infoservices.lue.fragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Toast;
import com.info... | true |
2f736c8c32ac4f8010d0b92b64eca5af74b06b96 | Java | ebruogdur/ticket-app | /src/main/java/com/ticketing/app/demo/dto/base/BaseDto.java | UTF-8 | 828 | 2.0625 | 2 | [] | no_license | package com.ticketing.app.demo.dto.base;
import java.io.Serializable;
import java.util.Date;
import java.util.UUID;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ticketing.app.demo.enums.Status;
import lombok.Getter;
import lombok.Setter;
@Getter
... | true |
0ee2fb2b38065e252461da68a04c5bdebd928077 | Java | 845146913/RSBot-Scripts | /src/stumpy3toes/scripts/stumpyisland/tasks/Chat.java | UTF-8 | 2,515 | 2.703125 | 3 | [] | no_license | package stumpy3toes.scripts.stumpyisland.tasks;
import org.powerbot.script.Condition;
import org.powerbot.script.Random;
import org.powerbot.script.rt4.ChatOption;
import org.powerbot.script.rt4.Component;
import stumpy3toes.api.script.ClientContext;
import stumpy3toes.api.task.Task;
public class Chat extends Task {
... | true |
cba94ad0bec23b4939267c23cc5ab16e485cda38 | Java | countree/learn-spring-cloud | /consumer-client/src/main/java/yyh/learn/spring/boot/ClientMainStart.java | UTF-8 | 560 | 1.898438 | 2 | [] | no_license | package yyh.learn.spring.boot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
/**
* Spring Boot 应用启动类
*... | true |
ab6db64f80d7822c5679d2fb83abdc3eae4f4973 | Java | yuanhaocn/Fu-Zusheng-Java | /99.我的案例/Day14_Utils/day14_Utils/src/com/syc/utils/queryrunner04/QueryRunnerDemo.java | UTF-8 | 5,469 | 2.9375 | 3 | [] | no_license | package com.syc.utils.queryrunner04;
import java.lang.reflect.InvocationTargetException;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.dbutils.DbUtils;
import or... | true |
2c6b846aec8a8146f99b7b07190d93cadc7af2da | Java | magnayn/maven | /maven-core/src/main/java/org/apache/maven/lifecycle/statemgmt/EndForkedExecutionMojo.java | UTF-8 | 1,099 | 2.296875 | 2 | [] | no_license | package org.apache.maven.lifecycle.statemgmt;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.project.MavenProject;
/**
* Restore the lifecy... | true |
b65f3dfb010595627eb265d446b8b171b5df3c5a | Java | EBI-Metagenomics/ebi-metagenomics | /memi/memi-web/src/main/java/uk/ac/ebi/interpro/metagenomics/memi/controller/studies/DownloadStudyController.java | UTF-8 | 7,811 | 1.8125 | 2 | [] | no_license | package uk.ac.ebi.interpro.metagenomics.memi.controller.studies;
import org.apache.commons.io.IOUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springf... | true |
f82c658b5ec777c39aba4514c1f330f94681bd59 | Java | jbrimlow/Veriwolf-monitoring | /database/app/src/main/java/com/google/firebase/quickstart/database/PhotoReviewActivity.java | UTF-8 | 5,183 | 2.125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-4.0",
"LicenseRef-scancode-other-permissive"
] | permissive | package com.google.firebase.quickstart.database;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Base64;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.wid... | true |
75aae87eb131dce04637339468ecee0a7c4f9c3e | Java | cjeanMa/RestSpringBoot | /src/main/java/com/jmcastle/platziCurso/web/controller/ProductController.java | UTF-8 | 2,375 | 2.28125 | 2 | [] | no_license | package com.jmcastle.platziCurso.web.controller;
import com.jmcastle.platziCurso.domain.Product;
import com.jmcastle.platziCurso.domain.service.ProductService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.Ap... | true |
59ac24770bd2b366302eeba93a4bb03ad2219054 | Java | peesusanthosh/Weather-App | /Weather App/app/src/main/java/com/example/hw05/CityWeatherActivity.java | UTF-8 | 7,043 | 2.078125 | 2 | [] | no_license | package com.example.hw05;
import android.app.ActionBar;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import a... | true |
2a1cc60f640e501ce6e1806036120ac6510cd829 | Java | big-mouth-cn/senon2 | /senon-common/src/main/java/org/bigmouth/senon/commom/zookeeper/listener/Change.java | UTF-8 | 375 | 1.945313 | 2 | [] | no_license | package org.bigmouth.senon.commom.zookeeper.listener;
import org.bigmouth.senon.commom.zookeeper.listener.children.ChildrenMonitor;
public interface Change {
void add(ChildrenMonitor monitor, String path, byte[] data);
void update(ChildrenMonitor monitor, String path, byte[] data);
void remove... | true |
cb5e4e0badff1de0588d9b5646c19f9d1340fbd6 | Java | lanshifu/FFmpegDemo | /src/main/java/net/vidageek/mirror/invoke/MethodHandlerByMethod.java | UTF-8 | 2,234 | 2.75 | 3 | [] | no_license | package net.vidageek.mirror.invoke;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import net.vidageek.mirror.invoke.dsl.MethodHandler;
import net.vidageek.mirror.provider.MethodReflectionProvider;
import net.vidageek.mirror.provider.ReflectionProvider;
public final class MethodHandlerByMethod im... | true |
f767ccbe549ccb0c60da90b6804b1b29fd9d5345 | Java | tinhCaoDuy/WebBlogMVC | /src/blog/entity/MailForm.java | UTF-8 | 1,794 | 2.140625 | 2 | [] | no_license | package blog.entity;
import java.util.Collection;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
impor... | true |
4dd1e425dadb685b19cc2d6e22e537390eb79226 | Java | xiaop1ng/PlayWithSpringBoot | /src/main/java/com/xiaoping/cmdtest/TimeTest.java | UTF-8 | 326 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.xiaoping.cmdtest;
import java.util.Date;
public class TimeTest {
public static void main(String[] args) {
Date expireTime = new Date();
System.out.println(expireTime);
expireTime.setTime(expireTime.getTime() + 1000*60*30); // 半小时
System.out.println(expireTime);
}
}
| true |
487caa2ae066349dca4244442abe40e5b89afdb2 | Java | FurtosStelianEmanuel/SmartHomeSystem-mobile | /app/src/main/java/com/example/smarthomesystem/FragmentOnConnectAutomation.java | UTF-8 | 12,765 | 2.234375 | 2 | [] | no_license | package com.example.smarthomesystem;
import android.app.AlertDialog;
import android.app.TimePickerDialog;
import android.os.Build;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
im... | true |
636ffbf5a9f69f50e32ea7b8d812245ba95b227d | Java | jnchen/shiro-demo | /src/main/java/com/example/demo/config/ShiroConfig.java | UTF-8 | 2,936 | 2.203125 | 2 | [] | no_license | package com.example.demo.config;
import com.example.demo.security.ShiroRealm;
import org.apache.shiro.authc.credential.HashedCredentialsMatcher;
import org.apache.shiro.mgt.SecurityManager;
import org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor;
import org.apache.shiro.spring.web.Shiro... | true |
0d515115b01285841c0f312854ac16ed7b791992 | Java | monisha321/TestAutomation | /JavaDemoPrograms/src/com/sgtesting/assgn4/ArrayshortFor.java | UTF-8 | 205 | 2.671875 | 3 | [] | no_license | package com.sgtesting.assgn4;
public class ArrayshortFor {
public static void main(String[] args) {
short a[]= {109,108,107};
for(int i=0;i<a.length;i++)
{
System.out.println(a[i]);
}
}
}
| true |
f675de8107e6cf33bac1fa634523138cc54fe060 | Java | egemenozdag/friendship-digraph-java | /FriendshipAnalyzer.java | UTF-8 | 4,292 | 3.109375 | 3 | [] | no_license | import edu.princeton.cs.algs4.Graph;
import edu.princeton.cs.algs4.Queue;
//-----------------------------------------------------
//Title: FriendshipGraph Analyzer
//Author: Egemen OZDAG
//ID: 47755722122
//Section: 1
//Assignment: 1
//Description: This class is analyzer of the friendshipGraph class.
//---------------... | true |
b3f37ca7709ff90a89bf76cc3cc36952f3b034c2 | Java | HosseinEynloo/RasaMedia | /app/src/main/java/com/rasa/computerman/WebService/Medias/GetMedia/iGetMedia.java | UTF-8 | 630 | 2.15625 | 2 | [] | no_license | package com.rasa.computerman.WebService.Medias.GetMedia;
import com.rasa.computerman.WebService.Medias.GetMedia.Model.ResponseGetMedia;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface iGetMedia {
void doGetGetMedia(int mediaId,String deviceId);
interface iRes... | true |
b11fb57602694fb3fd324ccc20f5f368a5a5fdc7 | Java | hayasam/lightweight-effectiveness | /projects/checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/MissingSwitchDefaultCheck.java | UTF-8 | 3,355 | 2.546875 | 3 | [
"MIT",
"Apache-2.0",
"LGPL-2.1-only"
] | permissive | ////////////////////////////////////////////////////////////////////////////////
// checkstyle: Checks Java source code for adherence to a set of rules.
// Copyright (C) 2001-2018 the original author or authors.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU ... | true |
8c9082c3f6eaf43e0e69ce8ad92370085d82ae6b | Java | zondahuman/algorithm-svr | /algorithm-leetcode/src/main/java/com/abin/lee/algorithm/leetcode/arrarer/LongestCommonPrefix.java | UTF-8 | 1,703 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | package com.abin.lee.algorithm.leetcode.arrarer;
import org.junit.Test;
/**
* Created by abin on 2018/9/15.
* 14. Longest Common Prefix
* https://leetcode.com/problems/longest-common-prefix/description/
*/
public class LongestCommonPrefix {
public String longestCommonPrefix(String[] strs) {
if (strs.... | true |
27784423b0e478f94e8d1e93f213ea94cb214320 | Java | nxzh/algs | /src/exercise/java/me/siduzy/ch01/sec01/E010127.java | UTF-8 | 1,555 | 3.40625 | 3 | [] | no_license | package me.siduzy.ch01.sec01;
public class E010127 {
private static long count = 0;
/*
if n = 100, k = 50:
1st: (N-1, k, p) + (N-1, k-1, p)
2nd: (N-2, k, p) + (N-2, k-1, p) | (N-2, k-1, p) + (N-2, k-2, p)
3rd: (N-3, k, p) + (N-3, k-1, p) | (N-3, k-1, p) + (N-3, k-2, p) | (N-3, k-1,... | true |
c0c728fa22299d362d44bcfb61fff87e716e2c42 | Java | shenke93/LinkedForever | /src/com/uvsq/idao/IBasicDAO.java | UTF-8 | 361 | 2.15625 | 2 | [] | no_license | package com.uvsq.idao;
import java.util.List;
public interface IBasicDAO
{
public void add(Object o);
public void delete(Class<?> clazz, int id);
public void update(Object o);
public List<Object> executeQuery(String hql, Object[] parameters);
public Object findById(Class<?> clazz, int id);
public Object unique... | true |
d10b8121e1dcd83336607dc5ecf1dd3cffd1ba30 | Java | userxiaya/eeMusic | /plugins/eeui/audio/android/src/main/java/eeui/android/audio/service/BackService.java | UTF-8 | 1,676 | 1.96875 | 2 | [
"MIT"
] | permissive | package eeui.android.audio.service;
import android.annotation.SuppressLint;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import andr... | true |
576239c287f37b863a051ca5be4f8bd3ab433aae | Java | dxm36500/heroku | /SpringPractice/src/main/java/com/myspring/project/SpringTest.java | UTF-8 | 464 | 2.109375 | 2 | [] | no_license | package com.myspring.project;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
//Constructor Injection
public class SpringTest {
public static void main(String args[])
{
ApplicationContext context=new ClassPathXmlAppl... | true |
67bfebef600850b1510273c1e8c752d9722451b7 | Java | bmenezes13/GroupPorject | /src/mainclasses/Account.java | UTF-8 | 986 | 2.578125 | 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 mainclasses;
/**
*
* @author user
*/
public class Account {
private String fname;
private String lname;
private... | true |
c845d6e28660e8c68665584dba49cd25edc06c5e | Java | cacurio/ApiClima | /src/main/java/com/arcos/servicio/EndPontClimaApplicationProperties.java | UTF-8 | 801 | 2.171875 | 2 | [] | no_license | package com.arcos.servicio;
import javax.validation.constraints.NotNull;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties("app.clima")
public class EndPontClimaApplicationProperties {
private final Api api = new Api();
public Api getApi() {
return this.api... | true |
302014e7148c6635dd60ec63e05edcc9b20fdc88 | Java | gediineko/person-management-angular2 | /src/main/java/io/github/gediineko/services/util/RoleUtil.java | UTF-8 | 424 | 2.265625 | 2 | [] | no_license | package io.github.gediineko.services.util;
import io.github.gediineko.model.entities.Role;
import io.github.gediineko.model.ref.RoleType;
import java.util.Set;
/**
* Created by NazIsEvil on 15/10/2016.
*/
public class RoleUtil {
public static boolean isAdmin (Set<Role> roles){
return roles.stream()
... | true |
09032ff444d2141066c727791ff6da833618d18f | Java | kazuooooo/NidoneAlarm2 | /AlarmClock/src/main/java/com/better/alarm/model/AlarmsManager.java | UTF-8 | 1,802 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2007 The Android Open Source Project
* Copyright (C) 2012 Yuriy Kulikov yuriy.kulikov.87@gmail.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://w... | true |
c10a77e47f83bd6cc68ecdcb41b22387de8b56a9 | Java | MINDS-i/Dashboard | /src/ui/ninePatch/TransparentPanel.java | UTF-8 | 1,555 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | package com.ui.ninePatch;
import com.Context;
import java.awt.*;
import java.awt.event.*;
import javax.imageio.*;
import javax.swing.*;
import javax.swing.border.*;
/**
* A transparent border panel
* Child nodes will have to call repaint on this node instead of repainting
* themselves directly or else they will ... | true |
99661a34742b820794137bdd374b0317171e446e | Java | TangliziGit/leetcode | /java/84.largest-rectangle-in-histogram.267660858.ac.java | UTF-8 | 772 | 3.15625 | 3 | [] | no_license | class Solution {
public int largestRectangleArea(int[] hei) {
if (hei == null || hei.length == 0) return 0;
int[] left = new int[hei.length];
int[] right= new int[hei.length];
left[0]=-1; right[hei.length-1]=hei.length;
for (int i=1; i<hei.length; i++){
i... | true |
a4296ac77caa906b0872f0b618c6f716f7dc97cd | Java | jazzyF/lowesquiz | /src/main/java/com/lowes/service/QuizService.java | UTF-8 | 503 | 1.703125 | 2 | [] | no_license | package com.lowes.service;
import com.lowes.dto.QuizApiResponse;
import com.lowes.dto.QuizDto;
import com.lowes.model.Quiz;
import org.springframework.util.MultiValueMap;
import reactor.core.publisher.Mono;
import java.util.List;
public interface QuizService {
Mono<Quiz> getQuiz(MultiValueMap<String, String> que... | true |
bb454f6f19a28b88ba2b55893cbeb137022024c2 | Java | cmcalado/ChuckNorris | /app/src/main/java/com/davidpradosm/chuckjokes/MainActivity.java | UTF-8 | 4,772 | 2.1875 | 2 | [] | no_license | package com.davidpradosm.chuckjokes;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
im... | true |
852a4868373d8ab3823c549069e8d8ae74386eba | Java | humyna/springdemo | /sia-springidol/src/test/java/info/zoio/tec/java/springinaction/springidol/JugglerMain.java | UTF-8 | 801 | 2.390625 | 2 | [] | no_license | package info.zoio.tec.java.springinaction.springidol;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* 构造器注入
*
* @author humyna
*
*/
public class JugglerMain {
public static void main(String[] args) throws Perform... | true |
70da599e67b012fa5680dae6d67dea7ba479f3e8 | Java | Nicovross/Parcial2Lab1 | /Empleado.java | UTF-8 | 1,234 | 2.953125 | 3 | [] | no_license | /*Clase: Empleado
Atributos: nombreCompleto (String), legajo (int), salario (double), nivelAcademico
(NivelAcademico)
*/
package parcial2nicolásvargas;
import java.util.*;
public class Empleado {
String nombreCompleto;
int legajo;
double salario;
NivelAcademico nivelAcademico;
public String getNombreC... | true |
52cef57d85a23eec918d2f62b44fa33a432a68b2 | Java | piyushdubeygithub/Educational-DP-Contest | /src/main/java/interview/JailServiceImpl.java | UTF-8 | 292 | 2.609375 | 3 | [] | no_license | package interview;
public class JailServiceImpl implements JailService{
@Override
public void deductAmount(User user, Integer amount) {
Jail jail = new Jail();
int userAmount = user.getAmount();
userAmount -= 150;
user.setAmount(userAmount);
}
}
| true |
57c122258da7a9b51d23ceca29e443764878bd1f | Java | samuelvazcal/Java-RelearningSessions-Exercises | /Section19/src/com/samuelvazquez/firstexample/PokemonJDBC.java | UTF-8 | 1,777 | 3.171875 | 3 | [] | no_license | package com.samuelvazquez.firstexample;
import java.sql.*;
public class PokemonJDBC {
public static void main(String[] args) {
try {
Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/pokemondb","root","root");
// connection.setAutoCommit(false);
... | true |
580b6d7b72142b293dc7707fedab83ef1fc27e86 | Java | Jerryzhzy/java_pro | /src/main/java/com/lzc/gstore/vocabulary/entity/Demo.java | UTF-8 | 556 | 2.140625 | 2 | [] | no_license | package com.lzc.gstore.vocabulary.entity;
import com.lzc.core.datasource.entity.IdEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import java.io.Serializable;
/**
* Created by ziyu.zhang on 2017/6/30.
*/
@Entity
public c... | true |
80b3573e25ba0555c31933a43dc0740e25e5d680 | Java | SebastianHenaoSanchez/MicroservicioNegocio | /spring-server/src/main/java/io/swagger/repository/UserRepository.java | UTF-8 | 582 | 1.601563 | 2 | [] | no_license | package io.swagger.repository;
import java.util.List;
import org.socialsignin.spring.data.dynamodb.repository.EnableScan;
import org.springframework.data.repository.CrudRepository;
import io.swagger.model.RegistrarRequest;
@EnableScan
public interface UserRepository extends CrudRepository<RegistrarRequest, String>... | true |
cf326c770ff51049adea0425a0b80fc48a65f162 | Java | Alexandre35-cyber/FileFinder | /src/main/java/org/maison/filefinder/view/MainWindow.java | UTF-8 | 21,987 | 2.234375 | 2 | [] | no_license | package org.maison.filefinder.view;
import org.maison.filefinder.model.*;
import org.maison.filefinder.model.criteria.SearchCriteria;
import javax.swing.*;
import javax.swing.event.HyperlinkEvent;
import javax.swing.event.HyperlinkListener;
import javax.swing.text.*;
import java.awt.*;
import java.awt.eve... | true |
77adcd5ad4b8b302bce46b5d678edf7cfa888b51 | Java | zhongxingyu/Seer | /Diff-Raw-Data/26/26_41741db1c9bc4cbe51869fcc030451d7712099ba/ThroughputVsThreadsGui/26_41741db1c9bc4cbe51869fcc030451d7712099ba_ThroughputVsThreadsGui_s.java | UTF-8 | 2,349 | 2.515625 | 3 | [] | no_license | package kg.apc.jmeter.vizualizers;
import java.awt.Color;
import org.apache.jmeter.samplers.SampleResult;
import org.apache.jorphan.gui.RateRenderer;
public class ThroughputVsThreadsGui
extends AbstractGraphPanelVisualizer
{
public ThroughputVsThreadsGui()
{
super();
graphPanel.getG... | true |
e83d5f63cfa743299b4925619d66b703650fbc94 | Java | ahtrun/FastVLayout | /fastlayout/src/main/java/com/lhp/fastvlayout/listener/OnDisplayImageL.java | UTF-8 | 183 | 1.8125 | 2 | [] | no_license | package com.lhp.fastvlayout.listener;
import android.widget.ImageView;
public interface OnDisplayImageL {
void onDisplayImage(Object object,int position,ImageView imageView);
}
| true |
e7284624860ce657fa6d83c168ee54bb2e241964 | Java | kevroletin/toy-java-serializer | /src/test/java/io/github/kevroletin/json/adapters/DoubleAdapterTest.java | UTF-8 | 1,201 | 2.5 | 2 | [] | no_license | package io.github.kevroletin.json.adapters;
import io.github.kevroletin.json.AST.DoubleNode;
import io.github.kevroletin.json.AST.NullNode;
import io.github.kevroletin.json.AST.StringNode;
import io.github.kevroletin.json.Deserializer;
import io.github.kevroletin.json.Location;
import io.github.kevroletin.json.utils.M... | true |
e1272b2b96d43ff41060deff45b9ab1db96f052e | Java | ilgun/unifiedissuetrackers | /src/main/java/Model/SocialMedia/Email.java | UTF-8 | 940 | 2.625 | 3 | [] | no_license | package Model.SocialMedia;
import com.google.common.base.Optional;
public class Email {
private final Optional<Boolean> isImportant;
private final Optional<Boolean> isSpam;
private Email(Optional<Boolean> isImportant, Optional<Boolean> isSpam) {
this.isImportant = isImportant;
this.isSpa... | true |
f29d5cbcdf183be629a770eb4f8c9adaec0c9205 | Java | JiaxingGeng/cs4321 | /src/cs4321/project3/IO/HumanReadableWriter.java | UTF-8 | 994 | 3.46875 | 3 | [] | no_license | package cs4321.project3.IO;
import cs4321.project2.operator.Tuple;
import java.io.PrintWriter;
import java.io.IOException;
/**
* Use BufferedWriter to write outputs that are human readable
* @author Jiaxing Geng (jg755), Yangyi Hao (yh326)
*
*/
public class HumanReadableWriter implements TupleWriter {
private... | true |
cd3f2a2089dd96720ff7725020db227a95360740 | Java | Polar-Pumpkin/Shoal | /PrefixMe/src/main/java/net/shoal/parrot/prefixme/Command.java | UTF-8 | 5,090 | 2.015625 | 2 | [] | no_license | package net.shoal.parrot.prefixme;
import net.md_5.bungee.api.chat.HoverEvent;
import net.md_5.bungee.api.chat.TextComponent;
import net.shoal.parrot.prefixme.subcommand.GetCommand;
import net.shoal.parrot.prefixme.subcommand.SetCommand;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import ... | true |
1e82ecc2f7c0c00854ac458823d2ae3c3e96f627 | Java | rayhan-ferdous/code2vec | /codebase/dataset/t3/418_frag1.java | UTF-8 | 635 | 2.421875 | 2 | [] | no_license | public void writeChanges() {
if (log.isDebugEnabled()) log.debug("writeChanges() invoked");
if (!isChanged()) return;
onlyChanges = true;
if (getReadOnly()) log.error("unexpected write operation when readOnly is set");
setBusy(true);
super.setState(STORED);
... | true |
db4a51d26c49b6b63ccd64b223b91f39380ca6ff | Java | lentiummmx/syar | /servlets/syar-web/src/main/java/mx/com/vepormas/syar/web/cfg/AppInitializer.java | UTF-8 | 1,446 | 1.710938 | 2 | [] | no_license | /**
*
*/
package mx.com.vepormas.syar.web.cfg;
import javax.servlet.Filter;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
/**
* @author phoenix
*
*/
public class AppInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
/* (non-Javado... | true |
2b6ec84fd720c792543aecf447c3bbb889b6d180 | Java | moutainhigh/travle | /seven_plus/domain_service/src/main/java/com/domain/plus/entity/ExtractCash.java | UTF-8 | 14,717 | 2.3125 | 2 | [] | no_license | package com.domain.plus.entity;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
/**
*
* @author zhoudu
*/
public class ExtractCash implements Serializable {
private static final long serialVersionUID = 1535512751274L;
/**
* ... | true |
fd979e41844d7a648aa244f1724767e812d14f28 | Java | m01ten/testArithmeticProject | /src/test/java/ru/sber/operandtest/TestDiv.java | WINDOWS-1251 | 2,124 | 2.75 | 3 | [] | no_license | package ru.sber.operandtest;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import ru.yandex.qatools.allure.annotations.Step;
import ru.yan... | true |
785d4d7b2739e647ec9972bd082aba9f0a6ec3c9 | Java | Uniandes-MISO4203-backup/mpfreelancer-back-201610 | /m-p-freelancer-logic/src/main/java/co/edu/uniandes/csw/mpfreelancer/api/IAgreementLogic.java | UTF-8 | 1,192 | 1.875 | 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 co.edu.uniandes.csw.mpfreelancer.api;
import co.edu.uniandes.csw.mpfreelancer.entities.AgreementEntity;
import java.util.List;... | true |
67af85d8f7f3155f0970dfa3e8a45f6a504bdf7f | Java | rloman/ski | /src/main/java/nl/example/app/streams/solution/ApplicationLambdas.java | UTF-8 | 926 | 3.09375 | 3 | [] | no_license | package nl.example.app.streams.solution;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
public class ApplicationLambdas {
public static void main(String[] args) {
Person kevin = new Person("Kevin");
Person annemarije = new Person("Annemarije"... | true |
9646936f1edd0157bdd7c1c9377618c0b09b90e3 | Java | 0xflotus/cyclops-react | /cyclops-pure/src/main/java/cyclops/instances/jdk/OptionalInstances.java | UTF-8 | 10,392 | 2.5 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package cyclops.instances.jdk;
import com.oath.cyclops.hkt.DataWitness.optional;
import com.oath.cyclops.hkt.Higher;
import cyclops.companion.Optionals;
import cyclops.control.Either;
import cyclops.control.Maybe;
import cyclops.control.Option;
import cyclops.function.Function3;
import cyclops.function.Monoid;
import ... | true |
ab0eed67e1e809f3b0f56138de84ef2fd7e6bfa7 | Java | tomerasulin/springBootAppWithKafka-BH | /messageService/src/main/java/il/asulin/messageService/services/MessageListener.java | UTF-8 | 179 | 1.671875 | 2 | [] | no_license | package il.asulin.messageService.services;
import org.json.JSONObject;
public interface MessageListener {
void notifyOnMessageReceived(JSONObject json, String key);
}
| true |
4fa37aa77b57f45eeed39704d7b7bf3068720d14 | Java | monkeycc321/research | /RoutePlanning/src/main/java/edu/swfu/routeplanning/service/PlanningRouteServiceImpl.java | UTF-8 | 4,079 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package edu.swfu.routeplanning.service;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import oracle.spatial.geometry.JGeometry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype... | true |
cf84e4b8964ebc23b307c278f9012fbc72dc31c9 | Java | Planckcons/Divided-P-O-T-A-T-O | /Logigs/DP/src/ShipParts.java | UTF-8 | 387 | 2.796875 | 3 | [] | no_license |
public class ShipParts {
int condition;
int weight;
int array_place;
String name;
String type;
ShipParts(int condition, int weight, String name, String type, int array_place)
{
this.condition = condition;
this.name = name;
this.type = type;
this.weight = weight;
this.array_place = array_place;
}
... | true |
267c4514f56b2b89fafc64b8e572f8070128e28c | Java | alidili/Demos | /DataBindingDemo/app/src/main/java/com/yl/databindingdemo/ui/MainActivity.java | UTF-8 | 2,935 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.yl.databindingdemo.ui;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.yl.databindingdemo.R;
import com.yl.databindingdemo.databinding.ActivityMainBinding;
/**
* 主页
... | true |
1cb39c3dd1cd0b56f9a8773b88c13802f8e86621 | Java | tanhuaqiang/mycode | /src/test/java/com/dalingjia/myThreadPool/Future.java | UTF-8 | 197 | 1.9375 | 2 | [] | no_license | package com.dalingjia.myThreadPool;
public interface Future<T> {
/**
* 获取
* @return 结果
* @throws InterruptedException
*/
T get() throws InterruptedException;
} | true |
b0007c473be070beb6150e6b4a5ee3e61a803a1a | Java | savitendersinghrajput/e-bell | /app/src/main/java/com/saurav/qrgenerater/ScannerActivity.java | UTF-8 | 4,553 | 2.03125 | 2 | [] | no_license | package com.saurav.qrgenerater;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.telephon... | true |
f54a641532000570994451868bf1adf9fd1cbffc | Java | georgemoralis/arcadeflex-037b7-deprecated | /emulator_dev/src/main/java/gr/codebb/arcadeflex/WIP/v037b7/drivers/astrocde.java | UTF-8 | 43,137 | 1.546875 | 2 | [] | no_license | /*
* ported to v0.37b7
* using automatic conversion tool v0.01
*/
package gr.codebb.arcadeflex.WIP.v037b7.drivers;
import static gr.codebb.arcadeflex.WIP.v037b7.machine.astrocde.*;
import static gr.codebb.arcadeflex.WIP.v037b7.sndhrdw.astrocde.*;
import static gr.codebb.arcadeflex.WIP.v037b7.sndhrdw.gorf.*;
import ... | true |
58ef03ccc5adccaa9fdd5edbdbe8198b3a35a970 | Java | Logeshvarshith/SeleniumProjects | /AmazonSearch.java | UTF-8 | 3,626 | 2.03125 | 2 | [] | no_license | package com.amazon.testcases;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.events.EventFiringWebDriver;
import org.testng.Assert;
impor... | true |
ceaf7c4b178ccad37f8ffc0a71d32a0a4783dcad | Java | deepankarsharma/jaque | /src/java/net/frodwith/jaque/truffle/jet/ops/MinkNode.java | UTF-8 | 682 | 2.328125 | 2 | [] | no_license | package net.frodwith.jaque.truffle.jet.ops;
import com.oracle.truffle.api.dsl.NodeField;
import com.oracle.truffle.api.dsl.Specialization;
import net.frodwith.jaque.data.Cell;
import net.frodwith.jaque.truffle.Context;
import net.frodwith.jaque.truffle.jet.BinaryOpNode;
@NodeField(name="context", type=Context.class)... | true |
4bd9aea6806152fdb96b23a0f4e3a56ca8126ba7 | Java | zhangdhu/server | /api/src/main/java/com/zdh/api/config/SwaggerConifg.java | UTF-8 | 1,846 | 2.1875 | 2 | [] | no_license | package com.zdh.api.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
im... | true |
ec979401e5966c2f9f9989c0624125b12378715e | Java | VinsentY/JavaPratice | /Java中的按值传递.java | UTF-8 | 572 | 3.5625 | 4 | [] | no_license | package seven;
public class Seven {
public static void changeString(StringBuilder string) {
string.delete(0,string.length());
string.append("You're Changed");
}
public static void cannotChange(String string) {
string = "You're Changed";
}
public static void main(String[] args) {
StringBuilder stri... | true |
14de92043416b5fbde536f768973b2bea37ae4d2 | Java | polozgai/szakdolgozat | /src/test/java/hu/elte/algorithm/AlgorithmTest.java | UTF-8 | 891 | 2.125 | 2 | [] | no_license | package hu.elte.algorithm;
import hu.elte.graph.Edge;
import hu.elte.graph.Graph;
import hu.elte.graph.Vertex;
import org.apache.activemq.broker.BrokerService;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class AlgorithmTest {
@Test
public void computeAlgorithm() ... | true |
2ba35a3101073c3de12104f6c8f9a8adf380e57c | Java | KleeGroup/vertigo | /vertigo-core/src/main/java/io/vertigo/core/node/config/BootConfigBuilder.java | UTF-8 | 6,603 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | /**
* vertigo - application development platform
*
* Copyright (C) 2013-2020, Vertigo.io, team@vertigo.io
*
* 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/li... | true |
6eaf5933273c37551890d78d0cecdf991e1379ee | Java | busgo/fc | /fc-biz/src/main/java/com/busgo/fc/biz/component/HouseComponent.java | UTF-8 | 1,044 | 2.3125 | 2 | [] | no_license | package com.busgo.fc.biz.component;
import com.busgo.fc.inner.dao.HouseDao;
import com.busgo.fc.inner.model.House;
import com.busgo.fc.inner.query.HouseQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;... | true |
c01b58d06b14a490bb265704f20ff46025ed88a5 | Java | VoidShaper/bookstorecomparator | /src/main/java/com/matski/infractructure/jsoup/JsoupRetrieveResult.java | UTF-8 | 112 | 1.648438 | 2 | [] | no_license | package com.matski.infractructure.jsoup;
public interface JsoupRetrieveResult {
boolean wasSuccessful();
}
| true |
bd7344806130312678398b052531f8bc9103a701 | Java | jorge-luque/hb | /sources/p118io/presage/core/C6298e2.java | UTF-8 | 2,001 | 1.71875 | 2 | [] | no_license | package p118io.presage.core;
import admost.sdk.base.AdMost;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
/* renamed from: io.presage.core.e2 */
publ... | true |
782d5c8eecdc9329ef95806e65013703ec7d7a78 | Java | Florence-ops/Tuko | /src/test/java/Tests/Tests.java | UTF-8 | 2,096 | 2.140625 | 2 | [] | no_license | package Tests;
import Pages.HomePage;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.Alert;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.t... | true |
3c5032c0df2f879b48cb0037117a6e5765f44398 | Java | pramodaya/spring-lesson | /dependency-injection/constructor-injection/FortuneService.java | UTF-8 | 98 | 1.617188 | 2 | [] | no_license | package com.luv2code.springdemo;
public interface FortuneService {
public String geFortune();
}
| true |
57b342fa5fe756d398d642dd7b10140a61c47c5c | Java | wangjianminks/Maven-Spring | /src/main/java/com/cheer/spring/ioc/annotation/dao/impl/MasterDaoImpl.java | UTF-8 | 933 | 2.3125 | 2 | [] | no_license | /**
* 文件名 :MasterDaoImpl.java
*作者 :WangJianmin
*建立时间:2017年11月9日
*/
package com.cheer.spring.ioc.annotation.dao.impl;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;
import com... | true |
39e6dfc5ccd89c8847a3f7688dc9690f17589afd | Java | ramdanks/jwork | /src/main/java/RamadhanKalih/jwork/Handshake.java | UTF-8 | 1,711 | 2.84375 | 3 | [] | no_license | package RamadhanKalih.jwork;
import java.nio.charset.StandardCharsets;
import java.security.*;
import java.util.Base64;
import javax.crypto.Cipher;
public class Handshake
{
private KeyPair keyPair;
public Handshake() {
try {
KeyPairGenerator generator = KeyPairGenerator.getInstance(... | true |
a6e99ef99041dc5856c3c1cbb4282504316944f0 | Java | BliZZeRxD/JavaOOP | /lab4/src/Week_8_A/AbstractShapes.java | UTF-8 | 130 | 2.296875 | 2 | [] | no_license | package Week_8_A;
abstract class AbstractShapes {
abstract double volume();
abstract double surfaceArea();
}
| true |
f47411b719b89dcc816769084b22737455cec7c2 | Java | barchetta/helidon | /config/config-mp/src/test/java/io/helidon/config/mp/MpConfigReferenceTest.java | UTF-8 | 2,935 | 1.953125 | 2 | [
"Apache-2.0",
"APSL-1.0",
"LicenseRef-scancode-protobuf",
"GPL-1.0-or-later",
"LGPL-2.1-only",
"LicenseRef-scancode-unknown-license-reference",
"CC-PDDC",
"LicenseRef-scancode-generic-export-compliance",
"LicenseRef-scancode-unicode",
"EPL-1.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL... | permissive | /*
* Copyright (c) 2020, 2023 Oracle and/or its affiliates.
*
* 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 ... | true |
fa72081a07b3a7bf6a23f5581e18540f400db9a1 | Java | GaryHua226/leetcode-garyGlh | /src/Prob897.java | UTF-8 | 521 | 2.734375 | 3 | [] | no_license | import leetcodeUtil.TreeNode;
public class Prob897 {
private TreeNode resNode;
public TreeNode increasingBST(TreeNode root) {
TreeNode dummyNode = new TreeNode(-1);
resNode = dummyNode;
inorder(root);
return dummyNode.right;
}
public void inorder(TreeNode node) {
... | true |
6937f7f97e7da25a388af2740b933cd6b375f3bb | Java | driouxg/Water-Pls-Mobile | /app/src/main/java/com/dryox/water_pls_mobile/domain/StompCommandEnum.java | UTF-8 | 1,115 | 2.578125 | 3 | [] | no_license | package com.dryox.water_pls_mobile.domain;
public enum StompCommandEnum {
/* Stomp Client Commands */
SEND("SEND"),
CONNECT("CONNECT"),
SUBSCRIBE("SUBSCRIBE"),
UNSUBSCRIBE("UNSUBSCRIBE"),
COMMIT("COMMIT"),
BEGIN("BEGIN"),
ABORT("ABORT"),
ACK("ACK"),
NACK("NACK"),
DISCONNECT(... | true |
3451e4cee70bffcb14d7c410cb1801c80dc60e1d | Java | Xiao-Fan-x/Github-on-Linux | /LanQiao/src/PAT/Main.java | UTF-8 | 1,120 | 3.25 | 3 | [] | no_license | package PAT;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(in.readLine()... | true |
9b7252ddcb5429b982cddb8b19e50bbce36169c2 | Java | whatafree/JCoffee | /benchmark/bigclonebenchdata_completed/19193813.java | UTF-8 | 1,787 | 2.828125 | 3 | [] | no_license |
class c19193813 {
public MyHelperClass STATE_OK;
public MyHelperClass deleteTemporaryFile(){ return null; }
public void writeTo(File f) throws IOException {
MyHelperClass state = new MyHelperClass();
if (state != STATE_OK) throw new IllegalStateException("Upload failed");
MyHelperClass t... | true |
16bbc390a567da0387407877831fa9dfcf9dd94e | Java | yosinhasan/socialnetwork | /src/main/java/com/kindhope/dao/MessageDAO.java | UTF-8 | 443 | 2.046875 | 2 | [] | no_license | package com.kindhope.dao;
import com.kindhope.entity.Message;
import java.math.BigInteger;
import java.util.List;
/**
* @author Yosin_Hasan<yosinhasan@gmail.com>
* @version 0.0.1
*/
public interface MessageDAO extends GenericDAO<Message> {
List<Message> findConversationMessages(BigInteger conversationId);
... | true |
57e672cd5ff04398f445ba7d8100a66b39c4eb7f | Java | coronalabs/corona | /platform/android/sdk/src/com/ansca/corona/CoronaStatusBarApiHandler.java | UTF-8 | 1,775 | 2.40625 | 2 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown"
] | permissive | //////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: support@coronalabs.com
//
////////////////////////... | true |
d05031ed0ba9200465432aa7e2791bf4c02d30be | Java | JIANLAM/learn_springboot | /springbootdemo/src/main/java/com/learn/springbootdemo/main/testMethod.java | UTF-8 | 857 | 3.28125 | 3 | [] | no_license | package com.learn.springbootdemo.main;
/**
* @Author: linzj
* @Date: 2019/5/28 11:21
* @Desciption
*/
public class testMethod {
public static void main(String[] args) {
int[] array =new int[]{2,5,5,11};
int target = 10;
int[] ints = twoSum(array, target);
for (int anInt : ints... | true |
189ff71fb644cc43a0d4885a3aadd8e8a86bc61a | Java | orchids-li/data-mapping | /src/main/java/cn/ting/er/datamapping/listener/ReadListener.java | UTF-8 | 413 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package cn.ting.er.datamapping.listener;
import cn.ting.er.datamapping.context.MappingContext;
import cn.ting.er.datamapping.exception.ReadException;
/**
* @author wenting.Li
* @version 0.0.1
* @since JDK 8
*/
public interface ReadListener<T> {
void onReadHeader(MappingContext context);
void onReadRow(T t... | true |
6f34cb80a28b9fd3947d706b5d1b235fc24fc385 | Java | krissivam/java-batch197 | /src/Day6/MainOOP.java | UTF-8 | 1,155 | 2.625 | 3 | [] | no_license | package Day6;
import Day5.StudyCase.Orang;
public class MainOOP {
public static void main(String[] args) {
Mahasiswa mhs = new Mahasiswa();
mhs.id = 1;
mhs.nama = "Joni";
mhs.alamat = "Bojong Soang";
mhs.jk= "Pria";
mhs.noTelp= "080989999";
mhs.nim = "1215031007";
mhs.jurusan = "Teknik Nuklir";
mh... | true |
d3016512234bab9220d54999f73c47e3231e96c1 | Java | rad-navid/pinglish | /src/gui/PinglishTextBox.java | UTF-8 | 1,832 | 2.484375 | 2 | [] | no_license | package gui;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.widget.EditText;
public class PinglishTextBox extends EditText {
public interface onSelectionChangedListener {
public void... | true |
317e2863cf498cd120f937a30548e35c46570091 | Java | gzxishan/OftenPorter | /Porter-Core/src/main/java/cn/xishan/oftenporter/porter/core/advanced/PortUtil.java | UTF-8 | 18,766 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package cn.xishan.oftenporter.porter.core.advanced;
import cn.xishan.oftenporter.porter.core.ContextPorter;
import cn.xishan.oftenporter.porter.core.annotation.MixinOnly;
import cn.xishan.oftenporter.porter.core.annotation.MixinTo;
import cn.xishan.oftenporter.porter.core.annotation.PortIn;
import cn.xishan.oftenport... | true |
7d1aec767e937ffa15ead54cd01cfc145e1a9f6c | Java | KennethMLee/CaregiverSpring | /src/com/caregiver/DaoI/EventServicesDaoi.java | UTF-8 | 373 | 2.015625 | 2 | [] | no_license | package com.caregiver.DaoI;
import java.util.List;
import com.caregiver.entities.Event;
public interface EventServicesDaoi {
boolean addEvent(Event event);
List<Event> getAllEvents();
List<Event> getEventByUsername(String username);
boolean removeEvent(int eventId);
boolean updateEvent(Even... | true |
45b0019569d029300701da59969c227df7de7f79 | Java | lctx/ProyectoZapateria | /src/proyectozapateria/venta.java | UTF-8 | 20,591 | 2.234375 | 2 | [] | no_license | package proyectozapateria;
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.Statement;
import java.awt.event.KeyEvent;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JOptionPane;
/**
*
* @author dell
*/
public class venta extends javax.swing.JFrame {
/** Creates new form ve... | true |
91b3ab515db5636b0d2ebefb330beb07bea89070 | Java | taDachs/faxcoin | /node/src/main/java/com/faxcoin/server/node/Node.java | UTF-8 | 586 | 2.15625 | 2 | [] | no_license | package com.faxcoin.server.node;
import com.faxcoin.communication.Message;
import com.faxcoin.communication.messenger.MessengerAddress;
import java.util.Collection;
import java.util.List;
public interface Node {
void sendMessage(Message msg);
void receiveMessage(Message msg);
NodeAddress getAddress();
Collec... | true |
bab0ac8078868474da1484e15b63e7ea87d3c01c | Java | IsaiahEhlis/APCS | /Labs/lab21_BlackJack_GUI/Player.java | UTF-8 | 379 | 2.34375 | 2 | [] | no_license | // A+ Computer Science - www.apluscompsci.com
//Name -
//Date -
//Class -
//Lab -
package lab21_BlackJack_GUI;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import lab21_BlackJack_GUI.AbstractPlayer;
public class Player extends AbstractPlayer {
//constructors
pu... | true |