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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
47730a1d5d2a635654c404a5105ddf46b2749237 | Java | wezdenko/hermes-java | /src/database/classes/Position.java | UTF-8 | 1,352 | 3.359375 | 3 | [] | no_license | package database.classes;
public class Position {
private int id;
private String name;
private float maxSalary;
private float minSalary;
public Position() {}
public Position(int id, String name, float minSalary, float maxSalary) {
setId(id);
setName(name);
setMinSalar... | true |
5256b5733b186b410408d96ec03827c2dbe18dcb | Java | appleshow/monitor | /src/main/java/com/aps/monitor/service/impl/MenuConfigServiceImpl.java | UTF-8 | 2,908 | 2.03125 | 2 | [] | no_license | package com.aps.monitor.service.impl;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import com.aps.monitor.comm.*;
import org.springframework.stereotype.Service;
import com.aps.monitor.dao.ComFormMapper;
import com.aps.mo... | true |
afb712ab0da033bf08298255946402ca5806c703 | Java | VipJayce/FileShare | /test/test/gap/warning/comparator/MyTest.java | UTF-8 | 2,543 | 2.125 | 2 | [] | no_license | /**
* 字段名称:MyTest
*/
package test.gap.warning.comparator;
import junit.framework.TestCase;
/*************************************
* @(C)Copyright 北京瑞友科技股份有限公司上海分公司. 2013
* @作者: 谭彦军
* @创建时间:2013-6-24 上午02:14:16
* @文件名:MyTest.java
* @描述:
*************************************/
public class MyTest extends TestCa... | true |
fba280e2eccec9725b3844a70b4850512150b4dc | Java | thuurzz/Java | /Impacta/Tarefas/IDE/POO/POO_CC3A/src/main/java/Aula_02_Decisao/Ex_02_Ordena3Num.java | UTF-8 | 1,388 | 3.8125 | 4 | [
"MIT"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Aula_02_Decisao;
import java.util.Scanner;
/**
*
* @author megazord
*/
public class Ex_02_Ordena3Num {
public static v... | true |
287dc70d1af1469224a3969026cd60cfc322dffc | Java | solq360/chat | /app/src/main/java/org/son/chat/core/FileAudio.java | UTF-8 | 2,863 | 2.65625 | 3 | [] | no_license | package org.son.chat.core;
import org.son.chat.util.SDCardUtil;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
/**
* 文件处理语音
* Created by l... | true |
055122c437806787cc8e5883d7b2cfdb9647db3c | Java | trieu/leo-cdp | /core-leo-cms/src/test/java/test/crawler/pending/tikiVn_ProductJsoupDocToProductItem.java | UTF-8 | 3,943 | 2.0625 | 2 | [] | no_license | package test.crawler.pending;
import java.util.List;
import java.util.stream.Collectors;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import leotech.cdp.model.business.ProductItem;
import leotech.crawler.util.JsoupParserUtil;
import rfx.core.util.HttpClientUtil;
import rfx.core.util.StringUtil;
import te... | true |
c71f19dc0c315b9af9dc15cd2e6006e8a6bd8d43 | Java | stalkerpnv/CharacterStreams | /src/oopexample/Cat.java | UTF-8 | 209 | 3.015625 | 3 | [] | no_license | package oopexample;
public class Cat extends Animal {
Cat(String name, String color, int age) {
super(name, color, age);
}
public void swim(){
System.out.println("swim");
}
}
| true |
3df35701861ed10f6438d402f7c855e6205871f1 | Java | reeceyang/AP-Computer-Science | /src/U6A3/U6A3.java | UTF-8 | 2,583 | 3.328125 | 3 | [] | no_license | // Reece Yang
//
// This Java project (applet) will compare the Sequential Search to the
// Binary Search.
package U6A3;
import javax.swing.JApplet;
import javax.swing.JTextArea;
import java.awt.Font;
import java.awt.Container;
public class U6A3 extends JApplet
{
private int[] array = new int[300];
private i... | true |
c8e1f295d32d2307e860b92dba84742182c97ca8 | Java | bellmit/zycami-ded | /src/main/java/com/xiaomi/clientreport/data/PerfClientReport.java | UTF-8 | 1,563 | 1.71875 | 2 | [] | no_license | /*
* Decompiled with CFR 0.151.
*
* Could not load the following classes:
* org.json.JSONException
* org.json.JSONObject
*/
package com.xiaomi.clientreport.data;
import com.xiaomi.channel.commonutils.logger.b;
import com.xiaomi.clientreport.data.a;
import org.json.JSONException;
import org.json.JSONObject;
p... | true |
3211fa1335f98c2cf08a796e3e69e9de9cf1c5d9 | Java | fayyua/onetwo | /modules/orm/src/main/java/org/onetwo/common/fish/JFishSQLSymbolManagerImpl.java | UTF-8 | 1,742 | 2.28125 | 2 | [] | no_license | package org.onetwo.common.fish;
import java.util.Map;
import org.onetwo.common.db.ExtQuery;
import org.onetwo.common.db.sqlext.DefaultSQLDialetImpl;
import org.onetwo.common.db.sqlext.DefaultSQLSymbolManagerImpl;
import org.onetwo.common.db.sqlext.SQLDialet;
import org.onetwo.common.db.sqlext.SQLSymbolManager... | true |
caf745e4630b2f284154007d7b4bc11b594f5f00 | Java | katt999/JAVA_IT_PARK_3 | /Tasks/Homework/Task8/src/Main.java | UTF-8 | 1,905 | 3.84375 | 4 | [] | no_license | /**
* Created by EVZabinskaya on 18.10.2017.
*/
public class Main {
public static void main(String[] args) {
Human Kate = new Human("Kate", 34, 168, 51);
Human Irina = new Human("Irina", 30, 165, 53);
AgeHumanComparator ageHumanComparator = new AgeHumanComparator();
Heigh... | true |
7e08862f13bb2b2cd7528e77717316f7eee4207c | Java | mizanxali/java-interimsem | /AbstractTest1.java | UTF-8 | 652 | 3.90625 | 4 | [] | no_license | //Concept of abstract class where object of abstract base class holding reference of sub-class.
abstract class Vehicle
{
public abstract void engine(); // abstract method
}
class Car extends Vehicle {
public void engine() //method overridden
{
System.out.println("Car engine");
... | true |
68379aff823b2dc342a4629a4f421b8c3b898c80 | Java | joseseie/PraticaJava2e-08hProject | /src/e/correcoes/e8/oo/e1/Teste.java | UTF-8 | 743 | 2.640625 | 3 | [
"MIT"
] | permissive |
package e.correcoes.e8.oo.e1;
/**
*
* @author joseseie
*/
public class Teste {
public static void main(String[] args) {
Lampada lampada1 = new Lampada("Vermelha", true, "Fluorescente", 45, (byte) 95);
Lampada lampada2 = new Lampada("Vermelha", true, "Fluorescente", 45, (byte) 95);... | true |
fde032c8e5bf34bb17f54aa8d1a08cafb43c6330 | Java | Ruanjiahui/Project | /HTTP_SDK/src/main/java/com/example/administrator/Resource/HttpConnectionString.java | UTF-8 | 2,876 | 2.875 | 3 | [] | no_license | package com.example.administrator.Resource;
import android.util.Log;
import com.example.administrator.Abstract.HttpRequest;
import com.example.administrator.HttpCode;
import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* Created by Administrator on 2... | true |
6189769c580d3c0da9d39a0ffbd546b6bd8fb33e | Java | extraskittles/zzr-mall | /mall-admin/src/main/java/com/zzr/mall/controller/ProductImageController.java | UTF-8 | 2,078 | 2.046875 | 2 | [] | no_license | package com.zzr.mall.controller;
import com.zzr.mall.dto.ProductImageAddParam;
import com.zzr.mall.model.ProductImage;
import com.zzr.mall.result.CommonPage;
import com.zzr.mall.result.CommonResult;
import com.zzr.mall.service.ProductImageService;
import io.swagger.annotations.Api;
import org.springframework.beans.fa... | true |
e0ace383be9c15406beb82c2ab15cd53dc6e6475 | Java | CandiceDeng/Algorithm | /TopQs/Array/MedianofTwoSortedArray.java | UTF-8 | 1,796 | 3.828125 | 4 | [] | no_license | // Median of Two Sorted Arrays
// There are two sorted arrays nums1 and nums2 of size m and n respectively.
// Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
// You may assume nums1 and nums2 cannot be both empty.
// Example 1:
// nums1 = [1, 3]
// nums2 = [2]
//... | true |
8b0f6993b4e86cf1bcf9e4838f114f332f51a6e3 | Java | chinezu57/SpringTutorial | /src/main/java/spring/tutorial/dto/Identifiable.java | UTF-8 | 126 | 1.835938 | 2 | [] | no_license | package spring.tutorial.dto;
/**
* Created by Robert on 10/11/2015.
*/
public interface Identifiable {
Long getId();
}
| true |
93fa88c8d665b577c1d49e2e20a646ce2dcb0968 | Java | zhongxingyu/Seer | /Diff-Raw-Data/18/18_efec819959ae2f6e3746ebb91d0ac8b0ff8e4430/AggregationExisting/18_efec819959ae2f6e3746ebb91d0ac8b0ff8e4430_AggregationExisting_s.java | UTF-8 | 7,788 | 1.828125 | 2 | [] | no_license | // $Id: $
/*
* Copyright 1997-2006 Unidata Program Center/University Corporation for
* Atmospheric Research, P.O. Box 3000, Boulder, CO 80307,
* support@unidata.ucar.edu.
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License ... | true |
73da8eb37bd91eaae5ddfca794d6fe5d1173d21b | Java | librairy/survey-api | /src/test/java/org/librairy/survey/questions/QuestionTemplate.java | UTF-8 | 2,938 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package org.librairy.survey.questions;
import com.google.common.escape.Escaper;
import com.google.common.escape.Escapers;
import io.swagger.model.Question;
import org.librairy.survey.bb.data.PairCandidate;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
/**
* @author Badenes Olmedo, Carlos ... | true |
638d6847a8ce7c9e2ad72c7b80bc7d1e9eb1c919 | Java | TsvetomirN1/Spring-Fundamentals | /pathfinder/src/main/java/com/example/pathfinder/service/impl/UserServiceImpl.java | UTF-8 | 2,656 | 2.359375 | 2 | [
"MIT"
] | permissive | package com.example.pathfinder.service.impl;
import com.example.pathfinder.model.entity.Role;
import com.example.pathfinder.model.entity.User;
import com.example.pathfinder.model.enums.LevelEnum;
import com.example.pathfinder.model.enums.RoleEnum;
import com.example.pathfinder.model.service.UserServiceModel;
import co... | true |
6a5a5b99f7bd47adc302570fe516d8490ddab609 | Java | NadinZeitoune/School_Apps | /Android/24_12_2018_BroadcastReceiver/app/src/main/java/com/company/hackeru/a24_12_2018_broadcastreceiver/SecondActivity.java | UTF-8 | 577 | 2.171875 | 2 | [] | no_license | package com.company.hackeru.a24_12_2018_broadcastreceiver;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
public class SecondActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//... | true |
9cbf211249f617d9158ee8e1f9159ce11dfa216d | Java | mengxiangpei/xiaozuxiangmu | /src/main/java/com/jk/dao/SysUserInfoMapper.java | UTF-8 | 526 | 1.757813 | 2 | [] | no_license | package com.jk.dao;
import com.jk.pojo.SysUserInfo;
public interface SysUserInfoMapper {
int deleteByPrimaryKey(String sysuserId);
int insert(SysUserInfo record);
int insertSelective(SysUserInfo record);
SysUserInfo selectByPrimaryKey(String sysuserId);
int updateByPrimaryKeySelective(SysUserI... | true |
33d24f673ad387313b10a9313d22fcfc47ec6da0 | Java | debezium/debezium | /debezium-connector-oracle/src/main/java/io/debezium/connector/oracle/logminer/processor/AbstractTransaction.java | UTF-8 | 2,270 | 2.328125 | 2 | [
"MIT",
"Apache-2.0",
"Artistic-1.0-Perl",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-warranty-disclaimer",
"Zlib",
"LGPL-2.1-only",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"Apache-1.1",
"GPL-3.0-only",
"GPL-2.0-only",
"Artisti... | permissive | /*
* Copyright Debezium Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.debezium.connector.oracle.logminer.processor;
import java.time.Instant;
import java.util.Objects;
import io.debezium.connector.oracle.Scn;
/**
* An a... | true |
7b060e4325f6439290e80c3d0c5aaab285cd540d | Java | koval-xxj/NaviPark | /app/src/main/java/com/valpiok/NaviPark/payment/ResourceProvider.java | UTF-8 | 1,009 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | package com.valpiok.NaviPark.payment;
/**
* Created by SERHIO on 14.09.2017.
*/
import android.content.Context;
import com.valpiok.NaviPark.R;
import ch.datatrans.payment.android.IResourceProvider;
public class ResourceProvider implements IResourceProvider {
@Override
public String getNWErrorButtonCance... | true |
f0b11d4b208638cf67930c4fe09900308ef2a030 | Java | 8secz-johndpope/snapchat-re | /jadx-snap-new/sources/com/snap/composer/foundation/Cancelable.java | UTF-8 | 2,439 | 2.015625 | 2 | [] | no_license | package com.snap.composer.foundation;
import com.snap.composer.actions.ComposerRunnableAction;
import com.snap.composer.exceptions.AttributeError;
import com.snap.composer.utils.JSConversions;
import com.snapchat.client.composer.utils.ComposerJsConvertible;
import defpackage.ajxw;
import defpackage.akbl;
import defpac... | true |
778acd396f94342822f47cfeaa0691b0298cca68 | Java | nhduy163/Karaoke | /Source code/src/BUS/TaiKhoanBUS.java | UTF-8 | 2,459 | 2.359375 | 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 BUS;
import DAO.TaiKhoanDAO;
import DTO.NhanVienDTO;
import DTO.TaiKhoanDTO;
import java.util.ArrayList;
import jav... | true |
5a5aaa71504bf3a5a839e6e6f39e77a176ff3ed7 | Java | cuba-platform/workflow-thesis | /modules/core/src/com/haulmont/workflow/core/timer/MainAssignmentTimerAction.java | UTF-8 | 3,819 | 1.945313 | 2 | [] | no_license | /*
* Copyright (c) 2008-2016 Haulmont. All rights reserved.
* Use is subject to license terms, see http://www.cuba-platform.com/commercial-software-license for details.
*/
package com.haulmont.workflow.core.timer;
import com.haulmont.cuba.core.EntityManager;
import com.haulmont.cuba.core.Persistence;
import com.hau... | true |
c3bb66f6a44a35d6bd9f8f006b71102109239124 | Java | SmellyCat44/2020shortlab_takeoutAssistant | /src/cn/edu/zucc/takeoutassist/model/BeanManager.java | UTF-8 | 523 | 1.984375 | 2 | [] | no_license | package cn.edu.zucc.takeoutassist.model;
public class BeanManager {
private String mng_id;
private String mng_name;
private String mng_pwd;
public String getMng_id() {
return mng_id;
}
public void setMng_id(String mng_id) {
this.mng_id = mng_id;
}
public String getMng_name() {
return mng_name;
}
publ... | true |
a6ddbeb6c5c2721cbc0f12840ecac74ea6372505 | Java | diazdaniel0526/monopofast | /src/byui/cit260/monopofastPro/model/IngredientOrder.java | UTF-8 | 1,670 | 2.65625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package byui.cit260.monopofastPro.model;
import java.io.Serializable;
import java.util.Objects;
/**
*
* @author ellisoverson
*/
pu... | true |
ca58f42e8d0cc7926d446fed39ffd1f3db99f779 | Java | subham5230/shoppr_ecommerce | /ShopprWebParent/ShopprBackend/src/test/java/com/shoppr/admin/setting/state/StateRepositoryTests.java | UTF-8 | 2,806 | 2.1875 | 2 | [] | no_license | package com.shoppr.admin.setting.state;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import java.util.Optional;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTe... | true |
f1d37db11e22c2fbab96d53d5f24404534fc5002 | Java | wks1222/mobius-source | /java/lineage2/gameserver/model/instances/DecoyInstance.java | UTF-8 | 6,846 | 2.234375 | 2 | [] | no_license | /*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be u... | true |
360e479f8c70b4cbeabb938e729d714be844ea80 | Java | MPSong/csebud | /csebud/src/buddy/student/Course.java | UTF-8 | 2,125 | 2.65625 | 3 | [] | no_license | package buddy.student;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Course {
@Id
String studentId; // 강의를 수강한 학생의 학번
String lectureCode; // 해당되는 강의의 학수번호
String lectureName; // 해당되는 강의의 강의명
String professor; // 해당되는 강의의 교수명
String credit; // 해당되는 강의의 학점
String... | true |
a344171e48968fd1575ed4dd00baa50ef5ba3e82 | Java | DmytroKataryna/WideWeather | /app/src/main/java/kataryna/dmytro/wideweather/helpers/Utils.java | UTF-8 | 888 | 2.6875 | 3 | [] | no_license | package kataryna.dmytro.wideweather.helpers;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
/**
* Created by dmytroKataryna on 25.01.16.
*/
public class Utils {
public static String getCountryName(String isoCode) {
return new Locale("", iso... | true |
6344b3eb4c5027f5378a71ab86ff3bddd3e43c64 | Java | GULNURKIRCAER/ZEROBANK | /src/test/java/com/zerobank/step_definitions/AddNewPayeeDefs.java | UTF-8 | 2,257 | 2.453125 | 2 | [] | no_license | package com.zerobank.step_definitions;
import com.zerobank.pages.LoginPage;
import com.zerobank.utilities.BrowserUtils;
import com.zerobank.utilities.ConfigurationReader;
import com.zerobank.utilities.Driver;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import org.junit.Assert;
import org.openqa.... | true |
e603104e217af36a283e4010bab9223e426e1817 | Java | jwpiotrowski/blogwatch | /src/test/java/com/baeldung/selenium/page/HomePageUITest.java | UTF-8 | 3,344 | 2.234375 | 2 | [] | no_license | package com.baeldung.selenium.page;
import static org.junit.jupiter.api.Assertions.fail;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.List;
import java.util.logging.Level;
import org.junit.jupiter.api.Tag;
import org.junit.ju... | true |
95b8da06a0a660aaff9067613a14245815605654 | Java | CodeShagee/distributer_x | /src/GUI/ViewEnteredPOfrmCustomers.java | UTF-8 | 14,705 | 2.140625 | 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 GUI;
import Domain.PO;
import Domain.SalesOrder;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.ut... | true |
c6597b8680799413da32e2a47b35bd143e3c2694 | Java | jeonhyungseop/hyungseop | /src/main/java/kr/or/ddit/cfms/head/changeatt/dao/IHeadChangeAttDAO.java | UTF-8 | 1,286 | 1.828125 | 2 | [] | no_license | package kr.or.ddit.cfms.head.changeatt.dao;
import java.util.List;
import org.springframework.stereotype.Repository;
import kr.or.ddit.cfms.commons.vo.PagingVO;
import kr.or.ddit.cfms.head.changeatt.vo.ChangeAttendanceListVO;
import kr.or.ddit.cfms.head.commute.vo.DclzVO;
/**
* @author 진예은
* @since 2021. 6. 7
* ... | true |
4417eb942f2dbb91b53e0d9c20aa3776b9c745f8 | Java | wh0amis/caex | /hotdog-after-end-master/hotdog-contract/contract-common/src/main/java/com/contract/dao/CWalletHitstoryMapper.java | UTF-8 | 2,974 | 1.835938 | 2 | [] | no_license | package com.contract.dao;
import com.contract.entity.CWalletHitstory;
import com.contract.entity.CWalletHitstoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CWalletHitstoryMapper {
/**
* This method was generated by MyBatis Generator.
* This method corre... | true |
e80b8895dc199776a75fe7dfe9b87b382190ad4f | Java | vvshuai/vvs-coupon | /vvs-coupon-service/coupon-distribution/src/main/java/org/vvs/coupon/entity/Coupon.java | UTF-8 | 2,325 | 2.21875 | 2 | [] | no_license | package org.vvs.coupon.entity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import... | true |
727678011193ec993522c95b5f2cf21aaa31dab1 | Java | Cyebukayire/devops-junit-testing | /src/main/java/com/example/classbjunit/controller/ItemController.java | UTF-8 | 541 | 1.9375 | 2 | [] | no_license | package com.example.classbjunit.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import com.example.classbjunit.model.Item;
import com.example.cla... | true |
7f71ef88cb8f6eb5981d2f622237a0b7b7d0eace | Java | hakanorak21/Java-Interview | /ersin/CharFrequency.java | UTF-8 | 495 | 3.046875 | 3 | [] | no_license | package ersin;
public class CharFrequency {
public static void main(String[] args) {
String str = "AAABBCDD";
System.out.print("method 1: ");
m1(str);
}
public static String m1(String str) {
String nstr = "";
while (str.length()!=0) {
int size = str.length();
String temp =... | true |
a3176184dd76635e5db98fa6a1213984b1b064c5 | Java | jgomezpe/uniltiranyu | /java/uniltiranyu/examples/games/sokoban/SokobanBoardDrawer.java | UTF-8 | 3,171 | 2.765625 | 3 | [] | no_license | package uniltiranyu.examples.games.sokoban;
import java.awt.Color;
import java.awt.Graphics;
import uniltiranyu.simulate.SimulatedAgent;
import uniltiranyu.simulate.gui.Drawer;
public class SokobanBoardDrawer extends Drawer {
public static int DIMENSION = 15;
public static int DRAW_AREA_SIZE = 400;
publi... | true |
3944a65c3a37989120c2325b313b006cd3345882 | Java | xuanqizi/TicketPurchase | /ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/SignUpBody.java | UTF-8 | 720 | 1.984375 | 2 | [
"MIT"
] | permissive | package com.ruoyi.common.core.domain.model;
/**
* 用户注册对象
*
* @author Zhenxi Chen
* @date 2021/6/3
*/
public class SignUpBody {
private String phone; // 手机号
private String password; // 密码
private String username; // 用户名
public String getPhone() {
return phone;
}
publ... | true |
6c0266cdc2a7d760bbd386e27ff268f7001d32e4 | Java | tapakkur/hello-spring-boot | /src/main/java/ApplicationRun.java | UTF-8 | 899 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.cont... | true |
fd5ea310998058e6b00e213d016bf0e627db04c9 | Java | Jigiang/distributed-lock | /distributed-lock-spring-boot-starter/src/main/java/com/github/zhuobinchan/distributed/lock/spring/configuration/DistributedLockProperties.java | UTF-8 | 1,708 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | package com.github.zhuobinchan.distributed.lock.spring.configuration;
import com.github.zhuobinchan.distributed.lock.core.config.DistributedLockConfig;
import com.github.zhuobinchan.distributed.lock.core.config.RedissonConfig;
import com.github.zhuobinchan.distributed.lock.core.config.ZookeeperConfig;
import org.sprin... | true |
122346636b182b1e2d18b551c70a350de3285288 | Java | nyutopia/toutiao | /src/main/java/com/ny/toutiao/service/UserService.java | UTF-8 | 3,313 | 2.25 | 2 | [] | no_license | package com.ny.toutiao.service;
import com.ny.toutiao.dao.LoginTicketDAO;
import com.ny.toutiao.dao.UserDAO;
import com.ny.toutiao.model.LoginTicket;
import com.ny.toutiao.model.User;
import com.ny.toutiao.util.ToutiaoUtil;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFac... | true |
0df1bbff3c5f6823f66332daefa9053bc9ccb3b1 | Java | abcijkxyz/jump-pilot | /plug-ins/de.soldin.jump/trunk/src/org/dinopolis/gpstool/GPSTool.java | UTF-8 | 33,013 | 1.53125 | 2 | [] | no_license | /***********************************************************************
* @(#)$RCSfile: GPSTool.java,v $ $Revision: 1.5 $ $Date: 2006/10/23 08:15:38 $
*
* Copyright (c) 2001 IICM, Graz University of Technology
* Copyright (c) 2001-2003 Sandra Brueckler, Stefan Feitl
* Written during an XPG-Project at the IICM o... | true |
4c614868e00ce3e41c54a3112c5e268bd6828f14 | Java | ChaoSBYNN/HRMS | /HRMS/src/com/zxc/dao/EmpContactInfoDao.java | UTF-8 | 2,635 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.zxc.dao;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import com.zxc.entity.EmpContactInfo;
import com.zxc.mapper.EmpContactInfoMapper;
import com.zxc.util.MyBatisUtil;
public class EmpContactInfoDao {
static SqlSessionFactory ... | true |
229b2ddc5e4fd1ea9e5a7bc8fd0400e392e6ec4b | Java | GuruKrishnaPanda/APIFramework | /PCRAPIFramework/src/test/java/baseTest/BaseTest.java | UTF-8 | 1,795 | 2.03125 | 2 | [] | no_license | package baseTest;
import java.lang.reflect.Method;
import org.testng.ITestResult;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import UtilFiles.GenericXLSXReader;
import UtilF... | true |
158cdf7189b3a8ee256d2704a43818825bbdb851 | Java | JohanJoergensen/MasterThesisUSEF | /ri.usef.energy-master/usef-build/usef-hoogdalem/usef-workflow-hd/usef-hd-agr1/src/main/java/nl/energieprojecthoogdalem/messageservice/scheduleservice/tasks/ShiftTask.java | UTF-8 | 2,465 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2014-2016 BePowered BVBA http://www.bepowered.be/
*
* Software is subject to the following conditions:
*
* The above copyright notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,... | true |
a5e3f0ec179609c5e15f434df047bdeaaffe2a00 | Java | skykying/bundle | /IDE/debug/com.lembed.lite.studio.debug.gdbjtag/src/com/lembed/lite/studio/debug/gdbjtag/services/IPeripheralMemoryService.java | UTF-8 | 2,495 | 1.804688 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2014 Liviu Ionescu.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
... | true |
ec19db2cb0e1b8dc186c57de91bc919ebf237165 | Java | loicdesrosiers/ecoLogic | /android/ecoLogicv2/app/src/main/java/info/iut/ecologic/AppDataBase.java | UTF-8 | 506 | 1.953125 | 2 | [] | no_license | package info.iut.ecologic;
import android.arch.persistence.room.Database;
import android.arch.persistence.room.RoomDatabase;
import java.io.Serializable;
import DAOs.QCMUniqueSolutionDAO;
import DAOs.UserDAO;
import Entites.QCMUniqueSolution;
import Entites.User;
@Database(entities = {User.class, QCMUniqueSolution.... | true |
f3aee3d835a69b8607c374453d0a84acb6178a56 | Java | kangarooxin/demo-swagger | /src/main/java/com/justfun/common/support/swagger/JsonParamReader.java | UTF-8 | 3,683 | 2.03125 | 2 | [] | no_license | package com.justfun.common.support.swagger;
import com.fasterxml.classmate.ResolvedType;
import com.fasterxml.classmate.TypeResolver;
import com.google.common.base.Optional;
import com.justfun.common.support.swagger.annotations.ApiJsonParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... | true |
3a6bbaed3750b712dd57b850dde0c2bb4332761b | Java | shmilovt/Final_Project_Client | /app/src/main/java/com/example/final_project_client/Presentation/Report/CostReportFragment.java | UTF-8 | 2,380 | 2.109375 | 2 | [] | no_license | package com.example.final_project_client.Presentation.Report;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
im... | true |
3fe0b98ac21581b6e09da7ca0647d5e657ccda63 | Java | mounirzz/StaterManagement | /src/main/java/com/micro/demo/controllers/UserController.java | UTF-8 | 11,538 | 1.875 | 2 | [] | no_license | package com.micro.demo.controllers;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.U... | true |
42634e9775c01e577b83c3b9fc3f00b94ff47a3c | Java | ruhibhandari21/ScrapyKartCustomer | /app/src/main/java/com/app/scrapykart/order/PendingAdapter.java | UTF-8 | 3,031 | 2.21875 | 2 | [] | no_license | package com.app.scrapykart.order;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.RatingBar;
import android.widget.TextView;
import android.widg... | true |
278ac9c0b7198f5f9d5b3e286b12c03e16af8c41 | Java | haxsscker/abc.parent | /abc.service/src/main/java/com/autoserve/abc/service/biz/intf/sys/SysLinkInfoService.java | UTF-8 | 1,391 | 2.09375 | 2 | [] | no_license | package com.autoserve.abc.service.biz.intf.sys;
import com.autoserve.abc.dao.common.PageCondition;
import com.autoserve.abc.dao.dataobject.SysLinkInfoDO;
import com.autoserve.abc.service.biz.result.BaseResult;
import com.autoserve.abc.service.biz.result.ListResult;
import com.autoserve.abc.service.biz.result.PageResul... | true |
1e429870f725e5a941e1e62455c05df936bcd26d | Java | X00LA/dtlTraders | /src/main/java/net/dandielo/core/items/serialize/core/GenericSpeed.java | UTF-8 | 1,932 | 2.40625 | 2 | [] | no_license | package net.dandielo.core.items.serialize.core;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import net.dandielo.core.bukkit.NBTUtils;
import net.dandielo.core.items.dItem;
import net.dandielo.core.items.serialize.Attribute;
import net.dandielo.core.items.serialize.ItemAttribute;
impor... | true |
954223ac85e568df8195754833e6e1ced3136950 | Java | code-lab-org/sipg | /src/main/java/edu/mit/sipg/core/social/population/TableLookupModel.java | UTF-8 | 2,468 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | /******************************************************************************
* Copyright 2020 Paul T. Grogan
*
* 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... | true |
924054064006f4e91ca7354fa2a0d75ff2ab1fa9 | Java | bxbxbx/nabaztag-source-code | /server/OS/net/violet/platform/applets/js/JsClassLoader.java | UTF-8 | 5,460 | 2.1875 | 2 | [
"MIT"
] | permissive | package net.violet.platform.applets.js;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import net.violet.platform.api.exceptions.APIException;
import net.violet.platform.applets.AppResourcesLoader;
import net.violet.platform.applets.js.helpers.JSClassCompiler;
impo... | true |
ed75e77719f095ebc5c94e0a097d81cbfd249f01 | Java | jsjs0730/UTBC | /NewsProject2/src/main/java/tk/utbc/controller/MemberController.java | UTF-8 | 7,157 | 2.03125 | 2 | [] | no_license | /**
*
*/
package tk.utbc.controller;
import java.security.Principal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sp... | true |
a1b0e60796839988a7a2b9f5c41b228463596b64 | Java | kinanpermata/PBO-Jobsheets | /Jobsheet6/Tugas/Laptop.java | UTF-8 | 707 | 2.59375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Jobsheet6.Tugas;
/**
*
* @author ASUS
*/
public class Laptop extends Komputer{
public String jnsBaterai;
publi... | true |
a25d74bf892edaa3fae3543d64e020934c01c4e9 | Java | nareshmiriyala/ConcurrentApp | /ConcurrentApp/src/main/java/com/dellnaresh/concurrentapp/Start.java | UTF-8 | 812 | 2.15625 | 2 | [] | no_license | package com.dellnaresh.concurrentapp;
import com.dellnaresh.entity.Trans;
import com.dellnaresh.jpa.TransJpaController;
import javax.persistence.*;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.metamodel.Metamodel;
import java.util.Map;
/**
*
* @author nareshm
*/
public... | true |
cbb5ecd293e7ad1035f9b8438ecf6f35c9a09792 | Java | pxson001/facebook-app | /classes9.dex_source_from_JADX/com/facebook/pager/RenderInfo.java | UTF-8 | 2,708 | 2.046875 | 2 | [] | no_license | package com.facebook.pager;
import com.facebook.common.objectpool.ObjectPool;
import com.facebook.common.objectpool.ObjectPool.Allocator;
import com.facebook.common.time.AwakeTimeSinceBootClock;
import com.google.common.base.Objects;
/* compiled from: ccu_invalid_contact_id_event */
public class RenderInfo<T, S> {
... | true |
7270d1d7303b981e776c11a04aa5d1bd286c22bc | Java | ksu-m16/iTracker | /src/itracker/collect/strategy/IStrategy.java | UTF-8 | 342 | 2.015625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package itracker.collect.strategy;
import itracker.util.ILocation;
/**
*
* @author KerneL
*/
public interface IStrategy {
void reset();
boolean isReady();
void update(ILocation loc);
... | true |
26be9a05d117b681693b105248a236f28826f7cf | Java | OxideMC/kiln | /src/main/java/com/github/glassmc/kiln/common/SystemUtil.java | UTF-8 | 967 | 2.90625 | 3 | [
"MIT"
] | permissive | package com.github.glassmc.kiln.common;
import java.util.Locale;
public class SystemUtil {
public static OSType getOSType() {
String osName = System.getProperty("os.name").toLowerCase();
if(osName.contains("win")) {
return OSType.WINDOWS;
}
if(osName.contains("mac")) {... | true |
7c4b324e3b38480067a787f170229d80e7a4757f | Java | GoogleCloudPlatform/spring-cloud-gcp | /spring-cloud-gcp-autoconfigure/src/main/java/com/google/cloud/spring/autoconfigure/config/GcpConfigProperties.java | UTF-8 | 3,407 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | true |
0054489de2add1abb91a4e81eec147a1028af65f | Java | paurav11/Java | /src/ControlStatements/Loops.java | UTF-8 | 1,460 | 4.28125 | 4 | [] | no_license | package ControlStatements;
public class Loops {
public static void main(String[] args) {
/* loops are used to execute a set of instructions/functions repeatedly
when some conditions become true.
*/
// for loop (Entry controlled)
for (int i=1; i<10; i++) {
if (i... | true |
bdfb7356b99c2c333df561690b5f0a984a74dc99 | Java | sdgdsffdsfff/biz-parameter | /biz-parameter-api/src/main/java/com/mysoft/b2b/bizsupport/api/QualificationBasicRelation.java | UTF-8 | 1,083 | 2.109375 | 2 | [] | no_license | package com.mysoft.b2b.bizsupport.api;
import java.io.Serializable;
/**
* 资质与基础分类服务关联模型类
* @author pengym
*
*/
public class QualificationBasicRelation implements Serializable{
private static final long serialVersionUID = 2406775613593500998L;
/**
* 主键id
*/
private String id;
/**
* 资质码
*/
private Stri... | true |
f135e04d30d58f7b40288a176422a3cc6bf217f0 | Java | JoseSM8/SpringRepository | /WazuWeb/src/test/java/com/wazuweb/WazuWebApplicationTests.java | UTF-8 | 930 | 2.125 | 2 | [] | no_license | package com.wazuweb;
import static org.junit.Assert.assertTrue;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.bcrypt.BCryptPasswor... | true |
9c4ade9bda8b64330da1a39014fff222bc7e4687 | Java | kafun18/O2O | /src/main/java/com/imooc/o2o/util/PathUtil.java | UTF-8 | 713 | 2.109375 | 2 | [] | no_license | package com.imooc.o2o.util;
//import org.apache.jasper.tagplugins.jstl.core.If;
public class PathUtil {
private static String seperator=System.getProperty("file.separator");
public static String getImgBasePath(){
String os = System.getProperty("os.name");
String basePath = "";
if(os.toLowerCase().sta... | true |
a46cb3340f384e593e2d0775f666a2734cbff0c9 | Java | caotingting2017/automationTesting | /androidUITest/src/test/java/com/arisan1000/utils/ReadXmlFileUtils.java | UTF-8 | 5,714 | 2.8125 | 3 | [] | no_license | package com.arisan1000.utils;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.JDOMException;
import org.jdom2.Text;
import org.jdom2.input.SAXBuilder;
public class ReadXmlFile... | true |
8cc7a76d72670e18e6115bb4e76f2e7fa1b0b338 | Java | yygood1000/ph_project | /driver/src/main/java/com/topjet/crediblenumber/goods/view/fragment/ListenOrderView.java | UTF-8 | 669 | 1.6875 | 2 | [] | no_license | package com.topjet.crediblenumber.goods.view.fragment;
import com.topjet.common.base.view.activity.IView;
import com.topjet.common.order_detail.modle.extra.CityAndLocationExtra;
/**
* Created by yy on 2017/9/11.
* 听单View
*/
public interface ListenOrderView extends IView {
void setStartText(String text, boolea... | true |
aa00b3459973607fabded98176309b4a99f0d16d | Java | imurvai/brickcontroller | /app/src/main/java/com/scn/devicemanagement/DeviceManager.java | UTF-8 | 13,517 | 2.203125 | 2 | [] | no_license | package com.scn.devicemanagement;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.MutableLiveData;
import android.support.annotation.MainThread;
import android.support.annotation.NonNull;
import com.scn.common.StateChange;
import com.scn.logger.Logger;
import java.util.ArrayList;
import java.ut... | true |
ab89a0c9ba465efd2fd93dab180b20b38b019a54 | Java | GithubWangXiaoXi/Hospital-master | /src/main/java/com/ming/hospital/dao/MedicineMapper.java | UTF-8 | 482 | 1.929688 | 2 | [] | no_license | package com.ming.hospital.dao;
import com.ming.hospital.pojo.Medicine;
import java.util.List;
public interface MedicineMapper {
public Medicine queryMedicineByMno(String mno);
public List<Medicine> queryAllMedicine();
public void saveMedicine(Medicine medicine);
public void deleteMedicineByMno(String mno);
... | true |
e066a86153287b194eb8dc2068cd45749fe51710 | Java | jcamiloif6/ST0245-032 | /talleres/taller09/punto1.java | UTF-8 | 463 | 3 | 3 | [] | no_license | import java.util.HashMap;
public class punto1 {
HashMap <String, Integer> people = new HashMap<String, Integer>();
public void insertar(String nombre, int numero) {
people.put(nombre, numero);
}
public void mostrar(){
for (String i : people.keySet()) {
System.out.println( i + ": ... | true |
b2d3a79d9e289ced07e75ec06d1779202b325b27 | Java | UjjwalPandey/InterviewBit-Solution---Java | /src/TwoPointers/CountOfRectanglesWithAreaLessThanTheGivenNumber.java | UTF-8 | 1,818 | 3.75 | 4 | [] | no_license | /* Count of rectangles with area less than the given number
Given a sorted array of distinct integers A and an integer B,
find and return how many rectangles with distinct configurations can be created using elements of this array as length and breadth
whose area is lesser than B.
(Note that a re... | true |
a8b5716b8df123f65305af7712fe432f76d0a18f | Java | isabelh340/classwork | /Interview Questions/Reverse.java | UTF-8 | 447 | 3.328125 | 3 | [] | no_license | import java.util.*;
public class Reverse {
public static String reverseWords(String s) {
String[] words = s.split("\\s+");
StringBuilder ans = new StringBuilder();
for (int i = words.length - 1; i >= 0; i--) {
ans.append(words[i]).append(" ");
}
ans.delete(ans.length()-1, ans.length());
return ans.toStr... | true |
305730d5267f0ba8a85e9a545f0b8b9f5f9ec0ee | Java | samirvikash/watson-data-api-clients | /java/src/main/java/com/ibm/watson/data/client/model/ConnectionMetadata.java | UTF-8 | 4,909 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 IBM Corp. 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 by applicable la... | true |
d63aea78776cd7451c833eeb4faf2efbbe949fe5 | Java | AGGADNABIL/xitneppa | /project-war/src/main/java/com/tyba/appentix/web/materiel/search/MaterielsSearch.java | UTF-8 | 2,106 | 2.125 | 2 | [] | no_license | package com.tyba.appentix.web.materiel.search;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.tyba.appentix.business.materiel.model.Materiels;
import com.tyba.appentix.business.materiel.service.MaterielService;
import com.tyba.appentix.business.materiel.vo.MaterielsVO;
impo... | true |
e2009c045370297db2e29cc72ba256582b77a049 | Java | cckmit/dubboProject | /qumiandan-web/src/main/java/cn/qumiandan/web/frontServer/file/entity/request/IndexFileVO.java | UTF-8 | 448 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | package cn.qumiandan.web.frontServer.file.entity.request;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import lombok.Data;
/**
* @description:首页轮播图参数对象
* @author:zhuyangyong
* @date: 2018/11/13 18:39
*/
@Data
public class IndexFileVO implements Serializable {
private static final l... | true |
5a5c0e280e9dff82a584ae7c700d15ab30d3a665 | Java | tryge/cucumber-jvm | /java/src/main/java/cucumber/annotation/Advice.java | UTF-8 | 617 | 2.5 | 2 | [
"MIT"
] | permissive | package cucumber.annotation;
import java.lang.annotation.*;
/**
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Advice {
/**
* @return the pattern that is used to match a step with this advice
*/
String value();
/**
* @return the pointcut annotation... | true |
441df95120b44156b009995c71b1d19383b9f4b0 | Java | lijinlong2016/demo | /src/main/java/com/test/classload/MCFClassLoader.java | UTF-8 | 1,291 | 2.515625 | 3 | [] | no_license | package com.test.classload;
import java.net.URL;
import java.net.URLClassLoader;
import java.net.URLStreamHandlerFactory;
public class MCFClassLoader extends URLClassLoader {
public MCFClassLoader(URL[] urls) {
super(urls);
}
public MCFClassLoader(URL[] urls, ClassLoader parent) {
... | true |
3f3cda39f939e6d0bb46796e88fd228e7275a71b | Java | forrep/slidesolver-java | /src/jp/ne/raccoon/slidesolver/JavaSolver.java | UTF-8 | 4,138 | 3.015625 | 3 | [
"MIT"
] | permissive | package jp.ne.raccoon.slidesolver;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutorService;
i... | true |
e8b51119ff7cb07e863e62ff18cccfacb7ade7e4 | Java | weilanx/FTPProject | /FTP/src/command/PwdCommand.java | UTF-8 | 558 | 2.65625 | 3 | [] | no_license | package command;
import server.ClientDeal;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.Writer;
public class PwdCommand implements Command {
@Override
public void deal(BufferedWriter writer, String data, ClientDeal client) {
try {
//当前工作目录
... | true |
b28130ebc96636e24679c507b3a304fcd79d18fc | Java | Jovtcho/JavaFundamentals | /Java Advanced/03.String-Processing-Exercises/P15ValidUsernames.java | UTF-8 | 1,540 | 3.171875 | 3 | [
"MIT"
] | permissive | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class P15ValidUsernames {
public static void main(String[] args) throws IOException {
Buffer... | true |
7e78cf866f2f8655eced0c3fa661098bc6da5730 | Java | sandeepdice/myhibernateproject | /src/com/roadrantz/dao/ItemListDao.java | UTF-8 | 185 | 1.710938 | 2 | [] | no_license | package com.roadrantz.dao;
import java.util.List;
import standalone.beans.Category;
import standalone.beans.Item;
public interface ItemListDao {
List<Item> getItemList();
} | true |
91899b8453893939acc0331edad46d5a6293193b | Java | guisenhan/istudy | /app/src/main/java/hise/hznu/istudy/widget/LoadView.java | UTF-8 | 6,209 | 2.140625 | 2 | [] | no_license | package hise.hznu.istudy.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.support.v4.content.ContextCompat;
import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.... | true |
a663eb59dde1c1128dbd537644c443ceb423d85a | Java | n9/MusicPlayerRemote | /app/src/main/java/net/prezz/mpr/service/PlaybackService.java | UTF-8 | 19,093 | 1.625 | 2 | [] | no_license | package net.prezz.mpr.service;
import java.util.Arrays;
import net.prezz.mpr.Utils;
import net.prezz.mpr.model.PlayerState;
import net.prezz.mpr.model.PlayerStatus;
import net.prezz.mpr.model.PlaylistEntity;
import net.prezz.mpr.model.ResponseReceiver;
import net.prezz.mpr.model.ResponseResult;
import net.prezz.mpr.m... | true |
d35e3fecb5e3123821faca8ebef01fdec1a26913 | Java | kongzhidea/jdk-source | /demo/src/main/java/demo/javafx_samples/src/Ensemble8/src/samples/java/ensemble/samples/graphics2d/stopwatch/DigitalClock.java | UTF-8 | 4,652 | 2.453125 | 2 | [
"BSD-3-Clause"
] | permissive | package demo.javafx_samples.src.Ensemble8.src.samples.java.ensemble.samples.graphics2d.stopwatch;
/*
* Copyright (c) 2008, 2014, Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
*
* This file is available and licensed under the following license:
*
* Redistribution and use in ... | true |
09fa20afe55dc6f4579d1613375dfdf6230fee52 | Java | mail-vishalgarg/JavaPractice | /src/com/java/IO/StandardInput.java | UTF-8 | 427 | 3.265625 | 3 | [] | no_license | package com.oracle.IO;
import java.io.IOException;
public class StandardInput {
public static void main(String[] args) throws IOException {
/*System.out.println("Enter any character");
int y=System.in.read();
System.out.println((char)y);*/
char[] ary={'a','b','j'};
for(int i=0; i<ary.length;i... | true |
28b5a0eb0b977070169c4adfb135906bc7e1cf14 | Java | NandiniDR29/regression-test | /ren-automation-ui/src/main/java/com/exigen/ren/rest/claim/model/common/claimbody/claim/PaidToDateInfoEntityModel.java | UTF-8 | 1,546 | 2.21875 | 2 | [] | no_license | package com.exigen.ren.rest.claim.model.common.claimbody.claim;
import com.exigen.ipb.eisa.ws.rest.model.Model;
import java.util.Objects;
public class PaidToDateInfoEntityModel extends Model {
private String gracePeriod;
private String paidToDateWithGracePeriod;
private String paidToDate;
public Str... | true |
842a90218c0870b24e3d8ef707d3bcae24be6fd9 | Java | bnreplah/Sac2020 | /CMPR112/module11/module11/src/lecture11tempatureconvert/extraCredit.java | UTF-8 | 4,319 | 3.546875 | 4 | [] | no_license | /**
*Ticket : 86713
*Course : CMPR 112
*Student : Ben Halpern
*Instructor : Professor Kirscher
*Environment: Win 10 NetBeans
*Project Title :
*
*
*Assignment details:
*/
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and o... | true |
1577719ba36a837afbd90409db1505b11f47065a | Java | ArharbiOumkaltoum/-Travel-agency-jee | /src/agence/voyage/panier/Panier.java | UTF-8 | 615 | 2.203125 | 2 | [] | no_license | package agence.voyage.panier;
public class Panier {
private int id_panier;
private String destination;
private String prix;
private String duree;
public int getId_panier() {
return id_panier;
}
public void setId_panier(int id_panier) {
this.id_panier = id_panier;
}
public String getDestination() {
return destinatio... | true |
7ccb4e6206c580f25aa14899a556d01669a9a901 | Java | benw1916/Shipping-Simulator | /src/main/java/Depricated/ShipStatus.java | UTF-8 | 1,051 | 2.515625 | 3 | [] | no_license | package main.java.Depricated;
public class ShipStatus{
/*public ShipStatus(Boat playerObject){
Abstract.RotateOptions(MenuDisplays.GetShoreOptionMenu()); //"Check Weather Report", "Check Ship Status", "Refuel Ship", "Check Port Prices", "Go Back"
System.out.println("Beet test");
ParseShoreOptions(A... | true |
187a58eb2e6d9002cf6d2bb87289500facbc2266 | Java | SapanShiv/bookstore-application | /src/main/java/com/bookstore/model/ErrorResponseTO.java | UTF-8 | 586 | 2.1875 | 2 | [] | no_license | package com.bookstore.model;
import java.util.List;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* Error Response TO.
*
* @author shivanimalhotra
*
*/
@Data
@NoArgsConstructor
public class ErrorResponseTO {
/**
* @param message
* @param details
*/
public ErrorResponseTO(String message, Lis... | true |
9df90cb8a69ef066124f6d40274e6044dde1c8bd | Java | FeridQuluzade/teazy-coffee-shop-backend | /src/main/java/com/sale/teazy/domain/Sale.java | UTF-8 | 966 | 2.109375 | 2 | [] | no_license | package com.sale.teazy.domain;
import lombok.*;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;
import javax.persistence.*;
import java.time.LocalDateTime;
@Entity
@Data
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "sales")
public class Sal... | true |
a696b644f42425864474ea9ac82c63d4897d81e2 | Java | Sushantbhardwaj83/Test | /Practice/src/AverageOfN.java | UTF-8 | 265 | 2.953125 | 3 | [] | no_license | import java.util.Scanner;
public class AverageOfN {
double average(double n){
double avg=0;
while(n>=1)
{
avg=(avg+n)/n;
n--;
}
return avg;
}
public static void main(String[] args) {
int x=0x123;
System.out.println(x);
System.out.println(45/10/2);
}
}
| true |
732c1f2c0de19c08dd7c42285b899c2f341a5e0e | Java | DendiProject/ui-service | /src/main/java/com/netcracker/ui/service/graf/component/GrafState.java | UTF-8 | 565 | 1.648438 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.netcracker.ui.service.graf.component;
import com.vaadin.shared.ui.JavaScriptComponentState;
import java.util.ArrayList;
/... | true |
49f0807af2ea0f338987d60db96cc3582de9ab2b | Java | ZoroSpace/LeetCode | /138CopyListwithRandomPointer.java | UTF-8 | 917 | 3.3125 | 3 | [] | no_license | /**
* Definition for singly-linked list with a random pointer.
* class RandomListNode {
* int label;
* RandomListNode next, random;
* RandomListNode(int x) { this.label = x; }
* };
*/
public class Solution {
public RandomListNode copyRandomList(RandomListNode head) {
RandomListNode cur1 =... | true |