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
4fe68c34c48ee2168eacee25a937cd4619f8c039
7,471
/* * Copyright (c) 2017 Patrick Scheibe * 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, including without limitation the rights * to use, copy, modify, merge, publis...
41.73743
130
0.766564
2eb3df50b361242dc147b9ee579dec4597eff8a3
2,220
package com.fy.baselibrary.utils; import java.util.concurrent.BlockingQueue; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.SynchronousQueue; import java.util.concurrent.ThreadFactory; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import java.u...
30
90
0.678829
e3232a3d83f0f286c012b6d16fb19b35966358b1
734
package net.coding.program.common.model; import android.content.Context; /** * Created by chenchao on 2017/1/18. */ public class EnterpriseAccountInfo extends AccountInfo { private static final String ENTERPRISE_DETAIL = "ENTERPRISE_DETAIL"; public static void saveEnterpriseDetail(Context context, Enterp...
28.230769
113
0.716621
947b68d8d208c5a0cd6fa85236c6c4a1717dd57d
3,183
/* * Copyright (C) 2010 {Apertum}Projects. web: www.apertum.ru email: info@apertum.ru * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your...
39.7875
94
0.734527
8341392ca501391a8af7c55cd404dad43e55be18
943
package com.xkcoding.dynamic.datasource.service.impl; import com.xkcoding.dynamic.datasource.mapper.UserMapper; import com.xkcoding.dynamic.datasource.model.User; import com.xkcoding.dynamic.datasource.service.UserService; import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Autow...
25.486486
62
0.742312
2eb668d363f6d5b8e16d1b33a5286bab32b6be9c
12,051
package local.model; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swin...
44.633333
156
0.561115
534dcbb63bcc248c534d9542a5f489dad0b0f18d
5,796
package said.ahmad.javafx.tracker.controller.connection.uri; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import java.util.ResourceBundle; import javafx.application.Platform; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader...
25.991031
109
0.728951
dca040e19a87ae3b174a897ab8db2f3425974ecc
1,088
package com.jishukezhan.http; import com.jishukezhan.annotation.Nullable; import com.jishukezhan.core.exceptions.IoRuntimeException; import java.io.Closeable; import java.io.InputStream; import java.io.Reader; import java.nio.charset.Charset; /** * HTTP响应内容接口 */ public interface ResponseBody extends Closeable { ...
20.528302
93
0.650735
85352f29b3b64b3b816a07da0b4d71d21df2fb6b
2,654
// Copyright (c) 2020, the R8 project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.android.tools.r8.tracereferences; import com.android.tools.r8.references.MethodReference; impo...
32.765432
98
0.686134
db9f1ecba147354fcdfe3204d21a9175db25a3ca
715
package problems._77; import org.junit.Assert; import org.junit.Test; import java.util.List; import static org.junit.Assert.*; public class SolutionTest { @Test public void test() { { final List<List<Integer>> expected = List.of( List.of(2, 4), Li...
25.535714
80
0.507692
44f555c5b1928e43c5f0c30fa083776d8691cda2
463
package ghostawt; import java.awt.MenuItem; import java.awt.peer.MenuPeer; public class GMenuPeer extends GMenuItemPeer implements MenuPeer { protected GMenuPeer(Object target) { super(target); } public GMenuPeer(MenuItem target) { super(target); } @Override public void a...
17.807692
66
0.647948
785d443cd12405c934ceed5a1f7e67cf03a1eb7a
2,015
/* * C O P Y R I G H T N O T I C E * ----------------------------------------------------------------------- * Copyright (c) 2011-2012 InfoClinika, Inc. 5901 152nd Ave SE, Bellevue, WA 98006, * United States of America. (425) 442-8058. http://www.infoclinika.com. * All Rights Reserved. Reproduction, adaptatio...
36.636364
114
0.748883
69a01422a43392fb19bda7b15ed64d26c1de525d
753
package ru.otus.mapper; import ru.otus.domain.Author; import ru.otus.domain.Book; import ru.otus.domain.Comment; import ru.otus.domain.Genre; import ru.otus.dto.AuthorDto; import ru.otus.dto.BookDto; import ru.otus.dto.CommentDto; import ru.otus.dto.GenreDto; import java.util.List; public interface Mapper { Book...
27.888889
66
0.77822
0c6061f137c3493794564adefacd668e9767a8ce
1,154
package io.github.iliecirciumaru.dcc.rules.integration.model; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.google.auto.value.AutoValue; import java.util.List; @AutoValue @JsonDeserialize(builder = AutoValue_CertLogicTestCase.Builder...
28.85
86
0.791161
f6d3bd12d75fcbf21740796a59d175989ae5596b
6,468
/* * 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 ...
61.6
186
0.769635
79af6b3a706535be565e6fb794bbecde7588904e
1,465
package com.bzh.gl.native_lesson1; import android.app.ActivityManager; import android.content.Context; import android.content.pm.ConfigurationInfo; import android.opengl.GLSurfaceView; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; public class N...
30.520833
103
0.694198
dacc5edb4d06eebeb03c0adbdc2d1992ef60e57c
274
package com.zhzteam.zhz233.test; import com.zhzteam.zhz233.common.utils.REVUtils; import org.junit.Test; public class REVTest { @Test public void TestisLogonInfo(){ String str="15123328416_+"; System.err.println(REVUtils.isLogonInfo(str)); } }
21.076923
54
0.70073
0152b7689a7ab088272c2522f519464f0b58f132
2,741
package eas.com.model; import eas.com.exception.QuickMartException; import java.time.LocalDate; import java.util.HashMap; import java.util.Map; /** * Class for simulating the shopping cart * Created by eduardo on 12/12/2016. */ public class ShoppingCart { /** * Key: Name of Item * Value: Relation I...
26.104762
105
0.650128
0273457e8aa5bcd5496fa5befb1a3e698841dbff
1,410
/* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.bugs._1714; import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.mapstruct.Named; import org.mapstruct.factory.Mappers; @Ma...
23.114754
105
0.671631
7574272f5c661ef40dc34b4dbb2eea68abd210c3
81
/** * Liquibase specific code. */ package carson.mobi.paycel.config.liquibase;
16.2
44
0.728395
3378827fa3f4bf3822a8b89de565dd961220324b
281
package com.taotao.service; import java.util.List; import com.taotao.pojo.TbItemCat; /** * 商品分类Servie * @author Administrator * */ public interface ItemCatServie { /** * 根据父Id查询商品分类列表 * @param parentId * @return */ List<TbItemCat> getItemCatList(Long parentId); }
14.05
47
0.701068
cc1f6000858165f5ffdaf4662692e51cfce3c273
753
package com.skytala.eCommerce.domain.accounting.relations.glAccount.event.taxAuthority; import com.skytala.eCommerce.framework.pubsub.Event; import com.skytala.eCommerce.domain.accounting.relations.glAccount.model.taxAuthority.TaxAuthorityGlAccount; public class TaxAuthorityGlAccountAdded implements Event{ private ...
30.12
108
0.844622
2cab2cf3cb5374ba57accd598f63c1b7bdf6ab07
723
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Licensed under the Zeebe Community License 1.0. You may not use this file * ...
40.166667
81
0.809129
e9813dd30e6b37f02dec37c4d389a363e419cb41
3,573
/* * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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...
37.21875
99
0.695774
5f9e48d44a827180c6c57e0e7c760ff992cb6293
928
package info.bytecraft.database; import java.util.List; import org.bukkit.Location; import info.bytecraft.api.BytecraftPlayer; public interface IHomeDAO { @Deprecated public Location getHome(BytecraftPlayer player) throws DAOException; @Deprecated public Location getHome(String player) throws DAOExc...
35.692308
85
0.793103
9f08fc2d893a4438bbb761352a3acafd14baf392
6,176
package net.dankito.jpa.annotationreader.property.relationships; import net.dankito.jpa.annotationreader.JpaEntityConfigurationReader; import net.dankito.jpa.annotationreader.config.PropertyConfig; import net.dankito.jpa.annotationreader.JpaConfigurationReaderTestBase; import org.junit.Assert; import org.junit.Ignore...
37.658537
156
0.806347
ffa595bfd5815674e40fddcea2c825806f0d1511
1,764
/* * Copyright 2002-2021 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 a...
30.947368
119
0.722789
b7774e7acef959f3276d9ca4d7e62e24270ab887
2,809
package WebServerLogsModule; /** * This is the Tester for LogEntry class. * * @author Davide Nastri * @version 2/21/2018 */ import java.util.*; public class Tester { public void testLogEntry() { LogEntry le = new LogEntry("1.2.3.4", new Date(), "example request", 200, 500); System.o...
40.710145
92
0.628693
237f16ebd0789fd77af723c08d2e60919b835008
424
package org.ovirt.engine.core.common.action; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * This annotation is to mark a getter method of a parameter * that should not appear in the debug log */ ...
26.5
60
0.799528
dac7665bac3dd2173518bf7f324bc6b680800a91
4,271
package oneHandedTypist11278; import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(new InputStreamReader(System.in)); while (in.hasNext()) { String os = in.nextLine(); String out = ""; for (char x: os.toCharArray()) { if (x == '4...
19.682028
61
0.283306
0e31bb6088ae22ae918b7fdcf125581493ef52d9
2,516
package dev.Hilligans.ourcraft.Client.Rendering.Graphics.Vulkan; import dev.Hilligans.ourcraft.Client.MatrixStack; import dev.Hilligans.ourcraft.Client.Rendering.Graphics.IGraphicsEngine; import dev.Hilligans.ourcraft.Client.Rendering.Graphics.Vulkan.Boilerplate.VulkanInstance; import dev.Hilligans.ourcraft.Client.Ren...
29.255814
230
0.745628
8e0e9eb2a4edd785886c88ace33d92d58b3c9770
2,680
/** * Copyright (c) 2017 European Organisation for Nuclear Research (CERN), All Rights Reserved. */ package org.tensorics.core.math.structures.grouplike; import java.io.Serializable; import org.tensorics.core.math.operations.CommutativeAssociativeOperation; import org.tensorics.core.math.operations.UnaryOperation;...
28.817204
120
0.58209
30b03a3da6e7e7eedc75f520b9faa47b656f72e7
1,801
package com.ctrip.xpipe.redis.core.protocal.protocal; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.ctrip.xpipe.redis.core.protocal.RedisClientProtocol; import com.ctrip.xpipe.redis.core.protocal.protocal.AbstractBulkStringEoFJudger.BulkStringEofMarkJudger; import com.ctrip.xpipe.redis.core.prot...
30.016667
112
0.736258
09538cf598144c043a28f532d276d2ceb97e57fa
20,939
package ch.scheitlin.alex.intellij.plugins.toolWindow; import ch.scheitlin.alex.build.swing.ErrorPanel; import ch.scheitlin.alex.intellij.plugins.services.Controller; import ch.scheitlin.alex.build.model.Error; import com.intellij.ui.components.JBScrollPane; import com.intellij.util.ui.JBUI; import javax.swing.*; imp...
39.359023
131
0.606237
1a3b8c9f587468b8d16e6fdc6d4a47ccd3b32781
3,454
package com.Da_Technomancer.crossroads.integration.JEI; import com.Da_Technomancer.crossroads.Crossroads; import com.Da_Technomancer.crossroads.blocks.CRBlocks; import com.Da_Technomancer.crossroads.crafting.recipes.MillRec; import com.mojang.blaze3d.matrix.MatrixStack; import mezz.jei.api.constants.VanillaTypes; impo...
33.211538
218
0.769832
3728b6fe6b34f3677039d40846f5668b0ab50d98
3,845
package cn.yiya.shiji.entity; import java.util.ArrayList; /** * Created by jerry on 2016/2/25. */ public class OrderListInfo { private ArrayList<Goods> goods; private String current_time; private String create_time; private String close_time; private String order_number; private...
22.354651
63
0.604161
3c561f18e34f20c9a1cfb750542048f53aecd806
2,393
package life.genny.qwandaq; import com.fasterxml.jackson.annotation.JsonIgnore; import io.quarkus.runtime.annotations.RegisterForReflection; import javax.persistence.Embeddable; import javax.persistence.FetchType; import javax.persistence.ManyToOne; import life.genny.qwandaq.attribute.Attribute; import life.genny.qw...
21.366071
87
0.664438
fa879abaa4541693d5acf0b6e7fbb6323bfafe4f
14,954
import java.util.*; import java.awt.Point; public class minimax_Sentient extends AIModule { private int maxPly = 2; //maximum number of moves to play ahead private int prevMoveX, prevMoveY; private int player; //Hold points value //We can experiment with these values //1 coin of ourPlayer wit...
33.011038
118
0.462619
fe7562b5adbf1b07a2624c5e2c75ed3715eea526
11,705
package com.zainchen.game2048.core; import java.util.Random; /** * 核心游戏逻辑 * * @author Zain Chen * @date 2021/4/6 14:13 */ public class CoreModelImpl implements CoreModel { /** * 数据的行数 */ private final int rowSum; /** * 数据的列数 */ private final int colSum; /** * 数据监听器...
29.783715
109
0.407176
3352fb4272aca301965f2c60dba45179bb7bc53a
5,291
package com.google.android.datatransport.cct.a; import com.google.android.datatransport.cct.a.zza; /* compiled from: com.google.android.datatransport:transport-backend-cct@@2.2.0 */ final class zzd extends zza { private final int zza; private final String zzb; private final String zzc; private final S...
29.724719
477
0.516727
82eeaa2d9b293b61a0435e54d6bc3381319cbf2d
916
import java.util.*; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.nextLine()); String[] line = scanner.nextLine().split(" ", 2); int a = Integer.parseInt(line[0]); int b = Integer.parseInt(li...
26.171429
57
0.474891
0ff73f6779eb40be77084405af677b40feb95a68
672
package com.ygy.model; public class OssClientPro { private String endpoint; private String accessKeyId; private String accessKeySecret; public String getAccessKeyId() { return accessKeyId; } public String getAccessKeySecret() { return accessKeySecret; } public String ...
21.677419
60
0.669643
25113b34486553182b456806b32f714bea65dbbe
1,255
import javafx.scene.Node; import javafx.scene.canvas.GraphicsContext; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.shape.Rectangle; public abstract class GameObject { protected int x, y, width, height; //TODO use Yspeed later to replace constant protected Image img...
22.410714
83
0.596813
9beec2ded96c1679735e9643208855db6dc6ddff
4,215
/* * Copyright 2014-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
43.90625
173
0.741874
f3c15ac5f33f6d9ed33db94aa4b317a6da867dc0
10,784
package com.miu360.legworkwrit.mvp.ui.activity; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.text.TextUtils; import android.view.View; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.RadioButton...
35.827243
129
0.655415
8f38b780ff4baad377b9bc3dd1defa162bb1f00d
1,047
package com.solactive.solactive_code_challenge.calculators; import java.util.*; public class QuantileCalculator extends GenericWindowCalculator { public static Double calculate(Map<Long, Double> ticks, Double percentile) { ArrayList<Double> values = new ArrayList(ticks.values()); Collections.sort...
34.9
129
0.606495
c524b3187e5c2f304183f163f39274b5fda04828
2,070
/* SHOGun, https://terrestris.github.io/shogun/ * * Copyright © 2020-present terrestris GmbH & Co. KG * * 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/lice...
42.244898
109
0.809179
142edab629e54f134561d3fa5f0d421fb4479d45
5,214
/* * Copyright 2011 Tyler Blair. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of * conditio...
32.792453
165
0.607979
991282a281450410560c8ce03d276b3ab7db6d40
1,241
package ru.job4j.filtration; import java.util.Objects; /** * * Class Класс описывает действия ученика * @athor Buryachenko * @since 04.03.19 * @version 1 */ public class Student { private int score; private String surname; public Student(String surname) { this.surname = surname; } ...
20.683333
59
0.538276
0299a4b367b0409cbd14405add6307fd46f81f02
538
package net.silve.smtpc.client; import net.silve.smtpc.message.SmtpSession; import net.silve.smtpc.listener.DefaultSmtpSessionListener; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class SmtpSessionTest { @Test void shouldHaveDefaultListener() { SmtpSession s...
24.454545
80
0.743494
4f6ac83d3cf1f14dfe2f69f12f90fb247644e402
331
package com.ystu.repositories; import com.ystu.entities.User; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface UserRepository extends JpaRepository<User, Long> { List<User> findAllByLoginLike(String...
25.461538
67
0.818731
2d04963080a90623e13fd629157430d5e4653010
2,211
package gov.usds.case_issues.model; import java.time.ZonedDateTime; import java.util.Collection; import java.util.List; import java.util.Map; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import gov.usds.case_issues.db.model.CaseManagementSystem; import gov.usds.case_issues.db.model.CaseType; impor...
28.346154
98
0.779738
25249c349338354555d7cfc9438c7c44c5997fde
903
//- Copyright © 2008-2011 8th Light, Inc. All Rights Reserved. //- Limelight and all included source files are distributed under terms of the MIT License. package limelight.builtin; import limelight.Context; import java.net.URL; public class BuiltinBeacon { private static String builtinPath; public static Stri...
25.083333
91
0.704319
af54e3923442f88d739bef2108d498cd645380d9
3,288
/* * ****************************************************************************** * * Copyright 2015 See AUTHORS file. * * * * 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 * ...
34.978723
123
0.648418
c781ff07ee43043b9b431472988a0c5dcf9b39f3
11,655
package ru.bpmink.bpm.api.impl.simple; import com.google.common.base.Joiner; import com.google.common.collect.Maps; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import org.apache.http.client.HttpClient; import org.apache.http.protocol.HttpContext; import o...
33.110795
116
0.666924
446340bf9a078a299f9709f1389c651528b5c908
6,014
package net.minecraft.network.play.server; import com.google.common.base.Objects; import com.google.common.collect.Lists; import com.mojang.authlib.GameProfile; import com.mojang.authlib.properties.Property; import java.io.IOException; import java.util.List; import net.aXg; import net.minecraft.entity.player.EntityPla...
34.763006
147
0.606086
ac90ddcc74116a4925d79e2cc91a802334133424
847
package com.webcheckers.model; import com.webcheckers.model.pieces.RedSinglePiece; import com.webcheckers.model.pieces.WhiteSinglePiece; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; public class PieceTest { ...
24.911765
61
0.688312
ac6f851397d61174eecf11d17b0659d15dcdd47b
1,259
package com.nsskumar.cf.service.pagerdutycfservicepoc.controller; import java.io.IOException; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annota...
35.971429
113
0.792693
f799969ba796b93c0b02e5766e29c958da8fe3bc
1,795
package com.j6crypto.logic.stop; import com.j6crypto.logic.StopTradeLogic; import com.j6crypto.logic.TradeLogic; import com.j6crypto.logic.entity.state.AutoTradeOrder; import com.j6crypto.service.CandlestickManager; import com.j6crypto.to.setup.ProfitPercentageTpSetup; import com.j6crypto.to.TimeData; import com.j6cry...
38.191489
138
0.77883
39cc5debc685b9d9c20a970337c1075279a9e491
699
package net.gnu.agrep; public class CheckedString implements Comparable<CheckedString> { boolean checked; String string; public CheckedString(String _s) { this(true, _s); } public CheckedString(boolean _c, String _s) { checked = _c; string = _s; } public String toStri...
20.558824
74
0.640916
8bfa839309412c01f8aa74f616b51c98d98a8d18
3,230
package com.feihua.framework.rest.interceptor; import com.feihua.framework.base.modules.user.api.ApiBaseUserAccessLasttimePoService; import com.feihua.framework.base.modules.user.dto.BaseUserAccessLasttimeParamDto; import com.feihua.framework.shiro.pojo.ShiroUser; import com.feihua.framework.shiro.utils.ShiroUtils; i...
41.948052
138
0.714861
6afdf3ba821541ccec353ffee9f17f2d2f8418b1
6,317
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (c) 2013, 6WIND S.A. All rights reserved. * * * * This file is part of the Jenkins Lockable Resources Plugin and is * * published under the MIT l...
42.682432
209
0.727877
5ecc1277d89e28477a6759e0ca1ff4e6e5fdbfe5
1,795
package romanNumerals; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JTextField; /** * Listener for the Convert roman to integer button * Takes the source text field and the target result text field * in the constructor. * @author erno */ public class ConvertRomanB...
30.423729
83
0.745961
7f708c632c3aaf1c30da28cac06943fda426880b
3,623
/* * Copyright (c) 2010 WiYun Inc. * Author: luma(stubma@gmail.com) * * For all entities this program is free software; you can redistribute * it and/or modify it under the terms of the 'WiEngine' license with * the additional provision that 'WiEngine' must be credited in a manner * that can be be observed by en...
39.380435
121
0.743583
1a5f598221ce84cc2ff1b63b7b2db2922c8fb615
7,240
/* * This file is part of LanternServer, licensed under the MIT License (MIT). * * Copyright (c) LanternPowered <https://www.lanternpowered.org> * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a c...
31.894273
99
0.620856
2fd05798294be9eeb32f36bf9e0fcedd03b15525
609
package org.hexpresso.soulevspy.fragment; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import org.hexpresso.soulevspy.R; /** * Created by Pierre-Etienne Messier <pierre.etienne.messier@gmail....
29
103
0.755337
46b2d2c4fae8d180815e370b0ae9925bab7be6c4
337
package com.flyingfish.repository; import com.flyingfish.infrastructure.authentication.Client; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; @Repository public interface ClientRepository extends CrudRepository<Client, Long> { Client findByClientId(Str...
30.636364
72
0.845697
efdea4d5e907a21f19d1e5d1fc6e88ad5afd0133
915
public interface IEventService{ public Set<Event> findEventsWhereUserIsGoing(User user); public Set<Event> findEventsWhereUserIsMaybeGoing(User user); public Set<Event> findCommonEvents(User user1, User user2); public Set<Event> findCommonUsers(Event event1, Event event2); public Set<Event> findEventsNear(User...
35.192308
69
0.801093
187511d4c6d16f9a3e608925bb4860f71cd1675d
507
package com.pogeyan.cmis.api; public enum CustomTypeId { CMIS_EXT_RELATIONMD("cmis_ext:relationmd"), CMIS_EXT_RELATIONSHIP("cmis_ext:relationship"), CMIS_EXT_CONFIG("cmis_ext:config"); private final String value; CustomTypeId(String v) { value = v; } public String value() { return value; } public s...
16.9
49
0.706114
1d7cadcd7c558e3a27fbb8138054099f1e2872a3
1,285
package br.com.jadson.domain; import br.com.jadson.mocks.CustomContaJDBCRepositoryMock; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; class ContaTestJunit { @Test void testaContaComSaldo(){ Conta conta = new Conta(10.0d); Assertions.assertTrue(conta.temSaldo()); ...
24.711538
98
0.65214
a03f6c9c3f1f00881f3690dfeb9b74d9539caee0
70
package com.interviewBitScaler; public class Lecture9_Searchin_2 { }
14
34
0.828571
e6e04f774fe93204ee46c0ae1e900a31d627ec26
885
package com.waspring.framework.antenna.core.visitor; import com.waspring.framework.antenna.core.util.ExceptionUtil; import com.waspring.framework.antenna.core.util.ResponseCode; /** * 异常返回定义 * * @author felly * */ public class ExceptionResponse extends SimpleResponse { public ExceptionResponse(String message,...
18.829787
66
0.724294
76c5c5473cbba08afe4784ec01e30edafbcbd0b9
1,670
/* * Copyright 2014 Black Pepper Software * * 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 ...
25.692308
75
0.729341
d586212f63f3ac49ce4274e8ac0e506ac9ede9bb
1,576
/* List of depths: Given a binary tree, design an algo which creates a linked list of all the nodes at each depth(eg: if you have a tree with depth D, then there will be D lists) */ package BinarySearchTree; import java.util.*; import java.lang.*; class ListOfDepths<T extends Comparable<T>>{ public void...
29.735849
100
0.557741
f0bc267230d05ffbffdb232715aeec219a468322
850
package com.example.schedulegenerator.UserRecycler; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.recyclerview.widget.RecyclerView; ...
29.310345
61
0.763529
388a8052706809362d2a8e2e9bd0e5c44ff3f45e
4,419
/** * 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 m...
44.636364
128
0.752885
fc5ef53dbdb13d562235bc249459901f8ce67c3a
16,528
/* * Copyright 2016-2018 Axioma srl. * * 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...
55.093333
113
0.734753
ff2c9d2cbdfcfe267abab5895bd61db4da293d2a
132
package edu.iastate.metnet.metaomgraph.utils; public interface ExceptionListener { void exception(Throwable paramThrowable); }
22
45
0.810606
982dd65ba681bbe602a84ae1021fa50a77d3f556
309
package wesley.leonardo3.carro.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class HelloController { @GetMapping("/") public String mensagem() { return "Seja Bem-Vindo!"; } }
22.071429
62
0.747573
ebfe8f7beba6d3d70e98230ac8cd8beaf50f6d55
2,733
package ru.betterend.entity.model; import com.mojang.blaze3d.vertex.PoseStack; import com.mojang.blaze3d.vertex.VertexConsumer; import net.minecraft.client.model.geom.ModelPart; import net.minecraft.client.renderer.RenderType; import ru.betterend.entity.EndFishEntity; public class EndFishEntityModel extends...
35.493506
108
0.683498
0972b21f71b652b99d62eb70857ccbfbff67f827
659
class P_Resept extends HvitResept {//arver egenskapene til HvitResept-klassen P_Resept(Legemiddel legemiddel, Lege utskrivingsLege, int pasientID, int reit) { super(legemiddel, utskrivingsLege, pasientID, reit ); } //kaller HvitResept-klassens konstruktør @Override public String farge(){ ...
20.59375
80
0.62519
865e46d719da2b0b6e3fec2106af83ea1677d323
297
package com.konoplyanikovd.interview.design.pattern.factorymethod; public class Main { public static void main(String[] args) { AnimalFactory factory = new CatFactory() ; Animal animal = factory.createAnimal(); animal.setName("123132"); animal.desc(); } }
27
66
0.6633
ddf3bb1c58ad87196b7ca4ae48f99d7f73a60b7b
1,520
// 2021.05.18 // Leetcode 第46题 // https://leetcode-cn.com/problems/permutations/description/ package Search; import java.util.ArrayList; import java.util.List; public class T46 { public static void main(String[] args) { T46 solution = new T46(); int[] nums = { 1, 2, 3 }; List<List<Integer...
26.666667
110
0.516447
4200075f27914918b9bb130420042f2e2db8dff9
3,700
/* ### * IP: GHIDRA * * 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 writin...
26.056338
85
0.695676
85fe9e2fe3a634eb168fa3168c49c38b7e823a7e
619
package org.corfudb.infrastructure.logreplication.replication.send.logreader; import org.corfudb.protocols.wireprotocol.ILogData; import java.util.List; /** * Interface for snapshot/log entry read pre-processing. */ public interface ReadProcessor { /** * Process a snapshot/log entry read for any transfor...
20.633333
77
0.663974
e197eb9a548441910c3036a644b1611fb0d36650
685
package rholang.parsing.rholang1.Absyn; // Java Package generated by the BNF Converter. public class QInt extends Quantity { public final Integer integer_; public QInt(Integer p1) { integer_ = p1; } public <R,A> R accept(rholang.parsing.rholang1.Absyn.Quantity.Visitor<R,A> v, A arg) { return v.visit(this, arg);...
28.541667
117
0.69635
790caac5fffc74c39d7b0eab8eb1cb626c932092
63,152
/* * compile with * javac -classpath `hadoop classpath`:`hbase classpath` blms/batches/spcl/PVLU_UPDATES.java * nohup java -classpath `hadoop classpath`:`hbase classpath` blms/batches/spcl/PVLU_UPDATES 'hdfs://hahdfsqa/user/asp20571bdp/BLMB0102/PMLU/input/111111_20200201130000/VALID_PMLU_INPUT_FOR_JAVA/part-v009-...
56.185053
386
0.722511
c7081fa2ad1b4571e26d10d55059e3373bcf9cea
2,247
/* * 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.tatsinktechnologic.entity.account; /** * * @author olivier.tatsinkou */ import java.io.Serializable; import java.uti...
21.4
79
0.636404
05a750101a53d98edb45ec2b94a96d9dee3a08ab
2,378
package me.retrodaredevil.solarthing.message.implementations; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeName; import me.retrodaredevil.solarthing.message.MessageSender; import net.bis5.mattermost.client4.Ap...
35.492537
100
0.767452
0c2ffc313483cdd8a10f46010511003feacc0dc7
3,001
package com.trivago.cluecumber.json.postprocessors; import com.trivago.cluecumber.json.pojo.Element; import com.trivago.cluecumber.json.pojo.Report; import com.trivago.cluecumber.json.pojo.Step; import com.trivago.cluecumber.json.pojo.Tag; import org.junit.Before; import org.junit.Test; import java.util.ArrayList; im...
34.494253
80
0.65978
0409943082605a0123fa322b928da5aa650b2da6
571
package Binary; public class sqrtx_69 { public int mySqrt(int x) { if(x < 2) return x; long left = 2, right = x / 2 + 1, guess; long result = Integer.MAX_VALUE; while(left <= right) { long mid = left + (right - left) / 2; guess = mid * mid; if(gue...
25.954545
49
0.425569
b1da8ba383b6e1f4f45b2880d06457b52fba0000
4,451
/* MazeRunnerII: A Maze-Solving Game Copyright (C) 2008-2010 Eric Ahnell Any questions should be directed to the author via email at: mazer5d@worldwizard.net */ package com.puttysoftware.mazerunner3.maze.abc; import com.puttysoftware.mazerunner3.Game; import com.puttysoftware.mazerunner3.creatures.StatConstants; im...
32.021583
119
0.735565
65c8ae537c30e32d4a3502ccea66beb6add86326
1,365
import java.util.Scanner; public class FruitCoctails { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); String fruit=scanner.nextLine(); String size=scanner.nextLine(); int qty=Integer.parseInt(scanner.nextLine()); double price=0; if (...
31.022727
53
0.469597
e203da341a7f13761b6e4987d0a2160c3938b7c8
1,123
/** * @(#)WebService * 版权声明 厦门畅享信息技术有限公司, 版权所有 违者必究 * *<br> Copyright: Copyright (c) 2014 *<br> Company:厦门畅享信息技术有限公司 *<br> @author ulyn *<br> 14-12-12 下午5:44 *<br> @version 1.0 *———————————————————————————————— *修改记录 * 修改者: * 修改时间: * 修改原因: *———————————————————————————————— */ package com.sunsha...
23.893617
77
0.542297
059f741fa9997a99f099980b42f231c863c39ec1
2,802
package com.mapr.objectpools.model; /** * tierid * tiername * tiertype * url * bucketname * region * * tierPurged * * @return */ public class ContextCold { private String tierId, tierName, tierType, url, bucketName, region; private Long tierPurged; public String getTierId() { re...
26.942308
109
0.596717
11223e1191ec312ea5982a089ad5618fc44afade
69
package l.b.a; public abstract class a implements Comparable<a> { }
13.8
50
0.73913
751dccc077caa201b44fa47a67d48759900171ad
392
package no.nav.common.types.identer; import com.fasterxml.jackson.annotation.JsonCreator; /** * Representerer aktør IDen til en bruker. * Eksempel: 1112223334445 */ public class AktorId extends EksternBrukerId { @JsonCreator public AktorId(String id) { super(id); } public static AktorId o...
18.666667
52
0.693878
439c7a4b92cca50bf822d7cba716e1fbe4ba30d3
331
class org.junit.runners.BlockJUnit4ClassRunner$RuleCollector<T> implements org.junit.runners.model.MemberValueConsumer<T> { final java.util.List<T> result; public void accept(org.junit.runners.model.FrameworkMember<?>, T); org.junit.runners.BlockJUnit4ClassRunner$RuleCollector(org.junit.runners.BlockJUnit4ClassRu...
55.166667
123
0.81571
c260ba1edddd9c81061a3cfb89c6cf14a7fd7e85
784
package example; import java.util.HashMap; import java.util.Map; /** * Attempt to find the mapping "Firstname Lastname" to "Lastname, F.". */ public class NamingSolver extends StringSolver { /** * Entry point. */ public static void main(String... args) { final Map<String,String> ma...
26.133333
70
0.579082
a175e1f885425b7fd0dfb094a021068c5db5b9c7
965
package com.github.bingoohuang.blackcat.consumer; import com.github.bingoohuang.blackcat.sdk.BlackcatMsgHandler; import com.github.bingoohuang.blackcat.sdk.netty.BlackcatServer; import com.github.bingoohuang.blackcat.server.handler.CassandraMsgHandler; import com.github.bingoohuang.blackcat.server.handler.CompositeMsg...
37.115385
81
0.790674