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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b4cf1455668bf2907018959b9819adb0de5ceacd | Java | Sonhaack/ADS-assignment1 | /src/List/Stack.java | UTF-8 | 191 | 2.65625 | 3 | [] | no_license | package List;
import java.util.EmptyStackException;
public interface Stack<T> {
public boolean isEmpty();
public void push(T elm);
public T pop() throws EmptyStackException;
}
| true |
eda8f9904c4afd2c92a63144f434f58f52ffe9cc | Java | rkalz/CS203 | /Lab11/src/Pair.java | UTF-8 | 2,545 | 4.28125 | 4 | [] | no_license | /**
* Class representing paired object.
*
* @author spoudel
*
* @param <E>
* Type of object to pair.
*/
public class Pair<E> {
/**
* First element of the pair
*/
private E first;
/**
* second element of the pair
*/
private E second;
/**
* Constructor for creating a pair with two ele... | true |
d2b6149257a4b9fd93226a9bb42fe6bf529a15ed | Java | Jagannathan16/Project_0 | /project0Again/src/main/java/com/company/factory/Factory.java | UTF-8 | 1,122 | 2.734375 | 3 | [] | no_license | package com.company.factory;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;
public class Factory {
static Properties props = new Properties... | true |
02925d01289781ad5057681bbddc648417341961 | Java | Oaks907/bookspace | /LeetCode/src/S901_S1000/S988_SmallestStringStartingFromLeaf.java | UTF-8 | 1,885 | 3.265625 | 3 | [] | no_license | package S901_S1000;
import model.TreeNode;
import org.junit.Assert;
import org.junit.Test;
import javax.swing.*;
import java.util.Stack;
import java.util.stream.Stream;
/**
* https://leetcode.com/problems/smallest-string-starting-from-leaf/
* Create by haifei on 16/9/2019 8:05 AM.
*/
public class S988_SmallestStr... | true |
47838956cd69bc74f8267795f68c888e307fefc5 | Java | m1-bioinfo-amu-01/ProjetFinalFormation | /src/main/java/projetFinal/dao/DaoClientJpaImpl.java | UTF-8 | 2,665 | 2.53125 | 3 | [] | no_license | package projetFinal.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.TypedQuery;
import projetFinal.Context;
import projetFinal.entity.Client;
public class DaoClientJpaImpl implements DaoClient {
@Override
public List<Client>... | true |
58e0ff6c6720504f3564adf0af4d3617190f3df9 | Java | wanjinyan/wanjy | /src/main/java/com/wanjy/common/service/impl/ShopCarServiceImpl.java | UTF-8 | 499 | 1.554688 | 2 | [] | no_license | package com.wanjy.common.service.impl;
import com.wanjy.common.entity.ShopCar;
import com.wanjy.common.mapper.ShopCarMapper;
import com.wanjy.common.service.ShopCarService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 购物车 服务实现类
* </p... | true |
da2a8b5a56699d2969e5fbc5ba1b5d7e858358e8 | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/guardianproject_Gibberbot/src/info/guardianproject/otr/app/im/plugin/ImPluginInfo.java | UTF-8 | 1,592 | 1.710938 | 2 | [] | no_license | // isComment
package info.guardianproject.otr.app.im.plugin;
import android.os.Parcel;
import android.os.Parcelable;
/**
* isComment
*/
public class isClassOrIsInterface implements Parcelable {
/**
* isComment
*/
public String isVariable;
/**
* isComment
*/
public String isVari... | true |
a4f7dc02df3814810263652e012d67d273a7e87e | Java | ankitmodi/My-Programming-Pearls | /WorksApp2_ImmutableQueue.java | UTF-8 | 3,699 | 3.71875 | 4 | [] | no_license | package jp.co.worksap.global;
import java.util.NoSuchElementException;
public class WorksApp2_ImmutableQueue<E>
{
//Helper class : Implementing Immutable Queue using two stacks
private static class Stack<E>
{
private E top; //top element
private Stack<E> bottom; //Elements other than top are in a stack c... | true |
cedb946f96f2a1ed14e087fbb54124c87abff7ef | Java | theF4b1/InformatikChat | /InformatikChat/src/com/thef4b1/informatikchat/LoginActivity.java | UTF-8 | 3,123 | 2.3125 | 2 | [] | no_license | package com.thef4b1.informatikchat;
import android.os.Bundle;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
i... | true |
ad2658490bc7c09f07b77757331487f831547cc2 | Java | RobbDora/online-shop | /src/main/java/ro/msg/learning/strategies/types/StrategyType.java | UTF-8 | 124 | 1.820313 | 2 | [] | no_license | package ro.msg.learning.strategies.types;
public enum StrategyType {
SINGLE,
ABUNDANT,
GREEDY,
PROXIMITY
}
| true |
39b147a2d23f1f5fe6f5137211eda36351ea4919 | Java | well-behaved/xuexiong_test | /rabbitmqdemo/src/main/java/com/xue/demo/rabbit/demo1/Recv.java | UTF-8 | 1,193 | 2.46875 | 2 | [] | no_license | package com.xue.demo.rabbit.demo1;
import java.io.IOException;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.Consumer;
import com.rabbitmq.client.DefaultConsumer;
import com.rabbitmq.client.Envelope;
import com.rabbit... | true |
cc1f3ae1a19baacc8f903700b0559430210f9367 | Java | uib-behar/FussballLiga | /Fussball Liga1/sourceCodes/Spieltag.java | UTF-8 | 201 | 2.40625 | 2 | [] | no_license | import java.util.ArrayList;
public class Spieltag {
ArrayList<Spiel> arrSpiele = new ArrayList<>();
public Spieltag() {
}
public void spielSpeichern(Spiel s) {
arrSpiele.add(s);
}
}
| true |
7e0e0eb1daa8cd6d7653f733fbf39d8d31fae7cb | Java | baspiege/ezsched | /src/sched/data/DeleteTask.java | UTF-8 | 5,027 | 2.375 | 2 | [] | no_license | package sched.data;
import java.util.List;
import javax.jdo.PersistenceManager;
import javax.jdo.Query;
import javax.servlet.http.HttpServletRequest;
import sched.data.model.ItemToDelete;
import sched.data.model.Role;
import sched.data.model.ShiftTemplate;
import sched.data.model.Store;
import sched.data... | true |
ae61e37690fa10f9f18b55fc138fe788e4ed3d27 | Java | ali4heydari/TeamWorkChallenge | /src/main/java/models/Army.java | UTF-8 | 119 | 1.601563 | 2 | [] | no_license | package models;
import interfaces.Upgradable;
public abstract class Army extends Phenom implements Upgradable {
}
| true |
646c0e8b3ea917e4e60ee5600956d17b7786b44a | Java | iric-irri/portal | /chado-pg-orm/src/org/irri/iric/chado/so/ThrTrnaPrimaryTranscript.java | UTF-8 | 537 | 1.742188 | 2 | [] | no_license | package org.irri.iric.chado.so;
// Generated 05 26, 14 1:32:25 PM by Hibernate Tools 3.4.0.CR1
/**
* ThrTrnaPrimaryTranscript generated by hbm2java
*/
public class ThrTrnaPrimaryTranscript implements java.io.Serializable {
private ThrTrnaPrimaryTranscriptId id;
public ThrTrnaPrimaryTranscript() {
}
public Th... | true |
d3610dab0404f6a8284a38c74c44f03015ddcf62 | Java | Imagination-Realm/PongGL | /src/ponggl/Paddle.java | UTF-8 | 3,833 | 2.515625 | 3 | [] | no_license |
package ponggl;
import java.awt.Color;
import java.nio.ByteBuffer;
import java.nio.FloatBuffer;
import lib2d.GameObject;
import org.lwjgl.BufferUtils;
import org.lwjgl.opengl.*;
public class Paddle extends GameObject {
private final int NR_VERTICES = 4;
private final int VALUES_PER_VERTEX = 2;
private... | true |
67df8448c723ccd0f1546d6303c59f2c6f4cb057 | Java | GellioGao/MobileDevelopmentAssignment | /Java/app/src/main/java/com/gao/yingjian/mobiledevelopmentassignmentone/Views/HomeNavigationDrawerActivity.java | UTF-8 | 6,841 | 1.867188 | 2 | [
"MIT"
] | permissive | package com.gao.yingjian.mobiledevelopmentassignmentone.Views;
import android.content.Intent;
import android.os.Bundle;
import com.gao.yingjian.mobiledevelopmentassignmentone.Adapters.MainScreenAdapter;
import com.gao.yingjian.mobiledevelopmentassignmentone.DAOs.LogInfo;
import com.gao.yingjian.mobiledevelopmentassig... | true |
27e3e15a638c2a4c8254f4867f808f5be4cbf180 | Java | yyan1119/dzf_channel | /src/main/java/com/dzf/service/channel/impl/ChnPayConfServiceImpl.java | UTF-8 | 21,177 | 1.601563 | 2 | [] | no_license | package com.dzf.service.channel.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dzf.dao.bs.SingleObjectBO;
import com.dzf.dao.jdbc.... | true |
51c3b357d171d1a387277e46d990e07f82f3a242 | Java | jgarrealonso/spring-mvc-rest | /src/test/java/com/dioler/springmvcrest/services/CategoryServiceTest.java | UTF-8 | 1,874 | 2.375 | 2 | [] | no_license | package com.dioler.springmvcrest.services;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.when;
import com.dioler.springmvcrest.api.v1.mapper.CategoryMapper;
import com.dioler.springmvcrest.api.v1.model.CategoryDTO;... | true |
73aead8e73d54224c049eb4d795b89eb741a8003 | Java | sripriyamaturi/projects-management-system | /insert.java | UTF-8 | 5,063 | 2.609375 | 3 | [] | no_license | import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.DriverManager;
//import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.*;
public class insert
{
JFrame frame = new... | true |
22d88be58c7fa11e57ecd252939db3b33d197e98 | Java | zhangwei911/javaSocketServer | /src/main/java/viz/commonlib/socket/SocketApplication.java | UTF-8 | 530 | 1.945313 | 2 | [] | no_license | package viz.commonlib.socket;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import java.io.IOException;
@SpringBootApplication
public class SocketApplication {
public static void main... | true |
8763f5929e1f68ec83bd9e7b6fc07f24c0ac5d13 | Java | seariver-org/helloopenshift | /src/main/java/org/seariver/helloopenshift/HelloController.java | UTF-8 | 702 | 2.234375 | 2 | [] | no_license | package org.seariver.helloopenshift;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloController {
... | true |
1efbfa40b8f3042c0467921b0617a4dce00e9ca7 | Java | mcenirm/isotc211-src | /net/opengis/gml/x32/impl/VerticalCSDocumentImpl.java | UTF-8 | 2,772 | 1.835938 | 2 | [] | no_license | /*
* An XML document type.
* Localname: verticalCS
* Namespace: http://www.opengis.net/gml/3.2
* Java type: net.opengis.gml.x32.VerticalCSDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.gml.x32.impl;
/**
* A document containing one verticalCS(@http://www.opengis.net/gml/3.2) element... | true |
a3a37c367921d49f19fce170b3c0095eb3514138 | Java | YonatanYehezkel/Project | /RuthPetifours/src/NewMenu/ModelInvoice.java | UTF-8 | 6,302 | 2.4375 | 2 | [] | no_license | package NewMenu;
import java.math.BigDecimal;
//import de.michaprogs.crm.article.ModelArticle;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
public class ModelInvoice {
private int invoiceID = 0;
private String invoiceDate = "";
private int deliverybillID = 0;
p... | true |
17dae7d0aca19208dc75c1c6e8c499b59aeb759e | Java | Cortechs5511/Infinite-Recharge | /Outreach/src/main/java/frc/robot/subsystems/Limelight.java | UTF-8 | 1,913 | 2.4375 | 2 | [] | no_license | package frc.robot.subsystems;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.NetworkTableEntry;
import edu.wpi.first.networktables.NetworkTableInstance;
public class L... | true |
0ef39a80277f2a026c13ca6150a895cdf0245c5d | Java | specialkong/chodev | /chodev-web/src/main/java/egovframework/example/cmmn/web/AbstractPaginationRenderer.java | UTF-8 | 2,725 | 2.296875 | 2 | [] | no_license | package egovframework.example.cmmn.web;
import java.text.MessageFormat;
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationRenderer;
public abstract class AbstractPaginationRenderer implements PaginationRenderer {
protected String firstPageLabel;
protected String previousPageLabel;
protected S... | true |
b46c82f82dcdb27789362683bcb0e6035205510e | Java | aquadrini/java-circuit-breaker | /src/main/java/com/mercadolibre/resilience/breaker/stats/Stats.java | UTF-8 | 539 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.mercadolibre.resilience.breaker.stats;
public abstract class Stats {
public abstract long addSuccess();
public abstract long addFailure();
public abstract long successCount();
public abstract long failureCount();
public double failureRate() {
long fails = failureCount();
... | true |
89d0bb5fcfb3dd49ab761a036f7e2250b38c5182 | Java | marius199117/Automation-Testing | /src/main/java/common/Helper2.java | UTF-8 | 3,228 | 2.046875 | 2 | [] | no_license | package common;
import net.serenitybdd.core.pages.PageObject;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
import org.yecht.Data;
imp... | true |
42e60e69565cdf7dda967bbf3abbc62fb6dd7511 | Java | Self-Education-Liavontsi-Brechka/Spittr | /src/main/java/net/liavontsibrechka/spittr/web/controller/SpitterController.java | UTF-8 | 2,576 | 2.140625 | 2 | [] | no_license | package net.liavontsibrechka.spittr.web.controller;
import net.liavontsibrechka.spittr.Spitter;
import net.liavontsibrechka.spittr.data.SpitterRepository;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.Errors;
import org.springframework.web.... | true |
0de9d928bdb3e8dd4845c4278e19146c048531d2 | Java | chenzifeng1/algorithm-learn | /src/main/java/dynamicProgramming/DP_Bag.java | UTF-8 | 1,597 | 3.390625 | 3 | [] | no_license | package dynamicProgramming;
/**
* @ProjectName:
* @ClassName: DP_Bag
* @Author: czf
* @Description: 背包问题
* v[] 价值
* w[] 重量
* int bag 容量
* 选出符合容量的最大价值
*
*
* @Date: 2021/7/21 21:19
* @Version: 1.0
**/
public class DP_Bag {
public static void main(String[] args) {
int[] value = new int[] {
... | true |
369d2a9c832c14bb6041ffcdd71d00ce64b91c70 | Java | martinMamani/cursojavase | /Clase13/Clase12/src/ar/com/eduit/curso/java/test/TestConnection.java | UTF-8 | 945 | 2.59375 | 3 | [] | no_license | package ar.com.eduit.curso.java.test;
import ar.com.eduit.curso.java.connectors.ConnectorMySQL;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.Savepoint;
import java.sql.Statement;
public class TestConnection {
public static void main(String[] args) throws Exception{
... | true |
62ba0e27a908d2b71dcf7d4321332652aeafafdf | Java | yy9320/clonecoding_cp | /src/main/java/com/clonecoding/myapp/main/mainService/MainService.java | UTF-8 | 436 | 1.789063 | 2 | [] | no_license | package com.clonecoding.myapp.main.mainService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.clonecoding.myapp.main.VO.Greeting;
import com.clonecoding.myapp.main.mainDao.MainMapper;
@Service
public class MainService ... | true |
b480b6d002d9a743cf2b7a32f723057a6bbd4d68 | Java | RuuuvyGo/myProjects | /2015/socialPro/src/dto/CopiedProjectVDTO.java | UTF-8 | 2,239 | 2.46875 | 2 | [] | no_license | package dto;
public class CopiedProjectVDTO {
private String copiedProjectCode;
private String copiedFolderCode;
private String copiedPath;
private String copiedOwnerCode;
private String originProjectCode;
private String originFolderCode;
private String originPath;
private String originOwnerCode;
public Copi... | true |
774515325171074cfa9830634635633484239f7c | Java | SimoneBaselicePolimi/ingswAM2021-Baselice-Bagnoli-Brugnano | /src/main/java/it/polimi/ingsw/server/model/gameitems/developmentcard/DevelopmentCardsTableImp.java | UTF-8 | 5,293 | 2.96875 | 3 | [] | no_license | package it.polimi.ingsw.server.model.gameitems.developmentcard;
import it.polimi.ingsw.server.model.Player;
import it.polimi.ingsw.server.model.gameitems.GameItemsManager;
import it.polimi.ingsw.server.model.gameitems.cardstack.ShuffledCoveredCardDeck;
import it.polimi.ingsw.server.model.gameitems.cardstack.ShuffledCo... | true |
ba7169c9f7ba2c5ab755857395a56828a323138c | Java | Mahrous/complainant | /app/src/main/java/com/example/shehab/complainant/Login_Activity.java | UTF-8 | 4,621 | 2.203125 | 2 | [] | no_license | package com.example.shehab.complainant;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import a... | true |
ba159eafee78c09d9a229b73bb62da32acc21812 | Java | ipartek/web-zalla | /toni-garcia/JAVA/Pruebas/src/subastas/Subasta.java | UTF-8 | 1,614 | 2.859375 | 3 | [] | no_license | package subastas;
import java.util.ArrayList;
public class Subasta {
private String nombreObjeto = "";
private Usuario usur = new Usuario("nombre");
private boolean estado = true;
private ArrayList<Double> listaPujas = new ArrayList<Double>();
private double pujaMayor = 0.0;
public Subasta(String nombreObjet... | true |
2dec134670fd523d714400e8b8721d9ab42a722e | Java | UltraGameCoder/Survival-Islands | /SurvivalIslands/src/main/java/managers/Transaction.java | UTF-8 | 21,033 | 2.0625 | 2 | [] | no_license | package managers;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.OfflinePlayer;
import org.bukkit.ent... | true |
2461076afcc4f11a99a979240a777ed691681018 | Java | ABRUZI/octopus-slaver | /octopus-slaver/src/main/java/org/rhino/octopus/slaver/listener/remote/RemoteListener.java | UTF-8 | 2,030 | 2.296875 | 2 | [] | no_license | package org.rhino.octopus.slaver.listener.remote;
import org.apache.thrift.TProcessor;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.server.TServer;
import org.apache.thrift.server.TThreadPoolServer;
import org.apache.thrift.transport.TServerSocket;
import org.rhino.octopus.base.co... | true |
0d88bd6c65b80db6e9b8650c35cebdb0a66eb054 | Java | bkmzli1/InstallerDrizzle | /src/main/java/ru/bkmz/installer/controllerD/MainD.java | UTF-8 | 2,357 | 2.21875 | 2 | [] | no_license | package ru.bkmz.installer.controllerD;
import javafx.event.ActionEvent;
import javafx.scene.control.Button;
import javafx.scene.control.CheckBox;
import javafx.scene.control.Label;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;
import ru.bkmz.installer.util.ImageLoader;
import ru.bkmz.inst... | true |
0489811b68b9d04de458abb01f480b6a3a41e071 | Java | AlbertXe/xiang-xue-moudle | /my-springboot-autoconfig/src/main/java/com/config/HelloConfigProperties.java | UTF-8 | 424 | 1.90625 | 2 | [] | no_license | package com.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* @description:
* @author: AlbertXe
* @create: 2020-10-29 10:52
*/
@ConfigurationProperties(prefix = "hello")
public class HelloConfigProperties {
private String msg;
public String getMsg() {
... | true |
1241efee050f3b329adda2e87f538d26342021a4 | Java | hishidama/asakusafw-wrapper-plugin | /plugin/src/jp/hishidama/eclipse_plugin/asakusafw_wrapper/jdt/hyperlink/DeclaredMasterSelectionHyperlink.java | UTF-8 | 1,091 | 2.171875 | 2 | [] | no_license | package jp.hishidama.eclipse_plugin.asakusafw_wrapper.jdt.hyperlink;
import java.text.MessageFormat;
import jp.hishidama.eclipse_plugin.asakusafw_wrapper.internal.LogUtil;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.ui.JavaUI;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jf... | true |
3a88153b8e12cad9bc209c02ec43481a922ac94b | Java | kyle-love/student_homework_system | /JavaEE_01/src/main/java/org/example/javaee/class01/model/Homework.java | UTF-8 | 1,705 | 2.84375 | 3 | [] | no_license | package org.example.javaee.class01.model;
import java.sql.Date;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
public class Homework {
private Long id;
private String homeworkTitle;
private String homeworkContent;
private java.util.Date createTime;
private java.util.Date updateTime;... | true |
7e2b1d3c4f652377a4c02b7117cf3ccdcb64c3b4 | Java | Njanderson/Synapse-Repository-Services | /tools/tool-migration-utility/src/main/java/org/sagebionetworks/tool/migration/job/AWSInfo.java | UTF-8 | 710 | 2.234375 | 2 | [] | no_license | package org.sagebionetworks.tool.migration.job;
import com.amazonaws.auth.AWSCredentials;
/**
* Information need to work with S3 Objects.
* @author John
*
*/
public class AWSInfo {
private AWSCredentials credentials = null;
private String bucket = null;
public AWSCredentials getCredentials() {
... | true |
e059b76095552a46a0d58a7d58a84da729027a82 | Java | ZLBer/DaliyOfProgramme | /src/main/java/leetcode/leetcode500_999/leet806.java | UTF-8 | 492 | 2.828125 | 3 | [] | no_license | package leetcode.leetcode500_999;
public class leet806 {
public int[] numberOfLines(int[] widths, String S) {
int line=1;
int temp=0;
char []chars=S.toCharArray();
for(char c:chars){
temp+=widths[c-'a'];
if (temp>100) {
line++;
temp=w... | true |
f69afca847902feebf295af817ebc4c5f6f28db2 | Java | DhruvamSharma/Fidelity-ThinkFil | /thinkFIL/src/main/java/com/fil/thinkFIL/dao/models/User.java | UTF-8 | 2,752 | 2.125 | 2 | [] | no_license | package com.fil.thinkFIL.dao.models;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.pers... | true |
f691525992c410a6c9c8e3249a505d22f464d38c | Java | NabasaPatrick/MessageDriven | /KafkaMessageDriven/src/main/java/com/example/KafkaMessageDriven/KafkaMessageDrivenApplication.java | UTF-8 | 612 | 1.78125 | 2 | [] | no_license | package com.example.KafkaMessageDriven;
import java.util.HashMap;
import java.util.Map;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class KafkaMessageDrivenApplication {
public static void main(String[] args) ... | true |
6c97d4d5828171e7dddfc6634cbdcf3727c1bf79 | Java | Avery246813579/TheAveryBot | /src/com/frostbyte/theaverybot/loading/bots/BotLoading.java | UTF-8 | 1,257 | 2.53125 | 3 | [] | no_license | package com.frostbyte.theaverybot.loading.bots;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.frostbyte.theaverybot.sql.SqlHandler;
import com.frostbyte.theaverybot.util.ObjectUtil;
public class BotLoading {
public static List<ActiveBot> bots = new ArrayList<ActiveBot... | true |
f2e0aab16029255dde5ca63409aac959e0c74da4 | Java | FrankMbappe/Houser | /app/src/main/java/cm/btech2021/houser/adapters/HouseAdapter.java | UTF-8 | 3,657 | 2.40625 | 2 | [] | no_license | package cm.btech2021.houser.adapters;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recycle... | true |
1074622440b988f3ee839dcf63e9c0bb2831c991 | Java | ryangreenhall/intercept | /core/src/intercept/configuration/StubRequest.java | UTF-8 | 607 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package intercept.configuration;
import intercept.model.UriMatcher;
import static intercept.utils.UriMatchers.simpleMatcher;
import java.util.Map;
public class StubRequest {
String path;
String response;
public void define(Map<UriMatcher, StubResponse> stubs) {
UriMatcher key = simpleMatcher(pat... | true |
f90bf92133a5f1f8d5dc6407053e38869448f991 | Java | shaikji/algorithms | /ProblemSolving/src/com/jilani/graphs/MatrixProbability.java | UTF-8 | 875 | 3.609375 | 4 | [] | no_license | package com.jilani.graphs;
public class MatrixProbability {
public static void main(String[] args) {
int m = 5;
int n = 5;
int x = 1;
int y = 1;
int N = 2;
System.out.println(" Matrix probability after N moves to reach the boundary = " + findProbability(m, n, x, y,N));
}
static double fi... | true |
5da2c7bdc671049fb48f9b95e23445bc0e6f04f0 | Java | benja-123/fisisacback | /src/main/java/com/fisisac/developer/fisisackback/service/impl/ClasificadorGastoServiceImpl.java | UTF-8 | 882 | 2.1875 | 2 | [] | no_license | package com.fisisac.developer.fisisackback.service.impl;
import java.util.ArrayList;
import java.util.List;
import com.fisisac.developer.fisisackback.domain.ClasificadorGasto;
import com.fisisac.developer.fisisackback.repository.ClasificadorGastoRepository;
import com.fisisac.developer.fisisackback.service.Clasificad... | true |
801be622f5f5a497669665fe2d88fe4d6691faac | Java | bennypickard/DvcCodeGit | /COMSC-255/asStatus/src/asStatus/Rectangle.java | UTF-8 | 845 | 3.3125 | 3 | [] | no_license | package asStatus;
import javax.swing.JOptionPane;
public class Rectangle implements Status {
//instance variables
private double length;
private double width;
//constructor
public Rectangle(double l, double w)
{
length = l;
width = w;
}
//accessor methods
public double getLength()
{
return length... | true |
45064d5b5e13e673251051884f7a381dec70232c | Java | lilonglai/citi | /webservice/src/main/java/com/lex/webservice/UserWebService.java | UTF-8 | 725 | 2.3125 | 2 | [] | no_license | package com.lex.webservice;
import javax.jws.HandlerChain;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import java.util.ArrayList;
import java.util.List;
@WebService
@HandlerChain(file = "Handler.xml")
public class UserWebService {
public @WebResult(name = "User") User test... | true |
7446b8450b157b4c1a07fd334176ac35ddb6df6e | Java | gal-yedidovich/AndroidRepeaters | /MyNotifications/app/src/main/java/com/example/hackeru/mynotifications/NtfReceiver.java | UTF-8 | 1,943 | 2.34375 | 2 | [] | no_license | package com.example.hackeru.mynotifications;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.os.Build... | true |
ddf25fb6078171c72f7a150cfc57f34507551946 | Java | RedFriend/jpa-mongo-demo | /knowledge-ws/src/main/java/com/taiji/knowledge/ws/vo/WsDict.java | UTF-8 | 1,753 | 2 | 2 | [] | no_license | package com.taiji.knowledge.ws.vo;
import java.util.Date;
public class WsDict {
private static final long serialVersionUID = -287369810087816750L;
protected Long id;
protected String createBy;
protected Date createTime;
protected String updateBy;
protected Date updateTime;
protected... | true |
2db6ea9f01af532521651b45a5f727db1bd5b921 | Java | minyun02/Seoulmate-Spring-Project | /SeoulMate/src/main/java/com/seoulmate/home/dao/MateWriteDAO.java | UTF-8 | 1,565 | 1.882813 | 2 | [] | no_license | package com.seoulmate.home.dao;
import java.util.List;
import com.seoulmate.home.vo.HouseMatePagingVO;
import com.seoulmate.home.vo.ListVO;
import com.seoulmate.home.vo.MateWriteVO;
import com.seoulmate.home.vo.MemberVO;
import com.seoulmate.home.vo.PropensityVO;
public interface MateWriteDAO {
//메이트 등록
public in... | true |
6c60fd78ad5f2f4ef09ca78d6a2d0325c774b404 | Java | yu1085/Software-Design-Pattern | /src/main/java/com/example/designPattern/享元模式/FlyweightPattern.java | UTF-8 | 2,156 | 3.71875 | 4 | [] | no_license | package com.example.designPattern.享元模式;
import java.util.HashMap;
public class FlyweightPattern {
public static void main(String[] args) {
FlyweightFactory flyweightFactory = new FlyweightFactory();
Flyweight a = flyweightFactory.getFlyweight("a");
Flyweight b = flyweightFactory.getFlyweig... | true |
23feac9fed812e847af4c6b790d41847369d3adb | Java | killghost/framework | /framework-stock-commons/src/main/java/com/romaway/android/phone/cache/MinuteCacheHandlerMgr.java | UTF-8 | 2,781 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package com.romaway.android.phone.cache;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.Message;
import com.romaway.common.protocol.hq.HQFSZHProtocol;
import com.romaway.common.protocol.hq.HQKXZHProtocol;
/**
* 异步存增量缓存数据 (目前没用,想改进效率同学可以研究,小心竞争问题。)
*
* @aut... | true |
b3167ab4f732f6eb7f2c8c5484e37108fc0424a5 | Java | zhongxingyu/Seer | /Diff-Raw-Data/31/31_9e01216a1dd28439935c934092463d486b2c18c4/Solution/31_9e01216a1dd28439935c934092463d486b2c18c4_Solution_s.java | UTF-8 | 1,925 | 3.5 | 4 | [] | no_license | public class Solution {
class Pair{
int left;
int right;
public Pair(int left, int right){
this.left = left;
this.right =right;
}
}
private ArrayList<ArrayList<Integer> >getFours(int [] num, List<Pair> srcPairs,
List<Pair> destPairs){
ArrayList<ArrayList<Integer>> all = new ArrayList<ArrayLis... | true |
1a243307fbf0b719f077c9aca6e582bc72322a11 | Java | ADDYADAM/isd-voip | /inde/src/sip4me/gov/nist/siplite/stack/SIPServerRequestInterface.java | UTF-8 | 1,887 | 2.390625 | 2 | [] | no_license | /*******************************************************************************
* Product of NIST/ITL Advanced Networking Technologies Division (ANTD). *
*******************************************************************************/
package sip4me.gov.nist.siplite.stack;
import sip4me.gov.nist.siplite.message... | true |
25381a1d55691686565c1cb28c8f1de8cf72b9dd | Java | ajaybhat/Toy-Projects | /Assignment#3/src/com/airwatch/employee/EmployeeTest.java | UTF-8 | 4,237 | 3.78125 | 4 | [] | no_license | package com.airwatch.employee;
import java.util.*;
/**
* Created by ABhat on 12 Aug 2014 - 12/08/14.
*/
public class EmployeeTest {
public static void main(String[] args) {
Comparator<Employee> employeeComparator = new Comparator<Employee>() {
@Override
public int compare(Employ... | true |
5025d177ed63f5224518bc06e10cbb3dd2313c06 | Java | yqdaddy/space | /space-service-zhouyi/src/main/java/com/huyouxiao/space/zhouyi/enums/BoneYearEnum.java | UTF-8 | 5,246 | 2.546875 | 3 | [] | no_license | package com.huyouxiao.space.zhouyi.enums;
/**
* ganzhiList = ["甲子", "乙丑", "丙寅", "丁卯", "戊辰", "己巳", "庚午", "辛未", "壬申", "癸酉", "甲戌", "乙亥",
* "丙子", "丁丑", "戊寅", "己卯", "庚辰", "辛巳", "壬午", "癸未", "甲申", "乙酉", "丙戌", "丁亥",
* "戊子", "己丑", "庚寅", "辛卯", "壬辰", "癸巳", "甲午", "乙未", "丙申", "丁酉", "戊戌", "己亥",
* ... | true |
70cfe61976736033f2cbfeb268fc6f6c009cf8b8 | Java | Bessss-zyw/ebook | /bookstore_backend/src/main/java/com/reins/bookstore/service/BookService.java | UTF-8 | 1,235 | 2.3125 | 2 | [] | no_license | package com.reins.bookstore.service;
import com.reins.bookstore.constant.Constant;
import com.reins.bookstore.dao.BookDao;
import com.reins.bookstore.entity.Book;
import com.reins.bookstore.entity.BookImage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
... | true |
809b61adb67df634f4d44b16a7790451ce05bdfa | Java | byKyMy/Mlg-Rush-recoded | /src/main/java/me/byKyMy/mlgrush/Listener/NoPvP.java | UTF-8 | 487 | 2.015625 | 2 | [] | no_license | package me.byKyMy.mlgrush.Listener;
import me.byKyMy.mlgrush.gamestates.LobbyPhase;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
public class NoPvP implements Listener {
@EventHandler
public void onHit(EntityDamageByEntityEv... | true |
9daab7ab596f57a8c4a187cef1bfd5df831676e2 | Java | jwoolley/wrestler-mod | /src/main/java/thewrestler/cards/skill/Octopus.java | UTF-8 | 4,059 | 2.09375 | 2 | [
"MIT"
] | permissive | package thewrestler.cards.skill;
import basemod.abstracts.CustomCard;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.c... | true |
9e752b341ef3597794d36eb9bb1089542421c2b8 | Java | Kevinwong206/PCLabManagementSystem | /SoftwareModule.java | UTF-8 | 6,837 | 3.5 | 4 | [] | no_license | import java.io.*;
import java.util.ArrayList;
import java.util.Scanner;
public class SoftwareModule {
//create variables
private ArrayList<Software> sArray; //stores current running objects
private ArrayList<String> tempArray;
private String[] softwareName = new String[100];
private int ... | true |
51e2ba307869a45525e36ed35b31b4e2e6a46535 | Java | Daclas95/PageObject-Project-B4 | /src/test/java/test/plan/JobCatogoryTest.java | UTF-8 | 1,016 | 1.632813 | 2 | [] | no_license | package test.plan;
import com.pages.DashboardPage;
import com.pages.admin.EmploymentStatus;
import com.pages.admin.JobCatogoryPage;
import org.testng.annotations.Test;
import org.testng.asserts.SoftAssert;
import utils.TestBase;
public class JobCatogoryTest extends TestBase {
@Test
public void employeeTest() ... | true |
80c977408eb85e3e414cce85f424f177e1a74004 | Java | emirchus/HiddenKiller | /src/main/java/dev/emir/managers/GameManager.java | UTF-8 | 2,771 | 2.46875 | 2 | [] | no_license | package dev.emir.managers;
import dev.emir.Main;
import dev.emir.models.*;
import dev.emir.utils.Encrypter;
import dev.emir.utils.Multithreading;
import org.bukkit.GameMode;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
public class... | true |
5052b3ed3809a3e776cabfa70a18fa820861e79f | Java | ShekharChoudhary/practice.java.puzzles | /src/threads/puzzles/StatiscticsAggregator.java | UTF-8 | 195 | 2.078125 | 2 | [] | no_license | package threads.puzzles;
public interface StatiscticsAggregator {
void putNewPrice(String symbol, double price);
double getAveragePrice(String symbol);
int getTickCount(String symbol);
}
| true |
06c9fba0453fcb9d7726be96e80ff5990de7eae6 | Java | rlkb63569/community | /src/main/java/com/baizhi/controller/CommentController.java | UTF-8 | 1,901 | 2.1875 | 2 | [] | no_license | package com.baizhi.controller;
import com.baizhi.dto.CommentCreateDto;
import com.baizhi.dto.CommentDto;
import com.baizhi.dto.ResultDto;
import com.baizhi.exception.CustomizeErrorCode;
import com.baizhi.model.Comment;
import com.baizhi.model.User;
import com.baizhi.service.CommentService;
import org.springframework.b... | true |
fa669da53104a47e705228c60960dbd02c3b0275 | Java | onero/JavaFXComponents | /DigitalClock/src/digitalclock/gui/controller/DigitalClockMainController.java | UTF-8 | 2,401 | 2.84375 | 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 digitalclock.gui.controller;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.ut... | true |
481e1af7f9e7a59953b79a5e1422fa610cdb2195 | Java | duydatpham/react-native-tuya-minisdk | /android/src/main/java/com/hogar/tuyaminisdk/activator/TuyaActivatorModule.java | UTF-8 | 2,374 | 1.804688 | 2 | [] | no_license | package com.hogar.tuyaminisdk.activator;
import android.content.Intent;
import android.os.Handler;
import androidx.annotation.NonNull;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebo... | true |
0e6fd18c06899cdd8aaab6b83f40ad7bbdd772f8 | Java | teodorst/eim | /schelet/MyApplication/app/src/main/java/ro/pub/cs/systems/eim/scheletapplication/general/Constants.java | UTF-8 | 559 | 1.53125 | 2 | [] | no_license | package ro.pub.cs.systems.eim.scheletapplication.general;
public interface Constants {
public final static boolean DEBUG = true;
public final static String TAG = "Colocviu";
public final static String SERVER_HOST = "localhost";
public final static int SERVER_PORT = 2014;
public final static Stri... | true |
1d2859b03adc6db13b1cac29a1ccf44966ce1579 | Java | skoopsk8/Conquest | /src/com/nasser/poulet/conquest/menu/Font.java | UTF-8 | 787 | 2.671875 | 3 | [
"MIT"
] | permissive | package com.nasser.poulet.conquest.menu;
import org.newdawn.slick.*;
import org.newdawn.slick.Image;
import java.awt.*;
import java.util.Hashtable;
import java.util.Map;
/**
* Created by Thomas on 12/30/13.
*/
public class Font {
static public Map<String, TrueTypeFont> fonts = new Hashtable<String, TrueTypeFon... | true |
77f4cbdc57e5aa83d8b3df9f1146871b5f3f724b | Java | ruffy0002/anthena | /AnthenaPC/src/entity/Collectable.java | UTF-8 | 2,911 | 2.515625 | 3 | [] | no_license | package entity;
import javafx.geometry.Bounds;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.effect.BlendMode;
import javafx.scene.effect.Bloom;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import resource.Resources;
public class Collectable extends Sprite {
pr... | true |
14c253706f929a2d42be1d33e3931422e29acd59 | Java | moutainhigh/scanPosp | /src/main/java/com/epay/scanposp/common/utils/slf/vo/DeductInfo.java | UTF-8 | 2,201 | 2.25 | 2 | [] | no_license | package com.epay.scanposp.common.utils.slf.vo;
/**
* 支付信息对象
* @author administrator
*
*/
public class DeductInfo {
private String payOrderId = "";
private String payAmt = "";
private String payTime = "";
private String payStatus = "";
private String payDesc = "";
private String xml="";
/**
* ... | true |
f415c3dc8151e0e04a8f82b156f00a486965b987 | Java | zhonglh/logisticsc | /logisticsc/src/main/java/com/brightsoft/controller/tms/platform/financialmanager/FinancialManagerController.java | UTF-8 | 14,330 | 1.671875 | 2 | [] | no_license | package com.brightsoft.controller.tms.platform.financialmanager;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.... | true |
b088d6042c7f2709fc7bf8d822ac7c3f5ea480a3 | Java | extFM/extFM-Tooling | /tests/org.js.model.feature.test/src/test/java/org/js/model/feature/TestModel.java | UTF-8 | 1,848 | 1.992188 | 2 | [] | no_license | package org.js.model.feature;
import java.io.IOException;
import java.net.URL;
import java.util.Collections;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource.Factory;
import org.eclipse.emf.... | true |
17e53b287638ca4f673d65a9168922fb06b431f0 | Java | TheArchitect123/Xcode-Portfolio-Projects | /SWAPIConsumer.Droid/app/src/main/java/ui/activities/DashboardActivity.java | UTF-8 | 1,455 | 1.921875 | 2 | [
"MIT"
] | permissive | package ui.activities;
import android.content.ComponentName;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import com.dg.swapiconsumer.R;
import ui.view_b... | true |
c712ff654a35f13e5e969f5d2165fce49c036c49 | Java | ngotruongtn99/Rocket_13 | /Java/Assignment 5/TestingSystem_Assignment_5/src/com/vti/entity/Ex1/Q2/Student.java | UTF-8 | 698 | 3.171875 | 3 | [] | no_license | package com.vti.entity.Ex1.Q2;
public class Student {
private int id;
private String name;
private String address;
private int priority;
private KhoiThi khoiThi;
public int getId() {
return id;
}
private static int CODE = 0;
public Student(String name, String address, int priority, KhoiThi khoiThi) {
... | true |
3bb182b20affff67a4ac64c7cbc9b296bd5ee0a5 | Java | skchaudhary/Data-Structure-Algorithms | /CompanyPreparation/src/main/java/com/studypoint/hackerEarth/byju/ManHattanMatrix.java | UTF-8 | 2,362 | 3.03125 | 3 | [] | no_license | package com.studypoint.hackerEarth.byju;
import com.learn.util.MyReader;
import java.util.*;
public class ManHattanMatrix
{
static MyReader mr;
public static void main(String[] args) {
mr=new MyReader();
int t=mr.nextInt();
while (t-->0){
int m=mr.nextInt();
in... | true |
67fac96fcb379f753e48c8a4b47d9f6ad73e7995 | Java | cztwin/test | /src/com/czt/hello/User.java | UTF-8 | 940 | 2.703125 | 3 | [] | no_license | package com.czt.hello;
import java.util.Date;
public class User {
private String id;
private String name;
private Integer age;
private Date brithDay;
public User(String id, String name, Integer age, Date brithDay) {
this.id = id;
this.name = name;
this.age = age;
... | true |
219d5b7785279e8d6f26d7747ea1c6b3fde82fc0 | Java | Michal-dotcom/Testowanie | /src/test/java/Zad3Test.java | UTF-8 | 385 | 2.25 | 2 | [] | no_license | import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class Zad3Test {
@Test
void dodawacz() {
int[] daneWejsciowe = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int[] wynik = new Zad3().dodawacz(daneWejsciowe);
int[] oczekiwanywynik = {4, 6, 8, 10, 12, 14, 16, 18, 9... | true |
0f0c4ac166e40cd2b6c2efc02bdf8ae38abda7c0 | Java | jinricheng/surfdev | /app/src/main/java/myaplication/tfg/org/models/Address.java | UTF-8 | 1,337 | 2.578125 | 3 | [] | no_license | package myaplication.tfg.org.models;
/**
* Created by jin on 2015/5/29.
*/
public class Address {
private String streetName="";
private String code="";
private String telefon="";
private String countryName="";
private String cityName="";
public Address(){
}
public Address(String str... | true |
465406083b4c3f1a08e270dd2470909af0503770 | Java | CheolHo-0428/AdminPage | /src/main/java/com/example/study/repository/AdminUsersRepository.java | UTF-8 | 298 | 1.632813 | 2 | [] | no_license | package com.example.study.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.example.study.model.entity.AdminUsers;
@Repository
public interface AdminUsersRepository extends JpaRepository<AdminUsers, Long> {
}
| true |
cba7ace4fcf82cf62c46419c6ab2046be8db556a | Java | dipeshji/javaWorkSpace | /SpringWorkSpace/Coupling/src/com/tightcoupling/Main.java | UTF-8 | 373 | 2.109375 | 2 | [] | no_license | /*
* output is coupled to Csvoutput generator, every change of output generator may involve code change
*/
package com.tightcoupling;
public class Main {
public static void main(String[] args) {
IoutputGenerator output = new CsvOutputGenerator();
output.generateOutput();
// IoutputGenerator output = new Json... | true |
96c36caca22f7c80a92c685165377ccfdea370ee | Java | amiralizadehit/Sample-Code | /Android Development Sample Code/MainActivity.java | UTF-8 | 6,330 | 2.03125 | 2 | [] | no_license | package com.arsheet.arsheetpresencesystem;
import java.nio.Buffer;
import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Fragment;
import... | true |
f0d5bd70d9c45ad29d0111441250beb580c1b9f5 | Java | nirmal976/Final-Automation | /SmartTech_Automation/src/test/java/com/inheritance/Orders.java | UTF-8 | 433 | 2.9375 | 3 | [] | no_license | package com.inheritance;
public class Orders extends Items {
private int no;
public int getNo() {
return no;
}
public void setNo(int no) {
this.no = no;
}
void displayinformation() {
System.out.println(getName()); // otherway we can create 1 method in Orders than here we can cal... | true |
c830e38f6099ea9bd0a91949f086b9c12ba191ac | Java | m0ar/hotel-papyrus | /Hotelsystem/src/implementation/util/ImplementationSwitch.java | UTF-8 | 21,794 | 2.390625 | 2 | [] | no_license | /**
*/
package implementation.util;
import implementation.*;
import java.util.List;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
* It supports the call {@link #doSwitch(EObject) doSwitch(object... | true |
df190e2b54a92ff1034dc5b1e3d2b89ba4990bd4 | Java | WilailakBua/Batch | /demo/src/main/java/com/example/demo/entity/ParamInfoBatch.java | UTF-8 | 858 | 1.648438 | 2 | [] | no_license | package com.example.demo.entity;
public class ParamInfoBatch {
public String paramInfoCode;
public String paramInfoValue;
public String paramInfoValue2;
public String paramGroupCode;
public String getParamInfoCode() {
return paramInfoCode;
}
public void setParamInfoCode(String paramInfoCode) {
this.pa... | true |
0429f4900c644d8b3245985efc7eb0c40938c04a | Java | omnya-alaa-eddin/TestSpringBoot | /FirstSpringBoot/src/main/java/springBoot/config/SpringBootApplicationConfig.java | UTF-8 | 502 | 1.78125 | 2 | [] | no_license | /**
*
*/
package springBoot.config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
/**
* @author o.alaa
*
*/
@SpringBootApplication
@ComponentScan({ "springBoot.presentation,spr... | true |
3db2aedf72964a13ad729a8d3b69b6dabaa3e2d0 | Java | hhu-stups/tla2bAST | /src/test/java/de/tla2b/typechecking/ExtendsTest.java | UTF-8 | 503 | 1.882813 | 2 | [] | no_license | package de.tla2b.typechecking;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import de.tla2b.util.TestTypeChecker;
import de.tla2b.util.TestUtil;
public class ExtendsTest {
@Test
public void TestExtendsCounter() throws Exception {
String path = "src/test/resources/typechecking/modules/";... | true |
b2aabced0804ca7ae1d81f1d041fdb3349392fa3 | Java | mygitsource/data-structures | /trees/src/com/datastructures/trees/bst/InOrderSuccessor_Set1.java | UTF-8 | 3,026 | 4.0625 | 4 | [] | no_license | package com.datastructures.trees.bst;
public class InOrderSuccessor_Set1 {
/*
* In Binary Tree, Inorder successor of a node is the next node in Inorder traversal of the Binary Tree.
* Inorder Successor is NULL for the last node in Inoorder traversal.
*
* In Binary Search Tree,
* Inorder Successor of an input ... | true |
e50152d595a7414bebfcc6e4ed269950401bc12e | Java | ekoindia/mshiko-android | /app/src/main/java/in/co/eko/fundu/utils/UserVerification.java | UTF-8 | 374 | 2 | 2 | [] | no_license | package in.co.eko.fundu.utils;
/*
* Created by Bhuvnesh
*/
import android.content.Context;
public class UserVerification {
private Context context;
public UserVerification(Context context) {
this.context = context;
}
public boolean isMobileVerified(){
return true;
}
public... | true |
61239f9d40a7f436bff2dd7e87412cd06572e713 | Java | weitat95/mastersDissertation | /qardio_source/cfr_dec/com/google/firebase/iid/zzm.java | UTF-8 | 311 | 1.507813 | 2 | [] | no_license | /*
* Decompiled with CFR 0.147.
*/
package com.google.firebase.iid;
import com.google.firebase.iid.zzk;
final class zzm
implements Runnable {
private final zzk zznzg;
zzm(zzk zzk2) {
this.zznzg = zzk2;
}
@Override
public final void run() {
this.zznzg.zzcjd();
}
}
| true |
46649afb555e7ef4b53baefe137f156ce4c5abf5 | Java | shengwuer/GitRepository | /spring-course2/ch06-aop-aspectj/src/main/java/com/lypowernode/ba09/SomeServiceImpl.java | UTF-8 | 812 | 3.046875 | 3 | [] | no_license | package com.lypowernode.ba09;
public class SomeServiceImpl implements SomeService {
@Override
public void doSome(String name, int age) {
// 给方法增加一个功能 ,在方法执行前增加时间
System.out.println("========目标方法doSome()======");
}
@Override
public String doOther(String name, int age) {
... | true |
5fb68811912478c5fd7abbd40da13900f939179c | Java | hotire/spring-data-jpa | /src/main/java/com/googlecode/hotire/springdatajpa/query/specification/ContentService.java | UTF-8 | 429 | 2.078125 | 2 | [] | no_license | package com.googlecode.hotire.springdatajpa.query.specification;
import java.util.List;
import org.springframework.stereotype.Service;
import lombok.RequiredArgsConstructor;
@Service
@RequiredArgsConstructor
public class ContentService {
private final ContentRepository contentRepository;
public List<Conten... | true |
d8510b67ae3c07e0b0f68d54a1b057e89986d3e1 | Java | agat-prog/conecta4 | /src/usantatecla/connect4/controllers/RedoController.java | UTF-8 | 298 | 2.1875 | 2 | [] | no_license | package usantatecla.connect4.controllers;
import usantatecla.connect4.models.Session;
public class RedoController extends Controller {
RedoController(Session session) {
super(session);
}
void redo() {
this.session.redo();
}
boolean redoable() {
return this.session.redoable();
}
}
| true |
01697f8eb8922bea58d59f9d1022ca4c2043b01a | Java | cglewis/cattle | /code/iaas/cluster-logic/src/main/java/io/cattle/iaas/cluster/process/ClusterHostMapCreateHandler.java | UTF-8 | 1,324 | 2.125 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | package io.cattle.iaas.cluster.process;
import io.cattle.iaas.cluster.service.ClusterManager;
import io.cattle.platform.core.model.ClusterHostMap;
import io.cattle.platform.core.model.Host;
import io.cattle.platform.engine.handler.HandlerResult;
import io.cattle.platform.engine.handler.ProcessPostListener;
import io.c... | true |
35ee847f5603691f5e035c9ab48c182db82b94d7 | Java | piotrdopierala/CodeWars | /src/test/java/kyu7/ExesAndOhs/mySolutionTest.java | UTF-8 | 905 | 2.53125 | 3 | [] | no_license | package kyu7.ExesAndOhs;
import org.junit.Test;
import static org.junit.Assert.*;
public class mySolutionTest {
@Test
public void testSomething1() {
assertEquals(true, mySolution.getXO("xxxooo"));
}
@Test
public void testSomething2() {
assertEquals(true, mySolution.getXO("xxxXooO... | true |