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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
829a53b60b681f4f94c9adfd201842b8a8314f79 | Java | NTRsolutions/KippinProduction | /Kippin_Ocr/src/main/java/com/kippin/webclient/model/ModalMobileDropdownListing.java | UTF-8 | 1,416 | 2.015625 | 2 | [] | no_license | package com.kippin.webclient.model;
/**
* Created by gaganpreet.singh on 7/15/2016.
*/
public class ModalMobileDropdownListing {
private String ResponseCode;
private String Id;
private String UserId;
private String BankName;
private String ResponseMessage;
public String... | true |
f2dcf251a218f281aa1a2d2727f287bd1bca7c2b | Java | leehan0617/kosta | /pro06/src/view01/Quiz01.java | UHC | 1,122 | 3.265625 | 3 | [] | no_license | package view01;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.Font;
import javax.swing.JFrame;
import javax.swing.JLabel;
class MyFrame extends JFrame{
private static final long serialVersionUID = 1L;
public MyFrame(){
super.setTitle("Դϴ");
}
public void init(){
super.setSize(300,... | true |
f632ee95db7fc5203aee12a2682561d22782251a | Java | jinyoung-kim24/javaStudy | /GUIProject/src/ui/awt/AwtGuiMain1.java | UHC | 1,721 | 3.484375 | 3 | [] | no_license | package ui.awt;
import java.awt.Button;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Frame;
import java.awt.Label;
import java.awt.TextField;
public class AwtGuiMain1 {
public static void main(String[] args) {
Frame frm1 = new Frame("Java GUIâ");
frm1.setLocation(100... | true |
3dba8742fc35e04a1ed742a739b08f26baa36b13 | Java | FelipePizzio/VemSerDBC | /Modulo 5 - DB com JAVA/Cartoes/src/main/java/br/com/dbccompany/Cartoes/Entity/LojaXCredenciador.java | UTF-8 | 1,972 | 2.1875 | 2 | [] | no_license | package br.com.dbccompany.Cartoes.Entity;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import jav... | true |
09607d3722e6f039e1d2da67470403419731c0a5 | Java | GlobalDynamics/testidol | /IDOL/src/com/thomson/idol/json/Patent.java | UTF-8 | 349 | 1.820313 | 2 | [] | no_license | package com.thomson.idol.json;
import java.util.Date;
public class Patent {
public Date publishedDate;
public String country;
public Date applicationDate;
public String patentURL;
public String patentTitle;
public String patentNumber;
public String patentOwner;
public String patentInventor;
publ... | true |
4ddd61c05546affe03ac6b9850c25d0d420dc168 | Java | jpiecuch/training-manager | /src/main/java/pl/jakubpiecuch/gymhome/web/util/WebUtil.java | UTF-8 | 2,054 | 2.421875 | 2 | [] | no_license | package pl.jakubpiecuch.gymhome.web.util;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.authentication.AbstractAuthe... | true |
54d01c02b5c7c7a0ade540297c41b839d3df6cce | Java | oguzaliekinci/challenge_sahi | /api/entities/OAuthRequestTokenResponse.java | UTF-8 | 1,300 | 2.53125 | 3 | [] | no_license | package com.sahibinden.challenge.api.entities;
import android.os.Parcel;
public class OAuthRequestTokenResponse extends Entity {
private String oauth_token;
public static final Creator<OAuthRequestTokenResponse> CREATOR = new Creator<OAuthRequestTokenResponse>() {
@Override
public OAuthReques... | true |
54028633683a0160ce4839ad2116eb01cf336d14 | Java | WeiXiaoSummer/PROP-FIB | /src/Domain/JPEG.java | UTF-8 | 38,155 | 2.96875 | 3 | [] | no_license | package Domain;
import Commons.DomainLayerException;
import javafx.util.Pair;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Arrays;
import static java.lang.Math.*;
public class JPEG extends Algorithm {
public JPEG(GlobalStatistic globalStatistic)... | true |
bedebb3d4b32b0b3d88223bbaa5adb717e639391 | Java | babowonkook/lululala | /Wakuang/src/main/java/com/wakuang/hehe/hanguo/service/CodeServiceSourceImplTest.java | UTF-8 | 773 | 1.882813 | 2 | [] | no_license | package com.wakuang.hehe.hanguo.service;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.commons.collections.map.HashedMap;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.bea... | true |
b675d9ec28fec664b35d02602e2ab728e39b075a | Java | brunonmelo/glastonbury | /inventory/src/main/java/br/com/zup/inventory/entity/OrderPosted.java | UTF-8 | 2,063 | 2.3125 | 2 | [] | no_license | package br.com.zup.inventory.entity;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import java.math.BigDecimal;
import java.util.List;
import... | true |
f88b7301fad32023db64069dd4d6503306cc536b | Java | yana-gusti/EasyQARegressionTest | /src/Tests/MyProjects/TestReports/IssuesByTypeReportTest.java | UTF-8 | 600 | 1.804688 | 2 | [] | no_license | package Tests.MyProjects.TestReports;
import Methods.MyProjects.Projects;
import Methods.MyProjects.TestReports;
import Tests.BaseTest;
import org.testng.annotations.Test;
import java.awt.*;
/**
* Created by yanagusti on 10/5/17.
*/
public class IssuesByTypeReportTest extends BaseTest {
@Test
public void u... | true |
1979a4030282aa19bc03d41ecca42e716b71a91f | Java | poscoict-glueframework/glue-examples | /saga-parent/catering-pass-order/src/main/java/com/poscoict/cateringpass/order/OrderHistoryRepository.java | UTF-8 | 283 | 1.757813 | 2 | [] | no_license | package com.poscoict.cateringpass.order;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
public interface OrderHistoryRepository extends JpaRepository<OrderHistoryJpo, String> {
List<OrderHistoryJpo> findByOrderId(String orderId);
}
| true |
53b438b4be623234bfa49c8e5da40887a8b8b052 | Java | alibaba/nacos | /client/src/test/java/com/alibaba/nacos/client/auth/ram/injector/NamingResourceInjectorTest.java | UTF-8 | 7,114 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 1999-2021 Alibaba Group Holding Ltd.
*
* 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 applica... | true |
788301aa003fe3ddeb84b6582038e2669a190ce4 | Java | Kearney3031/News_911 | /ZYSJ_News_911/src/com/service/TypeService.java | UTF-8 | 507 | 1.9375 | 2 | [] | no_license | package com.service;
import java.util.List;
import com.model.PageBean;
import com.model.Type;
public interface TypeService {
List<Type> findAllType();
List<Type> findByTypeId(int typeId);
Type findByTypeId2(int typeId);
//分页查询,把查询结果封装到一个PageBean中
PageBean selTypeByPage(int pageNumber,int pageSize);
//查询所有... | true |
b39ddf41206081cbaae61b4d1ea0f0f714a172a6 | Java | Lejick/war-of-shapes | /src/main/java/portal/dto/TextDTO.java | UTF-8 | 1,176 | 2.640625 | 3 | [] | no_license | package portal.dto;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@JsonSerialize
public class TextDTO implements FigureDTO{
double height;
double width;
double x;
double y;
String type="text";
String text;
String color = "red";
public double getX() {
return x... | true |
e521cb86b694dfab5f46d60faedef20493958133 | Java | yessergire/Tiralabra | /Tiralabra_maven/src/main/java/com/mycompany/tiralabra_maven/maze/Maze.java | UTF-8 | 1,109 | 2.875 | 3 | [] | no_license | package com.mycompany.tiralabra_maven.maze;
import com.mycompany.tiralabra_maven.algorithm.Graph;
import com.mycompany.tiralabra_maven.algorithm.Heuristic;
/**
* A maze object
* @author Yessergire Mohamed
*/
public interface Maze extends Graph, Heuristic {
/**
*
* @return
*/
int getHeight()... | true |
45140114c9e9bfac8cf536090296d256ff74f57d | Java | sdanailova/spring_api_example_1 | /src/main/java/training/concepts/customer/representers/FullRepresenter.java | UTF-8 | 840 | 2.90625 | 3 | [] | no_license | package training.concepts.customer.representers;
import training.concepts.customer.Customer;
// FullRepresenters derives from ShortRepresenter to have all fields of the short representation
// plus the fields for a full representation of a Customer
public class FullRepresenter extends ShortRepresenter {
protected ... | true |
4e74cb2b632a9c5fcc42a764ef8236662ca9df59 | Java | polarstormx/java-final | /src/main/java/battle/view/ViewGenerator.java | UTF-8 | 6,149 | 2.59375 | 3 | [] | no_license | package battle.view;
import java.util.ArrayList;
import battle.Bullet;
import battle.BattleController;
import battle.conf.Configs;
import ground.Tile;
import ground.IntPt;
import ground.GroundView;
import unit.HuLuCharacter;
import javafx.application.Platform;
import javafx.scene.canvas.GraphicsContext;
// 动画生成器
pub... | true |
98394f9f83de4e372f2f8f4c91a1be1b54af2c04 | Java | keepcoral/o2o-shop | /src/main/java/com/bujidao/exception/ShopCategoryOperationException.java | UTF-8 | 396 | 1.804688 | 2 | [] | no_license | package com.bujidao.exception;
public class ShopCategoryOperationException extends RuntimeException{
private static final long serialVersionUID = 2924046239459717628L;
public ShopCategoryOperationException() {
super();
// TODO Auto-generated constructor stub
}
public ShopCategoryOperationException(String me... | true |
8c1d49b74c7b79446cab7e6c56d5f9a3b7ef7544 | Java | mrtsven/chatApp | /unittests/domaintest/MessageTest.java | UTF-8 | 742 | 2.515625 | 3 | [] | no_license | package domaintest;
import domain.Message;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class MessageTest {
private Message message;
@Before
public void setup()
{
this.message = new Message(4, "test","Hello, this is a test", false);
}
@Test
pub... | true |
5b7cd4a2bd8a85315218bbd830da8b3e2395b978 | Java | manouti/Itemfinder | /model/src/main/java/com/manouti/itemfinder/model/user/UserLocation.java | UTF-8 | 2,093 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package com.manouti.itemfinder.model.user;
import android.location.Location;
import com.google.firebase.database.Exclude;
import com.google.firebase.database.PropertyName;
import java.util.HashMap;
import java.util.Map;
public class UserLocation {
private String mPlaceId;
private String mPlaceTitle;
pr... | true |
f3fe31cf364699f9642f7c69f2162401d7cec40c | Java | hecticus/CoffeeApp | /server/CoffeeApp/app/security/authorization/CoffeAppsecurity.java | UTF-8 | 498 | 2.015625 | 2 | [] | no_license | package security.authorization;
import play.mvc.Security;
import play.mvc.With;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Security.Authenticated
@With(CoffeeSecurity... | true |
aae3ec10e4a0685365b75f0a553e80d03ac4e7a7 | Java | luwang951753/DesignMode | /src/designmode/适配器模式/类的适配器模式/Source.java | UTF-8 | 278 | 3.015625 | 3 | [] | no_license | package designmode.适配器模式.类的适配器模式;
/**
* Source 类, 拥有一个方法, 待适配(待Adapter继承使用)
* @author panqian
*
*/
public class Source {
public void method1(){
System.out.println("this is original method!");
}
} | true |
4dfd0623720a43e68e4e9f9afbb53b1f6f35eec3 | Java | rfaita/idlegame | /chat/src/main/java/com/idle/game/model/mongo/Message.java | UTF-8 | 2,433 | 2.09375 | 2 | [] | no_license | package com.idle.game.model.mongo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.io.Serializable;
import java.util.Date;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document... | true |
b345ca2ef0ffe56b7443bfb560b9bc4fa696671b | Java | hotmail-nishi/nucleus-handlers-lookup | /src/main/java/org/gooru/nucleus/handlers/lookup/processors/repositories/activejdbc/dbhandlers/SchoolHandler.java | UTF-8 | 2,682 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package org.gooru.nucleus.handlers.lookup.processors.repositories.activejdbc.dbhandlers;
import java.util.UUID;
import org.gooru.nucleus.handlers.lookup.processors.repositories.activejdbc.entities.AJEntitySchool;
import org.gooru.nucleus.handlers.lookup.processors.responses.ExecutionResult;
import org.gooru.nucleus.h... | true |
451d528db9fb7ee4ab97f8ea555171c2d30e26bf | Java | RecentProgress/WestLakeBlogBackEnd | /src/main/java/com/west/lake/blog/controller/WxController.java | UTF-8 | 5,366 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.west.lake.blog.controller;
import com.lazy.rest.exception.LogicException;
import com.west.lake.blog.annotation.RestSkip;
import com.west.lake.blog.foundation.exception.ErrorMessage;
import com.west.lake.blog.model.RedisKeyFactory;
import com.west.lake.blog.tools.wx.AesException;
import com.west.lake.blog.t... | true |
95c1c5de7b5650f0a9150b60e48cb78510906683 | Java | Olddays/myExercise | /Java/src/com/liu/LeetCode/ThirtyDays202005/exercise/TD08_CheckIfItIsAStraightLine.java | UTF-8 | 999 | 3.53125 | 4 | [] | no_license | package com.liu.LeetCode.ThirtyDays202005.exercise;
/**
* Created by Liu on 2020/5/8.
*/
public class TD08_CheckIfItIsAStraightLine {
public static boolean checkStraightLine(int[][] coordinates) {
int pointSize = coordinates.length;
if (pointSize <= 2) {
return true;
}
... | true |
7acc2ef8378d505bb2e55752121ac491e78d8b6b | Java | Priyanshu-git/minesweeper-swing | /src/listeners/NewGameListener.java | UTF-8 | 911 | 2.421875 | 2 | [] | no_license | package listeners;
import entity.Box;
import frame.Base;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
public class NewGameListener extends Base implements ActionListener {
@Override
public void actionPerformed(ActionEvent e) {
System.out.printl... | true |
3f48aa83aeb5a3e9685e94de04334248b2e489be | Java | wmcfight/learnJava | /src/main/java/learnJava/learnTransient.java | UTF-8 | 948 | 2.53125 | 3 | [] | no_license | /*
* Copyright 2014 Renren.com All right reserved. This software is the
* confidential and proprietary information of Renren.com ("Confidential
* Information"). You shall not disclose such Confidential Information and shall
* use it only in accordance with the terms of the license agreement you entered
* into with... | true |
43fb1ee115201ca3f62e6898f272fabba70e29f1 | Java | MihailovJava/RxJavaSample | /app/src/main/java/rujavainside/rxjavasample/di/MyApp.java | UTF-8 | 923 | 2.21875 | 2 | [] | no_license | package rujavainside.rxjavasample.di;
import android.app.Application;
import rujavainside.rxjavasample.di.components.AppComponent;
import rujavainside.rxjavasample.di.components.DaggerAppComponent;
import rujavainside.rxjavasample.di.modules.MainActivityModule;
import rujavainside.rxjavasample.di.modules.ModelModule;... | true |
63adc0f0316e32dcda4612838685f971aee7b01a | Java | gaolloag/learn | /sourceanalysis/src/main/java/com/gl/base/lm/General.java | UTF-8 | 918 | 2.609375 | 3 | [] | no_license | package com.gl.base.lm;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* @author gaoliang
*/
public class General {
public static void main(String[] args) {
List<A> as = new ArrayList<A>();
for(int i = 0; i < 100000000; i++){
A a1 = new A(... | true |
cbebcb5504153509bf80bf8744efdf5c13874764 | Java | sam-shridhar1950f/bscript | /core/Main.java | UTF-8 | 674 | 3.421875 | 3 | [
"MIT"
] | permissive | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
FileVerification fv = new FileVerification();
//Gets user file input:
Scanner scn = new Scanner(System.in);
System.out.print("> ");
String filePath = scn.nextLine();
... | true |
13a3a708588e07f018d2b3a31e88dea9a2dd1877 | Java | acorbellini/jLiME | /graphly/src/edu/jlime/pregel/worker/ConcatIterator.java | UTF-8 | 613 | 2.671875 | 3 | [] | no_license | package edu.jlime.pregel.worker;
import java.util.Iterator;
import java.util.List;
import edu.jlime.pregel.messages.PregelMessage;
public class ConcatIterator implements Iterator<PregelMessage> {
private List<Iterator<PregelMessage>> l;
int cont = 0;
Iterator<PregelMessage> curr = null;
public ConcatIterator(L... | true |
3d77e98b7737e5910f4716e9a85464bf04f30723 | Java | LiXiaoRan/Gephi_improved | /modules/DesktopFilters/src/main/java/org/gephi/desktop/filters/query/QueryNode.java | UTF-8 | 8,561 | 1.570313 | 2 | [
"Apache-2.0",
"CDDL-1.0",
"GPL-3.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-free-unknown"
] | permissive | /*
Copyright 2008-2010 Gephi
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>
Website : http://www.gephi.org
This file is part of Gephi.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 2011 Gephi Consortium. All rights reserved.
The contents of this file are subject to the terms of ei... | true |
37cb49c93d6fab2ef5c3946ed31041d0515fa5f5 | Java | krishna-vaibhav/day9-data | /eclipse projects/day9_hibernate_sess_api/src/test_sess_api/TestGet.java | UTF-8 | 849 | 2.3125 | 2 | [] | no_license | package test_sess_api;
import static utils.HibernateUtils.*;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import pojos.Customer;
import pojos.CustomerType;
public class TestGet {
public static void m... | true |
ac01560e10c83b4e3b2504e330a5b619f69d4100 | Java | Samar14/Extentrepotrs | /src/test/java/utilities/ExtentManager.java | UTF-8 | 1,569 | 2.3125 | 2 | [] | no_license | package utilities;
import java.time.LocalDateTime;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.reporter.ExtentHtmlReporter;
public class ExtentManager {
private static ExtentReports extent;
private static ExtentTest test;
... | true |
8cf0abaa14b2e63854b23cf68db168293367abd2 | Java | hemnathhem/Java--Assighnments | /Coders.java | UTF-8 | 889 | 3.453125 | 3 | [] | no_license | package Assighnment;
import java.security.DomainCombiner;
import java.util.Scanner;
//Day 1 Assighnment
public class Coders {
public static void main(String[] args) {
int Roll;
String Name;
float marks;
Scanner sc = new Scanner(System.in);
System.out.print("Enter the roll number");
... | true |
65dde68d3ab7aedd7265fc9965fb2e3faf853d31 | Java | DillonEnge/Project2 | /DirectoryPanel.java | UTF-8 | 507 | 2.4375 | 2 | [] | no_license | import javax.swing.*;
import java.awt.*;
/**
* Created by dillonenge on 3/11/17.
*/
public class DirectoryPanel extends JPanel{
public DirectoryPanel(){
JTreePanel.jPan.setBackground(Color.white);
JTreePanel.jPan.setLayout(new FlowLayout(FlowLayout.LEFT));
setPreferredSize(new Dimension(... | true |
06314c6db676ec9becee4ecaec5219e1863c055d | Java | YouCannotEat/Quick-Search | /everything/src/main/java/com/sym/core/scan/FileScanImpl.java | UTF-8 | 1,339 | 2.625 | 3 | [] | no_license | package com.sym.core.scan;
import com.sym.config.EverythingPlusConfig;
import com.sym.core.interceptor.FileInterceptor;
import java.io.File;
import java.util.LinkedList;
public class FileScanImpl implements com.sym.core.scan.FileScan {
private EverythingPlusConfig config = EverythingPlusConfig.getInstan... | true |
99c68d6234753c2c0487044b918f8baceafa2679 | Java | force10night/wikidata | /wikidata/src/test/java/scibite_tech_test/wikidata/transformer/DobToAgeInYrsTest.java | UTF-8 | 628 | 2.453125 | 2 | [] | no_license | package scibite_tech_test.wikidata.transformer;
import static org.junit.jupiter.api.Assertions.*;
import org.joda.time.LocalDateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.junit.jupiter.api.Test;
class DobToAgeInYrsTest {
@Test
void testA... | true |
3b245119ce8adb42a3b191190e3cbcf847350e95 | Java | leandro-abatista/curso-jsf-primefaces | /src/br/com/project/geral/controller/EntidadeController.java | ISO-8859-1 | 1,945 | 2.296875 | 2 | [] | no_license | package br.com.project.geral.controller;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.hibernate.HibernateException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import br.com.framework.implementacao.crud.Impl... | true |
2a90ef3ff86dd03fa9e835ab9dd3c37d2396c97f | Java | dlewinski/TCOM-OP-1078 | /server/store-crm/src/com/pvctecnocom/store/crm/mvp/model/bo/Categoria.java | UTF-8 | 2,596 | 2.078125 | 2 | [] | no_license | package com.pvctecnocom.store.crm.mvp.model.bo;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "categoria")
public class Categoria extends GenericBO
{
@Id
@Column(name="id_categoria")
private String idCategori... | true |
091707472515ce93ac5050958dea89700227de78 | Java | whitewolfkings/kaidishop | /src/cn/mmk/service/book/impl/GeneratedOrderidServiceBean.java | GB18030 | 1,083 | 2.109375 | 2 | [] | no_license | package cn.mmk.service.book.impl;
import org.springframework.stereotype.Service;
import cn.mmk.bean.book.GeneratedOrderid;
import cn.mmk.service.base.DaoSupport;
import cn.mmk.service.book.GeneratedOrderidService;
@Service
public class GeneratedOrderidServiceBean extends DaoSupport<GeneratedOrderid> implements Gener... | true |
3b38efcf1af81b308bfd4c3378a0612a0e122d0e | Java | WangDongDong1234/idea-javabased | /src/lession/interview2/CallableDemo.java | UTF-8 | 1,252 | 3.4375 | 3 | [] | no_license | package lession.interview2;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
import java.util.concurrent.TimeUnit;
/**
* @program: javabased
* @description: ${description}
* @author: Mr.Wang
* @create: 2019-07-11 13:47
**/
class MyThrea... | true |
ec11e5a0dcd24bf5f91dfb84dbabb25813fc8d46 | Java | MattIrv/rpi-lights | /WebAndMobile/app/src/main/java/com/example/zanemayberry/webandmobile/GameView.java | UTF-8 | 6,323 | 2.390625 | 2 | [] | no_license | package com.example.zanemayberry.webandmobile;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
impor... | true |
f74227f8e511e1b44c59fc5b9f9e350718bc0ae6 | Java | dlwn-scribble/pay-coupon | /pay-coupon-app/src/main/java/com/juyoung/paycouponapp/config/BatchConfig.java | UTF-8 | 2,100 | 2.140625 | 2 | [] | no_license | package com.juyoung.paycouponapp.config;
import com.juyoung.paycouponapp.CouponItemReader;
import com.juyoung.paycouponapp.CouponItemWriter;
import com.juyoung.paycouponapp.model.entity.Coupon;
import com.juyoung.paycouponapp.repository.CouponRepository;
import com.juyoung.paycouponapp.repository.UserRepository;
impor... | true |
c684095975d8bdd28e4d8ee5dcdecc308880fccb | Java | tranphuquy19/EclipseWorkspace | /Translate/src/main/java/EasyTranslate/Speech.java | UTF-8 | 1,393 | 2.75 | 3 | [] | no_license | package EasyTranslate;
import java.io.IOException;
import com.darkprograms.speech.synthesiser.SynthesiserV2;
import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.advanced.AdvancedPlayer;
/**
* This is where all begins .
*
* @author GOXR3PLUS
*
*/
public class Speech extends ... | true |
6cd3d9e86d24ebf4ef7c622b92ef8448e1c7b329 | Java | ivankhokhlov/barbershop | /src/main/java/ru/omsu/imit/khokhlov/barbershop/dto/request/BoxForDayScheduleRequest.java | UTF-8 | 1,152 | 2.546875 | 3 | [] | no_license | package ru.omsu.imit.khokhlov.barbershop.dto.request;
import javax.validation.constraints.NotNull;
import java.util.Objects;
public class BoxForDayScheduleRequest {
@NotNull
private DayScheduleRequest daySchedule;
public BoxForDayScheduleRequest() {
}
public BoxForDayScheduleRequest(DayScheduleR... | true |
cc3a2725a7f7881fe237584773ddd912e36604db | Java | RonKG/Core-Java-Concepts | /Others/PowTable.java | UTF-8 | 556 | 3.609375 | 4 | [] | no_license | package solutions;
public class PowTable {
public static void main(String[] args) {
int num = 0;
int power = 0;
int product = 0;
for (power = 1; power <=8; power = power + 1)
{
System.out.print(power + "\t");
}
System.out.println();
for (num = 1; num <= 10; nu... | true |
a9497fd5067eb2694e95f1b93fcddb0a8f8853c8 | Java | kunpark168/TestHome | /app/src/main/java/com/anhtam/futurify_test/detail_product/DetailProductActivity.java | UTF-8 | 1,760 | 2.28125 | 2 | [] | no_license | package com.anhtam.futurify_test.detail_product;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import com.anhtam.futurify_test.R;
import com.anhtam.futurify_test.base.BaseActivity;
import com.anhtam.futurify_test.customview.RoundRectCornerImageView;
import com.anhtam.futur... | true |
cefdde234109de5655fb4c5cd685b49fed836508 | Java | Immestrella/ComputerScienceLearning | /Java/LearningProject/TestInBook/j2se/src/character/IStringBuffer.java | UTF-8 | 56 | 1.5625 | 2 | [] | no_license | package character;
public interface IStringBuffer {
}
| true |
c279b87994b10ccb43d75f864e4b12bf1151cd73 | Java | SarasXu/saras-maven-archetype | /__artifactId__-common/src/main/java/com/saras/archetype/base/Base.java | UTF-8 | 1,461 | 2.546875 | 3 | [] | no_license | package com.saras.archetype.base;
import com.saras.archetype.core.exception.BizErrorException;
import com.saras.archetype.enums.AppValidatorFactory;
import javax.validation.ConstraintViolation;
import java.io.Serializable;
import java.util.Set;
/**
* message: 所有实体的基类,自带toString方法,子类不用再去实现
* saras_xu@163.com 2017... | true |
8f30a2ca7073b64555cb9d5e7ca35af366fa35ed | Java | weriky007/LotoMania | /src/ParImpar.java | UTF-8 | 5,473 | 3.4375 | 3 | [] | no_license | public class ParImpar {
//-------------------------------------------------------------------------------------------------------------
//COLUNA 1
public void converteParColuna1() {
String numeros = "";
String[] coluna1 = {"01", "06", "11", "16", "21"};
int[] intColuna1 = new int[co... | true |
694381cea730cf1bfd2c5ccea50ca1e3fc191c75 | Java | javaProjectLeLeaf/JavaProjectleaf | /src/main/java/com/rzspider/implementspider/taobaojud/utils/TBJLandCommonUtils.java | UTF-8 | 3,253 | 2.59375 | 3 | [] | no_license | package com.rzspider.implementspider.taobaojud.utils;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.rzspider.implementspider.commonutils.JavaCommonSpiderUtils;
impo... | true |
accc3f6e4f28eb51997710822500249871679145 | Java | steven1213/leet-code | /src/main/java/com/steven/leetcode/easy/ReverseLinkedList01.java | UTF-8 | 1,080 | 2.90625 | 3 | [] | no_license | package com.steven.leetcode.easy;
import sun.util.resources.cldr.ebu.CurrencyNames_ebu;
/**
* Copyright © 2018 ,www.oneiotworld.com All Rights Reserved.
*
* @author steven.
* @since JDK 1.8 CreateTime: 2018-10-27 17:27:23.
*/
public class ReverseLinkedList01 {
public static void main(String[] args) {
List... | true |
b73f482da420bcf2acb2e31bbacee1354cf366fb | Java | programming-practices/java-core | /src/main/java/oop/others/klassu_vnytri_interfeisov/vprava_18_10/Main.java | UTF-8 | 221 | 1.671875 | 2 | [] | no_license | package Examples.OOP.Others.klassu_vnytri_interfeisov.vprava_18_10;
public class Main {
public static void main(String[] args) {
IntrfaceA.ClassIntrfase classIntrfase = new IntrfaceA.ClassIntrfase();
}
}
| true |
90b3d594f1e9815f60f5b0ff5b76f61f2da00220 | Java | arjunsatyapal/glight | /light/src/main/java/com/google/light/server/dto/pojo/typewrapper/longwrapper/JobId.java | UTF-8 | 4,186 | 2.015625 | 2 | [] | no_license | /*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | true |
b7a47951da9c994090fbfb8c98a5bdda00f7e06b | Java | cs160-berkeley/prog-02-represent-dj168 | /App/YouVote/mobile/src/main/java/com/example/derrickhu/youvote/MainActivity.java | UTF-8 | 10,890 | 1.851563 | 2 | [] | no_license | package com.example.derrickhu.youvote;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.location.Address;
import android.location.Geocoder;
import android.location.Location;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.... | true |
b7e3e5d9e10ab84d5dd7899587567db90e699ee1 | Java | danielsedoff/college-schedule | /src/main/java/com/danielsedoff/college/schedule/dto/GroupDTO.java | UTF-8 | 859 | 2.4375 | 2 | [] | no_license | package com.danielsedoff.college.schedule.dto;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;
public class GroupDTO {
String mode;
@Min(-1)
int id;
@Size(min = 2, max = 30)
String name;
@Size(min = 2, max = 30)
String description;
pu... | true |
b65c104a9af22849b53aa981ecedd06e8c8a7460 | Java | JiangKunZhang/Java | /MyLinkedList/src/MyLinkedListTest.java | UTF-8 | 1,217 | 3.0625 | 3 | [] | no_license |
/**
* @author PineappleSnow
* @version 1.0
* @date 2020/4/24 14:12
*/
public class MyLinkedListTest {
public static void main(String[] args) {
MyLinkedList myLinkedList = new MyLinkedList();
//测试头插
myLinkedList.addFirst(1);
myLinkedList.addFirst(2);
myLinkedList.addFirst... | true |
31df584c6d415bafb6388f31365c7fcedf8b2fc1 | Java | majak96/mbrs-project | /example/mbrs-project-example-app/src/main/java/mbrs/project/controllers/PharmacistController.java | UTF-8 | 2,298 | 2.359375 | 2 | [
"MIT"
] | permissive | package mbrs.project.controllers;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.ann... | true |
64756c11eb432ddaa13135b211b6d2698fc42d27 | Java | jackbinge/mls | /mysqldataservice/src/main/java/com/wiseq/cn/ykAi/service/serviceimpl/TPrivilegeServiceImpl.java | UTF-8 | 1,088 | 1.984375 | 2 | [] | no_license | package com.wiseq.cn.ykAi.service.serviceimpl;
import com.wiseq.cn.commons.entity.Result;
import com.wiseq.cn.commons.utils.ResultUtils;
import com.wiseq.cn.entity.ykAi.TPrivilege;
import com.wiseq.cn.ykAi.dao.TPrivilegeDao;
import com.wiseq.cn.ykAi.service.TPrivilegeService;
import org.springframework.beans.factory.a... | true |
a5a6c6bbdd9f030cde150238e7e139d23257ea73 | Java | Ahlid/P2P-NODE | /src/main/java/Peer/Events/OnConnect.java | UTF-8 | 303 | 2.546875 | 3 | [] | no_license | package Peer.Events;
import Peer.SocketIO;
public class OnConnect extends Event {
public OnConnect(SocketIO socketIO) {
super(socketIO);
}
@Override
public void call(Object... args) {
System.out.println("Socket Connected");
this.socketIO.connected();
}
}
| true |
a7c68a12fc5478d2dacc26df4fdb0d2e7492d367 | Java | raynoldng/AIApplications | /Ant Algorithms/src/tsp/Permutate.java | UTF-8 | 1,242 | 3.015625 | 3 | [] | no_license | package tsp;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class Permutate {
float distance[][];
public double solveTSP(float distance[][]) {
this.distance = distance;
List<Integer> cities = new ArrayList<>();
for(int i = ... | true |
c04b591253e410a34b0188f5f8a100733cf07fd4 | Java | wangxh5/IFeng-Dev | /MRDMail/src/getExcellentNum/ReportThrowUtil.java | UTF-8 | 3,688 | 2.578125 | 3 | [] | no_license | package getExcellentNum;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Set;
import redis.clients.jedis.Jedis;
/**
* 上报丢弃原因至汇总redis
*
* <PRE>
* 作用 :
*
* 使用 : 丢弃汇报redis:
* 10.32.24.86:6379
* db2 ---> 丢弃文章记录,保存set结构: key: yyyyMMdd_mainReason_detailedReason_source value: id ... | true |
ef8b93cf68cd6380c834b6a48d15797a3ba3e359 | Java | PranjalDesai/GetFit_UdacityCapstone | /app/src/main/java/com/pranjaldesai/getfit/MainActivity.java | UTF-8 | 6,722 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | package com.pranjaldesai.getfit;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.design.widget.Sna... | true |
7546fddf83c0a60296ca47adcb9177c1be17abbc | Java | cckmit/bgy-transport | /src/main/java/com/sunseaiot/deliver/util/Result.java | UTF-8 | 2,275 | 2.65625 | 3 | [] | no_license | /*
* Copyright © 2019 SunseaIoT
*/
package com.sunseaiot.deliver.util;
import com.sunseaiot.deliver.exception.DeliverError;
import lombok.Data;
/**
* 接口返回参数封装类
*
* @Author: wanglong
* @Date: 2020/1/10
**/
@Data
public class Result<T> {
// error_code 状态值:0 极为成功,其他数值代表失败
private Integer code;
// er... | true |
15280b70b2240285b683c0c47ee75f682d85a511 | Java | FelipeCorso/SaveMoney | /SaveMoneyUtils/src/br/furb/bcc/ps2/utils/db/tabelas/Comentario.java | UTF-8 | 527 | 2.125 | 2 | [] | no_license | package br.furb.bcc.ps2.utils.db.tabelas;
public class Comentario {
private int id;
private String data;
private String usuario;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getData() {
return data;
}
pub... | true |
6feabe552efaa1037242a17963b90f092376936c | Java | Deament/PlatFormService | /platformserv-common/platformserv-common-fastdfs/src/main/java/cn/wjh/platform/common/fastdfs/attentment/FastDFSAttachmentService.java | UTF-8 | 1,922 | 2.265625 | 2 | [] | no_license | package cn.wjh.platform.common.fastdfs.attentment;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
... | true |
66642de2a4e017ddf21282add2b702e895f3d4f3 | Java | github188/interface | /src/main/java/com/megaeyes/persistence/ibatis/model/TempResourcesExample.java | UTF-8 | 28,436 | 2.390625 | 2 | [] | no_license | package com.megaeyes.persistence.ibatis.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class TempResourcesExample {
/**
* This field was generated by Abator for iBATIS.
* This field corresponds to the database table TEMP_RESOURCES
*
... | true |
3d1f5dc2bacc66c3e6df4bac16826c315713ade6 | Java | AdamPiech/Android_Calc | /app/src/main/java/com/calculator/adampiech/calculator/operations/Addition.java | UTF-8 | 245 | 2.421875 | 2 | [] | no_license | package com.calculator.adampiech.calculator.operations;
/**
* Created by Adam Piech on 2016-03-14.
*/
public class Addition implements Operation {
@Override
public double count(double... args) {
return args[0] + args[1];
}
}
| true |
50a6ddbc51c86c0a7357e0cd3d985ac6bd073fa4 | Java | pcan/panzers-4d-editor-test | /src/main/java/it/panzers/scene/main/SceneSerializer.java | UTF-8 | 4,139 | 2.578125 | 3 | [
"MIT"
] | permissive | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.panzers.scene.main;
import it.panzers.scene.io.exceptions.EditorIOException;
import it.panzers.scene.io.structures.AbstractStructure;
import it.panzers.scene.io.util.FileConstants;
import static it.panzers.sc... | true |
c4a4d44e54372109f303f2adba959b8c59fd2f47 | Java | arpanaK123/SPRING_PROGRAMS | /SpringRestExample/src/main/java/com/bridgeit/controller/AccountController.java | UTF-8 | 716 | 2.3125 | 2 | [] | no_license | package com.bridgeit.controller;
import java.math.BigDecimal;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.bridgeit... | true |
6d30761bb783d258baa3923df4890005dfb3d471 | Java | Eslamelreedy/E-Learning | /app/src/main/java/com/example/e_learning/ui/fragments/Courses/CourseContent.java | UTF-8 | 3,189 | 2.328125 | 2 | [] | no_license | package com.example.e_learning.ui.fragments.Courses;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import andro... | true |
4873f06136cac7380922281c460f2ad47f52b4eb | Java | TelluIoT/ThingML | /compilers/thingmltools/src/main/java/org/thingml/monitor/ByteHelper.java | UTF-8 | 12,085 | 1.65625 | 2 | [
"Apache-2.0",
"MIT",
"EPL-1.0"
] | permissive | /**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distrib... | true |
3e427af5c32a462b054e986add383f8fcfe697f5 | Java | AndryTry/Java-spring-MVC | /src/main/java/co/id/spring/model/AdditionalColumnModel.java | UTF-8 | 505 | 2.1875 | 2 | [] | no_license | package co.id.spring.model;
public class AdditionalColumnModel {
private int id;
private String namaKolom;
private String deskripsi;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNamaKolom() {
return namaKolom;
}
public void setNamaKolom(String nam... | true |
34c27ded66a8c7801988d719eff2be0b56063a49 | Java | lazy-opensource/lazy-sentinel | /lazy-sentinel-api/src/main/java/com/lazy/sentinel/api/ITokenCycleRuleService.java | UTF-8 | 551 | 1.976563 | 2 | [] | no_license | package com.lazy.sentinel.api;
import com.lazy.cheetah.core.service.IBaseService;
import com.lazy.sentinel.entity.TTokenCycleRuleEntity;
/**
* @author laizhiyuan
* @date 2018/1/5.
* <p>token生命周期规则服务层接口</p>
*/
public interface ITokenCycleRuleService extends IBaseService<TTokenCycleRuleEntity, Long> {
/**
... | true |
95d34e2591aba92e621ca79aa72e5b0e9a839c3b | Java | vernonstinebaker/FDD.Tools | /src/main/java/net/sourceforge/fddtools/persistence/FDDIXMLFileReader.java | UTF-8 | 3,914 | 1.609375 | 2 | [] | no_license | /* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... | true |
1bb919e4830b3774252e2b360affbab2108caf33 | Java | joaoflores99/AcademicProjects-ISEP- | /ISEP/Year2/1Semestre/ESINF/PROJETOS_ESINF/Projeto2_ESINF_1171409_1161263/Projeto2_Esinf/src/main/java/com/mycompany/projeto2_esinf/Estacao.java | UTF-8 | 3,241 | 3.15625 | 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 com.mycompany.projeto2_esinf;
/**
*
* @author morei
*/
import java.util.ArrayList;
import java.util.List;
import java.util.... | true |
ac64181bfa1ac0ad536869d1ade4a6cc1dd31209 | Java | kabirmajmudar/photoalbum | /app/src/main/java/com/example/project2/ButtonManager.java | UTF-8 | 102 | 1.796875 | 2 | [] | no_license | package com.example.project2;
public interface ButtonManager {
void statusChange(String msg);
}
| true |
5677da968c7862504e2a7c00dfdcb549c4b3bfe6 | Java | Oleksii-kho/project3 | /src/blinov/chapter1/var2/Task2.java | UTF-8 | 855 | 3.5625 | 4 | [] | no_license | package blinov.chapter1.var2;
// Вывести на консоль наибольшее и наименьшее число
public class Task2 {
public static void main(String[] args) {
DataInput input = new DataInput();
String [] areaString = input.enterQuantityAndString();
int [] area = input.doStringToInt(areaString);
i... | true |
014d56201526bd4f0be1de4230131daf320199c8 | Java | christianagiap/epl362webServiceUI | /src/receptionist/ObjectFactory.java | UTF-8 | 39,633 | 1.546875 | 2 | [] | no_license |
package receptionist;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generat... | true |
4eedb573adea4cd10b195c436c86387e545cc025 | Java | adiget/venue_finder | /app/src/main/java/com/example/annada/eventfinder/model/SuggestedBounds.java | UTF-8 | 569 | 1.984375 | 2 | [] | no_license | package com.example.annada.eventfinder.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by : annada
* Date : 21/10/2017.
*/
public class SuggestedBounds {
@SerializedName("ne")
@Expose
private Ne_ ne;
@SerializedName("sw")
@Expo... | true |
10df2eb20c5f684891968231f8ca1cec8f30c53e | Java | maxhaice/sensitive-field | /sensitivefield-back/src/main/java/com/hub/sensitivefield/DTO/newDTO/newAudioEventDTO.java | UTF-8 | 1,564 | 2.0625 | 2 | [] | no_license | package com.hub.sensitivefield.DTO.newDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.ToString;
import java.time.LocalDateTime;
public class newAudioEventDTO {
private int sensor_id;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
priva... | true |
5492c8f04366c0851100bacf4e48286ad4925f0b | Java | 1102566507/pattern-all | /src/main/java/com/wing/proxy/dynamicproxy/wingproxy/WingProxyTest.java | UTF-8 | 511 | 2.5625 | 3 | [] | no_license | package com.wing.proxy.dynamicproxy.wingproxy;
import com.wing.proxy.dynamicproxy.jdkproxy.Girl;
import com.wing.proxy.staticproxy.Person;
public class WingProxyTest {
public static void main(String[] args) {
try {
//JDK动态代理的实现原理
Person obj = (Person) new WingMeipo().getInstance(... | true |
d70cdabd864e0786eae3db256d97c72763f263c2 | Java | sandra199311/msc-skeleton | /msc-platform/msc-auth-server/src/main/java/com/sandra/msc/authserver/controller/HelloController.java | UTF-8 | 513 | 1.992188 | 2 | [] | no_license | package com.sandra.msc.authserver.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloController {
@Value("${server.port}")
String ser... | true |
5209ed3e2e48e9e4e6d7a50d4093c214086181a2 | Java | jsonArmando/hiring | /src/main/java/com/hiring/dev/app/models/entity/Administrator.java | UTF-8 | 4,642 | 2.28125 | 2 | [] | no_license | package com.hiring.dev.app.models.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.PrePersist;
... | true |
78840efb408c9de0017c5543bfa48d98ed06fb64 | Java | kartik786/kirankumarhelp | /EMSSYSTEM/src/com/flp/ems/domain/Department.java | UTF-8 | 761 | 2.46875 | 2 | [] | no_license | package com.flp.ems.domain;
import java.util.Scanner;
public class Department {
String Departmenid,departmentRandom;
public String getDepartmenid() {
return Departmenid;
}
public void setDepartmenid(String departmenid) {
Departmenid = departmenid;
}
public String getDepartmentRandom() {
return departmentRandom;
... | true |
6ba4791f49e33cfa6737166486e624b3b8300362 | Java | daniel199410/designPatterns | /src/creational/singleton/example2/after/implementations/YMLConverter.java | UTF-8 | 321 | 2.484375 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package creational.singleton.example2.after.implementations;
import creational.singleton.example2.after.Instance;
import creational.singleton.example2.after.director.Converter;
public class YMLConverter implements Converter {
@Override
public String serialize(Instance instance) {
return "meh";
}
}... | true |
92077bb54eeb9da4d9aecfb3d433f311b98e1cdb | Java | aurora-java/aurora | /aurora/database/DataBaseExceptionDescriptor.java | UTF-8 | 3,093 | 2.046875 | 2 | [] | no_license | /*
* Project: Aurora
*
* Copyright(c) 2009 www.hand-china.com
* All rights reserved.
*/
package aurora.database;
import java.util.HashMap;
import java.util.Map;
import uncertain.composite.CompositeMap;
import uncertain.core.UncertainEngine;
import aurora.database.service.BusinessModelService;
impo... | true |
20f93d160210e89b3418e667b802fb1d23674385 | Java | tuanvuu/Springboot_websales_2020 | /src/main/java/com/laptrinhoop/interceptor/SecurityInterceptor.java | UTF-8 | 1,626 | 2.21875 | 2 | [] | no_license | package com.laptrinhoop.interceptor;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterc... | true |
b2b50b321e1e335e0c9690078d8e8598b067d1c9 | Java | zhaojinbo/Leetcode | /src/Solution_572.java | UTF-8 | 686 | 3.296875 | 3 | [] | no_license | /**
* 8ms,97.05%
*/
public class Solution_572 {
public boolean isSubtree(TreeNode s, TreeNode t) {
if (s == null || t == null) {
return false;
}
if (isSame(s, t))
return true;
return isSubtree(s.left, t) || isSubtree(s.right, t);
}
/**
* 以p和t... | true |
8603399e200c2ed2701ee5a571f5862f089db762 | Java | ssiedu/pro11OneToOne | /src/main/java/com/ssi/Stud.java | UTF-8 | 1,003 | 2.421875 | 2 | [] | no_license | package com.ssi;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
@Entity
public class Stud {
@Id
private int rno;
private String sname;
@OneToOne(fetch=FetchType.LAZY)
private Mentor mentor;
public int getRno() {
... | true |
faf86ba705829ebc822df338907c228a82a0d434 | Java | fsd-final-assessment/user-service | /src/main/java/com/ibm/service/impl/UserServiceImpl.java | UTF-8 | 1,957 | 2.359375 | 2 | [] | no_license | package com.ibm.service.impl;
import java.util.List;
import org.modelmapper.ModelMapper;
import org.springframework.stereotype.Service;
import com.ibm.dto.MentorSkillDto;
import com.ibm.dto.UserDto;
import com.ibm.entity.MentorSkill;
import com.ibm.entity.User;
import com.ibm.repository.MentorSkillRepository;
import... | true |
b52e66e1684a37d47cdfe22f8eadbe37dca2c622 | Java | jailbreakhq/JailbreakApi | /jailbreak-service/src/main/java/org/jailbreak/service/base/events/FacebookEventsManagerImpl.java | UTF-8 | 1,125 | 2.296875 | 2 | [
"MIT"
] | permissive | package org.jailbreak.service.base.events;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
import org.jailbreak.api.representations.Representations.Facebook;
import org.jailbreak.service.core.events.FacebookEventsManager;
import org.jailbreak.service.db.dao.events.FacebookEventsDAO;
import com... | true |
24d7b99efd7fed3fd3711a4f42ff02dbebd23abc | Java | aNNiMON/Own-Programming-Language-Tutorial | /src/main/java/com/annimon/ownlang/parser/ast/Visitor.java | UTF-8 | 1,312 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.annimon.ownlang.parser.ast;
/**
*
* @author aNNiMON
*/
public interface Visitor {
void visit(ArrayExpression s);
void visit(AssignmentExpression s);
void visit(BinaryExpression s);
void visit(BlockStatement s);
void visit(BreakStatement s);
void visit(ClassDeclarationStateme... | true |
d29747518053924511acf108c1cdbdb11135fb50 | Java | SFPVUCB/Ayuda-Pilar-Daniel-Progra2- | /Practica DanielPilar/src/Principal/Ejercicio1.java | UTF-8 | 2,347 | 3.78125 | 4 | [] | no_license | package Principal;
import java.util.ArrayList;
import java.util.Random;
import java.util.Scanner;
public class Ejercicio1
{
public static void main(String[] args)
{
ArrayList<Integer> numeros = new ArrayList<Integer>();
ArrayList<Integer> numerosclon = new ArrayList<Integer>();
Random r = new Random();
... | true |
c926341ab468e46fd22c2265409b66400a6aaefa | Java | circleci-book/java-sample | /src/test/java/com/circleci/demojavaspring/TenSecondTest.java | UTF-8 | 202 | 1.773438 | 2 | [
"MIT"
] | permissive | package com.circleci.demojavaspring;
import org.junit.Test;
public class TenSecondTest {
@Test
public void tenSecondTest() throws InterruptedException {
Thread.sleep(10000);
}
}
| true |
e1cf9572fda285dd620799152a2c7cf470d6424a | Java | yiwanzhutourou/learning | /rabbitmq-basics/producer/src/main/java/com/youdushufang/rabbitmq/producer/TaskSender.java | UTF-8 | 1,959 | 2.96875 | 3 | [] | no_license | package com.youdushufang.rabbitmq.producer;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.MessageProperties;
import java.io.IOException;
import java.util.Random;
import java.util.concurrent.TimeoutException;
class T... | true |
445c2f0dd58ccccc03ceaae007e65666f8c41a1e | Java | custom-koncept-ltd/split-proc | /src/test/java/koncept/sp/stage/WaitForExecutionSplitStage.java | UTF-8 | 818 | 2.578125 | 3 | [
"MIT"
] | permissive | package koncept.sp.stage;
import java.util.concurrent.atomic.AtomicBoolean;
import koncept.sp.ProcData;
import koncept.sp.pipe.state.ProcState;
/**
* This class is designed for an external observer to wait for the stage to execute
* @author koncept
*
*/
public class WaitForExecutionSplitStage impleme... | true |