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
a583dcaff4547bc0d91c03a0b3d099031f5a0d46
294
package stepDefLogin; import org.junit.runner.RunWith; import cucumber.api.CucumberOptions; import cucumber.api.junit.Cucumber; @RunWith(Cucumber.class) @CucumberOptions(features="src/test/resources/LoginFeature",glue="stepDefLogin",plugin="pretty") public class TestRunner { }
22.615385
97
0.77551
633f0e154faf1a63272366ee5ddd531ab9ef90d4
1,271
package com.flyer.maker.freemarker; import com.flyer.maker.base.Config; import freemarker.template.Configuration; import freemarker.template.TemplateModelException; import java.io.IOException; import java.util.Locale; /** * freemarker配置初始化 */ public class FreemarkerConfig { private static Configuration config...
36.314286
95
0.714398
18981177e9dc741f9feb3da96c3442bdaa542f57
5,859
/* * generated by Xtext 2.23.0 */ package org.xtext.system.dependency.ui.contentassist; import org.eclipse.emf.ecore.EObject; import org.eclipse.xtext.Assignment; import org.eclipse.xtext.RuleCall; import org.eclipse.xtext.common.ui.contentassist.TerminalsProposalProvider; import org.eclipse.xtext.ui.editor.contenta...
62.329787
165
0.829664
9989165e9c8c8aad18c18928db8e12328b67297a
10,776
package com.dtstack.taier.develop.service.console; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.dtstack.taier.common.enums.Deleted; import com.dtstack.taier.common.enums.ECompone...
47.056769
178
0.690609
391aa60d5761a65abdf3472f74f208e6e2f79dd7
539
package com.atlassian.clover.idea.util.vfs; import com.intellij.testFramework.LightIdeaTestCase; public class VfsUtilIdeaTest extends LightIdeaTestCase { public void testCalcRelativeToProjectPath() { try { System.out.println("java.io.tmpdir = " + System.getProperty("java.io.tmpdir")); ...
29.944444
91
0.654917
9c488b2b4c282e51b2ddb1ec6866271acd4d7286
1,197
package com.eltechs.axs.GestureStateMachine; import java.util.ArrayList; import java.util.List; public class GestureMouseMode { private final List<MouseModeChangeListener> listeners = new ArrayList(); private MouseModeState state; public interface MouseModeChangeListener { void mouseModeChanged(G...
28.5
96
0.725982
559f785a3da983bfe08dfd543bc6bf9b1edb4c61
4,400
/* Copyright 2020 Brian Pursley 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 w...
43.564356
118
0.644091
5cf1a846afa6dc9b1770598a580752f4881efd5a
2,736
package org.aion.avm.tooling.deploy.eliminator; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; public class ClassInfo { private final String className; private final Map<String, MethodInfo> methodMap; // These are methods that we want to always flag as reac...
29.106383
151
0.682018
bd63efdde48ca9a00b7e5279dff2f8d3c92ad612
14,115
/* * Copyright (c) 2010-2019 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.model.impl.lens.projector.policy.evaluators; import com.evolveum.midpoint.model.api.PipelineItem; ...
54.922179
168
0.716047
0932ea7baf34d0d97060d96a3f1534f3a809cace
455
package br.ufes.willcq.sgp.exception; import com.fasterxml.jackson.annotation.JsonInclude; public class ItemErro { @JsonInclude(JsonInclude.Include.NON_NULL) private String campo; private String mensagem; public String getCampo() { return campo; } public void setCampo(String campo) { this.campo = campo; ...
16.851852
52
0.742857
f76b7acf05d106fc953f6b433441c699e50b19c9
982
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the LICENSE * file in the root directory of this source tree. */ package com.facebook.v8.reactexecutor; import com.facebook.react.bridge.JavaScriptExecutor; import com.facebook.react.bridge.JavaS...
26.540541
74
0.739308
22f38e877ce8080539567f2e07a8ae646dc8f83d
392
package de.skuld.radix; import de.skuld.web.model.MetaData.StatusEnum; public enum RadixTrieStatus { CREATED, GENERATING, GENERATED, SORTING_ADDING, FINISHED; public static RadixTrieStatus valueOf(StatusEnum status) { return valueOf(status.toString()); } public static StatusEnum toAPIStatus(RadixTrieSta...
24.5
64
0.767857
a35a8d75bf0a66b454bf9cc155df01dc05ce31a5
3,306
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.api.baggage.propagation; import static java.util.Collections.singletonList; import io.opentelemetry.api.baggage.Baggage; import io.opentelemetry.api.baggage.BaggageBuilder; import io.opentelemetry.api.baggag...
32.732673
98
0.684211
db518c57db22f8cfb42f43aa011d8359e84dca3e
20,525
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.physicalweb; import android.content.SharedPreferences; import android.support.test.filters.SmallTest; import android....
38.873106
106
0.669574
f24ea999fe78114513d20c485129c7c393d2ebd5
6,447
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 ...
17.377358
810
0.809989
92e28165bf3ddbfd25eab44656ec44487be87597
2,055
/* * Copyright 2013 NGDATA nv * * 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...
38.773585
131
0.76837
26e4b6f0d2b2fdf0fa4357a412ec6ade146db4eb
1,733
package com.arikanogluulku.thirdhomework.controller; import com.arikanogluulku.thirdhomework.converter.UserConverter; import com.arikanogluulku.thirdhomework.dto.UserDto; import com.arikanogluulku.thirdhomework.entity.User; import com.arikanogluulku.thirdhomework.service.UserService; import org.springframework.beans.f...
31.509091
93
0.714368
54d97352c6927d1eacc600df5d8e4b474bab72c1
10,629
/** * Copyright (c) 2002-2015 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * 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...
31.823353
153
0.544924
419ff39a5487b7b4ec8c783976a6181494771cd5
40,171
package uk.gov.justice.digital.delius.controller.secure; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiResponse; imp...
66.179572
318
0.692813
40fb9d07caf34bc1a900a545cc47052e20996f67
628
package io.smallrye.graphql.client.typesafe.impl.json; import static io.smallrye.graphql.client.typesafe.impl.json.GraphQLClientValueException.check; import javax.json.JsonValue; import io.smallrye.graphql.client.typesafe.impl.reflection.FieldInfo; import io.smallrye.graphql.client.typesafe.impl.reflection.TypeInfo;...
29.904762
94
0.75
a1e901294a0769c146cb40fd5a40cdb760b07296
1,960
package net.minecraft.util; import com.google.common.collect.Maps; import com.google.gson.Gson; import com.google.gson.TypeAdapter; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonToken; import com.google.g...
32.666667
144
0.656122
84fb22d35e89417e7e6f4b7e41920bceded7b556
747
package com.dihanov.musiq.di.modules; import com.dihanov.musiq.di.annotations.PerActivity; import com.dihanov.musiq.ui.settings.profile.user_friends_info.ProfileUserFriendsContract; import com.dihanov.musiq.ui.settings.profile.user_friends_info.ProfileUserFriendsInfo; import com.dihanov.musiq.ui.settings.profile.user_...
35.571429
121
0.846051
773183961e890b8a58d20c9a6aadb926eade35ea
739
package fr.ign.validator.metadata.code; import fr.ign.validator.code.CodeList; import fr.ign.validator.code.CodeListValue; /** * * Implementation of gmd:MD_TopicCategoryCode * * @see <a href= * "http://www.datypic.com/sc/niem21/e-gmd_MD_TopicCategoryCode.html">gmd:MD_TopicCategoryCode</a> * * @author M...
23.09375
103
0.686062
a16beec9c9ca11f57b60d8ad78ad0147dd4c8cb4
2,157
package engine.game.gameloop; import engine.GameInfo; import engine.game.LevelManager; import engine.graphics.GraphicsEngine; /** * StepStrategy for transition screen displaying messages like "Game Over" or * "You won" (read from a properties file). * * @author Matthew Barbano * */ public abstract class Transi...
28.012987
93
0.779323
f723da4810ff06c8f396e20d988efe8b46fd3994
568
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; public interface WebDetectionParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetectionParams)...
29.894737
99
0.746479
dbe600a3f1b0077d38cb50254265d75d27ef7b50
2,210
package com.arrow.pegasus.dashboard.data; import org.hibernate.validator.constraints.NotBlank; import org.springframework.data.mongodb.core.mapping.Document; import com.arrow.pegasus.CoreConstant; import com.arrow.pegasus.data.AuditableDocumentAbstract; /** * Defines widget configuration. Created by dantonov on 27....
20.275229
72
0.754299
6e45af1d0737a8f8afe40eb17a31620168f92f39
1,446
package pl.solr; import java.io.IOException; import org.apache.solr.handler.component.ResponseBuilder; import org.apache.solr.handler.component.SearchComponent; import org.apache.solr.request.UnInvertedField; import org.apache.solr.search.SolrIndexSearcher; public class ExampleSearchComponent extends Search...
27.283019
97
0.62379
dd5d171810be12d783fbf8e79cc1289f2926eb67
766
package github.banana.demo; /** * Java程序入口就是由JVM启动main线程 * * main线程又可以启动其它线程 * * 当所有线程都运行结束时, JVM退出进程结束 * * 有一种线程的目的就是无限循环, 比如定时任务 * * 如果某个线程不结束, JVM线程就无法结束 * * 守护线程负责结束这类线程 * * 守护线程是为其它线程服务的线程 * * 所有非守护线程都结束完毕后, 虚拟机退出 * * 守护线程的特点是不能持有资源, 因为虚拟机退出后, 无法再释放资源等操作 * * 创建线程对象后立即调用setDaemon(true)即...
17.022222
53
0.588773
1f3323856254f75e96a6f70f6a3016764fe5e76f
840
package com.app.framework.jni; import android.content.Context; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.pm.Signature; /** * Created by LW on 2017/3/13. */ public class AppUtil { /** * 获取签名信息 * @param context * @return */ pu...
24.705882
81
0.617857
d0028f75a2217020a58be23e707084323d4c539d
5,948
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty 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.or...
32.861878
82
0.613147
054cecdb357ff4bdd9118e2c438e905e9998874b
1,356
package controllers; import com.alibaba.fastjson.JSONArray; import models.User; import play.cache.Cache; import play.data.DynamicForm; import play.data.Form; import play.mvc.Controller; import play.mvc.Result; import util.ConfigUtil; import util.MD5Util; import util.ObjectUtil; import util.UUIDUtil; import java.util....
28.25
82
0.651917
87d0b310d3f63a395a3804c4c8c8a1715fa125f5
3,528
package slimeknights.tconstruct.tools.item.broad; import net.minecraft.block.BlockState; import net.minecraft.entity.Entity; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.item.ArmorStandEntity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; import net.mine...
50.4
198
0.757653
f8d476f35248b179f2e854375435ef97456c1e5c
14,048
package com.wizzardo.servlet; import com.wizzardo.http.MultiValue; import com.wizzardo.http.mapping.Path; import com.wizzardo.http.request.MultiPartEntry; import com.wizzardo.http.request.Request; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.security.Principal; import java.text.P...
26.257944
156
0.632474
32581aa577457cf466e82ea64aeffd925fb5b44c
580
package com.app.groupprojectapplication.service; import com.app.groupprojectapplication.domain.visaStatusManagement.VisaStatusInfo; import org.springframework.web.multipart.MultipartFile; import java.util.List; import java.util.Map; public interface IVisaStatusService { List<VisaStatusInfo> getVisaInfoList(); ...
36.25
113
0.806897
40f69869e016f474abba4aeb9ee21fae66e20b3e
1,185
package com.yangyuan.wififileshareNio.reciver; import android.content.Context; import android.content.Intent; import android.net.wifi.WifiManager; import com.yangyuan.wififileshareNio.Base.BaseReciver; /*** * WIFI状态改变时系统发出此广播,wiif状态包括以下几种 * WIFI_STATE_DISABLING * WIFI_STATE_DISABLED * WIFI_STATE_ENABLING * WI...
22.788462
97
0.807595
34dd8205529acc859a43c1676f8a773a3ef28538
1,070
package net.codingarea.challenges.plugin.challenges.implementation.setting; import net.codingarea.challenges.plugin.challenges.type.Setting; import net.codingarea.challenges.plugin.language.Message; import net.codingarea.challenges.plugin.management.menu.MenuType; import net.codingarea.challenges.plugin.utils.item.Ite...
28.157895
89
0.792523
74c8a551d367e388e0b02a8f97cfe9fcff19a759
1,811
package org.shboland.api.resource; import javax.ws.rs.BeanParam; import org.shboland.domain.entities.JsonSearchResult; import org.shboland.domain.entities.JsonShopSearchCriteria; import java.net.URISyntaxException; import org.shboland.domain.entities.JsonShop; import org.springframework.web.bind.annotation.RequestBody...
45.275
118
0.771397
3344cb1362a79b12c07ceb3578615c194d5e9ba0
4,333
package com.lazerycode.jmeter.configuration; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; public class JMeterProcessJVMSettingsTest { private static final String JAVA_AWT_HEADLESS_TRUE = "-Djava.awt.headless=true"; @Test public void validateDefaultJVMSettings() { ...
43.33
101
0.754443
3178a52b349d95cdee407dbf8bdfcee2f7f0f545
5,358
/** * Copyright (c) 2014-2015, jcabi.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: 1) Redistributions of source code must retain the above * copyright notice, this list of condition...
32.670732
73
0.608436
285de21bf9a9cacad184b35b0b612eb910d92fe5
631
package com.matt.forgehax.util.typeconverter; import com.matt.forgehax.util.typeconverter.types.*; /** Created on 3/23/2017 by fr1kin */ public interface TypeConverters { TypeConverter<Boolean> BOOLEAN = new BooleanType(); TypeConverter<Byte> BYTE = new ByteType(); TypeConverter<Character> CHARACTER = new Chara...
37.117647
59
0.751189
9427c298db88947a1759cc0784f5980698a8c57a
8,607
package com.mahatech.flutter_pax_printer_utility; import android.content.Context; import android.graphics.Bitmap; import android.util.Log; import android.widget.Toast; import com.pax.dal.IDAL; import com.pax.dal.IPrinter; import com.pax.dal.entity.EFontTypeAscii; import com.pax.dal.entity.EFontTypeExtCode; import com...
29.885417
135
0.50517
d8bcd0c9ba6b1c809ed764f906572c67aaf82dcb
1,917
/******************************************************************************* * Licensed Materials - Property of IBM * (c) Copyright IBM Corporation 2017. All Rights Reserved. * * Note to U.S. Government Users Restricted Rights: Use, * duplication or disclosure restricted by GSA ADP Schedule * Contract with I...
31.42623
86
0.600417
1e0e32695f95f67c0d9ff94b01e8624c69cec482
841
package com.github.jarlehansen.valueproperties; public class ValueProperty { private String key; private String defaultValue; public ValueProperty(String annotationValue) { populateProperties(annotationValue); } private void populateProperties(String annotationValue) { annotationV...
27.129032
64
0.627824
8618465b689e5f39d26f480595b392fad0789529
414
package com.comaiu.daniyar.comalatoomobile.ui.news; import com.comaiu.daniyar.comalatoomobile.data.entity.NewsModel; import com.comaiu.daniyar.comalatoomobile.ui.LifeCycle; import java.util.ArrayList; public interface NewsContract { interface View{ void updateNewsList(ArrayList<NewsModel> newsModels); ...
20.7
64
0.751208
df3bb94f4612b0b80ddcb90106fd41bac1caff9e
883
package faceduck.custom.util; import faceduck.commands.BreedCommand; import faceduck.commands.EatCommand; import faceduck.commands.MoveCommand; import faceduck.commands.WaitCommand; import faceduck.skeleton.interfaces.Command; import faceduck.skeleton.util.Direction; public enum Action { BREED(0), EAT(1), MOVE(2)...
25.228571
45
0.595696
6ba7bb582268a5c235a61451934ea224a17f4249
875
package com.javapatterns.observerawt.mouse2; import java.awt.Frame; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; public class ConcreteSubject extends Frame { public ConcreteSubject() { } public static void main(String[] argv) { ConcreteSubject s = new ConcreteSubject(); ...
19.444444
47
0.648
65287f6e8cd5d3a785221e38a1b95649dc3295d6
229
package POO; public class MoldePatinete { String cor; String tipo; boolean estado; public void andar() { System.out.println("Em movimento..."); } public void parar() { System.out.println("Parado"); } }
10.904762
40
0.633188
2f8de7ce7f24db41384e10b56a0d26746ea79db8
3,625
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.subsystems; import edu.wpi.first.networktables.NetworkTable; import edu.wpi.first.networktables.Netwo...
27.255639
110
0.679724
a97756d1fe1b19ea051117a6066b8506e0db7c1e
3,027
package uk.ac.ebi.ddi.task.ddibaselinegenxml; import org.apache.commons.io.FilenameUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import ...
39.311688
104
0.740337
c96754f9b67abbb2b1c618624c8990408b2db853
5,319
/* * Copyright (c) 2021 FabricMC * * 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...
36.9375
141
0.73134
bf9d4faf28ac445ca8421b1a710837f698529c67
2,711
package com.codepath.fbu_instagram.ui; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentTransaction; import android.content...
38.728571
92
0.719661
0cb608f5e18a3e21370cb67991aff9c7cc99550a
137,830
/** * 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...
39.05639
149
0.709998
ed315d3a5e68a7477fc0055d8571412fba908eaa
5,398
package com.k4ch0w.wayback_machine; import net.miginfocom.swing.MigLayout; import org.jdesktop.swingx.VerticalLayout; import org.json.JSONArray; import javax.swing.*; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOEx...
33.116564
121
0.59133
0afef024eaef840c8ae936ad0e764d59d675492b
1,217
package skeleton.xml; import static org.junit.Assert.assertEquals; import java.io.IOException; import java.io.StringWriter; import javax.xml.transform.stream.StreamResult; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.sp...
27.659091
136
0.753492
017a59018530f1fec5a2f2c032981d26f1679d83
1,000
package com.dbr.generator.basic.model.project; import com.dbr.generator.basic.enumeration.Template; import com.dbr.generator.basic.model.ProcessModel; import lombok.Data; @Data public class JavaProjectModel extends ProjectModel { private String springBootArchetypeArtifactId = "springboottemplate-archetype"; ...
32.258065
138
0.745
2a094e42a251cc051f64a31b8d3390980cc9bcea
1,834
/* * JasperReports - Free Java Reporting Library. * Copyright (C) 2001 - 2014 TIBCO Software Inc. All rights reserved. * http://www.jaspersoft.com * * Unless you have purchased a commercial license agreement from Jaspersoft, * the following license terms apply: * * This program is part of JasperReports. * * J...
24.131579
78
0.721919
7518f14f43e4c4932091b2400761fbcba225b73a
15,399
package org.pengfei.Lesson13_Common_Data_Structure.L13_S4_Queues; import org.pengfei.Lesson13_Common_Data_Structure.L13_S4_Queues.source.ArrayBasedQueue; import org.pengfei.Lesson13_Common_Data_Structure.L13_S4_Queues.source.BasicQueueExample; import org.pengfei.Lesson13_Common_Data_Structure.L13_S4_Queues.source.List...
60.152344
121
0.644068
c97dc742a1497aadc64b51ea4eb136e3bcd96cc5
4,722
/** * Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior * University * 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 * U...
30.862745
77
0.610335
b51d0a5b897ff2f1b1fccccc942637420d54a784
2,353
package com.github.bottomlessarchive.loa.vault.service.backend.service; import com.github.bottomlessarchive.loa.vault.service.backend.domain.VaultPersistenceException; import com.github.bottomlessarchive.loa.compression.service.provider.CompressionServiceProvider; import com.github.bottomlessarchive.loa.document.servi...
43.574074
125
0.747981
4e7fe7c9cd8eb60ad2a381d9747af0025cf8fbc1
1,068
package leetcode.first; import java.util.Arrays; import java.util.LinkedList; /** * 滑动窗口最大值 * * @since 2020-1-23 */ public class Code_239_SlidingWindowMaximum { static int[] maxSlidingWindow(int[] nums, int k) { if (nums == null || nums.length < 2) return nums; int[] res = new int[nums.length ...
29.666667
102
0.508427
0c9c7f68bf26339b5310892359cd5595c411d1b7
13,043
package com.provectus.oddplatform.mapper; import com.provectus.oddplatform.api.contract.model.DataEntity; import com.provectus.oddplatform.api.contract.model.DataEntityDetails; import com.provectus.oddplatform.api.contract.model.DataEntityLineage; import com.provectus.oddplatform.api.contract.model.DataEntityLineageEd...
43.768456
119
0.677835
e6c2446006bfd068290f7ef44cdf394b13a94cc3
2,546
/* * 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 ...
33.5
119
0.721917
a0cb0b5e52f21adc211a798523269ba4cf43cf93
1,078
package com.hoping.owl.flymock.util; import java.util.List; import java.util.Random; /** * Created by houping wang on 2019/3/15 * * @author houping wang */ public class ArrayUtil { public static <T> T pick(List<T> list) { if (isEmpty(list)) { return null; } return list.get...
23.955556
80
0.54731
3f48b508ea579c2532e02c40a8f712ddb9141dcc
735
package org.yejt.composition; /** * Created by Yejt on 2017/8/23 0023. */ public abstract class Equipment { private String name; protected Equipment(String name) { this.name = name; } public String getName() { return this.name; } public abstract double getPower(); ...
18.846154
65
0.631293
de675851f73e61912c888aafed057e834d97ed98
6,583
/* * Copyright 2022 Crown Copyright * * 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...
35.583784
121
0.645298
ac04d68066606e00c976aa41c86b377813651104
380
package com.apsh.legacy.publisher; import com.apsh.legacy.service.OrderService; import org.springframework.beans.factory.annotation.Value; import javax.xml.ws.Endpoint; public class OrderPublisher implements Publisher { private static final String url = "http://0.0.0.0:9001/order"; public void publish() { ...
22.352941
66
0.736842
52c289b36116d042bd2791ff3438d982203e3678
184
package roxana.zamfir.sfgpetclinic.fauxspring; public interface BindingResult { void rejectValue(String lastName, String notFound, String not_found); boolean hasErrors(); }
20.444444
73
0.777174
e568294e109e1ba43b9e64e0bede672ef9aa38ad
680
package com.gorilla.gorillabook.view; import android.support.v4.app.FragmentTransaction; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.Toolbar; import android.view.View; import com.gorilla.gorillabook.R; public class MainActivity extends AppCompatActivity...
28.333333
89
0.763235
c90d45bd01c3d31554a8dd9921a6edc71a08d623
6,262
package io.github.project_software_with_opensource.utilities; import android.app.Activity; import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.preference.PreferenceManager; import android.support.annotat...
33.848649
103
0.607314
d6df4e737538e2f41cc5c1bf3ed10ae1a23669bb
820
package com.ariellopes.gestaoescolar.rest.controller.domain.dto; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.List; import com.ariellopes.gestaoescolar.persistence.entity.DisciplinaNotaEntity; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.AllArg...
21.578947
76
0.804878
08a96bc82cb4165aa8f761282cdbea7a0068cacc
10,162
/* * Copyright (C) 2016 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...
44.964602
94
0.679197
d5ba43a529a42c42ae962f25ebf76411d3bc6bd0
373
package com.example.group_hanu_spring2022.repository; import com.example.group_hanu_spring2022.model.Role; import com.example.group_hanu_spring2022.model.RoleName; import org.springframework.data.jpa.repository.JpaRepository; import java.util.Optional; public interface RoleRepository extends JpaRepository<Role, Long...
28.692308
67
0.83378
0d54fda2080d004f1431b3a4672a39c695b19555
16,199
// Copyright 2021 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 in writi...
36.077951
149
0.655102
eb898419b72ba35ae27fdd17d56807b42a14acec
216
package com.bdeb1.unfaithful.util; public class Dimension { public final int width; public final int height; public Dimension(int w, int h) { width = w; height = h; } }
16.615385
37
0.574074
b9c8932bdd058b29454807d7324d84cdd25f5062
1,276
package com.lcsays.lcmall.api.models.evertabs; import com.lcsays.lcmall.db.model.WxEvertabsTab; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.util.ArrayList; import java.util.List; /** * @Author: lichuang * @Date: 2022/2/17 21:22 */ @Data @AllArgsConstructor @N...
26.583333
81
0.626176
fc0c09184ad23d1d44db7a9b4ac3592d3aa2f840
240
package com.aurora.recommender; public class RecommendRestaurant extends RecommendItem{ public RecommendRestaurant(){ super(); model = getJDBCDataModel("RESTAURANT_PREFERENCE", "USERID", "ITEMID", "RATING"); } }
20
62
0.695833
1438243fc6f1314d737bbad4fc1af5d594f1986c
1,911
package org.firstinspires.ftc.teamcode; import android.os.SystemClock; import com.qualcomm.robotcore.eventloop.opmode.Autonomous; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.DcMotorSimple; @Autonomous public class...
29.859375
69
0.636316
63de3ae7b53de9791365ef46bbc53e69f23b3f00
4,000
/* * Copyright (c) 2017 Otávio Santana and others * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distribution. * The Eclipse Public License is available at http://ww...
27.027027
121
0.63775
531cb89eac4f32c28cdfe365ff0bcf25f921c157
2,608
/* * Copyright 2020 Paul Schaub. * * 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...
39.515152
126
0.716258
644e0bb5e8021a1250d8c372402c0d21e45abdcf
535
package android.support.p000v4.content.p036a; import android.support.p000v4.content.p036a.C0507d.C0508a; /* renamed from: android.support.v4.content.a.c */ /* compiled from: ResourcesCompat */ class C0506c implements Runnable { /* renamed from: a */ final /* synthetic */ int f1658a; /* renamed from: b *...
22.291667
58
0.637383
8d4fc8c6e7b0c0996000f7974cd9d2732aaec317
155
package com.bbva.kyof.vega.exception; /** * Created by cnebrera on 01/04/16. */ public enum LLZExceptionCode { UNDEFINED, NO_AVAILABLE_PORTS; }
14.090909
37
0.703226
ac71e25b270e9834f08d2313c056505178be8a7f
805
package io.mattw.youtube.commentsuite.util; import java.awt.*; import java.net.URL; /** * Attempts to open URLs on the system. * * @author mattwright324 */ public class BrowserUtil { public BrowserUtil() { } public void open(URL url) { open(url.toString()); } public void open(String...
22.361111
58
0.525466
f227026327101065385d7d4737e251de052ec8f0
2,188
package bq_gs.core; import org.apache.logging.log4j.Logger; import bq_gs.core.proxies.CommonProxy; import net.minecraftforge.fml.common.Loader; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge....
32.176471
122
0.713894
3020dd74ab85a25f1d422b067b3a5755cec123cd
2,008
/* * Copyright 2009-2018 University of Hildesheim, Software Systems Engineering * * 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...
38.615385
108
0.711155
a5af2fcda1144d98dc2f2d914e9d18cb949b2dfa
807
//import com.xucg.model.WxPayTransferDibModel; //import com.xucg.pay.WxPayTransferDib; // ///** // * 转账测试 // * @author xucg // * @since 2018/2/26 // */ //public class WxPayTransferDibTest { // public static void main(String[] args) throws Exception { // // WxPayTransferDibModel model = new WxPayTransferDibMod...
33.625
138
0.656753
f3af1fb9a680e1b8b8629e9c741337fba8f0ea67
849
package com.lxf.eye.show; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.amqp.core.AmqpTemplate; import org.springframework.boot.SpringBootConfiguration; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import...
28.3
79
0.798587
7c0e38159c343b836b18e72d781e3beea3fecf68
7,998
package io.quarkus.devtools.codestarts; import static org.assertj.core.api.Assertions.assertThat; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.ut...
45.186441
126
0.698175
c6880e072c1da840601a511bcf2b91c4fba337bc
10,497
package de.polocloud.modules.smartproxy.moduleside; import de.polocloud.api.config.master.MasterConfig; import de.polocloud.api.logger.PoloLogger; import de.polocloud.api.PoloCloudAPI; import de.polocloud.api.gameserver.base.IGameServer; import de.polocloud.api.messaging.IMessageChannel; import de.polocloud.api.module...
39.022305
183
0.619701
0d85de6219d00f7db5fb1a1da62fba6afbe26b8b
1,199
package com.openxsl.elasticjob; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.dangdang.ddframe.job.lite.api.strategy.JobInstance; import com.dangdang.ddframe.job.lite.api.strategy.impl.AverageAllocat...
29.243902
94
0.756464
d53bccf3efc0e35c2ef10420b441d5d8ab8f5ab7
2,565
package science.zxc.walkin.activity; import android.content.Intent; import android.graphics.Rect; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; impo...
34.2
108
0.694347
b9b3d1e5363ed6a8979b842b89639738911cf163
4,532
package com.github.riccardove.easyjasub; /* * #%L * easyjasub * %% * Copyright (C) 2014 Riccardo Vestrini * %% * 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.ap...
31.915493
169
0.649162
7ad9423c21e1372f2ba6790427e5d8079d3b1659
2,259
/* ******************************************************************* * Copyright (c) 1999-2001 Xerox Corporation, * 2002 Palo Alto Research Center, Incorporated (PARC). * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public...
30.945205
129
0.671093
b069602d8d10343d720ccb7d563899975ab85da2
9,334
package org.hl7.fhir.dstu2016may.model.codesystems; /* Copyright (c) 2011+, HL7, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must reta...
36.03861
86
0.657596
1d0555e0ceea3a776ea3f72f881745a8d20a6a54
4,059
/** * %SVN.HEADER% */ package net.sf.javaml.core; import net.sf.javaml.core.Dataset; import net.sf.javaml.core.DefaultDataset; import net.sf.javaml.core.DenseInstance; import net.sf.javaml.core.Instance; import net.sf.javaml.distance.EuclideanDistance; import net.sf.javaml.distance.NormalizedEuclideanSimilarity; imp...
32.733871
70
0.683173
637d98ad868f0da5eb9dce2e5ace1a7bded70538
3,708
package net.minecraft.util; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.ByteToMessageDecoder; import io.netty.handler.codec.CorruptedFrameException; import io.netty.handler.codec.MessageToByteEncoder; import net.minecraft...
28.305344
116
0.708738
e9ed88411c25e053c30f57e2265f37c21e507586
925
package javafxmvc.model.domain; import java.io.Serializable; public class ItensProduto implements Serializable{ private OrdemServico ordemservico; private Produto produto; private int quantidade; private double preco; public ItensProduto(){ } public OrdemServico getOrdemservico(...
18.877551
60
0.64
59ea6fc01eeb92afd08339ac39ed0ba412143069
9,626
/* * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/util/StringParser.java,v 1.2 2001/07/22 20:25:14 pier Exp $ * $Revision: 1.2 $ * $Date: 2001/07/22 20:25:14 $ * * ==================================================================== * * The Apache Software License, Version 1.1 * ...
25.946092
139
0.65614
77eaef7b7fb30f5f5f34bd928f3212d2ae6a6ca2
13,500
/* * XML Type: IVL_INT * Namespace: urn:hl7-org:v3 * Java type: uk.nhs.connect.iucds.cda.ucr.IVLINT * * Automatically generated - do not modify. */ package uk.nhs.connect.iucds.cda.ucr.impl; /** * An XML IVL_INT(@urn:hl7-org:v3). * * This is a complex type. */ public class IVLINTImpl extends uk.nhs.connect.i...
30.751708
134
0.514667
e162dbc0c6b40226fd8bbb2775b7e894c895210f
764
package it.isislab.streamingkway.graphpartitionator; import org.graphstream.graph.Graph; import org.graphstream.graph.Node; import it.isislab.streamingkway.partitions.PartitionMap; public interface GraphPartitionator { public final static String PARTITION_ATTRIBUTE = "node.partition"; public static final Object ...
38.2
150
0.776178
cc53e0e045805de8e7faa82191f3662f7db71865
3,710
package com.redhat.service.smartevents.infra.exceptions.mappers; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.Optional; import java.util.function.Function; import javax.inject.Inject; import javax.validation.ConstraintViolation; import javax.validation.ConstraintViolat...
41.685393
126
0.732615