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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6df49c7cd5976d4574351f9ec163b82b11f35ac6 | Java | Chrisxavix/JavaJDK15 | /src/UniversityJava/topics/herency/Test.java | UTF-8 | 713 | 3.40625 | 3 | [] | no_license | package UniversityJava.topics.herency;
import java.util.Date;
public class Test {
public static void main(String[] args) {
Empleado test = new Empleado("Juan", 5000);
Cliente test1 = new Cliente(new Date(), false, "Chris", 'm', 12, "M4");
/* Creado objetos desde persona con los constructor... | true |
dc7b9c64157cf9df682b3ace92dcfe58e288a1bf | Java | mklucz/stapi | /server/src/main/java/com/cezarykluczynski/stapi/server/trading_card/reader/TradingCardSoapReader.java | UTF-8 | 3,103 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.cezarykluczynski.stapi.server.trading_card.reader;
import com.cezarykluczynski.stapi.client.v1.soap.TradingCardBaseRequest;
import com.cezarykluczynski.stapi.client.v1.soap.TradingCardBaseResponse;
import com.cezarykluczynski.stapi.client.v1.soap.TradingCardFullRequest;
import com.cezarykluczynski.stapi.cl... | true |
63f3a00c8feabba7638ec12feca8880f3ea09b7a | Java | sekys/ivda | /src/sk/stuba/fiit/perconik/ivda/activity/dto/SystemEventDto.java | UTF-8 | 343 | 1.875 | 2 | [
"MIT"
] | permissive | package sk.stuba.fiit.perconik.ivda.activity.dto;
import javax.ws.rs.core.UriBuilder;
public class SystemEventDto extends EventDto {
private static final long serialVersionUID = -2196950013163342189L;
@Override
protected UriBuilder getDefaultEventTypeUri() {
return super.getDefaultEventTypeUri().... | true |
f159276dc98a3bbe51b5f7acda02534956a44e10 | Java | terakael/sandbox2 | /src/main/java/responses/AssembleResponse.java | UTF-8 | 2,253 | 2.265625 | 2 | [] | no_license | package responses;
import database.dao.ConstructableDao;
import database.dao.ItemDao;
import database.dao.PlayerStorageDao;
import database.dao.SceneryDao;
import processing.PathFinder;
import processing.attackable.Player;
import processing.attackable.Player.PlayerState;
import processing.managers.FightManager;
import... | true |
e8127bed6e3a5bfac60160b0acb541a90eaecdba | Java | Unity3DMobileAlbatron/DATAUNITY3D | /Servercode/gsd/src/lx/matcher/gs/activity/huiwu/msg/SPreselectionKickout.java | UTF-8 | 1,349 | 1.890625 | 2 | [] | no_license |
package lx.gs.activity.huiwu.msg;
import com.goldhuman.Common.Marshal.OctetsStream;
import com.goldhuman.Common.Marshal.MarshalException;
// {{{ RPCGEN_IMPORT_BEGIN
// {{{ DO NOT EDIT THIS
abstract class __SPreselectionKickout__ extends xio.Protocol { }
// DO NOT EDIT THIS }}}
// RPCGEN_IMPORT_END }}}
public clas... | true |
726523c798ac5d877bca6cdddf3fb77812b94390 | Java | moutainhigh/acc2 | /src/com/sinosoft/picc/schema/AccRemarkManageSchema.java | GB18030 | 10,881 | 2.4375 | 2 | [] | no_license | /**
* Copyright (c) 2002 sinosoft Co. Ltd.
* All right reserved.
*/
package com.sinosoft.picc.schema;
import java.sql.*;
import java.io.*;
import java.util.Date;
import com.sinosoft.picc.pubfun.*;
import com.sinosoft.utility.*;
import com.sinosoft.picc.db.AccRemarkManageDB;
/*
* <p>ClassName: AccRemarkManageSch... | true |
88635e2582d13507d67af3cab0634cfe244b9d97 | Java | oshhh/PlantsVsZombies | /src/Controller/RegularAction.java | UTF-8 | 3,408 | 2.6875 | 3 | [] | no_license | package Controller;
import javafx.application.Platform;
import java.util.*;
import java.io.*;
public class RegularAction extends Thread {
private static int ZOMBIE_INTERVAL = 15000;
private static int ZOMBIE_INTERVAL_WAVE = 1000;
private static int PEA_INTERVAL = 1000;
private static int SUNTOKEN_INT... | true |
116643b0cce079e2c59292df1266bb8b6a6e6ff9 | Java | VijayEluri/DisplayableCreator | /src/java/net/niconomicon/tile/source/app/tools/DisplayableSourceBase.java | UTF-8 | 3,136 | 2.421875 | 2 | [] | no_license | package net.niconomicon.tile.source.app.tools;
import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import net.niconomicon.tile.source.app.Ref;... | true |
5ca0c68af2f9e35aab6fa606a2bb5253ed3da521 | Java | gori8/KP | /userAndPaymentInfo/src/main/java/com/example/userandpaymentinfo/model/RedUrl.java | UTF-8 | 743 | 2.109375 | 2 | [] | no_license | package com.example.userandpaymentinfo.model;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.Type;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
@Getter
@Setter
@Al... | true |
922d71d3fdc5d7e56a1d421b148239835bc400ea | Java | StanislavAntunovich/NetworkChat | /src/ru/geekbrains/chat/server/Server.java | UTF-8 | 5,005 | 2.640625 | 3 | [] | no_license | package ru.geekbrains.chat.server;
import ru.geekbrains.chat.AuthException;
import ru.geekbrains.chat.server.persistance.UserRepository;
import ru.geekbrains.chat.server.persistance.UserRepositoryImpl;
import ru.geekbrains.chat.server.service.auth.AuthJDBCServiceImpl;
import ru.geekbrains.chat.server.service.auth.Auth... | true |
12cd38cb193cace22e37f3426147ff753c7276ac | Java | alishangtian/x-pipe | /redis/redis-console/src/test/java/com/ctrip/xpipe/redis/console/alert/AlertManagerTest.java | UTF-8 | 1,647 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.ctrip.xpipe.redis.console.alert;
import com.ctrip.xpipe.redis.console.config.ConsoleConfig;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import ... | true |
431ec1e1baa9ef5a37506e4fca120dd64522c1ed | Java | daojunL/BigDataManagement | /project3/problem2/ReportNeighborsDensityAndIds.java | UTF-8 | 9,624 | 2.484375 | 2 | [] | no_license | import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;
import org.apache.hadoop.mapreduce.lib.input.MultipleInputs;
import org.apache.h... | true |
8bc7dadaabc31c0945856e25433883af99e77380 | Java | musaozdemir-capco/Gilded | /src/test/java/utils/CommonMethods.java | UTF-8 | 934 | 2.40625 | 2 | [] | no_license | package utils;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import sun.jvm.hotspot.debugger.Page;
import testBase.PageInitializer;
public class CommonMethods extends PageInitializer {
/**
* Method that s... | true |
39401f0284d895b7352add21b2127df874158c35 | Java | ApurvaMithal/DatabaseEngine | /java_files/Utility.java | UTF-8 | 9,231 | 2.765625 | 3 | [] | no_license | import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.text.SimpleDateFormat;
public class Utility {
public static int pgSize = PageSizeConstant.pageSize;
public static String[] fetchPL(RandomAccessFile file, long off)
... | true |
9d507f879ca7d6656683b955063c1f05fc483528 | Java | LabyMod/labymod-server-api | /labymod-api/src/main/java/net/labymod/serverapi/api/serverinteraction/actionmenu/MenuEntry.java | UTF-8 | 1,323 | 2.875 | 3 | [
"MIT"
] | permissive | package net.labymod.serverapi.api.serverinteraction.actionmenu;
import com.google.gson.JsonObject;
/** Represents a menu entry. */
public interface MenuEntry {
/**
* Retrieves the display name of the menu entry.
*
* @return The display name of the entry.
*/
String getDisplayName();
/**
* Retrie... | true |
269b51831ef36ded5297a5f653c34a12dddcc79c | Java | TatyanaAlex/tfukova | /chapter_collectionsPro/src/main/java/ru/job4j/tree/Tree.java | UTF-8 | 3,191 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | package ru.job4j.tree;
import java.util.*;
/**
* Class Tree.
*
* @author Tatyana Fukova
* @version $I$
*/
public class Tree<E extends Comparable<E>> implements SimpleTree<E> {
public Node<E> root;
private int modCount = 0;
/**
* Constructor.
*
* @param value value.
*/
publ... | true |
d4a4542a28788f3c04f56f3ae00d09faec4d85c3 | Java | vooolkan/JavaInClass | /src/com/class13/Task1.java | UTF-8 | 770 | 3.265625 | 3 | [] | no_license | package com.class13;
import java.util.Scanner;
public class Task1 {
public static void main(String[] args) {
Scanner scan=new Scanner(System. in);
System.out.println("Enter your class day: ");
String day=scan.nextLine();
if(day.trim().toLowerCase().equals("saturday")) {
System.out.println("Saturday is... | true |
4b6254e7571b190e5e4721c112084c041b8f4412 | Java | coldserenity/tij4-exercises | /03-controlling-execution/src/test/java/edu/coldserenity/tij/ch02/ex09/FibonacciTest.java | UTF-8 | 911 | 2.859375 | 3 | [
"MIT"
] | permissive | package edu.coldserenity.tij.ch02.ex09;
import com.tngtech.java.junit.dataprovider.DataProvider;
import com.tngtech.java.junit.dataprovider.DataProviderRunner;
import com.tngtech.java.junit.dataprovider.UseDataProvider;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.assertArray... | true |
6a88f0c62dcab4ce0f281b505118bcb9ca557f6f | Java | GiovanniPucariello/TeevraCore | /Development3.0/TeevraServer/platform/businessobject/src/main/java/com/headstrong/fusion/bo/java/generated/fixml_5_0/SecurityTypeRequestMessageTBeanAccessor.java | UTF-8 | 3,124 | 1.851563 | 2 | [] | no_license | package com.headstrong.fusion.bo.java.generated.fixml_5_0;
import javax.annotation.Generated;
import com.headstrong.fusion.bo.java.BeanAccessor;
import org.fixprotocol.fixml_5_0.SecurityTypeRequestMessageT;
import java.math.BigInteger;
import org.fixprotocol.fixml_5_0.SecurityTypeEnumT;
import org.fixprotocol.fixml_... | true |
ee669bab40411ad70d3e6084f1872771bd70a151 | Java | iuvei/LotteryDemo | /app/src/main/java/com/qujing/leeyong/klchwsc/SsqActivity.java | UTF-8 | 828 | 1.859375 | 2 | [] | no_license | package com.qujing.leeyong.klchwsc;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
/**
* Created by Administrator on 2018/5/15.
*/
public class SsqActivity extends AppCompatActivity {
... | true |
f822d83a536e97dbbf855d10f45b76f7e8bfc879 | Java | Prozorova/StarGame | /core/src/com/gb/stargame/base/utils/ActionListener.java | UTF-8 | 111 | 1.585938 | 2 | [] | no_license | package com.gb.stargame.base.utils;
public interface ActionListener {
void actionPerformed(Object src);
}
| true |
337a7c1fef0c3cd8de3030c43330fab836abc515 | Java | henry2357/jigsaw | /src/main/java/com/henry/jigsaw/spring/HelloSpring.java | UTF-8 | 675 | 2.59375 | 3 | [] | no_license | package com.henry.jigsaw.spring;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class HelloSpring {
private String userName;
public void setUserName(String userName) {
this.userName = userName;
}
publ... | true |
4f6997fa932f9ab03ea2584a41eb77ef9827eddd | Java | andresnew00/Andres_Inciarte_JavaS1 | /20190826/CarInventory/src/main/java/CarReader.java | UTF-8 | 1,368 | 3.9375 | 4 | [] | no_license | import java.util.*;
import java.util.stream.Collectors;
public class CarReader {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// first read of the file this should be able to read the current cars created
CarMethods.read();
boolean continueC... | true |
03ff8bc835a7969beb64cee61c0c7ad5581c8511 | Java | s99889989/CustomDisplay | /src/main/java/com/daxton/customdisplay/manager/ListenerManager.java | UTF-8 | 315 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.daxton.customdisplay.manager;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
public class ListenerManager {
private static Map<String,Boolean> Cast_On_Stop = new HashMap<>();
public static Map<String, Boolean> getCast_On_Stop() {
return Cast_On_Stop;
}
}
| true |
f1db32dcc9a34ab2ea5f1f16419571199989adf0 | Java | heduiandroid/HDLinLiC | /java/com/linli/consumer/adapter/PayingOrderAdapter.java | UTF-8 | 4,189 | 1.992188 | 2 | [] | no_license | package com.linli.consumer.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.facebook.draw... | true |
0a229d0fcd2b99d9303bc9177f4de57ba66cf4f2 | Java | GrapeLemon/Think-In-Java | /src/_19_enum/_01_basic/Spiciness.java | UTF-8 | 138 | 1.984375 | 2 | [] | no_license | package _19_enum._01_basic;
/**
* @author lwx
* @date 2019/9/8-22:02
*/
public enum Spiciness {
NOT, MILD, MEDIUM, HOT, FLAMING
}
| true |
aa10c0f5059ced7cb10157a9afea0a7e4a9117d1 | Java | wanghaihui/tuding | /VZhi/src/com/xiaobukuaipao/vzhi/RecruitServiceActivity.java | UTF-8 | 9,282 | 1.664063 | 2 | [] | no_license | package com.xiaobukuaipao.vzhi;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Message;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.v... | true |
2aa23ac0c46e475a97cbf9788fd85c5a90990f99 | Java | Denstden/db | /common-db/src/main/java/ua/kiev/unicyb/tcct/domain/record/Record.java | UTF-8 | 1,645 | 2.125 | 2 | [] | no_license | package ua.kiev.unicyb.tcct.domain.record;
import org.springframework.stereotype.Component;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
impor... | true |
2ca9d8e556200eb782365141a0e58249f7d711f9 | Java | saravanan661987/seleniumframework | /CucumberProject-master/src/main/java/utility/Base.java | UTF-8 | 6,589 | 1.859375 | 2 | [] | no_license | package utility;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.datatransfer.StringSelection;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.sql.Connection;
import jav... | true |
5f18315d116d19e846cefdcf01d3ffb1fd681cab | Java | boekj03/plantbeheerMetAngular | /boksebeld-angular-rest/src/main/java/nl/boksebeld/resources/PlantLijstContainer.java | UTF-8 | 311 | 1.96875 | 2 | [] | no_license | package nl.boksebeld.resources;
import java.util.ArrayList;
import java.util.List;
import nl.boksebeld.domein.plant.Plant;
public class PlantLijstContainer {
private List<Plant> plantLijst= new ArrayList<Plant>();
public List<Plant> getPlantLijst() {
return plantLijst;
}
}
| true |
2e97e9f0dc7c5417c234216536ac82b6ca91e30a | Java | pvessel/hands-on-spring | /src/test/java/com/handsonspring/service/grid/GridColumnsServiceTest.java | UTF-8 | 1,576 | 2.3125 | 2 | [
"MIT",
"CC-BY-4.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.handsonspring.service.grid;
import com.handsonspring.model.Identifiable;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import java.util.UUID;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.mock;
import static o... | true |
4d1b11e44047b77b654d52d39a616d0b9335e8d2 | Java | FictionDk/parrot | /src/main/java/com/fictio/parrot/thinking/thread/ToastOMatic.java | UTF-8 | 5,166 | 3.265625 | 3 | [] | no_license | package com.fictio.parrot.thinking.thread;
import java.util.Random;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import org.junit.Test;
import lombok.extern.slf4j.Slf4j;
class To... | true |
474de4a37aa38fee0c5d2be93a1872e88f0ad582 | Java | satyam323545/Core_Java | /Day_2/src/satyam/mandal/primes_addition.java | UTF-8 | 531 | 3.265625 | 3 | [] | no_license |
//Name: Satyam Mandal.
//W.A.P to add a set of prime numbers.
==============================================================================
package satyam.mandal;
public class primes_addition {
/**
* @param args
*/
public static void main(String[] args) {
int i=0,sum=0;
for(i=3;... | true |
b9dee57c6c7df4b55c32f8ebfe5d451c9fa2aa52 | Java | nataliaortizvi/PARCIAL-FINAL-DCA | /PARCIAL FINAL DCA/src/Model/Persona.java | UTF-8 | 2,457 | 2.78125 | 3 | [] | no_license | package Model;
import processing.core.PApplet;
public abstract class Persona implements Runnable, Comparable<Persona>{
int px, py, tam, r, g, b, vel, dir, tipo;
PApplet app;
String nombre;
int pxTexto;
int contador;
public Persona(PApplet app) {
this.px = (int) app.random(5, 590);
this.py = (int) app.r... | true |
9260912b89847b6847d5480a42162314433b7a1b | Java | qingshuidada/Jin01 | /src/main/java/com/mdoa/admin/model/CarRepair.java | UTF-8 | 2,011 | 2.171875 | 2 | [] | no_license | package com.mdoa.admin.model;
import java.math.BigDecimal;
import java.util.Date;
import com.mdoa.base.model.BaseModel;
import com.mdoa.util.DateUtil;
public class CarRepair extends BaseModel{
private String repairId;
private String carId;
private String reason;
private String executant;
private String notes;... | true |
0575d1051c856ee47f35ef08092d5d4cb943f8ef | Java | costasboulis/Infolytics | /model/src/test/java/com/cleargist/model/SemanticModelTest.java | UTF-8 | 4,829 | 2.046875 | 2 | [] | no_license | package com.cleargist.model;
import static org.junit.Assert.assertTrue;
import java.util.LinkedList;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import com.amazonaws.auth.PropertiesCredentials;
import com.amazonaws.services.s3.AmazonS3;
im... | true |
aa52b0669e18502753a776878aeb302c3f3f8525 | Java | ecollado92/TransitDataFeeder | /src/main/org/ideaproject/model/Address.java | UTF-8 | 3,397 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2010 SingleMind Consulting, Inc. (http://singlemindconsulting.com)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | true |
5b700bb4750a9631ccf623b975d1dc9c26509f19 | Java | prowide/prowide-iso20022 | /model-cain-types/src/generated/java/com/prowidesoftware/swift/model/mx/dic/AcceptorRejection4.java | UTF-8 | 3,458 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive |
package com.prowidesoftware.swift.model.mx.dic;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annota... | true |
bc11cb3b2a9e80eafebd12717230884897f94afb | Java | inkarnasion/OOP-Advanced | /Enumeration and Annotation/Lab/03. Coffee Machine/CoffeeMachine.java | UTF-8 | 1,058 | 3.0625 | 3 | [] | no_license | package enumeratoin_and_anotation_lab.cofee_machine;
import enumeratoin_and_anotation_lab.cofee_machine.enums.Coffee;
import enumeratoin_and_anotation_lab.cofee_machine.enums.CoffeeSize;
import enumeratoin_and_anotation_lab.cofee_machine.enums.CoffeeType;
import enumeratoin_and_anotation_lab.cofee_machine.enums.Coin;
... | true |
2faefdd7e6290174c18d1790a5b82355b359785b | Java | andreguedes/IGTI | /Design Patterns - GoF/src/br/com/igti/gof/estruturais/A.java | UTF-8 | 271 | 2.09375 | 2 | [] | no_license | package br.com.igti.gof.estruturais;
public class A {
public Lista disponibilizarLista() {
Lista lista = new Lista();
lista.adiciona(1);
lista.adiciona(2);
lista.adiciona(3);
lista.adiciona(4);
return new ListaNaoAlteravel(lista);
}
}
| true |
7169acee9b0357982022a9da329df652ce94d73a | Java | marcocrxu/leetcode | /src/main/java/huawei/huaweitest_2.java | UTF-8 | 769 | 2.6875 | 3 | [] | no_license | package huawei;
import java.util.*;
public class huaweitest_2 {
public static void IO(){
Scanner scanner =new Scanner(System.in);
while(scanner.hasNextInt()){
int n=scanner.nextInt();
List<Integer> list=new ArrayList<>();
Map<Integer, Boolean> map=new HashMap<>... | true |
c3a1bd5d3a805d3e5811526155d2d5762ef8c197 | Java | zykjsunhaibo88/cjkj | /src/com/br/tvlicai/firstchinanet/weixin/controller/weixin/ws/WeixinWS.java | UTF-8 | 1,056 | 1.804688 | 2 | [] | no_license | /*
* ==================================================
* 系统开发地 : 中国辽宁沈阳
* 系统名称: 超级组讯平台(SS)
* 文件名: WeixinWS.java
* ==================================================
* 开发环境: JDK1.7+
* ==================================================
* -变更履历 作者 YYYY/MM/DD REV. 备注
* -制作 李鑫 2016年4月11日 1... | true |
68a572d6442858af515e53a3201144e41bedde5b | Java | fan-js/cpwater | /src/main/java/cn/ritac/cpwater/mybatis/model/Check.java | UTF-8 | 1,087 | 2.15625 | 2 | [] | no_license | package cn.ritac.cpwater.mybatis.model;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
* @Author:FanJS
* @Date:2019-9-5 18:14
*/
@Table(name = "cpwater_check")
public class Check implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Gener... | true |
82a46e8f96848d464f88edf1a70ae34e3e3bf6bd | Java | canyapan/spring-webflux-sample | /src/main/java/com/canyapan/sample/reactivespring/service/EchoService.java | UTF-8 | 270 | 1.984375 | 2 | [] | no_license | package com.canyapan.sample.reactivespring.service;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Mono;
@Service
public class EchoService {
public Mono<String> echo(final String message) {
return Mono.just(message);
}
}
| true |
691b8a31288db01c5f035c04238a9e56fffde9d2 | Java | compmstr/Crazy8 | /src/com/undi/crazy8/CardAnimation.java | UTF-8 | 1,450 | 3.3125 | 3 | [] | no_license | package com.undi.crazy8;
import android.graphics.Point;
public class CardAnimation {
private final Point from, to;
private final long timeStart, durationMs;
private final CardRef card;
private final Runnable callback;
/**
* A card animation
* @param card - the CardRef to draw
* @param from - point to star... | true |
467f993d461b8978541e54e88362b7ed36aac48a | Java | donChelsea/Weather-app-from-scratch-2 | /app/src/main/java/com/example/weatherappfromscratch/controller/WeatherAdapter.java | UTF-8 | 1,396 | 2.40625 | 2 | [] | no_license | package com.example.weatherappfromscratch.controller;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.weatherappfromscratch.R;
impor... | true |
3adffed6b894f332bf1a74baaa9d758ec1078f18 | Java | mini222333/mini | /workspace_08_13/jdbc/src/service/UsersService.java | UTF-8 | 339 | 1.757813 | 2 | [] | no_license | package service;
import java.util.List;
import vo.UserVo;
public interface UsersService {
public List<UserVo> usersList();
public List<UserVo> usersList(int page, int n);
public List<UserVo> login(UserVo vo);
public int addUsers(UserVo vo);
public int deleteUsers(String id);
public int updateUsers(... | true |
28b2371c31c4bd325d736a5cb06c22222d857fd5 | Java | Abhinav-vats/Project-Finance-Java | /Project-Gladiator-Abhinav/src/main/java/com/lti/service/exception/OtpServiceException.java | UTF-8 | 711 | 1.890625 | 2 | [] | no_license | package com.lti.service.exception;
public class OtpServiceException extends RuntimeException {
public OtpServiceException() {
super();
// TODO Auto-generated constructor stub
}
public OtpServiceException(String arg0, Throwable arg1, boolean arg2, boolean arg3) {
super(arg0, arg1, arg2, arg3);
// TODO Auto... | true |
f6dcc047472d71c0e71828e50ec5e3897ba9eb5f | Java | CaoXiangHong/untitled_one | /src/cn/hb/mr/Fu.java | UTF-8 | 124 | 1.984375 | 2 | [] | no_license | package cn.hb.mr;
public class Fu {
public int numV = 20;
public void metFu(){
System.out.println(numV);
}
}
| true |
dd9092b877bacc7f6bb00c04e1004c60c964c84d | Java | Gigigo-Android-Devs/gigigo-multipleGridRecyclerView-library-android | /app/src/main/java/com/gigigo/multiplegridrecyclerview_demo/recyclerview/CellImageWidget.java | UTF-8 | 215 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | package com.gigigo.multiplegridrecyclerview_demo.recyclerview;
import com.gigigo.multiplegridrecyclerview.entities.Cell;
public class CellImageWidget extends Cell<ImageWidget> {
public CellImageWidget() {
}
}
| true |
9d7e8eb1bf8fc6ca7f7d8e345414afee4c1402a7 | Java | cckmit/pkpm-desktop-cloud | /desktop-cloud-shutdown/src/main/java/com/pkpmcloud/model/Record.java | UTF-8 | 695 | 1.65625 | 2 | [] | no_license | /**
* Copyright 2018 bejson.com
*/
package com.pkpmcloud.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.pkpmcloud.constants.ApiConst;
import lombok.Data;
import org.springframe... | true |
ccf2afa922aeacec8de290bee5b8acaa37381391 | Java | stebyrne04/SparkleGamesTest | /app/src/main/java/com/goldminelabs/sparklegamestest/task2emements/Scene.java | UTF-8 | 3,946 | 2.53125 | 3 | [] | no_license | package com.goldminelabs.sparklegamestest.task2emements;
import android.app.Activity;
import android.content.Context;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.util.DisplayMetrics;
import android.view.MotionEvent;
import android.view.SurfaceHol... | true |
08fa31cbbdf85202a89774595f57f155c6560db9 | Java | NataliaPravitel/JavaRushGitRepository | /4.Collections/task3913/LogParser.java | UTF-8 | 19,460 | 2.59375 | 3 | [] | no_license | package com.javarush.task.task39.task3913;
import com.javarush.task.task39.task3913.query.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.DirectoryStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.text.ParseExc... | true |
5622985cf144d4257d27bbeb6502f9df378098d2 | Java | Stormantonio/Departments-Employees | /src/main/java/com/chernenko/controller/factories/department/impl/CreateDepartment.java | UTF-8 | 806 | 2.203125 | 2 | [] | no_license | package com.chernenko.controller.factories.department.impl;
import com.chernenko.controller.MainController;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import jav... | true |
a921e299aedeb3cba247c2b2e42314c15ea23b6b | Java | khaledboussaba/my_workspaces_al34 | /intro/demo-heritage/src/main/java/fr/afcepf/al34/App.java | UTF-8 | 794 | 3.140625 | 3 | [] | no_license | package fr.afcepf.al34;
public class App {
public static void main(String[] args) {
Vehicle v;
//v = new Vehicle(); pas possible vu que la classe Vehicle est abstract
v = new Car();
v.moveForward();
System.out.println(v.getSpeed());
System.out.println(v.isTerrestrial());
System.out.println(v.toS... | true |
95df3db68c8246335953b1090261ffc354f738a5 | Java | praskris83/click_predict_av | /src/hack/mine.java | UTF-8 | 332 | 2.515625 | 3 | [] | no_license | package hack;
/**
* @author Prasad
*
*/
public class mine {
public static void main(String[] args) {
pint(16);
}
private static void pint(int i) {
System.out.println(i++);
System.out.println(i++);
System.out.println(i++);
System.out.println(i++);
System.out.println(i++... | true |
2598180ea887030f2d9e5af451eacca0b0c5aba6 | Java | skrser/CtCI | /ctci3.6/src/main/java/ru/skrser/ctci3dot6/Solution.java | UTF-8 | 2,203 | 3.671875 | 4 | [
"MIT"
] | permissive | package ru.skrser.ctci3dot6;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.HashSet;
import java.util.Set;
public class Solution {
/**
* Sort stack in ascending order using stacks
* Computation complexity = O(N^2)
* Memory consumption = O(N), no data copy, but in worst case ... | true |
eac3c8fae68cc67813a216e0e0c2eb090c8be60c | Java | Bigshen/RealTime-1 | /src/com/foxlink/realtime/DAO/LineMappingDAO.java | UTF-8 | 7,700 | 2.125 | 2 | [] | no_license | package com.foxlink.realtime.DAO;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.jdbc.core.PreparedStatementSetter;
import org.springframework.jdbc.core.RowMapper;... | true |
1503b8cc3168dbd47c3cfe570b588310f8c3aa8a | Java | georgecaotung/twiter-web-app | /nhandinh-twitter-app-master/app/vn/picore/playtwitter/model/HashTag.java | UTF-8 | 2,219 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package vn.picore.playtwitter.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import java.util.regex.Pattern;
import org.jongo.MongoCollection;
import org.jongo.MongoCursor;
import uk.co.panaxiom.playjongo.PlayJongo;
public class HashTag {
private UUID _id;
... | true |
3ede2a056cd57001796872e579a2d00dc510e810 | Java | DirkMahler/graphql-maven-plugin-project | /graphql-java-runtime/src/test/java/com/graphql_java_generator/client/domain/forum/CustomScalarDeserializerDate.java | UTF-8 | 517 | 1.90625 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | /**
*
*/
package com.graphql_java_generator.client.domain.forum;
import com.graphql_java_generator.client.response.AbstractCustomScalarDeserializer;
import com.graphql_java_generator.customscalars.GraphQLScalarTypeDate;
/**
* @author EtienneSF
*/
public class CustomScalarDeserializerDate extends AbstractCustomSc... | true |
09ab260b4de29f142e1b9e2da15a755a4a7eb495 | Java | calystamerina/weedu | /app/src/main/java/com/telkom/weedu/view/login/LoginPresenter.java | UTF-8 | 1,771 | 2.046875 | 2 | [] | no_license | package com.telkom.weedu.view.login;
import com.telkom.weedu.base.BasePresenter;
import com.telkom.weedu.data.DataManager;
import com.telkom.weedu.data.api.ApiCallback;
import com.telkom.weedu.data.api.model.Profile;
import com.telkom.weedu.data.api.model.request.LoginRequest;
import com.telkom.weedu.data.api.model.re... | true |
c453096d96290bf92948222dd387ad736073831d | Java | zeroLJ/GraduationDesign | /WebProject/VoiceNote/src/database/query/NoteQuery.java | WINDOWS-1252 | 2,149 | 2.40625 | 2 | [] | no_license | package database.query;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import datasourse.BaseEntity;
import datasourse.BaseQuery;
import database.entity.Note;
import datasourse.queryField.StringFieldQuery;
import datasourse.queryField.DateT... | true |
7b1b917ca919835ab03c434469a5ed5a246af983 | Java | FatemaMahmoud/SecureYourFiles | /Encryption_Decryption/src/encryption_decryption/GenerateKeys.java | UTF-8 | 1,740 | 3.125 | 3 | [] | no_license | package encryption_decryption;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.uti... | true |
abfd0fcf9cc5c6580cd5feac5cc3c242db0eb9a7 | Java | centic9/commons-collections | /src/test/java/org/apache/commons/collections4/iterators/IteratorIterableTest.java | UTF-8 | 2,550 | 2.40625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may n... | true |
54c9111fdcec10b024a163b8f4d181fddacd1b68 | Java | chokkoyamada/teachyourselfjava | /src/com/kirishikistudios/Exam4/Exam4_4.java | UTF-8 | 676 | 2.859375 | 3 | [] | no_license | package com.kirishikistudios.Exam4;
/**
* User: yamadanaoyuki
* Date: 2013/04/21
* Time: 19:28
*/
public class Exam4_4 {
public static void main(String args[]) {
fibonnacchi();
replacefor();
}
private static void replacefor() {
int i = 0;
while(i<10){
System... | true |
03e36ea40b108115c331211c7f19bd0a9a5cb54e | Java | gauBep/bc2016-gene | /src/core/genj/option/MultipleChoiceOption.java | UTF-8 | 3,551 | 2.453125 | 2 | [] | no_license | /**
* GenJ - GenealogyJ
*
* Copyright (C) 1997 - 2002 Nils Meier <nils@meiers.net>
*
* This piece of code is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your ... | true |
b968ac3015a41e0254972fa60a8659da740ee396 | Java | olenagerasimova/sm-pcount | /src/main/java/com/olenagerasimova/pcount/GsmValidator.java | UTF-8 | 5,462 | 2.03125 | 2 | [
"MIT"
] | permissive | /*
* MIT License
*
* Copyright (c) 2020 olenagerasimova
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, ... | true |
2a3ccf61de17875b1eb42f6b840bfd7026719130 | Java | jessemull/MicroFlex | /src/main/java/com/github/jessemull/microflex/util/ValUtil.java | UTF-8 | 22,412 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | true |
f690b498f95360ea516650bd20899bc4c353b090 | Java | charles-marques/dataset-375 | /projetos/RESTProvider/src/novoda/lib/rest/actor/TypedActor.java | UTF-8 | 784 | 2.125 | 2 | [] | no_license |
package novoda.lib.rest.actor;
import java.io.IOException;
import novoda.lib.rest.marshaller.MarshallingException;
import novoda.lib.rest.marshaller.net.HttpResponseMarshaller;
import org.apache.http.HttpResponse;
import com.novoda.lib.httpservice.actor.Actor;
public abstract class TypedActor<To, M extends HttpRe... | true |
234b9b3d15c1e2deaf088b36feaa7fcf4bd65f71 | Java | eri-tri89/integration_ju14 | /scrumboard/src/main/java/se/ju14/scrumboard/model/status/PriorityStatus.java | UTF-8 | 109 | 1.609375 | 2 | [] | no_license | package se.ju14.scrumboard.model.status;
/*Unused!*/
public enum PriorityStatus {
URGENT,
NORMAL,
LOW
}
| true |
70b66540edaa0cf6f31b87a6db20092837186b05 | Java | ajao123/DemoTriagem | /demoTriagem/src/main/java/com/example/demo/Controller/TriagemController.java | UTF-8 | 3,898 | 2.25 | 2 | [] | no_license | package com.example.demo.Controller;
import java.time.LocalDate;
import java.util.List;
import java.util.Optional;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEvent... | true |
2a99de8c38f272fd890dffc9db41d9e983ee67cd | Java | VisionLau/Study-By-Myself | /Array-Sort-Study/Array/src/main/java/com/vision/test/TestArray.java | UTF-8 | 864 | 3.1875 | 3 | [] | no_license | package com.vision.test;
import java.util.Arrays;
public class TestArray {
public static void main(String[] args){
//System.out.println(Arrays.toString(getOneCount()));
getOneCount();
}
public static void getOneCount(){
//自定义一个数组 找到该数组中只出现一次的元素
int array[]={1,3,5,7,2,3,5,7,... | true |
5ff06ea528ad499ba983e1cd6e2d883908f47c5a | Java | xrogzu/acheron | /src/main/java/com/dbg/cloud/acheron/plugins/oauth2/authserver/base/introspection/IntrospectionSpec.java | UTF-8 | 1,379 | 2.15625 | 2 | [] | no_license | package com.dbg.cloud.acheron.plugins.oauth2.authserver.base.introspection;
import com.dbg.cloud.acheron.plugins.oauth2.authserver.base.authentication.AuthenticationOperation;
import lombok.AllArgsConstructor;
import org.springframework.boot.web.client.RestTemplateBuilder;
public interface IntrospectionSpec {
In... | true |
43b61738fd428703916a2f986d480d3aeb96a6ab | Java | suetter/gs_j2ee | /MyStore/src/main/java/org/MyStore/bean/ClientBean.java | UTF-8 | 731 | 2.140625 | 2 | [] | no_license | package org.MyStore.bean;
import java.util.Collection;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import org.MyStore.model.Commande;
import org.MyStore.model.Employe;
public class ClientBean {
private Collection<CommandeBean> commandes;
private EmployeBean employe;
... | true |
45e4daf57a45774d07481e3d3b7a5d691fc6c6e3 | Java | suraj115446/DropWizardJwt | /jwtRest/src/main/java/configuration/JwtRestConfiguration.java | UTF-8 | 440 | 1.984375 | 2 | [] | no_license | package configuration;
import org.hibernate.validator.constraints.NotEmpty;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
public class JwtRestConfiguration extends Configuration {
@NotEmpty
private String secretKey;
@JsonProperty
public String getSecretKey() {
re... | true |
aba19a37993ac91432b3b86fa37d422342aa6831 | Java | wanidasa/Easy-Micro | /app/src/main/java/smt/wanida/esymocro/MainActivity.java | UTF-8 | 5,705 | 2.390625 | 2 | [] | no_license | package smt.wanida.esymocro;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import and... | true |
5a093491f388ac0a2510b2cdb28f5041b338ba63 | Java | BGCX262/zsgl-svn-to-git | /zsgl/src/main/java/com/zsgl/controller/JnController.java | UTF-8 | 4,382 | 2.359375 | 2 | [] | no_license | package com.zsgl.controller;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spr... | true |
74d3b27ca42795591915924d3c13308e170d0c6f | Java | wlhebut/synctest | /src/main/java/com/huntech/pvs/view/services/ServRequest.java | UTF-8 | 1,793 | 1.875 | 2 | [] | no_license | package com.huntech.pvs.view.services;
import com.huntech.pvs.view.request.PageRequest;
public class ServRequest extends PageRequest {
private Long id;
private Long baseservTypeid;//baseServ-id
private Long servManid;
private Long servType;//0-baseServ;1-selfServ
private Byte state;//状态1
p... | true |
f1de86d020bf18271030556fe67fd25b77ff0120 | Java | january89/Nettiemon | /src/main/java/server/HandlersApi.java | UTF-8 | 360 | 1.5625 | 2 | [] | no_license | package server;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.hibernate.service.spi.ServiceException;
import server.service.RequestParamException;
interface HandlersApi{
void requestParamValidation() throws RequestParamException;
void service() throws ServiceException;
void executeServ... | true |
afc1b3a6bb04521f6b57a2c03fc3653ea940ea75 | Java | Lacedaemon/S340_Simulator | /src/s340/software/os/ProcessState.java | UTF-8 | 341 | 1.78125 | 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 s340.software.os;
/**
*
* @author rak
*/
//giving the process state
public enum ProcessState {
ready,
end,
wai... | true |
12a5066ea7bd658e92915d60e58814e803d19f9b | Java | zgeorge2/RAD-Squared | /rad2-sb/src/main/java/com/rad2/sb/res/DeferredRequest.java | UTF-8 | 2,009 | 1.953125 | 2 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright (c) 2019-2020 VMware, Inc.
* SPDX-License-Identifier: BSD-2-Clause
*/
package com.rad2.sb.res;
import com.rad2.akka.common.IDeferredRequest;
import com.rad2.apps.adm.ignite.JobStatusEnum;
import com.rad2.ctrl.deps.IJobRef;
import org.springframework.http.ResponseEntity;
import org.springframework.we... | true |
94638d5c68a1acc87dff4ffae882016b43d54670 | Java | myejb22/factory-design | /src/main/java/com/dao/impl/XiaoXingXing.java | UTF-8 | 696 | 2.875 | 3 | [] | no_license | package com.dao.impl;
import com.dao.Person;
/**
* <p></p>
*
* @author Andy
* @date 2018/3/3.
*/
public class XiaoXingXing implements Person {
private String sex = "女";
private String name = "小星星";
public void findByFriend() {
System.out.println("我的名字叫:"+this.name+",性别:"+this.sex);
S... | true |
4c69f37ed7e6ff5ab3b4f1362a35620c33e8fc9c | Java | YngJian/meeting-room-reservation | /code/model/src/main/java/com/vayne/model/model/RegisterReq.java | UTF-8 | 553 | 2.0625 | 2 | [] | no_license | package com.vayne.model.model;
import lombok.Data;
import javax.validation.constraints.*;
/**
* @author : Yang Jian
* @date : 2021/6/28 0028 22:38
*/
@Data
public class RegisterReq {
@NotNull
@Size(min = 1, max = 64)
private String userName;
@NotNull
@Size(min = 1, max = 256)
private Stri... | true |
8e14b219bb1919569a13fc695eaa9ac7cc55357f | Java | jcc1110/carrera-java | /Modulo01_FundamentosDeJava/AnthonyHurtado/Proyectos/Excepciones/src/excepciones/MiExcepcion.java | UTF-8 | 257 | 2.640625 | 3 | [
"MIT"
] | permissive | package excepciones;
// Extendemos de la clase Exception o RuntimeException
public class MiExcepcion extends Exception {
// Declaro mi constructor y llamo al constructor padre.
public MiExcepcion(String _mensaje) {
super(_mensaje);
}
}
| true |
90c0750038ea5231196870bea0500bfaa45517be | Java | gabrielzanin150/cadastrar | /src/cadastro/view.java | ISO-8859-1 | 6,190 | 2.75 | 3 | [] | no_license | package cadastro;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.text.MaskFormatter;
import javax.swing.JButton;
import java.awt.event.Actio... | true |
ef171c60b58eb827480b48b4c159f1794ba7f9b7 | Java | trungnguyenduy139/houston123 | /app/src/main/java/com/trungnguyen/android/houston123/bus/DeletedUserEvent.java | UTF-8 | 327 | 2.0625 | 2 | [] | no_license | package com.trungnguyen.android.houston123.bus;
/**
* Created by trungnd4 on 21/10/2018.
*/
public class DeletedUserEvent {
private int userPosition;
public DeletedUserEvent(int userPosition) {
this.userPosition = userPosition;
}
public int getUserPosition() {
return userPosition;
... | true |
460a6dea34e8bce672fdec102dd6b4c8347f6013 | Java | catalinadg98/proyectoJAVA | /src/Alumno.java | UTF-8 | 680 | 2.71875 | 3 | [] | no_license | /*public abstract class Alumno extends Persona {
private String matricula;
private String gene;
private Materia materias[];
public Alumno(){
matricula="";
gene="";
materias = new Materia[6];
}
public Alumno(String nombre, String fechaNac, char genero, String matricula, S... | true |
b1ff74b0cf048777cf7d515cb4d980b1aa7139c9 | Java | nickbouldien/fizzbuzz-java | /src/main/java/fizzbuzz/FizzBuzzTest.java | UTF-8 | 1,972 | 2.953125 | 3 | [] | no_license | package fizzbuzz;
import java.util.HashMap;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
public class FizzBuzzTest {
public FizzBuzz fizzbuzz = new FizzBuzz();
@Test
public void testReturnsCorrectResults1() {
HashMap<String, Integer> expectedResult = new... | true |
5e9beeef7197aad6df5312b965036bd97105ed58 | Java | jcxavier/pong-gl | /src/com/jcxavier/game/gl/player/Player.java | UTF-8 | 502 | 2.921875 | 3 | [] | no_license | package com.jcxavier.game.gl.player;
import com.jcxavier.game.gl.logic.Pad;
/**
* Created on 10/07/2013.
*
* @author João Xavier <jcxavier@jcxavier.com>
*/
public abstract class Player {
final Pad mPad;
private int mPoints;
Player(Pad pad) {
mPad = pad;
mPoints = 0;
}
public ... | true |
3b2e7780a5c2cf7acc8576b397ea046da1775bcf | Java | jaaasonwu/playgroundideas | /app/src/main/java/com/playgroundideas/playgroundideas/di/screens/ViewModelModule.java | UTF-8 | 1,946 | 1.773438 | 2 | [] | no_license | package com.playgroundideas.playgroundideas.di.screens;
import android.arch.lifecycle.ViewModel;
import android.arch.lifecycle.ViewModelProvider;
import com.playgroundideas.playgroundideas.viewmodel.DesignListViewModel;
import com.playgroundideas.playgroundideas.viewmodel.DesignViewModel;
import com.playgroundideas.p... | true |
8c4aea364ac8a1a5b944c98ef942008ef81d0e16 | Java | nnn7h/AppMonitor | /app/src/main/java/hook/xposed/XViewGroup.java | UTF-8 | 1,889 | 2.03125 | 2 | [] | no_license | package hook.xposed;
import android.view.View;
import android.view.ViewGroup;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedHelpers;
import de.robv.android.xposed.callbacks.XC_LoadPackage;
import util.Logger;
public class XViewGroup extends XHook {
private static final String c... | true |
93ec51a77a58550957b0dc58d4fbc5ecd353b3c1 | Java | zhongxingyu/Seer | /Diff-Raw-Data/15/15_2c037a140bf91d18292bbc3af58f533805d1f6f3/Flattenizer/15_2c037a140bf91d18292bbc3af58f533805d1f6f3_Flattenizer_s.java | UTF-8 | 7,673 | 2.5625 | 3 | [] | no_license | package com.excitedmuch.csm.ml.poker;
import java.io.File;
import java.io.FileNotFoundException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.M... | true |
f4ef72717d549da7cc854c09e945311ed53a3ffa | Java | D-a-r-e-k/Code-Smells-Detection | /Preparation/processed-dataset/data-class_1_180/header.java | UTF-8 | 12,170 | 3.28125 | 3 | [] | no_license | void method0() {
/**
Little trick to allow for "aliasing", that is, renaming this class.
Writing code like
<p>
<tt>Functions.chain(Functions.plus,Functions.sin,Functions.chain(Functions.square,Functions.cos));</tt>
<p>
is a bit awkward, to say the least.
Using the aliasing you can instead write
<p>
<tt>Functi... | true |
e03bcddc2a69481bcffe39dfb1c810b797203427 | Java | MarcoAG-115/Cardholders | /Cardholder.java | UTF-8 | 7,479 | 3.453125 | 3 | [] | no_license | import java.util.Arrays;
import java.text.DecimalFormat;
/**
* This class outputs information
* about a user's account. The
* information deals with their
* balance, category, account number,
* purchases, and purchase points.
*
* Project 11
* Marco Gonzalez - COMP1210 - 010
* 12/05/2018
*/
public abstract cl... | true |
15e5b682a9d37f728c86fec428ec9a06fc4e9ac0 | Java | wwjiang007/yugabyte-db | /managed/src/main/java/com/yugabyte/yw/forms/PlatformLoggingConfig.java | UTF-8 | 525 | 1.765625 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"OpenSSL"
] | permissive | // Copyright (c) YugaByte, Inc.
package com.yugabyte.yw.forms;
import javax.annotation.Nullable;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.slf4j.event.Level;
@Data
public... | true |
4d4e690107512d12896bfc517f54d1df3f86b62e | Java | YongfuHou/network-management-platform | /java web client/src/servlet/DoStrategy.java | GB18030 | 2,035 | 2.53125 | 3 | [] | no_license | package servlet;
import java.io.IOException;
import java.io.PrintWriter;
import strategy.*;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.serv... | true |
a36ce3b0d8c548164108feb7c1995853b52c2c01 | Java | kanison/finance | /zcb_app/finance/service/dao/src/main/java/com/zhaocb/zcb_app/finance/service/dao/FinanceDAO.java | UTF-8 | 918 | 1.796875 | 2 | [] | no_license | package com.zhaocb.zcb_app.finance.service.dao;
import com.zhaocb.zcb_app.finance.service.facade.dataobject.AdvanceTypeConfigDO;
import com.zhaocb.zcb_app.finance.service.facade.dataobject.SpBizConfigDO;
import com.zhaocb.zcb_app.finance.service.facade.dataobject.SpConfigDO;
import com.zhaocb.zcb_app.finance.service.... | true |
fea5321c9f5edfb0cb2ac9b972c6793ae8afd982 | Java | marioosh-net/JSF2.0-Hello-World | /src/main/java/com/mkyong/common/HelloBean.java | UTF-8 | 1,449 | 2.171875 | 2 | [] | no_license | package com.mkyong.common;
import java.io.Serializable;
import java.util.Date;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.a... | true |
28c1b7557f4ee287e46bf10013d6d0e284f36433 | Java | y897356576/nginxCase | /src/main/java/com/EhcacheUtil.java | UTF-8 | 402 | 2.140625 | 2 | [] | no_license | package com;
import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;
/**
* Created by 石头 on 2017/6/25.
*/
public class EhcacheUtil {
private static CacheManager cacheManager;
public static Cache getCache(String cacheName){
if(cacheManager == null){
cacheManager = CacheManager.... | true |
c5709acf9b90a64ab25addf251ddd8643fe48894 | Java | ukong/ds_demo | /ds_pindao/src/main/java/cn/dataguru/dianshang/service/RedisService.java | UTF-8 | 2,087 | 2.046875 | 2 | [] | no_license | package cn.dataguru.dianshang.service;
import cn.dataguru.dianshang.entity.ProductTotal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.Req... | true |