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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
62daef0e0e7ea2cceb4ba275e157c1e1292c87ee | Java | mucsi96/hu.mucsi.enterpriser | /ee6lab3/src/main/java/hu/mucsi/enterpriser/DBPopulator.java | UTF-8 | 5,081 | 2.484375 | 2 | [] | no_license | package hu.mucsi.enterpriser;
import hu.mucsi.enterpriser.jpa.Resource;
import hu.mucsi.enterpriser.jpa.User;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Singleton;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
@Singleton
public class DBPopulator {
@... | true |
752bf91b1e7437a4a5a1e312a000ab003a9b6243 | Java | softwaremytest/test | /src/servlet/SearchAction.java | UTF-8 | 1,891 | 2.28125 | 2 | [] | no_license | package servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import... | true |
8dcb178f783cece836a70b5cd774dfb95790e3d5 | Java | tychkov-maxim/GWT-user-registration-wizzard | /gwt/gwt-web/src/com/mdp/hometask/client/HomeTask.java | UTF-8 | 549 | 2.140625 | 2 | [] | no_license | package com.mdp.hometask.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.RootPanel;
public class HomeTask implements EntryPoint {
public void onModuleLoad() {
Grid grid = new Grid(2, 2);
grid.setStyleName("task... | true |
8ec3f174a1ff82da01990ffe16f5418c648a5b6a | Java | Quick-Lift/Gate | /app/src/main/java/com/quicklift/DriveWithUs.java | UTF-8 | 1,685 | 2.03125 | 2 | [] | no_license | package com.quicklift;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.... | true |
6f31dc672e89099c6c31181d42b987814b6e59f1 | Java | saka1029/Puzzle | /src/test/java/test/puzzle/core/TestImage.java | UTF-8 | 1,153 | 2.90625 | 3 | [] | no_license | package test.puzzle.core;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import org.junit.Test;
public class TestImage {
@Test
public vo... | true |
b067d98ef45cb5ff2da76387f0a4525975bd322e | Java | williamtonks/High-School | /Tonks Connect Four/Block.java | UTF-8 | 1,082 | 3.265625 | 3 | [] | no_license | import java.util.*;
import javax.swing.*;
import java.awt.*;
public class Block
{
private int x, y, rowNum, colNum, width, height;
private Color color;
private Dot myDot;
private Rectangle r;
public Block(int xDimension, int yDimension)
{
width = 50;
height = width;
x = ... | true |
bcde278f4e63881088294e3d924e8761c59d8f0d | Java | nikowis/space-simulator | /src/pl/nikowis/entities/MovingEntity.java | UTF-8 | 2,066 | 2.734375 | 3 | [] | no_license | package pl.nikowis.entities;
import org.lwjgl.input.Keyboard;
import org.lwjgl.util.vector.Vector3f;
import pl.nikowis.config.Config;
import pl.nikowis.models.FullModel;
import pl.nikowis.renderEngine.DisplayManager;
import java.util.List;
/**
* Created by Nikodem on 12/27/2016.
*/
public class Moving... | true |
074709f32421f92834f0cb4c755aedc1cc56d539 | Java | foodoon/shop | /src/main/java/guda/shop/cms/entity/base/BaseStandard.java | UTF-8 | 2,892 | 2.28125 | 2 | [] | no_license | package guda.shop.cms.entity.base;
import guda.shop.cms.entity.ProductFashion;
import guda.shop.cms.entity.Standard;
import guda.shop.cms.entity.StandardType;
import java.io.Serializable;
import java.util.Set;
public abstract class BaseStandard
implements Serializable {
public static String REF = "Standa... | true |
2277353e093f3f2d4472dfd4b7fa3a337c659112 | Java | jcorcoran/deepspace | /src/test/java/frc/team2767/deepspace/util/VectorRateLimitTest.java | UTF-8 | 1,230 | 2.484375 | 2 | [
"MIT"
] | permissive | package frc.team2767.deepspace.util;
import static org.assertj.core.api.Assertions.assertThat;
import org.assertj.core.data.Percentage;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvFileSource;
class VectorRateLimitTest {
private static double[] fwdOutput;
privat... | true |
f584de0656c457c27520dbce8c79dde9180707a1 | Java | mazdac/inwaderz | /src/com/mmm/ztp/weapons/WeaponLeftSideDecorator.java | UTF-8 | 389 | 2.34375 | 2 | [] | no_license | package com.mmm.ztp.weapons;
public class WeaponLeftSideDecorator extends WeaponAbstractDecorator {
Weapon leftSide;
WeaponLeftSideDecorator(Weapon decoredObject) {
super(decoredObject);
}
public void changeAmmo(Bullet newAmmo) {
this.dekorowany.changeAmmo(newAmmo);
this.leftSide.changeAmmo(newAmmo);
}
... | true |
7c346c4bd3f96321809c0c782d0c1c6d6c129a9d | Java | dophinlife/vavr-test | /src/main/java/com/guangp/collection/ListTest.java | UTF-8 | 431 | 3 | 3 | [] | no_license | package com.guangp.collection;
import io.vavr.collection.List;
import java.util.Arrays;
import java.util.stream.IntStream;
public class ListTest {
public static void main(String[] args) {
// java8
System.out.println(Arrays.asList(1, 2, 3).stream().reduce((i, j) -> i + j));
System.out.prin... | true |
b2c36ab1fcb82648bd925c3af5f35c3297fe6a72 | Java | junit/GenesisServer | /Code_Java/test/src/com/genesis/test/gameserver/prop/BattlePropConvertTest.java | UTF-8 | 1,445 | 2.359375 | 2 | [] | no_license | package com.genesis.test.gameserver.prop;
import com.genesis.common.core.excelmodel.TempAttrNode3Col;
import com.genesis.common.prop.battleprop.HeroBattlePropId;
import com.genesis.common.prop.battleprop.propeffect.BattlePropEffect;
import com.genesis.common.prop.battleprop.propeffect.PropEffectConverter;
import com.g... | true |
9508fdecb976dd33168c533b59ae55690cd81944 | Java | marcelosrodrigues/allinshopping | /src/main/java/com/pmrodrigues/android/allinshopping/alerts/UpdateApplicationDialog.java | UTF-8 | 1,333 | 2.21875 | 2 | [] | no_license | package com.pmrodrigues.android.allinshopping.alerts;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import com.pmrodrigues.android.allinshopping.... | true |
8b0816447bbeaa873b760cb7fc84a2bde405c2b3 | Java | duttam/Compudance | /schedulecloud/src/com/onetouch/view/bean/admin/event/EventPositionPDFExporter.java | UTF-8 | 14,419 | 1.890625 | 2 | [] | no_license | package com.onetouch.view.bean.admin.event;
import java.awt.Color;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.reflect.Array;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import ... | true |
936d6a998916a85c8fb8eb2dc24d0387e30504ed | Java | gfis/joeis-lite | /internal/fischer/mangf/A159910.java | UTF-8 | 471 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | package irvine.oeis.a159;
// generated by patch_offset.pl at 2023-06-16 18:27
import irvine.oeis.DifferenceSequence;
import irvine.oeis.PrependSequence;
import irvine.oeis.a014.A014561;
/**
* A159910 Distance of prime quadruplets divided by 30, rounded towards the nearest integer.
* @author Sean A. Irvine
*/
publi... | true |
5138752486a64db8126cfadf0b8b3a1979adadea | Java | zhangfuxiang/Tea_Market | /app/src/main/java/com/delta/smt/ui/find/auctionHouseDetail/AuctionHouseDetailActivity.java | UTF-8 | 11,807 | 1.523438 | 2 | [] | no_license | package com.delta.smt.ui.find.auctionHouseDetail;
import android.graphics.Color;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager... | true |
9fe7202bf6dc43ecc2d2a799d33bd9705bf21e2c | Java | HLudmann/fr-g3 | /src/userInterface/tests/VisitorInterfaceTest.java | UTF-8 | 5,312 | 2.625 | 3 | [] | no_license | package userInterface.tests;
import static org.junit.Assert.*;
import org.junit.*;
import java.util.ArrayList;
import java.util.Date;
import container.CompContainer;
import container.PersonContainer;
import betSystem.*;
import personSystem.*;
import exceptions.*;
import userInterface.*;
import userIn... | true |
271a80eeeea94fe2367f9afffd57cfb306bcaad4 | Java | majdrezik/projects-assignments-server | /src/main/java/com/grauman/amdocs/models/SkillType.java | UTF-8 | 84 | 1.6875 | 2 | [] | no_license | package com.grauman.amdocs.models;
public enum SkillType {
TECHNICAL,
PRODUCT
}
| true |
266a79437dd644c5e4f73721335c19c384299384 | Java | EdieYang/mall | /linkpets-mall-core/src/main/java/com/linkpets/utils/UUIDUtils.java | UTF-8 | 211 | 2.09375 | 2 | [] | no_license | package com.linkpets.utils;
import java.util.UUID;
/**
* @author edie
*/
public class UUIDUtils {
public static String getId() {
return UUID.randomUUID().toString().replaceAll("-", "");
}
}
| true |
fcd7e6602f5eef64a38184f9abebe1e1ce57d219 | Java | Shkoda/WhiteRaven | /src/main/java/com/nightingale/view/view_components/modeller/ModellerQueueTextAreaBuilder.java | UTF-8 | 451 | 2.203125 | 2 | [] | no_license | package com.nightingale.view.view_components.modeller;
import javafx.scene.control.*;
import javafx.scene.text.*;
/**
* Created by Nightingale on 20.03.14.
*/
public class ModellerQueueTextAreaBuilder {
public static TextArea build() {
TextArea textField = new TextArea("There will be queue...");
... | true |
c9db447190270d27ad5c865b0484ac2f85f3cf61 | Java | EMResearch/EMB | /jdk_8_maven/cs/rest-gui/ocvn/web/src/main/java/org/devgateway/toolkit/web/excelcharts/data/AbstractSeries.java | UTF-8 | 850 | 2.25 | 2 | [
"Apache-2.0",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"MIT"
] | permissive | package org.devgateway.toolkit.web.excelcharts.data;
import org.apache.poi.ss.usermodel.charts.ChartDataSource;
import org.apache.poi.xssf.usermodel.charts.AbstractXSSFChartSeries;
import org.devgateway.toolkit.web.excelcharts.CustomChartSeries;
/**
* @author idobre
* @since 8/12/16
*/
public abstract class Abstra... | true |
1106024026e0164d251913c6b9b94a8c10f7d575 | Java | STFinancial/Minecraft | /SwordTF/src/main/EventManager.java | UTF-8 | 3,631 | 2.53125 | 3 | [] | no_license | package main;
import org.bukkit.Sound;
import org.bukkit.entity.Arrow;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org... | true |
0774fd9c83ca59bef28b00c6b5a46d73a63dd83f | Java | JoshuaSherwood94/BOI-Project | /src/main/java/com/qa/service/repository/AccountDBRepository.java | UTF-8 | 2,476 | 2.453125 | 2 | [] | no_license | package com.qa.service.repository;
import static javax.transaction.Transactional.TxType.REQUIRED;
import static javax.transaction.Transactional.TxType.SUPPORTS;
import java.util.Collection;
import javax.enterprise.inject.Default;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persis... | true |
10aad4f99ab068a0974aef958fede289af92b2fb | Java | qiao2017/learning | /src/test/pattern/facade/FileReader.java | UTF-8 | 347 | 2.765625 | 3 | [] | no_license | package test.pattern.facade;
/**
* @ClassName: FileReader
* @description: 文件读取类,充当子系统类
* @author: 乔莹
* @Date: 2019年2月23日 下午5:23:11
*/
public class FileReader {
public String read(String fileNameSrc) {
System.out.println("已读取文件" + fileNameSrc);
return fileNameSrc;
}
}
| true |
f621be39de053e53e914770b3561598d48fdd906 | Java | Moonphy/oldProject | /crm/crm-web/crm-web-biz/src/main/java/com/qipeipu/crm/service/impl/user/WxMemorandumServiceImpl.java | UTF-8 | 1,732 | 1.945313 | 2 | [] | no_license | package com.qipeipu.crm.service.impl.user;
import com.qipeipu.crm.dao.WxMemorandumDao;
import com.qipeipu.crm.dtos.global.VoModel;
import com.qipeipu.crm.dtos.user.MemorandumEntity;
import com.qipeipu.crm.service.user.WxMemorandumService;
import org.apache.commons.collections.CollectionUtils;
import org.springframewor... | true |
04f672167645c717ec1da34eeb96e6abd932593b | Java | byx2000/byx-container-extension-jdbc | /src/main/java/byx/container/extension/jdbc/JdbcUtilsRegister.java | UTF-8 | 957 | 2.21875 | 2 | [] | no_license | package byx.container.extension.jdbc;
import byx.ioc.core.Container;
import byx.ioc.core.ContainerCallback;
import byx.ioc.core.Dependency;
import byx.ioc.core.ObjectDefinition;
import byx.util.jdbc.JdbcUtils;
import javax.sql.DataSource;
/**
* 注册JdbcUtils
*
* @author byx
*/
public class JdbcUtilsRegister implem... | true |
ae41e60b4afaee53d571a50466149ba6628f8ddb | Java | d3vsupp0r7/spring4 | /spring4_mvc_helloworld/src/main/java/org/lba/spring4/service/EmployeeService.java | UTF-8 | 424 | 1.914063 | 2 | [] | no_license | package org.lba.spring4.service;
import java.util.List;
import org.lba.spring4.db.model.Employee;
public interface EmployeeService {
//C
public Employee saveEmployee(Employee employee);
//R
public List<Employee> listAllEmployees();
public Employee findById(long id);
//U
public int updateEmp... | true |
f61d37d4cab25ac2ecd327f2615c1c0d88e2c8b7 | Java | Syuu25Syuu/RJP- | /src/test1/db/SearchUserTest.java | UTF-8 | 1,838 | 2.453125 | 2 | [] | no_license | package test1.db;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import test1.been.SerchBean;
public class SearchUserTest {
public static ArrayList getS(String sessionToken,String searchId,Connection cn) {
ArrayList list... | true |
99fc1cda409e9e17d9f52852cc59614bf19d8c6a | Java | parkeys/ParkFinder | /ParkFinder/src/com/google/gwt/parkfinder/filter/SkateboardFilter.java | UTF-8 | 437 | 2.625 | 3 | [] | no_license | package com.google.gwt.parkfinder.filter;
import java.util.LinkedList;
import java.util.List;
import com.google.gwt.parkfinder.server.Park;
public class SkateboardFilter implements ParkFilter {
@Override
public List<Park> filter(List<Park> input) {
List<Park> output = new LinkedList<Park>();
for (Park park: i... | true |
4fcd249e4cc144ab1eb8f373888c82263ff4ae59 | Java | GotoFinal/diorite-configs-java8 | /src/main/java/org/diorite/config/ConfigPropertyTemplate.java | UTF-8 | 4,303 | 2.203125 | 2 | [
"MIT"
] | permissive | /*
* The MIT License (MIT)
*
* Copyright (c) 2017. Diorite (by Bartłomiej Mazur (aka GotoFinal))
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including withou... | true |
207e0691b1b2e912ac449b6403fda135ec02f500 | Java | strojnaewa/JavaPOZ24 | /src/Lessons6to9/Lesson6/WorkersDatabase/Menu.java | UTF-8 | 1,022 | 3.078125 | 3 | [] | no_license | package Lessons6to9.Lesson6.WorkersDatabase;
import java.util.Scanner;
public class Menu {
public void showMenu () {
System.out.println("Choose:");
System.out.println("1-List all employees (cut data)");
System.out.println("2-Add new employee");
... | true |
3c02d39511b5ed072e29aed49e999bae189ee248 | Java | Pouch-dev/KrystalShopping | /KrystalShopping/src/main/java/asmJava5/entities/Shop.java | UTF-8 | 630 | 2.234375 | 2 | [] | no_license | package asmJava5.entities;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Suppr... | true |
6c561b3330a086cd265157a3beec37806196aedc | Java | ci-and-cd/topinfra-maven | /topinfra-filesafe/src/test/java/top/infra/filesafe/OpensslTest.java | UTF-8 | 4,077 | 2.359375 | 2 | [
"MIT"
] | permissive | package top.infra.filesafe;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.f... | true |
21eea46b90a2f8d12be825c07f79d76361016c34 | Java | a-polyakov/com.zemrow.messenger | /messenger-server/src/main/java/com/zemrow/messenger/mq/ClusterMessagingListener.java | UTF-8 | 786 | 2.15625 | 2 | [] | no_license | package com.zemrow.messenger.mq;
import com.zemrow.messenger.enums.ResponseScopeEnum;
/**
* Слушатель сообщений передаваемых между узлами кластера.
*
* @author Alexandr Polyakov on 2019.01.16
*/
public interface ClusterMessagingListener {
/**
* Принять сообщение
*
* @param scope Уровен... | true |
6c957410feede5c5895617ca786e1adbc40fad5a | Java | sirinath/Terracotta | /dso/branches/testMode/code/base/legacy-test-tree/tests.base/com/tctest/modes/TestMode.java | UTF-8 | 1,357 | 2.421875 | 2 | [] | no_license | /*
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
*/
package com.tctest.modes;
import com.tc.test.TestConfigObject;
public interface TestMode {
public enum Mode {
NORMAL, CRASH, ACTIVE_PASSIVE, ACTIVE_ACTIVE;
public static Mode fromString(String mode) {
i... | true |
cae67b80a144fad0f3bb86bdad3dafc823782a03 | Java | TengSir/shop | /src/com/oracle/shop/model/javabean/Product.java | UTF-8 | 2,734 | 2.421875 | 2 | [] | no_license | package com.oracle.shop.model.javabean;
import java.io.Serializable;
import java.util.Set;
public class Product implements Serializable{
private int id;
private String name;
private String brand;
private String type;
private String description;
private String firstImage;
private float discount;
... | true |
51b47a50d7562ae3c8dece0486700cc59f7e55e1 | Java | HarshJoshiIIITV/best_recipe | /Best_Recipe/src/start_me.java | UTF-8 | 1,301 | 3.09375 | 3 | [] | no_license | import java.util.*;
public class start_me {
public static void diabetic() {
Diabetic d=new Diabetic();
System.out.println("\n******You are in Diabetes section******");
recommend_or_not r=new recommend_or_not(d.todo(),d.notodo());
search_best sb=new search_best(d.todo().split(","),d.notodo().split(","));
... | true |
c82c50f050587891ee950008c2687ee8113888d6 | Java | xueyaohuang/RoadToCodeFarmer | /450. Delete Node in a BST.java | UTF-8 | 1,376 | 3.78125 | 4 | [] | no_license | /**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
// O(h) time
class Solution {
public TreeNode deleteNode(TreeNode root, int key) {
if (root == null) {
return root;
... | true |
647218b01c5ad944f62f27320ca0965a7d8e9371 | Java | Grisu118/vesys | /08_REST2/src/ch/fhnw/ds/rest/msg/resources/XStreamProvider.java | UTF-8 | 1,609 | 2.140625 | 2 | [] | no_license | package ch.fhnw.ds.rest.msg.resources;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import javax.ws.rs.Consumes;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs... | true |
ccf0511043604f29e69326b4ff3ff50dfddcc927 | Java | china-kook/KmCore | /src/main/java/com/km66/framework/core/utils/lang/LangAop.java | UTF-8 | 485 | 1.851563 | 2 | [] | no_license | package com.km66.framework.core.utils.lang;
import com.km66.framework.core.utils.lang.asm.TargetObjectAdapter;
import org.aspectj.lang.annotation.Aspect;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.Opcodes;
import org.sprin... | true |
2a830616cdaffab74aa062c306e4de94db01bc87 | Java | jacksn/onlinecafe | /src/main/java/test/onlinecafe/repository/jpa/JpaCoffeeTypeRepository.java | UTF-8 | 1,520 | 2.234375 | 2 | [] | no_license | package test.onlinecafe.repository.jpa;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import test.onlinecafe.model.CoffeeType;
import test.onlinecafe.repository.CoffeeTypeRepository;
import java... | true |
497f0afe20bcccf70250a8b2f02eb6f76051a420 | Java | DreamingOfDreams/GdeiAssistant | /src/main/java/edu/gdei/gdeiassistant/Controller/Delivery/DeliveryRestController.java | UTF-8 | 4,071 | 2.234375 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package edu.gdei.gdeiassistant.Controller.Delivery;
import com.taobao.wsgsvr.WsgException;
import edu.gdei.gdeiassistant.Exception.DatabaseException.DataNotExistException;
import edu.gdei.gdeiassistant.Exception.DeliveryException.DeliveryOrderStateUpdatedException;
import edu.gdei.gdeiassistant.Exception.DeliveryExcep... | true |
9326b4d0989075a6f2bc558dcb0f75ba7fe03324 | Java | galleog/piggymetrics-k8s | /notification-service/src/main/java/com/github/galleog/piggymetrics/notification/domain/NotificationType.java | UTF-8 | 1,381 | 2.359375 | 2 | [
"MIT"
] | permissive | package com.github.galleog.piggymetrics.notification.domain;
import lombok.Getter;
import org.apache.commons.lang3.Validate;
import org.springframework.lang.NonNull;
import org.springframework.lang.Nullable;
/**
* Enumeration for notification types.
*/
@Getter
public enum NotificationType {
/**
* Backup no... | true |
8513e3208f7a14b681ca5e41582bdfdfc5ee6ba8 | Java | macinashutosh/JavaCodes | /codingNinjas17/src/GenericTreeUse.java | UTF-8 | 2,725 | 3.4375 | 3 | [] | no_license | import java.util.Scanner;
public class GenericTreeUse {
public static int numNodes(GenericTreeNode<Integer> root) {
if (root == null) {
return 0;
}
int count = 1;
for (int i = 0; i < root.children.size(); i++) {
count += numNodes(root.children.get(i));
}
return count;
}
// 1 3 2 3 6 0 7 0 8 ... | true |
0c1766f36ccd23b0009c3af4e99bd3c8b5dfc2fe | Java | PowerfulBart/AACPractice | /app/src/main/java/com/example/zhengbotao/aacpractice/data/Girl.java | UTF-8 | 774 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package com.example.zhengbotao.aacpractice.data;
/**
* Created by zhengbotao on 18-2-10.
*/
public class Girl {
private int resId;
private String title;
private String subTitle;
public Girl(int resId, String title, String subTitle) {
this.resId = resId;
this.title = title;
... | true |
064f53468c63fb64541676a8b994d679efb797ef | Java | red5p/eventlite_G10 | /src/test/java/uk/ac/man/cs/eventlite/controllers/EventsControllerApiTest.java | UTF-8 | 3,586 | 2.03125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | package uk.ac.man.cs.eventlite.controllers;
import static org.hamcrest.Matchers.endsWith;
import static org.hamcrest.Matchers.equalTo;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static o... | true |
52de13200d8e9cda793a9bf845455e3c06fc35f8 | Java | 993577028/FleaTransaction | /zjx/src/main/java/cn/fleatransaction/service/impl/StudentService.java | UTF-8 | 808 | 1.953125 | 2 | [] | no_license | package cn.fleatransaction.service.impl;
import cn.fleatransaction.entity.Student;
import cn.fleatransaction.mapper.StudentMapper;
import cn.fleatransaction.service.IStudentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
impo... | true |
a05aee9ff32f175b2fb6b3dc58d7fb7b2f7ea280 | Java | Tiny-666/031702115 | /13water/src/PAIHANGBANG.java | UTF-8 | 2,708 | 2.484375 | 2 | [] | no_license | package GAME;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollP... | true |
ddf17a35e7b1c3c28138071b27e2d0ce94933afd | Java | dynatyper/SDET_Projects | /sdet-team-project/src/main/java/com/fannie/pom/ElearningPOM.java | UTF-8 | 981 | 2.359375 | 2 | [] | no_license | package com.fannie.pom;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class ElearningPOM {
private WebDriver driver;
public ElearningPOM(WebDriver driver){
this.driver = driver;
}
public void navigateToWebPage(String url){
driver.get(url);
}
public void ... | true |
f99487800f8a05e96e120d6f8516c7c866728cc9 | Java | kingrocy/springcloud | /springcloud-eureka-server/src/main/java/com/yunhui/EurekaServerApplication.java | UTF-8 | 563 | 1.617188 | 2 | [
"Apache-2.0"
] | permissive | package com.yunhui;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
/**
* @Author: Yun
* @Description... | true |
6934728e827ea49131c3220edd0c1748be337589 | Java | kiran657/ProdShelfPrivate | /src/test/java/galenTest/WelcomePageTest.java | UTF-8 | 1,869 | 2.078125 | 2 | [] | no_license | package galenTest;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import com.galenframework.testng.GalenTestNgTestBase;
import static java.util.Arr... | true |
adbab85e41c57832d55bf69a69bfc1dbd39d0c19 | Java | kmrlove13/homeWork | /homeWork/src/kr/or/ddit/servlet01/HttpRequestDescription.java | UTF-8 | 4,837 | 2.734375 | 3 | [] | no_license | package kr.or.ddit.servlet01;
import java.io.IOException;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServle... | true |
3dee3bf863bb47bf3dea2123ac0a1d02043daf8b | Java | SergiiGrechukha/ModuleApp | /dstream/src/main/java/com/loki/dstream/stubs/SampleClass6702.java | UTF-8 | 274 | 2.03125 | 2 | [] | no_license | package com.loki.dstream.stubs;
public class SampleClass6702 {
private SampleClass6703 sampleClass;
public SampleClass6702(){
sampleClass = new SampleClass6703();
}
public String getClassName() {
return sampleClass.getClassName();
}
} | true |
688d59284acc6a89fc83be1d8a084177726696a0 | Java | speram1/W2Assignment | /src/ClawHammerCrack.java | UTF-8 | 220 | 2.46875 | 2 | [] | no_license |
public class ClawHammerCrack implements Command {
public ClawHammer claw;
public ClawHammerCrack( ClawHammer claw)
{
this.claw = claw;
}
@Override
public void execute() {
claw.crack();
}
}
| true |
8ae33bcd180cc769607efdb9b8ad1bd4f66bb557 | Java | ZandileN/Assignment4-immutableClasses | /src/test/java/com/mycompany/immutablefoods/ReceiptTest.java | UTF-8 | 2,028 | 2.609375 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.immutablefoods;
import static org.testng.Assert.*;
import com.mycompany.immutablefoods.model.Receipt;
import com.mycompany.immutablefoods.model.Cashier;
import com.mycompany.immutablefoods... | true |
1be2f10f381c44ea08e1db478b45b2f6754f3799 | Java | kiselevalesha/AlisaRzhd | /rzd-emulator/src/main/java/ru/rzdhack/rzdapi/emulator/model/Price.java | UTF-8 | 175 | 1.609375 | 2 | [] | no_license | package ru.rzdhack.rzdapi.emulator.model;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class Price {
private Long cents;
private Long whole;
}
| true |
0bfe8cc9f5aee2434a052feedd9134fd0e26fc91 | Java | Acogero/spring-gradle | /src/main/java/com/tipiniquim/apig/Util/NotNullUsuario.java | UTF-8 | 466 | 2.015625 | 2 | [] | no_license | package com.tipiniquim.apig.Util;
public class NotNullUsuario {
public static final String USER_NOME = "Preencha o nome do usuário";
public static final String USER_EMAIL = "Preencha o e-mail do usuário";
public static final String USER_SENHA = "Preencha s senha do usuário";
public static final String... | true |
80bbae1ff7ae742b88525b38cf62c0dfbca2c277 | Java | Rakirnd/30433-MDV-Project | /Assignments/Assignment1/tournament-dao/src/main/java/dao/UserDAO.java | UTF-8 | 7,216 | 2.546875 | 3 | [] | no_license | package dao;
import java.lang.reflect.Field;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Vector;
import connection.ConnectionFactory;
import connection.SQLOperation;
import javafx.collections.FXColl... | true |
6efae832d6956bb3d599553d008f8948a29b0b85 | Java | Nopants/ScriptedEvents | /src/me/nopants/ScriptedEvents/type/entities/variables/SEinteger.java | UTF-8 | 446 | 2.5 | 2 | [] | no_license | package me.nopants.ScriptedEvents.type.entities.variables;
public class SEinteger extends SEvariable{
private static final long serialVersionUID = 1L;
int value;
public SEinteger(String newName, String newOwner, int newValue, String newPack) {
super(newName, newOwner, newPack);
this.setValue(newValu... | true |
fd17b63161ff495951cdf025f77bb7b79f0e0be6 | Java | yangyuhong/rxsample_demo | /app/src/main/java/com/example/yuhongyang/testrotrofit/bean/AdvInfoTemp.java | UTF-8 | 575 | 2.078125 | 2 | [] | no_license | package com.example.yuhongyang.testrotrofit.bean;
/**
* Created by yuhong.yang on 2018/2/1.
*/
public class AdvInfoTemp {
/**
* errorcode : -998
* errormsg : 请传参数
*/
private String errorcode;
private String errormsg;
public String getErrorcode() {
return errorcode;
}
... | true |
a4a310469853c63f99588172de6e5194211caa6a | Java | Inzimam-Tariq/PointOfSaleInspection | /app/src/main/java/web2design/epos/AppConstants.java | UTF-8 | 1,804 | 1.773438 | 2 | [] | no_license | package web2design.epos;
import web2design.epos.models.SubCatInfo;
import java.util.ArrayList;
import java.util.List;
/**
* Created by ArdSoft on 4/11/2017.
*/
public class AppConstants {
public static final String ALREADY_LOGIN = "alreadyLogin";
public static final String PHARMACIST_ID = "pharmacist_i... | true |
24dadcf318c92176c805b36e2dccaf5caf46988d | Java | jamesdschmidt/exercises-for-programmers | /43-website-generator/Console.java | UTF-8 | 390 | 3.21875 | 3 | [] | no_license | public class Console {
public static String getString(String prompt) {
String line = null;
do {
line = System.console().readLine(prompt);
} while (line == null || line.isEmpty());
return line;
}
public static boolean getBoolean(String prompt, String trueValue) {
var s = getString(promp... | true |
9923d59f706a0979008a39fb928881101fc97a90 | Java | kalaveijo/MetroMap | /src/metropolia/project/utility/RoomManager.java | UTF-8 | 17,017 | 2.921875 | 3 | [] | no_license | package metropolia.project.utility;
import java.util.ArrayList;
import metropolia.project.DAL.SingleRoom;
import metropolia.project.metromap.R;
import android.graphics.Canvas;
import android.graphics.Point;
/*
* Hold all rooms
*/
public class RoomManager {
private ArrayList<SingleRoom> roomList;
public ArrayL... | true |
0a520e08e00eab73fc44536d6c0a950f5469dfc2 | Java | diogomenezes22/carta-digital-restaurante | /CartaDigital/src/com/menu/menus/PrecioUndsImporte.java | UTF-8 | 1,037 | 2.640625 | 3 | [] | no_license | package com.menu.menus;
import java.io.Serializable;
// Clase que sera objeto del map de la estructura de platos seleccionados
public class PrecioUndsImporte implements Serializable{
private Double precio;
private Integer unds;
private Double importe;
// Constructor de la clase
public Pre... | true |
0cb84f0ddfcb01dd3b18aa899acfbac7531de575 | Java | cyohish/Talk2Min | /app/src/main/java/com/garmin/gncs/sms/AdapterComp.java | UTF-8 | 3,356 | 2.59375 | 3 | [] | no_license | package com.garmin.gncs.sms;
import android.bluetooth.BluetoothDevice;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.ArrayList;
/**
* Created by cyo... | true |
394ae762c06cad337c7dd11cc366abd8cb3023a2 | Java | terrynie/BlueSky | /src/com/qs/sqlserver/TestDataBean.java | UTF-8 | 2,591 | 2.21875 | 2 | [] | no_license | package com.qs.sqlserver;
import java.sql.Timestamp;
public class TestDataBean {
private int idm;
private int idfac;
private Timestamp time;
private float e1;
private float e2;
private float e3;
private float e4;
private float e5;
private float e6;
private float e7;
private float e8;
pri... | true |
5323db42febee8b22e2eca2a993fe16db4abeeb1 | Java | develofun/JHTA_project | /travel/src/travel/dto/FboardAttractionDTO.java | UHC | 3,568 | 2.40625 | 2 | [] | no_license | package travel.dto;
public class FboardAttractionDTO {
private int fboard_attraction_num;
private int fboard_num;
private String fboard_attraction_title;
private String fboard_attraction_sub_title;
private String fboard_attraction_time;
private String fboard_attraction_price;
private String fboard_attraction_ho... | true |
caf15a3a70bdd141ef4b08d77296ad6a42f82443 | Java | Jonasllj/teste01 | /src/Main/Main.java | UTF-8 | 267 | 1.929688 | 2 | [] | no_license | package Main;
import app.Venda;
import appiclation.Produto;
import entities.Cliente;
public class Main {
public static void main(String args[]) {
public static ArrayList <Produto> = new Produto();
Cliente c1 = new Cliente();
Venda v1 = new Venda();
}
}
| true |
2c271927da4b381a8902d24f2968ba72a130d183 | Java | BillionWin/File_Comparator_CSV_EXCEL | /src/main/java/file/comparator/servlets/ComparedFiles.java | UTF-8 | 1,070 | 2.5 | 2 | [] | no_license | package file.comparator.servlets;
import file.comparator.service.FileComparator;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
import java.util... | true |
948089c9b51a5a3ed86f13889e5bf72c5a813ef5 | Java | yeshm/study | /spring-boot/spring-boot-mybatis-xml/src/main/java/study/yeshm/controller/CityController.java | UTF-8 | 909 | 2.09375 | 2 | [] | no_license | package study.yeshm.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import study.y... | true |
13b06a0aae13b6bec7bd5c67c0451d230092bb81 | Java | mi499938150/SpringCloud-Example | /mi-user/user-server/src/main/java/com/mi/user/domain/UserInfo.java | UTF-8 | 406 | 1.6875 | 2 | [] | no_license | package com.mi.user.domain;
import lombok.Data;
import javax.persistence.*;
/**
* @author : Rong
* @date : 2020/2/14
* @Desc:
*/
@Data
@Entity
@Table(name = "user_info")
public class UserInfo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private String id;
private String username;
... | true |
be44e5afe619d4c5901131c7924935705734ae0b | Java | wchoiac/DIP1 | /Validator/src/main/java/rest/server/manager/CertificateManager.java | UTF-8 | 2,648 | 2.671875 | 3 | [] | no_license | package rest.server.manager;
import blockchain.utility.BlockChainSecurityHelper;
import config.Configuration;
import general.utility.GeneralHelper;
import general.security.SecurityHelper;
import java.io.File;
import java.io.IOException;
import java.security.cert.CertificateEncodingException;
import java.security.cert... | true |
86b24995303d631fa8e76cecb4d41685aa2e5402 | Java | adaj/example-play-akka | /app/controllers/MasterController.java | UTF-8 | 846 | 2.359375 | 2 | [] | no_license | package controllers;
import akka.actor.*;
import play.mvc.*;
import scala.compat.java8.FutureConverters;
import javax.inject.*;
import java.util.concurrent.CompletionStage;
import actors.*;
import messages.*;
import static akka.pattern.Patterns.ask;
/**
* This controller contains an action to handle HTTP requests
*... | true |
734ea0bb0e12e10b28c46c89891c0c9bff02db1e | Java | ALEXuH/design_pattern | /src/main/java/pattern/structural/bridge/Circle.java | UTF-8 | 496 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | package pattern.structural.bridge;
/** Created by ALEXuH on 2019/4/2 桥接模式: 将类的功能层次和实现层次分离,使二者可以独立的变化,在两者之间搭建桥梁,实现桥接*/
public class Circle extends Shape {
private int x, y, radius;
public Circle(int radius, int x, int y, DrawAPI drawAPI) {
super(drawAPI);
this.x = x;
this.y = y;
this.radius = ra... | true |
01912589503663cff8f6c538617eb133be2d610d | Java | daryanavi/monitoria-poo | /src/aula0910/Main.java | UTF-8 | 289 | 2.453125 | 2 | [] | no_license | /**
* 15 de set de 2019
*/
package aula0910;
/**
* @author Daryan Avi
*
*/
public class Main
{
public static void main(String[] args)
{
try
{
Extrator ex = new Extrator("40800");
System.out.println(ex.uri());
}
catch (Exception e)
{
e.printStackTrace();
}
}
} | true |
9ee861d0499d2a2363bee298593eac315ebecc0c | Java | shasait/commentcodegen | /de.hasait.eclipse.common/src/main/java/de/hasait/eclipse/common/JavaContentBuffer.java | UTF-8 | 1,566 | 2.125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* $Id: JavaContentBuffer.java,v 1.1 2008-04-08 11:06:12 concentus Exp $
*
* Copyright 2007 Sebastian Hasait
*
* 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.a... | true |
767dd4fe4831a216e46f694453f0f042608a27e0 | Java | kirti1211c/Crux-May-Live2021 | /Lec52/Longest_Consecutive_Sequence.java | UTF-8 | 855 | 3.546875 | 4 | [] | no_license | package Lec52;
import java.util.HashMap;
public class Longest_Consecutive_Sequence {
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] arr = { 0, 3, 7, 2, 5, 8, 4, 6, 0, 1 };
System.out.println(Consecutive_Sequence(arr));
}
public static int Consecutive_Sequence(int[] arr) ... | true |
f4cd9395af9bc5cafbf41cdf96674d086a3b2415 | Java | AskeNdentiS/Home_Work | /src/com/source/it/lecture3/homework/YourOwnBinarySearch.java | UTF-8 | 822 | 3.625 | 4 | [] | no_license | package com.source.it.lecture3.homework;
public class YourOwnBinarySearch {
static int[] array = {1, 4, 7, 10, 17, 30, 48, 50};
static int element = 30;
public static void main(String[] args) {
System.out.println(binarySearch(array, element));
}
private static int binarySearch(int[] arra... | true |
44f39d6e12e8197203f2cc8c15ff7458e4a13d4a | Java | uktrade/lite-user-service-archive | /src/main/java/uk/gov/bis/lite/user/service/RedisUserPrivilegesServiceImpl.java | UTF-8 | 1,222 | 2 | 2 | [
"MIT"
] | permissive | package uk.gov.bis.lite.user.service;
import com.google.inject.Inject;
import com.google.inject.name.Named;
import uk.gov.bis.lite.common.redis.RedissonCache;
import uk.gov.bis.lite.common.redis.Ttl;
import uk.gov.bis.lite.user.api.view.UserPrivilegesView;
import java.util.Optional;
public class RedisUserPrivilegesS... | true |
57e1347ce3c63df9d031a6c698f4afb4f3085067 | Java | wyf10657123/wyf-maven-demo | /src/main/java/util/CityUtil.java | UTF-8 | 1,603 | 2.8125 | 3 | [] | no_license | package util;
import java.util.HashMap;
import java.util.Map;
public class CityUtil {
public static Map<String,Long> getCityMap(){
Map<String,Long> cityMap=new HashMap<>();
cityMap.put("成都",510100L);
cityMap.put("达州",511700L);
cityMap.put("南充",511300L);
cityMap.put("重庆",5... | true |
434cb4e5ef4c4328182a24da6b4201f95937f69e | Java | ouyanghaitaozuiniubi/CommonRepository | /Abc_Validation_Demo/src/main/java/com/aspire/plus/enums/AgeEnum.java | UTF-8 | 457 | 2.78125 | 3 | [] | no_license | package com.aspire.plus.enums;
import lombok.Getter;
/**
* (non-javadoc)
*
* @author JustryDeng
* @date 2020/4/21 10:08:26
*/
@Getter
public enum AgeEnum {
/** 常量字段 */
TEN(10, "十岁了"),
EIGHTEEN(18, "十八岁了"),
TWENTY(20, "二十岁了");
private Integer age;
private String description;
AgeE... | true |
d694f02e0866176e88a047f137f984855ae077f3 | Java | Funck-Felipe97/courses | /course/src/test/java/academy/devdojo/youtube/course/endpoint/service/LessonServiceTest.java | UTF-8 | 3,801 | 2.53125 | 3 | [] | no_license | package academy.devdojo.youtube.course.endpoint.service;
import academy.devdojo.youtube.course.endpoint.service.interfaces.SectionService;
import academy.devdojo.youtube.course.model.entity.Lesson;
import academy.devdojo.youtube.course.model.entity.Section;
import academy.devdojo.youtube.course.repository.LessonReposi... | true |
0c6fe0493cb7a996493278b4741894ba9f4d4f54 | Java | OseiasReis/Etec | /0 - TCC/Aplicativo/ILibrary Desktop/src/persist/jdbc/JDBCRelatorio.java | UTF-8 | 1,451 | 2.671875 | 3 | [] | no_license | package persist.jdbc;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Date;
import persist.ConnectionFactory;
public class JDBCRelatorio {
private Connection conn;
{
co... | true |
e7ebecf088afc2ccfb5eae633cbeab9edaeb2b35 | Java | wayshall/onetwo | /core/modules/spring/src/main/java/org/onetwo/common/proxy/AbstractMethodResolver.java | UTF-8 | 4,684 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package org.onetwo.common.proxy;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.lang.reflect.ParameterizedType;
import java.util.List;
import java.util.Optional;
import javax.validation.Valid;
import org.onetwo.common.apiclient.utils.ApiClient... | true |
c244bdd4f979bd2b0e196de71bb58a31d961e0e6 | Java | dariofl24/darioNBS | /Report_sql/src/report_sql/Report_sql.java | UTF-8 | 252 | 1.59375 | 2 | [] | no_license |
package report_sql;
import java.sql.*;
public class Report_sql {
public static void main(String[] args) {
new Report().generateString("01","03","2013","2013");
}//main
}//class
| true |
ed51148bf8ddb9b252b78cbabd7c083599aac242 | Java | paolaos/DBMS_Simulator | /src/QueryStatistics.java | UTF-8 | 1,861 | 2.296875 | 2 | [] | no_license | /**
* Created by Paola Ortega S on 2/8/2017.
*/
/**
* Store All the time information from some query in all modules.
*/
public class QueryStatistics {
private QueryModuleStatistics clientConnectionStatisticsWithoutResolvedQuery;
private QueryModuleStatistics processManagerStatistics;
private QueryModul... | true |
f0cd0dc34488425df8a043d11cd482094cd154c9 | Java | mzshieh/tw-icpc-pc2 | /test/general/Java/WA.java | UTF-8 | 144 | 1.726563 | 2 | [] | no_license | import java.lang.*;
import java.io.*;
public class WA{
public static void main(String args[])
{
System.out.println("Wrong answer!!");
}
}
| true |
ebd224e8f67d285277be291c4ea127fcfff0cca0 | Java | FabiMacedo/Curso-De-Java-Basico_Loiane-Training | /curso-java-basico/src/com/fabiana/cursojava/aula17/labs/Exercicio09.java | ISO-8859-1 | 363 | 3.5625 | 4 | [
"MIT"
] | permissive | package com.fabiana.cursojava.aula17.labs;
public class Exercicio09 {
public static void main(String[] args) {
/*9. Faa um programa que imprima na tela apenas os nmeros mpares entre 1 e 50.*/
System.out.println("Os nmeros mpares entre 0 e 50 so ");
for (int i=0; i<50; i++) {
if (i%2!=0) {
System.o... | true |
f3aa42b65c2852090a492819be50361de94ecf2c | Java | tbs005/spring-webservice-demo | /tspplatform-ccservice/src/main/java/com/vcyber/tspplatform/tsp/response/HomeInfo.java | UTF-8 | 646 | 1.914063 | 2 | [] | no_license | package com.vcyber.tspplatform.tsp.response;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/*
* @author 李黎明
* 家庭信息
*/
@XStreamAlias("HOME_INFO")
public class HomeInfo {
/*
* 家庭住址
*/
@XStreamAlias("HADDRESS")
private String haddress;
/*
* 家庭电话
*/
@XStreamAlias("HPHONE")
... | true |
95bd63b24281526b7b785ce760ab05e0697c1aeb | Java | Dp-Android-2018/Meshini | /app/src/main/java/com/dp/meshini/view/fragment/AboutFragment.java | UTF-8 | 1,027 | 2.265625 | 2 | [] | no_license | package com.dp.meshini.view.fragment;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.text.method.ScrollingMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.dp.meshini.R;
/**
* A ... | true |
ed47111f01146c876c867b7b12f1f217daadc14e | Java | junges521/src_awe | /src/main/java/com/xiaomi/push/hw.java | UTF-8 | 550 | 1.695313 | 2 | [] | no_license | package com.xiaomi.push;
import android.content.Context;
import com.xiaomi.push.am;
import java.util.ArrayList;
public final class hw extends am.b {
/* renamed from: a reason: collision with root package name */
final /* synthetic */ Context f82208a;
hw(Context context) {
this.f82208a = context... | true |
7dd5f317ea10d664631ca924c81979216870126b | Java | CTaylor63/JPaint | /src/shapeStrategies/OutlinedTriangleStrategy.java | UTF-8 | 674 | 3 | 3 | [] | no_license | package shapeStrategies;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import utility.PaintPoint;
import view.interfaces.PaintCanvasBase;
public class OutlinedTriangleStrategy implements DrawStrategy {
public OutlinedTriangleStrategy() {
}
public void draw(PaintCanvasBase can... | true |
47e57ba51a145d8303f3a0e6f063fe914fee405b | Java | Arteaga2k/CleanFit | /presentation/src/main/java/com/zireck/calories/presentation/presenter/EditFoodPresenter.java | UTF-8 | 6,090 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package com.zireck.calories.presentation.presenter;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import com.squareup.picasso.Callback;
import com.squareup.picasso.Picasso;
import com.zireck.calories.presenta... | true |
9b6f6f9ca274022a1fbabecfa63ba9cd48e1115d | Java | lavishjain36/Selenium-End-to-end-Automation | /selenium4/src/selenium4/RelativeLocator.java | UTF-8 | 1,310 | 2.59375 | 3 | [] | no_license | package selenium4;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import static org.openqa.selenium.support.locators.RelativeLocator.withTagName;
public class RelativeLocator {
public static void main(String... | true |
1cc4290aeaf6cc34052751c70a04618fbf781972 | Java | aenevala/akka-ddd | /messaging/src/main/java/com/github/aenevala/ddd/messaging/command/Command.java | UTF-8 | 385 | 2.03125 | 2 | [] | no_license | package com.github.aenevala.ddd.messaging.command;
import java.io.Serializable;
/**
* Created by NevalaA on 29.7.2015.
*/
public abstract class Command implements Serializable {
private final String aggregateId;
public Command(final String entityId) {
this.aggregateId = entityId;
}
publ... | true |
8023c68762796ced164b792f2b1936cfeec1fa73 | Java | Izmir-Java-Bootcamp/Homework2Solid | /src/main/java/com/kodluyoruz/homework2solid/model/cart/CartItem.java | UTF-8 | 666 | 2.578125 | 3 | [] | no_license | package com.kodluyoruz.homework2solid.model.cart;
import com.kodluyoruz.homework2solid.model.Product;
import com.kodluyoruz.homework2solid.model.Seller;
import com.kodluyoruz.homework2solid.service.discount.Discount;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class CartItem {
private Product... | true |
3c27503eb3ae3a8c6c2460c563d581a2d13b282d | Java | termeneder/compingo | /lingo/src/main/java/jochem/mytools/MyCollectionTools.java | UTF-8 | 4,187 | 3.28125 | 3 | [] | no_license | package jochem.mytools;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class MyCollectionTools {
public static <T> Set<List<T>> getAllListsOver(Set<T> alphabet, int size) {
if (size < 0) {
throw new IllegalArgumentException("... | true |
b9540ec8f138b8f2e438765ab6c261dc62d8e90c | Java | jlaw90/JIRCL | /src/org/newbiehacker/conlib/irc/Mask.java | UTF-8 | 390 | 2.046875 | 2 | [] | no_license | package org.newbiehacker.conlib.irc;
/**
* Copyright 2006 James Lawrence
* Date: 13-Dec-2006
* Time: 22:51:15
* Modification and redistribution without explicit permission by the creator(s) is prohibited
* This source may be modified for personal use as long as the original author is accredited
*/
public interfa... | true |
87fb3c3c5d493ef865f9f88d367934ae497cc0ac | Java | zhuxiefei/projecta_device | /projecta1(1)/projecta/office-automation/src/main/java/com/bdcourtyard/business/login/model/GetCodeReq.java | UTF-8 | 1,050 | 2.15625 | 2 | [] | no_license | package com.bdcourtyard.business.login.model;
import io.swagger.annotations.ApiModelProperty;
/**
* Created by cxx on 2018/7/18.
*/
public class GetCodeReq {
private String mobile;
/**
* 登录:login_oa;忘记密码:forget_oa
*/
private String type;
@ApiModelProperty("手机号")
public String getMobi... | true |
a3210fb57167d9569c4832e68553477c43d8469e | Java | rbare1/FlipSwitch | /RaspberryPi/cameraHost.java | UTF-8 | 4,146 | 2.6875 | 3 | [] | no_license | import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.io.FileWriter;
import java.io.File;
import java.io.BufferedReader;
import java.io.InputStreamReader;
imp... | true |