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
70b619bd65b2d3b8ad24dc95bf7fcfb44723e92d
697
package se.vidstedt.raytrace; class ImageMap { enum ImageMapType { RECTANGULAR, SPHERICAL } private final ImageMapType type; private final int width; private final int height; private final Vec3f[] pixels; public ImageMap(ImageMapType type, int width, int height, Vec3f[] pixels) { this...
21.121212
79
0.604017
01782e59e5bd5b45afbd8841a23dbedf5800f78f
1,079
package es.com.disastercode.examplesspringboot.stopwatch; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInfo; import org.springframework....
20.358491
61
0.751622
d55987dd20eb7243a75ee5d2890d2c069cc5c5a0
6,474
package com.github.currencies.holder; import java.io.IOException; import java.net.UnknownHostException; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.apache.spark.api.java.function.FlatMapFunction; import org.apache.spark.api.java.funct...
31.580488
142
0.700958
d934057e68adcdb5853fb9322c677e7f2d0a9c64
280
package org.jetbrains.plugins.ruby.ruby.codeInsight.usages; import javax.annotation.Nullable; import com.intellij.psi.PsiType; /** * @author: oleg * @date: Jun 27, 2008 */ public interface JavaTypedAccess extends ImplicitTypeAccess { @Nullable public PsiType getType(); }
17.5
59
0.760714
d52bc85523107ff19de43872bc31ec2a8121fdca
16,275
/* * Copyright 2012 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 app...
42.054264
120
0.723441
5d889e3085a93a25d2eed925c8b404368c1b3a32
378
package com.github.IamBusy.leetcode._026; public class Solution { public int removeDuplicates(int[] nums) { int lo=0, hi=1,uniq=1; while (hi<nums.length) { if (nums[lo] == nums[hi]) { hi++; } else { nums[++lo] = nums[hi++]; uni...
22.235294
45
0.431217
22f90122151463b6c545ac6b039897b092cab98e
12,485
package org.contentmine.svg2xml.paths; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import org.apache.log4j.Logger; import org.contentmine.eucl.euclid.Real2Range; import org.co...
33.834688
128
0.69195
96b8a0a9947670cfe564baec50806204700d6ead
686
package cz.tacr.elza.repository; import cz.tacr.elza.domain.RulArrangementExtension; import cz.tacr.elza.domain.RulExtensionRule; import java.util.List; /** * Repository pro {@link RulExtensionRule} - Custom. * * @since 23.10.2017 */ public interface ExtensionRuleRepositoryCustom { /** * Vyhledá pravi...
27.44
135
0.752187
05b39e2bd4dbb5d9bc4f254b08987f3e95a2d80f
1,049
/*L * Copyright Moxie Informatics. * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/calims/LICENSE.txt for details. */ /** * */ package gov.nih.nci.calims2.ui.report.report; import static org.junit.Assert.assertNotNull; import org.junit.Test; import gov.nih.nci.calims...
22.804348
82
0.722593
9ba5e3781388f48616f7a36168fbd5bf2e7fa30f
942
package com.nth.frostedpanel; import javafx.scene.Scene; import javafx.scene.layout.Pane; import javafx.scene.media.Media; import javafx.scene.media.MediaPlayer; import javafx.scene.media.MediaView; /** * * Created by HAU TRUNG NGUYEN <haunt.hcm2015@gmail.com> on Nov 16, 2021 */ public class Dash extends Pane { ...
26.914286
80
0.693206
dc247307d2285a8cd614aca88c10ca6f0f1937f3
1,488
package br.com.fiap.entity; import java.io.Serializable; import java.util.HashSet; import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; ...
22.208955
61
0.748656
2d99e55b4a33f2d50bce3fd7a2515cbf351296b9
261
package duhuafei.function.active; /** sigmoid激活函数 * Created by Duhuafei on 11/09/2019. */ public class Sigmoid { public static double eval(Double x){ if (null == x){ x = 0.0; } return 1.0 / (1 + Math.exp(-x)); } }
18.642857
40
0.54023
b0782d4c9c265325699e7ef01613f1340d74daf6
634
package com.weisong.test.comm.impl.hazelcast; import com.weisong.test.comm.CBaseDriverPerformanceTest; import com.weisong.test.comm.CComponentType; import com.weisong.test.comm.impl.CDefaultDriver; import com.weisong.test.comm.impl.CHazelcastHub; public class CHazelcastDriverPerformanceTest extends CBaseDriverPerform...
30.190476
81
0.790221
2225479619c79b7a09921d83d0ab3c8bea1d405f
2,097
package org.roussev.http4e.httpclient.ui.actions; import org.eclipse.jface.action.Action; import org.eclipse.jface.action.ActionContributionItem; import org.eclipse.jface.action.IMenuCreator; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Menu; import org.eclipse.ui.part.ViewPart; pub...
24.103448
72
0.631855
94226db2b1714154fc6222fee8796918d7ba7f44
1,397
package io.deephaven.replicators; import java.io.IOException; import java.util.Collections; import static io.deephaven.replication.ReplicatePrimitiveCode.*; public class ReplicateChunkFilters { public static void main(String[] args) throws IOException { charToShortAndByte( "engine/table/s...
48.172414
122
0.72942
e095093c6c2c2075b54f8206f7b8e8958b44e5c9
2,372
/* * Copyright 2019-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
25.234043
75
0.741568
c87e2500bb691667bdbccb856dbca515e00c7d6c
95,999
/* * Copyright (C) 2017 Alberto Irurueta Carro (alberto@irurueta.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 * * Unles...
43.126235
113
0.634892
3e1f082f9206fefe1244d9f969097b69aee975dd
1,407
package automation.pages; import static org.openqa.selenium.support.ui.ExpectedConditions.presenceOfElementLocated; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; public class MovieAddNewPage extends InternalPage { public MovieAddNewPage(PageManager...
23.065574
89
0.732054
c9399f7dd1817b93666eb6b1c5381ce549764231
5,492
/* * 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 ...
30.511111
132
0.620539
8dfd9082c2078cb11853b52e1c4697725dd6ff11
1,644
/* * Licensed to Sematext Group, Inc * * See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Sematext Group, 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 Li...
31.018868
65
0.710462
97da1e38ee3a88ec827f4cd1a9a568ac1ad39907
1,445
package com.bolingcavalry; import com.bolingcavalry.service.SayHello; import io.quarkus.arc.All; import io.quarkus.arc.InjectableBean; import io.quarkus.arc.InstanceHandle; import io.quarkus.logging.Log; import io.quarkus.test.junit.QuarkusTest; import org.junit.jupiter.api.Test; import javax.enterprise.inject.Instan...
24.913793
110
0.662284
cc0b60b596a284b73fc6bccb050bd7deec2d07f4
2,339
/** * Copyright Feitian. All Rights Reserved. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applic...
31.608108
132
0.656263
522cc2a8566b1791497616ee41b25e2292ff3a5d
26,338
/** * 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 appli...
43.533884
149
0.615119
4722b9e8bf6bfbc3d243c0e482d5fe036da4f71c
6,795
package xworker.ai.neuroph; import org.neuroph.core.learning.IterativeLearning; import org.neuroph.core.learning.LearningRule; import org.neuroph.core.learning.SupervisedLearning; import org.neuroph.nnet.learning.BinaryDeltaRule; import org.neuroph.nnet.learning.DynamicBackPropagation; import org.neuroph.nnet.l...
39.505814
139
0.714054
a19096d9aa568e907d0d938f4f89e5c66d1af823
6,746
package pl.com.pwr.mysensorapp_lab4_257160; import android.Manifest; import android.content.Intent; import android.content.pm.PackageManager; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Build; import android.os.Bundle; import an...
37.270718
163
0.671806
4083779b6a6452dbecd2b34cc036b872f64ed5b4
1,257
package com.microsoft.applicationinsights.internal.heartbeat; /** * <p> * Defines the Payload class to store and send heartbeat properties and allowing to keep track of updates * to them. * </p> * * @author Dhaval Doshi */ public class HeartBeatPropertyPayload { /** * Value of payload on initializatio...
21.672414
106
0.667462
6d41cf861e446d090533922515d6f61cc194c4ba
25,660
/* * Copyright (c) 1999, 2013, 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 ...
41.056
82
0.641738
e338478476b473b9efd6e362e574fd4dd32455da
1,711
/** * 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...
42.775
95
0.745763
7157f716ecfa9c784fafad35583ff9b6339747a1
785
package tfo.junit.matcher.file; import org.hamcrest.Description; import org.jetbrains.annotations.NotNull; import java.io.File; import java.util.Arrays; final class ListHelper { private ListHelper() { // no instances. } static void appendFileList(@NotNull File[] files, @NotNull Description desc...
23.787879
89
0.561783
964ab9829aa1798a011827d6fdaeeb2697c9831b
2,580
/* * Copyright 2019 juanlarriba. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
21.322314
75
0.600388
729b6d742803585a874299e0a27f3c4559b27533
852
package no.wtw.android.dynamicspinner.view; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.FrameLayout; import no.wtw.android.dynamicspinner.R; public class DynamicItemSelectedView extends FrameLayout { private FrameLayout container; public ...
25.058824
73
0.710094
815eb2bb5a975755517f18ad52bedb75c4980ef5
1,320
/* * Copyright 2012-2017 JetBrains s.r.o * * 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 agr...
26.4
76
0.625758
873741411aec46e2db1f68d950ea1692f4a33536
8,485
package io.github.hooj0.springdata.fabric.chaincode.repository.support; import java.io.File; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import org.apache.commons.lang3.StringUtils; import org.hyperledger.fabric.sdk.ChaincodeCollectionConfiguration; import org.hyperledger.fabric.sdk.Use...
38.049327
140
0.802946
fc6b3c35a23509c763854006684315bf92510744
1,406
/******************************************************************************* * Copyright (c) 2015, 2016, 2017, 2018 Christine Karman * This project is free software: you can redistribute it and/or modify it under the terms of * the Apache License, Version 2.0. You can find a copy of the license at * http://www....
28.12
93
0.636558
074ebb370a7cb386f0ef6c504fea712c7aad46aa
11,655
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that...
25.785398
145
0.597512
0b8efb67b67d1c0566d0abf64b5fc5559dbf6d2f
1,268
package com.infodart.peerhuntr.dto.user; import java.util.Date; import java.util.Set; import org.dozer.Mapping; /** * DTO for the degree_master database table. * */ public class DegreeMasterDTO { private int degreeId; private Date createdOn; private String degreeName; private Date modi...
17.135135
48
0.679022
070aa2864eb10fa1779cee8c5db8c5f7d12b3b55
5,766
package ru.jewelline.asana4j.core.impl.auth; import org.json.JSONException; import org.json.JSONObject; import ru.jewelline.asana4j.auth.AuthenticationException; import ru.jewelline.asana4j.auth.AuthenticationProperty; import ru.jewelline.asana4j.core.impl.api.entity.common.ApiEntityResponseReceiver; import ru.jewelli...
47.262295
132
0.695283
01d82268cb81a757b50502b08daa2c76feeadfa7
179
package com.tomcat.http; public abstract class Servlet { public void doGet(Request request, Response response){} public void doPost(Request request, Response response){} }
19.888889
57
0.765363
ffc4ef533bdd916336df78624f6c9789728b4636
929
package com.twilio.calltracking.servlets; import com.twilio.calltracking.repositories.LeadSourceRepository; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; public class DashboardServlet extends WebAppServl...
30.966667
82
0.77718
f46ccc025775cc34c835c208fde93095cb59b86e
981
package microsoft; public class Solution55 { public boolean canJump(int[] nums) { int lastPos = nums.length - 1; for (int i = nums.length - 1; i >= 0; i--) { if (i + nums[i] >= lastPos) { lastPos = i; } } return lastPos == 0; } enum ...
25.153846
70
0.433231
b39a7714a539f3ce941d1c82620166405c88590f
231
package simple.universe.map; public interface ISimpleGameMap { /** * Returns a 2D boolean array representing the walkable vs. non-walkable * tiles in this Universe. * @return */ public boolean[][] retrievePath(); }
16.5
73
0.69697
8e4e5f2f156474d5a2716e64c85347adc7cceac0
928
package com.ear.core.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.core.userdetails.UsernameNotFoundException; import o...
34.37037
110
0.827586
04e763011ec6d76d6e58f00c14ec0803dd47fe70
1,264
package com.github.longkerdandy.viki.home.hap.http.handler; import static com.github.longkerdandy.viki.home.hap.http.handler.AttributesHandler.lookupNameValuePairs; import java.net.URI; import java.net.URISyntaxException; import java.nio.charset.Charset; import java.util.List; import java.util.Optional; import org.ap...
38.30303
104
0.736551
4be441811088b15cf1a88557f4f46207151f3cb3
502
package jeu; import java.io.Serializable; import java.util.ArrayList; import java.util.Random; public class Mouton extends Objets { private static final long serialVersionUID = 2934790090291592942L; /** * Constructeur du mouton, qui initialise son nom, sa description et son image */ public Mouton() {...
22.818182
80
0.677291
295f9a968a4e0167d71d28169d8798ccbacebc19
2,728
/* * Copyright (c) 2010-2015 Pivotal Software, 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/licenses/LICENSE-2.0 * * Unless req...
33.679012
93
0.738636
506d046aca757eceec34636148514ed2cd9f6cbd
158
package com.gu.toolargetool; /** * Created by Hal on 2018/10/23. */ public interface ILogger { void println(int priority, String tag, String msg); }
14.363636
55
0.683544
4dbb295bd23dece8746cfdf6feb108ac0102311c
847
// SPDX-FileCopyrightText: 2018-2019 C. Ramakrishnan / Illposed Software // SPDX-FileCopyrightText: 2021 Robin Vobruba <hoijui.quaero@gmail.com> // // SPDX-License-Identifier: BSD-3-Clause package com.illposed.osc; /** * A listener that handles <b>packets</b>. A packet can be either a bundle or a * message. * * T...
26.46875
80
0.730815
7d0cab10733ef9984ca80a0f6e7d5227bf6f7972
2,084
package pom_ios; import java.util.List; import org.openqa.selenium.support.PageFactory; import org.testng.Assert; import io.appium.java_client.AppiumDriver; import io.appium.java_client.MobileElement; import io.appium.java_client.ios.IOSDriver; import io.appium.java_client.pagefactory.AppiumFieldDecorator; import io...
31.104478
145
0.790307
f1e88e4df07173042a1197f30d98daa5293ab450
3,516
/* * Copyright 2020 the Justify authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
32.555556
113
0.691695
a1caf01e4ee83ed27c3e55aca8a100b5cf630b63
773
package org.jf.dexlib2.immutable.value; import org.jf.dexlib2.base.value.BaseFloatEncodedValue; import org.jf.dexlib2.iface.value.FloatEncodedValue; public class ImmutableFloatEncodedValue extends BaseFloatEncodedValue implements ImmutableEncodedValue { protected final float value; public ImmutableFloatEnc...
28.62963
104
0.747736
5f561c461abe0eec9e1c6e42db0b70f1a743bbd6
488
package com.learn.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.repository.NoRepositoryBean; import javax.persistence.EntityManager; import java.io.Serializable; @NoRepositoryBean public interface CustomJpaRepository<T, ID extends Serializable> extends JpaR...
25.684211
95
0.80123
d7eb546d0cb8882a131fe8a071214bf6511c06d4
93
class TempBuilder { void createParameters() { map.put("h", new C(5, 50)); } }
18.6
35
0.537634
601eb36d05f8a4a0a00901d8a889fbe39263b01f
2,261
package com.azuriom.azlink.common; import com.azuriom.azlink.common.utils.Hash; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public class HashTest { private static final String VALUE_1 = "H5vBfLcF3vqaCo8"; private static final String VALUE_2 = "YCJLMo7uX5t7...
42.660377
158
0.776205
548e3f9e4b181e571057fbb57fe75c2d580e9673
561
package by.vit.myblog.validation; import javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.*; @Documented @Constraint(validatedBy = PasswordValidator.class) @Target( { ElementType.METHOD, ElementType.FIELD }) @Retention(RetentionPolicy.RUNTIME) public @interface Password { ...
26.714286
114
0.730838
ab6179e344f213154adc78143716af12010e639f
857
package com.givejeong.todo.dto.board; import com.givejeong.todo.domain.Comment; import lombok.*; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; @Data @AllArgsConstructor @NoArgsConstructor @Builder public class CommentDto { private String writer; private String comment; privat...
29.551724
110
0.732789
773a4c5db44851706bac2841e26dd7b532a3036d
376
package com.qz.djmall.sale.dao; import com.qz.djmall.sale.entity.SmsSeckillSessionEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 秒杀活动场次 * * @author lby * @email lby@qz.com * @date 2020-12-01 17:00:56 */ @Mapper public interface SmsSeckillSessi...
20.888889
83
0.765957
6f30b3cc69ed32da81a01552a134b945238558ea
7,682
/* * Copyright © 2022 Cask Data, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
48.314465
118
0.764905
a30a8bf06cfd2d1ca404285550286e5edb3b2194
5,217
package edu.graitdm.ednajobcontroller.controller.deployment; import edu.graitdm.ednajobcontroller.controller.ednajob.EdnaJob; import edu.graitdm.ednajobcontroller.controller.ednajob.EdnaJobFactory; import io.fabric8.kubernetes.api.model.apiextensions.CustomResourceDefinition; import io.fabric8.kubernetes.api.model.a...
43.115702
137
0.64999
6e04e02fc1f14bc0286dcc045cfacac50537f722
774
package com.teste.tecnico2.teste2.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; ...
28.666667
79
0.79199
27d32904f63ee9db700a6a71c75a737ee017ea7c
1,143
package cn.xxt.AndroidBlog.jichu35; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.MotionEvent; import android.view.View; import android.widget.Toast; import cn.xxt.recyclerviewexercise.R; public class MyButtonActivity extends AppCompatActivity { @Override pro...
29.307692
84
0.664917
5d13529cd6333f9372404711038d66bcdda31cde
3,659
package com.altimetrik.interview.service.impl; import java.util.ArrayList; import java.util.Optional; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.altimetrik.interview.handle...
40.655556
105
0.75977
9470d4ffaba66cb14034b2006cd8e5aeb08b6c29
1,477
package com.pratica.livro.comoprogramar.c03.exersices.ex3_16; public class HeartRates { private String name; private String lastName; private int month; private int day; private int year; public HeartRates(String name, String lastName, int month, int day, int year) { this.name = name;...
19.959459
83
0.553825
467cb7f72095478731d7c3e5a1e6dc4c4c3c5fb3
68
package thinking.in.java.classloader; public class Application { }
13.6
37
0.794118
cbfe16606db1bf068bd81fba3715aa70ca7526c8
5,072
package me.mingshan.tool.shell.ui.panel; import javax.swing.*; import java.awt.*; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.util.ArrayList; public class SettingPanel extends SidePanel { private static JPanel panelBasicOption; private static JPanel panelAdvanceOption; pr...
26.416667
74
0.688683
d6bca85dcab729d6ac12a8731a8b72e611396f82
234
package threaddemo; public class QiangShouji implements Runnable { private static Info a=new Info(); @Override public void run() { for(int i=0;i<1000;i++){ a.minusCount(); } } }
19.5
47
0.547009
43bac3757ae652e5a5f1509fb73b1ba4e562ad9d
478
class L4_17{ public static void main(String[] args){ int[] teste = {1,2,3,4,5}; int[] array = inverte(teste); System.out.print("O arranjo invertido e = "); for(int i = 0; i <array.length; i++){ System.out.print(array[i] + " "); } System.out.println(); } static int[] inverte(int[] n){...
19.916667
48
0.516736
9f4bc18ab605aaa8924a7f6314da5b933c03a738
3,551
package by.kraskovski.pms.domain.service.integration; import by.kraskovski.pms.application.security.model.JwtAuthenticationFactory; import by.kraskovski.pms.domain.model.Authority; import by.kraskovski.pms.domain.model.Stock; import by.kraskovski.pms.domain.model.Store; import by.kraskovski.pms.domain.model.User; impo...
35.51
102
0.753872
5d9798bcb04e0ee8061258c106d3329de715802d
2,669
import java.awt.BorderLayout; import java.awt.Graphics; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.awt.image.WritableRaster; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JSlider; import javax.swing.event.*; public class Histogram extends JFrame{ BufferedImag...
23.619469
88
0.675159
288fedb1f5c809f1b5f00c1cd41f046982b4836d
2,354
package com.apress.springrecipes.bank.web; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.forwardedUrl; import s...
39.898305
104
0.754885
42727242ef2b620dd6a1b00f4c852f69e0ba47d8
2,188
package com.es.manager.service; import com.es.manager.domain.dto.StudentDTO; import com.es.manager.domain.dto.StudentDTOSuper; import com.es.manager.domain.vo.StudentVO; import java.util.List; /** * @author: fudy * @date: 2021/4/10 下午 03:58 * @Decription: 学生信息接口 **/ public interface ManagerStudentService { /...
19.026087
96
0.593236
0a9a3b12a96cf4f00fd6ae92c3ad41ff7f53ad08
275
package com.github.dabasan.sample.joglf.g3.miscellaneous; public class MiscellaneousMain { public static void main(String[] args) { new MiscellaneousMain(); } public MiscellaneousMain() { var window = new GetMaxNumberOfUniformLocations(); window.SetTitle(""); } }
22.916667
57
0.749091
6bac3df252a686704d866dbedc04f7b2d1e1b093
46,472
package org.apache.commons.p029io; import android.support.p002v4.media.session.PlaybackStateCompat; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.ByteArrayInputStream; import java.io.CharArrayWriter; import java.io....
37.118211
181
0.606171
6929ee19ff7970b92130f581c93c0b35a0fe3135
157
public class Circle{ double area; double radius; public void circleArea(double radius){ double r =radius; area = 3.14 *r*r; System.out.println(area); } }
13.083333
38
0.719745
1f54fd62c4cc3412590aa498ec918828f78a0305
4,687
/* * 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 ...
35.507576
119
0.654576
3e4e4fafbc5d3c0e516d3cd65061aa9041870e2a
2,754
package com.blockchain.wallet.api.request; import com.blockchain.wallet.api.WalletApiConstants; import com.blockchain.wallet.api.response.Response; import com.blockchain.wallet.api.response.ResponseMessage; import com.blockchain.wallet.api.response.ResponseMessageInterface; import com.fasterxml.jackson.annotation.Json...
26.480769
91
0.673929
26e820044d676ac34dea5546637e9b21e655c955
3,684
/** * 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...
43.341176
98
0.708469
93524213292b2a90593373477a7c429201c46f43
1,396
package BuscaEClassificacao; public class Colecao { private int valores[] = {11, 12, 23, 27, 33, 43, 56, 76, 87, 96}; public int buscaSequencial(int val) { int iteracoes = 0; int pos; for (pos = 0; pos < valores.length; pos++) { if (val == valores[pos]) { S...
29.702128
89
0.467049
e5732e123ac37ffaa0c2fa3adeea86c84fdba783
8,035
/* * Copyright 2004,2013 The Apache Software Foundation. * * 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.772189
74
0.674051
7077e0ab688934aa2bb1be3e7705e889242c3392
6,943
package com.github.bkhezry.demomapdrawingtools.cal.ui.dialogs; import android.app.Activity; import android.content.Intent; import android.graphics.drawable.ColorDrawable; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.DialogFragment; import android.support.v7.widget...
40.841176
123
0.699698
dbf0e65cf4521381a0b14d817e59e134b3449be6
22,279
/* * Copyright 2018 VetsEZ Inc, Sagebits 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 a...
42.43619
171
0.734099
80c1b5b25e51ead8ca76971143c7ee964a4bf82f
178
// "Replace with Comparator chain" "false" import java.util.*; public class Main { Comparator<String> cmp = (a, b) -> <caret>{ int res = a.substring(1).compareTo() } }
17.8
45
0.629213
0fa4b7b0b15b80def98a5099a23cf6df3796d292
1,370
/** * */ package org.irods.jargon.favorites; import java.util.Date; /** * A favorite marked by a user * * @author Mike Conway - NIEHS * */ public class Favorite { /** * Path of favorite in iRODS */ private String irodsAbsolutePath; /** * Name of favorite in iRODS */ private String name; /** ...
17.792208
105
0.69781
60b95b39066ff327944d381ad58390c912917f6f
1,481
package io.symphonia.lambda.logging; import ch.qos.logback.classic.spi.LoggingEvent; import ch.qos.logback.core.spi.FilterReply; import io.symphonia.lambda.logging.MetricBlockFilter; import org.junit.Test; import org.slf4j.MarkerFactory; import static io.symphonia.lambda.logging.MetricPassFilter.METRIC_MARKER; import...
32.195652
77
0.711681
0e7a65490bc371fc570629769a17054cb4426666
3,593
/* * Copyright Bruce Liang (ldcsaa@gmail.com) * * Version : JessMA 3.4.1 * Author : Bruce Liang * Website : http://www.jessma.org * Project : http://www.oschina.net/p/portal-basic * Blog : http://www.cnblogs.com/ldcsaa * WeiBo : http://weibo.com/u/1402935851 * QQ Group : 75375912 * * Licensed under the Apac...
19.961111
91
0.678542
76f14d522366338e5a72ac9824f37c909fa04c07
2,077
/* * Copyright (C) 2012 United States Government as represented by the Administrator of the * National Aeronautics and Space Administration. * All Rights Reserved. */ package gov.nasa.worldwindx.examples; import gov.nasa.worldwind.Configuration; import gov.nasa.worldwind.avlist.AVKey; import gov.nasa.worldwind.glo...
36.438596
120
0.688012
561d23b3a5fc6544b85c2c913389eb3cefa87565
18,176
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/consumer.proto package com.google.api; /** * <pre> * A descriptor for defining project properties for a service. One service may * have many consumer projects, and the service may want to behave differently * depending on some prope...
31.555556
94
0.653609
8148e471629f325f244974421e98bd1326f96edf
5,846
package edu.ncsu.csc.Galant.graph.component; import java.awt.Point; import edu.ncsu.csc.Galant.GraphDispatch; import edu.ncsu.csc.Galant.logging.LogHelper; import java.util.ArrayList; import java.util.List; /** * The state of a GraphElement, used akin to a frame in an animation. As the * animation advances, the subs...
30.290155
76
0.598016
fef5c4b8cf90ff326603f72dc1dca826ec90fbbd
1,425
package com.rokejits.android.tool.connection2.internet.httpurlconnection; import java.net.MalformedURLException; import java.net.SocketTimeoutException; import com.rokejits.android.tool.Log; import com.rokejits.android.tool.connection2.internet.InternetConnection; public class HttpURLRestfulConnectionDescriptor exte...
39.583333
86
0.750877
f520622c78dde308afc2577964ac883f6907f199
1,274
package com.sunsharing.eos.common.serialize.support.java; import com.sunsharing.eos.common.utils.ClassHelper; import java.io.*; public class CompactedObjectInputStream extends ObjectInputStream { private ClassLoader mClassLoader; public CompactedObjectInputStream(InputStream in) throws IOException { ...
33.526316
98
0.661695
9619b2e1325f1c095704c6d9902450e752b8c7df
527
package com.tiou.servicediscovery; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; import org.springframework.context.annotation.Configuration; @Configuration @EnableAut...
35.133333
74
0.844402
924e99d47c0eacf400d2a248d0a00860ae3bb185
1,737
package com.puzzletimer.statistics; import com.puzzletimer.models.Solution; import com.puzzletimer.util.SolutionUtils; import java.util.Arrays; public class Percentile implements StatisticalMeasure { private int minimumWindowSize; private int maximumWindowSize; private long value; private double p; ...
25.173913
111
0.609672
9ff12b12d9585d95c1db6eefa47b24559297b71a
550
package com.amazonaws.greengrass.cdddocker.docker; import com.github.dockerjava.api.model.Container; import com.github.dockerjava.api.model.Image; import java.util.Optional; public interface DockerHelper { Optional<Image> getImageFromTag(String tag); Optional<String> createContainer(String name); Optio...
23.913043
64
0.778182
c46a5fa259b5aaa9850399f1f896612a6046ec03
279
package at.fhjoanneum.ippr.processengine.akka.messages.process.timeout; public class TimeoutExecuteMessage { private final Long ssId; public TimeoutExecuteMessage(final Long ssId) { this.ssId = ssId; } public Long getSsId() { return ssId; } }
18.6
72
0.691756
df2432197fd035195f01096c36c7caa07b2f6025
2,530
package potheads.recipe; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.inventory.CraftingContainer; import net.minecraft.world.item.BlockItem; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.crafting.CustomRecipe; import net.minecraft.world.item.crafting.RecipeS...
35.138889
108
0.614625
fcc30372e66c9bc5ba3c0cf4c8181b32619b5ed3
2,372
/* SPDX-License-Identifier: Apache-2.0 */ package org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInc...
28.926829
111
0.660202
d22b57e4479edfb2eae59c5bcda67d0781860ca2
2,083
package com.mridang.callstats; import android.os.Bundle; import android.preference.ListPreference; import android.preference.Preference; import android.preference.PreferenceActivity; import android.preference.PreferenceManager; /* * This class is the activity which contains the preferences */ public class WidgetSet...
29.757143
145
0.792607
93128dc7953ee04f956e1fce48af281809b6a661
228
package com.github.linyuzai.connection.loadbalance.autoconfigure.scope; import lombok.AllArgsConstructor; import lombok.Getter; /** * 连接域名称 */ @Getter @AllArgsConstructor public class ScopeName { private String name; }
15.2
71
0.776316
ae18d9336b85122197597de8862373b22eac45c7
3,008
package io.renren.modules.sys.service.impl; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import com.baomidou.mybati...
39.578947
118
0.739362
45c9ca9974d9a2748097f6242d0102dd6f41c547
12,392
package com.as.seven.orangefriends; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ObjectAnimator; import android.animation.ValueAnimator; import android.annotation.SuppressLint; import android.content.Intent; import android.os.Bundle; import android.suppo...
35.507163
259
0.600549
10823ddbf88fc90459a3ce7bc29331a44e81ea1a
539
package ru.roborox.reactive.mail; import org.apache.commons.mail.HtmlEmail; public class MailSend { public static void main(String[] args) throws Exception { HtmlEmail email = new HtmlEmail(); email.setCharset("UTF-8"); email.setHostName("localhost"); email.setSmtpPort(1025); ...
29.944444
61
0.643785