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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3900686e4ca7944e0f9899d0905f84f3cb4b53bc | Java | Tribuo/tribuo-Backend | /src/main/java/com/tribuo/backend/services/implementators/EspecificoServicesImpl.java | UTF-8 | 1,157 | 2.125 | 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.tribuo.backend.services.implementators;
import com.tribuo.backend.jpa.Especificos;
import com.tribuo.backend.repositories.... | true |
011e0b229ef993b1e37ec31b144c54047c29b70d | Java | AlicefoxSTR/Siaod | /LR4_SIAOD/src/com/company/Task6.java | UTF-8 | 1,907 | 3.796875 | 4 | [] | no_license | package com.company;
//Дан файл из символов. Используя стек, за один просмотр файла напечатать
//сначала все цифры, затем все буквы, и, наконец, все остальные символы, сохраняя
//исходный порядок в каждой группе символов
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOEx... | true |
3fac149a4de536b28c8a030576b825736d1d8773 | Java | pschuette22/Zeppa-Android | /app/src/main/java/com/minook/zeppa/Constants.java | UTF-8 | 4,813 | 1.914063 | 2 | [] | no_license | package com.minook.zeppa;
public class Constants {
/*
* Software versions. Update with release in form:
* <version>.<update>.<bugfix>
*/
public static final int VERSION_CODE = 1;
public static final int UPDATE_CODE = 2;
public static final int BUGFIX_CODE = 1;
public static final String APP_RELEASE_CODE ... | true |
19337bbf61172a29cd9f96083c7ed5eed7142495 | Java | MagicQTQ/lagouEdu | /edu-course-boot/edu-course-impl/src/main/java/com/lagou/edu/course/mapper/SectionMapper.java | UTF-8 | 286 | 1.601563 | 2 | [] | no_license | package com.lagou.edu.course.mapper;
import com.lagou.edu.course.entity.po.Section;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author leo
* @since 2020-06-17
*/
public interface SectionMapper extends BaseMapper<Section> {
}
| true |
6c000f50a142f92600dbda5e8678d112c6ce38e1 | Java | anutech2001/micro | /paymentgw/src/main/java/com/ktb/payment/paymentgw/PaymentGatewayService.java | UTF-8 | 1,646 | 2.265625 | 2 | [] | no_license | package com.ktb.payment.paymentgw;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.Connection;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.rabbitmq.client.AMQP;
import com.rabbitmq.client.Chann... | true |
242fc7b801839e6e58740d8a08254e3b6de4e6a2 | Java | cable5881/algorithm | /src/com/lqb/ctci/RemoveNode.java | UTF-8 | 616 | 3.28125 | 3 | [
"MIT"
] | permissive | package com.lqb.ctci;
/**
* 实现一个算法,删除单向链表中间的某个结点,假定你只能访问该结点。
* 给定带删除的节点,请执行删除操作,若该节点为尾节点,返回false,否则返回true
*/
import com.lqb.util.ListNode;
public class RemoveNode {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
public boolean removeNode(ListNode pNode) {
if(pNode == null |... | true |
a7c20652a31df4139ccab290040b6129badaa6f5 | Java | chdmitr2/20554-Advanced-Programming-with-Java- | /Maman15/Question1/Threads.java | UTF-8 | 4,263 | 3.78125 | 4 | [] | no_license | package threadtest;
/**
* Class Threads class have a constructors one of them built a current thread
* and change his value if need and second constructor built array list of all
* threads.Have a methods by shutdowns of executor then work current thread and
* update his value and refresh output
*
* @auth... | true |
434a8567f12c962a618bcfafa083cb6dbf9accd9 | Java | apache/servicecomb-java-chassis | /core/src/test/java/org/apache/servicecomb/core/executor/TestThreadPoolExecutorEx.java | UTF-8 | 5,845 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
5450d3a8f6cb0d213b87e1714ca1e9ef7f5c0f02 | Java | Machaux/Module-Spring | /TP/TP5/src/test/java/com/bankonet/test/Test_TP2.java | UTF-8 | 788 | 1.992188 | 2 | [] | no_license | package com.bankonet.test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.bankonet.metier.ReportService;
public class Test_TP2 {
public static void main (String[] args) {
ApplicationContext bankonetContext = new Cla... | true |
aad68877c0efb72ddd6efb6cbb468fe3db061c95 | Java | Mancye/RPG | /src/me/carrasp/party/Party.java | UTF-8 | 3,343 | 2.765625 | 3 | [] | no_license | package me.carrasp.party;
import java.util.HashMap;
import java.util.Map;
import me.carrasp.races.Race;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.AsyncPlayerChatEvent;
... | true |
743f993a196e78d4d6bfac44fe3fd8dc6a6473c4 | Java | Himmelt/Rikka | /src/main/java/rikka/api/command/CommandArgs.java | UTF-8 | 1,056 | 2.953125 | 3 | [
"MIT"
] | permissive | package rikka.api.command;
public final class CommandArgs {
private final String[] args;
private final int length;
private int current;
public CommandArgs(String[] args) {
this.args = args;
this.length = this.args == null ? 0 : this.args.length;
this.current = 0;
}
pu... | true |
f12fd6ed191d267b362e98889204d3bcbf0cca3b | Java | NBKelly/QuickLinks21 | /com/nbkelly/aux/StringCommand.java | UTF-8 | 1,650 | 3.5625 | 4 | [] | no_license | package com.nbkelly.aux;
/**
* Extention of command to read Strings within a given range.
* <p>
* A command interprets arguments arrays into variables. It is capable of self-matching on an argument array,
* updating the given input, and recognizing errors or duplicate inputs.
* <p>
* The StringCommand version al... | true |
43411bacce9088e7bca5f6b82d9d2315df284d5a | Java | hussyn/ABC1 | /src/a/inheritancePolymorphism/customer.java | UTF-8 | 5,682 | 3.046875 | 3 | [] | no_license | package a.inheritancePolymorphism;
//TEST CLASS:
import javax.swing.JOptionPane;
//import java.swing.Scanner;
import java.util.Scanner;
public class customer {
public static void main(String[] args)
{
String namei;
String soci;
String typei;
String input;
... | true |
e624bb4e51a8c339fd07fd8f99ba8f3cdf9bf518 | Java | turenkoaa/spring-training | /src/main/java/com/db/quoters/bean_factory_definitions/BeanDefinitionAnalyzerBeanFactoryPostProcessor.java | UTF-8 | 1,125 | 2.359375 | 2 | [] | no_license | package com.db.quoters.bean_factory_definitions;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.AbstractBeanDefin... | true |
5cef29099eeb077711e3f0bf0bead1863580a789 | Java | dragonfly95/jpademo-gradle | /src/main/java/com/example/jpademo/domain/Dept.java | UTF-8 | 571 | 1.867188 | 2 | [] | no_license | package com.example.jpademo.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.jpa.repository.JpaRepository;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneT... | true |
8c036a95343e184ca786dcdcd1e5a69c85393daa | Java | demba003/SimpleStrategyGame | /src/main/java/ot/game/saves/State.java | UTF-8 | 671 | 2.46875 | 2 | [] | no_license | package ot.game.saves;
import ot.game.models.Board;
import ot.game.models.Player;
import ot.game.models.buildings.Building;
import java.util.List;
public class State {
private final List<Building> buildings;
private final Player player;
private final Board board;
public State(List<Building> building... | true |
e9ca1380677690c56b4681efb34d1b48b8072dd6 | Java | ZebaSayyad/WebDriverCommands | /src/alerts/AlertsInSelenium.java | UTF-8 | 691 | 2.625 | 3 | [] | no_license | package alerts;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class AlertsInSelenium {
public static void main(String[] args) throws Exception {
System.setProperty("webdriver.chrome.driver", "chromedri... | true |
8618132e3e651d684240714e498c9e24d2e0bb5d | Java | amaydubey/CodeSpanners | /CodeSpartansRestlet/src/com/codespartans/BaseResource.java | UTF-8 | 2,243 | 2.3125 | 2 | [] | no_license | package com.codespartans;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.apache.log4j.Logger;
import org.json.JSONObject;
import org.restlet.data.Form;
import org.restlet.data.Parameter;
import org.restlet.ext.json.JsonRepresentation;
import org.restlet.representation.Representa... | true |
c5b2e3866534c5bbeca1e0f437cc93fae91dc512 | Java | jarryDk/MineCraft | /code-pirates-forge-mod/src/main/java/dk/codingpirates/minecraft/mods/item/VarmKakao.java | UTF-8 | 486 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package dk.codingpirates.minecraft.mods.item;
import dk.codingpirates.minecraft.mods.CodingPiratesMod;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemFood;
public class VarmKakao extends ItemFood {
private String name = "varmKakao";
public VarmKakao() {
super(2, 7f, tru... | true |
704d029bbbb38d8b933e2a5c2e530f4dd055f290 | Java | Aleks-Ya/yaal_examples | /Java+/JSE+/Core/test/lang/method_handler/ModifyMethodHandlerTest.java | UTF-8 | 1,112 | 2.515625 | 3 | [] | no_license | package lang.method_handler;
import org.junit.jupiter.api.Test;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
import static org.assertj.core.api.Assertions.assertThat;
class ModifyMethodHandlerTest {
@Test
void dropArguments() throws Throwable {
var mt = MethodType.metho... | true |
1859868ab20ebd4f9d62cda58749b89723829dae | Java | Allenary/SelenHB | /HbSelenTest/Bootstrap/BootstrapCore/IContainerFactory.java | UTF-8 | 182 | 2.15625 | 2 | [] | no_license | package BootstrapCore;
import org.openqa.selenium.WebElement;
public interface IContainerFactory {
<C extends IContainer> C create(Class<C> containerClass, WebElement element);
}
| true |
9132b7976f2381add0402578f4afaeb38c3e2a3d | Java | sonnv0812/IoTAndApplication | /app/src/main/java/com/example/projectiot/data/model/TimestampModel.java | UTF-8 | 1,262 | 2.859375 | 3 | [] | no_license | package com.example.projectiot.data.model;
public class TimestampModel {
private int day;
private int hour;
private int min;
private int month;
private int sec;
private int year;
public TimestampModel() {
this.day = 0;
this.hour = 0;
this.min = 0;
this.month... | true |
3617cd366ed6e43d314c9de9e1305ac3c3cfad21 | Java | adityasc94/JavaFeatures | /src/com/java8/FunctionalInterfaceDemo.java | MacCentralEurope | 1,819 | 4.25 | 4 | [] | no_license | package com.java8;
/**
* An interface with exactly one abstract method is called Functional Interface.
* @FunctionalInterface annotation is added so that we can mark an interface
* as functional interface.
* It is not mandatory to use it, but its best practice to use it with functional
* interfaces to avoid a... | true |
5609e3d76cf73cadcd2edf481a40cd043b71b529 | Java | R5595/cucumber | /src/org/opp/Parentclass.java | UTF-8 | 235 | 2.109375 | 2 | [] | no_license | package org.opp;
public class Parentclass {
public void empId() {
System.out.println("id : 928");
}
public void empName() {
System.out.println("name : raj");
}
public void empPhone() {
System.out.println("phone : 9080786899");
}
}
| true |
b6b21339540e72dec3f80a215e2d9179e389a3ba | Java | fusion-jena/abecto | /src/main/java/de/uni_jena/cs/fusion/abecto/processor/PopulationComparisonProcessor.java | UTF-8 | 9,119 | 2 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright © 2019 Heinz Nixdorf Chair for Distributed Information Systems, Friedrich Schiller University Jena (http://www.fusion.uni-jena.de/)
*
* 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 L... | true |
e7fc5ee0402f922759e8bf4045733230ccbb93d4 | Java | Maitis44/BuzzerbeaterAssistant | /src/com/buzzerbeater/pages/Login.java | UTF-8 | 976 | 2.453125 | 2 | [] | no_license | package com.buzzerbeater.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class Login extends Page{
public Login(WebDriver driver) {
super(driver);
}
@FindBy(id = "ctl00_pnlLogin... | true |
e72415229fd66ff90e815eae6ce91a8ff05cb6e2 | Java | xeonye/aten-project | /Aten/EAPP/code/src/org/eapp/hbean/SubSystem.java | UTF-8 | 6,772 | 1.945313 | 2 | [] | no_license | package org.eapp.hbean;
import java.util.HashSet;
import java.util.Set;
import org.apache.struts2.json.annotations.JSON;
import org.eapp.sys.util.ServerStartupInit;
import org.eapp.sys.util.ServerStartupInit.SubSystemConfig;
import org.eapp.util.spring.SpringHelper;
/**
* SubSystem entity.
*
* @author MyEclipse ... | true |
144407ba309e40c72621fb479258d2f9d3ef71fc | Java | smiletiezi/shijijingying | /src/com/py/shijijingying/dao/ShipAddressDao.java | UTF-8 | 575 | 1.882813 | 2 | [] | no_license | package com.py.shijijingying.dao;
import java.util.List;
import com.py.shijijingying.entity.ShipAddress;
public interface ShipAddressDao {
public int deleteByPrimaryKey(Integer shipId);
public int insert(ShipAddress shipAddress);
public int insertSelective(ShipAddress shipAddress);
public ... | true |
34651251bc4bb8c76dcae795163e8541aecbd037 | Java | iumoum/01-02-team-haksa | /haksaProject/src/main/java/com/cafe24/iumium/common/dao/CommonCodeDao.java | UTF-8 | 6,347 | 1.914063 | 2 | [] | no_license | package com.cafe24.iumium.common.dao;
import java.util.List;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.cafe24.iumium.common.dto.BuildingCode;
import com.cafe24.iumium.common.dto.Co... | true |
0d926bd0f23853fedb3691e3b9262fbfd856a395 | Java | CPoirot3/JavaProgress | /src/main/java/com/bupt/poirot/pattern/adapterPattern/AdapterPattern.java | UTF-8 | 463 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | package com.bupt.poirot.pattern.adapterPattern;
/**
* Created by hui.chen on 11/25/16.
*/
public class AdapterPattern {
public static void main(String[] args) {
System.out.println("***Adapter Pattern Demo***");
CalculatorAdapter cal = new CalculatorAdapter();
Triangle t = new Triangle(20,... | true |
fbec316e1a0f8161b78ea48548a3f3d9a5ea00d7 | Java | Pebaz/RenderSiren | /src/pbz/Pixel.java | UTF-8 | 1,996 | 3.703125 | 4 | [] | no_license | package pbz;
/**
Contains convenience methods for creating integers that contain four color
channels: Alpha, Red, Green, and Blue.
*/
class Pixel
{
/**
Returns the 8-bit (1 byte) alpha channel from the given color.
*/
public static int getChannelAlpha(int color)
{
return (color >> 24) & 255;
}
/**
Returns t... | true |
f854bd50d4d06449c421a1d062b17e99fcdf1cda | Java | Tyyrn/lucene-clustering | /Spielwiese/src/de/hof_university/iisys/pp_vinf12/lucene_clustering/xml/XMLParser.java | ISO-8859-1 | 2,890 | 2.59375 | 3 | [] | no_license | package de.hof_university.iisys.pp_vinf12.lucene_clustering.xml;
// @author Maximilian Louis, Dominick Oeckel
import java.io.File;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Local... | true |
b266d01b7455ebfdb906559de952602699fe83f4 | Java | hieunh1801/term_7 | /Lập trình nâng cao/java_project/Son/StockExchange/src/enity/TradeOrder.java | UTF-8 | 986 | 2.71875 | 3 | [] | no_license | package enity;
public class TradeOrder {
private String traderId;
private String stockId;
private long price;
private int amount;
public String getTraderId() {
return traderId;
}
public void setTraderId(String traderId) {
this.traderId = traderId;
}
public String getStockId() {
return stockId;
}
pub... | true |
dd309c43027215ee27b28505d23cfa6a7f1028d6 | Java | qiufengxiaozhu/fileManagement | /src/org/java/service/FilesService.java | UTF-8 | 560 | 2.171875 | 2 | [] | no_license | /**
*
*/
package org.java.service;
import java.util.List;
import org.java.bean.Files;
/**
* @author 邱高强
* 对员工档案进行增删改查操作
*/
public interface FilesService {
/**
* 新增档案
* @param files
* @return
*/
public int addFiles(Files files);
/**
* 通过id删除档案
* @param id
* @return
*/
public int delFiles(... | true |
24dd2b2814b88fc7fd25cbf038d976dc9e012183 | Java | crymaster/Test-client | /src/com/tv/xeeng/gui/RegisterActivity.java | UTF-8 | 6,617 | 1.953125 | 2 | [] | no_license | package com.tv.xeeng.gui;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.os.Bundle;
import android.view.View;
import android.vie... | true |
2c92ac105d94484750452c48ce960880072c6fbe | Java | ElvaLo/Rock-Paper-Scissors | /src/main/java/com/task/RockPaperScissors/Player.java | UTF-8 | 220 | 2.421875 | 2 | [] | no_license | package com.task.RockPaperScissors;
/**
* JAVA programming language
* @author Elva Lu
*
*/
public interface Player {
String[] MOVE = new String[] { "Rock", "Paper", "Scissors" };
int play();
String getMove();
}
| true |
2f1367b0b54faf108ba9f9b3a23758930fd5962a | Java | yakhyadabo/worldpay | /src/main/java/org/worldpay/shop/service/OfferService.java | UTF-8 | 305 | 1.90625 | 2 | [] | no_license | package org.worldpay.shop.service;
import org.worldpay.shop.domain.Offer;
import java.util.List;
import java.util.Optional;
/**
* Created by ydabo on 28/10/16.
*/
public interface OfferService {
Optional<Offer> getByReference(Integer reference);
Offer add(Offer offer);
List<Offer> getAll();
}
| true |
65afce6d17cde1d325809908a3f40665de5fbc03 | Java | shaner13/Java | /Week 06/Screen.java | UTF-8 | 2,703 | 3.546875 | 4 | [] | no_license | /*
Program to implement a simple GUI
*/
//Importing components
import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JOptionPane;
import javax.swing.JLabel;
import javax.swing.JTextArea;
import javax.swing.JToggleButton;
impo... | true |
bb3311425d5f2b4f0eb46b6fa37842f306b1b748 | Java | HiteshR90/HotelBook | /src/main/java/com/hr/hotel/service/UserService.java | UTF-8 | 3,570 | 1.953125 | 2 | [] | no_license | package com.hr.hotel.service;
import java.io.IOException;
import java.security.Principal;
import java.util.List;
import javax.mail.MessagingException;
import org.springframework.security.core.userdetails.UserDetails;
import com.hr.hotel.config.SocialConfig.SocialProvider;
import com.hr.hotel.dto.AccessTokenContaine... | true |
3973f0ba8908b8927ee57eebd46913851fd77779 | Java | moutainhigh/main-pom | /sn-sdk/src/main/java/com/openJar/requests/img/SnImgAddRequest.java | UTF-8 | 809 | 2.078125 | 2 | [] | no_license | package com.openJar.requests.img;
import com.openJar.beans.enums.SnEnum;
import com.openJar.requests.Request;
import com.openJar.responses.img.SnImgAddResponse;
public class SnImgAddRequest extends Request<SnImgAddResponse>{
private String username;
private String picContent;
public String getUsername() ... | true |
ca14c8fd1edd7726427c3de805b9d34c662c7650 | Java | Zshuangshuang/Reload | /二叉树OJ练习题/src/com/zss/根据先序遍历和中序遍历构造二叉树/Solution.java | UTF-8 | 2,039 | 3.71875 | 4 | [] | no_license | package com.zss.根据先序遍历和中序遍历构造二叉树;
import java.util.ArrayList;
import java.util.List;
class TreeNode{
public int val;
public TreeNode left;
public TreeNode right;
public TreeNode(int val) {
this.val = val;
}
}
public class Solution {
//将数组转为list
private List<Integer> arrayToList(in... | true |
c0b45e73122ea29c37baf47d3ac32864f4ded50f | Java | ovidiuf/novaordis-session-servlet | /src/main/java/io/novaordis/servlet/session/plumbing/Context.java | UTF-8 | 9,012 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2016 Nova Ordis LLC
*
* 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 agre... | true |
9c6aba79927980dae88c00f2d2a41a6de6663b2a | Java | mihalivlad/se-backend | /src/main/java/com/project/socializingApp/service/PhotoService.java | UTF-8 | 5,965 | 2.046875 | 2 | [] | no_license | package com.project.socializingApp.service;
import com.project.socializingApp.dataLayer.RequestPhoto;
import com.project.socializingApp.model.PhotoModel;
import com.project.socializingApp.model.User;
import com.project.socializingApp.repository.PhotoRepo;
import com.project.socializingApp.repository.UserRepo;
import o... | true |
90e447c693d544022b62b1df523ca641501c3073 | Java | RPR-2019/rpr20-projekat-DinijaSeferovic | /src/ba/unsa/etf/dal/UserDAO.java | UTF-8 | 13,240 | 2.484375 | 2 | [] | no_license | package ba.unsa.etf.dal;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.sql.*;
import java.util.ArrayList;
import java.util.Scanner;
public class UserDAO {
private static Connection con = null;
private static UserDAO instance = null;
private User currentUser;
privat... | true |
2a59393115c7396412ad2d53d8ae070950c2b107 | Java | powerdawg45/BigJavaEO | /src/ch14/BubbleSorter.java | UTF-8 | 307 | 3.21875 | 3 | [] | no_license | package ch14;
// Bubble Sort
public class BubbleSorter {
public static void sort(int[] a) {
boolean done = false;
while (!done) {
done = true;
for (int i = 0; i < a.length - 1; i++) {
if (a[i] > a[i + 1]) {
ArrayUtil.swap(a, i, i + 1);
done = false;
}
}
}
}
}
| true |
1cefd08c044931cff103f34e04c8ccf4305568ed | Java | UQdeco2800/singularity-server | /server/src/main/java/uq/deco2800/singularity/server/trade/TradeRequestResource.java | UTF-8 | 5,345 | 2.1875 | 2 | [
"MIT"
] | permissive | package uq.deco2800.singularity.server.trade;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
import java.util.List;
import java.util.UUID;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produce... | true |
d3dfe6a8fd5df68aec547e0fadf45f1297704eb8 | Java | sugyan84/EclipseCodeNewRepo | /CoreTech/src/problem/compete/subStr/So.java | UTF-8 | 1,645 | 3.671875 | 4 | [] | no_license | package problem.compete.subStr;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class So
{
public static int process(String s, int k)
{
char[] chrArr = s.toCharArray();
int sum = 0;
int count = 0;
// sb.delete(0, sb.length());
for(int i = 0;... | true |
1f277db71e79c4d3d06a0329c298195fc988d5bb | Java | lakshmanan/HelloWorld | /src/com/thinkbig/dataengine/FbookData.java | UTF-8 | 692 | 1.835938 | 2 | [] | no_license | package com.thinkbig.dataengine;
import java.util.ArrayList;
import java.util.List;
import com.restfb.types.*;
public class FbookData {
User userData;
Group groupData;
List<String> activities;
List<String> books;
List<String> interests;
List<String> likes;
List<String> movies;
List<String> music;
List<Str... | true |
791648a7be4604ec60e5757945e480795b6b88ca | Java | skylarklxlong/WoodenBox | /app/src/main/java/online/himakeit/skylark/model/mob/MobCitysEntity.java | UTF-8 | 2,501 | 2.296875 | 2 | [
"MIT"
] | permissive | package online.himakeit.skylark.model.mob;
import java.io.Serializable;
import java.util.List;
/**
* Created by:LiXueLong 李雪龙 on 2017/10/23 20:24
* <p>
* Mail : skylarklxlong@outlook.com
* <p>
* Description:
*/
public class MobCitysEntity implements Serializable {
/**
* {
"msg": "success",
"r... | true |
754b90ed687e5cb0e3675bdf59371ccc08a2e4a0 | Java | usgs/thredds | /dap4/d4cdm/src/main/java/dap4/cdm/nc2/DataToCDM.java | UTF-8 | 7,033 | 2.09375 | 2 | [
"BSD-3-Clause"
] | permissive | /* Copyright 2012, UCAR/Unidata.
See the LICENSE file for more information.
*/
package dap4.cdm.nc2;
import dap4.cdm.NodeMap;
import dap4.core.data.DSP;
import dap4.core.data.DataCursor;
import dap4.core.dmr.*;
import dap4.core.util.DapException;
import dap4.core.util.DapUtil;
import dap4.core.util.Index;
import ... | true |
3a8a6f976fb39f77480bbcded69ce5060a1f2940 | Java | MzMalone/Paint | /Rectangle.java | UTF-8 | 2,700 | 3.390625 | 3 | [] | no_license | import java.awt.*;
import java.util.ArrayList;
public class Rectangle extends Shapes
{
private int x_init, y_init, x_end, y_end; // coordinates that user selected
private Color color;
private boolean fill = false; // flags fill
private boolean select = false; // flags selection
private int xmin, xmax, y... | true |
ea5fb6430a8d86750ff5c204a46bbbddb974219d | Java | russinholi/aulas | /alunoWeb/src/main/java/dim/jolim/model/AlunoPresencial.java | UTF-8 | 508 | 2.5 | 2 | [] | no_license | package dim.jolim.model;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
@Entity
@DiscriminatorValue("P")
public class AlunoPresencial extends Aluno {
@ManyToMany
private List<Aula> presencas = ne... | true |
65ced3711acad224a0bc98ac0e491d568c8e281d | Java | Ravmouse/job4j_spring | /src/main/java/ru/job4j/h1ioc/t1beancreaton/automat/JavaProgrammer.java | UTF-8 | 484 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package ru.job4j.h1ioc.t1beancreaton.automat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* @author Vitaly Vasilyev, date: 14.03.2020, e-mail: rav.energ@rambler.ru
* @version 1.0
*/
@Component
public class JavaProgrammer implements Programmer ... | true |
92f82b832d4d3ef17b276aaddbe2b19582c234f8 | Java | sirinath/Terracotta | /dso/branches/4.2/management-agent/management-tsa-impl-v2/src/test/java/com/terracotta/management/ApplicationTsaV2Test.java | UTF-8 | 1,229 | 1.851563 | 2 | [] | no_license | package com.terracotta.management;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.fail;
import org.junit.Assert;
import org.junit.Test;
import java.util.Set;
/**
* @author: Anthony Dahanne
*/
public class ApplicationTsaV2Test extends JerseyApplicationTestCommon {
@Test
public voi... | true |
6aa01d28b53ea5b38b12ddd3282615cc1126314b | Java | yang7988/spring-redis-security | /spring-security-web/src/main/java/com/boomhope/redis/service/IUserService.java | UTF-8 | 246 | 1.726563 | 2 | [] | no_license | package com.boomhope.redis.service;
import java.util.List;
import com.boomhope.redis.domain.Principal;
public interface IUserService {
Principal findUserByUserName(String username);
List<String> getRoleListByUserId(String username);
}
| true |
4c7ecdd899039a1eddea25ccf7599c0a4aa35632 | Java | jqwongsuda/LeetCode | /LeetCode/src/com/binaryTree/BuildTreeByInAndPre.java | UTF-8 | 1,367 | 4 | 4 | [] | no_license | package com.binaryTree;
import java.util.Arrays;
/**
* 从前序与中序遍历序列构造二叉树
* 根据一棵树的前序遍历与中序遍历构造二叉树。
*
* 注意:
* 你可以假设树中没有重复的元素。
*
* 例如,给出
*
* 前序遍历 preorder = [3,9,20,15,7]
* 中序遍历 inorder = [9,3,15,20,7]
* 返回如下的二叉树:
*
* 3
* / \
* 9 20
* / \
* 15 7
*/
public class BuildTreeByInAndPre {
... | true |
8ca6762298ae2c35e72c25922bbf410930736c9a | Java | mkokkodi/reputation-informs | /reputation/src/kokkodis/kalman/EstimateParameters.java | UTF-8 | 12,456 | 2.40625 | 2 | [] | no_license | package kokkodis.kalman;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Map.Entry;
import kokkodis.holders.KalmanEMInstanceHolder;
import kokkodis.holde... | true |
939dae3870be1ac033242bcba293d9b97dde7f68 | Java | JinHee8989/memoryTime | /src/main/java/kr/co/memorytime/memorytime/domain/user/model/repository/UserRepository.java | UTF-8 | 329 | 1.953125 | 2 | [] | no_license | package kr.co.memorytime.memorytime.domain.user.model.repository;
import kr.co.memorytime.memorytime.domain.user.model.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserRepository extends JpaRepository<User,Long> {
User findByUsernameAndPassword(String id, String pass... | true |
b990984be884af75981ae57cb952670332a1b9ff | Java | CamilleJesus/AssistenteViagem | /2/src/br/uefs/ecomp/av/controller/ControllerOperador.java | UTF-8 | 3,855 | 2.796875 | 3 | [] | no_license | package br.uefs.ecomp.av.controller;
import br.uefs.ecomp.av.model.AssistenteViagem;
import br.uefs.ecomp.av.model.Avaliacao;
import br.uefs.ecomp.av.util.Coordenadas;
import br.uefs.ecomp.av.util.Iterador;
import java.io.Serializable;
import java.io.FileOutputStream;
import java.io.ObjectOutputStream;
import java.i... | true |
c7c62a78bdecd659c66d0bafed1ae9527ab6722c | Java | DoAn-CNPM/ShopOnline | /src/java/controller/XoaHoaDon.java | UTF-8 | 1,506 | 2.0625 | 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 controller;
import dao.CTDonDatHangDAO;
import dao.DonDatHangDAO;
import java.io.IOException;
import java.sql.SQLExc... | true |
a752f78eea7c1e59b85b7ef2c94eb8113bc6de6b | Java | jroed/imeji | /imeji_presentation/src/main/java/de/mpg/imeji/presentation/facet/CollectionFacets.java | UTF-8 | 4,533 | 1.585938 | 2 | [] | no_license | /**
* License: src/main/resources/license/escidoc.license
*/
package de.mpg.imeji.presentation.facet;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import de.mpg.imeji.logic.controller.ItemController;
import de.mpg.imeji.logic.search.Search;
import de.mpg.imeji.logic.search.SearchResult;
i... | true |
4f0f574b6f3841fd8980f29954512e9d14d5bf95 | Java | QRXqrx/ats | /src/test/java/nju/pa/ats/RefineTest.java | UTF-8 | 6,994 | 2.078125 | 2 | [] | no_license | package nju.pa.ats;
import com.ibm.wala.ipa.callgraph.AnalysisScope;
import nju.pa.ats.core.result.AtomTestCase;
import nju.pa.ats.core.staticpa.StaticSlicer;
import nju.pa.ats.core.staticpa.SlicerConfig;
import nju.pa.ats.util.SlicerUtil;
import org.junit.Test;
import java.io.IOException;
import java.util.ArrayList;... | true |
3c6c00d2d842d98545298b1d870529549a46101a | Java | ivangar/soap_logs_ws | /src/main/java/com/example/soap/persistence/LogsDao.java | UTF-8 | 5,645 | 2.4375 | 2 | [] | no_license | package com.example.soap.persistence;
import com.example.soap.entity.LogEntryEntity;
import com.example.soap.persistence.helpers.LogEntryType;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeConstants;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.XML... | true |
be57862b2d7766ae61115c5dd115b38b87536fa0 | Java | LeapTec/pinxixi | /src/com/pinxixi/servlet/PhoneSeriesAdd.java | UTF-8 | 2,177 | 2.453125 | 2 | [] | no_license | package com.pinxixi.servlet;
import java.io.IOException;
import java.io.PrintWriter;
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... | true |
a4c6f4ac6b24a4ec77e509d45047aaeaca240832 | Java | zijima/Leetcode-java | /src/ValidPalindrome.java | UTF-8 | 1,652 | 3.75 | 4 | [] | no_license | /*
* Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is not a palindrome.
Note:
Have you consider that the string might be empty? This is a good question to ask during an intervie... | true |
b8d51d047c52fc6bc7d6fe64a1147f5acb509ba2 | Java | petafuel/styx | /api/src/main/java/net/petafuel/styx/api/v1/payment/boundary/FetchPaymentResource.java | UTF-8 | 3,548 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package net.petafuel.styx.api.v1.payment.boundary;
import net.petafuel.styx.api.exception.ResponseConstant;
import net.petafuel.styx.api.filter.authentication.boundary.AcceptsPreStepAuth;
import net.petafuel.styx.api.filter.authentication.boundary.CheckAccessToken;
import net.petafuel.styx.api.filter.input.boundary.Re... | true |
1f882e58818ef5a3a2a15e7e02d1771ca8f755cb | Java | notSadako/calcTest | /src/Calc.java | UTF-8 | 2,902 | 3.671875 | 4 | [] | no_license | public class Calc {
int number1;
int number2;
char operator;
String numbers;
int result;
public Calc(int result) {
this.result = result;
}
public Calc(int number1, int number2, char operator) {
this.number1 = number1;
this.number2 = number2;
... | true |
c2bca510ddf2d623431bc9e45e6409e8af1a3051 | Java | liubaolin/evolutionary | /spring-parent/03SpringIoc/src/main/java/com/baolinliu/springioc/Geli.java | UTF-8 | 164 | 2.125 | 2 | [] | no_license | package com.baolinliu.springioc;
/**
* Created by richey on 16-12-18.
* 墨攻里的角色--革离
*/
public interface Geli {
public void responseAsk();
}
| true |
7c981807af7059e94d7c0917833071a1360d1c18 | Java | Mdidu/tp_gestionProjetBack | /src/main/java/com/example/demo/payload/request/SignupRequest.java | UTF-8 | 1,880 | 2.484375 | 2 | [] | no_license | package com.example.demo.payload.request;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
public class SignupRequest {
@NotBlank
@Size(min = 3, max = 20)
private String username;
@NotBlank
@Size(max = 50)
... | true |
01a3a2c8a12ef1df4db8d335dde0aee626ce6ca7 | Java | MizuMaro/PlayAround-API | /src/main/java/com/playaround/playaroundapi/models/UpdateUserInfoRequest.java | UTF-8 | 1,267 | 2.03125 | 2 | [] | no_license | package com.playaround.playaroundapi.models;
import com.playaround.playaroundapi.bo.UserPA;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public class UpdateUserInfoRequest implements Serializable {
private String bio;
private Date birthDate;
private String locatio... | true |
72c35cd036c4e0da8d8cbc88ea9455aa95441c7a | Java | KerenMeron/PostPC-Threads | /app/src/main/java/com/example/android/threads/AsyncTaskActivity.java | UTF-8 | 1,777 | 2.75 | 3 | [] | no_license | package com.example.android.threads;
import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.SystemClock;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
public class AsyncTaskActivit... | true |
fc19ab848cdc32f1acf0289dd340579ec27f50b0 | Java | tyang513/enterprise.adapter | /proxy/src/main/java/com/td/common/util/CosUtil.java | UTF-8 | 1,688 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | package com.td.common.util;
/**
* Cos的工具类
*
* @author 张雷
*
*
*/
//import com.oreilly.servlet.MultipartRequest;
public class CosUtil {
// @SuppressWarnings({ "deprecation", "unchecked" })
// public static String upload(HttpServletRequest request) throws IOException
// {
// //存绝对路径
// //String filePath = ... | true |
145868cfc8797438b1ffd7c68d2e00f4eb0102ac | Java | jfekete1/GSM-Modem-Free-SMS-Android-App | /sources/com/google/android/gms/ads/formats/NativeAdView.java | UTF-8 | 4,510 | 1.804688 | 2 | [] | no_license | package com.google.android.gms.ads.formats;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.RemoteException;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.FrameLayout.LayoutParam... | true |
794ff0e09c0713ce8408fdf9a9fe2c52b87c4928 | Java | jemi14/OO2 | /Guía Nro 3 - Hibernate Uno a Muchos-20200408/Hibernate Uno a Muchos/src/datos/Prestamo.java | UTF-8 | 1,494 | 2.65625 | 3 | [] | no_license | package datos;
import java.time.LocalDate;
import funciones.Funciones;
public class Prestamo {
private long idPrestamo;
private LocalDate fecha;
private double monto;
private double interes;
private int cantCuotas;
private Cliente cliente;
public Prestamo() {}
public Prestamo(LocalDate fecha, double mon... | true |
264e513703734c0b11d4b177ac843d130989590d | Java | sukkw/java_course | /objects/src/com/sirma/itt/javacourse/objects/store/OrderItem.java | UTF-8 | 1,345 | 2.96875 | 3 | [] | no_license | package com.sirma.itt.javacourse.objects.store;
/**
* Keep information for order items.
*
* @version 1.1 16 April 2013
* @author Stella Djulgerova
*/
public class OrderItem {
// class private members
private int ID;
private int orderID;
private Product product;
private int qty;
/**
* G... | true |
2e5d54636ab5387f718c165cedb161819845b886 | Java | colus3/JpaTest | /src/test/java/com/example/domain/UserTest.java | UTF-8 | 1,556 | 2.34375 | 2 | [] | no_license | package com.example.domain;
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.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringJU... | true |
d2dc14a430dbe87e6cf1962a4d8093d0ecf457d7 | Java | yang2qiong271828/2018 | /src/com/lingnet/vocs/dao/impl/remoteDebug/QuestionDaoImpl.java | UTF-8 | 1,627 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.lingnet.vocs.dao.impl.remoteDebug;
import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Projections;
import org.springframework.stereotype.Repository;
import com.lingnet.common.dao.impl.BaseDaoImplInit;
import com.lingnet.util.Pager;
import com.... | true |
c7cfb63031c849f45f424622c207b118f48a360b | Java | sanshinan/fly | /app/src/main/java/com/example/day02/view/LogActivity.java | UTF-8 | 1,932 | 2.015625 | 2 | [] | no_license | package com.example.day02.view;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.example.day02.R;
import ... | true |
e170da9a60407e65a71b18aba3c04b990bfce326 | Java | arkoooo/DietHelper | /test/com/DietHelper/DietTest.java | UTF-8 | 3,215 | 2.640625 | 3 | [] | no_license | package com.DietHelper;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static com.DietHelper.Diet.arrangeWholeDiet;
import static com.DietHelper.Variables.*;
import static org.junit.jupiter.api.Assertions.*;
class DietTest {
Patient veganPatient = new Patient();
Diet vega... | true |
de9172e222f054c97020d55e7125a15c7fbe4f65 | Java | eloquent/lockbox-java | /src/main/java/co/lqnt/lockbox/util/PublicKeyInformationFactory.java | UTF-8 | 1,072 | 2.296875 | 2 | [
"MIT"
] | permissive | /*
* This file is part of the Lockbox package.
*
* Copyright © 2013 Erin Millard
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
package co.lqnt.lockbox.util;
import java.io.IOException;
import org.bouncycastle.asn1.x509.SubjectP... | true |
81e61fc5a3e7fa3ffe6790ac737010badd40d376 | Java | jralonso84/git-codebay | /src/codebay/training/git/HelloWorld.java | UTF-8 | 170 | 1.976563 | 2 | [] | no_license | package codebay.training.git;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World from GIT! Great1!");
}
}
| true |
3eb12ae0ac614dc0e5be523474b542db352db39a | Java | qhgusdld77/myjava | /Begin/src/my/day3/MethodTest.java | UTF-8 | 2,261 | 3.609375 | 4 | [] | no_license | package my.day3;
import my.util.MyUtil;
public class MethodTest {
public static void main(String[] args) {
Member.showCount(); //클래스명.메소드명() --> 클래스 메소드 (static 메소드)
Member me = new Member(); //새로운 객체(인스턴스) 생성 기본생성자 호출
me.userid = "bohyeon";
me.pwd = "12234";
me.name = "김보현";
me.age = 23;
... | true |
7890a3d867a09716b57f23b35cdf9e1fa6a324fc | Java | amyik/tripServiceKataPractice | /src/test/java/org/craftedsw/tripservicekata/trip/TripDAOTest.java | UTF-8 | 434 | 2.046875 | 2 | [] | no_license | package org.craftedsw.tripservicekata.trip;
import org.craftedsw.tripservicekata.exception.CollaboratorCallException;
import org.craftedsw.tripservicekata.user.User;
import org.junit.Test;
public class TripDAOTest {
@Test(expected = CollaboratorCallException.class) public void
should_throw_CollaboratorCallExcept... | true |
c37a1f4b085cad832aaa95aafe3d05af76e3595a | Java | pyaesonehein1141991/Accounting | /accounting/src/org/ace/accounting/common/validation/IDataValidator.java | UTF-8 | 153 | 1.78125 | 2 | [] | no_license | package org.ace.accounting.common.validation;
public interface IDataValidator<T> {
public ValidationResult validate(T obj,boolean transaction);
}
| true |
6fc900484ce7a28a68182b8fde6303e7754ca111 | Java | movementilibrary/java | /src/collection/setlist/classes/Produto.java | UTF-8 | 1,487 | 3.03125 | 3 | [] | no_license | package collection.setlist.classes;
import java.util.Objects;
public class Produto {
private String serialNumber;
private String nome;
private Double preco;
public Produto(String serialNumber, String nome, double preco) {
this.serialNumber = serialNumber;
this.nome = nome;
th... | true |
0a466417eb44f7ceecfacdb034a9992124c95696 | Java | raghav-vk/playerApp | /src/main/java/com/cric/player/transform/YQLTransformer.java | UTF-8 | 591 | 2.359375 | 2 | [] | no_license | package com.cric.player.transform;
import generated.Query;
import generated.Query.Results.Team;
import java.util.ArrayList;
import java.util.List;
import com.cric.player.domain.Teams;
public class YQLTransformer {
public List<Teams> transformTeamResponseToTeams(Query teamResp) {
List<Teams> teams = new ArrayLis... | true |
c3aaed8b9516b5393be8054ca467519a26e710ce | Java | JoeCourtneyW/OSF | /OSF-Core/src/main/java/osf/player/PlayerModelListener.java | UTF-8 | 1,479 | 2.71875 | 3 | [] | no_license | package osf.player;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerLoginEvent;
import java.util.UUID;
public class PlayerModelListener implements Listener {
... | true |
2bda147f501778a9d6847cb763cb74e756c52c66 | Java | codeamateur/self-falsework | /src/main/java/com/tianqian/self/config/exception/GlobalExceptionHandler.java | UTF-8 | 1,178 | 2.234375 | 2 | [] | no_license | package com.tianqian.self.config.exception;
import com.tianqian.self.common.base.BaseCodeEnum;
import com.tianqian.self.common.base.BaseResult;
import com.tianqian.self.common.base.BusinessException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.ExceptionHandle... | true |
e4181648eb1edb5d556307b731aad4df94a56518 | Java | sondt87/LoginScreen | /app/src/main/java/com/example/myapplication/ServiceActivity.java | UTF-8 | 2,931 | 2.203125 | 2 | [] | no_license | package com.example.myapplication;
import android.app.Service;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.vi... | true |
b30330c0816601d7cb08febc7c7b036c1ee5044c | Java | wangzhifengharrison/6442_fianal_lab | /src/Screen.java | UTF-8 | 2,742 | 2.609375 | 3 | [] | no_license | import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.PrintStream;
import javax.swing.JComponent;
/*
rPeanut - is a simple simulator of the rPeANUt computer.
Copyright (C) 2011-2014 Eric McCreath
This program is free software: you can redi... | true |
7ec15bd306507489566f656d71b78986c77a7384 | Java | camilo1993/JAVA-8-Fundamentos | /Clase214-Acceso-a-BBDD-JDBC-XIV.-Modelo-Vista-Controlador-V/ConectaBD5/src/modelo/CargaMenus.java | UTF-8 | 1,223 | 2.4375 | 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 modelo;
import java.sql.*;
/**
*
* @author Kmilo
*/
public class CargaMenus {
public CargaMenus() {
miConexi... | true |
dafc3e152c786e77a84332cf4edaa5f4d485b9e4 | Java | Elblassy/WasaylDriver | /app/src/main/java/com/elblasy/wasayldriver/fragments/MyActiveOrder.java | UTF-8 | 2,571 | 2.140625 | 2 | [] | no_license | package com.elblasy.wasayldriver.fragments;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import com.elblasy.wasayldriver.R;
import com... | true |
2a6d20b53fb601e287a21059a40047bdcc54c8e8 | Java | Ilaaksh/JAVA-NIIT-2019 | /forloopnested.java | UTF-8 | 296 | 2.8125 | 3 | [] | no_license | class m
{
public static void main(String[]args)
{
for(int i=1;i<4;i++)
{
for(int j=1;j<i;j++)
{
System.out.print("1");
}
System.out.println(" ");
}
for(int i=4;i>=1;i--)
{
for(int j=1;j<=i;j++)
{
System.out.print("1");
}
System.out.println(" ");
}
}
}
| true |
86a18aefeb381d1061fa67568106f3a27eaee8eb | Java | hubtester123/sagenda_booking | /src/main/java/thread/BookingThread.java | UTF-8 | 5,492 | 2.671875 | 3 | [] | no_license | package thread;
import model.SagendaAccessToken;
import model.SagendaLock;
import model.SagendaSchedule;
import org.apache.commons.lang3.time.DateUtils;
import utility.ConfigUtils;
import utility.SagendaUtils;
import java.time.DayOfWeek;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
public... | true |
29c9082b557989e9908525023233a354e7d5cadf | Java | ggreen/khem | /khem-joelib/src/main/java/jmat/io/gui/plotTools/Axe3D.java | UTF-8 | 9,074 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package jmat.io.gui.plotTools;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics2D;
import javax.swing.JPanel;
/**
* DOCUMENT ME!
*
* @.author $author$
* @version $Revision: 1.4 $
*/
public class Axe3D
{
//~ Static fields/initializers /////////////////////////... | true |
cf1fba4dd6a20d4bd2b5de09cf7ab70f19046be4 | Java | debugandroid/VideoGallery | /app/src/main/java/com/debugandroid/VideoGallery/VideoAdapter.java | UTF-8 | 8,015 | 2 | 2 | [] | no_license | package com.debugandroid.VideoGallery;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animati... | true |
4f4d10db5fee22cdc935cf50e99935755a32cadd | Java | srinithig/javabasics | /src/com/basic/admin.java | UTF-8 | 364 | 2.859375 | 3 | [] | no_license | package com.basic;
public class admin {
public static void main(String args[])
{
Employee e1=new Employee();
e1.setName("name1");
e1.setSalary(100000);
Employee e2=new Employee();
e2.setName("name2");
e2.setSalary(200000);
double salary=e1.getSalary();
salary=salary*1.1;
e1.setSalary(salary);
Sys... | true |
033a84aacd1238b10a3a9ab339051ed288045bbe | Java | jwu000/FOODO | /app/src/main/java/util/ReviewAdapterItem.java | UTF-8 | 1,012 | 2.765625 | 3 | [] | no_license | package util;
public class ReviewAdapterItem {
int rating;
String username;
String reviewText;
String timeCreated;
public ReviewAdapterItem(int rating, String username, String reviewText, String timeCreated) {
this.rating = rating;
this.username = username;
this.reviewTex... | true |
55deb9525acfe4c4892d60f4b8c9504ef1e9a668 | Java | skkuse-adv/2019Fall_team2 | /analysis/reverse-engineering/decompile-fitts-with-gradle-20191031-2200/src/main/java/kotlin/collections/ArraysKt___ArraysKt$asSequence$$inlined$Sequence$9.java | UTF-8 | 628 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package kotlin.collections;
import java.util.Iterator;
import kotlin.jvm.internal.ArrayIteratorsKt;
import kotlin.sequences.Sequence;
import org.jetbrains.annotations.NotNull;
public final class ArraysKt___ArraysKt$asSequence$$inlined$Sequence$9 implements Sequence<Character> {
final /* synthetic */ char[... | true |
846bb49267ded8f60a19dfc7154d783434ad7257 | Java | weimei/weird | /modules/weird-commons/src/main/java/net/ili/commons/web/faces/RedirectNavigationHandler.java | UTF-8 | 2,070 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package net.ili.commons.web.faces;
import java.util.Map;
import java.util.Set;
import javax.faces.application.ConfigurableNav... | true |