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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fa093c36d99415cb789e05bbb8cd3167fd2f3824 | Java | AthinaDavari/JavaAssignment | /proderp/src/test/java/gr/aueb/dmst/pijavaparty/proderp/services/ValidVariablesTest.java | UTF-8 | 4,391 | 2.5625 | 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 gr.aueb.dmst.pijavaparty.proderp.services;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author Natalia... | true |
1031cd4684d7e4cbcf6cf1e21b9d01537d0bb778 | Java | ProjectEKA/data-notification-subscription | /src/main/java/in/projecteka/datanotificationsubscription/subscription/SubscriptionService.java | UTF-8 | 10,744 | 1.65625 | 2 | [] | no_license | package in.projecteka.datanotificationsubscription.subscription;
import com.google.common.collect.Sets;
import in.projecteka.datanotificationsubscription.clients.LinkServiceClient;
import in.projecteka.datanotificationsubscription.clients.UserServiceClient;
import in.projecteka.datanotificationsubscription.clients.mod... | true |
b8e1b1c1db10535b9a8d98aebede2fd5522052ce | Java | ktokunaga3003/training | /workspace_sys/freemarknProto/src/jp/co/flm/util/Encryption.java | UTF-8 | 2,538 | 3.359375 | 3 | [] | no_license | /**
* jp.co.flm.util.Encryption
*
* All Rights Reserved, Copyright Fujitsu Learning Media Limited
*/
package jp.co.flm.util;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* SHA256によるハッシュ化を実行するクラスです。
* @author FLM
* @version 1.0 YYYY/MM/DD
*/
public cla... | true |
6904c8fe10a95964d95de607c719af06a4eb2a6c | Java | jtallar/vestnet | /paw/model/src/main/java/ar/edu/itba/paw/model/enums/SearchField.java | UTF-8 | 877 | 2.890625 | 3 | [] | no_license | package ar.edu.itba.paw.model.enums;
/**
* Enum for search fields
*/
public enum SearchField {
PROJECT_NAME(1),
PROJECT_SUMMARY(2),
OWNER_NAME(3),
OWNER_MAIL(4),
PROJECT_LOCATION(5);
private int value;
SearchField(int value) {
this.value = value;
}
/** Getters */
pu... | true |
b575b8511a442d540131a54a8b8c8167a882fa63 | Java | 3lectrologos/OpenCVTutorial | /src/com/tutorials/secondsight/filters/ImageDetectionFilter.java | UTF-8 | 6,484 | 2.109375 | 2 | [] | no_license | package com.tutorials.secondsight.filters;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.opencv.android.Utils;
import org.opencv.calib3d.Calib3d;
import org.opencv.core.Core;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
import org.opencv.core.MatOfDMatch;
impo... | true |
3f53a9ab2d0a34a779c76fc64e597793b6baeb3c | Java | VIXXPARK/javaAlgorithm | /programmers/전화번호목록/Solution.java | UTF-8 | 548 | 3.03125 | 3 | [] | no_license | package programmers.전화번호목록;
import java.util.*;
public class Solution {
public boolean solution(String[] phone_book){
Map<String,Boolean> map = new HashMap<>();
for(String number: phone_book){
map.put(number,true);
}
for(String number: phone_book){
for (int i ... | true |
cbf664ae8c64bd1a562e5b01ccd109567ad716e4 | Java | michelleGong/ELog | /ELog/eloglibrary/src/main/java/com/mi/elog/FilePathGenerator.java | UTF-8 | 14,469 | 2.15625 | 2 | [] | no_license | package com.mi.elog;
import android.content.Context;
import android.os.Environment;
import android.os.SystemClock;
import android.text.TextUtils;
import com.mi.elog.acache.ACache;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* 日志文件的生成器
*
* @描述:该类根... | true |
024abdb4fdf2402918b31312e5d32db159c17f0f | Java | Esaron/apps | /wakeOnLanServlet/src/servlet/WoLServlet.java | UTF-8 | 948 | 2.5 | 2 | [] | no_license | package servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.*;
import javax.servlet.http.*;
public class WoLServlet extends HttpServlet {
/**
*
*/
private static final long serialVersionUID = -3385386385030875197L;
public void doGet(HttpServletRequest request... | true |
4aa375fd370999de267f0f4a3e0b924b6c60b4dc | Java | squirrelSun/Data_Structure | /Queue/MyQueue.java | UTF-8 | 640 | 3.40625 | 3 | [] | no_license | package Queue;
public class MyQueue {
int[] elements;
public MyQueue() {
elements = new int[0];
}
public void show() {
for(int i=0;i<elements.length;i++)
System.out.println(elements[i]);
}
public void add(int element) {
int[] Arrery=new int[elements.length+1];
Arrery[Arrery.le... | true |
97e2945318e4afa2b1adf3cf47b3a108f2639966 | Java | Goldiriath/Goldiriath | /src/main/java/net/goldiriath/plugin/game/mobspawn/MobSpawnProfile.java | UTF-8 | 9,888 | 2.03125 | 2 | [] | no_license | package net.goldiriath.plugin.game.mobspawn;
import java.util.HashSet;
import java.util.Set;
import java.util.logging.Logger;
import lombok.Getter;
import net.citizensnpcs.api.npc.NPC;
import net.goldiriath.plugin.Goldiriath;
import net.goldiriath.plugin.game.loot.LootProfile;
import net.goldiriath.plugin.game.citizen... | true |
9119d8dab56a89288cf21b42b8eed49a05fb8d9e | Java | MJohn2/OOP-Assignment2 | /src/assignment2/PostGrad.java | UTF-8 | 7,431 | 3.640625 | 4 | [] | no_license | /**
* PostGrad Class
* Michael John
* 19/10/2019
* PostGrad.java
*
* PostGrad.class is derived from the Student.Class. It has new variables to
* allow getting marks from the user and computing the unit final mark for
* PostGraduate students.
*
*
* @author Michael John
* @version 1.0
* @since 19/10/2019... | true |
7e2b8aa0ff1185b538e812d87fe854efca0fa510 | Java | JamesVeug/Hotel | /src/Objects/Entity.java | UTF-8 | 5,399 | 3.046875 | 3 | [] | no_license | package Objects;
import java.awt.*;
import java.util.*;
import java.io.File;
import javax.swing.ImageIcon;
import Hotel.HotelMap;
import Hotel.MapPoint;
import java.awt.geom.Rectangle2D;
public class Entity extends ObjectBase
{
protected File entityFile;
protected Dimension size;
protected ImageIcon dra... | true |
574a8a15e016b9d26c260e13dd43c6fc676f213a | Java | czarscripting/OSBot2 | /DreamBlaster/src/com/blaster/util/ScriptTimer.java | UTF-8 | 669 | 2.828125 | 3 | [] | no_license | package com.blaster.util;
import java.util.Date;
public class ScriptTimer {
public long start;
private Date lastDate;
public ScriptTimer start() {
return new ScriptTimer();
}
public ScriptTimer() {
reset();
}
public ScriptTimer reset() {
start = System.currentTimeMillis();
return this;
}
public l... | true |
2f3d05346c09aa6851b424a476ca6d87891c4721 | Java | julischuster/Ejercicio1 | /src/paquete/MainActivity.java | UTF-8 | 989 | 2.765625 | 3 | [] | no_license | package paquete;
public class MainActivity {
public static PaqueteTuristico paquetemascaro;
public static double preciomascaro = 0;
public static void main(String args[])
{
Individuo cliente1 = new Cliente("juan", 2000);
Paquetes paquetehabitaciones = new PaqueteHabitaciones(50, 2, 1.2);
Paquetes paquetefijo... | true |
e44da3fce65501e0caa9561576ff716574dd6f42 | Java | AD-SergioRamos5/Ejercicios-Propuestos-6 | /Ejercicios Propuestos 6/Ejercicio3.java | UTF-8 | 1,427 | 3.46875 | 3 | [] | no_license | import java.io.*;
import java.util.Scanner;
import java.nio.charset.StandardCharsets;
public class Ejercicio3
{
public static void main(String [] args)
{
if (! (new File("anotaciones.txt")).exists() ) {
System.out.println("No he encontrado anotaciones.txt");
return;
}
... | true |
d7c0d67f7b363cfa2a9017e7b269a62afaba6f66 | Java | lsylive/DataAnalysis | /analysisCommon/src/com/liusy/web/tag/ButtonTag.java | UTF-8 | 2,162 | 1.9375 | 2 | [] | no_license |
// ButtonTag.java
package com.liusy.web.tag;
import com.liusy.core.util.Const;
import com.liusy.core.util.Session;
import java.util.Map;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.BodyContent;
// Referenced ... | true |
fa35a8c5f30a63fd7e1ae659e418ea2e31bc1fb1 | Java | SenchenkoDV/JD2016-08-29 | /src/by/it/emelyanov/jd02_05/Message.java | UTF-8 | 211 | 1.835938 | 2 | [] | no_license | package by.it.emelyanov.jd02_05;
public interface Message {
String MESSAGE_WELCOME = "message.welcome";
String MESSAGE_USERNAME = "message.username";
String MESSAGE_QUESTION = "message.question";
}
| true |
8f4768ba6ae6a83fedcac9fd21a0dcae7e298103 | Java | 1wangxueyan2/SKS-MC | /src/com/more/mes/aps/month/base/MonthAction.java | UTF-8 | 3,132 | 1.695313 | 2 | [] | no_license | package com.more.mes.aps.month.base;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.more.fw.core.base.core.action.ModelAction;
import com.more.fw.core.base.login.model.UserDto;
import com.more.fw.cor... | true |
93f268599beb93623eaf01b5e008a3f2956516aa | Java | kalyssao/tlc_trader | /src/Bond.java | UTF-8 | 269 | 2.6875 | 3 | [] | no_license | public class Bond extends Trade{
private double dividend;
public double calcDividend(){
return this.dividend;
}
Bond(String id, String symbol, int quantity, double div){
super(id, symbol, quantity);
this.dividend = div;
}
}
| true |
58999b492124730184cd0c8f86f29b038d093942 | Java | hammedopejin/Capstone-Stage-2---Freegan | /app/src/main/java/com/planetpeopleplatform/freegan/utils/Utils.java | UTF-8 | 16,066 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | package com.planetpeopleplatform.freegan.utils;
import android.app.Activity;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Environment;
import android.os.ParcelFileDescriptor;
import andro... | true |
077d20841ddefdbac1f2d213fa81638a1fb90d80 | Java | Dragberry/hp | /happytime-core/src/main/java/by/happytime/domain/Order.java | UTF-8 | 5,780 | 2.4375 | 2 | [] | no_license | package by.happytime.domain;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax... | true |
050b60c3fce49fead346ddf6e50ebb0be1ee7410 | Java | Gnaixuj/RuN.sg | /app/src/main/java/com/example/cz2006trial/model/Point.java | UTF-8 | 1,234 | 2.71875 | 3 | [] | no_license | package com.example.cz2006trial.model;
import com.google.android.gms.maps.model.LatLng;
public class Point {
// name of a point marker on a map
private String name;
// coordinates of a point marker on a map
private LatLng location;
// description of a point marker on a map
private String descr... | true |
3731b75e1d314b493812dc9b54eb990667b9530c | Java | blueskyee/LeetCode | /src/Searcha2DMatrixII_240.java | UTF-8 | 1,633 | 3.40625 | 3 | [] | no_license | /**
* Created by henry on 2021/2/21.
*/
public class Searcha2DMatrixII_240 {
public static void main(String[] args){
int[][] matrix = {{1,4,7,11,15},{2,5,8,12,19},{3,6,9,16,22},{10,13,14,17,24},{18,21,23,26,30}};
Searcha2DMatrixII_240 s2 = new Searcha2DMatrixII_240();
System.out.println(s2... | true |
d5e5ff9401b7003a885dd33a84cf31870ff43e3b | Java | oswin5656/CardsAgainstHumanity | /src/game/package-info.java | UTF-8 | 280 | 1.789063 | 2 | [] | no_license |
/**
* Contains classes that have to do with the actual game of Cards Against Humanity itself.
* @version CAH1.0
* @since CAH1.0
* @author Holt Maki
* @see {@linkplain HouseRules}, {@linkplain CAH_Game}, {@linkplain CAH_GameComponents}, {@linkplain RulesMaker}
*/
package game; | true |
8a3898a4cdf8182226558112cef041815001453c | Java | freelanceapp/Tadlaly | /app/src/main/java/com/semicolon/tadlaly/Activities/MyAdsActivity.java | UTF-8 | 4,963 | 1.929688 | 2 | [] | no_license | package com.semicolon.tadlaly.Activities;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.support.v7.app.A... | true |
f339b2643ac03ac1226085371a468eb0ac4f0a4f | Java | tp900/Weather | /app/src/main/java/com/tp900/weather/util/Utility.java | UTF-8 | 3,930 | 2.296875 | 2 | [] | no_license | package com.tp900.weather.util;
import android.text.TextUtils;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.reflect.TypeToken;
import com.tp900.weather.db.City;
import com.tp900.weather.db.County;
import com.tp900.weather.db.Province;
import com.tp900.weather.gson.Weather;
im... | true |
343c5e3425e7604fa9b0954a0af0fcf6088e7896 | Java | samuelcsouza/Yu-Gi-Oh | /src/br/inatel/yugioh/view/EditarMonstro.java | UTF-8 | 34,026 | 2.125 | 2 | [] | no_license | package br.inatel.yugioh.view;
import br.inatel.yugioh.control.Deck;
import br.inatel.yugioh.model.Carta;
import br.inatel.yugioh.model.CartaMonstro;
import static br.inatel.yugioh.view.AlterarCartas.indiceSelecionado;
import java.io.File;
import java.util.ArrayList;
import javax.swing.ImageIcon;
import javax.swing.JF... | true |
692f81183e5b2dadea6a87b68489c8011d0ae678 | Java | YuanKJ-/HoVerticalCalendarView | /app/src/main/java/com/ykj/calendar/bean/WhCalendarBean.java | UTF-8 | 2,209 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package com.ykj.calendar.bean;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by admin on 2015/6/9.
*/
public class WhCalendarBean implements Parcelable{
private long beginDate;
private long endDate;
private String type;
private String beginFormat;
private String endForma... | true |
b6ce4de28e565194f528311849d0308549ef37ff | Java | alipay/alipay-sdk-java-all | /v2/src/main/java/com/alipay/api/response/AlipayTradeSettleConfirmResponse.java | UTF-8 | 1,221 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.trade.settle.confirm response.
*
* @author auto create
* @since 1.0, 2023-07-21 21:11:55
*/
public class AlipayTradeSettleConfirmResponse extends AlipayResponse {
p... | true |
fe81587d9bbbc2068434e6f28366f8cfb2882d88 | Java | thecodemonkeyau/taskadapter | /connectors/connector-msp/src/main/java/com/taskadapter/connector/msp/MSPExceptions.java | UTF-8 | 795 | 2.078125 | 2 | [] | no_license | package com.taskadapter.connector.msp;
import java.io.FileNotFoundException;
import net.sf.mpxj.MPXJException;
import com.taskadapter.connector.definition.exceptions.BadConfigException;
import com.taskadapter.connector.definition.exceptions.ConnectorException;
import com.taskadapter.connector.definition.exceptions.E... | true |
4027717f0e7f08f838664ceeaebfaf5baf5fc20a | Java | Gemmmm/yuxiu | /src/main/java/com/tc/yuxiu/model/SpecItems.java | UTF-8 | 1,008 | 2.078125 | 2 | [] | no_license | package com.tc.yuxiu.model;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
public class SpecItems {
@Override
public String toString() {
return "SpecItems{" +
"goodsId=" + goodsId +
", token='" + token + '\'' +
", sp... | true |
2700cda5d8ae526dc4b8262ff05acc7c73b197a6 | Java | spelinar/Szablony_TO | /sample-oop-project/src/main/java/com/mycompany/oop/abstractfactory/ConcreteFactory2.java | UTF-8 | 475 | 2.328125 | 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.mycompany.oop.abstractfactory;
/**
*
* @author 4
*/
public class ConcreteFactory2 implements AbstractFactory {
publi... | true |
bd63638ccf3d0df239de5fff727c369857fa8d15 | Java | Adefy/AdefyAndroid | /AdefyLib/src/main/java/com/sit/adefy/animations/Animation.java | UTF-8 | 336 | 2.40625 | 2 | [] | no_license | package com.sit.adefy.animations;
public class Animation {
// Signals that we've already animated, prevents future starts
private boolean mActive = false;
public void rendererAnimateStep(long time) {}
public boolean isActive() {
return mActive;
}
public void setActive(boolean active) {
mActive ... | true |
ca52be3a88b7154fb97b7348915847b33018a9f2 | Java | qiuyunduo/vhr | /vhrserver/vhr-mapper/src/main/java/cn/qyd/vhr/mapper/AdjustSalaryMapper.java | UTF-8 | 405 | 1.757813 | 2 | [] | no_license | package cn.qyd.vhr.mapper;
import cn.qyd.vhr.bean.AdjustSalary;
public interface AdjustSalaryMapper {
int deleteByPrimaryKey(Integer id);
int insert(AdjustSalary record);
int insertSelective(AdjustSalary record);
AdjustSalary selectByPrimaryKey(Integer id);
int updateByPrimaryKeyS... | true |
6553a968f1ad68c1ee770fb7e13ed4615bbcb01e | Java | e3rasdg4no/android | /app/src/main/java/com/eragano/eraganoapps/fragment/KinerjaFragment.java | UTF-8 | 3,314 | 2.03125 | 2 | [] | no_license | package com.eragano.eraganoapps.fragment;
import android.graphics.Color;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentTabHost;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.vie... | true |
276b242e40eb75f9f82d40e3c81efcbb75a481cf | Java | BastianBertram/GIPF-Game | /src/com/gipf/client/game/player/bot/BotMoveThread.java | UTF-8 | 2,737 | 2.765625 | 3 | [] | no_license | package com.gipf.client.game.player.bot;
import java.util.ArrayList;
import com.gipf.client.game.GameController;
import com.gipf.client.game.player.bot.action.Action;
import com.gipf.client.player.bot.algorithm.Algorithm;
import com.gipf.client.player.bot.evaluation.EvaluationFunction;
public class BotMoveT... | true |
37c84c9da80e83cd25e8f25ba8e00059e1b1a2ab | Java | coletteemurphy/advent1 | /src/com/colette/Advent.java | UTF-8 | 2,367 | 3 | 3 | [] | no_license | package com.colette;
import java.io.*;
import java.io.InputStream;
import java.util.Arrays;
import java.util.List;
public class Advent {
public static void main(String[] args) {
System.out.println("hello world");
//calculateFuel()
//checkOpCode
}
public static void checkOPCode()
{
... | true |
e23757f261fafc1dae765dadade40461b1a232bf | Java | smartdriver001/CoreJavaHorstmannExamples | /src/c08examples/Ex04.java | UTF-8 | 428 | 3.234375 | 3 | [] | no_license | package c08examples;
import java.util.stream.Stream;
public class Ex04 {
public static void main(String[] args) {
Double pow = Math.pow(2, 48);
Stream<Long> s = linearCongruentialGenerator(1, 25214903917L, 11, pow.longValue());
s.forEach(System.out::println);
}
private static Stream<Long> linearCongruenti... | true |
aa3d1ad5b34f71e7cdce72cc71b91fa10cb404b3 | Java | mukundlal/WorksApp | /app/src/main/java/thozhilali/com/thozhilali/Welcome.java | UTF-8 | 1,066 | 2.09375 | 2 | [] | no_license | package thozhilali.com.thozhilali;
import android.animation.ObjectAnimator;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.animation.LinearInterpolator;
import android.widget.ProgressBar;
import java.util.Timer;
import java.util.TimerTask;... | true |
1941a3c386e6ec10dcf660f06bce96542c9a5ead | Java | zhurongzeng/biz | /src/main/java/com/niu/biz/po/InformationInfo.java | UTF-8 | 2,401 | 1.90625 | 2 | [] | no_license | package com.niu.biz.po;
import com.niu.biz.annotation.GeneratedUID;
import lombok.Data;
import lombok.NonNull;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* 资讯消息表Model对象
*
* @author xiaohean
* @date 2018-05-10
*/
@Data
@Entit... | true |
ffe01f7b341b71e2c7d39b330189a2ec3bc031ce | Java | melfandary/AuctionHouse | /src/theauctionhouse/DebitPayment.java | UTF-8 | 246 | 1.890625 | 2 | [] | no_license |
package theauctionhouse;
public class DebitPayment implements payMethod {
@Override
public void pay(int amount, String sender, String reciever) {
; //To change body of generated methods, choose Tools | Templates.
}
}
| true |
0575ab0da192a92fe7c7db08e17bd40c3953028f | Java | RE-CoderMJ/Java | /12_IO/src/com/kh/chap03_char/run/FileCharRun.java | UTF-8 | 239 | 1.703125 | 2 | [] | no_license | package com.kh.chap03_char.run;
import com.kh.chap03_char.model.dao.FileCharDao;
public class FileCharRun {
public static void main(String[] args) {
FileCharDao dao = new FileCharDao();
//dao.fileSave();
dao.fileRead();
}
}
| true |
1f07f6acf7b9bfd17d51215d7b6e871ba3f73baa | Java | zct1115/Course | /app/src/main/java/com/example/zct11/course/message/Downloadmessage.java | UTF-8 | 962 | 2.609375 | 3 | [] | no_license | package com.example.zct11.course.message;
/**
* Created by zct11 on 2017/11/4.
*/
public class Downloadmessage {
private String url;
private String name;
private String size;
public Downloadmessage(String url, String name, String size) {
this.url = url;
this.name = name;
th... | true |
85de70962c858f920038b6d33aaa7d7201527ccf | Java | akashagrahari/chessGame | /src/test/java/com/example/game/model/piece/QueenPieceTest.java | UTF-8 | 3,502 | 2.5 | 2 | [] | no_license | package com.example.game.model.piece;
import com.example.game.model.PieceType;
import com.example.game.model.PlayerColour;
import com.example.game.model.Position;
import com.example.game.model.Spot;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import static com.... | true |
b0171d3df71ddf651a11520e5049a543ab5cbcb0 | Java | StajicVladimir/ITAcademy | /JavaFXFXML/src/javafxfxml/JavaFXFXML.java | UTF-8 | 1,231 | 2.375 | 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 javafxfxml;
import java.net.URL;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Sce... | true |
fc8aa7cf934ba2cfe40d0b416cb7d40761d84850 | Java | xeonye/portal | /portal_admin/src/main/java/com/infosmart/service/DwpasCModuleInfoService.java | UTF-8 | 1,187 | 2.125 | 2 | [] | no_license | package com.infosmart.service;
import java.util.List;
import java.util.Map;
import com.infosmart.po.DwpasCmoduleInfo;
public interface DwpasCModuleInfoService {
/**
* 根据菜单id,dateType获得模块信息
*
* @param dateType
* @param menuId
* @return
*/
List<DwpasCmoduleInfo> getDwpasCmoduleInfoByMenuId(String menuId... | true |
047ed13c118c893d3dce85579b5014f2304a7a05 | Java | rdx7777/CodersTrust-solutions-13-radoslaw | /src/test/java/pl/coderstrust/search/SearchingTestBase.java | UTF-8 | 2,692 | 3.109375 | 3 | [] | no_license | package pl.coderstrust.search;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
public abstract class SearchingTestBase {
public abstract SearchingMethod getSearchingM... | true |
963f4c8d8a5388c2ad1cf017a42e51e86220ac20 | Java | Scrin/DerpBot | /src/main/java/fi/derpnet/derpbot/handler/impl/GeoIp.java | UTF-8 | 4,467 | 2.453125 | 2 | [] | no_license | package fi.derpnet.derpbot.handler.impl;
import com.maxmind.geoip2.DatabaseReader;
import com.maxmind.geoip2.exception.GeoIp2Exception;
import com.maxmind.geoip2.model.CityResponse;
import com.maxmind.geoip2.record.City;
import com.maxmind.geoip2.record.Country;
import com.maxmind.geoip2.record.Location;
import com.ma... | true |
997a73d3a0e631de0c410840be120d514f196bab | Java | PauloSimoes/CalculatorProject | /calculator-api/src/test/resources/io/critical/start/calculator/tests/CalculatorJsonModule.java | UTF-8 | 502 | 1.507813 | 2 | [] | no_license | package io.critical.start.calculator.tests;
import com.fasterxml.jackson.databind.module.SimpleModule;
import io.critical.start.calculator.Calculator;
import org.springframework.stereotype.Service;
@Service
public class CalculatorJsonModule extends SimpleModule {
private static final long serialVersionUID = 1L;
... | true |
7da31c16fcd03643dd29acf225c160b2eeccfb93 | Java | VinsentY/JavaPratice | /静态初始化顺序.java | UTF-8 | 1,000 | 3.875 | 4 | [] | no_license |
package rely;
class Bowl {
public Bowl(int marker) {
System.out.println("Bowl(" + marker + "Construtor )");
}
void f1(int marker) {
System.out.println("f1(" + marker + ")");
}
}
class Table {
static Bowl bowl1 = new Bowl(1);
public Table() {
System.out.println("Table() Construtor");
}
void f2(int m... | true |
38edc58c9fd5431e57b02fcf31a64ea9ff4ae48e | Java | Yphas0128/ypier_cloud | /ypier-sqlserver/src/main/java/cn/ypier/SqlServerApplication.java | UTF-8 | 610 | 1.679688 | 2 | [] | no_license | package cn.ypier;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClien... | true |
c534ef7bee5b2d16177c4c6823aa302f678f84aa | Java | FadyFouad/DoctorStatus | /src/com/etaTech/Main.java | UTF-8 | 2,865 | 3.8125 | 4 | [] | no_license | package com.etaTech;
import java.util.Arrays;
import java.util.Calendar;
import java.util.HashMap;
import java.util.stream.IntStream;
/****************************************************
*** Created by Fady Fouad on 7/7/2019 at 23:04.***
***************************************************/
public class Main {
... | true |
1bed2ade0c4b8afdf85779fb75441cac28c3d609 | Java | iberotec/my-proyect-dawiijpa | / my-proyect-dawiijpa/ProyectoExamen_V3/src/edu/cibertec/bean/Respuestas_Usuario.java | UTF-8 | 2,931 | 2.046875 | 2 | [] | no_license | package edu.cibertec.bean;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
@Entity(n... | true |
43555c771a4f94da81e2212ab52def0621f3edb9 | Java | s335shar/Garg | /src/Basics3.java | UTF-8 | 1,687 | 2.03125 | 2 | [] | no_license | import static io.restassured.RestAssured.given;
import static org.hamcrest.Matchers.equalTo;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
import Files.resources;
import Files.PayLoad;
import org.testng.annotations.BeforeTest;
import org... | true |
9dd334d7b3591a9c4781e6e4330b6554f42e0e07 | Java | WidedBa/4P55WH8 | /src/DAO/Connexion.java | UTF-8 | 599 | 2.125 | 2 | [] | no_license | package DAO;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
public class Connexion {
public Connexion()
{
}
private EntityManager entityManager;
protected EntityManager getEntityManager()
{ if(entityManager==nul... | true |
7b15dfa5effedb2ceaacb5801d4f33c9c40bac21 | Java | pure-study/java-not-web | /javatest-gradle/src/main/java/net/will/javatest/basicconcept/jdk8/ConvertFuncImplViaMethodRef.java | UTF-8 | 243 | 2.484375 | 2 | [] | no_license | package net.will.javatest.basicconcept.jdk8;
public class ConvertFuncImplViaMethodRef {
public Integer convertWithIntegerValueOf(String s) {
IConvertFunc<String, Integer> t = Integer::valueOf;
return t.convert(s);
}
}
| true |
b68f015b7f76285a835b2a4d63a1445dab0142c9 | Java | mingyang66/spring-parent | /demo-emily-spring-boot/src/main/java/com/emily/infrastructure/test/test/SensitiveTest.java | UTF-8 | 701 | 2 | 2 | [] | no_license | package com.emily.infrastructure.test.test;
import com.emily.infrastructure.json.JsonUtils;
import com.emily.infrastructure.sensitive.SensitiveUtils;
import com.emily.infrastructure.test.po.json.JsonRequest;
/**
* 脱敏工具类
* @author Emily
* @since Created in 2023/4/17 5:07 PM
*/
public class SensitiveTest {
p... | true |
e953ff1f591c9e6b37d600cfc8d6170207fb3b2e | Java | vinu5683/BackendSpringBoot | /src/main/java/com/backendforthehindu/the_hindu_backend/TheHinduBackendApplication.java | UTF-8 | 351 | 1.640625 | 2 | [] | no_license | package com.backendforthehindu.the_hindu_backend;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class TheHinduBackendApplication {
public static void main(String[] args) {
SpringApplication.run(TheHinduBackendA... | true |
e6668e20ea4e2e1420bbc40a489e78d554618130 | Java | seniscz/metadata-management | /hive/src/test/java/HiveHook.java | UTF-8 | 2,067 | 2.28125 | 2 | [] | no_license | import org.apache.hadoop.hive.conf.HiveConf;
import org.apache.hadoop.hive.metastore.HiveMetaStoreClient;
import org.apache.hadoop.hive.metastore.api.FieldSchema;
import org.apache.hadoop.hive.metastore.api.MetaException;
import org.apache.hadoop.hive.metastore.api.NoSuchObjectException;
import org.apache.hadoop.hive.m... | true |
2a4b9a2cf95539a2e7575c6bd4a24a0554cd0420 | Java | Alexander175/The-Betweenlands | /java/thebetweenlands/world/teleporter/TeleporterBetweenlands.java | UTF-8 | 559 | 2.25 | 2 | [] | no_license | package thebetweenlands.world.teleporter;
import net.minecraft.entity.Entity;
import net.minecraft.world.Teleporter;
import net.minecraft.world.WorldServer;
public class TeleporterBetweenlands extends Teleporter
{
//TODO: No special functionality yet, just for testing purposes
public TeleporterBetweenlands(WorldSer... | true |
7d8c8ab9f96ab27fdddfdea78aa2b1e90dd6f67e | Java | gevoulga/spring-boot-quickfixj | /quickfixj-spring-boot-starter-flux/src/test/java/ch/voulgarakis/spring/boot/starter/quickfixj/flux/ReactiveFixSessionTest.java | UTF-8 | 5,644 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2020 Georgios Voulgarakis
*
* 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 ... | true |
70ea10522db320831e695dfc57eb2b6077f4e4bb | Java | javierpep/TestCLean | /data/src/main/java/co/jperezp/data/Interfaces/onShakeAction.java | UTF-8 | 103 | 1.914063 | 2 | [] | no_license | package co.jperezp.data.Interfaces;
public interface onShakeAction {
public void shakeAction();
}
| true |
a90c2dd490aaed4e25891f20e31b83714866117f | Java | zhiqinghuang/zest-java | /core/runtime/src/main/java/org/qi4j/runtime/injection/provider/ThisInjectionProviderFactory.java | UTF-8 | 5,189 | 1.765625 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"W3C"
] | 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 ... | true |
e42b97ce11767656f4bbf88459349b67d45d091e | Java | Auch-Auch/avito_source | /sources/com/google/android/gms/internal/mlkit_vision_face/zzbb.java | UTF-8 | 1,332 | 2.21875 | 2 | [] | no_license | package com.google.android.gms.internal.mlkit_vision_face;
import java.util.Iterator;
import java.util.Map;
public class zzbb<K, V> extends zzbg<K> {
public final Map<K, V> zzb;
public zzbb(Map<K, V> map) {
this.zzb = (Map) zzj.zza(map);
}
@Override // java.util.AbstractCollection, java.util.... | true |
a0476009ea0dc84ef46a77be4887b308a0707172 | Java | salvanos/isyfact-benutzerverwaltung | /isy-benutzerverwaltung-core/src/main/java/de/bund/bva/isyfact/benutzerverwaltung/persistence/basisdaten/dao/RollenDao.java | UTF-8 | 2,613 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package de.bund.bva.isyfact.benutzerverwaltung.persistence.basisdaten.dao;
/*-
* #%L
* IsyFact Benutzerverwaltung Core
* %%
* Copyright (C) 2016 - 2017 Bundesverwaltungsamt (BVA)
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lice... | true |
f9ec4d4af68f6a98dd02b7879aed95453f51541e | Java | shubhamsaxenacg/TrainingAssignments_DayWise | /Day 1/Assignment1/Student.java | UTF-8 | 2,389 | 3.890625 | 4 | [] | no_license | import java.util.*;
//contains constructor which takes the input of marks for three students
class Marks{
int marksSubject1;
int marksSubject2;
int marksSubject3;
int totalMarks;
int averageMarks;
Scanner sc = new Scanner(System.in);
Marks()
{
System.out.print("Enter the marks for subject1");
... | true |
efd9b9108a99900d5408cadb7f5bdac2219a3c5c | Java | daminimehra28/DoctorsDoor | /app/src/main/java/com/app/doctorsdoor/web/exception/PDException.java | UTF-8 | 217 | 2.046875 | 2 | [] | no_license | package com.app.doctorsdoor.web.exception;
/**
* Created by Pulah on 06-09-2018 3:22 PM.
*/
public class PDException extends Exception {
public PDException(String exception) {
super(exception);
}
}
| true |
c4cbe1e0fc91c4f9f7c35b58a1e85e146738ae9c | Java | cash2one/hospitalAdmin | /jumper-hospital-admin/src/main/java/com/jumper/hospital/vo/VONewsChanelAdd.java | UTF-8 | 803 | 2.125 | 2 | [] | no_license | package com.jumper.hospital.vo;
public class VONewsChanelAdd {
/** 结果 **/
private String result;
/** 默认订阅条数 **/
private long defaultNum;
/** 状态为显示的条数 **/
private long showNum;
public VONewsChanelAdd() {
super();
}
public VONewsChanelAdd(String result, long defaultNum, long showNum) {
super();
this.res... | true |
88900a5ca88f0a64ed6f4be45704c146e39ed768 | Java | apmasell/gisql-gui | /src/com/sun/forums/filteringtable/TableModelFilter.java | UTF-8 | 326 | 1.835938 | 2 | [] | no_license | package com.sun.forums.filteringtable;
import javax.swing.table.TableModel;
public interface TableModelFilter {
void addFilteree(FilteringTableModel filteringTableModel);
void removeFiltreee(FilteringTableModel filteringTableModel);
boolean shouldDisplay(FilteringTableModel source, TableModel base_tm,
int ro... | true |
df5b13a8dd86069d902ddaababf1527412a38ac4 | Java | DarkerMinecraft/3DGameEngine | /src/com/darkerminecraft/Game.java | UTF-8 | 1,990 | 2.546875 | 3 | [] | no_license | package com.darkerminecraft;
import org.joml.Vector3f;
import com.darkerminecraft.entity.Entity;
import com.darkerminecraft.graphics.Camera;
import com.darkerminecraft.graphics.DisplayManager;
import com.darkerminecraft.graphics.Light;
import com.darkerminecraft.graphics.Loader;
import com.darkerminecraft.graphics.Ma... | true |
128281517a1ba587f80f01a5b18d7a0af74c60dc | Java | BeLikeYangY/In-Class-Assignment-11 | /app/src/main/java/com/example/android/inclassassignment11_yangy/ItemActivity.java | UTF-8 | 991 | 2.28125 | 2 | [] | no_license | package com.example.android.inclassassignment11_yangy;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
public class ItemActivity extends AppCompatActivity {
private ImageView itemPhoto;
... | true |
d97be67cc02524aa7db81080179565aa20a29f2e | Java | JonathanBergers/TwitterApp | /app/src/main/java/saxion/nl/twitterapp/activities/BaseActivity.java | UTF-8 | 12,071 | 1.84375 | 2 | [] | no_license | package saxion.nl.twitterapp.activities;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
impor... | true |
76cb3e1f06dc0007c3f6dfe33cf4c55651791c08 | Java | y0mchy/Equation | /src/QuadraticEquation.java | UTF-8 | 1,172 | 3.75 | 4 | [] | no_license | // サブクラスQuadraticEquationを書く
public class QuadraticEquation extends Equation {
private double a, b, c;
public QuadraticEquation(double a, double b, double c) {
this.name = "QuadraticEquation";
this.a = a;
this.b = b;
this.c = c;
}
@Override
public void print() {
System.out.println(name + ": (" + a + "... | true |
f94823de8b5baac4e13ac294beecf84b30fcda63 | Java | marivgil/VSApp-Backend | /src/main/java/model/Round.java | UTF-8 | 591 | 2.28125 | 2 | [] | no_license | package model;
import javax.persistence.Id;
public class Round{
@Id
private String code;
private String name;
private String coordinator;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
... | true |
6611f871ee7490a8efd048be32beaeb874299463 | Java | pom30526/algo | /day0306/maxandmin.java | UTF-8 | 224 | 2.5625 | 3 | [] | no_license | package day0306;
import java.util.Scanner;
public class maxandmin {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x, y;
x=sc.nextInt();
y=sc.nextInt();
System.out.println(x);
}
}
| true |
a48c094d6a5713b0cf7fb07d820f34f852c56f81 | Java | QingGuang233/TimerExecutor | /src/com/qing_guang/TimerExecutor/plugin/cond/FakemanCondition.java | UTF-8 | 468 | 2.015625 | 2 | [] | no_license | package com.qing_guang.TimerExecutor.plugin.cond;
import com.qing_guang.TimerExecutor.plugin.main.Main;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class FakemanCondition implements Conditio... | true |
a22c6f51a1a4729b9026adb5d630de0eae3d79b1 | Java | Saukalt41/DuchessOfDamascus | /src/BYUI/cit260/DuchessOfDamascus/control/YahtzeeControl.java | UTF-8 | 5,038 | 2.484375 | 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 BYUI.cit260.DuchessOfDamascus.control;
import java.util.Objects;
import java.util.Random;
/**
*
* @author Blanc... | true |
317060037b75357c3ebca601655ef6e7c5d16a77 | Java | liuhao128/questionnaire | /src/main/java/com/tinyspot/question/mapper/AnswerMapper.java | UTF-8 | 610 | 2.078125 | 2 | [] | no_license | package com.tinyspot.question.mapper;
import com.tinyspot.question.entity.Answers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* @Author tinyspot
* @Time 2019/12/5-19:49
*/
@Mapper
public interface... | true |
54244c72868c68f8b1083cf82937a57e6c29592e | Java | YousefKhrais/Software_Security_Blockchain_Implementation | /src/Blockchain.java | UTF-8 | 3,046 | 3.09375 | 3 | [] | no_license | import java.util.ArrayList;
public class Blockchain {
public ArrayList<Block> chain;
public ArrayList<Transaction> pendingTransactions;
public int difficulty;
public int miningReward;
public Blockchain() {
this.pendingTransactions = new ArrayList<>();
this.chain = new ArrayList<>(... | true |
4a84a5c3bd08db8b0db97171b49f8fde45c9762f | Java | benwazza/hammer | /src/self/build/MainImpl.java | UTF-8 | 1,020 | 1.53125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2008-2009 Ben Warren
*
* 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 ... | true |
fd5a2354b94fd2d68e9e843124d5ba532e3892de | Java | happy6eve/cap-other | /cap-fileload/src/main/java/com/comtop/cap/runtime/dwr/CapFileUpload.java | UTF-8 | 3,734 | 2.15625 | 2 | [] | no_license | /******************************************************************************
* Copyright (C) 2015 ShenZhen ComTop Information Technology Co.,Ltd
* All Rights Reserved.
* 本软件为深圳康拓普开发研制。未经本公司正式书面同意,其他任何个人、团体不得使用、
* 复制、修改或发布本软件.
*****************************************************************************/
packag... | true |
8703c2ea5c0c9f9278c0a5a1ab36a87e9d680d47 | Java | CAMI-challenge/ObjectStorageWrapper | /objectstoragewrapper-swift/src/main/java/cami/objectstoragewrapper/swift/SwiftFile.java | UTF-8 | 1,263 | 2.453125 | 2 | [] | no_license | package cami.objectstoragewrapper.swift;
import cami.objectstoragewrapper.core.IFile;
import org.openstack4j.model.storage.object.SwiftObject;
import java.util.Date;
public class SwiftFile implements IFile {
private final SwiftObject swiftObject;
private final String name;
private final String path;
... | true |
62bdac518bf3d85b8e7885183779bb5b6e8695d0 | Java | MacarenaBS/AplicacionesInteractivas | /src/model/Factura.java | ISO-8859-1 | 8,778 | 2.890625 | 3 | [] | no_license | /*==================================================*/
/*=====================Package======================*/
/*==================================================*/
package model;
/*==================================================*/
/*=====================Imports======================*/
/*============================... | true |
560b8598476b1df17cee3561c61c7adeae41473f | Java | rakesh440/register | /Register/src/main/java/com/vis/dao/EmployeeService.java | UTF-8 | 572 | 1.726563 | 2 | [] | no_license | package com.vis.dao;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.transaction.support.TransactionTemplate;
import com.vis.model.UserRegistration;
public class Employ... | true |
bdadc9c7ef5a999bad3bd0fa58f5a0f495c04a8f | Java | moutainhigh/jysmall | /qhjys_mall_action/src/cn/qhjys/mall/mapper/FqAcardUserLotteryMapper.java | UTF-8 | 1,014 | 1.804688 | 2 | [] | no_license | package cn.qhjys.mall.mapper;
import cn.qhjys.mall.entity.FqAcardUserLottery;
import cn.qhjys.mall.entity.FqAcardUserLotteryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface FqAcardUserLotteryMapper {
long countByExample(FqAcardUserLotteryExample example);
int delet... | true |
2a94020a2c9d6ad375ea9a5eeef97ea658e322a1 | Java | vincenttuan/Java20210726 | /study/src/main/java/com/study/day22/SayHello.java | UTF-8 | 82 | 1.90625 | 2 | [] | no_license | package com.study.day22;
public interface SayHello {
void hello(String name);
}
| true |
554e5112ca6f9fa3fcc7a683816be2917ad41d01 | Java | sasikiran007/BSNLMCQ | /app/src/main/java/com/apps/kanchan/mcq/POJOs/Question.java | UTF-8 | 1,182 | 2.40625 | 2 | [] | no_license | package com.apps.kanchan.mcq.POJOs;
import java.util.ArrayList;
import java.util.List;
/**
* Created by root on 14/12/18.
*/
public class Question {
private String mQuestion;
private ArrayList<String> mOptions;
private int correctOption;
private int mImageResourceId;
private boolean isLocked;
... | true |
6d5e1c226dce2d3faf9af7ef31ec6e14acf3fce3 | Java | johimesa/Centripio | /order-service/src/main/java/com/geekshirt/orderservice/controller/OrderController.java | UTF-8 | 1,998 | 2.4375 | 2 | [] | no_license | package com.geekshirt.orderservice.controller;
import com.geekshirt.orderservice.dto.OrderRequest;
import com.geekshirt.orderservice.dto.OrderResponse;
import com.geekshirt.orderservice.entities.Order;
import com.geekshirt.orderservice.service.OrderService;
import com.geekshirt.orderservice.util.EntityDtoConverter;
im... | true |
44de779c92e2585177c4a6c4b3e5836ed0242d4d | Java | trangnguyen88/362_warehouse | /src/main/java/com/champion/dao/BaseDAO.java | UTF-8 | 2,259 | 2.640625 | 3 | [] | no_license | package com.champion.dao;
import javax.swing.plaf.nimbus.State;
import java.sql.*;
public class BaseDAO {
public BaseDAO(){
connect();
}
protected Connection connection = null;
private boolean connect(){
try {
Class.forName("com.mysql.jdbc.Driver");
... | true |
6611b4a9badfed24c7c4c26e1ae56ab63505b22a | Java | landsharkd/r1mini-command | /src/main/java/com/phicomm/smarthome/command/dao/RegistidMapper.java | UTF-8 | 797 | 1.867188 | 2 | [] | no_license | package com.phicomm.smarthome.command.dao;
import com.phicomm.smarthome.command.model.dao.RegistidModel;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
public i... | true |
709ed8bcd702cbe4e18d31b5ce054e9568153d6c | Java | sligokid/twitter4j-spring-mvc | /src/main/java/ie/eirwig/servlet/CsoServlet.java | UTF-8 | 2,993 | 2.40625 | 2 | [] | no_license | package ie.eirwig.servlet;
import ie.eirwig.spring.entity.CsoCityEntity;
import ie.eirwig.spring.entity.CsoFileParser;
import ie.eirwig.spring.entity.CsoType;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import j... | true |
045a09ea7f9e5a72bb4201abe8c480aa0aad87ae | Java | EvgenyUmansky/Project_ATDB | /src/org/bgu/ise/ddb/registration/RegistarationController.java | UTF-8 | 6,425 | 2.59375 | 3 | [] | no_license | /**
*
*/
package org.bgu.ise.ddb.registration;
import java.io.IOException;
import java.time.LocalDate;
import java.time.LocalDateTime;
import javax.servlet.http.HttpServletResponse;
import org.bgu.ise.ddb.ParentController;
import org.bgu.ise.ddb.User;
import org.springframework.http.HttpStatus;
import org.spring... | true |
81b381882c27f48e6dc41940eb839187524f5dfb | Java | bouzaien/medical-appointment-scheduling | /src/controle/Visite_ActiveC.java | UTF-8 | 3,479 | 2.765625 | 3 | [] | no_license | package controle;
import java.util.ArrayList ;
import java.util.Date ;
import java.util.List ;
import metier.Doctor ;
import metier.Patient ;
import presentation.Patient_ActiveP ;
import presentation.Visite_ActiveP ;
import rdv.Visite ;
public class Visite_ActiveC {
private Visite_ActiveP presentation ;
privat... | true |
e964e49407b3cf06a10703a3202505f56a2c872d | Java | at-study/at-study-java-core-2 | /src/main/java/lections/lesson5/custom_exceptions/NegativeAgeException.java | UTF-8 | 215 | 2.34375 | 2 | [] | no_license | package lections.lesson5.custom_exceptions;
public class NegativeAgeException extends IllegalAgeException {
public NegativeAgeException() {
super("Возраст отрицательный");
}
}
| true |
87fb63201ff9176d6214b483ec30546147036459 | Java | sjxxcode/custom_view | /src/main/java/com/sj/custom_view/practice/touch/MultiTouchActivity.java | UTF-8 | 750 | 1.9375 | 2 | [] | no_license | package com.sj.custom_view.practice.touch;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;
import com.sj.custom.R;
import com.sj.custom_view.MyClick;
/**
* Created by SJ on 2019/1/10.
*/
public class MultiTouchActivity extends FragmentActivity {... | true |
c2b48c74730a2d69302b1c2ed89e30510c6b8dca | Java | SeerLabs/CiteSeerX | /src/java/edu/psu/citeseerx/myciteseer/dao/GroupDAOImpl.java | UTF-8 | 19,247 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2007 Penn State University
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to... | true |
5dde17e0586274dc7207d0ffbbe864b00d3c6086 | Java | binjiewang/FundingOnline | /atcrowdfunding01adminparent/atcrowdfunding03-admin-component/src/main/java/com/atguigu/crowd/mvc/handler/AdminHandler.java | UTF-8 | 3,743 | 2.09375 | 2 | [] | no_license | package com.atguigu.crowd.mvc.handler;
import com.atguigu.crowd.constant.CrowdConstant;
import com.atguigu.crowd.entity.Admin;
import com.atguigu.crowd.service.api.AdminService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.acc... | true |
b0e14537f5283c7c0c15362c483f038c2a4f9be4 | Java | brendoncheung/rxjava-basics | /src/main/java/com/alephreach/main/operators/TransformingOperators.java | UTF-8 | 7,639 | 3.625 | 4 | [] | no_license | package com.alephreach.main.operators;
import com.alephreach.main.GlobalUtils;
import io.reactivex.Observable;
import io.reactivex.functions.Function;
import io.reactivex.functions.Predicate;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Comparator;
import java.util.concurren... | true |
12fdb5c76e36d3bff9e3d64d8e302e3cb2c8ae47 | Java | nihar01/Academia_ESD | /src/main/java/com/example/erp/service/CoursesService.java | UTF-8 | 351 | 1.953125 | 2 | [] | no_license | package com.example.erp.service;
import com.example.erp.bean.Courses;
import com.example.erp.dao.CoursesDao;
import com.example.erp.dao.impl.CoursesDaoImpl;
import java.util.List;
public class CoursesService {
CoursesDao coursesDao=new CoursesDaoImpl();
public List<Courses> getCourses (){
return co... | true |
06b468bee19d4a6bc329437658e72a569c7f0bea | Java | aristid-lavri/framed-text | /app/src/main/java/example/com/framedtext/FramedText.java | UTF-8 | 3,213 | 2.515625 | 3 | [] | no_license | package example.com.framedtext;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.View;
/**
* Created by AGNAMC on 7/5... | true |