hexsha
stringlengths
40
40
size
int64
8
1.04M
content
stringlengths
8
1.04M
avg_line_length
float64
2.24
100
max_line_length
int64
4
1k
alphanum_fraction
float64
0.25
0.97
fce4042c9a61aabf31d8570d692899a234e1cbc4
1,067
package top.niunaijun.blackbox.utils.compat; import java.lang.reflect.Method; import java.util.List; import reflection.android.content.pm.ParceledListSlice; import reflection.android.content.pm.ParceledListSliceJBMR2; public class ParceledListSliceCompat { public static boolean isReturnParceledListSlice(Method ...
32.333333
92
0.677601
6b13c0733065e3f3462f3accc2694f8b61fc4115
1,023
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package tictactoe; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ImageIcon; import javax.swing.JButton; /** * * @author supriyasingh */ public class XOButton extends JBu...
23.25
88
0.57087
040b67fc17446b36b8854644834c9037eff6012b
1,739
package es.rcs.tfm.db.model; import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneId; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Tabl...
23.186667
84
0.780334
47bb66d4a5f873cf89657095b7e7278641748452
2,247
package ilusr.textadventurecreator.statusbars; import java.net.URL; import java.util.ResourceBundle; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.fxml.Initializable; import javafx.scene.control.Label; import javafx.scene.control.ProgressBar; import javafx.scene.layout.AnchorPane; /** * * ...
20.614679
90
0.689809
f0fd3b8af2e3185c10d71d1fa25b2d2874d75868
533
package com.instantappsamples.base; import android.app.Application; import android.util.Log; //import com.example.baselibrary.DebugHelp; /** * Created by zhangyu on 2017/8/22. */ public class InstantApplication extends Application { public InstantApplication() { super(); } @Override publ...
19.035714
56
0.658537
7ff665d9d06a02c15494fe0fb8b682e9d275295d
404
/* * 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 da; import da.medios.medios; import java.util.Collection; /** * * @author Druet Rodriguez */ public interfac...
20.2
80
0.680693
8cc75a62f8490ed856bfbd3da4e16760f69f614b
1,164
package fr.kbertet.lattice.io; /* * ConceptLatticeWriter.java * * Copyright: 2010-2014 Karell Bertet, France * * License: http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html CeCILL-B license * * This file is part of java-lattices, free package. You can redistribute it and/or modify * it under the terms...
26.454545
90
0.728522
d89fb2f00e7a564a37c38cc4e62746e7e50a0824
239
package com.tts.day3; // all interfaces are abstract by default public interface Abstractable { // this method is abstract // we are only defining the return type // the name, and the parameters void abstractMethod(); }
19.916667
43
0.702929
2706450c579a9fff37e5b29f0e606066e3d63c04
5,726
package chav1961.purelib.streams.char2byte.asm.macro; import java.util.Arrays; import chav1961.purelib.basic.exceptions.CalculationException; import chav1961.purelib.basic.growablearrays.GrowableCharArray; import chav1961.purelib.basic.intern.UnsafedCharUtils; import chav1961.purelib.streams.char2byte.asm.AssignableE...
30.457447
154
0.693853
b9e02e93de00405d569a38b9dcb4cf6ae30c05f0
5,828
/* * Copyright 2010-2012 Amazon.com, 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
31.846995
129
0.69801
0227e322266ce8fef3e98c7ef0abe388b01dd25e
905
package ChainOfResponsibility.infrastructure; import ChainOfResponsibility.handlers.JSONHandler; import ChainOfResponsibility.handlers.MyHttpAddReqHandler; import ChainOfResponsibility.handlers.RawTextHandler; import ChainOfResponsibility.handlers.XMLHandler; /** * Created by navid on 2/6/18. */ public class WebSer...
26.617647
66
0.750276
c9459f51a120a531552df378f0e5deb0bab21ae2
11,458
/* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * unde...
57.004975
172
0.733985
c327d877e4c96a5e0fcca2b6d13d595506254cb8
3,556
/* * 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 ...
32.327273
102
0.675197
7a38e81b0a83913ba61ca4b5182555f77349d408
11,752
package com.texastoc.service.calculator; import com.texastoc.TestConstants; import com.texastoc.model.game.Game; import com.texastoc.model.game.GamePlayer; import com.texastoc.repository.GamePlayerRepository; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; impo...
31.934783
131
0.674183
8ff9cda67b9f22d94be4050dc376be420ae19a9a
779
package pl.ark.chr.buginator.data; /** * Created by Arek on 2016-09-29. */ public class Credentials { private String username; private String password; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } ...
20.5
49
0.554557
a77a2d69936204f0e5f97000a90cd3d9faf17222
85
module accounts.util { exports accounts.util; requires static java.logging; }
14.166667
32
0.729412
8e01b9577a9807043b75d6016357b7689dae8a6a
7,634
package com.etherealscope.requestlogging; import lombok.Data; import lombok.experimental.FieldDefaults; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.http.HttpMethod; import javax.annotation.PostConstruct; import static com.etherealscope.requestlogging.StatusC...
35.506977
124
0.611213
acd02599488a6af242808117559b322f2088273d
2,877
package org.apache.lucene.store; /** * 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, Versi...
29.659794
143
0.644769
12958b961bd279d9b5b5d0ffd00acc9d773a492f
2,457
package org.gooru.nucleus.auth.handlers.processors.repositories.activejdbc.dbauth; import java.util.ResourceBundle; import org.gooru.nucleus.auth.handlers.app.components.AppConfiguration; import org.gooru.nucleus.auth.handlers.constants.HelperConstants; import org.gooru.nucleus.auth.handlers.constants.ParameterConstan...
43.875
100
0.774929
3efecec43fa1ca90dfa94dce5b87765f9bc2c92d
3,446
package org.zalando.jackson.datatype.money; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.jsonFormatVisitors.Jso...
37.053763
114
0.714452
f5df3025a7c1fa5bb6ebe53dbba8093a58adeeca
7,426
package com.moebuff.discord.utils.reflect; import com.moebuff.discord.utils.UnhandledException; import org.apache.commons.lang3.reflect.FieldUtils; import java.lang.reflect.Field; /** * 字段工具,简化了反射操作,但这并不意味着会提高执行效率,若方法搭配不好反而会降低甚至引发错误。 * * @author muto * @see FieldUtils */ public class FieldKit { /** * 在...
34.221198
106
0.590089
b9c0c08a46ce3cf3648f1d9cbce7f125b153abe3
1,707
package fundamentos; public class ConversaoNumeroString { public static void main(String[] args) { Integer numW1 = 10000; Double numW2 = 10000.00; Float numW3 = 10000.000f; Short numW4 = 1000; Byte numW5 = 100; int num1 = 20000; double num2 = 20000.00; float num3 = 200000.00f; short num4 = 200...
23.383562
51
0.66901
7f9c2ac1634bcb56bc28648cc51d13801ff03470
390
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package config.exclude.packagename; import io.opentelemetry.extension.annotations.WithSpan; public class SomeClass implements Runnable { @WithSpan @Override public void run() {} public static class NestedClass implements R...
16.956522
55
0.725641
9024b625a3ad7924722436a59d9aeca42825b544
12,730
package com.synopsys.integration.alert.database.settings.repository; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import java.text.ParseException; import java.text.SimpleDateFormat; import java.time.Duration; import java.time.Instant; import j...
51.124498
197
0.746583
b9c7cb8bf42598ea3fc6f847fbfe1b65eab0a4ba
593
/* See LICENSE for licensing and NOTICE for copyright. */ package org.ldaptive.extended; /** * Provides common implementation for extended responses. * * @param <T> type of response value * * @author Middleware Services */ public abstract class AbstractExtendedResponse<T> implements ExtendedResponse<T> { /...
16.942857
80
0.664418
7a3cb62d6cc53d708709d6e3dadeea043f7b3245
2,023
package com.ruoyi.demo.mapper; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.Constants; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ruoyi.common.annotation.DataColumn; import c...
33.716667
112
0.701434
31f5c6c7b02dc6b0b3fe3ae5284c08618cedc48e
634
package com.leacox.sandbox.runtime.simple; /** * A runner that attempts to avoid being killed using an iterative approach. * * <p>In practice, using Oracle JDK 1.8.0_91, this class sometimes locks up the entire JVM after the * runtime tries to stop it around 12,000 to 20,000 times. I'm unsure why this is occurring...
23.481481
100
0.621451
da9881afa08368dc21477ebcdb64432fdce1d664
2,033
package app.printing; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; public class InConsole { /** * Use example : C:\\Users\\&lt;use...
21.177083
69
0.631087
7b93aa67393f8ee005a0e5b1b9d69a5df6bd86ac
965
package net.kaneka.planttech2.blocks.machines; import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.item.BlockItemUseContext; import net.minecraft.item.ItemGroup; import net.minecraft.state.BooleanProperty; import net.minecraft.state.StateContainer; import javax.annotation.Nul...
28.382353
88
0.756477
74ef98806aca28c08cc1110b3fc30e5852be07f2
107
package com.nikolafranicevic.classesInterfaces; public interface Encodable { public void encode(); }
15.285714
47
0.775701
a2eb624c4113bbfffa7822c52174eedac04c380a
405
package model.processes; import java.util.Map; import level.manager.LevelManager; public class ExecutableSpecificLevel extends ExecutableLevelChanges { protected int levelIndex; public ExecutableSpecificLevel(Map<String, Object> parameters) { super(parameters); // TODO Auto-generated constructor stub } ...
18.409091
69
0.780247
efe293d84378b3471c0c6c8641deb9943c563952
422
package com.silang.iconfont; import android.content.Context; import android.graphics.Typeface; import android.widget.TextView; /** * Created by Administrator on 2017/9/20. */ public class IconFontTool { public static void setTypeface(Context context,String iconPath,TextView tv){ Typeface iconfont1 ...
21.1
85
0.739336
15374abea66a8d04a10ff8d2c148b3a39b837735
252
package ru.job4j.tictactoo; /** * Interface Print - выводит на печать структуры игрового поля. * * @author Frolov Sergey (Slevkelebr@yandex.ru) * @version 0.1 * @since 22.05.2020 */ public interface Print { void printStr(String[][] str); }
18
63
0.68254
52fa387a445af3ecc5a57bcf081522a000556028
124
package org.formacion.abstractfactory; public interface Preguntas { String preguntaHora(); String preguntaTiempo(); }
13.777778
38
0.774194
d5fa229338286a51bff1d291bd51c2a9e8a1f203
516
package com.fengzai.oauth.app.util; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; /** * @author rhf30 * @Title: haifeng * @ProjectName oauth * @date 2019/5/2917:24 * @Description: 比较密码 */ public class BCryptPasswordEncoderUtil { private static BCryptPasswordEncoder bCryptPasswordE...
27.157895
93
0.767442
4eb49195ba29dc7f7de4e514ac66757c789d6b21
1,691
/** * */ package com.example; import static org.junit.Assert.*; import java.util.HashMap; import java.util.Map; import org.apache.commons.beanutils.PropertyUtils; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.fasterxml.jackson.core.type.TypeReference; import com.faste...
21.679487
116
0.659965
03d7e0bb8b0bf05411f3afec5065da9addf938f5
955
package org.imaginea.requesttracking.controller; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession...
30.806452
118
0.737173
1ef310ac0d7335d43cbbdc5edc9c0be14705bd33
8,280
package com.example.miriyusifli.cardgame; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentTransaction; import androi...
31.245283
136
0.557367
ece790b4a4f0e3a302f0d2ca4e7642f7aff4ca84
7,441
/* * Copyright 2014 OpenNMS Group Inc., Entimoss ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
43.51462
139
0.759575
088ef98cbe587e64240bbc73d49b41a55dcbaa94
1,126
/* * Copyright (c) 2012-2014, John Campbell and other contributors. All rights reserved. * * This file is part of Tectonicus. It is subject to the license terms in the LICENSE file found in * the top-level directory of this distribution. The full list of project contributors is contained * in the AUTHORS file fo...
22.078431
100
0.767318
38655128cb076f3d71b7b0f8cc0fa7ef17dfaaf9
415
package de.delphi.phi.data; public class PhiNull extends PhiObject { public static final PhiNull NULL = new PhiNull(); private PhiNull(){} @Override public Type getType() { return Type.NULL; } @Override public String toString() { return "NULL"; } @Override p...
17.291667
61
0.621687
e2658374888150e4fe6b3085ba0f157aa871b473
292
package com.showcase.securitydemo.exception; public class ServiceUncheckedException extends SystemUncheckedException { public ServiceUncheckedException(String message) { super(message); } public ServiceUncheckedException(Throwable cause) { super(cause); } }
24.333333
73
0.743151
5b2e92b2ba39275c45c43489a015dd9ef67a1f47
726
package arez.annotations; import arez.Locator; import arez.component.Linkable; /** * Defines the strategy for loading references from the {@link Locator}. * The {@link #EAGER} strategy indicates that references should be resolved as early as * possible while {@link #LAZY} defers loading until required. */ public ...
26.888889
88
0.712121
edd11b14fc1e9301eb4919615bc067e1272233e2
5,716
/** * Main Activity / Splashscreen with buttons. * * @author Lars Harmsen * Copyright (c) <2014> <Lars Harmsen - Quchen> */ package com.quchen.flappycow; import com.google.android.gms.common.SignInButton; import com.google.example.games.basegameutils.BaseGameActivity; import android.os.Bundle; import android.c...
34.853659
162
0.718509
c90a9e06eb62ef87efa1cae2562d73a2a77b8529
10,628
/* Copyright (c) 2016 LinkedIn 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...
49.432558
141
0.746142
c517a1c53850a51e56cc05e9493193a7e199c855
9,509
package org.zalando.nakadi.webservice.hila; import org.apache.curator.framework.CuratorFramework; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Assert; import org.junit.Test; import org.mockito.Mockito; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.zalando.naka...
50.579787
120
0.698076
c618c39120a134d9747b2d7e88b8b322c1552cc5
4,569
/*- * -\-\- * Helios Services * -- * Copyright (C) 2016 Spotify AB * -- * 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 * * Unl...
38.075
87
0.753338
b2b3c7c78e694be32859a0498f3b82ff912bb7bc
7,331
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * -----------------------------...
34.744076
111
0.811622
a0b3055b5ee94e0d5e109d50579361454f616243
7,053
/* * Copyright 2012-2014 Netherlands eScience Center. * * 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 the following location: * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
32.205479
128
0.614632
f5342f12b8a950c251e456a332d86c5de6beb0bb
673
package net.minecraft.inventory.container; import net.minecraft.block.Block; import net.minecraft.block.ShulkerBoxBlock; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; public class ShulkerBoxSlot extends Slot { public ShulkerBoxSlot(IInventory inventoryIn, int slotIndexIn, int xPos...
35.421053
108
0.762259
99d5914d985a4a1a87de1b1e9129e689f6d8eb64
2,504
package com.dgsm.accessibilitycoup.Tardigrade; import android.app.Activity; import java.io.IOException; import java.io.Serializable; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Random; import tardigrade.Tardigrade; import tardigrade.deck.ICard; import tardigrade....
28.454545
90
0.555112
1860f3450d25071650cfc99d524a8d49ed5e6b9a
8,327
package uk.gov.justice.hmpps.datacompliance.events.publishers.deletion.sqs; import com.amazonaws.services.sqs.AmazonSQS; import com.amazonaws.services.sqs.model.SendMessageRequest; import com.amazonaws.services.sqs.model.SendMessageResult; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.jupiter.ap...
43.369792
174
0.662904
a491b5a1ccc535e5a250dc3076c1ad1bef5b4393
5,726
/** * Copyright © 2013 - 2017 WaveMaker, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
29.364103
80
0.599546
4926c698b2cb7f36d4f56f14133455f68a03963a
95
open module modmain { // allow reflective access, currently used in the example_jerry-mouse }
47.5
93
0.778947
04642813ad3a3dbd34503a1c6e266a400543e338
4,172
/******************************************************************************* "FreePastry" Peer-to-Peer Application Development Substrate Copyright 2002-2007, Rice University. Copyright 2006-2007, Max Planck Institute for Software Systems. All rights reserved. Redistribution and use in source and binary forms, ...
36.596491
136
0.686961
638dbda9b60ecdbcbb39b77874841afa8d5aa8f9
1,015
package com.skeqi.mes.mapper.chenj.srm; import com.skeqi.mes.pojo.chenj.srm.CSrmSupplierR; import com.skeqi.mes.pojo.chenj.srm.req.CSrmSupplierHRDelReq; import com.skeqi.mes.pojo.chenj.srm.req.CSrmSupplierHRReq; import com.skeqi.mes.pojo.chenj.srm.req.CSrmSupplierRReq; import org.apache.ibatis.annotations.Param; impo...
26.025641
73
0.784236
c2cc008ee25140dddf249f0269d5daf4330c0f34
352
package cn.orangepoet.omq.broker.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; /** * @author chengz * @since 2018/7/17 */ @RestController public class HomeController { @GetMapping("/") public String index() { r...
19.555556
62
0.71875
bc317f4809b806910dfe683d0617c722d0768eb1
3,282
package com.haitang.project.system.clientLoginInfo.domain; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.haitang.framework.aspectj.lang.annotation.Excel; import com.haitang.framework.web.domain.BaseEntity; import java.util.Date; /** ...
23.611511
72
0.577392
e2e3cf3804d5ca998022605d09f05cc5c1106ede
116
package io.odysz.anson; public class Ans2dArr extends Anson { public String[][] strs; public Ans2dArr() { } }
12.888889
37
0.689655
3c0e957e4201d4d4d2093718e382e3a920f2cedd
415
package com.github.sornerol.chess.pubapi.domain.club; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Getter; import lombok.Setter; import lombok.ToString; import java.util.List; /** * Wrapper class for returning a list of clubs */ @Getter @Setter @ToString public class ClubList { /** ...
18.043478
53
0.722892
3e29ce385f90c95227b4d705bc422471fc65e6aa
6,774
/* * Decompiled with CFR 0.150. * * Could not load the following classes: * com.google.common.collect.Lists * com.google.common.collect.Maps */ package net.minecraft.client.gui; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import java.io.IOException; import java.util.Map; imp...
44.860927
213
0.675672
8be880029fee5d6d3e5381d9433dbb6b2bf0471c
344
package com.sp.dao; import com.sp.domain.Role; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; /** * Created by jongwon on 2017. 4. 20.. */ @Repository("roleRepository") public interface RoleRepository extends JpaRepository<Role, Integer> { Role find...
21.5
70
0.776163
482919fcf39936685cf8e4d552786be69a7fb3ae
7,149
/* Copyright 2018 Urban Airship and Contributors */ package com.urbanairship.actions; import android.content.Context; import android.content.Intent; import android.os.Bundle; import com.urbanairship.BaseTestCase; import com.urbanairship.CustomShadowService; import com.urbanairship.UAirship; import org.junit.Before;...
39.716667
129
0.718282
41a23f31a36246896fbb166ecdec7426457db6d6
3,072
/* * This file is part of indra, licensed under the MIT License. * * Copyright (c) 2020-2021 KyoriPowered * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, includi...
37.925926
139
0.721029
904a539290d1baa837ab0c578d582fd16bc24865
2,434
package br.com.zup.mercadolivre.fechamentoCompra; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; import org.springframewo...
33.805556
133
0.775267
163a72c9d0c9dd828968d8c79a447da194986e50
4,951
/* * 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")...
32.149351
99
0.647142
8a414e11718767bae3d843f2bc521f597e57e310
808
package basic.iteration.lv2; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Exam43275 { public static boolean isPerfection(int num) { int sum = 0; for (int i = 1; i < num; i++) { if (num % i == 0) sum += ...
28.857143
81
0.569307
dcb1e5ed75e87bd3985597997d0d3e1ca281ab8d
216
/** * Package for game theory concepts. * * @author Kristof Coninx (kristof.coninx AT cs.kuleuven.be) */ @NonNullByDefault package be.kuleuven.cs.gametheory; import org.eclipse.jdt.annotation.NonNullByDefault;
21.6
60
0.759259
e231af16ee377ef1685762dad9bf2872b3e1532b
221
package edp.davinci.model; import lombok.Data; import java.util.List; @Data public class Params { private Long id; private String uuid; private String params; private List<ParamsDetail> paramDetails; }
15.785714
44
0.728507
058bec62784d10a1ba0c38f7cf36d1e54153e585
401
package br.com.kontulari.kontschedule.exception; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(HttpStatus.NOT_FOUND) public class ContadorNotFoundException extends Exception{ private static final long serialVersionUID = 1L; public Contad...
26.733333
62
0.812968
13a2c89513a237ddcf27a893d9b6e087d563a261
4,090
package dev.tahar.megamock.mocking; import dev.tahar.megamock.mocking.data.MockInfo; import dev.tahar.megamock.mocking.storage.MockDocument; import dev.tahar.megamock.mocking.storage.MockStorageService; import dev.tahar.megamock.mocking.storage.MocksRepository; import org.junit.jupiter.api.Assertions; import org.junit...
38.584906
101
0.665037
a907f2ad551552199814e0aeacf2e6022026950f
12,465
/** * Copyright (C) 2012-14 graphene developers. See COPYRIGHT.TXT * All rights reserved. Use is subject to license terms. See LICENSE.TXT */ package org.epics.graphene.rrdtool; import java.awt.image.BufferedImage; import java.text.SimpleDateFormat; import org.epics.graphene.ScatterGraph2DRenderer; import org.epics...
51.508264
171
0.647573
1039e942abea001cd5648b5f744dc3d07c4befb2
3,905
/* Copyright (C) 2017 American Printing House for the Blind Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
21.574586
122
0.663508
62d9647242f89a5b24fc2ae3da001b3150bd7149
765
package uk.gov.hmcts.reform.finrem.payments.model.pba; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.Before; import org.junit.Test; import uk.gov.hmcts.reform.finrem.payments.model.pba.validation.PBAAccount; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matcher...
30.6
75
0.715033
a05beb44ffc58b680232904cd9f08dc2f8f3c5e8
12,526
package com.example.saar; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v4.app.Fragment; import android.support.v4.app.Fragmen...
41.892977
132
0.645298
89cfd20b66310317114b810609ac332a6403532a
2,726
package com.seguetech.zippy.activities; import android.content.Intent; import android.content.res.Configuration; import android.os.Bundle; import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import com.seguetech.zippy.R; public class Spl...
31.333333
97
0.647836
8574526aba56b1c7ac8c814fe68a5a863cfb7496
2,465
/* * Copyright 2017-2020 Crown Copyright * * 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 a...
37.923077
121
0.707505
1c31427d9f3c17cace6faf1977a075b9c1d8bb74
1,813
/* * Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending */ package io.deephaven.db.tables.dbarrays; import io.deephaven.db.util.LongSizedDataStructure; import org.jetbrains.annotations.NotNull; public class DbSubBooleanArray extends DbBooleanArrayDirect.Indirect { private static final long serialV...
28.328125
115
0.679537
19202134240cfe30d76c4a4ea0456681d57b1b57
5,098
package es.uah.repositorioms.domain.entities.users; import java.io.Serializable; import java.time.Instant; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persi...
22.860987
100
0.712044
7795d189bc592158e82bb023ec2975ff735aa8d0
2,594
package com.example.demo.controller; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpRe...
27.892473
77
0.755975
d45ed7941f01958d517bbb171197d00840ab6850
385
package com.wayn.mall.core.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.wayn.mall.core.entity.ShopCat; public interface ShopCatDao extends BaseMapper<ShopCat> { IPage...
32.083333
71
0.815584
5dfbd2447839af268d06fc1cc2e64b6c9c1749c8
1,884
package com.github.rschmitt.collider; import org.junit.jupiter.api.Test; import static com.github.rschmitt.collider.Collider.clojureMap; import static com.github.rschmitt.collider.Collider.transientMap; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertN...
30.387097
99
0.668259
762b6a5a871477b1da28bc066d3f4f1c279ed985
4,311
/* * 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 ...
46.354839
158
0.73788
14b30e99384e9624b480b008f32168598106dd44
1,554
package mx.gob.municipio.centro.model.gateways.almacen; import java.util.Date; import java.util.logging.Logger; import mx.gob.municipio.centro.model.bases.BaseGatewayAlmacen; public class GatewayBitacoraAlmacen extends BaseGatewayAlmacen { private static Logger log = Logger.getLogger(GatewayBitacoraAlmacen.class.g...
44.4
232
0.772844
12b48add4b117d87bd5a63a0314f309194cabf48
3,532
/* * @(#)gl_tex_z.java 0.2 99/11/30 * * jGL 3-D graphics library for Java Copyright (c) 1999 Robin Bing-Yu Chen * (robin@is.s.u-tokyo.ac.jp) * * This library is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Fou...
24.699301
100
0.649207
56efa1940919e68f96c12608c0b9a6855608bdac
2,618
package com.github.ele115.tello_wrapper; import com.github.ele115.tello_wrapper.tello4j.api.drone.WifiDroneFactory; public final class Tello { private Tello() { // static class } /** * Connect to a Tello drone. * * @param droneId If it is "simulator", then a fake drone is connected...
34.906667
102
0.577158
d00fca7bc902f6dc68bcaffd89d3c481f8a2dd5e
139
package com.scraping.spider; import java.util.Set; public interface Mp3Spider extends Spider{ public Set<String> getAllMp3Links(); }
13.9
42
0.769784
da3468fb605a92902a032ddb653e2e2ea28bf7e5
604
package ftb.lib.mod.config; import ftb.lib.FTBLib; import ftb.lib.api.config.*; import java.io.File; public class FTBLibConfig { public static final ConfigFile configFile = new ConfigFile("ftblib"); public static void load() { configFile.setFile(new File(FTBLib.folderLocal, "ftblib.json")); configFile.setDi...
28.761905
106
0.758278
75384b77129904780b20c486276e62391e7e77dc
2,685
package org.apache.syncope.core.provisioning.api.mytests.testcases; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.apache....
25.093458
83
0.735196
51148777ec4ab7f7d794c278145c28148a9b234b
1,004
/* * Copyright (c) 2016 Yahoo Inc. * Licensed under the terms of the Apache version 2.0 license. * See LICENSE file for terms. */ package com.yahoo.yqlplus.engine.internal.java.functions; import com.yahoo.yqlplus.language.parser.ProgramCompileException; import java.lang.invoke.MethodHandle; import java.lang.invo...
32.387097
115
0.713147
2d77b458a7ef0546f2e8a02925acc8f083de3239
1,169
package org.monarchinitiative.phenol.formats.hpo; import org.monarchinitiative.phenol.ontology.data.TermId; /** * Utility class with {@link TermId} constants for the sub ontologies. * * @author <a href="mailto:manuel.holtgrewe@bihealth.de">Manuel Holtgrewe</a> * @author <a href="mailto:sebastian.koehler@charite.d...
38.966667
90
0.739093
3cd3f9e872bd853d48fab1b0b25fe9c715894dec
1,142
package com.sjf.security; import com.sjf.dto.MyJson; import com.sjf.entity.SysRole; import org.json.JSONObject; import org.springframework.security.core.AuthenticationException; import org.springframework.security.web.authentication.AuthenticationFailureHandler; import org.springframework.stereotype.Component; import...
33.588235
105
0.748687
2cda58c8be6a4ec371ed5e78c8a8db26846a6dcf
673
package com.yarwest.guice_demo.calculator; import com.google.inject.Guice; import com.google.inject.Injector; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.stage.Stage; /** * Hello world! * */ public class App extends Application { @Override publi...
24.925926
81
0.771174
bcfcbc3fc548a1bec9a888732f95c712f5700bcd
4,701
/* * 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.iso.dashboard.dao; import com.iso.dashboard.dto.CTaskAssignee; import com.iso.dashboard.dto.CTaskAssigneePK; import com.is...
33.105634
96
0.562646
bec7c4ea87eee683196fcc8bf8b1d11e015bd8a5
4,136
/** * jspice is distributed under the GNU General Public License version 3 * and is also available under alternative licenses negotiated directly * with Knowm, Inc. * * Copyright (c) 2016-2017 Knowm Inc. www.knowm.org * * Knowm, Inc. holds copyright * and/or sufficient licenses to all components of the jspice ...
32.3125
143
0.745164
51a1a32ea1733e79dcf21efa5c61ab6fbb3c145e
3,633
/** * GnucashJobImpl.java * License: GPLv3 or later * Created on 14.05.2005 * (c) 2005 by "Wolschon Softwaredesign und Beratung". * * * ----------------------------------------------------------- * major Changes: * 14.05.2005 - initial version * ... * */ package biz.wolschon.fileformats.gnucash.jwsdpimpl; ...
24.22
91
0.597853
7b1a467d95dbe043a85e2cd9278fb6285c100b7a
1,378
package com.example.activityandintents; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View;...
32.809524
94
0.70029
09fad854468b0ff2feaaea9d86a9c523c9f66412
5,067
/** * * Copyright the original author or authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
44.447368
113
0.727452
4b166e0193afb5f3e539ffe8eb879f14abdd1242
264
package com.project.world.config; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.repository.configuration.EnableRedisRepositories; @Configuration @EnableRedisRepositories public class SpringDataRedisConfig { }
26.4
87
0.867424
5b77a384d55d120d22704baadafe6a6ea4eb07ce
10,020
package seedu.scheduler.testutil; import static seedu.scheduler.logic.commands.CommandTestUtil.VALID_DEPARTMENT_AMY; import static seedu.scheduler.logic.commands.CommandTestUtil.VALID_DEPARTMENT_BOB; import static seedu.scheduler.logic.commands.CommandTestUtil.VALID_FACULTY_BOB; import static seedu.scheduler.logic.com...
70.56338
115
0.752994