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
3f0df8116fd1400a9fd35ccc4f929f69b8fc97d9
Java
msuliborski/pixel-voyager
/core/src/com/sulient/pixelvoyager/objects/Level.java
UTF-8
1,066
2.53125
3
[ "MIT" ]
permissive
package com.sulient.pixelvoyager.objects; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.scenes.scene2d.ui.Image; import com.badlogic.gdx.scenes.scene2d.ui.Skin; import com.badlogic.gdx.scenes.scene2d.utils.Tex...
true
6fb8461eb4a047ec6e2b0eff6782306715b3d904
Java
yif1997/Project
/wangyifei/app/src/main/java/com/bawei/wangyifei/utils/RetrofitUtils.java
UTF-8
3,442
2.578125
3
[]
no_license
package com.bawei.wangyifei.utils; import android.util.Log; import java.io.IOException; import okhttp3.Interceptor; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; import okhttp3.logging.HttpLoggingInterceptor; import retrofit2.Retrofit; import retrofit2.adapter.rxjava2.RxJava2CallAdapt...
true
07f6625c400849ee3b961ab7af112e64b5352845
Java
yangyang-qtl/qtl-cm-api
/src/main/java/com/quantil/cm/api/mapper/PurgeTaskStatisticsMapper.java
UTF-8
382
1.789063
2
[]
no_license
package com.quantil.cm.api.mapper; import org.apache.ibatis.annotations.Param; import com.baomidou.mybatisplus.mapper.BaseMapper; import com.quantil.cm.api.domain.PurgeTaskStatistics; public interface PurgeTaskStatisticsMapper extends BaseMapper<PurgeTaskStatistics>{ public PurgeTaskStatistics selectStat...
true
9a9060bd1874bb09833f8c914dc7c2d1e9aea96c
Java
siddhi9108/Networking
/Retriving_IP_Add.java
UTF-8
455
2.875
3
[]
no_license
package javaapplication2; import java.net.*; public class Retriving_IP_Add { public static void main(String[] args) throws Exception{ InetAddress ob; ob = new InetAddress.getByName("www.google.com"); System.out.println(ob.getHostAddress()); byte[] arr = ob.getAddress(); ...
true
f1fcd3c43091e994a0a188ce8a9bdc0f9ffe18de
Java
aKimtsPro/Correction_exo_stream
/src/com/bstorm/demo/ThreadGroupDemo.java
UTF-8
327
2.453125
2
[]
no_license
package com.bstorm.demo; public class ThreadGroupDemo { public static void main(String[] args) { ThreadGroup tg = new ThreadGroup("mon thread group"); Thread t1 = new Thread(tg, () -> System.out.println("je suis t1")); Thread t2 = new Thread(tg, () -> System.out.println("je suis t2")); ...
true
e69a2b49f3128f4a7124bcd1bf858ce53df4e219
Java
aaronrb1021/GhostKitchenAndroid
/app/src/main/java/com/example/ghostkitchenandroid/model/CartManager.java
UTF-8
1,232
3.203125
3
[]
no_license
package com.example.ghostkitchenandroid.model; import java.util.HashMap; import androidx.annotation.NonNull; public class CartManager { private HashMap<Long, Cart> carts; //the Long key will be the kitchenId of the kitchen associated with this cart public CartManager() { carts = new HashMap<>(); ...
true
6a2b36f9be2b2f26a4af8867846b8198bce9d6e4
Java
f3f34/yongqiang
/service_yongqing/src/test/java/com/juqitech/service/BasicUnitTest.java
UTF-8
1,070
1.773438
2
[]
no_license
package com.juqitech.service; import org.junit.After; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.SpringApplicationConfiguration; import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.context.junit4.Spri...
true
9991467b55e5a39f3dcd607d50ebfb55e281b919
Java
brfulu/web-crawler
/src/scorers/BFSScorer.java
UTF-8
153
2.140625
2
[]
no_license
package scorers; import crawler.Page; public class BFSScorer implements Scorer { public double getScore(Page page) { return page.getDepth(); } }
true
e413c7fe163e9121af9396d23f73c58522a7035d
Java
staki777/AndroidOrganiser
/app/src/main/java/com/example/user/drugsorganiser/Model/User.java
UTF-8
1,676
2.265625
2
[]
no_license
package com.example.user.drugsorganiser.Model; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.field.ForeignCollectionField; import com.j256.ormlite.table.DatabaseTable; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; /** * Created by user on 2017-04-14. *...
true
5fe309100c60febe5d92ff14ceec33282dca31d9
Java
wubl6102/demo
/CourseManagement/src/com/dao/proxy/ClassesDAOProxy.java
UTF-8
1,212
2.4375
2
[]
no_license
package com.dao.proxy; import java.util.List; import com.dao.ClassesDAO; import com.dao.impl.ClassesDAOImpl; import com.dbc.DatabaseConnection; import com.vo.Classes; public class ClassesDAOProxy implements ClassesDAO{ private DatabaseConnection dbc = null; private ClassesDAOImpl dao = null; public ClassesDAOPr...
true
278244efd115e182f616e0b4a968612888b59b62
Java
Folch/pracs4rt
/tm/ZipMediaPlayer/src/controller/compressor/threads/FXDecompress.java
UTF-8
3,936
2.234375
2
[]
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 controller.compressor.threads; import controller.compressor.FXContent; import controller.compressor.FXFile; import controller....
true
1e327c08cbda2e0791e6e0927371b9909d89ea75
Java
rscai/leetcode-bytedance
/src/main/java/io/github/rscai/leetcode/bytedance/linktree/Solution1040B.java
UTF-8
1,839
3.28125
3
[]
no_license
package io.github.rscai.leetcode.bytedance.linktree; /** * Quick sort */ public class Solution1040B { public ListNode sortList(ListNode head) { return quickSort(head); } private ListNode quickSort(ListNode head) { if (head == null) { return head; } if (head.next == null) { return ...
true
7d3e56b01deb98d1a43940f0384002067cf55708
Java
TusharPatil010010/EmployeePayrollService
/src/test/java/com/capg/employeepayrollservice/EmployeePayrollServiceTest.java
UTF-8
1,949
2.78125
3
[]
no_license
package com.capg.employeepayrollservice; import java.util.Arrays; import org.junit.Assert; import org.junit.jupiter.api.Test; import com.capg.employeepayrollservice.EmployeePayrollService.IOService; public class EmployeePayrollServiceTest { @Test public void given3Employees_WhenWrittenToFile_ShouldMatchEmployeeEn...
true
409a46620a5d2a84cd001c64517ebd462f25aae9
Java
gushiyixini/Hello
/app/src/main/java/com/yelj/hello/design_mode/MainClass.java
UTF-8
530
2.5625
3
[]
no_license
package com.yelj.hello.design_mode; /** * Author: Alex.ylj * 2019-05-08 19:00 Wednesday * Description: */ public class MainClass { public static void main(String[] args){ testSingleton(); } /** * 测试单例 */ private static void testSingleton(){ SingletonDemo.getInstance1(); ...
true
542baed52fbfdb5edec8265426c4081ba66a547e
Java
interceptor2048/project-jdp-1903-03
/src/test/java/com/kodilla/ecommercee/domain/GroupTestSuite.java
UTF-8
6,298
2.484375
2
[]
no_license
package com.kodilla.ecommercee.domain; import com.kodilla.ecommercee.domain.dto.GroupDto; import com.kodilla.ecommercee.domain.dto.ProductDto; import com.kodilla.ecommercee.mapper.GroupMapper; import com.kodilla.ecommercee.service.GroupService; import org.junit.Assert; import org.junit.Test; import org.junit.runner.Ru...
true
68897857a33de3740d70822781515cd9ac62f218
Java
estechsolutions/FENWAL20151210
/bssv/J5642013/valueobject/BaanSalesOrderRequest.java
UTF-8
3,151
2.125
2
[]
no_license
package kidde.e1.bssv.J5642013.valueobject; import java.io.Serializable; import oracle.e1.bssvfoundation.base.ValueObject; import oracle.e1.bssvfoundation.util.MathNumeric; /** * TODO: Java Doc comments for Value Object here */ public class BaanSalesOrderRequest extends ValueObject implements Serializabl...
true
d74aa5d9ebb0fae4a9ed8db3fe5a44dcc61a14af
Java
vacation99/CurrencyWithGif
/src/main/java/com/daniil/currencyWithGifs/Controllers/Feign/API_Openexchangerates.java
UTF-8
521
1.867188
2
[]
no_license
package com.daniil.currencyWithGifs.Controllers.Feign; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; @FeignClient(name = "API-1", url = "https://openexchangerates.org") public interface API_Openexchangerates { @GetMapping("/api/latest.json?app_i...
true
b612d6a864e5b795c783c6154fafab7055a53d01
Java
BenBohannon/CS-2340-Project
/src/main/java/data/concretesources/StoreRecord.java
UTF-8
2,410
2.171875
2
[]
no_license
package data.concretesources; import model.entity.GameSaveMeta; import javax.persistence.*; /** * Created by brian on 10/29/15. */ @Entity public class StoreRecord { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; @ManyToOne(fetch = FetchType.EAGER) private GameSaveMeta...
true
275c32ef04bb0d73aa59c61c00840231140697a4
Java
savra/Education_projects
/JavaCore/Thinking_in_Java/src/Part10/Lesson7/Class1.java
UTF-8
707
3.484375
3
[]
no_license
package Part10.Lesson7; public class Class1 { private String str = "aaa"; private void function1() { System.out.println("Iam private function1"); } private void function2() { InnerClass1 i = new InnerClass1(); i.functionInner(); } private void function3() { } ...
true
9cd6f4f9d9b0c7ab837d58b61f53fd62be781984
Java
darknessitachi/saasovation
/saasovation-ddd/src/main/java/com/abigdreamer/infinity/ddd/media/Link.java
UTF-8
2,366
2.859375
3
[ "Apache-2.0" ]
permissive
package com.abigdreamer.infinity.ddd.media; public class Link { private String href; private String rel; private String title; private String type; public Link(String anHref, String aRel) { this(anHref, aRel, null, null); } public Link( String anHref, Stri...
true
f29b80bac8d295ac40e88cf79051616a2fd9c921
Java
adfuhr/JPokemon
/src/gui/Tools.java
UTF-8
7,098
3.015625
3
[]
no_license
package gui; import java.awt.Image; import java.net.URL; import javax.swing.*; import item.*; import pokemon.*; import pokemon.move.Move; public class Tools { static GameWindow game; static MessageView messages; /** * Generates a notify window, with the specified icon * * @param i...
true
acb9b33cdb721730fc12f3d04f17ddef162a80f1
Java
szwork2013/Test
/mobile/android/common/src/com/kaikeba/common/util/InputMethodControl.java
UTF-8
1,764
2.46875
2
[]
no_license
package com.kaikeba.common.util; import android.app.Activity; import android.content.Context; import android.util.Log; import android.view.View; import android.view.inputmethod.InputMethodManager; import com.kaikeba.ContextUtil; /** * 软件盘控制器 * Created by sjyin on 14-9-4. */ public class InputMethodControl { p...
true
57f142bf8bdbb0100f44124e607eabc9ac822c80
Java
Andy5am/RadioED
/src/RadioImp.java
UTF-8
2,668
3
3
[]
no_license
public class RadioImp implements Radio { private boolean state; private boolean frecuency; private double station; private double[] buttonAM = new double[12]; private double[] buttonFM = new double[12]; public RadioImp(){ this.state = false; this.frecuency = true; this...
true
a5203fb896bb10f094af4012e0dd2deccd4c65fe
Java
Aaron145/changgou
/changgou-parent/changgou-web/changgou-search-web/src/main/java/com/robod/controller/SkuSearchWebController.java
UTF-8
2,279
2.078125
2
[ "Apache-2.0" ]
permissive
package com.robod.controller; import com.robod.entity.SearchEntity; import com.robod.feign.SkuEsFeign; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import...
true
9dd9544ce6022fa5caf277ba7f28a923d0081ef3
Java
jack-zdl/spring-boot
/cyp-cpi/cpi-base/src/main/java/com/ceying/chx/cpi/base/rm/organization/controller/OrganizationController.java
UTF-8
2,397
2.0625
2
[]
no_license
package com.ceying.chx.cpi.base.rm.organization.controller; import com.alibaba.fastjson.JSONObject; import com.ceying.chx.cpi.base.exception.ParamException; import com.ceying.chx.cpi.base.rm.organization.service.OrganizationService; import com.ceying.chx.cpi.base.util.response.RespJson; import io.swagger.annotations.A...
true
810a02f39e783288994eda48a8ae911019f9a085
Java
DaniilMuntyan/CameraFactoryMediator
/src/main/java/kpi/trspo/restapp/entities/employees/Technician.java
UTF-8
311
2.25
2
[]
no_license
package kpi.trspo.restapp.entities.employees; import lombok.Data; import lombok.NoArgsConstructor; import java.util.Random; import java.util.UUID; @Data @NoArgsConstructor public final class Technician{ private UUID id; private String name; private String surname; private String phone; }
true
76a62de3a7fc4b38edc13b89033d63850afa5c90
Java
muhammadnizami/UTS-IF4073
/app/src/main/java/nizami_13512501/UTS/LetterDetect/LetterDetector.java
UTF-8
636
2.765625
3
[]
no_license
package nizami_13512501.UTS.LetterDetect; /** * Created by nim_13512501 on 18/10/16. */ public abstract class LetterDetector { abstract public boolean detect(boolean [][] skeleton); /**helper methods yang mungkin dibutuhkan berbagainya*/ public int scanNumVerticalLines(boolean [][] skeleton, int y){ ...
true
c93a2896488bf4368e2ecd6d132130afec6b2404
Java
PideroAntonio80/BookingExam
/app/src/main/java/com/svalero/bookingexam/feature/room/RoomPresenter.java
UTF-8
844
2.1875
2
[]
no_license
package com.svalero.bookingexam.feature.room; import com.svalero.bookingexam.data.models.Hotel; import com.svalero.bookingexam.data.models.Room; import java.util.ArrayList; public class RoomPresenter implements RoomContract.Presenter { private RoomContract.View vista; private RoomModel roomModel; publi...
true
5e2127766b67b2eea2a9cc9748671392f305cc11
Java
sergueik/springboot_study
/basic-springboot-java-grafana-json-datasource/src/main/java/example/domain/GrafanaQuery.java
UTF-8
1,632
1.921875
2
[]
no_license
package example.domain; // import lombok.Getter; // import lombok.NoArgsConstructor; // import lombok.Setter; import org.springframework.data.domain.Range; import java.util.List; // @NoArgsConstructor // @Getter // @Setter public class GrafanaQuery { String dashboardId; String panelId; String timez...
true
c8584a82021ca19836b49d7f9fcde79e8233713f
Java
lonelycat519/leetcode-java
/climbStairs.java
UTF-8
337
2.859375
3
[]
no_license
public class Solution { public int climbStairs(int n) { if(n<=2) return n; int step_n1 = 1; int step_n2 = 2; for(int i=3; i<=n; i++){ int temp = step_n2; step_n2 = temp + step_n1; step_n1 = temp; } return ...
true
f931b99da3621036b1cb74cfd9e86b31712759b5
Java
leeiter/Navy
/Navy/src/main/java/com/biz/navy/service/ProductImgService.java
UTF-8
232
1.664063
2
[]
no_license
package com.biz.navy.service; import java.util.List; import com.biz.navy.domain.ProductImgVO; public interface ProductImgService { public List<ProductImgVO> selectAll(); public ProductImgVO findByPImgSeq(long p_img_seq); }
true
417d1de63339e74f0d2819d935982ff05b92e852
Java
Antonina1/java_utk
/sandbox/src/main/java/ru/stqa/utk/sandbox/Simple.java
UTF-8
496
3.25
3
[ "Apache-2.0" ]
permissive
package ru.stqa.utk.sandbox; /** * Created by Tonya on 26.10.2017. */ public class Simple { public static boolean isSimple(int n) { for (int i = 2; i < n; i++) { if (n % i == 0){ return false; } } return true; } public static boolean isSimpleFast(int n) { i...
true
fb41ed022e1cd17f506bdc0ab4f9026127295d81
Java
ChengLongAndroid/MyPlayer
/app/src/main/java/com/example/administrator/myplayer/MainActivity.java
UTF-8
8,214
1.695313
2
[]
no_license
package com.example.administrator.myplayer; import android.Manifest; import android.annotation.TargetApi; import android.app.LoaderManager; import android.content.Loader; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.support.annotation.NonNull; import andro...
true
a007f7dd126e70c07111a48cefb92d7b0fa176cf
Java
hipposareevil/books
/images.java/mybooks_common/src/main/java/com/wpff/common/util/TimeIt.java
UTF-8
600
3.109375
3
[]
no_license
package com.wpff.common.util; import java.util.Date; /** * Util to do timing. * * Example: * <code> * TimeIt timer = TimeIt.mark(); * // do some work * System.out.println(timer.done("done with work"); * // results in "done with work 135ms." * </code> */ public class TimeIt { private long start = 0L...
true
92b5ddaa914134ab85c860469f027e6df3a5dabc
Java
EchoChe/DesignPatterns
/SimpleFactoryPattern/SimpleFactoryPatternSrc/test/java/SimpleFactoryTest.java
UTF-8
508
2.953125
3
[]
no_license
package test.java; import static org.junit.Assert.*; import org.junit.Test; import junit.framework.Assert; import main.java.Factory; import main.java.Product; public class SimpleFactoryTest { @Test public void test() { Factory factory = new Factory(); Product paProduct = factory.createProduct("A"); Product...
true
b38dc1ba5ffa4c605cdee1f6b2dc022dc2a18028
Java
sunli7758521/yy_admin
/ruoyi-admin/src/main/java/com/ruoyi/web/controller/sysusersystem/JzHiddenPlanController.java
UTF-8
7,518
1.679688
2
[ "MIT" ]
permissive
package com.ruoyi.web.controller.sysusersystem; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.constant.CoommonConstants; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enu...
true
ddde5ade4a9f69016e7850a99d9f4df9b95a301a
Java
ksksks2222/pl-workspace
/dzpw/dzpw-dealer-client/src/main/java/hg/dzpw/dealer/client/dto/scenicspot/ScenicSpotDTO.java
UTF-8
1,153
2.078125
2
[]
no_license
package hg.dzpw.dealer.client.dto.scenicspot; import java.util.List; import hg.dzpw.dealer.client.common.BaseDTO; /** * @类功能说明: 入盟的景区 * @公司名称:浙江汇购科技有限公司 * @部门:技术部 * @作者:chenys * @创建时间:2014-11-10 下午4:26:50 * @版本:V1.0 */ @SuppressWarnings("serial") public class ScenicSpotDTO extends BaseDTO { ...
true
1ebad84ec2f7b25bd43c3061ea8e8cfa536b66a3
Java
iwabuchiken/ShoppingList
/src/sl/listeners/dialog/DialogButtonOnClickListener.java
UTF-8
24,362
1.789063
2
[]
no_license
package sl.listeners.dialog; import java.util.Calendar; import sl.items.PS; import sl.items.ShoppingItem; import sl.main.R; import sl.main.RegisterItemActv; import sl.utils.CONS; import sl.utils.DBUtils; import sl.utils.Methods; import sl.utils.Methods_dlg; import sl.utils.Methods_sl; import sl.utils.Tag...
true
41e64eed967bacab70bcef1f1e12fd6eb64c7519
Java
HanaNazmy/SIC-XE-Assembler
/src/sample/PhaseII.java
UTF-8
7,225
2.53125
3
[]
no_license
package sample; import java.util.ArrayList; public class PhaseII { public static void pass2(ArrayList<Line> l) { for (int i = 0; i < l.size(); i++) { if (l.get(i).opcode.equalsIgnoreCase("start")) { int totalLength = 0; for (Line j : l) totalLength += j.length; System.out.print("H"...
true
be09f9d383a39cb6c39339fc20fb6805bce1a94b
Java
martinezmatias/GenPat-data-C3
/eclipseswt_cluster/26081/src_1.java
UTF-8
29,220
1.953125
2
[]
no_license
package org.eclipse.swt.widgets; /* * Copyright (c) 2000, 2002 IBM Corp. All rights reserved. * This file is made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html */ import org.eclipse.swt.internal....
true
cfc86a513b490d4e86ce4dd526f49a895b71dae6
Java
18luohann/TESTHBM
/hbm/be/src/test/java/com/hginfo/hbm/be/dao/test/TestGroupUserDao.java
UTF-8
979
1.78125
2
[]
no_license
/* * Project Name:hbm-be. * File Name:TestGroupUserDao.java * Package Name:com.hginfo.hbm.be.dao.test * Date:2017年02月14日 下午5:07:22 * Copyright (c) 2016, hongguaninfo.com All Rights Reserved. * */ package com.hginfo.hbm.be.dao.test; import com.hginfo.hbm.base.entity.test.TestGroupUserPK; import com.hginfo.hbm.be...
true
fa282abbabcc1c3f5b53c64dc100120dbae03161
Java
nokeedev/gradle-native
/subprojects/language-base/src/main/java/dev/nokee/language/base/SourceView.java
UTF-8
1,443
2.0625
2
[ "Apache-2.0" ]
permissive
/* * Copyright 2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
true
5b147c8165decf9d78b6ff8c9a9d99a88b987943
Java
koha26/kr2015
/src/LoginCommand.java
UTF-8
1,170
2.84375
3
[]
no_license
import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class LoginCommand extends Command{ private String login,password; public LoginCommand(String login,String password)...
true
498b9cefdc78ec621167786bf50779e853fb1485
Java
SerchLS/PrograAvanzada
/Poli_Bike/src/poli_bike/Ventana2.java
UTF-8
18,106
2.0625
2
[]
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 poli_bike; import com.panamahitek.ArduinoException; import java.awt.Dimension; import java.util.logging.Level; import java.uti...
true
fa4730fbd638a0cc3912f2c0a0afc62a522ae401
Java
Biryong3419/jaryosil_web
/ServletCh012_4.MultiFileUploadEx/src/org/comstudy21/myapp/jaryo/JaryoCommandFactory.java
UTF-8
942
2.578125
3
[]
no_license
package org.comstudy21.myapp.jaryo; import org.comstudy21.myapp.command.Command; public class JaryoCommandFactory { private static JaryoCommandFactory instance = new JaryoCommandFactory(); private JaryoCommandFactory() { } public static JaryoCommandFactory getInstance() { if (instance == null) { ...
true
8e44a38d16e4ea341ae490b11a1cd60e9d73b322
Java
martaSpadoni/ProjectSD
/WebService/src/main/java/rabbitMQ/Emitter.java
UTF-8
1,077
2.8125
3
[]
no_license
package rabbitMQ; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFactory; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.concurrent.TimeoutException; public class Emitter { private static final String EXCHAN...
true
a77fa69a3078ab9cc9cfacdee3e490856e428ddb
Java
shawnmckinney/apache-fortress-demo
/src/main/java/com/mycompany/LoginPage.java
UTF-8
556
2.15625
2
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
/* © 2023 iamfortress.net */package com.mycompany; /** * Since the Java EE container performs authentication, this wicket page simply sets the response page to wicket * application home page. If Java EE security session has timed out, the container will direct request to its configured login form: /login/login....
true
f168c21a68a1efa09c7a8afe2fb067e90d9d2fd5
Java
moutainhigh/jzy
/src/main/java/com/kaisa/kams/components/utils/TimeUtils.java
UTF-8
5,190
2.5625
3
[]
no_license
package com.kaisa.kams.components.utils; import com.kaisa.kams.components.view.loan.Duration; import org.apache.commons.lang3.StringUtils; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.time.*; import java.time.format.DateTimeFormatter; import java.time.t...
true
b07550152caa15628dbaccfe501c83e190dea631
Java
SSICreative83/CoreJavaCoding
/src/course_designPattern/iterator/ArrayList.java
UTF-8
1,277
3.34375
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 Course_DesignPatterns.Iterator; import Course_DesignPatterns.Iterator.Collection; /** * * @author huijun */ public class Ar...
true
26583f454d6c3ae6ee4a34ab49b78006b6b8ec17
Java
karendk/IceCream
/app/src/main/java/com/makus/icecream/IceCream.java
UTF-8
701
2.6875
3
[ "MIT" ]
permissive
package com.makus.icecream; /* Created by Karen on 15/12/2016. bungkus=2000 small=12000 jumbo=20000 */ public class IceCream { private int rasa,topping; public IceCream(){ this.rasa=0; this.topping=0; } public IceCream(int rasa){ this.rasa=rasa; } public IceCream...
true
5929c959109d4371dbbbd5c03754af845920eb18
Java
ins-vib/DAW-M3-UF4-POO-GuessNumber
/src/joc/GuessNumber.java
UTF-8
3,510
3.828125
4
[]
no_license
package joc; import java.util.Random; /* * @author Ramon Cervera * @version 1 * Classe GuessNumber * Classe que encapçula el joc d'endevinar un número * En aquesta versió bàsica, l'ordinador genera un número aleatori que * l'usuari ha d'endevinar. Per cada número que l'usuari vol comprovar, l'ordin...
true
70365254ee0b5b27258f90e7ef9a309a08d117de
Java
vkostyukov/codeforces
/java/CF164B.java
UTF-8
1,071
3.125
3
[]
no_license
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.StringTokenizer; public class CF164B { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter out = ...
true
50735813de8bf6a51e4748e96f82fe0b4581f31f
Java
LeeladharBK/fitbit_oauth2
/src/main/java/com/fitbit/model/sleep/Levels.java
UTF-8
888
2.015625
2
[]
no_license
package com.fitbit.model.sleep; import com.google.gson.annotations.SerializedName; import javax.annotation.Generated; import java.util.List; @Generated("net.hexar.json2pojo") @SuppressWarnings("unused") public class Levels { @SerializedName("data") private List<Datum> mData; @SerializedName("shortData"...
true
b60297d282627eed8483e5fb6f5f228576640e91
Java
yijl/College
/CSProjects/CMPSC250/Lab3/Bubble.java
UTF-8
1,295
4.0625
4
[]
no_license
/*** * YOUR NAME, LAB #, PROBLEM #, DATE, DESCRIPTION OF PROGRAM, INCLUDING * INSTRUCTIONS ON ITS INPUT, OUTPUT, AND PURPOSE. */ public class Bubble { // Generate random arrays of many sizes and sort them. public static void main(String[] args) { for (int n = 500; n <= 20000; n+=500) { ...
true
711b9b300e47935b452c780973f7d7c22a746c5e
Java
trackcc/cwgsapp
/app/src/main/java/com/isoftstone/finance/cwgsapp/external/imageloader/SmartImage.java
UTF-8
225
1.898438
2
[]
no_license
package com.isoftstone.finance.cwgsapp.external.imageloader; import android.content.Context; import android.graphics.Bitmap; public abstract interface SmartImage { public abstract Bitmap getBitmap(Context paramContext); }
true
4073fb46fdf30bff7962a9e7ba5decb39b74a43c
Java
Durgesh2398/ArrayList
/SearchElementSortedArray.java
UTF-8
819
3.4375
3
[]
no_license
package arrayListQuestion; import java.util.Scanner; public class SearchElementSortedArray { public static void main(String[] args) { // TODO Auto-generated method stub SearchElementSortedArray ob = new SearchElementSortedArray(); Scanner sc =new Scanner(System.in); int n=sc.nextInt(); int arr[]=new int[n...
true
e18d02a468b0499e90a542727297106fbbb70d15
Java
nishantautomationlabs/interview-problems
/src/main/java/com/nal/leetcode/string/MultiplyStrings.java
UTF-8
1,262
3.734375
4
[]
no_license
package com.nal.leetcode.string; /** * Created by nishant on 06/02/20. * 43. Multiply Strings * Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. * Example 1: * Input: num1 = "2", num2 = "3" * Output: "6" * Example 2: * Inpu...
true
540998d7ace4a46148f8385bf0d5a65618c187ca
Java
jakartaee/jaf-api
/api/src/main/java/jakarta/activation/MimeTypeEntry.java
UTF-8
1,232
2.25
2
[ "BSD-3-Clause", "Classpath-exception-2.0", "W3C", "GPL-2.0-only", "Apache-2.0", "OFL-1.1", "LicenseRef-scancode-public-domain", "EPL-2.0", "LicenseRef-scancode-generic-export-compliance", "MIT", "EPL-1.0", "GPL-1.0-or-later", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* * Copyright (c) 1997, 2023 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * SPDX-License-Identifier: ...
true
c6af4874ec9e1652d9624a90fc7e064a3d037b15
Java
santhu161194/mpam
/src/org/medplus/assetmanagementcore/utils/AssetAllocation.java
UTF-8
695
2.578125
3
[]
no_license
package org.medplus.assetmanagementcore.utils; import java.util.HashMap; import java.util.Map; public enum AssetAllocation { Allocated("A"), DeAllocated("D"); public String value; private static final Map<String, AssetAllocation > lookup = new HashMap<String, AssetAllocation >();...
true
a7fd207be67d9bc136ccda38be121eb109570fcf
Java
William23Martin/EstructurasDatosJava
/TADs/src/ListaRecursiva/ListaRecursivaException.java
UTF-8
173
2.0625
2
[]
no_license
package ListaRecursiva; @SuppressWarnings("serial") public class ListaRecursivaException extends Exception { public ListaRecursivaException(String e){ super(e); } }
true
5e08177e3bafedd7bcb4d623d007f6116b3eb43f
Java
lantian0314/BlueMediaPlayer
/app/src/main/java/com/blue/mediaplayer/ui/activity/SplashActivity.java
UTF-8
2,092
2.203125
2
[]
no_license
package com.blue.mediaplayer.ui.activity; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.MotionEvent; import android.view.WindowManager; impor...
true
5a30ac57237f245d875efc1c118fe7db45af7fe9
Java
Lunaticf/cola
/cola-core/src/main/java/cola/serialization/jdk/JdkSerializer.java
UTF-8
1,026
2.625
3
[]
no_license
package cola.serialization.jdk; import cola.serialization.Serializer; import java.io.*; /** * @author lcf * @date 2020-01-17 23:33 */ public class JdkSerializer implements Serializer { @Override public <T> byte[] serialize(T obj) throws IOException { try ( ByteArrayOutputStream bao...
true
790c173177cd8f69501aafdbb0f4941e15f82a4a
Java
shedaniel/RoughlyEnoughItems
/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/basewidgets/ButtonWidget.java
UTF-8
12,762
1.78125
2
[ "MIT", "Apache-2.0" ]
permissive
/* * This file is licensed under the MIT License, part of Roughly Enough Items. * Copyright (c) 2018, 2019, 2020, 2021, 2022, 2023 shedaniel * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Sof...
true
1ef6ba18010afaa89e840b643e66e8a1676685e8
Java
Duckulus/HGLaborKitAPI2.0
/src/main/java/de/hglabor/plugins/kitapi/kit/kits/LumberjackKit.java
UTF-8
2,245
2.484375
2
[ "MIT" ]
permissive
package de.hglabor.plugins.kitapi.kit.kits; import de.hglabor.plugins.kitapi.KitApi; import de.hglabor.plugins.kitapi.kit.AbstractKit; import de.hglabor.plugins.kitapi.kit.events.KitEvent; import de.hglabor.plugins.kitapi.kit.settings.IntArg; import de.hglabor.plugins.kitapi.player.KitPlayer; import org.bukkit.Materia...
true
c5633764bce469422b2ab05e22de9af6958a4743
Java
evbedarev/JavaAlgorithmsAndStruct
/src/main/java/listing6/exponentiation/StackExp.java
UTF-8
596
3.609375
4
[]
no_license
package listing6.exponentiation; public class StackExp { int nElm; int top = -1; private ElmExponetiation[] theArray; public StackExp(int nElm) { this.nElm = nElm; theArray = new ElmExponetiation[nElm]; } public void push(ElmExponetiation element) { theArray[++top] = e...
true
eb3101af6fce5c3a9c405e25e6dfc8dffc8c3346
Java
gianmsouza/orange-talents-06-template-ecommerce
/src/main/java/br/com/zupacademy/gian/mercadolivre/compartilhado/EnviaEmailFake.java
UTF-8
1,997
2.484375
2
[ "Apache-2.0" ]
permissive
package br.com.zupacademy.gian.mercadolivre.compartilhado; import org.springframework.stereotype.Component; import org.springframework.web.util.UriComponentsBuilder; import br.com.zupacademy.gian.mercadolivre.produto.compra.Compra; import br.com.zupacademy.gian.mercadolivre.produto.pergunta.Pergunta; @Component publ...
true
75550ed8bb8373ffc549d8e9610aa8911629bc21
Java
lipanpan03/myindex
/src/main/java/cn/edu/thu/dquality/back/utility/DQDataIterator.java
UTF-8
436
2.25
2
[]
no_license
package cn.edu.thu.dquality.back.utility; public interface DQDataIterator { /** * get names of all columns */ String[] getColsName(); /** * get the index of the timestamp column */ int getTimeColIndex(); /** * get the index of all numeric columns */ int[] getNume...
true
d3f280bca90cd62865d759f719a4671dc084ccee
Java
wangyu1021/FD
/FD/src/main/java/com/fd/service/impl/RoleServiceImpl.java
UTF-8
2,346
2.15625
2
[]
no_license
package com.fd.service.impl; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.fd.dao.RoleDao; import com.fd.pojo.Permission; import com.fd.pojo.Role; import com.fd.service...
true
1358bf1ca0b9f7dc7185c90534e76eedd6694da0
Java
lfmendivelso10/GescoFinal
/MTCFlow/Gesco-MTCFlow/src/Linux/LinuxFactory.java
UTF-8
1,437
1.796875
2
[ "MIT" ]
permissive
/** */ package Linux; import org.eclipse.emf.ecore.EFactory; /** * <!-- begin-user-doc --> * The <b>Factory</b> for the model. * It provides a create method for each non-abstract class of the model. * <!-- end-user-doc --> * @see Linux.LinuxPackage * @generated */ public interface LinuxFactory extends EFactor...
true
c23ed2491fb329e655e72a9fb25104e4b74b9b4c
Java
BlueMeanie1/Diderot
/Diderot/src/SystrayTest.java
UTF-8
1,055
2.8125
3
[]
no_license
import java.awt.AWTException; import java.awt.Image; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class SystrayTest { static Image image = Toolkit.getDefaultToolkit().getImage("icon.bmp"); static Tra...
true
218a34911c170a13eb10d973d9778c91b6300a8e
Java
yonghuazhang/enhance-kafka-client
/src/main/java/org/apache/kafka/clients/enhance/consumer/DefaultMessageFilter.java
UTF-8
953
2.359375
2
[]
no_license
package org.apache.kafka.clients.enhance.consumer; import org.apache.kafka.clients.enhance.AbstractExtMessageFilter; import org.apache.kafka.clients.enhance.ExtMessage; import org.apache.kafka.common.header.Headers; import java.util.Collection; import java.util.regex.Pattern; public class DefaultMessageFilter<K> ext...
true
5025dd42f0d8772d464906607b90710fbe9baf42
Java
KDDI-tech/SdlSamplePh2
/SdlSamplePh2/app/src/main/java/com/kddi_tech/sd4/sdlsamplev2/RssAsyncReader.java
UTF-8
6,487
2.28125
2
[ "Apache-2.0" ]
permissive
/** Copyright 2018 KDDI Technology Corp. 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,...
true
e5949e74e5cf24dc0aa35f3add3496a208f61616
Java
stvliu/jmix-ui
/ui/src/main/java/io/jmix/ui/component/impl/EntityComboBoxImpl.java
UTF-8
14,903
1.632813
2
[ "Apache-2.0" ]
permissive
/* * Copyright 2019 Haulmont. * * 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...
true
9e525193e57d481bb369c26007557764e9e2a847
Java
Antgor1997/Epam-Base
/epam_base_tasks/src/Flowers.java
UTF-8
892
2.5
2
[]
no_license
/* Каждый цветок в цветочном магазине характеризуется названием, ценой за единицу и количеством. Список названий – фиксирован. Написать программу формирования букета, цена которого будет максимальной, не превышающей указанное значение. При неоднозначности ответа вывести все возможные варианты. Дополнительно: • общее ко...
true
d307c29646a91bbee1dd9d86db734b06ad9105ac
Java
nickboen/nick-pipeline
/src/test/java/org/gradle/PipelineTest.java
UTF-8
3,288
2.46875
2
[]
no_license
package org.gradle; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; public class PipelineTest { @Before public void setUp() throws Exception { } @After public...
true
ccaf2654ac8fc0b9c183c7c70deeb9fc524f2bfa
Java
zbyhit/lighten_mini_project
/src/com/tencent/kopm/service/UserService.java
GB18030
1,375
2.40625
2
[]
no_license
package com.tencent.kopm.service; import com.tencent.kopm.model.User; public interface UserService { /** * ˵жûǷ * userName * أûڣtrueûڣfalse * Authorfirminli */ public boolean userNameValid(String userName); /** * ˵ûעᣬͬʱɼ * userNamepassWordscore * أûעɹtrueûעʧܣfalse * Authorfirminli */ public...
true
8089b0790abcea09680bfe52a65d1fff089214ea
Java
Vanitas123/StudySamplePrograms
/src/examples/vanita/programs/TechgigPalindrome.java
UTF-8
2,114
3.984375
4
[]
no_license
package examples.vanita.programs; import java.util.HashMap; import java.util.Iterator; import java.util.Map; /* * * Palindrome Length (100 Marks) GeekGoddess Screening test Raja loves Strings.In Strings he specially loves palindromes. Palindromes are strings that read the same when read forward or backwards. Here ...
true
ef6f57bf20ea211b5e5d808239321f1b8695c3c6
Java
reganwsxdy/NiuAndLI_1
/src/com/company/meituan/Solution.java
UTF-8
1,053
2.875
3
[]
no_license
package com.company.meituan; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Map; public class Solution {//36% public static void main(String[] args) throws IOException { BufferedReader bf = new BufferedReader(new Inpu...
true
156ada7ac18ca870bcd3ef7dbc401cfc98e63540
Java
avsitu/ECS140hw3
/Part6/Matrix.java
UTF-8
2,625
3.296875
3
[]
no_license
class Matrix extends Sequence { int row, col; Sequence matrix; Sequence rows, columns; public Matrix(int rowsize, int colsize) { row = rowsize; col = colsize; matrix = new Sequence(); for(int i = 0; i < row*col; i++) { //1D matrix functioning as 2D matrix Element item = new MyInteger(0...
true
375618af89f9ac80abc6570a6f85f95a5ebd313c
Java
Akiranya/TownyPortal
/src/main/java/co/mcsky/townyportal/TownyPortal.java
UTF-8
5,233
2.015625
2
[]
no_license
package co.mcsky.townyportal; import co.aikar.commands.PaperCommandManager; import co.mcsky.moecore.text.Text; import co.mcsky.moecore.text.TextRepository; import co.mcsky.townyportal.data.ShopModelDatasource; import co.mcsky.townyportal.data.ShopModelFileHandler; import co.mcsky.townyportal.data.TownModelDatasource; ...
true
4316d021593bb61c62644ad3120d09a16e801358
Java
jana335637/DataStructuresAlgo
/src/MaximumTipCalculator.java
UTF-8
1,903
3.484375
3
[]
no_license
import java.util.*; public class MaximumTipCalculator { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Total Orders:"); int totalOrders = in.nextInt(); System.out.println("X Orders:"); int x = in.nextInt(); System.ou...
true
6d62bd134ea7d72a61f0f01642036c2f484076de
Java
zx3869785/-
/src/main/java/com/oldwang/dao/UserDao.java
UTF-8
308
1.992188
2
[]
no_license
package com.oldwang.dao; import com.oldwang.dao.entity.User; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.sql.SQLException; @Repository public interface UserDao { int exist(@Param("username")String username); User login(User user); }
true
84041974f3551367db12f3d4c5dea2443ffd1cf9
Java
BaggaShivanshu2/hybris-bookstore-tutorial
/hybris/bin/ext-accelerator/acceleratorservices/src/de/hybris/platform/acceleratorservices/order/dao/AcceleratorConsignmentDao.java
UTF-8
1,164
1.851563
2
[ "MIT" ]
permissive
/* * [y] hybris Platform * * Copyright (c) 2000-2016 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * li...
true
c86d68a0a625f61f4e93922eef4f93db18e003ae
Java
shibing624/similarity
/src/main/java/org/xm/similarity/sentence/editdistance/ChunkEditUnit.java
UTF-8
1,179
2.84375
3
[ "Apache-2.0" ]
permissive
package org.xm.similarity.sentence.editdistance; public class ChunkEditUnit extends EditUnit { private SuperString<? extends EditUnit> chunk = null; public ChunkEditUnit(SuperString<? extends EditUnit> chunk) { this.chunk = chunk; } @Override public String getUnitString() { return chunk.toString(); } /*...
true
83e154112809c9f106fa0a33fb59bac13cf79ccf
Java
mukulbichkar19/Personal-Practice
/Data Structures in Java/FindLengthofLL.java
UTF-8
1,776
3.734375
4
[]
no_license
public class FindLengthofLL{ private static int findLengthRecursively(ListNode temp){ if(temp == null){ return 0; } return 1+findLengthRecursively(temp.next); } private static int findLengthIterative(ListNode head){ ListNode temp = head; int len = 0; while(temp!=null){ len+...
true
b5241562322990fa9963c27e513dacd10590c6ae
Java
jonliu6/Programming
/JSF2Demo/src/main/java/org/freecode/demo/faces/EscapableMessageRender.java
UTF-8
1,807
2.4375
2
[]
no_license
package org.freecode.demo.faces; import java.io.IOException; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.context.ResponseWriter; import javax.faces.context.ResponseWriterWrapper; import com.sun.faces.renderkit.html_basic.MessageRenderer; /** * The class ove...
true
80f7d471ade563ea4f776efbce889de26f0d569f
Java
pavantyagi/data-prep
/dataprep-backend-common/src/main/java/org/talend/dataprep/transformation/actions/common/ActionFactory.java
UTF-8
1,629
2.234375
2
[ "Apache-2.0" ]
permissive
package org.talend.dataprep.transformation.actions.common; import static org.talend.dataprep.api.preparation.Action.Builder.builder; import java.util.HashMap; import java.util.Map; import org.talend.dataprep.api.preparation.Action; import org.talend.dataprep.transformation.actions.category.ScopeCategory; import org....
true
b3e80aad2dda60a5066b987d197b22d1e81ce9df
Java
ytzggq/autoTest
/Chapter/src/main/java/com/curse/testng/paramter/DataProviderTest.java
UTF-8
1,031
2.90625
3
[]
no_license
package com.curse.testng.paramter; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import java.lang.reflect.Method; /* * 这个也是参数化 * * */ public class DataProviderTest { @Test(dataProvider = "data") public void testDataProvider(String name ,int age){ System.out.println...
true
35a44d82f4c2730b954cc1541c81c952fd4f3f7c
Java
Kapilp96/climbing-stairs-app
/src/main/java/com/climbingstairs/service/StridesService.java
UTF-8
143
1.84375
2
[]
no_license
package com.climbingstairs.service; public interface StridesService{ int returnStridesRequired(String[] flights, int stepsPerStride); }
true
e39dad32de7ccf99c8acfe813700fab0e47b0c11
Java
shangkai112138/pinyougou335
/parent335/pinyougou-service-buyer/src/main/java/cn/itcast/core/service/order/OrderServiceImpl.java
UTF-8
5,469
2.203125
2
[]
no_license
package cn.itcast.core.service.order; import cn.itcast.core.dao.item.ItemDao; import cn.itcast.core.dao.order.OrderDao; import cn.itcast.core.dao.order.OrderItemDao; import cn.itcast.core.entity.PageResult; import cn.itcast.core.pojo.cart.Cart; import cn.itcast.core.pojo.item.Item; import cn.itcast.core.pojo.order.Ord...
true
d7ca26ed5ee80c31f7b50bc6d15ad2282377f5b7
Java
Pradeeparumugam/mongorepo-jparepo
/customermgt-jparepo/src/main/java/com/dxctraining/customermgt/service/CustomerServiceImpl.java
UTF-8
990
2.34375
2
[]
no_license
package com.dxctraining.customermgt.service; import java.util.Optional; import javax.transaction.Transactional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.dxctraining.customermgt.dao.CustomerDao; import com.dxctraining.customermgt.entitie...
true
4eb26954d2b7da26c9116b4df00dc19f8d85a093
Java
krzysiekrosner/StreamsVsCollectionsJMH
/streams-vs-collections/src/main/java/com/guidewire/Ex0_SeqSteamVsFor_PrimitiveInt_NoJMH.java
UTF-8
1,351
3.46875
3
[]
no_license
package com.guidewire; import java.util.Arrays; import java.util.Random; public class Ex0_SeqSteamVsFor_PrimitiveInt_NoJMH { private static int[] createArrayOfRandomInts() { int[] randomInts = new int[50000]; Random ran = new Random(); for (int i = 0; i < randomInts.length; i++) { ...
true
11dbc935889913eb455dca922663df67cacc0ff8
Java
dongfang233/douban
/liuhaoranjava/DoubanDAO/src/douban/dao/Movie_TypeesDAOMSImpl.java
UTF-8
2,980
2.59375
3
[]
no_license
package douban.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import java.util.ArrayList; import java.util.List; public class Movie_TypeesDAOMSImpl extends DAOBase implements Movie_TypeesDAO{ private static final String CREATE_MOV...
true
e714cbb5b93b7a97f9d96bd45556206de7e85877
Java
SOFTRE/labi_admin
/src/main/java/com/labi/modular/biz/controller/OrderPayReportController.java
UTF-8
3,544
1.921875
2
[]
no_license
package com.labi.modular.biz.controller; import com.baomidou.mybatisplus.plugins.Page; import com.labi.common.annotion.Permission; import com.labi.common.constant.Const; import com.labi.common.constant.factory.PageFactory; import com.labi.common.controller.BaseController; import com.labi.core.shiro.ShiroKit; import co...
true
7f32cf8ad5ff116d8abcbbc5256d0f21a2b17cd4
Java
BulkSecurityGeneratorProject/platform-backend
/src/main/java/com/pwrstd/platform/backend/model/key/UserConnectionId.java
UTF-8
934
2.203125
2
[]
no_license
package com.pwrstd.platform.backend.model.key; import org.springframework.social.connect.ConnectionKey; import javax.persistence.Column; import javax.persistence.Embeddable; import java.io.Serializable; @Embeddable public class UserConnectionId implements Serializable { @Column(name = "providerid") private ...
true
101187e864c2ef4225fc5cbeec1f1f2932c4f5c2
Java
dateofrock/simple-sqs
/src/main/java/com/dateofrock/aws/simplesqs/JobProducer.java
UTF-8
1,939
2.09375
2
[ "Apache-2.0" ]
permissive
/* * Copyright 2012 Takehito Tanabe (dateofrock at gmail dot com) * * 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 b...
true
7cc950f718cbcb8b395b5180b27155725ece3970
Java
joaopsilvam88/POO-SistemaAGLA
/JUnit/DataBase2Test.java
UTF-8
3,816
2.734375
3
[]
no_license
package bd2; import static org.junit.Assert.*; import java.util.List; import javax.swing.ImageIcon; import org.junit.Test; import exception.*; import object.*; public class DataBase2Test { @Test // OK public void testSalvarAluno() { DataBase1 d = new DataBase1(); fail("TUDO OK - salva...
true
6c9355e7bea131c148e63742f7bf944c9cd2e23e
Java
hhstkh/springboot
/src/main/java/com/example/springboot/service/impl/GenericServiceImpl.java
UTF-8
904
2.265625
2
[]
no_license
package com.example.springboot.service.impl; import java.io.Serializable; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Service; import com.example.springboot.service.GenericService; @Service public abstract class GenericServiceImpl<E, K extends Serializa...
true
ceeb86d29c567ebf8d4a359078e09f1c34f715c3
Java
Mojang/DataFixerUpper
/src/main/java/com/mojang/datafixers/optics/Wander.java
UTF-8
477
2.109375
2
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. package com.mojang.datafixers.optics; import com.mojang.datafixers.FunctionType; import com.mojang.datafixers.kinds.App; import com.mojang.datafixers.kinds.Applicative; import com.mojang.datafixers.kinds.K1; public interfa...
true
49ecc4285b6fd55679a4a7422154d9f530fdf1af
Java
smhx/S5-CS
/unit2/2.1/StevenMai_215.java
UTF-8
512
3.09375
3
[]
no_license
import java.util.Scanner; public class StevenMai_215 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(), totSum = 0, indexSum=0; int[] x = new int[N]; for (int i = 0; i < N; ++i) { x[i] = scan.nextInt(); to...
true