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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
06dcce2f375124a52704d17c4ecb975310f62ac3 | Java | mumo-dev/guest-house-boot | /src/main/java/com/guesthouse/service/email/EmailServiceImpl.java | UTF-8 | 2,749 | 2.109375 | 2 | [] | no_license | package com.guesthouse.service.email;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.ClassPathResource;
import org.spr... | true |
67b2789faee79a7b1aa28ef3c1f4df9715f3596a | Java | ijusto/CondominiumManagerAndroidApp | /app/src/main/java/com/example/condominiummanager/ContactsTenant.java | UTF-8 | 4,049 | 1.945313 | 2 | [] | no_license | package com.example.condominiummanager;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView... | true |
88b95f6ad9cdb8e3743878caf63efcafedccd63f | Java | Siiruo-Wong/test | /src/main/java/com/siiruo/bytecode/modification/TestAddress.java | UTF-8 | 372 | 2.296875 | 2 | [] | no_license | package com.siiruo.bytecode.modification;
import java.util.ArrayList;
import java.util.List;
/**
* Created by siiruo wong on 2020/2/9.
*/
public class TestAddress {
public static void main(String[] args) {
List<String> list=new ArrayList<>();
list.add("123");
list.add("123");
Sys... | true |
0096f0b304a996fbf11e448bf12d430d76f2947d | Java | 1091478765/sell | /src/test/java/com/liulu/sell/service/impl/ProductCategoryServiceImplTest.java | UTF-8 | 1,203 | 1.882813 | 2 | [] | no_license | package com.liulu.sell.service.impl;
import com.liulu.sell.dataobject.ProductCategory;
import com.liulu.sell.service.ProductCategoryService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
im... | true |
35a8c21d442d258af99c472864159b79e0a66dde | Java | dianaCiro/prueba | /src/main/java/dominio/dto/LoginDTO.java | UTF-8 | 415 | 2.578125 | 3 | [] | no_license | package dominio.dto;
public class LoginDTO {
public String usuario;
public String contrasena;
public LoginDTO(){
}
public LoginDTO(String usuario, String contrasena) {
this.usuario = usuario;
this.contrasena = contrasena;
}
public LoginDTO(String usuario) {
this.usuario = usuario;
}
public String getU... | true |
591f9c0bb27ecf735d533e22c19c2cd23c7aff3b | Java | rbreje/OLibrary | /network-module/src/com/breje/network/dto/impl/BookBorrowDTO.java | UTF-8 | 2,388 | 2.328125 | 2 | [] | no_license | package com.breje.network.dto.impl;
import com.breje.common.logging.LibraryLogger;
import com.breje.common.logging.LibraryLoggerType;
import com.breje.network.dto.IBookBorrowDTO;
public class BookBorrowDTO implements IBookBorrowDTO {
/**
*
*/
private static final long serialVersionUID = -2337205588992016080L;... | true |
1510c62a6d5fb3d171254f98aa97bb658193ea86 | Java | wtoribioe/wtoribioe | /WilfridoTestAccount.java | UTF-8 | 8,305 | 3.265625 | 3 | [] | no_license |
package wilfridotestaccount;
import static java.lang.System.exit;
import static java.time.Clock.system;
import java.util.Date;
import java.util.Scanner;
/** This is an extract work from the Assignment #1 Task 9.7 Account class Design*/
/**author Wilfrido Toribio Espinosa */
public class WilfridoTestAccou... | true |
1b322982bd6301aeb5ca83b9c65cb9774af0c191 | Java | diegoloram/tFinalTS3 | /src/States/AcercaDe.java | UTF-8 | 3,294 | 2.640625 | 3 | [] | no_license | package States;
import GameObject.Constantes;
import Graphifs.Recursos;
import Graphifs.Text;
import Math.Vector2D;
import io.JSONParser;
import io.ScoreData;
import java.awt.Color;
import java.awt.Graphics;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Com... | true |
ebe2efb117c37dfd3a238efe30641741283c0b8a | Java | pcmiel/Microblog | /Microblog/src/main/java/org/pcmiel/blog/dao/AuthorityDao.java | UTF-8 | 198 | 1.960938 | 2 | [] | no_license | package org.pcmiel.blog.dao;
import org.pcmiel.blog.entity.Authority;
public interface AuthorityDao {
void addNewAuthority(Authority authority);
Authority getAuthority(String authorityName);
}
| true |
41275753f496bbc12af189743656c7a2f37403df | Java | poddardelhi/Java-Course- | /Assignment4/src/inheritedClass/Spider.java | UTF-8 | 425 | 2.828125 | 3 | [] | no_license | package inheritedClass;
import ee.ttu.oop.*;
public class Spider extends Animal {
public Spider() {
super(0);
// TODO Auto-generated constructor stub
}
@Override
public void eat() {
// TODO Auto-generated method stub
System.out.println("Spider eats insects");
}
@Override
public void walk() {
// T... | true |
84323271ac8ea0df2fd0df28c5356f830c4c0365 | Java | crossoverJie/vjtools | /vjstar/src/test/java/com/vip/vjstar/window/RequestSlidingWindowTest.java | UTF-8 | 3,996 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | package com.vip.vjstar.window;
import org.junit.Test;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.atomic.AtomicInteger;
import static org.assertj.core.api.Assertions.assertThat;
/**
* @author huangyunbin
* test for RequestSlidingWindow... | true |
22afb6cd4b124cc04282514737fc7cd5bc1e816d | Java | nhn/gameanvil.sample-multigame-server | /src/main/java/com/nhn/gameanvil/sample/space/game/match/GamePartyMatchMaker.java | UTF-8 | 5,880 | 2.75 | 3 | [] | no_license | package com.nhn.gameanvil.sample.space.game.match;
import static org.slf4j.LoggerFactory.getLogger;
import com.nhn.gameanvil.node.match.UserMatchMaker;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.slf4j.Logger;
public class... | true |
1c9353151421443724de461e13c5913fec9d3dbc | Java | wxfDesigner/sso | /console-parent/console-api/console-service-api/src/main/java/com/tdh/gps/console/service/api/UserInfoService.java | UTF-8 | 404 | 2 | 2 | [] | no_license | package com.tdh.gps.console.service.api;
import java.util.List;
import com.tdh.gps.console.model.Users;
public interface UserInfoService {
Users findById(long id);
Users findByName(String name);
void saveUser(Users user);
void updateUser(Users user);
void deleteUserById(long id);
List<Users> findAl... | true |
44329ad40bb9d6600bcb3264cd007b4c0e4a9fdd | Java | beaulirl/java_exercises | /exercise5/part2/CarFactory.java | UTF-8 | 456 | 3.203125 | 3 | [] | no_license | package FifthExercise;
/**
* Created by Admin on 09.11.2016.
*/
public class CarFactory {
public Car buildCar(CarType model){
Car car = null;
if(model.equals(CarType.SEDAN)){
car = new SedanCar();
}
else if(model.equals(CarType.WAGON)){
car = new WagonCar()... | true |
8325a3d45f3fa29967aba7c46747c9a357a25d2d | Java | shshaohong/Track | /app/src/main/java/com/sunyie/android/trackdemo/RequestLocation.java | UTF-8 | 274 | 1.835938 | 2 | [] | no_license | package com.sunyie.android.trackdemo;
/**
* Created by yukunlin on 2016/12/12.
*/
public class RequestLocation {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
| true |
588fb3acf9685af72742467825dbe1dbd3ecd267 | Java | zh735652914/java-training | /src/beijing/longestCommonPrefix.java | UTF-8 | 1,256 | 3.171875 | 3 | [] | no_license | package beijing;
/*
https://leetcode-cn.com/problems/longest-common-prefix/
*/
public class longestCommonPrefix {
static class Solution {
public String longestCommonPrefix(String[] strs) {
StringBuilder stringBuilder = new StringBuilder();
int index = 0;
while (true) {
... | true |
11ea6da9a93f6814184d47f1bf54bdfeacce9252 | Java | huangjifan/biyesheji_tourism | /tubaba-web/src/main/java/com/znsd/tubaba/service/impl/AdvertisingClassifyServiceImpl.java | UTF-8 | 1,479 | 2.140625 | 2 | [] | no_license | package com.znsd.tubaba.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.znsd.tubaba.entity.AdvertisingClassify;
import com.znsd.tubaba.mapper.Advertising_classifyMapper;
import com.znsd.tubaba.service.Advert... | true |
76dd334279f8d158dc97e55f54b1012ecff6d78b | Java | joerx/aspectj-demo | /src/main/java/io/yodo/springcourse/aspectjdemo/AspectJDemoConfig.java | UTF-8 | 361 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | package io.yodo.springcourse.aspectjdemo;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
@Configuration
@EnableAspectJAutoProxy
@ComponentScan("io.yodo.springcourse.aspectjd... | true |
a8c9dacb815dfbaab193719e46e5b5909a1653b7 | Java | Procrat/bozels | /src/bozels/game/Model.java | UTF-8 | 1,616 | 2.9375 | 3 | [] | no_license | /* Model.java
* ============================================================
* Copyright (C) 2001-2012 Universiteit Gent
*
* Bijlage bij de cursus 'Programmeren 2'.
*
* Auteur: Kris Coolsaet
*/
package bozels.game;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.swi... | true |
8229cca8ed661a70b409ffdc63a7a1813311cbef | Java | open-telemetry/opentelemetry-java-instrumentation | /instrumentation/ratpack/ratpack-1.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ratpack/TracingHandler.java | UTF-8 | 2,717 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.ratpack;
import static io.opentelemetry.javaagent.instrumentation.ratpack.RatpackSingletons.instrumenter;
import static io.opentelemetry.javaagent.instrumentation.ratpack.RatpackSing... | true |
52e63bacf278d149978408be70771684ff370a42 | Java | DCRUNNN/HotelReservationSystemServer | /src/po/AccountPO.java | ISO-8859-7 | 413 | 2.1875 | 2 | [] | no_license | package po;
/**
* id еı
* password
* */
public class AccountPO {
private String id;
private String password;
public String getId() {
return id;
}
public String getPassword() {
return password;
}
public void setId(String id) {
this.id = id;
}
public void setPassword... | true |
20bce7c68402ec7241465433a606c028c3afc6db | Java | RomanRad/tnews | /app/src/main/java/com/rr/tnews/network/model/News.java | UTF-8 | 809 | 2.1875 | 2 | [] | no_license | package com.rr.tnews.network.model;
import com.google.gson.annotations.SerializedName;
/**
* @author Roman Radko
* @since 1.0
*/
public class News {
@SerializedName("id")
private long mId;
@SerializedName("text")
private String mText;
@SerializedName("publicationDate")
private Date mPubl... | true |
be488b3d8f817c957d19da7cd2f7e64f46642361 | Java | donaldzou/IdeaProjects | /helloworld/src/com/company/error.java | UTF-8 | 221 | 1.859375 | 2 | [] | no_license | package com.company;
import java.util.*;
/**
* Created by Donaldzou on 2017-05-11.
*/
public class error {
public static void main (String[] args){
String longquote = "HELLOOOOO" + "HELLLLLLLLLL";
}
}
| true |
5b41114a522236bbfb0efe56f4f7fa9ef62b1f51 | Java | weizh/geolocator-1.0 | /geo-locator/src/edu/cmu/geoparser/nlp/MisspellParser.java | UTF-8 | 251 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | package edu.cmu.geoparser.nlp;
import java.io.IOException;
import org.apache.lucene.queryParser.ParseException;
import edu.cmu.geoparser.model.Tweet;
public interface MisspellParser {
String parse(String s) throws IOException, ParseException;
}
| true |
a3b91dd57d3d549c4282ee4076afa37c4e7c6850 | Java | JamunaS15/ReadJSONFile | /JSONFileRead/src/main/java/com/example/jsonFileRead/JsonFileReadApplication.java | UTF-8 | 2,963 | 2.359375 | 2 | [] | no_license | package com.example.jsonFileRead;
import java.io.FileReader;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.... | true |
34db2c03d9972bd99c96fa6d291d5eb8985ceac1 | Java | hkeeble/LincolnImpGame | /Advergame/core/src/com/henrik/advergame/components/StateControllerComponent.java | UTF-8 | 485 | 2.609375 | 3 | [] | no_license | package com.henrik.advergame.components;
import com.henrik.advergame.State;
/**
* A controller component that consists of a given state.
*/
public class StateControllerComponent extends ControllerComponent {
protected State currentState;
StateControllerComponent() {
super();
}
public void ... | true |
5463693d212f45cd3833b09c1189d20eae6a8877 | Java | Nishant1999/WhatsApp-Clone | /app/src/main/java/com/example/whatsappclone/fragment/ChatFragment.java | UTF-8 | 5,589 | 2.15625 | 2 | [] | no_license | package com.example.whatsappclone.fragment;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Handler;
import android.util.Log;
import androi... | true |
bb8d25e5c9f04d44b4f6c3dcc15bdb1b4461c53f | Java | pausehyeon/HipBus | /HipBus/src/model/UpcomingDto.java | UTF-8 | 2,192 | 2.109375 | 2 | [] | no_license | package model;
import java.sql.Timestamp;
public class UpcomingDto {
private int num;
private String driver;
private String nick;
private String subject;
private String perf_place;
private Timestamp perf_date;
private String perf_cast;
private int perf_runningtime;
private int perf_price;
priv... | true |
241f9b5d3f1eee27bed31163cea1e73003c07a5b | Java | miao2012crazy/BeautyMall | /app/src/main/java/com/xialan/beautymall/adapter/SelectAddressAdapter.java | UTF-8 | 1,772 | 2.3125 | 2 | [
"Unlicense"
] | permissive | package com.xialan.beautymall.adapter;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xialan.beautymall.R;
import com.xialan.beautymall.bean.AddressBean;
import java.util.Hash... | true |
11e1dde81bca80445bcbd985025b762b09ac8c00 | Java | TobiasGrether/JukeboxMC | /src/main/java/org/jukeboxmc/block/BlockTrappedChest.java | UTF-8 | 2,471 | 2.59375 | 3 | [] | no_license | package org.jukeboxmc.block;
import org.jukeboxmc.block.direction.BlockFace;
import org.jukeboxmc.blockentity.BlockEntityChest;
import org.jukeboxmc.blockentity.BlockEntityType;
import org.jukeboxmc.item.Item;
import org.jukeboxmc.item.ItemTrappedChest;
import org.jukeboxmc.item.type.ItemToolType;
import org.jukeboxmc... | true |
babadde246041aa09800593def0b17676287d938 | Java | santhoshsathish94/dp-projec | /OIMS5/sm-core/src/main/java/com/salesmanager/core/business/merchant/service/MerchantStoreService.java | UTF-8 | 1,003 | 1.9375 | 2 | [] | no_license | package com.salesmanager.core.business.merchant.service;
import java.util.ArrayList;
import java.util.List;
import com.salesmanager.core.business.generic.exception.ServiceException;
import com.salesmanager.core.business.generic.service.SalesManagerEntityService;
import com.salesmanager.core.business.merchant.m... | true |
8c93b0b5494f707f6ba80bb3b18af6b2e55dcb8f | Java | cckmit/cfx | /cfx-cms/src/main/java/cn/cf/dao/SxHomeThirdnavigationExtDao.java | UTF-8 | 435 | 1.59375 | 2 | [] | no_license | package cn.cf.dao;
import java.util.List;
import java.util.Map;
import cn.cf.dto.SxHomeThirdnavigationExtDto;
public interface SxHomeThirdnavigationExtDao extends SxHomeThirdnavigationDao{
int searchExtGridCount(Map<String, Object> map);
List<SxHomeThirdnavigationExtDto> searchExtGrid(Map<String, Object> map);... | true |
21d1d36f27f41cb8a1a60c721ad68c811d0a7851 | Java | todorpashkulov/GeneralaGame | /src/generala/constants/GeneralaConstants.java | UTF-8 | 289 | 1.71875 | 2 | [] | no_license | package generala.constants;
public final class GeneralaConstants {
public static final int PAIR = 2;
public static final int TRIPLE = 3;
public static final int FOUR_OF_A_KIND = 4;
public static final int STRAIGHT = 5;
public static final int TWO_DUPLICATES = 2;
}
| true |
5bdb611de4330aeca8f86458c943801eb3bd0846 | Java | McDowellRobotics63/final.oldRobo.code | /OfficialRobotCode2017_LastDitch/src/org/usfirst/frc/team63/robot/util/DriveVelocity.java | UTF-8 | 457 | 2.390625 | 2 | [] | no_license | package org.usfirst.frc.team63.robot.util;
public class DriveVelocity {
public double left_front;
public double left_rear;
public double right_front;
public double right_rear;
public DriveVelocity(double left_front, double left_rear, double right_front, double right_rear) {
this.left_front... | true |
fa0ac18323b2b1f8070b182ba11dd5eef0588952 | Java | vamsikpaladugu/Popular-Movies | /app/src/main/java/com/vamsi/popularmovies/Globals.java | UTF-8 | 1,290 | 2.203125 | 2 | [] | no_license | package com.vamsi.popularmovies;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
* Created by Vamsi on 03-08-2016.
*/
public class Globals {
public static String apiKey = ""; //replace with your own
public static String baseImageUrl = "http://ima... | true |
cd3caafd23babf18eff4c6305feaccd85ac64a49 | Java | gckanth/CMS_FileNet_Revamp | /src/main/java/com/cms/edrm/filenet/util/ResourceLoader.java | UTF-8 | 2,604 | 2.890625 | 3 | [] | no_license | package com.cms.edrm.filenet.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ResourceLoader
{
/** static instance of the class */
public static ResourceLoader _instance = null;
private ... | true |
5e3b4379cd5f7c84b2ee6279d97d63a833b96d68 | Java | Chprakash/BusiReg | /src/main/java/com/prakash/busi/dao/BusinessSRCDAO.java | UTF-8 | 296 | 1.882813 | 2 | [] | no_license | package com.prakash.busi.dao;
import com.prakash.busi.model.TBusinesssrc;
public interface BusinessSRCDAO {
public TBusinesssrc getBusinessSrcByID(Long id);
public TBusinesssrc saveBusinessSrc(TBusinesssrc tBusinesssrc);
public TBusinesssrc updateBusinessSrc(TBusinesssrc TBusinesssrc);
} | true |
844d9b81726816b1c4ddc519a5a4a53f0a65b378 | Java | raseht/plmkii | /ProjectLServer/src/com/idg/plserver/StdErrLogger.java | UTF-8 | 579 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.idg.plserver;
/**
*
* @author bhahn
*/
public class StdErrLogger extends Logger {
private static StdErrLogger instance;
public static void createInstance() {
if(instance==null) insta... | true |
33deef2442f1e9b7ee7375ad190f41f27d48c856 | Java | slandery/d5javaoopnotes | /src/main/java/Main.java | UTF-8 | 671 | 3.53125 | 4 | [] | no_license | import polymorphism.Shape;
import polymorphism.Square;
public class Main {
public static void main(String[] args){
//new instance of an object"pasta"
Pasta pasta = new Pasta("elbow", "wheat", true);
//getters are the ideal sense of encapsulation
System.out.println(pasta.getShape());... | true |
dc12b2b4984da4e5f82772c0790b7519b81176c4 | Java | junjiex123/Gank | /recycle/activity/SimpleMeiZhiActivity.java | UTF-8 | 5,733 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | package com.github.xiaofei_dev.gank.ui.activity;
import android.Manifest;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import an... | true |
adc43c38b62ebb750c797217ba346c992ce3320f | Java | victor-pg/solitaire | /app/src/main/java/de/tobiasbielefeld/solitaire/games/Yukon.java | UTF-8 | 9,113 | 2.421875 | 2 | [] | no_license | /*
* Copyright (C) 2016 Tobias Bielefeld
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the h... | true |
882efd26e1e7e088f05d312ddbf310b770bc79f8 | Java | openNaEF/openNaEF | /subprojects/opennaef.devicedriver.core/src/main/java/voss/model/SerialPort.java | UTF-8 | 158 | 1.570313 | 2 | [
"Apache-2.0"
] | permissive | package voss.model;
public interface SerialPort extends LogicalPort, FeatureCapability {
boolean isAsyncMode();
void setAsyncMode(boolean async);
} | true |
a36f1ddee171b18e52b7acbe3a45fb49c7af749f | Java | clanout/core-application | /modules/location/src/main/java/com/clanout/application/module/location/domain/service/LocationService.java | UTF-8 | 1,951 | 2.46875 | 2 | [] | no_license | package com.clanout.application.module.location.domain.service;
import com.clanout.application.framework.di.ModuleScope;
import com.clanout.application.library.util.common.CollectionUtils;
import com.clanout.application.module.location.domain.model.LocationZone;
import com.clanout.application.module.location.domain.re... | true |
d8578e7abb7d3c09af3ae0dd86c57882e754b1ab | Java | Leo-Mun/CS | /Java/OOP/D_9_27.java | UHC | 1,414 | 3.5 | 4 | [] | no_license | public class D_9_27 {
public static void main(String[] args) {
/*
int num1 = 10;
int num2 = 10;
boolean compareEq = (num1 == num2);
boolean compareNotEq = (num1 != num2);
boolean compareLessThan = (num1 <= num2);
System.out.println("compareEq = " + compareEq);
System.out.println("compareNotEq = " +... | true |
526105d7481e6d15b6c05b888bea04f6fd1acc5b | Java | sunqinbo/qq-login-api | /src/main/java/com/qq/connect/javabeans/weibo/FansIdolsBean.java | UTF-8 | 5,295 | 2 | 2 | [] | no_license | /*
* Decompiled with CFR 0_118.
*/
package com.qq.connect.javabeans.weibo;
import com.qq.connect.QQConnectException;
import com.qq.connect.QQConnectResponse;
import com.qq.connect.javabeans.Avatar;
import com.qq.connect.javabeans.weibo.SimpleTweetInfo;
import com.qq.connect.javabeans.weibo.SingleFanIdolBean;
import ... | true |
2af8ba3b16e7bacde1b1ea510722e523ab0ef366 | Java | 15974219211/lyjStudy | /study-consumer/src/main/java/com/my/study/rabbitmq/Consumer.java | UTF-8 | 469 | 2 | 2 | [] | no_license | package com.my.study.rabbitmq;
import com.my.study.entity.ConsultContent;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.stereotype.Component;
@Component
public class Consumer {
@StreamListener(Sink.INPUT)
... | true |
5826d4bfb86b44acd4d62d31c2b46c9fc19c3f1f | Java | robot-aquila/aquila | /quik/src/main/java/ru/prolib/aquila/quik/api/QUIKMainHandler.java | UTF-8 | 776 | 2.0625 | 2 | [] | no_license | package ru.prolib.aquila.quik.api;
import ru.prolib.aquila.t2q.*;
/**
* Интерфейс базового обработчика данных QUIK API.
*/
public interface QUIKMainHandler {
/**
* Обработать смену статуса подключения.
* <p>
* @param status текущий статус подключения
*/
public void connectionStatus(T2QConnS... | true |
d7c643c532f29ead8f8d4f79eafd963fc835ec71 | Java | JAVACAFE-STUDY/oop-start-with-java | /week09/src/test/java/net/chandol/study/oop/customer/CustomerIntegrationTest.java | UTF-8 | 1,664 | 2.171875 | 2 | [] | no_license | package net.chandol.study.oop.customer;
import net.chandol.study.oop.infra.EmailService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.... | true |
9a0de9b9216c2674b860308c6b1f38ec3a5e090d | Java | DhanushaPerera07/TimeTableGenaratorDesktopApplication-JavaFX-MySQL-New | /src/TimeTableGeneratorDesktopApp/DatabaseHelper/StudentBatchesDatabaseHelper.java | UTF-8 | 3,671 | 2.671875 | 3 | [] | no_license | package TimeTableGeneratorDesktopApp.DatabaseHelper;
import TimeTableGeneratorDesktopApp.StudentBatches.StudentBatches;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
pu... | true |
af77471d8823048bd5c7bf0e7f486e5c60979e69 | Java | patrickeharris/PokeCore | /src/core/listeners/PlayerInteractEntity.java | UTF-8 | 1,905 | 2.296875 | 2 | [
"MIT"
] | permissive | package core.listeners;
import org.bukkit.craftbukkit.v1_8_R1.entity.CraftEntity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerInteractEntityEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.pot... | true |
c65280356d8b27e5dfccd4d19781ae79af3f9180 | Java | lnrajput/ms-ops-model | /auth-service/src/main/java/com/acc/ms/support/AuthServiceApplication.java | UTF-8 | 1,248 | 1.9375 | 2 | [] | no_license | package com.acc.ms.support;
import java.security.Principal;
import javax.net.ssl.HttpsURLConnection;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.oau... | true |
ca806fd8d2ae845c6fdb0e5b0ffca0c789f71992 | Java | oidwuhaihua/firefly | /firefly-template/src/main/java/com/firefly/template/Config.java | UTF-8 | 1,544 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package com.firefly.template;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.net.URL;
public class Config {
private static Logger log = LoggerFactory.getLogger("firefly-system");
private String viewPath;
private String compiledPath;
private String suffix = "html";
pr... | true |
9cc0aaef6003b269dc3a8ed8f28737e415f6c031 | Java | dechrist1/blackjack-simulator | /src/test/java/com/grosserhund/blackjack/elements/ShoeTest.java | UTF-8 | 948 | 2.9375 | 3 | [] | no_license | package com.grosserhund.blackjack.elements;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ShoeTest {
private final int decks = 8;
private final int cutLevel = 75;
private Shoe sh... | true |
36e58b35e40486260f646e06c55e3a2cd659f613 | Java | Miriam-use/PROYECTOS | /Subastas/src/subasta/Subasta.java | ISO-8859-1 | 5,853 | 3.265625 | 3 | [] | no_license | package subasta;
import java.time.LocalTime;
import java.util.LinkedList;
import java.util.List;
import subasta.Usuarios;
import subasta.Puja;
/**
* La subasta representa un producto por el que se puede pujar.
*
* @author JoseRuso
* @author Juan
* @author Miriam
*
*/
public class Subasta {
... | true |
bef53e758ebe1003d8680aebed31d8b69225d7f4 | Java | ellyseong/WithMessenger | /src/client/ConnManager.java | UHC | 8,733 | 2.828125 | 3 | [] | no_license | package client;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.net.Socket;
import javax.swing.JOptionPane;
import member.MemberDTO;
public class ConnManager implements Runnable {
private Socket sock;
private DataOutputStream dos;
private DataInputStream dis;
private... | true |
ca500aae9fcba37a50129d776985e87d96f64da7 | Java | aliyun/aliyun-openapi-java-sdk | /aliyun-java-sdk-vcs/src/main/java/com/aliyuncs/vcs/model/v20200515/CreateAIInstanceRequest.java | UTF-8 | 6,267 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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, software
* distributed u... | true |
deb7aafeb93e92552bc4bc25062382f91664fe74 | Java | nomoren/API | /src/threadpool/ThreadPoolDemo.java | GB18030 | 1,123 | 3.859375 | 4 | [] | no_license | package threadpool;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* ̳߳
* ã
* 1.߳
* 2.߳
* @author admin
*
*/
public class ThreadPoolDemo {
public static void main(String[] args) {
ExecutorService threadpool=Executors.newFixedThreadPool(2);
for(int i=0;i<5;i++){
... | true |
8c341f8dfd79685f75c83b0b0ea954f0af831707 | Java | qiuwei/drzug | /src/main/java/es/qiu/drzug/service/mapper/PacketItemMapper.java | UTF-8 | 818 | 2.328125 | 2 | [] | no_license | package es.qiu.drzug.service.mapper;
import es.qiu.drzug.domain.*;
import es.qiu.drzug.service.dto.PacketItemDTO;
import org.mapstruct.*;
import java.util.UUID;
/**
* Mapper for the entity PacketItem and its DTO PacketItemDTO.
*/
@Mapper(componentModel = "spring", uses = {PacketMapper.class, })
public interface Pa... | true |
253126b14cdf6552fb5b0a24a781597e646bc473 | Java | Nureke-hub/JavaEE | /HomeTask_3_second/src/servlets/GetCitiesServlet.java | UTF-8 | 2,487 | 2.546875 | 3 | [] | no_license | package servlets;
import db.classes.League;
import db.managers.DBManager;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
i... | true |
73e34be5438e663cf3a73557e4d5ac931e0abdfa | Java | zhenhua-cai/Steven-Websites | /stevenblog-version-2.0/backend/src/main/java/net/stevencai/blog/backend/service/VerificationTokenService.java | UTF-8 | 397 | 1.789063 | 2 | [] | no_license | package net.stevencai.blog.backend.service;
import net.stevencai.blog.backend.entity.VerificationToken;
public interface VerificationTokenService {
void saveNewToken(String username, String verificationCode);
VerificationToken getVerificationToken(String username);
void VerifiedEmail(String username);
... | true |
304a76d2fc2728608c523e936b2b4108ceb18dfa | Java | rcoolboy/guilvN | /app/src/main/java/com/p118pd/sdk/C8564oo00oO0O.java | UTF-8 | 1,860 | 2.09375 | 2 | [] | no_license | package com.p118pd.sdk;
import java.util.List;
/* renamed from: com.pd.sdk.oo00oO0O reason: case insensitive filesystem */
public class C8564oo00oO0O {
public String OooO00o;
/* renamed from: OooO00o reason: collision with other field name */
public List<C8563oo00oO0> f21671OooO00o;
public String O... | true |
ec2200b28cc5796cc229d5939ddbff1aff3d4cf8 | Java | portalCMS/xjw | /com-gameportal-admin/src/main/java/com/gameportal/manage/system/model/SystemUserRole.java | UTF-8 | 2,396 | 2.25 | 2 | [] | no_license | package com.gameportal.manage.system.model;
import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
public class SystemUserRole extends BaseEntity {
// alias
public static fin... | true |
c1e76055dbc0f795ad4f00f05d76813ffc881e32 | Java | phamthephuc/bookshop | /src/controller/AdminOrderController.java | UTF-8 | 4,702 | 2.03125 | 2 | [] | no_license | package controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import... | true |
bfb576481803f55a831b307e5de4ec662d24991a | Java | youneskasri/JavaEE-Courses | /design-patterns/Observer/Customer.java | UTF-8 | 66 | 1.59375 | 2 | [] | no_license | public class Customer {
@Getter @Setter
private String name;
}
| true |
fdf3a09f16e5484caadfa3f3262078be761afe04 | Java | bitmansofthu/npz-test | /app/src/main/java/hu/docler/pizzaorder/util/PicassoHelper.java | UTF-8 | 1,193 | 2.421875 | 2 | [] | no_license | package hu.docler.pizzaorder.util;
import android.content.Context;
import android.net.Uri;
import android.util.Log;
import android.widget.ImageView;
import com.squareup.picasso.Picasso;
/**
* Created by aquajava on 2018. 04. 08..
*/
public class PicassoHelper {
static final String TAG = "PicassoHelper";
... | true |
5024b41e2e1ca3b2b83c5ec2e44bd49ed7552daf | Java | jsmithr/practice-customer | /customer-service/src/main/java/pragma/customerservice/service/impl/CityImpl.java | UTF-8 | 1,375 | 2.4375 | 2 | [] | no_license | package pragma.customerservice.service.impl;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import pragma.customerservice.entity.City;
import pragma.customerservice.repository.CityReposi... | true |
e34e980a32ff3c8ed77317c0f17b68cebb002291 | Java | ravatna/Projectth2010 | /Android/X8Put/app/src/main/java/com/tyche/mobile/susco/App.java | UTF-8 | 670 | 1.71875 | 2 | [] | no_license | package com.tyche.mobile.susco;
import org.json.JSONArray;
import org.json.JSONObject;
/**
* Created by Vinit on 24/5/2560.
*/
public class App {
static private App object;
JSONObject loginObject;
JSONObject customerMember;
JSONArray transactionDialies;
JSONArray redeemTransactions;
JSONA... | true |
20c54cf0347965123e814ca51b7511ea3bf6ff4a | Java | JuleeMishra/Java | /JavaCodeJuleeV0/InstBlock.java | UTF-8 | 283 | 2.890625 | 3 | [] | no_license | // Instance block will run first then constructor will execute
public class InstBlock {
InstBlock(){
System.out.println("0-arg constructor execution");
}
{
System.out.println("Instance block execution");
}
public static void main(String[] args) {
new InstBlock();
}
}
| true |
08952b6650d96a24d445059445873338270f3c22 | Java | seniorQAautomationEngineer/hello | /src/main/java/com/hellosign/pages/DocumentEditMode.java | UTF-8 | 5,118 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.hellosign.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import com.hellosign.u... | true |
9dd32c20c8e96f1f0f573edbf54550fdc48db87d | Java | iremuznbz/24-Istanbul-Client | /src/killerapp/istanbul24/MainActivity.java | UTF-8 | 3,983 | 2.40625 | 2 | [] | no_license | package killerapp.istanbul24;
import java.util.ArrayList;
import killerapp.istanbul24.db.Venue;
import org.mapsforge.core.model.GeoPoint;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPrefe... | true |
d0c87f3d485785eb5d817704d9f127155d18d440 | Java | MichalBreskovic/warehouse | /warehouse/src/main/java/warehouse/storage/UmiestnenieDao.java | WINDOWS-1250 | 997 | 2.375 | 2 | [
"MIT"
] | permissive | package warehouse.storage;
import java.util.List;
import java.util.Stack;
public interface UmiestnenieDao {
List<Umiestnenie> getAll(); // vype vetko vo vetkch skladoch
List<Umiestnenie> hladaj(Tovar tovar) throws NullPointerException; // vyhadva poda druhu tovaru vo vetkch skladoch
List<Umiestnenie> vypisSklad... | true |
73f95aa8cc91204223829f6191459eae70c9a7bd | Java | rcc-107/HowToStudyKorean | /app/src/main/java/com/ridev/howtostudykorean/fragments/WordsFragment.java | UTF-8 | 5,466 | 2.15625 | 2 | [] | no_license | package com.ridev.howtostudykorean.fragments;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.LinearLayoutMana... | true |
613220c677b3d5727ac693b783307caa1d790ecb | Java | FudanYuan2019/i-learning | /i-design-pattern/src/main/java/mediator/AbstractChatRoom.java | UTF-8 | 443 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | package mediator;
import java.util.ArrayList;
import java.util.List;
/**
* @Author: Jeremy
* @Date: 2020/9/12 16:28
*/
public abstract class AbstractChatRoom {
protected List<Member> memberList;
public AbstractChatRoom() {
this.memberList = new ArrayList<>();
}
public void register(Member... | true |
e1a72439aaad9be581db80148713eb14f342ef1a | Java | ali-mayun/threadPool | /ThreadPoolProject/src/com/ty/test/ThreadPoolExecutorTest.java | UTF-8 | 485 | 2.4375 | 2 | [] | no_license | package com.ty.test;
import com.ty.executor.ThreadPoolExecutor;
import com.ty.task.Task;
public class ThreadPoolExecutorTest {
public static void main(String[] args) throws InterruptedException {
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(3);
for(int i = 0; i < 10; i++) {
... | true |
63f5c11e5d166f633f02d10d183dfed19d192c0f | Java | deydebraj/Java | /MissingNumberbetween1to100.java | UTF-8 | 549 | 3.4375 | 3 | [] | no_license | public class MissingNumberbetween1to100 {
public static void main(String[] args) {
Sample(new int[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10},10);
}
static void Sample(int[] arr,int n) {
int ExpSum= n*(n+1)/2;
int ActualSum=0;
for(int i=0;i<arr.length;i++) {
ActualSum=ActualSum+arr[i];
}
Sys... | true |
f0cddb239b3a5c5c406db7ab00835530cd05fad4 | Java | wadec4615/decompiler | /src/main/java/com/oci/wade/decompiler/instruction/POP2.java | UTF-8 | 327 | 1.984375 | 2 | [] | no_license | package com.oci.wade.decompiler.instruction;
import com.oci.wade.decompiler.constants.Opcode;
import com.oci.wade.decompiler.generic.PopInstruction;
import com.oci.wade.decompiler.generic.StackInstruction;
public class POP2 extends StackInstruction implements PopInstruction {
public POP2() {
super(Opcode.POP2);... | true |
53b811346881e2ffa673152ddd621c5cf9788405 | Java | mzazon/tps-servlet | /src/com/CSE769/servlet/UserLoginServlet.java | UTF-8 | 2,430 | 2.828125 | 3 | [] | no_license | package com.CSE769.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespons... | true |
cc353e5a618c7a52a818ebd033020a01595df54b | Java | szdengl/mimiduo-parent | /mimiduo-manager/mimiduo-manager-pojo/src/main/java/net/mimiduo/boot/pojo/business/Attribute.java | UTF-8 | 804 | 2.125 | 2 | [] | no_license | package net.mimiduo.boot.pojo.business;
import net.mimiduo.boot.pojo.common.IdEntity;
import javax.persistence.Cacheable;
import javax.persistence.Entity;
import javax.persistence.Table;
/***
* 属性
*/
@Entity
@Table(name = Attribute.TABLE_NAME)
@Cacheable
public class Attribute extends IdEntity {
/**
*
... | true |
cbcd3c5d0b02a3209f6c7209855aaaab41588ad0 | Java | Lzchaochao/OS | /src/progress/test/Main.java | UTF-8 | 1,358 | 3.046875 | 3 | [] | no_license | package progress.test;
import java.util.Scanner;
import device.obj.Device;
import progress.obj.OutPutThread;
import progress.obj.PCB;
public class Main {
public static void main(String[] args) {
OutPutThread out = new OutPutThread();
out.start();
while (true) {
System.out.prin... | true |
140919d001f4932e670f9f2753c43bae41d95d8d | Java | MoritzTheile/com.audeering.sensminer | /app/src/main/java/com/audeering/sensminer/model/situation/Situation.java | UTF-8 | 1,433 | 2.5 | 2 | [] | no_license | package com.audeering.sensminer.model.situation;
import com.audeering.sensminer.model.abstr.AbstrDTO;
public class Situation extends AbstrDTO implements Comparable<Situation> {
private long lastUsageTimestamp;
private String name;
private String auxiliary;
private String activity;
private String environme... | true |
a30c1521bc1ef636b0570929f3c5ffc2de6162b2 | Java | B-Rich/crypto | /org.jcryptool.analysis.kegver.tests/src/org/jcryptool/analysis/kegver/test/TestJCTXEuclid.java | UTF-8 | 1,723 | 2.171875 | 2 | [] | no_license | // -----BEGIN DISCLAIMER-----
/*******************************************************************************
* Copyright (c) 2011 JCrypTool Team and Contributors
*
* All rights reserved. This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accom... | true |
d4ca1b395ce60708dbdfcbe83283cc658dbd48fd | Java | thrakt/TwistFeed | /src/org/thrakt/twistfeed/meta/IdUpdatedModelMeta.java | UTF-8 | 5,971 | 1.976563 | 2 | [] | no_license | package org.thrakt.twistfeed.meta;
//@javax.annotation.Generated(value = { "slim3-gen", "@VERSION@" }, date = "2013-03-04 23:38:22")
/** */
public final class IdUpdatedModelMeta extends org.slim3.datastore.ModelMeta<org.thrakt.twistfeed.model.IdUpdatedModel> {
/** */
public final org.slim3.datastore.CoreAttri... | true |
50d66e7a4464280325bc1f540b3acebd31f9517f | Java | StartAmazing/DesignPattern | /src/main/java/com/ll/designpattern/strategy/v2/BiteAttack.java | UTF-8 | 175 | 2.59375 | 3 | [] | no_license | package com.ll.designpattern.strategy.v2;
public class BiteAttack implements AttackAble{
@Override
public void attack() {
System.out.println("咬.");
}
}
| true |
37e9b70b6f554790176f2e41d6de6c89d1445b41 | Java | alejandromagnorsky/tpepdc | /test/TestStatistics.java | UTF-8 | 1,496 | 2.796875 | 3 | [] | no_license | import junit.framework.TestCase;
import model.User;
import org.junit.Test;
import statistics.Statistics;
public class TestStatistics extends TestCase {
@Test
public void testAccess(){
User user1 = new User("user1");
User user2 = new User("user2");
Statistics.addAccess(user1);
Statistics.addAccess(user... | true |
a4782bbdef8b98addf876cd00e2bfae116c5dd4c | Java | FrancielePenkal/Teste-projeto | /src/model/entity/people/Usuario.java | UTF-8 | 464 | 2.109375 | 2 | [] | no_license | package model.entity.people;
import model.entity.address.Endereco;
import model.entity.contact.Contato;
public class Usuario {
private Contato contato;
private Endereco endereco;
//private
public Contato getContato() {
return contato;
}
public void setContato(Contato contato) {
this.contato = contat... | true |
468ed9016cbec4e06ca8395e7807eb7dd4c44da3 | Java | pilar2596/Ejecicios2ev | /src/Palindromo.java | UTF-8 | 1,009 | 3.390625 | 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.
*/
/**
*
* @author pilar
*/
public class Palindromo {
static String palindromo2 = "dabale arroz a la zorra el... | true |
183c7a647f57549c29df4c55239dd5aae5fa4577 | Java | arysheva/java-webdriver-cucumber | /src/test/java/pages/usps/UspsByAddressResult.java | UTF-8 | 855 | 1.960938 | 2 | [
"MIT"
] | permissive | package pages.usps;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.ExpectedConditions;
import java.util.List;
import static support.TestContext.getWait;
public class UspsByAddressResult extends UspsHeader {
@FindBy(id = "zipByAddressDiv")... | true |
eafc5c019bc07b7902ba76a904e2d55441cfc740 | Java | volartem/java-react-examples | /src/main/java/art/dev/repository/ArticleRepository.java | UTF-8 | 546 | 2.046875 | 2 | [] | no_license | package art.dev.repository;
import art.dev.domain.Article;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Spring Data repository for the Article entity.
*/
@SuppressWarnings("unused")
@Repository
public interface ArticleRepository ... | true |
ba895ce2addef109f6269446e4cb4142860fb813 | Java | EdeysonGomes/menthor-editor | /net.menthor.editor/src/org/tinyuml/draw/DrawingContextImpl.java | UTF-8 | 6,812 | 2.8125 | 3 | [
"MIT"
] | permissive | package org.tinyuml.draw;
/**
* Copyright 2007 Wei-ju Wu
*
* This file is part of TinyUML.
*
* TinyUML is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (... | true |
f9b0d7237d7636282e809fc0fbfe1d2d4a5269e9 | Java | simonvar/compilers | /src/io/github/simonvar/postfix/Parser.java | UTF-8 | 1,091 | 3.34375 | 3 | [] | no_license | package io.github.simonvar.postfix;
public class Parser {
private String text;
private int index = 0;
private int lookahead;
Parser(String text) {
this.text = text;
lookahead = next();
}
void parse() {
expr();
}
private void expr() {
term();
w... | true |
5339128410d1ff97273dcaa6a1c420e60dfe53e3 | Java | brandonthecraig/bcsyn | /src/main/java/com/firstcateringlimited/bowsapi/responses/EndSessionResponse.java | UTF-8 | 315 | 2.15625 | 2 | [] | no_license | package com.firstcateringlimited.bowsapi.responses;
import lombok.Data;
@Data
public class EndSessionResponse {
private boolean endSession;
private String exitMessage;
public EndSessionResponse() {
endSession = true;
exitMessage = "You are now exiting the session. Goodbye";
}
}
| true |
8e5f0bcabcd991277597218b07b17fdac5e401d7 | Java | nkher/My-Programming | /Algorithms/src/Graphs/Dijkstra/DijkstraAdjMatrix.java | UTF-8 | 2,315 | 3.8125 | 4 | [] | no_license | package Graphs.Dijkstra;
public class DijkstraAdjMatrix {
private final int vertices = 9;
//Function to find the vertex with the minimum distance value
//from the current vertex which is not included in the Set
public int extractMinDistance(int queue[], boolean set[]){
int min=Integer.MAX_VALUE;
... | true |
915252eb0fb5b2cd46e52737ff26114b97905907 | Java | GuofengBai/teamwork | /LCMS/Client/src/main/java/org/businesslogicservice/commodityblservice/CommodityBLService.java | UTF-8 | 527 | 1.695313 | 2 | [] | no_license | package org.businesslogicservice.commodityblservice;
import org.po.ResultMessage;
import java.rmi.RemoteException;
public interface CommodityBLService {
boolean Commodityinable = true;
/**
*
* @param centerNum
* @return ResultMessage
* @throws RemoteException
*/
public ResultMessage addCenter(String cen... | true |
8c0b9c259dbab50a596fb521f9bc6a2a4e1a2b3c | Java | NELSON1994/CMA-PROJECT | /src/main/java/com/cma/cmaproject/service/ProcedureService.java | UTF-8 | 14,937 | 1.976563 | 2 | [] | no_license | package com.cma.cmaproject.service;
import com.cma.cmaproject.constants.Constants;
import com.cma.cmaproject.dao.ProcedureDao;
import com.cma.cmaproject.model.Company;
import com.cma.cmaproject.model.OveralRiskDescription;
import com.cma.cmaproject.model.Procedures;
import com.cma.cmaproject.model.RiskProfile;
import ... | true |
4138d9dafaa2590adfcd1173aa76b62e3dac873a | Java | MatioYoshitoki/findKids | /FindKidsServer/src/main/java/com/matio/pojo/Event.java | UTF-8 | 1,018 | 2.015625 | 2 | [] | no_license | package com.matio.pojo;
import java.util.Date;
public class Event {
private Integer eventId;
private String userId;
private Integer eventDetail;
private String eventTarget;
private Date eventTime;
public Integer getEventId() {
return eventId;
}
public void setEventId(Inte... | true |
2f3ab297838a786bc0e2f54508d7ec7c2cf50577 | Java | karanmurthy7/algorithms-practice | /leetcode/problems/ReverseInteger.java | UTF-8 | 984 | 4.25 | 4 | [] | no_license | package leetcode.problems;
/*
* Reverse digits of an integer.
*
* Example1: x = 123, return 321
* Example2: x = -123, return -321
*
* The input is assumed to be a 32-bit signed integer.
* Function should return 0 when the reversed integer overflows.
*/
public class ReverseInteger {
public stat... | true |
532669ba0f5ad3f85f59d5838232f6af23b4d809 | Java | sahani836/ActiTime_MAIN | /src/com/actitime/pageObjects/EditCustomerInfoPage.java | UTF-8 | 573 | 2.015625 | 2 | [] | no_license | package com.actitime.pageObjects;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class EditCustomerInfoPage {
@FindBy(css="input[value='Delete This Customer']")
private WebElement deleteTh... | true |
9fb6b4e2abfdb3be5e000f1a452e285b616c7d54 | Java | bsngardner/cs240-familymapserver | /src/edu/byu/broderick/fmserver/main/database/Database.java | UTF-8 | 12,643 | 2.71875 | 3 | [] | no_license | package edu.byu.broderick.fmserver.main.database;
import java.io.File;
import java.sql.*;
import java.util.*;
/**
* Class containing database helper code to be accessed by DAOs when issuing commands to the database
*
* @author Broderick Gardner
*/
public class Database {
private final String CREATE_USERS_TAB... | true |
bc1d3a0096296771734fa80f5f6a39ad742981cf | Java | EgorMIt/JavaLab8 | /Client/src/ClientFullPack/Screens_Controllers/AuthController.java | UTF-8 | 5,733 | 2.359375 | 2 | [] | no_license | package ClientFullPack.Screens_Controllers;
import ClientFullPack.RunClient;
import ClientFullPack.connection.Network;
import io.Message;
import io.User;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent... | true |
4b3b885d370c869012cd96baf5699d244ddbe594 | Java | TokyoQ/ProjectEulerJava | /Problem20/Driver.java | UTF-8 | 785 | 3.796875 | 4 | [] | no_license | import java.text.DecimalFormat;
import java.math.BigInteger;
/*
* Find the sum of the digits in the number 100!
*/
public class Driver {
public static void main(String[] args) throws Exception {
BigInteger result = fact(100);
String resultStr = result.toString();
System.out.println("100! = " + resultStr)... | true |