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
6bc970e784c3ac71570375e1ef5d8f3a45fb001d
1,842
/******************************************************************************* * Copyright 2019 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...
24.236842
80
0.645494
593e6b64499e77d22b96d4541857c59343b8f24f
382
package codewars.kyu7; import org.junit.Test; import static org.junit.Assert.*; /** * @name Scoring Tests * @rank 7 * @id 55d2aee99f30dbbf8b000001 * @url https://www.codewars.com/kata/55d2aee99f30dbbf8b000001 */ public class ScoringTestsTest { @Test public void testScore() { assertEquals(12,...
20.105263
77
0.664921
f065b618d928a235be4c1445035260d0040c0a1f
572
package ca.ulaval.glo2003.transactions.rest; import ca.ulaval.glo2003.interfaces.domain.AbstractMapper; import ca.ulaval.glo2003.transactions.rest.serializers.TransactionDeserializingModule; import ca.ulaval.glo2003.transactions.rest.serializers.TransactionSerializingModule; import javax.inject.Inject; public class T...
33.647059
86
0.837413
6d3b82d1beae645b064c008ae4f0e2166244ae50
728
package com.liuhuachao.springbootaop.service.proxy; import com.liuhuachao.springbootaop.service.impl.CacheServiceImpl; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * CacheServiceProxy Tester. * @author <liuhuachao> * @version 1.0 * @since <pre>12/27/2021</pre> */ public class Cach...
16.177778
66
0.693681
8cf744b84eb6b8376e01e45b4ac20240f66e630a
662
package redstone.multimeter.block.chest; import net.minecraft.block.BlockState; import net.minecraft.block.entity.ChestBlockEntity; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.MathHelper; import net.minecraft.world.World; import redstone.multimeter.block.PowerSource; public class TrappedC...
31.52381
93
0.823263
c02c62043c9e507fb35ff8654bbadb46b8ba8f1b
3,682
/* * Copyright 2004-2013 ICEsoft Technologies Canada 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 appli...
47.818182
108
0.687127
44782890ef0bb637053ff4f28737fc3fc7c16590
18,065
/* * 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 ...
45.850254
144
0.65375
4def384ff8472326f0a64a5101ca3efc114d448f
273
package com.github.lianjiatech.retrofit.spring.boot.annotation; import java.lang.annotation.*; /** * 拦截标记注解 * Intercept mark * * @author 陈添明 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.ANNOTATION_TYPE) @Documented public @interface InterceptMark { }
16.058824
63
0.761905
d0d7ee351b7041eef513c6b71bb2855b0001ddf3
803
class Solution { public String XXX(String s, int numRows) { if(s == null || s.length() == 0) return ""; StringBuilder[] sb = new StringBuilder[numRows]; for(int i = 0; i < numRows; i++) { sb[i] = new StringBuilder(); } int i = 0; while(i < s.length()) { ...
27.689655
68
0.403487
2bf88f525a425560a12fc77eaa28c2f71b779ece
12,662
/* * Copyright LWJGL. All rights reserved. * License terms: http://lwjgl.org/license.php * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.opengl; import java.nio.*; import static org.lwjgl.system.Checks.*; import static org.lwjgl.system.JNI.*; import static org.lwjgl.system.MemoryUtil.*; /** * Native ...
86.136054
842
0.750987
ddda1def46361f2ae3b098236213cd2eb53f3513
4,187
package com.apphoa.tuanh.projectandroid.Admin; import android.content.DialogInterface; import android.content.Intent; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.Toa...
40.259615
152
0.673036
f70f8380eca16e144909fd7f6d8ff9d5c2b2e2ff
423
package cn.cerc.db; import cn.cerc.db.core.DataSet; /** * 专用于建立测试类数据 * * @author 张弓 */ public class SampleData { public static DataSet getDataSet() { DataSet ds = new DataSet(); for (int i = 1; i < 10; i++) { ds.append(); ds.setValue("code", "code" + i); ds...
18.391304
44
0.489362
b601b9d31eb6dc7e10c9f85a8725273143181e7e
267
package com.chess.backend.restController.objects; import com.chess.backend.gamemodel.constants.GameMode; import lombok.Data; @Data public class NewGameObject { private GameMode type; private Integer numberOfPlayers; private NewPlayerObject[] players; }
22.25
54
0.790262
aceffb9e0ae0560818ee977c54b1cb1606b65cb9
538
package test; import act.Act; import act.util.PropertySpec; import org.osgl.mvc.annotation.GetAction; import java.util.ArrayList; import java.util.List; public class AppEntry { @GetAction("/query") @PropertySpec("mfield.test.a as 测试") public List<Bean> query() { List<Bean> beans = ...
21.52
61
0.605948
883e6d00d59719ebf9ddb47ee3007c58341c7043
3,327
/** * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free...
34.65625
96
0.676886
aa0a0e01233b82d4162c978948ed2e55fcae1bb2
51,626
/* HumanDetectProfile.java Copyright (c) 2015 NTT DOCOMO,INC. Released under the MIT license http://opensource.org/licenses/mit-license.php */ package org.deviceconnect.android.profile; import java.util.Arrays; import java.util.List; import java.util.Locale; import org.deviceconnect.android.message.MessageUtils;...
31.460085
120
0.623852
e66203cadcbaa0960a244b9dc69767d5f95cf3b3
4,400
package com.stripe.example.activity; import android.content.Intent; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ProgressBar...
42.307692
103
0.669773
f2fb09f31f4535a5ebfa1e107f39298298958dad
3,135
package unit.com.bitdubai.fermat_cry_plugin.layer.crypto_network.bitcoin.developer.bitdubai.version_1.structure.BitcoinEventListeners; import com.bitdubai.fermat_api.layer.osa_android.logger_system.LogManager; import com.bitdubai.fermat_cry_plugin.layer.crypto_network.bitcoin.developer.bitdubai.version_1.structure.Bit...
28.761468
134
0.759171
7d213cef9cc4846a95544fcbd9c945bf0ac2408f
2,618
package jetbrains.mps.lang.behavior.migration; /*Generated by MPS */ import jetbrains.mps.lang.migration.runtime.base.MigrationScriptBase; import org.jetbrains.mps.openapi.model.SNode; import org.jetbrains.mps.openapi.module.SModule; import org.jetbrains.mps.openapi.module.SearchScope; import jetbrains.mps.lang.smode...
43.633333
222
0.785332
efd24de06cd6d1d97b80654686c5f2ba88429d61
809
import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.annotation.WebServlet; @WebServlet(urlPatterns = {"/EvenNumber"}) public class EvenNumber extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletExc...
26.966667
121
0.561187
7be7cf2fecf9ba65fc320855e89bdf0c742f52a8
2,689
package base.dto; import javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Retention; import java.lang.annotation.Target; import java.util.Arrays; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * @author c...
32.011905
84
0.584976
4f6a8b0f08b7372f9be1000f6d6aa5bbff025c68
5,804
/* * Copyright 2015 Rodrigo Agerri 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 ...
32.79096
102
0.681082
4caad3e5121709c8eaf792cf8dce037bcdce2d6a
320
package com.smn.it.taotaomall.sso.util; public class TokenUtils { private static final String TOKEN_PREFIX="token_"; public static final long DEAFAULT_TOKEN_EXPIRED_TIME=300000; public static String getToken(String userAccount){ return TOKEN_PREFIX+userAccount+System.currentTimeMillis(); } }
26.666667
67
0.7625
75b86f562a393755b2687aad6366bc8454da38b5
11,362
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * 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...
18.266881
813
0.786833
6fd9fc98ca5a95c35164dc5a39f20ae594a602d9
3,255
/* * Copyright 2020 Xiaomi * * 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...
24.473684
99
0.594163
54c4e60a40b14a2d1d6441196b31d4499388786f
1,807
package com.excilys.cdb.binding.utils; import java.sql.Timestamp; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.time.temporal.TemporalAmount; import java.util.Date; public class DateUtils { private static DateTimeFormatter timestampFormatter = DateTimeFormatter.ofPattern("yy...
31.701754
107
0.756502
cac5ab1d37d8271a4d0fd24f46dfb2edc58a64a1
4,971
package com.krish.linked.list; public class SinglyLinkedList { private ListNode head; public static void main(String[] args) { SinglyLinkedList sll = new SinglyLinkedList(); sll.head = new ListNode(10); ListNode second = new ListNode(6); ListNode third = new ListNode(4); ListNode fourth = n...
20.886555
84
0.62241
bce456860d97da783581c513250f0121e331c16b
746
package org.zwobble.mammoth.tests.docx; import org.zwobble.mammoth.internal.docx.FileReader; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.nio.charset.StandardCharsets; import java.util.Map; import static org.zwobble.mammoth.internal.util.Maps.lookup; publi...
28.692308
80
0.760054
c81a1777d8184a8a92b3422f08067d768f6daf8a
28,961
package com.luoshang.zkweb.service; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.Socket; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List...
33.872515
134
0.658161
354a858920d720608121f92f6fd5c5a7b8650c16
1,096
package javax.servlet.http; import java.util.EventListener; /** * Causes an object to be notified when it is bound to or unbound from a * session. The object is notified by an {@link HttpSessionBindingEvent} object. * This may be as a result of a servlet programmer explicitly unbinding an * attribute from a ses...
28.102564
80
0.686131
537ee460d19e25d15def7ea098ba162d7884901a
3,948
// Template Source: BaseMethodCollectionRequestBuilder.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -------------------...
58.058824
366
0.77305
917aa953d7c4139df08d5692b48b015449b4f867
20,842
/* * Copyright (C) 2018 The Android Open Source Project * * 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 app...
37.688969
100
0.691968
0ca87a645490454e57bfdfc3ce95a669956d78f8
3,904
// BEGIN LICENSE BLOCK // Version: CMPL 1.1 // // The contents of this file are subject to the Cisco-style Mozilla Public // License Version 1.1 (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy of the License // at www.eclipse-clp.org/license. // // Software d...
30.030769
105
0.663934
80d70776de24fa0e8e770dd7a352525ecefc1c4f
1,765
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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 app...
36.020408
86
0.766572
2697e9a5ca6443ad044448a3d9dcbe9ad0b43414
111,429
/* *AVISO LEGAL © Copyright *Este programa esta protegido por la ley de derechos de autor. *La reproduccion o distribucion ilicita de este programa o de cualquiera de *sus partes esta penado por la ley con severas sanciones civiles y penales, *y seran objeto de todas las sanciones legales que correspondan. *Su...
52.710028
385
0.820128
18ba18f3d090896ba33f10e6672c00886cf73aee
34,512
/* * Copyright © 2018-2019 Apple Inc. and the ServiceTalk project 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 ...
42.87205
119
0.591678
69de20a39e00328d5ca4acfa0a0495b19a0639b3
3,491
/* * Copyright 2015-2019 52°North Initiative for Geospatial Open Source * Software GmbH * * 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...
22.967105
75
0.657118
1a8d366d73b6f2443fdbd11d4b099a2f341b1ae0
159
package com.projectlounge.json; import lombok.Data; /** * Created by main on 24.08.17. */ @Data public class RawIndices { private Integer[] indices; }
13.25
31
0.691824
829216dd9228f66599d12013226a4c84c133a057
2,584
package com.listenergao.customview.view; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.RectF; import android.util.AttributeSet; import android.view.View; import com.listenergao.customv...
27.489362
113
0.684211
a5388e419ff69b0d871168a4105ee36af6effdb7
4,502
package com.example.singhnicershop; import android.content.Context; import android.nfc.Tag; import android.support.annotation.NonNull; import android.support.v7.widget.CardView; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import ...
37.206612
101
0.664149
c1f6bd41d43ecefb6521b7aeef7f6ed42d36d1da
1,072
package ru.javawebinar.basejava; public class MainConcurrency { Object lock1 = new Object(); Object lock2 = new Object(); public static void main(String[] args) { MainConcurrency deadlock = new MainConcurrency(); for (int i = 0; i < 2; i++) { new Thread(deadlock::method1).star...
26.8
92
0.514925
6e298469457b86ec67d0d799136a683f165c4e2c
1,613
package com.young.share.adapter; import android.content.Context; import android.support.v4.view.PagerAdapter; import android.support.v7.app.ActionBar; import android.view.View; import com.nostra13.universalimageloader.core.ImageLoader; import com.young.share.R; import com.young.share.adapter.baseAdapter.BasePagerAdap...
27.810345
103
0.67142
e770ca687dcaedc698186903e6e4f563a9c91a7f
210
package examples.classdesign.superclassmismatch.interfaces; import java.util.Iterator; import java.util.List; import java.util.function.Function; public interface Multiple extends Iterator, Function, List {}
26.25
61
0.828571
836f25010870b4b1ab38ac36a0b9da246569252f
6,396
package com.github.kmizu.parser_hands_on_kansai.json; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class JSONNode { public static class Pair<A, B> { public final A _1; public final B _2; public Pair(A _1, B _2) { this...
27.808696
79
0.512664
a291bd7219ecb51095d3a4e6cdfbf78760b620e2
116
package edu.fiuba.algo3.modelo.excepciones; public class LaTarjetaYaEstaDesactivadaException extends Exception { }
23.2
68
0.853448
ce64ae9b1f57eba0ee3c0d14830265bf46c76360
716
package org.ovirt.engine.core.common.config; import java.io.File; public class ConfigUtil { /** * Given a relative path, this method will resolve the path relative to the supplied directory. If supplied an * absolute path, it will be returned unmodified. * * @param baseDirectory * ...
29.833333
114
0.618715
f7d6e458a899ff4ca5fd72f82f2403991bb4565f
4,868
/** * Copyright 2015-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
32.671141
83
0.725144
c5761a644f929d87ecfd436f5527a32dcc0150da
1,511
/* * Copyright 2015 Nokia Solutions and Networks * Licensed under the Apache License, Version 2.0, * see license.txt file for details. */ package org.robotframework.ide.eclipse.main.plugin.tableeditor.settings.handler; import java.util.List; import javax.inject.Named; import org.eclipse.e4.core.di.annotations....
39.763158
125
0.776969
7c0cbffd8e2095958b05bb0bc219a9b54f5a16ae
404
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edacc.manageDB; /** * * @author rretz */ public class NoInstancesToSaveException extends Exception{ public NoInstancesToSaveException() { this("There is no instance to save in the table."); }...
19.238095
59
0.670792
73584b74f06909173b8e8adaf4472d6448d847b6
9,491
package de.kodestruktor.grief.taglib.property; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.regex.Pattern; import de.kodestruktor.grief.taglib.tag.Favicon; import de.kodestruktor.grief.taglib.tag.Image; import de.kodestruktor.grief.taglib.tag.Pagination; imp...
33.301754
130
0.662101
a05b3ea8ff6aefcc79c18c844ade0f011c6bd6ed
7,460
/* * Copyright (c) 2018, Tomas Slusny <slusnucky@gmail.com> * Copyright (c) 2019, Jordan Atwood <nightfirecat@protonmail.com> * Copyright (c) 2019, Jajack * Copyright (c) 2019, Siraz <https://github.com/Sirazzz> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modi...
36.390244
163
0.763271
433dfb3b304d497fdb7413235f76641bb0a6cd01
906
package main; /** * @author Tony Liang * */ public class DaysInAYear { public static void main(String[] args) { final int STARTING_YEAR = 2000; final int ENDING_YEAR = 2010; System.out.println("Year\tDays"); for (int year = STARTING_YEAR; year <= ENDING_YEAR; year++) { System.out.printf("%-4d\t...
17.09434
85
0.589404
69be93e3c454753e230ae6d2ce9955c9080a8ea9
114
package com.autowired; import org.springframework.stereotype.Component; @Component public class TestService { }
14.25
48
0.815789
b740ce081dcc585621c2fb4e9e2f31bca987b206
1,334
package org.infernus.idea.checkstyle.service; import com.intellij.openapi.project.Project; import org.infernus.idea.checkstyle.model.ConfigurationLocation; import org.infernus.idea.checkstyle.model.ConfigurationType; import org.jetbrains.annotations.NotNull; import java.io.ByteArrayInputStream; import java.io.IOExcep...
36.054054
102
0.744378
987b9d052fe745f41cb365f4ea63c372c732268d
3,625
package org.reggy93.ccrsa.service.impl; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import org.reggy93.ccrsa.service.dao.Country...
33.256881
119
0.758897
b95778be6be2df31df14d828d5d7b11c089c9f53
746
package com.sun.raceDetection.moel; public class FuncPairs { public String sharedVariable = null; public String methodOne = null; public String methodTwo = null; public int sign = -1; public FuncPairs(String sharedVariable, String methodOne, String methodTwo, int sINGLE_ASYNC) { super(); this.sharedVariab...
24.064516
77
0.691689
4f0ffb2692760ef10c5b1b3173edc0b2440f7402
2,111
/* * Copyright 2018 VetsEZ Inc, Sagebits LLC * * 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...
31.044118
166
0.75604
20c810da71c53632631f6662a885bdc05904886f
1,744
package com.journal.nn.school123.rest.info.subject; import androidx.annotation.NonNull; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.journal.nn.school123.rest.AbstractGetRequest; import com.journal.nn.school123.rest.RequestParameters; import java.util.HashMap; import java.util.Map...
44.717949
106
0.608372
e7721eda6b5bd8325d5f1296709a6fb57279da92
5,124
package org.programmingbasics.plom.core.view; import org.junit.Assert; import org.junit.Test; import org.programmingbasics.plom.core.ast.StatementContainer; import org.programmingbasics.plom.core.ast.Token; import org.programmingbasics.plom.core.ast.TokenContainer; import org.programmingbasics.plom.core.ast.gen...
45.75
146
0.630952
1a84640ae8dd7946273734a0ec9ac65182cf0b46
406
package cn.bugstack.springframework.beans.factory; /** * Interface to be implemented by beans that want to release resources * on destruction. A BeanFactory is supposed to invoke the destroy * method if it disposes a cached singleton. An application context * is supposed to dispose all of its singletons on close. ...
23.882353
70
0.756158
3a2b2429f706a13babc12c958c334174223e7582
401
package com.bookstore.entity; import javax.persistence.Entity; import javax.persistence.Lob; import javax.persistence.Table; @Entity @Table(name = "author") public class AuthorDeep extends BaseAuthor { @Lob private byte[] avatar; public byte[] getAvatar() { return avatar; } publ...
18.227273
44
0.648379
20f9b7a1275a075f1d2f29d596aa85105e7da7cd
10,148
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package android.support.design.transformation; import android.content.Context; import android.support.design.animation.MotionSpec; import android.support....
43.741379
253
0.606819
8725c4e1b87bcf2c14e8e246b6df116152750838
10,020
package com.axxessio.oauth2.server.facade; import javax.servlet.http.HttpServletRequest; import org.apache.log4j.Logger; import org.apache.tomcat.util.codec.binary.Base64; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpSt...
38.837209
149
0.714271
59be90b6ff75cbecca331c942bab657f1b03b707
1,076
package dqm.jku.dqmeerkat.dsd.elements; import java.util.List; import java.util.Set; import java.util.stream.Collectors; public class AggregationAssociation extends Association { private static final long serialVersionUID = 1L; private ForeignKey aggregate; public AggregationAssociation(String label, Datasource...
29.081081
134
0.753717
d648cdf483370a0af09cb6437cc84c543b716dc7
1,127
package classes; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import javax.swing.JPanel; public class JPanelArredondado extends JPanel{ private Color backgroundColor; private int cornerRadius; public JPanelArredond...
29.657895
102
0.669033
42887eb0f16d13c7f7aa217fe9d4d64813304789
447
package uk.gov.dvsa.motr.config; /** * Config based on Environment Variables */ public class EnvironmentVariableConfig implements Config { @Override public String getValue(ConfigKey key) { String value = System.getenv(key.getName()); if (value == null) { throw new RuntimeExceptio...
24.833333
83
0.612975
17b75dc76d6afada1b5aff831c43f308c72c00b0
1,017
package co.imdo.perfect.callback; import com.alibaba.fastjson.JSON; import lombok.extern.slf4j.Slf4j; import org.springframework.amqp.rabbit.connection.CorrelationData; import org.springframework.amqp.rabbit.core.RabbitTemplate; @Slf4j public class MyMqConfirmCallback implements RabbitTemplate.ConfirmCallback { ...
35.068966
92
0.672566
698da14979601e596cac88f052e40f4ded71665a
4,293
package com.smalljnes.mappers; import com.smalljnes.Cpu; import com.smalljnes.Mirroring; /** * @author sad */ public class Mapper4 extends AbstractMapper { byte reg8000; byte[] regs = new byte[8]; boolean horizontalMirroring; byte irqPeriod; byte irqCounter; boolean irqEnabled; public ...
32.037313
100
0.454461
9dc02dc3f1ca58d09b00b873ce7ead87961549ec
15,229
package mchorse.blockbuster_pack.morphs; import mchorse.blockbuster.api.ModelTransform; import mchorse.blockbuster.network.Dispatcher; import mchorse.blockbuster.network.common.structure.PacketStructure; import mchorse.blockbuster.network.common.structure.PacketStructureRequest; import mchorse.blockbuster.network.serv...
30.953252
148
0.606868
36c511101e1a583a73f665c1ae0ec93a711bd996
2,615
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * (C) Copyright 2009-2020, Arnaud Roques * * Project Info: https://plantuml.com * * If you like this project or if ...
37.357143
88
0.710516
5bbbed618231f07e51a74755d66843b06cbda130
2,993
package ru.ok.technopolis.firedemoapp; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.os.Handler; import android.os.Message; import android.os.SystemClock; import android.support.annotation.Nulla...
32.89011
89
0.61577
705a3095d41ea330075e5b6d17a34696cfefbefb
2,612
package org.folio.marccat.resources; import org.folio.marccat.config.log.Log; import org.folio.marccat.config.log.MessageCatalog; import org.folio.marccat.exception.DataAccessException; import org.folio.marccat.exception.SubsystemCommunicationException; import org.folio.marccat.exception.SystemInternalFailureException...
43.533333
130
0.819296
dc96783b36e9c6b9e9470dff03aed7fc9389bced
1,981
package com.skytala.eCommerce.domain.login.relations.x509IssuerProvision.model; import java.util.Map; import java.math.BigDecimal; import java.sql.Timestamp; import java.util.Map; import java.io.Serializable; import com.skytala.eCommerce.domain.login.relations.x509IssuerProvision.mapper.X509IssuerProvisionMapper; pub...
21.769231
105
0.81474
a709de38d8c6862be7006f09e052adc55f6599c3
545
package com.rsg.rsgportal; /** * Created by adamsingle on 16/02/2016. */ public interface GenericProgressFeedbackCallback<T> { // Call this when the operation has completed successfully // void success(T data); // // Call this if the operation fails to complete ...
23.695652
81
0.570642
f1d9c2ec1ea9f108f04d48c8946cbc48c75bc145
2,401
/******************************************************************************* * Copyright © 2019 by California Community Colleges Chancellor's Office * * 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...
27.284091
80
0.670554
d539c016a3de8a6ccc53a3e3b53efe300649cd47
25,338
package jmutops; import java.util.ArrayList; import java.util.List; import mutationoperators.MutationOperator; import mutationoperators.MutationOperatorProperty; import org.eclipse.jdt.core.dom.ASTNode; import org.eclipse.jdt.core.dom.DoStatement; import org.eclipse.jdt.core.dom.ForStatement; import org.e...
38.390909
190
0.706765
87ae0149b77459fb0b997bf9ce0f53927aae10aa
20,698
/* * Copyright (c) 2020 Dennis Lang (LanDen Labs) landenlabs@gmail.com * 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,...
38.25878
126
0.620301
6e8d648cb63db7d38eee3cd74b3a2c039541007c
1,033
/* * @(#)StyleConverterAdapter.java * Copyright © 2021 The authors and contributors of JHotDraw. MIT License. */ package org.jhotdraw8.text; import javafx.css.ParsedValue; import javafx.css.StyleConverter; import javafx.scene.text.Font; import org.jhotdraw8.annotation.NonNull; import org.jhotdraw8.annotation.Nullab...
25.825
82
0.704743
8978956dc2444ad46b8b94c8e0a7d7435ab4cb79
933
package com.solr.clientwrapper.usecase.solr.schema; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.solr.clientwrapper.domain.dto.solr.SolrFieldDTO; import com.solr.clientwrapper.domain....
32.172414
88
0.831726
8e6fbbbe20fbb335372cd5177b30686103e4c6fb
358
package org.gollum.bank.domain.account; import org.gollum.core.eventing.DomainEvent; /** * @author wurenhai * @date 2018/1/4 */ public class BankAccountCreated extends DomainEvent { private String owner; public BankAccountCreated(String owner) { this.owner = owner; } public String getOwn...
16.272727
53
0.670391
6d6514a079988877dbd444fda586c84f8a8e2369
12,455
/* * Copyright (c) 2010-2021 Haifeng Li. All rights reserved. * * Smile 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 option) any later version. * * Smi...
32.862797
214
0.530389
4355bdec4c4a708940b506fff02c60666fc4246a
19,794
package net.congueror.cgalaxy.gui.galaxy_map; import net.minecraft.ChatFormatting; import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.level.Level; import java.util.*; import java.util.stream.Collectors; public abstract class GalacticObjectBuilder<T...
29.720721
174
0.557694
321fe63148d545a023fce420efe351c07df9aa80
2,993
/******************************************************************************* * Copyright 2013 Sprachliche Informationsverarbeitung, University of Cologne * * 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 co...
31.505263
80
0.710324
f26d6f059241eccca5ea30e873bce560a01865d9
453
package com.mit.community.entity; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @NoArgsConstructor @AllArgsConstructor @Data //设备信息 public class UserInfo { private String id; // 设备id private String serialNumber; //设备编号 private String nickName; //设备名称 private...
21.571429
61
0.730684
e93824c4bb57204c60da72a39a449308c8599e97
8,466
package joken.ac.jp.survey2016; import android.support.v7.widget.RecyclerView; import android.text.Editable; import android.text.TextWatcher; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.RadioButton; import android.w...
29.601399
134
0.718876
d6fcc48892f4a026469585b13ef3fe7ee69ce777
6,867
/* * Copyright (c) 2019, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, * Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * * Unless required by ...
40.157895
99
0.630115
b6362cf41cce72dacd6525eb4a50d5135c1511f5
2,404
package com.alipay.android.a.a.a; import android.os.Looper; import com.alipay.android.a.a.a.a.c; import com.alipay.android.a.a.a.a.d; import com.alipay.android.a.a.a.a.f; import com.alipay.d.a.a.a.a; import java.lang.reflect.Method; import java.lang.reflect.Type; import java.util.Map; import java.util.concurrent.atomi...
29.679012
113
0.626872
2cce4969c14957c692917690493e1fdc2d5979a4
522
package com.matthewoneill.manualscrobbler; import android.os.Bundle; import android.preference.PreferenceActivity; public class SettingsActivity extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //noinspection depr...
22.695652
60
0.749042
416632df3b44ebee2070cfbfdbab64f093dffaae
6,777
/* * Copyright 2002-2015 SCOOP Software GmbH * * 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...
32.581731
119
0.597757
aa2f11e85ca53daa3a77ceba19c004c0dc2d54ad
180
package com.github.cschen1205.tensorflow.classifiers.images.models; import java.io.IOException; public interface TrainedModelLoader { void load_model() throws IOException; }
22.5
67
0.811111
1f4ee016ac645074ce200dd79d4822596bc00a78
4,437
package timeflow.app.ui; import javax.swing.*; import javax.swing.event.ChangeListener; import java.awt.*; import java.awt.event.*; import java.util.*; // custom JTabbedPane-like thing. public class LinkTabPane extends JPanel { ArrayList<String> tabNames=new ArrayList<String>(); HashMap<String, JComponent> tabMa...
21.229665
100
0.6119
d8ea6835405436093ee77e6a2fefed0d34f83a32
199
package io.odpf.dagger.core.exception; public class InvalidDaggerSourceException extends RuntimeException { public InvalidDaggerSourceException(String message) { super(message); } }
24.875
68
0.768844
a4ca05724edde50bdb02423044519ecdedced35e
23,765
/* * Copyright (C) 2015-2017 Lukoh Nam, goForer * * 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 ...
33.284314
112
0.643299
424a5f23a4aa08631948d6f9e779d5beeb5c9a05
1,430
/* * EVE Swagger Interface * An OpenAPI for EVE Online * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package net.troja.eve.esi.model; import com.google.gson.TypeAdapter; import com.goog...
21.343284
98
0.67972
5c4e6e4e45904abd769340f567c3b744d01a3857
968
package io.quarkus.opentelemetry.restclient.deployment; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildIte...
44
127
0.802686
b8d1282d9b54c72bf977eb7c0ba7d74a1c618beb
702
import java.util.ArrayList; public class Column { private final String name; private final ArrayList<String> rows; public Column(String name) { this.name = name; this.rows = new ArrayList<>(); } public String getName() { return this.name; } public ArrayList<String...
19.5
54
0.595442
e578c871f2da324d06b23330acb043853a5a37c8
260
package chp02; import java.util.Random; public class LuckyNo { public static void main(String[] args) { Random rand = new Random(); int lucky = rand.nextInt(10); //0-9的随机数 System.out.println("今天的幸运数是" + lucky + "。"); } }
17.333333
52
0.592308
db7ae9a5fe43011fa6b9b83279e3943f792e7f49
3,988
package krpc.rpc.dynamicroute; import krpc.common.Json; import krpc.common.Plugin; import krpc.httpclient.HttpClientReq; import krpc.httpclient.HttpClientRes; import krpc.rpc.core.DynamicRouteConfig; import krpc.rpc.core.DynamicRoutePlugin; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Map...
35.927928
555
0.633902
fe48c32a8d3787b62736e918a2a89da73c130cdd
13,717
/** * Most of the code in the Qalingo project is copyrighted Hoteia and licensed * under the Apache License Version 2.0 (release version 0.8.0) * http://www.apache.org/licenses/LICENSE-2.0 * * Copyright (c) Hoteia, 2012-2014 * http://www.hoteia.com - http://twitter.com/hoteia - contact@h...
58.619658
208
0.749727
99b1db0a9c17907aeb31479e78375da6de90ca78
1,032
package org.doremus.isnimatcher; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement(name = "source") @XmlAccessorType(XmlAccessType.FIELD) public class Source { ...
27.157895
83
0.752907