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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e029c6b94efc86075bfa54939207383f3a14b507 | Java | kbmakevin/WhatMyGPA | /WhatMyGPA_Web/src/com/whatmygpa/servlets/LoginServlet.java | UTF-8 | 1,458 | 2.375 | 2 | [] | no_license | package com.whatmygpa.servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.whatmygpa.dao.UsersService;
imp... | true |
8971be6d743d2f711ef2509fdde75a6c335dadde | Java | LucaContri/dataanalysis | /Reporting/src/com/saiglobal/reporting/utility/KPIProcessorScheduling.java | UTF-8 | 16,053 | 2.09375 | 2 | [] | no_license | package com.saiglobal.reporting.utility;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.HashMap;
import org.apache.commons.lang.StringUtils;
import com.saiglobal.reporting.model.KPIData;
import com.saiglobal.sf.core.data.DbHelper;
public class KPIProcessorS... | true |
d8e02273c635616257d0752a1d3134f90b98934d | Java | weirongxin/wrx | /se,数据库/se/code/Day15/src/com/qiancheng/tools2/Test.java | GB18030 | 399 | 3.125 | 3 | [] | no_license | package com.qiancheng.tools2;
public class Test {
public static void main(String[] args) {
Person p1 = new Person(123);
Person p2 = new Person(123);
System.out.println(p1);
System.out.println(p2);
//ͨequalsȽ(ĬϱȽϵַ)
if(p1.equals(p2)){
System.out.println("ͬһ");
}else{
System.out.println("ͬ");... | true |
8d2a4c34225a5bcbe5de18f29596c5cf12d5f8a2 | Java | Gorro-par/Java_Study | /app/src/app/BreakEx.java | UHC | 397 | 3.25 | 3 | [] | no_license | package app;
public class BreakEx {
public static void main(String[] args) {
int i = 0;
boolean result = true;
do {
i++;
if(result) {
System.out.println(" ");
if(i == 5) {
result = false;
}
if(! result) {
System.out.println(" ");
break;
}
}else {
System.out.prin... | true |
57cf6f1cf72931f35117b81954c8eaee8318dfe2 | Java | pigatron-industries/xenharmonics-archived | /src/main/java/com/pigatron/xen/domain/entity/OutputControlVoltages.java | UTF-8 | 704 | 2.21875 | 2 | [] | no_license | package com.pigatron.xen.domain.entity;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
public class OutputControlVoltages
{
private ControlVoltage[] controlVoltages;
public OutputControlVoltages(int size) {
controlVoltages = new ControlVo... | true |
9dc60e3f81bf19d577be99570c52fdab12ada150 | Java | Kowsi2712/HandsOnAssignment | /Day4(27th Aug 2020)/PlayerException.java | UTF-8 | 912 | 3.28125 | 3 | [] | no_license | package com.kowsi;
import java.util.Scanner;
class InvalidAgeRangeException extends Exception
{
private int age;
InvalidAgeRangeException(int a)
{
age=a;
}
@Override
public String toString() {
return "Custom Exception:InvalidAgeRangeException ";
}
}
public class PlayerException {
public s... | true |
0f7cf7eb2486fc0e74ff080b7e1074caa65a4b7c | Java | OttoZong/MyProject | /JDBC/JDBC/src/tw/com/lccnet/bean/Customer.java | UTF-8 | 977 | 2.453125 | 2 | [] | no_license | /*
* Copyright (c) 1994, 2018, lccnet and/or 偷我程式者,將受到神的制裁
*/
package tw.com.lccnet.bean;
/**
* 專案名稱:JDBC
* 建立時間:2018年10月18日 下午8:46:20
* @auther EricYang
* Email:eric.tw.2015@gmail.com
* @version 1.0V
*
* TODO
*/
public class Customer {
//封裝
//bean id.name....tables
private int id;
private String name;
priva... | true |
29bb049d00d1e53d3ec49e76bde5422dc0af24ad | Java | Ahmad-faroukh/Java-Applets-2 | /prog3/Server.java | UTF-8 | 1,501 | 3.5 | 4 | [] | no_license | package Archive.prog3;
import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;
public class Server {
public Server(){
try {
ServerSocket soket = new ServerSocket(4444);//chose a port that's not busy
... | true |
f0ddd8644e5b8897a8342ad7cf03f2d7475d3819 | Java | GZK0329/OA_SYSTEM | /src/main/java/com/example/emos/wx/controller/form/LoginForm.java | UTF-8 | 381 | 1.710938 | 2 | [] | no_license | package com.example.emos.wx.controller.form;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import javax.validation.constraints.NotBlank;
/**
* @Classname LoginForm
* @Description TODO
* @Date 2021/7/31 15:25
* @Created by GZK0329
*/
@ApiModel
@Data
public class LoginForm {
@NotBlank(message = ... | true |
a9794f8263113edd5a49d04538e8c46916575bb2 | Java | taana/mavenCucumberProtopyte | /src/test/java/com/cucumber/mavenCucumberProtopyte/StepsButtons.java | UTF-8 | 1,177 | 2.234375 | 2 | [] | no_license | package com.cucumber.mavenCucumberProtopyte;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import cucumber.api.java.After;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.When;
public class StepsButtons {
private WebDriverSingleton automati... | true |
aa7d1506bb70249f9f4336636a4af1efc6a28722 | Java | tiengaro/GoogleMap_Demo_Comp | /app/src/main/java/com/example/domaumaru/googlemap_demo_comp/Data/d_FourSquarePlaces.java | UTF-8 | 706 | 1.851563 | 2 | [] | no_license | package com.example.domaumaru.googlemap_demo_comp.Data;
import com.google.android.gms.maps.model.LatLng;
/**
* Created by Doma Umaru on 9/27/2016.
*/
public class d_FourSquarePlaces {
public String id = "BVJMMLEX2FLG4UN2CMEABBK2XPAIPEFEGRMQAZFLJGRLI5HV";
public String secret = "JN33ZUSGAVQLT1IHW3YTI3I2VALW... | true |
9697f50ae03dd4fe66d38ffdbb30111cbf86b177 | Java | olbucaille/Android_Mobility_Project | /app/src/main/java/com/andoidapplicationisep/teammobility/android_mobility_project/BDD/Activity.java | UTF-8 | 1,267 | 2.234375 | 2 | [] | no_license | package com.andoidapplicationisep.teammobility.android_mobility_project.BDD;
import java.util.Date;
/**
* Created by apple on 25/11/2015.
*/
public class Activity {
static public final int TYPE_HEARTBEAT = 1;
static public final int TYPE_RUNNING = 2;
private long id ;
private String userFbID;
p... | true |
b2125baee65a7f04a63b6522dd3105363c7dd40f | Java | PacktPublishing/Java-9-Cookbook | /Chapter11/5_1_apache_http_demo_response_handler/src/http.client.demo/com/packt/ApacheHttpClientResponseHandlerDemo.java | UTF-8 | 1,068 | 2.640625 | 3 | [
"MIT"
] | permissive | package com.packt;
import java.io.IOException;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.ResponseHandler;
import org.ap... | true |
ed2d589536b56fc796790eb72b3875b297457641 | Java | testingGlobalIndia/JavaRepository | /Thread/src/academy/learnprogramming/Main.java | UTF-8 | 797 | 3.390625 | 3 | [] | no_license | package academy.learnprogramming;
public class Main {
public static void main(String[] args) {
System.out.println("Hello from main thread.");
Thread anotherThread = new AnotherThread();
anotherThread.setName("== Another Thread ===");
anotherThread.start();
new Thread(){
... | true |
008f5da8bed986bccf2c16273732b650b61bf636 | Java | lucasantonio12/esigproject | /src/main/java/dao/TarefaDao.java | UTF-8 | 1,511 | 2.421875 | 2 | [] | no_license | package dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import interfaces.ITarefaDao;
import modelo.Tarefa;
import util.HibernateUtil;
public class TarefaD... | true |
0647d32f11533a32b402ec006f75707152166d0e | Java | SantiagoBursese/AterrizarV3 | /src/dataDummy/DataDummy.java | UTF-8 | 10,563 | 1.929688 | 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 dataDummy;
import aterrizarv2.AterrizarV2;
import aterrizarv2.aerolinea.Aerolinea;
import aterrizarv2.aerolinea.RequisitoCarga... | true |
a5d1344e7085618d0a64a0977e98e0f3d44016d4 | Java | ojourmel/csci331-team-red | /src/main/java/csci331/team/red/client/FieldDialogueCallback.java | UTF-8 | 781 | 2.328125 | 2 | [] | no_license | package csci331.team.red.client;
import csci331.team.red.shared.callbacks.FieldCallback;
public class FieldDialogueCallback<T extends Callback> implements
DialogueCallback<Callback> {
protected FieldAgentScreen entity;
public FieldDialogueCallback(FieldAgentScreen entity) {
this.entity = entity;
}
@Override... | true |
972d5722f009cd45a10a1f86b6d4c9aa2f603f28 | Java | tifuigabriel1993/ACADEMIA_RAPID_PLATFORM | /fc-rapid-mvn/fc-rapid-web/src/main/java/com/companyname/web/controller/platform/TicketController.java | UTF-8 | 459 | 1.804688 | 2 | [] | no_license | package com.companyname.web.controller.platform;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.companyname.web.util.Views;
@Controller
@RequestMapping("/platforma/bilete")
publi... | true |
6267588301ae64d16cede0622fb83f6071f7edf9 | Java | irfanYLDRM/JavaCamp | /homework_week_5_1_e-commerce/src/eCommerceDemo/core/abstracts/ConfirmEmailService.java | UTF-8 | 118 | 1.945313 | 2 | [] | no_license | package eCommerceDemo.core.abstracts;
public interface ConfirmEmailService {
boolean confirmEmail(String email);
}
| true |
1ea6feb682ecb85ece33698b3aaa49605f8be66d | Java | pavikumbhar/spring-boot-mqtt-integration | /src/main/java/com/pavikumbhar/mqtt/dto/MessageProducerRequest.java | UTF-8 | 808 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | package com.pavikumbhar.mqtt.dto;
import org.springframework.integration.mqtt.core.MqttPahoClientFactory;
import org.springframework.integration.mqtt.support.MqttMessageConverter;
import org.springframework.messaging.MessageChannel;
import lombok.Getter;
import lombok.Setter;
/**
*
* @author pavikumbhar
*
*/
@Ge... | true |
a4fed13ce22f3a4363aa994ecd1751bbd58a81fe | Java | Cristhian-WebProgram/ProyectoClinicaDental | /ClinicaSpring/src/main/java/pe/edu/upc/spring/entity/Promocion.java | UTF-8 | 2,253 | 2.484375 | 2 | [] | no_license | package pe.edu.upc.spring.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persis... | true |
79c848403f152685c05a1299b20e22b5bff2af05 | Java | moutainhigh/vmi-openInstall | /vmi-video-service/src/test/java/com/tigerjoys/shark/miai/agent/test/UserVipAgentTest.java | UTF-8 | 2,045 | 1.914063 | 2 | [] | no_license | package com.tigerjoys.shark.miai.agent.test;
import java.time.LocalTime;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.tigerjoys.nbs.common.utils.Tools;
import com.tigerjoys.shark.miai.agent.IAnchorDefendAgent;
import com.tigerjoys.shark.miai.agent.IUserAgent;
impor... | true |
50ed97f6b76b762b002f2948f9411bd37417b646 | Java | zhiyuan0226/JavaNotes | /Spring/03 Spring-aop/src/com/wzy/test/Demo.java | UTF-8 | 316 | 2.265625 | 2 | [] | no_license | package com.wzy.test;
public class Demo {
public void demo1() {
System.out.println("Demo1.demo1");
}
public void demo2() {
System.out.println("demo2");
}
public void demo3() {
System.out.println("demo3");
}
public void demo4(String name) {
System.out.println("demo4---"+name);
// int i=5/0;
}
}
| true |
8633282a59238dd5820bfa3a266b1ac4240caa1e | Java | dstmath/OppoR15 | /app/src/main/java/android/icu/impl/SoftCache.java | UTF-8 | 1,263 | 2.359375 | 2 | [] | no_license | package android.icu.impl;
import java.util.concurrent.ConcurrentHashMap;
public abstract class SoftCache<K, V, D> extends CacheBase<K, V, D> {
private ConcurrentHashMap<K, Object> map = new ConcurrentHashMap();
public final V getInstance(K key, D data) {
CacheValue<V> mapValue = this.map.get(key);
... | true |
b2d639c16ddf38760e206a012bb9913d94c68358 | Java | lat-lon/deegree2-base-2.3.1 | /src/org/deegree/enterprise/servlet/LoggingFilter.java | UTF-8 | 6,171 | 1.828125 | 2 | [] | no_license | //$HeadURL: svn+ssh://aerben@scm.wald.intevation.org/deegree/base/trunk/src/org/deegree/enterprise/servlet/LoggingFilter.java $
/*---------------- FILE HEADER ------------------------------------------
This file is part of deegree.
Copyright (C) 2001-2008 by:
EXSE, Department of Geography, University of Bonn
h... | true |
c67246d9747e5dc63b73b83a19ec4209cb791a28 | Java | bestjss/fpush | /fpush-server/src/main/java/com/appjishu/fpush/server/model/PushParam.java | UTF-8 | 813 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.appjishu.fpush.server.model;
import java.io.Serializable;
public class PushParam implements Serializable {
private String receiverAlias;
private String title;
private String desc;
private String data;
public String getReceiverAlias() {
return receiverAlias;
}
public v... | true |
a8eba2f1d44dc82d77df0eb7187e8ea152b71848 | Java | Islendingurinn/adventofcode | /advent/e2020/Day12.java | UTF-8 | 7,479 | 3.125 | 3 | [] | no_license | package advent.e2020;
import advent.Advent;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
public class Day12 extends Advent {
public static void main(String[] args) throws IOException {
new Day12();
}
protected Day12() throws IOException {
super(12);
... | true |
606ecf818e70f5904809b75ea741e4296cae9c7b | Java | VitaliiBashta/Trunk | /java/l2trunk/gameserver/network/serverpackets/PledgeReceiveSubPledgeCreated.java | UTF-8 | 639 | 2.25 | 2 | [] | no_license | package l2trunk.gameserver.network.serverpackets;
import l2trunk.gameserver.model.pledge.SubUnit;
public class PledgeReceiveSubPledgeCreated extends L2GameServerPacket {
private final int type;
private final String _name;
private final String leader_name;
public PledgeReceiveSubPledgeCreated(SubUnit ... | true |
defda08d450956ff1402361fe5b801b6352f5332 | Java | alboteanud/Golf | /core/src/com/lutu/golf/ecrane/AbstractScreenWithFlipper.java | UTF-8 | 9,844 | 2.203125 | 2 | [] | no_license |
package com.lutu.golf.ecrane;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.InputProcessor;
import com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureFilter;
import com.badlogic.gdx.scenes.scene2d.Actor;
imp... | true |
ac30f9801c158ca1c23bb5a902f4538386343c57 | Java | wq907547122/design23-demo | /src/main/java/com/wu/qiang/mediator/DatingPlatform.java | UTF-8 | 325 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.wu.qiang.mediator;
/**
* @auth wq on 2019/12/11 16:18
**/
public class DatingPlatform {
public static void main(String[] args) {
Medium medium = new EstateMedium(); // 房屋中介
medium.register(new Seller("张三(卖方)"));
medium.register(new Buyer("李四(买方)"));
}
}
| true |
571c2dd0c1ffa6e1f08f0fbed185d28cd9920dda | Java | dfdf0202/JavaStudy | /src/ch3/Ch3_Ex3.java | UTF-8 | 587 | 3.8125 | 4 | [] | no_license | package ch3;
public class Ch3_Ex3 {
public static void main(String[] args) {
int a = 10;
int b = 4;
System.out.println(a + b);
System.out.println(a - b);
System.out.println(a * b);
System.out.println(a / b);
System.out.println(a / (float)b);
// 나누기 연산자의 두 피연산자가 모두 int 타입인 경우, 결과도 int
// 그래... | true |
1abb2e44921ab23343f869d521360423aa0bf762 | Java | dengkai1982/xhapp | /src/main/java/kaiyi/app/xhapp/controller/mgr/AccountController.java | UTF-8 | 18,949 | 1.789063 | 2 | [] | no_license | package kaiyi.app.xhapp.controller.mgr;
import kaiyi.app.xhapp.entity.access.*;
import kaiyi.app.xhapp.entity.access.enums.MemberShip;
import kaiyi.app.xhapp.service.access.*;
import kaiyi.app.xhapp.service.log.LoginLogService;
import kaiyi.puer.commons.access.AccessControl;
import kaiyi.puer.commons.collection.Cascad... | true |
7e761c6d7a24e3285a853a384ec3fa4fb07bddef | Java | tamlover/awesome-algorithm | /src/main/java/greedy/Solution881.java | UTF-8 | 486 | 2.84375 | 3 | [] | no_license | package greedy;
import java.util.Arrays;
/**
* @author luli
* @date 2021/8/26
*/
public class Solution881 {
public int numRescueBoats(int[] people, int limit) {
Arrays.sort(people);
int left = 0;
int right = people.length - 1;
int ans = 0;
while (left <= right) {
... | true |
15207243476060516955b30f4d6c71eb38003112 | Java | cha63506/CompSecurity | /lyft-source/src/com/crashlytics/android/Crashlytics$2.java | UTF-8 | 790 | 1.703125 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.crashlytics.android;
import io.fabric.sdk.android.Fabric;
import io.fabric.sdk.android.Logger;
import java.io.File;
import java.util... | true |
384c953f91295c680e2d37a8a6faab637aa1ba9d | Java | xlagunas/StickyHeaders | /app/src/main/java/cat/xlagunas/stickyheaders/Groupable.java | UTF-8 | 93 | 1.585938 | 2 | [] | no_license | package cat.xlagunas.stickyheaders;
public interface Groupable<T> {
T getGroupKey();
}
| true |
fe83d58c956ca274dda3352af364bd48f13fc659 | Java | artnaseef/immutable-utils | /src/main/java/com/artnaseef/immutable/utils/MutationUtilsImmutableProperties.java | UTF-8 | 1,157 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2021 Arthur Naseef
*
* 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 |
fe667e6ee6a8b51e9dbfc2b9590881792a8a2600 | Java | vklindukhov/crossover | /src/main/java/com/dev/server/controllers/CustomerController.java | UTF-8 | 3,779 | 2.3125 | 2 | [] | no_license | package com.dev.server.controllers;
import com.dev.domain.Customer;
import com.dev.server.NotEnoughBalanceException;
import com.dev.server.NotEnoughQuantityProductException;
import com.dev.server.services.SalesResourcesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.h... | true |
7edbca054e4666249c82f345cac63abb17fa0a1b | Java | Dotsworthy/airline_lab_codeclan_week11_weekend_homework | /weekend_hw/src/main/java/Plane.java | UTF-8 | 481 | 3.046875 | 3 | [] | no_license | public class Plane {
private PlaneType type;
private int capacity;
private int totalWeightKG;
public Plane(PlaneType type, int capacity, int totalWeightKG) {
this.type = type;
this.capacity = capacity;
this.totalWeightKG = totalWeightKG;
}
public PlaneType getType() {
retu... | true |
3370702893620cbb99afc8fe6e87be44e1de5e9e | Java | DestinyWarrior-Shen/Homelets | /app/src/main/java/com/example/homelessservices/Toilet.java | UTF-8 | 1,163 | 2.40625 | 2 | [] | no_license | package com.example.homelessservices;
import com.google.android.gms.maps.model.LatLng;
import com.google.maps.android.clustering.ClusterItem;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.ArrayList;
public cla... | true |
315974414574867f1452844120979a95246b9ee5 | Java | granudoz/hello-world | /src/main/java/br/com/alura/forum/controller/form/RespostaForm.java | UTF-8 | 946 | 2.25 | 2 | [] | no_license | package br.com.alura.forum.controller.form;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import br.com.alura.forum.modelo.Resposta;
import br.com.alura.forum.modelo.Topico;
import br.com.alura.forum.repository.TopicoRepo... | true |
86f2b70dc674d599e734e92670689e12ad8b7733 | Java | binbird/babysagaapp | /src/com/zylbaby/app/bean/BabyDiaryByClass.java | UTF-8 | 609 | 2.109375 | 2 | [] | no_license | package com.zylbaby.app.bean;
import java.util.ArrayList;
public class BabyDiaryByClass {
private String BabyName;
private String BabyPic;
private ArrayList<DiaryDto> DiaryList;
public String getBabyName() {
return BabyName;
}
public void setBabyName(String babyName) {
BabyName = babyName;
}
... | true |
05439c4ba9505bf3b5a18b1f751b9e9fefcb987e | Java | bhagwatwadhe/adb | /MachineL.java | UTF-8 | 2,266 | 3.28125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package machinel;
import java.util.Scanner;
public class MachineL {
public static void main(String[] args) {
float m1=0,m2=0,sum1,sum2,a,b;
int n=0,i=0,j=0,k=0;
int items=0;
boolean flag;
... | true |
7c27ac0e45851e0897aed18b1c139989d3424bea | Java | dinhdangkhoa0201/LTWWWJAVA_DHKTPM13A_BAITAPLON_NHOM24 | /LTWWWJAVA_DHKTPM13B_Group20/src/main/java/fit/se/main/service/supplier/SupplierService.java | UTF-8 | 342 | 1.976563 | 2 | [] | no_license | package fit.se.main.service.supplier;
import java.util.List;
import fit.se.main.model.Supplier;
public interface SupplierService {
public void createSupplier(Supplier supplier);
public void updateSupplier(Supplier supplier);
public List<Supplier> findAll();
public void deleteById(int supplierId);
public Supplie... | true |
e585890b3fbc1fd04099b5306f426a0887d3bbc9 | Java | Kealina-A/leetcode-log | /src/week8/E155MinStack/MinStack.java | UTF-8 | 1,953 | 4.25 | 4 | [] | no_license | package week8.E155MinStack;
import java.util.Stack;
/**
* ******************************************************************
* 日 期: 2020-01-30 星期四
* ******************************************************************
* 题 目: [155]Min Stack
* //设计一个支持 push,pop,top 操作,并能在常数时间内检索到最小元素的栈。
* //
* //
* // push(x) ... | true |
e6534aa7bd1fac11638ec00fd6dd1d1f2026b76e | Java | eugeniocortesi/Sagrada | /src/test/java/it/polimi/ingsw/LM26/controller/GamePhases/TestRound.java | UTF-8 | 15,255 | 2.28125 | 2 | [] | no_license | package it.polimi.ingsw.LM26.controller.GamePhases;
import it.polimi.ingsw.LM26.controller.Controller;
import it.polimi.ingsw.LM26.model.Model;
import it.polimi.ingsw.LM26.model.PlayArea.diceObjects.Bag;
import it.polimi.ingsw.LM26.model.PlayArea.diceObjects.Die;
import it.polimi.ingsw.LM26.model.PlayArea.diceObjects.... | true |
b7995f8e62d307c9de6a1293389079d6122a5ee8 | Java | mincatsg/practiceone | /NThanN2.java | UTF-8 | 898 | 3.171875 | 3 | [] | no_license | package NKTest;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Map;
import java.util.HashMap;
public class NThanN2 {
// n个数里出现次数大于等于n/2的数
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new... | true |
5ca1aa9d009e14ccea66155d74163d576cda01b0 | Java | zengzhaoxing/app | /app/src/main/java/com/example/admin/fastpay/view/GetCodeView.java | UTF-8 | 2,298 | 2.046875 | 2 | [] | no_license | package com.example.admin.fastpay.view;
import android.content.Context;
import android.os.Handler;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import com.example.admin.fastpay.R;
import com.zhaoxing.view.sharpview.SharpTextView;
import com.zxz.www.base.utils.ResUtil;
im... | true |
8e8111660b00ace6120f06f5746d7112fa48f87a | Java | XeonLyfe/Backdoored-1.7-Deobf-Source-Leak | /com/google/api/client/repackaged/com/google/common/base/CharMatcher$BreakingWhitespace.java | UTF-8 | 904 | 2.578125 | 3 | [
"MIT"
] | permissive | package com.google.api.client.repackaged.com.google.common.base;
final class CharMatcher$BreakingWhitespace extends CharMatcher {
static final CharMatcher INSTANCE = new CharMatcher$BreakingWhitespace();
private CharMatcher$BreakingWhitespace() {
}
public boolean matches(char c) {
switch(c) {
... | true |
9c38d49e8c80303a0726c41849fa0a1556b8c12f | Java | kugomusic/leetcode-java | /src/firstPass/easy/_342/Solution.java | UTF-8 | 807 | 3.125 | 3 | [
"MIT"
] | permissive | package firstPass.easy._342;
/**
* @description:
* @author: tc
* @create: 2019/07/12 09:47
*/
/*
执行用时 :1 ms, 在所有 Java 提交中击败了100.00%的用户
内存消耗 :33.5 MB, 在所有 Java 提交中击败了13.56%的用户
*/
public class Solution {
public boolean isPowerOfFour(int num) {
if (num <= 0) {
return false;
}
... | true |
07eb651bd8336ea3e7445f396367659531887f7b | Java | sorinb97/tester | /src/main/java/com/license/tester/transfer/mapping/SubGroupMapper.java | UTF-8 | 1,120 | 2.359375 | 2 | [] | no_license | package com.license.tester.transfer.mapping;
import com.license.tester.db.model.SubGroup;
import com.license.tester.db.model.Teacher;
import com.license.tester.db.repo.TeacherRepository;
import com.license.tester.transfer.dto.SubGroupDto;
import org.springframework.stereotype.Component;
import java.util.UUID;
@Compo... | true |
32d53c3053cfbc01e53ac8d603cff2ee4a84018e | Java | facetalk/facetalk_web | /springMVC/src/main/java/com/facehu/web/controller/FaceSmsController.java | UTF-8 | 4,791 | 1.96875 | 2 | [] | no_license | package com.facehu.web.controller;
import com.facehu.web.dao.UserDao;
import com.facehu.web.model.User;
import com.facehu.web.util.CtlHelp;
import com.facehu.web.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframe... | true |
9e635cd36e8df3f855cd7a13b327cfd7627bcf44 | Java | linjunbobo/recruiting | /src/main/java/com/graduation/project/Controller/FileController.java | UTF-8 | 2,210 | 2.1875 | 2 | [] | no_license | package com.graduation.project.Controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.Tag;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
imp... | true |
a930b364248178531b2bdd29ac61ad2ad6ceb484 | Java | majrul/ycp | /day14/spring-intro/TestIoC.java | UTF-8 | 502 | 2.234375 | 2 | [] | no_license | package com.cdac.test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.cdac.component.HelloWorld;
public class TestIoC {
public static void main(String[] args) {
//Loading the IoC container of Spring
ApplicationContext... | true |
b72e2ab8e5bf988e9e3f922a290dd5e1a1044f3b | Java | forestsky1/Stockly | /app/src/main/java/com/larkspur/stockly/data/IDataCache.java | UTF-8 | 2,337 | 3.015625 | 3 | [] | no_license | package com.larkspur.stockly.data;
import com.larkspur.stockly.models.Category;
import com.larkspur.stockly.models.IStock;
import java.util.List;
public interface IDataCache {
/**
* Add all stock to the cache
* @param stocks : representing list of stocks to add to the cache
*/
void addAllStoc... | true |
20e7bb43148e6d4f06755dffa82fdf27a3477346 | Java | FEJonesYang/Algorithm | /ZuoChengYun/src/sort/BubbleSort.java | UTF-8 | 945 | 3.9375 | 4 | [] | no_license | package sort;
/**
* @Author: JonesYang
* @Data: 2021-06-16
* @Description: 冒泡排序算法
*/
public class BubbleSort {
private int[] bubbleSort(int[] arr) {
// 检查是否有效
if (arr == null || arr.length < 2) {
return arr;
}
// 开始进行冒泡排序
for (int i = 0; i < arr.length - 1; ... | true |
2938c970143ea044272eb2d27e7f9acff37d150e | Java | devonuu/GOJ | /src/org/basic/enums/Gender.java | UTF-8 | 845 | 3.515625 | 4 | [] | no_license | package org.basic.enums;
public enum Gender {
MALE("M","남"),
FEMALE("F","여");
//객체의 생성과 값의 할당까지 ENUM에서 한번에 진행함.
//생성자의 개수에 따라 MALE이라는 객체는 남일수도 M일수도
//열거형이기 때문에 Runtime이 아닌 Compile 단계에서 이미 MALE에는 M과 남이라는 값이 할당됨
private String genderShort;
private String genderKor;
private Gender(){}
... | true |
cabc57715e33320a254e3b2fa2eee8fd5a46009c | Java | JilingLee462362/ssh_HR_V005 | /src/com/tzhu/ssh/controller/EngageInterviewAction.java | GB18030 | 4,715 | 2.015625 | 2 | [] | no_license | package com.tzhu.ssh.controller;
import java.util.List;
import javax.annotation.Resource;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.R... | true |
f55038064def98eadd7455fe8bcda92c91a80e7b | Java | ralsc/Condominio | /src/java/entidades/Condominio.java | UTF-8 | 3,365 | 2.078125 | 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 entidades;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.Colum... | true |
ae5691bb5effbc9efa320090429dfd5b86945c55 | Java | patientZer0/First-Android-Project--TrailMapper | /Trail Mapper/src/trail/mapper/MyOverlays.java | UTF-8 | 1,786 | 2.6875 | 3 | [] | no_license | package trail.mapper;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Point;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapView;
import... | true |
764cba06f3edb5142a03c34c168e812649b40361 | Java | damanpreetsb/QuizApp | /app/src/main/java/com/singh/daman/quizapp/di/module/NetModule.java | UTF-8 | 2,202 | 2.203125 | 2 | [] | no_license | package com.singh.daman.quizapp.di.module;
import android.content.Context;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.singh.daman.quizapp.InitApp;
import com.singh.daman.quizapp.data.ApiInterface;
import java.io.File;
import java.util.concurr... | true |
9e73bbb85d2123720f8c3c6c6dffdb44144b67b6 | Java | alvin-qh/study-java | /se/ratelimit/src/test/java/alvin/study/se/ratelimit/TokenBucketRateLimiterTest.java | UTF-8 | 2,222 | 3.234375 | 3 | [] | no_license | package alvin.study.se.ratelimit;
import org.junit.jupiter.api.Test;
import java.util.concurrent.atomic.AtomicInteger;
import static org.assertj.core.api.BDDAssertions.then;
/**
* 测试 {@link TokenBucketRateLimiter} 类型, 通过令牌桶进行限流
*/
class TokenBucketRateLimiterTest extends RateLimiterTest {
/**
* 测试 {@link... | true |
c0fdf4f23d834f553863b683658ae348245b9569 | Java | searles/meelanlang | /src/main/java/at/searles/meelan/parser/MeelanParser.java | UTF-8 | 14,927 | 2.234375 | 2 | [] | no_license | package at.searles.meelan.parser;
import at.searles.lexer.Lexer;
import at.searles.lexer.SkipTokenizer;
import at.searles.meelan.ops.Instruction;
import at.searles.meelan.ops.arithmetics.*;
import at.searles.meelan.ops.bool.*;
import at.searles.meelan.ops.comparison.*;
import at.searles.meelan.ops.cons.Cons;
import at... | true |
f9dfb39f6dc5714352711a8f6929ae8d318a370c | Java | OnlyPaul/GA_nqProblem | /nq_java/src/NQClient.java | UTF-8 | 535 | 2.546875 | 3 | [] | no_license | /**
* Testing
*/
public class NQClient {
public static void main(String[] args) {
int n = 11;
int popsize = 5000;
int gencnt = 5000;
int tmsize = 50;
double mutprob = 0.2;
Environment nqueen = new Environment(popsize, n);
nqueen.natSelection(gencnt, tmsize,... | true |
93db60951c9ccabd89b82b46cab50a9495571b97 | Java | romanlukichev/lessons2018 | /src/Box.java | UTF-8 | 2,142 | 3.59375 | 4 | [] | no_license | import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Objects;
public class Box implements Comparable<Box>{
private double a;
private double b;
private double c;
public Box(double a, double b, double c) {
this.a = a;
this.b = b;
this.c = c;
}
pub... | true |
ff006df944e1c58b63ab2a4be14aa4f775fc6093 | Java | yswname/SSMPOM2 | /SSM08SpringMyBatis/src/main/java/cn/com/demo/ssm/spring/mybatis/service/impl/RlUrMapServiceImpl.java | UTF-8 | 315 | 1.609375 | 2 | [] | no_license | package cn.com.demo.ssm.spring.mybatis.service.impl;
import cn.com.demo.ssm.spring.mybatis.entity.RlUrMapEntity;
import cn.com.demo.ssm.spring.mybatis.service.IRlUrMapService;
public class RlUrMapServiceImpl implements IRlUrMapService {
@Override
public void saveRlUrMap(RlUrMapEntity rlUrMap) {
}
}
| true |
1caac5980f7850de28dc97ef5284f3f7b132d631 | Java | freeman5860/FlurryApi | /app/src/main/java/com/freeman/flurryapp/db/DbObserver.java | UTF-8 | 276 | 1.71875 | 2 | [] | no_license | package com.freeman.flurryapp.db;
import com.freeman.flurryapp.entry.FlurryApplication;
import java.util.ArrayList;
/**
* Created by alberthe on 2014/12/19.
*/
public interface DbObserver {
public void onQueryAppList(ArrayList<FlurryApplication> data);
}
| true |
7be3003de86425e6593e3550ffad88a0b3f20a58 | Java | androcafe/mydoctorspanel | /app/src/main/java/androcafe/visitindia/com/mydoctorspanel/DoctorPanelUrl.java | UTF-8 | 612 | 1.65625 | 2 | [] | no_license | package androcafe.visitindia.com.mydoctorspanel;
public interface DoctorPanelUrl {
String SIGN_UP_URL="https://doctor.codingcloud.com.my/doctor_signup.php";
String SIGN_IN_URL="https://doctor.codingcloud.com.my/doctor_signin1.php";
String INSERT_PROFILE_URL="https://doctor.codingcloud.com.my/doctor_info... | true |
f1ed58adb4998954a6ad637cd9f26efba4245441 | Java | OLOZLO/algo-study | /src/_210325/boj20208/Main_ms.java | UTF-8 | 1,850 | 2.96875 | 3 | [] | no_license | package _210325.boj20208;
import java.awt.*;
import java.util.ArrayList;
import java.util.Scanner;
public class Main_ms {
static int N, M, H;
static int[] dx = {-1, 1, 0, 0}, dy = {0, 0, -1, 1};
static int[][] map;
static Point house;
static ArrayList<Point> milk;
static boolean[] visit;
s... | true |
dba412c8599d6da8f32e892d4c9393afdb27ca0e | Java | webueye/fake | /src/main/java/com/taoists/code/model/ProductModel.java | UTF-8 | 1,158 | 2.21875 | 2 | [] | no_license | package com.taoists.code.model;
import java.util.List;
import com.taoists.base.entity.Product;
/**
* @author rubys@vip.qq.com
* @since 2012-7-22
*/
public class ProductModel {
private Product product;
private List<BatchModel> batchs;
public int getSize() {
if (batchs == null) {
return 0... | true |
aa3317e404831b90835a4745c2b7d8fcd9df721b | Java | XeonLyfe/Sn0w | /me/zeroeightsix/kami/gui/rgui/component/AbstractComponent.java | UTF-8 | 10,684 | 1.867188 | 2 | [] | no_license | /*
* Decompiled with CFR 0.151.
*/
package me.zeroeightsix.kami.gui.rgui.component;
import java.util.ArrayList;
import me.zeroeightsix.kami.gui.kami.DisplayGuiScreen;
import me.zeroeightsix.kami.gui.rgui.GUI;
import me.zeroeightsix.kami.gui.rgui.component.Component;
import me.zeroeightsix.kami.gui.rgui.component.con... | true |
5f4fd8fd1f9af0f843eceb72dfa39fbbe2e50ad2 | Java | BAT6188/company-database | /安慧软件资料/gitRepository/ITMS-3.0/Code/cy.its.trafficSituation/cy.its.trafficSituation.repository/src/main/java/cy/its/trafficSituation/repository/TrafficFlowRepository.java | UTF-8 | 1,094 | 2.1875 | 2 | [] | no_license | package cy.its.trafficSituation.repository;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cy.its.com.util.DateUtil;
import cy.its.platform.common.utils.... | true |
f593df3cd79b8fa26337ff0c4bc43a595d363621 | Java | ssverud/Matador-beyond | /src/FerryField.java | UTF-8 | 2,603 | 3.25 | 3 | [] | no_license | public class FerryField extends GameField {
private int rentPrice;
private int pledgePrice;
//private Player ownedBy = null;
ScanThings scanThings = new ScanThings();
// Constructor
public FerryField(int pos, String name, int price, int rentPrice, int pledgePrice) {
setPos(pos);
... | true |
8ce4af9d9e2431cfb24d88b96539161b16c2604e | Java | shelsonjava/Synx | /WakfuClientSources/srcx/class_1691_apq.java | UTF-8 | 3,084 | 1.851563 | 2 | [] | no_license | import org.apache.log4j.Logger;
public class apq extends dKc
{
protected static final Logger K = Logger.getLogger(apq.class);
private final bNK dvm;
private final cGx dvn;
private final long ctZ;
private static final Runnable dvo = new dpY();
public apq(bNK parambNK, cGx paramcGx, long paramLong)
{
... | true |
101517424223ccce94e127e3d87a51cdfbf56ec5 | Java | SolitaryEagle/elevator-air-conditioner-online-monitoring-system | /src/main/java/edu/hhu/air/conditioner/online/monitoring/repository/UserRepository.java | UTF-8 | 1,228 | 1.898438 | 2 | [] | no_license | package edu.hhu.air.conditioner.online.monitoring.repository;
import edu.hhu.air.conditioner.online.monitoring.constant.enums.RoleEnum;
import edu.hhu.air.conditioner.online.monitoring.model.entity.User;
import java.sql.Timestamp;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.... | true |
f8cf6912cab6ac817eaaa75de7a03aa5410ceec3 | Java | ViacheslavGbc/Android | /Restaurants/app/src/main/java/ca/georgebrown/comp3074/restaurants/Restaurant.java | UTF-8 | 1,566 | 2.546875 | 3 | [] | no_license | package ca.georgebrown.comp3074.restaurants;
public class Restaurant {
private final String id;
private final String name;
private final String type ;
private String address;
private String phone ;
private String website ;
private String rate ;
private String price;
private String ... | true |
2d51524c7c45e7960c7f20ac53084bb811d55842 | Java | SpringMybatis/spring-boot-jpa | /src/main/java/com/example/controller/RoleController.java | UTF-8 | 551 | 2.109375 | 2 | [] | no_license | package com.example.controller;
import java.util.ArrayList;
import java.util.List;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@EnableAutoConfigurat... | true |
01199457c56965523fcaf03a26bed4c757f13549 | Java | Pato91/merakipos | /src/Icons/standardElements.java | UTF-8 | 884 | 2.5 | 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 Icons;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
/**
*
* @author Meraki
*/
pub... | true |
101bf729a912938c1c8d30568f0592f2a66d2475 | Java | azvonov/Lessons | /lesson7/Lesson7_Allure/src/main/java/blocks/ButtonsBlock.java | UTF-8 | 279 | 2.15625 | 2 | [] | no_license | package blocks;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class ButtonsBlock {
@FindBy(id="calculate")
private WebElement calculateButton;
public void clickCalculateButton() {
calculateButton.click();
}
}
| true |
b5ee3f0f800485e51a9dd840c8da4758eb419441 | Java | castor-data-binding/castor-jaxb-2.0 | /src/main/java/org/castor/jaxb/reflection/processor/field/XmlElementWrapperProcessor.java | UTF-8 | 2,954 | 2.015625 | 2 | [] | no_license | package org.castor.jaxb.reflection.processor.field;
import java.lang.annotation.Annotation;
import javax.xml.bind.annotation.XmlElementWrapper;
import org.apache.commons.lang3.StringUtils;
import org.castor.core.annotationprocessing.AnnotationProcessor;
import org.castor.core.nature.BaseNature;
import org.castor.jax... | true |
2388b1d8f100b38f68888c243b6cdbd560a5e4fd | Java | KalleHeuwes/coleman | /src/main/java/de/kheuwes/coleman/exceptions/BookGeneralException.java | UTF-8 | 358 | 2.453125 | 2 | [] | no_license | package de.kheuwes.coleman.exceptions;
public class BookGeneralException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
public BookGeneralException() {
super("Fehler BookGeneralException");
}
public BookGeneralException(String message, Throwable cause) {
... | true |
6d8df923c2d0dbcdf43d9f0983f52dad92743384 | Java | AndroidDevelopersZhao/TieJinshenghuoService | /src/data/TicketsPerson.java | UTF-8 | 1,131 | 2.6875 | 3 | [] | no_license | package data;
public class TicketsPerson {
private String name =null;
private String year =null;
private String city =null;
private String sex =null;
private String cardNo =null;
private String phoneNum =null;
public TicketsPerson(String name, String year, String city, String sex,
String cardNo, String pho... | true |
42115cb99e9c0eaaafb2dd6ed93ec5ff11543fc3 | Java | wangyue168git/online-forum | /src/main/java/com/bolo/test/rpc/InfoUserService.java | UTF-8 | 365 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | package com.bolo.test.rpc;
import java.util.List;
import java.util.Map;
/**
* Created by wangyue on 2019/2/26.
*/
public interface InfoUserService {
List<InfoUser> insertInfoUser(InfoUser infoUser);
InfoUser getInfoUserById(String id);
void deleteInfoUserById(String id);
String getNameById(String id... | true |
1d37d79f917c403592e1e3253ebb991271c07a2c | Java | Kennyproz/DPI-Individuele-opdracht | /src/mix/model/domain/Aggregator.java | UTF-8 | 1,667 | 2.46875 | 2 | [] | no_license | package mix.model.domain;
import mix.model.messages.TeamAskingMessage;
import mix.model.messages.TeamReplyMessage;
import java.util.ArrayList;
import java.util.List;
public class Aggregator {
private int aggregationId;
private String correlationId;
private int expectedReplies;
private List<TeamReplyM... | true |
0457771e3924377e465ef0d2f489d46c8082671a | Java | benhamilto/PolyGone | /core/src/ca/polygone/Levels/LevelTwo.java | UTF-8 | 203 | 1.976563 | 2 | [] | no_license | package ca.polygone.Levels;
/**
* Created by Ben on 2017-03-29.
*/
public class LevelTwo extends PolyGoneLevel{
public LevelTwo(){
isFinalLevel = true;
nextLevel = null;
}
}
| true |
99245cb99ba4a3a04c6874d60a764538f468e0e1 | Java | bnbaek/okhttp | /http-server/src/main/java/net/openu/httpserver/HelloController.java | UTF-8 | 635 | 2.09375 | 2 | [] | no_license | package net.openu.httpserver;
import java.util.Arrays;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by iopenu@gmail.com on 2020/02/17
* Gi... | true |
20b37be6b96ca37b449a74d8f374c84f5dd3caf8 | Java | georve/dgboss-view | /commons-dgfarm/src/main/java/com/grupodgfarm/commons/resources/properties/ApplicationProperties.java | UTF-8 | 1,313 | 2.875 | 3 | [] | no_license | package com.grupodgfarm.commons.resources.properties;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
/**
* <p>
* Clase usada para acceder a las propiedades (proyecto.properties... | true |
0bba6cd5b605e6618838ce1206d2ac8be9989a34 | Java | hpca01/SchoolTracker | /app/src/main/java/com/example/schooltracker/ui/CourseAddMentorAdapter.java | UTF-8 | 2,547 | 2.40625 | 2 | [] | no_license | package com.example.schooltracker.ui;
import android.app.Application;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;
import androidx.r... | true |
316f1f7840a705fd3c6956c7318a8ea48299b55a | Java | niuhaijun/chapter5 | /src/test/java/com/smart/ditype/DiTypeTest.java | UTF-8 | 1,756 | 2.40625 | 2 | [] | no_license | package com.smart.ditype;
import static org.testng.Assert.assertNotNull;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class DiTypeTest {
privat... | true |
51e5c6a1f6d3dcd085f1df39559ab74b5858572f | Java | WonderBo/MyUtil | /src/com/cqu/wb/pattern/decorator/Decorator_two.java | UTF-8 | 654 | 3.203125 | 3 | [] | no_license | /**
* @description 装饰者二
*/
package com.cqu.wb.pattern.decorator;
public class Decorator_two extends Decorator {
public Decorator_two(Human human) {
super(human);
// TODO Auto-generated constructor stub
}
public void goClothespress() {
System.out.println("穿衣:在衣柜找找~~~~");
}
public void findPlaceOnMap()... | true |
760d5f6316b2b296affff31b71e430759864454c | Java | uanave/java-module | /src/academy/everyonecodes/java/week3/set2/exercise5/PowerCalculatorTest.java | UTF-8 | 643 | 2.9375 | 3 | [] | no_license | package academy.everyonecodes.java.week3.set2.exercise5;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
public class PowerCalculatorTest {
PowerCalculator powerCalculator = new PowerCalculator();
@ParameterizedTe... | true |
fb41b9fb90b526d972b2cb0ee2c972ac82124daf | Java | sajash78/ALDO-Shoes | /src/test/java/Lesson1/PracticeSelectClass110520.java | UTF-8 | 1,689 | 2.359375 | 2 | [] | no_license | package Lesson1;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
i... | true |
de48a71b467754247892bd4eb88f2c22f1cf3a19 | Java | qin-gs/LeetCode | /src/java8/chapter04/StreamTest.java | UTF-8 | 1,161 | 3.359375 | 3 | [] | no_license | package java8.chapter04;
import java.util.List;
import java.util.stream.Collectors;
public class StreamTest extends Dish {
public StreamTest(String name, boolean vegetarian, int calories, Type type) {
super(name, vegetarian, calories, type);
}
public static void main(String[] args) {
List... | true |
ffa1cec1b63e35ab8f3777a65b7388bcd81e13f6 | Java | strongerYBA/YuanRepository | /designprinciple/src/main/java/com/yuan/design/pattern/creational/prototype/abstractprototype/A.java | UTF-8 | 311 | 2.421875 | 2 | [] | no_license | package com.yuan.design.pattern.creational.prototype.abstractprototype;
/**
* @ClassName A
* @Author Administrator
* @Date 2020/1/19 11:44
*/
public abstract class A implements Cloneable {
@Override
protected Object clone() throws CloneNotSupportedException {
return super.clone();
}
}
| true |
2059591e9849eabbccef7d4fb9bda9efddb647c3 | Java | Fabio-Morais/Warehouse-Manager | /Documentation/DB/LibDataBase/db/SubCategoriaProduto.java | UTF-8 | 2,019 | 2.875 | 3 | [] | no_license | package db;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.swing.table.DefaultTableModel;
public class SubCategoriaProduto {
/*retornem true ou false, dependendo se corre tudo bem ou nao*/
/*Metam como parametro tudo o que precisarem (qual a warehouse a usar)
* Meter as dependencias todas!
*... | true |
96fb600b14d99e37271047b1d92462b5df089418 | Java | smlsunxie/nodeWithJavaTest | /node-java/src/main/java/JavaHello.java | UTF-8 | 94 | 2.234375 | 2 | [] | no_license |
public class JavaHello {
public void sayHi() {
System.out.println("java say Hello");
}
}
| true |
e00d00ff28e139425ce704bb202935d81780fba5 | Java | mwakeelable/hns | /app/src/main/java/com/linked_sys/hns/Model/TimeTable.java | UTF-8 | 417 | 2.1875 | 2 | [] | no_license | package com.linked_sys.hns.Model;
public class TimeTable {
public int lectureID;
public int weekDayID;
public String courseName;
public String className;
public TimeTable(int lectureID, int weekDayID, String courseName, String className) {
this.lectureID = lectureID;
this.weekDayI... | true |
ac10aeb0c46634e5ae552a64b9c3e45fbe90efd8 | Java | mortalliao/BasicKnowledgeOfJava | /java8/src/main/java/abc/basic/knowledge/java8/localtime/TestLocalDateTime.java | UTF-8 | 2,812 | 3.796875 | 4 | [] | no_license | package abc.basic.knowledge.java8.localtime;
import org.junit.Test;
import java.time.*;
/**
* @author Jim
*/
public class TestLocalDateTime {
// 1. LocalDate LocalTime LocalDateTime
@Test
public void test() {
LocalDateTime localDateTime = LocalDateTime.now();
System.out.println(local... | true |
05612c2d47e93fa9903712ca46253ee07191dc49 | Java | SwellRT/swellrt | /wave/src/test/java/org/waveprotocol/wave/model/supplement/GadgetStateCollectionTest.java | UTF-8 | 4,085 | 1.710938 | 2 | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-generic-export-compliance"
] | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | true |
1049d066821fc6d15192b217a249d181814934be | Java | Veronica-sham/guess-number-maven-2020-4-7-9-6-7-285 | /src/main/java/com/oocl/InputHandler.java | UTF-8 | 1,668 | 3.125 | 3 | [] | no_license | package com.oocl;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
public class InputHandler {
private static final String SPLIT_WORDS = "";
private static final String INPUT_WRONG_MESSAGE = "Wrong Input, Input again";
private static final String INITIAL_MESSAGE = " Input 4 numbe... | true |
37c04c1354ddbd3bbf89929296976e1b7ed4dad8 | Java | pzzzsakura/wxstore | /mmns/src/main/java/com/irecssa/mmns/service/AddressService.java | UTF-8 | 786 | 1.796875 | 2 | [] | no_license | package com.irecssa.mmns.service;
import com.irecssa.mmns.dto.execution.AddressExecution;
import com.irecssa.mmns.entity.Address;
import com.irecssa.mmns.entity.PersonInfo;
/**
* @author: Ma.li.ran
* @datetime: 2017/11/25 14:17
* @desc:
* @environment: jdk1.8.0_121/IDEA 2017.2.6/Tomcat8.0.47/mysql5.7
*/
public i... | true |