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
24bf4cb39086c2b25f90dba572886424b1fcbcb6
13,777
/* * 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 ...
41.372372
188
0.635116
9b142dcbc183b8c238d2a0b44b91573faeb095b4
1,221
package com.github.rinfield.provider; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; import java.nio.charset.StandardCharsets; import javax.ws.rs.core.Response; import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.ext.Provider; import com.github.rinfield.app.log.A...
33.916667
82
0.731368
8d3d01b183c0e5ba07f84cb4cf4975b82a2abb08
2,688
package org.usfirst.frc5329.ProperRobot.commands; import org.usfirst.frc5329.ProperRobot.Robot; import edu.wpi.first.wpilibj.PIDController; import edu.wpi.first.wpilibj.command.PIDCommand; public class Turn90degrees extends PIDCommand { private float endPoint; private double tolerance; private float yawOffset = 0...
22.214876
80
0.683408
0f170e9a93e83466f88c838f28a5d24b3470cc4c
1,548
package com.gmail.imshhui.medium; /** * A zero-indexed array A of length N contains all integers from 0 to N-1. * Find and return the longest length of set S, where S[i] = {A[i], A[A[i]], A[A[A[i]]], ... } subjected to the rule below. * * Suppose the first element in S starts with the selection of element A[...
30.96
143
0.516796
f2e76eecba99d70ca3a552ded8452c6e03a03edf
4,385
/* * Copyright 2016 OPEN TONE 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 ...
33.219697
91
0.606613
ee2019d04def80e78fb01291fbbafad78d7554f2
5,404
/* * Copyright 2017-2020 EPAM Systems, Inc. (https://www.epam.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 requ...
43.934959
113
0.750925
e89815871cad95a308fe8295b820d16ace14ab4e
3,862
/** * Copyright 2014-2015 The Johns Hopkins University / Applied Physics Laboratory * * 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 ...
25.077922
107
0.725531
2260ba666a5ffa3c7a2c2c36a16f555f7b56f15f
285
package com.microsoft.commondatamodel.objectmodel.utilities.network; public abstract class CdmNetworkException extends RuntimeException { public CdmNetworkException() { super(); } public CdmNetworkException(final String message) { super(message); } }
23.75
68
0.726316
8121d612c2486050a6c4195fef71a2a145720bcb
17,695
/* * Copyright (C) 2014 The Guava 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 agre...
32.290146
100
0.64538
9b4697ebd41f2c8549e444c03d9abaf9382d185a
1,968
package com.n11.optim.webpages; import com.n11.optim.model.ExcelUser; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.xssf.usermodel.XSSFCell; import org.apache.poi.xssf.usermodel.XSSFSheet; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import com.n11.optim.tests.AddingProductControl; import java....
31.741935
102
0.63872
8a41f60ddbcbf6dd5e2170100274556af2ac5716
13,953
/** * 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 ...
35.776923
115
0.691464
7200bd7318a5ea9a202181e74c02543348136dfa
2,424
package us.ihmc.atlas.controllerAPI; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import us.ihmc.atlas.AtlasRobotModel; import us.ihmc.atlas.AtlasRobotVersion; import us.ihmc.avatar.controllerAPI.EndToEndArmTrajectoryMessageTest; import us.ihmc.avatar.drcRobot.DRCRobotModel; import us.ihmc.ava...
24
135
0.733498
a7c6eda9ad4e2c1d99a944913d79086384fef155
8,891
/* * Copyright 2008-2009 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 ap...
43.583333
173
0.666629
9f32aaef45cc78aa73ca06e5b83f5990b9c5705b
1,719
package com.transcendence.guard.utils; import android.util.Xml; import com.transcendence.guard.domian.UpdateInfo; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; import java.io.IOException; import java.io.InputStream; /** * 解析XML数据 */ public class UpdateInfoParser { /** ...
31.833333
103
0.599767
8b486c09e72a22e3b0ddbce07be2f7491dd16143
101
package promoter; public enum ExporterNation { underfed, disrupting, attempting, bedroom; }
11.222222
28
0.732673
7b780b602e6eb68f821c200481d4235272606284
627
package com.atguigu.gmall.sms.config; /** * @author tanglei */ //@Configuration //public class DataSourceConfig { // // @Bean // @ConfigurationProperties(prefix = "spring.datasource") // public DruidDataSource druidDataSource() { // return new DruidDataSource(); // } /** * 需要将 DataSource...
22.392857
69
0.647528
b64ac7220a49a06b86f956fbb8e42dbd5c547806
13,650
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.fasterxml.jackson.core.json; import com.fasterxml.jackson.core.*; // Referenced classes of package com.fasterxml.jackson.core.json: // DupD...
32.891566
109
0.512454
7c936eb5a6e85f34591613df6deffca6e325c4ec
36,795
/* Copyright 2018 The Trustees of University of Arizona Licensed under the Apache License, Version 2.0 (the "License" ); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
41.435811
165
0.607392
1db8494bfb620e1eb8dcb7707e9af86e526553bb
557
package net.selsela.almobarakeya.injection.module; import android.app.Service; import android.content.Context; import dagger.Module; import dagger.Provides; import net.selsela.almobarakeya.injection.ActivityContext; @Module public class ServiceModule { private final Service mService; public ServiceModule(S...
18.566667
58
0.712747
304d463a1606fa294414dd52161656f7f20d749d
797
package com.crowdin.client.stringtranslations.model; import com.crowdin.client.core.model.Pagination; import com.crowdin.client.core.model.ResponseList; import com.crowdin.client.core.model.ResponseObject; import lombok.Data; import java.util.List; import java.util.stream.Collectors; @Data public class VoteResponseL...
29.518519
76
0.677541
f8611cd8c0002d699f2cbda9b31ac41261344af4
499
// Generated by xsd compiler for android/java // DO NOT CHANGE! package com.leansoft.nano.soap12; import java.io.Serializable; import com.leansoft.nano.annotation.*; @RootElement(name = "Envelope", namespace = "http://www.w3.org/2003/05/soap-envelope") public class Envelope implements Serializable { private stat...
22.681818
86
0.719439
002619d665decbf9a5e5be951018d8ed6e49b6e7
72
package pokecube.core.ai.thread; public interface IAICombat { }
10.285714
33
0.708333
fccaef7402e81632215ad1dd3ec75ba2c5852723
501
package domain; public class Relationship extends DomainObject{ private int subjectId; private User user; /** * @return the subjectId */ public int getSubjectId() { return subjectId; } /** * @param subjectId the subjectId to set */ public void setSubjectId(int subjectId) { this.subjectId = subjectId...
15.65625
47
0.654691
0b6289ab78098848043e52a3244e980d6a0bf1f8
6,059
package com.hedera.services.throttling; /*- * ‌ * Hedera Services Node * ​ * Copyright (C) 2018 - 2021 Hedera Hashgraph, 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 * * ...
32.929348
107
0.760356
5b33562688ae3bd33ba5eb6c0ad5225ccf14879e
2,903
// Copyright 2020 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.compositor.layouts; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.eq; im...
35.402439
100
0.760248
fbc814a1381dab0999b39efe9487a3eb2be2ef12
2,283
package com.martinwj.mymusic.controller.user.song.album; import com.martinwj.mymusic.entity.PageBean; import com.martinwj.mymusic.entity.Song; import com.martinwj.mymusic.service.SongService; import com.martinwj.mymusic.service.impl.SongServiceImpl; import javax.servlet.ServletException; import javax.servlet.annotati...
30.851351
122
0.698204
0464bb2b99594d4034ed77d9246e3191ff55e77b
764
package ru.stqa.ptf.sandbox1; import org.testng.Assert; import org.testng.annotations.Test; import ru.stqa.pft.sandbox1.Point; @Test public class PointTests { public void testBetweenPointsZero() { Point p1 = new Point(0, 0); Point p2 = new Point(0, 0); //assert s.area() == 25; Assert.assertEquals(p1...
24.645161
51
0.638743
01cbab40da3c365857f5d0cbcb72ec89a010ce5d
1,080
package org.jbake.app; import ch.qos.logback.classic.Level; import ch.qos.logback.classic.Logger; import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.classic.spi.LoggingEvent; import ch.qos.logback.core.Appender; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import...
25.116279
73
0.759259
5d967cc8df264edf9aca350e0c1419c4639bbb04
1,348
package io.automatiko.engine.workflow.base.core.datatype.impl.type; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.List; import io.automatiko.engine.api.workflow.datatype.DataType; import io.automatiko.engine.workflow.base.core.TypeObject; /** * Representation...
22.098361
86
0.730712
eedbdb8d701bbf59f70207f1e48cf500ee9dd69f
640
package com.mt.access.port.adapter.persistence.cross_domain_validation; import com.mt.access.domain.model.cross_domain_validation.ValidationResult; import com.mt.access.domain.model.cross_domain_validation.ValidationResultRepository; import java.util.Optional; import org.springframework.data.jpa.repository.JpaReposito...
33.684211
92
0.795313
6a1b548c2824d0888c53fdd175a1ebe1c9dbfa9c
1,939
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
26.930556
76
0.72099
1cc0ad8a20b31b51334a4e6f680ea38d35d27180
887
/* Copyright (C) 2005-2011 Fabio Riccardi */ package com.lightcrafts.app.other; /** * An <code>UnknownApplication</code> is-an {@link OtherApplication} to use * when the other application can not be identified. * * @author Paul J. Lucas [paul@lightcrafts.com] */ public final class UnknownApplication extends Othe...
28.612903
79
0.570462
3b6aa72a6b816ebad2af58fe6de88579c7d26b2c
7,773
package fr.thesmyler.smylibgui.widgets.buttons; import javax.annotation.Nullable; import fr.thesmyler.smylibgui.SmyLibGui; import fr.thesmyler.smylibgui.screen.Screen; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.util.ResourceLocation; public class ...
43.668539
230
0.724817
1312de15203e20c2170076186f9a4feb0a687657
2,285
/* * Copyright (c) 2021 Tim Veil * * 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...
28.924051
127
0.688403
c9969fb8913b8eb1c91427a9f71cc3f120e4adc9
2,077
package frc.team5431.titan.mimic; import frc.team5431.titan.core.misc.Logger; /** * @author David Smerkous * @author Ryan Hirasaki */ public class Stepper { public static final String mimicFile = "/media/sda1/%s.mimic"; public static final String formatString = "%.2f,%.2f,%.2f,%.4f,%.4f,%d\n"; //LEFT ENCOD...
31.953846
151
0.609533
228b6a8c4b6cfcc5a5d902ef32a2c14e52c5a251
7,334
package com.msg91.sendotp.sample; import android.Manifest; import android.annotation.SuppressLint; import android.app.Activity; import android.app.DatePickerDialog; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import a...
32.026201
179
0.580856
9ec995f858de61a6d649b039fd8f5e48a86b9c5b
2,543
package org.minima.system.network.p2p.messages; import java.net.InetSocketAddress; import org.minima.objects.base.MiniData; import org.minima.utils.json.JSONObject; public class P2PDoSwap { private MiniData secret = MiniData.getRandomData(8); private InetSocketAddress swapTarget; private String swappin...
30.27381
150
0.681479
1be9b5537155528cb8360a9f4598d290913f0a6a
768
package edu.washington.cs.conf.mutation; import junit.framework.TestCase; public class TestConfParser extends TestCase { public void testParseJettyConfig() { //if multiple option appear in the same configuration file //only the last one counts String filePath = "E:\\conf-vul\\programs\\jetty\\jetty-distributi...
30.72
110
0.753906
175ca5694ee6bc17205d4648bb35d0848a9220af
6,182
package co.vendorflow.oss.maildrop.autoconfigure; import static java.util.stream.Collectors.toList; import static org.assertj.core.api.Assertions.assertThat; import java.util.Collection; import java.util.List; import java.util.Map; import org.junit.jupiter.api.Test; import org.springframework.boot.autoconfigure.Auto...
32.366492
111
0.608703
6d039b8ad3cce5c8832c049a7b28c9ca7ec3be84
2,854
package com.epa.ssh; import com.jcraft.jsch.*; import java.awt.*; import javax.swing.*; public class SshTest{ public static void main2(String[] arg){ try{ JSch jsch=new JSch(); jsch.setKnownHosts("/home/programador6/.ssh/known_hosts"); String host=null; if(arg....
25.482143
89
0.566573
64d8ed3c2fab0f62a32fc310bbfd133e01049f10
2,604
package org.aksw.rdfunit.junit; import static java.util.Arrays.asList; import java.lang.reflect.InvocationTargetException; import org.aksw.rdfunit.io.reader.RdfMultipleReader; import org.aksw.rdfunit.io.reader.RdfReader; import org.aksw.rdfunit.io.reader.RdfReaderException; import org.aksw.rdfunit.sources.SchemaSourc...
30.27907
93
0.731951
12dc3cc7fe959df4aea72571a982635b9176d766
22,956
/* * 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...
34.572289
125
0.66915
0c5e5c2def32d22b790acdd9b699aa590f85f976
3,466
package de.unihannover.nguyen.screens; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.InputAdapter; import com.badlogic.gdx.ScreenAdapter; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import de.unihannover.nguyen.data.GameState; import de.unihannover.nguyen.thread...
30.13913
99
0.582227
6fc7c4fc83b3a0fc400fc1f81a60ce5048e712a3
1,777
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package cz.nkp.urnnbn.core.persistence.impl.transformations; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Timestamp; import cz.nkp.urnnbn.core.RegistrarScopeIdType; import cz.nkp.urnnbn.core...
41.325581
120
0.7704
acefbd1a8aae7fd05973e52421789c0f222396d2
1,551
import javax.servlet.*; import java.io.*; import java.sql.*; import javax.servlet.ServletException; import javax.servlet.http.*; public class register1 extends HttpServlet { public void doGet(HttpServletRequest req,HttpServletResponse res)throws IOException,ServletException { ResultSet rs; res.s...
29.826923
105
0.640877
34234ccbc6ef53412a50b05c06d4f2ff004e71c0
5,166
//Board consists of a boardSize x boardSize 2D array made of Spaces //Board has a list of Scorables called possibleWins which are the rows, columns, //and diagonals of the board that could result in a win. //Dongpeng Xia package connect4; import java.awt.*; import java.awt.event.*; import java.util.*; import connect...
24.367925
101
0.600077
f7bab4ae0ad04765475553a7447043273d4b2cb0
11,102
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002, 2014 Oracle and/or its affiliates. All rights reserved. * */ package com.sleepycat.je.recovery; import java.nio.ByteBuffer; import java.util.Calendar; import com.sleepycat.je.cleaner.CleanerLogSummary; import com.sleepycat.je.lo...
31.810888
79
0.622591
ef28d28c49b574087d9b47a981172efcaa5ac1f9
224
package sg.edu.iss.ca_v1.repo; import org.springframework.data.jpa.repository.JpaRepository; import sg.edu.iss.ca_v1.model.Product; public interface ProductRepository extends JpaRepository<Product, Integer> { }
22.4
77
0.78125
343dceea5e8c450ee779ca015488381e8191da88
1,074
package cc.cc1234.app.util; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.function.Function; public class Fills { public static <R> List<R> fill(String origin, String match, Function<String, ...
33.5625
85
0.544693
9b8f93b646861d1430989da9f35c717b1afaa932
396
package com.crossoverjie.niodemo.manyreacts; import java.nio.channels.SelectionKey; import java.nio.channels.SocketChannel; import java.util.concurrent.ThreadPoolExecutor; public interface HandleState { void changeState(HandleState state); void progress(StateHandler stateHandler, SocketChannel serverSocketCh...
33
146
0.840909
8007b4f73c7265e641f84304dc4618afa23e5a7c
1,439
package dev.natus.cqrs.transactionservice.command.service; import dev.natus.cqrs.common.command.CreateTransactionCommand; import dev.natus.cqrs.transactionservice.command.controller.CreateTransactionRequest; import lombok.extern.slf4j.Slf4j; import org.axonframework.commandhandling.gateway.CommandGateway; import org.s...
39.972222
107
0.75747
07816c7e57b5fe8428be0765c4e90b562dc35af7
2,882
package com.foupa.model; import java.util.List; import com.jfinal.ext.plugin.tablebind.TableBind; import com.jfinal.plugin.activerecord.Db; import com.jfinal.plugin.activerecord.Model; /** * 博客标签 * * @author Manville * @date 2014年11月29日 下午10:53:16 */ @TableBind(tableName = "blog_tag") public class BlogTag exte...
26.685185
84
0.668286
468b86a8e0be0c2876b71037dd35a44af397466c
1,334
//Leetcode problem 91. Decode Ways //Given a string s containing only digits, return the number of ways to decode it. // For more details check leetcode class Solution { //This solution uses a recursive DP/memoization based approach instead of an iterative one int dp[]; public int numDecodings(String s) ...
28.382979
94
0.544978
b78524da1b71ff43e11b9f14367d5d199a40d7ba
1,858
package com.smartalgorithms.getit.Helpers; import android.app.Activity; import android.content.Context; import android.content.SharedPreferences; /** * Contact info@smartalg.co.za * Created by Ndivhuwo Nthambeleni on 2017/12/06. * Updated by Ndivhuwo Nthambeleni on 2017/12/06. */ public class SharedPreferencesHe...
40.391304
90
0.736276
594dc87e87fefe9c3fc5a43e59bd0cc8693962cf
27,066
package io.skymind.experimental.vectorization.csv; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.LinkedHashMap; import java.util.Map; //import org.apache.commons.math3.util.Pair; import sc...
25.950144
187
0.622257
dbdda68a27388378510f84095f87c170429786ef
9,443
/* * Copyright 2014 Matti Tahvonen. * * 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...
36.743191
137
0.586466
2d4674becbeaf7dd9895795723089f33415ba4ae
637
package me.chanjar.boot.customdefaulterrorview; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.View; import org.thymeleaf.spring4.view.ThymeleafViewRes...
27.695652
90
0.828885
8ea9723fbb67bea4137edc85358a4da07418ef6b
299
class Solution { public int findFinalValue(int[] nums, int original) { Set<Integer> set = new HashSet<>(); for (int num : nums) { set.add(num); } while (set.contains(original)) { original *= 2; } return original; } }
19.933333
57
0.488294
000fa082c1b02e3a63ba94e8d515a85475990660
300
package com.force.five.app.repository; import com.force.five.app.domain.Employee; import org.springframework.data.jpa.repository.*; import java.util.List; /** * Spring Data JPA repository for the Employee entity. */ public interface EmployeeRepository extends JpaRepository<Employee,Long> { }
20
74
0.78
1f65a7a61735b54fff0f5b963232c80a2ed02af2
1,196
package org.tain.object.getCalculation.res; import org.tain.annotation.StreamAnnotation; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; @Data //@JsonIgnoreProperties(value = {"idLong", "idInt"}) // to the below @JsonIgnoreProp...
27.181818
92
0.779264
d316cd57041ef3fff1581b03e4a249cb7279c461
104
package com.fpinjava.functions.exercise02_01; public interface Function<T, U> { U apply(T arg); }
14.857143
45
0.721154
7ab79d658b7096682e4cb1479e32e7f6c77f1d50
11,821
import java.io.*; import java.net.ServerSocket; import java.net.Socket; import java.util.*; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * finish:读超时, 设置密码, 验证失败后设置cd, 线程池控制线程, 队列限制,资源正常释放, 命令(单发,自定义数据存储,获取信息)。 * to do:读取文件配置, 存储。 * Created by Q-ays. * 12-17-2017 17:01 *...
34.066282
117
0.462397
f681c36dac9443b21ec5829804103c89c9117953
3,480
package com.wexflow; import android.os.Handler; import android.util.Log; class UpdateButtonsTask { private final MainActivity activity; private final WexflowServiceClient client; private Exception exception; private Boolean force; UpdateButtonsTask(MainActivity activity) { this.activity...
37.826087
122
0.568103
75b4234d29466461dca37c9e4eb2673cf0881437
3,471
package uk.co.idv.context.adapter.verification.client; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.Builder; import lombok.extern.slf4j.Slf4j; import uk.co.idv.context.adapter.verification.client.logger.BodyLoggingClientLogger; import uk.co.idv.context.adapter.verification.client.logger.ClientLogg...
43.936709
103
0.757419
59568331887d79d9981cf280ce2b0d08f2e5f8c7
1,030
package com.baidu.disconf.web.service.zookeeper.config; /** * @author liaoqiqi * @version 2014-6-24 */ public class ZooConfig { private String zooHosts = ""; public String zookeeperUrlPrefix = ""; //add by hetw25334 //微服务注册中心ACL设置 private String addAuth = ""; //add by hetw25334 //注册中...
19.433962
66
0.634951
7e2f6eb21cd8af87a8a60b296672390218e153c7
489
package LeetCode; public class Day7 { public int searchInsert(int[] nums, int target) { if(nums[0]>target) return 0; if(nums[nums.length-1]<target) return nums.length; for(int i=0;i<nums.length;i++) { if(nums[i]==target) return i;...
21.26087
54
0.429448
6e4e654c3012bc8b4b81f919c3f472b7ca15b5c8
1,479
package com.sap.gtt.v2.sample.sst.odata.filter; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertThrows; import org.apache.olingo.odata2.api.edm.EdmType; import org.junit.jupiter.api.Test; import org.mockito.Mockito; class BinaryExpressionImplTes...
28.442308
102
0.72211
b2bc0775e94c2b2cc114c3483f2efd6475c08d0a
988
package com.jdroid.javaweb.push.fcm; import com.jdroid.java.http.parser.json.JsonParser; import com.jdroid.java.json.JSONObject; public class FcmMessageParser extends JsonParser<JSONObject> { @Override public Object parse(JSONObject json) { FcmMessage fcmMessage = new FcmMessage(); fcmMessage.setTo(json.optStr...
38
114
0.796559
a5a6d8a9f85ba01cafbc020f7572a5c20390af9f
1,035
package net.openid.conformance.ekyc.condition.client; import com.google.gson.JsonElement; import net.openid.conformance.condition.AbstractCondition; import net.openid.conformance.condition.PreEnvironment; import net.openid.conformance.testmodule.Environment; public class ValidateDocumentsMethodsSupportedInServerConfi...
36.964286
101
0.793237
23e74bd7a6d3af45afa7a0d9f926afb9da084a3b
658
package com.unionpay.tsmservice.result; import android.os.Parcel; import android.os.Parcelable.Creator; final class GetDefaultCardResult$1 implements Parcelable.Creator<GetDefaultCardResult> { public final GetDefaultCardResult createFromParcel(Parcel paramParcel) { return new GetDefaultCardResult(paramParce...
27.416667
136
0.756839
951405e6df8e19ecd86595cf5529e7df21d8e894
1,214
// // Decompiled by Procyon v0.5.36 // package vip.Resolute.events.impl; import vip.Resolute.events.Event; public class EventPlayerStrafe extends Event<EventPlayerStrafe> { private float moveStrafe; private float moveForward; private boolean jump; private boolean sneak; public EventPlayerS...
22.072727
120
0.62603
d43bba2530b9ef6d66200b6d543d9d6c25771491
503
package com.cowinMgmt.resource; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class TestResource { @RequestMapping(val...
27.944444
62
0.757455
83a118f363e3057c3d4f0b49ad047e13884b2e9b
390
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Adulto; import Ninio.Ninio; /** * * @author Jose */ public interface Asustado { public abstract boolean seAsustaDe(Nin...
20.526316
79
0.717949
cdf75eb0118099ff3a5c231790c0fe684785915f
1,470
/** * Copyright 2018 LinkedIn Corporation. All rights reserved. * Licensed under the BSD-2 Clause license. * See LICENSE in the project root for license information. */ package com.linkedin.transport.test.spi; import com.linkedin.transport.api.udf.StdUDF; import com.linkedin.transport.api.udf.TopLevelStdUDF; impor...
35.853659
127
0.760544
09e49a0844ec4729a6632ebb1d0c3800c0c93b74
2,953
/******************************************************************************* * Copyright (c) 2013 The University of Reading * 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. Redis...
38.350649
80
0.668134
b54789a9730a49b925d94dae4199136f2eef7157
1,734
package model.vo; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.SequenceGenerator; @Entity @SequenceGenerator(initialValue = 1, name = "idgen", sequenceName = "acessorio_seq", allocationSize =1) public class Acessorio extends Entidade { private static final long serial...
21.407407
103
0.678777
7f6fc3aae1aa1b0eb949628bf7b2708e80c06851
4,792
/* * Copyright (c) Meta Platforms, Inc. and 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.redextest; import org.junit.Test; import static org.fest.assertions.api.Assertions.assertThat; enum EnumA ...
22.92823
80
0.64399
75a271d440f138f20915be358a9fca888636ae1b
639
package com.ljm.server.io.connector; import com.ljm.server.io.connection.Connection; import java.nio.channels.SelectionKey; /** * ChannelConnector抽象类 * @author 李佳明 https://github.com/pkpk1234 */ public abstract class AbstractChannelConnector extends AbstractConnector { /** * 通过SelectableChannel通信 * ...
26.625
93
0.746479
8d0035c7c75cd8946bbafa147ffa29c6959493ad
7,883
package csebank_controllers.asu.edu; import java.sql.SQLException; import java.util.HashMap; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; impo...
42.15508
113
0.768743
41a5ef5d0ebe50d8e3748bc22815305c10304d37
7,869
import javafx.application.Application; import javafx.stage.*; import javafx.scene.layout.*; import javafx.scene.Node; import javafx.scene.Scene; import javafx.scene.shape.*; import javafx.scene.paint.Color; import javafx.scene.Cursor; import javafx.scene.control.Button; import javafx.scene.control.Label; impo...
31.476
81
0.559156
93c10c7debdd8bd55c0e740c9e8c767faf608fdb
310
package finergit.util; import org.eclipse.jgit.lib.AnyObjectId; public class RevCommitUtil { // 引数で与えられた RevCommit のハッシュの最初の7文字を返す public static String getAbbreviatedID(final AnyObjectId anyObjectId) { return null == anyObjectId ? null : anyObjectId.abbreviate(7) .name(); } }
22.142857
72
0.712903
6a7486027c55550284c2ea1233613cca98bd713f
2,236
package br.com.portfolio.api.controller; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annota...
33.373134
83
0.804562
823e1db0b2cd5767228ab980b43666769e65eada
1,654
package work.icql.ssm.pojo; import java.util.Date; public class TbShiroUser { private String userid; private String username; private String mobilephone; private Date created; private Date updated; private Long version; private String password; private String memo; public S...
19.458824
75
0.606409
684ced946a894fc2807a7873bda4526018c68747
5,475
package com.noctem.web.rest; import com.codahale.metrics.annotation.Timed; import com.noctem.domain.RecordItem; import com.noctem.domain.UserGroup; import com.noctem.service.RecordItemService; import com.noctem.web.rest.util.HeaderUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframewor...
40.858209
169
0.693333
7667a8cbc96b42336835f0c4bd41f088851d8ed9
6,408
/* * Copyright 2010-2021 EMBL - European Bioinformatics Institute * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this * file except in compliance with the License. You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law ...
38.371257
134
0.66932
e3df1299702ee0ca4fc1e65103c89ea07381d642
1,178
/** * WebEdge 2018 */ package com.webedge.jdbc.connection.pool; import java.beans.PropertyVetoException; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import com.mchange.v2.c3p0.ComboPooledDataSource; /** * @author Mai Thành Duy An */ public class C3P0 { private static...
24.040816
91
0.742784
b33abab1dd36c461bc904f70d2fc1f7fd4ea26f1
3,747
/** * Copyright [2015] Gaurav Gupta * * 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...
39.861702
138
0.704564
5f0e51a039ba3db2016ed0cc25162056257006c9
567
package pop3.server.core.command; import pop3.server.core.Connection; import pop3.server.core.state.State; import pop3.server.database.User; import pop3.server.transport.Packet; public class Reset extends Command { public Reset(State state, Connection connection, User user) { super(state, connection, user...
28.35
120
0.705467
37729e0a8ffcbbc92cedb9b503d912d65f4242c4
733
package main.java.modes.pyramid; import main.java.modes.Gamemode; /** * Pyramid is a patience or solitaire game where the object is to get all the cards from the pyramid to the foundation. * The object of the game is to remove pairs of cards that add up to a total of 13, the equivalent of the highest * valued card...
36.65
119
0.735334
faadf4e7d006077e8ccb50316913578b061de331
2,713
package com.alibaba.druid.bvt.sql.schemaStat; import com.alibaba.druid.sql.SQLUtils; import com.alibaba.druid.sql.ast.SQLExpr; import com.alibaba.druid.sql.ast.SQLStatement; import com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr; import com.alibaba.druid.sql.ast.expr.SQLPropertyExpr; import com.alibaba.druid.sql.pars...
45.216667
105
0.654626
90029adb8805cae40bc6f2bd2b6e9ac71aab7c7a
357
package com.anychart.enums; import java.util.Locale; /** * Smoothing Types Enum. */ public enum MovingAverageType { EMA("ema"), SMA("sma"); private final String value; MovingAverageType(String value) { this.value = value; } public String getJsBase() { return String.format...
16.227273
57
0.610644
f013f0b84fe80c4d95ae50c5fe1b7b66211e9cf3
176
package com.xxx.market.service.provider; import com.xxx.market.service.api.activity.ActivityService; public class ActivityQuestionServiceImpl implements ActivityService{ }
22
68
0.840909
dc1f5c6c33314346899afdd8c1dc3e0e8b863112
2,983
package com.shekhargulati.app; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations; import org.springframework.con...
42.614286
123
0.650687
4d77798dd436660d6e13ef4444844ebeba01f9a3
1,845
package ppt; public class Triangle extends Shape { private int width; private int height; private int perpendicular; public static final int ANGLES = 3; private static int count = 0; { count++; } public Triangle() { this(0,0,0,0,0); } public Triangle(int width, in...
20.274725
98
0.582114
4038e14a19050c625df7567e1e2130f9d9bd7362
484
package FindTheTownJudge; /** * Create by 王鹏龙 on 2019-02-26 19:23 */ public class Solution { public int findJudge(int N, int[][] trust) { int[] num=new int[N+1]; boolean[] flag=new boolean[N+1]; for(int i=0;i<trust.length;i++){ flag[trust[i][0]]=true; num[trust[i][...
22
48
0.450413
5306c2d3469829cf3d3e8a1f1562697084ba0dea
3,594
package com.mtinge.yuugure.data.processor; import lombok.AccessLevel; import lombok.Getter; import lombok.Setter; import lombok.ToString; import lombok.experimental.Accessors; import org.bson.BsonReader; import org.bson.BsonType; import org.bson.BsonWriter; import java.util.Objects; import static java.util.Objects.r...
27.435115
88
0.680301
3b0dbda12e6667859be2e6a0440b738e401d1eb1
451
package www.orchome.com.kafka.model; import lombok.Getter; import lombok.Setter; import org.apache.kafka.common.Node; @Getter @Setter public class NodeDTO { private int id; private String host; private int port; public NodeDTO(Node node) { this(node.id(), node.host(), node.port()); } ...
18.791667
51
0.627494
bb3783e19ed4027100c4bb874b35062166eee1e7
298
package com.spark.sparkweatherokgo.mvp.home; import com.library.common.mvp.base.view.BasePresenter; import com.library.common.mvp.base.view.BaseView; /** * 日期:2019/4/25 15:23 * 作者:李加蒙 * 描述: **/ public class HomePresenter extends BasePresenter<HomeView> { public HomePresenter() { } }
19.866667
60
0.724832
84103630eedaadbb143a43b192a4ff764f7f49dd
94
package com.java.study.algorithm.zuo.emiddle.class03; public class Code04_PerfectRectangle{ }
23.5
53
0.840426
9afc1ff64a3682d0489f4ea4829c4c8165fc6eb5
1,982
package com.codetaylor.mc.pyrotech.modules.plugin.patchouli; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.util.EnumHand; import net.minecraft.util.ResourceLocation; import net.minecraft.util.SoundCategory; import net.minecraft.util.SoundEvent;...
33.033333
142
0.71443