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
aaccbffa9da3f12c03f89016c14b1b10ff603352
3,477
package com.prowidesoftware.swift; import com.prowidesoftware.Generated; /** * Constants for qualifiers found in MTs starting with "D". * <em>WARNING: These constants are automatically generated from SRU information * they may change without entering the formal Prowide Deprecation Policy * http://www.prowidesof...
39.965517
80
0.684498
9c51f661b6440f506dfc7a98b9cf08c1c76998bc
1,251
package com.amazonaws.lab; import java.util.Map; import java.util.HashMap; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import com.amazonaws.services.lambda.runtime.Context; public class HealthDataRouter { static final Logger log = LogManager.getLogger(HealthDataRouter.cl...
31.275
119
0.609912
01578cc54abd12657b928bba2bdca9fc191239c4
9,761
package com.gentics.mesh.image.focalpoint; import static com.gentics.mesh.core.rest.error.Errors.error; import static io.netty.handler.codec.http.HttpResponseStatus.BAD_REQUEST; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import org.imgscalr.Sc...
32.108553
148
0.704334
f81ba785b884f6702531a72e89ea48d62905c5f6
1,652
package org.apereo.cas.shell.commands.services; import org.apereo.cas.authentication.principal.ShibbolethCompatiblePersistentIdGenerator; import lombok.extern.slf4j.Slf4j; import lombok.val; import org.springframework.shell.standard.ShellCommandGroup; import org.springframework.shell.standard.ShellComponent; import o...
37.545455
115
0.708838
9563c4ee25b18ad402e1245f2db24f8b0a331116
434
package binarysearch; public class RangeSum { private final int[] prefixSum; public RangeSum(int[] nums) { prefixSum = new int[nums.length]; if (nums.length > 0) prefixSum[0] = nums[0]; for (int i = 1; i < nums.length; i++) prefixSum[i] = prefixSum[i - 1] + nums[i]; } ...
27.125
89
0.541475
bb5a416668df58332b08d2aca76883fe1edb1a8b
164
package com.smoothie.dr_chicken.controller; import org.springframework.web.bind.annotation.RestController; @RestController public class SampleApiController { }
16.4
62
0.835366
0a595113b8ce11c2a141f77cb481f5ea270609b7
2,571
package mage.cards.a; import java.util.UUID; import mage.MageInt; import mage.abilities.common.BeginningOfUpkeepTriggeredAbility; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.effects.common....
38.954545
145
0.740179
071a79b6e2f80837fe10415f6f5676844a29dc06
4,417
package com.qiwenge.android.fragments; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.liuguangqiang.android.mvp.BaseUi; import com.liu...
29.059211
89
0.690514
70c02f4708c10e364e974b83230ee6271f900df8
19,743
package de.rwth.dbis.acis.bazaar.service; import de.rwth.dbis.acis.bazaar.service.dal.DALFacade; import de.rwth.dbis.acis.bazaar.service.dal.entities.*; import de.rwth.dbis.acis.bazaar.service.dal.helpers.PageInfo; import de.rwth.dbis.acis.bazaar.service.dal.helpers.PaginationResult; import de.rwth.dbis.acis.bazaar.se...
62.280757
218
0.682571
cdd87c2d96ed687d71606342cf47a7271aa1a8ed
913
import javax.swing.JOptionPane; class Main{ public static void main (String args[]){ double reais; reais = Double.parseDouble(JOptionPane.showInputDialog(null,"Quantos R$ voce deseja Converter?","JanelaReais",JOptionPane.QUESTION_MESSAGE)); double Dolar = 4.81; double Euro = 5.45; double Pes...
38.041667
142
0.533406
de527bc12fd84be174343e6a4d2750717ea26fe5
304
package wiki_out; import java.io.IOException; public class A_test2005 { static void fun() throws IOException { } public static void main(String args[]) { try { extracted(); } catch (Exception e) { } } protected static void extracted() throws IOException { /*[*/ fun(); /*]*/ } }
13.818182
55
0.638158
a259019ae0e31114f369eca3ae22cfdcfa9dbc86
988
package com.github.wkennedy.dto; import java.util.Date; public class Order { private Integer id; private Date orderDate; private Integer quantity; private Customer customer; private String productName; public Integer getId() { return id; } public void setId(Integer id) { ...
19
52
0.625506
987338fa274ca36d1a7e7bfbcc5855e32a9d4601
2,524
package fr.xephi.authme.command.executable.authme; import fr.xephi.authme.command.ExecutableCommand; import fr.xephi.authme.data.auth.PlayerAuth; import fr.xephi.authme.data.auth.PlayerCache; import fr.xephi.authme.datasource.DataSource; import fr.xephi.authme.message.MessageKey; import fr.xephi.authme.service.BukkitS...
31.949367
96
0.629952
2c288bb686e864be3e777370cef2a84d7c27e158
10,317
/* * * This file was generated by LLRP Code Generator * see http://llrp-toolkit.cvs.sourceforge.net/llrp-toolkit/ * for more information * Generated on: Sun Apr 08 14:14:11 EDT 2012; * */ /* * Copyright 2007 ETH Zurich * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use ...
30.981982
323
0.649801
dce554bec17987af381a2ddb89008e179df18dd7
5,449
/* * Copyright 2020 Google LLC * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ package com.google.cloud.healthcare.fdamystudies.filter; import static com.google.cloud.healthcare.fdamystudies.common.CommonCons...
38.373239
99
0.750963
c7261d9a89804829e249713fd88a17348c6539ba
1,403
package com.alorma.github.emoji; import com.alorma.github.sdk.core.datasource.CacheDataSource; import com.alorma.github.sdk.core.datasource.CloudDataSource; import com.alorma.github.sdk.core.datasource.SdkItem; import com.alorma.github.sdk.core.repository.GenericRepository; import com.alorma.github.sdk.core.usecase.Ge...
35.075
118
0.735567
414df582da181942452bd7d6bf253b533c2794ab
158
/** * This package contains classes that handle IO operations including reading and writing BioPAX from files and streams.. */ package org.biopax.paxtools.io;
39.5
119
0.791139
cf5d05002196fa3df3459d2b39043ad5a2103fea
1,075
package com.muleinaction; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.notNullValue; import static org.junit.Assert.assertThat; import org.junit.Test; import org.mule.api.MuleMessage; import org.mule.module.client.MuleClient; imp...
27.564103
86
0.728372
e9944c1f89992ec6a93a19968ceeb4ab3f1c6039
4,554
package psidev.psi.mi.jami.utils.comparator.experiment; import psidev.psi.mi.jami.model.VariableParameterValue; import java.util.Comparator; /** * Simple Comparator for VariableParameterValue * * It will first compare the value (case insensitive) and then the order. * It ignores the variableParameter * * @auth...
34.240602
124
0.614625
4aa5a1404974851de59c944f181769910f774e80
2,754
package com.dev.cmielke.gui.dialogs.components; import static com.dev.cmielke.gui.util.DialogConstants.ACTION_CMD_CODE_MI_COPY; import static com.dev.cmielke.gui.util.DialogConstants.ACTION_CMD_CODE_MI_CUT; import static com.dev.cmielke.gui.util.DialogConstants.ACTION_CMD_CODE_MI_PASTE; import static com.dev.cmielke.g...
22.760331
85
0.766158
17e91effc78fb20ccacd688bd4ad119fc63e89c6
1,379
package com.gradle.exportapi; import io.netty.buffer.ByteBuf; import io.reactivex.netty.protocol.http.client.HttpClient; import java.net.InetSocketAddress; import java.net.MalformedURLException; import java.net.URL; /** * Created by grodion on 5/21/17. */ public class HttpClientFactory { private static String d...
31.340909
103
0.594634
36130d3b52a7ae019baa3a43c232aafef9ecd9eb
2,009
package com.ecorp.gorillamail.services.external; import com.ecorp.bannerad.service.Confirmation; import com.ecorp.bannerad.service.Customer; import com.ecorp.bannerad.service.Dimension; import com.ecorp.bannerad.service.OrderService; import com.ecorp.bannerad.service.OrderService_Service; import com.ecorp.bannerad.ser...
35.245614
108
0.721254
563ade5c294dd582a8a8762c2820db333370d9e7
20,910
/******************************************************************************* * Copyright 2015 EMBL - European Bioinformatics Institute * * 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...
48.179724
229
0.597944
532894615098f77370d10d569fb23bbb35be27f2
2,358
/* * JPPF. * Copyright (C) 2005-2019 JPPF Team. * http://www.jppf.org * * 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 re...
31.44
106
0.691688
73828622e975cfa3ea5b5731e15cfb00e80b735e
1,380
package com.alibaba.nacos.security.nacos; import com.alibaba.nacos.security.nacos.users.NacosUserDetailsServiceImpl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authentication.AuthenticationProvider; import org.springframework.security.authentication.UsernamePassw...
32.857143
99
0.828986
0e80779851a510323e11deee21b01f74d471e466
1,620
/* * Copyright (C) 2010-2019, Danilo Pianini and contributors listed in the main project's alchemist/build.gradle file. * * This file is part of Alchemist, and is distributed under the terms of the * GNU General Public License, with a linking exception, * as described in the file LICENSE in the Alchemist distribut...
30.566038
126
0.690741
2f5b7f287ad780267f45153a614c6009f5672654
7,656
package com.oskopek.transport.persistence; import com.oskopek.transport.model.domain.Domain; import com.oskopek.transport.model.domain.PddlLabel; import com.oskopek.transport.model.domain.action.*; import com.oskopek.transport.model.plan.Plan; import com.oskopek.transport.model.plan.SequentialPlan; import com.oskopek....
40.08377
115
0.613114
d6729f6991fe6264a7b2c1e9660d129e92a4b32d
143
package com.solar.event; public class EventPlayerLiving extends Event { public EventPlayerLiving(Type type) { super(type); } }
14.3
46
0.699301
7df2879d50e231ebbcf540098231bb2aea844a3f
559
package fr.info.game.graphics.texture; public class TextureSprite { private TextureAtlas parentAtlas; public final String name; public final int x; public final int y; public final int width; public final int height; public TextureSprite(String name, int x, int y, int width, int height) { this.name = name; ...
19.964286
73
0.726297
15b98cb0a64d86af290ae3242ca816590fb70923
557
package com.rest.RESTfulExample.controller; import javax.servlet.http.HttpServletRequest; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class PingPong { @GetMapping("/h...
25.318182
64
0.773788
e68f48b6d22b941ed458284318c92caf1a37455a
3,596
package com.holonplatform.example.app.views; import static com.holonplatform.example.app.model.Product.CATEGORY; import static com.holonplatform.example.app.model.Product.DESCRIPTION; import static com.holonplatform.example.app.model.Product.ID; import static com.holonplatform.example.app.model.Product.PRODUCT; import...
33.924528
84
0.734983
658ff1edf03a01dc9a0ff7cf9b383bf368e54269
695
package me.j360.dubbo.base.exception; /** * Package: me.j360.dubbo.base.exception * User: min_xu * Date: 16/8/23 下午2:01 * 说明: */ public class RepositoryException extends RuntimeException{ private static final long serialVersionUID = -6438755184394143413L; protected int exceptionCode = -1; public i...
23.166667
83
0.696403
cb408fa98f99c525872be1aa07f2477179a4b9ab
3,779
/* * 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 ...
22.76506
75
0.67928
96ef99ae862671553493bf02442f5a575d6662e1
440
package com.example.mywiki.domain; import lombok.Data; import java.io.Serializable; /** * 用户 * @TableName user */ @Data public class User implements Serializable { /** * 用户id */ private Long id; /** * 登录名 */ private String loginName; /** * 昵称 */ private Stri...
12.941176
52
0.565909
919fce86cb086e8fe0ef9ad4ca974f88e6d2a610
318
package org.nutz.cloud.config.spi; import java.util.EventListener; import java.util.List; public interface ConfigureEventHandler extends EventListener { void trigger(List<KeyEvent> events); class KeyEvent { public String name; public String value; public String action; } }
19.875
62
0.698113
e141462a9ae2d0934302ec292977b8d1fee6d99a
5,418
/* * Copyright (c) 1998, 2010, 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.954839
79
0.587855
077af80fd4d8a085b5e7e149e7930daa744e6b42
252
package pkgbinternal; public class InternalBSuperClass { protected String doIt() { return "from pkgbinternal.InternalBSuperClass"; } protected String doItNotOverwritten() { return "doItNotOverwritten"; } }
21
56
0.65873
40da764334c7708a79d46da329aa03cd149c3f79
22,064
/* * Copyright 2014 Shape Security, 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 a...
33.685496
122
0.505801
8e103f1c7a732785dec9099b179d63c19916fecb
12,355
package com.smartbear.readyapi4j.cucumber; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.inject.Inject; import com.smartbear.readyapi4j.assertions.Assertions; import com.smartbear.readyapi4j.assertions.DefaultResponseSLAAssertionBuilder; import com.smartbear.readyapi4...
35.401146
124
0.672036
75fe02766529a58da7159cb4bbb9161fb6c8c87f
918
package ui; import java.util.HashMap; import java.util.Map; /** * Store static variables of the current simulation. * The information stored are the current user, the current date, * the current selected station and selected card */ public class UiDataStore { private Map<String, UiData> data = new ...
24.810811
66
0.653595
347c33196323717232783586b650df272edac08f
3,340
package com.company.cruisesample.gis.utils; import com.vividsolutions.jts.geom.*; import com.vividsolutions.jts.geom.util.AffineTransformation; import com.vividsolutions.jts.io.ParseException; import com.vividsolutions.jts.io.WKTReader; import org.apache.commons.lang3.StringUtils; /** * Created by aleksey on 10/03/2...
29.043478
110
0.608683
2b98d85a1d4631a3ae8e19b6f16f6f36fa1044fa
921
package p005cm.aptoide.p006pt.editorial; import p005cm.aptoide.p006pt.app.DownloadModel.Action; import p026rx.p027b.C0132p; /* renamed from: cm.aptoide.pt.editorial.Z */ /* compiled from: lambda */ public final /* synthetic */ class C3134Z implements C0132p { /* renamed from: a */ private final /* synthetic ...
31.758621
136
0.704669
066efd40470336f08926c6778f964518b979f054
1,376
package com.rest.eskaysoftAPI.entity; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "manfacturer") public class Manfacturer implements S...
20.235294
65
0.739826
2fefe9a877b2ba7aa686a4631780ffe979f9c228
847
package org.nutz.dao.impl.jdbc; import java.io.File; import java.sql.Clob; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Types; import org.nutz.dao.util.blob.SimpleClob; import org.nutz.filepool.FilePool; import org.nutz.lang.Files; public class ClobValue...
22.891892
81
0.731995
7c3fc539ef6005b2466a626e8b40737059c17044
3,544
/* * Copyright 2005-2020 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 applica...
39.377778
191
0.721501
a1d4bc50c7ebbe09413732f546ecb5b9a0fc9322
568
package io.pivotal.workshop.directory.annotation; import io.pivotal.workshop.directory.utils.DirectoryWebClientUtilsConfiguration; import org.springframework.context.annotation.Import; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import ...
31.555556
80
0.850352
861c4f7a07c6f8245e50ffde6ad4e992d4aa6fb0
1,838
package com.k8s.xmetrics.vo.hardware; import com.k8s.xmetrics.vo.AbstractAgentVO; import java.util.Collection; /** * @author apastoriza */ public class NetworkInfoVO extends AbstractAgentVO { private String hostname; private String domainName; private String ipV4DefaultGateway; private String ipV6DefaultGatewa...
26.637681
91
0.763874
81474f9c1fd49f09cbb87e96617c77e79362eb53
1,344
package com.ruoyi.web.service.impl; import static org.junit.Assert.*; import com.ruoyi.RuoYiApplication; import com.ruoyi.common.json.JSON; import com.ruoyi.system.service.ISysUserService; import com.ruoyi.web.service.IZzTestService; import org.junit.After; import org.junit.Test; import org.junit.runner.RunWith; impo...
23.578947
62
0.72619
90b1666e000c407a01559d293f560c08930aa7d0
394
package com.jd.blockchain.peer; import com.jd.blockchain.consensus.service.NodeServer; import com.jd.blockchain.crypto.hash.HashDigest; import com.jd.blockchain.tools.initializer.LedgerBindingConfig; import java.util.List; public interface LedgerBindingConfigAware { void setConfig(LedgerBindingConfig config); N...
26.266667
73
0.835025
b4e30340c9442bceb9f2d41b11313652c4b05cf0
203
package com.graylogging.graylogging.log; import org.slf4j.Marker; import org.slf4j.MarkerFactory; public class KfMarker { public static final Marker REQUEST = MarkerFactory.getMarker("REQUEST"); }
22.555556
76
0.788177
1837ab9fcf45947394af53d3e1130059bf719895
907
package fr.wcs.wildemo.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.securi...
32.392857
90
0.84785
26e95d6b36e263673a0b40790a14459bbf580338
5,261
/* * Copyright 2021 Nordnet Bank AB * 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, d...
37.848921
107
0.681429
0c020bbcb048fb7c54b807ecc6d2a06dd064d522
2,235
package nyla.solutions.commas.file; import java.io.File; import nyla.solutions.core.exception.RequiredException; import nyla.solutions.core.exception.SystemException; import nyla.solutions.core.io.IO; import nyla.solutions.core.io.SynchronizedIO; import nyla.solutions.core.util.Config; import nyla.solutions....
25.397727
102
0.697987
085d40ea45f770d752c78e50e5c1c11aed448134
2,651
/** * Copyright Indra Soluciones Tecnologías de la Información, S.L.U. * 2013-2019 SPAIN * * 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...
38.42029
117
0.804602
0714aed2ad69d6c7603c4f8b3e234282d159cb7d
953
package com.developer.base.utils.android.lists; import androidx.annotation.Nullable; import java.util.Map; import java.util.Map.Entry; public class BaseEntry<K, V> implements Map.Entry<K, V> { private final K mKey; private V mValue; public BaseEntry(K Key, V Value) { this.mKey = Key; thi...
20.717391
88
0.56978
2f511fa764362e958bfd7522bfaf174d68b66892
878
package com.sebsonic2o.spring.basics.springin5steps; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.sebsonic2o.spring.basics.springin5steps.xml.XmlPersonDAO; public class SpringIn5StepsXmlContextApplication { private st...
33.769231
89
0.8041
36c07739d2ac4397f4a020e370990520c9f6f41b
1,202
/* * * Copyright 2017-2018 549477611@qq.com(xiaoyu) * * This copyrighted material is made available to anyone wishing to use, modify, * copy, or redistribute it subject to the terms and conditions of the GNU * Lesser General Public License, as published by the Free Software Foundation. * * This program is distr...
23.568627
82
0.685524
4a429b4c8c29aa0224d11e3b69cf99c88150ad60
6,624
package org.artifactory.api.governance; import org.apache.commons.lang.StringUtils; import org.artifactory.api.maven.MavenArtifactInfo; import org.artifactory.api.module.ModuleInfo; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.Serializable; /** * @author Dan Feldman * @author Chen Keinan...
33.454545
121
0.665157
5a6f28dc96e5b65e8ddfc5223fa51e0522b39559
579
/* * 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 model; import PROV.DM.Agent; import javax.persistence.Column; import javax.persistence.Table; /** * * @author tassio */ @j...
18.09375
79
0.680484
e9ef89f59e3fccf49356f2aad34f452e79acbb9f
695
package app.xlui.algo.LeetCode.p024; public class Solution { public ListNode swapPairs(ListNode head) { if (head == null || head.next == null) { return head; } ListNode node = head.next; head.next = swapPairs(node.next); node.next=head; return node; } public static void main(String[] ar...
23.166667
44
0.630216
f87d68436109822288aa1baf838a717a164ecb30
1,413
// // ======================================================================== // Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available und...
31.4
85
0.606511
4867425ccbb87670626804fd9e619b7c82f4f410
7,168
/******************************************************************************* * Copyright 2021 Danny Kunz * * 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....
30.502128
137
0.651088
0c3cc184b924c4d44477e9743835d8e795e1ea56
947
package com.tianjunwei.provider.web; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cloud.client.ServiceInstance; import org.springframework.cloud.client.discovery.DiscoveryClient; import org.springframework.web.bind.annotation.RequestMapping; ...
31.566667
74
0.758184
046ce7d9e3a2160f952baa0860d789d516f212fd
5,928
package eu.xenit.contentcloud.blacksmith.messaging.rabbit; import com.fasterxml.jackson.databind.JsonNode; import com.rabbitmq.client.Channel; import eu.xenit.contentcloud.blacksmith.model.ArtifactBuildFailed; import eu.xenit.contentcloud.blacksmith.model.ArtifactBuildSuccess; import eu.xenit.contentcloud.blacksmith.m...
42.342857
140
0.662112
2dcccd586c5eb4d3d3dfb3414ca7b8fc265c66e7
2,701
package org.xpdojo.bank; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.xpdojo.bank.exceptions.IllegalDepositAmount; import org.xpdojo.bank.exceptions.IllegalWithdrawAmount; import static org.assertj.core.api.Assertions.assertThat; public class AccountTest { @Test pub...
33.7625
113
0.677157
eb90473234917a255985f54c3013f99e9b34651e
1,232
package replicatedWindow.jitter; import replicatedWindow.AReplicatedWindowsComposerAndLauncher; import replicatedWindow.AliceReplicatedWindows; import replicatedWindow.CommunicatorBasedComposerAndLauncher; import im.IMComposerAndLauncher; import im.delay.p2p.CathyP2PIM; import trace.im.IMTracerSetter; import util.sess...
38.5
114
0.840909
fd0bb640605a0cdbb7e888e25c7d197e24ebe20b
549
package com.bowyer.app.parsesendclient; /** * Created by Bowyer on 2015/08/02. */ public class ParsePushDto { public Object data; public String[] channels; public String push_time; public ParsePushDto setParsePushModel(Object model) { this.data = model; return this; } publi...
20.333333
57
0.64663
5ee59523fe6bcd32766ff09f302f4ff93fef1f98
2,057
package org.apache.tomcat.dbcp.dbcp.ext; import java.util.Enumeration; import java.util.Hashtable; import javax.naming.Context; import javax.naming.Name; import javax.naming.RefAddr; import javax.naming.Reference; import javax.naming.StringRefAddr; import org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory; publi...
30.25
139
0.742343
764940df53b761beebb6e4742c80079ed5913b5f
2,113
package com.nepxion.discovery.platform.server.tool; /** * <p>Title: Nepxion Discovery</p> * <p>Description: Nepxion Discovery</p> * <p>Copyright: Copyright (c) 2017-2050</p> * <p>Company: Nepxion</p> * * @author Ning Zhang * @version 1.0 */ import java.text.DateFormat; import java.text.ParseException; import ...
31.073529
101
0.632276
5b0ed45445a6148a61df22047cfb1556166ab80e
1,196
package twijava.oauth; import twijava.encode.ParamEncoder; import java.util.TreeMap; public class OAuthHeaderFactory { public static String makeOAuthHeader(String signature,TreeMap<String,String> oAuthParam, String cks,String ats) throws Exception{ String compoK...
36.242424
114
0.635452
0d79bd2e43f872ea3cfa111627f9b213e334c30f
5,375
package org.bkpathak.ds.linklist; /** * Created by bijay on 1/24/16. * Basic Least Recently Used Cache Implementation * */ public class LRUCache { // A QNode implemented using doubly LinkedList class QNode { QNode prev, next; int pageNumber; QNode(int pageNumber) { this...
29.696133
84
0.559442
5491e8914d7cd631594a822004def5bc8fc6d93b
300
package me.shanepelletier.sequenceomatic; import java.io.File; import java.io.IOException; public class SequenceFileReader implements IterableCollection { @Override public CustomIterator createIterator(File file) throws IOException { return new SequenceFileIterator(file); } }
23.076923
72
0.776667
fc6ee8918bcf82ebfdbb872cc95dad41a57dd073
22,268
package org.checkerframework.framework.util.typeinference.solver; import org.checkerframework.framework.type.AnnotatedTypeFactory; import org.checkerframework.framework.type.AnnotatedTypeMirror; import org.checkerframework.framework.type.AnnotatedTypeMirror.AnnotatedTypeVariable; import org.checkerframework.framework....
51.546296
149
0.654302
06cd02cc7850c4d0db7072c3378043ab271ade26
2,745
package com.redhat.service.smartevents.executor; import java.net.URI; import java.util.UUID; import java.util.concurrent.CompletionStage; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactiv...
38.125
128
0.703097
e50d9eac475b603c78ddebf44c0c943023f3ca5a
860
/** * Exercise 19 */ package com.ciaoshen.thinkinjava.chapter11; import java.util.*; public class Exercise19 { public static void main(String[] args) { // fill HashSet HashSet<String> hashSet = new HashSet<String>(); hashSet.add("one"); hashSet.add("two"); hashSet.add("thr...
28.666667
64
0.602326
b1b9fe0f57fde7f6b23246e3ae2b0a8dad83e687
2,875
/******************************************************************************* * Copyright 2021 spancer * * 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...
35.060976
99
0.65287
56f02497fd32fd9fe27353d05f01f315b3011390
7,188
package com.whensunet.core.init; import android.app.Activity; import android.app.Application; import android.content.Context; import android.os.Bundle; import android.os.Handler; import android.os.SystemClock; import com.whensunet.core.init.module.ImageManagerInitModule; import com.whensunet.core.init.module.Preferen...
32.524887
87
0.683083
758b4f9a14d620ef51f69a65075b96a60e848842
2,134
/* * 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...
59.277778
177
0.85239
2c45942de2efe643b27e8d8c3361b32d7a367057
4,440
/* * The MIT License * * Copyright 2019 Clayn <clayn_osmato@gmx.de>. * * 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 * t...
30.204082
82
0.570045
905028b2ad1d7977c9a576cc5ee988632ce05e9b
10,105
package com.github.meteorcraft.mixin; import com.github.meteorcraft.MeteorWorlds; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityType; import net.minecraft.entity.Flutterer; import net.minecraft.entity.LivingEntity; import net.minecraft.entity....
39.627451
154
0.556655
80106c33b45b1e52a05d1157653debb6fe10bcee
306
public class BubbleSort{ public void bubbleSort(int[] array){ int length = array.length; int temp = 0; for(int i=0; i<length; i++){ for(int j=1; j<(length-i); j++){ if(array[j-1] > array[j]){ temp = array[j-1]; array[j-1] = array[j]; array[j] = temp; } } } } }
17
37
0.519608
8f5711cd12f8353db9adb8c5be3436038d5b921b
23,439
/** * This file is referred and derived from project apache/tinkerpop * * https://github.com/apache/tinkerpop/blob/master/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/driver/remote/GraphBinaryRemoteGraphComputerProvider.java * * which has the following license: * * Licensed to the Apache Software ...
63.177898
186
0.763172
ae5c7b2cbd87ea9f99982df0b5d03f12c72fbaa3
1,312
package tests; import neat.ConnectionGene; import neat.Genome; import neat.NodeGene; import java.util.ArrayList; /** * Created by lukas on 28.3.2018. */ public class GenomeTest { public static void main(String[] args) { Genome g = new Genome(); //System.out.println("Hidden nodes: " + g.countH...
35.459459
220
0.572409
5e77b14f7b69f4fc9123dfb5607aced1231500d9
5,010
package com.oregonscientific.meep.database.table; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.util.Log; public class TablePermission { public static final String S_TABLE_NAME = "permission"; public static final String S_ID = "id"; public static final String S_APP_N...
29.127907
93
0.669261
20605739f64dd91f2d02592b49c5c656b2938834
7,314
/* * Copyright 2015-present wequick.net * * 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 ag...
29.02381
76
0.513399
c6df4f726ed186a4b8069f3c1a90968926add735
780
package org.openecomp.sdc.be.model.tosca.constraints; import org.junit.Test; import org.openecomp.sdc.be.model.tosca.ToscaType; public class ConstraintUtilTest { @Test public void testCheckStringType() throws Exception { ToscaType propertyType = ToscaType.STRING; // default test ConstraintUtil.checkStringTy...
20.526316
67
0.766667
4f430a11a4ad9f4d4fec52b7abcdd1fb7c301eb5
864
package edu.umass.cs.gigapaxos.interfaces; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; /** * @author arun * * @param <V> */ public interface RequestFuture<V> { /** * @return Refer {@link...
21.6
71
0.71875
fce65dded5aece46fe3d45994e750659be350c8d
963
package net.gliby.voicechat.common.networking.packets; import io.netty.buffer.ByteBuf; import net.gliby.voicechat.VoiceChat; import net.gliby.voicechat.common.networking.MinecraftPacket; import net.minecraftforge.fml.common.network.simpleimpl.IMessage; import net.minecraftforge.fml.common.network.simpleimpl.IMessageHa...
37.038462
169
0.790239
213aa046ac8535b1c414d7a954b728808afa2477
751
package org.dsa.iot.commons; /** * Provides an easy way to set variables from an inner class to an * outer class. * * @author Samuel Grenier */ public class Container<T> { private T value; /** * Initializes the {@link Container} with no value. */ public Container() { this(null); ...
17.465116
66
0.545939
2bdf29e7e7e17d9d7527fcd0716110f5e115edf7
3,758
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
36.843137
106
0.722991
890d5a54a1046a6c0520cf4aca715414e0acd617
2,445
package org.ranji.lemon.model.liquid.authority; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import org.ranji.lemon.common.core.util.JsonUtil; /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distri...
23.285714
101
0.726789
07d47c0a93d0c192e607283015480da14bea9569
406
package sde_questions.arrays.kadanes; import Algorithms.slidingWindow.minNumberFromSubArray; import org.junit.Assert; import org.junit.Test; import static org.junit.Assert.*; public class MaximumSubArrayTest { @Test public void maxNum() { int[] a = new int[]{-2, 1, -3, 4, -1, 2, 1,-5,4}; int...
23.882353
57
0.67734
865727096e21a8d0619d0a33da5d2642bc4e9a31
2,412
/** * Copyright 2017-2021 O2 Czech Republic, a.s. * * 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 ...
31.736842
87
0.704809
15d002c651120268925ad16f94047b2c2d19f27a
247
public abstract class BackupFocused { protected abstract boolean isComplete(); protected abstract boolean crackPlea(Methodology prevalentMethod); protected abstract void tallySection(Paper postscript, Methodology continuingMechanisms); }
27.444444
91
0.825911
8ada850249192a5394751c6022ea0fd6cee3b5ef
13,591
package com.tle.webtests.test.drm; import static org.testng.Assert.assertFalse; import static org.testng.Assert.assertTrue; import com.dytech.devlib.PropBagEx; import com.tle.webtests.framework.TestInstitution; import com.tle.webtests.pageobject.searching.PowerSearchPage; import com.tle.webtests.pageobject.searching....
41.31003
99
0.723126
89d6ee54208088383f2ba52692f5737805a2b7ee
558
package vip.gadfly.chakkispring.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import vip.gadfly.chakkispring.model.QuestionnaireQuestionOptionDO; import vip.gadfly.chakkispring.vo.OptionVO; import java.util...
31
102
0.831541
84f6c5e951f96ff3f78bcd1fff92c7deaa31da58
5,054
package com.yao2san.sim.gateway.api.service.impl; import com.github.pagehelper.PageInfo; import com.yao2san.sim.framework.web.service.impl.BaseServiceImpl; import com.yao2san.sim.gateway.api.request.GrayRouteReq; import com.yao2san.sim.gateway.api.request.RouteReq; import com.yao2san.sim.gateway.api.response.GrayRoute...
35.097222
101
0.64444
d3f147a0f63fcd67c90273becebd6cfeb3e46699
326
package JavaSE.day25.demo2; /* * String s = "abc";final char[] value */ public class Demo { public static void main(String[] args) { int[] arr = {1}; System.out.println(arr); char[] ch = {'a', 'b'}; System.out.println(ch); byte[] b = {}; System.out.println(b); ...
18.111111
44
0.509202
294352567c6601b18a1132398ba5232865561b85
172
package DataStructures.Hashing; public class MapObject { int key, val; public MapObject(int key, int val) { this.key = key; this.val = val; } }
19.111111
40
0.604651
8d38e8d8cb34be95cb530df55a3ca5067dc3eee8
1,066
package com.williamlian.showme.client.model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; @JsonIgnoreProperties(ignoreUnknown = true) public class GoogleImageSearchResult implements Serializable{ public String w...
20.901961
62
0.71576