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
e58a9daf112e8c21d74e29af8ae83c9e9afa0cbb
2,033
package timetakers.services; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import timetakers.exception.ValidationRuntimeException; import timetakers.model.Person; import timetakers.model.User; import timetakers.repository.PersonRepository; import timetake...
39.096154
144
0.721594
b074020d2cbaa58005e7773b2fe2fcaff958c4c1
1,955
package bright.zheng.poc.api.service; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; import org.slf4j.Logger; import o...
34.298246
82
0.72532
ed1c30adc4e0d7dee5975cea69bd238b5a2addbf
424
package org.solent.com504.project.model.auction.dao; import java.util.List; import org.solent.com504.project.model.auction.dto.Bid; public interface BidDAO { public Bid findById(Long id); public Bid save(Bid bid); public List<Bid> findAll(); public void deleteById(long id); public void d...
17.666667
55
0.691038
be77bf71f8f49d0a8178fd4098eb5747a2107107
160
package org.metaworks.multitenancy.persistence; /** * Created by uengine on 2017. 6. 7.. */ public interface AfterLoadOne{ public void afterLoadOne(); }
17.777778
47
0.71875
2d1db0661697e5412bfa0313d03f2e34ae8000bd
1,850
import java.awt.*; import java.awt.geom.*; /** A circular node that is filled with a color. */ public class CircleNode implements Node { /** Construct a circle node with a given size and color. @param aColor the fill color */ public CircleNode(Color aColor) { size = DEFAU...
22.560976
59
0.541622
4c68c031e17729c95027b86caa076b4e9f3a3cce
23,122
// // PushNotifications.java // // Pushwoosh, 01/07/12. // // Pushwoosh Push Notifications Plugin for Cordova Android // www.pushwoosh.com // // MIT Licensed package com.pushwoosh.plugin.pushnotifications; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Looper; im...
26.546498
164
0.734149
6bfc1a7d75c234b77885ae4338cbc9f61f914e59
1,061
package seedu.taskify.logic.commands; import static seedu.taskify.logic.commands.CommandTestUtil.assertCommandSuccess; import static seedu.taskify.testutil.TypicalTasks.getTypicalTaskify; import org.junit.jupiter.api.Test; import seedu.taskify.model.Model; import seedu.taskify.model.ModelManager; import seedu.taskif...
32.151515
101
0.756833
09720353a0c334e9726f18a38a9e4317a222bd4d
1,437
package subway.line; import subway.station.Station; import subway.station.StationService; import utils.StringSeparation; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class LineInitialization { private static final String lineNumberTwo = "2호선, 교대역, 강남역, 역삼역"; private stat...
35.925
108
0.679889
a238fa0865e6d920d302fc0f61aaa2cff7ce9a8f
1,044
package io.lindstrom.mpd.support; import com.fasterxml.jackson.databind.JsonMappingException; import io.lindstrom.mpd.data.FrameRate; import org.junit.Test; import static org.junit.Assert.assertEquals; public class FrameRateSerializerTest extends ObjectMapperTestBase<FrameRate> { public FrameRateSerializerTest()...
27.473684
87
0.687739
52a327d7a6d0d5330352e2d2031862c7210a7602
2,055
/* * 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...
24.464286
75
0.724574
6eb92a56127f85aa39ae96c6c5046fa6982b2525
513
// Generated by GraphWalker (http://www.graphwalker.org) package com.company; import org.graphwalker.java.annotation.Model; import org.graphwalker.java.annotation.Vertex; import org.graphwalker.java.annotation.Edge; @Model(file = "com/company/Simple.json") public interface Simple { @Vertex() void v_VerifyPre...
19.730769
56
0.707602
8945631ca78c36f36b96d8be3b65a627165babc2
222
package gos.example.component; import org.springframework.stereotype.Component; @Component public class ReceiveBean { public void receiveMethod(String body) { System.out.println("Received: " + body); } }
20.181818
49
0.725225
c4e6c3f3660d546d8ace6c36c7376eab7b1535d9
6,699
package team.benchem.todoapp.view; import android.content.DialogInterface; import android.content.Intent; import android.databinding.DataBindingUtil; import android.os.Bundle; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayo...
41.351852
163
0.652485
1c41c451d39a6d5075711e0413731c4f016435e1
774
// -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; -*- // vim: et ts=4 sts=4 sw=4 syntax=java package com.aragaer.jtt.resources; import android.content.Context; public class RuntimeResources { private final Context context; private static RuntimeResources instance; private static StringResources srI...
26.689655
71
0.669251
cdb1920b4ee165a4ea6a3153bd4cdc785437302b
1,446
package app.timeserver.helper.permissions; import android.Manifest; public enum Permission { CAMERA(0, Manifest.permission.CAMERA), READ_STORAGE(1, Manifest.permission.READ_EXTERNAL_STORAGE), FINE_LOCATION(2,Manifest.permission.ACCESS_FINE_LOCATION); private int mKey; private String mAndroidPerm...
25.821429
82
0.669433
7ec9b2cb3e8270927557f84b0fb275093ac082d5
2,160
package bes_flink; import java.io.IOException; import java.io.PrintWriter; import java.net.Socket; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; import org.apache.flink.api.java.tuple.Tuple4; import org.apache.flink.configuration.Configuration; import org.apache.flink.runtime.ut...
29.589041
78
0.740741
6ad69d35c181de7bbb142ae5bd70e8416bc5c692
1,575
/* * Copyright (c) 2015-2021, Antonio Gabriel Muñoz Conejo <antoniogmc at gmail dot com> * Distributed under the terms of the MIT License */ package com.github.tonivade.claudb.command.server; import com.github.tonivade.claudb.command.DBCommand; import com.github.tonivade.claudb.command.annotation.ReadOnly; import ...
28.636364
88
0.704762
24ff5b0d3dc424cca3db7b45165e2bd5b3209d19
1,980
/* * Copyright 2020 Rudy De Busscher (https://www.atbash.be) * * 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...
40.408163
122
0.74596
46c9f17a4a728f64daf3fc83ea3cdb0daea87a17
150
package de.simagdo.fireworkcreator.utils; public enum ExplosionShape { NONE, FIRE_CHARGE, GOLD_NUGGET, CREEPER_HEAD, FEATHER }
12.5
41
0.7
b189ff07dcb59847ce5097555ace57485c057cbb
696
package de.gecko.medicats.icd10.ver_sgbv20; import java.util.Collections; import java.util.List; import de.gecko.medicats.icd10.IcdNode; import de.gecko.medicats.icd10.sgml.AbstractSgmlIcdNodeWalker; import de.gecko.medicats.icd10.sgml.SgmlIcdNode; public class Icd10SGBV20NodeWalker extends AbstractSgmlIcdN...
25.777778
85
0.732759
c95540e12d141b04142dc62a8f15f71e9b4dde81
2,294
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
38.881356
119
0.7415
410626498000d7ab726abc31e900d38796d4238a
1,600
package com.github.yassine.soxychains.subsystem.docker.networking; import com.github.yassine.soxychains.subsystem.docker.config.DockerContext; import com.github.yassine.soxychains.subsystem.docker.image.api.DockerImage; import com.github.yassine.soxychains.subsystem.docker.image.api.ImageRequirer; import com.google.au...
47.058824
129
0.780625
b055fd32325db5bf5adb66b32dd6d885b8f0a5af
1,158
package com.nxy006.project.practice.pattern.singleton; import java.util.concurrent.atomic.AtomicLong; // 静态代码块单例实现,实际是饿汉式的另一种写法 public class StaticBlockSingleton { private static StaticBlockSingleton instance; private AtomicLong id = new AtomicLong(0); // 相比饿汉式,使用代码块支持异常捕获 static { try { ...
24.638298
73
0.570812
0cc4dcf4e4b4fee8a658d09a698a7af3aa6f2203
742
package de.Ste3et_C0st.ProtectionLib.main.module; import java.util.HashMap; import de.Ste3et_C0st.ProtectionLib.main.ProtectionModule; import de.Ste3et_C0st.ProtectionLib.main.ProtectionPluginFilter; import de.Ste3et_C0st.ProtectionLib.main.protectionObj; import de.Ste3et_C0st.ProtectionLib.main.plugins.fPlotSqu...
39.052632
101
0.809973
94af07f317c3e80bfa2628330c8a245bab1ef996
676
package com.thirtydegreesray.openhub.mvp.contract; import com.thirtydegreesray.openhub.mvp.contract.base.IBaseContract; import com.thirtydegreesray.openhub.mvp.model.RepoCommit; import com.thirtydegreesray.openhub.mvp.model.RepoCommitExt; /** * Created by ThirtyDegreesRay on 2017/10/18 11:14:32 */ public interfa...
26
84
0.766272
ff48a4f09b029f54a23de39d647f9d8a7b88fc86
5,645
/* * MIT License * * Copyright (c) 2020, 2021 Mixinors * * 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, m...
50.401786
198
0.761027
39bc8d958a1cb1cea794a8695fc4d2abf480f1da
1,784
package eu.kartoffelquadrat.openglexplorer.model; import java.io.Serializable; /** * Created by Max on 12/9/16. */ public class Influencers implements Serializable { private MasterCell[] mastercells; Influencers(Board board, double influenceProbablility) { // Attribute random number of board cells...
28.31746
116
0.589126
35e44df60538359cbd3bc628ce85a0cea03545df
2,436
package com.github.daedalus.core.data; import lombok.AccessLevel; import lombok.NoArgsConstructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Arrays; @NoArgsConstructor(access = AccessLevel.PRIVATE) class NumberType<N extends Number> implements DataType<N> {...
34.8
113
0.615764
d47e40546733b4158d60f6b264dc529e97a9445c
3,420
package volume; import ij.*; /** * This is a 1D separated 0-th order Gaussian convolution kernel. * G(x) = 1.0 / (Math.sqrt(2 Math.PI) * sigma)) * e^(-l * x / (2.0 * sigma^2)) * * (c) 1999-2002 Michael Abramoff. All rights reserved. * @author: Michael Abramoff * * Small print: * Permission to use, copy, modify...
39.767442
111
0.538596
b1ce0a7c0e6c050e805a831961955c1761b9f72d
726
package com.scalablet.spm.model.db; /** * Data type * * @author abomb4 2020-08-10 01:53:49 +0800 */ public enum EnumColumnDataType { /** */ VARCHAR("String", "varchar"), /** */ INTEGER("Integer", "int"), /** */ LONG("Long", "bigint"), /** */ DECIMAL("java.math.BigDecimal", "deci...
20.742857
67
0.61157
a2dcd69002dcd02f5a0a18c6973b8d05d95c44d7
2,119
/* * Copyright (c) 2015 WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lic...
43.244898
135
0.800849
bd857af7a12f6d6a815153c0acc49932232c4a26
635
package automation.applogic; public class MailHelper extends DriverBasedHelper { public MailHelper(ApplicationManager manager) { super(manager.getWebDriver()); } public void viewFolders() { pages.mailPage.ensurePageLoaded(); pages.mailPage.openAjaxFolder().waitAjaxFolderOpened(); pages.mailPage.openAnnou...
30.238095
75
0.801575
df8e2d959bb02d121ccccbdcfc2f5ff45cc40331
109
package be.kuleuven.ses.decorator.cars; public interface Car { public void assemble(); // build stuff }
18.166667
42
0.724771
a4bf1121239783b28e52778216720004da9048bc
5,172
// WARNING: This code is auto-generated from the BaseCRM API Discovery JSON Schema package com.getbase.services; import com.getbase.http.HttpClient; import com.getbase.models.Lead; import com.getbase.serializer.JsonDeserializer; import com.getbase.serializer.JsonSerializer; import com.getbase.serializer.Views; import...
29.554286
101
0.695862
fc9d598abcb9c6eeaa58e835fd9ec7ab21685d1d
6,396
package br.dev.mhc.financialassistantapi.services; import java.awt.image.BufferedImage; import java.net.URI; import java.time.Instant; import java.util.List; import java.util.Optional; import java.util.UUID; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annota...
34.021277
106
0.778455
f40d6e03c82d63d686decb9400212a344c4701ee
749
package org.mongobaba.refactory.chapter9; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; import static org.mongobaba.refactory.chapter9.Chapter9_8.*; class Chapter9_8Test { private Employee employee; @BeforeEach void initEmpl...
24.966667
60
0.686248
8814fbb72d0dfe0f528ed75be6dff1b76a6b2e0a
1,223
package com.supervisor.indicator.impl; import java.io.IOException; import com.supervisor.sdk.datasource.DomainRecordable; import com.supervisor.domain.DataFieldType; import com.supervisor.indicator.IndicatorType; import com.supervisor.indicator.IndicatorTypeParam; import com.supervisor.indicator.IndicatorTypeParamCat...
23.519231
112
0.787408
4317229d3c748a20fdafa2c4e93307613169e8bd
1,085
package org.apereo.cas.support.saml; import org.apereo.cas.couchdb.saml.CouchDbSamlMetadataDocument; import lombok.val; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; /** * This is {@link CouchDbSamlMetadataDocumentTests}. * * @author Misagh...
25.833333
63
0.613825
d6e30355af73facff623cc7813867429dc97d19a
192
package model; public class BaseModelClass { public BaseModelClass() { } protected String Id; public String getId() { return Id; } public void setId(String id) { Id = id; } }
10.105263
31
0.65625
c5366a1c6e69f24d00660b5885f3513305ed8969
1,648
package com.senderman.lastkatkabot.service; import com.senderman.lastkatkabot.dbservice.BlacklistedChatService; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Service; import java.util.HashSet; import java.util.Set; import java.util.concurrent.ScheduledExecutorSer...
34.333333
112
0.746359
a9bc1f564001cebdeb2f1c76831c29c7e15a2fe7
953
package org.monarchinitiative.phenol.ontology.data; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.greaterThan; import static org.hamcrest.Matchers.lessThan; import static org.junit.Assert.assertEquals; import org.junit.Before; import org.junit.Test; public class TermPrefixT...
24.435897
66
0.742917
5b4dd4aa97b21b9ce9e2689c53d0b3ad537ea88c
785
package com.sofftek.demo.entities; import lombok.Getter; import lombok.Setter; import javax.persistence.*; @Entity @Table(name = "cliente") @Setter @Getter public class Cliente extends Activable{ @Column(name = "nombre") private String nombre; @Column(name = "apellido") private String apellido; ...
20.657895
68
0.687898
f05f9475c6ed5e9976c25a4cf7aee674a612a973
2,161
/* * Copyright 2017-2019 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 applicable...
23.236559
100
0.691809
8acb5f0e8ff76555b8d03a51081e32809da9be02
1,128
package seedu.address.logic.commands.list; import static java.util.Objects.requireNonNull; import static seedu.address.model.Model.PREDICATE_SHOW_ALL_ITEMS; import seedu.address.logic.commands.results.CommandResult; import seedu.address.logic.commands.results.ListCommandResult; import seedu.address.model.Model; /** ...
31.333333
109
0.711879
f36f069e1960ee9337b13bd702ea04b7df29ec28
1,753
package org.openmrs.module.attachments.fragment.controller; import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.openmrs.PersonName; import org.openmrs.module.attachments.AttachmentsContext; import org.openmrs.module.emrapi.patient.PatientDomainWrapper;...
50.085714
119
0.812322
c53236656be382941c64081d1e6ce8aa2e8981bc
10,126
/* * Copyright (C) 2014 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...
39.096525
98
0.687241
f94974e55966fc2cc3ccfc004840e522a839ed42
1,261
package com.logub.logcontroller.domain.model; import static com.logub.logcontroller.domain.model.LogLevel.UNKNOWN; import static lombok.AccessLevel.PRIVATE; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.NonNull; import lombok.Value; import java.time.Instant; import java.util.Collections; imp...
24.25
74
0.767645
8f247665d9dffb3efde67448d3d5c8176396703c
3,509
/* * Configurate * Copyright (C) zml and Configurate contributors * * 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 requir...
35.444444
137
0.653748
09051e16966ff6520d5d91211ee19f159e8a8a7f
2,270
/* * @#RequestCheckInActor.java - 2015 * Copyright bitDubai.com., All rights reserved.  * You may not modify, use, reproduce or distribute this software. * BITDUBAI/CONFIDENTIAL */ package com.bitdubai.fermat_p2p_plugin.layer.communications.network.node.developer.bitdubai.version_1.structure.channels.processors.cli...
39.137931
177
0.778414
5ea9e1fbd5360f7eef7f2810c840805f08505470
500
package frc.robot.components.hardware; /** * An interface for any component which controls output. This usually refers to * motors. */ public interface OutputSetterComponent { /** * Sets the output of the component in relative units. For example, +1.0 is the * maximum forward output of the component, ...
29.411765
86
0.694
a895025141c6f079194a3b19f475c7ca181e4c24
18,178
/** * VMware Continuent Tungsten Replicator * Copyright (C) 2015 VMware, Inc. 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/licen...
34.890595
129
0.578336
969b8ad40842e1a0dc767790e84459f051bce834
374
package genepi.r2browser.web.util.functions; import java.text.DecimalFormat; import java.util.function.Function; public class DoubleFormatFunction implements Function<Double, String> { public static final DecimalFormat DECIMAL_FORMAT = new DecimalFormat("#.##"); @Override public String apply(Double number) { ...
22
78
0.778075
5cce36f99be599227e3dc059edb405507134b7e6
1,914
package com.njp.android.kuweather.model; import android.util.Log; import com.baidu.location.BDLocationListener; import com.google.gson.Gson; import com.njp.android.kuweather.bean.Weather; import com.njp.android.kuweather.dao.WeatherDao; import com.njp.android.kuweather.utils.BDLocationUtil; import com.njp.android.ku...
27.342857
80
0.694357
df4fd00969b1812652a954f55203281236881679
1,545
/** * Copyright 2021 Tianmian Tech. 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 ...
24.919355
75
0.680259
70031b2b9d352edb3ccd1aedc5a8d9d3e4b53224
3,196
package org.vivecraft.gameplay.trackers; import java.util.Random; import org.vivecraft.gameplay.OpenVRPlayer; import org.vivecraft.provider.MCOpenVR; import net.minecraft.client.Minecraft; import net.minecraft.client.entity.player.ClientPlayerEntity; import net.minecraft.item.UseAction; import net.minecraft.item.Ite...
29.592593
162
0.723404
1a218ba438b46060bce158bc2639c7fcdcae3b3f
13,014
/*! ****************************************************************************** * * Hop : The Hop Orchestration Platform * * Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com * http://www.project-hop.org * ******************************************************************************* * * ...
37.831395
135
0.686107
b9f6711e114c02ff18bcebf5a414316a6e5a3404
2,251
package xyz.morecraft.dev.mtturing.objects; import javax.swing.text.AttributeSet; import javax.swing.text.BadLocationException; import javax.swing.text.PlainDocument; public class JTextFieldLimit extends PlainDocument { private int limit; private boolean b = false; private boolean b2 = false; public...
27.45122
102
0.502888
76aea0d57bcb6afa174e77971b165366c53f3aec
2,639
/* * Copyright 2015 Adaptris 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 applicable law or agree...
27.778947
130
0.713907
d648113f85dbe40a9783dc434cb8133b5bf2fd97
29,395
/* * 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 ...
42.173601
100
0.69835
25875f8dc2812d3434a3625bdb3072e0693e6294
1,853
/* * * 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"); ...
30.377049
91
0.679439
80683c64edd263284110339b1e91ad86ac059cfd
8,395
/** * Copyright (C) 2015 Red Hat, 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...
45.378378
917
0.776891
a0a0e1380a66cdc8a0be485db1c4f7c528eaefbf
3,047
/* * Copyright 2013 Michael Mackenzie High * * 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...
22.57037
93
0.617985
29504d9622532e6741e2d26bccaffd1700e84293
1,728
package mage.cards.g; import java.util.UUID; import mage.MageInt; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.effects.Effect; import mage.abilities.effects.common.continuous.GainProtectionFromColorAllEffect; import mage.abilities.keyword.F...
36
171
0.736111
20f0744300b2f9ee35fd83bff80530414e256d2e
1,201
package com.itheima.openchina.ui.fragment; import com.itheima.openchina.bases.BaseNewsFragment; import com.itheima.openchina.beans.FragmentInfo; import com.itheima.openchina.ui.fragment.synfragments.ActionFragment; import com.itheima.openchina.ui.fragment.synfragments.BlogsFragment; import com.itheima.openchina.ui.fra...
30.025
71
0.732723
485cc57cd576e2faa41eb6c6de762b1292999971
1,355
/* * Copyright Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags and * the COPYRIGHT.txt file distributed with this work. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
33.875
114
0.75572
6c1bca119a53616dad936c172e60966068db5bf5
408
package com.st.bench.mybatis; import org.junit.jupiter.api.Test; import javax.sql.DataSource; import static org.junit.jupiter.api.Assertions.*; /** * @author abomb4 2022-04-12 */ class SpringContextTest { @Test void getInstance() { SpringContext instance = SpringContext.getInstance(); Da...
19.428571
61
0.693627
81ac2072c8c7032db18b222c2abc653c811225db
607
package com.netflix.explorers.helloworld; import com.google.inject.AbstractModule; import com.google.inject.multibindings.Multibinder; import com.netflix.explorers.Explorer; import com.netflix.explorers.annotations.ExplorerGuiceModule; @ExplorerGuiceModule(jerseyPackagePath = "com.netflix.explorers.helloworld.resourc...
37.9375
99
0.802306
d5e1ff02b0b406950e4474cb36ca469d495b0415
1,478
package org.hildan.livedoc.core.model.types; import java.util.Collections; import java.util.List; public class SimpleClassReference implements LivedocType { private final String name; private final Class<?> clazz; private String livedocId; public SimpleClassReference(String name, Class<?> clazz, S...
25.482759
93
0.602842
a31316e066a4b6e8907723e9fbd75be02521d008
1,565
package model; import java.io.Serializable; import model.exception.InvalidDataException; public class Evaluation implements Serializable { private static final long serialVersionUID = -2917944580171297941L; private int projectId; private Evaluator evaluator; private int attractiveness; private int riskLevel; ...
23.712121
89
0.759744
8c7cda95ca7ebad9def3329f20c41dda7a2bf4e9
798
package self.totality_example; import java.awt.Color; import java.awt.Graphics; import java.util.Random; public class Bullet { static final double SPEED = 1; static Random random = new Random(); boolean pressed = false; int width = 5; int height = 5; double xPos = -10; double yPos = -10; double xVel = 0...
16.285714
75
0.666667
b1248322a32a24f0e9f576917b208a070735392c
1,551
package com.github.onsdigital.thetrain.api; import com.github.onsdigital.thetrain.json.Result; import com.github.onsdigital.thetrain.json.Transaction; import com.github.onsdigital.thetrain.service.PublisherService; import com.github.onsdigital.thetrain.service.TransactionsService; import org.junit.Before; import org.m...
27.210526
70
0.758865
49840bb73c09756a92ab252343c1615bd4498193
2,137
package com.eci.cosw.springbootsecureapi.controller; import com.eci.cosw.springbootsecureapi.model.User; import com.eci.cosw.springbootsecureapi.service.UserService; import com.eci.cosw.springbootsecureapi.utils.StringUtils; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; import org.springframe...
32.378788
105
0.682265
766c89df05b3ceb96144fec40d5615989de31a03
3,057
/* * Copyright (C) 2006-2020 Talend Inc. - www.talend.com * * 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 applicabl...
39.192308
127
0.764148
14271ee68e4729f1f00c9f20414566c4c59d586c
14,838
/* * 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 ...
37.469697
98
0.654199
4ed124615474ecf3b683a1f4c1d42f495e86b16f
2,380
/* * JBoss, Home of Professional Open Source * Copyright 2009 Red Hat Inc. and/or its affiliates and other contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
39.666667
118
0.731092
7b50891117a08f12cc5feac141449c57c85dbaae
4,506
package cn.czfshine.wechat.msg; import cn.czfshine.wechat.emoji.Emoji; import cn.czfshine.wechat.image.Image; import org.docx4j.dml.diagram.STOutputShapeType; import org.docx4j.wml.P; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.HashMap; import java.util.List; import java.util.Map; /** ...
30.863014
85
0.515535
7f5e7641818ffd6e7fac6f85befa772d2391e14f
345
package org.openstack.android.summit.common.data_access.deserialization; import org.json.JSONException; import org.openstack.android.summit.common.entities.SummitAttendee; /** * Created by Claudio Redi on 11/16/2015. */ public interface ISummitAttendeeDeserializer { SummitAttendee deserialize(String jsonString)...
28.75
72
0.814493
8dc1c8a9dbc5af7c0915cc86094461b8965e7197
660
// Question: https://leetcode.com/problems/next-greater-element-ii/ public class NextGreaterElementII { public int[] nextGreaterElements(int[] nums) { if (nums.length == 0) { return nums; } int[] res = new int[nums.length]; Arrays.fill(res, -1); Stack<Integer> ...
24.444444
67
0.457576
6cbffacd61c9ca06b705b0f4fe82c247a43c9761
7,084
package com.example.hxl.travel.ui.view; import android.app.AlertDialog; import android.content.Context; import android.content.SharedPreferences; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.exa...
33.894737
93
0.663185
14ce8fc96765c7165591e542a853e0ce820b71ad
5,127
package com.mapbox.api.directionsrefresh.v1; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.google.auto.value.AutoValue; import com.google.gson.GsonBuilder; import com.mapbox.api.directions.v5.DirectionsAdapterFactory; import com.mapbox.api.directionsrefresh.v1.model...
30.700599
100
0.708992
c77e0350ab349830b852322465eaaac029eb672f
497
package org.hopto.mjancola.activity; import android.app.Activity; import org.junit.runner.RunWith; import org.robolectric.Robolectric; import org.robolectric.RobolectricTestRunner; import static org.junit.Assert.assertTrue; @RunWith(RobolectricTestRunner.class) public class ActivityTrackerTest { @org.junit.Test ...
26.157895
88
0.792757
96830762ddc1fcb7a124466414e7c1008a46e1f0
201
package exercise; /*final*/ class FinalClass { } /** * @Author ZhangGJ * @Date 2019/04/09 */ public class E22_FinalClass extends FinalClass { public static void main(String args[]) { } }
13.4
48
0.656716
05949096a6ba754e8a095e10bb899e15b70e45c4
302
package net.sanlite.client.plugins.gauntlet.event; import lombok.Getter; import net.runelite.api.NPC; public class DemiBossDespawned extends GauntletEvent { @Getter private final NPC npc; public DemiBossDespawned(NPC npc) { super(GauntletEventType.DEMI_BOSS_DESPAWNED); this.npc = npc; } }
17.764706
52
0.781457
ce8faeed2d26c1588509eaa5dccb674dbbe5933b
10,711
package org.ovirt.engine.core.common.utils.ansible; import java.util.Arrays; import java.util.Base64; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.fasterxml.jackson.databind.JsonNode; /** * This class is utility cla...
31.046377
129
0.550089
cb4675df9c9064cc90226603058f0e514b8b26c5
1,410
package org.bndly.common.crypto.api; /*- * #%L * Crypto API * %% * Copyright (C) 2013 - 2020 Cybercon GmbH * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.a...
35.25
140
0.72695
f62ef3925369b6f4acb09b530cb1d94dffa6ecd5
497
import java.io.*; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n=Integer.parseInt(br.readLine()); int[] a = new int[n+1]; int[] d = new int[n+1]; for(int i=1; i<=n; i++) { a[i]=Integer.parseInt...
24.85
75
0.585513
2948450765db12b673487fb38d47d288ba3a0c67
2,620
/* * Copyright (c) 2021 Huawei Device 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 applicable law ...
30.465116
95
0.68855
c5b46a33918628b9b0384ce53bdb4e6cad4e05a3
73
package org.develop.algorithm; public class PostorderTraversal { }
12.166667
33
0.753425
cd02db1155d3125cc76495c46891738fb17c4a28
926
package ca.momoperes.client.multiplayer; import ca.momoperes.client.world.Location; public class GamePlayerMP { public static final int FACE_R = 0; public static final int FACE_L = 1; private final String username; private Location location; private boolean crouched; private int facing = FAC...
19.702128
48
0.640389
cae4e253f2755503d204dc8773702a450c036f64
165
/** * The file has been moved to the new location: * * https://github.com/tinystruct/tinystruct2.0/blob/master/src/main/java/tinystruct/examples/smalltalk.java **/
27.5
106
0.745455
39c6c59e8b61915c47d64f2a2afccb80244492c0
2,825
package com.cango.palmcartreasure.trailer.admin; import com.cango.palmcartreasure.base.BasePresenter; import com.cango.palmcartreasure.base.BaseView; import com.cango.palmcartreasure.model.GroupTaskCount; import com.cango.palmcartreasure.model.GroupTaskQuery; import com.cango.palmcartreasure.model.TaskAbandonRequest; ...
31.043956
147
0.667257
1bcb17dc87aae88fb316936a58ddba2c2a9ce3f3
2,492
package net.osdn.aoiro.loader.yaml; import com.esotericsoftware.yamlbeans.YamlException; import com.esotericsoftware.yamlbeans.YamlReader; import java.util.regex.Matcher; import java.util.regex.Pattern; public class YamlBeansUtil { private static final Pattern MESSAGE_PATTERN = Pattern.compile("Line (\...
24.92
117
0.607544
1bd15432f9f9a2329c21a2ed1b6f9f47bd4e9309
813
package com.rental.controller; import java.security.SecureRandom; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import lombok.extern.log4j.Log4j; @RunWith(SpringJUnit4ClassR...
31.269231
79
0.772448
d4268e23517cad8411b94e826b00949ae7eb486a
5,665
package top.bettercode.simpleframework.data.resolver; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.ParameterizedType; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.springframework.core.MethodParameter; import org.springframework.util.StringUtils; impor...
38.537415
111
0.725508
5ba37a2040eca76ec2bb832d2ff896549f48bd74
6,585
package at.aau.pokerfox.partypoker.model; import android.os.Parcel; import android.os.Parcelable; import com.bluelinelabs.logansquare.annotation.JsonField; import com.bluelinelabs.logansquare.annotation.JsonObject; import at.aau.pokerfox.partypoker.R; @JsonObject public class Card implements Parcelable {...
35.026596
87
0.532726
e8bb396c550f2dad84ff122aa1ef39e1d42ba520
1,116
package com.napier.sem; /** * Represents an Country */ public class Country { /** * Country Code */ public String Code; /** * Country name */ public String Name; /** * Continent name */ public String Continent; /** * Country Region */ public S...
13.777778
33
0.519713
e5bb60fda4c0e1234639237c219fd81b2722d8b9
1,199
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. package org.rocksdb; i...
29.975
78
0.709758
ac5e9add5a9671edc377a747ce9661a5b257fdf3
12,064
package com.sumian.blue.model; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothGatt; import android.bluetooth.BluetoothGattCharacteristic; import android.bluetooth.BluetoothProfile; import android.content.Context; import android.os.Build; import android.os.Handler; import android.os.Handler...
33.604457
164
0.644231
6fc2dd8eb6cd32c39ca008532ea20bc781491033
1,335
// Copyright (c) Microsoft. All rights reserved. package com.microsoft.azure.iotsolutions.storageadapter.services.models; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.azure.documentdb.Document; import org.joda.time.DateTime; public class ValueServiceModel { public String CollectionI...
32.560976
184
0.680899
0cb2097c334e0c4d3c55216d2f6d518b606dcd17
42,356
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.data.tables; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.HttpHeaders; import com....
49.59719
120
0.641633