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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
daf8038f4887f6d7c826eb843b3845d374ee4f52 | Java | Tino-FRC-2473/FRCSPN | /src/models/matches/Video.java | UTF-8 | 89 | 1.671875 | 2 | [] | no_license | package models.matches;
public class Video {
public String key;
public String type;
}
| true |
bdecc460993cf02983421afe87108f1c56add73b | Java | pratikgtm/MediCare | /app/src/main/java/com/example/medihelp/UrlEndpoints.java | UTF-8 | 834 | 1.929688 | 2 | [] | no_license | package com.example.medihelp;
import android.util.Log;
import java.util.ArrayList;
/**
* Created by abc on 27-02-2016.
*/
public class UrlEndpoints {
public static final String URL_MAIN_CURRENT = "https://data.gov.in/api/datastore/resource.json?resource_id=7d208ae4-5d65-47ec-8cb8-2a7a7ac89f8c";
public sta... | true |
eb9d9e0dce1b41117bac921bcd4afee32318d355 | Java | bigtyno/being | /being_bigtyno/src/main/java/com/bigtyno/being/mapper/BoardMapper.java | UTF-8 | 1,584 | 1.960938 | 2 | [] | no_license | package com.bigtyno.being.mapper;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import com.bigtyno.being.common.Criteria;
import com.bigtyno.being.common.SearchCriteria;
import com.bigtyno.being.domain.BoardVO;
import com.bigtyno.being.domain.FileVO;
public interface BoardMapper {
pu... | true |
3fcfe21f765e9c2e0f8cffac3b8815d70c27f131 | Java | rohankarthik/Battle-Tournament | /src/slapCompetition/Applicant.java | UTF-8 | 723 | 2.8125 | 3 | [] | no_license | package slapCompetition;
public class Applicant {
private String name;
private int health, damage, attacks, numberOfWins;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getHealth() {
return health;
}
public void setHealth(int health) {
th... | true |
48c0138e7a9105e18d5b9490c7486ffe3c8aff20 | Java | tangchaolibai/mvp | /yours-dev-jenkins/mvp-ms-web/src/main/java/com/hsb/mvpmsweb/model/payload/MobileContactsResponseData.java | UTF-8 | 412 | 1.6875 | 2 | [] | no_license | package com.hsb.mvpmsweb.model.payload;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;
@Data
@Valid
@ToString
public class MobileContactsResponseData {
@JsonProperty("username")
private String userName;
@JsonProperty("mobilePhon... | true |
24b9b2c313b9c6acd4ba157d17fe32b3ec3c11f3 | Java | swhaleDCC/JDBC | /Assets/src/cn/shuangze/assetsms/view/AssetsMain.java | UTF-8 | 19,121 | 2.5625 | 3 | [] | no_license | package cn.shuangze.assetsms.view;
import java.awt.*;
import java.awt.event.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
/**
* 资产管理系统---主界面
*/
public class AssetsMain extends JFrame implements ActionListener {
//框架的大小
Dimension faceSize = new Dimension... | true |
d4588adc933414283f7a8d5bccd52cba8879da22 | Java | bgrsph/Online-Monopoly | /src/domain/squares/actionSquares/SubwaySquare.java | UTF-8 | 1,324 | 2.5 | 2 | [] | no_license | package domain.squares.actionSquares;
import domain.MonopolyGameController;
import domain.squares.Square;
import domain.squares.propertySquares.DeedSquare;
import ui.Facade;
public class SubwaySquare extends Square {
public SubwaySquare() {
super("SubwaySquare", 0, 0);
// TODO Auto-generated construc... | true |
df24c47c1e30bb6d42a4dd0f34ac5da1a63a2c77 | Java | enaawy/gproject | /output/com.google.android.finsky.adapters.ab.java | UTF-8 | 141 | 1.53125 | 2 | [] | no_license | package com.google.android.finsky.adapters;
public abstract class com.google.android.finsky.adapters.ab
{
public abstract void a();
}
| true |
ad5ea22cb92a6dac9352bc026553e94c6ad67aaf | Java | MusienkoYuriy97/url-shortener-uaa | /src/main/java/by/solbegsoft/urlshorteneruaa/dto/ValidationConstant.java | UTF-8 | 498 | 2.203125 | 2 | [] | no_license | package by.solbegsoft.urlshorteneruaa.dto;
public class ValidationConstant {
public static final int MIN_PASSWORD_LENGTH=4;
public static final int MAX_PASSWORD_LENGTH=14;
public static final String PASSWORD_MSG="Password must contain from " + MIN_PASSWORD_LENGTH +" to " + MAX_PASSWORD_LENGTH + " character... | true |
21f07748a24a077efb1d1ea083ce3679f661c2e0 | Java | 1658544535/java | /src/com/tzmb2c/web/service/impl/ActivityProductServiceImpl.java | UTF-8 | 3,035 | 1.765625 | 2 | [] | no_license | package com.tzmb2c.web.service.impl;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import com.tzmb2c.web.dao.ActivityProductDao;
import com.tzmb2c.web.pojo.ActivityProductPojo;
import com.tzmb2c.web.service.Activity... | true |
41e287c9050cbd47081e1abdf0fdf25f8f13a4a6 | Java | nacos-group/nacos-examples | /spring-druid/src/main/java/com/alibaba/test/mapper/TestMapper.java | UTF-8 | 294 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | package com.liyh.test.mapper;
import com.liyh.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* test接口
*
* @Author: liyh
*/
@Mapper
public interface TestMapper {
SysUser getTestInfo(@Param("userId") String userId);
}
| true |
4ad17ddde3258dd2d61d077882fbfcffd35469da | Java | 603751448/AnComponents | /app/src/main/java/com/mti/component/master/App.java | UTF-8 | 1,311 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package com.mti.component.master;
import android.app.Application;
import com.scwang.smart.refresh.footer.BallPulseFooter;
import com.scwang.smart.refresh.footer.ClassicsFooter;
import com.scwang.smart.refresh.header.BezierRadarHeader;
import com.scwang.smart.refresh.header.FalsifyHeader;
import com.scwang.smart.refre... | true |
7d64c845664366a7f082811f60b9f44dfb6f6821 | Java | dvayanu/marsnews | /java/net/anotheria/marsnews/news/business/Clan.java | UTF-8 | 636 | 2.765625 | 3 | [] | no_license | package net.anotheria.marsnews.news.business;
public class Clan {
private String name;
private NewsTotals totals;
public Clan(String aName){
name = aName;
totals = new NewsTotals();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public NewsTotals ... | true |
db082b8ba211e34a58afd83325a01bc9784841d1 | Java | sunwuliang/SlicingProject2.0 | /org.csu.slicing.uml2withid/src/org/csu/slicing/UML2WithID/Operation.java | UTF-8 | 8,230 | 1.976563 | 2 | [] | no_license | /**
*/
package org.csu.slicing.UML2WithID;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Operation</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.csu.slicing.UM... | true |
f1df1654b5f2cfaaa1880db99e184c4b867ce910 | Java | HowardHub/designPatterns | /src/com/ln/design/j2ee/intercepting_filter/DebugFilter.java | UTF-8 | 290 | 2.078125 | 2 | [] | no_license | package com.ln.design.j2ee.intercepting_filter;
/**
* @Description
* @Author HeZhipeng
* @Date 2021/1/14 10:37
**/
public class DebugFilter implements Filter {
@Override
public void execute(String request) {
System.out.println("请求日志log: " + request);
}
}
| true |
1373ddf38487af6d33bc9701ab0deb03a614f9da | Java | xiaoguanmm/estate_fund | /com.upjf.fund.web/src/main/java/com/upjf/fund/web/controller/business/trade/ProjectManageController.java | UTF-8 | 33,930 | 1.65625 | 2 | [] | no_license | package com.upjf.fund.web.controller.business.trade;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import o... | true |
8ca4e3a25eb0783abf279982d7ff94ac81d29835 | Java | ajaykedia1992/Leetcode | /src/AbstractFactoryPattern/FactoryProducer.java | UTF-8 | 214 | 2.609375 | 3 | [] | no_license | package AbstractFactoryPattern;
public class FactoryProducer {
public static AbstractFactory getShape(boolean rounded) {
if (rounded) {
return new RoundShapeFactory();
}
return new ShapeFactory();
}
}
| true |
a77ccaf9f16a2397b1b1d0b890426bab207ba25a | Java | novotnyr/consul-intellij-plugin | /src/main/java/com/github/novotnyr/idea/consul/UnauthorizedConsulAccessException.java | UTF-8 | 241 | 1.851563 | 2 | [] | no_license | package com.github.novotnyr.idea.consul;
public class UnauthorizedConsulAccessException extends ConsulException {
public UnauthorizedConsulAccessException(Throwable cause) {
super("Unauthorized access to Consul", cause);
}
} | true |
e351731ba7679bd9427a5fdc71c301fcc9499262 | Java | MenciusCheng/menga-utils | /src/main/java/com/menga/war3/War3Demo.java | UTF-8 | 4,177 | 3.234375 | 3 | [] | no_license | package com.menga.war3;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import static com.menga.war3.War3Utils.*;
/**
* Created by Marvel on 2018/6/4.
*/
public class War3Demo {
public static void main(String[] args) {
// test1();
test5();
}
public stati... | true |
4d1354e92c7053a8b70436243afc909e37cda554 | Java | Vastland/Patterns | /src/main/java/com/webinar/patterns/factory/interfaces/CreateNewUserInterface.java | UTF-8 | 266 | 2.0625 | 2 | [] | no_license | package com.webinar.patterns.factory.interfaces;
import com.webinar.patterns.factory.utils.UserData;
public interface CreateNewUserInterface {
/**
* Create new user method
*
* @param userData
*/
void createNewUser(UserData userData);
}
| true |
ae5c80bb921909117b03d7dd18f46a4950f1ba5b | Java | mateuszlor/Kosodrzewina | /src/main/java/com/spring/start/AdvancedApplication.java | UTF-8 | 1,225 | 1.890625 | 2 | [] | no_license | package com.spring.start;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.build... | true |
4189fe79927f71c3b278938d96c8299c974d0ecc | Java | adamservis/workoutApp | /app/src/androidTest/java/com/main/toledo/gymtrackr/DatabaseWrapperTest.java | UTF-8 | 2,459 | 2.546875 | 3 | [] | no_license | package com.main.toledo.gymtrackr;
import junit.framework.Assert;
import junit.framework.TestCase;
public class DatabaseWrapperTest extends TestCase {
public void setUp() throws Exception {
super.setUp();
}
public void tearDown() throws Exception {
}
public void testBrowseExercisesByN... | true |
3b52b4dd32d2257c2ee3fe06c72da71b891bcb25 | Java | woutheijnen/RS-POP-Optimizer | /src/rs/pop/optimizer/ShipSettings.java | UTF-8 | 31,295 | 2.109375 | 2 | [
"MIT"
] | 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 rs.pop.optimizer;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.io.File;
import java.io.FileInputStream;
imp... | true |
2170761546db095a842b56eadc240ab4c2d64935 | Java | juno1985/Softcits-springboot-2020 | /src/main/java/org/softcits/cn/job/SyncWeather.java | UTF-8 | 547 | 2.015625 | 2 | [] | no_license | package org.softcits.cn.job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.softcits.cn.serivce.SyncWeatherData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;
public class SyncWeather extends Quart... | true |
98dd01e9142f8c96297c0cda5cdabe1eeb37cd25 | Java | ZHANGYOU710/Online-test | /src/cn/uu710/dao/StudentAnswerDao.java | UTF-8 | 6,545 | 2.5625 | 3 | [] | no_license | package cn.uu710.dao;
import cn.uu710.domain.PaperInfo;
import cn.uu710.domain.StudentAnswer;
import cn.uu710.domain.StudentInfo;
import cn.uu710.util.ConnUtil;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import ja... | true |
d15e111fef64788623698b899cf661b572e30df5 | Java | scinit/EvolutionaryAlgorithms | /Utils/Test/MatrixTest.java | UTF-8 | 3,183 | 2.59375 | 3 | [] | no_license |
import org.apache.commons.math3.linear.Array2DRowRealMatrix;
import org.apache.commons.math3.linear.EigenDecomposition;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.stat.correlation.Covariance;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Created b... | true |
a6861be69b0a2ae02ecd78609e03c032cf60cdb5 | Java | dipu11/spring-pilot | /src/main/java/com/example/module/service/MinioService.java | UTF-8 | 270 | 1.578125 | 2 | [] | no_license | package com.example.module.service;
/**
* Created by DIPU on 7/27/20
*/
public interface MinioService {
boolean uploadByUpdatedAPI(String name, byte[] bytes);
byte[] getFileStream(String key);
boolean deleteFile(String bucketName, String objectName);
}
| true |
39331fef14e93e2f16df76f3017f208a0c3e33eb | Java | yangmi2015/wuziqi | /src/state/Chessaction.java | UTF-8 | 1,289 | 2.65625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package state;
import em.player;
/**
*
* @author yangmi
*/
public class Chessaction {
private int X;
private int Y;
... | true |
87a135e5b73aa2f9a2b3c79cd0ffa94dabbbf6d9 | Java | Mumish/moduleWarMvc | /web/src/main/java/by/it/academy/controller/WelcomeController.java | UTF-8 | 1,303 | 2.203125 | 2 | [] | no_license | /*
* Copyright (C) 2014 GHX, Inc.
* Louisville, Colorado, USA.
* All rights reserved.
*
* Warning: Unauthorized reproduction or distribution of this program, or
* any portion of it, may result in severe civil and criminal penalties,
* and will be prosecuted to the maximum extent possible under the law.
*
... | true |
7d33b6b1c4a9f948959523205a76f134ec1b072f | Java | NikolayLyaskovski/OnlineShop | /src/main/java/com/example/online/shop/model/Address.java | UTF-8 | 677 | 2.34375 | 2 | [] | no_license | package com.example.online.shop.model;
import javax.persistence.*;
@Entity
@Table(name = "addresses")
public class Address {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long addressId;
@Column
private String street;
@ManyToOne
@JoinColumn(name = "cityId")
priva... | true |
5ee3f18acfe99b8ad06d5cdc48a1a16658d52a49 | Java | 1223127421/spring-cloud-demo | /demo-order/src/main/java/com/dao/OrderDao.java | UTF-8 | 345 | 1.75 | 2 | [] | no_license | package com.dao;
import com.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @Author: wangzhuyi
* @Date: 2019/3/5 10:46
* @Describe
*/
@Mapper
public interface OrderDao {
public List<Order> getAllList();
public voi... | true |
2bcd1dc8f1fb6eeb4d598291392c92794ab4d249 | Java | numberoverzero/Orbs | /src/Math/Shapes/Circle.java | UTF-8 | 1,223 | 3.296875 | 3 | [] | no_license | package Math.Shapes;
import com.badlogic.gdx.math.Vector2;
/**
* User: Joe Laptop
* Date: 4/5/12
* Time: 8:42 AM
*/
public class Circle {
// ------------------------------ FIELDS ------------------------------
public float Radius;
public float CenterX, CenterY;
// --------------------------- CONSTRUCTOR... | true |
8d866855f3b03e962c30e22833308c6b86d7294d | Java | vectormars/Movie-Recommendation-System | /Filter Pattern - Weighted Similarity/FourthRatings.java | UTF-8 | 4,247 | 3.09375 | 3 | [] | no_license | package com.Rec;
import java.util.ArrayList;
import java.util.Collections;
public class FourthRatings {
public double getAverageByID(String movieID,int minimalRaters){
double numID=0.0;
double sum=0.0;
ArrayList<EfficientRater> myRaters = RaterDatabase.getRaters();
// System.out.print... | true |
b4b7a8a9c34033d2e8ddcac02d5d5357c60ae005 | Java | Black-Lodge/UrlShortener | /team/src/main/java/urlshortener/blacklodge/services/CheckWordsServiceImpl.java | UTF-8 | 1,011 | 2.625 | 3 | [
"MIT"
] | permissive | package urlshortener.blacklodge.services;
import org.glassfish.grizzly.Grizzly;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import urlshortener.blacklodge.accessor.CheckWordsAccesor;
import java.util.logging.Logger;
/**
* Class that represents a serv... | true |
2eb5acba233a6ed689bccbd7093f350bce06c3b0 | Java | starztp/SpringProject | /spring-ioc/src/main/java/com/tianyou/spring/SpringDay5/SpringBean.java | UTF-8 | 755 | 3.0625 | 3 | [] | no_license | package com.tianyou.spring.SpringDay5;
public class SpringBean {
private String name;
private String gender;
{
System.out.println("执行代码块");
}
public SpringBean(){
System.out.println("执行构造方法");
}
public String getName() {
return name;
}
public void setNam... | true |
0dfbf4ac63d9387a7f82a27095bcfaad4ff93ceb | Java | prathameshdesai/NutriByte | /hw3/RecommendedNutrient.java | UTF-8 | 1,262 | 2.8125 | 3 | [] | no_license | package hw3;
//PRATHAMESH DESAI psdesai
import javafx.beans.property.FloatProperty;
import javafx.beans.property.SimpleFloatProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
public class RecommendedNutrient {
private final StringProperty nutrientCode = new S... | true |
1bc9cf9111982b9a66a9c1a0f47457793a65a1f5 | Java | SoberChina/delay | /src/main/java/com/sober/delay/entity/ExecuteLogEntity.java | UTF-8 | 1,821 | 2.21875 | 2 | [] | no_license | package com.sober.delay.entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* @author liweigao
* @date 2018/12/8 上午10:36
*/
@Builder
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "execute_log", ... | true |
a8b1843097df9eb1dd9ea8a9493938855fed0dcd | Java | sohretturaman/javaCampNotesAndHomW | /less4GameHomW3/src/less4GameHomW3/Main.java | UTF-8 | 2,120 | 2.84375 | 3 | [] | no_license | package less4GameHomW3;
import Concrete.CampaignMenager;
import Concrete.CheckPlayerData;
import Concrete.GameMenager;
import Concrete.GameSaleMenager;
import Concrete.PlayerMenager;
import Entities.Campaign;
import Entities.Game;
import Entities.GameSale;
import Entities.Player;
public class Main {
p... | true |
774c238ed330c8b6eff9de718ed6d2903dd096a3 | Java | Thuy119/Selenium-webdriver-api-testNG | /selenium/webdriver/Topic10_User_Interaction_Part1.java | UTF-8 | 4,828 | 2.59375 | 3 | [] | no_license | package webdriver;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions... | true |
058f707dcf66e0caeae1161c4547c4a6338adcc7 | Java | elek/rahakott | /src/main/java/net/anzix/rahakott/model/output/AccountGenerator.java | UTF-8 | 1,081 | 2.453125 | 2 | [] | no_license | package net.anzix.rahakott.model.output;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import net.anzix.rahakott.model.Account;
import net.anzix.rahakott.model.Transaction;
public class AccountGenerator ... | true |
e489056779157c8b499f3d83b38a25a9377e90af | Java | EXH3Y/TeleBot | /src/main/java/exh3y/telebot/data/keyboards/ForceReply.java | UTF-8 | 651 | 2.546875 | 3 | [
"MIT"
] | permissive | package exh3y.telebot.data.keyboards;
import org.json.JSONObject;
public class ForceReply implements ReplyMarkup
{
public boolean selective;
/**
* Creates a new ForceReply object
*
* @param selective
* @see <a href="https://core.telegram.org/bots/api#forcereply">https://core
* .telegram.org/b... | true |
a1346690ad395c016110257b6d614a841672929a | Java | shanjunpeng/xuxu | /src/test/Lotto.java | UTF-8 | 657 | 3.078125 | 3 | [] | no_license | package test;
import java.util.Arrays;
import java.util.Random;
public class Lotto {
public static void main(String[] args) {
boolean[] pool = new boolean[34];
int red[] = new int[6];
System.out.println(Arrays.toString(pool));
System.out.println(Arrays.toString(red));
int blue;
int i = 0;
Random ran = ... | true |
6807b85781f7e6957e9ef54f85c41517e23ba65c | Java | GarinZ/venus | /venus-common/src/main/java/art/meiye/venus/common/utils/IpUtils.java | UTF-8 | 1,378 | 2.421875 | 2 | [] | no_license | package art.meiye.venus.common.utils;
import org.apache.commons.lang3.StringUtils;
import javax.servlet.http.HttpServletRequest;
/**
* IP工具
* @author Garin
* 2020-08-26
*/
public final class IpUtils {
private IpUtils() {
}
public static String getIpAddress(HttpServletRequest request) {
S... | true |
851a42e674ebbf7ac16136578ef8a1dd95d6da86 | Java | brooktran/file-manager | /org.jeelee.filemanager/src/org/jeelee/filemanager/core/operation/CopyPathOperation.java | UTF-8 | 2,423 | 2.125 | 2 | [] | no_license | /* CopyOperation.java
* Copyright (c) 2012 by Brook Tran
* All rights reserved.
*
* The copyright of this software is own by the authors.
* You may not use, copy or modify this software, except
* in accordance with the license agreement you entered into
* with the copyright holders. For details see acc... | true |
ca2f6be7d4a6c05e6430eed1039fedc0a5e080ca | Java | sinterbrowser/Cobra | /src/com/lobobrowser/cobra/api/ua/NavigatorExtension.java | UTF-8 | 2,730 | 1.960938 | 2 | [
"MIT"
] | permissive | /*
Copyright 1994-2006 The Lobo Project. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of conditions and the following ... | true |
3835eb8b494e24d44b2060c1f71654eba889841e | Java | huming-china/Huika | /app/src/main/java/com/huika/hkmall/ui/my/login/UpGradeSuccessEvent.java | UTF-8 | 492 | 1.960938 | 2 | [] | no_license | package com.huika.hkmall.ui.my.login;
import java.io.Serializable;
public class UpGradeSuccessEvent implements Serializable {
/**
* @description: 准惠粉升级完成发送通知
* @author jxh
* @date 2015-8-7 上午9:05:37
*/
private boolean isSuccess;
private static final long serialVersionUID = -918353726002456050L;
... | true |
99ed7aae86d397ee338fda1ca49d95d498455e6d | Java | tidehc/eto-saas | /src/main/java/etocrm/model/user/UserUpdateStatusVO.java | UTF-8 | 568 | 2.03125 | 2 | [] | no_license | package etocrm.model.user;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Data
public class UserUpdateStatusVO implements Serializable {
private static final long serialVersionUID = 4391862216280718152L;
@NotNul... | true |
a63d4dc58aec2af6f694daea9916295ddb67f348 | Java | Awahab671/Selenium | /src/File.java | UTF-8 | 697 | 2.703125 | 3 | [] | no_license | public abstract class File {
abstract void open();
void edit(){
System.out.println("You can edit the file.");
}
public void close(){
System.out.println("You can close the file.");
}
class JavaFile extends File{
void open(){
System.out.println("You have to... | true |
870004bd104b864d1d9eb24df56f4a63afdf8971 | Java | hamza924/Android-app-eclipse-server | /IqbalHamza17007085.zip_expanded/IqbalHamza17007085/Vehicle Database/src/Ctrl.java | UTF-8 | 6,789 | 2.828125 | 3 | [] | no_license | import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletHandler;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Arra... | true |
a3f3898a428a0a6d8057c20f543c8426a8925cc3 | Java | baboon91/CBNU_JAVA | /10.13/ex6_6.java | UTF-8 | 320 | 2.71875 | 3 | [] | no_license | package test1;
public class ex6_6 {
static double getDistance(int x, int y, int x1, int y1){
double temp = Math.sqrt((x-x1)*(x-x1)+(y-y1)*(y-y1));
return temp;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(getDistance(1,1,2,2));
}
}
| true |
fe64b553cd476377338036fdfb5886a768dd96f9 | Java | BenHuiHui/Resources | /LectureNotesCollection/CS2010/ProblemSet/ps1/BabyNamesR.java/BSTVertexOfBabyNames.java | UTF-8 | 218 | 2.15625 | 2 | [] | no_license |
class BSTVertexOfBabyNames {
BSTVertexOfBabyNames(String v) { key=v; parent = left = right = null; height = 0; }
BSTVertexOfBabyNames parent, left, right;
String key=new String();
int height;
};
| true |
fa7ca968897a92865bc42cc09d54704cb76608b2 | Java | carolqian/Task13 | /Triplanner/src/com/example/triplanner/BusSchedule.java | UTF-8 | 3,780 | 2.25 | 2 | [] | no_license | package com.example.triplanner;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Activity;
import android.c... | true |
68cc14f3177793b183ba10cbeaf1cc6407eacfdd | Java | loustevenshere/happenUpon | /src/main/java/community/happenuponjava/repository/LocationRepository.java | UTF-8 | 243 | 1.710938 | 2 | [] | no_license | package community.happenuponjava.repository;
import community.happenuponjava.models.Location;
import org.springframework.data.repository.CrudRepository;
public interface LocationRepository extends
CrudRepository<Location, Long>
{
}
| true |
298d78755b20785a48a5f7f1601def8649ef6afc | Java | bahusdivus/homework | /solutions/src/test/java/ru/sberbank/school/task13/ProperTestSource.java | UTF-8 | 641 | 2.828125 | 3 | [] | no_license | package ru.sberbank.school.task13;
public class ProperTestSource {
private int intValue;
private boolean booleanVariable;
private String stringString;
public ProperTestSource(int intValueSource, boolean booleanVariableSource, String stringStringSource) {
this.intValue = intValueSource;
... | true |
32096e8f74a9e8ac60673460c35f1065656e36eb | Java | liuSiana/my-project | /src/test/java/com/lemon/day013/section1/ReaderAndWriterTester.java | UTF-8 | 786 | 3.21875 | 3 | [] | no_license | package com.lemon.day013.section1;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class ReaderAndWriterTester {
public static void main(String[] args) throws IOException {
File ... | true |
7c51e57293b806ba25d4389f117278dc97a5d030 | Java | KristoferMar/Java-Guide | /Context-Dependency-Injection/Dependency-Injection/Qualifier-Title.java | UTF-8 | 253 | 2.234375 | 2 | [] | no_license | Package com.dependency.injection.example.util
//This is a Qualifier annotation
// This is how we create our own annotation called @title.
@Qualifier
@Target({TYPE, METHOD, PARAMETER, FIELD})
@Retention(RUNTIME)
@Documented
public @interface Title {
}
| true |
cbb212e0b132bfa5652c8e78c03bd738b0c41a9b | Java | VeraOshyna1/Java_Basics_2020 | /jb-unit01/src/by/ld/unit01/main/Fifth.java | UTF-8 | 350 | 2.953125 | 3 | [] | no_license | package by.ld.unit01.main;
public class Fifth {
/*
*5. Напишите программу вычисления суммы четырёх слагаемых.
*/
public static void main(String[] args) {
int a=1;
int b=2;
int c=3;
int d=4;
int sum=0;
sum=a+b+c+d;
System.out.println("Sum="+sum);
}
}
| true |
c1ba291841c5283e38e516ccab5e59280f03ee29 | Java | jtp5/L3_Module_3 | /src/abstract_classes/cities/Boston.java | UTF-8 | 321 | 2.78125 | 3 | [] | no_license | package abstract_classes.cities;
public class Boston extends City {
public Boston(int population, double growthRate) {
super(population, growthRate);
// TODO Auto-generated constructor stub
}
@Override
double getAnnualTaxes() {
double base = population * growthRate;
return base + (population * .5);
}
}... | true |
f7160d900e0f2ef1a38e5c5c72ab3e421921c917 | Java | Daniumy/AppMusic-DAOPersistence | /src/main/java/um/tds/dao/AdaptadorUsuarioDAO.java | UTF-8 | 9,632 | 2.4375 | 2 | [] | no_license | package um.tds.dao;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.StringTokenizer;
import tds.driver.FactoriaServicioPersistencia;
import tds.driver.ServicioPersistencia;
import um.tds.dominio.Cancion;
import um.tds.... | true |
4410ef5e3852a3955f09a9561057b8342ff5fad0 | Java | web-praktika/kotouslugi | /src/main/java/ru/praktika/kotouslugi/model/Field.java | UTF-8 | 1,090 | 2.40625 | 2 | [] | no_license | package ru.praktika.kotouslugi.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
@Entity
@Table(name = "field")
public class Field implements Serializable {
@Id
@GeneratedValue
private ... | true |
ee02c1c4a4a753894e1b3602b215b5d169651d2c | Java | Tristanas/PSK-TP | /src/main/java/lt/vu/rest/contracts/TrainerDTO.java | UTF-8 | 284 | 1.734375 | 2 | [] | no_license | package lt.vu.rest.contracts;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Version;
@Getter @Setter
public class TrainerDTO {
private String Username;
private int Xp;
private int Level;
private int Id;
}
| true |
5b9812b8b757f20d07ac499bed8aa85edc368552 | Java | LibreHIS/framework | /ims/framework/cn/data/DiaryData.java | UTF-8 | 8,015 | 2.3125 | 2 | [] | no_license | package ims.framework.cn.data;
import java.util.ArrayList;
import java.util.List;
import ims.framework.enumerations.DiaryView;
import ims.framework.exceptions.CodingRuntimeException;
import ims.framework.utils.Color;
import ims.framework.utils.Date;
import ims.framework.utils.DateTime;
import ims.framework.utils.Imag... | true |
5cf7d2135791a0ea1e09ce430f5de506f7c7aaf7 | Java | Git-Ramesh/XmlAndXSD | /src/com/rs/xsd/validator/Book.java | UTF-8 | 1,282 | 2.40625 | 2 | [] | no_license | package com.rs.xsd.validator;
import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "book", namespace = "http://www.radiantsage.com/book")
public class Book {
private int isbn;
priva... | true |
04537b71c53a92b45648179e1e0e81b70fc58dee | Java | gizmomogwai/slideshow | /src/main/java/com/flopcode/slideshow/WhiteboardForHandler.java | UTF-8 | 896 | 2.515625 | 3 | [] | no_license | package com.flopcode.slideshow;
import mindroid.os.Handler;
public class WhiteboardForHandler {
private final Whiteboard whiteboard;
private final Handler handler;
public WhiteboardForHandler(Whiteboard whiteboard, Handler handler) {
this.whiteboard = whiteboard;
this.handler = handler;
... | true |
f2cb79263f631a6bb6a3ba2bb34759d54ba56470 | Java | erik9893/java_study | /03_java_array_advance/src/step3_01/arrayAdvance1/ArrayEx39_정답.java | UTF-8 | 850 | 3.609375 | 4 | [] | no_license | package step3_01.arrayAdvance1;
/*
중복 안된 숫자 제거
int[] test1= {1,2,3,2,1};
int[] test2= {1,3,4,4,2};
int[] test3= {1,1,1,2,1};
// 위 배열에서 중복안된숫자를 제거하시요
// 1) {1,2,1,2}
// 2) {4,4}
// 3) {1,1,1,1}
*/
public class ArrayEx39_정답 {
public static void main(String[] args) {
int[] t... | true |
ba4695940a2263f79efd99af012485ca085c7695 | Java | bowvernon110391/seriousproject | /GameEditor/src/com/bowie/gameeditor/GameWorld.java | UTF-8 | 2,499 | 3.203125 | 3 | [] | no_license | package com.bowie.gameeditor;
import java.util.ArrayList;
import java.util.List;
import com.jogamp.opengl.GL2;
/**
* @author Bowie
* This class represents a game world
* game world consists of:
* -GameObjects (logic)
* -Renderables (render)
*/
public class GameWorld {
// here be a more appropri... | true |
2e13c9d2f255dd88dfe2c4a61ad774ea850ec016 | Java | pgalina98/MiniWebShopAPI | /src/main/java/org/kingict/miniwebshop/repository/DiscountCodeRepository.java | UTF-8 | 402 | 2.015625 | 2 | [] | no_license | package org.kingict.miniwebshop.repository;
import org.kingict.miniwebshop.entity.Brand;
import org.kingict.miniwebshop.entity.DiscountCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface DiscountCodeRepository extends JpaRe... | true |
a009ac490678750d7a39522593c3519961f97d2c | Java | 15031699334/lingang | /src/main/java/com/boot/gang/mapper/ProvinceMapper.java | UTF-8 | 842 | 2.15625 | 2 | [] | no_license | package com.boot.gang.mapper;
import com.boot.gang.entity.Province;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
public interface ProvinceMapper {
int deleteByPrimaryKey(String cId);
int insert(Province record);
int insertSelective(Prov... | true |
d457d3983c9ed591b87e340ed2b719b0a59d28b3 | Java | DerekYangYC/Java7-Concurrency-CookBook | /src/chapter2/waitnotify/Producer.java | UTF-8 | 488 | 2.734375 | 3 | [] | no_license | package chapter2.waitnotify;
import java.util.concurrent.TimeUnit;
public class Producer implements Runnable {
private EventStorage storage;
public Producer(EventStorage storage){
this.storage=storage;
}
@Override
public void run() {
// TODO Auto-generated method stub
for(int i=0;i<100;i++){
storag... | true |
9af660ddd6463367c1ad5c89e6fd1e76db2ce3ee | Java | nuno1212s/Orb | /Machines/src/main/java/com/nuno1212s/machines/main/Main.java | UTF-8 | 2,147 | 2.203125 | 2 | [] | no_license | package com.nuno1212s.machines.main;
import com.nuno1212s.machines.commands.MachineCommand;
import com.nuno1212s.machines.inventories.InventoryManager;
import com.nuno1212s.machines.listeners.MPlayerJoinListener;
import com.nuno1212s.machines.listeners.MachineDestroyListener;
import com.nuno1212s.machines.listeners.Ma... | true |
da9c901b7503657aa811c4fa3411472f61682efb | Java | djenkins1/FitnessTracker | /src/main/java/com/djenkins/fitness/error/FitnessWeekErrorHandler.java | UTF-8 | 1,022 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.djenkins.fitness.error;
import javax.persistence.EntityNotFoundException;
import javax.validation.ConstraintViolationException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.s... | true |
bfb3e7dcfb46a695dae0e5052cafa1be25fc5995 | Java | PolianabSantos/LabProg2 | /LAB04/testes/AlunoTest.java | UTF-8 | 2,228 | 3.09375 | 3 | [] | no_license | import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
/**
* Classe criada para testar os métodos utilizados na classe 'Aluno'
* @author Walisson Farias - 117210716
*/
public class AlunoTes... | true |
9f86cb152b6a15e4d2b37162992eb0f08ae47dd8 | Java | Debanshu777/ExtJS-Movie-Crud-App | /src/com/debanshu777/dao/FilmHibernateDAOInterface.java | UTF-8 | 313 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | package com.debanshu777.dao;
import com.debanshu777.model.FilmPOJO;
public interface FilmHibernateDAOInterface {
public String fetch(String data_querry,int page,int total,String count_querry);
public void insert(FilmPOJO insertfilm);
public void update(FilmPOJO insertfilm);
public void delete(int id);
}
| true |
61907eb1e1c30805b0ea600d282540f5cdba977c | Java | Luxior13/Infinitode | /core/src/com/badlogic/gdx/p010a/p011a/C0254n.java | UTF-8 | 443 | 1.515625 | 2 | [] | no_license | package com.badlogic.gdx.p010a.p011a;
import com.badlogic.gdx.p010a.C0242c;
import com.badlogic.gdx.p010a.C0273e;
import com.badlogic.gdx.p016c.C0316a;
/* renamed from: com.badlogic.gdx.a.a.n */
public abstract class C0254n<T, P extends C0242c<T>> extends C0240a<T, P> {
public C0254n(C0238e c0238e) {
supe... | true |
58d616fcefaecbad0d1942221ee5a5e5e901cc35 | Java | ravisankarchinnam/need-for-speed | /src/main/java/com/github/ravisankarchinnam/speed/service/driver/filter/Filter.java | UTF-8 | 311 | 1.804688 | 2 | [] | no_license | package com.github.ravisankarchinnam.speed.service.driver.filter;
import org.springframework.data.jpa.domain.Specification;
/**
* Root Filter Interface should be implemented by all Filters.
*
* @param <T>
*/
public interface Filter<T>
{
Specification<T> getFilter();
Boolean isApplicable();
}
| true |
56bcbf4bee283d8544c0e4bb2ea377d5cb4c4a47 | Java | debugger1809/Java_Projects | /Assignments/Day1/Examples2/TestApp.java | UTF-8 | 209 | 1.640625 | 2 | [] | no_license |
class Test123
{
// declare a variables
// methods
}
public class TestApp {
public static void main(String arg[])
{
// we create objects of classes and calling methods
}
}
class App
{
}
| true |
b70ea2735036e93f949c3c464ddf9025a71462ec | Java | PrashantPalhade/SeleniumTrainingHandsOn | /seleniumtrainingshandsonartifacts/src/test/java/com/github/prashantpalhade/arithmetic/TestArithmetic.java | UTF-8 | 830 | 3.046875 | 3 | [] | no_license | package com.github.prashantpalhade.arithmetic;
import org.testng.Assert;
import org.testng.annotations.Test;
public class TestArithmetic {
@Test
void testAdd() {
Arithmetic arithmetic = new Arithmetic();
int result = arithmetic.add(4, 5);
Assert.assertEquals(9, result);
}
@Tes... | true |
4d18b827e4522a02c0a8cfd7aa9ec860f50f8f19 | Java | CHENXCHEN/ACMPractice | /src/main/java/leetcode/normal/j864/Solution.java | UTF-8 | 2,812 | 2.9375 | 3 | [] | no_license | package leetcode.normal.j864;
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
* Created by CHENXCHEN
* <a href="https://leetcode.cn/problems/shortest-path-to-get-all-keys/">864. 获取所有钥匙的最短路径</a>
*
* @author <a href="mailto:chenhuachaoxyz@gmail.com">报时</a>
... | true |
e27ed5ad60e428e2543d60064965057043bda192 | Java | shanjintianming/sjtm | /src/springDemo/core/aop/LogAop.java | UTF-8 | 958 | 2.484375 | 2 | [] | no_license | package springDemo.core.aop;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
... | true |
babbecf01d7d7fda86db5c03c38d2eb66ae6548b | Java | DibSarkar/DemoEcommerceMVVM | /app/src/main/java/com/app/nextgrocer/data/model/profile/ProfileRequest.java | UTF-8 | 380 | 2.109375 | 2 | [] | no_license | package com.app.nextgrocer.data.model.profile;
public class ProfileRequest {
private String customer_id;
public ProfileRequest(String customer_id) {
this.customer_id = customer_id;
}
public void setCustomer_id(String customer_id) {
this.customer_id = customer_id;
}
public St... | true |
e0177ed8349ec5054116404cf8ce80477c303b85 | Java | longveeshaw/rcpSystem | /.svn/pristine/db/dbaf77e6e39d1aac840df44582d91004105e0d5a.svn-base | UTF-8 | 1,109 | 2.140625 | 2 | [] | no_license | package cn.com.cdboost.collect.dto;
import java.io.Serializable;
/**
* 手机端登录成功返回DTO
*/
public class LoginSuccessResponse implements Serializable{
private static final long serialVersionUID = -2729578972087684305L;
/**
* 用户id
*/
private Long userId;
/**
* 人员姓名
*/
private Stri... | true |
9cef20a08c0f841fe07449e8cdd04354a3e0596b | Java | DongLantian/xining | /src/main/java/com/nankai/xining/bean/YearWeatherExample.java | UTF-8 | 22,060 | 2.265625 | 2 | [] | no_license | package com.nankai.xining.bean;
import java.util.ArrayList;
import java.util.List;
public class YearWeatherExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public YearWeatherExample() {
oredCriteria = new ArrayList<Criteria>();
... | true |
89716ff0262ee7756478eb434a25d3cea9447bbc | Java | msmtmsmt123/java-class-reader | /src/main/java/com/baislsl/decompiler/instruction/IF_ICMPLE.java | UTF-8 | 175 | 1.820313 | 2 | [
"MIT"
] | permissive | package com.baislsl.decompiler.instruction;
public class IF_ICMPLE extends IfICmpInstruction {
public IF_ICMPLE(){
super();
this.operator = "<=";
}
}
| true |
ca6f49edeca1de8dda5bad3823f8c1cd2313feb8 | Java | abodeltae/FoodRecipeProject | /app/src/main/java/com/example/aabdelnazeer/foodrecipeproject/DataLayer/repo/RecipeRepoImpl.java | UTF-8 | 1,371 | 2.265625 | 2 | [] | no_license | package com.example.aabdelnazeer.foodrecipeproject.DataLayer.repo;
import com.example.aabdelnazeer.foodrecipeproject.CallBacks.SuccessFailureCallBack;
import com.example.aabdelnazeer.foodrecipeproject.DataLayer.JsonProcessors.RecipeJsonProcessor;
import com.example.aabdelnazeer.foodrecipeproject.DataLayer.JsonProcesso... | true |
4014f85a09c7a6fc848dd41043b1845e2cd54703 | Java | lpalbou/minerva | /minerva-lookup/src/main/java/org/geneontology/minerva/lookup/CombinedExternalLookupService.java | UTF-8 | 1,295 | 2.5 | 2 | [] | permissive | package org.geneontology.minerva.lookup;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.semanticweb.owlapi.model.IRI;
public class CombinedExternalLookupService implements ExternalLookupService {
private final Iterable<ExternalLo... | true |
844fc541000d845b968922d810f6d80b1ec88865 | Java | georgenano/live-love | /src/com/appspot/livelove/controller/livelove/ViewArtistDetailController.java | SHIFT_JIS | 664 | 2.125 | 2 | [] | no_license | package com.appspot.livelove.controller.livelove;
import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;
import com.appspot.livelove.model.Artist;
import com.appspot.livelove.service.ArtistService;
import com.google.appengine.api.datastore.Key;
public class ViewArtistDetailController extends... | true |
e0fa5b30b2342944fdf351399d83d631212c81be | Java | andyballer/battleGame | /src/saveLoad/DemoObjectDef.java | UTF-8 | 273 | 2.4375 | 2 | [
"MIT"
] | permissive | package saveLoad;
public class DemoObjectDef extends Definition {
public int idThatDefinesDemoObject;
public DemoObjectDef (Class<?> c, int i) {
idThatDefinesDemoObject = i;
}
public int getId () {
return idThatDefinesDemoObject;
}
}
| true |
77ae41d441dd3f31a5be177795637d720e58b903 | Java | antonrasmussen/Banking-App-Using-JDBC | /src/main/java/com/revature/exception/BankRegistrationException.java | UTF-8 | 264 | 1.835938 | 2 | [] | no_license | package com.revature.exception;
public class BankRegistrationException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = -3706430178014220784L;
public BankRegistrationException(String message) {
super(message);
}
}
| true |
666b58423f9a50aba85db6ddfa2ad65ad9b8aa6c | Java | Joao-amoedo/PI_2 | /app/src/main/java/com/example/vprojetos/model/Usuario.java | UTF-8 | 6,158 | 2.078125 | 2 | [] | no_license | package com.example.vprojetos.model;
import android.app.Activity;
import android.util.Log;
import android.widget.Toast;
import com.example.vprojetos.Activity.LoginActivity;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
impo... | true |
025c54e524f66353688879a5086b95e0493ec6e2 | Java | nguyen-van-tu/football-maneger | /src/model/Match.java | UTF-8 | 2,204 | 2.625 | 3 | [] | no_license | package model;
import controller.ListFootballPlayer;
public class Match {
private String matchID;
private Club club1;
private Club club2;
private String stadium;
private int numOfGoalTeam1;
private int numOfGoalTeam2;
private ListFootballPlayer scorePlayer1;
private ListFootballPlayer ... | true |
fd15598836f8d96f9a7b23e7b94b22a509ca8dab | Java | k4584587/Needon-Community | /src/main/java/kr/needon/community/Module/Blog/BlogDAOImpl.java | UTF-8 | 1,005 | 2 | 2 | [] | no_license | package kr.needon.community.Module.Blog;
import java.util.List;
import kr.needon.community.Model.Blog;
import kr.needon.community.Model.Board;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Repository
publi... | true |
5d6d3cb3ab2807b4593d855cef10a5fa5b3a87cb | Java | reseachalps/IntegrationPipeline | /alps/src/main/java/it/unimore/alps/genericimporter/GenericImporter.java | UTF-8 | 14,223 | 2.296875 | 2 | [] | no_license | package it.unimore.alps.genericimporter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.... | true |
c68f5438c18c04a0462edfb89e49f8bef1776c48 | Java | bellmit/origin-1 | /edu_v3/edu_system/src/main/java/com/sjq/job/exception/JobException.java | UTF-8 | 764 | 2.34375 | 2 | [] | no_license | package com.sjq.job.exception;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
/**
*
*
* @author SJQ-ZeJie Zheng
* @since 2017年4月6日下午3:57:01
* @version 1.0
*/
public class JobException {
private Map<String, String> stepExecution = new HashM... | true |
2a315e845601a374abcbd87566f6417eec39a59e | Java | kelvenlaw/upms | /upms-app/src/main/java/com/weweibuy/upms/app/service/AppQueryService.java | UTF-8 | 1,004 | 2.03125 | 2 | [] | no_license | package com.weweibuy.upms.app.service;
import com.weweibuy.framework.common.core.utils.BeanCopyUtils;
import com.weweibuy.upms.app.model.dto.resp.AppRespDTO;
import com.weweibuy.upms.app.repository.AppRepository;
import com.weweibuy.upms.app.repository.AppTokenRepository;
import lombok.RequiredArgsConstructor;
import ... | true |
4f86da94aa54fd43c37156fb43e62fa832689b00 | Java | lukmie/SDA_COURSE | /190721Hibernate/src/main/java/com/lukmie/entity/Klient.java | UTF-8 | 2,321 | 2.328125 | 2 | [] | no_license | package com.lukmie.entity;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(schema = "sklep", name = "klient")
public class Klient {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column
private Integer id_klient;
@Column
private String i... | true |
31b40cfb9bc436c9543c5135b27a19cbf5439a43 | Java | MiaS-Git/Test3 | /Question3RDA.java | UTF-8 | 1,681 | 3.15625 | 3 | [] | no_license | class Main extends front {
private static class error extends Exception {
error(String message) {
super(message);
}
}
public static void main(String[] args) {
System.out.println("Program start");
}
public static void expr() {
System.out.println("Enter <expr>\... | true |
ccdc5491c865aae0fb56b52ee01f30b1427fedde | Java | AdelSarwat/Ecommerce-App | /Ecommerce App/app/src/main/java/com/example/ecommerceapp/dataBase/AsyncTask/GetPassword.java | UTF-8 | 525 | 2.21875 | 2 | [] | no_license | package com.example.ecommerceapp.dataBase.AsyncTask;
import android.os.AsyncTask;
import com.example.ecommerceapp.dataBase.CustomerDao;
import com.example.ecommerceapp.models.Category;
public class GetPassword extends AsyncTask<String,Void, String> {
private CustomerDao customerDao;
public GetPassword(Cust... | true |
142f353adce637dfe21d6b058a524534f95e00ea | Java | atealxt/work-workspaces | /HtmlUnitDemo/src/htmlunitdemo/servlet/IndexServlet.java | UTF-8 | 656 | 2.359375 | 2 | [
"MIT"
] | permissive | package htmlunitdemo.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
public class IndexServlet extends HttpServlet {
pr... | true |
4f1b7a8ebfaf8b86889506c92bf123ab14ff84ec | Java | neuguotian/demo01 | /src/main/java/com/miaosha/demo/ztestbook/Helloworld.java | UTF-8 | 266 | 2.21875 | 2 | [] | no_license | package com.miaosha.demo.ztestbook;
public class Helloworld {
private int i = 0;
private String name = "guotian";
public static void main(String[] args) {
System.out.println("hello");
System.out.println(new Helloworld().name);
}
}
| true |
29c999543f5a2ec4ca1f862cbaa002f5fa7cf2c2 | Java | ludomirc/lglibrary | /library-web/src/main/java/com/lg/servlet/library/util/LookupUtil.java | UTF-8 | 849 | 2.1875 | 2 | [] | no_license | package com.lg.servlet.library.util;
import com.lg.library.service.BaseService;
import sun.security.provider.PolicySpiFile;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import java.util.Properties;
/**
* Created by Benek on 2015-10-01.
*/
public class Lookup... | true |