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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
30d748a3948efab722aa09379804d55c37d421f1 | Java | broadbear/nodeclipse-1 | /org.nodeclipse.vertx/src/org/nodeclipse/vertx/preferences/VertxPreferencePage.java | UTF-8 | 1,288 | 2.046875 | 2 | [] | no_license | package org.nodeclipse.vertx.preferences;
import org.eclipse.jface.preference.DirectoryFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.nodeclipse.vertx.Activator;
import org.nodeclipse.vertx.VertxCo... | true |
0d55bde51d843e586da7c4dc1b30e0624dfb857d | Java | TSZWL/Algorithm | /src/leetcode/Solutionb521.java | UTF-8 | 223 | 2.21875 | 2 | [] | no_license | package leetcode;
public class Solutionb521 {
public static void main(String args[]){
}
public int findLUSlength(String a, String b) {
if (a.equals(b)) return -1;
else return Math.max(a.length(), b.length());
}
} | true |
016717673fdd818a51b98039e49c7070e5b1f997 | Java | fmalasquez/Pokedex | /src/main/java/com/example/Pokedex1/Servicio/Servicio.java | UTF-8 | 922 | 2.25 | 2 | [] | no_license | package com.example.Pokedex1.Servicio;
import com.example.Pokedex1.Modelo.Pokemon;
import com.example.Pokedex1.dao.DAO;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframe... | true |
ea00c5e3dd5c1b3f3d4b4b07fbfa47a8387ffbae | Java | uPortal-Project/resource-server | /resource-server-api/src/main/java/org/jasig/resourceserver/aggr/ResourcesDao.java | UTF-8 | 1,966 | 1.75 | 2 | [
"CC-BY-3.0",
"BSD-3-Clause",
"CDDL-1.1",
"EPL-1.0",
"GPL-2.0-only",
"LGPL-2.0-or-later",
"Classpath-exception-2.0",
"Apache-2.0",
"CDDL-1.0",
"MIT",
"MPL-1.1",
"EPL-2.0"
] | permissive | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | true |
0290e70b55e44c4798073da335b8d2ac0319bce3 | Java | LiangYing22/InnupLogUtil | /LogUtil/src/main/java/com/innup/logutil/MessageUtil.java | UTF-8 | 286 | 2.03125 | 2 | [] | no_license | package com.innup.logutil;
import android.text.TextUtils;
import java.util.logging.LogManager;
public class MessageUtil {
public static String getSimpleClassName(String name) {
int lastIndex = name.lastIndexOf(".");
return name.substring(lastIndex + 1);
}
}
| true |
7ba7da930877baec7a3f19f8debff1f8dcc4de51 | Java | DTStack/Taier | /taier-datasource/taier-datasource-plugin/taier-datasource-plugin-hdfs/src/main/java/com/dtstack/taier/datasource/plugin/hdfs/reader/HdfsOrcReader.java | UTF-8 | 4,233 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
d355b7b8eb8b2ec0e88b6b49aaa4a57271735c5d | Java | crotwell/recFunc | /src/main/java/edu/sc/seis/receiverFunction/web/RFStationEvent.java | UTF-8 | 5,371 | 1.695313 | 2 | [] | no_license | package edu.sc.seis.receiverFunction.web;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.velocity.VelocityContext;
import edu.iris.Fissures.event.OriginImpl;
import edu.iris.Fissures.model.TimeI... | true |
0fecd33641a6dacc542edacb40304e5949f3616a | Java | Jason1989/jeestudio | /jeeStudio/src/com/zxt/compplatform/formula/service/FurmulServiceInterface.java | UTF-8 | 252 | 1.679688 | 2 | [] | no_license | package com.zxt.compplatform.formula.service;
import java.util.List;
import com.zxt.compplatform.formula.entity.Formula;
public interface FurmulServiceInterface {
public Object execute(Formula formula);
public Object execute(List formulas);
}
| true |
04e25139fa377f3923c361e239745f0cad1ccda3 | Java | xiaolongonly/MuPdfForAndroid | /library/src/main/java/com/artifex/mupdflib/MuPDFPageAdapter.java | UTF-8 | 2,582 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.artifex.mupdflib;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Point;
import android.graphics.PointF;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
public class MuPDFPageAdapter extend... | true |
6bb875fcac8d1012c7cea05be0af6502c27784b3 | Java | antfarmer/easyjce | /src/test/java/org/antfarmer/ejce/test/db/AbstractBean.java | UTF-8 | 1,627 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 Ameer Antar.
*
* 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 t... | true |
5185ebeb019ef16f3592e70dd9df1dfa18ec9c9a | Java | drog/spring-boot-starter | /src/main/java/org/matrix/zero/config/filter/FilterConfig.java | UTF-8 | 927 | 1.945313 | 2 | [] | no_license | package org.matrix.zero.config.filter;
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.servlet.F... | true |
e6d777b573728c9dc669eb00fdaf3e014168e571 | Java | AshutoshSundresh/OnePlusSettings-Java | /sources/com/oneplus/settings/OPQuitConfirmFragment.java | UTF-8 | 3,061 | 1.929688 | 2 | [] | no_license | package com.oneplus.settings;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import androidx.appcompat.app.AlertDialog;
import com.android.settings.C0017R$string;
import com.android.settings.dashboard.DashboardFragment;
public abstract class O... | true |
a9db27934f6a7de36253cdee29459533593ea3d1 | Java | raenjamio/valtech-testdrive | /src/test/java/com/raenjamio/valtech/testdrive/services/UserServiceImplTest.java | UTF-8 | 5,159 | 2.15625 | 2 | [] | no_license | package com.raenjamio.valtech.testdrive.services;
import static org.junit.Assert.assertEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyLong;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
... | true |
1200ab5d15d0b6cce7637d44f29797d5b37527a4 | Java | leeduk0/TRiBot-Scripts | /src/scripts/amylasetrader/tasks/TradeMule.java | UTF-8 | 2,739 | 2.4375 | 2 | [] | no_license | package scripts.amylasetrader.tasks;
import org.tribot.api.Timing;
import org.tribot.api.types.generic.Condition;
import org.tribot.api2007.Inventory;
import org.tribot.api2007.Login;
import org.tribot.api2007.Players;
import org.tribot.api2007.Trading;
import org.tribot.api2007.types.RSPlayer;
import scripts.amylaset... | true |
e1b5c752bf6f94b8fd21e699f3623493182171fc | Java | eugenemoro/JavaEE_store | /src/main/java/ru/morozov/onlinestore/controller/ProductEditionController.java | UTF-8 | 846 | 2.09375 | 2 | [] | no_license | package ru.morozov.onlinestore.controller;
import ru.morozov.onlinestore.dao.ProductDAO;
import ru.morozov.onlinestore.entity.Product;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.inject.Inject;
@ViewScoped
@ManagedBean
public class Produ... | true |
3d8c38e8d84fbb6af3cda7c40f29cc02ef96dd89 | Java | shayhatsor/zookeeper | /src/java/main/org/apache/zookeeper/server/quorum/CommitProcessor.java | UTF-8 | 7,526 | 2.109375 | 2 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LGPL-2.1-only",
"CC-PDDC",
"BSD-2-Clause"
] | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | true |
602237f863251a3845ee72b92f2ee3ac3c10959f | Java | axstavo08/MyPetsFriend | /app/src/main/java/utp/edu/pe/mypetsfriend/services/NewsService.java | UTF-8 | 632 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | package utp.edu.pe.mypetsfriend.services;
/**
* Created by Marco on 17/11/2016.
*/
public class NewsService {
public static String SERVER = "http://10:35:54:195:8080/";
public static String USERS_URL = "http://10:35:54:195:8080/WsPetsFriend/webresources/users/";
public static String PERSONS_URL = SERVE... | true |
5242fc8ad724a32cda410e09be26e64f22ca36c1 | Java | fray7776/variable | /Variable/src/variable/OperatorExample2.java | UTF-8 | 742 | 4.3125 | 4 | [] | no_license | package variable;
public class OperatorExample2 {
public static void main(String[] args) {
int num1 = 3;
int result = 0;
// num1의 값이 짝수이면 result가 0 홀수이면 result가 1로 출력
// 1) if구문
if (num1 % 2 == 0) {
System.out.println("결과값은 " + result + "입니다.");
} else {
result = 1;
System.out.pri... | true |
fc3cfb8ced425b5778e06dd448495b9b8f361901 | Java | nuxeo-archives/nuxeo-runtime | /nuxeo-connect-standalone/src/main/java/org/nuxeo/connect/update/task/update/Rollback.java | UTF-8 | 4,317 | 1.820313 | 2 | [] | no_license | /*
* (C) Copyright 2006-2012 Nuxeo SA (http://nuxeo.com/) and contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.... | true |
ff5db132e34a1163a17eaec93f9971ac9ce2938c | Java | NicUll/xmlclean | /src/main/java/xmlcleaner/ErrorHandler/ErrorContainer.java | UTF-8 | 831 | 3.046875 | 3 | [] | no_license | package xmlcleaner.ErrorHandler;
import java.util.HashMap;
import java.util.LinkedList;
public class ErrorContainer {
private HashMap<String, LinkedList<Error>> errors = new HashMap<>();
public ErrorContainer(){
}
public LinkedList getErrorsOfType(String type){
return errors.get(type);
... | true |
070b8ec00a95295fcd1b0c7a64a32e780b7010e7 | Java | liyuguanguan/Netty | /src/test/java/Builder.java | UTF-8 | 871 | 2.8125 | 3 | [] | no_license | ///**
// * @Author: liyu.guan
// * @Date: 2019/5/29 下午4:54
// */
//public class Builder {
//
// private String name;
//
// private int age;
//
// private String address;
//
// private String ID;
//
// public Builder (String name){
// this.name = name;
// }
//
// public Builder setName(Strin... | true |
2ba19103e1eba10561d05731f4618e5290d0e4bd | Java | jeangnc/remote-rpg-player | /src/modelos/Turno.java | UTF-8 | 888 | 2.890625 | 3 | [] | no_license | package modelos;
import java.util.ArrayList;
import java.util.Comparator;
public class Turno {
private ArrayList<Iniciativa> iniciativasExecutadas = new ArrayList<>();
private ArrayList<Iniciativa> iniciativasPendentes;
private boolean finalizado;
/**
*
* @param iniciativas
*/
pub... | true |
d915941a97aa0a7c4df09ab45a7084d0a982e99c | Java | EdvinLekovic/wp-lab | /src/test/java/mk/finki/ukim/mk/lab/selenium/BalloonPage.java | UTF-8 | 1,387 | 2.21875 | 2 | [] | no_license | package mk.finki.ukim.mk.lab.selenium;
import lombok.Getter;
import org.junit.Assert;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import java.util.List;
@Getter
public class BalloonPage extends... | true |
d1fbcaf071df3e76a4fef712439c32d2ab457712 | Java | stevematney/jorbs-spire-mod | /src/main/java/stsjorbsmod/memories/MemoryType.java | UTF-8 | 84 | 1.953125 | 2 | [
"MIT"
] | permissive | package stsjorbsmod.memories;
public enum MemoryType {
SIN,
VIRTUE
}
| true |
ea3ee1ebb0d2f4fabab1f4c577bb0bd1489b0bf9 | Java | songintae/GraduateProject | /src/main/java/graduate/instagram/InstaService.java | UTF-8 | 622 | 2.296875 | 2 | [] | no_license | package graduate.instagram;
import graduate.domain.Content;
import graduate.domain.Tag;
import graduate.domain.User;
public interface InstaService {
//Content DB에 저장.
public int getContentLastId();
public int getTagLastId();
public void registryContent(Content content);
public void registryUser(User user);
... | true |
e384c9c99e8f49bd994987aab8b8777189a0ffaa | Java | RosuBogy/JavaWork | /src/tutoriale/EA18_v2.java | UTF-8 | 542 | 2.9375 | 3 | [] | no_license | package tutoriale;
public class EA18_v2 {
public static int countSums(int[] arr) {
int count = 0;
for (int i = 0; i < arr.length; i++) {
int[] restArray;
}
return count;
}
public static void main(String[] args) {
System.out.println(countSums(new int[] { 1, 2, 3 }));
System.out.pri... | true |
aafd60cf953630f7b15a36fb86b13a449ae03ded | Java | LaxmikanthMadana/GitDemo | /src/Basics/Basics2.java | UTF-8 | 839 | 2.5 | 2 | [] | no_license | package Basics;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
public class Basics2 {
//@BeforeClass
public void Bforeclass()
{
System.out.println("Hello TestNG - Before class method");
}
@Test(grou... | true |
d0209a97bf9df008a271d736fb6bd6fa42457607 | Java | ONSdigital/zebedee | /zebedee-reader/src/main/java/com/github/onsdigital/zebedee/content/page/statistics/data/base/StatisticalData.java | UTF-8 | 1,557 | 2.15625 | 2 | [] | no_license | package com.github.onsdigital.zebedee.content.page.statistics.data.base;
import com.github.onsdigital.zebedee.content.page.statistics.base.Statistics;
import com.github.onsdigital.zebedee.content.partial.Link;
import com.github.onsdigital.zebedee.content.partial.markdown.MarkdownSection;
import java.util.List;
/**
... | true |
c3fcbc9cf53ff2624bbbf48445f9aabf6337ec43 | Java | moutainhigh/read-ecommerce-paas | /domain.ioften/ioften.service/ioften.cms.service/src/main/java/net/yitun/ioften/cms/website/action/BrowseAction.java | UTF-8 | 3,917 | 2.15625 | 2 | [] | no_license | package net.yitun.ioften.cms.website.action;
import java.util.Set;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.... | true |
40ebbf8202aa78e4deb5693a19fd4ca12995eba4 | Java | AnirbanDas125/SpaceX-Crew | /app/src/main/java/com/example/spacexcrew/MainActivity.java | UTF-8 | 3,445 | 2.0625 | 2 | [] | no_license | package com.example.spacexcrew;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.app.DownloadManager;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import andr... | true |
5ee841e7cb38048d8f3ffaef7d4dd36118fc62b3 | Java | BoyanVD/Algorithms | /Java/UndoableList/src/undoableList/Undoable.java | UTF-8 | 558 | 2.421875 | 2 | [] | no_license | package undoableList;
import java.util.List;
interface Undoable<T> {
public void undo(List<T> list) throws UndoableListException;
}
//Must create the following delete actions :
//boolean remove(Object var1);Done
//boolean addAll(Collection<? extends E> var1); Done
//boolean removeAll(Collection<?> var1); Done
... | true |
761125efb379c1c3675639a1023e1a33f3483922 | Java | zongjiehao/design-pattern | /facade_pattern/src/service/ProductService.java | UTF-8 | 131 | 1.804688 | 2 | [] | no_license | package service;
public class ProductService
{
public void pick(){
System.out.println("挑选iphone xs max");
}
}
| true |
9ed866dfb0921e5eb9a5f85f96d323def0da3474 | Java | brendankehoe/maven | /persistence/src/main/java/org/ericsson/training/entities/CountryOperatorPrimaryKey.java | UTF-8 | 604 | 2.25 | 2 | [] | no_license | package org.ericsson.training.entities;
import java.io.Serializable;
public class CountryOperatorPrimaryKey implements Serializable {
private static final long serialVersionUID = -3868029487198207391L;
private double mCC;
private double mNC;
public CountryOperatorPrimaryKey() {
super();
}
public CountryOpe... | true |
49b927cb4b90a08ee662cc5806bca7c328ced5d7 | Java | LeidosLabs/holeshot | /photogrammetry/src/main/java/com/leidoslabs/holeshot/imaging/photogrammetry/DatumUtil.java | UTF-8 | 4,209 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | /*
* Licensed to The Leidos Corporation under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
* The Leidos Corporation licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | true |
61cc758fcc1d0bff287e34245c1cf46ef839a03e | Java | qoo7972365/timmy | /OSWE/oswe/openCRX/rtjar/rt.jar.src/com/sun/xml/internal/bind/v2/schemagen/xmlschema/SimpleContent.java | UTF-8 | 572 | 1.515625 | 2 | [] | no_license | package com.sun.xml.internal.bind.v2.schemagen.xmlschema;
import com.sun.xml.internal.txw2.TypedXmlWriter;
import com.sun.xml.internal.txw2.annotation.XmlElement;
@XmlElement("simpleContent")
public interface SimpleContent extends Annotated, TypedXmlWriter {
@XmlElement
SimpleExtension extension();
@XmlEleme... | true |
d4516bf5f8e1df78e1ccc1743fed0a7575d0122a | Java | monirIDB/IDB_J2EE_Round_33 | /Class work/Java/2017.10.15 (Advanced java Start)/mamun/src/mamun/ReadBook.java | UTF-8 | 618 | 2.78125 | 3 | [] | no_license |
package mamun;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
public class ReadBook {
public static void main(String[] args) throws ClassNotFoundException{
try{
File f2 = new File("myFile.ser");
FileInputStream fis = new... | true |
428b0385ab4e4b18992190ebd716fc76012ec814 | Java | bxo11/Android-app | /app/src/main/java/com/example/zadanie2/FragmentOutput.java | UTF-8 | 1,473 | 2.203125 | 2 | [] | no_license | package com.example.zadanie2;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.navigation.Navigatio... | true |
a2ef8c610e7d50271b2a341a3eee2620df37d2a2 | Java | spencercjh/multithread | /src/chapter4/tryLock_param/Run.java | UTF-8 | 616 | 2.8125 | 3 | [] | no_license | package chapter4.tryLock_param;
/**
* @author spencercjh
* 图4-30 Page230
*/
public class Run {
public static void main(String[] args) {
final MyService myService = new MyService();
Runnable runnable = () -> {
System.out.println(Thread.currentThread().getName() + "调用waitMethod时间" + Sy... | true |
38f83e3fba1883bef833c26526cf416fed51a80e | Java | ivanjakimovski/book-library-managment | /src/main/java/mk/ukim/finki/emt/lab2/service/impl/CountryServiceImpl.java | UTF-8 | 639 | 2.203125 | 2 | [] | no_license | package mk.ukim.finki.emt.lab2.service.impl;
import mk.ukim.finki.emt.lab2.model.Country;
import mk.ukim.finki.emt.lab2.repository.CountryRepository;
import mk.ukim.finki.emt.lab2.service.CountryService;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class CountryServiceImpl im... | true |
7a04a504d9ce7ba8be9553c1439eb1536ac87a46 | Java | joyblack/informational-dxn | /src/main/java/com/joy/xxfy/informationaldxn/module/drill/web/req/DrillDailySaveReq.java | UTF-8 | 837 | 1.90625 | 2 | [] | no_license | package com.joy.xxfy.informationaldxn.module.drill.web.req;
import com.joy.xxfy.informationaldxn.module.common.enums.DailyShiftEnum;
import com.joy.xxfy.informationaldxn.module.common.web.req.BaseAddReq;
import lombok.Data;
import lombok.ToString;
import javax.validation.Valid;
import javax.validation.constraints.Not... | true |
a24b0894e4887f0807c2a199974f07751a5bb27d | Java | senghor-song/Naruto-Uzumaki | /Uzumzki-project/2018/GA-API/src/main/java/com/ruiec/web/common/GlobalUnit.java | UTF-8 | 2,726 | 2.25 | 2 | [
"MIT"
] | permissive | package com.ruiec.web.common;
import org.apache.commons.lang3.StringUtils;
/**
* 全局静态变量
*
* @author qinzhitian<br>
* @date 2018年1月8日 下午4:14:34
*/
public class GlobalUnit {
public static final String NULLMSG = "暂无";
public static final String STEADY_ITEMCODE = "steady";// 稳控状态字典类型别名
public static final Str... | true |
d79695a78d20d874c960edd877c10f54fe8cc03b | Java | qianwx1993/myProject | /src/main/java/com/qwx/myProject/strategy/impl/distributetype/DefaultSmartDistributor.java | UTF-8 | 344 | 1.546875 | 2 | [] | no_license | package com.qwx.myProject.strategy.impl.distributetype;
import com.qwx.myProject.strategy.AbstractDistributor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
/**
* @author Qian
* @Since JDK1.8
* @Date 2022/4/7 23:26
*/
@Service
@Slf4j
public class DefaultSmartDistributor extends ... | true |
a836f1b43ab3fa0b1167fba0e00ff76327f4e06e | Java | Prabhat-19/eclipse | /eclipse-workspace/UppclProject/src/main/java/com/uppcl/dashboard/service/UppclDashboardService.java | UTF-8 | 1,129 | 1.882813 | 2 | [] | no_license | package com.uppcl.dashboard.service;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.springframework.web.multipar... | true |
53b1a462518015280100c37bb0c37381c9849320 | Java | cangHW/MediaLibrary | /LiveMaker/src/main/java/com/chx/livemaker/manager/base/helpr/VideoCacheHelper.java | UTF-8 | 3,986 | 2.234375 | 2 | [] | no_license | package com.chx.livemaker.manager.base.helpr;
import android.content.Context;
import com.chx.livemaker.manager.base.interfaces.IVideoCacheHelper;
import com.chx.livemaker.manager.base.params.VideoCacheWrapper;
import com.chx.livemaker.manager.thread.ThreadManager;
import com.chx.livemaker.util.FileUtil;
import com.ch... | true |
91e7908538d5eabdf162fe38d748d53d1557d2d1 | Java | mageLi/CS522-Mobile-Systems-and-Applications | /Assignment 4- Content Providers/Chat-Server-Oneway/app/src/main/java/edu/stevens/cs522/chatserver/activities/ViewPeersActivity.java | UTF-8 | 3,379 | 2.609375 | 3 | [] | no_license | package edu.stevens.cs522.chatserver.activities;
import android.app.Activity;
import android.app.LoaderManager;
import android.content.CursorLoader;
import android.content.Intent;
import android.content.Loader;
import android.database.Cursor;
import android.os.Bundle;
import android.view.View;
import android.widget.Ad... | true |
399818ab8a88f9390663a2848beec8fa80e07d5c | Java | vickythakur0398/GFG | /NUMBER THEORY/gp of number.java | UTF-8 | 1,597 | 3.828125 | 4 | [] | no_license | /*
GP Term
Given the first 2 terms A and B of a Geometric Series. The task is to find the Nth term of the series.
Example 1:
Input:
A = 2
B = 3
N = 1
Output: 2
Explanation: The first term is already
given in the input as 2
Example 2:
Input:
A = 1
B = 2
N = 1
Output: 2
Explanation: Common ratio = 2,
Hence second te... | true |
86432dcaa7ec744328b087f0081c45fb7eaee0c6 | Java | darkpoison66/hw3 | /Test.java | UTF-8 | 1,524 | 3.484375 | 3 | [] | no_license | public class Test {
public static void main(String[] args) throws InvalidSquareException {
try {
Square hmm = new Square("a9");
} catch (InvalidSquareException e) {
System.out.println("InvalidSquareexception for valid square: " + e.getMessage());
}
try {
... | true |
11f5ed013eb41cc54b72a329e189b3c9b462338c | Java | Rvirto/AcessoriosAutomobilisticos | /src/main/java/com/renatovirto/projetobegosso/security/UsuarioSistema.java | UTF-8 | 615 | 2.234375 | 2 | [] | no_license | package com.renatovirto.projetobegosso.security;
import java.util.Collection;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
import com.renatovirto.projetobegosso.model.Cliente;
public class UsuarioSistema extends User{
private Cliente client... | true |
10ad9c68bc82351f86b165daf0cd93304e01c4bd | Java | weijun8687/ssm | /src/com/laowei/mapper/StudentMapper.java | UTF-8 | 280 | 1.929688 | 2 | [] | no_license | package com.laowei.mapper;
import com.laowei.po.Student;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface StudentMapper {
List<Student> queryStudent();
List<Student> queryStudentByName(String name);
} | true |
95bf9ef616b3ab84c043e019df33607c4a8f19cf | Java | larrytech7/traveler | /app/src/main/java/com/satra/traveler/models/Trip.java | UTF-8 | 4,634 | 2.65625 | 3 | [] | no_license | package com.satra.traveler.models;
import com.orm.SugarRecord;
import com.orm.dsl.NotNull;
import com.orm.dsl.Unique;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Larry Akah on 6/14/16.
* Class represents a model for a trip/journey/voyage. Stores attributes and is m... | true |
6420e63459b61c71ce36d80a0361dfa132fdd8eb | Java | osak/ICFPC2017 | /zeus/src/MapGen.java | UTF-8 | 6,010 | 2.421875 | 2 | [] | no_license | import json.game.Map;
import json.game.River;
import json.game.Site;
import org.codehaus.jackson.map.ObjectMapper;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Random;
public class MapGen {
public static void randomCornerMine() throws IOException {
final int n = 15;
fin... | true |
865b5c92f05a96b464933e96b766abab7b471cfc | Java | clevertonh/tds-eclipse | /br.com.totvs.tds.tycho/br.com.totvs.tds.tycho.bundles/br.com.totvs.tds.ui/src/br/com/totvs/tds/ui/console/MainConsoleFactory.java | UTF-8 | 681 | 2.0625 | 2 | [
"MIT"
] | permissive | package br.com.totvs.tds.ui.console;
import org.eclipse.ui.console.ConsolePlugin;
import org.eclipse.ui.console.IConsole;
import org.eclipse.ui.console.IConsoleFactory;
import org.eclipse.ui.console.IConsoleManager;
import org.eclipse.ui.console.MessageConsole;
public class MainConsoleFactory implements IConsoleFacto... | true |
d4a9b0518b71242e378c220a40af0e5e266fe0c3 | Java | appservice/sap_scanner | /app/src/main/java/eu/appservice/sap_scanner/HtcFlashLight.java | UTF-8 | 1,899 | 2.65625 | 3 | [] | no_license | package eu.appservice.sap_scanner;
import java.io.IOException;
/**
* That is singleton instance. </br>
* This object is using to switch activity_rw flash light in activity_rw HTC Desire mobile phone.
*
* @author mochelek
* @deprecated
*/
public enum HtcFlashLight {
;
private final static String[] LIGHT... | true |
bda4a25fdfc16172dc008a3f4df96df77575610a | Java | Maxatom/leetcode | /src/leetcode/realtest/realTest20201115_WC215/MinimumOperations.java | UTF-8 | 1,260 | 3 | 3 | [] | no_license | package leetcode.realtest.realTest20201115_WC215;
public class MinimumOperations {
public static void main(String[] args) {
MinimumOperations oper= new MinimumOperations();
int[] nums = new int[]{1,1,4,2,3};int x = 5;
nums = new int[]{5,6,7,8,9}; x = 4;
nums = new int[]{3,2,20,1,1,... | true |
337e2f27292c6fe55ccdb987fcfd526b3ece30df | Java | damogui/testtt | /gsb/gsb-api/src/main/java/com/gongsibao/api/conroller/sys/SalaryNoteController.java | UTF-8 | 9,294 | 2.234375 | 2 | [] | no_license | package com.gongsibao.api.conroller.sys;
import javax.ws.rs.Path;
/**
* Created by wk on 2016/12/20.
*/
@Path("/salary/note")
public class SalaryNoteController {
//
// Log log = LogFactory.getLog(SalaryNoteController.class);
//
// private static final String NOTE_ALL = "SALARY_NOTE_ALL";
// ... | true |
e23c52205de5ade9ca5a95b1df1ff8bf62b3c9d4 | Java | crsit/design-patlerns | /src/main/java/com/crsit/strategy/ToyDuck.java | UTF-8 | 369 | 2.71875 | 3 | [] | no_license | package com.crsit.strategy;
/**
* @ClassName: ToyDuck
* @Description: TODO
* @Author: yangwuhui crsit@126.com
* @Date: 2019-08-09 15:41
* @Version: 1.0.0
**/
public class ToyDuck extends Duck {
public ToyDuck() {
flyBehavior = new NoFlyBehavior();
}
@Override
public void display() {
... | true |
a78448ac33b07c7a147dbc183a5d78c3408f610c | Java | sammilward/MyNeighbourhood | /app/src/main/java/com/sammilward/neighbourhood/ui/login/AddEventActivity.java | UTF-8 | 16,315 | 1.710938 | 2 | [] | no_license | package com.sammilward.neighbourhood.ui.login;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.net.Uri;
im... | true |
3df39376557334e2f5d30d2de3d13cf919c81554 | Java | taoguoliang/DevelopDemo | /src/main/java/com/thunisoft/develop/demo/repository/UserRepository.java | UTF-8 | 914 | 2.125 | 2 | [] | no_license | /**
* @projectName DevelopDemo
* @package com.thunisoft.develop.demo.repository
* @className com.thunisoft.develop.demo.repository.UserRepository
* @copyright Copyright 2019 Thuisoft, Inc. All rights reserved.
*/
package com.thunisoft.develop.demo.repository;
import org.springframework.data.jpa.repository.JpaRepo... | true |
cf010ba5935d38b2eb3fb70c665c39d0eba0e144 | Java | navoj/star | /src/main/java/org/star_lang/star/compiler/canonical/CastExpression.java | UTF-8 | 1,195 | 2.375 | 2 | [] | no_license | package org.star_lang.star.compiler.canonical;
import org.star_lang.star.compiler.operator.StandardNames;
import org.star_lang.star.compiler.type.DisplayType;
import org.star_lang.star.compiler.util.PrettyPrintDisplay;
import org.star_lang.star.data.type.IType;
import org.star_lang.star.data.type.Location;
@S... | true |
88450b400b1df86d1da8871e5fc85472b27bca38 | Java | exmyth/design-pattern | /singleton/src/main/java/org/ko/singleton/hungry/HungrySingleton1.java | UTF-8 | 539 | 2.875 | 3 | [] | no_license | package org.ko.singleton.hungry;
import java.io.Serializable;
/**
* 饿汉式
* 一开始就new好了
*/
public class HungrySingleton1 implements Serializable {
/**
* 可以直接new也可以适用静态块中创建
* */
private final static HungrySingleton1 hungrySingleton;
static {
hungrySingleton = new HungrySingleton1();
... | true |
4fc28aaa6dd912b201d5a4e4b053ab4ecbccb7f3 | Java | zhupgithub/baseframe | /src/main/java/com/zhupeng/baseframe/utils/MD5Utils.java | UTF-8 | 839 | 2.921875 | 3 | [] | no_license | package com.zhupeng.baseframe.utils;
import java.security.MessageDigest;
public class MD5Utils {
/***
* MD5 加密
*/
public static String encoder(String str) {
if (str == null)
return null;
try {
MessageDigest md5 = MessageDigest.getInstance("MD5");
m... | true |
1299cf2827c03ab1ade2728bfe76de70e149883b | Java | dogosoft205/html5app-kame | /Html5Application/src/html5/app/chap11/ServerTimeServlet.java | UTF-8 | 946 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package html5.app.chap11;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servl... | true |
9d4972f868ba963fd4db0660f65f041fe3321b2c | Java | SandyRagaie/GettyImagesClient | /GettyImages/app/src/main/java/com/sandyr/demo/gettyimages/gallery/presenter/GalleryPresenter.java | UTF-8 | 251 | 1.6875 | 2 | [] | no_license | package com.sandyr.demo.gettyimages.gallery.presenter;
/**
* Created by sandyr on 2/23/2017.
*/
public interface GalleryPresenter {
void onDestroy();
void loadNextPage();
void searchGettyImages(String searchPhrase);
}
| true |
6c1f2d310b2e5e7baf7e86a44f1ec437a3fd9600 | Java | jwxa/coding-myself | /src/main/java/com/github/jwxa/thinkinginjava/chapter5/MethodInit.java | GB18030 | 299 | 2.5625 | 3 | [] | no_license | package com.github.jwxa.thinkinginjava.chapter5;
/**
* ͨijṩֵ
* <p>
* б
* </p>
* User: Jwxa Date: 2016/12/24 ProjectName: coding-myself Version: 1.0
*/
public class MethodInit {
int i = f();
int f(){
return 11;
}
}
| true |
d152d552b4d64ba9fcf5bdcd6edece31e0ea9a35 | Java | Zinia-Nawrin-Sukhi/cse111_lab3 | /T2.java | UTF-8 | 333 | 2.90625 | 3 | [] | no_license | import java.util.Scanner;
public class T2{
public static void main(String[]args)
{
Scanner sc=new Scanner(System.in);
System.out.println("please enter word");
String s=sc.nextLine();
for(int i=0;i<=s.length();i++){
char a=s.charAt(i);
System.out.println(a);
}
... | true |
bf5c43e9b8d79058c03873cb836d73d0135eb348 | Java | momolakeit/FacturationService | /src/main/java/com/momoProjet/FacturationService/models/entities/ProprioFacture.java | UTF-8 | 950 | 2.015625 | 2 | [] | no_license | package com.momoProjet.FacturationService.models.entities;
import javax.persistence.*;
import java.util.List;
@Entity
public class ProprioFacture {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE)
@Column
private long id;
@Column
private String email;
@ManyToMany
private List<F... | true |
45ce3c7139482c538321533d79748647de033d28 | Java | FormerSoldier/Parking-Lot-Template-2019-7-18-8-5-49-775 | /src/main/java/com/thoughtworks/parking_lot/service/ParkingLotOrderService.java | UTF-8 | 2,881 | 2.21875 | 2 | [] | no_license | package com.thoughtworks.parking_lot.service;
import com.thoughtworks.parking_lot.model.*;
import com.thoughtworks.parking_lot.repository.ParkingLotOrderRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.text.SimpleDateFormat;
import j... | true |
3a4f34f9cd33425e0f6226bf97a7c2b256ed6b07 | Java | MonikaSophin/myproject | /src/com/thinkinginjava/io/exercise/chapter18_14/package-info.java | UTF-8 | 133 | 1.5625 | 2 | [] | no_license | package com.thinkinginjava.io.exercise.chapter18_14;
/**
* page 588
* -- chapter_18 Java I/O系统
*
* 18.14 Preferences
*/ | true |
113dfb75a267b07a1f5196d41535fdcfff94659b | Java | ivaruf/AnagramFinder | /src/main/java/no/finn/AnagramFinder.java | UTF-8 | 1,277 | 3.328125 | 3 | [] | no_license | package no.finn;
import java.io.IOException;
import java.nio.file.*;
import java.util.*;
public class AnagramFinder {
public static final String FILE_PATH = "src/main/resources/eventyr.txt";
public static void main(String... args) throws IOException {
final HashMap<String, List<String>> anagramMap =... | true |
a0ede9adbfb11642fd1cb6e19bba8c6276a2a8b3 | Java | Gilthanas122/questionformgenerator | /src/main/java/com/bottomupquestionphd/demo/exceptions/question/QuestionHasBeenAnsweredException.java | UTF-8 | 262 | 2.0625 | 2 | [] | no_license | package com.bottomupquestionphd.demo.exceptions.question;
public class QuestionHasBeenAnsweredException extends Exception {
public QuestionHasBeenAnsweredException() {
}
public QuestionHasBeenAnsweredException(String message) {
super(message);
}
}
| true |
e79b5caa9146fdf978d50628681abd46d70e243e | Java | jadsonjs/security | /JavaInjections/src/main/java/br/com/example/controllers/InjectionController.java | UTF-8 | 1,410 | 2.609375 | 3 | [
"MIT"
] | permissive | /*
*
* Injections
* FooController
* @since 14/07/2021
*/
package br.com.example.controllers;
import br.com.example.model.Data;
import br.com.example.sanitize.JavaSanitize;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMappi... | true |
3a2c2597ec33bd66801950be03a67c7d5d5d451c | Java | Sourdaci/zuul-bad | /Equipment.java | UTF-8 | 1,773 | 3.5625 | 4 | [] | no_license |
/**
* Equipo del juego: World Of Greg
*
* @author Sourdaci
* @version 2015-04-30 01
*/
public class Equipment extends GameObject
{
private int bonoAtaque;
private int bonoDefensa;
private boolean tipoEquipo;
/**
* Crea un equipo para el jugador del juego
*
* @param nombre Nombre ... | true |
6c5d3c5f5024fc9a2315c263b283af8e5f064c7f | Java | steveown/GiGiBizarreAdventures | /src/hud/Hud.java | UTF-8 | 1,225 | 2.65625 | 3 | [] | no_license | package hud;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import classes.Jogador;
import manager.Content;
public class Hud {
private BufferedImage hud;
private BufferedImage hudbar;
private BufferedImage spriteJogador;
private Jogador jogador;
... | true |
224918ef886aa7bb83bf6bcb6a6979a64e36f648 | Java | zhangrenyi666/apih5-2 | /zj-tz/src/main/java/com/apih5/service/impl/ZjTzQualityManagementSystemServiceImpl.java | UTF-8 | 14,163 | 1.78125 | 2 | [] | no_license | package com.apih5.service.impl;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.apih5.framework.utils.TokenUtils;
import com.apih5.framework.utils.Uuid... | true |
927eb6d8bd59d01cf2496812f5ced5bccd613d33 | Java | joaquinInnoqa/wavemaker-app-runtime | /wavemaker-app-runtime-core/src/main/java/com/wavemaker/runtime/filter/etag/CacheFilterConfigFactoryBean.java | UTF-8 | 1,946 | 2.046875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.wavemaker.runtime.filter.etag;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpMetho... | true |
0ca08cb849d5c0420a6756aa48c530fd50f82631 | Java | Polvyer/SimpleBankingSystem | /src/banking/algorithm/LuhnAlgorithm.java | UTF-8 | 147 | 2 | 2 | [] | no_license | package banking.algorithm;
@FunctionalInterface
public interface LuhnAlgorithm {
boolean validateCreditCardNumber(final String cardNumber);
}
| true |
5cc67d2078c96d1afa987ba46fffaf5adaf4c86b | Java | kangarko/Rush | /server/src/main/java/net/rush/block/BlockGrass.java | UTF-8 | 321 | 2.265625 | 2 | [] | no_license | package net.rush.block;
import net.rush.world.World;
public class BlockGrass extends Block {
protected BlockGrass(int id) {
super(id);
}
@Override
public boolean isTickingRandomly() {
return true;
}
@Override
public void onTick(World world, int x, int y, int z) {
world.setType(x, y, z, DIRT.id);
}
}... | true |
506164bc0393309a05b3955c62bd9f137d4645d3 | Java | zhshao312/Java-in-RIT | /RPG Game Project/src/GameDataParser.java | UTF-8 | 4,056 | 2.640625 | 3 | [] | no_license | import java.awt.*;
import java.io.*;
import javax.imageio.ImageIO;
import javax.swing.*;
import javax.xml.parsers.*;
import javax.xml.xpath.*;
import org.w3c.dom.*;
/**
* I can push again.
*/
public class GameDataParser implements Serializable
{
private transient DocumentBuilder builder;
private transient XPat... | true |
280f9700bdd2ba7ea0eeab0a8e5c1b25138d3018 | Java | fardeeba/MarketAppModule | /market-app/src/main/java/com/skylarksit/module/pojos/CountryBean.java | UTF-8 | 243 | 1.625 | 2 | [] | no_license | package com.skylarksit.module.pojos;
public class CountryBean {
public String niceName;
public String name;
public String iso;
public Integer phoneCode;
public Integer id;
public Double lat;
public Double lon;
}
| true |
f0d96b829c53feadfaaf23dc8f36110729084fef | Java | nottherealironman/MAPAnalyzer | /src/assignment2/Assignment2.java | UTF-8 | 717 | 2.765625 | 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 assignment2;
/**
*
* @author acer
*/
public class Assignment2 {
/**
* @param args the command line arguments
... | true |
5f5dfa51986e5cbcec634309a780f1348f3eea10 | Java | lucas-salles/caderneta | /src/main/java/br/edu/ifpb/pweb2/caderneta/bean/RegistrarPresencaBean.java | UTF-8 | 2,328 | 2.140625 | 2 | [] | no_license | package br.edu.ifpb.pweb2.caderneta.bean;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.PostConstruct;
import javax.faces.view.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
import br.edu.ifpb.pweb2.caderneta.controller... | true |
f23793996876ff850d9afec63907d40f43e1a1a2 | Java | yuyee/nettyserver | /common/src/com/git/original/common/utils/CompressUtils.java | UTF-8 | 8,538 | 2.515625 | 3 | [] | no_license | /**
* @(#)CompressUtils.java, 2013-2-24.
*
* Copyright 2013 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.git.original.common.utils;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.zip.DataFormatException;... | true |
d40920b9adc7c6700454b698d7b4f830939f179b | Java | ujjman/DestSolAndroid | /src/org/destinationsol/android/AndroidModuleManager.java | UTF-8 | 13,563 | 1.71875 | 2 | [] | no_license | package org.destinationsol.android;
import android.content.Context;
import android.content.res.AssetManager;
import android.util.Log;
import com.google.common.base.Charsets;
import com.google.common.collect.Sets;
import com.google.common.io.ByteStreams;
import org.destinationsol.Const;
import org.destinations... | true |
7fb2108f89f544e6a02d1bbf3398564c820fd577 | Java | tahiapr/PROG_Boletin18 | /src/boletin18/Buzon.java | UTF-8 | 1,668 | 3.125 | 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 boletin18;
import java.util.ArrayList;
import javax.swing.JOptionPane;
/**
*
* @author tperezrodriguez
*/
public class Buz... | true |
4c3237217a5f856b624be29c50e82faa7b7d2f1c | Java | marcinsmoliga/task-manager-spring | /src/main/java/com/example/taskmanager/adapter/SqlTaskGroupRepository.java | UTF-8 | 617 | 1.929688 | 2 | [] | no_license | package com.example.taskmanager.adapter;
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.example.taskmanager.model.TaskGroup;
import com.example.taskmanager.reposito... | true |
f12b77fe7a6c65778fbabbbfa8481d22e1916ce7 | Java | olantonov/spring-security-oauth2-resource-server | /samples/boot/oauth2/resource-server/keycloak/src/main/java/sample/KeycloakSecurityConfig.java | UTF-8 | 2,663 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | true |
e5a944bbcbf456de7cb2fdd2410f635578edc9f9 | Java | planttreeman/game | /src/main/java/com/load/game/dao/UserDao.java | UTF-8 | 353 | 1.664063 | 2 | [] | no_license | package com.load.game.dao;
import com.load.game.entity.User;
import org.springframework.data.mongodb.repository.MongoRepository;
/**
* descript
*
* @author orange
* @Time 2018/4/24
*/
public interface UserDao extends MongoRepository<User,Long> {
User findByUserAccount(String userAccount);//都是通过用户的账户来查询用户信息
}... | true |
f818d5c49f8c24451899325001d1235504cf340d | Java | shaoyonggong/StudentHelp | /StudentHelp/StudentHelp-manage/src/main/java/com/student/controller/QuestionsController.java | UTF-8 | 2,475 | 2.1875 | 2 | [] | no_license | package com.student.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.Res... | true |
c1049275a69f171086660f708bebe9209841e7c2 | Java | aherrera0907/repositorio-screenplay | /src/main/java/pe/com/sodimac/testing/task/BuscarVuelo.java | UTF-8 | 744 | 2.125 | 2 | [] | no_license | package pe.com.sodimac.testing.task;
import static net.serenitybdd.screenplay.Tasks.instrumented;
import java.util.List;
import net.serenitybdd.core.pages.PageObject;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Task;
import net.serenitybdd.screenplay.actions.Open;
import pe.com.sodimac... | true |
4d4d8b3387cb917d643ce5455a4ba97f6501c784 | Java | freeCoder-ahl/sds | /sds-client/src/test/java/com/didiglobal/sds/client/test/SdsDowngradeDelayServiceTest.java | UTF-8 | 1,572 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.didiglobal.sds.client.test;
import com.didiglobal.sds.client.SdsClient;
import com.didiglobal.sds.client.SdsClientFactory;
import com.didiglobal.sds.client.bean.SdsStrategy;
import com.didiglobal.sds.client.service.SdsStrategyService;
import org.junit.Test;
import java.util.concurrent.ConcurrentHashMap;
... | true |
d860aaef10cfb786692891fbfc1d33e6fcce9d36 | Java | dipeshrijal/library-management-system | /src/uiController/AddNewBookController.java | UTF-8 | 2,636 | 2.25 | 2 | [] | no_license | package uiController;
import java.net.URL;
import java.util.ResourceBundle;
import com.jfoenix.controls.JFXTextField;
import business.Book;
import dataAccess.Dao;
import dataAccess.DaoImpl;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.geometry.Insets;
import javafx.geometry.P... | true |
9941a6ed6cb1b3d7ef0f0115a04a02c16ffe0bf6 | Java | LGeremia/SistemasDistribuidos | /SistemaChord/src/projeto/No.java | UTF-8 | 1,032 | 2.546875 | 3 | [] | no_license | package projeto;
import java.util.HashMap;
import java.util.Map;
public class No {
private int chave;
private String valor;
private int prox;
private Boolean ativo;
private Map<Integer, String> dependentes;
public Map<Integer, String> getDependentes() {
return dependentes;
}
public void setDependentes(Map... | true |
2d4038be5935212442e8377dc99e51574ef34333 | Java | douglasikoshima/teste-repositorio | /catalogo-ejb/src/main/java/com/indracompany/catalogo/ejb/condicapagamento/CondicaoPagamentoBean.java | UTF-8 | 2,878 | 1.953125 | 2 | [] | no_license | package com.indracompany.catalogo.ejb.condicapagamento;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.EJBException;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManageme... | true |
2cd035592deae60e7b37215d5ee7e961df4f8b22 | Java | zhangshixi/d-ssm | /d-ssm-app/src/main/java/com/dssm/domain/depot/TransStatus.java | UTF-8 | 493 | 2.390625 | 2 | [] | no_license | package com.dssm.domain.depot;
public enum TransStatus {
DAI_RU (1),
DAI_CHU (2),
YI_RU (3),
YI_CHU (4),
ZUO_FEI (5);
private Integer value;
private TransStatus(Integer value) {
this.value = value;
}
public Integer getValue() {
return this.value;
}
public static TransStatus ... | true |
da6427d999f31a62d3383ef44066341100445705 | Java | artikedar/BillingCounter | /src/main/java/com/billingcounter/demo/entity/Category.java | UTF-8 | 1,025 | 2.296875 | 2 | [] | no_license | package com.billingcounter.demo.entity;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
@Table(name = "category")
public class Category {
@Id
@Column(name = "id")
priv... | true |
ae4b70ceaa9c62a74903e6b45546ff0aa32d9542 | Java | hyeonseo25/Game_ppusyung_2 | /Project/src/main/Main.java | UHC | 8,750 | 2.84375 | 3 | [] | no_license | package main;
import java.awt.CardLayout;
import java.awt.event.MouseEvent;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import panels.ClearPanel;
import panels.StartPanel;
import util.DBConnection;
import panels.GameOverPanel;
import panels.InfoPanel;
import panels.RankingPanel;
import panels.SelectSt... | true |
b1779f83c302f138b30dd6094cae72b556a99962 | Java | Shubhamsdr3/problem-solving | /leetcode/src/easy/PerfectSquare.java | UTF-8 | 442 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | package easy;
public class PerfectSquare {
private static boolean isPerfectSquare(int num) {
if (num ==1) {
return true;
}
for (int i=2; i <= Math.sqrt(num); i++) {
if (i * i == num) {
return true;
}
}
return false;
}
... | true |
c55cbee707fbab529153df524ff641763e99f1e9 | Java | hbren2004/Demo_WebView | /src/com/ebusiness/utils/HttpRequest.java | GB18030 | 1,586 | 2.296875 | 2 | [] | no_license | package com.ebusiness.utils;
import java.io.StringReader;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.http.NameValuePair;
import org.xmlpull.v1.XmlPullParser;
import com.ebusiness.utils.HttpUtils.MsgParams;
import com.ebusiness.xml.UserInfoXml;
import android.... | true |
126b1585802a1d08b6d512f55f4f2040a1e55b45 | Java | buinhansinh/data-engineer-practice | /src/main/java/com/fpt/analyzer/main/ResultDisplayer.java | UTF-8 | 187 | 1.789063 | 2 | [] | no_license | package com.fpt.analyzer.main;
import java.io.OutputStream;
/**
* Created by zack on 9/19/2016.
*/
public interface ResultDisplayer {
void display(OutputStream outputStream);
}
| true |
2b4c6c837337bafa41287a8241d2b211b7351a08 | Java | PacktPublishing/Java-EE-8-Application-Development | /Chapter07/websocketjavaclient/src/main/java/net/ensode/websocketjavaclient/WebSocketJavaClientFrame.java | UTF-8 | 10,144 | 2.578125 | 3 | [
"MIT"
] | permissive | package net.ensode.websocketjavaclient;
import javax.swing.JTextArea;
public class WebSocketJavaClientFrame extends javax.swing.JFrame {
private final WebSocketClient webSocketClient;
/**
* Creates new form WebSocketJavaClientFrame
*/
public WebSocketJavaClientFrame() {
initComponents(... | true |