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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fa202b3955d8e25ed1c0231031393a403d37c6d4 | Java | rbaljinder/ui-presenter | /presenter/presenter-core/src/main/java/org/baljinder/presenter/util/ReflectionUtils.java | UTF-8 | 1,451 | 2.734375 | 3 | [] | no_license | /**
*
*/
package org.baljinder.presenter.util;
import java.lang.reflect.Field;
import org.apache.commons.beanutils.PropertyUtils;
import org.apache.commons.lang.StringUtils;
/**
* @author Baljinder Randhawa
*
*/
public class ReflectionUtils {
public static Class<?> getFieldTypeOfClass(Class<... | true |
5f59b8601a5c8bb36d358d8a9e37e9bef8acef86 | Java | korantengNanaYaw/sokoPayOne | /app/src/main/java/com/worldsoko/sokopay/Activities/Register.java | UTF-8 | 2,179 | 2.015625 | 2 | [] | no_license | package com.worldsoko.sokopay.Activities;
import android.content.Intent;
import android.hardware.fingerprint.FingerprintManager;
import android.support.v4.hardware.fingerprint.FingerprintManagerCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.vi... | true |
3ac973b40db6c845d06463b7bef0d55243d91f33 | Java | son5941/java2104 | /FirstJava/src/com/example/third/Array.java | UTF-8 | 1,454 | 4.09375 | 4 | [] | no_license | package com.example.third;
import java.util.Scanner;
public class Array {
public static void main(String[] args) {
//배열 선언
//
//.자료형 [ ] 배열의 이름 = new 자료형[배열의 크기, 갯수 ]
//
//.자료형 배열이름[ ] = new 자료형 [배열 크기, 갯수 ]
//
//int [ ] arrey = new int [ 3 ] //arrey이름으로 arrey 1, arrey2, arrey 3로 만들어짐
//arrey[0]... | true |
4e871fb537e511e149cb2c901a75f1cacdfb898d | Java | ash311/PS1 | /src/pkgMain/Rectangle.java | UTF-8 | 307 | 3.15625 | 3 | [] | no_license | package pkgMain;
public class Rectangle {
public static void main (String[] args)
{
double Length = 4.6;
double Width = 8.7;
double area = Length*Width;
// TODO Implement Area() function with the correct formula
System.out.println("The area for the rectangle is "+area);
}
}
| true |
0a80812c1420ca2350fcc59fbb64246ec6ba7359 | Java | spreadshirt/dialogflow-client | /src/main/java/com/dialogflow/client/model/WebhookResponse.java | UTF-8 | 740 | 1.773438 | 2 | [
"MIT"
] | permissive | package com.dialogflow.client.model;
import com.dialogflow.client.EventInput;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class WebhookResponse {
@JsonProperty
St... | true |
c0a7db09a801d2842e0927978722de8e8a2af760 | Java | cheriduk/spring-boot-ajax | /spring-boot-ajax/src/main/java/com/dk/ajax/demo/service/UserService.java | UTF-8 | 5,334 | 2.5 | 2 | [] | no_license | package com.dk.ajax.demo.service;
import com.dk.ajax.demo.dao.UserDao;
import com.dk.ajax.demo.dao.mapper.UserMapper;
import com.dk.ajax.demo.model.User;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframe... | true |
b1478e196c31d1559eabbab9ffb9486755ed0a62 | Java | zasadna/QAJavaSpring2021 | /HW6-advanced-level/src/main/java/com/epam/test/automation/java/practice6/SalesPerson.java | UTF-8 | 1,005 | 3.015625 | 3 | [] | no_license | package com.epam.test.automation.java.practice6;
import java.math.BigDecimal;
public class SalesPerson extends Employee {
private int percentOfSalesTargetsPlan;
public SalesPerson(String lastName, BigDecimal salary, int percentOfSalesTargetsPlan) {
super(lastName, salary);
this.percentOfSale... | true |
d0034506738764b5463f1b8dfce09e8737faaea1 | Java | ZhongDaPan/zdpApplication | /Doctor/app/src/main/java/com/newdjk/doctor/views/DisplayUtil.java | UTF-8 | 1,364 | 2.375 | 2 | [] | no_license | package com.newdjk.doctor.views;
import android.content.Context;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.Display;
import android.view.WindowManager;
import java.lang.reflect.Field;
import static android.util.Log.w;
/**
* Created ... | true |
11d90872f3812c914bc11d1b5e2fd84c197d4a41 | Java | NCU-Anti-Java/Marjio | /Application/src/main/java/io/github/antijava/marjio/window/WindowMessage.java | UTF-8 | 1,725 | 2.5 | 2 | [] | no_license | package io.github.antijava.marjio.window;
import io.github.antijava.marjio.common.IApplication;
import io.github.antijava.marjio.common.IInput;
import io.github.antijava.marjio.common.graphics.IBitmap;
import io.github.antijava.marjio.common.input.Key;
import io.github.antijava.marjio.constant.GameConstant;
import io.... | true |
35708d18fe280d49896f81cc070ac129c8b70cd3 | Java | samuelvazcal/Java-RelearningSessions-Exercises | /Section16/src/com/samuelvazquez/mix/example2/Main2.java | UTF-8 | 4,028 | 3.828125 | 4 | [] | no_license | package src.com.samuelvazquez.mix.example2;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class Main2 {
public static void main(String[] args) {
Employee jim = new Employee("Jim",28,500);
Employee pam = new Employee("Pam",26,35... | true |
972ccc35bb189ca75f844596f853e77a634833dd | Java | tassianebarros/EDA | /EDA - Lista de Prioridades/EDAAlunos/src/br/ufc/quixada/eda/hash/Elemento.java | UTF-8 | 494 | 2.78125 | 3 | [] | no_license | package br.ufc.quixada.eda.hash;
public class Elemento {
private int valor;
private int indiceProximo;
public Elemento(){
indiceProximo = -1;
}
public Elemento(int valor){
this.valor = valor;
indiceProximo = -1;
}
public int getValor() {
return valor;
}
public void setValor(int valor) {
this... | true |
81ea0ec772add5a98251c7fba6604a5f0dea9850 | Java | Mrlang/code | /src/ThinkInJava/Topic_21_Thread/class_21_4_2_interrupt.java | UTF-8 | 816 | 3.234375 | 3 | [] | no_license | package ThinkInJava.Topic_21_Thread;
import org.junit.Test;
/**
* Created by Mr_liang on 2017/2/21 using IDEA.
*/
public class class_21_4_2_interrupt {
public static void main(String args[]) {
new Thread(){public void run(){new test().f1(10);}}.start();
}
@Test
public void test(){
i... | true |
ff9d26469d51ba0b5855b4047b2244de7336696a | Java | aamattos/GMF-Tooling-Visual-Editor | /org.msl.simple.gmfmap.model/src-gen/org/msl/simple/gmfmap/simplemappings/SimpleMapping.java | UTF-8 | 5,730 | 1.789063 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.msl.simple.gmfmap.simplemappings;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.gmf.gmfgraph.Canvas;
import org.eclipse.gmf.mappings.Mapping;
import org.eclipse.gmf.tooldef.Palette;
/**
* <!-... | true |
8e02ec4c50ecb2f253ae29aef6e330367bbaf3d5 | Java | VassilisSoum/wad | /src/main/java/wad/App.java | UTF-8 | 3,003 | 2.328125 | 2 | [
"MIT"
] | permissive |
package wad;
import com.airhacks.wad.boundary.WADFlow;
import com.airhacks.wad.control.Configurator;
import com.airhacks.wad.control.WarNameProvider;
import com.airhacks.wad.control.WatchPathsProvider;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Path;
import java... | true |
6dceb9c23fec54b8926ac32e6bcd34219056ded5 | Java | alejo85/miprimerproyecto13 | /Client/src/ClasesLogicas/Subronda.java | UTF-8 | 1,281 | 2.890625 | 3 | [] | no_license | package ClasesLogicas;
public class Subronda {
private Encuentro [] encuentros;
private int idSubronda;
private boolean estado;
public Subronda() {
super();
}
public Subronda(Encuentro[] encuentros, int idSubronda) {
super();
this.encuentros = encuentr... | true |
ce7c3af13bf4d625c6a62e97b7b392b293c808a5 | Java | Kelvin023/QSMarmitex | /src/java/model/Marmita.java | UTF-8 | 1,124 | 2.21875 | 2 | [] | no_license | package model;
import java.util.Date;
public class Marmita {
private int cd_nr_marmita;
private String ds_ingredientes;
private Float preco;
private String nomeMarmita;
private int st_cardapio;
public int getCd_nr_marmita() {
return cd_nr_marmita;
}
... | true |
838c745635e1ca6e2e6a23a85f88368d7755b667 | Java | ezhov-da/quick-hints-desktop-app | /src/main/java/ru/ezhov/note/variable/domain/Variable.java | UTF-8 | 980 | 2.625 | 3 | [] | no_license | package ru.ezhov.note.variable.domain;
import ru.ezhov.note.domain.NoteId;
import java.util.Objects;
public class Variable {
private NoteId noteId;
private VariableName name;
private VariableValue value;
public Variable(NoteId noteId, VariableName name, VariableValue value) {
this.noteId = n... | true |
93ac3045af595d9c0a18cc8ef0985808fd6b0599 | Java | sscheiner/COSC436Assignment4 | /src/project/TaxComputationClasses/ForNameTest.java | UTF-8 | 1,374 | 3.3125 | 3 | [] | no_license | package project.TaxComputationClasses;
import java.util.HashMap;
public class ForNameTest {
private static HashMap taxCompClasses = new HashMap<String, Class>();
public static void main(String[] args) {
Class tax_class;
try{
tax_class = Class.forName("TaxComputationCl... | true |
a90a9bd53c87f98ff56f80399689b4d303f6727f | Java | reed07/MyPreferencePal | /jadx-MFP/src/main/java/com/inmobi/commons/core/configs/d.java | UTF-8 | 201 | 1.5625 | 2 | [] | no_license | package com.inmobi.commons.core.configs;
/* compiled from: ConfigError */
final class d {
int a;
String b;
public d(int i, String str) {
this.a = i;
this.b = str;
}
}
| true |
bb9b4c3b4b32dc9b07155acc2904455493119126 | Java | zqianyi/coffeeserve1 | /src/com/city/coffeeserve/admin/business/impl/FoodImpl.java | UTF-8 | 1,860 | 2.3125 | 2 | [] | no_license | package com.city.coffeeserve.admin.business.impl;
import java.util.ArrayList;
import java.util.List;
import com.city.coffeeserve.admin.business.IFood;
import com.city.coffeeserve.admin.dao.IFooddao;
import com.city.coffeeserve.admin.dao.impl.FoodDaoImpl;
import com.city.coffeeserve.admin.factory.DaoFactory;
import co... | true |
422b1dff797a80402220b98327a60f64fa34df75 | Java | john77eipe/SpringSecurityDrills | /securestore-web-with-db-auth-4/src/main/java/com/securestore/config/AuthenticationSuccessHandlerImpl.java | UTF-8 | 1,618 | 2.328125 | 2 | [] | no_license | package com.securestore.config;
import java.io.IOException;
import java.util.Collection;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.core.Authentication;
import org.springframework.se... | true |
2329e40f2dda1bf077a41e9c7c233c8da79e7ea1 | Java | maxdos28/magmeweb | /src/main/java/cn/magme/web/action/widget/WidgetSearchAction.java | UTF-8 | 4,459 | 1.976563 | 2 | [] | no_license | /**
* Copyright ® 2010 Shanghai Magme Co. Ltd.
* All right reserved.
*/
package cn.magme.web.action.widget;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.apache.struts2.ServletActio... | true |
a5d98745213b476d3bfcd91cc0f3010ce1b363ba | Java | AndreasVikke-School/CPH-Business-ExamPrep2 | /Backend/src/main/java/entities/Category.java | UTF-8 | 1,155 | 2.3125 | 2 | [] | no_license | package entities;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
/**
*
* @author Andreas Vikke
*/
@Entity
public class Category i... | true |
a271000f063df030322a405bee4ec0668f39e187 | Java | YueniLiu/bus | /plannist/Network.java | UTF-8 | 15,589 | 2.546875 | 3 | [] | no_license |
package plannist;
import java.util.Calendar;
import java.util.Random;
import java.util.Vector;
import java.math.*;
public class Network {
static Vector<Bus> buses1 = new Vector<Bus>();
static Vector<Bus> buses2 = new Vector<Bus>();
static String tripID1;
static String tripID2;
static int miniRestTi... | true |
55a13dae87bdd8b2fe3a83ea054ffc0303ef3e40 | Java | AndersonS001/iPet | /src/test/java/com/mycompany/myapp/domain/RemediosTest.java | UTF-8 | 697 | 2.21875 | 2 | [] | no_license | package com.mycompany.myapp.domain;
import static org.assertj.core.api.Assertions.assertThat;
import com.mycompany.myapp.web.rest.TestUtil;
import org.junit.jupiter.api.Test;
class RemediosTest {
@Test
void equalsVerifier() throws Exception {
TestUtil.equalsVerifier(Remedios.class);
Remedios... | true |
105fabd5cdfa2a6abc847cd5f049f55176b37e35 | Java | huoxiaoyao/P2pRocks | /SimpleP2P/app/src/main/java/ch/ethz/inf/vs/a4/simplep2p/MainActivity.java | UTF-8 | 1,211 | 2.3125 | 2 | [] | no_license | package ch.ethz.inf.vs.a4.simplep2p;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.ToggleButton;
public class MainActivity extends AppCompatActivity {
private ToggleBu... | true |
d5473aeae6750125ffc1a5718686d4ea1b7b270a | Java | leeho203/PagingPractice | /src/main/java/com/myproject/vo/SearchPageVO.java | UTF-8 | 405 | 2.0625 | 2 | [] | no_license | package com.myproject.vo;
public class SearchPageVO extends PageVO {
String searchType;
String keyword;
/* getter */
public String getSearchType() {
return searchType;
}
public String getKeyword() {
return keyword;
}
/* setter */
public void setSearchType(String searchType) {
this.searchType = searc... | true |
7b51570d230e28c0ff9579f1cbef6e9be26b5c34 | Java | annicoletti/avm-sdk | /src/main/java/br/com/cpqd/avm/sdk/v1/model/to/ResponseAvmErrorTO.java | UTF-8 | 601 | 1.71875 | 2 | [] | no_license | package br.com.cpqd.avm.sdk.v1.model.to;
@Deprecated
public class ResponseAvmErrorTO extends ResponseAvmTO {
private static final long serialVersionUID = -4588269257222094048L;
private String code;
private String message;
public ResponseAvmErrorTO(String requestId) {
super.requestId = requestId;
... | true |
4398cc827dcb101e9eb862b8177bcefb99d1e216 | Java | 18338739892/parserHtml | /src/main/java/com/pkk/test/menutest/EnumTest3_1.java | UTF-8 | 519 | 3.203125 | 3 | [] | no_license | package com.pkk.test.menutest;
/**
* Created by peikunkun on 2017/11/4 0004.
*/
public enum EnumTest3_1 {
MALE("男"), FEMAIL("女");
private final String name;
private EnumTest3_1(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
class EnumTest3_... | true |
43547389ef96243a9d0dd8dfdbd02eca67f61134 | Java | jijianfeng/gtsafe | /gtsafe/src/main/java/com/zlzkj/app/service/LogImageService.java | UTF-8 | 370 | 1.71875 | 2 | [] | no_license | package com.zlzkj.app.service;
import java.util.Map;
import com.zlzkj.app.model.Docs;
import com.zlzkj.app.model.LogImage;
public interface LogImageService {
public int add(LogImage LogImage);
public int update(LogImage logImage);
public void del(int id);
public Map<String, Object> getLogImageList(Map<String,... | true |
b256af0a00687bfae67d87237beb26a9f10166bc | Java | putyatinskii/lab-2 | /Offer_Service/src/main/java/org/offer_service/OfferServiceApplication.java | UTF-8 | 1,418 | 2.296875 | 2 | [] | no_license | package org.offer_service;
import org.offer_service.entities.Category;
import org.offer_service.entities.Characteristic;
import org.offer_service.entities.Offer;
import org.offer_service.repositories.CategoryRepository;
import org.offer_service.repositories.CharacteristicRepository;
import org.offer_service.repositori... | true |
9a453ea724459a9a55ca64717c2a230295f04012 | Java | a-craciun/Test | /src/com/company/RemoveIntFromArray.java | UTF-8 | 718 | 3.75 | 4 | [] | no_license | package com.company;
import java.util.Arrays;
public class RemoveIntFromArray {
//Write a program to remove all occurrences of a specified value in a given array of integers and return the new array. There can be duplicates in the array.
public static int[] removeElements(int[] arr, int key)
{
in... | true |
4289c8f2fe46f4a890d8680bde60c57f7eb92a31 | Java | opelayoa/ticket_doctor_express_old | /app/src/main/java/com/tiendas3b/ticketdoctor/services/SyncCatalogsServices.java | UTF-8 | 24,372 | 1.601563 | 2 | [] | no_license | package com.tiendas3b.ticketdoctor.services;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.tiendas3b.ticketdoctor.GlobalState;
import com.tiendas3b.ticketdoctor.R;
import com.tiendas3b.ticketdoctor.db.dao.Access;
import com.tiendas... | true |
2bbe9adbd6353cd8ff8a33d97027fdbe27c5cc10 | Java | dattap1977/WorkflowEngine | /src/com/util/Constants.java | UTF-8 | 210 | 1.59375 | 2 | [] | no_license | package com.util;
public class Constants {
public static final String USERNAME = "root";
public static final String PASSWORD = "krispass2019";
public static final String DBNAME = "workflowengine";
}
| true |
cf160ec5ec5151f6efdcb113f992f10b774b8002 | Java | purustech/CoreJava | /com/purustech/learning/threads/ThreadExampleUsingThread.java | UTF-8 | 1,538 | 3.984375 | 4 | [] | no_license | package com.purustech.learning.threads;
public class ThreadExampleUsingThread {
public static void main(String[] args) {
System.out.println("In main thread");
System.out.println(Thread.currentThread().getName());
// using Thread class
MyThread myThreadUsingThread = new MyThread();... | true |
df1880843a7ed0325486a25a089a8dcb8ba88f57 | Java | msmtmsmt123/jadx-1 | /f737922a0ddc9335bb0fc2f3ae5ffe93_source_from_JADX/com/aide/ui/build/android/b.java | UTF-8 | 19,873 | 1.625 | 2 | [] | no_license | package com.aide.ui.build.android;
import android.os.Handler;
import com.aide.common.m;
import com.aide.engine.SyntaxError;
import com.aide.ui.build.d;
import com.aide.ui.build.packagingservice.b.a;
import com.aide.ui.e;
import com.aide.ui.h;
import it;
import it$a;
import java.io.File;
import java.io.IOException;
imp... | true |
9cd6626b5edfe046c1b482ba7ea571e8da790002 | Java | umitzngn/testng | /src/main/java/org/testng/xml/IFileParser.java | UTF-8 | 215 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | package org.testng.xml;
import org.testng.TestNGException;
import java.io.InputStream;
public interface IFileParser<T> {
T parse(String filePath, InputStream is, boolean loadClasses) throws TestNGException;
}
| true |
cdceaa97dfc9207726c141be748b9c53b358cf86 | Java | zj-jason/OmniGraph | /src/main/java/com/todense/viewmodel/algorithm/TestTask.java | UTF-8 | 284 | 1.867188 | 2 | [] | no_license | package com.todense.viewmodel.algorithm;
import javafx.concurrent.Task;
public class TestTask extends Task<Void> {
@Override
protected Void call() throws Exception {
return null;
}
@Override
protected void running() {
super.running();
}
}
| true |
b5b0cab3d464aeb1f41f05a4432bea76c1b1f733 | Java | rupeshpatil/springboot | /SpringbootJPA/src/main/java/com/capgemini/demo/controller/EmployeeController.java | UTF-8 | 1,205 | 2.53125 | 3 | [] | no_license | package com.capgemini.demo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.Mode... | true |
11b7ef3b2d01cb1b2109f0a709c5a5cfe415424f | Java | acujwal/SpringBootFizzBuzz | /src/main/java/com/example/fizzbuzz/HomeController.java | UTF-8 | 1,342 | 2.671875 | 3 | [] | no_license | package com.example.fizzbuzz;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework... | true |
062c081151b376f66a309831bbb5423a175e1d9a | Java | miyantara7/SpringsParkiran | /src/main/java/com/lawencon/springparkiran/dao/impl/jpa/KendaraanDaoImpl.java | UTF-8 | 1,538 | 2.09375 | 2 | [] | no_license | package com.lawencon.springparkiran.dao.impl.jpa;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.lawencon.springparkiran.dao.KendaraanDao;
import com.lawencon.springparkiran.model.Kendaraan;
@Repository("ken_repo_jpa")... | true |
3ca868bc3e4dbc037783fbdd68e117f73ef9ca0e | Java | ralts00/twwing | /TechCrunch/Server/TCSInterface/src/twi/tcsi/rest/IStatus.java | UTF-8 | 177 | 1.796875 | 2 | [] | no_license | package twi.tcsi.rest;
import java.util.List;
public interface IStatus {
static List<Status> statusInstance = null;
public List<Status> getStatusInstance();
}
| true |
82ccf508feb817c7bf46b749c0d165cbe4c3651f | Java | AlexandrKananadze/My_projects | /src/_Lessons_Basic/src/Comparator/newclass (2021_05_17 11_23_30 UTC).java | UTF-8 | 1,598 | 3.046875 | 3 | [] | no_license | package Comparator;
import javax.swing.text.html.parser.Entity;
import java.util.*;
import java.util.Map.Entry;
public class newclass {
public static void main(String[] args) {
Scanner console = new Scanner(System.in);
String str = console.nextLine();
String [] st = str.split(" ");
... | true |
2b4be5f3314af7041382b50f62059c64d72a15f2 | Java | bellmit/mall-2 | /gulimall-thrid-party/src/test/java/com/example/gulimall/thridparty/GulimallThridPartyApplicationTests.java | UTF-8 | 1,651 | 2.375 | 2 | [] | no_license | package com.example.gulimall.thridparty;
import com.aliyun.oss.OSS;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
@SpringBootTest
class GulimallThridPartyApplicationTest... | true |
77c17569bd14a550320935a4384e8b82ecf340e1 | Java | qiaopeichen/EffectiveJava | /9.覆盖equals时总要覆盖hashCode.java | UTF-8 | 3,642 | 3.671875 | 4 | [] | no_license | // 考虑一下PhoneNumber类,它的equals方法是根据第8条中给出的“诀窍”构造出来的
public final class PhoneNumber {
private final short areaCode;
private final short prefix;
private final short lineNumber;
public PhoneNumber(int areaCode, int prefix, int lineNumber) {
rangeCheck(areaCode, 999, "area code");
rangeCheck(prefix, 999, "prefix");
... | true |
4d7b3d2ea3f305f7a39bdb42062983afd4846316 | Java | RobertHSchmidt/jedit | /plugins/FTP/tags/release-0-7-9/ftp/FtpPlugin.java | UTF-8 | 4,378 | 1.960938 | 2 | [] | no_license | /*
* FtpPlugin.java - Main class of FTP plugin
* :tabSize=8:indentSize=8:noTabs=false:
* :folding=explicit:collapseFolds=1:
*
* Copyright (C) 2000, 2003 Slava Pestov
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by... | true |
0726815cc69996adef18fbfede58f2951cd6f5bd | Java | weipengyi123/java_base | /src/com/thread/Thread_test3.java | UTF-8 | 1,179 | 3.8125 | 4 | [] | no_license | package com.thread;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
class MyThread3 implements Callable<Object> {
@Override
public Integer call() throws Exception {
int i = 0;
while (i++ < 15) {
System.out.println(Thre... | true |
d0387145f4f438aeb15f5f3602e1d14c10c286ef | Java | 76260865/usedcar | /src/com/jason/usedcar/fragment/CarMilesChooseFragment.java | UTF-8 | 1,654 | 2.234375 | 2 | [] | no_license | package com.jason.usedcar.fragment;
import java.util.ArrayList;
import android.app.Dialog;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.wid... | true |
101be7b3e0e8b7da941e2eb3763e6c762909e1e7 | Java | agjacome/httpserver-web-test | /src/main/java/com/github/agjacome/httpserver/server/http/HttpResponse.java | UTF-8 | 418 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.github.agjacome.httpserver.server.http;
import java.io.OutputStream;
import java.util.Optional;
import com.github.agjacome.httpserver.util.CaseInsensitiveString;
public interface HttpResponse {
public HttpStatusCode getStatusCode();
public long getContentLength();
public Optional<HttpHeade... | true |
8da0e8e9a56d86607f737c42fd84bd947ccdd19d | Java | ferro-sudo/Java | /src/Repl/q182_CleanString.java | UTF-8 | 160 | 2.1875 | 2 | [] | no_license | package Repl;
public class q182_CleanString {
public static String clean (String text ,String badWord) {
return text.replace(badWord, "");
}
}
| true |
29615846eb21d0229bedbad07a8859b547948eb2 | Java | felipe-barata/puc_ASD | /consultoria/src/main/java/br/com/sigo/consultoria/dtos/ListaArquivosContratosDTO.java | UTF-8 | 352 | 1.609375 | 2 | [] | no_license | package br.com.sigo.consultoria.dtos;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ListaArquivosContratosDTO implements Serializable {
private int id;
... | true |
c7ebf56030650cbef1e50f7597904899f628bbf4 | Java | rincostante/impresionGel | /src/main/java/ar/gob/ambiente/aplicaciones/entities/Inmueble.java | UTF-8 | 7,313 | 1.882813 | 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 ar.gob.ambiente.aplicaciones.entities;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Col... | true |
5bc68945df432d2dc9c1993a77947d2cdb5f79a2 | Java | NguyenVanAnh1989/restaurant | /src/main/java/com/restaurant/c1603g/Constant/ManageQueries.java | UTF-8 | 1,359 | 1.8125 | 2 | [] | no_license | package com.restaurant.c1603g.Constant;
public class ManageQueries {
// SQL for Receptionist
public static final String GET_RECEPTIONIST = "SELECT * FROM tblReceptionist WHERE id = ?";
public static final String GET_RECEPTIONIST_BY_NAME = "SELECT * FROM tblReceptionist WHERE name LIKE ?";
public static final ... | true |
b21e781eaed12bd7dd9f6e0716fbfe8d78d5d40d | Java | mehdishz11/BoomBoom | /app/src/main/java/psb/com/kidpaint/competition/leaderBoard/adapter/Adapter_LeaderShip.java | UTF-8 | 1,178 | 2.109375 | 2 | [] | no_license | package psb.com.kidpaint.competition.leaderBoard.adapter;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import psb.com.kidpaint.R;
import psb.com.kidpaint.competition.leaderBoard.PLeaderShip;
/**
* Created by morteza o... | true |
8436fc2dfe06d1e58d7d1241ee2c9a5fe172e1a6 | Java | jyesares/firma_digital | /src/model/Potencia.java | UTF-8 | 838 | 2.84375 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package model;
import java.math.BigInteger;
/**
*
* @author javiyesares
*/
public class Potencia {
public static BigInteger calculaPotencia(BigInteger a,BigInteger m,BigInteger n)
{
BigInteg... | true |
82a30402dc92edab7e6fb5a6a70d67efa3bc2bf3 | Java | PetroAndrushchak/EpamFinal | /ITMount/src/com/epam/project/controller/faq/IndexFaq.java | UTF-8 | 925 | 2.015625 | 2 | [] | no_license | package com.epam.project.controller.faq;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.epam.project.command.Action;
import com.epam.project.db.model.Article;
import com.... | true |
e28a37c0c1e16123548ea819b681457ec174a649 | Java | Bhagyashri2000/LeetCode-June | /1: Invert Binary Tree/Solution.java | UTF-8 | 1,435 | 3.734375 | 4 | [] | no_license | /**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode() {}
* TreeNode(int val) { this.val = val; }
* TreeNode(int val, TreeNode left, TreeNode right) {
* this.val = val;
* this.left = left;
* ... | true |
2ae8129463419ce30ca19b5ce1b479a14faff104 | Java | Ning-chuan/LearnJava | /BankingSystem_Mysql/src/dao/AtmDao.java | UTF-8 | 3,307 | 2.671875 | 3 | [] | no_license | package dao;
import domain.User;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class AtmDao {
private String className = "com.mysql.cj.jdbc.Driver";
private String url = "jdbc:mysql://localhost:3306/atm?serverTimezone=CST";
... | true |
070ee9e275fb271fb2f444fde3c70d1f4e113361 | Java | D-Yip/spike | /src/main/java/com/ysj/spike/service/impl/SpikeServiceImpl.java | UTF-8 | 2,527 | 2.296875 | 2 | [] | no_license | package com.ysj.spike.service.impl;
import com.ysj.spike.domain.OrderInfo;
import com.ysj.spike.domain.SpikeOrder;
import com.ysj.spike.redis.RedisService;
import com.ysj.spike.redis.impl.SpikeKey;
import com.ysj.spike.service.GoodsService;
import com.ysj.spike.service.OrderService;
import com.ysj.spike.service.SpikeS... | true |
e0a908d8673bf9f5a70753aaa5ba4620ee7a8094 | Java | evanluo1988/risk-management | /user_model/src/main/java/com/springboot/mapper/BaseDaoImpl.java | UTF-8 | 1,017 | 2.34375 | 2 | [] | no_license | package com.springboot.mapper;
import org.apache.ibatis.session.SqlSession;
import javax.annotation.Resource;
/**
* Created by zx on 2020/7/24.
*/
public class BaseDaoImpl<T> implements BaseDao<T> {
@Resource(name="mybatisSqlSessionTemplate")
private SqlSession session;
private final String path = "com... | true |
11ab57de832525baa738b9f523463393aaf6ea2a | Java | Gaurav-Kumar1308/WizCart | /E Commerce/elasticSearch/src/main/java/com/ecommerce/elasticSearch/controller/ProductController.java | UTF-8 | 1,902 | 2.234375 | 2 | [] | no_license | package com.ecommerce.elasticSearch.controller;
import com.ecommerce.elasticSearch.document.Product;
import com.ecommerce.elasticSearch.search.SearchDTO;
import com.ecommerce.elasticSearch.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annota... | true |
f235932697e83dd53ac21708cd14eb9d984b2e20 | Java | data-integrations/database-plugins | /mysql-plugin/src/e2e-test/java/io/cdap/plugin/mysql/locators/MySQLPropertiesPage.java | UTF-8 | 1,254 | 1.757813 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* Copyright © 2023 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | true |
9c708b623940de01399481d82cadca43ce1bd75e | Java | BunchesOfLife/Platformer | /src/GameObjects/Player.java | UTF-8 | 4,142 | 2.875 | 3 | [] | no_license | package GameObjects;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.util.LinkedList;
import src.Framework;
import src.Handler;
import src.ObjectId;
import src.Framework.GameState;
public class Player extends DynamicObject{
private int width = Framework.unit, height = Frame... | true |
1587f2697c2461d3577365a5948bb3473ead83ab | Java | WeiWenTao/HeartJump | /app/src/main/java/com/cucr/myapplication/activity/fuli/FragmentFuLi.java | UTF-8 | 5,943 | 1.84375 | 2 | [] | no_license | package com.cucr.myapplication.activity.fuli;
import android.content.Intent;
import android.support.v7.widget.LinearLayoutManager;
import android.text.TextUtils;
import android.view.View;
import com.cucr.myapplication.R;
import com.cucr.myapplication.activity.MessageActivity;
import com.cucr.myapplication.activity.T... | true |
fae39eb6d62ed04ce27f62be514777371df5ceda | Java | vikram264/java-problem-set | /src/com/examples/io/arrays/RemoveDuplicatesSortedArray.java | UTF-8 | 712 | 3.53125 | 4 | [] | no_license | package com.examples.io.arrays;
import java.util.Arrays;
public class RemoveDuplicatesSortedArray {
public static void main(String[] args) {
RemoveDuplicatesSortedArray removeDuplicatesSortedArray = new RemoveDuplicatesSortedArray();
int [] nums = {1,1,2,2,2,3,3,4,5,5};
removeDuplicatesSor... | true |
d694622977cef6866688f9bdf30091d939afeb75 | Java | zia0405/JavaTestng_0519 | /src/test/java/Academy/BeforeTestExample.java | UTF-8 | 510 | 2.390625 | 2 | [] | no_license | package Academy;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
public class BeforeTestExample {
@BeforeTest
public void initialize() {
System.out.println("Before Test");
}
@Test
public void method1() {
System.out.println... | true |
ae020ed5fca8fc63b44ae3e42ec4f4a32c5aa2f0 | Java | yaomajor/Rose-Video | /src/main/java/com/javacv/video/vo/Success.java | UTF-8 | 709 | 2.296875 | 2 | [] | no_license | package com.javacv.video.vo;
/**
* @ClassName Success
* @Description TODO
* @Author 86133
* @Date 2020/6/16 10:14
* @Version 1.0
**/
public class Success {
private Boolean success;
private String message;
public Boolean getSuccess() {
return success;
}
public void setSuccess(Boolean... | true |
e2eb0d431dc7d6c6a1dfa1b7fcb29cb391bdc40c | Java | leftpter/Java | /interview/Demo/tst/com/peter/left/interview/epi/chapter8/t1/SolutionTest.java | UTF-8 | 1,902 | 3.171875 | 3 | [] | no_license | package com.peter.left.interview.epi.chapter8.t1;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class SolutionTest
{
private Solution solution = ne... | true |
3ffe06c8e1d7ff59235b06c9bc2dfa176553e916 | Java | ZeeshanHayat2020/RecoverDeletedMessages | /app/src/main/java/com/messages/recovery/deleted/messages/recovery/fragments/FragmentBase.java | UTF-8 | 3,140 | 1.992188 | 2 | [] | no_license | package com.messages.recovery.deleted.messages.recovery.fragments;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.Window;
import android.view.WindowMana... | true |
d2d161ac2ae6b770ef053c851446fc6ff27535a8 | Java | puneetsinghania/PersonalCode | /KMC/SizeOfBTreeWithoutRecursion.java | UTF-8 | 964 | 3.5 | 4 | [] | no_license | package KMC;
import java.util.LinkedList;
import java.util.Queue;
public class SizeOfBTreeWithoutRecursion {
public static void main(String[] args) {
Node94 root = new Node94(2);
root.left = new Node94(7);
root.right = new Node94(5);
root.left.right = new Node94(6);
root.left.right.left = new Node94(1);... | true |
76264dbfaacd089286bb08ca7c97accb79bd9d74 | Java | ankeshsomani/CreditCardFraudDetection | /Code/FraudDetection/fraudanalytics-common/src/main/java/com/masteklabs/frauddetection/common/CommonUtils.java | UTF-8 | 1,467 | 2.578125 | 3 | [] | no_license | package com.masteklabs.frauddetection.common;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.TimeZone;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.masteklabs.frauddetection.exception.ObjectMappingException;
public class... | true |
1616d3bf8187e54aa958688ca550b939286f93e3 | Java | ouhi2008/DubboDemo | /DubboProvider/src/com/unj/dubbotest/provider/CalcService.java | UTF-8 | 110 | 1.640625 | 2 | [] | no_license | package com.unj.dubbotest.provider;
public interface CalcService {
public long factorial (int num) ;
}
| true |
80cff3c0b41e55d3cadf48ff943c5f4fe232f08c | Java | ramtej/Qi4j.Feature.Spatial | /samples/swing/src/main/java/org/qi4j/lib/swing/binding/SwingAdapter.java | UTF-8 | 2,618 | 1.59375 | 2 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | /*
* Copyright 2008 Niclas Hedhman. All rights Reserved.
*
* 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 b... | true |
2ba3887ef277d36559bc669a73a40858af323e04 | Java | idoari/Test_Automation | /src/main/java/pageObjects/OrangeHRM/AdminTopMenu.java | UTF-8 | 592 | 1.90625 | 2 | [] | no_license | package pageObjects.OrangeHRM;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
public class AdminTopMenu {
@FindBy(how = How.ID, using = "menu_admin_Job")
public WebElement lnk_admin;
@FindBy(how = How.ID, using = "me... | true |
547c2adc157168de0a1a35d5138a5480d195a5a7 | Java | elastic/apm-agent-java | /apm-agent-plugins/apm-aws-sdk/apm-aws-sdk-1-plugin/src/test/java/co/elastic/apm/agent/awssdk/v1/S3ClientIT.java | UTF-8 | 5,709 | 1.625 | 2 | [
"BSD-3-Clause",
"CC0-1.0",
"CDDL-1.0",
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | true |
91f5c2ffc9b2e83b7a6f2d65c3ad0c3a1087bd2f | Java | n1ko12333/A20-BlackBoxTest | /GewichtTest.java | UTF-8 | 761 | 2.1875 | 2 | [] | no_license | package A20;
import org.junit.*;
import weiser.GewichtException;
import weiser.LKW;
import static org.junit.Assert.*;
//git@github.com:n1ko12333/A20-BlackBoxTest.git
public class GewichtTest {
LKW l1;
@Before
public void testBefore(){
l1 = new LKW("KGNW23", 5000, 450, 3);
}
@Test
public void testAufladen1... | true |
d6dc31a63548dc92ef9d254c193d7559f768e378 | Java | jiachao23/delivery | /delivery-goods/src/main/java/com/delivery/service/IDeliveryCardService.java | UTF-8 | 1,207 | 2.046875 | 2 | [] | no_license | package com.delivery.service;
import java.util.List;
import com.delivery.domain.DeliveryCard;
/**
* 卡劵Service接口
*
* @author jcohy
* @date 2020-09-17
*/
public interface IDeliveryCardService {
/**
* 查询卡劵
*
* @param id 卡劵ID
* @return 卡劵
*/
public DeliveryCard selectDeliveryCardById(Long id);
/**
*... | true |
fea9ac1ea9fa0f278691357e4f9b9a3caa71ffd5 | Java | skurochkin/Java_TDD | /src/main/java/p1/Fraction.java | UTF-8 | 1,060 | 3.390625 | 3 | [] | no_license | package p1;
/**
* Created by VKurochkin on 5/5/2016.
*/
public class Fraction {
private final int numerator;
private final int denominator;
public Fraction(int integerValue){
this(integerValue, 1);
}
public Fraction(int numerator, int denominator) {
this.numerator = numerator;
... | true |
3a8019c86b42e9ae49b459a19b88900f9d92cebf | Java | danysantiago/mod | /app/src/icom5016/modstore/resources/ConstantClass.java | UTF-8 | 5,721 | 1.929688 | 2 | [] | no_license | package icom5016.modstore.resources;
public class ConstantClass {
//FILENAMES Strings
public final static String CATEGORIES_FILE = "categoriesFile.ini";
public final static String USER_FILE = "userFile.ini";
public final static String APP_PREFERENCES_FILE = "appPreferences.ini";
//Categories File Variable... | true |
1f985c06b663c67866cf2ce0a82e91323ad3d115 | Java | zhihzhang/leetcode | /src/com/lee/math/Pow50.java | UTF-8 | 1,030 | 3.640625 | 4 | [] | no_license | package com.lee.math;
import java.util.HashMap;
import java.util.Map;
public class Pow50 {
public static void main(String[] args) {
Pow50 obj = new Pow50();
double t = obj.myPow(2, 3);
System.out.println(t);
}
Map<Long, Double> map = new HashMap<Long, Double>();
public double myPow(double x, int n) {
re... | true |
6327ff4f5ef7b21ce0d95d641e0cd52e077ceb42 | Java | shuiyou/cashdesk | /src/test/java/com/weihui/cashdesk/action/PayTypeOpt.java | UTF-8 | 1,736 | 1.90625 | 2 | [] | no_license | package com.weihui.cashdesk.action;
import org.openqa.selenium.WebDriver;
import com.weihui.cashdesk.utils.BasePage;
public class PayTypeOpt {
private WebDriver driver = null;
private BasePage cashdeskHomPage = null;
public PayTypeOpt(WebDriver driver) {
this.driver = driver;
}
public vo... | true |
50f6c12b6fa6a93b7c4108f28c92bc3f79736f8e | Java | DanielGibbsNZ/Whiley | /modules/wycs/src/wycs/transforms/ConstraintInline.java | UTF-8 | 9,537 | 2.34375 | 2 | [
"BSD-3-Clause"
] | permissive | package wycs.transforms;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import static wybs.lang.SyntaxError.*;
import wybs.lang.Attribute;
import wybs.lang.Builder;
import wybs.lang.NameID;
import wybs.lang.Transform;
import wybs.util.Pair;
import wybs.util.R... | true |
cde61eb5a8f380128a92575ce0e0659ebce2597d | Java | D-a-r-e-k/Code-Smells-Detection | /Preparation/processed-dataset/data-class_2_144/1.java | UTF-8 | 59 | 1.796875 | 2 | [] | no_license | public double getBranchCount() {
return branchCount;
}
| true |
492cfd9cb9880a93e607479475a1be48a944d82a | Java | narfman0/GDXWorld | /src/main/java/com/blastedstudios/gdxworld/plugin/quest/manifestation/dialog/DialogManifestationPlugin.java | UTF-8 | 787 | 2 | 2 | [
"Beerware"
] | permissive | package com.blastedstudios.gdxworld.plugin.quest.manifestation.dialog;
import net.xeoh.plugins.base.annotations.PluginImplementation;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.blastedstudios.gdxworld.plugin.mode.quest.IQuestComponent.IQuestComponentMan... | true |
e72ac0555010babc8b86b77bb1923909fd9e5d61 | Java | tied/ac | /components/core/src/main/java/com/atlassian/plugin/connect/plugin/auth/applinks/ConnectApplinkUtil.java | UTF-8 | 1,128 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package com.atlassian.plugin.connect.plugin.auth.applinks;
import com.atlassian.applinks.api.ApplicationLink;
import com.atlassian.plugin.connect.modules.beans.AuthenticationType;
import com.atlassian.plugin.connect.plugin.auth.AuthenticationMethod;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java... | true |
10fbe0f7e91dbfd98260632c56580bc262cb1b4e | Java | saeed85416009/MyDoctor | /app/src/main/java/com/example/saeed_pc/mydoctor/test/InternetTest/net/Register_push_netTest.java | UTF-8 | 1,480 | 2.265625 | 2 | [] | no_license | package com.example.saeed_pc.mydoctor.test.InternetTest.net;
import android.content.Context;
import android.os.AsyncTask;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java... | true |
6fdaec063c751859162fe91af3d891bebff4a349 | Java | moutainhigh/ims-master | /ims-server/ims-server-process/ims-server-process-interface/src/main/java/com/yianju/ims/server/process/service/core/dynamic/DynamicClassLoaderManager.java | UTF-8 | 2,137 | 2.53125 | 3 | [] | no_license | package com.yianju.ims.server.process.service.core.dynamic;
import org.springframework.stereotype.Service;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/***
* 动态类加载器管理
*/
@Service
public class DynamicClassLoaderManager {
/**
... | true |
617d3ec54752d1a91385c0b7e0a82ba40717911d | Java | hodalma/icy-steps | /src/modules/Map.java | UTF-8 | 1,721 | 3.15625 | 3 | [] | no_license | package modules;
import java.util.ArrayList;
public class Map
{
private GameController gameController;
private ArrayList<Tile> tiles = new ArrayList<Tile>();
public Map(GameController gc)
{
gameController = gc;
}
public void generateStorm()
{
Logger.LogFunctionCall(this.to... | true |
aa0092b940d8747c494e719c2c787d1d5f157d5a | Java | ibrowiz/Hospital-Management-System | /src/org/calminfotech/system/boInterface/CategoryBo.java | UTF-8 | 417 | 1.882813 | 2 | [] | no_license | package org.calminfotech.system.boInterface;
import java.util.List;
import org.calminfotech.system.models.GlobalItemCategory;
public interface CategoryBo {
public List<GlobalItemCategory> fetchAll();
public GlobalItemCategory getCategoryById(int id);
public void save(GlobalItemCategory category);
public ... | true |
848306fde8f94b868b1a5f8c7493e4a9a3dedd66 | Java | Mario23junior/API-Produtos | /src/main/java/com/project/produto/dto/Client_ProdutoDTO.java | UTF-8 | 625 | 2.03125 | 2 | [] | no_license | package com.project.produto.dto;
public class Client_ProdutoDTO {
private Integer CliId;
private String nome;
private String email;
private String telefone;
public Integer getCliId() {
return CliId;
}
public void setCliId(Integer cliId) {
CliId = cliId;
}
public String getNome() {
return nome;
... | true |
bc6b18a0f1a385bbbafd6b32f248cd951db11f21 | Java | jevonalexis/Comp3275project | /app/src/main/java/com/jevon/studentrollrecorder/pojo/Session.java | UTF-8 | 761 | 2.6875 | 3 | [] | no_license | package com.jevon.studentrollrecorder.pojo;
import java.util.HashMap;
/**
* Created by jevon on 14-Apr-16.
*/
/*Not really a session object. More of an entry of a student for a session. Class necessary for FB
to map data*/
public class Session{
HashMap<String, Attendee> attendees;
String date;
pu... | true |
b506ae04d670ade323e0a0d1b7953605b757800a | Java | meloveayu/TMNT-1.0 | /app/src/main/java/com/example/tmnt_10/MainFragment.java | UTF-8 | 3,928 | 2.421875 | 2 | [] | no_license | package com.example.tmnt_10;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.RadioGroup;
import android.widget.TextView;
import and... | true |
38623f0efbee734b007eaa3274c89bbd2e22ed49 | Java | thyjxcf/learn | /base/trunk/src/java/net/zdsoft/eis/frame/action/SortAction.java | UTF-8 | 1,516 | 2.375 | 2 | [] | no_license | package net.zdsoft.eis.frame.action;
import java.lang.reflect.InvocationTargetException;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.reflect.MethodUtils;
public class SortAction<V> extends BaseAction {
p... | true |
154267869f372f68438be4334a67d2cd6785cc78 | Java | hyunhyukCho/VOLA | /vitcon_web/src/main/java/com/vitcon/core/password/Password.java | UTF-8 | 2,709 | 3.40625 | 3 | [] | no_license | package com.vitcon.core.password;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class Password {
/**
* <p>
* 입력한 데이터(바이트 배열)을 SHA1 알고리즘으로 처리하여 해쉬값을 도출한다.
* </p>
*
* <pre>
* getHash([0x68, 0x61, 0x6e]) = [0x4f, 0xf6... | true |
d71738c4697d5b189b6ac242e76c33aaa982c957 | Java | lanshanxiao/Head-First-Design-Pattern | /1.策略模式(StrategyPattern)讲解代码/简单实现/Duck.java | GB18030 | 967 | 3.78125 | 4 | [
"Apache-2.0"
] | permissive | public abstract class Duck{//Ѽ
/*ӿڶ*/
FlyBehavior flyBehavior;//
QuackBehavior quackBehavior;//ɽ
public Duck(){
}
//ȥ
/*public void fly(){//Ϊ
System.out.println("I'm flying!");
}
public void quack(){//Ϊɽ
System.out.println("Gua Gua!");
}*/
/*ǽDuckΪίиӿڶʵ*/
public void performFly(){//fly()ίиflyBeha... | true |
9da199e286324452b8a8a3a348b30840b0d6de9d | Java | kyych/EMPMANAGER | /src/front/MenuBar.java | UTF-8 | 2,477 | 2.734375 | 3 | [] | no_license | package front;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
public class MenuBar extends JMenuBar {
private final JFileChooser fileChooser;
private MainViewController mainViewController;
public MenuBar() {
fileChooser = new JFileChooser();
JMe... | true |
4a9a4b18a61b8bcba4ad8e83f0c280478305593f | Java | sushiomsky/example-lock-app | /app/src/main/java/com/lockapp/fragments/FragmentUtils.java | UTF-8 | 2,684 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.lockapp.fragments;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.Fragment;
import android.app.admin.DevicePolicyManager;
import android.content.ComponentName;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;... | true |
f4efd88b1cc94c6e3b3c1eddb8faeda7f298b3c6 | Java | georgesafta/Metro | /src/classes/Adresa.java | UTF-8 | 294 | 2.78125 | 3 | [] | no_license | package classes;
public class Adresa {
private String strada;
private String numar;
public Adresa(String strada, String numar) {
super();
this.strada = strada;
this.numar = numar;
}
public String getStrada() {
return strada;
}
public String getNumar() {
return numar;
}
}
| true |
8256aff84eac0b25d87728c97b03c61926f0f192 | Java | WJimbo/TeamWorker-Android | /app/src/main/java/cn/chestnut/mvvm/teamworker/module/checkattendance/PhotoActivity.java | UTF-8 | 1,483 | 1.914063 | 2 | [] | no_license | package cn.chestnut.mvvm.teamworker.module.checkattendance;
import android.databinding.DataBindingUtil;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.TextView;
import cn.chestnut.mvvm.teamworker.R;
import cn.chestnut.mvvm.teamworker.databinding.ActivityPhoneDirectoryBinding;... | true |
7a8c4aa7c8327ede0203efd4814447e0cc42be61 | Java | GoldenMoonByr/AiAacdemy | /DeptManager/src/manager/DeptManager.java | UTF-8 | 3,626 | 2.96875 | 3 | [] | no_license | package manager;
import java.sql.Connection;
import java.sql.SQLException;
public class DeptManager {
DeptDao dao = new DeptDao();
public void deptEdit() {
Connection conn = null;
try {
conn = ConnectionProvider.getConnetion();
conn.setAutoCommit(false); // 자동 커밋 : 기본값은 true;
// 수정하고자 하는 데이터 유무 확... | true |