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
575fea54c863f85a3b3090b242a34a4362e75227
Java
kim7272/training-solutions
/src/main/java/week02d05/Languages.java
UTF-8
407
3.15625
3
[]
no_license
package week02d05; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Languages { public static void main(String[] args) { List<String> programs = Arrays.asList("Java", "Phython", "JavaScript"); for (String program : programs){ if (program.lengt...
true
a956e650a1b015b8ee7aaed7fa4d5d949e74394b
Java
swathi-swa/general-programs
/pattern4.java
UTF-8
251
2.953125
3
[]
no_license
class pattern4 { public static void main(String[]args) { int a=5; for(int i=a;i>0;i--) { for(int j=0;j<a;j++) { if(j<(a-i)) { System.out.print(" "); } else { System.out.print("*"); } } System.out.println(""); } } }
true
e876371108ba5d5c189671fbbd1fb385cb4011d3
Java
cha63506/CompSecurity
/Music-Audio/mixboxer_source/src/com/flurry/android/fc.java
UTF-8
2,228
1.835938
2
[]
no_license
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.flurry.android; import android.app.Activity; import android.content.Context; import android.content.res.Resources; import android.ut...
true
14f302772070bb631f0a980b2fd095ed3c423950
Java
wsapiens/CodeChallenge
/src/main/java/com/verizon/PerThreadFormatter.java
UTF-8
765
3.109375
3
[]
no_license
package com.verizon; import java.text.DateFormat; import java.text.SimpleDateFormat; public class PerThreadFormatter { private static final ThreadLocal<SimpleDateFormat> dateFormatHolder = new ThreadLocal<SimpleDateFormat>() { /* * initialValue() is called */ @Override protected SimpleDateFormat initial...
true
956fb4d9e150099aa06d27eb3adb1edcfbe946c1
Java
tapirus/codesamples
/Java/com/bgs/fc/domain/WebosApplication.java
UTF-8
501
1.648438
2
[]
no_license
package com.bgs.fc.domain; /** * * @actionscript.class * managed = true * */ import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.Table; import com.bgs.fc.mappedsuperclass.WebosApplicationBase; @Entity @Table(name="fe_webos_application") public class WebosApplication extend...
true
8ef8b5e68081bbd2cb687e2d0f0d4fbe3f831164
Java
jonny-ddns/java-test
/java_basic01/j20210616_inheritance_Interface/absractTest/family/Student.java
UTF-8
223
2.140625
2
[]
no_license
package java_basic01.j20210616_inheritance_Interface.absractTest.family; import java_basic01.j20210616_inheritance_Interface.absractTest.Korean; public abstract class Student extends Korean { abstract void study(); }
true
316fdd594d8b1a0c21ea5450465b6f17577097a6
Java
maeii426/avalanche
/src/TestApplications/Test/app/src/main/java/booyah/test/NFLModel.java
UTF-8
3,198
2.890625
3
[]
no_license
package booyah.test; /** * Created by Christine Russell on 4/16/16. */ import java.util.ArrayList; import static java.lang.System.out; public class NFLModel { private String user; private String season; ArrayList<String> home = new ArrayList<String>(); ArrayList<String> away = new ArrayList<Strin...
true
56513c7c5d16ccb2a1c2e06cc327155d788255b3
Java
AntGarSil/FlipMotor
/src/java/jms/MessageReceiver.java
UTF-8
1,100
2.40625
2
[]
no_license
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package jms; /** * * @author root */ import java.util.Enumeration; import javax.jms.*; public class MessageReceiver { private JMSConnectionFactory messageConnection; public MessageReceiver() { } private JMSC...
true
52953d310506026d7fdb70b11aed9214c683cd59
Java
STAMP-project/Cling-application
/results/cling/time-org.joda.time.DateTimeZone-org.joda.time.format.FormatUtils-14/org/joda/time/DateTimeZone_ESTest.java
UTF-8
17,993
1.96875
2
[]
no_license
/* * Tue Mar 03 18:09:01 GMT 2020 */ package org.joda.time; import org.junit.Test; import org.junit.Ignore; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import java.util.Locale; import java.util.TimeZone; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.Ev...
true
52ec6673454a498f5f792acfa96525b92a9db861
Java
JoandersonG/PersonalProjects
/EclipseProjects/ExercicioFixacao/src/entities/ContaCorrente.java
UTF-8
5,281
3.1875
3
[]
no_license
package entities; public class ContaCorrente { private int numeroConta; private int digitoVerificador1; private int digitoVerificador2; private int agencia; private int grauConta; private double saldo; private double limite; private boolean atividade; public ContaCorrente(int numer...
true
929716da42fa839418055b550301a50bd955ea9c
Java
yanzj/okdeer-jxc-web
/src/main/java/com/okdeer/jxc/controller/goods/GoodsSelectController.java
UTF-8
34,288
1.5
2
[]
no_license
/** *@Project: okdeer-jxc-web *@Author: yangyq02 *@Date: 2016年8月3日 *@Copyright: ©2014-2020 www.okdeer.com Inc. All rights reserved. */ package com.okdeer.jxc.controller.goods; import com.alibaba.dubbo.config.annotation.Reference; import com.alibaba.fastjson.JSON; import com.fasterxml.jackson.datab...
true
8d60b58a204c9f11f7cf2beb6efa5ccbd34fea89
Java
lkqm/disque4j
/src/main/java/com/github/lkqm/disque/spring/DisqueProperties.java
UTF-8
1,118
2.21875
2
[]
no_license
package com.github.lkqm.disque.spring; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import java.io.Serializable; import java.util.Map; import static com.github.lkqm.disque.spring.DisqueProperties.PREFIX; /** * 配置类 */ @Data @ConfigurationProperties(PREFIX) public ...
true
a57847d3b987bbe52bc3ac3425240017dc6a48b1
Java
MacKittipat/mac-design-pattern
/src/test/java/com/mackittipat/designpattern/creational/factoryMethod/FactoryTest.java
UTF-8
536
3.046875
3
[]
no_license
package com.mackittipat.designpattern.creational.factoryMethod; import org.junit.Assert; import org.junit.Test; public class FactoryTest { @Test public void test() { Vehicle vehicle = VehicleFactory.getVehicle("car"); Assert.assertEquals("Car beep", vehicle.beep()); vehicle = Vehicle...
true
05ee7a08dc3853039d8ec432b804b542a2ddc0c0
Java
wufanguitar/ECVmall
/vmall-core/src/main/java/com/frank/vmall/delegates/bottom/ItemBuilder.java
UTF-8
835
2.0625
2
[]
no_license
package com.frank.vmall.delegates.bottom; import android.content.ClipData; import com.joanzapata.iconify.widget.IconTextView; import java.util.LinkedHashMap; /** * Created by Administrator on 2017/9/1 0001. */ public final class ItemBuilder { private final LinkedHashMap<BottomTabBean, BottomItemDelegate> ITE...
true
2a6471fa76af4e9d3b0575406cf5a32cfd3138f1
Java
bellmit/jhj-parent
/jhj-utils/src/main/java/com/meijia/utils/DateUtil.java
UTF-8
20,315
3.109375
3
[]
no_license
package com.meijia.utils; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.List; public class DateUtil { public static final...
true
b380c046c2a6047cb706d2c691cf828713e6ada5
Java
lilydove/FragmentBasics
/app/src/main/java/layout/HeadlinesFragment.java
UTF-8
1,764
2.484375
2
[]
no_license
package layout; import android.app.Activity; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.ListFragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ListView; import android.widget.TextView; impor...
true
83bd480aa82d96b4902536175a49d1b1721d155a
Java
globalmentor/confound
/config/src/main/java/io/confound/config/ManagedConfiguration.java
UTF-8
5,248
2.390625
2
[]
no_license
/* * Copyright © 2018 GlobalMentor, Inc. <https://www.globalmentor.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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unles...
true
cdf5832e553f1381691e1eb3f3f88abb87b97fe9
Java
MicaXu/D2018126-Mybatis-01
/src/main/java/com/ssm/test/MainTest.java
UTF-8
1,885
2.390625
2
[]
no_license
package com.ssm.test; import com.ssm.domain.Student; import com.ssm.mapper.StudentMapper; import com.ssm.page.PageBean; import org.junit.Before; import org.junit.Test; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import java.util.Li...
true
512f34781c7b99fdf9ec1fc95cc0f02c2f595f03
Java
victortwin/JavaRushTasks_5
/2.JavaCore/src/com/javarush/task/task17/task1721/Solution.java
UTF-8
1,777
3.0625
3
[]
no_license
package com.javarush.task.task17.task1721; import java.beans.Transient; import java.io.*; import java.util.ArrayList; import java.util.List; /* Транзакционность */ public class Solution { public static List<String> allLines = new ArrayList<String>(); public static List<String> forRemoveLines = new ArrayList...
true
7496689d73fa7ebd8b6f3a0666bbcb2e6e06feb7
Java
dhirajn72/allmylocalstuff
/spring/spring/ExternalizingBeanProperty/src/com/spring/beans/client/Test.java
UTF-8
504
1.84375
2
[]
no_license
package com.spring.beans.client; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.spring.beans.DSBeans; import com.spring.beans.DriverClass; public class Test { public static void main(String[] args) { ApplicationContext ...
true
fbe17533e31d3e278e2b1933409c2702c2a40c0c
Java
jianghan200/wxsrc6.6.7
/app/src/main/java/com/google/android/gms/analytics/internal/ac.java
UTF-8
6,501
1.789063
2
[]
no_license
package com.google.android.gms.analytics.internal; import android.text.TextUtils; import com.google.android.gms.common.internal.w; import java.util.HashSet; import java.util.Set; public final class ac { private final q aHe; private volatile Boolean aHf; private String aHg; private Set<Integer> aHh; prote...
true
5eafaa3362bad4826d9242e27cb1e456bf07ff98
Java
lzjyzq2/AOP-Demo
/src/main/java/cn/settile/lzjyzq2/ioc/utils/BeanUtil.java
UTF-8
3,300
2.578125
3
[ "Apache-2.0" ]
permissive
package cn.settile.lzjyzq2.ioc.utils; import cn.settile.lzjyzq2.ioc.annotation.Autowired; import cn.settile.lzjyzq2.ioc.annotation.Component; import cn.settile.lzjyzq2.ioc.core.Property; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.util.ArrayLi...
true
e67575a122bbbf16a01ee7b5afdae2069b729323
Java
daemonsoft/docker-compose-tarea2
/back/app/domain/services/buildingattendantutil/BuildingCalendar.java
UTF-8
181
1.929688
2
[ "CC0-1.0" ]
permissive
package domain.services.buildingattendantutil; import java.time.LocalDate; public interface BuildingCalendar { Boolean isSaturdayToday(); LocalDate getCurrentDate(); }
true
9ab5f319d5b38471a44b176a9076835cf6185d08
Java
PAPYmoujo2104/JEE-project
/players-app/src/main/java/com/example/players/TeamList.java
UTF-8
875
2.5
2
[]
no_license
package com.example.players; import java.util.ArrayList; import java.util.List; public class TeamList { private static final List<Team> teamList = new ArrayList(); private TeamList(){ } static{ teamList.add(new Team("G2", PlayerService.searchPlayers("G2"),"EUW","2015-10-15","GrabbZ ")); ...
true
e180fc45121287239623bdd10775b4ef42bcfc01
Java
Legendary998/ddup
/src/main/java/com/xf/web/common/LogMessageTypeEnum.java
UTF-8
771
2.96875
3
[]
no_license
package com.xf.web.common; /** * 操作日志TypeCode,TypeName枚举类型 * @author Administrator * */ public enum LogMessageTypeEnum { MESSAGE("message", 0), EXCEPTION("exception", 1); /** * 成员变量 */ private String name; private int value; /** * 构造函数 * @param name * @param value */ LogMessageTypeEnum(String n...
true
c0b0f18a74119f814f44073ee2d8399d70e685ba
Java
ACristinaG/Projetos
/src/projeto02_08_21/exercicio3.java
UTF-8
554
3.59375
4
[]
no_license
package projeto02_08_21; import java.util.Scanner; public class exercicio3 { public static void main(String[] args) { Scanner entrada = new Scanner(System.in); int tempo, horas, minutos, segundos; System.out.println("Quanto tempo em segundos o evento durou ? "); tempo = entrada.nextInt(); horas =...
true
504f7fb9f433627c2a19654995fef14ab4ba9e54
Java
rexlNico/OldJavaProjects
/RexlUnity/src/de/rexlUnity/Listeners/JumpAndRunnSigns.java
ISO-8859-3
1,393
2.359375
2
[]
no_license
package de.rexlUnity.Listeners; import org.bukkit.Bukkit; import org.bukkit.block.Sign; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.Action; import org.bukkit.event.block.SignChangeEvent; import org.bukkit.event.player.PlayerInte...
true
2f367d0e88dfa7880438b5a7fb7661757feee095
Java
HelgaLis/alg_course
/AlgCourse/src/findUnion/QuickUnion.java
UTF-8
686
3.0625
3
[]
no_license
package findUnion; public class QuickUnion implements IFindUnion { private int[] id; public QuickUnion(int N) { id = new int[N]; for(int ind = 0; ind<id.length; ind++) id[ind] = ind; } private int root(int i) { while(i!=id[i]){ i=id[i]; } ...
true
4d7bfba14b69cc28a35afc8efaff06d3f7811c2b
Java
marco-c/gecko-dev-wordified-and-comments-removed
/third_party/libwebrtc/sdk/android/src/java/org/webrtc/NativeLibrary.java
UTF-8
786
2
2
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
package org . webrtc ; class NativeLibrary { private static String TAG = " NativeLibrary " ; static class DefaultLoader implements NativeLibraryLoader { Override public boolean load ( String name ) { Logging . d ( TAG " Loading library : " + name ) ; System . loadLibrary ( name ) ; return true ; } } private static Obje...
true
2643f2a1c0fc0266bc92df3b078a16c3127bb8b3
Java
Kablion/Golf-Without-Friends
/core/src/de/kablion/golf/actors/entities/Entity.java
UTF-8
12,878
2.515625
3
[]
no_license
package de.kablion.golf.actors.entities; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Pixmap; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch; import com.badlogic.gdx.graphics.g2d.TextureRegion; im...
true
bba15d737c479c8f823e4645553c027809343cf9
Java
newAlatheer/Shop-peak
/app/src/main/java/com/alatheer/shop_peak/Adapter/Profile_verticalAdapter.java
UTF-8
3,741
2.140625
2
[]
no_license
package com.alatheer.shop_peak.Adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.alatheer.shop_peak.Model.HomeModel; import com.alatheer.shop_peak.Model.Item; import com.alatheer.shop_peak.R; import java.util.List; import...
true
c5b7df3582414831b737939461f2648685198f72
Java
godarmed/UN_Submarine
/starters/global/src/main/java/com/eseasky/submarine/core/starters/global/utils/excelUtil/impl/TxtWriter.java
UTF-8
2,580
2.625
3
[]
no_license
package com.eseasky.submarine.core.starters.global.utils.excelUtil.impl; import com.eseasky.submarine.core.starters.global.utils.excelUtil.IFileWriter; import com.eseasky.submarine.core.starters.global.utils.excelUtil.IFileWriter; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import j...
true
5e105da4760b1a812450ee37576fad0485c83b93
Java
bellmit/sk-shop
/business-center/src/main/java/ordercenter/services/BackGoodsService.java
UTF-8
7,073
2.3125
2
[]
no_license
package ordercenter.services; import common.exceptions.AppBusinessException; import common.services.GeneralDao; import common.utils.Money; import common.utils.page.Page; import ordercenter.dtos.BackApplyForm; import ordercenter.models.*; import org.apache.commons.lang3.StringEscapeUtils; import org.apache.commons.lang...
true
13642d8e8dd22c9af1a67b5cc45d47c9370cdb24
Java
Zhandos-Hello-World/Introduction-to-Java
/Chapter_23/Exercise23_10/Exercise23_10.java
UTF-8
281
2.234375
2
[]
no_license
/* (Heap visualization) Write a program that displays a heap graphically, as shown in Figure 23.10. The program lets you insert and delete an element from the heap. */ import javafx.application.Application; public class Exercise23_10{ public static void main(String[]args){ } }
true
8af4c8b52d6703aafcdcdc548daaa7d2c9770386
Java
luotianwen/yy
/sf-data-migration/src/main/java/com/shifeng/service/mall/impl/BrandServiceImpl.java
UTF-8
616
2.125
2
[]
no_license
package com.shifeng.service.mall.impl; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.shifeng.dao.BaseDao; import com.shifeng.entity.mall.Brand; import com.shifeng.service.mall.BrandService; @Service("brandService") public class BrandServiceImpl i...
true
a1fcbebdf7852ad5f0740ca9efe8971f46683c64
Java
Grzesiaczek/Jolka-server
/src/main/java/pl/wasowski/jolka/JolkaApplication.java
UTF-8
306
1.523438
2
[]
no_license
package pl.wasowski.jolka; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class JolkaApplication { public static void main(String[] args) { SpringApplication.run(JolkaApplication.class, args); } }
true
cb10992ca69fbc3932d4617282cdeff8d933ce58
Java
gambol/chunqingaikan
/smali/com/twocloooo/c.java
UTF-8
23,343
1.789063
2
[]
no_license
package com.twocloooo; class c { void a() { int a; a=0;// .class public Lcom/twocloooo/c; a=0;// .super Landroid/widget/LinearLayout; a=0;// a=0;// a=0;// # instance fields a=0;// .field public a:Z a=0;// a=0;// .field b:Landroid/widget/ImageView; a=0;// a=0;// .field c:Landroid/widget/TextView; a=0;// a=0;// .fie...
true
7e265947fdbdad07ccef3b92726223869d1e3610
Java
jillali-hajjaj/HLIN505
/ModelisationMaven/src/main/java/TD6/Exo2/NatureEtape.java
UTF-8
106
1.703125
2
[]
no_license
package TD6.Exo2; public enum NatureEtape { musee, visiteMonument, visiteJardin, lieuInteretSansVisite; }
true
5319d5040c44912a1da912769dd53f59f4508d00
Java
mayben0t/Netty_3_login
/src/main/java/com/example/netty/Server/ServerLoginHandler.java
UTF-8
1,934
2.3125
2
[]
no_license
package com.example.netty.Server; import com.example.netty.deSerializerUtil.DecodeUtil; import com.example.netty.deSerializerUtil.impl.FastJsonDecodeUtil; import com.example.netty.model.LoginModel; import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBufAllocator; import io.netty.channel.ChannelHandlerContext; i...
true
039c69729813501b8dc22dddc601b467919af47e
Java
Azure/azure-sdk-for-java
/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java
UTF-8
2,526
1.992188
2
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-or-later", "CC0-1.0", "BSD-3-Clause", "UPL-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "LicenseRef-scancode-generic-cla" ]
permissive
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.synapse.models.StateValue; impo...
true
07f3c9c08fc0a9e651eceb60493cb4078d7862cc
Java
uday0907/PrintCalendar
/src/CalendarConsole.java
UTF-8
2,035
3.765625
4
[]
no_license
import java.util.Calendar; import java.util.GregorianCalendar; import java.util.Scanner; public class CalendarConsole { public static void main(String[] args) { String months[] = {"January","February","March","April","May","June","July","August","September","October","November","December"}; String days[] = {"S...
true
25e993851944cd9a218b6b4b13791384722254a2
Java
MasumCse2k12/video_blog_app
/src/main/java/com/rokomari/videoapp/authentication/service/CustomAuthenticationDetailSource.java
UTF-8
731
2.125
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 com.rokomari.videoapp.authentication.service; import org.springframework.security.authentication.AuthenticationDetailsSource; ...
true
c5f54927f625bffdac0518b65cebcff5216d876e
Java
dyckia/leetcode
/Solutions/145-binary-tree-postorder-traversal/lc-145-two-stacks.java
UTF-8
701
3.15625
3
[]
no_license
class Solution { public List<Integer> postorderTraversal(TreeNode root) { Stack<TreeNode> nodesToAdd = new Stack<>(); Stack<TreeNode> postOrder = new Stack<>(); List<Integer> res = new ArrayList<>(); if (root == null) return res; nodesToAdd.push(root); ...
true
c791f20e2329c2350549d65517579cc9491bcdc7
Java
wangdongsong/hadoop
/src/main/java/com/wds/dataalgorithms/markovspark/MarkovSpark.java
UTF-8
5,726
2.625
3
[]
no_license
package com.wds.dataalgorithms.markovspark; import com.wds.dataalgorithms.util.DateUtil; import org.apache.commons.lang.StringUtils; import org.apache.spark.api.java.JavaPairRDD; import org.apache.spark.api.java.JavaRDD; import org.apache.spark.api.java.JavaSparkContext; import scala.Tuple2; import java.io.Serializab...
true
f5d1eaafe5e8d7b19e78c4bea4b950ae613bdf5b
Java
Mark-Yun/zumun_client
/customerClient/src/main/java/com/mark/zumo/client/customer/view/permission/PermissionFragment.java
UTF-8
4,287
2.140625
2
[]
no_license
/* * Copyright (c) 2018. Mark Soft - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential */ /* * Copyright (c) 2018. Mark Soft - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary ...
true
4ebc9445a3ce926a826cfd903022894456999a06
Java
apache/opennlp
/opennlp-tools/src/main/java/opennlp/tools/ml/maxent/quasinewton/LineSearch.java
UTF-8
10,375
2.5
2
[ "Apache-2.0", "MIT", "BSD-3-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 may ...
true
4bfcd767c0c1f3c6a050447c07646b3644c4d2bf
Java
taruncha/GymLocatorAndBooking_Group_04_May2021
/GymLocator/src/main/java/com/gym/GymLocator/service/UserService.java
UTF-8
336
1.828125
2
[]
no_license
package com.gym.GymLocator.service; import java.util.List; import com.gym.GymLocator.entity.Booking; import com.gym.GymLocator.entity.User; public interface UserService { public void saveUser(User user); public List<Booking> getBookingID(int userId); public User getUserList(int uid); public User getLoginUser(...
true
384a20a015da7fde684c434efafd08cbaea2a80d
Java
itsBen/hdm-wim-fallstudie-cep-spark
/src/main/java/de/hdm/wim/pubsub/Helper/TopicHelper.java
UTF-8
3,452
2.578125
3
[]
no_license
package de.hdm.wim.pubsub.Helper; import com.google.cloud.ServiceOptions; import com.google.cloud.pubsub.spi.v1.PagedResponseWrappers; import com.google.cloud.pubsub.spi.v1.TopicAdminClient; import com.google.pubsub.v1.ListTopicsRequest; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Topic; impor...
true
407c768e426b9a6b14478c92d21a3254793e182c
Java
daisyligf/mofang-feed
/src/main/java/com/mofang/feed/logic/web/impl/FeedSysUserRoleLogicImpl.java
UTF-8
7,048
2.078125
2
[]
no_license
package com.mofang.feed.logic.web.impl; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.json.JSONArray; import org.json.JSONObject; import com.mofang.feed.component.UserComponent; import com.mofang.feed.global.ResultValue; import com.mofang.feed.glo...
true
3bca66fc646e4806fe1a5691c9505a5d8afd1d8f
Java
AdamVincent90/Ball-Maze-Game
/CSY1018AS2/src/CBallMaze.java
UTF-8
54,664
3.0625
3
[]
no_license
/** Program: Assignment 2: Application – Ball Maze Filename: CBallMaze.java @author: © Adam Vincent Course: BEng/BSc/HND Computing Year 1 Module: CSY1020 Problem Solving & Programming Tutor: Gary Hill @version: 2.0 Incorporates Artificial Intelligence! Date: 16/04/18 */ // These are th...
true
6f5e81569482a87788e0d15bb084e3037ae30193
Java
firis-games/YuzuKizuFlower
/src/main/java/firis/yuzukizuflower/common/event/OreGenHandler.java
UTF-8
3,668
2.0625
2
[]
no_license
package firis.yuzukizuflower.common.event; import firis.yuzukizuflower.YuzuKizuFlower.YuzuKizuBlocks; import firis.yuzukizuflower.common.world.dimension.DimensionHandler; import firis.yuzukizuflower.common.world.generator.WorldGenMinableAlfheim; import net.minecraft.init.Blocks; import net.minecraftforge.event.t...
true
6f5631931c030cd21323e8e608355368172391ee
Java
lepesevichnikita/workrest
/domain/src/main/java/org/klaster/domain/model/entity/Skill.java
UTF-8
1,732
2.15625
2
[]
no_license
package org.klaster.domain.model.entity; import com.fasterxml.jackson.annotation.JsonBackReference; import java.io.Serializable; import java.util.LinkedHashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Gene...
true
d5106cd577f0c1836ebe2810fc5e04f1009f2c9c
Java
wjfang/grimoires
/Grimoires/src/uk/ac/soton/ecs/grimoires/test/rdf/BusinessLogicTestCase.java
UTF-8
2,718
2.09375
2
[ "BSD-3-Clause" ]
permissive
/* * Created on 25-Jan-2006 * */ package uk.ac.soton.ecs.grimoires.test.rdf; import uk.ac.soton.ecs.grimoires.proxy.GrimoiresProxy; import uk.ac.soton.ecs.grimoires.proxy.bl.GrimoiresBusinessLogicProxyFactory; import uk.ac.soton.ecs.grimoires.server.impl.rdf.InquireRequest; import uk.ac.soton.ecs.grimoire...
true
0e56e93b63bc37863713952cd0ce3b9251582421
Java
sajeer-nooh/pacbot
/api/pacman-api-compliance/src/main/java/com/tmobile/pacman/api/compliance/repository/model/SystemConfigurationIdentity.java
UTF-8
3,204
2
2
[ "Apache-2.0" ]
permissive
/******************************************************************************* * Copyright 2018 T Mobile, Inc. or its affiliates. All Rights Reserved. * * 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 * o...
true
a59f4292b4f668bb832a2d90976fab0e84d6db38
Java
heirenheiren/SpringHibernate
/src/main/java/com/springhibernate/hibernateUtils/HibernateConfig.java
UTF-8
867
2.140625
2
[]
no_license
package com.springhibernate.hibernateUtils; import javax.annotation.Resource; import org.hibernate.SessionFactory; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.orm.hibernate5.LocalSessionFactoryBean; @Configuratio...
true
a3b8783a3e8a414bd64cb9fe5d5a0ad510ece46e
Java
cckmit/Craftsman
/Craftsman/src/com/tcode/system/service/impl/SysRoleMenuServiceImpl.java
UTF-8
2,254
2.171875
2
[]
no_license
package com.tcode.system.service.impl; import java.util.List; import javax.annotation.Resource; import org.apache.log4j.Logger; import org.springframework.stereotype.Component; import com.tcode.system.dao.SysRoleMenuDao; import com.tcode.system.model.SysRoleMenu; import com.tcode.system.service.SysRoleMe...
true
4deb20d3d41c62c06cb88c1b52f52a46c32d0265
Java
dnyaneshwardake/microservicesdesign
/userservice/src/main/java/com/dnyanesh/userservice/config/SpringFoxConfig.java
UTF-8
1,538
1.898438
2
[]
no_license
package com.dnyanesh.userservice.config; import java.util.Collections; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.env.Environment; import sprin...
true
017ee944da23c2f9b1a6facc79635820be901d28
Java
codehaus-cargo/cargo
/core/api/generic/src/main/java/org/codehaus/cargo/generic/deployable/DefaultDeployableFactory.java
UTF-8
7,275
1.953125
2
[]
no_license
/* * ======================================================================== * * Codehaus Cargo, copyright 2004-2011 Vincent Massol, 2012-2023 Ali Tokmen. * * 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 cop...
true
897a0b993db36ac1817402b67b17d3983c28b457
Java
baizhuanqianhui/slg
/sl-core/src/main/java/com/slj/core/exception/Message.java
UTF-8
360
1.898438
2
[]
no_license
package com.slj.core.exception; import java.io.Serializable; /** * @author tingis13 * @date 2013-10-16 * @version 1.0 */ public interface Message extends Serializable{ public abstract String getDefaultMessage(); public abstract boolean hasDefaultMessage(); public abstract String getMessageKey(); ...
true
0ff9934d920ec40ad8900acc358305b09eae97ed
Java
binduwavell/alf-dev-helper
/customizations/alf-dev-helper-repo-amp/src/main/java/net/wavell/bootstrap/BootstrapDeveloperGroup.java
UTF-8
1,501
2.09375
2
[]
no_license
package net.wavell.bootstrap; import org.alfresco.repo.module.AbstractModuleComponent; import org.alfresco.service.cmr.security.AuthorityService; import org.alfresco.service.cmr.security.AuthorityType; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; class BootstrapDeveloperGroup e...
true
72df912c32ebebd484443c59e98343590a4553f1
Java
Soumyajeet07/Hotel
/src/entity/Guest.java
UTF-8
692
2.8125
3
[]
no_license
package entity; import java.util.*; public class Guest { private int id; private String name; public Guest() { } public Guest(int id,String name) { this.id=id; this.name=name; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; }...
true
8a4e0141297659ce3f6a7ff6c265e6a55a34518b
Java
trzciniakus/Java-course
/src/CH7/OOPChallenge/DeluxeBurger.java
UTF-8
461
3.25
3
[]
no_license
package CH7.OOPChallenge; public class DeluxeBurger extends Hamburger{ public DeluxeBurger(String breadRollType, String meat, double basePrice) { super(breadRollType, meat, basePrice); super.chooseAdditions(true, true, false, false); } @Override public void chooseAdditions(boolean ch...
true
c42b5fb7608ac90be32ed9f439199b903c324dbf
Java
andrema13/Self-Assessment-Tests---Java
/SelfAssessmentTests/src/QuestionNumeric.java
UTF-8
1,934
3.265625
3
[]
no_license
/* * Nome: André Filipe Neto Martins * Número: 8180483 * Turma: T2 */ import interfaces.models.IQuestionNumeric; public class QuestionNumeric extends Question implements IQuestionNumeric { /** * Constructor for this class * @param title title of question numeric * @param question_description q...
true
5ed9b7abe46f4d68d06153123e42b4440f3ed2fa
Java
song-yeji/DollarProject
/src/hs/mirim/HanjayaActivity.java
UHC
1,992
2.328125
2
[]
no_license
package hs.mirim; import java.util.ArrayList; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.wi...
true
300e4f5f7db46246c14ba3eaa1a48312f3a06ce4
Java
xiapengyu/shjdev
/back/fast-admin/src/main/java/com/yunjian/modules/automat/service/DistributorService.java
UTF-8
482
1.570313
2
[]
no_license
package com.yunjian.modules.automat.service; import com.yunjian.common.utils.PageUtils; import com.yunjian.modules.automat.entity.DistributorEntity; import java.util.Map; import com.baomidou.mybatisplus.extension.service.IService; /** * <p> * 经销商信息 服务类 * </p> * * @author laizhiwen * @since 2019...
true
90aa86328f62a7cee5772f93d202f3e4e424de8c
Java
yunfang/grilDare
/famlinkFrame/src/main/java/com/famlink/frame/mvp/presenter/drawlayout/DrawtViewPersenterImpl.java
UTF-8
1,806
2.3125
2
[]
no_license
package com.famlink.frame.mvp.presenter.drawlayout; import com.famlink.frame.R; /** * Created by wangkai on 16/6/15. */ public class DrawtViewPersenterImpl implements DrawPresenter { private DrawViewInterface mDrawView; public DrawtViewPersenterImpl(DrawViewInterface mDrawView) { this.mDrawView = ...
true
ac4f690c643d93633b07a65d9de0b182b60e9ca5
Java
EEdgarG/Como-programar-en-java
/Capitulo14/Cap14 - 14 Ejercicio 14.16 Defina sus propios metodos de String/src/IndexOf.java
UTF-8
1,890
3.640625
4
[]
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. */ /** * * @author EEdgarG <eedduardo33@gmail.com> * @date Jun 21, 2020 * @time 12:33:44 PM */ public class IndexOf { private S...
true
d4f074cbe5da70f9405e97c858f0003b9565f5c1
Java
BigNewbi/mobileSafe
/src/com/example/mobilesafe/activitys/BaseActivity.java
UTF-8
2,140
2.28125
2
[]
no_license
package com.example.mobilesafe.activitys; import com.example.mobilesafe.R; import android.app.Activity; import android.os.Bundle; import android.support.v4.view.GestureDetectorCompat; import android.util.Log; import android.view.GestureDetector; import android.view.MotionEvent; import android.view.View; public abst...
true
7778d113e528c852c3d3b0f20f82cf22537dbd3d
Java
DJPAUL2001/SpeakingForNature
/src/Tree.java
UTF-8
2,151
3.4375
3
[]
no_license
import processing.core.PImage; /** * Contains all the characteristics and properties of an animal in general for the purposes of the * P04 Carrot Patch project. Implements the GUIListener interface. * * @author Dhruba */ public class Tree implements GUIListener { protected static NatureGame processing...
true
2ed5a5ebfed57d9b2696ce3a86e1234e9df13f8e
Java
sombremachine/graduation
/src/main/java/com/topjava/graduation/service/UserService.java
UTF-8
711
1.859375
2
[]
no_license
package com.topjava.graduation.service; import com.topjava.graduation.data.User; import com.topjava.graduation.service.request.RequestUserTo; import com.topjava.graduation.service.response.UserTo; import java.util.List; public interface UserService { // List<User> test(); UserTo create(RequestUserTo reques...
true
c107ac2dfdd53abb281d37416f5fda90bc2a1c1b
Java
Ahmedelbaroudi/arielkiell.wixsite-interview
/src/main/java/pages/Home_Page.java
UTF-8
610
2.09375
2
[]
no_license
package pages; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; public class Home_Page extends Page_Base_one { public Home_Page(WebDriver driver) { super(driver); // TODO Auto-generated constructor stub } @FindBy(xpath = "//*[@id=\"c...
true
c14497c6b0f089db2a806cfbd7734703ad7f1e51
Java
GiovaniGuizzo/HITO
/src/hyperheuristics/algorithm/SPEA2Hyperheuristic.java
UTF-8
15,918
1.914063
2
[]
no_license
// NSGAII.java // // Author: // Antonio J. Nebro <antonio@lcc.uma.es> // Juan J. Durillo <durillo@lcc.uma.es> // // Copyright (c) 2011 Antonio J. Nebro, Juan J. Durillo // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public Lice...
true
8eca0419f89f943b1d3b5addfcb3ddf7e8a82b48
Java
NaNdalal-dev/Java-Codes
/BubbleSort.java
UTF-8
684
3.59375
4
[]
no_license
class BubbleSort { int[] arr; int temp; BubbleSort(int[] array){ arr=array; } public void getSorted(boolean ascending){ for(int j=arr.length-1; j>0; j-=1){ for(int i=0; i<j; i+=1){ if(arr[i]>arr[i+1]){ //Swap arr[i] = arr[i]^arr[i+1]; arr[i+1] = arr[i]^arr[i+1]; arr[i] = arr[i]...
true
5314dffe0cbddd7228d257e1d07b16100c9608a4
Java
dedelia/Fiska
/src/main/java/p5/model/Company.java
UTF-8
1,432
2.5
2
[]
no_license
package p5.model; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; import java.util.Set; /** * Created by dtristu on 16.12.2016. */ @Entity @Table(name = "company") public class Company { @Id @GeneratedValue(generator = "idIncrementor") @GenericGenerator(name = "idIncreme...
true
c197fca49d66115b6b674b314e8bf6ffc644fd15
Java
zrosko/AS2-PLATFORM-SERVER
/AS2 PLATFORM SERVER/src/hr/as2/inf/server/requesthandlers/rmi/AS2ServerRequestHandlerRmi.java
UTF-8
11,962
2.15625
2
[]
no_license
package hr.as2.inf.server.requesthandlers.rmi; import hr.as2.inf.common.core.AS2Constants; import hr.as2.inf.common.core.AS2Context; import hr.as2.inf.common.data.AS2InvocationContext; import hr.as2.inf.common.data.AS2Record; import hr.as2.inf.common.data.AS2RecordList; import hr.as2.inf.common.exceptions.AS2Ex...
true
d27be6a25d5f119635453f8046d60cd2235bb50c
Java
mondhs/spantus
/externals/integration/springcloud/spnt-applet/src/main/java/edu/mit/csail/sls/wami/applet/sound/ByteFifo.java
UTF-8
3,493
2.59375
3
[]
no_license
/* -*- Java -*- * * Copyright (c) 2008 * Spoken Language Systems Group * MIT Computer Science and Artificial Intelligence Laboratory * Massachusetts Institute of Technology * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (...
true
324d7a8e765ea8a25e9cfa4fb0e53f1f9c9785f6
Java
iyer19archana/freshersbatch-oct16
/JUnit/test/com/sample/ConcatTest.java
UTF-8
796
2.953125
3
[]
no_license
package com.sample; import static org.junit.Assert.assertEquals; import java.util.Arrays; import java.util.Collection; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameter; import org.junit.runners.Parameterized.Pa...
true
cf86c99c5af7a67f1c15cda2e2d87ea1da175050
Java
jeonminhee/Fun_Study_Sunday
/src/com/company/anonymous/AnnoymousDemoAfter.java
UTF-8
588
3.828125
4
[]
no_license
package com.company.anonymous; interface Age2 { int age = 28; void getAge(); } public class AnnoymousDemoAfter { public static void main(String[] args) { /** * 람다식으로 변환 */ int age = 20; Age2 a2 = () -> System.out.println("Age is " + age); a2.getAge(); ...
true
c0456f5c40c8904bacb6cf1dba5a1b2fa3fb388a
Java
MHillier98/PokemonGold-Java
/GameWorld.java
UTF-8
61,731
3.109375
3
[]
no_license
import greenfoot.*; import java.io.FileWriter; import java.nio.file.*; import java.nio.charset.StandardCharsets; import java.util.*; /** * The overworld of the game. * * @author Matthew Hillier * @version 1.0 */ public class GameWorld extends Worlds { //Default world variables private Stri...
true
b8fd943b717a38adcaaf6a34f5566c3abf6aa744
Java
hy529283176/designModel
/src/com/designmode/demo/MediatorTest.java
UTF-8
371
2.15625
2
[]
no_license
package com.designmode.demo; import com.designmode.behaviour.intermediary.mediator.Mediator; import com.designmode.behaviour.intermediary.mediator.MediatorImpl; public class MediatorTest { public static void main(String[] args) { Mediator mediator = new MediatorImpl(); mediator.createMed...
true
b7d116f9d274d32dbb13ff5a107ce7956621334b
Java
MaoSonglin/XYBI
/src/main/java/com/xinyibi/exception/UnreachableException.java
UTF-8
319
2.125
2
[]
no_license
package com.xinyibi.exception; import lombok.Getter; import lombok.Setter; @Setter @Getter public class UnreachableException extends Exception { /** * */ private static final long serialVersionUID = -8638733956505076647L; public UnreachableException(String msg){ super(msg); } private Object data; }
true
48b04f595ce26a505b66984bcef30442a5a4415b
Java
anaz24/DiamondExercise
/src/ahmad/diamond/exercise/test/TestDiamond.java
UTF-8
1,615
2.84375
3
[]
no_license
package ahmad.diamond.exercise.test; import static org.junit.Assert.assertEquals; import org.junit.Test; import ahmad.diamond.exercise.Diamond; public class TestDiamond { private static final String NEW_LINE = "\n"; @Test public void testDiamondWithC() { StringBuilder expectedOutput = new Stri...
true
ccf1e9404029b6b1132e75fa7447e76d709cee5f
Java
hyperledger/besu
/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/privacy/storage/migration/PrivateStorageMigrationException.java
UTF-8
1,206
1.9375
2
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
/* * Copyright ConsenSys AG. * * 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
3371f52b51382a2919cda6477a2a3e12154e3a18
Java
templeblock/DfsxDoc
/bainji/trunk/src/exsample/android/VideoEdit/videoEditUI/src/main/java/dfsx/com/videodemo/adapter/SelectorRecyclerAdapter.java
UTF-8
2,375
2.15625
2
[]
no_license
package dfsx.com.videodemo.adapter; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; import com.dfsx.core.common.adapter.BaseRecyclerViewDataAdapter; import...
true
37fbff1a5ceabfb6014739c1ff602f92897ce6af
Java
heenachitkara/PHEDRS
/src/main/java/edu/uab/registry/dao/impl/GetRoleNamesDaoImpl.java
UTF-8
2,468
2.296875
2
[]
no_license
package edu.uab.registry.dao.impl; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import javax.sql.DataSource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframewor...
true
9077bd0e62d3dacc0472a3c2269cca72c9676232
Java
rocmeister/Ball-World
/src/model/strategy/AUpdateStrategy.java
UTF-8
496
2.625
3
[]
no_license
package model.strategy; import model.Ball; import model.IUpdateStrategy; /** * Very simple abstract class that provides invariant behavior to some IUpdateStrategies. * Simply implements the IUpdateStrategy init method as a no-op. * @param <TMsg> The type of message that the supplied IDispatcher can send. * @autho...
true
a9a6c71e36b5d3d97457d7c06a876366ec72d695
Java
saadabusham/BaitAlKhairat
/app/src/main/java/com/saad/baitalkhairat/ui/adapter/MyInfoAdapter.java
UTF-8
2,250
2.3125
2
[]
no_license
package com.saad.baitalkhairat.ui.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.ViewGroup; import androidx.recyclerview.widget.RecyclerView; import com.saad.baitalkhairat.databinding.CellMyInfoBinding; import com.saad.baitalkhairat.interfaces.RecyclerClickNoData; im...
true
eaa4d515d230cf5d510a158db44a0202697b8db2
Java
nkostyukovich/acctrip
/src/com/dzebsu/acctrip/dictionary/utils/TextUtils.java
UTF-8
1,162
3.15625
3
[]
no_license
package com.dzebsu.acctrip.dictionary.utils; public class TextUtils { /** * returns the string, the first char lowercase * * @param target * @return */ public final static String asLowerCaseFirstChar(final String target) { if ((target == null) || (target.length() == 0)) { return target; // You coul...
true
01581ee408052d8c13e2d86d201b306826a91f7e
Java
liuzhushaonian/Lin15
/app/src/main/java/com/xp/legend/lin15/hooks/IconsHandlerHook.java
UTF-8
6,029
1.835938
2
[ "MIT" ]
permissive
package com.xp.legend.lin15.hooks; import android.app.AndroidAppHelper; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.content.p...
true
498697eb2903b0912e9f6711c0da8c764f286c91
Java
Dfghhj/cola-example-trade
/cola-example-trade-app/src/main/java/top/dfghhj/extension/trade/checkData/addr/TradeCheckAddrDefaultValidationExt.java
UTF-8
358
1.773438
2
[]
no_license
package top.dfghhj.extension.trade.checkData.addr; import com.alibaba.cola.extension.Extension; import top.dfghhj.domain.trade.Trade; /** * 默认校验 */ @Extension(bizId = "trade") public class TradeCheckAddrDefaultValidationExt implements TradeCheckAddrValidationExtPt { @Override public void checkAddr(Trade tra...
true
3f13cbbdad3165983e5599942e88158ac0a584ac
Java
jonghyeShin/framework
/src/main/java/kr/ac/hansung/model/Offer.java
UHC
1,291
2.8125
3
[]
no_license
package kr.ac.hansung.model; public class Offer { int year; int semester; String code; String name; String division; int credit; public Offer() { } public Offer(int year, int semester, String code, String name, String division, int credit) { this.year = year; this.semester = semester; this.code...
true
b3e26015bb181663e99c619af363c8c86edfd8b0
Java
erickespinoza33/sisBibliotecarioApp
/app/models/MapaPK.java
UTF-8
1,253
2.390625
2
[]
no_license
package models; import java.io.Serializable; import javax.persistence.*; /** * The primary key class for the MAPA database table. * */ @Embeddable public class MapaPK implements Serializable { //default serial version id, required for serializable classes. private static final long serialVersionUID ...
true
965d7f1ee3adcca914d0b3cbf3e153a9ff7cc8f0
Java
ahtewlg7/UTimer
/LibAhtewlg7/src/main/java/ahtewlg7/utimer/util/AppInfoAction.java
UTF-8
548
2.03125
2
[]
no_license
package ahtewlg7.utimer.util; import ahtewlg7.utimer.BuildConfig; /** * Created by lw on 2017/9/21. */ public class AppInfoAction { public static final String TAG = AppInfoAction.class.getSimpleName(); public static String getAppName(){ return BuildConfig.APPLICATION_ID; } public static in...
true
873cfbe8f8d253ea92755bdde816516aab7bd199
Java
Kpojluku/Horstmann_tasks
/src/com/Goltsov/Interfaces_and_Lambda_Expressions/task12.java
UTF-8
714
3.6875
4
[]
no_license
package com.Goltsov.Interfaces_and_Lambda_Expressions; import java.io.File; import java.util.Arrays; /* Using the list(FilenameFilter) method of the java.io.File class, write a method that returns all files in a given directory with a given extension. Use a lambda expression, not a FilenameFilter. Which variable from ...
true
b9576442bcd310bb7e7fceefa298bd0792941ac8
Java
oeeen/TIL
/til-code/src/main/java/dev/smjeon/til/batch/ScheduledTask.java
UTF-8
1,976
2.609375
3
[]
no_license
package dev.smjeon.til.batch; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Component public class ScheduledTask { @Scheduled(fixedDelay = 1000L) public void repeatTask() { long currentTime = System.currentTimeMillis(); Thread cu...
true
92b54acdc3e7ae605380a84825417feff908cfea
Java
Rasuram/LeetCode
/src/BSTExample/binaryPatternMatching.java
UTF-8
1,228
3.46875
3
[]
no_license
package BSTExample; import java.util.List; public class binaryPatternMatching { static int getSPatternMatchingSubString(String pattern,String input){ char[] c = input.toCharArray(); String str = ""; for(int i=0;i<c.length;i++){ if(c[i]=='a'||c[i]=='e'||c[i]=='i'||c[i]=='o'|...
true
0db18ae709cdbb7ddbb1b193deec8baf97b84f45
Java
FilipDev/Pastebin-Scraper
/src/org/thespherret/pastebinscraper/Main2.java
UTF-8
381
1.960938
2
[]
no_license
package org.thespherret.pastebinscraper; import org.thespherret.pastebinscraper.scraper.Scraper; import java.io.File; public class Main2 { public static void main(String[] args) { Scraper scraper = new Scraper(true, new File("C:\\Users\\Administrator\\Desktop\\New Test Folder"), ":password", ":minecraft...
true
cc1a60cce5f94bc3647e7d66d2ce3d25f579c67a
Java
matheustavarestrindade/DiscordMinecraftJoinBot
/src/com/matheustt098/discordbot/http/options/RequestMethod.java
UTF-8
367
2.625
3
[]
no_license
package com.matheustt098.discordbot.http.options; public enum RequestMethod { POST("POST"), GET("GET"), PUT("PUT"), DELETE("DELETE"); private final String name; private RequestMethod(String s) { name = s; } public boolean equalsName(String otherName) { return name.equals(otherName); } @Override public...
true
b2980e0a5d3cb8b8f94324f33f7fcf800984b879
Java
artbez/JavaExamples
/ExceptionTest.java
UTF-8
676
3.640625
4
[]
no_license
class MyException extends Exception { int number = 111; public String toString() { return ("Error №" + number); } } class MyOtherException extends Exception { } public class ExceptionTest { static void example(int a) throws MyException, MyOtherException { if (a > 10) throw new MyException(); if (a > 5) ...
true
34faa27f3612742ae06088463545cfb6687200ea
Java
karthikk-developer/HeartRateMonitor
/app/src/main/java/com/samples/heartratemonitor/ScanActivity.java
UTF-8
5,894
1.960938
2
[]
no_license
package com.samples.heartratemonitor; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothManager; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Handler; import android.suppor...
true