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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8053021960bbe4813a901f157fd0c7a334680222 | Java | ymzdb7/test2 | /canteen/src/main/java/com/winhands/modules/restaurant/service/impl/OderAdvanceDishesServiceImpl.java | UTF-8 | 1,783 | 1.773438 | 2 | [] | no_license | package com.winhands.modules.restaurant.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.winhands.modules.restaurant.dao.OrderAdvanceDishesDao;
import com.winhands.modules.restaurant.ent... | true |
1c6d1fa2c0fc3b92724bbec9c3452655ce11b6d4 | Java | 181182/INF142-Computer-Networks | /Oblig1/src/Oppgave2/K.java | UTF-8 | 3,141 | 3.46875 | 3 | [] | no_license | package Oppgave2;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.net.UnknownHostException;
/**
* Dette er en klient til applikasjonprotokolen mellom klient og en web proxy
* server.
*
* @author ... | true |
77f5a81fd041b2f9af8a0eed84911a2ff24ecb2d | Java | DroidSingh89/MAC_Training | /8.28/Week 4/FIrebase/app/src/main/java/com/example/user/firebase/view/MovieActivity.java | UTF-8 | 5,186 | 2.28125 | 2 | [] | no_license | package com.example.user.firebase.view;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
impor... | true |
8eb7db987f8465fdf49842377741516b8c0429c6 | Java | parang0626/intern.sns | /src/main/java/sns/platform/comm/util/ShowMapUtil.java | UTF-8 | 619 | 2.53125 | 3 | [] | no_license | package sns.platform.comm.util;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ShowMapUtil {
private static final Logger LOG = LoggerFactory.getLogger(ShowMapUtil.class);
public static void show(Map<String,Object> map... | true |
50ad99b9b461111feefa6a7eccc60df9e5f67aaa | Java | dhatric/SDE | /src/com/dhatric/trees/CloneTargetRecurive.java | UTF-8 | 584 | 3.203125 | 3 | [] | no_license | package com.dhatric.trees;
public class CloneTargetRecurive {
public final TreeNode getTargetCopy(final TreeNode original, final TreeNode cloned, final TreeNode target) {
return getNode(cloned, target);
}
TreeNode getNode(TreeNode node, TreeNode target) {
TreeNode clonedTarget = null;
if (node.val == targe... | true |
750c45cf4c6fa6e7f9e552984053c7b3bce2acab | Java | EMResearch/EMB | /jdk_8_maven/cs/rest-gui/genome-nexus/web/src/main/java/org/cbioportal/genome_nexus/web/mixin/ExonMixin.java | UTF-8 | 896 | 1.960938 | 2 | [
"Apache-2.0",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"MIT"
] | permissive | package org.cbioportal.genome_nexus.web.mixin;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ExonMixin {
@ApiModelProperty(value = "Exon id", position=1, required = true)
private String exonId;
... | true |
f9927fb3ab68dc94ae58fd7f172d124ea3da9e5c | Java | tomdev2008/RestyPass | /demo/src/main/java/com/github/df/restypass/testclient/entity/Response.java | UTF-8 | 773 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.github.df.restypass.testclient.entity;
/**
* Created by darrenfu on 17-4-1.
*
* @param <T> the type parameter
*/
public class Response<T> {
/**
* The Info.
*/
T info;
/**
* Gets info.
*
* @return the info
*/
public T getInfo() {
return info;
}
... | true |
7864963e0b13b719cdf18fd10b0535cfa1e84087 | Java | margge/github-jobs | /android-app/src/com/github/jobs/ui/fragment/SOUserFetcherReceiver.java | UTF-8 | 3,329 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012 CodeSlap
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | true |
736c5912dd95c2d53d3ffbccae32f55968e906b6 | Java | imqinbao/javabb-security | /src/main/java/cn/javabb/sys/service/impl/DictionaryDataServiceImpl.java | UTF-8 | 1,618 | 1.984375 | 2 | [] | no_license | package cn.javabb.sys.service.impl;
import cn.javabb.common.web.PageParam;
import cn.javabb.sys.entity.DictionaryDataDO;
import cn.javabb.sys.mapper.DictionaryDataMapper;
import cn.javabb.sys.service.DictionaryDataService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.s... | true |
354e8c5d12b59e8ec6fb4afb3ead9643bed70161 | Java | josedab/code-miscellaneous | /video-service/video-service-app/src/main/java/com/josedab/video/domain/Video.java | UTF-8 | 1,154 | 2.25 | 2 | [
"MIT"
] | permissive | package com.josedab.video.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Video {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
private String title;
... | true |
a0363ef4cd9f54a0499e8805fd67229f9b05013c | Java | WigerCheng/Dagger | /src/main/java/dagger/UserCommandsRouter.java | UTF-8 | 422 | 1.84375 | 2 | [] | no_license | package dagger;
@PerSession
@Subcomponent(modules = {UserCommandsModule.class, AmountsModule.class, AccountModule.class})
public interface UserCommandsRouter {
CommandRouter router();
@Subcomponent.Factory
interface Factory {
UserCommandsRouter create(@BindsInstance @Username String username);
... | true |
6a81af389175d0df8519003d806c01e11d496829 | Java | netikras/StudentBuddy | /api/api-private/src/main/java/com/netikras/studies/studentbuddy/api/aop/pointcuts/AuthorizableActions.java | UTF-8 | 631 | 1.773438 | 2 | [] | no_license | package com.netikras.studies.studentbuddy.api.aop.pointcuts;
import com.netikras.studies.studentbuddy.core.data.meta.annotations.Authorizable;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;
@Aspect
@Component
public class Author... | true |
3142fd09d782c8ed7feaebbef65935cf24ae4304 | Java | ufochuxian/PoupoLayer | /poplayer/src/main/java/com/github/codesniper/poplayer/webview/impl/HybirdImpl.java | UTF-8 | 3,414 | 2.21875 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | package com.github.codesniper.poplayer.webview.impl;
import android.content.Context;
import android.net.Uri;
import android.text.TextUtils;
import android.util.Log;
import android.webkit.WebView;
import android.widget.Toast;
import com.github.codesniper.poplayer.custom.PopWebView;
import com.github.codesniper.poplay... | true |
ac6777e9cd0b24a3cbc8cd6885a6c82fcfbc2701 | Java | sachin-kumbhar-jiem/saiten_test | /WEB-INF/src/com/saiten/action/ConfirmScoreAction.java | UTF-8 | 7,233 | 1.875 | 2 | [] | no_license | package com.saiten.action;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;
import com.saiten.exception.SaitenRuntimeException;
import com.saiten.in... | true |
0e8ef9d0d7aaafae2a841acdd29bf14f590c6e34 | Java | danielavillamar/AlgoritmosProyecto2 | /Controllers/LoginInController.java | UTF-8 | 3,764 | 2.46875 | 2 | [] | no_license | package Controllers;
import javafx.scene.Node;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import java.io.IOException;
import java.util.Map;
import org.neo4j.graphdb.Result;
import org.neo4j.graphdb.Transaction;
import javafx.scene.control.Alert;
imp... | true |
e0563e8ec0eca56a19870b49bf36c0fd74441f21 | Java | 210128/Tomasz_Zalejski-kodilla | /kodilla-collections-advanced/src/test/java/com/kodilla/collections/adv/immutable/BookTestSuite.java | UTF-8 | 630 | 2.703125 | 3 | [] | no_license | package com.kodilla.collections.adv.immutable;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class BookTestSuite {
@Test
public void shouldGetAuthor(){
//Given
Book book = new Book("Stephen King", "The Shining");
//When
String result = bo... | true |
81c15deaa5fb84a6841e393ffb2c5a82a16fc157 | Java | rakibhasansabbir/JasperReportWithSpringBoot | /src/main/java/com/example/JasperReportWithSpringBoot/repository/StudentRepository.java | UTF-8 | 360 | 2.046875 | 2 | [] | no_license | package com.example.JasperReportWithSpringBoot.repository;
import com.example.JasperReportWithSpringBoot.model.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Date;
import java.util.List;
public interface StudentRepository extends JpaRepository<Student,Integer> {
public Li... | true |
d604ff74e79a8eba7880fc41828c75bade0e25db | Java | SvenPfiffner/AlgorithmsDatastructuresAndProbability | /AlgorithmsDatastructuresAndProbability/src/misc/PrimeFactorization.java | UTF-8 | 969 | 4.1875 | 4 | [
"MIT"
] | permissive | package misc;
import java.util.LinkedList;
/**
* This class implements a factorization algorithm which finds the prime factorization of a given number
* @author Sven Pfiffner
*/
public class PrimeFactorization {
/**
* Performs a prime factorization on a given integer
* @param value to factor
... | true |
232a539718b3e4a2c35e8d2fad9dcdbec47872af | Java | rizhnitsyn/hibernate1 | /src/test/java/by/academy/ChatTest.java | UTF-8 | 799 | 2.234375 | 2 | [] | no_license | package by.academy;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.Test;
/**
* Created by user on 18.01.2018.
*/
public class ChatTest {
private static final SessionFactory SESSION... | true |
895e428facbe2785236a2974f25ae44bf5691d51 | Java | YuTaeKyung/HelloJavaFX | /src/main/java/teamproject/taekung/VO/UserVO.java | UTF-8 | 1,388 | 2.3125 | 2 | [] | no_license | package teamproject.taekung.VO;
/**
* Created by taeku on 2016-09-14.
*/
public class UserVO {
private String id="";
private String pwd="";
private String email="";
private String phone="";
private String address="";
private String storename="";
public UserVO(String id, String p... | true |
14412d764314bfcebe1803ea65181d3d14a37422 | Java | rajalakshmicogniseer/MobileApp | /app/src/main/java/com/ignovate/lectrefymob/login/ValidateOtpActivity.java | UTF-8 | 7,689 | 2.046875 | 2 | [] | no_license | package com.ignovate.lectrefymob.login;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.AppCompatEditText;
import android.support.v7.widget.AppCompatTextView;
import android.util.Log;
import android.view.View;
import android.wid... | true |
3cdd07b523993443d1000f825b23afc8624bdb4b | Java | nekkantiravi/Testcucumber | /Stores/STAT/src/main/java/com/macys/sdt/projects/Stores/STAT/steps/website/StatSteps.java | UTF-8 | 11,376 | 2.0625 | 2 | [] | no_license | package com.macys.sdt.projects.Stores.STAT.steps.website;
import com.macys.sdt.framework.interactions.Clicks;
import com.macys.sdt.framework.interactions.Elements;
import com.macys.sdt.framework.interactions.Navigate;
import com.macys.sdt.framework.interactions.Wait;
import com.macys.sdt.framework.utils.StepUtils;
imp... | true |
15daa763475085d904ce19d17a6870114130667d | Java | GpGardner/FTCI_Notes | /ECommerce/src/main/java/com/tts/ECommerce/Controllers/MainController.java | UTF-8 | 3,018 | 2.703125 | 3 | [] | no_license | package com.tts.ECommerce.Controllers;
import java.util.List;
import java.util.ArrayList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.sp... | true |
a54c55350f082003b0a51389926e2f393ad63bb1 | Java | fselker/Robotik | /src/mapping/Param.java | UTF-8 | 83 | 1.59375 | 2 | [] | no_license | package mapping;
public class Param {
int x, y, dx, dy, vx, vy;
Param() {
}
}
| true |
532565a361994200af819d0838f80759212ca175 | Java | briangohjw/Facebook-Farmville-Java-App | /src/main/java/daos/StealDAO.java | UTF-8 | 6,363 | 3.234375 | 3 | [] | no_license | package daos;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import entities.Plot;
import entities.User;
/**
* The StealDAO class provides access to the steal_plot table in the database.
*
* @version 1.0 04 Apr 2020
* @... | true |
cdf3d77b1c6f869eb10f2a250b19c8d4f88cab63 | Java | dohungquan/java-bai-tap | /BT5/Date.java | UTF-8 | 647 | 3.3125 | 3 | [] | no_license | package BT5;
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class Date extends Person{
Date(String firstName, String lastName, int day, int month, int year) {
super(firstName, lastName, day, month, year);
}
public String daysOfWeek() {
Calendar cal = Calendar.get... | true |
d4336396900b043f631c0ad8effc572e337a7ded | Java | eduardoramirez7/Taller-Kata-Cuenta-Bancaria | /src/main/java/com/logica/Account.java | UTF-8 | 1,995 | 3.3125 | 3 | [] | no_license | package com.logica;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
public class Account {
private long saldo;
private long balanceTotal = 0;
private LocalDate fecha;
ArrayList<Account> mov = new ArrayList<>();
public long obtenerSaldo() {
... | true |
0e5b6058c22c2cb490e24c1c9a87e610a577ea5f | Java | vladshvydun/Java_Start | /HomeWork1/src/exercise3/Main.java | UTF-8 | 374 | 3.65625 | 4 | [] | no_license | package exercise3;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Input radius of a circle: ");
double r = scanner.nextDouble();
double c = Math.PI * 2.0 * r;
System.out.println("Circumference ... | true |
9864576e039edbc99dd105b2739bd5987eef3f70 | Java | MurodDevUzb/Spring | /apelsin/src/main/java/uz/dev/apelsin/model/Order.java | UTF-8 | 701 | 1.992188 | 2 | [] | no_license | package uz.dev.apelsin.model;
import com.fasterxml.jackson.annotation.*;
import lombok.Data;
import javax.persistence.*;
import java.sql.Date;
import java.util.List;
@Data
@Entity
@Table(name = "order_table")
public class Order {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
... | true |
0bc0591ee6d53bb55ef2bd598860f5647f8db43c | Java | 2018shiji/elkclient | /src/main/java/com/module/es/ESOperator.java | UTF-8 | 7,150 | 2.125 | 2 | [] | no_license | package com.module.es;
import com.alibaba.fastjson.JSON;
import org.elasticsearch.action.bulk.BulkRequest;
import org.elasticsearch.action.bulk.BulkResponse;
import org.elasticsearch.action.delete.DeleteRequest;
import org.elasticsearch.action.delete.DeleteResponse;
import org.elasticsearch.action.get.GetRequest;
impo... | true |
c35661ae4f2f8f3c0e89c9b4ba8a9a00e45e1510 | Java | NikMatkovic92/flight-advisor | /src/main/java/com/htec/services/impl/CommentRepository.java | UTF-8 | 247 | 1.507813 | 2 | [] | no_license | package com.htec.services.impl;
import com.htec.services.entities.CommentEntity;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @author Nikola Matkovic
*/
interface CommentRepository extends JpaRepository<CommentEntity, Long> {
}
| true |
fad50eaafd179449b0e9c2356d198bcb0351e03b | Java | Sunayanams/Tutorial | /musicmaineeBackend/src/main/java/com/niit/musicmainee/Dao/CorderDao.java | UTF-8 | 321 | 1.875 | 2 | [] | no_license | package com.niit.musicmainee.Dao;
import java.util.List;
import com.niit.musicmainee.entity.Cart;
import com.niit.musicmainee.entity.Corder;
public interface CorderDao
{
public boolean save(Corder corder);
public boolean delete(String user_id);
public Corder get(String user_id);
public List<Corder> list();
}... | true |
ca7de6309c5277e61e867d20be3f4a683f3be0e5 | Java | subhamdash/OOPS | /JAVA_and_OOPS/OOPS/03-PolyMorphism_Cohesion.java | UTF-8 | 1,381 | 2.96875 | 3 | [] | no_license |
public class oop3 {
//overiding concept is applicable for methods not for varaibles
//varible resolution takes care by compile based on reference type irrestpective of whether
// the varibale is staic or non static
//Over-riding concept applicable for method but not for varibels, it is taken care by co... | true |
f325de55476e324922a5f6bef0ae401821c61725 | Java | keauw/pocCloudFoundry | /pocCloudFoundryCarServiceEngine/src/main/java/com/poc/service/engine/rest/EngineController.java | UTF-8 | 559 | 1.890625 | 2 | [] | no_license | package com.poc.service.engine.rest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import com.poc.service.engine.config.AppProperties;
@RestController
public class EngineContro... | true |
662e220f98787ac805437dbad04df37bb70de24d | Java | nickman/wiex | /wiex-server/src/main/java/com/heliosapm/wiex/server/collectors/jdbc/CheckedDriverManagerJDBCConnectionFactory.java | UTF-8 | 9,089 | 2.40625 | 2 | [] | no_license | /**
*
*/
package com.heliosapm.wiex.server.collectors.jdbc;
import java.io.PrintWriter;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Date;
import java.util.Properties;
import com.heliosapm.wiex.tracing.trac... | true |
46d99fc1cc5981c0906a1816ca5921da6e1bc972 | Java | whvixd/study | /demo/src/main/java/com/github/whvixd/demo/algorithm/leetcode/easy/Q1389.java | UTF-8 | 2,684 | 3.390625 | 3 | [] | no_license | package com.github.whvixd.demo.algorithm.leetcode.easy;
import java.util.ArrayList;
import java.util.List;
import static com.github.whvixd.util.SystemUtil.print;
/**
* 给你两个整数数组 nums 和 index。你需要按照以下规则创建目标数组:
目标数组 target 最初为空。
按从左到右的顺序依次读取 nums[i] 和 index[i],在 target 数组中的下标 index[i] 处插入值 nums[i] 。
重复上一步,直到在 nums ... | true |
bbc6e2503fa777c5fa99a3fa8f1a28fa42e68aa9 | Java | aakashalurkar/online_hackathon | /server/online-hackathon-project/src/main/java/com/openHack/io/repository/TeamRepository.java | UTF-8 | 1,462 | 2.03125 | 2 | [] | no_license | package com.openHack.io.repository;
import com.openHack.io.entity.TeamEntity;
import com.openHack.io.entity.TeamMemberEntity;
import com.openHack.ui.model.request.TeamDetailsRequestModel;
import java.util.ArrayList;
import javax.transaction.Transactional;
import org.springframework.data.jpa.repository.Modifying;
im... | true |
2e9e95927cad7b749399c87ab092fd4a7be4ed1c | Java | omarbek/kz.halyqsoft.univercity | /src/main/java/kz/halyqsoft/univercity/entity/beans/univercity/catalog/ACADEMIC_CALENDAR_ITEM.java | UTF-8 | 2,269 | 1.96875 | 2 | [] | no_license | package kz.halyqsoft.univercity.entity.beans.univercity.catalog;
import org.r3a.common.entity.AbstractEntity;
import org.r3a.common.entity.EFieldType;
import org.r3a.common.entity.FieldInfo;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence... | true |
eb5687b39a162e0b1d0de05d003dc24f27af84a2 | Java | DraganKal/jwd40-zavrsni | /zavrsniTestDraganKalakovic/src/main/java/jwd/wafepa/support/ZadatakToDTO.java | UTF-8 | 1,091 | 2.5625 | 3 | [] | no_license | package jwd.wafepa.support;
import java.util.ArrayList;
import java.util.List;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
import jwd.wafepa.model.Zadatak;
import jwd.wafepa.web.dto.ZadatakDTO;
// Konvertor koji konvertuje Zadatak u ZadatakDTO
@Compon... | true |
a8e42a2d4003f4f3fedaa11021d6d396eb9bad5b | Java | gandralf/scenery-manager | /scenery-manager/src/test/java/br/com/devx/scenery/WrapperTestTarget.java | UTF-8 | 1,702 | 2.5 | 2 | [] | no_license | package br.com.devx.scenery;
import java.util.Date;
public class WrapperTestTarget extends WrapperTestTargetBase {
private Date m_dateValue;
private boolean m_booleanValue;
public WrapperTestTarget() {
}
public WrapperTestTarget(int intValue, String stringValue, Date dateValue, bool... | true |
9b2de29ebc685495725fa5403901928d0477cf6e | Java | ats-jp/dexter.plugin | /src/jp/ats/dexter/plugin/Type.java | UTF-8 | 939 | 2.375 | 2 | [] | no_license | package jp.ats.dexter.plugin;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;
import jp.ats.substrate.U;
enum Type {
String("type-string", String.class),
Int("type-int", int.class),
Long("type-long", long.class),
Boolean("type-boolean", boolean.class),
Decimal("type-dec... | true |
241a8c7f1fde119c871be3ab2862a961e009a2d0 | Java | ygchen/mystu-restful-api | /src/edu/stu/exception/StuException.java | UTF-8 | 356 | 2.171875 | 2 | [] | no_license | package edu.stu.exception;
public class StuException extends Exception{
/**
*
*/
private static final long serialVersionUID = -6711316754808360484L;
public StuException(){}
public StuException(String msg){
super(msg);
}
public StuException(Throwable t){
super(t);
}
public StuException(String msg... | true |
a4e4a21d2a2b10cd1e36525a3a89673aaca8144e | Java | Wojtasny/AoC2018 | /src/day2/InventoryManagementSystem.java | UTF-8 | 1,055 | 3.234375 | 3 | [] | no_license | package day2;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;
public class InventoryManagementSystem {
private Set<BoxIDDistribution> boxIDs = new HashSet<>();
private class BoxIDDistribution {
private Map<Character, Long> distribution;
public BoxI... | true |
47d4098275cf51c43ec9e69b87bd3b07b58af27c | Java | s21272/9lab_2 | /Animal.java | UTF-8 | 254 | 3.171875 | 3 | [] | no_license | public class Animal {
public void sleep (){
System.out.println("is sleeping");
}
public void makeNoise(){
System.out.println("is making noises");
}
public void roam(){
System.out.println("is roaming");
}
}
| true |
33a658b21346457f386b5301bd63d5dbe51d16a7 | Java | DataFabricRus/rya-beam-pipelines | /src/main/java/cc/datafabric/pipelines/io/AccumuloSingleTableWrite.java | UTF-8 | 2,318 | 2.109375 | 2 | [
"MIT"
] | permissive | package cc.datafabric.pipelines.io;
import org.apache.accumulo.core.client.*;
import org.apache.accumulo.core.client.security.tokens.PasswordToken;
import org.apache.accumulo.core.data.Mutation;
import org.apache.beam.sdk.transforms.DoFn;
import org.apache.beam.sdk.transforms.PTransform;
import org.apache.beam.sdk.tra... | true |
49e53a9553aeabe96c939862c6c590bf2f84f099 | Java | mariah-crawford/sps-team-37 | /src/main/java/com/google/sps/data/Journal.java | UTF-8 | 737 | 2.484375 | 2 | [] | no_license |
package com.google.sps.data;
/** A Journal object containing the text, mood value, song, artist, emoji, time, and email. */
public final class Journal {
private final String textEntry;
private final long moodValue;
private final String songTitle;
private final String artistName;
private final String emoji;... | true |
38a4d5c2b698bbd7df1b8e208ab76be97066880d | Java | brjannc/TimerSigns | /src/main/java/me/brjannc/plugins/timersigns/TimerSigns.java | UTF-8 | 4,196 | 2.421875 | 2 | [] | no_license | /*
* Copyright (C) 2012 brjannc <brjannc at gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Thi... | true |
566b54de8b5871df9c0dc5fae00380ab18ce4eeb | Java | TlatoaniHJ/Kosmos | /src/us/tlatoani/kosmos/border/event/ExprBorderMovingValue.java | UTF-8 | 2,199 | 2.578125 | 3 | [
"MIT"
] | permissive | package us.tlatoani.kosmos.border.event;
import ch.njol.skript.Skript;
import ch.njol.skript.lang.Expression;
import ch.njol.skript.lang.SkriptParser.ParseResult;
import ch.njol.skript.lang.util.SimpleExpression;
import ch.njol.util.Kleenean;
import org.bukkit.World;
import org.bukkit.event.Event;
import java.util.fu... | true |
b2843cb4451cd70810abebfd43359e36687d56a2 | Java | doytsujin/webfx | /mongoose/mongoose-shared/mongoose-shared-entities/src/main/java/mongoose/shared/entities/impl/EventImpl.java | UTF-8 | 1,602 | 2.28125 | 2 | [] | no_license | package mongoose.shared.entities.impl;
import mongoose.shared.entities.Event;
import mongoose.shared.businessdata.time.DateTimeRange;
import webfx.framework.shared.orm.entity.EntityId;
import webfx.framework.shared.orm.entity.EntityStore;
import webfx.framework.shared.orm.entity.impl.DynamicEntity;
import webfx.framew... | true |
4cd25b72c364960041cf4228443804acc18e7754 | Java | posixrfc/JavaEE | /test/Hibernate_day2_1/src/cn/itcast/h3/qbc/user/XMLQueryApp.java | UTF-8 | 769 | 2.09375 | 2 | [
"MIT"
] | permissive | package cn.itcast.h3.qbc.user;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.junit.Test;
import cn.itcast.h3.util.H3Util;
public class XMLQueryApp {
@Test
//将HQL语句配置到hbm.xml文件中
//<query name="getAll">from UserModel</query>
public void test1(){
... | true |
cb668e8754893406c2c20bb5a427a28a71233d1f | Java | BigKam/Learnings | /OtherProjects/netty01/src/main/java/nettyServer01/TcpServerHandler.java | UTF-8 | 747 | 2.65625 | 3 | [] | no_license | package nettyServer01;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
/**
* Created by jin.lei on 2017/9/20.
*/
public class TcpServerHandler extends SimpleChannelInboundHandler<Object> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, O... | true |
1920431bca3a3ef76475b6ed60c3890b18477a28 | Java | Finkky/sy-clappin | /src/main/java/cz/cvut/fit/culkajac/dp/services/store/impl/StoreSelectionServiceRules.java | UTF-8 | 513 | 1.789063 | 2 | [] | no_license | package cz.cvut.fit.culkajac.dp.services.store.impl;
import org.switchyard.component.rules.Execute;
import org.switchyard.component.rules.Rules;
import cz.cvut.fit.culkajac.dp.dto.FileDTO;
import cz.cvut.fit.culkajac.dp.services.store.StoreSelectionService;
@Rules(value = StoreSelectionService.class, resources = { "... | true |
a88b4e098218fbfb2c86648603a8a8b0ec540817 | Java | ampratt/MBPeT | /MBPeT/src/com/aaron/mbpet/views/tabs/parameterstab/ParametersAceEditorLayout.java | UTF-8 | 14,865 | 1.671875 | 2 | [
"Apache-2.0"
] | permissive | package com.aaron.mbpet.views.tabs.parameterstab;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import org.vaadin.aceeditor.AceEditor;
import org.vaadin.aceeditor.Ac... | true |
29d81e62d8060886a6789748dc9da72e9f1f53bc | Java | wushbin/GatherApp | /DukeGatherApllication/app/src/main/java/com/example/wushbin/dukegatherapllication/InGroupActivity.java | UTF-8 | 16,782 | 1.828125 | 2 | [] | no_license | package com.example.wushbin.dukegatherapllication;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import ... | true |
35e7116af513a6ac7254556ddf7d845feeebe702 | Java | nendraharyo/presensimahasiswa-sourcecode | /com/google/android/gms/common/internal/zzm.java | UTF-8 | 7,855 | 1.734375 | 2 | [] | no_license | package com.google.android.gms.common.internal;
import android.content.ComponentName;
import android.content.Context;
import android.content.ServiceConnection;
import android.os.Handler;
import android.os.Handler.Callback;
import android.os.IBinder;
import android.os.Looper;
import android.os.Message;
import com.googl... | true |
58dc8fabba23d0e1ddb3229b503fdbe00e0d3c1d | Java | yhsiashen/algorithm-exercise | /src/main/java/org/yuhang/algorithm/leetcode/backtracealgo/ProblemExpressionAddOperators.java | UTF-8 | 493 | 2.75 | 3 | [] | no_license | package org.yuhang.algorithm.leetcode.backtracealgo;
import java.util.ArrayList;
import java.util.List;
/**
* 给表达式加运算符 LC282
* TODO
*/
public class ProblemExpressionAddOperators {
public List<String> addOperators(String num, int target) {
List<String> res = new ArrayList<>();
if("".equals(num)... | true |
3ac7b975abb224a6999b732af9f4e572bc332bbb | Java | smartdevicelink/rpc_builder_app_android | /RPCBuilder/app/src/main/java/com/smartdevicelink/rpcbuilder/Views/RBStructParamView.java | UTF-8 | 201 | 1.554688 | 2 | [] | permissive | package com.smartdevicelink.rpcbuilder.Views;
import android.content.Context;
public class RBStructParamView extends RBParamView {
public RBStructParamView(Context context) {
super(context);
}
}
| true |
02cdbadb36e4a69447b8645107433d2990057ea3 | Java | guapihao/wrwe | /app/src/main/java/com/example/search/FourthActivity.java | UTF-8 | 790 | 2.03125 | 2 | [] | no_license | package com.example.search;
import android.widget.Button;
import android.view.View;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class FourthActivity extends AppCompatActivity {
private Button btn4;
@Override
protected void onCreate(Bundl... | true |
9d6fd6596c387d8946bc7cc6b4c9fdda1c151a1c | Java | Wolfgang-Schuetzelhofer/jcypher-server | /src/main/java/iot/jcypher/server/config/DBAccessConfig.java | UTF-8 | 3,061 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | /************************************************************************
* Copyright (c) 2016 IoT-Solutions e.U.
*
* 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.apac... | true |
8196badbb2d8f2934248d48b7f617f4701786816 | Java | POPO-J-E/SMA_Puzzle | /src/simulation/puzzle/MySimulationModel.java | UTF-8 | 2,855 | 3.046875 | 3 | [] | no_license | package simulation.puzzle;
import madkit.kernel.AbstractAgent;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
*
*
* #jws simulation.puzzle.MySimulationModel jws#
*
* It is time to display something !! The only purpose of this class is to show an example of ... | true |
27e6d892dbba99df140647b023d5122f458b2904 | Java | Guiedo/Mambo | /mambo-protocol/src/main/java/org/mambo/protocol/messages/QuestStepInfoMessage.java | UTF-8 | 933 | 2 | 2 | [] | no_license |
// Generated on 05/08/2013 19:37:50
package org.mambo.protocol.messages;
import java.util.*;
import org.mambo.protocol.types.*;
import org.mambo.protocol.enums.*;
import org.mambo.protocol.*;
import org.mambo.core.io.*;
public class QuestStepInfoMessage extends NetworkMessage {
public static final int MESSAGE_I... | true |
094c7ffab198a89deb547a37b8f23dddf5d51396 | Java | ganigemilar/tugas1_apap_1606954810 | /src/main/java/com/example/tugas1/dao/MahasiswaMapper.java | UTF-8 | 3,274 | 2.0625 | 2 | [] | no_license | package com.example.tugas1.dao;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Re... | true |
708c39ee437f9813552491b6bacd211b16d98177 | Java | zhongxingyu/Seer | /Diff-Raw-Data/34/34_ab26a2caa0cf05715fc7c50cdeb57cbbd079ba02/IHarvest/34_ab26a2caa0cf05715fc7c50cdeb57cbbd079ba02_IHarvest_s.java | UTF-8 | 4,369 | 2.265625 | 2 | [] | no_license | /*
This file is part of opensearch.
Copyright © 2009, Dansk Bibliotekscenter a/s,
Tempovej 7-11, DK-2750 Ballerup, Denmark. CVR: 15149043
opensearch is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, e... | true |
3f74f9dc81a96399ae6ad7204cd3c2412a24f8a8 | Java | 15701266382/dubbo-common-parent | /dubbo-web-shiro/src/main/java/com/zml/web/shiro/cache/RedisCache.java | UTF-8 | 2,696 | 2.453125 | 2 | [] | no_license | package com.zml.web.shiro.cache;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import org.apache.commons.collections.CollectionUtils;
import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
impo... | true |
83714a296e19a4ba4d41e98ef6f74ebc8ba8bc14 | Java | Artsysa/struct | /src/main/java/nio/chart/GroupServer.java | UTF-8 | 5,024 | 2.75 | 3 | [] | no_license | package nio.chart;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.*;
import java.util.Iterator;
import java.util.Scanner;
import java.util.Set;
/*
* @breif:
* @Author: lyq
* @Date: 2020/7/15 14:45
* @Month:07
*/
public class GroupServer {
p... | true |
809d80d808ace9fb9c11c8135c3a3cbab262f2f7 | Java | jimmitry/mentdb_weak | /src/re/jpayet/mentdb/ext/parameter/ParamCache.java | UTF-8 | 163 | 1.78125 | 2 | [] | no_license | package re.jpayet.mentdb.ext.parameter;
public class ParamCache {
public String value = null;
public ParamCache(String value) {
this.value = value;
}
}
| true |
0321112b4be21dc5df9d0d3949ca7d330da5c38d | Java | Lo1s/JavaIntroduction | /src/chapter18/PE1818_NationalFlags.java | UTF-8 | 2,948 | 2.875 | 3 | [] | no_license | /**
*
*/
package chapter18;
import java.applet.AudioClip;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JApplet;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.s... | true |
35591c11bd95511dc94bb9a9d12deda9a5fed73f | Java | fcv/wiquery-test | /src/main/java/br/fcv/wiquery_test/support/wicket/JQueryPjaxJavaScriptReference.java | UTF-8 | 583 | 1.851563 | 2 | [] | no_license | package br.fcv.wiquery_test.support.wicket;
import org.apache.wicket.request.resource.SharedResourceReference;
import br.fcv.wiquery_test.WicketApplication;
public class JQueryPjaxJavaScriptReference extends SharedResourceReference {
private static final JQueryPjaxJavaScriptReference INSTANCE = new ... | true |
7990ea0cac73476146d8c72b361b0e71eecaf276 | Java | minthubk/androidChatPro | /src/com/example/chatsignalrclient/views/MessageActivity.java | UTF-8 | 7,789 | 1.976563 | 2 | [] | no_license | package com.example.chatsignalrclient.views;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import com.example.chatsignalrclient.R;
import com.example.chatsignalrclient.R.id;
import com.example.chatsignalrclient.R.layout;
import com.example.chatsignalrclient.model.APIHandling;
... | true |
f9a987ebd70cd2f3984d8ae2306a18d2056b7df9 | Java | wolf3d2/MWbrowser | /src/com/jbak/superbrowser/ui/LoadBitmapCache.java | UTF-8 | 891 | 2.265625 | 2 | [] | no_license | package com.jbak.superbrowser.ui;
import java.util.ArrayList;
import ru.mail.mailnews.st;
import ru.mail.mailnews.st.UniObserver;
@SuppressWarnings("serial")
public class LoadBitmapCache extends ArrayList<LoadBitmapInfo> {
public final void addCache(LoadBitmapInfo li)
{
add(li);
if(size()>50)
remove(0);
}
... | true |
3b30cebd32c2347e577add0cccfad342047f71ea | Java | ajmera25/2019MO | /src/test/java/utils/APIUtils.java | UTF-8 | 1,587 | 2.6875 | 3 | [] | no_license | package utils;
import java.io.File;
import org.json.JSONObject;
import okhttp3.HttpUrl;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
public class APIUtils {
public static String fetchVideoName(){
String videoName = null;
tr... | true |
1471ae59cd04ce8e2a4828dc62b036cf3f4b7ca4 | Java | marcoFuschini/ISLT2013gruppo14 | /FanDeviceSystemTESTS/src/it/unibo/IngSW/Tests/Viewer/ViewerTest.java | UTF-8 | 2,599 | 2.53125 | 3 | [
"MIT"
] | permissive | package it.unibo.IngSW.Tests.Viewer;
import static org.junit.Assert.*;
import it.unibo.IngSW.Viewer.Viewer;
import it.unibo.IngSW.common.Display;
import it.unibo.IngSW.common.SensorData;
import it.unibo.IngSW.common.interfaces.IDisplay;
import it.unibo.IngSW.common.interfaces.IElementDisplay;
import it.unibo.I... | true |
4c89949cd597aa16ce004597ee446b74ca836f8c | Java | yq1012/finereport | /designer_base/src/com/fr/design/mainframe/backgroundpane/BackgroundSettingPane.java | UTF-8 | 811 | 2.484375 | 2 | [] | no_license | package com.fr.design.mainframe.backgroundpane;
import com.fr.design.beans.BasicBeanPane;
import com.fr.design.event.UIObserver;
import com.fr.general.Background;
/**
* @author zhou
* @since 2012-5-29下午1:12:28
*/
public abstract class BackgroundSettingPane extends BasicBeanPane<Background> implements UIO... | true |
6cbb57de3551993ae5fb89631cb32ef3c3536948 | Java | Dewey-Ding/LeetCode | /src/main/java/medium/MaximumProductSubarray_152.java | UTF-8 | 2,660 | 3.609375 | 4 | [] | no_license | package medium;
public class MaximumProductSubarray_152 {
public static void main(String[] args) {
int[] nums = new int[]{2,-5,-2,-4,3};
System.out.println(maxProduct(nums));
}
public static int maxProduct(int[] nums) {
if(nums.length==0){
return 0;
}
in... | true |
a02f794bc8bfb9d572c6211fffa6882ca8897093 | Java | KJHIU0437/LexicalParser | /src/Utils/KeyWordChecker.java | UTF-8 | 829 | 3.03125 | 3 | [
"MIT"
] | permissive | /**
* This class is used to track keywords.
* @author Miao Cai
* @since 15/12/2019 9:32 PM
*/
package Utils;
import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
public class KeyWordChecker {
... | true |
a82c3a15df450179db3eb3427192cfb4335704e5 | Java | ennioVisco/MoonLight | /core/src/main/java/eu/quanticol/moonlight/signal/TimeSequence.java | UTF-8 | 2,527 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | /**
*
*/
package eu.quanticol.moonlight.signal;
import java.util.Iterator;
import java.util.LinkedList;
/**
* @author loreti
*
*/
public class TimeSequence {
protected final LinkedList<Double> steps;
public TimeSequence() {
this( new LinkedList<>() );
}
private TimeSequence(LinkedList<Double> steps) ... | true |
3e09c8d0e4843d5c97e3ea5c19bdf2124731353c | Java | bxczp/exam | /src/Web/StudentAction.java | UTF-8 | 5,330 | 2.15625 | 2 | [] | no_license | package Web;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.interceptor.ServletRequestAware;
import com.opensymphony.xwork2.ActionContext;
import com.ope... | true |
b6402495c10231c5fdc951b384e67287461fed56 | Java | Angel-Garcia033/Proyecto_ceros | /Proyecto_ceros/src/main/java/com/proyecto/ceros/service/VentaService.java | UTF-8 | 292 | 1.9375 | 2 | [] | no_license | package com.proyecto.ceros.service;
import java.util.Optional;
import com.proyecto.ceros.model.Venta;
public interface VentaService
{
public Iterable<Venta> findAll ();
public Optional<Venta> findById (Long codigo);
public Venta save (Venta venta);
public void delete (Long codigo);
} | true |
267fcf94e97e3478c0946f2f1bb08ddaa9858eb6 | Java | LucasPerrault/Architecture_Programmation_Distribue_TP2 | /RMI_Matrix_Project/src/MatrixServer.java | UTF-8 | 534 | 2.625 | 3 | [] | no_license | import interfaces.MatrixCalculator;
import java.rmi.Naming;
public class MatrixServer {
public static void main(String args[]) {
try {
MatrixCalculator c = new MatrixService();
java.rmi.registry.LocateRegistry.createRegistry(10000);
Naming.rebind("rmi://localhost:10000/C... | true |
92aa450e899395e2140f62ebbf8ff388ee400ac2 | Java | KevinChevez/MVProjectED-Parcial1 | /src/main/java/modelo/Paciente.java | UTF-8 | 2,232 | 2.671875 | 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 modelo;
/**
*
* @author Kevin Chevez pc
*/
public class Paciente extends Usuario{
private int edad;
private String ... | true |
18c641b093c1471eb651cdc02f459fb2f5725790 | Java | joaobispo/ancora-toolbox | /src/shared-library/org/ancora/SharedLibrary/AppBase/SimpleGui/AppFilePanel.java | UTF-8 | 4,502 | 2.0625 | 2 | [] | no_license | /*
* Copyright 2010 SPeCS Research Group.
*
* 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... | true |
ad9315fd6efb239a53bdef680eb98652beafd336 | Java | shiyou/upsweb_version1 | /src/com/eshore/upsweb/dao/CwSysUserDAO.java | UTF-8 | 179 | 1.742188 | 2 | [] | no_license | package com.eshore.upsweb.dao;
import java.util.List;
import com.eshore.upsweb.model.CwSysUser;
public interface CwSysUserDAO {
List<CwSysUser> findUsers(CwSysUser user);
}
| true |
a806d718f2e7f7b936297dde736a4d1a3c58ed19 | Java | ALRubinger/capedwarf-blue | /datastore/src/main/java/org/jboss/capedwarf/datastore/AbstractDatastoreService.java | UTF-8 | 5,451 | 1.65625 | 2 | [] | no_license | /*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | true |
52d2b78bad44c8db453e20d11c89a3dda9c1198d | Java | iantal/AndroidPermissions | /apks/malware/app79/source/com/hzpz/pay/jsoup/nodes/FormElement.java | UTF-8 | 550 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.hzpz.pay.jsoup.nodes;
import com.hzpz.pay.jsoup.parser.Tag;
import com.hzpz.pay.jsoup.select.Elements;
public class FormElement
extends Element
{
private final Elements f = new Elements();
public FormElement(Tag paramTag, String paramString, Attributes paramAttributes)
{
super(paramTag, par... | true |
c3a3c311040bd860f2586b7e523ce5f79a4aa85e | Java | cloudiator/orchestration | /node-agent/src/main/java/org/cloudiator/iaas/node/ByonNodeDeletionStrategy.java | UTF-8 | 4,273 | 2 | 2 | [] | no_license | package org.cloudiator.iaas.node;
import static jersey.repackaged.com.google.common.base.Preconditions.checkState;
import com.google.inject.Inject;
import io.github.cloudiator.domain.ByonNode;
import io.github.cloudiator.domain.Node;
import io.github.cloudiator.domain.NodeBuilder;
import io.github.cloudiator.domain.N... | true |
1eaa59d904cf1dba3c63cb1f6eebd16cb7e53708 | Java | freeserverproject/uno | /src/main/java/io/github/tererun/plugin/uno/uno/cards/Card.java | UTF-8 | 1,682 | 2.875 | 3 | [] | no_license | package io.github.tererun.plugin.uno.uno.cards;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import java.util.Arrays;
public class Card {
private CardNumber cardNumber;
private CardColor cardColor;
public Card(CardNumber cardNumber, CardC... | true |
cdcd1651e97be5d0d6fc9a56970bbcffba13e0e2 | Java | VaniMar/myFirstProgram | /Pizzeria.java | UTF-8 | 580 | 2.8125 | 3 | [] | no_license | import java.util.*;
/**
* Write a description of class Pizzeria here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Pizzeria
{
private List<Pizza> pizzas;
/**
* Usuario podra ver el menu de la pizzeria para hacer su pedido
*/
public void getMenu() {}
... | true |
dd5070982ef8301cee9608534a5dc299a3edb056 | Java | ArtAmb/Jackpot | /src/main/java/jackpot/entity/Invoice.java | UTF-8 | 365 | 2.15625 | 2 | [] | no_license | package jackpot.entity;
import lombok.Builder;
import lombok.Data;
import lombok.Value;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import java.util.List;
@Entity
@Value
@Builder
public class Invoice {
@Id
Integer id;
String invoiceNumber;
@Man... | true |
1f15f1e22f6cbf9f2e515e6bce4ef95a0f6d1d09 | Java | PSN123/javacodes | /NetBeansProjects/copyonwritedemo4/src/copyonwritedemo4/Copyonwritedemo4.java | UTF-8 | 437 | 2.921875 | 3 | [] | no_license | package copyonwritedemo4;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.*;
public class Copyonwritedemo4 {
public static void main(String[] args) {
CopyOnWriteArrayList l=new CopyOnWriteArrayList();
l.add("A");
l.add("B");
l.add("C");
Iterator itr=l.iterator();
l.add("D");
... | true |
607eee89c9a17ddc6f737b8707dd8c49d1037703 | Java | amplia-iiot/oda | /oda-comms/mqtt/src/test/java/es/amplia/oda/comms/mqtt/api/MqttMessageTest.java | UTF-8 | 4,139 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | package es.amplia.oda.comms.mqtt.api;
import org.junit.Test;
import static org.junit.Assert.*;
public class MqttMessageTest {
private final byte[] TEST_PAYLOAD = { 0x1, 0x2, 0x3, 0x4 };
private final int TEST_QOS = 2;
private final boolean TEST_RETAINED = true;
private final MqttMessage TEST_MESSAGE... | true |
6e29b8e3f9eb0a3fbfca41691f9f58ba8a4f21cf | Java | mohitrajvardhan17/java1.8.0_151 | /sun/text/CompactByteArray.java | UTF-8 | 5,690 | 2.5 | 2 | [] | no_license | package sun.text;
public final class CompactByteArray
implements Cloneable
{
public static final int UNICODECOUNT = 65536;
private static final int BLOCKSHIFT = 7;
private static final int BLOCKCOUNT = 128;
private static final int INDEXSHIFT = 9;
private static final int INDEXCOUNT = 512;
private static... | true |
fdfad6ea59d3feb2e80b1d9517d4569d3951fdb3 | Java | huijiewei/agile-boot | /agile-engine/src/main/java/com/huijiewei/agile/core/consts/ApiPageable.java | UTF-8 | 1,189 | 1.976563 | 2 | [
"MIT"
] | permissive | package com.huijiewei.agile.core.consts;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.beans.factory.annotation.Value;
import java.lang.annotation.ElementType;
import java.lang.annot... | true |
35dcf376cee7543e09ef1bd582e1fb02d6d87334 | Java | jcg0727/FinalProject | /HS_System/src/main/java/kr/ac/hs/dao/AcademicFreshmenDAO.java | UTF-8 | 1,587 | 2.171875 | 2 | [] | no_license | package kr.ac.hs.dao;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import kr.ac.hs.command.Criteria;
import kr.ac.hs.command.SearchCriteria;
import kr.ac.hs.dto.AcademicFreshmenVO;
public interface AcademicFreshmenDAO {
// 로그인 조교의 학과명 출력
String SelectDept_nmByStaff_no(String staff_no)... | true |
aa65614b2b79a73c14c7c76f06ba6dd719c5bca6 | Java | aaronamjid2608/mobileplatformdevelopmentCW | /app/src/main/java/org/me/gcu/equakestartercode/DetailFragment.java | UTF-8 | 2,023 | 2.53125 | 3 | [] | no_license | package org.me.gcu.equakestartercode;
//Aaron Amjid S1626987
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
/*
DetailFragment class
Fragment class designed to display the deta... | true |
c45295826074aaf410a8dfc7459fa4bc44fc7ad8 | Java | Dean4iq/homework | /src/main/java/ua/den/model/annotations/validators/NameValidator.java | UTF-8 | 877 | 2.625 | 3 | [] | no_license | package ua.den.model.annotations.validators;
import ua.den.model.annotations.ValidName;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class NameValidator implements ConstraintValidator<ValidName,... | true |
20dafdc397d86359fd7363dadf3de79717ab6092 | Java | Fastrun/fling_sdk_android | /src/tv/matchstick/server/common/images/WebImageCreator.java | UTF-8 | 2,248 | 2.28125 | 2 | [] | no_license |
package tv.matchstick.server.common.images;
import tv.matchstick.server.common.exception.FlingRuntimeException;
import tv.matchstick.server.common.internal.safeparcel.ParcelReader;
import tv.matchstick.server.common.internal.safeparcel.ParcelWritter;
import android.net.Uri;
import android.os.Parcel;
public final cla... | true |
53fc6fe1564330a077ab3294e96463b9c98c3d09 | Java | raymicxin/ssexxe | /ssexxe/src/bugfind/utils/pmdadapters/MethodArgument.java | UTF-8 | 1,527 | 2.734375 | 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 bugfind.utils.pmdadapters;
import java.util.List;
/**
*
* @author Mikosh
*/
public class MethodArgument {
String argu... | true |
971e8dad3e145df09b3047a9e8f71dbb39b74ffb | Java | aarantes23/save-saulo | /src/java/dao/PhoneDao.java | UTF-8 | 2,557 | 2.75 | 3 | [] | no_license | /*
* Developed by Arthur Arantes Faria
* Graduating in Computer Science on UNIFOR-MG BRASIL
* arthurarantes23@hotmail.com
*/
package dao;
import java.util.List;
import model.Phone;
import org.hibernate.Session;
import util.HibernateUtil;
/**
*
* @author Arthur Arantes Faria <arthurarantes23@hotma... | true |
eab2dbdb29a120f6227484ab59812ab6fe53ffdb | Java | dibyendughosh18/PageSlammer | /src/main/java/com/pageSlammer/application/serviceImpl/UserRegistrationServiceImpl.java | UTF-8 | 1,370 | 2.28125 | 2 | [] | no_license | package com.pageSlammer.application.serviceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pageSlammer.application.model.UserMaster;
import com.pageSlammer.application.repository.UserMasterRepository;
import com.pageSlammer.application.se... | true |
29a64c4710c830939e2eb27a067ff054754af5a6 | Java | gyanendrachandrawat/practice-java-sts-workspace | /SB_HB_OTO/src/main/java/com/practice/controller/InstructorController.java | UTF-8 | 2,753 | 2.328125 | 2 | [] | no_license | package com.practice.controller;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping... | true |