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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ea9ca54ac6bc87d406689f90ecf2b3a6cc50135d | Java | IBobko/activer | /src/main/java/ru/todo100/activer/service/impl/FriendsServiceImpl.java | UTF-8 | 1,686 | 2.25 | 2 | [] | no_license | package ru.todo100.activer.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import ru.todo100.activer.dao.AccountDao;
import ru.todo100.activer.dao.FriendDao;
import ru.todo100.activer.data.FriendsData;
import ru.todo100.activer.service.FriendsService;
import javax.servlet.http.HttpSession... | true |
e8c5c933f8dc80c4e583a95b345bc0d8d5d64b56 | Java | alin15554153/ADEA-pmp | /src/main/java/com/anycc/pmp/util/JsonUtil.java | UTF-8 | 6,320 | 2.625 | 3 | [] | no_license | package com.anycc.pmp.util;
import org.codehaus.jackson.JsonFactory;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.map.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.StringReader;
import java.io.StringWriter;
impor... | true |
8858e65d4e3e5fc597791bb2ac286cb13374f9fc | Java | zwx1/java | /方法__数组.java | UTF-8 | 3,461 | 3.890625 | 4 | [] | no_license | //输出5个hello world
class Hello{
public static void sayHello(){//void表示定义的这个没有返回值,不需要return
System.out.println("Hello world");
System.out.println("Hello world");
System.out.println("Hello world");
System.out.println("Hello world");
System.out.println("Hello world");
}
... | true |
ad47c0c05a73002691afcc8eee9feda29c351fd1 | Java | masterav10/glg2d | /src/test/java/org/jogamp/glg2d/newt/ComboBoxTest.java | UTF-8 | 896 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | package org.jogamp.glg2d.newt;
import java.awt.GridLayout;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.UnsupportedLookAndFeelException;
/**
* This test demonstrates combo boxes in GLG2D.
*
* @author Dan Avila
*
*/
public class Combo... | true |
d3faef0273db2db32dc87b26bfa0d0e637424e22 | Java | stefvanschie/buildinggame | /buildinggame/buildinggame-impl/src/main/java/com/gmail/stefvanschiedev/buildinggame/utils/math/MathElement.java | UTF-8 | 373 | 2.75 | 3 | [
"Unlicense"
] | permissive | package com.gmail.stefvanschiedev.buildinggame.utils.math;
import org.jetbrains.annotations.Contract;
/**
* A math element
*
* @since 5.5.1
*/
@FunctionalInterface
public interface MathElement {
/**
* Computes this element
*
* @return the value this computation yields
* @since 5.5.1
... | true |
d29044a9d24968be1e10af2664f77bd25d38e9a7 | Java | skyformat99/ssh | /src/com/Dao/ArticleDao.java | GB18030 | 1,330 | 1.945313 | 2 | [] | no_license | package com.Dao;
import java.util.List;
import com.Entity.UserArticle;
import com.Entity.UserArticleComment;
import com.Entity.UserArticleReply;
public interface ArticleDao {
//
List<UserArticle> getArticleAllByPageView();
//ʱ
List<UserArticle> getArticleAllByTime();
//
List<UserArticle> getArticleAllByGre... | true |
c1b2eaf780c0ead703c8de650b5331ab9a098fb3 | Java | sundyunyun/veges-back | /src/main/java/dhu/sun/vege/mapper/OrderMapper.java | UTF-8 | 513 | 1.828125 | 2 | [] | no_license | package dhu.sun.vege.mapper;
import dhu.sun.vege.entity.Order;
import dhu.sun.vege.model.view.OrderlistView;
import dhu.sun.vege.util.core.BaseMapper;
import javax.swing.plaf.BorderUIResource;
import java.util.List;
/**
* Created by think on 2018/3/20.
*/
public interface OrderMapper extends BaseMapper<Order> {
... | true |
d414c2278f54a8667b5f5893400c8262743efb53 | Java | elyelin/java-projects | /Tp1_2°cuatrimestre/src/ejercicio3/Carrera.java | UTF-8 | 949 | 3.1875 | 3 | [] | no_license | package ejercicio3;
import java.util.ArrayList;
import ejercicio3.Atleta;
public class Carrera {
String nombre;
ArrayList<Atleta> competidores;
public Carrera(String nombre) {
setNombre(nombre);
competidores = new ArrayList<Atleta>();
}
private void setNombre(String nombre) {
this.nombr... | true |
d138457bcc936fa55b38e77de896ee78768342fc | Java | guptaprakhariitr/DROIDWARS-Doraemon-App | /app/src/main/java/com/example/doraemonapp/ui/anywheredoor/thumbnail.java | UTF-8 | 419 | 2.046875 | 2 | [] | no_license | package com.example.doraemonapp.ui.anywheredoor;
import com.google.gson.annotations.SerializedName;
public class thumbnail {
@SerializedName("source")
String source;
@SerializedName("width")
int width;
@SerializedName("height")
int height;
public String getSource() {
return source;
}
pub... | true |
e0b755dd248a3c97d8df9f4b93dada5d8df10e7f | Java | Baptistin/AppAndroid | /app/src/main/java/baptistin/com/applicationsolo/ConnexionActivity.java | UTF-8 | 4,776 | 2.1875 | 2 | [] | no_license | package baptistin.com.applicationsolo;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widg... | true |
eccc9e7f9a83373014ceed8090ac3f3bd164135d | Java | ashishk88/eoc-app | /src/main/java/edu/asu/wpcarey/eoc/beans/qualtrics/contact/Element.java | UTF-8 | 4,330 | 1.835938 | 2 | [] | no_license |
package edu.asu.wpcarey.eoc.beans.qualtrics.contact;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.ann... | true |
2f44a6964d59eeceb0b47a9d95138f634ac52ad8 | Java | geosource-catalogue/core-geonetwork | /services/src/main/java/org/fao/geonet/services/thesaurus/GetKeywordByIdAsConcept.java | UTF-8 | 4,673 | 1.914063 | 2 | [] | no_license | //=============================================================================
//=== Copyright (C) 2001-2005 Food and Agriculture Organization of the
//=== United Nations (FAO-UN), United Nations World Food Programme (WFP)
//=== and United Nations Environment Programme (UNEP)
//===
//=== This program is free software;... | true |
24c8f8d89a4f6b00fbabdfa8bfc97a2280ed9e1a | Java | luozhaoemail/java-demo | /工具代码/基础(集合-IO-线程-正则等)/Set/MapDemo.java | UTF-8 | 1,829 | 3.890625 | 4 | [] | no_license | package Set;
import java.util.Collection;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
public class MapDemo {
public static void main(String[] args){
test();
}
public static void test(){
Hashtable<Integer,String> ht = new Hashtable<Integer,String>();
... | true |
26a03f262214e0ca08dc7716c0413576ccf3368c | Java | ediasep/UnitTest | /src/main/java/com/mitrais/asep/database/BookCRUD.java | UTF-8 | 3,105 | 3.0625 | 3 | [] | no_license | package com.mitrais.asep.database;
import com.mitrais.asep.model.Book;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
public class BookCRUD {
static SessionFactory sessionFactoryO... | true |
18ad90ac4aa1e2aa35c772f8516addcbf98b2f72 | Java | CGrimGrim/CarHireService | /src/hire/car/a2b/service/IHireService.java | UTF-8 | 1,309 | 2.546875 | 3 | [] | no_license | package hire.car.a2b.service;
import java.time.LocalDate;
import java.util.ArrayList;
import hire.car.a2b.*;
public interface IHireService {
/**
* Registers a customer
* @param username desired username
* @param password desired password
* @param name customers full name
* @param DOB customer date of bir... | true |
54c38a329a0ded07422c187a7660ea1b8806e8da | Java | Eaglesix/PR2 | /Uebungsabend20160510/src/org/campus02/addressbook/AddressDemo.java | UTF-8 | 943 | 2.90625 | 3 | [] | no_license | package org.campus02.addressbook;
import org.campus02.addressbook.exceptions.AddressBookException;
import org.campus02.addressbook.exceptions.AddressExportException;
import org.campus02.addressbook.exceptions.AddressExportFileAlreadyExistsException;
import org.campus02.addressbook.exceptions.AddressLoadException;
impo... | true |
9579007fb400899fe7ce1873d232fd2feb991aaa | Java | tunguyen85/aplito | /src/main/java/utilities/Environment.java | UTF-8 | 4,388 | 2.296875 | 2 | [] | no_license | package utilities;
import services.FileService;
import services.dataServices.DataServiceFactory;
import services.dataServices.IDataService;
import services.reportServices.IReportService;
import services.reportServices.ReportServiceFactory;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.H... | true |
596ef2a6360253a852dc6e860c739c5dca51a2a8 | Java | Halarious/AIR-Projekt2016 | /app/src/main/java/hr/foi/air/international/servemepls/controllers/AppConfig.java | UTF-8 | 354 | 1.617188 | 2 | [] | no_license | package hr.foi.air.international.servemepls.controllers;
public class AppConfig
{
public static String URL_LOGIN = "192.168.1.26/android_login_api/login.php";
public static String URL_REGISTER = "192.168.1.26/android_login_api/register.php";
public static String URL_DECODE = "http://192.168.1.26... | true |
4e45a6cf25da2ffc50c14bf89a7f05e3d2054f07 | Java | masfworld/textmining-II | /GenerateBOWBaseline/src/generatebowbaseline/GenerateBOWBaseline.java | UTF-8 | 11,420 | 2.59375 | 3 | [] | no_license | package generatebowbaseline;
import org.apache.lucene.analysis.ngram.NGramTokenizer;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import java.io.*;
import java.util.*;
/**
* @author kicorangel masotomayor
*/
publi... | true |
fde5b7c0a54d9a8f061825bf02dd70a0d42be850 | Java | tgmerge/rx-java-playground | /app/src/main/java/me/tgmerge/rxjavaplayground/rxplayground/part1_rx/RxTest2Activity.java | UTF-8 | 2,447 | 2.625 | 3 | [] | no_license | package me.tgmerge.rxjavaplayground.rxplayground.part1_rx;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;
import android.widget.Toast;
import me.t... | true |
d6b6459dc4203b51fbb0f87dc59399719e36cd70 | Java | AlexPolyakov89/untitled | /src/lesson1/Main1.java | UTF-8 | 266 | 2.71875 | 3 | [] | no_license | package lesson1;
public class Main1 {
public static void main(String[] args) {
System.out.println("Hello world");
int a = 10;
int b = 15;
int c = 20;
int perimetr = a+b+c;
System.out.println(perimetr);
}
} | true |
6d7f5e6267a699b5297f93a326d2558765c3176b | Java | gasymovrv/Education_project | /src/main/java/examples/java8/ConcurrentMapTest.java | UTF-8 | 3,509 | 3.109375 | 3 | [] | no_license | package examples.java8;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.atomic.AtomicInteger;
public class ConcurrentMapTest {
public static void... | true |
5136064470128c6b234d051f1b5e920bc999d1dc | Java | ArchangelDesign/log-cleaner | /src/com/archangel/design/StrategyInterface.java | UTF-8 | 90 | 2.140625 | 2 | [] | no_license | package com.archangel.design;
public interface StrategyInterface {
public void run();
}
| true |
9ba69a562cd4238a213b52557c6cfecf1bc66fa2 | Java | OleksandrChmyr/chmyr_elementary | /src/main/java/homework2/InitializationData.java | UTF-8 | 2,920 | 3.625 | 4 | [] | no_license | package homework2;
public class InitializationData {
//2. Создать класс “InitializationData” и метод внутри него, который будет предоставлять/наполнять данные для теста
// функционала. Этот класс в итоге должен вернуть объект класса “Information”, с наполненными данными.
//2.1. Наполнить тридцатью уникальны... | true |
eef3eae3224303ce27b30db92b778460cfd1bbb1 | Java | Dan-sensei/CS | /AR/src/Interface/Server.java | UTF-8 | 10,144 | 2.4375 | 2 | [] | no_license | package Interface;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
impor... | true |
34670b254eb25debfe5c3ee93b7627b8333b07fd | Java | madgeek-arc/resource-catalogue | /eic-registry/src/main/java/eu/einfracentral/utils/ResourceValidationUtils.java | UTF-8 | 3,308 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package eu.einfracentral.utils;
import eu.einfracentral.domain.ResourceBundle;
import eu.einfracentral.domain.TrainingResourceBundle;
import eu.einfracentral.exception.ResourceNotFoundException;
import eu.einfracentral.exception.ValidationException;
import eu.einfracentral.registry.service.ResourceBundleService;
impor... | true |
8f586dcd0e36ed0ca17cdcad2676d52d359511f0 | Java | zhanggh/etools | /etools/src/main/java/com/etools/core/plugin/entity/BooleanEnum.java | UTF-8 | 555 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | /**
* 通联支付-研发中心
* BooleanEnum.java
* 2014-4-25
*/
package com.etools.core.plugin.entity;
/**
* @author zhang
* 功能:
* @date 2014-4-25
*/
public enum BooleanEnum {
TRUE(Boolean.TRUE, "是"), FALSE(Boolean.FALSE, "否");
private final Boolean value;
private final String info;
private BooleanEnum(Bo... | true |
0a52091d392730b309490d77f935d811c4d008ae | Java | adeloaleman/JavaDesktopApp-StockMarketSimulator | /src/smsimulator/view/Component.java | UTF-8 | 218 | 2.171875 | 2 | [] | no_license | package smsimulator.view;
import smsimulator.Controler.MediatorInterface;
/**
* Common component interface
*/
public interface Component {
void setMediator(MediatorInterface mediator);
String getName();
}
| true |
4c86475c5d8a765a04a20c452c2929a08a71e8a0 | Java | camilavenegas/Liquor-Store-Project- | /06-Code/Unit 2/Borradores/CodigoBorrador/Project/src/ec/edu/espe/project/model/Card.java | UTF-8 | 2,588 | 3.109375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ec.edu.espe.project.model;
import java.util.Scanner;
/**
*
* @author hp
*/
public class Card {
private String name;
... | true |
ac22edaf9e83bda78854e91263b79aefc7d58666 | Java | ADiligentMan/Practice | /src/test/java/problem/solution/DescartesTest.java | UTF-8 | 499 | 2.703125 | 3 | [] | no_license | package problem.solution;
import org.junit.Test;
import java.util.LinkedList;
import java.util.List;
public class DescartesTest {
@Test
public void test1() {
String[] a = {"1", "2"};
String[] b = {"3", "4"};
String[] c = {"a", "b"};
List<String[]> input = new LinkedList<>();
... | true |
d78c2798c95749ad30ce3c44f4d6eb516e603970 | Java | Demeqrosad/CRUD-kodilla-java | /src/test/java/com/kodilla/crud/tasks/domain/NoArgsConstuctorTest.java | UTF-8 | 2,118 | 2.203125 | 2 | [] | no_license | package com.kodilla.crud.tasks.domain;
import org.junit.Assert;
import org.junit.Test;
public class NoArgsConstuctorTest
{
@Test
public void nullTrelloBoardDTO()
{
//Given
//When
TrelloBoardDTO trelloBoardDTO = new TrelloBoardDTO();
//Then
Assert.assertEquals(null,... | true |
61026454a69e25631a7820a652728b19cf9e2054 | Java | sebastiangi312/AMAUC | /src/main/java/com/sebastiangi312/SSKCD/information/application/adapter/CourseAdapter.java | UTF-8 | 841 | 2.34375 | 2 | [] | no_license | package com.sebastiangi312.SSKCD.information.application.adapter;
import com.sebastiangi312.SSKCD.information.application.fabric.CourseFabric;
import com.sebastiangi312.SSKCD.information.application.pdu.Course;
import com.sebastiangi312.SSKCD.persistence.database.entity.CourseEntity;
import org.springframework.stereot... | true |
ea13eccc3cd2b63609632f8e07de9064f02f8c5b | Java | xuamao/JSFSample | /src/main/java/de/heine/cube/online/sessionbean/ResourceLocationBean.java | UTF-8 | 1,289 | 2 | 2 | [] | no_license | /***********************************************************
*
* HEINE Cube-Project
*
***********************************************************
*
* Copyright c 2010 Heine Optotechnik GmbH & Co. KG.
* <info.software@heine.com>
*
* @author axu <amao.xu@altran.com>
*
* @brief Header file for Project ... | true |
c89311bb1e78f574772b299a7090db686e13866e | Java | raafaelnunes12/api-entra21 | /src/main/java/com/entra21/controller/CursoController.java | UTF-8 | 723 | 2.0625 | 2 | [] | no_license | package com.entra21.controller;
import com.entra21.controller.dto.CursoDTO;
import com.entra21.model.Curso;
import com.entra21.repositories.CursoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.anno... | true |
c1fcba1086ee9330af3f99fe13f4087017926a57 | Java | kx0419/meatalhealth | /src/main/java/health/service/MangerService.java | UTF-8 | 573 | 1.875 | 2 | [] | no_license | package health.service;
import health.dao.MangerDao;
import health.dao.UserDao;
import health.entity.Manager;
import health.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.sql.SQLException;
@Service
pub... | true |
b31aea730286641d8961817feff56a55578ce2a6 | Java | lovelock/leetcode | /leetcode/src/main/java/fun/happyhacker/a0020/Solution.java | UTF-8 | 1,051 | 3.421875 | 3 | [] | no_license | package fun.happyhacker.a0020;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.HashMap;
import java.util.Map;
public class Solution {
public static void main(String[] args) {
String s = "[]]";
Solution solution = new Solution();
boolean b = solution.isValid(s);
... | true |
968614c72541216d5c5311e1ed1dbf64bbb82392 | Java | labbeh/MerluchAssur | /src/fr/labbeh/merluchassur/commands/CommandMerluch.java | ISO-8859-1 | 2,114 | 2.828125 | 3 | [] | no_license | package fr.labbeh.merluchassur.commands;
import org.bukkit.ChatColor;
import org.bukkit.block.Chest;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import fr.labbeh.merluchassur.Assure;
import fr.labbeh.merluchass... | true |
23fef479184de0fe65deb970cf36b6de862db9ce | Java | JardelBrandon/katyusco_lpoo | /Cap.5/5.5/JavaApplication5.5/src/Questao5/Empresa.java | UTF-8 | 661 | 3.265625 | 3 | [] | no_license | /*
5) (opcional)Emvez demostrar apenas o salário de cada funcionário, você pode chamar ométodo mostra()
de cada Funcionario da sua array.
*/
package Questao5;
/**
*
* @author jarde
*/
public class Empresa {
String nome;
String cnpj;
Funcionario[] empregados;
void adiciona(Funcionario f) {
... | true |
3de4fcaca36b848bd5f3cd2dde9d0782c3451a8f | Java | fuldevpok/Hipsterbait | /app/src/main/java/com/hipsterbait/android/other/HBClusterRenderer.java | UTF-8 | 1,169 | 2.0625 | 2 | [] | no_license | package com.hipsterbait.android.other;
import android.content.Context;
import android.graphics.Color;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.model.BitmapDescriptor;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.maps.model.Mark... | true |
2b48a2b3f1559b3e54e78b94bbcc79a185989ebc | Java | praveenkad/Keyword-Driven-Logs | /src/test/java/testsuite/ElementChopper.java | UTF-8 | 2,687 | 2.8125 | 3 | [] | no_license | package testsuite;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.lang.reflect.Method;
import java.util.Properties;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.CellType;
import org... | true |
2adeec4fdd7558006f45fdd33b0f6420fa67e6d2 | Java | oyesiji/testchat | /app/src/main/java/com/brefft/testchat/MainActivity.java | UTF-8 | 3,269 | 2.4375 | 2 | [] | no_license | package com.brefft.testchat;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.brefft.entity.ChatMessage;
import com.google.gson.Gson;
import okhttp3.OkHttpClient;
impor... | true |
1eea08582a94be72cdeaf154f535322ef6490eb8 | Java | 415502155/Java | /ad_system/src/com/gm/utils/Contants.java | UTF-8 | 2,231 | 1.570313 | 2 | [] | no_license | package com.gm.utils;
/**
* 常量类-日志类型
* @author jiazhq
* @date 2014年9月19日 下午5:55:19
*/
public class Contants {
//玩家日志:mongodb数据接口方法
public static final String ITEM_LOG = "item_log";//道具日志
public static final String YB_INCOME = "yb_income";//元宝日志(收入)
public static final String YB_EXPEND = "yb_expend";//元宝日志(... | true |
c966013c30da921b7f5ce5729212574e5219cd3e | Java | Sharember/JavaYouShouldKnow | /ReactorProgram/src/main/java/cn/fanhub/UiUtils.java | UTF-8 | 662 | 2.09375 | 2 | [
"MIT"
] | permissive | /**
* Fanhub.cn
* Copyright (c) 2014-2018 All Rights Reserved.
*/
package cn.fanhub;
import cn.fanhub.callback.NoParamFunction;
import reactor.core.scheduler.Scheduler;
import reactor.core.scheduler.Schedulers;
/**
*
* @author chengfan
* @version $Id: UiUtils.java, v 0.1 2018年03月11日 下午4:40 chengfan Exp $
*/
pu... | true |
c168919d7e6ec9066252e9176bda70b6f3b899ec | Java | giacatho/SE | /src/java/assignment1/searcher/A1Searcher.java | UTF-8 | 3,475 | 2.484375 | 2 | [] | no_license | /*
Document : A1Searcher
Created on : 03-Mar-2016, 19:52:18
Author : Quoc
*/
package assignment1.searcher;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.... | true |
238f714b758e902deb939e66cceb4f0e06201727 | Java | summertan604/gitTest | /src/main/java/com/xy/Util/ExecuteSelectUtil.java | UTF-8 | 1,779 | 3.234375 | 3 | [] | no_license | package com.xy.Util;
import java.sql.*;
import java.util.*;
/**
* @Author: TANSHUFANG
* @Description:执行查询语句
* @CreateDate: 2018/9/10 15:53
*/
public class ExecuteSelectUtil implements Iterator<Object[]> {
ResultSet result; //结果集
List<Map<String, String>> dataList = new ArrayList<Map<String, String>>(); ... | true |
8fa8ecf6688f9fdec392181b82815d2a75c3a3a5 | Java | CBIIT/ncippe-application | /src/main/java/gov/nci/ppe/util/AlertContentTypeConverter.java | UTF-8 | 608 | 2.359375 | 2 | [] | no_license | package gov.nci.ppe.util;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
import gov.nci.ppe.constants.CommonConstants.AlertContentType;
@Converter(autoApply = true)
public class AlertContentTypeConverter implements AttributeConverter<AlertContentType, String> {
@Override
public S... | true |
13bdc71b7f7e9becc936b8893360f1e64d82f5de | Java | nacl025/SSOLibrary | /src/com/nationsky/oauthlibrary/OAuthHelper.java | GB18030 | 6,584 | 2.234375 | 2 | [] | no_license | package com.nationsky.oauthlibrary;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import com.nationsky.oauthlibrary.net.HttpManager;
import com.nationsky.oauthlibrary.util.DesCryptUtil;... | true |
dba601c35cf2075d11acf98799b1fef008e37525 | Java | bellmit/FMHybris | /hybris-deployment/fm/fmfacades/src/com/federalmogul/facades/process/email/context/FMBatchLoadSuccessEmailContext.java | UTF-8 | 4,546 | 1.601563 | 2 | [] | no_license | /*
* [y] hybris Platform
*
* Copyright (c) 2000-2013 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* li... | true |
5a1ed13584f183942da3df38a2c0236f1eac4cdc | Java | bhumi2007shah/hexagonsearch | /server/src/main/java/io/litmusblox/server/repository/JobCandidateMappingRepository.java | UTF-8 | 13,821 | 1.617188 | 2 | [] | no_license | /*
* Copyright © Litmusblox 2019. All rights reserved.
*/
package io.litmusblox.server.repository;
import io.litmusblox.server.model.Candidate;
import io.litmusblox.server.model.Job;
import io.litmusblox.server.model.JobCandidateMapping;
import io.litmusblox.server.model.User;
import io.litmusblox.server.service.Ca... | true |
84de1e8b321edb9bd3fd55b2e54d74c192001743 | Java | Timur4162/Summer2020_B20 | /src/day27_recap_Arrays/Arrays_Utility.java | UTF-8 | 642 | 3.21875 | 3 | [] | no_license | package day27_recap_Arrays;
import java.util.Arrays;
public class Arrays_Utility {
/*
sort()
toString()
equals()
*/
public static void main(String[] args) {
String[] names = {"Odina", "Liliia", "Berk", "Emine"};
Arrays.sort(names);
System.out.println(Arrays.toStrin... | true |
65179c73a976a7c91047c9eb2c6fbad165415f06 | Java | tlkzzz/yiweibao-boot | /src/main/java/com/src/api/dao/impl/ProductSkuDaoImpl.java | UTF-8 | 394 | 1.742188 | 2 | [] | no_license | package com.src.api.dao.impl;
import org.springframework.stereotype.Repository;
import com.src.common.base.dao.impl.BaseDaoMysqlImpl;
import com.src.api.dao.ProductSkuDao;
import com.src.api.entity.TbProductSku;
@Repository
public class ProductSkuDaoImpl extends BaseDaoMysqlImpl<TbProductSku, Long>
implements Product... | true |
98190b56a9af51a33005f01fa1303669eff08b55 | Java | r99r99r99/springmvc | /src/com/sdocean/common/model/SelectTree.java | UTF-8 | 1,002 | 2.046875 | 2 | [] | no_license | package com.sdocean.common.model;
import java.util.List;
public class SelectTree {
private String id;
private String name;
private Boolean selected;
private List<SelectTree> children;
private Boolean isExpanded;
private Boolean isActive;
public Boolean getIsActive() {
return isActive;
}
public void s... | true |
9072427be25db17d408aa6961750dd0e1cb87df9 | Java | siddhiparekh11/problemsolving | /JavaApplication165/src/javaapplication165/JavaApplication165.java | UTF-8 | 1,256 | 2.875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication165;
/**
*
* @author siddhiparekh11
*/
public class JavaApplication165 {
public static void main(St... | true |
65b113b7dd1689b65e62c001224dc078a7364018 | Java | plpl666/Short-Video-Dev | /videos_dev_service/src/main/java/com/imooc/service/VideoService.java | UTF-8 | 1,629 | 2 | 2 | [] | no_license | package com.imooc.service;
import com.imooc.pojo.Comments;
import com.imooc.pojo.Videos;
import com.imooc.pojo.vo.VideosVO;
import com.imooc.utils.PagedResult;
import java.util.List;
public interface VideoService {
/**
* @Description: 分页查询视频列表
*/
PagedResult<VideosVO> getAllVideos(Videos video, In... | true |
4be2fee5419daf0c1220735df50d28353d636b58 | Java | andr31/filemanager | /src/test/java/jUnits/ConsultationTest.java | UTF-8 | 3,184 | 2.21875 | 2 | [] | no_license | package jUnits;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.contex... | true |
cd42573a9e05fddeb06f860b82296f163298c215 | Java | DongJinJeong/Encore_boardproject | /Board_Project/src/encore/board/controller/RepleWriteServlet.java | UTF-8 | 1,145 | 2.21875 | 2 | [] | no_license | package encore.board.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import encore.board.dao.RepleDAO;
import ... | true |
4692f249dd7d3d0b10c99ce1b6a5c1da8d389ce3 | Java | articulab/fig | /src/main/java/fig/servlet/IntrinsicField.java | UTF-8 | 650 | 2.421875 | 2 | [
"MIT"
] | permissive | package fig.servlet;
import java.io.*;
import java.util.*;
/**
* Intrinsic fields: contact item.
*/
public class IntrinsicField extends Field {
public IntrinsicField(String name, String gloss) {
this(name, name, gloss);
}
public IntrinsicField(String name, String displayName, String gloss) {
super(nam... | true |
ad3522de6a0b83e22292186930c426eb5bece9b5 | Java | cube-andy/titlebar | /titlebar/app/src/main/java/com/yjt/titlebar/barHelper/TitleBarUtil.java | UTF-8 | 5,424 | 2.09375 | 2 | [] | no_license | package com.yjt.titlebar.barHelper;
import android.app.Activity;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.StateListDrawable;
import android.util.TypedValue;
import android.view.View;
import android.view.Vi... | true |
dae02157f398f7b8f5b4ad73ce69a83f9c9d3f57 | Java | nareshmunigela/Practise | /ERGOS2019V1-master/src/main/java/com/ergossoft/serviceorder/repository/ServiceOrderRepository.java | UTF-8 | 1,897 | 1.867188 | 2 | [] | no_license | /**
*
*/
package com.ergossoft.serviceorder.repository;
import java.time.LocalDateTime;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.ergossoft.serviceorder.mod... | true |
1e19d75a8e2ad6546f9a0a1a07b6f93f24477278 | Java | NaluKit/nalu | /nalu-processor/src/main/java/com/github/nalukit/nalu/processor/scanner/HandlerAnnotationScanner.java | UTF-8 | 3,304 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2018 - Frank Hossfeld
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | true |
a7099358fa725cf85e77fbae392a0469fe5ef042 | Java | Lhaosv/DesignPattern-Java | /ResponsibilityPatternPackage/Yingzhang.java | UTF-8 | 475 | 2.890625 | 3 | [] | no_license | package ResponsibilityPatternPackage;
public class Yingzhang extends Officer {
public Yingzhang(String name) {
super(name);
}
@Override
public void handle(Mission mission) {
if (mission.getNum()>=50&&mission.getNum()<200){
System.out.println("营长下达作战指令!");
}
... | true |
dbb7d0a9d05e5997281ee1fea323a41e03d263ae | Java | Rodolfocostapr/pascalito | /src/pascalito/util/PascalitoAdapterFactory.java | UTF-8 | 12,720 | 1.882813 | 2 | [] | no_license | /**
*/
package pascalito.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
import pascalito.*;
/**
* <!-- begin-user-doc -->
* The <b>Adapter Factory</b> for the mo... | true |
64cfbb90c278a3c496be8586ba2ca7d53d702cee | Java | tnatna0801/Baekjoon | /bj_1912.java | UTF-8 | 581 | 2.8125 | 3 | [] | no_license | package bj;
import java.util.*;
public class bj_1912 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] ans = new int[n];
int[] d = new int[n];
//String[] tmp = (scan.nextLine()).split(" ");
int r = -9999;
... | true |
f0c379f96be74a5207e2555cee9cdf198a704a22 | Java | EvidentSolutions/enlight | /enlight/src/main/java/fi/evident/enlight/highlighter/SyntaxHighlighter.java | UTF-8 | 1,978 | 2.421875 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2011 Evident Solutions Oy
*
* 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 without limitation the rights
* to use, copy, modify, merge... | true |
16ad415eec580313bfb15ae507db1ad8f15704b4 | Java | VandaeleAurelien/ProjetGroupe3 | /src/ClassesDB/UtilisateurRoom.java | ISO-8859-2 | 116 | 1.53125 | 2 | [] | no_license | package ClassesDB;
/**
* Classe UtilisateurRoom
* @author Amandine Vandevoir & Aurlien Vandaele
*/
public class UtilisateurRoom
{
}
| true |
8778c72b2fdc7f5ef869fcf307c1e26b3bb26fbc | Java | ImDolfin/Blackboard | /VerteilteSySApiREST/src/RESTApi/AllBlackboards.java | UTF-8 | 13,168 | 2.765625 | 3 | [] | no_license | package RESTApi;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import javax.servlet.http.HttpServletR... | true |
d56c183845f334bf08f6fe9dfad62b419e6115d3 | Java | 0rbit3r/Anthill | /src/main/java/cz/kakosa/anthill/SimManager.java | UTF-8 | 8,506 | 2.84375 | 3 | [] | no_license | package cz.kakosa.anthill;
import cz.kakosa.pixelsim.*;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.util.Random;
import cz.kakosa.anthill.ants.*;
/**
* Specific Simulation manager. In this case simulaties Anthill
*/
public class SimManager extends AbstractSimulation{... | true |
2e49a1559163f8798a768dcd1f2ae752c356cf11 | Java | zcz123/ehome | /EHomeHDV5_1/WLCameraA/src/com/wulian/iot/view/ui/ProtectAreaActivity.java | UTF-8 | 7,660 | 1.765625 | 2 | [] | no_license | package com.wulian.iot.view.ui;
import com.wulian.iot.Config;
import com.wulian.iot.utils.DateUtil;
import com.wulian.iot.utils.IotUtil;
import com.wulian.iot.view.base.SimpleFragmentActivity;
import com.wulian.icam.R;
import com.wulian.icam.common.APPConfig;
import com.wulian.icam.model.Device;
import com.wulian.icam... | true |
f14bf82968bf430e2a380cea6dec456ec3ff617d | Java | JasonHub5/algorithmLearning | /src/main/java/hash/ContainsDuplicatesIII.java | UTF-8 | 2,211 | 4 | 4 | [] | no_license | /*
220. Contains Duplicate III
Medium
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and nums[j] is at most t and the absolute difference between i and j is at most k.
Example 1:
Input: nums = [1,2,3,1], k = 3, t = 0
O... | true |
4d637030b9fed215edef6a9d82e0bb89291fcbf4 | Java | Zwixx/qform | /src/main/java/org/glasser/qform/InsertExportPanel.java | UTF-8 | 4,866 | 2.140625 | 2 | [] | no_license | /* ====================================================================
* Copyright (c) 1998 - 2003 David F. Glasser. All rights
* reserved.
*
* This file is part of the QueryForm Database Tool.
*
* The QueryForm Database Tool is free software; you can redistribute it
* and/or modify it under the terms of the G... | true |
fb4c2b0ce1a1373bb1c6cbd3402fa910d014a6c4 | Java | Xakerzz/Module11 | /src/HashTest.java | UTF-8 | 701 | 3 | 3 | [] | no_license | import java.util.*;
public class HashTest {
private static final float loadIndex = 0.9F;
public static void main(String[] args) {
Set<String> set1 = new HashSet<>();
Set<String> set2 = new HashSet<>(25);
Set<String> set3 = new HashSet<>(25, loadIndex);
List<String> list = new Ar... | true |
868583536bfb99e3cdea79a795c58bed18e7d81a | Java | bhhan5274/springboot-data-mongo | /src/main/java/com/bhhan/mongo/converter/ZonedDateTimeReadConverter.java | UTF-8 | 476 | 2.453125 | 2 | [] | no_license | package com.bhhan.mongo.converter;
import org.springframework.core.convert.converter.Converter;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.util.Date;
/**
* Created by hbh5274@gmail.com on 2020-09-24
* Github : http://github.com/bhhan5274
*/
public class ZonedDateTimeReadConverter imp... | true |
bd8d047a2ec4763a75ebcbd903efbd9493f3b575 | Java | arnoldbendaa/cppro | /src/com/cedar/cp/dto/model/SecurityAccessDefCK.java | UTF-8 | 3,316 | 2.390625 | 2 | [] | no_license | /* */ package com.cedar.cp.dto.model;
/* */
/* */ import com.cedar.cp.dto.base.PrimaryKey;
/* */ import java.io.Serializable;
/* */
/* */ public class SecurityAccessDefCK extends ModelCK
/* */ implements Serializable
/* */ {
/* */ protected SecurityAccessDefPK mSecurityAccessDe... | true |
0045a706cee2d9e35b2b2270efb59904d9b2c874 | Java | gul1010/class11 | /eclipse-workspace/JavaProgrammer/src/com/class11/TwoDTasks.java | UTF-8 | 1,410 | 3.71875 | 4 | [] | no_license | package com.class11;
public class TwoDTasks {
public static void main(String[] args) {
//Create 2d array of cars; american, german, korean, italian.
String[][] cars= {
{"Chevrolet", "Ford", "GME"},
{"Audi", "BMW"},
{"Hyundai", "Kia", "Renold"},
{"Ferrari", "Lamborghini", "Fiat", "Alfaromeo"... | true |
775f84f2c563d0cb7a4b3041b116ff7dac1bfd2e | Java | AndreeaVina/Jealous-Husbands-Problem-JavaVersion | /src/main/java/Main.java | UTF-8 | 290 | 2.453125 | 2 | [] | no_license | import java.util.Map;
public class Main {
public static void main(String args[]) {
// int n = 10;
// var problema1 = new State(n);
// var algorithm = new Algorithm();
// System.out.printf(Boolean.toString(algorithm.checkIfStateIsFinal(problema1)));
}
} | true |
92663a4f6507bb3652143b3abefca3c8770a07ae | Java | bumperburke/Spotter | /java/Classes/ImageAdapter.java | UTF-8 | 2,173 | 2.59375 | 3 | [
"MIT"
] | permissive | package stefan.burke.mydit.ie.spotter.Classes;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.provider.MediaStore;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
impor... | true |
1dbb4e4eb08cbf529db4c800a7541bd4346f1bc1 | Java | shelly2930/CEA103G2 | /CEA103G2/src/com/bill/model/BillVO.java | UTF-8 | 1,607 | 2.25 | 2 | [] | no_license | package com.bill.model;
import java.sql.Date;
public class BillVO implements java.io.Serializable { // why implements java.io.Serializable? p218 beanname
private Integer bill_no;
private Integer mem_no;
private Integer hos_no;
private Date bill_date;
private Date bill_due;
private Integer bill_power;
private I... | true |
49e003ed152f0ac4c57f5dd20ccc6abdcaa9d66e | Java | evoila/osb-core | /model/src/main/java/de/evoila/cf/broker/model/ServiceInstanceBindingRequest.java | UTF-8 | 2,290 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package de.evoila.cf.broker.model;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.hibernate.validator.constraints.... | true |
62645ed8b06b6454aa39f0013dc45f9dfd0eb185 | Java | ironrhino/ironrhino | /src/org/ironrhino/core/security/webauthn/domain/PublicKeyCredential.java | UTF-8 | 220 | 1.578125 | 2 | [] | no_license | package org.ironrhino.core.security.webauthn.domain;
import lombok.Value;
@Value
public class PublicKeyCredential<R extends AuthenticatorResponse> {
private byte[] id;
private String type;
private R response;
}
| true |
d018ebfacceee19aab98e0f319a177975b9b7592 | Java | ankit-its-simple/cracking-coding-problem | /Chapter-1 -Array and Strings/Dishant/ConvexHull.java | UTF-8 | 1,901 | 3.375 | 3 | [] | no_license | package com.cetera.process.engine.client;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class ConvexHull {
private int calculateOrientation(Points p, Points q, Points r) {
int orientation = (q.getY() - p.getY()) * (r.getX() - q.getX()) - ((r.getY() - q.getY()... | true |
c558e03e48272153dca962b67b2cbece89fdf3db | Java | soleiana/Conference-Planner | /src/main/java/com/conferenceplanner/rest/controllers/ParticipantController.java | UTF-8 | 3,189 | 2.171875 | 2 | [] | no_license | package com.conferenceplanner.rest.controllers;
import com.conferenceplanner.core.services.ApplicationException;
import com.conferenceplanner.core.services.ParticipantService;
import com.conferenceplanner.rest.domain.Participant;
import com.conferenceplanner.rest.domain.ResourceAccessErrorCode;
import com.conferencepl... | true |
420f15eac94f72344dbe962f9597ebf6a9cd1282 | Java | faceloss/danceOffer | /src/acwing/day14/Lc329_LongestIncreasingPathinaMatrix.java | UTF-8 | 1,266 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | package acwing.day14;
/**
* @Auther: mobing
* @Date: 2020/9/10 00:25
* @Description:
* 给定一个整数矩阵,找出最长递增路径的长度。
*
* 对于每个单元格,你可以往上,下,左,右四个方向移动。 你不能在对角线方向上移动或移动到边界外(即不允许环绕)。
*
* 示例 1:
*
* 输入: nums =
* [
* [9,9,4],
* [6,6,8],
* [2,1,1]
* ]
* 输出: 4
* 解释: 最长递增路径为 [1, 2, 6, 9]。
* 示例 2:
*
* 输入: nums =
... | true |
f0ba9d2192d1adae89685ca7e9ce1e32c31534a2 | Java | xoya/getmethere | /app/src/main/java/corporation/xoya/getmethere/models/common/Coordonnees.java | UTF-8 | 252 | 1.617188 | 2 | [] | no_license | package corporation.xoya.getmethere.models.common;
/**
* Created by xhabloo on 09-Nov-16.
*/
public class Coordonnees {
/**
* longitude
*/
public double longitude;
/**
* latitude
*/
public double latitude;
}
| true |
65a28bda6083fe791c3f0beb236433c112e0efbc | Java | pangeon/NewsletterJavaStart | /src/pl/javastart/rekrutation_questions/final_keyword/immutable_bean/Person.java | UTF-8 | 423 | 2.671875 | 3 | [] | no_license | package pl.javastart.rekrutation_questions.final_keyword.immutable_bean;
public final class Person {
private final String PESEL;
private final String BLOOD_GROUP;
public Person(String pesel, String blood_group) {
PESEL = pesel;
BLOOD_GROUP = blood_group;
}
public String getPESEL() ... | true |
3e2620822f01c088cd14a95950f6e48570d713e8 | Java | YveOms/msms | /app/src/main/java/com/stdserver/msms/CallListener.java | UTF-8 | 819 | 2.46875 | 2 | [] | no_license | package com.stdserver.msms;
import android.telephony.PhoneStateListener;
import android.telephony.TelephonyManager;
public class CallListener extends PhoneStateListener {
private App app;
public CallListener(App app)
{
this.app = app;
}
@Override
public void onCallStateC... | true |
5909e818bb9e21a7624f7d7d4d72edb4c140a30c | Java | heig-vd-amt2018/wp2 | /swagger/spring-server/src/main/java/ch/heigvd/amt/wp2/model/entities/RulePointScaleAmountEntity.java | UTF-8 | 1,107 | 2.09375 | 2 | [
"MIT"
] | permissive | package ch.heigvd.amt.wp2.model.entities;
import javax.persistence.*;
@Entity
@Table(name = "rule_point_scale_amount")
public class RulePointScaleAmountEntity extends AbstractDomainModelEntity<Long> {
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "rule_id", nullable = true)
private RuleEntity rule... | true |
cef1e541e712a9433072020e5c0e043966bc2cad | Java | guisfco/online-shopping-api | /src/main/java/br/com/guisfco/onlineshopping/service/customer/UpdateCustomerService.java | UTF-8 | 946 | 2.15625 | 2 | [] | no_license | package br.com.guisfco.onlineshopping.service.customer;
import br.com.guisfco.onlineshopping.domain.CustomerRequest;
import br.com.guisfco.onlineshopping.entity.Customer;
import br.com.guisfco.onlineshopping.repository.CustomerRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Ser... | true |
41d864502be15ca8e69c6f0903741f3c4466b829 | Java | samokisha/Coffee-Machine-Java- | /task/src/machine/model/Resource.java | UTF-8 | 83 | 2 | 2 | [] | no_license | package machine.model;
public enum Resource {
WATER, MILK, BEAN, CUP, MONEY
}
| true |
854ebf2c90347c0d6f88bcd00e559c023ccc143e | Java | jorenko/leushi | /leushi/src/com/fish_level/leushi/PuzzleBoard.java | UTF-8 | 1,677 | 2.46875 | 2 | [] | no_license | package com.fish_level.leushi;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
public class PuzzleBoard extends GameBoard {
int required[] = null;
public PuzzleBoard(LeushiView view, int rows, int cols, Bitmap bottom, Bitmap top, Bitmap[] pieces, int[] required)... | true |
302df31b6dcdd096abab35ad387167a8862af36c | Java | github-acount-1/Restaurant_billing_system-DB- | /java_codes/db/Restaurant Billing Management System/src/restaurant/billing/system/MenuModel.java | UTF-8 | 2,862 | 2.796875 | 3 | [] | no_license | //Data Model for the menu table
package restaurant.billing.system;
import java.io.Serializable;
import javafx.beans.property.FloatProperty;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleFloatProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.Si... | true |
1af470438ecd89149cf36173ac362d02d65a6e6d | Java | hakmas/DigitalBankAutomation | /DigitalBankAutomation /src/main/java/com/digitalbanking/pages/TransferMoneyPage.java | UTF-8 | 874 | 2.203125 | 2 | [] | no_license | package com.digitalbanking.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import com.digitalbanking.base.BasePage;
import com.digitalbanking.utils.ElementUtil;
public class TransferMoneyPage extends BasePage{
private WebDriver driver;
private ElementUtil elementUtil;
public TransferMo... | true |
703a2ec041a26db9d8e0b46fd5f328e75bff940f | Java | alanbaumgartner/Easyscape | /easy/swap/EasySwapPlugin.java | UTF-8 | 8,038 | 2.0625 | 2 | [
"MIT"
] | permissive | package net.runelite.client.plugins.easy.swap;
import com.google.inject.Provides;
import lombok.extern.slf4j.Slf4j;
import net.runelite.api.Client;
import net.runelite.api.GameObject;
import net.runelite.api.GameState;
import net.runelite.api.Player;
import net.runelite.api.coords.WorldPoint;
import net.runelite.api.e... | true |
ea2f042b4912d61dd3a984c6fff682b70f23df5a | Java | Vinayakrbk5/Java-Projects | /Pracice_Programs/src/SuperKeywordExample/ParentClass.java | UTF-8 | 280 | 3.015625 | 3 | [] | no_license | package SuperKeywordExample;
public class ParentClass {
int a;
int b;
ParentClass()
{
System.out.println("Hello world");
}
ParentClass(String name)
{
System.out.println("My name is :"+name);
}
public void display()
{
System.out.println("This is my India");
}
}
| true |
0391894126398a229ca99027ca8bdd3fc72bd15e | Java | adsloader/AndroJavaExample | /app/src/main/java/순수자바트레이닝/여섯째날_동기비동기/기차시스템/KTX열차.java | UTF-8 | 1,724 | 3.578125 | 4 | [] | no_license | package 순수자바트레이닝.여섯째날_동기비동기.기차시스템;
import java.util.ArrayList;
/**
* Created by snake on 16. 8. 25.
*/
public class KTX열차 {
// 필요한 것들. 정착역, 손님리스트, 현재 정착역 위치
String [] Stations = {"서울역", "천안", "대전", "대구", "부산"};
ArrayList<여행객> customer = new ArrayList <여행객>();
int nCurrent = 0;
// 여행객이 승차한다.
... | true |
39ca7c7f1f404e3d605fd79d0073ae409db287aa | Java | frantzoe/Webice | /src/factories/ConventionFactoryImpl.java | UTF-8 | 1,613 | 2.875 | 3 | [
"MIT"
] | permissive | package factories;
import collections.Conventions;
import models.Convention;
import utilities.JParse;
import javax.xml.bind.JAXBException;
import java.io.File;
import java.util.List;
public class ConventionFactoryImpl implements ConventionFactory {
private File FILE;
public ConventionFactoryImpl(String pat... | true |
096ee25139a4eccee4d80cf842bdd9ec13321461 | Java | Wanlanhua/zhuoer | /src/com/zhuoer/careDevice/servlet/ajaxServlet/CustomerNo.java | UTF-8 | 2,007 | 2.3125 | 2 | [] | no_license | package com.zhuoer.careDevice.servlet.ajaxServlet;
import java.io.IOException;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Collection;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.ht... | true |
9db14cbf7a427023d5ccc95cd40221e3524c4357 | Java | qwater/intlab | /rules/src/main/java/com/zju/webapp/controller/explain/PatientController.java | UTF-8 | 11,027 | 1.898438 | 2 | [] | no_license | package com.zju.webapp.controller.explain;
import java.io.Reader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.String... | true |
56e2021b6667b452f8416643758dbf72b745a6f5 | Java | danielparla/Femxa | /src/NotaMedia.java | WINDOWS-1250 | 569 | 3.234375 | 3 | [] | no_license |
public class NotaMedia {
private static int[] array_notas = {0, 10, 2, 6, 7, 5, 4};
public static void main(String[] args) {
float pos_array=0;
float suma_array=0;
float nota_media=0;
for (int i=0;i<array_notas.length;i++){
pos_array = array_notas[i];
suma_array += pos_array;
... | true |
2a2cbf137c40075e9dae9d081f75e8e88df989a8 | Java | guestDI/electro_backend | /src/main/java/com/electro/backend/validator/LoginUserValidator.java | UTF-8 | 589 | 2.34375 | 2 | [] | no_license | package com.electro.backend.validator;
import com.electro.backend.model.User;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;
/**
* Created by d.ihnatovich on 10/30/2017.
*/
@Component
public class LoginUserValidator {
public void validate(User user) throws Runtime... | true |
9aec4c4cef596140056d1c8292081d6e1899d069 | Java | bodar/shavenmaven | /test/com/googlecode/shavenmaven/s3/S3SignerTest.java | UTF-8 | 1,228 | 2.234375 | 2 | [] | no_license | package com.googlecode.shavenmaven.s3;
import com.googlecode.utterlyidle.HttpMessage;
import com.googlecode.utterlyidle.Request;
import org.junit.Test;
import static com.googlecode.shavenmaven.s3.AwsCredentials.awsCredentials;
import static com.googlecode.utterlyidle.HttpHeaders.AUTHORIZATION;
import static com.googl... | true |