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
34eac5060c39e7bc3229ec649028fce06f610c58
4,632
package ObjectTracker; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; /** * This class represents a panel. The purpose of * the panel is to allow the user to enter class * names into a list. This list will be used to * filter out all classes that are no...
25.450549
64
0.58247
15513932017470cfc41fa181102d4f8b8ecc98c7
89
type reference in array typereferenceinarray type reference in array typereferenceinarray
89
89
0.898876
1872867373b169daea9b520095e14ef3965e014c
433
package com.java.creationalPattern.singletonPattern; /** * Created by Intellij IDEA Author: lizhiyong E-mail: lizhiyong@xiaomi.com Time: * 17-2-24 下午2:27 */ public class RegSingletonChild extends RegSingleton { public RegSingletonChild() { } public static RegSingletonChild getInstance() { retu...
27.0625
116
0.748268
d974cca264329ea2c71fb8c42293a6df5b1d2a3f
1,015
/* * Copyright 2017 Alibaba.com All right reserved. This software is the * confidential and proprietary information of Alibaba.com ("Confidential * Information"). You shall not disclose such Confidential Information and shall * use it only in accordance with the terms of the license agreement you entered * in...
31.71875
124
0.717241
1f44d0ad96b4fc98cab1a19c15074f2461899b1d
2,525
package com.geetest.stringguard; import android.os.Bundle; import android.util.Log; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { // Test static final fields private static final String STATIC_FINAL_FIELD_1 = "test_priva...
31.962025
87
0.696238
92bd45d3f4b2a3afc373208c75b5873ffa48ab9a
569
/* * Copyright (c) 2003, the JUNG Project and the Regents of the University * of California * All rights reserved. * * This software is open-source under the BSD license; see either * "license.txt" or * http://jung.sourceforge.net/license.txt for a description. */ package edu.uci.ics.jung.algorithms.util; /** * An ...
19.62069
76
0.702988
cd63163f534fcf78d038779ab3c61816ad345239
994
package com.hiveelpay.dal.dao.mapper; import com.hiveelpay.dal.dao.model.TransOrder; import com.hiveelpay.dal.dao.model.TransOrderExample; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface TransOrderMapper { int count...
30.121212
114
0.794769
2c67c3f9f3c30fca1af7f6e282ddf97d22e1c654
92
package com.chipsetsv.multipaint.tools; public enum Tools { None, Eraser, Pen, Clear }
10.222222
39
0.728261
69c80955cf048864fddacc975e2c12b85e7440f2
645
package com.vdreamers.vmediaselector.core.impl.task; import android.content.ContentResolver; import com.vdreamers.vmediaselector.core.entity.MediaEntity; import com.vdreamers.vmediaselector.core.impl.callback.IMediaTaskCallback; /** * 多媒体任务 * <p> * date 2019-09-18 20:32:02 * * @author <a href="mailto:codepoetd...
22.241379
87
0.675969
9d2bcb7f16745fd5bead9ac7f5e35928bd318436
1,615
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.Set; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashSet; import java.util.StringTokenizer; import java.io.BufferedReader; import ...
24.846154
78
0.601858
495360c65561cf91baf3f7baca8d71c3c3e7cedf
3,020
/* * SimpleSearchMetaQueryImpl.java */ package org.ngbw.sdk.data; import java.text.ParseException; import java.util.HashMap; import java.util.Map; import java.util.Set; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import org.apache.commons.logging.Log; import org.apache.commo...
28.761905
124
0.746689
087fa59547cc5d978b7fae7778b276cc916e9065
2,548
package com.zs.controller; import com.zs.config.Code; import com.zs.comm.Respond; import com.zs.model.User; import com.zs.server.OrderServer; import com.zs.server.UserServer; import com.zs.vo.OrderQuery; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.AuthenticationException; import org.apache.shi...
30.333333
89
0.689168
9286d9298e89542b0ad802341bf90feea57fbce2
600
package io.spring.user.service; import io.spring.user.action.User; import io.spring.user.dao.UserDao; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; @Service("userService") public class UserServi...
22.222222
62
0.78
75a4af835f5da19684de46be9d3230fd67ad772f
8,314
/* * Copyright 2021 Netflix, 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...
46.188889
149
0.716262
8db988e3a4db7871ed5e44edc99533ede7d2d3aa
859
package de.homelab.madgaksha.lotsofbs.entityengine.component; import com.badlogic.ashley.core.Component; import com.badlogic.gdx.utils.Pool.Poolable; public class TimeScaleComponent implements Component, Poolable { private final static float DEFAULT_TIME_SCALING_FACTOR = 1.0f; private final static boolean DEFAULT_S...
26.84375
72
0.769499
0f537f5de1f7c54c990b78ae555861d76a0d692f
762
package com.technicise; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for LaryngealRoute. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="LaryngealRoute"> * &lt;r...
19.538462
95
0.658793
519b1374b3493e2d70cd4cbb4c67da9e94df6cae
5,492
/******************************************************************************* * Copyright 2013 * Ubiquitous Knowledge Processing (UKP) Lab * Technische Universität Darmstadt * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ...
33.084337
134
0.683904
5021feed54942285b909cfb611b31be6f59cd7e3
528
package io.alauda.jenkins.devops.sync.util; import io.alauda.devops.java.client.models.V1alpha1Condition; import java.util.List; import javax.annotation.Nullable; public class ConditionUtils { @Nullable public static V1alpha1Condition getCondition( List<V1alpha1Condition> conditions, String conditionType) ...
22.956522
65
0.691288
13bdd276f78605df4052b678aec9eb55002dd946
13,693
/* * 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 ...
31.191344
116
0.685533
d26928f8b65d6d50003801354d63a8a308bcb963
186
package scala.meta.pc; import java.util.List; import org.eclipse.lsp4j.TextEdit; public interface AutoImportsResult { public String packageName(); public List<TextEdit> edits(); }
18.6
36
0.768817
90a5e95342fd3144373e383c39742a1a42895545
1,438
package com.xxgc.model; public class MessageReplay { private int mrid; private int meid; private String mrcontent; private String mrtime; private int mruser; private int mrmanager; private String managername; private String username; public int getMrmanager() { return mrmanager; } public void setM...
19.69863
71
0.687761
4b68da02ce0e0d0a14ce3fbc49bd80bbb77d2b1a
3,492
package seedu.address.logic.commands; import static java.util.Objects.requireNonNull; import static seedu.address.logic.parser.CliSyntax.PREFIX_RECORD_HOUR; import static seedu.address.logic.parser.CliSyntax.PREFIX_RECORD_REMARK; import java.util.List; import seedu.address.commons.core.EventsCenter; import seedu.add...
38.8
114
0.703322
b87a8dd3256be6fa87b9ad5e2df4adb591d0a993
3,378
/** * The MIT License * * Copyright (C) 2015 Asterios Raptis * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, c...
23.622378
100
0.706631
fb21c949cd9db61d1f0bc838c643dfa6b4faac01
458
package pt.ismai.hungryme.ui.UI; import android.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import butterknife.ButterKnife; public class BaseFragment extends Fragment { public View inflateAndBind(LayoutInflater inflater, ViewGroup container, int lay...
25.444444
90
0.748908
46d9393103b94a1c6e4bf9530080976a27e8ac5a
1,681
package lci.biz.springboot.resources; import lci.biz.springboot.model.Calculation; import org.springframework.web.bind.annotation.*; import java.util.ArrayList; import java.util.List; /** * Created by tlanders on 5/3/2017. */ @RestController @RequestMapping("/calculation") public class CalculationController { ...
33.62
114
0.599643
327f3bc709060b3feb72e431b12dfd948a7c31be
1,940
package com.github.chic.admin.component.aspect; import cn.hutool.extra.servlet.ServletUtil; import com.github.chic.admin.util.SecurityUtils; import com.github.chic.common.util.ServletUtils; import lombok.extern.slf4j.Slf4j; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import ...
31.290323
108
0.613918
00ffb6cb178146c55d11f70627622794c1d91518
554
package org.firstinspires.ftc.teamcode6032.debug.comms.data.commands; import static org.firstinspires.ftc.teamcode6032.debug.comms.data.Command.create; public class CommandsInitializer { /** Load (or reload) all the commands */ public static void load() { // Control commands, no function, but used in...
30.777778
81
0.67148
b5cdfb3cb76c82d71814f93ed44dc42fce924df9
916
package com.home.client.control; import com.home.client.part.hPlayer.HPlayer; import com.home.client.scene.scene.GScene; import com.home.commonClient.control.ClientFactoryControl; import com.home.commonClient.control.SceneControl; import com.home.commonClient.part.player.Player; import com.home.commonClient.sce...
20.818182
64
0.723799
02501eb514d0fa6020eaa5939222dcdca5dfdc00
1,131
package com.example.pocketknife; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import pocketknife.BindExtra; import pocketknife.NotRequired; import pocketknife.PocketKnife; import pocketknife.SaveState; public class SimpleFragmentActivity extends Fra...
26.928571
98
0.733864
41909f8a4dce37aa25b73cfdd71ef345645367f8
776
package eu.kalodiodev.springjumpstart.repository; import java.util.Set; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import eu.kalodiodev.springjumpstart.domain.PasswordResetToken; /** * Repository for {@link PasswordResetToken} * * @author Athanas...
22.823529
96
0.766753
dfa817296a89321fec4f237ff54791c6e60a74db
2,113
package leetcode.official; import java.util.ArrayList; import java.util.HashSet; import java.util.Random; /** * Your RandomizedSet object will be instantiated and called as such: * RandomizedSet obj = new RandomizedSet(); * boolean param_1 = obj.insert(val); * boolean param_2 = obj.remove(val); * int param_3 = o...
27.441558
78
0.517747
ea5f146127ab9832ad2c50da3c632e326afc8a24
6,718
/* * Copyright 2020 Global Biodiversity Information Facility (GBIF) * * 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.341935
100
0.78967
1bec689d5e4c7603e86dedac07823e6935cf2f87
4,790
package pl.polidea.navigator.ui; import pl.polidea.navigator.R; import pl.polidea.navigator.menu.AbstractDataEntryMenu; import pl.polidea.navigator.transformers.TransformationException; import pl.polidea.navigator.transformers.TransformerInterface; import android.content.res.Resources; import android.os.Bundle; import...
37.716535
112
0.664927
0ad513c7476d58dbac5d5cb527f9b14d37fa26af
1,453
package org.visallo.core.status; import org.visallo.core.exception.VisalloException; import java.io.*; public class StatusData { private final String url; private final String hostName; private final String hostAddress; public StatusData(String url, String hostName, String hostAddress) { thi...
26.907407
88
0.603579
a5629cf3337571930cac670a731557f2bb544231
3,037
package com.liang.leetcode.daily.history; import java.util.HashMap; import java.util.Map; /** * LRU 缓存机制 * * @author LiaNg * @date 2020/5/25 9:16 */ public class LRUCache { public static void main(String[] args) { LRUCache cache = new LRUCache(1); cache.put(2, 1); System.out.println...
23.183206
116
0.49786
f86c7603acb3fea6fba4c29ef8e7bd8985f860da
4,337
package org.jetbrains.anko.sdk27.coroutines; import android.widget.CalendarView; import android.widget.CalendarView.OnDateChangeListener; import kotlin.Result.Failure; import kotlin.Unit; import kotlin.coroutines.Continuation; import kotlin.coroutines.CoroutineContext; import kotlin.coroutines.jvm.internal.Box...
46.138298
215
0.660595
0278ce04b9f2b0cff862058e6271dd182887ab9a
9,176
/* * Copyright 2014 by the Metanome 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 law o...
39.551724
152
0.771469
d501284ee0c0b42f07c9bb72af2804980fefadd5
681
package webapp.tier.util; import java.io.IOException; import com.hazelcast.client.HazelcastClient; import com.hazelcast.client.config.ClientConfig; import com.hazelcast.core.HazelcastInstance; public class HazelcastInstanceConfigurator { private HazelcastInstanceConfigurator() { } public static HazelcastInstanc...
29.608696
71
0.819383
4b23f1ce473fbcbbab8fe64429020dafb573a344
5,189
package com.davidalmarinho.main; import com.davidalmarinho.graphics.Window; import com.davidalmarinho.input.KeyboardInput; import com.davidalmarinho.input.MouseInput; import com.davidalmarinho.scenes.LevelEditorScene; import com.davidalmarinho.scenes.LevelScene; import com.davidalmarinho.scenes.Scene; import com.david...
34.593333
117
0.617653
954ff8d0f228afca7e8a13bdc9e972e1dcf09ad5
675
package scratch.kevin.ucerf3; import java.io.File; import java.io.IOException; import org.dom4j.DocumentException; import scratch.UCERF3.FaultSystemSolution; import scratch.UCERF3.utils.FaultSystemIO; public class SAFRupCount { public static void main(String[] args) throws IOException, DocumentException { int p...
30.681818
93
0.795556
229d83051b044b9cbe79a9532f03d4d85dc0aa57
2,513
package de.domisum.pingoxd; import java.io.OutputStream; import java.io.UnsupportedEncodingException; import java.net.HttpURLConnection; import java.net.SocketTimeoutException; import java.net.URL; import java.net.URLEncoder; public class VoteSender { // constants private static final String PINGO_VOTE_URL = "http...
29.916667
116
0.71349
2c58494d66e0a7cd7a4fe1f731032958aa90ffd2
3,413
/* * Copyright (c) 2016, Apptentive, Inc. All Rights Reserved. * Please refer to the LICENSE file for the terms and conditions * under which redistribution and use of this file is permitted. */ package com.apptentive.android.sdk.tests.module.engagement.criteria; import androidx.test.runner.AndroidJUnit4; import ...
28.206612
141
0.770876
3db278a901f1c227f125fd1f28f3eae2d1fffe1a
2,517
/* * 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 ...
33.56
115
0.762813
8bfd8eb5cd307d8441546cc7824f281efc5103d6
2,982
/* $Id$ * * 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")...
22.421053
86
0.663313
2745a13309a391fe41df4eab88af5e921e872226
985
package org.dspace.xmlworkflow.cristin; /** * Entity class to represent a bitstream being retrieved from Cristin */ public class CristinBitstream { private String url; private String name; private int order = -1; private String md5; private String mimetype; public String getUrl() { ...
15.390625
69
0.564467
3bbae6b9a0100d22d7dbeb2b214c953e6197bb6c
1,541
package modelo; import org.json.JSONException; import org.json.JSONObject; public class UsuarioFacebook { private Long id; private String email; private String first_name; private String last_name; private String picture; public UsuarioFacebook(JSONObject jsonUsuario) throws JSONException{ String[]...
14.961165
69
0.663206
2ee13757f013eb2ce3475ab1d7b5164b3e67d397
241
package betterwithaddons.entity; public interface IHasSpirits { int getSpirits(); void setSpirits(int n); default boolean canAbsorbSpirits() { return false; }; default int absorbSpirits(int n) { return n; } }
17.214286
57
0.66805
eb5b72cc73cd23dfc4b98dc402ec981fcfe861eb
1,244
package me.jingbin.byrecyclerview.utils; import android.util.Log; public final class LogHelper { private static volatile boolean DEBUG = true; public static String logTag = "jingbin"; private LogHelper() { } /** * 打开Log * */ public static void enableLogging() { DEBUG =...
18.848485
54
0.512058
5fee9778e464ccff8ea13ff8d195a55647fbfd17
258
package in.infocruise.techsupport.helper; import android.os.AsyncTask; public class DbAsyncTask extends AsyncTask<Void,Void,Void> { private SQLiteHandler db; @Override protected Void doInBackground(Void... voids) { return null; } }
21.5
60
0.72093
5e7b3e750f3e178a80198abaa8392879e28667e8
3,800
/*- * #%L * Nazgul Project: nazgul-tools-visualization-spi-doclet * %% * Copyright (C) 2010 - 2018 jGuru Europe AB * %% * Licensed under the jGuru Europe AB license (the "License"), based * on Apache License, Version 2.0; you may not use this file except * in compliance with the License. * * You may obtain a...
37.623762
116
0.672105
cf173d886c84bf0c00c28e65cf3dd2438e49aff1
4,202
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * Project Info: http://plantuml.com * * If you like this project or if you find it useful, you can support us at: * ...
40.796117
465
0.686102
e9c32315f3398fb5482f2701d6a1cdca1a80c4a2
682
package jprobe.services.function; /** * This interface defines {@link Argument} observers. It declares one method, {@link #update(Argument, boolean)}, * which is called by observed Arguments to report changes in their validity. * * @author Tristan Bepler * * @see Argument * @see Argument#isValid() * */ publ...
26.230769
113
0.703812
8391abf97093eb0a92a19b69b49f2c0a1ef65438
2,741
/* * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 2.0, as published by the * Free Software Foundation. * * This program is also distributed with...
36.546667
108
0.679314
ccaf00256d39460a5109c0b2d8daf74d2715bdcd
8,345
package com.github.songxzj.wxpay.v3.bean.result.combine; import com.github.songxzj.wxpay.v3.bean.result.BaseWxPayV3Result; import com.google.gson.annotations.SerializedName; import lombok.*; import java.io.Serializable; import java.util.List; /** * 通用如下: * 支付通知(https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter...
19.543326
75
0.492031
08a5ac719d84ff58d4701e73f49a610bcce7268f
7,662
/* * Copyright 2013-2016 Sergey Ignatov, Alexander Zolotov, Florin Patan * * 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...
35.472222
137
0.729705
b4ec9b306b36da5780ccc8d4d3d260e139d71b4d
15,988
/* * Copyright 2019 Andy Turner, University of Leeds. * * 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...
35.6875
120
0.621841
369d7b52e9647ad3c327402d89642d4bba8f522a
3,034
package com.jiaxy.cache; import com.jiaxy.cache.event.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.InputStream; import java.util.*; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; /** * @author: wutao * @version: $Id:AbstractCacheFactory.java ...
29.456311
108
0.67238
6f58d042fc428c0b3b7c9de56339bae4e81829b8
2,708
package com.zscat.mallplus.sms.entity; import lombok.Data; import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.copier.CopyOptions; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomido...
16.613497
75
0.626292
3366816861ecd7edf5ea0b45463e8d8f6c0ffbd9
1,174
package com.iwufang.merge.controller; import com.iwufang.merge.model.UserInfo; import com.iwufang.merge.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @RestController public class UserController { @Autowired pub...
36.6875
89
0.705281
17a982ee6409473985ec1f669255e6f177ef8b95
529
package com.rentmycar.rentmycar.validation; import org.springframework.stereotype.Service; import java.util.function.Predicate; import java.util.regex.Matcher; import java.util.regex.Pattern; @Service public class EmailValidator implements Predicate<String> { @Override public boolean test(String email) { ...
27.842105
121
0.697543
34dc1630ad9a0d4fd1a4a2d1bef6eeda34a85ca1
369
/* * Copyright © 02.10.2015 by O.I.Mudannayake. All Rights Reserved. */ package report.type; import report.Report; /** * * @author Ivantha */ public class PurchaseReturnReport extends Report{ public void newPRNReport(String prnNo){ map.clear(); map.put("prnNo", prnNo); this.g...
18.45
66
0.636856
dcba2952ffec98c816792de44c1d0aa5c6dac85f
17,248
package edu.utexas.tacc.tapis.jobs.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Timestamp; import java.time.Instant; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.co...
40.583529
104
0.522379
81cf17b55005ea0b90ea4fd85f11036a9032af64
1,959
package com.github.ruediste.rise.component; import java.time.Duration; import java.time.Instant; import java.util.Timer; import java.util.TimerTask; import javax.inject.Inject; import javax.inject.Singleton; import org.slf4j.Logger; import com.github.ruediste.rise.core.scopes.HttpScopeManager; /** * Manager of a ...
25.115385
89
0.517611
8965b547fe0494e34ed39d417bb5f6146b451832
1,755
package com.jqh.gpuimagelib.encodec; import android.content.Context; import android.opengl.GLES20; import com.jqh.gpuimagelib.opengl.GLSurfaceView; import com.jqh.gpuimagelib.render.CommonFboRender; import com.jqh.gpuimagelib.render.filter.BaseGPUImageFilter; import com.jqh.gpuimagelib.render.textrue.BaseTexture; ...
26.590909
79
0.696866
9ee4fef0720a419a3093315b061458b652db3ba3
9,152
/* * MIT License * * Copyright (c) 2018 Charalampos Savvidis * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
36.608
148
0.739838
c8189b0df655e88a28ddfe558084b637c21e56ae
5,410
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package animal; import fazenda.Fazenda; import java.util.Calendar; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.criteri...
34.903226
168
0.649908
10e9a7585ee682990b292dbe7540d1dc574b808b
3,176
package org.sakaiproject.archive.tool; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.file.Path; import java.nio.file.Paths; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; imp...
34.150538
117
0.77267
1ae8210a48404ea5c466a2c13b0b066195edee90
4,711
package mod.acgaming.jockeys.client.renderer.entity; import net.minecraft.client.model.HierarchicalModel; import net.minecraft.client.model.geom.ModelLayerLocation; import net.minecraft.client.model.geom.ModelPart; import net.minecraft.client.model.geom.PartPose; import net.minecraft.client.model.geom.builders.CubeLis...
55.423529
245
0.718107
3ffef3a9f798ebe7d14e40cc6f90609d15e9919a
357
package com.xorlev.gatekeeper.data; import lombok.Data; import java.io.Serializable; /** * 2013-07-27 * * @author Michael Rose <elementation@gmail.com> */ @Data public class Server implements Serializable { String host; Integer port; public Server(String host, Integer port) { this.host = hos...
16.227273
48
0.661064
62d9fffe29eb05046634a9fab94961d1d033128b
2,281
package cn.study.common.base; import cn.hutool.core.collection.CollectionUtil; import cn.study.common.model.OrderQueryParam; import cn.study.common.model.QueryParam; import com.baomidou.mybatisplus.core.metadata.OrderItem; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatispl...
33.057971
110
0.637878
3416c4ad9dd47081ae0b17b2b2c78e8d8b115e62
4,538
package com.phoenix.phoenixtales.origins.world.feature.realm; import com.mojang.serialization.Codec; import com.phoenix.phoenixtales.origins.block.OriginsBlocks; import com.phoenix.phoenixtales.origins.block.blocks.OriginsLeavesBlock; import net.minecraft.block.BlockState; import net.minecraft.util.Direction; import n...
39.12069
281
0.545174
bfeca18ff697aca2e1c208895c858df9f3651fe8
1,063
package gr.personal.aggregator; import org.slf4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import javax.annotation.PostConstruct; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * Created by Nick Ka...
27.973684
90
0.752587
a0b1e645c297318e564a8d163b23016d361a6dec
257
package je.techtribes.component.github; import je.techtribes.util.ComponentException; public class GitHubException extends ComponentException { public GitHubException(String message, Throwable throwable) { super(message, throwable); } }
21.416667
65
0.770428
14d1e61dea9862ade1416208ac930a125e3adcd5
2,124
package eu.wauz.wauzcore.oneblock; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.entity.Player; import eu.wauz.wauzcore.data.SeasonConfigurator; import eu.wauz.wauzcore.data.players.PlayerConfigurator; import eu.wauz.wauzcore.system.WauzDebugger; import eu.wauz.wauzc...
27.947368
91
0.735876
b97036cb89a5e706666cce523e3cd2e1814229fd
612
package app.lifeni.bms.entity.model; public class Role { private long roleId; private String roleName; private String permissions; public long getRoleId() { return roleId; } public void setRoleId(long roleId) { this.roleId = roleId; } public String getRoleName() { ...
18
52
0.629085
22a49197ce08795a0b6e10c066935fa4e47ada40
82
package com.rsk.java; public interface Address { String getFirstAddress(); }
13.666667
29
0.731707
b0e4de560f9d88d06ddd92c184a2ce658251a5de
436
import java.util.*; public class A3qno28 { public static int existance(String str,String str1) { if(str.contains(str1)) {//contains method is already O(n) so no need to optimize more as per question return str.indexOf(str1); } return -1; } public static void main(String[] args) { Scanner sc=new Scanner(Sy...
25.647059
103
0.704128
252cdcd46a38c3df6bf27c69c6483407f3096db6
9,822
/******************************************************************************* * Copyright 2016 Antoine Nicolas SAMAHA * * 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 * * ...
43.460177
185
0.695174
c5922665ce221a7f399ce90315054594561ccc5c
3,826
package com.aiden.dev.simpleboard.modules.post; import com.aiden.dev.simpleboard.modules.account.Account; import com.aiden.dev.simpleboard.modules.main.PostService; import com.aiden.dev.simpleboard.modules.post.form.WritePostForm; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org....
26.386207
99
0.621275
951d556ee637429c2709275cb6206a3a7c52ed55
4,901
/* * 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 ed.biordm.sbol.toolkit.transform; import java.io.File; import java.io.IOException; import static org.junit.Assert.assertEquals...
36.849624
119
0.686595
9d02209ca0018a845a528451e9805a446438141b
250
package cn.edu.jxnu.design.adapter; public class Adapter extends Adaptee implements TargetInterface { @Override public void standardApiForCurrentSystem() { super.specificApiForCurrentSystem();// 使用源类的特殊功能,加以包装 } //// 适配器类,继承了被适配类,同时实现标准接口 }
20.833333
65
0.78
d6ea25ea94802c7d9414ce5317adf96d4f4ce1ad
914
package graph; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; public class Download_File { /** * Downloads files and returns string representation * @param url to download from * @return string representation * @throws Exceptio...
27.69697
68
0.62035
9a6ba5df65f832872cc3ac505a8d264db4c40c63
5,455
package com.google.common.collect; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.collect.ImmutableMap.Builder; import com.google.common.collect.Multiset.Entry; import com.google.common.primitives.Ints; import java.util.Arrays; import ...
31.715116
125
0.63648
c74bb8f28195660f33036e5427f16d0c34b758a0
3,208
package com.gmail.borlandlp.minigamesdtools.config; import com.gmail.borlandlp.minigamesdtools.MinigamesDTools; import java.io.File; public enum ConfigPath { MAIN(new File(MinigamesDTools.getInstance().getDataFolder(), "config.yml"), false, "main"), MESSAGES(new File(MinigamesDTools.getInstance().getDataFold...
55.310345
164
0.727868
354c9be010a1a770c84a32a5d5a7dfa15d658998
3,903
import java.lang.Math.*; // matematica import java.util.Scanner; import java.util.Objects; import java.math.RoundingMode; // arredondamento de casas decimais import java.text.DecimalFormat; // arredondamento de casas decimais public class P1nX { private static DecimalFormat df2 = new DecimalFormat("#.##"); // ...
28.911111
119
0.585447
26d528fb285b76633fc38d1e503c38156dd3871e
4,420
package com.example.EcommerceApp.order; import com.example.EcommerceApp.product.model.CannotBuyOwnProductException; import com.example.EcommerceApp.product.model.Product; import com.example.EcommerceApp.product.service.ProductService; import com.example.EcommerceApp.security.model.User; import org.junit.jupiter.api.Te...
25.549133
114
0.659955
aa8ddc57cd3f2e0fef06066a090fc755b969d5ed
2,199
package leetcode.review; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * @author: wyj * @date: 2021/07/12 */ public class R18_1 { //给定一个包含 n 个整数的数组 nums 和一个目标值 target,判断 nums 中是否存在四个元素 a,b,c 和 d ,使得 a + b + c + // d 的值与 target 相等?找出所有满足条件且不重复的四元组。 // 注意:答案中不可以包含重复的四元组。 // 示例 1...
31.414286
89
0.411551
d40a01f9d66ece72848b213fa78cae82fb88f3b8
1,098
package com.nevergetme.autumn.tencent.solution08; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int[] a = new int[n]; int[] pos = new int[n]; po...
27.45
64
0.343352
233aff770354a2b0bd2c872d575579c95112775e
3,583
/* * MIT License * * Copyright (c) 2014-2018 David Moskowitz * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
35.127451
128
0.54005
efc5ae74820717569b70b9af7d697fe1916162ac
4,376
/* * Hibernate, Relational Persistence for Idiomatic Java * * Copyright (c) 2011, Red Hat Inc. or third-party contributors as * indicated by the @author tags or express copyright attribution * statements applied by the authors. All third-party contributions are * distributed under license by Red Hat Inc.. * * ...
30.601399
130
0.791819
5c6c2a199507558e419f7949c4d033d9b9cbce12
3,021
package chav1961.bt.mnemoed.entities; import java.awt.geom.AffineTransform; import java.io.IOException; import chav1961.purelib.basic.exceptions.PrintingException; import chav1961.purelib.basic.exceptions.SyntaxException; import chav1961.purelib.streams.JsonStaxParser; import chav1961.purelib.streams.JsonStaxPrinter;...
28.5
98
0.731546
cdd53fb475675a40c8424ca0e461cce4d35ebc75
525
package org.jboss.resteasy.test.resource.path.resource; import jakarta.ws.rs.Path; import jakarta.ws.rs.PathParam; @Path("resource") public class LocatorWithClassHierarchyLocatorResource extends LocatorWithClassHierarchyMiddleResource { @Path("locator/{id1}/{id2}") public LocatorWithClassHierarchyMiddleResourc...
35
103
0.72381
f1a0258821672b6812a268e0bdace28822fe012e
5,698
package au.com.codeka.warworlds.server.ctrl; import java.sql.Statement; import java.util.ArrayList; import org.joda.time.DateTime; import au.com.codeka.common.model.BaseBuilding; import au.com.codeka.common.model.BuildingDesign; import au.com.codeka.common.model.DesignKind; import au.com.codeka.warworlds.server.Requ...
39.846154
128
0.580379
ee1d2f695bc20e9db78988742689cc9963ccb129
18,526
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package nl.uva.cs.lobcder.rest; import lombok.AllArgsConstructor; import lombok.Data; import lombok.extern.java.Log; import nl.uva.cs.lobcder.auth.MyPrincipal; import nl.uva.cs.lobcder.auth.Permissions; impor...
52.481586
176
0.499946
ddbd37e2ad7f74d93e7fd00de49f22cda332abd4
87
package com.springcloud.fooddelivery.repository; public interface MenuRepository { }
14.5
48
0.827586
fb511da915a41399e1f89e4fea45b4baffa6d40b
989
import org.junit.rules.ExternalResource; import org.sql2o.*; public class DatabaseRule extends ExternalResource { @Override protected void before() { DB.sql2o = new Sql2o("jdbc:postgresql://localhost:5432/cooking_test", null, null); } @Override protected void after() { try(Connection con = DB.sql2o...
35.321429
86
0.724975
e71795929f58f9582948be6f71b90ace18c95a2c
4,915
package hk.hku.cecid.edi.sfrm.com; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.FileInputStream; import java.nio.channels.FileChannel; import java.nio.channels.ReadableByteChannel; import java.util.Iterator; import java.util.Collection; import hk.hku.cecid.piazza.commons....
21.004274
74
0.657782
16c24bd2046c5b832ce6940b582190e1b33f48da
5,320
/******************************************************************************* * Copyright (c)2014 Prometheus Consulting * * 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://w...
27.42268
110
0.738158
36dadaecd92e27b741d8bbfdc40e1079674f4875
2,409
package org.miaohong.newfishchatserver.core.rpc.client; import com.google.common.base.Preconditions; import com.google.common.base.Strings; import lombok.Getter; import lombok.Setter; import org.miaohong.newfishchatserver.core.execption.ClientCoreException; import org.miaohong.newfishchatserver.core.lb.strategy.Abstra...
35.426471
111
0.716895
5330a5585d0b8bd25673a4b902abdd976ff673e6
453
package de.gishmo.mvp4g.client.ui.page02; import com.mvp4g.client.annotation.Presenter; import com.mvp4g.client.presenter.BasePresenter; import de.gishmo.mvp4g.client.Mvp4gHyperlinkEventBus; @Presenter(view = IPage02View.class) public class Page02Presenter extends BasePresenter<IPage02View, Mvp4gHyperlinkEventBu...
26.647059
62
0.801325