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
ec515a464bfaddbb5571d086d9dc5cca9ab597c1
564
package com.salvatore.cinemates.utils; public final class MovieSearchHttpClientConstants { public static final String HTTPCLIENT_HEADERS_AUTHORIZATION = "Authorization "; public static final String HTTPCLIENT_HEADERS_AUTHORIZATION_BEARER = "Bearer "; public static final String HTTPCLIENT_REQUEST_LANGU...
47
90
0.794326
676917deb2f73472c9b1cc33ad42cca4ada9e0d4
3,661
package be.kdg.simulator.domain.generators.impl; import be.kdg.simulator.commands.SimulatorCommandContext; import be.kdg.simulator.config.sensorservice.SensorGenerationProperties; import be.kdg.simulator.domain.generators.ParameterGenerator; import be.kdg.simulator.domain.model.sensor.Sensor; import be.kdg.simulator.d...
34.214953
117
0.712101
ee68b850a75559e897c99be2236b323621085ef6
1,549
package io.spoud.agoora.agents.test.mock; import io.spoud.agoora.agents.api.client.DataItemClient; import io.spoud.sdm.global.domain.v1.IdReference; import io.spoud.sdm.logistics.domain.v1.DataItem; import io.spoud.sdm.logistics.service.v1.DataItemChange; import io.spoud.sdm.logistics.service.v1.SaveDataItemRequest; i...
35.204545
88
0.646223
3ba6c946f68fc87b2ca6d6deb5e8b163b2de8029
619
package soya.framework.tool.ant; import org.apache.tools.ant.Task; import java.lang.reflect.ParameterizedType; public abstract class AntTask<T extends Task> { protected T task; public AntTask() { try { Class<T> type = (Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()) ...
22.107143
94
0.594507
a6dfefa542c89bfc49b3cb012d3a1036a5210a85
377
package tools.datasync.utils; import java.util.concurrent.TimeUnit; public class TimeSpan { private long duration; private TimeUnit unit; public TimeSpan(long duration, TimeUnit unit) { super(); this.duration = duration; this.unit = unit; } public long getDuration() { return duration; }...
15.08
51
0.676393
3ca4a0eccf7beda06b3afd598b361132aab1a9ba
3,808
package openblocks.common.block; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.block.properties.PropertyBool; import net.minecraft.block.state.BlockFaceShape; import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block...
32.827586
120
0.780725
7aee09d21802fdb1157a2874cb53987c32f6c9fd
803
class Solution { public int mctFromLeafValues(int[] arr) { final int n = arr.length; // dp[i][j] := min cost of arr[i..j] int[][] dp = new int[n][n]; // maxVal[i][j] := max value of arr[i..j] int[][] maxVal = new int[n][n]; for (int i = 0; i < n; ++i) maxVal[i][i] = arr[i]; for (in...
27.689655
99
0.424658
13c5c21c8d63272a00d4fd76af754d3db12c052b
5,203
package Reacher; import Reacher.domain.INode; import Reacher.domain.Node; import Reacher.domain.exceptions.NodeNotFoundException; import com.google.common.collect.ImmutableList; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import java.util.List; import static org.junit.jupiter.api.Asse...
26.958549
121
0.743417
d86a0555f74317fbaa24c575b6b4a8461ee9fc1b
1,801
/* * Copyright (C) 2019 GFZ German Research Centre for Geosciences * * 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://apache.org/licenses/LICENSE-2.0 * * Unless required by...
26.101449
75
0.686841
af3ac181c01972a17760074b543446ed28a84b1c
3,306
package com.eiffel.codeInsight.completion; import com.eiffel.psi.EiffelClassDeclaration; import com.eiffel.psi.EiffelClassUtil; import com.eiffel.psi.EiffelNewFeature; import com.intellij.codeInsight.completion.CompletionParameters; import com.intellij.codeInsight.completion.CompletionResultSet; import com.intellij.co...
55.1
143
0.678161
7617deb5035e3b76f789414a1065e1ca8470d15c
685
package io.dropwizard.configuration; import java.io.InputStream; import java.io.IOException; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; /** * An implementation of {@link ConfigurationSourceProvider} that reads the configuration from the * local file system. */ public...
28.541667
97
0.721168
cdb5cbae6bc181ad056c140bfff0656f26d21cde
920
package org.cyclops.commoncapabilities.modcompat.forestry.capability.work; import forestry.api.core.IErrorState; import forestry.core.errors.EnumErrorCode; import forestry.factory.tiles.TileMoistener; import org.cyclops.commoncapabilities.api.capability.work.IWorker; /** * Worker capability for the TileMoistener. *...
27.058824
110
0.747826
3c85b2f19d8f261e52ce321432a7ce2e53e4c9cc
3,213
package com.carros.api; import com.carros.api.domain.Carro; import com.carros.api.domain.dto.CarroDTO; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test...
29.477064
109
0.6953
b9e1a8b915b587a0efaaa4228e5643ed31152410
276
package com.dreamworks.musicwanted.network; /** * Created by zhang on 2016/4/23. */ public class KoalaHttpStatus { public final int OK = 0; public final int IO_ERROR = -1; public final int JSON_PARSE_ERROR = -2; public final int NET_ERROR = 3; }
23
44
0.65942
015a6feb6f04393f5171bae76b2fc4f6f5e6a832
768
package com.itmuch.cloud.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.anno...
30.72
81
0.807292
904aeea8603dd872ef235b2496cc5ba0a1fc9cd5
3,270
package com.tank.stage; import com.badlogic.gdx.InputProcessor; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.ui.Skin; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com....
37.586207
135
0.729052
99691efefef9d9f4acd780d6aba7a9b02ffedd3f
170
package Matlab.Utils; public interface IResult { // region PROPERTIES: Object GetValue(); IReport GetReport(); boolean GetIsOk(); // endregion }
11.333333
25
0.641176
6a0439c0426d7eae5164ef57702b4eaf28b2c4f4
46,431
package org.hl7.fhir.dstu2016may.model; /*- * #%L * org.hl7.fhir.dstu2016may * %% * Copyright (C) 2014 - 2019 Health Level 7 * %% * 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 * *...
41.382353
234
0.665224
8322686d87dfce9a4d402161a651525dfc798985
583
package com.webcps.webcps.model; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Embeddable; import javax.persistence.Temporal; import javax.persistence.TemporalType; import lombok.Data; @Embeddable @Data public class UsUhUserhistoryPK implements Seriali...
18.806452
56
0.780446
981eae7275888c6dc361d535af9fc4928296475f
922
package com.mcnz.web; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.annotation.*; /* The Java file upload Servlet example */ @WebServlet(name = "FileUploadServlet", urlPatterns = { "/fileuploadservlet" }) @MultipartConfig( fileSizeThreshold = 1024 * 1024 * 1, // 1 MB m...
34.148148
117
0.704989
356b4899e97b3bccb91590bdc2bdf306c5bd57d7
2,195
/* * Copyright (C) 2014-2015 LinkedIn Corp. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use * this file except in compliance with the License. You may obtain a copy of the * License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
38.508772
114
0.744875
b11222559e5cd233affa9eae63ae9ab08a853812
265
package com.axway.apim.servicebroker.service; public interface Constants { String VERSION = "1.2.0"; String API_BASEPATH = "/api/portal/v1.3/"; String DOT = "."; String PUBLISHED = "published"; String CF_BINDING_ID= "cfBindingId"; String VHOST = "vhost"; }
22.083333
45
0.709434
75dc2e4b671d13468c8c2460c5c5caf0bccaa767
269
package com.example.linhu.studio6test.singleton; /** * Author:linhu * Email:lhzheng@grandstream.cn * Date:19-4-24 */ public class Staff { public void work(){ //干活 } protected String getTag(){ return getClass().getSimpleName(); } }
15.823529
48
0.620818
91d12f1763436ae70f86ef548b189d14ae879ef4
2,280
/* * Project: OSMP * FileName: InterceptorMappingInfo.java * version: V1.0 */ package com.osmp.service.bean; import com.osmp.jdbc.define.Column; import com.osmp.service.util.ServiceUtil; public class InterceptorMappingInfo { @Column(mapField="interceptorBundle",name="interceptorBundle") private String ...
33.043478
103
0.721491
46ba81e0df1e996f7cb6c50d66dbdee8de758b34
1,565
/** * Copyright 2013 Dennis Ippel * * 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...
27.946429
118
0.740575
d0cc80d41027267e609548ac73229f37d7cc8619
319
package com.cloud.goods.entity.dto; import com.cloud.goods.entity.Goods; import com.cloud.goods.entity.GoodsSku; import lombok.Data; import java.util.List; @Data public class GoodsDto extends Goods { private static final long serialVersionUID = -2596408615836602516L; private List<GoodsSku> goodsSkuList; }
21.266667
71
0.783699
85bbcd3ca1cfe21b7bfe5292d6e19feefd82c7a8
910
package ru.job4j.chess.figures.black; import ru.job4j.chess.figures.Cell; import ru.job4j.chess.figures.Figure; import ru.job4j.chess.figures.figure.Rook; /** * The {@code RookBlack} class creates the Black Rook Chess Figure. * * @author Alexander Petrenko (Lexer8@gmail.com) * @version 1.0 * @since 0.1 */ publi...
26
74
0.656044
23b09955de0a49787b42628f177832ff582bb607
1,598
package cla.edg.project.storedev.gen.graphquery; import java.util.Map; import com.terapico.generator.Utils; import cla.edg.modelbean.*; public class SampleItemTitle extends BaseModelBean{ public String getFullClassName() { return "com.doublechain.storedev.sampleitemtitle.SampleItemTitle"; } // 枚举对象 public sta...
25.774194
128
0.760951
a6ff78e10cb9764335aeffb369231e742b46e863
5,341
package org.hisp.dhis.android.core.sms.domain.converter.internal; import androidx.annotation.NonNull; import org.hisp.dhis.android.core.arch.helpers.GeometryHelper; import org.hisp.dhis.android.core.common.State; import org.hisp.dhis.android.core.enrollment.Enrollment; import org.hisp.dhis.android.core.enrollment.Enr...
42.055118
119
0.699307
eac2a3a883a7c8c65be12d5826ffb5b61b7d79ea
782
package co.casterlabs.caffeinated.updater.animations; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import co.casterlabs.caffeinated.updater.util.FileUtil; import lombok.SneakyThrows; public class PrideAnimation extends DialogAnimation { private BufferedImage pri...
22.342857
97
0.716113
3b2da521eb684b36eb699bcaabc33d6481b9962b
166
package com.hcl.library.dao.generics; import com.hcl.library.model.Loan; public interface ILoanDao extends IGenericDao <Loan> { public Loan findById(int id); }
16.6
54
0.76506
c2d1c114e3cd9e50c0806b31fe8112b3fc9399bf
661
/* * Copyright 2017-2018, Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.operator.cluster.model; /** * Enum for ImagePullPolicy types. Supports the 3 types supported in Kubernetes / OpenShift: * - Always * - Never * - I...
23.607143
101
0.686838
0f59ca2de97d13b2e720a0749140119ce554e4e3
664
package com.jz.nebula.dao.sku; import com.jz.nebula.entity.sku.SkuAttributeCategory; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.PagingAndSortingRepository; import org.spri...
47.428571
112
0.831325
bcca2aaec4c80520098b614ef73e291620f5d145
306
package tigerworkshop.webapphardwarebridge.interfaces; public interface WebSocketServerInterface { void onDataReceived(String channel, String message); void subscribe(WebSocketServiceInterface service, String channel); void unsubscribe(WebSocketServiceInterface service, String channel); }
27.818182
72
0.820261
7ed3ac9632cd357997015af8864032293446c0e7
4,950
package com.huifer.hibernatebook.bean; import com.huifer.hibernatebook.utils.HibernateUtils; import org.hibernate.Session; import org.hibernate.Transaction; import org.hibernate.query.Query; import org.junit.Test; import java.util.Arrays; import java.util.List; /** * 描述: * * @author huifer * @date 2019-02-11 */...
26.756757
111
0.580202
cdcb24150707b9ed0c49f52f248440e3ca0d885f
365
package com.trkj.framework.mybatisplus.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.trkj.framework.entity.mybatisplus.NoticeDept; import org.apache.ibatis.annotations.Mapper; /** * <p> * 公告部门表 Mapper 接口 * </p> * * @author 劉祁 * @since 2021-12-30 */ @Mapper public interface NoticeDe...
19.210526
66
0.753425
949e680efafaa74340a26906c28f5c018eb94894
8,604
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2008-2009, The KiWi Project (http://www.kiwi-project.eu) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: *...
29.166102
110
0.748373
45788173c7bda4c0482de0604064079d2b5f5079
1,603
package util; import java.util.*; public class SecurityConfig { public static final String ROLE_ADMIN = "ADMIN"; public static final String ROLE_MANAGER = "MANAGER"; public static final String ROLE_DEVELOPER = "DEVELOPER"; // String: Role // List<String>: urlPatterns. private static final Map...
26.716667
99
0.618216
478c0eeefe83f28d51b15031f706c571b653c549
2,555
package com.AppRH.AppRH.controllers; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.PathVariable; import org.springframewo...
27.180851
107
0.753816
9fd2c2613dfba4674504e10521a68f0339e8462f
4,980
/* * 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 ...
32.763158
117
0.658233
fcaf487966127cd0025c5c422f7dcd92f897eb30
8,504
package sapphire.compiler; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.TreeSet; import org.apache.harmony.rmi.compiler.RmicUtil; public class PolicyStub extends Stub { public PolicyStub(Class<?> cls) throws ClassNotFoundException { super(cls); } @Override...
48.045198
193
0.659337
cf3b131d8e94d069d8a89ba7d7b6f25d8d28d17b
4,092
package ca.uwaterloo.sh6choi.korea101r.fragments.numbers; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGro...
30.311111
123
0.671554
25a164a22355ffd6bb89fc5f07f40e5e9c90cdc0
6,631
package com.smile.taobaodemo.widget; import android.app.DialogFragment; import android.content.Intent; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.os.Bundle; import android.os.Handler; import android.support.annotation.Nullable; import android.text.Editable; import and...
35.843243
163
0.60926
ddd9bc51d284db03332604ffdd60b2c885a9cb5d
3,388
package com.denizenscript.denizen.objects.properties.item; import com.denizenscript.denizen.objects.ItemTag; import com.denizenscript.denizencore.objects.Mechanism; import com.denizenscript.denizencore.objects.core.ListTag; import com.denizenscript.denizencore.objects.ObjectTag; import com.denizenscript.denizencore.ob...
27.544715
136
0.594746
8c7355dda8c75dc78d9a39f5b4b7eaa4bc2f4f30
2,771
package me.onenrico.holoblock.database.sql; import java.io.File; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import java.util.HashMap; import org.bukkit.scheduler.BukkitRunnable; import me.onenrico.holoblo...
27.989899
87
0.63118
e64b7635f9c85cab56ba6dc31fb7d50cb4df09a5
2,781
package net.wasdev.wlp.maven.test.app; import static org.junit.Assert.*; import java.io.File; import java.io.IOException; import java.util.Collections; import java.util.Properties; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.xpath.XPath; import javax.xm...
36.116883
128
0.711255
e49da18edfe8724fa0c41589a299392227bf3c53
756
package com.springcloud.demo.controller; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; /** * @author * @Description: 文件描述 * @Author: ...
25.2
82
0.72619
dd6bb27c290e9eeab8f31d1c2f69f0736913491f
10,904
/** * 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...
38.530035
139
0.719369
f793e5b9d9711158687b2110cdd5c65453537be6
7,134
/* Generated by Together */ package jneat; /* Generated by Together */ /* Generated by Together */ /* Generated by Together */ /* Generated by Together */ /* Generated by Together */ /* Generated by Together */ /* Generated by Together */ /* Generated by Together */ /* Gen...
28.086614
108
0.486263
883eff102db7656881882d223e119b49f139c37a
1,494
package com.legocms.web.controller.admin; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import com.legocms.core.dto.sys.SysSiteInfo; import com.legocms.core.dto.sys.SysUserInfo; import com.legocms.core.exception.BusinessException; import com.legocms.core.web.session.S...
27.163636
68
0.680054
98abcf5c1e144dc4dca64a58c79b484d45385fdd
5,875
package com.amoveo.amoveowallet; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.support.v7.app.AppCompatActivity; import android.view.WindowManager; import com.amoveo.amoveowallet.common.CacheBean...
32.821229
105
0.690043
f053cc597a8c917368087189024661142a7828a9
417
package net.take.blip; public final class Constants { public static final String DEFAULT_DOMAIN = "msging.net"; public static final String DEFAULT_SCHEME = "net.tcp"; public static final String DEFAULT_HOST_NAME = "tcp.msging.net"; public static final int DEFAULT_PORT = 443; public static fina...
24.529412
68
0.731415
b311c0d5959d02a815cd12b9116fcff1d969f43a
261
//TYPE_LINKING /** * Same package precedes on-demand import in type-linking => * On-demand imports are not ambiguous. */ import foo.Foo; public class Main { public Main() {} public static int test() { Foo foo = new Foo(); return foo.method(); } }
15.352941
60
0.655172
75a513606aa57e00202823656d580d52e0bbeeaa
7,685
/** * Copyright 2010 Google 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...
31.11336
100
0.64177
23f352095300660e0703861d2b96a96ba3bde835
4,839
/* * Copyright (C) 2016 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 appl...
39.663934
113
0.648894
15d60ba142986639f143035076c59c46ac2ccac4
627
package org.vitrivr.cineast.core.util; import java.util.List; import org.vitrivr.cineast.core.data.LongDoublePair; public class RankUtil { private RankUtil(){} public static int getRankOfShot(List<LongDoublePair> resultList, long id, int notFoundValue){ int _return = notFoundValue; int i = 0; for(LongDoub...
19
94
0.682616
7a259f1edf48e1153091b676730b054574ae768e
2,379
// Copyright (C) 2018 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 applicable ...
34.985294
189
0.726776
4ea2182359071a149ba8ad0caa74354a3dc196f9
1,578
package net.wolfesoftware.jax.codegen; import java.io.*; import net.wolfesoftware.jax.ast.*; import net.wolfesoftware.jax.semalysis.Semalysization; public class CodeGenerator { public static void generate(Semalysization semalysization, String sourceFile, String classPath) throws FileNotFoundException ...
32.875
129
0.688847
e2c30c0c99677d4ad0c9041fd2c0eafcf8862cd7
1,772
/* * 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 analyse; import java.io.FileNotFoundException; import java.io.IOException; import org.json.simple.parser.ParseExcepti...
32.814815
152
0.626411
fbf8f0942696df389be561bff7b47cd30616f3d9
1,685
package unimelb.mf.ssh.plugin.services; import java.util.Collection; import arc.mf.plugin.PluginTask; import arc.xml.XmlDoc.Element; import arc.xml.XmlWriter; import io.github.xtman.ssh.client.Connection; import io.github.xtman.ssh.client.SftpClient; import io.github.xtman.ssh.client.TransferClient.GetHandler; import...
29.051724
115
0.642136
363887f325f4a9fbc08be3e113fb720c94b5f382
1,914
package com.chenshun.test.hadoop.io; import org.apache.hadoop.io.Writable; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; /** * User: mew <p /> * Time: 18/2/27 13:41 <p /> * Version: V1.0 <p /> * Description: <p /> */ public class UserWritable implements Writable { priva...
19.9375
73
0.524556
126ca15e03c98f307ba68016072c958f47741f81
522
package kg.apc.jmeter.jmxmon.rmi; import java.io.IOException; import java.util.Map; import javax.management.remote.JMXConnector; import javax.management.remote.JMXConnectorProvider; import javax.management.remote.JMXServiceURL; import kg.apc.jmeter.jmxmon.JMXConnectorEmul; public class ClientProvider imp...
26.1
112
0.791188
dbeaa9719260fc77e5076a23854514c53b10c05f
1,347
package au.com.mineauz.minigames.events; import au.com.mineauz.minigames.objects.CTFFlag; import au.com.mineauz.minigames.objects.MinigamePlayer; import au.com.mineauz.minigames.minigame.Minigame; public class TakeFlagEvent extends AbstractMinigameEvent { private CTFFlag flag = null; private String flagName ...
24.490909
99
0.679287
6a7fee5d2904f1d88a133c00b9414ae444516732
2,018
package spyke.database.model; import javax.persistence.*; import java.io.Serializable; import java.util.Date; @Embeddable public class PeriodId implements Serializable { @Temporal(TemporalType.TIMESTAMP) @Column(name = "start_time") private Date startTime; @Temporal(TemporalType.TIMESTAMP) @Column...
23.741176
94
0.542616
7a9b663846097c85dc247c06666025ba2ea4cdaa
1,005
package io.github.kobakei.androidhowtotest.activity; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import butterknife.ButterKnife; import butterknife.OnClick; import io.github.kobakei.androidhowtotest.R; public class MainActivity extends AppCompatActivity {...
26.447368
67
0.708458
36573d49df9c10ca45d89b8ee8a7ff38b432bb36
6,713
package com.sequenceiq.environment.environment.flow.deletion.handler; import static com.sequenceiq.environment.environment.flow.deletion.event.EnvDeleteHandlerSelectors.DELETE_PREREQUISITES_EVENT; import static com.sequenceiq.environment.environment.flow.deletion.event.EnvDeleteStateSelectors.FINISH_ENV_DELETE_EVENT; ...
54.577236
151
0.729778
c562bd20740d6ee86467a78dffef679a47e9e748
7,145
/** * ************************************************************************ * * The contents of this file are subject to the MRPL 1.2 * * (the "License"), being the Mozilla Public License * * Version 1.1 with a permitted attribution clause; you may not use this * * file except in compliance with the L...
28.241107
127
0.73436
ae2f4a9eb9fb1178f06be3af937e746642ce553b
3,695
package gr.eap.dxt.sprints; import android.app.Activity; import android.content.res.Configuration; import android.os.Bundle; import android.util.DisplayMetrics; import android.view.View; import android.widget.ImageButton; import android.widget.LinearLayout; import android.widget.TextView; import java.util....
31.05042
112
0.612179
b45b56189942dcaaf8dd4cb130d2376065ccb3c8
1,749
/* * Copyright 2020 Syr0ws * * 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 ...
28.209677
82
0.65466
7675a41bf4cdec75732f0b9f2e1c2eb644ee0f5d
2,849
/******************************************************************************* * 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 f...
28.49
80
0.681643
c74e1324e59f5f9d0864d0ebc75552deefb59320
4,792
package com.revature.beans; public class TRMSForm { private int form_id; private int emp_id; private String name_first; private String name_last; private String email; private String course_title; private String course_type; private String course_start_date; private String course_location; private int cours...
25.902703
114
0.737062
b8f766ed8f41b8865e797c231f834d9bdd81a45f
1,703
package com.github.xfslove.shiro.uaa.model; import java.io.Serializable; import java.util.Date; /** * Created by hanwen on 2017/10/19. */ public class AccessToken implements Serializable { private Long id; private String accessToken; private String refreshToken; private Date accessTokenExpires; priva...
18.714286
64
0.722842
b60d397b006b891694976da44342c80347b4dc80
1,872
package demo.model.primary; import demo.model.primary.builder.PrimaryModelBuilder; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.json.JsonTest; import org.springframework.boot.test.json.JacksonTester; import org.spri...
30.688525
75
0.650641
e27b6911308a51bc1913995e5ec83ddd5eb092d5
2,184
/* * Copyright 2019-present Open Networking 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 applicabl...
32.597015
103
0.737637
32c9e8fd08063d15d4aaedb9e65e3a86b9c0c195
1,535
package edu.neu.his.bean.billRecord; import org.apache.ibatis.annotations.*; import org.springframework.stereotype.Component; import java.util.List; /** * 该类对数据库中的bill_record表进行数据持久化操作 * * @author 王婧怡 * @version 1.0 */ @Mapper @Component(value = "AutoBillRecordMapper") public interface BillRecordMapper { /*...
33.369565
148
0.681433
a9a1ca0b78e7cb33a3aa265b206d22168ef86c3c
2,174
// Copyright 2020 Goldman Sachs // // 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 ...
24.426966
136
0.707912
54576eaa1c96143dee54132d926df36a40c52396
2,272
package unet.motiondetection.listeners; import java.io.IOException; import java.util.ArrayList; public class ScreenSaver { private boolean running = false, ractive = false; private static String COMMAND = "gnome-screensaver-command -q | grep -q 'is active'"; private static String[] OPEN_SHELL = { "/bin...
28.049383
90
0.522887
0ca17573d42c68c2357359a955edc8378067b913
307
package boxing; public class Unit { private String name; public Unit(String name) { super(); this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public void attack() { System.out.println( this.name + " >> 공격준비" ); } }
13.954545
47
0.631922
72631a28c1b39ad57a1bc1222a8418f5d145892c
2,425
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
31.493506
103
0.741856
defbd44be5d27b9e15a76954b92069b6382cd459
1,795
package net.minestom.server.tag; import net.minestom.server.item.ItemStack; import org.jglrxavpok.hephaistos.nbt.*; import java.util.function.Function; final class Serializers { static final Entry<?, ?> VOID = new Entry<>(null, null); static final Entry<Byte, NBTByte> BYTE = new Entry<>(NBTByte::getValue, N...
46.025641
112
0.638997
ee52e74709ee8bf5698423a656661ac5eb4553c8
2,856
package caelum.com.br.cadastro; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.Toast...
30.709677
104
0.610644
0c085eeb902265641ed540d591895f73ee831086
12,184
/* * Copyright 2020 OPS4J. * * 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 wr...
33.750693
119
0.745404
c7024f42380716f2cbb1b420ee66239d62187b5c
558
package com.google.android.gms.internal.ads; import org.json.JSONException; import org.json.JSONObject; /* renamed from: com.google.android.gms.internal.ads.jm */ final /* synthetic */ class C9519jm implements zzcuz { /* renamed from: a */ static final zzcuz f22623a = new C9519jm(); private C9519jm() { ...
24.26087
91
0.637993
cf89109d2a610146a1f15a7b238ebbb696473803
479
package com.baozi.pulsar.issue; import org.apache.pulsar.client.admin.PulsarAdmin; import org.apache.pulsar.client.api.PulsarClient; /** * @author baozi */ public class PulsarAdminTest { public static void main(String[] args) throws Exception { String serviceUrl = "https://localhost:8080"; Stri...
23.95
85
0.697286
9edaeb5e88ec41c2a5772bf2d4e86eb94d508283
402
package me.jiangcai.crud.modify; /** * @author CJ */ public abstract class NullablePC implements PropertyChanger { @Override public Object change(Class type, Object origin) { if (origin == null) return null; return nonNullChange(type, origin); } @SuppressWarnings("WeakerA...
23.647059
71
0.676617
5c2efd7598067dc679f62a3f699120cd5b6930fc
1,621
package com.paulandcode.entity; import java.io.Serializable; import java.util.List; /** * * @description: 存放需要放入Redis缓存的数据的信息, 根据这些信息, 再通过Java反射获取数据. * @author: paulandcode * @email: paulandcode@gmail.com * @since: 2018年9月8日 下午2:45:51 */ public class Data implements Serializable { private static final long se...
19.53012
111
0.703886
26cba373f96551ae4e4a39d96019fc44e1707ebe
1,502
package com.byteblogs.plumemo.auth.domain.vo; import com.baomidou.mybatisplus.annotation.TableField; import com.byteblogs.common.base.domain.vo.BaseVO; import com.byteblogs.common.validator.annotion.IntegerNotNull; import com.byteblogs.common.validator.annotion.NotBlank; import com.byteblogs.plumemo.auth.domain.valida...
20.297297
64
0.727031
6eb06e7d3aa7d4167f717025e0a0a4d2abb2170e
2,106
package gt.keybord; import gt.keybord.elephant.R; import gt.module.constants.AppConstants; import gt.module.constants.ApplicationPrefs; import com.example.android.softkeyboard.adapter.ListAdapter; import com.startapp.android.publish.StartAppAd; import com.startapp.android.publish.StartAppSDK; import android.app.Acti...
26.325
105
0.769706
62291407a487cb2d63fdbe4ea2acd51100059374
396
package com.yahoo.vespa.hbase; import org.apache.commons.codec.digest.DigestUtils; public class KeyUtils { public static String encodeKey(String key) { byte[] sha = DigestUtils.sha1(key); byte hash = sha[0]; return String.format("%02x:%s", hash, key); } public static String decodeKey(String key) ...
20.842105
51
0.671717
94c4e8261b7ea48dc58a647d76cdfcae05cc30fa
9,488
package de.blau.android.util.mvt.style; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Deque; import java.util.List; import android.graphics.Rect; import androidx.annotation.NonNull; /** * Simple collision detection * * For a small number of boxes simply sequentially iterating over the...
31.732441
146
0.487879
2b52691b76cd9bdd18b4f554489c766489888c64
1,122
package com.newt.mapper.partial; import com.newt.pojo.partial.UserMenu; import com.newt.pojo.partial.UserMenuExample; import com.newt.utils.mapper.BaseMapper; import java.util.List; import org.apache.ibatis.annotations.Param; /** * Created by Mybatis Generator on 2018/10/26 */ public interface UserMenuMapper extends ...
29.526316
110
0.770053
3119474e3f2a76113f86b786ff69ef765c9713e3
2,518
/* * 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 not ...
38.738462
100
0.758539
55e13592b78a94916c98173a926773032318b983
1,840
package com.hatemzidi.sandbox.keycloak; import org.keycloak.authentication.AuthenticationFlowContext; import org.keycloak.authentication.AuthenticationFlowError; import org.keycloak.authentication.Authenticator; import org.keycloak.authentication.authenticators.browser.UsernamePasswordForm; import org.keycloak.events...
40
155
0.700543
412d3ef4adbe6446c6ffff01a6cb8505a68c2b34
3,649
// 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.download; import android.app.DownloadManager; import android.content.ActivityNotFoundException; import android.conten...
42.929412
100
0.684297
0ddc7b4c95146b1d0968ab42a5eff599721bac0f
511
package com.steven.game.service.impl; import com.steven.game.dao.WxTokenMapper; import com.steven.game.service.TokenService; import com.steven.game.vo.WxToken; import org.springframework.beans.factory.annotation.Autowired; /** * Created by tianshuai on 2017/9/20/020. */ public class TokenServiceImpl implements Toke...
26.894737
62
0.767123
c8e340ba2fa00b8c129d9859dd4e4d154dbe0d40
837
package br_com_gss_secao11; /** * AJ025 * * Getters e Setters * - Getters * - é um metodo público, que serve para consultar dados; * - A nomeclatura desses métodos é get_nome_do_atributo() * */ public class AJ025{ public static void main(String[] args) { Cliente guilherme = new Cliente...
27.9
95
0.639188
037cc78b774078c6e44c67449919d812dac8f304
794
package com.mchekin.leetcodesolutions.removeduplicatesfromsortedarray; /** * Problem: <a href="https://leetcode.com/problems/remove-duplicates-from-sorted-array/">Remove Duplicates from Sorted Array</a> * * <p> * Time Complexity: O(n) (where n is the number of numbers in the array) * Space Complexity: O(1) */ pu...
24.060606
128
0.575567
bf541299856f249cf85c95dd6d56ae4ff3632091
408
package org.bird.breeze.util; import org.junit.Test; import redis.clients.jedis.Jedis; public class RedisUtilsTest { @Test public void testRedisUtils(){ Jedis jedis = RedisUtils.getJedis(); jedis.setnx("test", "Hello World"); System.out.println("set redis value OK"); String value = jedis.get("test"); Sy...
20.4
48
0.715686
3c22fa8a33eb858bc7c997d4f2cb4cbfe3ded9c0
324
package com.hangum.core; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class HelloWorldTest { @Test void hello() { HelloWorld helloworld = new HelloWorld(); String returnValue = helloworld.hello("HI"); assertEquals(returnValue, "Hello HI"); ...
20.25
52
0.669753
db97ac8d145826da678a565d97c681ec9a68501e
6,121
package com.huawei.bridge.common.config; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.Iterator; import java.util.Properties; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.huawei.bridge.common.util.LogUtils; import com.huawei.br...
30.30198
112
0.491096