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
a138f5c181b4699c5041750653d8b4b9c9433209
9,369
package jet.opengl.desktop.lwjgl; import com.nvidia.developer.opengl.app.GLEventListener; import com.nvidia.developer.opengl.app.NvAppBase; import com.nvidia.developer.opengl.app.NvEGLConfiguration; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Container; import java.awt.FlowLayout; import java...
32.306897
134
0.618956
60ba278a5687f1d1e52982d239f62ce917fc049d
4,792
package ua.servlet.restaurant.dao.impl; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import ua.servlet.restaurant.dao.BasketsDao; import ua.servlet.restaurant.dao.DBException; import ua.servlet.restaurant.dao.entity.Baskets; import ua.servlet.restaurant.dao.mapper.BasketsMapper; ...
32.161074
97
0.590776
15a520a4ae55bf5c7015b808da64107a2fc2cb9d
736
package com.github.forax.framework.injector; import java.io.IOException; import java.net.URL; import java.util.Enumeration; public class Utils2 { private Utils2() { throw new AssertionError(); } public static Enumeration<URL> getResources(String folderName, ClassLoader classLoader) { try { return...
26.285714
91
0.711957
dc4bd7a4e1c6ce80ed6a7451a9c05d7f52099076
615
package com.swervedrivespecialties.swervelib.ctre; import com.swervedrivespecialties.swervelib.CanPort; public class CanCoderAbsoluteConfiguration { private final CanPort port; private final double offset; public CanCoderAbsoluteConfiguration(CanPort port, double offset) { this.port = port; ...
22.777778
71
0.682927
74a3a25a533bec60ae28b3b17b8d08fee2e02725
935
package dk.in2isoft.onlineobjects.modules.dispatch; import java.io.IOException; import javax.servlet.FilterChain; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import dk.in2isoft.onlineobjects.core.exceptions.EndUserException; import dk.in2isoft.onlineobjects.ui.Request; public clas...
32.241379
96
0.79893
e6665f2619c145d93dd024606e5d3ad8708d4a58
1,824
package modelo; import java.util.ArrayList; import excecoes.ExcecaoEleicaoAberta; import excecoes.ExcecaoEleicaoFechada; import excecoes.ExcecaoEleitorJaVotou; import interfaces.EstadoEleicao; import java.io.Serializable; public class Urna implements Serializable { /** * */ private static final long serialVe...
19.612903
56
0.707785
19e2fdc9a56cfe2f6250258ad3de691cb9eaa9b6
593
package com.stewsters.test.examples; import com.stewsters.util.spatial.IntervalKDTree2d; public class Spacecraft2d { public int x; public int y; public int r; public Spacecraft2d() { x = y = 0; } public Spacecraft2d(int x, int y) { this.x = x; this.y = y; thi...
17.441176
71
0.519393
5ebdb295b433ede70f2f4ab3e8a6493ff83664e6
9,939
/******************************************************************************* * * Copyright (c) 2001-2016 Primeton Technologies, Ltd. * All rights reserved. * * Created on Nov 17, 2016 10:21:31 AM *******************************************************************************/ package com.primeton.devops.dff...
26.018325
105
0.678539
5b492666eee753805c1128ac57b9e1cad24532e1
823
public class Main { public static String linha(int n, String c) { String saida = ""; for(int i = 1; i <= n; i++) { saida += c; } return saida; } public static String coluna(int n, String c, String d) { String saida = ""; for(int i = 1; i <= n; i+...
26.548387
60
0.402187
26d7a37b6430743731a79a2fa8b3863743cf4943
3,144
/* * Copyright 2022 Google 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 agreed to...
34.549451
92
0.599237
903befa3f0c35d2b4c3e2483d2c74cc0368a9be3
1,040
package gov.va.escreening.dto; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; /** * This object represents a template type and, in the context of a specific * referenced object (e.g. module or battery), an optional template ID (when such * a relation exists). * */ @JsonIgnoreProperties(ignoreUnk...
20
82
0.747115
f801f7e829f80f96572a6f186a8b447cfad071e8
7,817
/* * 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 ...
31.393574
94
0.552898
e37102b57e14957cec64046c21f32bca37ec59cd
4,387
package com.oa.gateway.filter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cloud.gateway.filter.GatewayFilterChain; import org.springframework.cloud.gateway.filter.GlobalFilter; import org.springframework.core.Ordere...
32.496296
104
0.686802
6db7e4fdd5a8d46c6dbb00972b8c22bc63294a9e
1,621
package com.app.gmm.mobileplyer.pager; import android.content.Context; import android.graphics.Color; import android.view.Gravity; import android.view.View; import android.widget.TextView; import com.app.gmm.mobileplyer.R; import com.app.gmm.mobileplyer.basepager.BasePager; import com.app.gmm.mobileplyer.utils.Consta...
22.205479
75
0.623689
626beb77bae23e6ea6d13aa32216cebaefe82506
985
package com.bbn.serif.entities; import com.bbn.serif.entities.constraints.EntityConstraint; import com.bbn.serif.theories.DocTheory; import com.google.common.annotations.Beta; import com.google.common.collect.ImmutableList; import java.io.IOException; import java.util.Set; import javax.inject.Inject; import stati...
22.386364
75
0.759391
90982122d82b34540242ae3a37b5ec37f7f60967
949
package com.mobilepolice.office.bean; public class InsertTaskInfo { /** * policeNumber : 456 * content : 测试内容 * fromDate : 2019-03-12 10:10:10 * toDate : 2019-03-12 21:10:10 */ private String policeNumber; private String content; private String fromDate; private String toD...
19.770833
54
0.615385
0c5a77e66337dd4b77904a309c4f742a07d873c0
14,328
package test.javassist.bytecode.analysis; import java.io.Serializable; import java.util.ArrayList; import java.util.Iterator; import javassist.ClassPool; import javassist.CtClass; import javassist.CtMethod; import javassist.bytecode.AccessFlag; import javassist.bytecode.BadBytecode; import javassist.bytecode.Bytecode...
34.776699
106
0.594151
ed5eaa0add4a839bd0d4f02b2d9a281a9311c6af
1,284
package com.sequenceiq.cloudbreak.util; import java.util.function.Consumer; import java.util.function.Function; import java.util.function.Supplier; public class ConditionBasedEvaluatorUtil { private ConditionBasedEvaluatorUtil() { } public static <T> void evaluateIfTrueDoOtherwise(T value, Function<T, ?...
28.533333
152
0.633178
2e3e6f9948877b062fb8e908c06995353e737580
1,149
package com.cj.qc.service; import com.cj.qc.model.TaskVoiceRule; import com.cj.qc.model.bo.TaskBO; import com.cj.qc.model.dto.TaskScopeCombDTO; import java.sql.Timestamp; import java.util.List; /** * @author chenzhaowen * @description 任务引擎接口类 * @date 2019/4/18 15:15 */ public interface TaskEngineService { /**...
18.836066
124
0.695387
5a6b2f3831653ca5c2580e85315ad174e0ac4d62
1,344
/* * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * */ package org.graalvm.compiler.nodes; import org.graalvm.compiler.core.common.type.Stamp; import org.graalvm....
23.172414
136
0.72619
abeda7fbae7e8553196abaceba35e0dee462aac7
3,039
package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.bian.dto.SDConsumerAdvisoryServicesRetrieveOutputModelServiceDomainRetrieveActionRecordCont...
44.691176
196
0.889108
e599164bbc3caf811a8ed2db4e2111641a263594
569
package de.adorsys.ledgers.middleware.impl.converter; import de.adorsys.ledgers.middleware.api.domain.account.AdditionalAccountInformationTO; import de.adorsys.ledgers.um.api.domain.AdditionalAccountInfoBO; import org.mapstruct.Mapper; import java.util.List; @Mapper(componentModel = "spring") public interface Additi...
37.933333
113
0.857645
7f78ba4f613ff4f1881ba63008348bff2fadbee2
68,413
/* * Copyright (c) 2002-2021 Gargoyle Software 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 * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
35.799581
120
0.556473
dde092a5acaa7a228d2841ef2b52e178b2efe36d
1,667
/* * 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 not use...
28.741379
120
0.692861
81ada52b60c429497e72317b90e4c0ebd3c39c08
2,883
package com.tamashenning.lotiscraft.proxy; import com.tamashenning.lotiscraft.LotisCraft; import com.tamashenning.lotiscraft.api.WasherRegistry; import com.tamashenning.lotiscraft.api.models.WashableResult; import com.tamashenning.lotiscraft.client.gui.GuiHandler; import com.tamashenning.lotiscraft.common.blocks.Block...
32.393258
91
0.68505
c358adc317f1f4b3e704a6bff59261c65c581a80
4,103
package mblog.util; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.beanutils.ConversionException; import org.apache.commons.beanutils....
29.517986
111
0.591518
7522dd9aace3b659508b8e29a2985136694826d3
1,605
/* * * Copyright (C) 2017 Aaron Powers * * 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 la...
29.181818
158
0.737072
4c55a782d80333bc96f837b3f99de3deaa596e3c
1,058
package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; import frc.robot.Constants; import frc.robot.RobotContainer; public class ButtonYCommand extends CommandBase { public ButtonYCommand(){ //addRequirements(RobotContainer.m_launcherSubsystem); { } /* ...
15.791045
75
0.639887
0ed595d749c4415bd9f337c35e8974b618bf9bb6
488
package net.laoyeye.yyms.pojo.vo; /** * @author laoyeye.net * @Description: 服务端消息响应 * @date 2019/6/1 21:51 */ public class ResponseMessage { private String responseMessage; public ResponseMessage(String responseMessage) { this.responseMessage = responseMessage; } public String getResponse...
21.217391
60
0.694672
349727669046401534bea949ca61686c8e299c73
2,386
package org.mifos.rest.approval.aop; import junit.framework.Assert; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.mifos.builders.MifosUserBuilder; import org.mifos.framework.hibernate.helper.Transactional; import org.mifos.platform.rest.controller.stub.StubRESTContro...
40.440678
94
0.813915
0f5c0bb28ea7d2a716cd6d00ef578d5e159ebe83
1,378
package scrapper.scrapper.specials; import static sam.io.fileutils.FileNameSanitizer.sanitize; import static scrapper.scrapper.ScrappingResult.EMPTY; import java.io.IOException; import java.nio.file.Path; import java.util.List; import java.util.Objects; import java.util.stream.Collectors; import org.jsoup.nodes.Docu...
27.019608
98
0.713353
dfbf0ded0d40546d5edf7f570296d37ede4efcdd
22,334
package com.urdriver.urdriver; import android.content.Intent; import android.content.IntentFilter; import android.graphics.Color; import android.net.ConnectivityManager; import android.os.Build; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.vi...
43.536062
165
0.507522
086ae764fc6e5f36391264c85e4cae39893b78bf
1,073
package org.cxio.aspects.datamodels; import org.cxio.util.CxioUtil; public final class Mapping { public final static String TYPE = "type"; public final static String DEFINITION = "definition"; private final String _type; private final String _definition; public Mapping(final S...
26.170732
96
0.621622
44de23929c60ae781c07a4dce631c5f4703926e0
867
package com.shazam.fork.summary; import com.shazam.fork.model.Device; import com.shazam.fork.model.Pool; import javax.annotation.Nonnull; import java.util.Collection; import static java.util.Collections.emptyList; public class FakeDeviceTestFilesRetriever implements DeviceTestFilesRetriever { private Collection...
27.09375
98
0.757785
d6a8ddf213d9a41618f42a1677900298ab4d7ad6
2,206
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
41.622642
106
0.75884
309061d4f724a750549b3af619eb8777e3ab0ec4
1,499
/* * Copyright (c) 2010-2014. Axon Framework * * 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 ...
37.475
102
0.755837
b2e01c0954133b65963ce6e411aa1f5c595052de
2,919
package com.hawk.x.tracing.concept.grpc; import io.grpc.*; import io.opentracing.Scope; import io.opentracing.Span; import io.opentracing.SpanContext; import io.opentracing.propagation.Format; import io.opentracing.propagation.TextMap; import io.opentracing.util.GlobalTracer; import javax.annotation.Nullable; import ...
41.112676
152
0.561836
926e65e99da7f71c7d59f37c39ecd7398bc727fd
3,834
// Copyright 2021 Google 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
40.787234
99
0.751695
8661cbb8241dff02736c9a288b128ab3f2ba8c48
4,051
package com.EverythingBlocks.crafting; import java.util.List; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.common.registry.GameData; import net.mi...
34.922414
110
0.743767
65df671d815cb41d9b898eed6d142f33a03365b1
11,477
/******************************************************************************* * Copyright (c) 2010 Actuate Corporation. * 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, and is availabl...
25.733184
81
0.681973
e608f13e20fe53faffff6564b22a7c01b47b6a34
12,765
/* * 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 ...
40.268139
161
0.720642
43085c2e2e1b3a826df3dcbcf5f0e9d41cca997b
1,346
package com.piggymetrics.notification.domain; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertSame; import java.util.HashMap; import java.util.Map; import org.junit.Test; public class RecipientDiffblueTest { /** * Methods under test: * * <ul> * <li>default or parameterl...
34.512821
110
0.739227
4a177df729c8d8fd28042a5a6bc0f919111032f6
2,429
/** * $Id$ * * Copyright 2017 U.S. Army Corps of Engineers, Hydrologic Engineering Center. * * $Log$ * Revision 1.1 2017/10/10 17:58:02 mmaloney * Created. * */ package decodes.consumer; import ilex.util.Logger; import ilex.util.PropertiesUtil; import ilex.var.IFlags; import ilex.var.TimedVariable; impor...
23.582524
83
0.694936
8dd4c3c0241274e39eeb951eea220ad54a7e107b
506
package com.suda.jzapp.misc; /** * Created by ghbha on 2016/4/13. */ public class MsgConstant { //非法消息类型 public final static int MSG_TYPE_INVALID = -1; //普通消息 public final static int MSG_TYPE_COMMON = 0; //请求关联 public final static int MSG_TYPE_LINK_REQUEST = 1; //接受关联 p...
24.095238
55
0.65415
5f28d064de6387a431933977d78dbe81086493f1
1,328
package com.fishercoder.solutions; public class _306 { public static class Solution1 { /** * Credit: https://discuss.leetcode.com/topic/29856/java-recursive-and-iterative-solutions/2 */ public boolean isAdditiveNumber(String num) { int n = num.length(); for...
30.883721
100
0.406627
1780068d365a631692f9e172349ac30bcf95228a
38,590
package hr.fer.zemris.java.hw11.jnotepadpp; import hr.fer.zemris.java.hw11.jnotepadpp.listeners.MultipleDocumentListener; import hr.fer.zemris.java.hw11.jnotepadpp.local.FormLocalizationProvider; import hr.fer.zemris.java.hw11.jnotepadpp.local.LocalizableAction; import hr.fer.zemris.java.hw11.jnotepadpp.local.Localiza...
35.209854
122
0.613682
5f46f5410443c78207024aee182a3c0690e1a18c
1,055
/* * Copyright (c) 2018. All rights reserved. * * @author Pieter De Clercq * * https://github.com/thepieterdc/spring-toy-backend */ package io.github.thepieterdc.handler; import io.github.thepieterdc.exception.DuplicateEmailException; import org.springframework.http.ResponseEntity; import org.springframework.web...
31.969697
92
0.811374
d64c1818904150032bc36da5cc4d65c58252092a
119
package uk.gov.hmcts.reform.professionalapi.domain; public enum PbaStatus { PENDING, ACCEPTED, REJECTED; }
17
51
0.722689
bb983353171356d9065cc7c4f2c61e7696b21205
936
/* * Copyright (c) Microsoft Corporation. * All rights reserved. */ package com.microsoft.dagx.schema; import java.util.AbstractSet; import java.util.LinkedHashSet; import java.util.stream.Collectors; public abstract class Schema { protected final AbstractSet<SchemaAttribute> attributes; protected Schem...
25.297297
129
0.706197
81e9b15cadacb61b0ddb167e51909b6c24181a23
779
/** * * Class CallExpAS.java * * Generated by KMFStudio at 11 June 2003 13:46:50 * Visit http://www.cs.ukc.ac.uk/kmf * */ package uk.ac.kent.cs.ocl20.syntax.ast.expressions; import java.util.List; import uk.ac.kent.cs.ocl20.syntax.SyntaxElement; public interface CallExpAS extends SyntaxElement, Oc...
20.5
51
0.695764
3a0141d4247b74d57c6d04d99dab6377dc6a1904
1,693
package net.earthcomputer.clientcommands.command.arguments; import com.mojang.brigadier.StringReader; import com.mojang.brigadier.arguments.ArgumentType; import com.mojang.brigadier.context.CommandContext; import com.mojang.brigadier.exceptions.CommandSyntaxException; import com.mojang.brigadier.suggestion.Suggestions...
34.55102
118
0.741288
f02c6d623271f43627498c8a1344ae3327ba3c1a
1,662
package no.nav.foreldrepenger.mottak.innsending.varsel; import static no.nav.foreldrepenger.boot.conditionals.EnvUtil.LOCAL; import static no.nav.foreldrepenger.boot.conditionals.EnvUtil.TEST; import static no.nav.foreldrepenger.common.domain.felles.TestUtils.person; import java.time.LocalDateTime; import org.junit....
36.130435
93
0.773165
b4de6dd4012a1bc7eb3f8af56b8d08ef4235fa5f
4,995
package com.swayzetrain.utility.proceduralmap.common.enums; public enum PostProcessedTileType { /* * Current Tile Types * 0 = simple wall * 1 = Left Upper Group wall * 2 = Mid Upper Group wall * 3 = Right Upper Group wall * 4 = Left Middle Group wall * 5 = Mid Middle Group wall * 6 = Mid Middle No U...
33.75
59
0.764565
ad76745365bbb019920175f632b366199424188e
3,346
/* * Copyright 2016 Ollie Bown * * 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 i...
33.79798
112
0.647639
ba52c571d27e6a6d05ada98a339b3ba3a0705402
2,066
package edu.usm.sosw.sword.resources; import edu.usm.sosw.sword.api.Case; import edu.usm.sosw.sword.db.CaseDAO; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; import java.util.List; import javax.validation.Valid; /** * The <code>Case</code> class provides a JSON REST API end point for Case objects and the...
24.023256
116
0.704743
85e88d6af63bb797423b7f423937f836a264cdb8
11,662
/******************************************************************************* * Copyright (c) 2013, SAP AG * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributio...
26.625571
82
0.660436
00ba0e308464edcf8d884b225a27d25fe145f6fb
7,418
package com.MibacTechnologies.Minecraft.DestroyTheMonument.Listeners; import org.bukkit.entity.Damageable; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.e...
30.401639
128
0.679968
23c96d79254c3bf50715d06ecd9b148157d5c834
1,475
package com.zytekaron.minecraft.twist.events; import com.zytekaron.minecraft.twist.handlers.ConsumeEventHandler; import org.bukkit.Material; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerItemConsumeEvent; import java.util.ArrayList; import java.u...
30.102041
67
0.644746
a2a78a511a7de7c235941c617ea005a05043f84a
1,279
package org.jmade.example.ping; import org.jmade.core.Agent; import org.jmade.core.action.Action; import org.jmade.core.message.ACMessage; import java.util.Arrays; import java.util.Date; import java.util.List; public class PingAgent extends Agent { public PingAgent(String id) { super(id); } @Ove...
26.102041
86
0.538702
854c0c2c490f3fb9639b9a2f581536d672791c12
1,482
package us.abstracta.jmeter.javadsl.http; import java.lang.reflect.Method; import java.util.List; import org.apache.jmeter.protocol.http.control.CookieManager; import org.apache.jmeter.protocol.http.gui.CookiePanel; import org.apache.jmeter.testelement.TestElement; /** * Allows configuring cookies settings used by H...
28.5
99
0.74359
c313651d3fbfd8883b147a2d633c59689c1df181
266
package com.turkcell.rentACar.business.requests.createRequests; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @AllArgsConstructor @NoArgsConstructor public class CreateBrandRequest { private String brandName; }
17.733333
63
0.830827
8227f6824341f825919e4e46b8dbff9083f882ad
339
package com.heady.test.data.modules.categories.models; import io.realm.RealmList; import io.realm.RealmObject; import io.realm.annotations.PrimaryKey; public class RealmCategoryModel extends RealmObject { @PrimaryKey public Integer id; public String name; public RealmList<Integer> childCategories = n...
26.076923
66
0.775811
26140bcebdc466f85b82902f2821190ada44d48c
13,359
package randoop.types; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static randoop.types.ExampleClassesForTests.I; import static randoop.types.ExampleClassesForTests.J; import java.util.ArrayList; import java.util.Collection...
43.944079
100
0.766
41b96424cceb6e1477cf8aeffd52e9a603e9db3d
751
package com.wuzhizhan.mybatis.generate; import com.intellij.psi.PsiMethod; import com.wuzhizhan.mybatis.dom.model.GroupTwo; import com.wuzhizhan.mybatis.dom.model.Mapper; import org.jetbrains.annotations.NotNull; /** * @author yanglin */ public class UpdateGenerator extends StatementGenerator { public UpdateG...
20.297297
85
0.687084
bfd4dfbcb6c6b9ebd63899c407e53ad11d91bcf9
1,733
package net.sandius.rembulan.lib.io; import java.nio.ByteBuffer; import net.sandius.rembulan.ByteString; import net.sandius.rembulan.Conversions; /** * */ public class NumberTokenizer extends AbstractTokenizer<Number> { Byte lastByte = null; boolean hasDigit = false; boolean hasDot = false; boolean hasE ...
22.217949
100
0.545874
7f4d8f456084bd1bf25e473d17daae5dd7e9a8e4
636
package bg.sofia.uni.fmi.mjt.wish.list.command; import java.util.Arrays; public class CommandCreator { private static final String LINE_SEPARATORS = "\\r?\\n"; private static final String WHITESPACES = "\\s+"; private static final int MAX_WORDS_FOR_COMMAND = 3; public static Command newCommand(String...
31.8
69
0.672956
2810e9ea24298e605aaeb433298fd0afa3816e1f
2,561
package com.supervisor.domain.impl; import com.supervisor.domain.Language; import com.supervisor.domain.Membership; import com.supervisor.domain.Person; import com.supervisor.domain.Persons; import com.supervisor.domain.RegistrationRequest; import com.supervisor.domain.RegistrationRequestStatus; import com.supervisor....
28.775281
119
0.77665
1653fe3078da16459b0266745db98917c44c947c
421
package no.nav.opptjening.skatt.client.api.hendelseliste.exceptions; import no.nav.opptjening.skatt.client.exceptions.NotFoundException; public class FantIngenInformasjonException extends NotFoundException { public FantIngenInformasjonException(String message) { this(message, null); } public Fan...
28.066667
75
0.769596
ad2bb5393a02b91bb1e8076702a291dfda3af610
2,009
/** * Copyright (c) Apr 15, 2015 Sharad Tech Ltd. (www.sharadtech.com) to Present. * All rights reserved. */ package com.systematictesting.rest.core.beans; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import com.systematictesting.daolayer.constants.UserConstants; public class GraphTem...
33.483333
159
0.744649
53bd05e504eb1a36c2fb229413e787a96ac95905
520
package org.sdmlib.models.modelsets; import java.util.ArrayList; public class booleanList extends ArrayList<Boolean> { private static final long serialVersionUID = 1L; public boolean and() { for (Boolean value : this) { if (!value) { return false; } }...
14.444444
51
0.507692
1322d14197db77e943cb6aa7ca7d20e535980c2a
1,013
package com.cosmo.kite.report.custom_kite_allure; import javax.json.Json; import javax.json.JsonArray; import javax.json.JsonArrayBuilder; import javax.json.JsonObject; import java.util.ArrayList; public class ParamList extends ArrayList<ParamList.Parameter> { public JsonArray toJson() { JsonArrayBuilder bui...
22.511111
64
0.670286
6a42dedf7b2e9b0d4463f6ede98163dd813369e2
448
package org.webpieces.plugin.grpcjson; import java.util.regex.Pattern; public class JsonConfig { private Pattern filterPattern; private boolean isNotFoundFilter; public JsonConfig(Pattern pattern, boolean isNotFoundFilter) { this.filterPattern = pattern; this.isNotFoundFilter = isNotFoundFilter; } public...
18.666667
63
0.779018
184622680a007bcf2e2b2be54351a1d2721a1d75
2,010
package psoft.lab2.services; import org.springframework.stereotype.Service; import psoft.lab2.entities.Disciplina; import java.util.ArrayList; import java.util.Collections; import java.util.concurrent.atomic.AtomicLong; @Service public class DisciplinaService { private final AtomicLong cont_id = new AtomicLong(...
27.534247
84
0.6
60e1b9765e95e4ef25f8db4e72c7a13601bd28a8
996
package com.guofei.base.copy; /** * @author guofei * @date 2022/6/4 11:45 PM */ public class DeepCopyServiceable { public static void main(String[] args) throws Exception { Teacher3 t = new Teacher3(); t.setName("Taylor"); t.setAge(28); Student3 s1 = new Student3(); s1.setAge(20); s1.set...
20.75
59
0.556225
4bd7538bf6ea3fbf736dff02af4317a756280c63
2,575
/* * Copyright 2018-2022 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...
34.333333
113
0.728544
bc70164774d128db0c9dafdbef24ad582b75bc19
9,825
package de.halfreal.spezi.gdx.system; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.assets.AssetLoaderParameters; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.assets.loaders.resolvers.InternalFileHandleResolver; import com.badlogi...
26.991758
85
0.703104
e35d851c645cd7ad29388b7456bb60b736db68e5
1,155
package com.sequenceiq.freeipa.flow.stack.provision; import com.sequenceiq.flow.core.FlowState; import com.sequenceiq.flow.core.RestartAction; import com.sequenceiq.freeipa.flow.stack.AbstractStackAction; import com.sequenceiq.freeipa.flow.stack.provision.action.CheckImageAction; public enum StackProvisionState imple...
26.860465
82
0.722944
14c9c221704be1e4c850b3db47eefb4a39b6a00d
1,995
package com.ruoyi.web.controller.common; import com.ruoyi.common.constant.Constants; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.redis.RedisCache; import com.ruoyi.common.utils.uuid.IdUtils; import com.wf.captcha.ArithmeticCaptcha; import com.wf.captcha.SpecCaptcha; import org.springf...
29.776119
99
0.67619
2c4d73dd94c0948a940e7851e697f9112f12e708
27,916
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 ...
12.996276
810
0.802443
71b515147bd003249acdb957f288af4a322fc7c8
273
package com.yahoo.r4hu7.moviesdoughnut.data.remote.response; import com.yahoo.r4hu7.moviesdoughnut.data.remote.response.model.Dates; public class NowPlayingMovieResponse extends MoviesSource { Dates dates; public Dates getDates() { return dates; } }
22.75
71
0.754579
c8da589b56ca47259c679cec0356248d3b952f35
2,052
package com.kuibu.algorithm.other; /** * 给定两个用链表表示的整数,每个节点包含一个数位。 * <p> * 这些数位是反向存放的,也就是个位排在链表首部。 * <p> * 编写函数对这两个整数求和,并用链表形式返回结果。 * <p> * <p> * 示例: * <p> * 输入:(7 -> 1 -> 6) + (5 -> 9 -> 2),即617 + 295 * 输出:2 -> 1 -> 9,即912 * 进阶:思考一下,假设这些数位是正向存放的,又该如何解决呢? * <p> * 示例: * <p> * 输入:(6 -> 1 -> 7) + (2 -> 9 -...
22.549451
68
0.495127
4f49b4eefe193f52d31747c075e632d2dca6c792
2,397
package kth.iv1201.recruitment.repository; import kth.iv1201.recruitment.entity.Person; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; i...
32.835616
115
0.740509
3f871080fc3e27275120505cb1b5ab20f88bbe35
542
class Solution { public String removeOuterParentheses(String S) { StringBuilder sb = new StringBuilder(); int cnt = 0; int lo = 0, n = S.length(); for(int i = 0; i < n; ++i) { char ch = S.charAt(i); if (ch == '(') { ++cnt; } else { ...
25.809524
54
0.356089
626ba429d0c6fa9301779ce5cbf11d27593d7c9a
484
package lx.calibre.service; import java.util.List; public interface Page<T> extends Iterable<T> { static final String PAGE_PARAM = "p"; static final String SIZE_PARAM = "n"; static final int DEFAULT_PAGE = 1; static final String DEFAULT_PAGE_STRING = "1"; static final int DEFAULT_PAGE_SIZE = 12; static final S...
19.36
53
0.739669
9fab987ef3f3d9278eff68f76a4a15471214ff50
1,399
package io.kimmking.cache.redisclient; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPool...
28.55102
92
0.726948
4bc7e9a943c2c5016a650813e36a3e1a30535baf
1,718
package org.pdown.core.entity; import java.io.Serializable; public class HttpDownConfigInfo implements Serializable { private static final long serialVersionUID = -69564667309038578L; private String filePath; private int connections; private int timeout; private int retryCount; private boolean autoRename...
21.209877
67
0.679278
12d886999afb295673ca57baa73e4429c8dc0f56
5,426
package android.support.v7.internal.widget; import android.content.Context; import android.content.res.Configuration; import android.os.Build.VERSION; import android.support.v4.view.ViewPropertyAnimatorCompat; import android.support.v7.appcompat.R.attr; import android.support.v7.widget.G; import android.support.v7.wid...
26.995025
121
0.629746
61c33f6b1237e5807189a053f9e1b7da38c13028
4,201
/* * Copyright 2017 The Error Prone Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
38.541284
100
0.750536
c61d2c084f520d02c5778b9b7d1a7dc63b0a86b7
964
package io.odpf.firehose.sink.objectstorage.proto; import com.github.os72.protobuf.dynamic.MessageDefinition; import com.google.protobuf.Timestamp; public class TimestampProto { private static final String TYPE_NAME = "Timestamp"; public static final String SECONDS_FIELD_NAME = "seconds"; public static fi...
34.428571
88
0.710581
faf192b1dfe14ea2bf5bbac1fd7fa70cec1d096d
3,727
package skaro.pokeflex.objects.set; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclu...
22.865031
85
0.64073
53719007198e47b38796e0e4001bcb93b975dd11
1,457
/* * Copyright (C) Lennart Martens * * Contact: lennart.martens AT UGent.be (' AT ' to be replaced with '@') */ /* * Created by IntelliJ IDEA. * User: Lennart * Date: 27-nov-02 * Time: 13:54:35 */ package com.compomics.util.interfaces; /* * CVS information: * * $Revision: 1.3 $ * $Date: 2007/07/06 09:41...
26.981481
104
0.666438
1608024081ea543c24b81d0777540a134d7326b3
367
package org.viddu.poc; import java.util.LinkedHashSet; import java.util.Set; import javax.ws.rs.core.Application; public class MyApplication extends Application { @Override public Set<Class<?>> getClasses() { Set<Class<?>> resources = new LinkedHashSet<Class<?>>(); resources.add(HelloResourc...
18.35
64
0.678474
97425c4c069f14b1ccf0168f05412ab1b1927bca
1,748
package cn.navyd.annotation.processor; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.Set; import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.Messager; import javax.annotation.processing.ProcessingEnvironment; import javax.annotat...
31.781818
106
0.769451
227e729002f11259eb32d38585006b8a6b342e41
4,220
package com.example.myprofile; import android.content.SharedPreferences; import android.content.Intent; import android.net.Uri; 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.ImageV...
49.069767
104
0.5391
50f8488295ae744538e7a44de7c745cf8b6a4148
1,217
package com.neathorium.core.constants; import com.neathorium.core.extensions.namespaces.CoreUtilities; import com.neathorium.core.namespaces.executor.ExecutorFunctionDataFactory; import com.neathorium.core.records.executor.ExecuteParametersData; import com.neathorium.core.records.executor.ExecutorFunctionData; import ...
76.0625
238
0.879211
52289fe33946d6275160f71db956a9a790d8e1f7
1,761
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
45.153846
126
0.809767
416b850851ff514d81be7c68ba10f94c52ef6ea5
3,969
// Copyright (C) 2021 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 applicable ...
44.595506
101
0.771227
fb662fd594d226ea17c472fafc64fddfa761e26e
1,870
package com.mparticle.internal.database.services.mp; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.location.Location; import android.support.annotation.CallSuper; import android.support.test.InstrumentationRegistry; import com.mparticle.BaseCleanInstall...
37.4
188
0.780749
a2e1234ddc954fad4948df9566e28ad88ba5652e
3,782
package org.sitenv.service.ccda.smartscorecard.loader; import org.apache.log4j.Logger; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.InitializingBean; import javax.sql.DataSource; import java.io.File; import java.io.IOException; import java.sql.Connection; import ja...
35.679245
151
0.621893
e317e7bf673792cc80f93f3b968f803377e72ee6
538
package io.connectedhealth_idaas.eventbuilder.pojos.edi.hipaa; import org.apache.commons.lang3.builder.ReflectionToStringBuilder; public class PO3 { private String PO3_01_ChangeReasonCode; private String PO3_02_Date; private String PO3_03_PriceIdentifierCode; private String PO3_04_UnitPrice; private String PO3_05_Basi...
33.625
76
0.86803