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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ff05c51ef328c4403ef4d0d8db4485ab73bd13af | Java | NaveenAutomationHub/PageObjectModelAndDataDrivenFramework | /src/test/java/com/qa/reports/practice/excelReportsInSelenium/TestClassOne.java | UTF-8 | 475 | 2.125 | 2 | [] | no_license | package com.qa.reports.practice.excelReportsInSelenium;
import org.testng.Assert;
import org.testng.SkipException;
import org.testng.annotations.Test;
public class TestClassOne
{
@Test
public void testMethodPass()
{
Assert.assertTrue(true);
}
@Test
public void testMethodFail()
{... | true |
a22437717ea24eadd6b9c5c3eab63d7a9f2029c6 | Java | waseem605/Streamlance | /app/src/main/java/com/example/streamlance/Services/BookNowSummary.java | UTF-8 | 1,608 | 1.648438 | 2 | [] | no_license | package com.example.streamlance.Services;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import com.exam... | true |
d0ebd56690837b989e43e9779488a267eb0ce103 | Java | oburgosm/demo-spring-boot-webflux | /src/main/java/com/capgemini/demo/webflux/model/repository/CustomerRepository.java | UTF-8 | 351 | 1.671875 | 2 | [] | no_license | package com.capgemini.demo.webflux.model.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.capgemini.demo.webflux.model.domain.Customer;
/**
*
* @author oburgosm
*/
@Repository
public interface CustomerRepository extends JpaRepos... | true |
eac2dd22b9db09f9a138cf813041b33f38292f6b | Java | Sun940201/SpringSpider | /files/Spring_XD/XD-3298/spring-cloud-data-admin/src/main/java/org/springframework/cloud/data/admin/controller/TaskController.java | UTF-8 | 3,348 | 1.851563 | 2 | [] | no_license | /*
* Copyright 2015 the original author or authors.
*
* 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 applica... | true |
ecab569f37f2f03ff939c7cef4da516a46d5bff4 | Java | na389/Cocoon | /st/Reserved.java | UTF-8 | 1,726 | 2.765625 | 3 | [] | no_license | package st;
import java.util.ArrayList;
public class Reserved {
private static ArrayList<String> reservedList;
// import, return , img, filter, int, batch, pipe, string
// color, fan-out, main, copy, sysout, bool, if, else
private static String IMPORT = "import";
private static String RETURN = "return";
private... | true |
89c85dc4db828f77aa2ea7e306470cc085264288 | Java | stdevi/javaPatterns | /src/CreationalPatterns/AbstractFactory/Products/Mouse.java | UTF-8 | 142 | 2.28125 | 2 | [] | no_license | package CreationalPatterns.AbstractFactory.Products;
/**
* Created by dvsta on 23.11.2017.
*/
public interface Mouse {
void click();
}
| true |
03301c19d7b74290aefa32ee17417eaef3d872c7 | Java | WalterNyeko/customizable-school-system | /Kisugu High School/src/school/ui/student/AddNewPost.java | UTF-8 | 1,898 | 2.625 | 3 | [] | no_license | package school.ui.student;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
public... | true |
2bb460c7c21a30c64bb9aa693244fade166d29ae | Java | Zulfa2020/SPRINGCORE | /34-LayeredApplication-StrategyDP-AnnotationDriven/src/zulfa/dao/EmployeeDAO.java | UTF-8 | 139 | 1.703125 | 2 | [] | no_license | package zulfa.dao;
import zulfa.bo.EmployeeBO;
public interface EmployeeDAO {
public int insert(EmployeeBO bo)throws Exception;
}
| true |
fb7f2bfe90cfab7edb3283cafc24684828e8a62a | Java | L4utaro/PP2 | /PP2/src/modelo/ObjetoGrafico.java | ISO-8859-10 | 982 | 2.828125 | 3 | [] | no_license | package modelo;
import java.awt.Color;
import entorno.Entorno;
import modelo.objeto.*;
import object.Coordinate;
public abstract class ObjetoGrafico {
protected Coordinate coordenada;
protected Tamao tamao;
protected Imagen imagen;
protected Color color;
public ObjetoGrafico()
{
}
//p... | true |
614f93f9f7cda8defc721497957643dae954349a | Java | DreamFlyC/CRM | /src/main/java/com/lw/shiroaction/rolevalue/action/ShiroActionRoleValueAction.java | UTF-8 | 2,593 | 1.945313 | 2 | [] | no_license | package com.lw.shiroaction.rolevalue.action;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.w... | true |
5d476fd671fbbeda033a72c50b8582ccde9d10d7 | Java | feilfeilundfeil/azure-gradle-plugins | /azure-webapp-gradle-plugin/src/test/java/lenala/azure/gradle/webapp/LiveTests.java | UTF-8 | 1,067 | 1.90625 | 2 | [
"MIT"
] | permissive | package lenala.azure.gradle.webapp;
import org.gradle.testkit.runner.BuildResult;
import org.gradle.testkit.runner.GradleRunner;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.File;
import java.io.IOException;
impo... | true |
f55d3cf47f30ae235388108d3f7e620fbde6f21a | Java | kxjl168/sboot | /src/main/java/com/ztgm/mall/pojo/Manager.java | UTF-8 | 4,106 | 1.960938 | 2 | [
"MIT"
] | permissive | package com.ztgm.mall.pojo;
import com.ztgm.mall.util.PasswordUtil;
import java.util.Date;
/**
* 后台登陆人员
* @author zj
* @date 2018年5月29日
*
*/
public class Manager {
public static final String Role_ID_Sys="1";
public static final String Role_ID_ProjOper="2";
public static final String Role_ID_Supp... | true |
87e0bccf109355b1a423dfcc2fef6b780161eeb6 | Java | OzMaatuk/openUniversity | /into to CS/Java Projects/Exams/2006b-a2/A.java | UTF-8 | 121 | 2.53125 | 3 | [] | no_license | public class A {
private int _n;
public A()
{
System.out.println ("I'm A's constructor");
}
public A(int n)
{
_n = n;
}
} | true |
e20aa4c7dce8f6326aa93e5e42d3869a24483aa8 | Java | cheryomushkin/ycache | /src/test/java/ru/datastructure/ycache/YcacheLruTestCase.java | UTF-8 | 3,178 | 2.921875 | 3 | [] | no_license | package ru.datastructure.ycache;
import static org.junit.Assert.assertNull;
import org.junit.Test;
import ru.datastructure.ycache.contract.Cache;
import ru.datastructure.ycache.contract.CacheType;
public class YcacheLruTestCase extends AbstractCacheTestCase {
public YcacheLruTestCase() {
super(CacheTyp... | true |
ba798d228d99adce826443df2a701194b218aeb5 | Java | alexleo11/matriz | /src/frmVentana.java | UTF-8 | 13,956 | 3.34375 | 3 | [] | no_license |
import javax.swing.JOptionPane;
/*
* 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.
*/
/**
*
* @author STEVEN
*/
public class frmVentana extends javax.swing.JFrame {
/**
* Cr... | true |
f6036963a87115c609c40688bb7b42d6ce1727a2 | Java | Super262/LeetCodeSolutionsInJava | /src/Solutions/Problem0130.java | UTF-8 | 1,213 | 3.21875 | 3 | [] | no_license | package Solutions;
public class Problem0130 {
public void solve(char[][] board) {
if (board == null || board.length == 0 || board[0].length == 0) {
return;
}
for (int i = 0; i < board.length; ++i) {
clean(board,i,0);
clean(board,i,board[0].length - 1);
... | true |
a7feaea811477d0e90bbb5fc7556734c5c11cac4 | Java | prettysoldier/mycode | /src/main/java/source_code_java/java_/lang/object/CallByValueTest.java | UTF-8 | 863 | 3.640625 | 4 | [] | no_license | package source_code_java.java_.lang.object;
/**
* @author heshuaijun
* @date 2019/11/23 23:47
*/
public class CallByValueTest {
public static void main (String[] args) {
howToProveJavaIsCallByValue();
}
/**
* 如何证明Java是按值传递的,而不是按引用传递的!
* 交换逻辑并没有实现。
*/
private static void howT... | true |
4eb3506f74ed201d70622d71418ae5a66297b4ec | Java | chandan23-max/NTHB13 | /HBAnnoProj11-AnnotationDriven/src/main/java/com/nt/test/ProductTestAnn.java | UTF-8 | 1,717 | 2.515625 | 3 | [] | no_license | package com.nt.test;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.boot.Metadata;
import org.hibernate.boot.MetadataSources;
import org.hibernate.boot.registry.StandardServiceRegistry;
import o... | true |
e848a2cc89c90540345aea0adff6186331f83845 | Java | dunzhixuan/Rxjava2master | /app/src/main/java/com/zhixuan/app/rxjava2_master/Repeat.java | UTF-8 | 1,951 | 3.234375 | 3 | [] | no_license | package com.zhixuan.app.rxjava2_master;
import java.util.concurrent.TimeUnit;
import io.reactivex.Observable;
import io.reactivex.ObservableSource;
import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Consumer;
import io.reactivex.functions.Function;
public class Re... | true |
00d3089adde559d8ae264f93636f51cec79e3bac | Java | bbl4229112/gnhzb | /gnhzb/src/edu/zju/cims201/GOF/service/draft/DraftTypeService.java | UTF-8 | 547 | 1.679688 | 2 | [] | no_license | package edu.zju.cims201.GOF.service.draft;
import java.util.List;
import edu.zju.cims201.GOF.hibernate.pojoA.DraftType;
public interface DraftTypeService {
public List<DraftType> getAllIsnotMaster();
public List<DraftType> getAll();
public String editModel(long id,String typeSuffix,String typeDes);
pub... | true |
68e96e4a65096d86f471bc0ed61774f860099738 | Java | ibmchandu/cloudIBMApplication | /src/main/java/com/example/repository/CustomerRepository.java | UTF-8 | 283 | 1.71875 | 2 | [] | no_license | package com.example.repository;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import com.example.domain.Customer;
@Repository
public interface CustomerRepository extends MongoRepository<Customer, String>{
}
| true |
693aaca50731233e029581a9640608034d85a679 | Java | AnanTripathi/Ajneri_Industries | /app/src/main/java/com/example/ajneriindustries/unit/UnitsAdapter.java | UTF-8 | 2,560 | 2.234375 | 2 | [] | no_license | package com.example.ajneriindustries.unit;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annota... | true |
1d470958d1b04fea6de0de259dcd20d4dae156a3 | Java | anagchaio/UTN-Lab3 | /GuiaObjetos1/src/com/Lab3/Main.java | UTF-8 | 2,717 | 3.625 | 4 | [] | no_license | package com.Lab3;
import com.Lab3.ejercicio5.Time;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
/*
//Exercise1
//1.a
Rectangle r1 = new Rectangle(5.8, 3.2);
//1.b
System.out.println("The length of the rectangle is: "+ r1.getLength()... | true |
10ed75e74713a3d4a9e1959fd163b15f935a3cc9 | Java | dbpro-flink-dsp/streaming | /src/main/java/impro/functions/LPCMultiple.java | UTF-8 | 5,668 | 2.53125 | 3 | [] | no_license | package impro.functions;
import impro.data.KeyedDataPoint;
import org.apache.flink.api.java.tuple.Tuple;
import org.apache.flink.streaming.api.functions.windowing.WindowFunction;
import org.apache.flink.streaming.api.windowing.windows.TimeWindow;
import org.apache.flink.util.Collector;
import java.util.Arrays;
import... | true |
ee654b633295599c7a8593db384a5c876f8b0fc2 | Java | qwe1234567wwwr/Selenium1917Demo | /src/test/java/com/xiaoyan/day02/SelectTest.java | UTF-8 | 1,578 | 2.703125 | 3 | [] | no_license | package com.xiaoyan.day02;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
imp... | true |
d11501baabfd0a02770bb12f3f67a2209e44b981 | Java | StratfordHS-CS2/Lab-04-Geometry | /CircleRunner.java | UTF-8 | 804 | 3.59375 | 4 | [] | no_license | /**
* CircleRunner tests the Geometry.circleArea method.
*
* @author Dave Avis
* @version 7.26.2018
*/
public class CircleRunner
{
/**
* main method runs a list of predefined tests.
*
* @param args Not Used
*/
public static void main( String[] args )
{
double[] radiusLis... | true |
9ac95260337ff5017d08c535d88fe7d1a5939b5c | Java | deepakbitragunta/PayrollGeneration | /src/com/adp/dto/CompanyUpdateForm.java | UTF-8 | 293 | 1.96875 | 2 | [] | no_license | package com.adp.dto;
import org.apache.struts.action.ActionForm;
public class CompanyUpdateForm extends ActionForm {
String company_name;
public String getCompany_name() {
return company_name;
}
public void setCompany_name(String companyName) {
company_name = companyName;
}
}
| true |
29f8cad7ab53ffee578ad01a582147bb182bd445 | Java | sherry-hexichen/learning-Java | /assignment 3/Q2/Checkbox.java | UTF-8 | 1,458 | 3.71875 | 4 | [] | no_license | /**
* Checkbox.java
* COMP 1020
* (C) Computer Science, University of Manitoba
* A standard checkbox
*/
public class Checkbox extends GUIelement {
//The small distance from the right edge of the box to the label.
private static final double MARGIN = 0.005;
//Constructor
public Checkbox(do... | true |
de53b1138394841fba8a13bceb040c0a984d4096 | Java | berten/scimitar | /communication/irc/src/test/java/be/deschutter/scimitar/irc/EventFactoryImplTest.java | UTF-8 | 1,991 | 2.03125 | 2 | [] | no_license | package be.deschutter.scimitar.irc;
import be.deschutter.scimitar.events.Event;
import be.deschutter.scimitar.events.ReturnType;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.pircbotx.Channel;
i... | true |
235b7678a7f7887d2e14518912a8cd5149166c52 | Java | aiodauidha/c3-wwn | /week4/src/Task11.java | UTF-8 | 1,955 | 3.28125 | 3 | [] | no_license | class Message{
private String title;
private String content;
private boolean flag = true;
public synchronized void set(String title, String content) {
if (this.flag == false) {
try {
super.wait();
} catch (InterruptedException e) {
e.printS... | true |
fa03f2b145ad86e983943a51218609ee4caa1a32 | Java | hmsck/gosu-lang | /gosu-lab/src/main/java/editor/debugger/BreakpointsDialog.java | UTF-8 | 22,714 | 1.601563 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | package editor.debugger;
import editor.DefaultContextMenuHandler;
import editor.EditorHost;
import editor.EditorScrollPane;
import editor.GosuEditor;
import editor.GosuPanel;
import editor.GotoExceptionTypePopup;
import editor.IHandleCancel;
import editor.LabFrame;
import editor.Scheme;
import editor.splitpane.Collaps... | true |
5087dd269aa40064853a3908dd5ec39a5ad0c6ac | Java | Abhishek-Digha/ARCVisualTesting | /ArcVisualTesting/src/test/resources/com/arc/testScripts/login/TestLoginWithParameterization.java | UTF-8 | 1,176 | 2.359375 | 2 | [] | no_license | package com.arc.testScripts.login;
import java.io.IOException;
import org.testng.SkipException;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import com.arc.pageLibrary.loginLogoutPage.LoginLogoutPage... | true |
fbfb29939d0109501fc6c8f8620b53ebaa27687c | Java | candgn/Fahrschule4YOU | /app/src/main/java/com/projekt/fahrschule4you/Web/Api.java | UTF-8 | 2,677 | 1.554688 | 2 | [] | no_license | package com.projekt.fahrschule4you.Web;
public class Api {
private static final String ROOT_URL = "http://panel.4you-fahrschule.de/EhliyetApi/v1/Api.php?";
public static final String URL_READ_LOGIN = ROOT_URL + "apicall=giris_kontrol";
public static final String URL_READ_KATEGORILER = ROOT_URL + "apic... | true |
24cd93cb9dd833944442db6101833974d12a7d95 | Java | zhongxingyu/Seer | /Diff-Raw-Data/28/28_c28d2d3dcd161760223fe5acfbc599735ee5192b/Announce/28_c28d2d3dcd161760223fe5acfbc599735ee5192b_Announce_s.java | UTF-8 | 1,069 | 2.40625 | 2 | [] | no_license | package org.monstercraft.irc.plugin.command.irccommand;
import org.monstercraft.irc.MonsterIRC;
import org.monstercraft.irc.plugin.command.IRCCommand;
import org.monstercraft.irc.plugin.util.IRCColor;
import org.monstercraft.irc.plugin.util.Variables;
import org.monstercraft.irc.plugin.wrappers.IRCChannel;
p... | true |
b70ba74bec2ec3c312052309821b7588cb4d7816 | Java | watano/watano-utils | /watano-commons/src/main/java/com/watano/util/CommonUtil.java | UTF-8 | 1,062 | 2.640625 | 3 | [] | no_license | package com.watano.util;
import java.text.ParseException;
import java.util.Date;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.apache.commons.lang3.time.DateUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class CommonUtil {
private static final Logger LOG = Logge... | true |
23337dcacc82bee4c77345367826d99e2612dd71 | Java | NohaTim/voyage | /src/main/java/com/oncf/voyageapi/rest/vo/ElementItineraireVo.java | UTF-8 | 1,535 | 2.015625 | 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 com.oncf.voyageapi.rest.vo;
/**
*
* @author Salma
*/
public class ElementItineraireVo {
private Long id;
... | true |
e583e58cd8a0a99fed2f648c830e2292f6bad322 | Java | limingxu/SelfSoftShop | /Sping_mvc/src/com/jxt/service/RoleInfoService.java | UTF-8 | 549 | 1.601563 | 2 | [
"Apache-2.0"
] | permissive | package com.jxt.service;
import java.util.List;
import com.jxt.domain.RoleInfo;
/**
* Coder AutoGenerator generate.
*
* @author Coder AutoGenerator by Xing,XiuDong
* @date 2013-07-20 19:16:28
*/
public interface RoleInfoService {
Long createRoleInfo(RoleInfo t);
int modifyRoleInfo(RoleIn... | true |
63703ac6dc9bed5d29d937e9365512d640ae559e | Java | cheese8/spring-cloud-gateway-nacos | /sc-gateway-server/src/main/java/com/example/scgateway/route/DynamicRouteServiceImplByNacos.java | UTF-8 | 2,184 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.example.scgateway.route;
import com.alibaba.fastjson.JSON;
import com.alibaba.nacos.api.NacosFactory;
import com.alibaba.nacos.api.config.ConfigService;
import com.alibaba.nacos.api.config.listener.Listener;
import com.alibaba.nacos.api.exception.NacosException;
import lombok.extern.slf4j.Slf4j;
import org... | true |
6e3b6737431cef029e724520f447ef152a5f9d47 | Java | fulldecent/AVM | /org.aion.avm.tooling/src/org/aion/avm/tooling/AddressUtil.java | UTF-8 | 1,008 | 2.203125 | 2 | [
"MIT"
] | permissive | package org.aion.avm.tooling;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import org.aion.types.AionAddress;
import org.aion.avm.tooling.hash.HashUtils;
import org.aion.kernel.TestingKernel;
import org.aion.vm.api.interfaces.TransactionInterface;
/**
* This is a temporary helper class until the contra... | true |
27595a9cf42c734cc11327c0a282b3512dfd75e6 | Java | fschibilla/onlineProject | /Klabautermann.java | UTF-8 | 263 | 2.171875 | 2 | [] | no_license | package onlineProject;
public class Klabautermann {
public static void main(String[] args)
{
System.out.println("Klabautermann");
System.out.println("Klabauterfrau");
System.out.println("Klabauterkind");
System.out.println("im Schiffe sind.");
}
}
| true |
0644853e20c76a31585676b5a4c9ab392e59e820 | Java | 13eaZhy/Second | /Second/src/HouseApp.java | UTF-8 | 403 | 3.375 | 3 | [] | no_license | // Primary class
public class HouseApp {
public static void main(String[] args) {
}
public static void SwitchOnLights(){
System.out.println("Yes LORD ! Lights are on");
}
}
// Secondary class
class John {
public static void sayHi(){
System.out.println("Hello, my name is John");
}
}
class Lucy{
... | true |
705a6937ef03a452fcd071e3425e24d29b0b5cd8 | Java | phroa/2015-Recycle-Rush | /RobotCode/MecanumDrive/src/main/java/org/usfirst/frc4915/MecanumDrive/commands/autonomous/AutonomousCommandStacking.java | UTF-8 | 4,555 | 2.984375 | 3 | [
"MIT"
] | permissive | package org.usfirst.frc4915.MecanumDrive.commands.autonomous;
import edu.wpi.first.wpilibj.command.CommandGroup;
import org.usfirst.frc4915.MecanumDrive.commands.drive.*;
import org.usfirst.frc4915.MecanumDrive.commands.elevator.ElevatorIsAbovePositionNumberCommand;
import org.usfirst.frc4915.MecanumDrive.commands.ele... | true |
c837b8ec80d2fc71062c43a7cd10a4733791792a | Java | dovgyj/demo1 | /src/main/java/com/softserve/ita/demo1/services/interfaces/CategoryService.java | UTF-8 | 678 | 2.078125 | 2 | [] | no_license | package com.softserve.ita.demo1.services.interfaces;
import com.softserve.ita.demo1.DAO.exception.DAOException;
import com.softserve.ita.demo1.entities.Category;
import java.util.List;
public interface CategoryService {
Category getById(Integer id) throws IllegalArgumentException, DAOException;
List<Categor... | true |
08dd5ef7603210b827f9037ebfdd8070165b3cf1 | Java | arimuntari/Algoritma-Scheduling-FIFO-SJF-Round-Roubin-Priority- | /scheduling/src/main/SJF.java | UTF-8 | 1,351 | 2.515625 | 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 main;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
publi... | true |
6e3e376f63632edabe240be7e55bedb314756436 | Java | marcosrbonetto/coolblue-assignment | /app/src/main/java/com/assignments/francisco/coolblueassignment/data/model/CurrentPrice.java | UTF-8 | 763 | 2.265625 | 2 | [] | no_license | package com.assignments.francisco.coolblueassignment.data.model;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Root;
import org.simpleframework.xml.Text;
/**
* CurrentPrice model class for ebay products response.
*
* @author Francisco Visintini
*/
@Root(name = "currentPrice", strict = f... | true |
4fde28d730182d43ed71e628791a17c7325f7ea3 | Java | SmileYik/miSkYleMinecraftPluginTool | /src/com/github/miskyle/mcpt/mysql/MySQLManager.java | GB18030 | 1,341 | 2.828125 | 3 | [] | no_license | package com.github.miskyle.mcpt.mysql;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import com.github.miskyle.mcpt.server.Logger;
public class MySQLManager {
private static String url;
private static String userName;
privat... | true |
17572a71b4a5775a9901499faa87b4707588c304 | Java | nuxeo/richfaces-3.3 | /cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd/Component.java | UTF-8 | 2,841 | 2.234375 | 2 | [] | no_license | /**
* License Agreement.
*
* Rich Faces - Natural Ajax for Java Server Faces (JSF)
*
* Copyright (C) 2007 Exadel, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software ... | true |
db7470743ec6dc39916d02479661ea9db00e5b2a | Java | Morty123456/LeetCode | /src/algorithm/tableSizeFor.java | UTF-8 | 592 | 3.09375 | 3 | [] | no_license | package algorithm;
import java.util.HashMap;
import java.util.Map;
public class tableSizeFor {
public static void main(String[] args){
Map map = new HashMap();
int cap1 = 2;
int cap2 = 7;
int cap3 = 0;
System.out.println(tableSizeFor(cap3));
// System.out.println(ta... | true |
48d7d2de37db5d523165bb260be957c248c59dd5 | Java | technocode/com.wa_2.21.2 | /src/main/java/X/AnonymousClass1HN.java | UTF-8 | 531 | 1.546875 | 2 | [] | no_license | package X;
import android.view.ViewTreeObserver;
import com.whatsapp.StatusPrivacyActivity;
/* renamed from: X.1HN reason: invalid class name */
public final /* synthetic */ class AnonymousClass1HN implements ViewTreeObserver.OnScrollChangedListener {
public final /* synthetic */ StatusPrivacyActivity A00;
... | true |
781ccbe9dd18fb08bf90396a834e6c3414744ff0 | Java | amurphy181/SDPre | /Labs/Objective3Lab3.java | UTF-8 | 1,159 | 4.15625 | 4 | [] | no_license | import java.util.Scanner;
public class Objective3Lab3{
public static void main(String[] args){
int birthYear, age, currentYear;
String birthday;
Scanner input = new Scanner(System.in);
birthYear = 0;
currentYear = 2018;
System.out.println("How old are you?");
age = input.nextInt();
... | true |
c0c84772eb124b5bee5c892b43d60eb0c2a95d95 | Java | RationaleEmotions/log4t | /src/test/java/com/rationaleemotions/App2Test.java | UTF-8 | 268 | 1.578125 | 2 | [
"Apache-2.0"
] | permissive | package com.rationaleemotions;
import org.testng.annotations.Test;
public class App2Test {
@Test
public void testMethod1() {
Log4T.getLogger().info("testMethod1");
}
@Test
public void testMethod2() {
Log4T.getLogger().info("testMethod1");
}
}
| true |
6c2697b8e869b48de9cfa3c347a929a94a2794ff | Java | DAATeam/DAA_Official | /src/main/java/com/uit/daa/issuer/Jdbc/IssuerJdbcTemplate.java | UTF-8 | 17,140 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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 com.uit.daa.issuer.Jdbc;
import com.mysql.jdbc.PreparedStatement;
import com.sun.javafx.collections.MappingChange.Map;
import ... | true |
439bea1746ce455caf8c91d97041bef751fe1a01 | Java | xsren/AndroidReverseNotes | /docs/weixin_7.0.4_source/反编译源码/反混淆后/src/main/java/com/tencent/p177mm/plugin/appbrand/p904k/C38409c.java | UTF-8 | 3,487 | 1.539063 | 2 | [] | no_license | package com.tencent.p177mm.plugin.appbrand.p904k;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.p177mm.network.C1902e;
import com.tencent.p177mm.network.C1918k;
import com.tencent.p177mm.network.C1929q;
import com.tencent.p177mm.p183ai.C1202f;
import com.tencent.p177mm.p183ai.C1207m;
import co... | true |
20cf90d6878e9d0b9065137b82775fb4c2f6a018 | Java | daalft/NarrativeSchemas | /src/preprocess/Preprocessor.java | UTF-8 | 2,020 | 2.609375 | 3 | [] | no_license | package preprocess;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import edu.stanford.nlp.dcoref.CorefChain;
import edu.stanford.nlp.dcoref.CorefCoreAnnotations.CorefChainAnnotation;
import edu.stanford.nlp.ling.CoreAnnotations.Sentence... | true |
b412e53e22e437f508e0dc4e10a90d29dbbbf4aa | Java | bgee0915/base | /src/com/bgee/base/reflect/ReflectDemo5.java | UTF-8 | 588 | 2.953125 | 3 | [] | no_license | package com.bgee.base.reflect;
import com.bgee.base.util.common.FunUtil;
/**
* 通过反射获知实现的接口
* @author bgee0915
*
*/
public class ReflectDemo5 {
public static void main(String[] args) {
Class<?> classdemo5 = null;
try {
classdemo5 = Class.forName("com.bgee.base.reflect.Dog");
Class<?... | true |
758d02d61e6c5e15ea084972be9921b08724e754 | Java | EmilianoGarro/SistemaDeBibliotecaGrupo3 | /src/sistemabibliotecagrupo3/modelos/Autor.java | UTF-8 | 2,405 | 2.65625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sistemabibliotecagrupo3.modelos;
import java.time.LocalDate;
/**
*
* @author Emiliano
*/
public class Autor {... | true |
7e7b174e419d0d41b89f932c6b1d6f5676e0ccd3 | Java | Anordil/CharacterSheet | /app/src/main/java/com/guigeek/devilopers/dd5charactersheet/character/classes/fighter/Fighter.java | UTF-8 | 10,493 | 1.851563 | 2 | [] | no_license | package com.guigeek.devilopers.dd5charactersheet.character.classes.fighter;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import com.guigeek.devilopers.dd5charactersheet.App;
import com.guigeek.devilopers.dd5charactersheet.R;
import com.guigeek.devilopers.dd5c... | true |
38da76762444742b092d821e470f5372825a1dc6 | Java | YanJkCode/YTabView | /BaseTabView/src/main/java/com/yanjkcode/ytabview/YTabLayout.java | UTF-8 | 12,523 | 1.820313 | 2 | [] | no_license | package com.yanjkcode.ytabview;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Pain... | true |
6d539a64203a42f67e3d345df0d7cdd3999f0b24 | Java | lmtoo/web | /src/main/java/cn/lmtoo/core/security/extend/web/filter/authc/CaptchaFormAuthenticationFilter.java | UTF-8 | 1,837 | 2.125 | 2 | [] | no_license | package cn.lmtoo.core.security.extend.web.filter.authc;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.web.filter.authc.FormAuthenticationFilter;
import org.apa... | true |
e50f85bedf9515acff6ea54007947ac9d20c8ed0 | Java | moutainhigh/chdHRP | /src/com/chd/hrp/pac/dao/fkht/payment/PactPayDetFKHTMapper.java | UTF-8 | 416 | 1.601563 | 2 | [] | no_license | package com.chd.hrp.pac.dao.fkht.payment;
import java.util.List;
import java.util.Map;
import com.chd.base.SqlMapper;
import com.chd.hrp.pac.entity.fkht.payment.PactPayDetFKHTEntity;
public interface PactPayDetFKHTMapper extends SqlMapper {
void deleteByPayCode(List<PactPayDetFKHTEntity> list);
void deleteAllBat... | true |
81483f91ff3fdbfb15128d9e3afd105778ab0b47 | Java | k--chow/CompetitiveProgramming | /SPOJ/BISHOPS.java | UTF-8 | 638 | 3.3125 | 3 | [] | no_license | import java.util.*;
import java.io.*;
import java.math.*;
class BISHOPS
{
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//static PrintWriter out = new PrintWriter(System.out);
public static void main(String [] args) throws IOException
{
String line;
while((line = br.readLin... | true |
e73c1fc5bc0e2926790d2550abd188968d77c2f5 | Java | Boombarm/onlinejudge | /Java/URI_BEECROWD/BEGINNER/P1013_TheGreatest.java | UTF-8 | 1,121 | 3.3125 | 3 | [] | no_license | package URI.Accepted.BEGINNER.sourcecode;
/**
*
* @author Teerapat Phokhonwong
*/
//URI Online Judge | 1013 The Greatest https://www.urionlinejudge.com.br/judge/en/problems/view/1013
//Accepted 10/06/2015 - 12:51:12 Runtime:0.048s
//2 Greatest
import java.io.BufferedReader;
import java.io.IOException;
import java... | true |
a644635d81a1cf611c4df05208daf9816de9f4da | Java | thevpc/nuts | /core/nuts/src/main/java/net/thevpc/nuts/reserved/NReservedBootConfigLoader.java | UTF-8 | 6,686 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | /**
* ====================================================================
* Nuts : Network Updatable Things Service
* (universal package manager)
* <br>
* is a new Open Source Package Manager to help install packages
* and libraries for runtime execution. Nuts is the ultimate companion for
* maven (and other bu... | true |
8e6c41dbd36dc1840dacd69e8e5fd7acc436af9d | Java | haysiA09/P03ClassJournal | /app/src/main/java/com/example/p03_classjournal/Module.java | UTF-8 | 268 | 1.851563 | 2 | [] | no_license | package com.example.p03_classjournal;
public class Module {
private String code;
private String grade;
private String week;
public String getCode(){
return code;
}
public String getGrade(){
return grade;
}
public
}
| true |
56ec6a328bdb9c3ac630936b84be2d6c2e565495 | Java | chlals862/Algorithm | /AlgorithmStudy/src/CodeUp/조건문/_1157.java | UTF-8 | 286 | 3.0625 | 3 | [] | no_license | package CodeUp.조건문;
import java.util.Scanner;
public class _1157 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
float num = sc.nextFloat();
if(num >= 50 && num <= 60) System.out.println("win");
else System.out.println("lose");
}
}
| true |
a67064e1115dae2426f1ec0aadc56b76b79185e5 | Java | ojh3391/Oteam | /CFK/src/board/model/BoardVoteAction.java | UTF-8 | 1,233 | 2.265625 | 2 | [] | no_license | package board.model;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import action.Action;
import action.ActionForward;
import dao.BoardDAO;
import dao.UserDAO;
import vo.UserVO;
public class BoardVoteAction implements Action {
... | true |
26cee72a8a6d40aab4225fcbba63baa6ecc4dd44 | Java | MShinskiy/university-course-work | /CE203/Assignment2/code/Objects.java | UTF-8 | 548 | 3.109375 | 3 | [] | no_license | package code;
import java.awt.*;
public abstract class Objects {
/**
* Abstract class,
* super class of code.Ball, code.Paddle, code.Block
*/
int xPos, yPos; //coords of top left
int width, height; //size
Color color;
public Objects(int width, int height, int xP... | true |
932fd8cd4f19280511d9934e280d17c5ad69cf42 | Java | siri2021/fooda-backend-store | /src/main/java/be/fooda/backend/store/model/entity/ProductEntity.java | UTF-8 | 1,425 | 2.078125 | 2 | [] | no_license | package be.fooda.backend.store.model.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import org.hibernate.search.annotations.*;
import org.hibernate.search.bridge.builtin.BigDecimalBridge;
import org.hibernate.validator.constraints.URL;
import javax.persistence.*;
import java.math.BigDec... | true |
3bbf0d21f9e2b9b82c17a8d05b0a8587a0d7a32b | Java | rzCodec/ChessFinderRepo | /app/src/main/java/myapp/chessfinderapp/view/ProfileActivity.java | UTF-8 | 6,794 | 2.015625 | 2 | [] | no_license | package myapp.chessfinderapp.view;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import android.widget.Button;
import android.widget.Toast;
import android.widget.EditText;
import android.content.Intent;
im... | true |
2d07686f3d58ca176da239777ac9b5f212e0a9a5 | Java | rvm-11-11/arch-dz | /DZ5/spring-app/src/main/java/rvm/dz/dz5/responses/UseCaseResponse.java | UTF-8 | 157 | 1.84375 | 2 | [] | no_license | package rvm.dz.dz5.responses;
import org.springframework.http.ResponseEntity;
public interface UseCaseResponse {
ResponseEntity toResponseEntity();
}
| true |
69327103606b8f923272bba0344b7f7953657ed0 | Java | BeeShall/Lonagna_Android | /app/src/main/java/bregmi1/ramapo/edu/longana_android/model/Domino.java | UTF-8 | 2,018 | 3.421875 | 3 | [] | no_license | package bregmi1.ramapo.edu.longana_android.model;
import java.io.Serializable;
/**
* Created by beeshall on 10/17/17.
*/
public class Domino implements Serializable {
//left side pip of the domino
private int pip1;
//right side pip of the domino
private int pip2;
//indicates if the domino is a ... | true |
1c57a02f012ed10734da464118c2ea3ed9d9ef03 | Java | Volomond/autoTask | /src/com/epam/automent/task4/MainFour.java | UTF-8 | 2,542 | 3 | 3 | [] | no_license | package com.epam.automent.task4;
import com.epam.automent.task4.service.TimeCalculation;
import java.util.*;
public class MainFour {
public static void main(String[] args) {
int value = 78545;
int length = 100000;
int resFirst;
int resSecond;
List<Integer> arrayList = ... | true |
d603b12d9f55a89636c2ac7fe01ff0d93c4b06b1 | Java | xieahirui/first-git | /Sort/src/SelectSort.java | UTF-8 | 595 | 3.25 | 3 | [] | no_license | /*
选择排序
*/
public class SelectSort {
public static void main(String[] args){
int[] a = {3,1,6,2,5};
for(int i = 0;i<a.length-1;i++){
int min = i;
for(int j = i;j<a.length-1;j++){
if(a[min] > a[j+1]){
min = j+1;
}
... | true |
7938cce78290c9b4a0e2d8040a3d771487464931 | Java | joshyyyu/Chess | /Chess/src/pieces/King.java | UTF-8 | 1,413 | 3.359375 | 3 | [] | no_license | package pieces;
import chess.Cell;
import chess.PlayerColor;
/**
* King class
* @author Joshua Yu
* @author Jie Ouyang
*
*/
public class King extends ChessPiece{
/**
* Return name K
*/
@Override
public String getChessName() {
// TODO Auto-generated method stub
return "K";
}
/*... | true |
12bf3610bcf4b00ab4a3e721b8ddf4e952b8eca1 | Java | Peterlcc/AIMonkey | /src/main/java/com/peter/algorithm/impl/GA.java | UTF-8 | 10,705 | 2.3125 | 2 | [] | no_license | package com.peter.algorithm.impl;
import com.peter.algorithm.IGeneticAlgorithm;
import com.peter.bean.Genome;
import com.peter.bean.Operator;
import com.peter.bean.Param;
import com.peter.config.GlobalParam;
import com.peter.function.GAFunction;
import com.peter.function.OnGeneration;
import com.peter.service... | true |
4a76f70bb95bc2ee647c771f586ae3e7b605aaeb | Java | spring-cloud/spring-cloud-dataflow | /spring-cloud-dataflow-common/spring-cloud-dataflow-common-test-docker/src/main/java/org/springframework/cloud/dataflow/common/test/docker/compose/connection/Container.java | UTF-8 | 5,668 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018-2019 the original author or authors.
*
* 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 a... | true |
ebf176a8d75d97100bc7985ac0eda0404d435cc8 | Java | jadetang/Leetcode-Java11 | /src/main/java/github/jadetang/Debug.java | UTF-8 | 2,668 | 2.9375 | 3 | [] | no_license | package github.jadetang;
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Set;
import org.junit.jupiter.api.Test;
public class Debug {
public static void print(int[][] array) {
for (int[] a : array) {
System.out.println(A... | true |
15815681fe981dbd0261014866128b55fc53058e | Java | Pooja31pc/zupp_travel | /src/main/java/com/zupptravel/assignment/model/AddAmount.java | UTF-8 | 1,400 | 2.359375 | 2 | [] | no_license | package com.zupptravel.assignment.model;
public class AddAmount {
private double eWallet_Amount;
private int store_Credit;
private double play_Money;
private double cashBack;
private String remarks;
public AddAmount() {
}
public AddAmount(double eWallet_Amount, int store_Credit, doub... | true |
6bea5060b293f6d2ececfdd88ad9816f053f83d9 | Java | haileykim5418/night | /java_work/arr1223/src/arr1223/Test3.java | UTF-8 | 321 | 3.015625 | 3 | [] | no_license | package arr1223;
import java.util.Scanner;
public class Test3 {
public static void main(String[] args) {
int arr[] = new int[] { 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 };
int arr2[] = new int[10];
for (int j = 0; j < arr.length; j++) {
arr2[j] = arr[9 - j];
System.out.print(arr2[j]+"\n");
}
}
}... | true |
6701e72f487bead191a667136bba064f7cdad90b | Java | JavierGMo/Practica-Nueve-WebService | /CodigoAndroid/SoftCuatro/app/src/main/java/com/mora/gonzalez/javier/softcuatro/BDPagosPayPal.java | UTF-8 | 853 | 2.125 | 2 | [] | no_license | package com.mora.gonzalez.javier.softcuatro;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import androidx.annotation.Nullable;
public class BDPagosPayPal extends SQLiteOpenHelper {
String sqlCreate = "CREATE TABLE PagosPayPal (_id... | true |
2d8151afd97eb86b8d244f443594f6878a0470c6 | Java | hansol4412/algorithm | /Number77_2.java | UHC | 1,954 | 4.09375 | 4 | [] | no_license | package algorithm;
import java.util.Scanner;
import java.util.Arrays;
public class Number77_2 {
public static void main(String[] args) {
// 77_2. ģΰ
/* л N̰, л 1 N ȣ οǾ ִ.
* Դ л ģ ȣ ǥ ڽ ־.
* (1,2) (2,3) (3,4) ־ 1 л2 л ģ̰, 2 л 3 л
* ģ̰, 3 л 4л ģ̴. ̴ Ǿ 1 л 4 л ģ ִ
* л ģ踦 Ÿ ־ ģ Ǻ α ۼϽÿ... | true |
95451206bb40110d7f402ce34303fd5d57c91562 | Java | ivyding1024/ivyding1024.github.io | /StatisticView.java | WINDOWS-1252 | 21,656 | 1.742188 | 2 | [] | no_license | package com.mdbiomedical.app.vion.vian_health.view;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import com.mdbiomedical.app.vion.vian_health.R;
import com.mdbiomed... | true |
50ac6786900e4b8392c878939235045adb81763d | Java | ivanmius/GameOfLife | /GameOfLifeV1/src/GameOfLifeV2.java | UTF-8 | 10,205 | 3.40625 | 3 | [] | no_license | import java.util.Random;
import components.simplereader.SimpleReader;
import components.simplereader.SimpleReader1L;
import components.simplewriter.SimpleWriter;
import components.simplewriter.SimpleWriter1L;
/**
* First attempt at game of life.
*
* @author Ivan Stoychev
*/
public final class GameOfLi... | true |
cf4728d722b8377a72c6c9b06a17448390372282 | Java | MikeWuang/hawk-client | /net/minecraft/client/gui/GuiLanguage.java | UTF-8 | 6,121 | 1.765625 | 2 | [
"MIT"
] | permissive | package net.minecraft.client.gui;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import java.io.IOException;
import java.util.Iterator;
import java.util.Map;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.I18n;
import net.minecraft.client.resources.Language... | true |
ba93e8ceb36fbf7d6bf9576bd7fc567003429666 | Java | Max-lu/test | /src/test/java/Test.java | UTF-8 | 295 | 2.296875 | 2 | [] | no_license | import java.net.URLEncoder;
public class Test {
public static void main(String[] args) throws Exception{
String a = URLEncoder.encode("环境地址", "UTF-8");
System.out.println(a);
String b = URLEncoder.encode(a, "UTF-8");
System.out.println(b);
}
}
| true |
911441284380bddcb9fe739aec0769caacfebcc2 | Java | jenkinsci/matlab-plugin | /src/test/java/com/mathworks/ci/RunMatlabBuildBuilderTest.java | UTF-8 | 14,419 | 1.820313 | 2 | [
"MIT"
] | permissive | package com.mathworks.ci;
/**
* Copyright 2022 The MathWorks, Inc.
*
*/
import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.junit.After;
import org.ju... | true |
0172828681eff3ed5aafb9ccbb807be569de99b4 | Java | 10sr/junks | /java/classtest/DerivClass.java | UTF-8 | 122 | 2.09375 | 2 | [
"CC0-1.0"
] | permissive | public class DerivClass extends ABSClass{
public int met1()
{
this.a += 1;
return this.a;
}
}
| true |
fef61b3eeccf7ddb7568fa7f9063d809d462e3cf | Java | PannuMuthu/Java | /CS2013/src/ch17/Circle.java | UTF-8 | 1,017 | 3.5625 | 4 | [] | no_license | package ch17;
import java.io.Serializable;
public class Circle implements Serializable{
//private static final long serialVersionUID = 1L;
private double radius;
private String color;
private boolean filled;
private final double PI = 3.14159;
public Circle(double radius, String color, Boolean filled) {
t... | true |
8f3fff3597b6c57c268abfb4796badb8855bdaa4 | Java | RayEltaib/ReplIt_11 | /ReplIt11/src/Arrays_Q109_Q137/Q116.java | UTF-8 | 378 | 2.8125 | 3 | [] | no_license | package Arrays_Q109_Q137;
import java.util.Scanner;
public class Q116 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String sentence = input.nextLine();
//type your code below
String[] arr=sentence.split(" ");
for(String each: arr){... | true |
87f95c89e9a59ef47cf3ab0fb35886abde407f60 | Java | abhi007tyagi/CrashHandlerLib | /crashhandler/src/main/java/com/tyagiabhinav/crashhandler/ExceptionActivity.java | UTF-8 | 7,022 | 2.1875 | 2 | [] | no_license | package com.tyagiabhinav.crashhandler;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Html;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android... | true |
f3ed243f48d053eba5221e551dfb96f273a51add | Java | enochjung/mindmapApplication | /JSizeBox.java | UTF-8 | 1,872 | 2.875 | 3 | [] | no_license | package mindmapApplication;
import java.awt.Color;
import java.awt.Point;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
public class JSizeBox extends JL... | true |
4a25565ad6f2048d45a7c3e6c2ac6815ccaa0201 | Java | nitinkc/Design-Patterns-learning | /src/main/java/com/deisgnpatterns/Structural/S1Decorator/beverageApp/concreteComponents/Decaf.java | UTF-8 | 349 | 2.890625 | 3 | [] | no_license | package com.deisgnpatterns.Structural.S1Decorator.beverageApp.concreteComponents;
import com.deisgnpatterns.Structural.S1Decorator.beverageApp.Beverage;
public class Decaf implements Beverage {
@Override
public Double getCost() {
return 4.5;
}
@Override
public String getDescription() {
... | true |
13820f07e489e9c5df472f3960690ab344284341 | Java | Lilikamary/engenhariadesoftware | /Desenvolvimento/vimperial/src/br/ufpe/cin/vimperial/service/EnderecoService.java | UTF-8 | 526 | 2.203125 | 2 | [] | no_license | package br.ufpe.cin.vimperial.service;
import java.util.List;
import br.ufpe.cin.vimperial.DAO.EnderecoDAO;
import br.ufpe.cin.vimperial.entidades.Endereco;
public class EnderecoService {
private EnderecoDAO dao;
public EnderecoService(){
dao = new EnderecoDAO();
}
public void incluir(E... | true |
b218b4a95e299221d8e38a723886b51b7aeb229c | Java | Mickioqq/SpringDemo | /src/main/java/com/wqq/spring/controller/bean_factory/Main.java | UTF-8 | 669 | 2.78125 | 3 | [] | no_license | package com.wqq.spring.controller.bean_factory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* 配置Bean三种方式
* 1:通过全类名(反射)
* 2:通过工厂方法(静态工厂方法和实例工厂方法)
* FactoryBean
*/
public class Main {
public static void main(String[] args... | true |
7ebafccc0866b41fa2944e7e98b2f0f415c1b575 | Java | cundong/RePlugin | /replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/replugin/PluginDexClassLoader.java | UTF-8 | 11,979 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2005-2017 Qihoo 360 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | true |
3d63c7f995d2d6e034f4ece4709f5ad41d76c089 | Java | 1007169527/AndroidBasic | /HelloWorld/app/src/main/java/com/nereusoft/helloworld/MainActivity.java | UTF-8 | 671 | 2.25 | 2 | [] | no_license | package com.nereusoft.helloworld;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
/**
* Install the Android Studio development environment.
* Create an emulator (virtual device) to run your app on your computer.
* Create and run the Hello World app on the virtual and physical devices.
... | true |
195716aab4399bf309dbe0dcf7f4c8d5076c0ddf | Java | xyzj91/frostmourne | /frostmourne-monitor/src/main/java/com/autohome/frostmourne/monitor/config/BeanConfig.java | UTF-8 | 906 | 1.921875 | 2 | [
"MIT"
] | permissive | package com.autohome.frostmourne.monitor.config;
import java.nio.charset.StandardCharsets;
import com.autohome.frostmourne.monitor.dao.elasticsearch.ElasticsearchSourceManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.h... | true |
40bcc359dddbf7eb1e9459750937a61e57dafc5e | Java | orientechnologies/orientdb | /graphdb/src/test/java/com/orientechnologies/orient/graph/GraphNonBlockingQueryRemoteTest.java | UTF-8 | 5,112 | 2.046875 | 2 | [
"BSD-3-Clause",
"CDDL-1.0",
"Apache-2.0"
] | permissive | package com.orientechnologies.orient.graph;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import com.orientechnologies.orient.core.Orient;
import com.orientechnologies.orient.core.command.OCommandResultListener;
import com.orientechnologies.orient.core.db.OrientDB;
import com... | true |
a5374d2dd754ca0d4262076c7a25b79b6af31a94 | Java | Logende/REQMaster | /implementierung/src/org/dhbw/stuttgart/ita16/reqmaster/model/IIdentifiable.java | UTF-8 | 202 | 2.171875 | 2 | [] | no_license | package org.dhbw.stuttgart.ita16.reqmaster.model;
/**
* Interface für Datenobjekte, welche eine einzigartige Id besitzen.
*/
public interface IIdentifiable {
DataId getId();
String getName();
}
| true |
2ec091d597ff9c724bd3724158220b4601f1ed6b | Java | Sarthak1505/Hostel-Management-App | /app/src/main/java/practicing/development/hostelmanagment/hostelmanagment/student/model/room.java | UTF-8 | 596 | 2.453125 | 2 | [] | no_license | package practicing.development.hostelmanagment.hostelmanagment.student.model;
import com.google.firebase.firestore.PropertyName;
// model class for rooms of hostel
public class room {
private String room_no;
private Boolean available;
public room() {
}
public room(String room_no, Boolean availa... | true |