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
bd4b0566fa0cec1cbc962e86948b76fd43383fc4
3,275
package com.nexus.mall.api.config; import com.nexus.mall.api.interceptor.UserTokenInterceptor; import org.apache.commons.lang3.reflect.FieldUtils; import org.springframework.boot.web.client.RestTemplateBuilder; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configurat...
43.092105
145
0.657405
f7c4aac2e04fbb5bf9b983320c140f4c7dbd6da6
19,650
/* * Copyright (C) 2019 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...
43.281938
100
0.615165
7ca1cd831efb9e46748f826e6bda8d7bdf515ff4
331
package eu.kanade.tachiyomi.data.source.model; import java.util.List; import eu.kanade.tachiyomi.data.database.models.Manga; public class MangasPage { public List<Manga> mangas; public int page; public String url; public String nextPageUrl; public MangasPage(int page) { this.page = page...
17.421053
54
0.697885
b552240ed44bfa830fa9756da6a4c102ada4286d
2,267
package com.sccbv.webapp.system.menu; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import org.apache.commons.lang3.StringUtils; /** * 菜单视图工具类。 * 用于将菜单数据同步转为页面元素 * * @author xuqiang * @date 2018/04/08 * @description **/ public class MenuViewUtils { private static final Str...
28.696203
97
0.562417
04c30131903ff51471b1bd65bbd1e82eaa9dce36
1,843
package edu.harvard.iq.dataverse.provenance; import edu.harvard.iq.dataverse.persistence.datafile.DataFile; import io.vavr.control.Option; /** *For storing datafile and provjson in a map value. * * Note: I'm only certain that provJson can be nullable, other values must be checked. */ public class UpdatesEntry { ...
26.328571
110
0.627781
4fa73b7b411d96d8f9eaf3eb63a249ddbc9378f3
1,220
/* * Copyright (C) 2008 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...
30.5
75
0.660656
2096de45f42ec856e180f15eb0bbe283a7c7d63b
260
package gw.specContrib.classes.inner; /** */ public class JavaWithInnerFunctionalInterface { public static void runWith( BlockRunnable block, String msg ) { block.run( msg ); } public interface BlockRunnable { void run( String bundle ); } }
18.571429
65
0.703846
2808d36b5bfa7012ed629703f85bfce87b83bed2
4,774
package com.danieldallos.androidthings.ultrasonicsensor; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import com.google.android.things.pio.Gpio; import com.google.android.things.pio.PeripheralManagerService; import java.io.IOException; public class MainActivity...
29.469136
87
0.553205
76a07606c75333abbc4082696b7a45db68a65aba
3,875
package models; import java.util.ArrayList; import java.util.List; import java.util.Objects; /** * Created with IntelliJ IDEA. * User: Keith * Date: 3/14/14 * Time: 3:07 PM * To change this template use File | Settings | File Templates. */ public class Course { private String courseID; private String c...
26.006711
198
0.628903
40d3e2c66fda998aad6e6198ce989abf15ce0d04
5,739
package com.vladsch.flexmark.formatter.internal; import com.vladsch.flexmark.ast.HtmlCommentBlock; import com.vladsch.flexmark.ast.HtmlInnerBlockComment; import com.vladsch.flexmark.ast.Paragraph; import com.vladsch.flexmark.formatter.FormatterOptions; import com.vladsch.flexmark.util.ast.Block; import com.vladsch.fle...
33.17341
110
0.726085
a166adab3f11af6707d08738acb4bd8baca2e5a7
745
/* @test /nodynamiccopyright/ * @bug 7192246 * @summary check that default method overriding object members are flagged as error * @compile/fail/ref=Neg13.out -XDrawDiagnostics Neg13.java */ interface Neg13 { default protected Object clone() { return null; } //protected not allowed here default boolean equa...
39.210526
84
0.685906
4563e6068064d0b24a929fa4a36a5b5b1452e522
344
package profchoper.professor; import java.util.List; public interface ProfessorService { List<Professor> getAllProfessors(); List<Professor> getProfessorsByCourseId(String courseId); Professor getProfessorByAlias(String alias); Professor getProfessorByName(String name); Professor getProfessorB...
21.5
61
0.781977
cd3cb67ca8913c7dea2a15a043d1a3bf78dc4c88
4,232
package com.esri.soap; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * &lt;p&gt;Java class for LayerResultOptions complex type. * * &lt;p&gt;The following schema fragmen...
28.789116
148
0.634688
a7aa8ecfa2e843068b5c140894e9a5ffd17b7146
1,240
package com.softteco.toolset.utils; import java.util.ArrayList; import java.util.List; /** * * @author serge */ public final class ListUtils { public static <E> List<E> copy(final List<E> source, final Executor<E> executor) { return copy(source, executor, null); } public static <E, A> List<E>...
22.142857
116
0.517742
996bad39adf19486e22565187b8243ac27272a16
1,050
package Basics; import java.util.Scanner; import static java.lang.System.exit; public class anagram_two_String { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String s1=sc.next().toLowerCase(); String s2=sc.next().toLowerCase(); if (s1.length() != s2....
27.631579
53
0.431429
8292b48da1fbfd48187ebd17acc83ae6e08c495f
152
package com.hmtbasdas.bseuot.Listeners; import com.hmtbasdas.bseuot.Models.News; public interface UserListener { void onNewsClicked(News news); }
19
40
0.789474
56176048b4806e9f59ecd9feeddeb8f8566c82d4
4,553
/** MIT License Copyright (c) 2017 Djer13 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, publish, distri...
23.469072
107
0.658467
65144a446846be5b69f09112d94033e5ef132542
4,906
/* * Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved. */ package net.snowflake.client.jdbc; import java.sql.SQLException; import net.snowflake.client.core.SFException; import net.snowflake.client.log.SFLogger; import net.snowflake.client.log.SFLoggerFactory; import net.snowflake.common.core.Res...
31.248408
99
0.708724
b8fe768247e6194f7accc162133e8814d5e7dc48
2,727
/* * Copyright 2013 Harald Wellmann * * 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 ...
28.40625
85
0.706271
1f40c26c1d0d0fab87d1012a4775361fb5c5cb35
1,607
package org.infinispan.server.hotrod; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.channel.Channel; import io.netty.channel.ChannelPipeline; import io.netty.util.CharsetUtil; import org.infinispan.commons.logging.LogFactory; import org.infinispan.server.hotrod.logging.JavaLog; impor...
30.320755
96
0.65028
e4253bf99971f0f6807a6d3354e461b2d9df3833
280
package com.swipeupdev.banklineapi.model.exception; public class EntityRequirementException extends RuntimeException { private static final long serialVersionUID = 5491793674767327337L; public EntityRequirementException(String message) { super(message); } }
28
70
0.785714
5eb0490f6c498d4869750f0b3f7a402df720eab2
4,560
/**************************************************************** * 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...
57
152
0.735088
ca0fc75096fdfd33df5222fbf844dbb3d0864e00
3,662
package org.example.vehicles.backend.service.vehicle.dao; import org.assertj.core.api.Assertions; import org.awaitility.Awaitility; import org.example.vehicles.common.vehicle.entity.Location; import org.example.vehicles.common.vehicle.entity.Vehicle; import org.example.vehicles.common.vehicle.entity.VehicleBeacon; imp...
34.54717
92
0.597488
3804c1d9cb27f4eaaa932235fce3a943b3dc49c8
7,895
/* * 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...
27.701754
75
0.649525
67b52b9da81acb19b227676e97d22d434a7e2f81
158
package in.hocg.boot.validation.group; /** * Created by hocgin on 2020/8/19 * email: hocgin@gmail.com * * @author hocgin */ public interface Update { }
14.363636
38
0.683544
891cc4621dde75e6a149403b2370f30969a41b28
3,395
package cc.cc1234.domain.zookeeper.service; import cc.cc1234.domain.configuration.entity.ServerConfiguration; import cc.cc1234.domain.zookeeper.entity.Terminal; import cc.cc1234.domain.zookeeper.entity.Zookeeper; import cc.cc1234.domain.zookeeper.factory.ZookeeperFactory; import cc.cc1234.spi.listener.ServerListener; ...
33.613861
110
0.66863
8bedd8b2d7e5178ee0d49e651d6a4e859fee0c64
11,908
/* * Copyright 2017 StreamSets 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 or agreed...
37.683544
118
0.71263
11fa635eeb829b9857e8383aca006994b8783cc1
1,165
package com.captainduckman.math; /** * Base class fcr classes working as proxies for a Tuple. * * @param <E> the type parameter */ public abstract class AbstractTupleProxy<E extends Transformable<E>> implements Transformable<E> { // deliberately package private for high performance reference by other classes i...
19.098361
99
0.553648
166cf31863beeebfb44228b9aff31241b51ea9b7
1,920
package org.apidb.apicomplexa.wsfplugin.highspeedsnpsearch; import java.io.File; import java.util.List; import java.util.Map; import org.apache.log4j.Logger; import org.gusdb.wsf.plugin.PluginModelException; import org.gusdb.wsf.plugin.PluginUserException; /** * @author steve */ public class FindPolymorphismsPlugi...
27.428571
126
0.692708
361e7a2e8a9f89235e6d90b1d9db3896ee2a121d
409
package br.com.br.proposta.webservice; import java.math.BigDecimal; import java.time.LocalDate; public class DadosCardsResponse { private String id; private String titular; private Long idProposta; public String getId() { return id; } public String getTitular() { return titular; ...
9.97561
38
0.643032
7bdbd5f00420590b46b0bf17cff7de51708dd0d8
4,400
package com.dd7.lurkerhn; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; i...
40.740741
119
0.694091
1e158882acb9546bd25c8f5e0ed552da3c802e3d
2,943
// Copyright 2014 The Bazel Authors. 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 of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
35.457831
104
0.750595
c068026e8a73dbeb4d43f0c43f4daf1a8dc8225b
4,553
package com.applanga.android.react; import android.util.Log; import android.widget.Toast; import com.applanga.android.ApplangaCallback; import com.facebook.react.bridge.Arguments; import com.facebook.react.bridge.Callback; import com.facebook.react.bridge.Promise; import com.facebook.react.bridge.ReactApplicationCont...
33.233577
99
0.613442
22ecb81ea9aebdffd84fec46aa6b9040289c339f
13,242
/* * Copyright 2002-2006 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...
49.969811
101
0.752832
73b0185d967e1764527a6e574cbbfd11d3b9bb35
117
package org.ovirt.engine.core.bll.adbroker; public enum IPARootDSEAttributes { namingContexts, vendorName }
16.714286
43
0.769231
8322ac3cd9caa2bc215e7cd54fcc8617d808c1da
973
package mb.statix.solver.persistent; import java.io.Serializable; import mb.nabl2.terms.ITerm; import mb.statix.solver.ITermProperty; public class SingletonTermProperty implements ITermProperty, Serializable { private static final long serialVersionUID = 1L; private final ITerm value; private Singleto...
25.605263
104
0.713258
3b1487c7ee67636635d436c93d9b81088ab9d5a2
256
package com.example.myproject.model; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; @Entity @DiscriminatorValue("C") public class Cliente extends Usuario{ private static final long serialVersionUID = 1L; }
19.692308
50
0.765625
a2ea33a8a37eb02d0374a958825b7a897ae7103e
987
package tsg.utils; import java.io.File; import java.io.PrintWriter; import java.util.ArrayList; import tsg.TSNodeLabel; import util.file.FileUtil; public class MakeTreebankFlatForBitpar { public static void main(String[] args) throws Exception { File inputFile = new File(args[0]); File outputFile = new File...
19.74
71
0.647416
020b1429bf7341844ac910325389ba5ef6bfff8f
3,799
package me.vilsol.nmswrapper.wraps.unparsed; import me.vilsol.nmswrapper.*; import me.vilsol.nmswrapper.reflections.*; import me.vilsol.nmswrapper.wraps.*; @ReflectiveClass(name = "EntityLeash") public class NMSEntityLeash extends NMSEntityHanging { public NMSEntityLeash(Object nmsObject){ super(nmsObjec...
34.853211
134
0.679916
bd1fd16f6ae186e08a7c9f08721e086b6263b015
4,512
/* * 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 ...
33.924812
124
0.661569
6a798d00c27c9225dfa83d95d5522338021d6fbf
3,844
/** * Copyright 2015 Palantir Technologies * * Licensed under the BSD-3 License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://opensource.org/licenses/BSD-3-Clause * * Unless required by applicable law or agreed to in wri...
29.569231
126
0.594173
33686b574463e9910ceeea658de5eafed47dc76c
941
package versions.java8.concurrence; import versions.java8.concurrence.jdk.BlockingQueue; import versions.java8.concurrence.jdk.LinkedBlockingQueue; public class LinkedBlockingQueueDemo { static BlockingQueue<String> blockingQueue = new LinkedBlockingQueue<String>(); public static void main(String[] args) throws I...
30.354839
80
0.693943
1c374b80df8fe08911bc47134e04f0ed575f650e
23
package es.weso.hermes;
23
23
0.826087
9adcba888d9f8b6adc484ffc13145eb67ad67c50
17,101
/******************************************************************************* * Copyright (c) 2003, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
39.585648
96
0.563827
59aecaeb2ac9ffd234e8fe9ab703cc2c5ec3eb9c
15,383
/* * Copyright 2017 Theo Weidmann. All rights reserved. * * Converted to Java by Daniel Bergqvist. * * See the file LICENSE for The Artistic License 2.0 */ package emojicode; import java.util.Arrays; import java.util.List; /** * Definition of many of the emojis used by Emojicode. */ public interface Emojicode...
46.056886
80
0.610089
59d8a7fa69b530d82e7e1de5d20594f712ddcd6a
6,535
// 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 com.google.android.gms.internal.clearcut; // Referenced classes of package com.google.android.gms.internal.clearcut: // br, dj, kk, bt, // k...
31.119048
120
0.475746
d7d162096645f6dd5c9501bc886484e68a088894
253
package com.ruoyi.storage.mapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @Mapper public interface StorageMapper { int decrease(@Param("productId") Long productId, @Param("count") Integer count); }
25.3
84
0.778656
6d569a471ff8fcf6f111a1b10c815681be62739c
1,116
package org.innovateuk.ifs.project.projectteam.viewmodel; import org.innovateuk.ifs.project.resource.ProjectUserResource; import java.util.List; /** * View model for the Finance Contact page */ public class FinanceContactViewModel { private final List<ProjectUserResource> orgUsers; private final long proj...
26.571429
70
0.646057
be8b06435bbfc6779fec9e9da46cd5294a2a8980
649
package test; import java.util.Scanner; public class main { public static void main(String[] args) { Program pro = new Program(); Scanner scanner=new Scanner(System.in); int entry_value = 0, total_numbers = 0, min_value = 20; do { System.out.print("Entry a number bigger than or equal 20: "); ...
19.666667
71
0.644068
358ce7541127a5a2f81f6354b541ee444c9ab13d
10,947
package android.security.jcic.test; import java.util.Iterator; import javax.smartcardio.CommandAPDU; import javax.smartcardio.ResponseAPDU; import org.junit.Assert; import com.google.iot.cbor.CborArray; import com.google.iot.cbor.CborByteString; import com.google.iot.cbor.CborInteger; import com.google.iot.cbor.Cbo...
47.185345
164
0.721019
196e025905f7c35e919e8e57c39210a42a3da25f
4,638
package uk.ac.surrey.sccs.pow.app; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; import org.spongycastle.asn1.nist.NISTNamedCurves; import org.spongycastle.asn1.x9.X9ECParameters; import org.spongycastle.crypto.PBEPar...
31.767123
124
0.721647
22b5b0d73093e0fe579e0ff82193d862bb10c45f
3,507
package pers.liy.handler; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.http.HttpStatus; import org.springframework.security.access.AccessDeniedException; import org.springframework.validation.BindException; import org.springframework.validation.FieldError; i...
37.308511
104
0.724266
ef3e38be4b3d17483b352838f1d5ca7797b6f2b1
6,434
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.components.webxr; import android.app.Activity; import android.content.Context; import android.view.Surface; import org.chromium.bas...
41.24359
100
0.718527
902bf1d4ab6c752a6022f397fdd6f31952334aef
496
package hex.schemas; import hex.tree.TreeStats; import water.api.API; import water.api.Schema; public class TreeStatsV3 extends Schema<TreeStats, TreeStatsV3> { // TODO: no CamelCase @API(help="minDepth") public int min_depth; @API(help="maxDepth") public int max_depth; @API(help="meanDepth") public f...
18.37037
65
0.721774
7406f4b5c088b70aec659a6a472d4af79ed1ce1b
1,266
package com.examplehub.basics; public class WhileLoop { public static void main(String[] args) { /* * Syntax * while (condition) { * // code block to be executed * } */ /* * ##### */ int i = 1; while (i <= 5) { System.out.print("#"); i++; } Sy...
15.62963
52
0.387836
2fc9568e2e3c02b0915206159779520a8b9b572b
4,500
/* * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.17.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do no...
22.38806
135
0.692
69efc08028d7aaf763073abad59e6914e0e21db7
1,075
/* * Copyright (c) 2013 TIBCO Software Inc. All Rights Reserved. * * Use is subject to the terms of the TIBCO license terms accompanying the download of this code. * In most instances, the license terms are contained in a file named license.txt. */ package org.fabrican.extension.variable.provider.dao; import java...
25.595238
97
0.660465
6f2765b983aac0fc97fe15f1a1fc8ee05c3ec11b
258
package id.ac.unpar.siamodels.matakuliah.kurikulum2018; import id.ac.unpar.siamodels.InfoMataKuliah; import id.ac.unpar.siamodels.MataKuliah; @InfoMataKuliah(nama = "Pemrograman Berorientasi Objek", sks = 3) public class AIF131191 extends MataKuliah { }
23.454545
65
0.802326
e17a9ad5c353b1836d2a172f9a2928b346687576
68
package me.stevenkin.alohajob.common.dto; public class UserDto { }
13.6
41
0.779412
d7795ec5525b574ae9ff2ce19755ecee962d13b2
5,525
package pieces; import chess.Cell; import java.util.ArrayList; /** * This is the Queen Class inherited from the abstract Piece class */ public class Queen extends Piece { //Constructors public Queen(String i, String p, int c) { setAttributes(i, p, c); } // private void setAttributes(String...
29.232804
82
0.474932
edf951e2324bd6f89b7c5a3929dd14afb4242040
13,025
package wap.pagemethods; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.se...
31.461353
111
0.721766
340829c1b214578b31916fe2e15d482168bb58a4
2,085
package com.fanyongliang.book.beans; import java.io.Serializable; public class UserInfoBean implements Serializable { /** * */ private static final long serialVersionUID = 1L; /** * 编号 */ private int code; /** * 用户名 */ private String userName; /** * 真实姓名 */ private String realName; /** * 身...
15.218978
64
0.677698
70a89bfd66a08b1bc975f86735eb82b89aca3587
923
package frc.robot.subsystems; import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX; import edu.wpi.first.wpilibj.command.Subsystem; import frc.robot.OI; public class AcquisitionSubsystem extends Subsystem { WPI_TalonSRX acquisition = null; public AcquisitionSubsystem() { create(); } private void...
21.465116
79
0.674973
1ee9fe0908f88b514d1655ebdba04292c9028e6b
4,723
/* * Copyright 2016-2018, EnMasse authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.enmasse.systemtest.standard.mqtt; import io.enmasse.systemtest.CustomLogger; import io.enmasse.systemtest.Destination; import io.enmasse.systemtest.ability.I...
41.429825
119
0.693839
922dfa1978c2bba17f9196140f4813be239fb934
2,007
package org.cloudfoundry.multiapps.mta.handlers.v3; import java.util.stream.Stream; import org.cloudfoundry.multiapps.common.test.Tester.Expectation; import org.junit.jupiter.params.provider.Arguments; public class DescriptorMergerTest extends org.cloudfoundry.multiapps.mta.handlers.v2.DescriptorMergerTest { st...
52.815789
125
0.598904
9e1d532b3c7a16e30f67a64423d18577b059fef5
1,219
package com.github.akarazhev.jacademy.practice.designpatterns.chainofresponsibility.impl; import com.github.akarazhev.jacademy.practice.designpatterns.chainofresponsibility.BaseParser; import com.github.akarazhev.jacademy.practice.designpatterns.composite.Symbol; import com.github.akarazhev.jacademy.practice.designpa...
32.078947
94
0.7621
42c5c7ab1ac96634c8837635071e260763c100eb
4,713
/** * Copyright 2016 Jordan Zimmerman * * 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 t...
39.940678
221
0.518566
eb3b8056a6cf02a5bb6c4ad0649e6052b1fe6d1c
1,549
/*************************************************************************** * (C) Copyright 2003-2011 - Marauroa * *************************************************************************** *************************************************************************** * ...
29.788462
77
0.449968
60cba18e0ca933e58a03ea06a7f2275f887d05b1
3,552
package com.jivesoftware.os.lab.api.rawhide; import com.jivesoftware.os.lab.api.FormatTransformer; import com.jivesoftware.os.lab.api.ValueStream; import com.jivesoftware.os.lab.io.BolBuffer; import com.jivesoftware.os.lab.io.api.IAppendOnly; import com.jivesoftware.os.lab.io.api.IPointerReadable; /** * * @author j...
33.196262
142
0.706644
78295e8abc7f6bb40cec32ded11c5b969eabb349
1,517
package edu.uncw.whereami; import java.util.Date; import io.objectbox.annotation.Entity; import io.objectbox.annotation.Id; @Entity public class LocationRecording { @Id private long id; private Date timestamp; private double latitude; private double longitude; private double acc; public...
20.5
102
0.618326
527ad310a5ebbc1dfa0b66ab9a8aeb6a2f400a75
1,005
package com.github.cronosun.violake.android.ext; import android.widget.TextView; import com.github.cronosun.violake.android.Applicator; import com.github.cronosun.violake.android.Event; import com.github.cronosun.violake.android.Violake; import com.github.cronosun.violake.core.Disposable; public final class SetText ...
31.40625
95
0.713433
8fdc14e6ab5f3cebde134ae2b9c977ae20e941c1
653
package org.apache.spark.sql.parquet; // no position private class RowReadSupport$ { /** * Static reference to the singleton instance of this Scala object. */ public static final RowReadSupport$ MODULE$ = null; public RowReadSupport$ () { throw new RuntimeException(); } public java.lang.String SPARK_R...
50.230769
190
0.75804
b2fcdc8ed8dfd391695829827fe615e6c417a086
3,152
/* * The MIT License (MIT) * * Copyright (c) 2014 Gabriel Schmidt * * 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 right...
33.531915
82
0.727475
979ed906ce0ba33cc7fae715c01f56f38a67e636
1,254
package io.berndruecker.onboarding.customer.rest; import java.util.HashMap; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PutMapping; import org.springfra...
30.585366
98
0.740032
b22399fa156d6a8d156deba1ff0d2fd56937ba52
2,568
package com.ego.im4bmob.ui; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import com.ego.im4bmob.R; import com.ego.im4bmob.base.ParentWithNav...
31.317073
101
0.630062
3cac5e7ec4b21a7c070f76b1c027f15b51f4ffe5
168
package ru.job4j.pseudo; /** * Интерфейс для геометрической фигуры. * @author Aleksey Pavlov (mailto:paalse@list.ru) */ public interface Shape { String draw(); }
16.8
49
0.708333
9d6200f40d1b6c16218739993369dfe2e73c54da
331
package com.jfcorugedo.creational.abstractfactory; import com.jfcorugedo.creational.abstractfactory.cruiser.Cruiser; import com.jfcorugedo.creational.abstractfactory.starfighter.Starfighter; public interface FleetAbstractFactory { Starfighter createStartfighter(); Cruiser createCruiser(Starfighter... starfi...
27.583333
73
0.833837
952233e4f72b531f863babf74f6c220646d5fd3f
514
/* * 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 eu.razniewski.countries; import java.util.Optional; /** * * @author edge */ public interface AutographStorage { public...
22.347826
79
0.702335
61ed8878d44f2f7a7a67639b945cb27e6e889697
5,386
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * 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 a...
35.668874
121
0.725214
b973b352dcc90286f70e112c18be2f72e5a589c1
219
package com.mercadolibre.restclient.serialization; import com.mercadolibre.restclient.http.ContentType; import java.util.Map; public interface SerializerRegistry { Map<ContentType,Serializer> getMappings(); }
16.846154
52
0.803653
d008ae33385e301edd9fa9afdb55373c94df58cf
755
package com.ablanco.teemo.model.staticdata; import com.ablanco.teemo.model.BaseObject; import java.util.List; /** * Created by Álvaro Blanco Cabrero on 26/3/16 * Teemo */ public class BlockDto extends BaseObject { private List<BlockItemDto> items; private Boolean recMath; private String type; pu...
18.414634
52
0.639735
869f2b8512f979dc9985778839a0259a3be163c2
4,311
package moe.feng.common.imagegridview.demo; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import android.widget.ImageView; import java.util.Arrays; import java.util.List; import moe.feng.common.imagegridview.DefaultImageViewCreator;...
38.491071
87
0.785897
3821cedeeee7906be45b1e1fa345bcd6c5586fab
747
package org.infinispan.notifications.cachelistener.event; import org.infinispan.transaction.xa.GlobalTransaction; /** * An event subtype that includes a transaction context - if one exists - as well as a boolean as to whether the call * originated locally or remotely. * * @author Manik Surtani * @since 4.0 */ p...
31.125
120
0.716198
2208c2f9d438b553eb020ffdb8aa8789833babbe
347
package com.bstek.urule.console.servlet.complexscorecard; public class TableHeader { private String a; public TableHeader() { } public boolean isScore() { return this.a.equals("分值"); } public String getName() { return this.a; } public void setName(String var1) { ...
16.52381
57
0.599424
3cf7f98b4f9dd84c7fbde5ab9c5840025f136b9c
5,427
package es.sacyl.gsa.inform.reports.recursos; import es.sacyl.gsa.inform.bean.DatoGenericoFileBean; import es.sacyl.gsa.inform.bean.EquipoBean; import es.sacyl.gsa.inform.dao.DatoGenericoDao; import es.sacyl.gsa.inform.dao.UbicacionDao; import es.sacyl.gsa.inform.reports.MasterExcel; import es.sacyl.gsa.inform.util.Ut...
34.788462
140
0.53934
d2c49827c750396b96a7137b5484ba81a5d2ffb3
2,124
/* * Copyright (C) 2020 Beijing Yishu Technology Co., 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 ...
26.886076
82
0.653955
e1e87dd846f61e4907366f2aa4c07bad06215945
10,629
/* * Copyright 2011 NEHTA * * Licensed under the NEHTA Open Source (Apache) License; you may not use this * file except in compliance with the License. A copy of the License is in the * 'license.txt' file, which should be provided with this work. * * Unless required by applicable law or agreed to in writing, sof...
44.659664
158
0.666196
e1ec19b22f0c2f98ede40159e0b306615e3577b4
3,124
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See License.txt in the repository root. package com.microsoft.tfs.client.common.commands.vc; import java.text.MessageFormat; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclips...
37.190476
134
0.734315
0487907714a906b24615c71af2a9e05fd6e8af76
2,065
/* * Copyright 2009 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 requi...
35.603448
76
0.724939
7095716f8b1f33a35f496f565bddbf990ed895bc
373
public abstract class AbstractMonster { public String name; public abstract int getAttack(); public abstract int getDefense(); public final void showInfo() { System.out.print("名前:"); System.out.println(name); System.out.print("攻撃力:"); System.out.println(getAttack()); System.out.print("守備力:"); System.out...
24.866667
39
0.705094
9da4eb9e3690c6e1f860c53650edd7e1f9c22d09
6,729
package ezvcard.property; import static ezvcard.property.PropertySensei.assertCopy; import static ezvcard.property.PropertySensei.assertEqualsMethod; import static ezvcard.property.PropertySensei.assertNothingIsEqual; import static ezvcard.property.PropertySensei.assertValidate; import static org.junit.Assert.assertEq...
28.879828
81
0.721653
ac15438da17ac90091a0a494da87039b79b29ca4
4,884
package com.inicu.postgres.entities; import java.io.Serializable; import java.sql.Timestamp; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.NamedQuery; import java...
23.368421
108
0.763309
600e35ccff00b6a66d605acdabae80951640bd3d
4,184
/* * Copyright 2018-present HiveMQ and the HiveMQ Community * * 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 ...
35.457627
95
0.484465
2f0de8ac4466d3033bed7334c7b6394a949d078d
2,060
package queue; import java.util.Arrays; public class CircularQueueUsingArray { /* Problem : Define a Circular Queue Using array. It should follow FIFO with fixed size array. * If Queue is full then first element should be replaced with new element. */ int maxSize=5; ...
29.014085
110
0.564563
22984ecd651d713b640d6d01195a528fc781f3ac
1,538
/* * Copyright 2004-2008 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...
24.412698
85
0.740572
bdf2e0f5c6aabf64678424daa6fce1a3e42ecdc4
2,387
package com.java.lib.processor; import com.java.lib.oil.GlobalMethods; import java.io.Serializable; import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.ProcessingEnvironment; import javax.annotation.processing.RoundEnvironment; import javax.lang.model.element.Element; i...
25.126316
87
0.623377
d56128727d88f0343752e8127f9320fbb1018a28
335
package com.github.database.rider.springboot.models; import javax.transaction.Transactional; import org.springframework.data.repository.CrudRepository; @Transactional public interface UserRepository extends CrudRepository<User, Long> { /** * * @param email the user email. */ public User findByEmail(Str...
19.705882
68
0.767164
30c2f686ec4a4c8678b58f5e2b89cfad876f5fb0
2,078
package com.recognitron.fruitrecognizer.client; import android.graphics.*; import java.io.ByteArrayOutputStream; class BitmapHolder { private Bitmap bitmap; Bitmap getBitmap() { return bitmap; } void setBitmap(Bitmap bitmap) { if(bitmap == null) { this.bitmap = null; ...
27.706667
86
0.528874
2b32a7897562855e3ac30829252cae33be8e81cd
297
package cn.edu.sustech.cs307.exception; /** * in remove method, if there is no Entity about specific, throw EntityNotFoundException. * in get method, if there is no Entity about specific id, throw EntityNotFoundException. */ public class EntityNotFoundException extends RuntimeException { }
33
90
0.784512
54a93831965866c70c25051aa87cf07a2eae5386
33,162
package net.i2p.router.networkdb.kademlia; /* * free (adj.): unencumbered; not under the control of others * Written by jrandom in 2003 and released into the public domain * with no warranty of any kind, either expressed or implied. * It probably won't make your computer catch on fire, or eat * your children, ...
42.030418
175
0.587962