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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5c63b0740821acce8bfbb3d2f0ae6f4922627ab1 | Java | marvk/chess | /lichess4j/src/main/java/net/marvk/chess/lichess4j/LichessChatResponse.java | UTF-8 | 249 | 1.820313 | 2 | [] | no_license | package net.marvk.chess.lichess4j;
import lombok.Data;
import lombok.NonNull;
import net.marvk.chess.lichess4j.model.Room;
@Data
public class LichessChatResponse {
private final @NonNull Room room;
private final @NonNull String message;
}
| true |
2f6ac58c5e8e2cfad2abb5d8fed586da6a6ab4c4 | Java | timeday/springboot-dubbo | /springboot-dubbo-common/src/main/java/com/dubbo/demo/springbootdubbocommon/service/UserService.java | UTF-8 | 202 | 1.609375 | 2 | [] | no_license | package com.dubbo.demo.springbootdubbocommon.service;
import com.dubbo.demo.springbootdubboapi.enetity.User;
import java.util.List;
public interface UserService {
List<User> findListUser();
}
| true |
d1537774876de2b3d8cd8d5e34a2cf8ec9d8c753 | Java | kingmanfly/OpenMassageServer | /src/main/java/com/massage/infosys/dto/SkillerDetailPojo.java | UTF-8 | 2,383 | 1.9375 | 2 | [] | no_license | package com.massage.infosys.dto;
import org.springframework.web.multipart.MultipartFile;
public class SkillerDetailPojo {
private Long id;
private String phone;
private String nickname;
private int age;
private int sex;
private int height;
private int level;
private String description;
private St... | true |
c708650e1123a3045dad7038e611b1f516a913d3 | Java | NawaMan/Curry | /src/main/java/net/nawaman/curry/util/DataHolder_NativeBean_Static.java | UTF-8 | 892 | 2.578125 | 3 | [] | no_license | package net.nawaman.curry.util;
import java.lang.reflect.Method;
import net.nawaman.curry.Engine;
public class DataHolder_NativeBean_Static extends DataHolder_NativeBean {
public DataHolder_NativeBean_Static(Engine pEngine, Method pReadMethod, Method pWriteMethod) {
this.Engine = pEngine;
this.ReadMethod ... | true |
3a2948c6e9fa67879d4c7b5ec4a84ed637ea5eba | Java | openanthem-admin/prev-nimbus-core | /nimbus-core/src/main/java/com/antheminc/oss/nimbus/domain/model/state/internal/AbstractEntityState.java | UTF-8 | 10,841 | 1.507813 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /**
* Copyright 2016-2018 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | true |
7213caf762a92b099f46150e9a9a15900a5b1c77 | Java | emersondiegoduarte/java11-rabbitmq | /src/test/java/com/delivery/test/controllers/PedidoControllerTest.java | UTF-8 | 1,253 | 1.84375 | 2 | [] | no_license | package com.delivery.test.controllers;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
import static org.springframework.test.web.servlet.result... | true |
05257a7f8c085aa7b63f80354c5184a64ddb8157 | Java | ljackowski/studentinternships | /src/main/java/com/ljackowski/studentinternships/controllers/AdminController.java | UTF-8 | 31,947 | 2.125 | 2 | [] | no_license | package com.ljackowski.studentinternships.controllers;
import com.ljackowski.studentinternships.files.FileUploadCSV;
import com.ljackowski.studentinternships.models.*;
import com.ljackowski.studentinternships.services.*;
import org.apache.commons.io.FilenameUtils;
import org.springframework.beans.factory.annotation.Au... | true |
81ec88f49cf735e6e19e250d1eccef75074768af | Java | atguiguyueyue/flink-0225 | /src/main/java/com/atguigu/day03/sink/Flink01_Sink_Kafka.java | UTF-8 | 1,825 | 2.59375 | 3 | [] | no_license | package com.atguigu.day03.sink;
import com.alibaba.fastjson.JSONObject;
import com.atguigu.bean.WaterSensor;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.common.serialization.SimpleStringSchema;
import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apach... | true |
a8658d3ca824f7428038a282f16583cbdf13d629 | Java | 1-n-only-nobody/Assignments | /day5_io_serialization/src/com/training/second/CreditApplication.java | UTF-8 | 1,161 | 2.921875 | 3 | [] | no_license | package com.training.second;
import java.io.File;
import com.training.model.CreditCard;
import com.training.services.BusinessService;
public class CreditApplication {
public static void main(String[] args) {
// TODO Auto-generated method stub
CreditCard creditCard[] = new CreditCard[3];
CreditCard newcredit... | true |
434195b3d4189bb44d59c22b308c0a620e19b53a | Java | neumeye9/Mammal-Java-OOP | /Gorilla.java | UTF-8 | 417 | 3.203125 | 3 | [] | no_license | import java.util.*;
class Gorilla extends Mammal{
public void tossItem(){
energyLevel -= 5;
System.out.println("Threw an item: -5 energy pts.");
}
public void eatBananas(){
energyLevel += 10;
System.out.println("Ate a banana: +10 energy pts");
}
public void cl... | true |
9962b38bf44d2f3aeb5a446a90038b5e5bfc23c4 | Java | recob/recob-base | /recob-presentation/src/main/java/com/recob/service/IPresentationService.java | UTF-8 | 231 | 1.625 | 2 | [] | no_license | package com.recob.service;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
public interface IPresentationService {
Mono<Void> handle(Flux<?> inbound, String uuid);
Flux<?> stream(String uuid);
}
| true |
2ea99a067f774b953a912c2ffa1dd82b83153495 | Java | MiniJava123/galaxy | /galaxy-core/src/main/java/com/dianping/data/warehouse/core/dao/BaseDAO.java | UTF-8 | 497 | 1.890625 | 2 | [] | no_license | package com.dianping.data.warehouse.core.dao;
import javax.sql.DataSource;
import java.util.List;
/**
* @Author <a href="mailto:tsensue@gmail.com">dishu.chen</a>
* 13-12-24.
*/
public interface BaseDAO <T, Q> {
T getById(Integer id, String sqlMapId);
T getOldLoadById(Q q,String sqlMapId);
List<T> getBy... | true |
cc87a4552337701c6921c3378071ccb6b6cb93d1 | Java | nxd1184/nesso-angularjs | /src/main/java/vn/com/la/service/specification/JobTeamUserTaskSpecifications.java | UTF-8 | 1,328 | 2.0625 | 2 | [] | no_license | package vn.com.la.service.specification;
import org.springframework.data.jpa.domain.Specification;
import vn.com.la.domain.*;
import vn.com.la.domain.enumeration.FileStatusEnum;
import vn.com.la.service.dto.param.SearchJobTeamUserTaskParamDTO;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistenc... | true |
34264413c0761ee386cea10c17c3b91fcf05e6ce | Java | curtis2/git_SimpleNetwork | /git_simpleNetwork/Network_frame/src/com/elliott/network_frame/httpstack/HttpStackFactory.java | UTF-8 | 572 | 2.40625 | 2 | [] | no_license | package com.elliott.network_frame.httpstack;
import android.os.Build;
/**
* http请求工厂类,用于构建http请求
* 根据api版本选择httpClient或者 httpUrlConnection
* @author lenovo
*/
public class HttpStackFactory {
private final static int GINGERBREEAD_NUM=9;
/**
* @return
*/
public static HttpStack createHttpSta... | true |
a8146735e9ab716b7fec352e8063659aa287d0e4 | Java | WeiCharlie/xt_permission | /app/src/main/java/com/xt/permission/permissionhepler/PermissionActivity.java | UTF-8 | 7,815 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.xt.permission.permissionhepler;
import android.Manifest;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
... | true |
d9b767dbbcf9166ebcf0961fb5623dd90143d3cf | Java | DruvIsBack/YW_HomeProject_src | /sources/a/aL.java | UTF-8 | 344 | 1.585938 | 2 | [] | no_license | /*
* Decompiled with CFR 0_132.
*/
final class aL
implements Runnable {
aL(Inserter inserter) {
}
@Override
public final void run() {
String string = "";
string = "".substring(1);
string = String.valueOf(string) + "\n";
a.a(String.valueOf(GUI.A()) + bi.al(), string, "W... | true |
204b3d72d6a25dc90c5e7661c87ce483ddbb8271 | Java | Brayan-Oviedo/Pets_B | /src/main/java/co/pets/auth/infrastructure/adapter/output/adapter/user/UserRepositoryImpl.java | UTF-8 | 2,192 | 2.421875 | 2 | [] | no_license | package co.pets.auth.infrastructure.adapter.output.adapter.user;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframewor... | true |
17e6d46645e8ea622339fadbcaccbc63f4cff217 | Java | TiMiWang/packManager | /packManagement/src/com/coretek/pack/service/LogInfoService.java | UTF-8 | 2,316 | 1.929688 | 2 | [] | no_license | package com.coretek.pack.service;
import java.util.List;
import javax.inject.Inject;
import org.springframework.stereotype.Service;
import com.coretek.pack.dao.LogInfoMapper;
import com.coretek.pack.model.LogInfo;
import com.coretek.pack.model.LogInfoExample;
@Service("logInfoService")
public class LogInfoService ... | true |
8e797d6a15341b2fa6cdb91297bc2362ff344b65 | Java | nurtaufikhidayat/java-batch197 | /src/Batch197XSIS/src/main/java/com/xsis/batch197/repository/XRiwayatPendidikanRepo.java | UTF-8 | 858 | 1.875 | 2 | [] | no_license | package com.xsis.batch197.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import com.xsis.batch197.model.XRi... | true |
8080c540e41cb888569e62640b769fa7636bc5c2 | Java | Time-Boat/SW-LQAppInterface | /src/com/mss/shtoone/persistence/hibernate/ClksmscfgHibernateDAO.java | UTF-8 | 675 | 2.078125 | 2 | [] | no_license | package com.mss.shtoone.persistence.hibernate;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.mss.shtoone.domain.Clksmscfg;
import com.mss.shtoone.persistence.ClksmscfgDAO;
@Repository
public class ClksmscfgHibernateDAO extends GenericHibernateDAO<Clksmscfg, String> implements C... | true |
7c2d6bf396b05b8bebf3daebfe32f649417857f4 | Java | Rmadyun/CPE656TL | /workspace/.metadata/.plugins/org.eclipse.core.resources/.history/aa/60caf480690e0016148efb5d30e06061 | UTF-8 | 2,229 | 2.34375 | 2 | [] | no_license | package com.traintrax.navigation.service.rest.service;
import org.restlet.data.Form;
import org.restlet.representation.Representation;
import org.restlet.representation.StringRepresentation;
import org.restlet.resource.Get;
import org.restlet.resource.ResourceException;
import org.restlet.resource.ServerResource;
imp... | true |
737b885d0634769e19dbe77e9e1a56d11c6e45c8 | Java | chenkungit/hospital | /trunk/采集端/cis-business/src/main/java/com/sinotao/business/dao/entity/ClinicarCheckItem.java | UTF-8 | 3,694 | 2.28125 | 2 | [] | no_license | package com.sinotao.business.dao.entity;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* 检查项目信息表
* @author 佟磊
*/
@Table(name = "t_clinicar_check_item")
public class ClinicarCheckIte... | true |
0506c749b8e366be04b760607a128ca388bbadf3 | Java | IOProject2018/TextTransformerApp | /src/main/java/pl/put/poznan/transformer/rest/TextTransformerController.java | UTF-8 | 3,278 | 2.8125 | 3 | [] | no_license | package pl.put.poznan.transformer.rest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;
import pl.put.poznan.transformer.logic.TextTransformerImpl;
import pl.put.poznan.transformer.logic.TextTransformerInterface;
import pl.put.poznan.transformer.logic.transfor... | true |
0efd8ffeca5ccfefc6aa0fe1ddd3ee19b5460d83 | Java | hiepnhhhe/WhatApps | /app/src/main/java/com/example/whatapps/MainActivity.java | UTF-8 | 1,686 | 2.015625 | 2 | [] | no_license | package com.example.whatapps;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.viewpager.widget.ViewPager;
import android.content.Intent;
import android.os.Bundle;
import com.google.android.material.tabs.TabLayout;
import com.google.firebase.auth.FirebaseAuth... | true |
d3b679264f33336544886e50b5454a1c47cd5b42 | Java | alljoyn/core-devmodules | /AllJoynServicesAPI/src/org/alljoyn/devmodules/APICoreImpl.java | UTF-8 | 7,900 | 1.585938 | 2 | [] | no_license | /******************************************************************************
* Copyright (c) 2013, AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright not... | true |
816f0db6cbb8496872eb2912dba20c6ea009e572 | Java | Eureka1996/leetcode | /src/main/java/com/wufuqiang/pcmodel/PCModel.java | UTF-8 | 2,102 | 3.328125 | 3 | [] | no_license | package com.wufuqiang.pcmodel;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* 生产者和消费者模式
*
*/
public class PCModel {
//存储中现有的数量
private static int count = 0;
//存储的总大小
private static int full = 10000;
//锁
private Lock... | true |
3035a5fddf03c0f0921da131dbbe42bbc5b7ef31 | Java | kawakicchi/kakeibo | /src/main/java/org/kawakicchi/kakeibo/domain/model/account/Account.java | UTF-8 | 4,460 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2017 Azuki Framework.
*
* 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 |
510653284e19a66d48fe1f5ede2709686966e0e6 | Java | luudtran/tinyurl | /src/main/java/hello/TinyURLController.java | UTF-8 | 1,731 | 2.703125 | 3 | [] | no_license | package hello;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.Random;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.Reques... | true |
9718a804680c411a105bde58553d0ed4adafc60b | Java | rahulrsppp/dagger | /app/src/main/java/com/rahul/dagger/di/scope/PerActivity.java | UTF-8 | 256 | 1.765625 | 2 | [] | no_license | package com.rahul.dagger.di.scope;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.inject.Qualifier;
import javax.inject.Scope;
import javax.inject.Singleton;
@Qualifier
public @interface PerActivity {
}
| true |
62f37808fc918035dbf0ee00975f12b734140f6e | Java | wagnew3/mlgpu | /src/layer/FullyConnectedLayer.java | UTF-8 | 2,980 | 2.8125 | 3 | [] | no_license | package layer;
import org.apache.commons.math3.distribution.NormalDistribution;
import org.apache.commons.math3.linear.ArrayRealVector;
import org.apache.commons.math3.linear.BlockRealMatrix;
import org.apache.commons.math3.linear.RealMatrix;
import activationFunctions.ActivationFunction;
public class Fully... | true |
4231f6661efb1cb374dcf92d36bfa39d63b5d96a | Java | MrShawnYoung/readingCourse | /JavaEE开发的颠覆者 Spring Boot实战/SpringBoot-Enterprise/SpringBoot-RabbitMQ/src/main/java/com/shawn/rabbitmq/RabbitMQApplication.java | UTF-8 | 952 | 2.265625 | 2 | [] | no_license | package com.shawn.rabbitmq;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframe... | true |
9a735eb58338a27269ad7870f9d508830fb0695c | Java | NBXXF/xxf_database | /xxf_objectbox/src/main/java/com/xxf/database/xxf/objectbox/ListMergeFunction.java | UTF-8 | 341 | 1.765625 | 2 | [] | no_license | package com.xxf.database.xxf.objectbox;
import androidx.annotation.NonNull;
import java.util.List;
import java.util.Map;
/**
* @Description: 合并
* @Author: XGod
* @CreateDate: 2020/7/25 23:00
*/
public interface ListMergeFunction<T> {
List<T> apply(@NonNull List<T> insert, @NonNull Map<Long, T> inserted) thr... | true |
c4655abb5e8ccc06c43545269b4ca6122141dcf9 | Java | mheder/sztakipedia-harvester | /hu.sztaki.pedia.harvester/src/hu/sztaki/pedia/uima/reader/util/ReceiveSendCounter.java | UTF-8 | 2,145 | 2.59375 | 3 | [] | no_license | /*******************************************************************************
* Copyright 2012 Tamas Farkas, MTA SZTAKI, Hungary
*
* 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 ... | true |
65485c6720ee6e18cc04d368c82e90717df98bb1 | Java | wangjianfeng/Motivation | /src/main/java/com/theanh/first/dao/ProductDao.java | UTF-8 | 547 | 1.859375 | 2 | [] | no_license | package com.theanh.first.dao;
import java.util.List;
import com.theanh.first.model.ProductModel;
import com.theanh.first.model.ProductOutModel;
public interface ProductDao {
ProductModel getByKey(Integer id);
ProductModel findByName(String userName);
Integer save(ProductModel product);
void update(ProductMod... | true |
0e5578e0f6a3de617b70f8a513c0dc5c83f1193f | Java | marvinyang-ss/SS-Week2 | /UtopiaJDBC/src/com/ss/utopia/views/admin/employee/ReadEmployeeView.java | UTF-8 | 1,023 | 2.6875 | 3 | [] | no_license | /**
*
*/
package com.ss.utopia.views.admin.employee;
import java.util.Scanner;
import com.ss.utopia.entity.User;
import com.ss.utopia.views.View;
/**
* @author marvin
*
*/
public class ReadEmployeeView implements View {
private User employee;
public ReadEmployeeView(User employee) {
this.employee = empl... | true |
09f3075bb3e994f6ee72c30bc8815907dc9e9e92 | Java | tgiwu/java_test | /src/main/java/com/zhy/MyTest.java | UTF-8 | 2,529 | 3.0625 | 3 | [] | no_license | package com.zhy;
import cn.hutool.core.collection.CollUtil;
import java.util.*;
public class MyTest {
public static void main(String[] args) {
// new MyTest().doTest();
}
private void doTest(){
// String saved = "1,2,3";
//// String[] l = new String[]{"1","2","3","4","5","6","7","... | true |
f21bd9b92b86bcd6b539f3636c43650681c2dcdb | Java | rdbc3415/incomab | /src/com/incomab/util/ErroresUtil.java | UTF-8 | 934 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Developed by: Alexis Peralta Holyoak.
*/
package com.incomab.util;
/**
*
* @author peral
*/
public class ErroresUtil {
private final String incorrectUser="VERIFIQUE EL USUARIO INGRESADO";
private final String incorrectPassw="VERIFIQUE LA CONTRASEÑA";
private final String missingConnec... | true |
bed6d50ad8766e489577d41c063ec3f487842660 | Java | Ginspiration/ginspiration-springboot-jdlg | /jdlg-music-project/src/main/java/jdlg/musicproject/entries/teacher/TeacherNamePwd.java | UTF-8 | 605 | 2.625 | 3 | [] | no_license | package jdlg.musicproject.entries.teacher;
public class TeacherNamePwd {
private String t_pwd;
private String t_name;
public String getT_pwd() {
return t_pwd;
}
public void setT_pwd(String t_pwd) {
this.t_pwd = t_pwd;
}
public String getT_name() {
return t_name;
... | true |
6d2a4a415b5acd6e13f6e7ecc6ea280c5aaa91e4 | Java | MoranChery/FootballSystem | /src/main/java/Service/SystemService.java | UTF-8 | 1,150 | 2.265625 | 2 | [] | no_license | package Service;
import Controller.NotificationController;
import Controller.SystemController;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.server.ResponseStatusException;
@RestController
public class SystemService{
private static Sy... | true |
592e6149f928549c7e4fed060054400b3bee5ec3 | Java | zhang6132326/reps4 | /spring_boot_0817/src/main/java/com/zxf/factory1/Bwm.java | UTF-8 | 138 | 2.28125 | 2 | [] | no_license | package com.zxf.factory1;
public class Bwm implements Car {
@Override
public String getName() {
return "宝马";
}
}
| true |
df959f01b43a11da99e6287c9a14c5752581a7c4 | Java | anishbharatha/DataStructures | /src/main/java/com/area55/bluesea/bluesea/BlueseaApplication.java | UTF-8 | 320 | 1.5625 | 2 | [] | no_license | package com.area55.bluesea.bluesea;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class BlueseaApplication {
public static void main(String[] args) {
SpringApplication.run(BlueseaApplication.class, args);
}
}
| true |
6019f362e1213639b90faaa97afd3320015f2f9e | Java | bird7310/DesignPatternExample | /src/com/ahacool/designpattern/prototype/PersonCloneObject.java | UTF-8 | 764 | 3.3125 | 3 | [] | no_license | package com.ahacool.designpattern.prototype;
/**
* @ClassName PersonCloneObject
* @Description It can clone the object, deep clone.
* @author Moto
* @date 2014 2014-9-6
*
*/
public class PersonCloneObject implements Prototype {
public String mName;
public String mMajor;
public Score mScore;
public PersonC... | true |
656aff341137f133893c99a1b1f5b101bf02d17d | Java | myjoybar/Architecture | /app/src/main/java/me/joy/architecture/redux/LoginPageState.java | UTF-8 | 781 | 2.140625 | 2 | [] | no_license | package me.joy.architecture.redux;
import me.joy.architecture.redux.base.state;
import me.joy.architecture.redux.data.UserData;
/**
* Created by Joy on 2019/6/10
*/
public class LoginPageState implements state {
private UserData userData;
private boolean loginFail;
private boolean registerSuccess;
public U... | true |
a8012943ebea9dec44e2e414b51843540c575d67 | Java | gudasrinivasakoushik/TrainingValuemomentum | /corejavatraining/src/com/vm/training/java/Multithreading/MultitaskingDemo.java | UTF-8 | 849 | 3.5625 | 4 | [] | no_license | package com.vm.training.java.Multithreading;
import java.util.*;
class Maniteja extends Thread
{
public void run()
{
for(int i=1;i<=10;i++)
{
System.out.println("teja:"+i);
}
}
}
class Santhosh extends Thread
{
public void run()
{
for(int i=10;i<=20;i++)
{
System.out.println("sant... | true |
aee9860a66d1ddce6c8fbbe4f1b4e68d664e90d6 | Java | ssr7/design-pattern | /src/io/sr7/tutorial/creational/factory/Draw.java | UTF-8 | 136 | 2.3125 | 2 | [] | no_license | package io.sr7.tutorial.creational.factory;
public interface Draw {
void drawing();
enum Type{
CIRCLE,TRIANGLE
}
}
| true |
02c9c12570cf1d4a3d50d249d212bde9001c5a61 | Java | barmax1279/meli.challenge.quasar | /src/main/java/com/meli/challenge/quasar/helpers/SatellitesManager.java | UTF-8 | 5,614 | 2.765625 | 3 | [] | no_license | package com.meli.challenge.quasar.helpers;
import com.meli.challenge.quasar.entities.*;
import com.meli.challenge.quasar.excepciones.InsuffientDistancesArgumentException;
import com.meli.challenge.quasar.excepciones.MessageArgumentNullException;
import com.meli.challenge.quasar.excepciones.MissingSatelliteException;
... | true |
62d10f94421a30f5df564d9f27c759fcd886c1b2 | Java | gaizkaugaldemartin/nuevoexamen | /gaizkaugaldemartin/src/gaizka/Revista.java | ISO-8859-1 | 3,001 | 3.53125 | 4 | [] | no_license | package gaizka;
public class Revista implements Ileible {
private String titulo; // minimo 3, maximo 150
private String isbn; // alfanumerico 10 justos
private String numeroPaginas; // minimo 1
private boolean formato; // true digital, false papel
public Revista() {
this.titulo = "Por defecto";
t... | true |
2d8dc15f97f4cf2dd786428954971441c48f323d | Java | asmuelle/lazywikiparser | /src/main/java/org/herban/wiki/render/function/TemplateCache.java | UTF-8 | 748 | 2.4375 | 2 | [] | no_license | package org.herban.wiki.render.function;
import java.util.HashMap;
import org.herban.wiki.render.template.GenTemplate;
import org.herban.wiki.render.template.TemplateInstance;
public class TemplateCache {
/*
* we distinguish between Inline and extra View templates
* inline templates are rendered syncro... | true |
8bd05f082d72f593b69b7a9488d76691bf6f5e45 | Java | WaveZhou/MeiZhuangShop | /repository/shop/src/com/zx/service/impl/UserServiceImpl.java | UTF-8 | 3,454 | 2.265625 | 2 | [] | no_license | package com.zx.service.impl;
import java.util.Properties;
import javax.mail.Authenticator;
import javax.mail.Message.RecipientType;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.servlet.http.HttpServletRequest... | true |
cdffd9bc0b0b72e6cc954636f210fe27ff660070 | Java | javawizard/afn | /projects/mobile/jmlogo/jmlogo/src/org/opengroove/jw/jmlogo/lang/commands/PrintCommand.java | UTF-8 | 1,210 | 2.828125 | 3 | [] | no_license | package org.opengroove.jw.jmlogo.lang.commands;
import org.opengroove.jw.jmlogo.lang.Command;
import org.opengroove.jw.jmlogo.lang.InterpreterContext;
import org.opengroove.jw.jmlogo.lang.ListToken;
import org.opengroove.jw.jmlogo.lang.Token;
import org.opengroove.jw.jmlogo.lang.WordToken;
public class PrintC... | true |
5ccde19115b9a317793c3f06ed6646093536bffb | Java | mjblack/wcSDK | /wcserver/java/examples/wcJavaChat/com/winserver/wcnav/chat/WordUtils.java | UTF-8 | 3,879 | 2.9375 | 3 | [] | no_license | package COM.winserver.wcnav.chat;
public class WordUtils {
public static String ExtractWord(String s, int n)
{
//System.out.println("ExtractWord: "+s+", "+n);
int i = 0;
int j;
do {
while (i < s.length() && s.charAt(i) == ' ') {
i++;
}
j = i;
while (i < s.length() && s.c... | true |
58b26d7fb35e7752a3e8c75af05c009a304d035d | Java | delphinic-owl/TabletopGames | /src/main/java/games/pandemic/PandemicActionFactory.java | UTF-8 | 22,148 | 2.4375 | 2 | [
"MIT"
] | permissive | package games.pandemic;
import core.actions.*;
import core.components.BoardNode;
import core.components.Card;
import core.components.Counter;
import core.components.Deck;
import core.properties.*;
import games.pandemic.actions.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java... | true |
73fac7e9d2fc53b1e71611467df568aa6bda3adc | Java | krissivam/java-batch197 | /src/Day3/StudyCase/Soal02.java | UTF-8 | 1,618 | 3.4375 | 3 | [] | no_license | package Day3.StudyCase;
import java.util.Scanner;
public class Soal02 {
protected static Scanner input;
public static void main(String[] args) {
input = new Scanner(System.in);
System.out.println("Input N: ");
int n = input.nextInt();
System.out.println("Input M: ");
int m = input.nextInt();
System.o... | true |
404a583126b3cc976c082d4ac2354159b674a4d9 | Java | saka1029/GPSLog | /src/saka1029/mymap/HttpException.java | UTF-8 | 258 | 2.34375 | 2 | [] | no_license | package saka1029.mymap;
import java.io.IOException;
import java.net.URI;
public class HttpException extends IOException {
public HttpException(URI uri, int httpStatus) {
super(String.format("URI=%s http status=%s", uri, httpStatus));
}
}
| true |
ef94b5e8226e44ed3088b56959be5fa5ab59a980 | Java | tomasma5/richfaces-qa | /showcase-ftest/src/test/java/org/richfaces/tests/showcase/inputNumberSpinner/TestSpinners.java | UTF-8 | 5,550 | 2.15625 | 2 | [] | no_license | /*******************************************************************************
* JBoss, Home of Professional Open Source
* Copyright 2010-2014, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is ... | true |
b9301812573bb915f3f6422843fae81d264a7127 | Java | GriffinBabe/SlackMonitor | /src/main/java/eu/bestbrusselsulb/model/service/DataFetcher.java | UTF-8 | 2,322 | 2.515625 | 3 | [] | no_license | package eu.bestbrusselsulb.model.service;
import com.slack.api.bolt.context.builtin.EventContext;
import com.slack.api.methods.SlackApiException;
import com.slack.api.methods.response.conversations.ConversationsInfoResponse;
import com.slack.api.methods.response.users.UsersInfoResponse;
import com.slack.api.model.Conv... | true |
f2d1ee8e2fac3c9abec38fa950053e3fb9a8ecbf | Java | everfunk/sandcube | /src/main/java/ru/mindb8/config/TomcatConfig.java | UTF-8 | 1,894 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package ru.mindb8.config;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.apache.catalina.Container;
import org.apache.catalina.Context;
import org.apache.catalina.Wrapper;
import org.apache.catalina.core.ApplicationContext;
import org.... | true |
e30103661e65d394cfe23a4ce72950a421a673c0 | Java | abrosen/classroom | /intro/spring2018/params/ParameterMystery.java | UTF-8 | 417 | 3.203125 | 3 | [] | no_license | package params;
public class ParameterMystery {
public static void main(String[] args) {
int x = 9;
int y = 2;
int z = 5;
mystery(z, y, x);
mystery(y, x, z);
}
public static void mystery(int x, int z, int y) {
System.out.println(x);
System.out.println(... | true |
4b1d15226065482340280578fdf01aaeb356909c | Java | VladimirMi/Sandwich | /app/src/main/java/com/udacity/sandwichclub/utils/JsonUtils.java | UTF-8 | 1,434 | 2.84375 | 3 | [] | no_license | package com.udacity.sandwichclub.utils;
import com.udacity.sandwichclub.model.Sandwich;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
public class JsonUtils {
/**
* Parses a given json string into Sandwich object
... | true |
3c0d151decb407b820605fb98b403e01182ac35c | Java | makar-81/5.2 | /src/main/Main.java | UTF-8 | 3,231 | 2.890625 | 3 | [] | no_license | package main;
import java.io.*;
import java.util.ArrayList;
/**
* Created by emakarov on 28.01.2016.
*/
public class Main {
public static void main(String[] args) {
// put your code here
//try {
String temp;
//FileReader fr = new FileReader("./test1.txt");
//FileWrit... | true |
30c834e5c08b3e16dd1b7725652ff341599e66a6 | Java | s3732508/OOSDAssignment1 | /src/main/java/com/sharknados/models/pieces/shark/SharkPiece.java | UTF-8 | 560 | 2.734375 | 3 | [] | no_license | package com.sharknados.models.pieces.shark;
import com.sharknados.models.Team;
import com.sharknados.models.pieces.Piece;
import com.sharknados.models.pieces.modes.AttackMode;
public abstract class SharkPiece extends Piece {
protected SharkPiece(int attack, int defence, int health, int movement) {
super(a... | true |
0c35dfeb08998c6c5dd75d50680d3d46e1308399 | Java | jegius/java-education-base | /src/menu/commands/tasks/editor/max/MaxEditorCommand.java | UTF-8 | 1,808 | 2.828125 | 3 | [] | no_license | package menu.commands.tasks.editor.max;
import menu.Command;
import menu.commands.tasks.TaskMenuCommand;
import menu.utils.MenuUtils;
public class MaxEditorCommand implements Command {
private static MaxEditorCommand instance;
private MaxEditorCommand() {
}
public static synchronized MaxEditorComma... | true |
d12a0964b6e58ea374cb37503954d9d901520de6 | Java | Alfonfdez/practica04 | /restpolloloko/src/main/java/com/afr/restpolloloko/activity/AltaCamareroActivity.java | UTF-8 | 3,310 | 2.421875 | 2 | [] | no_license | package com.afr.restpolloloko.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.afr.restpolloloko.R;
import com.afr.restpollolok... | true |
56fbf1d0ffec5ace50259938f09afaf2c1de1da3 | Java | amsaif1996/BitsWorks | /Java/BeginnerJava/src/beginnerjava/ForLoop.java | UTF-8 | 218 | 2.71875 | 3 | [] | no_license |
package beginnerjava;
public class ForLoop {
public static void main(String[] args)
{
for(int i=1; i<=10;i++)
{
System.out.println("Bangladesh");
}
}
}
| true |
d23a438c91578cc4397bca97dbe0837722103ea6 | Java | aniketskulkarni/java-concurrency | /future-examples/src/main/java/com/learnwithaniket/pizza/PizzaDelivery.java | UTF-8 | 536 | 3.21875 | 3 | [] | no_license | package com.learnwithaniket.pizza;
public class PizzaDelivery implements Runnable {
private String deliveryAddress;
public PizzaDelivery(String deliveryAddress) {
this.deliveryAddress = deliveryAddress;
}
@Override
public void run() {
System.out.println("Deliver pizza to " + deli... | true |
dfd6701df6d7316f7e62d97558465256b2524abc | Java | bolifeng/HMS | /src/main/java/com/hms/web/DrugController.java | UTF-8 | 530 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | package com.hms.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
public class DrugController {
@RequestMapping(value = "/drugs",method = RequestMe... | true |
2f2c19094ae1b55d3c7721fa30e24f84fbfd5858 | Java | MartinBrandstrup/LegohusBrandstrup | /src/java/Presentation/EmployeeCommand.java | UTF-8 | 694 | 2.046875 | 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 Presentation;
import Logic.LogicController;
import javax.servlet.http.HttpServletRequest;
/**
*
* @author Martin Brandstrup... | true |
136e2dd276752e36f9b3ec71e2d838721ca9097a | Java | RobSeabright/DaBysAreOnDaGo | /GitDaBysToGander/src/main/java/actors/Wrench.java | UTF-8 | 858 | 2.53125 | 3 | [] | no_license |
package actors;
import game.Stage;
/**
*
* @author ROB.SEABRIGHT
*/
public class Wrench extends Item {
private int damage = -1;
public Wrench(Stage stage) {
super(stage);
sprites = new String[]{"wrench.png"};
frame = 0;
frameSpeed = 50;
a... | true |
053dbd82488ee616acddb3e171c2d99ec0b3007f | Java | yzh1127116449/mall_site | /mall_site_manager/src/main/java/com/atguigu/mall/beans/ObjectMallAttr.java | UTF-8 | 324 | 1.640625 | 2 | [] | no_license | package com.atguigu.mall.beans;
import java.util.List;
public class ObjectMallAttr extends MallAttr {
private List<MallValue> list_value;
public List<MallValue> getList_value() {
return list_value;
}
public void setList_value(List<MallValue> list_value) {
this.list_value = list_value;
}
... | true |
a9d9526946c115c7a883dd96bd351cc2368ce95b | Java | ugolb/ryanair-test-task | /src/main/java/com/ryanair/task/interconnectingflights/constants/RestClientConstants.java | UTF-8 | 580 | 2.140625 | 2 | [] | no_license | package com.ryanair.task.interconnectingflights.constants;
/**
* RestClientConstants class contains all useful constant variables for rest client.
*/
public final class RestClientConstants {
public static final String ROUTES_API_LINK = "https://api.ryanair.com/core/3/routes/";
public static final String SCH... | true |
9d40987c4b8f3534ea0b9c9a81a3355fccf5ddd8 | Java | HelloJavaWorld123/cloud | /config-server/src/main/java/com/jzy/sup/config/server/config/repository/service/MongoRepositoryService.java | UTF-8 | 1,112 | 2.078125 | 2 | [] | no_license | package com.jzy.sup.config.server.config.repository.service;
import com.jzy.sup.config.server.config.repository.service.dao.EnviDao;
import com.jzy.sup.config.server.config.repository.service.model.ConfigRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Se... | true |
900467f1ac639f364e0cc04a7bcb736a31df5d49 | Java | lazyw0lf/Autostrade | /src/it/univr/view/IngressoView.java | UTF-8 | 1,311 | 2.296875 | 2 | [] | no_license | package it.univr.view;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import java.io.Serializable;
import java.util.List;
import it.univr.control.DataSource;
import it.univr.model.IngressoBean;
@ManagedBean(name = "ingresso")
@SessionScoped
publi... | true |
1e6644df386b3619b43ee3b26b8a91a1823f7800 | Java | baby3344/mybatis-spring-dome | /src/cn/qwx/dao/provider/ProviderMapper.java | UTF-8 | 847 | 2.15625 | 2 | [] | no_license | package cn.qwx.dao.provider;
import cn.qwx.entity.Provider;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ProviderMapper {
/**
* 查询全部供应商
* @return
*/
public List<Provider> ProviderList();
/**
* 根据供应商名称查询供应商信息
* @param proName
* @return... | true |
58bc4eccb2311690753fce3779892971b93a5ce5 | Java | cxwn/spring | /spring-ioc/src/test/java/com/ivandu/spring/IoCTest.java | UTF-8 | 497 | 1.921875 | 2 | [] | no_license | package com.ivandu.spring;
import com.ivandu.spring.service.impl.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class IoCTest {
public static void main(String[] args) {
ApplicationContext context = n... | true |
f8792853a758ab448605b6dab8f4dbce6718d1f7 | Java | Eisboar/backend.teachSmart | /src/main/java/com/wanda/data/questionsheet/RatingQuestionAnswer.java | UTF-8 | 724 | 3 | 3 | [] | no_license | package com.wanda.data.questionsheet;
import java.util.Map;
/**
* simple class, representing a useranswer on a rating question
* @author Sascha Haseloff <sascha.haseloff@gmail.com>
*
*/
public class RatingQuestionAnswer extends UserAnswer {
public RatingQuestionAnswer(){
super();
this.setType(QuestionType.... | true |
49d8008883581023ceebd6b869c12adc8ee429d7 | Java | Somanshu693/hacktoberfest2021 | /Java/SpiralPrint.java | UTF-8 | 759 | 3.75 | 4 | [
"CC0-1.0"
] | permissive | public class SpiralPrint {
public static void spiralPrint(int arr[][]) {
int rows = arr.length;
int cols = arr[0].length;
int i,rowStart=0,colStart=0,count=0;
int numEle = rows*cols;
while(count < numEle) {
for(i=colStart;i<cols && count<numEle;i++) {
System.out.print(arr[rowStart][i] + " ");
... | true |
1ac79113c23b06acbb1fe51d879b378e72334c14 | Java | sdgdsffdsfff/HData | /src/main/java/com/github/stuxuhai/hdata/plugin/reader/csv/CSVReaderProperties.java | UTF-8 | 344 | 1.59375 | 2 | [] | no_license | /*
* Author: wuya
* Create Date: 2014年6月27日 下午2:35:49
*/
package com.github.stuxuhai.hdata.plugin.reader.csv;
/**
* @author wuya
*
*/
public class CSVReaderProperties {
public static final String PATH = "path";
public static final String START_ROW = "start.row";
public static final String ENCODING = ... | true |
8e192ef6fd16c9f225212061588a2e82293c62f6 | Java | PabloChavezC/spring_clinica | /src/main/java/com/lp2/prueba2/clinica/controlador/PacienteController.java | UTF-8 | 6,465 | 2.046875 | 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.lp2.prueba2.clinica.controlador;
import com.lp2.prueba2.clinica.dao.MedicoDAO;
import com.lp2.prueba2.clinica.dao.... | true |
18c64896401cba7faadc86e58bba6635884df1f2 | Java | epimorphics/data-API | /data-api-lib/src/main/java/com/epimorphics/data_api/data_queries/Range.java | UTF-8 | 2,308 | 2.3125 | 2 | [] | no_license | /*
LICENCE summary to go here.
(c) Copyright 2014 Epimorphics Limited
*/
package com.epimorphi... | true |
0c8d2e91c63f9e22178fe01f1500b172a7eac777 | Java | claucece/twu-biblioteca-sofiaceli | /src/com/twu/biblioteca/helpers/SlowPrinter.java | UTF-8 | 413 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | package com.twu.biblioteca.helpers;
public class SlowPrinter {
public void printSlowly(String message, long millisPerChar) {
for (int i = 0; i < message.length(); i++) {
System.out.print(message.charAt(i));
try {
Thread.sleep(millisPerChar);
} catch (In... | true |
9bd75ec77e89bf374f368fa25d86268246db0d55 | Java | chilinh12003/MyEclipse | /Mplus_Process/S2_Process/S2_Process/src/services/UnSubxoso.java | UTF-8 | 712 | 1.828125 | 2 | [] | no_license | package services;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2007</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
import icom.Keyword;
import icom.MsgObject;
import icom.QuestionManager;
import icom.common.DBUtil;
import java.util.Collection;... | true |
c4b090c7a5cfb9b00e5c83e93c57906964df39e0 | Java | Pikapi0903/pinhong | /src/cn/pinhong/ssm/mapper/UserMapperCustom.java | UTF-8 | 255 | 1.648438 | 2 | [] | no_license | package cn.pinhong.ssm.mapper;
import java.util.List;
import cn.pinhong.ssm.po.User;
import cn.pinhong.ssm.vo.PageVo;
public interface UserMapperCustom {
List<User> findUsersByPage(PageVo pageVo) throws Exception;
int count() throws Exception;
}
| true |
3bfde23c967becf4cdb63f15153aca7a34417484 | Java | aminvijay/test | /MockitoTest/src/main/java/com/vij/business/ProductServiceTest.java | UTF-8 | 2,376 | 2.9375 | 3 | [] | no_license | package com.vij.business;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InOrder;
import static org.mockito.Mockito.*;
import org.mockito.Mock;
import static org.mockito.Mockito.*;
public class ProductServiceTest {
private ProductService productService;
private ProductDao productDao;
privat... | true |
914b6b8a7bd9c2192d35b8fad7d3f26eb48c8450 | Java | nokeedev/gradle-native | /subprojects/ide-xcode/src/main/java/dev/nokee/ide/xcode/XcodeIdeProject.java | UTF-8 | 3,826 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 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 applica... | true |
c145bfde94881326a80275bdabb6c163d6538c26 | Java | Bhargavkodi/LearningRepo | /src/main/java/com/beginningdeveloper/maven/NewProject/App.java | UTF-8 | 1,691 | 2.5 | 2 | [] | no_license | package com.beginningdeveloper.maven.NewProject;
import java.io.IOException;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.Select;
import org.openqa.s... | true |
a2aa309e533fbf29a0594c9c079cb38b45a178f8 | Java | sckm/ProconAppAndroid | /app/src/main/java/jp/gr/procon/proconapp/ui/activity/ProgramActivity.java | UTF-8 | 1,768 | 2.25 | 2 | [
"BSD-3-Clause"
] | permissive | package jp.gr.procon.proconapp.ui.activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import jp.gr.procon.proconapp.R;
import jp.gr.procon.proconapp.ui.fragment.WebFragment;
public class Pro... | true |
ddadb5ceabf1a1ad042689cb4ac872135ad565df | Java | alirahal22/Zomatix | /Zomatix/src/sample/Controller/Login/FormController.java | UTF-8 | 2,444 | 2.5 | 2 | [] | no_license | package sample.Controller.Login;
import javafx.animation.KeyFrame;
import javafx.animation.KeyValue;
import javafx.animation.Timeline;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layo... | true |
c1cd79181e6950a7f99a0d9076ac643d342f7b86 | Java | ykhudaleyeu/sps | /swimmer-proxy-service/src/main/java/com/rsschool/sps/service/AuthService.java | UTF-8 | 299 | 1.757813 | 2 | [] | no_license | package com.rsschool.sps.service;
import com.rsschool.sps.domain.AuthToken;
import com.rsschool.sps.domain.Credentials;
import com.rsschool.sps.domain.RefreshToken;
public interface AuthService {
AuthToken login(Credentials credentials);
AuthToken refresh(RefreshToken refreshToken);
}
| true |
b9096900079244d59f3de5db3efdfe78951d5380 | Java | negarkiran/data_structures_algorithms | /src/test/java/algorithms/misc/BestTimeToBuyAndSellStockTest.java | UTF-8 | 430 | 2.46875 | 2 | [] | no_license | package algorithms.misc;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class BestTimeToBuyAndSellStockTest {
@Test
public void shouldFindBestTimeToBuyAndSell() {
BestTimeToBuyAndSellStock bestTimeToBuyAndSellStock = new BestTimeToBuyAndSellStock();
int[] stockPri... | true |
812471651dfca8670f0946d47752e85e0168da60 | Java | Atikasoft/protteus2 | /proteus-web/src/main/java/ec/com/atikasoft/proteus/controlador/base/DocumentoHabilitanteControlador.java | UTF-8 | 834 | 1.773438 | 2 | [] | no_license | /*
* DocumentoHabilitanteControlador.java
* Proteus V 2.0 $Revision 1.0 $
*
* Todos los derechos reservados. All rights reserved.
* This software is the confidential and proprietary information of Proteus
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use ... | true |
d5e6fea3731ca2de3375a5701e1961f7da6e151f | Java | vinothsadagopan/Interview-Preperation | /Tree/LeafTraversalTwoBinaryTrees.java | UTF-8 | 1,760 | 3.84375 | 4 | [] | no_license | /*
Check if leaf traversal of two Binary Trees is same?
Question Source: Geeks For Geeks
*/
import java.util.Deque;
import java.util.LinkedList;
class LeafTraversalTwoBinaryTrees {
public static boolean isLeafNode(TreeNode root) {
if(root.left == null && root.right==null) return true;
else return false;
}
public... | true |
851c41658cb0b4c4ac6e37016deb334699e09cb1 | Java | AndriyBosik/conferences-java-spring | /backend/src/main/java/com/conferences/service/implementation/MeetingService.java | UTF-8 | 4,166 | 2.1875 | 2 | [] | no_license | package com.conferences.service.implementation;
import com.conferences.entity.Meeting;
import com.conferences.entity.ReportTopic;
import com.conferences.entity.User;
import com.conferences.entity.UserMeeting;
import com.conferences.entity.projection.IMeetingWithStats;
import com.conferences.handler.abstraction.IPrivat... | true |
4fda4f0f29653e3b1d7d252380f27df05a15f4c9 | Java | alirezapiran7/selfino | /app/src/main/java/ir/selfino/android/Dialog/DialogProgressBar.java | UTF-8 | 1,185 | 2.328125 | 2 | [] | no_license | package ir.selfino.android.Dialog;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.view.Window;
import android.widget.TextView;
import ir.selfino.android.R;
public class DialogProgressBar extends Dialog
{
pri... | true |
191e8057ded6d7d73d7ed714337b4e6228ff0988 | Java | foretjerome/ARE | /fr/unedic/cali/calcul/dom/gen/CalendrierExecutionAvantGen.java | UTF-8 | 3,322 | 2.109375 | 2 | [] | no_license | package fr.unedic.cali.calcul.dom.gen;
import fr.unedic.archi.commun.exception.TechniqueException;
import fr.unedic.cali.calcul.dom.EtatAuDernierJourAvant;
import fr.unedic.cali.calcul.dom.pc.CalendrierExecutionAvantPC;
import fr.unedic.cali.dom.persistance.util.DomManager;
import fr.unedic.transverse.dom.ContexteSupp... | true |
e8a82c4ab3a82f4fb7ee42f6ce3ad37e27c75f01 | Java | lcrcastor/curso-mobile-2019 | /material/apks/banco/sources/io/reactivex/internal/operators/flowable/FlowableWindowTimed.java | UTF-8 | 26,083 | 2.0625 | 2 | [] | no_license | package io.reactivex.internal.operators.flowable;
import io.reactivex.Flowable;
import io.reactivex.FlowableSubscriber;
import io.reactivex.Scheduler;
import io.reactivex.Scheduler.Worker;
import io.reactivex.disposables.Disposable;
import io.reactivex.exceptions.MissingBackpressureException;
import io.reactivex.inter... | true |
85d417b03bd4a42d014345e49c058f145f5056d5 | Java | khetsothea/seastory-android | /decompiled_java/com/badlogic/gdx/backends/android/AndroidInput.java | UTF-8 | 35,265 | 1.929688 | 2 | [] | no_license | // 도박중독 예방 캠페인
// 당신 곁에 우리가 있어요!
// 감당하기 힘든 어려움을 혼자 견디고 계신가요?
// 무엇을 어떻게 해야 할지 막막한가요?
// 당신의 이야기를 듣고 도움을 줄 수 있는 정보를 찾아 드립니다.
// - 한국도박문제관리센터 (국번없이 1336, 24시간)
// - KL중독관리센터 (전화상담 080-7575-535/545)
// - 사행산업통합감독위원회 불법사행산업감시신고센터 (전화상담 1588-0112)
// - 불법도박 등 범죄수익 신고 (지역번호 + 1301)
package com.badlogic.gdx.backends.andro... | true |
5c424b8912398fff05e2d5b4d9952630795b68cc | Java | hanomanputih/session3 | /src/bangunDatar/PersegiPanjang.java | UTF-8 | 371 | 2.59375 | 3 | [] | no_license | package bangunDatar;
/**
* Created by IvanAdhi on 09/03/18.
*/
public class PersegiPanjang extends BangunDatar{
double p;
double l;
public PersegiPanjang(double p, double l) {
this.p = p;
this.l = l;
}
@Override
double luas() {
return p*l;
}
@Override
d... | true |
e57565aaecc49fa439a560ea7ad0993aa6b3f745 | Java | chhh/batmass | /GUI/src/umich/ms/batmass/gui/viewers/featuretable/components/FeatureTable.java | UTF-8 | 4,152 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Dmitry Avtonomov.
*
* 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 ... | true |
175d78c42ede42531578124d7250fc45f1e867e1 | Java | zbynek/jlatexmath-multiplatform | /jlatexmath-desktop/src/main/java/org/scilab/forge/jlatexmath/font/FontD.java | UTF-8 | 1,072 | 2.59375 | 3 | [] | no_license | package org.scilab.forge.jlatexmath.font;
import java.util.HashMap;
import java.util.Map;
import org.scilab.forge.jlatexmath.platform.font.Font;
import org.scilab.forge.jlatexmath.platform.font.TextAttribute;
public class FontD implements Font {
public java.awt.Font impl;
public FontD(java.awt.Font impl) {
thi... | true |
a1504a267638665aeb0ee70fef559a09c5e79dc8 | Java | georgistoilov8/IPHomework | /src/main/java/bg/elsys/ip/rest/Car.java | UTF-8 | 3,482 | 2.71875 | 3 | [] | no_license | package bg.elsys.ip.rest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel
public class Car {
@ApiModelProperty(required = true, value = "This will show the car brand.", example = "Brabus")
private String carBrand;
@ApiModelProperty(required = true, value = "This ... | true |