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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
329743bf445bbd01b40b3ac0eed995b3db8675bb | Java | yydsgit/wxpay-sdk | /src/main/java/cn/jsbintask/wxpay/response/WxPaySandBoxSignKeyResponse.java | UTF-8 | 630 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | package cn.jsbintask.wxpay.response;
import cn.jsbintask.wxpay.request.WxPaySandBoxSignKeyRequest;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
* @author jsbintask@gmail.com
* @date 2019/9/6 14:41
*/
@... | true |
62ee64d7ed6aff10d4cdc150ac9154d818b9ff4f | Java | drdrpyan/software_system_design_homework | /Team23_RefactoringProject/src/fs/type/LineIterator.java | UHC | 1,907 | 3.828125 | 4 | [] | no_license | package fs.type;
/**
* Ϸķ ĭ ȸϴ ݺ
*/
public class LineIterator extends PointIterator {
private Orientation orientation;
public LineIterator(Point startPoint, Orientation orientation) {
super(startPoint);
this.orientation = orientation;
}
public LineIterator(int startX, int startY, Orientation orientatio... | true |
71db1fc278747aefe032466d55256581bbfa9ddb | Java | papamilk/leetcode | /src/main/java/org/example/leetcode/problems/Demo027.java | UTF-8 | 849 | 3.390625 | 3 | [] | no_license | package org.example.leetcode.problems;
/**
* @Description 移除元素 https://leetcode-cn.com/problems/remove-element/
* @Author Marcoo
* @Date 2022-04-22 22:25
*/
public class Demo027 {
public static void main(String[] args) {
int[] nums = {3, 2, 2, 3};
int len = removeElement(nums, 3);
f... | true |
f41f7ea643ca525ce58873bb74a36322724ce3d5 | Java | jbuncle/podo-generator | /src/test/java/uk/co/jbuncle/podogenerator/util/TypeInfererTest.java | UTF-8 | 2,798 | 2.578125 | 3 | [] | no_license | /*
* The MIT License
*
* Copyright 2017 James Buncle <jbuncle@hotmail.com>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the righ... | true |
1ebb02d244731efce7936b527428f9cbd21b517f | Java | ffoukal/Spring_Challenge | /PurchaseCentral/src/main/java/com/purchase/central/Service/PurchaseService.java | UTF-8 | 441 | 1.820313 | 2 | [] | no_license | package com.purchase.central.Service;
import com.purchase.central.DTO.Request.PurchaseRequestDTO;
import com.purchase.central.DTO.Response.PurchaseResponseDTO;
import com.purchase.central.DTO.Response.ReceiptResponseDTO;
import org.springframework.http.ResponseEntity;
import java.util.List;
public interface Purchase... | true |
4a538b4330541ec52383acff66e1e5d882721851 | Java | HW-gh/paint | /management/src/main/java/com/work/servlet/CanvasServlet.java | UTF-8 | 6,027 | 2.296875 | 2 | [] | no_license | package com.work.servlet;
import com.work.bean.Category;
import com.work.bean.User;
import com.work.bean.Canvas;
import com.work.service.CanvasService;
import com.work.service.CategoryService;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileItemFactory;
import org.apache.commons... | true |
7fc8d892cc7deae7ec51ad8860052e151377dfd9 | Java | mtpvgithub/MtpvChallan | /app/src/main/java/com/esys/leoparddemo/Act_MagCard.java | UTF-8 | 8,994 | 2.25 | 2 | [] | no_license | package com.esys.leoparddemo;
import java.io.InputStream;
import java.io.OutputStream;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.... | true |
8a558989d8e76c4fc72bf3b20949a861116d7b46 | Java | AllennZhang/AndroidAutoStatistics | /AutoStatistics/track/src/main/java/com/hipac/codeless/update/NewDBEngine.java | UTF-8 | 2,366 | 2.234375 | 2 | [] | no_license | package com.hipac.codeless.update;
import com.hipac.codeless.core.TraceService;
import com.hipac.codeless.define.IDataCache;
import com.hipac.codeless.util.MsgLogger;
import java.util.List;
/**
* Created by youri on 2018/3/8.
*/
public class NewDBEngine implements IDataCache<TraceEvent> {
@Override
publi... | true |
65a9fd5e955fa42872e99514e0c97f3608bb2d4d | Java | iamdheeraj23/android_userBlue | /app/src/main/java/com/marius/valeyou/di/base/dialog/BaseAlertDialog.java | UTF-8 | 2,744 | 2.109375 | 2 | [] | no_license | package com.marius.valeyou.di.base.dialog;
import android.app.Dialog;
import android.content.Context;
import androidx.databinding.DataBindingUtil;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.StringRes;
import android.view.LayoutInflater;
import com.marius.valeyou.R;
import... | true |
b47c8bd7515e4717ff1175dfdfe0b69d3d9dfac1 | Java | macvek/springfun | /httpserver/src/main/java/pl/almatron/embedded/KillServer.java | UTF-8 | 400 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package pl.almatron.embedded;
import org.springframework.stereotype.Component;
/**
* httpserver
*
* @author macvek
*/
@Component
public class KillServer {
public void kill() {
new Thread(() -> {
try {
HelloWorld.server.stop();
} catch (Exception e) {
... | true |
2980b47c4bda0f9daae03190c46cdd0a15ad7f8a | Java | Fnska/booking | /src/main/java/io/fnska/booking/web/rest/v2/CustomerControllerV2.java | UTF-8 | 4,060 | 2.25 | 2 | [] | no_license | package io.fnska.booking.web.rest.v2;
import io.fnska.booking.converter.Converter;
import io.fnska.booking.converter.dto.CustomerDto;
import io.fnska.booking.domain.Customer;
import io.fnska.booking.domain.Reservation;
import io.fnska.booking.repository.CustomerRepository;
import io.fnska.booking.repository.Reservatio... | true |
19b9f43e9863c45c171529718cf8a2d3993274fa | Java | ayasincakmak/Java_Project | /BasicJMS/src/com/jmstest/queue/JMSSender.java | UTF-8 | 2,143 | 2.609375 | 3 | [] | no_license | package com.jmstest.queue;
import javax.jms.JMSException;
import javax.jms.Queue;
import javax.jms.QueueConnection;
import javax.jms.QueueConnectionFactory;
import javax.jms.QueueSender;
import javax.jms.QueueSession;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
impor... | true |
6fbb2cb7c648ae1bb979055679eccd7de396ab02 | Java | FECCYC/myVelib | /MyVelib/src/myVelib/userAndCard/User.java | UTF-8 | 13,231 | 3.09375 | 3 | [] | no_license | package myVelib.userAndCard;
import java.util.Observable;
import java.util.Observer;
import java.util.Random;
import java.util.Scanner;
import myVelib.system.*;
import myVelib.station.*;
import myVelib.utilities.*;
import myVelib.exceptions.*;
import myVelib.ride.*;
import myVelib.ridePlanning.*;
import myVelib.bike.... | true |
92f7cf01aa09eba0a5ce22288d2497c74d3bd1c9 | Java | excluzzzive/eCare16Spring_ModuleDivided | /dao/src/main/java/ru/simflex/ex/dao/interfaces/UserDao.java | UTF-8 | 1,709 | 2.640625 | 3 | [] | no_license | package ru.simflex.ex.dao.interfaces;
import ru.simflex.ex.entities.Contract;
import ru.simflex.ex.entities.User;
import java.util.List;
/**
* User DAO interface.
*/
public interface UserDao extends GenericDao<User> {
/**
* Authentication method for a login operation.
*
* @param email Email ... | true |
389787eda7118b9439a5f4fc119e348f8a24666f | Java | ihlys/musicstore | /src/main/java/com/ihordev/core/util/RequestUtils.java | UTF-8 | 732 | 2.609375 | 3 | [] | no_license | package com.ihordev.core.util;
import javax.servlet.http.HttpServletRequest;
public class RequestUtils {
private RequestUtils() {
throw new AssertionError("RequestUtils cannot be instantiated.");
}
/**
* Determines if specified {@code HttpServletRequest} instance is an ajax
... | true |
45e1cbc54a03a34a3c690f86f435dad10a8729cf | Java | jialangji/lxunhan | /app/src/main/java/com/ay/lxunhan/ui/public_ac/activity/IssueActivity.java | UTF-8 | 7,363 | 1.773438 | 2 | [] | no_license | package com.ay.lxunhan.ui.public_ac.activity;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.vi... | true |
30e4103f0515415fb3a3f17d6a3999dbc9073777 | Java | chenwuwen/CpaByNg2 | /cpa-service/src/main/java/cn/kanyun/cpa/service/file/UploadFileService.java | UTF-8 | 679 | 1.78125 | 2 | [] | no_license | package cn.kanyun.cpa.service.file;
import cn.kanyun.cpa.model.entity.CpaResult;
import org.springframework.web.multipart.MultipartFile;
/**
* @author Kanyun
*/
public interface UploadFileService {
String SERVICE_NAME = "cn.kanyun.cpa.Service.file.impl.UploadFileServiceImpl";
/**
* @param
* @retu... | true |
aa9a5e162120bf1a92da25693941897874c23699 | Java | SuriTech/Core_Java | /src/Oops_Concepts/TestHospital.java | UTF-8 | 933 | 3.1875 | 3 | [] | no_license | package Oops_Concepts;
public class TestHospital {
public static void main(String[] args) {
// TODO Auto-generated method stub
//Hospital h= new Hospital(); ** we can not create object of interface**
CMCHospital cm=new CMCHospital();
cm.operate();
cm.doScan();
cm.doVaccination();
cm.phoneConsulation()... | true |
87840c668c9c4ba566298653af112d8f5bb6ec9c | Java | badou119/printer | /printer/src/com/wx/common/utils/RegexCheck.java | UTF-8 | 4,689 | 2.59375 | 3 | [] | no_license | package com.wx.common.utils;
import org.apache.log4j.Logger;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.wx.enterprise.service.EnterpriseService;
import com.wx.enterprise.vo.Enterprise;
im... | true |
56391f7318cb984c8e1afec8c0633c1ee53b73f0 | Java | robertotambunan/prochofire | /App Android/Prochofire/app/src/main/java/com/example/setia/prochofire/model/Product.java | UTF-8 | 9,369 | 2.015625 | 2 | [] | no_license | package com.example.setia.prochofire.model;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by Setia on 5/24/2017.
*/
public class Product implements Parcelable{
@Seriali... | true |
77c9eed5344c71cb2449ff51e7772539f93306a8 | Java | RKiri/DesignPatterns | /java/com/weiyuze/dp/state/thread/Thread_.java | UTF-8 | 387 | 2.53125 | 3 | [] | no_license | package com.weiyuze.dp.state.thread;
public class Thread_ {
ThreadState_ state = new NewState(this);
void move(Action action){
state.move(action);
}
void run(){}
public static void main(String[] args) {
Thread_ t = new Thread_();
Action action = new Action();
t.mov... | true |
db57a945628cdce279418a79db4ea8335f8fb271 | Java | xjie1070160377/AppCenter | /JOOQ_Demo/src/main/java/cn/mooc/jooq/demo/generated/tables/TMallProductcomments.java | UTF-8 | 7,707 | 1.796875 | 2 | [] | no_license | /**
* This class is generated by jOOQ
*/
package cn.mooc.jooq.demo.generated.tables;
import cn.mooc.jooq.demo.generated.AppcenterMallData;
import cn.mooc.jooq.demo.generated.Keys;
import cn.mooc.jooq.demo.generated.tables.records.TMallProductcommentsRecord;
import java.sql.Timestamp;
import java.util.Arrays;
impor... | true |
d56e9457068f5dd71d11f1fcc1dbc7ef7ff729e7 | Java | avalonCLR/tp-jdbc-1 | /src/main/java/dev/jdbc/DAOLivre.java | UTF-8 | 3,181 | 2.875 | 3 | [] | no_license | package dev.jdbc;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
public class DAOLivre {
public static void getAllBooks() {
Connection co = null;
Statement st = n... | true |
fadccbc229715efb30a6123329207b48e8bf57c8 | Java | bmwcmw/j2ee-soap | /base/model/src/main/java/sw/wine/itf/ICommande.java | UTF-8 | 378 | 1.929688 | 2 | [] | no_license | package sw.wine.itf;
import java.util.Collection;
import java.util.Date;
import sw.wine.model.CommandeArticles;
public interface ICommande {
Long getId();
Date getConfirmee();
void setConfirmee(Date confirmee);
boolean hasConfirmee();
Date getEffectuee();
void setEffectuee(Date effectuee);
boolean hasEf... | true |
2524e6875ddf6ad555afb2238a5ee3f8e35955db | Java | simonnojd/backend2_kubernetes | /src/main/java/com/example/backend2_kubernetes/presentation/HelloWorldResource.java | UTF-8 | 838 | 2.21875 | 2 | [] | no_license | package com.example.backend2_kubernetes.presentation;
import com.example.backend2_kubernetes.application.HelloService;
import com.example.backend2_kubernetes.domain.HelloResponse;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.b... | true |
864d9637e483cc5c8abd4ab3108fb4548a9b4b36 | Java | mihai-craciun-ursu/Slot-Poker | /src/poker_src/Poker_win.java | UTF-8 | 2,825 | 3.21875 | 3 | [] | no_license | package poker_src;
import java.util.Arrays;
public class Poker_win {
private int numbers[] = new int[6];
private int signs[] = new int[6];
public Poker_win(Poker_Hand[] hand){
for(int i=1;i<=5;i++){
numbers[i]=hand[i].getNumber();
signs[i]=hand[i].getSign();
}
Arrays.sort(numbers);
}
public int... | true |
ac45daf2d27b863fedcfb7cee04856ba18264a41 | Java | aranajuan/jrpg-2017a-servidor | /src/main/java/comandos/Mercado.java | UTF-8 | 921 | 2.25 | 2 | [
"MIT"
] | permissive | package comandos;
import java.io.IOException;
import estados.Estado;
import mensajeria.PaqueteMercado;
import servidor.EscuchaCliente;
import servidor.Servidor;
public class Mercado extends ComandoServer {
@Override
public void ejecutar() {
// Le reenvio al id del personaje con el que se quieren intercambiar ít... | true |
35ecd0960670074ebaaca93539e67e28d9c27dce | Java | Babashonok/TestTask | /src/com/epam/parking/controller/command/impl/AddVehicle.java | UTF-8 | 1,346 | 2.84375 | 3 | [] | no_license | package com.epam.parking.controller.command.impl;
import com.epam.parking.bean.Vehicle;
import com.epam.parking.controller.command.Command;
import com.epam.parking.service.VehicleService;
import com.epam.parking.service.exception.RegisterEntityException;
import com.epam.parking.service.factory.ServiceFactory;
import ... | true |
63f7172c5d997bf916b42a0c88fc9d94e718766f | Java | ggditzel/Trabalho02-Correcao | /ProjetoTrab02/src/br/ufsc/ine5605/acesso/TelaTentativaAcesso.java | UTF-8 | 4,731 | 3.3125 | 3 | [] | no_license | package br.ufsc.ine5605.acesso;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import br.ufsc.ine5605.Tela;
public class TelaTentativaAcesso extends Tela {
/**
* Imprime o motivo do acesso ter sido negado
*/
public void mostraNegacao(MotivoNegacaoAcesso motivo) {
... | true |
879d6fd980dbf6a0071b95ef428e9f7998215a26 | Java | andrewleow97/duke | /src/main/java/BlankCommand.java | UTF-8 | 310 | 2.25 | 2 | [] | no_license | /**
* BlankCommand template that extends Command, used for default error handling as Command is an abstract class and cannot be instantiated
*/
public class BlankCommand extends Command {
/**
* Instantiating the BlankCommand class without any parameters
*/
public BlankCommand() {
}
}
| true |
fc14be7adc526b082ffcd4e3ec8cb1af7803f306 | Java | cvdigitalcreative/DataMatelKita | /app/src/main/java/com/digitalcreative/aplikasidatamining/View/LoginandRegister/LoginPage.java | UTF-8 | 8,371 | 1.84375 | 2 | [] | no_license | package com.digitalcreative.aplikasidatamining.View.LoginandRegister;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.provider.Settings;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v4.app.Fragme... | true |
f0b82838b26ea3420c636df91d60679d7fdebf3a | Java | KrishnaKTechnocredits/JAVATechnoJun20 | /src/nikhilMJun20/assignment34/RemoveString.java | UTF-8 | 884 | 3.75 | 4 | [] | no_license | /*
Remove all Techno from given ArrayList.
["Maulik","Techno" ,"Krishna", "Techno", "Credits", "Techno"]
Hint : contains & remove
*/
package nikhilMJun20.assignment34;
import java.util.ArrayList;
public class RemoveString {
void remove(ArrayList strArrayList, String toBeRemoved) {
while(strArrayList.contains(toBe... | true |
4e909527f44346fc5cf258c6a52455fda5da5ff0 | Java | AnaTeresaQR/gitHubRespaldo | /PatronesEstructurales(Decorator-Composite)/ProyectosComposite/src/proyectosComposite/Main.java | UTF-8 | 904 | 3.3125 | 3 | [] | no_license | package proyectosComposite;
/**
* Clase prueba para demostrar patrón composite
*
* @author Ana Teresa
*/
public class Main {
public static void main(String[] args) {
Empleado emp1 = new Empleado("Ana", "Quesada", "207410170");
Entregable e1 = new Entregable("Entregable1", "este es el entregab... | true |
c29f3a8a48e584cfcfac114f38c23e6d9a671b41 | Java | PanHuai/- | /src/main/java/com/lyl/mapper/UserMapper.java | UTF-8 | 370 | 1.867188 | 2 | [] | no_license | package com.lyl.mapper;
import com.lyl.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
* Created by 潘淮 on 2018/12/30.<br>
*/
@Repository
public interface UserMapper {
public User getByOpenId(@Param("openid") String openid);
public int add(User... | true |
4b4b792f4f72019714b2ec70ccaa69da5ed90475 | Java | trungptdhcn/WorshipDocument | /WorshipDocument/src/com/example/WorshipDocument/popup/common/PopupLocationType.java | UTF-8 | 261 | 1.734375 | 2 | [] | no_license | package com.example.WorshipDocument.popup.common;
/**
* User: AnhNT
* Date: 2/21/14
* Time: 10:23 AM
*/
public class PopupLocationType
{
public static final int LEFT = 0;
public static final int CENTER = 1;
public static final int RIGHT = 2;
}
| true |
60c8acc4d57b6d5f62615a0d044caf086ed28763 | Java | drauthev/space_battle | /space_battle/src/space_battle/server/game_elements/HitBox.java | UTF-8 | 1,794 | 3.4375 | 3 | [] | no_license | package space_battle.server.game_elements;
/**
* Hitbox of {@link GameElement} classes and the {@link Player} class.
* @author daniel.szeifert
* @version 1.0
* @since 2014-05-17
*/
public class HitBox{
private int width, heigth;
GameElement owner;
/**
* Constructor
* @param width Latitu... | true |
3aaa03f6ca2e33750e3f3fefe4545496ec5aaebb | Java | joonaspartanen/tiralabra-polunraivaaja | /polunraivaaja/src/test/java/tiralabra/polunraivaaja/tietorakenteet/RuutuKekoTest.java | UTF-8 | 3,162 | 2.640625 | 3 | [] | no_license | package tiralabra.polunraivaaja.tietorakenteet;
import tiralabra.polunraivaaja.tyokalut.RuutuKomparaattori;
import tiralabra.polunraivaaja.mallit.Ruutu;
import static org.junit.Assert.assertThat;
import static org.hamcrest.CoreMatchers.*;
import org.junit.Before;
import org.junit.Test;
public class RuutuKekoTest {
... | true |
f43fa592883ee4f3b5cf6c33bac0b58345135ae8 | Java | magefree/mage | /Mage.Sets/src/mage/cards/g/GuardianKirin.java | UTF-8 | 1,335 | 2.578125 | 3 | [
"MIT"
] | permissive | package mage.cards.g;
import mage.MageInt;
import mage.abilities.common.DiesCreatureTriggeredAbility;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage... | true |
ffcd78a4da72a680cb6261e65b2cd51cc51c7934 | Java | CapgeminiProject/CapstoreClient | /src/main/java/com/capgemini/storeclient/beans/Product.java | UTF-8 | 5,645 | 2.0625 | 2 | [] | no_license | package com.capgemini.storeclient.beans;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persiste... | true |
cf425fbf83377707f24931dc5d0a772d98a86027 | Java | skihlman/GAMLP | /src/GUI/LeftPanel.java | UTF-8 | 703 | 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 GUI;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.bord... | true |
cc4f97b7a58989af82cdbb51215630ecd3914a95 | Java | DaniilNov/Spring_Boot_Security_JS | /src/main/java/boot_hiber/springbootCRUD/service/SecurityServiceImpl.java | UTF-8 | 975 | 2.265625 | 2 | [] | no_license | package boot_hiber.springbootCRUD.service;
import boot_hiber.springbootCRUD.model.User;
import boot_hiber.springbootCRUD.repository.RoleRepository;
import boot_hiber.springbootCRUD.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userde... | true |
f8f3a5a9cae96cc5512758fb02de1a80b752d274 | Java | oschrenk/human-geo | /src/main/java/com/oschrenk/humangeo/cs/Geographic3dCoordinate.java | UTF-8 | 2,212 | 3.4375 | 3 | [] | no_license | package com.oschrenk.humangeo.cs;
/**
* A geographic coordinate using geodetic latitude and longitude and with an
* height (altitude)
*
* <p>
* The <b>latitude<b> (abbreviation: Lat., φ, or phi) of a point on the Earth's
* surface is the angle in the range −90° ≤ φ ≤ 90° between the equatorial plane
* and a li... | true |
b1834bef71c8e4f9ea3c61349dbb31ee6cf284d8 | Java | RaczkaKamil/Programy-JAVA | /Interfejsy/Interfejsy 2/src/com/company/Main.java | UTF-8 | 1,112 | 4 | 4 | [] | no_license | package com.company;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Main main = new Main();
Computation computation;
if (main.shouldMultiply()) {
computation = new Multiplication(); // zaimplementuj brakującą klasę
}
els... | true |
8d2db9e3dba3039a56c6d69b44b87618db41985d | Java | andrewhunter1612/plain-air | /src/main/java/People/Passenger.java | UTF-8 | 624 | 3.03125 | 3 | [] | no_license | package People;
public class Passenger extends People{
private int bagMass;
private String seat;
public Passenger(String name, int mass, int bagMass) {
super(name, mass);
this.bagMass = bagMass;
}
public Passenger(String name, int mass, String flightNumber, int bagMass, String se... | true |
fafbf89ad6204f0ff773edaa00777d0343920527 | Java | Abhishek2194/Leafgroundrepo | /Leafground/src/test/java/testleaf/Sortable.java | UTF-8 | 2,191 | 2.328125 | 2 | [] | no_license | package testleaf;
import java.util.concurrent.TimeUnit;
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.interactions.Actions;
import org.testng.annotations.AfterMethod;
impo... | true |
ded597120b9382e40f7bc9804cc50e2a3200fa51 | Java | ganesh91/CSCI-B565-Data-Mining | /K Means Implementation/K Means - Java Implementation/KMeans/datamining/src/datamining/MatrixTest.java | UTF-8 | 450 | 2.375 | 2 | [] | no_license | package datamining;
import org.ejml.simple.SimpleMatrix;
public class MatrixTest {
public MatrixTest() {
// TODO Auto-generated constructor stub
}
public static void main(String args[]){
try{
SimpleMatrix dataSet = new SimpleMatrix().loadCSV("D:\\makeup.csv");
dataSet.print();
System.out.println(dat... | true |
6c881e3206e413f45563961e68c1d9d6b2896935 | Java | Taher-Ghaleb/FlakeFlagger | /flakiness-predicter/input_data/original_tests/doanduyhai-Achilles/nonFlakyMethods/info.archinnov.achilles.internal.proxy.wrapper.MapWrapperTest-should_not_mark_dirty_on_remove_non_existing_from_entrySet.java | UTF-8 | 391 | 1.679688 | 2 | [
"BSD-3-Clause"
] | permissive | @Test public void should_not_mark_dirty_on_remove_non_existing_from_entrySet() throws Exception {
Map<Integer,String> target=prepareMap();
MapWrapper wrapper=prepareMapWrapper(target);
Set<Entry<Object,Object>> entrySet=wrapper.entrySet();
Entry<Object,Object> entry=new AbstractMap.SimpleEntry<Object,Object>(4,... | true |
829e283af8947b4ca99d43443f425b7fbc6b8fbe | Java | qqmuqq2020/---- | /HRManagement/.svn/pristine/82/829e283af8947b4ca99d43443f425b7fbc6b8fbe.svn-base | UTF-8 | 346 | 1.640625 | 2 | [] | no_license | package hr.manage.service.jurisdiction;
import java.util.List;
import hr.manage.entity.Jurisdiction;
public interface JurisdictionService {
//���Ȩ��
public int saveJur(Jurisdiction jurisdiction);
//���gid��ѯȨ��
public List<Jurisdiction> get(String id);
public int deleteJur(String gid);
}
| true |
71f3e7c13e182d06e78a924a48d09d6f04dfb4fc | Java | jollitycn/zonsh-new | /zs-user/src/main/java/user/rpcservice/impl/RpcAnswerServiceImpl.java | UTF-8 | 1,022 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | package user.rpcservice.impl;
import java.util.List;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.plugins.Page;
import constant.Constant;
import result.vo.MyAnswerResult;
import result.vo.comment.MyAnswerWithTopicResult;
import user.rpcservice.RpcAnswerService;
@Component
public c... | true |
ad432fee7dd7fed722ad9b1cc0db2cc7538d7059 | Java | arpit20adlakha/book-my-show | /src/com/bms/factory/CinemaFactory.java | UTF-8 | 393 | 2.484375 | 2 | [] | no_license | package com.bms.factory;
import java.util.HashMap;
import java.util.Map;
import com.bms.model.Cinema;
public class CinemaFactory {
static Map<Integer,Cinema> cinemaMap = new HashMap<>();
public static void createCinema(Cinema cinema) {
cinemaMap.put(cinema.getCinemaId(), cinema);
}
public static Cinema getCi... | true |
1624d9593e494823df1e0c5cdb486810d6925907 | Java | songjiavc/website | /usertest/src/main/java/com/byl/manager/proxy/service/impl/UserServiceImpl.java | UTF-8 | 1,469 | 1.890625 | 2 | [] | no_license | package com.byl.manager.proxy.service.impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable... | true |
a461ae093db569d4c2a0f403d5a678fbfb11f4cf | Java | arun21/ramsesSeleniumModule | /src/test/java/com/saintgobain/ramses/selenium/testdata/SeleniumServerTest.java | UTF-8 | 1,990 | 2.0625 | 2 | [] | no_license | package com.saintgobain.ramses.selenium.testdata;
import org.apache.log4j.Logger;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.server.SeleniumServer;
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.SeleneseTestBase;
pu... | true |
9ebd5a8505cbfa4b57e9327c8412403a62d7fe03 | Java | sparksustc/xtcetools | /src/main/java/org/xtce/apps/editor/dialogs/XTCEViewerContainerContentRow.java | UTF-8 | 19,510 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /* Copyright 2015 David Overeem (dovereem@cox.net)
*
* 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 app... | true |
596a5152e61c14efc0cf826c4e51fb2e7c0af6ee | Java | Zhouwenbo123/TwoWeiMa2 | /app/src/main/java/com/bawei/twoweima/BaseActivity.java | UTF-8 | 452 | 1.632813 | 2 | [] | no_license | package com.bawei.twoweima;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
/**
* Copyright (C), 2015-2019, 八维集团
* Author: Machenike
* Date: 2019/6/6 15:01,周文博
* Description:
*/
public class BaseActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle save... | true |
406f64b4b43953e8543ccf285166fd54caf1b1af | Java | xqplus/EquipmentSys | /src/main/java/cn/xqplus/equipmentsys/service/impl/RepairServiceImpl.java | UTF-8 | 8,608 | 2.03125 | 2 | [] | no_license | package cn.xqplus.equipmentsys.service.impl;
import cn.xqplus.equipmentsys.ext.CommonConst;
import cn.xqplus.equipmentsys.form.RepairForm;
import cn.xqplus.equipmentsys.mapper.IRepairMapper;
import cn.xqplus.equipmentsys.model.Equipment;
import cn.xqplus.equipmentsys.model.Repair;
import cn.xqplus.equipmentsys.model.U... | true |
b9e42017bc18fb1cf001127afe90cd142c4f33a1 | Java | drkomp/ECRM_ | /Services/src/main/java/com/easycrm/dao/UserDAOHibernate.java | UTF-8 | 289 | 1.523438 | 2 | [] | no_license | package com.easycrm.dao;
import com.easycrm.abstractdao.GenericHibernateDao;
import com.easycrm.abstractdao.UserDAO;
import com.easycrm.users.User;
/**
* Created by drkomp on 05.11.2016.
*/
public class UserDAOHibernate
extends GenericHibernateDao<User>
implements UserDAO {
}
| true |
1f28997edcef8f4ce1d7848086fa2390ec742766 | Java | dstmath/OppoR15 | /app/src/main/java/com/android/internal/telephony/UiccSmsController.java | UTF-8 | 17,416 | 2.109375 | 2 | [] | no_license | package com.android.internal.telephony;
import android.app.ActivityThread;
import android.app.PendingIntent;
import android.app.PendingIntent.CanceledException;
import android.content.Context;
import android.net.Uri;
import android.os.Binder;
import android.os.RemoteException;
import android.os.ServiceManager;
import ... | true |
a4958cbaaaeefeb0546820996b915b9ce4c7360b | Java | wuhansport/Soccer | /src/com/whs/soccer/concurrent/ReferenceDrawable.java | UTF-8 | 2,392 | 2.9375 | 3 | [] | no_license | package com.whs.soccer.concurrent;
import java.io.InputStream;
import java.util.concurrent.atomic.AtomicInteger;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.BitmapDrawable;
import android.util.Log;
/**
* Class ReferenceDrawab... | true |
ada891ac435870407beafd835dd0e96ff816ab3c | Java | akhvorov/software-design-course | /src/main/java/ru/ifmo/sdc/cli/commands/ExternalCommand.java | UTF-8 | 1,420 | 2.71875 | 3 | [] | no_license | package ru.ifmo.sdc.cli.commands;
import ru.ifmo.sdc.cli.Environment;
import java.io.*;
import java.util.Arrays;
import java.util.List;
/**
* Command for non implemented commands
*/
public class ExternalCommand extends Command {
private List<String> args;
public ExternalCommand(String[] args) {
th... | true |
a3f9332e1077af56bb7c68c369abfb861b380736 | Java | prowide/prowide-iso20022 | /model-common-types/src/generated/java/com/prowidesoftware/swift/model/mx/dic/AmountType4Choice.java | UTF-8 | 2,487 | 2.125 | 2 | [
"Apache-2.0"
] | permissive |
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang... | true |
e751e247fa28c0ba2ffec7d5469e0e86305d19a9 | Java | gvramana/carbondata | /Molap/Molap-Core/agitar/test/com/huawei/unibi/molap/datastorage/store/compression/type/UnCompressMaxMinShortAgitarTest.java | UTF-8 | 9,006 | 1.835938 | 2 | [] | no_license | /**
* Generated by Agitar build: AgitarOne Version 5.3.0.000022 (Build date: Jan 04, 2012) [5.3.0.000022]
* JDK Version: 1.6.0_14
*
* Generated on 29 Jul, 2013 2:33:49 PM
* Time to generate: 00:16.648 seconds
*
*/
package com.huawei.unibi.molap.datastorage.store.compression.type;
import com.agitar.l... | true |
c472b739fe366ef2a76ff0e25418778025ec3e92 | Java | mehditeymorian/Cool-Compiler | /src/main/model/Descriptor.java | UTF-8 | 1,933 | 2.625 | 3 | [] | no_license | package main.model;
import main.model.DataType;
public class Descriptor {
public enum Type{
REGISTER, VARIABLE, LITERAL
}
private String value;
private String prefix;
private Type type;
private DataType dataType;
private String className;
private boolean isArray;
private i... | true |
e4b13eb847e0df225dc3148f0c23d8539771b43a | Java | huotuinc/pm | /src/main/java/com/huotu/pm/entity/User.java | UTF-8 | 3,059 | 2.28125 | 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.huotu.pm.entity;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collec... | true |
2e4c86aea12e9688f548f37f98b8bb7533a39371 | Java | Minhyeok-Kim-dev/board_test | /src/main/java/com/edgc/common/base/model/entity/BaseEntity.java | UTF-8 | 749 | 2.171875 | 2 | [] | no_license | package com.edgc.common.base.model.entity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
/**
* Table에 매핑되는 Entity 공통 정보를 나타냅니다.
* - Entity class 생성시 해당 class를 상속받아 구현합니다.
*
* Package 구성
* - domain pack... | true |
a10fb9124a4215662e00241cab6f65e539dcc575 | Java | SprinLa/yicunyipin01 | /src/com/yicunyipin/service/impl/PictureServiceImpl.java | GB18030 | 4,931 | 2.25 | 2 | [] | no_license | package com.yicunyipin.service.impl;
import java.util.LinkedList;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yicunyipin.dao.BaseDAO;
import com.yicunyipin.entity.PageBean;
import com.yicunyipin.entity.Picture;
import com.yicunyipin.service.Pic... | true |
268f7744bbcc65d6850de4cad448e6ead560293d | Java | belnarto/mWallet | /src/main/java/com/vironit/mwallet/service/impl/WalletServiceImpl.java | UTF-8 | 5,155 | 2.46875 | 2 | [] | no_license | package com.vironit.mwallet.service.impl;
import com.vironit.mwallet.dao.WalletDao;
import com.vironit.mwallet.model.entity.Currency;
import com.vironit.mwallet.service.CurrencyService;
import com.vironit.mwallet.service.WalletService;
import com.vironit.mwallet.service.exception.WalletServiceException;
import com.vir... | true |
55ac4aea1573c2b0166a65924a9f7328ca4964b4 | Java | ShallowDreamzrc/autohome_api | /src/main/java/com/autohome_api/dao/ReportMapping.java | UTF-8 | 157 | 1.65625 | 2 | [] | no_license | package com.autohome_api.dao;
import com.autohome_api.dto.ReportParam;
public interface ReportMapping {
long insertReport(ReportParam reportParam);
}
| true |
740284b66901a1ed3d1cee482908497a9a0b3e70 | Java | RhysB/Glass-Launcher-Legacy | /src/main/java/net/glasslauncher/legacy/jsontemplate/MSAccessToken.java | UTF-8 | 229 | 1.625 | 2 | [
"CC0-1.0"
] | permissive | package net.glasslauncher.legacy.jsontemplate;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
@Getter
public class MSAccessToken {
@SerializedName("access_token")
private String accessToken;
}
| true |
850c9c6d0f0ba66b86689750caee6fce38bbe0a8 | Java | SophiaMuma/STHomeWork01 | /StudentManager/src/StudentManager/StudentManager.java | UTF-8 | 5,845 | 3.6875 | 4 | [] | no_license | package StudentManager;
import java.util.ArrayList;
import java.util.Scanner;
/*
(问题4)
管理所有Student,有一个Student类型的数组作为字段;
插入 、查找、删除、输出、退出等功能在该类中作为方法实现;
首先输出选择菜单,等待用户输入选项;然后根据选项执行相应操作.
*/
public class StudentManager implements StudentInterface {
//插入
public void addStudent(ArrayList<Student> list)... | true |
d8f3baf254958ccfb4a00787ecb7a591cb6bf7f4 | Java | veontomo/Lineup | /src/main/com/veontomo/lineup/Worker.java | UTF-8 | 711 | 2.328125 | 2 | [] | no_license | package com.veontomo.lineup;
import com.intellij.openapi.command.WriteCommandAction;
import com.intellij.psi.PsiClass;
import com.veontomo.lineup.CanonicalSorter;
/**
* A java class that encapsulates a call to WriteCommandAction that
* can not be converted to a kotlin code for the moment.
*/
public class Worker {
... | true |
3e11117ef3891e9c82bb43a1030dbd08585fa8d6 | Java | uwitec/zcloud-education | /src/main/java/com/education/experiment/util/FileUtil.java | UTF-8 | 2,831 | 2.953125 | 3 | [] | no_license | package com.education.experiment.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.nio.charset.Charset;
import java... | true |
acb74acae14d766580718cf69b091d92ab8fce70 | Java | devallever/DayMatter | /app/src/main/java/com/allever/daymatter/ui/SelectSortActivity.java | UTF-8 | 766 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package com.allever.daymatter.ui;
import android.os.Bundle;
import androidx.annotation.Nullable;
import com.allever.daymatter.R;
import com.allever.daymatter.mvp.BaseActivity;
import com.allever.daymatter.mvp.presenter.SelectSortPresenter;
import com.allever.daymatter.mvp.view.ISelectSortView;
/**
* Created by Alle... | true |
c4d4082bf32c6580d94fd4af6e199994e20dcfef | Java | DanVic100/testOzon | /src/main/java/step/ItemMenuStep.java | UTF-8 | 3,937 | 2.390625 | 2 | [] | no_license | package step;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import page.ItemMen... | true |
024b968d3e1881aaa30101f5c97e214489d833b1 | Java | zhiji6/mih | /MED-CLOUD/med-service/src/test/java/nta/med/service/integration/system/CheckHideButtonHandlerTest.java | UTF-8 | 638 | 1.703125 | 2 | [] | no_license | package nta.med.service.integration.system;
import org.junit.Test;
import nta.med.common.remoting.rpc.protobuf.Rpc;
import nta.med.service.ihis.proto.SystemServiceProto;
import nta.med.service.integration.MessageRequestTest;
public class CheckHideButtonHandlerTest extends MessageRequestTest {
@Test
public void te... | true |
6c7ad292f367b2fa41fa6df03ca32418cb0d34c5 | Java | Moses-odessa/users | /src/main/java/juja/microservices/users/dao/CRMUserRepository.java | UTF-8 | 6,514 | 2.1875 | 2 | [] | no_license | package juja.microservices.users.dao;
import juja.microservices.users.entity.Keeper;
import juja.microservices.users.entity.KeeperCRM;
import juja.microservices.users.entity.User;
import juja.microservices.users.exceptions.UserException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframewo... | true |
a056b59874537d68774cf3986b4602dc97197c52 | Java | aurelienpepin/IUT-QCM | /Logiciel_QCM/src/packControleur/ContrReponse.java | UTF-8 | 1,340 | 2.671875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package packControleur;
import java.util.ArrayList;
import packModele.Etudiant;
import packModele.Personne;
import packModele.QCM;
/*... | true |
52b8e4686b2dcb4e2019ad525a87dbf26bc2a43f | Java | hyperledger/besu | /ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/task/RetryingGetNodeDataFromPeerTask.java | UTF-8 | 2,614 | 1.78125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | /*
* Copyright ConsenSys AG.
*
* 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 to in writing... | true |
17ee8f1a1ded91f64079c029d5fd03b69aa230f7 | Java | khanhquynh133/CookingApp | /app/src/main/java/com/finalexam/cookingapp/viewmodel/APIService.java | UTF-8 | 1,507 | 2.125 | 2 | [] | no_license | package com.finalexam.cookingapp.viewmodel;
import com.finalexam.cookingapp.model.entity.Category;
import com.finalexam.cookingapp.model.entity.Ingredient;
import com.finalexam.cookingapp.model.request.CreateFoodRequest;
import com.finalexam.cookingapp.model.response.CreateFoodResponse;
import com.finalexam.cookingapp... | true |
4b7616cbb97fa22efbd2c16d46e54f72bb311dbd | Java | JonVitton/joguin-java | /Joguin/src/joguin/main/GameObject.java | ISO-8859-1 | 1,409 | 3.328125 | 3 | [] | no_license | package joguin.main;
import java.awt.Graphics;
// Tudo que for um objeto do jogo referido nessa classe
public abstract class GameObject {
/*O comando protected define que essas variaveis
apenas podero ser acessadas atravs de objetos herdados de Game Object */
protected int x, y;
protected ID id;
protected int... | true |
e3d2f1043905508617499d22d5c21a4091df3de3 | Java | sudeep-katiar/OOPs | /objectorientedprograms/InventoryDataManagement/src/com/blblz/idm/serviceimplementation/InventoryImplementation.java | UTF-8 | 4,844 | 3.015625 | 3 | [] | no_license | package com.blblz.idm.serviceimplementation;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json... | true |
e90d5941e4ba539091fc491a198548c8b04e73f3 | Java | pengrad/java-telegram-bot-api | /library/src/main/java/com/pengrad/telegrambot/model/botcommandscope/BotCommandScopeDefault.java | UTF-8 | 198 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package com.pengrad.telegrambot.model.botcommandscope;
public class BotCommandScopeDefault extends BotCommandScope {
public BotCommandScopeDefault() {
this.type = "default";
}
}
| true |
e40076f9c7e11b2c7cc9117c7a9e437194c3162f | Java | sumeyras/JavaBootCampWorks | /day6HrmsProject/src/main/java/kodlamaio/day6HrmsProject/business/concretes/WorkExperienceManager.java | UTF-8 | 1,527 | 2.1875 | 2 | [] | no_license | package kodlamaio.day6HrmsProject.business.concretes;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import kodlamaio.day6HrmsProject.business.abstracts.WorkExperienceService;
i... | true |
b8c1455b6d51a7cc76b03759a917ba46ea0a4187 | Java | fassifehrim/Open-e-TrustEx | /004 Development/001 Implementation/e-TrustEx/etrustex-integration/src/main/java/eu/europa/ec/etrustex/integration/ejb/TestDispatchQueueMessageListener.java | UTF-8 | 926 | 2.125 | 2 | [] | no_license | /**
*
*/
package eu.europa.ec.etrustex.integration.ejb;
import javax.jms.Message;
import javax.jms.Session;
import javax.jms.TextMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.ws.transport.jms.WebServiceMessageListener;
/**
* @author chiricr
*
*/
public class TestD... | true |
b24e4effaa17b8db6c53269f9c46cbfeb65f1b40 | Java | SeulkiWave/Eclipse_WorkSpace | /98. REPORT/src/com/itwill04/array/BookLibraryMain.java | UTF-8 | 641 | 2.9375 | 3 | [] | no_license | package com.itwill04.array;
public class BookLibraryMain {
public static void main(String[] args) {
Book books[] = new Book[3];
books[1] = new Book(12345, "아동OT", "의학", "박혜연");
books[2] = new Book(23456, "성인OT", "상식", "정민예");
books[3] = new Book(23456, "성인OT", "상식", "정민예");
BookMember member... | true |
0b31939172b51419c43ea8ba09adb71c81f6cac2 | Java | DariaLeskavets/HT0 | /Prj01/src/com/epam/furniture/Furniture.java | UTF-8 | 950 | 3.171875 | 3 | [] | no_license | package com.epam.furniture;
public abstract class Furniture {
private String nameOfFurn;
private int minSquare;
private int maxSquare;
public Furniture(String nameOfFurn, int maxSquare){
this.nameOfFurn = nameOfFurn;
this.maxSquare = maxSquare;
}
public Furniture(String nameO... | true |
af270c14245c48df7c9fc389a71c7f0df9e726a9 | Java | lirf2018/weixingtest | /src/com/yufan/util/DateUtil.java | UTF-8 | 9,885 | 3.5625 | 4 | [] | no_license | package com.yufan.util;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* 日期工具类;SimpleDateFormat实例属于非线程同步的,必须注意线程问题。
*
*/
public class DateUtil {
public static String DEFAULT_DATE_FORMAT_LONG = "yyyy-MM-dd H... | true |
f3e1f7dceb85d6c5f2d7ee2d4438531c0322a68c | Java | kentGuo/Java_practice1 | /src/com/fg/NETWORK/ClientThread.java | UTF-8 | 853 | 3.140625 | 3 | [] | no_license | package com.fg.NETWORK;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Socket;
public class ClientThread implements Runnable{
//该线程负责处理的Socket
private Socket s;
//该线程所处理的Socket对应的输入流
BufferedReader br=null;
public ClientThread(Socket s)... | true |
53c6a32f3f64d82bb2c20b7e9d6abe81df30c46c | Java | xyydcoo/finchley-release | /finchley-gateway/src/main/java/com/madecare/springcloud/finchley/gateway/route/RoutesConfig.java | UTF-8 | 2,686 | 2.015625 | 2 | [] | no_license | package com.madecare.springcloud.finchley.gateway.route;
import com.madecare.springcloud.finchley.gateway.filterfactory.GlobalRouteFilter;
import com.madecare.springcloud.finchley.gateway.filterfactory.PostGatewayFilterFactory;
import com.madecare.springcloud.finchley.gateway.filterfactory.PreGatewayFilterFactory;
imp... | true |
a254df8afe0148a2872f928e26f7a7ecd94a9303 | Java | bingoogolapple/Android-Training | /SmartBulb/src/com/bingoogol/smartbulb/util/Constants.java | UTF-8 | 3,117 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.bingoogol.smartbulb.util;
import java.io.File;
/**
* 系统常量工具类
*
* @author 王浩 bingoogol@sina.com
*/
public final class Constants {
private Constants() {
}
/**
* 桥接器ip地址
*/
public static String IPADDRESS = "192.168.1.101";
/**
* message code常量类
*
* @author 王浩 bingoogol@sina.com
... | true |
17ad631612ddd05ad9aad8849e35a8361642e9dc | Java | zhengbinger/ehr-management-platform | /src/main/java/com/sensetime/ehr/emp/repository/SysMenuMapper.java | UTF-8 | 693 | 1.828125 | 2 | [] | no_license | package com.sensetime.ehr.emp.repository;
import com.sensetime.ehr.emp.common.base.BaseMapper;
import com.sensetime.ehr.emp.entity.SysMenu;
import com.sensetime.ehr.emp.entity.SysMenuExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SysMenuMapper extends BaseMapper<SysMenu> ... | true |
5942ba230f995cd3262f66e3a0c73fd32fa0fc6f | Java | ParichayPai/Problem-Solving | /src/com/AdHocProblems/TowerOfHanoi.java | UTF-8 | 689 | 3.484375 | 3 | [] | no_license | package com.AdHocProblems;
import java.util.Scanner;
public class TowerOfHanoi {
public static void towerOfHanoi(int totalDisks, char fromRod, char toRod, char extraRod){
if (totalDisks == 1){
System.out.println(totalDisks+":"+fromRod+"->"+toRod);
}else {
towerOfHanoi(total... | true |
203569daa3a80fd8b06c5e66d3f35c5b755003ac | Java | thietnm22399/HappyFarm | /src/java/model/Plant.java | UTF-8 | 1,206 | 2.515625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package model;
/**
*
* @author nguye
*/
public class Plant extends BaseModel {
private String plantName;
priva... | true |
dd73eea4079294c6d14c756e7b0c924639d2109d | Java | AllyW/jvCode | /AdditiveNumber.java | UTF-8 | 2,389 | 4.1875 | 4 | [
"MIT"
] | permissive | /*
Additive number is a string whose digits can form additive sequence.
A valid additive sequence should contain at least three numbers. Except for the first two numbers, each subsequent number in the sequence must be the sum of the preceding two.
For example:
"112358" is an additive number because the digits can for... | true |
58f69f8ae804fc7d255ad6531ed6a307c1efbd62 | Java | antongomez/MonopolyPOO | /errosExternos/XogadorPreso.java | UTF-8 | 207 | 2.484375 | 2 | [] | no_license | package errosExternos;
public class XogadorPreso extends ErroExterno {
public XogadorPreso(String nomeXogador) {
super("O xogador " + nomeXogador + " está preso, non se pode mover.");
}
}
| true |
ee0c9dd4d2eeb170b9d6312f224619cbe9feef97 | Java | tianyalu/FileUpDownload | /app/src/main/java/com/sty/file/up/download/MainActivity.java | UTF-8 | 16,730 | 2.0625 | 2 | [] | no_license | package com.sty.file.up.download;
import android.content.Context;
import android.os.Bundle;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
imp... | true |
7839f80e7c9a5d16472be51b14d558866500ca5b | Java | Yuyuhan1986/collegeVol | /backend/src/main/java/com/collegevol/vo/EventLikeUserInfoVo.java | UTF-8 | 420 | 1.664063 | 2 | [
"MIT"
] | permissive | package com.collegevol.vo;
import com.collegevol.entity.EventLike;
import lombok.Data;
@Data
public class EventLikeUserInfoVo extends EventLike {
/**
* 班级
*/
private String userClass;
/**
* 学院
*/
private String userSchool;
/**
* 用户头像 头像路径
*/
private String userA... | true |
78cba11d9f918556a5d3c58a83d58aa472e0e2fb | Java | jayluxferro/OBP-SDN | /SDN_java/src/com/sdn/app/CreateFileExample.java | UTF-8 | 1,360 | 3.125 | 3 | [] | no_license | package com.sdn.app;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class CreateFileExample
{
public void test()
{
try {
File file = new File("newfile.txt");
... | true |
096b1bedd7bf95b129c59f5cac688d261c589920 | Java | Taardal/pixelcave | /src/main/java/no/taardal/pixelcave/layer/GameObjectLayer.java | UTF-8 | 917 | 2.5625 | 3 | [] | no_license | package no.taardal.pixelcave.layer;
import no.taardal.pixelcave.gameobject.GameObject;
import no.taardal.pixelcave.order.DrawOrder;
import java.util.List;
public class GameObjectLayer extends Layer {
private List<GameObject> gameObjects;
private DrawOrder drawOrder;
public GameObjectLayer() {
s... | true |
1dd064068cb1b0b4516e217e278d58b90abbe263 | Java | Valaragen/P9-comptabilite | /src/myerp-business/src/test/java/com/dummy/myerp/business/impl/manager/ComptabiliteManagerImplIT.java | UTF-8 | 4,542 | 2.203125 | 2 | [] | no_license | package com.dummy.myerp.business.impl.manager;
import com.dummy.myerp.business.contrat.manager.ComptabiliteManager;
import com.dummy.myerp.model.bean.comptabilite.CompteComptable;
import com.dummy.myerp.model.bean.comptabilite.EcritureComptable;
import com.dummy.myerp.model.bean.comptabilite.JournalComptable;
import c... | true |
cde107a7cc8aac32eee9e65d72e3808a18bbb758 | Java | OuYangLiang/pracbiz-Ntuc-B2B | /src/java/com/pracbiz/b2bportal/core/action/DeliveryOrderAction.java | UTF-8 | 9,876 | 1.867188 | 2 | [] | no_license | //*****************************************************************************
//
// File Name : DeliveryOrder.java
// Date Created : 2012-12-13
// Last Changed By : $Author: LiYong $
// Last Changed On : $Date: 2012-12-13 $
// Revision : $Rev: 15 $
// Description : TODO To fill in a ... | true |