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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c0bc9bb09fc9dce2dd576eb115a3a661e69c72fe | Java | avishkaperera/ComputerWorks | /src/java/beans/Person.java | UTF-8 | 962 | 2.578125 | 3 | [] | no_license | package beans;
import java.io.Serializable;
/**
*
* @author Avishka Perera
*/
public class Person implements Serializable{
private String fname;
private String lname;
private String email;
private String address;
private String contact;
public String getFname() {
return fname;
... | true |
a06c2c72556702436d0ab3f44472457eff756719 | Java | mshelzr/ProyectoMuni | /lpMuni/src/com/java/seguridad/daos/HbnMenuDao.java | UTF-8 | 1,179 | 2.328125 | 2 | [] | no_license | package com.java.seguridad.daos;
import java.util.List;
import org.hibernate.Session;
import com.java.beans.MenuDTO;
import com.java.util.HbnConexion;
public class HbnMenuDao implements MenuDAO {
@SuppressWarnings("unchecked")
@Override
public List<MenuDTO> listadoMenu() {
Session s=HbnConexion.... | true |
b6c87c772ee3231e541359e78944cc4a1744c8bc | Java | synergynet/synergynet2.5 | /synergynet2.5/src/main/java/apps/conceptmap/graphcomponents/GraphComponent.java | UTF-8 | 3,766 | 2.3125 | 2 | [] | no_license | /*
* Copyright (c) 2009 University of Durham, England All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: *
* Redistributions of source code must retain the above copyright notice, this
* list o... | true |
6d751bb63f23c74cd3a4f57df73ba01fcc71078c | Java | aeshell/aesh-extensions | /aesh/src/test/java/org/aesh/extensions/rm/RmTest.java | UTF-8 | 3,581 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /*
* JBoss, Home of Professional Open Source
* Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Vers... | true |
9d1b2d9783bd509d26d670caa12c934bc4d94d89 | Java | srirambilla/Recruitement | /src/com/talentsprint/rps/dao/JobDAO.java | UTF-8 | 3,137 | 2.671875 | 3 | [] | no_license | package com.talentsprint.rps.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.talentsprint.rps.dbutil.DBUtil;
import com.talentsprint.rps.dto.Job;
import com.talentsprin... | true |
97bb256390cf0d10334e1165ffdfdd1bdc401365 | Java | angilin/TestProject | /src/main/java/base/CompareTest.java | UTF-8 | 223 | 2.5625 | 3 | [] | no_license | package base;
public class CompareTest{
public static void main(String[] args){
Boolean t = true;
Boolean f = false;
System.out.println(!t.equals("1"));
System.out.println(!f.equals("1"));
}
}
| true |
65db60fe2dc0e1335581331501d07d21df0940b0 | Java | pedroloza/HealtchPac2 | /app/src/main/java/HealtchPac/com/AdminSQLiteOpenHelper.java | UTF-8 | 1,373 | 2.1875 | 2 | [] | no_license | package HealtchPac.com;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
public class AdminSQLiteOpenHelper extends SQLiteOpenHelper {
public AdminSQLiteOpenHelper(Context c... | true |
29632e30e430e08d547f3f15949a2a276af7c1ba | Java | fahim44/Thrai | /app/src/main/java/com/thrai/THRAI/BookDetailsArticleFragment.java | UTF-8 | 1,100 | 2.046875 | 2 | [] | no_license | package com.thrai.THRAI;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.thrai.THRAI.Adapters.BookDetailsView... | true |
118cf18bba5877cd5458339d9dde125fe113867d | Java | peronohaynada/homework-rewards-api | /src/main/java/com/homework/rewards/bo/PurchaseBO.java | UTF-8 | 427 | 1.976563 | 2 | [] | no_license | package com.homework.rewards.bo;
import java.util.List;
import java.util.Optional;
import com.homework.rewards.dto.PurchaseDTO;
import com.homework.rewards.model.Purchase;
public interface PurchaseBO {
List<Purchase> getAll();
Optional<Purchase> findById(String purchaseId);
Purchase create(PurchaseDTO purch... | true |
63bf5757cbdfcee057a8b525cd8e548f471a6c20 | Java | JaneideEstandeslau/Projeto-E-Treinador | /src/treinos/Persistencia.java | UTF-8 | 1,319 | 2.9375 | 3 | [] | no_license | package treinos;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;
public class Persistencia {
XStream xstream = new XS... | true |
dd63e5d0ae7915ed77acd638fe003390d604a768 | Java | mrmwrites/CSDProjecytRM | /src/Test/java/LoginSteps.java | UTF-8 | 1,801 | 2.5625 | 3 | [] | no_license | package Test.java;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import junit.framework.Assert;
import main.Login;
import main.LoginBO;
public class LoginSteps {
Login login =new Login();
LoginBO loginBo = new LoginBO();
String actionButton... | true |
e67a67e6e223e8e615ba04d51467bc576d6d209a | Java | chaehom/leetcode | /algorithms/java/67. Add Binary/src/Solution.java | UTF-8 | 763 | 3.640625 | 4 | [] | no_license | /**
* 67. Add Binary
*
* @author leo.ch
* @since 2017-02-19
*/
public class Solution
{
public String addBinary(String a, String b)
{
StringBuffer ans = new StringBuffer();
int aLast = a.length() - 1;
int bLast = b.length() - 1;
int c = 0;
while (aLast >=0 && bLast >= 0)
{
int aa = a.charAt(aLast... | true |
2873d751bad51148f759f9653d947128d8931776 | Java | VEIIEV/test_console- | /src/com/company/ToTable.java | UTF-8 | 909 | 3.5625 | 4 | [] | no_license | package com.company;
public class ToTable {
// Этот класс должен превращать одномерный массив чисел в таблицу (двумерный массив чисел x на y).
// метод resize(), возвращающий двумерный список x на y.
private int[] data;
private int x;
private int y;
public ToTable(int[] data, int x, int y)... | true |
b7df2440cbe0cb2264cebf2dc4aabf002ac76d9f | Java | angeojohnym/amersouq-angeo | /app/src/main/java/com/shopping/techxform/amersouq/activities/AdditionalAttributePage.java | UTF-8 | 8,588 | 1.835938 | 2 | [] | no_license | package com.shopping.techxform.amersouq.activities;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.... | true |
edaec581cf49c0184c49c60341f43ce995feb717 | Java | brianin3d/b3d-walk-test-jr | /src/main/java/briain3d/animation/tweening/model/Layer.java | UTF-8 | 1,614 | 3.046875 | 3 | [] | no_license | package briain3d.animation.tweening.model;
import java.util.LinkedHashMap; // maintains arrival sequence
import java.util.Map;
import org.w3c.dom.Node;
/**
*
* <P>
* Hold the dom node and a map from title to path.
* </P>
*
* @author Brian Hammond
*
*/
public class Layer {
private Node node_;
private Map< S... | true |
e69475b35ffaba52f3d05d5f1487b56ab0a9e35f | Java | gopilinx/java_practice | /src/collection/com/mycollectionHash.java | UTF-8 | 542 | 3.109375 | 3 | [] | no_license | package collection.com;
import java.util.HashMap;
import java.util.Map;
public class mycollectionHash {
public static void main(String[] args) {
HashMap<Integer, String> hmap=new HashMap<Integer, String>();
hmap.put(1,"Gopi");
hmap.put(2,"Gopi2");
hmap.put(3,"Gopi3");
System.out.println(hmap.get(3));
fo... | true |
6e66616834bc5ce8d2d89b141b4b8f289da4a12c | Java | zhongxingyu/Seer | /Diff-Raw-Data/16/16_b8efd70fa8936102fb4baef2c1654878c3ad0134/EntityManagerProducer/16_b8efd70fa8936102fb4baef2c1654878c3ad0134_EntityManagerProducer_t.java | UTF-8 | 6,973 | 1.90625 | 2 | [] | no_license | /*
* Demoiselle Framework
* Copyright (C) 2010 SERPRO
* ----------------------------------------------------------------------------
* This file is part of Demoiselle Framework.
*
* Demoiselle Framework is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Genera... | true |
cc2faae9382a058312edd01ad185417815753596 | Java | udvarid/maze | /src/chess/MazeCreator.java | UTF-8 | 5,398 | 3.328125 | 3 | [] | no_license | package chess;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
import java.util.*;
public class MazeCreator {
private Maze maze;
private Random randomNumber = new Random();
private int size;
private Coordinate antre;
private Coordinate exit;
private int doorIn;
... | true |
e269dfaf2f5c86f77387a961358bc555030004d5 | Java | ZLBer/robothub | /hub-core/src/main/java/edu/hust/robothub/core/handler/PublishServiceCallbackHandler.java | UTF-8 | 1,071 | 2.34375 | 2 | [] | no_license | package edu.hust.robothub.core.handler;
import edu.hust.robothub.core.context.RobotContext;
import edu.hust.robothub.core.context.ServiceContext;
import edu.hust.robothub.core.message.AbstractMessage;
import edu.hust.robothub.core.message.RosMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* ser... | true |
8fbd317fecb4ebf854d0d8701571bad55b33f0c6 | Java | Nageswarareddy19/PaymentRestComponent | /src/main/java/com/payment/entity/PaymentEntity.java | UTF-8 | 1,331 | 2.359375 | 2 | [] | no_license | package com.payment.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "PAYMENT_TAB")
public class PaymentEntity {
@Column(name = "ID")
@Id
@Ge... | true |
f2d63ed78af0787f553479efcb42e81d0f56dc26 | Java | zhaoming-mike/concurrent | /src/com/yy/thread/communication/ExchangerDemo.java | UTF-8 | 1,062 | 3.640625 | 4 | [] | no_license | package com.yy.thread.communication;
import java.util.concurrent.Exchanger;
@SuppressWarnings("unchecked")
public class ExchangerDemo {
public static void main(String[] args) {
Exchanger exchanger = new Exchanger();
ExchangerRunnable exchangerRunnable1 = new ExchangerRunnable(exchanger, "AAA");
ExchangerRunn... | true |
bceb8a02be81684d5a821569ad6c4011494eeb26 | Java | ArpanMittal/ParentTeacherManagaement | /Android/rackup/app/src/main/java/com/eurovisionedusolutions/android/rackup/Tab_fragment.java | UTF-8 | 4,528 | 1.921875 | 2 | [] | no_license | package com.eurovisionedusolutions.android.rackup;
import android.app.ProgressDialog;
import android.content.res.ColorStateList;
import android.database.Cursor;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.design.widget.TabLayout.OnTabSelectedListener;
import android... | true |
9eb17ca759cd00c8570aa3c1f4e6c91b4bdea9b2 | Java | alexdzeshko/TestVK | /lib/src/main/java/com/github/pavelkv96/libs/api/Message.java | UTF-8 | 2,284 | 2.390625 | 2 | [] | no_license | package com.github.pavelkv96.libs.api;
import com.github.pavelkv96.libs.constants.ApiConstants;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.Serializable;
import java.util.ArrayList;
public class Message implements Serializable {
private static final long ... | true |
36c5c3c4357e33657f7e7d0f4bb36dedd89246d1 | Java | timojar/votingengine | /src/main/java/fi/softala/votingEngine/bean/Ryhma.java | UTF-8 | 420 | 1.851563 | 2 | [] | no_license | package fi.softala.votingEngine.bean;
public class Ryhma {
private int id;
private String nimi;
private String tyyppi;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNimi() {
return nimi;
}
public void setNimi(String nimi) {
this.nimi = nimi;
}
public String getTyy... | true |
4ae00218552b97fc533b5e63bd073302ccca18b6 | Java | LukeMcCann/AlgorithmsPractice | /LinkedLists/SinglyLinkedList/Node.java | UTF-8 | 566 | 3.765625 | 4 | [
"MIT"
] | permissive | package SinglyLinkedList;
/**
*
* @author Luke McCann
*
* Node class - represents a node in a LinkedList
*/
public class Node
{
private int data;
private Node next; // pointer to next node
Node(int data, Node next)
{
this.data = data;
this.next = next;
}
// Checkers
public boolean hasNext() {ret... | true |
7004654d7b3354bcbfa2ed199b7aec8d8aee31cf | Java | yyz940922/flink-sql-etl | /etl-job/src/main/java/kafka2jdbc/TestJdbc.java | UTF-8 | 2,028 | 2.328125 | 2 | [] | no_license | package kafka2jdbc;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.table.api.EnvironmentSettings;
import org.apache.flink.table.api.bridge.java.StreamTableEnvironment;
import org.apache.flink.types.Row;
public class TestJdbc {
public static void main(String[]... | true |
420fc0528c32464e3c7c735a39987447457a4835 | Java | myliwenbo/Springboot | /springboot-integrate/springboot-validation/avlidation-test/src/main/java/vip/xjdai/avlidationtest/model/Result.java | UTF-8 | 374 | 2.03125 | 2 | [] | no_license | package vip.xjdai.avlidationtest.model;
import lombok.Data;
@Data
public class Result {
private String errorMessage;
private String message;
public static Result fail(String errorMessage, String message) {
Result result = new Result();
result.setErrorMessage(errorMessage);
resul... | true |
db95ed5521052bd0e15c49fda431ddfc492bd0f7 | Java | hrom3/work_schedule | /common/src/main/java/by/bsuir/repository/obsolete/impl/RoleRepositoryImpl.java | UTF-8 | 2,403 | 2.3125 | 2 | [] | no_license | package by.bsuir.repository.obsolete.impl;
import by.bsuir.domain.Role;
import by.bsuir.repository.obsolete.IRoleRepository;
import lombok.RequiredArgsConstructor;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.springframework.context.annotation.Primary... | true |
ad1ade9e77e4c87c988e9fa12da8714d60cd7661 | Java | anaVasques1/striker | /core/src/com/mygdx/game/sprites/hudSprites/StrPointer.java | UTF-8 | 1,328 | 2.859375 | 3 | [] | no_license | package com.mygdx.game.sprites.hudSprites;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.utils.Disposable;
import com.mygdx.game.Striker;
import com.mygdx.game.screens.PlayScreen;
/**
* Created by User on 08/07/2016.
*/
public class StrPointer extends... | true |
efad99d79448a651cfa7fb6369b41c267ef506de | Java | Rubentxu/DreamsLibGdx | /core/src/main/java/com/rubentxu/juegos/core/utils/dermetfan/box2d/Box2DMapObjectParser.java | UTF-8 | 47,419 | 1.703125 | 2 | [
"MIT"
] | permissive | /**
* Copyright 2013 Robin Stumm (serverkorken@googlemail.com, http://dermetfan.bplaced.net)
*
* 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/licens... | true |
c47977c278def4a06dcf215d0d45277a89d68125 | Java | RubbaBoy/Space | /src/main/java/com/uddernetworks/space/blocks/CustomBlock.java | UTF-8 | 8,451 | 2.3125 | 2 | [] | no_license | package com.uddernetworks.space.blocks;
import com.uddernetworks.space.electricity.CircuitMap;
import com.uddernetworks.space.guis.CustomGUI;
import com.uddernetworks.space.items.IDHolder;
import com.uddernetworks.space.main.Main;
import com.uddernetworks.space.meta.EnhancedMetadata;
import com.uddernetworks.space.uti... | true |
5b335a9c21bb2714d4e5897a0b1089d2a29fb5e2 | Java | earayu/schema | /mysql-protocol/src/main/java/com/yuqi/engine/operator/SlothTableScanOperator.java | UTF-8 | 2,232 | 2.03125 | 2 | [] | no_license | package com.yuqi.engine.operator;
import com.google.common.collect.Sets;
import com.yuqi.engine.data.type.DataType;
import com.yuqi.engine.data.value.Value;
import com.yuqi.sql.SlothSchemaHolder;
import com.yuqi.sql.SlothTable;
import com.yuqi.storage.lucene.QueryContext;
import com.yuqi.storage.lucene.TableEngine;
im... | true |
e376591d5c64847e2fe3fe3dab350f1b1cde37fd | Java | NileshKarle/ToDo | /src/main/java/com/bridgelab/validator/UserValidation.java | UTF-8 | 153 | 1.90625 | 2 | [] | no_license | package com.bridgelab.validator;
import com.bridgelab.model.User;
public interface UserValidation {
public String registerValidation(User user);
}
| true |
c7e171fa43e3ce402c4b80945c673f885467a5f6 | Java | higornucci/patrulhadadengue-web | /src/main/java/br/com/dengoso/aplicacao/foco/AdicionaFocoDeDengue.java | UTF-8 | 1,673 | 2.40625 | 2 | [] | no_license | package br.com.dengoso.aplicacao.foco;
import javax.transaction.Transactional;
import br.com.dengoso.modelo.excecao.ExcecaoDeCampoObrigatorio;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.com.dengoso.modelo.coordenadas.Coordenadas;
import br.... | true |
c9fc77498b6ef09f26421b32f2a7519acbde53d7 | Java | 18718642424/Mygit | /拍卖网/qianfeng_auction/src/com/qf/auction/dao/AuctionOrderDAO.java | UTF-8 | 252 | 2 | 2 | [] | no_license | package com.qf.auction.dao;
import com.qf.auction.entity.AuctionOrder;
public interface AuctionOrderDAO {
int addOrder(AuctionOrder order);
int addOrder(AuctionOrder order,int orderState);
int updateOrderState(int orderState);
}
| true |
f459ad586d56572d15ae24da01a87b1dd5bc8b10 | Java | MoriMorou/Spring_Framework | /HomeworkOne/src/main/java/ru/morou/Classic/Patient.java | UTF-8 | 955 | 2.671875 | 3 | [] | no_license | package ru.morou.Classic;
/**
* 1 Создать модель Пациент - поликлиника (используя Spring)
* 2 Использовать 3 варианта: xml, javaConfig, autowired.
*
* @author asatyukova (Mori Morou)
*/
public class Patient {
/**
* Inversion control - это передача управления (мы передали управление медсестре для поиска ... | true |
045dfbafac053c092053697ef3c5f5bf266a5da8 | Java | milicavasic97/TrelloSchoolProject | /src/main/java/unibl/etf/pisio/trelloproject/core/services/IAuthService.java | UTF-8 | 287 | 1.75 | 2 | [] | no_license | package unibl.etf.pisio.trelloproject.core.services;
import unibl.etf.pisio.trelloproject.api.models.requests.LoginRequest;
import unibl.etf.pisio.trelloproject.core.models.dto.LoginResponseDTO;
public interface IAuthService {
LoginResponseDTO login(LoginRequest loginRequest);
}
| true |
5498dd32e488214ed1c99d6a165fa848f6d0ee5e | Java | vmanu/DesarrolloInterfaces | /CarrouselVictorManuelOviedoHuertas/src/test/java/tests/TestMenuArchivo.java | UTF-8 | 13,154 | 2.390625 | 2 | [] | no_license | package tests;
/*
* 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.
*/
import org.fest.swing.fixture.*;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import ... | true |
fe50d28c7f5d4daa90449c8da9c452cd7fc9474f | Java | bjbienemann/sample-spring-api | /src/main/java/com/agilliza/api/service/PessoaService.java | UTF-8 | 936 | 2.28125 | 2 | [] | no_license | package com.agilliza.api.service;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.stereotype.Service;
import com.agilliza.api.model.entity.Pessoa;
import com.agilliza.ap... | true |
4f85bb7228fcb030d3f24111259cf1b34d851a04 | Java | zheng59/news-site | /src/main/java/com/zheng/news/controller/admin/SlideshowController.java | UTF-8 | 1,597 | 2.09375 | 2 | [] | no_license | package com.zheng.news.controller.admin;
import com.zheng.news.model.Slideshow;
import com.zheng.news.service.SlideshowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web... | true |
29852cba1e248a4d3fb7f122c93f17196d2fca4f | Java | dizzy-miss-lizzy/TourGuide | /app/src/main/java/com/example/android/tourguide/EventsFragment.java | UTF-8 | 3,974 | 2.46875 | 2 | [] | no_license | package com.example.android.tourguide;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ListView;
import java.util.Arra... | true |
027db56a0ce86218fe1df9717edd1e3778f5c3a6 | Java | winsvold/Snake | /Logic/TurnPlayer.java | UTF-8 | 2,068 | 3.34375 | 3 | [
"MIT"
] | permissive | package Snake.Logic;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
public class TurnPlayer {
private boolean gameover = false;
private Worm worm;
private int height;
private int width;
private List<Apple> apples;
public TurnPlayer(Worm worm, List<Apple> apples, i... | true |
32a38a0225ac2817c108522eeee06b9aad04b31a | Java | league-level4-student/level4-module4-dexhaehnichen | /src/_04_hospital/Doctor.java | UTF-8 | 657 | 3.265625 | 3 | [] | no_license | package _04_hospital;
import java.util.ArrayList;
public class Doctor {
private boolean makesHouseCalls = false;
private ArrayList<Patient> patients = new ArrayList<Patient>();
public void assignPatient(Patient p) throws DoctorFullException{
if(getPatients().size() < 3) {
patients.add(p);
}else {
throw... | true |
0ffe35c3e4766fadf08b18b630aa55afe2834dd7 | Java | demciucvictor/Java-learning-part-2 | /week12-week12_48.StringBuilder/src/Main.java | UTF-8 | 538 | 3.53125 | 4 | [] | no_license |
public class Main {
public static void main(String[] args) {
int[] t = {1, 2, 3, 4};
System.out.println(build(t));
}
public static String build(int[] t) {
StringBuilder sb=new StringBuilder();
sb.append("{ \n ");
for(int n:t){
sb.append(n);
... | true |
00d51b06e3b75e518ecbeb2642c5e4df7dfff5d6 | Java | Ruchi0799/JavaCoreProblem | /src/com/bridgelabz/logicalprograms/PrimeNumber.java | UTF-8 | 635 | 3.625 | 4 | [] | no_license | package com.bridgelabz.logicalprograms;
import java.util.Scanner;
public class PrimeNumber {
public static void main(String[] args) {
System.out.println("Enter the value N");
Scanner sc = new Scanner(System.in);
int ValueN = sc.nextInt();
int a=0;
for(int i=2;i<ValueN;i++)
... | true |
74a9c36a1c53b69e3f49fc3c4a712a19387105e1 | Java | alei76/doctor | /jstorm-practice/src/main/java/com/github/jstorm/gettingstartedwithstorm/TopologyMain2.java | UTF-8 | 5,442 | 2.421875 | 2 | [] | no_license | package com.github.jstorm.gettingstartedwithstorm;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import o... | true |
9dceb47a01f391c6882b59cad8362a1a63bccb31 | Java | adichad/lucense | /lucense/src/app/com/adichad/lucense/expression/fieldSource/IntegerExpressionFieldSource.java | UTF-8 | 888 | 2.4375 | 2 | [] | no_license | package com.adichad.lucense.expression.fieldSource;
import java.io.IOException;
import org.apache.lucene.document.Document;
import com.adichad.lucense.expression.IntLucenseExpression;
public class IntegerExpressionFieldSource extends ExpressionFieldSource implements IntValueSource {
private int lastValue = 0;
... | true |
a9ab0352c8d753ce6a30b76a8dbe1b5c52457a36 | Java | trungnam95/Module2_C0919G1_NguyenTrungNam | /Module2_Web/tao-gio-hang/src/main/java/com/codegym/taogiohang/repositories/CustomerRepository.java | UTF-8 | 313 | 1.640625 | 2 | [] | no_license | //package com.codegym.taogiohang.repositories;
//
//import com.codegym.taogiohang.entity.Customer;
//import org.springframework.data.jpa.repository.JpaRepository;
//import org.springframework.stereotype.Repository;
//
//@Repository
//public interface CustomerRepository extends JpaRepository<Customer,Long> {
//}
| true |
da7b0d75955d2e020374bb57cd3a218b9c43a347 | Java | QianYC/LetsDo_Phase_II | /src/main/java/YingYingMonster/LetsDo_Phase_II/serviceImpl/PublisherServiceImpl.java | UTF-8 | 3,139 | 2.203125 | 2 | [] | no_license | package YingYingMonster.LetsDo_Phase_II.serviceImpl;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;
import YingYingMon... | true |
db15fe8ebf5c5f7962ca814960f68e58b5131735 | Java | E0227472/SpringTutorials | /LeetCode/src/TwoSum.java | UTF-8 | 1,125 | 3.484375 | 3 | [] | no_license | import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
public class TwoSum {
public static int[] twoSum(int[] nums, int target) {
int numsCopy[] = Arrays.copyOf(nums, nums.length);
Arrays.sort(numsCopy);
int lowest = 0;
int highest = nums.length - 1;
while (lowest < hig... | true |
90535ce8f664f989355b69e3dfef8efc991f3d36 | Java | Sunshineuun/kbms-framework | /winning-domain/src/main/java/com/winning/domain/dm/ItemMessage.java | UTF-8 | 2,246 | 2.1875 | 2 | [] | no_license | package com.winning.domain.dm;
import com.winning.domain.BaseDomain;
/**
* @标题: ItemMessage.java
* @包名: com.winning.bi.domain
* @描述: Item Result
* @作者: chenjie
* @时间: Apr 24, 2014 2:14:38 PM
* @版权: (c) 2014, 卫宁软件科技有限公司
*/
public class ItemMessage extends BaseDomain {
/**
* @Fields serialVersionUID :... | true |
2b6d5199dd14ac31e55ccb665e7ae5344bbc9f8c | Java | qinzhig/HealthManager | /app/src/main/java/sg/edu/nus/iss/medipal/pojo/Pulse.java | UTF-8 | 485 | 2.484375 | 2 | [] | no_license | package sg.edu.nus.iss.medipal.pojo;
import java.util.Date;
/**
* Created by Divahar on 3/25/2017.
* * Description: This class has the fields related to pulse measurement
*/
public class Pulse extends Measurement{
private int pulse;
public int getPulse() {
return pulse;
}
public void se... | true |
2789b3a51963ac2b5d2fafe7c997ac1518a6aeed | Java | HarriKnox/431-MiniC | /llvm/value/variable/LLVMGlobal.java | UTF-8 | 951 | 1.804688 | 2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | package llvm.value.variable;
import llvm.type.LLVMIntType;
import llvm.type.LLVMType;
import arm.ARMCFGNode;
import arm.instruction.ARMMovt;
import arm.instruction.ARMMovw;
import arm.value.immediate.ARMGlobal;
import arm.value.operand.ARMAddress;
public class LLVMGlobal extends LLVMVariable
{
public final S... | true |
38a7cb15982a4e76adb450652a1243350a76fd08 | Java | jooonak/toeicmanager-springserver | /src/main/java/com/toeic/dto/ExamDTO.java | UHC | 385 | 1.953125 | 2 | [] | no_license | package com.toeic.dto;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
public class ExamDTO {
private int eno;
private String mid;
private int result;
private int total;
private int startPoint;
private String type; //lean -> н, exam -> , review ->
p... | true |
00083d2675892bc827a16edd9eac2f55b8db8d0e | Java | grsantos13/orange-talents-01-template-proposta | /src/main/java/br/com/zup/propostas/proposta/PropostaRepository.java | UTF-8 | 756 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | package br.com.zup.propostas.proposta;
import org.hibernate.LockOptions;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Lock;
import org.springframework.data.jpa.repository.QueryHints;
import javax.persistence.LockModeType;
import javax.persistence.QueryHi... | true |
2949d317a92f679074f02d4d23be5b875cdf1d82 | Java | templth/restlet-stackoverflow | /restlet/test-url-encoding/src/main/java/test/client/TestClient.java | UTF-8 | 534 | 2.28125 | 2 | [] | no_license | package test.client;
import org.restlet.data.Reference;
import org.restlet.resource.ClientResource;
public class TestClient {
private static void test(){
Reference ref = new Reference();
ref.setScheme("http");
ref.setHostDomain("localhost");
ref.setHostPort(8182);
ref.addSegment("test... | true |
3980b1718f4b6c0e3a81f04a71b73b8d5cf56536 | Java | ryanlfoster/ep-commerce-engine-68 | /importexport/ep-importexport/src/test/java/com/elasticpath/importexport/importer/importers/impl/PersistenceSessionSavingManagerImplTest.java | UTF-8 | 2,237 | 2.15625 | 2 | [] | no_license | package com.elasticpath.importexport.importer.importers.impl;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame;
import org.jmock.Expectations;
import org.jmock.integration.junit4.JUnitRuleMockery;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import com... | true |
2e3cf3c1aa9297208ed9c6c33d99fa6b6111228e | Java | JunnanLee/ProjectDemo | /app/src/main/java/com/bm/sy/filmstudio/entity/BaseEntity.java | UTF-8 | 558 | 2.0625 | 2 | [] | no_license | package com.bm.sy.filmstudio.entity;
/**
* 创建人:李俊男
* 类名称:BaseEntity
* 类描述:
* 创建时间:2016/11/18 9:57
*/
public class BaseEntity {
private static final String TAG = "【BaseEntity】";
private BaseEntityType entityType;
public enum BaseEntityType {
COMMON_CONTENT_IMG,
COMMON_CONTENT_ADD_I... | true |
6cf707d62d6e72b4fe0f64dbc2031e4925c2960e | Java | geektechniquestudios/JavaHangman | /src/ButtonPrinter.java | UTF-8 | 532 | 3.078125 | 3 | [] | no_license | //Created by Terry Dorsey//
public class ButtonPrinter {
//generates alphabetical code
public static void main(String[] args)
{
char[] alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
for(int x = 0; x < 26; x++)
{
//System.out.println("but" + alphabet[x] + " = new JButton(\"" + alphabet[x] + "\");... | true |
a8d53615d9a556f816d74c5741da07b6ce2b724a | Java | rameshmandala/refactoring | /src/main/java/com/refactoring/stategies/F_Dealing_with_Generalization/F1001_Pull_Up_Method.java | WINDOWS-1258 | 4,121 | 3.390625 | 3 | [] | no_license | // F1001_Pull_Up_Method.java - (insert one line description here)
// (C) Copyright 2019 Hewlett Packard Enterprise Development LP
package com.refactoring.stategies.F_Dealing_with_Generalization;
/**
* You have methods with identical results on subclasses.
*
* Move them to the superclass.
*
* Image
... | true |
2d83ab64350e512c552ab52deaa1f1bbf60d4f12 | Java | commercetools/commercetools-sdk-java-v2 | /commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerSetCompanyNameActionQueryBuilderDsl.java | UTF-8 | 1,082 | 2 | 2 | [
"Apache-2.0",
"GPL-2.0-only",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"BSD-3-Clause",
"Classpath-exception-2.0"
] | permissive |
package com.commercetools.api.predicates.query.customer;
import com.commercetools.api.predicates.query.*;
public class CustomerSetCompanyNameActionQueryBuilderDsl {
public CustomerSetCompanyNameActionQueryBuilderDsl() {
}
public static CustomerSetCompanyNameActionQueryBuilderDsl of() {
return ne... | true |
704859c50c5efba49d84adc9832690131e7800aa | Java | ramimartin/design-patterns-examples | /strategy-example/src/main/java/com/ramimartin/patterns/strategy/strategies/sorters/ArraySorterStrategy.java | UTF-8 | 142 | 2.1875 | 2 | [] | no_license | package com.ramimartin.patterns.strategy.strategies.sorters;
public interface ArraySorterStrategy {
Integer[] sort(Integer[] array);
}
| true |
936b1e3edee064a2a0c3c2ce003148c3d1fa4222 | Java | sorny/hudson-plugins | /artifactory/src/main/java/org/jfrog/hudson/util/FormValidations.java | UTF-8 | 1,650 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | package org.jfrog.hudson.util;
import com.google.common.base.Strings;
import hudson.util.FormValidation;
import org.apache.commons.lang.StringUtils;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
/**
* Utility class for form validations.
*
* @author Yossi Shaul
*/
public... | true |
a816a7a0ba576a027306377c5a9aafebb847c9fa | Java | snehitgajjar/Projects | /GeneralProblemSolutions/src/ReverseEachWord.java | UTF-8 | 929 | 3.734375 | 4 | [] | no_license |
/*
* To execute Java, please define "static void main" on a class
* named Solution.
*
* If you need more classes, simply define them inline.
*/
class ReverseEachWord{
public static void main(String[] args) {
System.out.println(reverseEachWord("How are you"));
}
public static String reverseEachWord(... | true |
91a0aa807710b945e65d4e1054b6080aa984baf4 | Java | BrennerOjeda/gestionBiblioteca | /GestionBiblioteca2/src/controlador/Mostrar.java | UTF-8 | 1,483 | 2.171875 | 2 | [] | no_license | package controlador;
import java.io.IOException;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespons... | true |
1e658088542e55c78332821d2481c8cca1d82bd3 | Java | onlysignalman/shuren_wechat | /src/main/java/com/shuren/service/resume/MsgService.java | UTF-8 | 490 | 2 | 2 | [] | no_license | package com.shuren.service.resume;
import java.util.Map;
import com.shuren.bean.resume.ModelReturns;
import com.shuren.pojo.resume.MessageLog;
/**
* Created by 董帮辉 on 2017-5-18.
*/
public interface MsgService {
/**
* 获取验证码
* @param mobile
* @return
*/
ModelReturns<Map<String, Object>> getMsg(String mobi... | true |
61fb91f179c1a3bafe242e99ec5ed62571d18b52 | Java | bernardpham/pollitics-metier | /Pollitics-Metier/src/org/com/pollitics/model/jpa/LinkedQuestion.java | UTF-8 | 625 | 2.078125 | 2 | [] | no_license | package org.com.pollitics.model.jpa;
import java.io.Serializable;
import javax.persistence.*;
/**
* The persistent class for the linked_question database table.
*
*/
@Entity
@Table(name="linked_question")
@NamedQuery(name="LinkedQuestion.findAll", query="SELECT l FROM LinkedQuestion l")
public class... | true |
7958ee09daf65711e3a5bae00349f49e2154c093 | Java | lzpooo/javaSE | /jdbc/src/com/briup/jdbc/day_02/BatchTest.java | UTF-8 | 1,448 | 2.984375 | 3 | [] | no_license | package com.briup.jdbc.day_02;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import com.briup.jdbc.day_01.DriverFactory;
/**
* 测试jdbc批处理
* @author Administrator
*
*/
public class BatchTest {
private static Conne... | true |
d4ef98020fc95c641bb69d2864c9296de9335468 | Java | BrilliantLocke/Cyberware | /src/main/java/flaxbeard/cyberware/common/handler/CreativeMenuHandler.java | UTF-8 | 7,473 | 1.921875 | 2 | [
"MIT"
] | permissive | package flaxbeard.cyberware.common.handler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.List;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
import net.minec... | true |
de0ccaa6a5f4e46b1ee01304b1d84e2fb8aa54ca | Java | Malli658/mediaservice | /src/main/java/com/ibm/mediaservice/MediaserviceApplication.java | UTF-8 | 950 | 1.867188 | 2 | [] | no_license | package com.ibm.mediaservice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.clou... | true |
6733d4072dfcc69a7fb1aee2e3efdc63e37b3ad4 | Java | Ivanhabil/java | /EjerciciosDia02/src/ejGrupal1/Login.java | WINDOWS-1252 | 2,696 | 3.421875 | 3 | [] | no_license | package ejGrupal1;
import java.util.Scanner;
public class Login {
public static void main(String[] args) {
// Ejercicio 01
Scanner scanner = new Scanner(System.in);
String adminUsername = "admin", adminPassword = "123";
String userUsername = "user", userPassword = "123";
String user, password, tipo;
C... | true |
d911a3ba432427b97ba42de50e5c84c4634c04dc | Java | mistrydhruti/TMART--Supermarket-App---Admin-side | /app/src/main/java/com/example/admintmart/ApproveDeliveryPerson.java | UTF-8 | 8,224 | 1.960938 | 2 | [] | no_license | package com.example.admintmart;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content... | true |
597b3f4b37af5a0954f87070be8ed18e40fc77f3 | Java | zhanfeiyu/Android-Basic-Demo | /app/src/main/java/com/mike/demo/database/DBEngine.java | UTF-8 | 3,640 | 2.53125 | 3 | [] | no_license | package com.mike.demo.database;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.ListView;
import java.util.List;
public class DBEngine {
private static final String TAG = DBEngine.class.getSimpleName();
private CommodityDao commodityDao;
privat... | true |
2a5251fe420abb7a1c63719c80dd941aa386c46d | Java | jerry870101/vehicleManagement | /wh/src/dao/CityDao.java | UTF-8 | 158 | 1.890625 | 2 | [] | no_license | package dao;
import java.util.List;
import pojos.City;
public interface CityDao {
public List<City> getCityList();
public List<City> getAllCityList();
}
| true |
6f2edc46a01b82681d5d7c7e404e685bd5d93ab0 | Java | DenSkvor/bankAPI | /src/test/java/controller/employee_controller/EmployeeBankAccountControllerTest.java | UTF-8 | 2,860 | 2.375 | 2 | [] | no_license | package controller.employee_controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import model.DBConnection;
import model.entity.BankAccount;
import model.entity.Payment;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit... | true |
ce0e907942d7ecae2ca5b251aea37f9bfb7f3627 | Java | MinseonCho/open_joon_seoon | /Algorithm_prac_no23.java | UHC | 633 | 3 | 3 | [] | no_license | package test;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
// ݾ 314p
public class Algorithm_prac_no23 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
Integer[] coins = new Integer[n];
for (int i = 0; i < n; i++) {... | true |
d9fddb2df1e63f97b75c4435589ad6a412000e7e | Java | eugene2owl/imageholder | /src/main/java/com/example/imageholder/imagenotificationsubscription/service/impl/ImageNotificationSubscriptionServiceImpl.java | UTF-8 | 2,908 | 2.015625 | 2 | [] | no_license | package com.example.imageholder.imagenotificationsubscription.service.impl;
import com.example.imageholder.aws.sns.AwsSNSService;
import com.example.imageholder.aws.sns.AwsSNSTopicArnProvider;
import com.example.imageholder.imagenotificationsubscription.dto.transformer.ImageNotificationSubscriptionResultTransformer;
i... | true |
c0123bea9efd9daabf9726b2b0b8967a132ac98d | Java | nannu27/firebaseconnect | /app/src/main/java/com/example/firebaseconnect/MainActivity.java | UTF-8 | 4,807 | 2.078125 | 2 | [] | no_license | package com.example.firebaseconnect;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android... | true |
8b740799652484777f741410ba2fea4c9f599c45 | Java | dnzhngl/hrms | /src/main/java/spring/hrms/api/controllers/UsersController.java | UTF-8 | 741 | 2.28125 | 2 | [] | no_license | package spring.hrms.api.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import spring.hrms.business.abstracts.UserService;
import spring.hrms.entities.concretes.User;
@RestController
@RequestMapping("/api/users")
public class UsersControlle... | true |
52e0c9e2ed85d056efe642cee9d212ff3ad986ca | Java | Lasthuman911/hibernateInMac | /mes/src/kr/co/aim/nanoframe/orm.java | UTF-8 | 11,988 | 2.140625 | 2 | [] | no_license | package kr.co.aim.nanoframe.orm;
import java.util.ArrayList;
import java.util.List;
import kr.co.aim.nanoframe.nanoFrameServiceProxy;
import kr.co.aim.nanoframe.exception.ErrorSignal;
import kr.co.aim.nanoframe.exception.nanoFrameDBErrorSignal;
import kr.co.aim.nanoframe.orm.info.DataInfo;
import kr.co.aim.nanoframe.... | true |
2ebe6bc3964a74e7b7293a0248a25f26a45a30c6 | Java | kedar700cz/Chess-PRJ | /src/main/java/sachy/AboutAlert.java | UTF-8 | 1,066 | 2.609375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sachy;
import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.layout.*;
import javafx.scene.control.*;
import javafx... | true |
dcbae77c9a5c19ce986bc50520b5751a98f6cb0e | Java | Abdelrahman2010/taskResCode | /app/src/main/java/com/adwya/task/data/model/DefaultResponce.java | UTF-8 | 871 | 2.125 | 2 | [] | no_license | package com.adwya.task.data.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class DefaultResponce {
public String getmMessage() {
return mMessage;
}
public void setmMessage(String mMessage) {
this.mMessage = mMessage;
}
... | true |
4773c0f9b18ba2262162291c3d958d3b79f231e6 | Java | yu-yu-ke/onlinemusic | /src/main/java/com/test/service/UserService.java | UTF-8 | 985 | 2.15625 | 2 | [] | no_license | package com.test.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.test.bean.User;
import com.test.mapper.UserMapper;
@Service
public class UserService {
@Autowired
private UserMapper use... | true |
d28c648ce1ca0e7fa81a634cbe7382985bee8268 | Java | nscRodolfo/MIP-IniciacaoCientifica | /Implementacao/ManejoInteligentedePragas/app/src/main/java/my/aplication/manejointeligentedepragas/AdicionarPropriedade.java | UTF-8 | 17,700 | 1.773438 | 2 | [] | no_license | package my.aplication.manejointeligentedepragas;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.annotation.NonNull;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import a... | true |
009e1bf140e6cf641054a0fc0f04e8a98489af4e | Java | Harsh2098/SpiderTodo | /app/src/main/java/com/hmproductions/spidertodo/Item.java | UTF-8 | 474 | 2.546875 | 3 | [] | no_license | package com.hmproductions.spidertodo;
/**
* Created by Harsh Mahajan on 7/6/2017.
*/
class Item {
private int mRowNumber;
private String mItemName;
Item (int RowNumber, String ItemName)
{
mRowNumber = RowNumber;
mItemName = ItemName;
}
int getRowNumber() {
return ... | true |
0fc6f8e00505522288bd86b82f8f2472986f8bba | Java | rcenvironment/rce-test | /de.rcenvironment.core.gui.workflow/src/main/java/de/rcenvironment/core/gui/workflow/execute/WorkflowPage.java | UTF-8 | 17,628 | 1.679688 | 2 | [] | no_license | /*
* Copyright (C) 2006-2014 DLR, Germany
*
* All rights reserved
*
* http://www.rcenvironment.de/
*/
package de.rcenvironment.core.gui.workflow.execute;
import java.io.ByteArrayInputStream;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
... | true |
c142301bc6c92043873f98fe7328e7908fcd4838 | Java | cheng81/Java-stream-protocol-builder | /src/dk/itu/frza/smartspb/InputStreamFiller.java | UTF-8 | 322 | 2.53125 | 3 | [] | no_license | package dk.itu.frza.smartspb;
import java.io.InputStream;
public class InputStreamFiller implements BufferFiller {
InputStream is;
public InputStreamFiller(InputStream is) {
this.is = is;
}
@Override
public int fill(byte[] buf, int offset, int len) throws Exception {
return is.read(buf,offset,len);
}
... | true |
a24ec4fea757e3c88841cbea3976445f66be3ddf | Java | The-Tech-Coder/Array-Operations | /SolutionJava.java | UTF-8 | 1,740 | 3.9375 | 4 | [] | no_license | import java.io.*;
class Array{
int a[];
int n;
void readData() throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter number of elements: ");
n = Integer.parseInt(br.readLine());
a = new int[n];
System.out.println("Enter the elements: ");
for... | true |
e568e6a1066e2cbe55f6422ba6324bd98eafec87 | Java | worrywang/SmartHouseControllerV01 | /src/main/java/com/mars/smarthouse/bean/uibean/Building.java | UTF-8 | 825 | 2.640625 | 3 | [] | no_license | package com.mars.smarthouse.bean.uibean;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Administrator on 2016/5/8.
*/
public class Building {
private String buildingId;
private Map<String,Floor> floor_list;
public Building(){
floor_list = new HashMap<String, Floor>();
}
public String getB... | true |
8f747968b5194e368b54181fe66f67a7f13333d7 | Java | ltmquan/PointLocation | /src/LineGraph.java | UTF-8 | 5,745 | 3.171875 | 3 | [] | no_license | /* Name: Quan Luu
* Student ID: 31529099
* NetID: qluu2
* Lab section: MW 6h15 - 7h30
* Project: 2
* Description: graphics
* Note: one thing I need to clarify is that graphics and coordinates don't go too well with each other (at least
* for my program it doesn't), that's why you see some weird math regarding co... | true |
442a41ee223be9496ef7741c39b8cdd96a16db9e | Java | FelipeGodoy/servidorUDP | /src/servidorudp/TipoMensagem.java | UTF-8 | 743 | 2.3125 | 2 | [] | no_license | package servidorudp;
/**
*
* @author jessica
*/
//Formato das mensagens que o servidor pode enviar ao cliente
public class TipoMensagem
{
static int ID_MENSAGEM_INICIAL = 0;
//0#idDoJogador#pecasDoJogador#PecasDisponiveisParaCompra#equipe
static int ID_MENSAGEM_INFORMAR_JOGADOR_DA_VEZ = 1;
//1#idDoJogador
... | true |
293653be5f38183db69d8b3edea2a63f97841bde | Java | daviddmr/mobile-take-home | /app/src/main/java/com/example/mobile_take_home/util/JsonUtil.java | UTF-8 | 465 | 2.359375 | 2 | [] | no_license | package com.example.mobile_take_home.util;
import org.json.JSONArray;
import org.json.JSONException;
import java.util.ArrayList;
public class JsonUtil {
public static ArrayList<String> stringListFromJson(JSONArray jsonArray) throws JSONException {
ArrayList<String> urlList = new ArrayList<>();
... | true |
2faa010781cb158c8c1a06d5e57f208ecc741588 | Java | Kaisir/itpub | /src/com/wisedu/emap/itpub/util/DateUtils.java | UTF-8 | 19,517 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | /*
* @Title: DateUtils.java
* @Package com.wisedu.emap.wdyktzd.util
* @author wjfu 01116035
*/
package com.wisedu.emap.itpub.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
impor... | true |
cf7846ba828901adc13c7aeda8a2668338a2d5d7 | Java | fractalfox01/House | /src/Light.java | UTF-8 | 505 | 3.09375 | 3 | [] | no_license | public class Light {
private String color;
private Dimensions dimensions;
private Bulb myLightBulb;
public Light(String color, Dimensions dimensions, Bulb myLightBulb) {
this.color = color;
this.dimensions = dimensions;
this.myLightBulb = myLightBulb;
}
public String ge... | true |
ba5bac94591bdd67c7b4644dccb98ebd93935cdd | Java | sboychenko/vaadin-todo | /src/main/java/ru/sboychenko/dao/TodoRepository.java | UTF-8 | 343 | 1.875 | 2 | [] | no_license | package ru.sboychenko.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import javax.transaction.Transactional;
/**
* Created by SBoichenko on 22.03.2017.
*/
public interface TodoRepository extends JpaRepository<Todo, Long> {
@Transactional
void deleteByDone(boolean done);
int countB... | true |
1d7ab820660ea11cfc0a01a77e71f78d4cb47053 | Java | konicapatait/Java8Features | /src/com/java/features/stream/StreamOperations.java | UTF-8 | 2,631 | 4.0625 | 4 | [] | no_license | package com.java.features.stream;
import java.util.*;
import java.util.stream.Collectors;
import static java.util.stream.Collectors.*;
/**
* Stream Operations can be used to create the:
* List
* Set
* Map
*/
public class StreamOperations {
public static void main(String... args) {
List<Integer> numb... | true |
a9a92121b07a2cfff01899cfd0e9e0ea298fe598 | Java | MoFishpond/Vendor-Management-System | /backend/src/main/java/com/hygym/vendor/entity/OrderFilter.java | UTF-8 | 342 | 1.601563 | 2 | [] | no_license | package com.hygym.vendor.entity;
import lombok.Data;
import java.math.BigDecimal;
/**
* @author Yiming Gong
* @date 2021/4/19 8:35 下午
*/
@Data
public class OrderFilter {
private Integer shopId;
private Long customerId;
private Long productId;
private Long from;
private Long to;
priva... | true |
4046984ef086151601933efda0b15b4e061d59c9 | Java | rakeb/Graph | /src/main/java/com/rakeb/graph/Edge.java | UTF-8 | 1,200 | 2.9375 | 3 | [] | no_license | package com.rakeb.graph;
/**
* Created by Mazharul on 10/1/16.
*/
public class Edge {
private Node srcNode;
private Node destNode;
private PortPair portPair;
private int weight;
public Edge(Node srcNode, Node destNode, PortPair portPair, int weight) {
this.srcNode = srcNode;
this... | true |
b580903df25ca8123c97938d784a9ceabf97a66f | Java | PoseidonMRT/UserfulCodeResource | /qunaer/App/src/main/java/com/mqunar/xutils/dbutils/converter/ColumnConverterFactory.java | UTF-8 | 4,675 | 2.375 | 2 | [] | no_license | package com.mqunar.xutils.dbutils.converter;
import com.mqunar.xutils.dbutils.sqlite.ColumnDbType;
import java.util.Date;
import java.util.concurrent.ConcurrentHashMap;
public class ColumnConverterFactory {
private static final ConcurrentHashMap<String, ColumnConverter> columnType_columnConverter_map = new Concur... | true |
fb31d1278ef45c10c8340a02b9cf701ef9bd1511 | Java | spring-projects/spring-integration | /spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/mysql/MySqlContainerTest.java | UTF-8 | 2,213 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2021-2023 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | true |