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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
96360b11e96d8c12c32462db5b28e5dec44a58d9 | Java | rish33/OopsConcept | /src/Abstraction/InterfaceClass.java | UTF-8 | 94 | 2.484375 | 2 | [] | no_license | package Abstraction;
public interface InterfaceClass {
void run();
void sleep();
}
| true |
b96bd8792d6db8e1a5edc8f1a2c3fdf6e323b164 | Java | patriziocannoni/StartSiteTemplate | /StartSiteTemplate/src/main/java/br/com/cannoni/template/view/mbeans/UserSessionBean.java | UTF-8 | 813 | 1.9375 | 2 | [] | no_license | package br.com.cannoni.template.view.mbeans;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import org.apache.log4j.Logger;
import br.com.cannoni.template.model.dto.UserDTO;
/**
* @author patrizio
* @since 30/08/2017... | true |
2be3cc03955f16158a2d2270fa3cc0cbb42e2150 | Java | MSchoend/Inspector | /Inspector.java | UTF-8 | 6,886 | 3 | 3 | [] | no_license |
import java.lang.reflect.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
public class Inspector {
public void inspect(Object obj, boolean recursive) {
Class c = obj.getClass();
inspectClass(c, obj, recursive, 0);
}
private void inspectClass(Class clazz, Objec... | true |
06d770da69736b44ea7c46d63dbe522a1afcb593 | Java | paramsantokh/java-basic | /src/designPatterns/structural/adapter/chargingExample/Samsung.java | UTF-8 | 209 | 2.46875 | 2 | [] | no_license | package designPatterns.structural.adapter.chargingExample;
public class Samsung {
//have a connector
public void chargePhone(String s){
//
//
//
//
//
System.out.println(s);
}
}
| true |
d3fbcb35b75a263f86768dcaec0a0391b27ea598 | Java | ZiDuNet/p6 | /src/main/java/Test/test2.java | UTF-8 | 435 | 1.835938 | 2 | [] | no_license | package Test;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.URL;
public class test2 {
public static void main(... | true |
a374d30709f6efe47219934d64feb442bb6a12a7 | Java | LovinPaul/voya_assignment | /src/main/java/ai/voya_assignment/controllers/AccountAudit.java | UTF-8 | 3,557 | 2.453125 | 2 | [] | no_license | package ai.voya_assignment.controllers;
import ai.voya_assignment.accounts.Account;
import ai.voya_assignment.users.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.... | true |
418d4322970665aa91f0d6a7585439716a3ca352 | Java | suryakantt/junitexercise | /src/test/java/mainn/OrderTest.java | UTF-8 | 1,861 | 2.734375 | 3 | [] | no_license | package mainn;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class OrderTest {
private Order order;
@BeforeEach
void setup() {
this.order = new Order(14, "harmonica", 2000.0);
... | true |
c8552e829be220435b184c4924676fcf2c982e7e | Java | LXiong/RDFgraphs | /stormintegrationtest-project/stormintegrationtest/src/stormintegrationtest/MainFile.java | UTF-8 | 2,467 | 1.976563 | 2 | [] | no_license | package stormintegrationtest;
import backtype.storm.Config;
import backtype.storm.LocalCluster;
import backtype.storm.StormSubmitter;
import backtype.storm.generated.AlreadyAliveException;
import backtype.storm.generated.InvalidTopologyException;
import backtype.storm.spout.SpoutOutputCollector;
import backtype.storm.t... | true |
eb9ff7b81c87fe32772cfcdee16a85dc1b0523b2 | Java | autopp/tree-in-mysql | /src/test/java/tree/ClosureTreeRepositoryTest.java | UTF-8 | 1,105 | 2.015625 | 2 | [] | no_license | package tree;
import com.ninja_squad.dbsetup.DbSetup;
import static com.ninja_squad.dbsetup.Operations.*;
import com.ninja_squad.dbsetup.operation.Operation;
import org.junit.jupiter.api.BeforeEach;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
class ClosureTreeRepos... | true |
77bb42c007846bcb29e4a3f76c31a07b3ce2160c | Java | FreeFlyXiaoMa/Passenger | /app/src/main/java/com/junjun/poitest2/overlayutil/activity/PayActivity.java | UTF-8 | 3,177 | 2.15625 | 2 | [] | no_license | package com.junjun.poitest2.overlayutil.activity;
import android.content.Intent;
import android.graphics.Rect;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.view.Gravity;
import android.view.View;
import android.widget.Bu... | true |
522a15c559ce9e5fd0a3515933f41c4129196271 | Java | jainagarani/Java_Learn | /src/main/java/designpattern/creational/factory/Domestic.java | UTF-8 | 146 | 2.6875 | 3 | [] | no_license | package designpattern.creational.factory;
public class Domestic extends Plan{
@Override
public int getRate() {
return 2;
}
}
| true |
9d0dae84b8f6e27f628667ac0a0b5585dd5d5c5d | Java | RyanTech/dingoApplication | /DingoApplication/app/src/main/java/com/dinggoapplication/custom_ui/HorizontalNumberPicker.java | UTF-8 | 2,674 | 2.8125 | 3 | [] | no_license | /*
* Copyright (C) Technify Pte Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Lee Quee Leong <leequeeleong@technify.com.sg> and
* Seah Siu Ngee <seahsiungee@techinify.com.sg, May 2015
*/
package com.dinggoapplicati... | true |
0e9ebf56f5d5a9da15a376bbd06ea8729cb3c408 | Java | jdebloat/jshrink | /experiment_resources/ohloh_projects/animoto_api_client_java/src/main/java/com/animoto/api/dto/Response.java | UTF-8 | 219 | 1.953125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | package com.animoto.api.dto;
public class Response {
private Status status;
private Payload payload;
public Status getStatus() {
return status;
}
public Payload getPayload() {
return payload;
}
}
| true |
fc36cbecbd9db2a7b60affd5b664b09904d40efb | Java | nik-prostok/it-life-spring | /src/main/java/com/student/information/system/controller/PlayerRestController.java | UTF-8 | 1,199 | 2.21875 | 2 | [] | no_license | package com.student.information.system.controller;
import com.student.information.system.dto.PlayerDTO;
import com.student.information.system.dto.StudentDTO;
import com.student.information.system.model.Player;
import com.student.information.system.model.Student;
import com.student.information.system.service.PlayerServ... | true |
3120bf5c24c0d3789e8cfc3faafe2280dbe81c2e | Java | yanhuada/zero-backend | /client/src/main/java/com/yanhuada/client/model/systemmessage/SystemMessagePoToDto.java | UTF-8 | 1,404 | 2 | 2 | [] | no_license | package com.yanhuada.client.model.systemmessage;
import com.yanhuada.client.model.systemmessage.rsp.SystemMessageOverviewRsp;
import com.yanhuada.client.model.systemmessage.rsp.SystemMessagePagerRsp;
import com.yanhuada.model.SystemMessageRecord;
import java.time.LocalDateTime;
/**
* @author yanhuada
* CREATE ON 2... | true |
ec50ac6f83d5a81ff4a1eece99f3632f39605083 | Java | 765947965/MVPlib | /app/src/main/java/com/xwl/net/mvplib/test/model/bean/DemoBean.java | UTF-8 | 1,504 | 2.21875 | 2 | [] | no_license | package com.xwl.net.mvplib.test.model.bean;
import java.io.Serializable;
/**
* <br> ClassName: DemoBean
* <br> Description:
* <br>
* <br> Author: 谢文良
* <br> Date: 2017/9/15 11:32
*/
public class DemoBean implements Serializable {
private double SumMoney;
private String HeadImage;
pri... | true |
e1cf1a3baca729f0d84f4c5d6dc3cc5f0cb469b9 | Java | Khal-Shah/Java_And_Data_Structure_Exercises | /Ch04_Math_Strings_Chars/ch4exercises/Ch4_07_Pentagon_Corner_Points.java | UTF-8 | 1,243 | 3.78125 | 4 | [] | no_license | package ch4exercises;
import java.util.Scanner;
public class Ch4_07_Pentagon_Corner_Points
/* Chapter 4 - Exercise 7:
(Corner point coordinates) Suppose a pentagon is centered at (0, 0) with one point at the 0 o’clock position,
* as shown in Figure 4.7c. Write a program that prompts the user to enter the rad... | true |
4d2bed51fc0562b37c9791291a61652fdfc0940b | Java | itachi3/web-parser | /src/test/java/Datasource/URLFetchTest.java | UTF-8 | 1,063 | 2.53125 | 3 | [] | no_license | package Datasource;
import com.scout24.datasource.DownloadDataSource;
import com.scout24.models.Result;
import org.junit.Test;
import static org.fest.assertions.api.Assertions.assertThat;
public class URLFetchTest {
private final DownloadDataSource ds;
public URLFetchTest() {
String url = "https://... | true |
17fab3c45cb99122a51d065cf49bc40acfb04aef | Java | jhaskel/apiLicencas | /src/main/java/com/doisbitsw/licencas/api/empreendimento/EmpreendimentoDTO.java | UTF-8 | 968 | 1.882813 | 2 | [] | no_license | package com.doisbitsw.licencas.api.empreendimento;
import lombok.Data;
import org.modelmapper.ModelMapper;
@Data
public class EmpreendimentoDTO {
private Long id;
private Long empreendedor;
private String code;
private String nome;
private String cpf;
private String nomefantasia;
private S... | true |
a838159c9189dde8e99e5edc57d432fa2b9dc8a2 | Java | micgn/websave | /src/main/java/de/mg/websave/web/EditValidator.java | UTF-8 | 1,830 | 1.96875 | 2 | [] | no_license | /*
* Copyright 2016 Michael Gnatz.
*
* 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... | true |
12d495298d4e34f4627fb02c25445b7115263aba | Java | yukihane/stackoverflow-qa | /jaso92970/src/main/java/com/example/jaso92970/SampleService.java | UTF-8 | 676 | 2.09375 | 2 | [] | no_license | package com.example.jaso92970;
import jakarta.persistence.EntityManager;
import jakarta.persistence.PersistenceContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
... | true |
7a446f60f9c224839c2f72a4038ee736e3a623de | Java | suleymansrc/ServisAmca | /app/src/main/java/com/example/suleymansrc/servisamca/HostesAnasayfa.java | UTF-8 | 2,546 | 1.90625 | 2 | [] | no_license | package com.example.suleymansrc.servisamca;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
public class HostesAnasayfa extends AppCompatActivity {
... | true |
6f1785020fbe360f5bf8bcf4105ac86cc1571f74 | Java | sysayy/AutoApp | /src/com/exiu/tester/carowener/my/Test032_MyIncome.java | UTF-8 | 798 | 1.695313 | 2 | [] | no_license | package com.exiu.tester.carowener.my;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import com.exiu.developer.Assertion;
import com.exiu.developer.BaseTestCase;
@Listeners({ com.exiu.developer.AssertionListener.class })
public class Test032_MyIncome extends BaseTestCase {
/**
* 我的页面... | true |
d5fc7c52a3fa840f3aa435490766deaf69d084e6 | Java | rakshithbu/LunchBoxWebsocket | /src/main/java/AmazonS3FileUpload.java | UTF-8 | 2,446 | 2.15625 | 2 | [] | no_license | //import com.amazonaws.ClientConfiguration;
//import com.amazonaws.Protocol;
//import com.amazonaws.auth.*;
//import com.amazonaws.regions.Region;
//import com.amazonaws.regions.Regions;
//import com.amazonaws.services.s3.AmazonS3;
//import com.amazonaws.services.s3.AmazonS3Client;
//import com.amazonaws.services.s3.Am... | true |
68154ed22f02798524fc819c2218f655a67a167c | Java | jacksonfdam/targettrust-android-basico | /Exercicio04/app/src/main/java/br/com/targettrust/aulaadapters/MainActivity.java | ISO-8859-13 | 6,282 | 2.28125 | 2 | [] | no_license | package br.com.targettrust.aulaadapters;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.app.Activity;
import android.os.Bundle;
import android.util.SparseBooleanArray;
import android.view.View;
import android.widget.AdapterView;
import android.widget.... | true |
8fe8d6796de22633feecf736c15019b3a5b54380 | Java | irasht/ExercisesFromBook | /Ch6ReusingClasses/src/e15/protect/ClassWithProtectedMethod.java | UTF-8 | 162 | 2.3125 | 2 | [] | no_license | package e15.protect;
public class ClassWithProtectedMethod {
protected void method() {
System.out.println("Protected method diff package");
}
}
| true |
631f164a87b64dfed0bdff50f01eb3f70a4df834 | Java | romaframework/romaframework | /roma-users/src/main/java/org/romaframework/module/users/repository/BaseAccountStatusRepository.java | UTF-8 | 561 | 2.078125 | 2 | [] | no_license | package org.romaframework.module.users.repository;
import org.romaframework.aspect.persistence.QueryByFilter;
import org.romaframework.core.repository.PersistenceAspectRepository;
import org.romaframework.module.users.domain.BaseAccountStatus;
public class BaseAccountStatusRepository extends PersistenceAspectReposito... | true |
6077f1f601e2bb3cf14b2abc1f069c6c6b485435 | Java | bg317/Assignment3 | /src/cse360assign3/CalculatorTest.java | UTF-8 | 1,645 | 3.0625 | 3 | [] | no_license | package cse360assign3;
import static org.junit.Assert.*;
import org.junit.Test;
public class CalculatorTest {
@Test
public void testCalculator() {
Calculator calc = new Calculator();
assertNotNull(calc);
}
@Test
public void testGetTotal() {
Calculator calc = new Calculator();
assertEquals(0, calc.getT... | true |
5eb948f90b15313c5a23a14cf70e79bb14f69105 | Java | cybuch/mongobeeJ | /src/test/java/com/github/mongobeej/utils/TestQueries.java | UTF-8 | 702 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package com.github.mongobeej.utils;
import com.github.mongobeej.changeset.ChangeEntry;
import org.bson.Document;
public class TestQueries {
private TestQueries() {
throw new IllegalStateException("Can't create instance of thiss class");
}
public static Document changeQuery(String changeId) {
... | true |
8678611b539ce464c452401e6bacaf096aad4fe8 | Java | iamrahulyadav/Loadshedding | /src/com/ansoft/loadshedding/webservice/UpdateIntentService.java | UTF-8 | 4,227 | 2.1875 | 2 | [] | no_license | package com.ansoft.loadshedding.webservice;
import android.app.IntentService;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.content.LocalBroadcastManager;
import android.widget.Toast;... | true |
4b812375b8357c1fa9ef97a49975448af668a0dc | Java | ciciAnne/userAccount | /app/src/main/java/com/example/cici/useraccountapp/DBHelper.java | UTF-8 | 890 | 2.3125 | 2 | [] | no_license | package com.example.cici.useraccountapp;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
/**
* Created by cici on 2019/12/18.
*/
public class DBHelper extends SQLiteOpenHelper{
public DBHelper(Context conte... | true |
ac66911ec9d170e6de3cdd769a16e8d755cd4fee | Java | Kishore-Kumar-Korada/IIOTRepoMaster | /IIOTDataVisualizer/src/main/java/com/kishorekumarkorada/IIOTDataVisualizer/daoImpl/ApplicationDaoImpl.java | UTF-8 | 1,626 | 2.4375 | 2 | [] | no_license | package com.kishorekumarkorada.IIOTDataVisualizer.daoImpl;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;
import org.springframework.stereotype.Repository;
import com.kishorekumarkorada.IIOTDataVisualizer.dao.ApplicationDao;
import com.kis... | true |
de77d392284d9cd3cdca2882581e423841bd5da5 | Java | soulgoast/java-core-programming | /src/main/java/com/qunce/caffeine/HelloWorld.java | UTF-8 | 1,330 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 1995, 2100, QunCe and/or its affiliates. All rights reserved.
* QUNCE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*/
package com.qunce.caffeine;
import com.github.benmanes.caffeine.cache.Caffeine;
import com.github.benmanes.caffeine.cache.LoadingCache;
import lombok.extern.slf4j... | true |
760b4c27b9de28fa21027fa58ac851f254bb41e3 | Java | sofastack-guides/sofamq-demo | /tcp/src/main/java/com/alipay/sofa/sofamq/example/tcp/consumer/SimpleOrderConsumer.java | UTF-8 | 1,408 | 2.484375 | 2 | [] | no_license | package com.alipay.sofa.sofamq.example.tcp.consumer;
import java.util.Properties;
import com.alipay.sofa.sofamq.client.PropertyKeyConst;
import com.alipay.sofa.sofamq.example.tcp.AccessPoint;
import com.alipay.sofa.sofamq.example.tcp.MqConfig;
import io.openmessaging.api.Message;
import io.openmessaging.api.order.Co... | true |
b8d08fbc43a55c339e9d20e542f28e8de50e42ba | Java | KangSoYeon/AlgoMaster | /src/BaekJ2630_색종이만들기.java | UTF-8 | 1,081 | 3.015625 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class BaekJ2630_색종이만들기 {
static int N, blue, whites;
static int[][] arr ;
static void rec(int n, int sx, int sy) { //시작하는 x좌표, y좌표
//n만큼의 크기가 하나의 색종이로 칠해져있는지 확인하는 함수
int s = n... | true |
04f7b14fcd40e6791080ddd275534294864bc0c2 | Java | Samsung/Castanets | /chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenManager.java | UTF-8 | 6,824 | 2.296875 | 2 | [
"BSD-3-Clause"
] | permissive | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.fullscreen;
import android.support.annotation.Nullable;
import android.view.View;
import android.view.Window;
import... | true |
c06e4b546470986d218e0561658bacdb43f02995 | Java | gaods/manager | /manager-web/src/test/java/TestRedis.java | UTF-8 | 540 | 1.710938 | 2 | [] | no_license | import com.hesh.service.UserService;
import org.junit.Test;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
import javax.annotation.Resource;
/**
* Created by gaods on 2017/8/2.
*/
@ContextConfiguration(locations = {"clas... | true |
908ad14e5510c44e9bf2929c0645ad99aed8b60c | Java | xiaozichen/Gulimall2020 | /gulimall-ware/src/main/java/com/atguigu/gulimall/ware/vo/PurchaseDoneVo.java | UTF-8 | 351 | 1.523438 | 2 | [] | no_license | package com.atguigu.gulimall.ware.vo;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* Created with IntelliJ IDEA
* User: GHYANG
* Date: 2020-06-04
* Description:
*/
@Data
public class PurchaseDoneVo {
@NotNull
private Long id; //采购单id
private List<Purch... | true |
0505a225c2f7c6d7bc584e6777cd7e7be1d3adbf | Java | running-elephant/datart | /server/src/main/java/datart/server/controller/ExternalRegisterController.java | UTF-8 | 2,427 | 2 | 2 | [
"Apache-2.0"
] | permissive | /*
* Datart
* <p>
* Copyright 2021
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law ... | true |
97caf17fb12e9325b4861f642838817ee0540985 | Java | zhangtaoqf/RetrofitDemo | /app/src/main/java/com/qf/zt/retrofitdemo/Main2Activity.java | UTF-8 | 1,195 | 2.03125 | 2 | [] | no_license | package com.qf.zt.retrofitdemo;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class Main2Activity ... | true |
b25125f53734055f95448f8474cb11031281ad7f | Java | SushmaSN98/code | /college/java/com/xworkz/college/dao/StudentDetailsDAOImpl.java | UTF-8 | 2,328 | 2.953125 | 3 | [] | no_license | package com.xworkz.college.dao;
import java.util.ArrayList;
import java.util.List;
import com.xworkz.college.constant.Streams;
import com.xworkz.college.dto.StudentDetails;
public class StudentDetailsDAOImpl implements StudentDetailsDAO {
private List<StudentDetails> lists;
// private StudentDetailsDAO... | true |
e5be1f47b7542e44aceadea4e10ef2c1e939f54e | Java | keyking-coin/code | /other/src/com/joymeng/slg/domain/map/fight/obj/FightTroops.java | UTF-8 | 13,658 | 2.3125 | 2 | [] | no_license | package com.joymeng.slg.domain.map.fight.obj;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.joymeng.Instances;
import com.joymeng.common.util.MathUtils;
import com.joymeng.slg.domain.map.fight.obj.enumType.ArmyType;
import com.... | true |
41303d95883849e06b950b90278ac02fabd387c6 | Java | juaneins/itext | /xtra/src/test/java/com/itextpdf/text/pdf/pdfcleanup/PdfCleanUpProcessorTest.java | UTF-8 | 5,789 | 2.09375 | 2 | [] | no_license | package com.itextpdf.text.pdf.pdfcleanup;
import com.itextpdf.testutils.CompareTool;
import com.itextpdf.text.BaseColor;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Rectangle;
import com.itextpdf.text.pdf.PdfReader;
import com.itextpdf.text.pdf.PdfStamper;
import org.junit.Assert;
imp... | true |
fef2df4fbf04895aed355f0365c8a39b4ce86eb5 | Java | BeccaLiu/Algorithm_And_Data_Structure | /Linear/LinkedList/PalindromeLinkedList.java | UTF-8 | 1,732 | 3.984375 | 4 | [] | no_license | package Linear.LinkedList;
/**
* Created by rliu on 12/18/16.
* Given a singly linked list, determine if it is a palindrome.
* Follow up:
* Could you do it in O(n) time and O(1) space?
* key:回文分奇偶
*/
public class PalindromeLinkedList {
public static void main(String[] args) {
System.out.println(isPal... | true |
8a3ad47256070df3eccbc54511c49a44710c11b1 | Java | wiesed/machine-learning | /src/main/java/com/bm/classify/sampling/filter/impl/SpyFilterWithTimeRange.java | UTF-8 | 3,495 | 3.078125 | 3 | [
"Apache-2.0"
] | permissive | package com.bm.classify.sampling.filter.impl;
import com.bm.classify.sampling.Sampleable;
import com.bm.classify.sampling.filter.IFilter;
/**
* Diese Klasse dient zum "ausspionieren" des Flat files um zu bestimmen wo die
* Positiven/Negativenb beispile sind (index).
*
* Hiebei werden daten aus einem bestimmten Z... | true |
bddeffdcd768010a591f0ea135f5b9d1676e658c | Java | Gyaviira1/supermarkert-inventory | /firestore/app/src/main/java/com/example/firestore/ViewInventory.java | UTF-8 | 1,375 | 1.851563 | 2 | [] | no_license | package com.example.firestore;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import android.provider.DocumentsContract;
import android.widget.TextView;
import com.google.firebase.au... | true |
80c8c0d9c3e5aab2770d4f860ddac6b2569128de | Java | sirixdb/sirix | /bundles/sirix-core/src/main/java/io/sirix/index/cas/CASIndex.java | UTF-8 | 6,408 | 1.914063 | 2 | [
"BSD-3-Clause"
] | permissive | package io.sirix.index.cas;
import com.google.common.collect.Iterators;
import io.sirix.api.NodeCursor;
import io.sirix.api.NodeReadOnlyTrx;
import io.sirix.api.PageReadOnlyTrx;
import io.sirix.api.PageTrx;
import io.sirix.index.ChangeListener;
import io.sirix.index.IndexDef;
import io.sirix.index.IndexFilterAxis;
imp... | true |
a89e6723c2c2c77f31ba8e3b09e9c9cf02d09c1f | Java | xukai5265/demo-hive | /src/main/java/com/tx/demo_hive/App.java | UTF-8 | 1,841 | 2.609375 | 3 | [] | no_license | package com.tx.demo_hive;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
List<Map<Str... | true |
07fb3873737b7560f3882055ffce28062d42d38f | Java | fbugallo/C64CartBinCreator | /cartCreator/src/main/java/com/solo761/cartcreator/business/utils/Utils.java | UTF-8 | 6,204 | 3.140625 | 3 | [] | no_license | package com.solo761.cartcreator.business.utils;
import java.io.File;
import java.nio.ByteBuffer;
import java.nio.file.InvalidPathException;
import java.nio.file.Paths;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Utils {
/**
* *** Turned out not to be good enough as... | true |
3a307acedd0fb0dd5594f4b087ca7c36e3f83d3f | Java | virginiafarias/delivery | /DeliverySpring/src/main/java/br/com/unopar/delivery/service/EstabelecimentoService.java | UTF-8 | 428 | 1.867188 | 2 | [] | no_license | package br.com.unopar.delivery.service;
import java.util.List;
import br.com.unopar.delivery.model.Estabelecimento;
public interface EstabelecimentoService {
public abstract Estabelecimento cadastrar(Estabelecimento estabelecimento);
public abstract Estabelecimento getByUsuarioId(Integer id);
pub... | true |
8d81ac71b245b1658fc431ee1883a5ffc6208911 | Java | xeredi/portico | /integra-portico-web/src/main/java/xeredi/argo/http/controller/action/estadistica/PeriodoProcesoLoadAction.java | UTF-8 | 2,367 | 1.78125 | 2 | [] | no_license | package xeredi.argo.http.controller.action.estadistica;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import javax.inject.Inject;
import com.google.common.base.Preconditions;
import xeredi.argo.http.controller.action.comun.CrudLoadAction;
import xer... | true |
1dac782c1a535f6f2908d6d33a1a27ce8baf565c | Java | bkiefer/vonda | /src/main/java/de/dfki/mlt/rudimant/common/Constants.java | UTF-8 | 3,703 | 1.554688 | 2 | [] | no_license | /*
* The Creative Commons CC-BY-NC 4.0 License
*
* http://creativecommons.org/licenses/by-nc/4.0/legalcode
*
* Creative Commons (CC) by DFKI GmbH
* - Bernd Kiefer <kiefer@dfki.de>
* - Anna Welker <anna.welker@dfki.de>
* - Christophe Biwer <christophe.biwer@dfki.de>
*
* THE SOFTWARE IS PROVIDED "AS IS", WIT... | true |
7d2f868af6186928ef2bf24a8a4aca8b57fc37ce | Java | guobihai/wxdj | /app/src/main/java/com/smt/wxdj/swxdj/utils/DisplayTool.java | UTF-8 | 269 | 1.820313 | 2 | [] | no_license | package com.smt.wxdj.swxdj.utils;
import android.content.Context;
/**
* Created by gbh on 16/6/27.
*/
public class DisplayTool {
public static float getDisplayDensity(Context context) {
return context.getResources().getDisplayMetrics().density;
}
}
| true |
f382976798c8e37a8812e8db945f8ebac0c1a2da | Java | Michael3500/PracticalSession1 | /app/src/main/java/com/example/practicals/PostActivity.java | UTF-8 | 3,119 | 2.5625 | 3 | [] | no_license | package com.example.practicals;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.... | true |
98e3b045ce714d7c0e14cb56ca925dc9cb362b03 | Java | boundtotheearth/tp | /src/test/java/seedu/momentum/testutil/ProjectUtil.java | UTF-8 | 5,320 | 2.671875 | 3 | [
"MIT"
] | permissive | //@@author claracheong4
package seedu.momentum.testutil;
import static seedu.momentum.logic.parser.CliSyntax.PREFIX_COMPLETION_STATUS;
import static seedu.momentum.logic.parser.CliSyntax.PREFIX_DEADLINE_DATE;
import static seedu.momentum.logic.parser.CliSyntax.PREFIX_DEADLINE_TIME;
import static seedu.momentum.logic.p... | true |
391f910553ab627e6a1337a55e619ada055a192b | Java | sv-giampa/QuickParse | /QuickParse/src/quickparse/semantics/interpreters/typed/exception/ParameterCountMismatchException.java | UTF-8 | 1,987 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 Salvatore Giampa'
*
* 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 agr... | true |
a5046fbc9a44cdb0877f908fc108100667e3a320 | Java | SRRTA/NIER-SRRTA | /codes/AuxiliaryFunction.java | UTF-8 | 2,988 | 2.90625 | 3 | [] | no_license | import org.codehaus.jackson.JsonFactory;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonMethod;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.type.TypeReference;
import java.io.*;
import java.util.*;
/... | true |
fe91322ff7e446c189c1579af909458253234986 | Java | spring-projects/spring-framework | /spring-core/src/main/java/org/springframework/cglib/core/ClassesKey.java | UTF-8 | 1,471 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2003 The Apache Software Foundation
*
* 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 appli... | true |
cb46de4d257be6bcc3ccfa3154dd7a323466e136 | Java | Lilo1818/WorkBook | /src/com/mci/firstidol/utils/TabManager.java | UTF-8 | 6,024 | 2.125 | 2 | [] | no_license | package com.mci.firstidol.utils;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransac... | true |
f7c42c39bf863fa676d6740989d91012b5279bd8 | Java | luchusnet/Intelihouse | /intelihouse/src/main/java/dom/intelihouse/ui/DetailItemActivity.java | UTF-8 | 3,002 | 2.5625 | 3 | [] | no_license | package dom.intelihouse.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.NavUtils;
import android.view.MenuItem;
import dom.intelihouse.IntelihouseApp;
import dom.intelihouse.R;
import dom.intelihouse.ui.fragments.ConfigurationIt... | true |
6fa76415cb5e8180b7e866b52fc304998bcb21fe | Java | sunjingkai98/git-test | /springboot-dangdang/src/main/java/com/intouch/controller/UserItemController.java | UTF-8 | 1,019 | 2.125 | 2 | [] | no_license | package com.intouch.controller;
import com.intouch.domain.Product;
import com.intouch.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CookieValue;... | true |
dadc36b4d568a398aa592789f71e9fae88ca42dd | Java | fengsterooni/Udacity-Android-Capstone | /backend/src/main/java/org/csix/backend/Group.java | UTF-8 | 1,329 | 2.328125 | 2 | [] | no_license | package org.csix.backend;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
@Entity
public class Group {
@Id
private Long id;
private String name;
private String address;
private String location;
private String time;
private String desc;
... | true |
fa43cf36f04ca154b01f697b27db73f801b5dd7e | Java | andreaziani/BacteriaSimulator | /src/model/simulator/bacteria/BacteriaManager.java | UTF-8 | 857 | 2.859375 | 3 | [] | no_license | package model.simulator.bacteria;
import java.util.Map;
import java.util.Optional;
import model.bacteria.Bacteria;
import model.state.Position;
/**
* Interface used to update Bacteria every turn.
*
*/
public interface BacteriaManager {
/**
* Update all Bacteria.
*/
void updateBacteria();
/*... | true |
e0f68c5baa1f3fb2ba28d3276801023d95a82dd5 | Java | celli33/DictadosMusicalesApp | /app/src/main/java/com/example/misa/dictadosmusicales/Nota.java | UTF-8 | 3,023 | 3.640625 | 4 | [] | no_license | package com.example.misa.dictadosmusicales;
/**
* Created by misa on 19/11/16.
*/
import java.util.ArrayList;
import java.util.Random;
public class Nota {
private String name;
private ArrayList<Nota> notasPosibles;
private int aux;
//constructor de la clase Nota que le da un nombre
Nota(Stri... | true |
df9f154cea231a031df14dd289cd102dc79618dc | Java | ryan10599/Data-Structure | /Pre-Midterm/src/BurteForce/BurteForce.java | UTF-8 | 1,522 | 3.484375 | 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 BurteForce;
import java.util.Scanner;
/**
*
* @author ryan.
*/
public class BurteForce {
public static void main(Strin... | true |
f17f35f247c591c9a345a06e397eaec88d2c26ed | Java | SHADAB-code-hunter/ACTIVE_EDUCATION | /app/src/main/java/com/gt/active_education/RatingMainActivity.java | UTF-8 | 2,752 | 2.140625 | 2 | [] | no_license | /*
* Copyright (c) 2016 Zhang Hai <Dreaming.in.Code.ZH@Gmail.com>
* All Rights Reserved.
*/
package com.gt.active_education;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.animation.Anim... | true |
3c6c23329dd6164e48cde076b1699dd2a8578194 | Java | ycwwe/CraneProject | /src/main/java/com/example/business/blockmap/Container.java | UTF-8 | 23,533 | 2.9375 | 3 | [] | no_license |
package com.example.business.blockmap;
import java.io.Serializable;
/*用于分析writeStack()接受的参数*/
/*集装箱ISO类*/
public class Container {
private static final String RESVERSTION = "1";
private String contISO;
private String sizeISOCodes = null;
private String heightISOCodes = null;
private String typeI... | true |
8ba1d461e74c3e777ff24325f1e1ab1d6ebe3dbc | Java | moacybarros/MobileMedia-Cosmos-VP-v7 | /src/br/unicamp/ic/sed/mobilemedia/favourites/spec/req/IFilesystem.java | UTF-8 | 677 | 1.898438 | 2 | [] | no_license | package br.unicamp.ic.sed.mobilemedia.favourites.spec.req;
import br.unicamp.ic.sed.mobilemedia.favourites.spec.excep.InvalidImageDataException;
import br.unicamp.ic.sed.mobilemedia.favourites.spec.excep.PersistenceMechanismException;
import br.unicamp.ic.sed.mobilemedia.favourites.spec.excep.UnavailablePhotoAlbum... | true |
6a1606dfe11c0f95f2ee0123473fffc1a14f4d4e | Java | gyansatapathy/datastructure | /src/main/java/com/gs/ds/heap/HeapSort.java | UTF-8 | 2,240 | 3.75 | 4 | [] | no_license | package com.gs.ds.heap;
public class HeapSort {
static int[] arrayToSort;
private static void percolateDown(int index, int endIndex) {
int leftChildIndex = getLeftChildren(index, endIndex);
int rightChildIndex = getrightChildren(index, endIndex);
if (leftChildIndex != -1 && arrayToSo... | true |
c71735a3684c2e4e83b108cf9db902a451e103f1 | Java | Kevingomez1024/Restaurant_Inventory | /src/main/java/edu/FGCU/InventoryGUI/ChangePasswordController.java | UTF-8 | 3,518 | 2.859375 | 3 | [] | no_license | package edu.FGCU.InventoryGUI;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.PasswordField;
import javafx.stage.Stage;
im... | true |
e29d7fc2c8e8de7b1b7b033cd0d02a4bb17fe77a | Java | brajkishore/AndroidImageProcessor | /app/src/main/java/com/assignment/imageprocessor/NetworkListener.java | UTF-8 | 191 | 1.90625 | 2 | [] | no_license | package com.assignment.imageprocessor;
/**
* Created by braj.kishore on 8/12/2016.
*/
public interface NetworkListener<S,T> {
void onSuccess(S data);
void onFailure(T data);
}
| true |
558e809d1acb7b84c4913418d04c0b1afb226184 | Java | gtmbanerjee1/testusracct | /usracct/usracctService/src/main/java/com/ebay/app/raptor/usracct/securityartifacts/recovery/bizhandlers/SaveRecoveryArtifactBizHandler.java | UTF-8 | 11,743 | 1.71875 | 2 | [] | no_license | package com.ebay.app.raptor.usracct.securityartifacts.recovery.bizhandlers;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.core.Response.Status;
import org.springframework.stereotype.Service;
import com.ebay.app.raptor.... | true |
35b7afde2e0947bf7e59b115e8dc1da0adf345c2 | Java | haggbart/DAT102-losningsforslag | /Oving4/Oppgave6/src/no/hvl/dat102/Balansering.java | UTF-8 | 3,523 | 3.375 | 3 | [] | no_license | package no.hvl.dat102;
import no.hvl.dat102.stack.ArrayStack;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
public class Balansering {
private ArrayStack<Parentes> parenteser = new ArrayStack<>();
private final char[] venstrePare... | true |
c72213d0e969e88bc95efab0e2798391d75f56c1 | Java | faustgames-ru/Asteroids3dWallpaper | /Asteroids3d/src/com/FaustGames/Core/Content/EntityResourceMesh.java | UTF-8 | 904 | 2.40625 | 2 | [] | no_license | package com.FaustGames.Core.Content;
public class EntityResourceMesh extends EntityResource {
MeshBatchResource _geometryResource;
TextureResource _normalSpecularMap;
TextureResource _diffuseGlow;
int _duplicatesCount = 0;
public MeshBatchResource getGeometryResource(){
return _geometryRes... | true |
64ce688fb7a8541f6cf7609f5b31ffcdb316a47b | Java | VadymKryshyna/java_labs_2 | /labs_java_1/src/com/kryshyna/lab19/Main.java | UTF-8 | 1,900 | 2.921875 | 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 com.kryshyna.lab19;
import java.util.ArrayList;
/**
*
* @author epam
*/
public class Main {
public static void m... | true |
270af3c1f1b348a8e5a63e4cb2293d3e74094127 | Java | AkashMaharana/Playing_With_DS_ALGO | /Dynamic Programming Tushar Roy/src/weightedJobScheduling/Application.java | UTF-8 | 393 | 2.203125 | 2 | [] | no_license | package weightedJobScheduling;
public class Application {
public static void main(String[] args) {
Job jobList[] = {new Job(1, 4, 3 ,'A'),
new Job(2, 6, 5, 'B'),
new Job(4, 7, 2, 'C'),
new Job(5, 9, 4, 'D'),
new Job(6, 8, 6, 'E'),
new Job(7, 10, 8, 'F')};
WeightedJobSchedul... | true |
467618c7bb1db98589d4d7185a9e147d69ee1db4 | Java | tmlab/spreadsheet-data-connector | /jxc/src/main/java/de/topicmapslab/jexc/eXql/parser/ExqlParser.java | UTF-8 | 4,662 | 2.09375 | 2 | [] | no_license | /*******************************************************************************
* Copyright 2010, Topic Map Lab ( http://www.topicmapslab.de )
*
* 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... | true |
f91fed5e6b2c196a2f247373f055537e84a831a4 | Java | radtek/ssms | /src/com/aspire/ponaadmin/web/repository/Node.java | GB18030 | 12,526 | 2.484375 | 2 | [] | no_license |
package com.aspire.ponaadmin.web.repository;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import com.aspire.common.exception.BOException;
import com.aspire.common.log.proxy.JLogger;
import com.aspire.common.log.proxy.LoggerFactory;
import com.aspire.ponaadmin.common.page.Pag... | true |
a368cc1d94492d7e9786053f34e89767d34d365a | Java | MrCaoBing/CBCode | /hc0407crm/src/main/java/com/haochen/hc0407crm/entity/CstService.java | GB18030 | 4,545 | 2.1875 | 2 | [] | no_license | package com.haochen.hc0407crm.entity;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* ͻ
*
* @author lzm
*
*/
public class CstService {
/**
*
*/
private Integer svrId;
/**
*
*/
private String svrType;
/**
* Ҫ
*/
private String svrTitle;
/**
... | true |
6a5248eb4f14ea070a73a649939202fa7599ba6f | Java | zlhuang/NFCProject | /app/src/main/java/com/company/NetSDK/SDK_IN_WM_LOAD_COLLECTION.java | UTF-8 | 662 | 1.671875 | 2 | [] | no_license | package com.company.NetSDK;
import java.io.Serializable;
/**
* \if ENGLISH_LANG
* LoadMonitorWallCollection's interface input param(load monitor wall plans)
* \else
* LoadMonitorWallCollection�ӿ��������(�������ǽԤ��)
* \endif
*/
public class SDK_IN_WM_LOAD_COLLECTION implements Serializable {
/**
*
*/
priv... | true |
4b0a3de922e72ca4d7b0edaa23e8fa2174fe842a | Java | CPSC422-2021w/A3 | /Q3/WalkSat/src/main/WalkSat.java | UTF-8 | 6,754 | 2.984375 | 3 | [] | no_license | package main;
import model.Result;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.*;
import java.util.stream.Collectors;
public class WalkSat {
public static final int PROB_RND_WALK = 20; // (1-PROB_RND_WALK)% of the time, be greedy. (PROB_RND_WALK)% of the time, do random walk
... | true |
f66c2ed36b7c71357f2ff240c9a7fef8911f5f4d | Java | javagurulv/ok_ru_admin_group_2 | /src/main/java/student_alexander_fateev/lesson9/level_7/task28/KelvinToFahrenheit.java | UTF-8 | 251 | 2.8125 | 3 | [] | no_license | package student_alexander_fateev.lesson9.level_7.task28;
class KelvinToFahrenheit implements TemperatureConverter {
@Override
public double convert(double kelvinTemperature) {
return ((kelvinTemperature - 273.15) * 1.8) + 32;
}
}
| true |
97fec559d00123433849cf5950db705546644380 | Java | shoxrux-javaDev/javaTaskBook | /src/main/java/OOP/MoodleTwo/LessonFive/TaskElleven/SimpleCar.java | UTF-8 | 85 | 1.664063 | 2 | [] | no_license | package OOP.MoodleTwo.LessonFive.TaskElleven;
public class SimpleCar extends Car{
}
| true |
ed6058040dfd079ffc5dad46eb02a2b5533371c2 | Java | briksmith/ConverterThymeLeaf | /ConverterRestart/src/test/java/converter/RunConversionTest.java | UTF-8 | 6,175 | 2.140625 | 2 | [] | no_license | package converter;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.apache.catalina.servlet4preview.http.HttpServletRequest;
import org.junit.Before;
import org.junit.Test;
import org.juni... | true |
cbabe09275fc774b5f5c67e656e38c4cca829e7b | Java | joaocarlos1994/labengsoft | /projeto_biblioteca/src/br/com/fatec/projeto/biblioteca/core/helper/EditoraFactory.java | UTF-8 | 1,249 | 2.703125 | 3 | [] | no_license | package br.com.fatec.projeto.biblioteca.core.helper;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import br.com.fatec.projeto.biblioteca.api.entity.Editora;
public class EditoraFactory {
public Editora createEditora(Long id, String nomeEditora, String... | true |
bda8d157432c91f8b07758d769cb5165541ec016 | Java | pns-isa-devops/projet-isa-devops-20-team-b-20-client-office | /src/main/java/client/office/api/InvoiceAPI.java | UTF-8 | 1,050 | 2.0625 | 2 | [] | no_license | package client.office.api;
import java.net.URL;
import javax.xml.ws.BindingProvider;
import client.utils.api.ServiceAPI;
import stubs.invoice.InvoiceService;
import stubs.invoice.InvoiceServiceImplService;
public class InvoiceAPI extends ServiceAPI {
private InvoiceService invoiceService;
public InvoiceAP... | true |
06afe61470887221c44779ed87646e53d5794d75 | Java | NKloecher/AABTESTBUILD | /src/model/Person.java | UTF-8 | 345 | 2.8125 | 3 | [] | no_license | package model;
import java.io.Serializable;
public class Person implements Serializable {
protected String name;
public Person(String name) {
assert name != null && !name.isEmpty();
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
assert name != null;
... | true |
91c506302f0a9c408c98b6a9f1cd51664ac52519 | Java | zum1k/FInance_Task | /src/main/java/dao/filemanager/FileManagerImpl.java | UTF-8 | 1,169 | 3.140625 | 3 | [] | no_license | package dao.filemanager;
import dao.checker.Checker;
import dao.exception.DAOException;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class FileManagerImpl implements FileManager {
public FileManagerImpl() {
}
@Override
public List<String> rea... | true |
bdf1ba7da500a0744bb3f41338218a6919e37a9b | Java | gysingh/openmobius | /core/src/main/java/com/ebay/erl/mobius/core/mapred/TupleCollector.java | UTF-8 | 1,788 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.ebay.erl.mobius.core.mapred;
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.mapred.OutputCollector;
import com.ebay.erl.mobius.core.criterion.TupleCriterio... | true |
d94527e04ce53373a401a41a01d279f8dd70be11 | Java | Warlander/deed-planner | /src/Form/HouseCalc.java | UTF-8 | 89,913 | 2.203125 | 2 | [] | no_license | package Form;
import Lib.Files.Properties;
import Lib.Graphics.Ground;
import Lib.Entities.Data;
import Lib.Entities.Structure;
import Lib.Entities.Writ;
import Lib.Utils.WebTools;
import Mapper.Data.D;
import Mapper.FPPCamera;
import Mapper.Logic.HeightUpdater;
import Mapper.Logic.MapUpdater;
import Mapper.Logic.Writ... | true |
1b0a27d0b755ba02d5743ef85d5465753ff1a8fa | Java | sushantac/sc-shop | /user-service/src/main/java/com/scshop/application/common/enums/Country.java | UTF-8 | 114 | 1.679688 | 2 | [] | no_license | package com.scshop.application.common.enums;
public enum Country {
INDIA, AUSTRALIA, USA, NEW_ZEALAND, CHINA
}
| true |
6e4b08efeb49ad34c9ce79a1cbb4bfa243384ca7 | Java | ttttttyranitar/BattleCity | /src/com/model/tank/GreenEnemyTank.java | UTF-8 | 2,112 | 2.765625 | 3 | [] | no_license | package com.model.tank;
import com.util.Img;
import com.util.Util;
import java.awt.*;
public class GreenEnemyTank extends EnemyTank{
public GreenEnemyTank(int x_axis, int y_axis, int direction){
this.x_axis=x_axis;
this.y_axis=y_axis;
this.direction=direction;
this.hp=Util.green... | true |
0c9cfb9fb7d475ecfa3127db6ee7de2964187f59 | Java | chauhanindrajit/Goldendigitech | /app/src/main/java/dotcom/com/sam/Response/PaymentResponse.java | UTF-8 | 9,461 | 1.96875 | 2 | [] | no_license | package dotcom.com.sam.Response;
import java.util.List;
/**
* Created by Dotcom on 2/20/2017.
*/
public class PaymentResponse {
/**
* RJ_ID : 8
* FullName : sjsjdjdj
* Email : indrajit@gmail.com
* MobNo : 123456789
* Password : 123456
* CnfPassword : 123456
* Address : chat... | true |
bc4f72a8d6ea0aa734bf3b6913c9d0c0fa43604d | Java | MrZhaoHuan/vmall | /vmall-portal-web/src/main/java/com/zhao/web/controller/IndexController.java | UTF-8 | 919 | 1.90625 | 2 | [] | no_license | package com.zhao.web.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @创建人 zhaohuan
* @邮箱 1101006260@qq.com
* @创建时间 2018-06-22 15:18
* @... | true |
be59da4b8d78e3ee70f4948243c66c0c2e7223bc | Java | LaDebug8/coolweather | /app/src/main/java/com/debug8/coolweather/receiver/AutoUpdateReciver.java | UTF-8 | 505 | 1.96875 | 2 | [] | no_license | package com.debug8.coolweather.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.debug8.coolweather.server.AutoUpdateService;
/**
* Created by Debug8 on 2016/4/16.
*/
public class AutoUpdateReciver extends BroadcastReceiver {
... | true |
110f35621da19bd5f87edeacf8b518435b9eb6b1 | Java | wolongalick/MVVMLearn | /app/src/main/java/com/alick/mvvmlearn/viewmodel/ProjectDetailViewModel.java | UTF-8 | 1,253 | 2.09375 | 2 | [] | no_license | package com.alick.mvvmlearn.viewmodel;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;
import com.alick.commonlibrary.base.bean.BaseResponse;
import com.alick.commonlibrary.utils.OkHttpUtils;
import com.alick.mvvmlearn.model.ProjectDetail... | true |
4e98ac3afc4b297a270b36ec2dc7ded589c3eaf4 | Java | bksqmy/tools | /tools-redis/src/main/java/cn/gjing/EnableRedisAll.java | UTF-8 | 432 | 1.835938 | 2 | [
"MIT"
] | permissive | package cn.gjing;
import cn.gjing.cache.core.EnableSecondCache;
import cn.gjing.lock.core.EnableRedisLock;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Gjing
**/
@Target(ElementType.TYP... | true |
16c3e0b540249b24b88224416a32ca481a0d6cad | Java | lionsoul2014/pview | /src/org/lionsoul/pview/ui/IButtonUI.java | UTF-8 | 3,986 | 2.484375 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | package org.lionsoul.pview.ui;
import java.awt.Color;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.AbstractButton;
import javax.swing.ButtonModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.s... | true |
71d6cc3a4e441c6269a0281d9e15d97eaf73fb45 | Java | mariamiawad/JavaExercises | /JavaBookExercises/src/chapter10/Exercise_10_25.java | UTF-8 | 1,293 | 3.421875 | 3 | [] | no_license | package chapter10;
import java.util.ArrayList;
import java.util.Arrays;
public class Exercise_10_25 {
public Exercise_10_25() {
}
public static void main(String[] args) {
String s = "ab#12#453";
String regex = "#";
String[] strings = split("a?b?gf#e", "[?#]");
for (int i = 0; i < strings.length; i++) {
... | true |
8c9e597ed084bbbc92671722f8e38cf9514ba95a | Java | slapperwan/gh4a | /app/src/main/java/com/gh4a/resolver/ReleaseLoadTask.java | UTF-8 | 2,174 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | package com.gh4a.resolver;
import android.content.Intent;
import android.net.Uri;
import androidx.annotation.VisibleForTesting;
import androidx.fragment.app.FragmentActivity;
import com.gh4a.ServiceFactory;
import com.gh4a.activities.ReleaseInfoActivity;
import com.gh4a.utils.ApiHelpers;
import com.gh4a.utils.Option... | true |