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
26bdbdef903ef487f36b3f077296401cf8f07acc
19,407
package com.bergerkiller.bukkit.tc; import static org.junit.Assert.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.junit.Before; import org.junit.Test; import com.bergerkiller.bukkit.tc.commands.selector.SelectorCondition; import com.bergerkiller.bukkit.tc.commands.selector...
49.131646
132
0.602102
42469b71833fe511e43af4a92c3857e21b3a36b6
384
package Day2; public class TestCar { public static void main(String[] args) { Car BWM = new Car(); BWM.setDoor("4"); BWM.setLicense("ABC"); BWM.setEngine("abc"); BWM.setSeat("4"); BWM.setWheel("4"); BWM.getDoor(); BWM.getLicense(); BWM.getEn...
18.285714
44
0.5
75fb3457f899cf86a6a8e690d85142f321884055
7,322
/* * Tencent is pleased to support the open source community by making Polaris available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); * you may not use this file except in compliance with the License. * You ma...
49.809524
121
0.729992
369c54b6ca42cf411e69983810f877655cc702dd
5,993
/** * 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...
29.668317
81
0.694811
bb42fac19c744010377845965005b6ca83d46d5e
3,944
package com.giggagit.cart.Controller; import java.net.URI; import java.net.URISyntaxException; import java.util.Optional; import com.giggagit.cart.Model.Cart; import com.giggagit.cart.Model.Product; import com.giggagit.cart.Service.CartService; import com.giggagit.cart.Service.ItemService; import org.springframework...
32.595041
105
0.690669
760e57e97c4b65d7282d4101be9220e465084788
1,039
import java.util.Arrays; public class LeetCode_242_750 { public static boolean isAnagram(String s, String t) { if(s.length() != t.length()) { return false; } char[] str1 = t.toCharArray(); char[] str2 = s.toCharArray(); Arrays.sort(str1); Arrays.sort(st...
22.586957
59
0.487969
beb1e24aee8e77d2be796b22c5acbff75a1ce72d
482
package com.datacloudsec.config.conf; import com.datacloudsec.config.CollectorEngineException; public class ConfigurationException extends CollectorEngineException { private static final long serialVersionUID = 1L; public ConfigurationException(String arg0) { super(arg0); } public Configur...
20.956522
70
0.721992
e7536b1313a215273c77ef2773e51e241487e069
1,982
package com.owera.common.db; public class ConnectionMetaData { private int accessed; private int thrownout; private int sqlex; private int retries; private int denied; private long startTms; private long usedTime; // We make this int-array big enough to accommodate 1000 parallell // connections, something //...
19.82
84
0.705853
0a25fa4940e622a9c2470ef0132204c09507e6a3
4,962
/* * Copyright 2013 Matthew Precious * * 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 la...
34.943662
95
0.679565
f11025e6f9622f76edb985b7a8ccd57353c4954b
2,548
/** * Copyright 2012 Twitter, 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 to i...
22.156522
75
0.648744
d91b4b349171a55b0356e8f794abb6c39d8a6d01
3,955
/** * ComboBoxControl.java * * Copyright (c) 2013-2016, F(X)yz * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * not...
35
114
0.71555
d9d1668ae8fee0340445b7c23a240a571043311d
7,893
/* @author: dephil Particle data construct Compilation (command line): > javac Particle.java Note: class to be used by Particle N-body code can in principle be used for 2D or 3D particles */ public class Particle { public double[] coords; // particle coords public double m = 1...
32.216327
137
0.587736
ba27af8dc6a531d552faf0baa0384538ffbeea48
3,038
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
29.784314
99
0.697498
22425eb1176998dab35eafcc96c3d8044b28bfd2
2,724
package com.hedtrot.perspective; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import android.view.View; public class Ma...
40.058824
113
0.666667
00d7eb8c6a774988eee8626bb9445cbf8438c5e8
2,165
package org.apache.samoa.learners.classifiers.rules.distributed; /* * #%L * SAMOA * %% * Copyright (C) 2014 - 2015 Apache Software Foundation * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the ...
25.470588
113
0.728868
a29b68a552b2f1f45b44193217bb184cf725fe55
17,379
/** * Copyright 2005-2013 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by a...
56.425325
190
0.749698
e1a7b6cc48cd6ed84a6068ef03141e6a3b8584e8
682
package com.bdoemu.gameserver.model.ai.deprecated; //@Deprecated public enum EAIBehavior { idle, dead, knockback, none, turn, recovery, chase, around, action, revive, escape, walk, return_, skill, trace, attack; public boolean isReturn() { re...
18.432432
104
0.605572
e1566df3deddf6d9a1a1f3bc43c51dcc3992a8d3
4,255
/* * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
37
117
0.705053
98f27a9d483720a90f846b0fbe2071b175fea63a
3,450
/** * Copyright (c) 2002-2014 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundati...
35.204082
111
0.597391
fa85029a46560a2d597d0118a2d189016b1767e8
5,171
package com.anomalydetect.ExponentialMoving; import com.anomalydetect.Result.Result; import com.anomalydetect.Tool.DetectTool; import com.anomalydetect.Tool.FileTool; import java.io.FileNotFoundException; import java.util.ArrayList; /** * 使用二阶指数平滑以及SGD进行自动化参数调整 * * @author mezereon E-mail:mezereonxp@gmail.com * ...
25.984925
96
0.495262
d918bdbeaaef9e8d0ed923c1a598a2c7cea9e286
3,868
package com.chillimport.server.controller; import com.chillimport.server.config.Configuration; import com.chillimport.server.config.ConfigurationManager; import com.chillimport.server.errors.ErrorHandler; import com.chillimport.server.errors.LogManager; import org.springframework.http.HttpStatus; import org.springfram...
44.45977
142
0.706825
32152cc614ad61cdeaf83d1bc9a6792d97a06833
522
/** * */ package org.spdx.tools; /** * @author Gary O'Neall * */ public class SpdxVerificationException extends Exception { /** * */ private static final long serialVersionUID = 1L; /** * @param msg */ public SpdxVerificationException(String msg) { super(msg); } /** * @param inner */ publ...
12.731707
64
0.637931
d237313eb6b12c1027024a1674db53fb22b1e290
2,113
package com.uwsoft.editor.view.ui.box; import com.badlogic.gdx.utils.Array; import com.kotcrab.vis.ui.widget.VisSelectBox; import com.runner.LibgdxRunner; import com.runner.NeedGL; import com.uwsoft.editor.Overlap2DFacade; import com.uwsoft.editor.proxy.ResolutionManager; import com.uwsoft.editor.renderer.data.Resolut...
39.867925
88
0.743966
07d3ded8ea5eb127b6da102ad385ced5cc8fb209
124
/** * 中台对{@code Plugin}输出的所有资源. * <p> * <p>资源,包括但不限于:RPC、Redis、JDBC、etc</p> */ package org.example.cp.oms.spec.resource;
20.666667
41
0.645161
a23c474c7e743d05b69d4aa8f0d4e5662835ff58
901
package com.la.service.publish; import org.camunda.bpm.engine.RuntimeService; import org.camunda.bpm.engine.TaskService; import org.camunda.bpm.engine.delegate.DelegateTask; import org.camunda.bpm.engine.delegate.TaskListener; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.st...
30.033333
111
0.72697
33dbc204d8769850e496fa418a9a33053ea58b53
2,221
package net.whg.nghaste.util; import net.whg.nghaste.IAxiom; import net.whg.nghaste.IDataType; import net.whg.nghaste.NodeGraph; /** * This axiom is wrapped around a specific data type to ensure that an output * plug connection may only connect to a single input plug. This axiom is * intended for use with data typ...
28.474359
84
0.609635
240bea1191166f067dcfb301edea1ae16e23ade2
2,589
/* * 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 u...
24.196262
118
0.716493
fa80feb27b826c779c6af572eafc1a464b39b6ce
772
package mage.cards.l; import mage.MageInt; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.SubType; import java.util.UUID; /** * @author TheElk801 */ public final class LazotepBehemoth extends CardImpl { public LazotepBehemoth(UUID ownerId, Card...
22.705882
77
0.681347
ce1a0377718472b9f51ca7974818ce59ab5b6386
5,216
package com.jakubhekal.datausage.managers; import android.content.Context; import android.content.SharedPreferences; import android.graphics.Color; import android.view.Gravity; import androidx.appcompat.app.AppCompatDelegate; public class PreferenceManager { SharedPreferences sharedPreferences; Context cont...
34.773333
111
0.708014
2c25168fe4f357d62751069929a1f853bcda2990
1,845
/* * An XML attribute type. * Localname: singleclick * Namespace: urn:schemas-microsoft-com:office:office * Java type: com.microsoft.schemas.office.office.SingleclickAttribute * * Automatically generated - do not modify. */ package com.microsoft.schemas.office.office; import org.apache.xmlbeans.impl.schema.Elem...
32.368421
212
0.744173
36912b668a71325dad682f642e20aa5ea540fb48
1,400
package cipher; import java.nio.ByteBuffer; import common.Bytes; import rsa.SecureSignature; public class EncFile { private FalseHeader false_header; private EncFileHeader header; private byte[] data; public EncFile(byte[] data, byte[] iv) { this.data = data; this.header = new EncFileHeader(iv); this.fals...
19.71831
59
0.702857
29d6d38f01ec0d940f32ed644d1d3a4344969ac3
2,614
/* * Copyright 2017-2021 original authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
29.044444
103
0.701607
385d0656eb52aa88ddc1a77e7b2555390242421a
9,651
package com.yx.admin.server.controller.sys; import cn.hutool.captcha.CaptchaUtil; import cn.hutool.captcha.CircleCaptcha; import cn.hutool.core.codec.Base64; import cn.hutool.core.util.RandomUtil; import cn.hutool.core.util.StrUtil; import com.yx.admin.server.annotation.SysLogOpt; import com.yx.common.core.Constants; ...
42.515419
195
0.700031
e012e099aae2c2bd31bfd75838a32cde6885cc0a
185
package com.mylibrary.InterFace; /** * Created by user88 on 7/12/2017. */ public interface CallBack { void onComplete(String LocationName); void onError(String errorMsg); }
16.818182
41
0.713514
bf3ffcb8d6806667aecce70da5ca6671011889bf
441
package com.dexmohq.springboot.sqlschema.example.model; import lombok.Data; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Data @Entity public class Address { @Id @GeneratedValue private Long id; private Strin...
16.333333
55
0.734694
d18b5412b44c1882f7219a3155bf6994bb468734
196
static public Complex pow(Complex a, double x) { return new Complex( Math.pow(a.abs(), x) * Math.cos(x * a.getArgument()), Math.pow( a.abs(), x) * Math.sin(x * a.getArgument())); }
28
67
0.596939
07bd1344774b9b445d4fe3ef35f5279cd1572aac
1,275
package com.at.gmall.manager.service.impl; import com.alibaba.dubbo.config.annotation.Service; import com.at.gmall.manager.mapper.PmsSkuImageMapper; import com.at.gmall.manager.mapper.PmsSkuInfoMapper; import com.gmall.beans.PmsSkuAttrValue; import com.gmall.beans.PmsSkuImage; import com.gmall.beans.PmsSkuInfo; import...
26.5625
79
0.751373
7b61696c8f647df2a45abd3fa286f2c422197e87
7,155
/* * 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 ...
41.842105
265
0.670021
51c0410a6e82b23ce0175afff0a34c65b01dd942
1,937
package com.oath.cyclops.vavr.collections; import static org.hamcrest.Matchers.equalTo; import static org.junit.Assert.assertThat; import java.util.Arrays; import com.oath.cyclops.types.persistent.PersistentSet; import cyclops.collections.vavr.VavrHashSetX; import cyclops.data.HashSet; import org.junit.Before; impor...
33.982456
128
0.688178
5165bd7dfb3cba2c29305890d5afa94977e88513
16,200
package java.com.yh; import com.intellij.openapi.components.ApplicationComponent; import org.jetbrains.annotations.NotNull; import javax.swing.*; import javax.swing.border.TitledBorder; import java.awt.*; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; public class MyForm implements Applicatio...
31.827112
243
0.556543
261b828e258e33212c1ef0eafd57a618ad286962
2,615
package com.alxgrk.eventalarm.activities; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import com.alxgrk.eventalarm.R; import com.alxgrk.eventalarm.activities.home.HomeActivity; import com.alxgrk.eventalarm.util.ErrorToast; import com.alxgrk.eventalarm...
37.898551
98
0.671128
41276630e364f32ad37446e2f6cfde528cfb5105
1,390
/******************************************************************************* * Copyright (c) 2004 Actuate Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is availabl...
29.574468
81
0.634532
8a615ad0c5c42e1b970a83b9239c34041cccff6a
65
package lui798.folkbot.util.config; public class MainConfig { }
13
35
0.784615
33deb4b4ba2ccbf8eb4577dd53f0af01b175d4b8
2,037
package com.eu.habbo.threading.runnables.teleport; import com.eu.habbo.Emulator; import com.eu.habbo.habbohotel.gameclients.GameClient; import com.eu.habbo.habbohotel.items.interactions.InteractionTeleportDoor; import com.eu.habbo.habbohotel.items.interactions.InteractionTeleportTile; import com.eu.habbo.habbohotel.ro...
37.722222
190
0.700049
8ea1e262d2f6b5941f588f431fb6e3ea75ff2d6f
1,500
package com.example.android.miwok; import android.app.Activity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.TextView; import java.util.ArrayList; public class WordAdapter extend...
31.25
100
0.7
4c04653eb0816d09cce5d01a2f8373ff19c81e70
2,336
package com.freddy.shine.java.example; import com.freddy.shine.java.ShineKit; import com.freddy.shine.java.cipher.ICipher; import com.freddy.shine.java.config.NetworkConfig; import com.freddy.shine.java.config.RequestMethod; import com.freddy.shine.java.config.RequestOptions; import com.freddy.shine.java.exception.Req...
30.736842
171
0.644264
badafea90cd3906e05977aa95026049d15b79e77
1,481
package firemerald.mechanimation.tileentity.machine.base.implementation.actual.oriented; import java.util.function.Function; import firemerald.mechanimation.tileentity.machine.base.IModeledOrientedMachine; import firemerald.mechanimation.tileentity.machine.base.fluids.IFluidInventory; import firemerald.mechanimation....
31.510638
187
0.820392
f1e9257f850c7eacbd6fa373ce1f7ecaf8ea0335
1,126
/* * 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 com.tatsinktech.web.model.school; import com.tatsinktech.web.model.AbstractModel; import java.util.HashSet; import ja...
25.022222
80
0.73357
2cb9d5ea07387cbde26988d654749d4e17eac3d5
6,688
/* * AutosaveBackupOptionPane.java - Autosave & backup options * :tabSize=8:indentSize=8:noTabs=false: * :folding=explicit:collapseFolds=1: * * Copyright (C) 2003 Slava Pestov * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as pu...
34.474227
83
0.755981
bec41b7f63b263773418af18dc4d20184163048b
5,068
package com.google.part1.linerlist.dynamicarray; // Author : CSR丶SUSE // Time : 2021/8/29 0:34 // TOOLS : INTELLIJ IDEA // FILENAME : DynamicArray.java // STATEMENT: 简易ArrayList实现 import org.testng.annotations.Test; import java.util.Arrays; @SuppressWarnings("unchecked") public class DynamicArray<T> implements Dy...
24.601942
73
0.492699
c106a289e82b79e4ba8183ccc0a7213109d6c6e0
612
package com.alsyun.comon.online.api.factory; import com.alsyun.comon.online.api.IOnlineBaseExtAPI; import com.alsyun.comon.online.api.fallback.OnlineBaseExtAPIFallback; import feign.hystrix.FallbackFactory; import org.springframework.stereotype.Component; /** * @author Markburt */ @Component public class OnlineBas...
27.818182
92
0.784314
ee4a4b60cf608c1848d646356e6e622fc31dffd8
3,690
package com.carrotsearch.examples.randomizedrunner; import java.util.Random; import org.junit.AfterClass; import org.junit.Test; import org.junit.runner.Description; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; import com.carrotsearch.randomizedtesting...
41.931818
97
0.748509
b3d038b83a374f44d18d6844a3b7df9112975b8c
3,910
/* * Project Sc2gears * * Copyright (c) 2010 Andras Belicza <iczaaa@gmail.com> * * This software is the property of Andras Belicza. * Copying, modifying, distributing, refactoring without the authors permission * is prohibited and protected by Law. */ package hu.belicza.andras.sc2gears.ui.moduls.mult...
39.494949
136
0.683632
06a79014c4e5d787e6468741ebdedccbb0d50b82
350
package com.glacier.common.security.config; import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.context.annotation.Configuration; /** * Feign配置 * * @author glacier * @version 1.0 * date 2020-02-10 19:33 */ @Configuration @EnableFeignClients("com.glacier.**.consumer") public...
19.444444
62
0.768571
68943ecaf8ef096f6fdf001e538931e418a854e8
5,811
/* * Copyright 2012 pmp-android development team * Project: PMP * Project-Site: https://github.com/stachch/Privacy_Management_Platform * * --------------------------------------------------------------------- * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file excep...
34.796407
110
0.627775
deae3ab7cad97a8eb629ca5fc6789da56768811d
1,672
package conjob.resource; import io.restassured.http.ContentType; import org.apache.http.HttpStatus; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import javax.ws.rs.core.MediaType; import static conjob.util.RestAssuredUtil.configTest; import sta...
32.784314
93
0.659689
67a6e5cde02823eb8a70e149dcfb1bd3e31b4f4d
543
package com.sandbox.worker.models.events; public class WorkerContextInactiveEvent extends WorkerEvent { private static final String type = "worker_context_inactive_event"; private String sandboxId; public WorkerContextInactiveEvent() { } public WorkerContextInactiveEvent(String workerId, String ...
20.884615
74
0.686924
beb03cf1246994bcd8eb1e0a413fdeae26f62553
344
package io.vertx.blog.async.step5; import io.vertx.core.AsyncResult; import io.vertx.core.Handler; import io.vertx.core.Vertx; /** * Created by clement on 11/08/2015. */ public interface MD5 { static MD5 create(Vertx vertx) { return new MD5Impl(vertx); } void md5(String message, Handler<AsyncResult<Stri...
18.105263
71
0.723837
b7111f4e23418a6366dbb07a18d9df03439ff60d
3,026
/* * Copyright (c) 2016 Matthew R. Harrah * * MIT License * * 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...
31.852632
113
0.651024
7007d5156c15d9de1cd2d0775627016dc85e3805
1,635
/* * Copyright 2014 University of Southern California * * 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...
29.196429
80
0.685627
dce56658eb8de642134442c0b9f2a18971060b45
3,586
/******************************************************************************************* * The MIT License (MIT) * * Copyright (c) 2013 Erik R Serating * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"...
35.156863
124
0.653653
b48a15ff4308a9d2f1529436a886d7f9686ca021
2,353
/* * Copyright DataStax, 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 to in wri...
39.881356
100
0.698683
d738eb3c4d54f8cc6850af70d215ebba05bc5e7f
2,822
package org.camunda.bpm.cycle.entity; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.persistence.CascadeType; import javax.persistence.CollectionTable; import javax.persistence.Column; import javax.persistence.ElementCollection; import javax.persistence.Entity; import javax.persis...
23.322314
106
0.74309
e95832e7c00178bd558c912c16b42d43d4f66ec4
542
package com.fcm.learning.exercises; import java.util.Arrays; public class ArrayLearning { public static Object[] reversrArray(Object[] input){ if(input.length<2){ return input; } for (int i = 0; i < input.length/2; i++) { Object temp = input[i]; input[i]=input[input.length-1-i]; ...
21.68
61
0.627306
9ebbabfeac0f555ba51483e1bb4af5eb19a9059c
666
package com.mycrawler.tutorial.mongo; import org.springframework.data.mongodb.core.MongoOperations; import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.data.mongodb.core.query.Query; import static org.springframework.data.mongodb.core.query.Criteria.where; import com.mongodb.Mongo; ...
33.3
91
0.765766
5722b7b98b7669b5ad5452419ffc33f91a0f8b29
872
package com.jiale.netty.core.util; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.RandomAccessFile; /** * @author mojiale@bluemoon.com.cn * @date 2019/10/9 * @description 文件操作工具类 */ public class FileUtils { /** * 以追加形式从fromIndex位置写入文件 * @param ...
27.25
98
0.68578
8dad5623848922bca18164561bb920033e05d565
1,787
/* * 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...
31.350877
81
0.753218
a5189ead7268d0f7547acb664009ccd9c57e7663
8,676
/* * 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 ...
28.728477
115
0.724527
3b25fbe59ae74f04c2783158fef0066b97938eb6
1,497
package ch.iec._61400.ews._1; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; import org.fortiss.smg.containermanager.api.devices.SIUnitType; /** * <p>Java class for tFC. * * <p>The following schema fragment specifies the expect...
20.791667
95
0.603874
c6423f519b11088e0c419584bb53764b63b3a656
504
package cn.laoshini.dk.domain.query; import lombok.Getter; import lombok.Setter; import lombok.ToString; /** * 分页查询条件 * * @author fagarine */ @Getter @Setter @ToString public class PageQueryCondition extends ListQueryCondition { /** * 页码,从1开始 */ private Integer pageNo; /** * 单页数据条数 ...
14
60
0.642857
6d898664e8d68e32c57f8105a9836cf1196b36db
1,719
package org.exponential.mechanisms; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.hardware.Servo; import org.exponential.superclasses.Mechanism; import static org.exponential.utility.Utility.sleep; public class WobbleGoalMover implements Mechanism { /*Servo leftMover...
26.859375
70
0.668994
368386b7a67faef86d8e95de022d44f0df5fe8f7
856
package de.bayerl.statistics.transformer; import de.bayerl.statistics.model.Table; /** * Transformations can be applied to tables. Row numbers are removed before transformation and again added afterwards. */ public abstract class Transformation { public abstract String getName(); public Table transform(Ta...
25.939394
118
0.682243
03bfb4ce8c54eba5969d6afad725163d826dd903
3,727
package hudson.plugins.warnings.parser; import hudson.plugins.analysis.util.model.FileAnnotation; import hudson.plugins.analysis.util.model.Priority; import hudson.plugins.violations.ViolationsParser; import hudson.plugins.violations.model.FullBuildModel; import hudson.plugins.violations.model.FullFileModel; import hu...
33.276786
148
0.667561
16ea18aeb228c879415d6b1fe48926f445d10156
304
package com.unloadbrain.games.rockpaperscissors.core; /** * The enum Game state. */ public enum GameState { /** * Ready to play game state. */ READY_TO_PLAY, /** * Waiting for move game state. */ WAITING_FOR_MOVE, /** * Finished game state. */ FINISHED; }
17.882353
53
0.588816
4985a64fd95cbb650d3e6858335198154b913175
3,635
import java.util.ArrayList; public class Traduction extends Principal { /** * Écrit un String html à partir des symboles (unicodes) * donnés en paramètre. Au milieu du String, il y a appel * à la méthode ajuster et tableau pour changer l'ordre * des symboles et creer un tableau dynamiqueme...
39.51087
101
0.501513
66330dbcbe45bb1760ad4eb2cbc04f3d9ac5e47e
7,640
package com.example.commontask.service; import android.app.IntentService; import android.content.ContentValues; import android.content.Intent; import android.database.sqlite.SQLiteDatabase; import com.example.commontask.model.Location; import com.example.commontask.model.LocationsContract; import com.example.commonta...
51.275168
132
0.681675
81899cb4315f713cb97ab7f45ff2c1f985706093
3,923
package io.github.oliviercailloux.assisted_board_games.checkers; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Optional; import org.checkerframework.checker.nullness.Opt; import org.hibern...
31.894309
135
0.723681
82b99929b82c1c84691be93931560fab0dbfab15
3,330
package android.telephony.gsm; /* * #%L * Matos * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2010 - 2014 Orange SA * %% * 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:...
38.72093
241
0.736937
bbd5019eb7e3cce26c05e314ea3914f402b8889a
130
package io.morethan.daggerdoc.model; /** * Type of a {@link Link}. */ public enum LinkType { DEPENDS_ON, CONTRIBUTES_TO; }
14.444444
36
0.676923
a2440bd37f076c24a970eebbd3eaa5a7e2275400
919
package org.javamaster.spring.test.utils; import feign.Client; import feign.Target; import static org.javamaster.spring.test.utils.ReflectTestUtils.reflectGet; import static org.javamaster.spring.test.utils.ReflectTestUtils.reflectSet; import java.util.HashMap; /** * @author yudong * @date 2021/5/18 */ public cla...
32.821429
107
0.704026
36c20ba5405fbba4cd4840521bc5fcddd9fb8bf4
4,799
package hibernate.v2.eightortwelve.ui.fragment; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.inputmethod.Edi...
28.565476
148
0.743697
ab825edc9679e5d461098341076c6506a9fda5b4
4,775
package entities; import java.io.Serializable; import java.time.LocalDateTime; import java.util.List; public class TempTrade extends Trade implements Serializable { private final LocalDateTime finishDate; /** * Creates a trade with an item that both the seller wants to sell * and the buyer wants t...
40.466102
109
0.634136
ed504159437e6b165729ebc8fc3d453abf4895ba
3,178
/* * Copyright (c) 2015 Dmitrii Shamrikov * * 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, copy, modify, merge, publis...
29.981132
93
0.690057
2c2249a00c0137e7fe95b4ae571c45e02fc4b1b9
7,591
/* * Copyright 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 applic...
34.504545
103
0.587143
3eafb4928003a586542e6ab802d84f6c1e014b3a
10,071
package com.example.android.scaletypeexplorer; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.PointF; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.MotionEvent; import android.view.View; import android.view.ViewCo...
40.284
107
0.626949
9e623926e6c203136b80c089da55b3af1fd4e87f
1,075
package com.yanimetaxas.realitycheck.reader; import static org.junit.Assert.assertNotNull; import com.yanimetaxas.realitycheck.exception.ValidationException; import java.io.File; import org.junit.Test; /** * @author yanimetaxas */ public class FileReaderTest { @Test public void readFile() throws Exception { ...
25
84
0.740465
7246bb7b5c07feb0c3c2f52a3d89fdb454472e73
7,509
package slimeknights.tconstruct.library.recipe.modifiers.spilling.effects; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonSyntaxException; import lombok.AccessLevel; import lombok.Getter; import lombok.RequiredArgsConstructor; import net.minecraft.entity.CreatureAttri...
31.55042
159
0.680783
d9bfae56bc67512b955c2efb338f7b06c421ca00
414
package enigma.service; /** * A data structure that holds all the necessary data for encoding a message. * * @author diegodc 2017-04-10. */ public class MessageRequest { public EnigmaModel enigmaModel; public String wheels = ""; public ReflectorModel reflector; public String ringSettings = ""; ...
21.789474
77
0.678744
a7802e884936f4ac80b4854c386bf4492b460b5a
5,442
/* * The MIT License (MIT) * * Copyright (c) 2016 Piasy * * 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, copy, ...
37.531034
98
0.68835
bd48879d34591621e33af5087e3cf515dae7ff7a
553
package stream.vis.net; /** * Struct containing the data that the server returns in response to * a register query command. The query might be a view or a query that * needs an output. */ public class RegQueryRet { /// The server assigned id for the query public int queryId; /// The output id (...
24.043478
73
0.667269
be4617ab38ac44a4e4d0162c1847caa3da7ab9be
471
package com.oop.memorystore.implementation.expiring.policy; import java.util.function.BiPredicate; public interface ExpiringPolicy<V, T extends ExpiringPolicy.ExpirationData> { String named(); default T createExpirationData(V value) { return null; } boolean checkExpiration(V value, T data); void onA...
20.478261
77
0.745223
56e2274e05e9eba14310a3bc8bc897803b281730
954
package ut.com.isroot.stash.plugin.mock; import com.atlassian.bitbucket.hook.repository.RepositoryHook; import com.atlassian.bitbucket.hook.repository.RepositoryHookDetails; import javax.annotation.Nonnull; /** * @author Sean Ford * @since 2017-09-04 */ public class StubRepositoryHook implements RepositoryHook { ...
21.2
69
0.68239
c3f44736dd4c997b8963766ec8d7d2eea250ca28
7,943
/* * Licensed to ElasticSearch and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ElasticSearch licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you may...
47.562874
119
0.731965
22d0547dfd189102abf80dbc2d1ab86b62526afe
854
package com.cidic.equipment; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4...
32.846154
105
0.834895
5c13bd9b249363fcf692429c07e135efd9a57b6f
3,751
package upf.edu.gephi.plugin.grouppartition.algorithm; import java.awt.Color; import java.util.HashMap; import java.util.Map; import org.gephi.graph.api.Edge; import org.gephi.graph.api.Graph; import org.gephi.graph.api.GraphFactory; import org.gephi.graph.api.GraphModel; import org.gephi.graph.api.Node; import org.ge...
39.484211
139
0.57398
08705f65afd504a600884d0d749f647b2b77ff35
251
package com.qa; import org.testng.annotations.Test; import java.math.BigDecimal; import static org.junit.Assert.*; /** * Created by yu on 2017/3/9. */ public class ConverTest { @Test public void sttsk(){ // BigDecimal s= } }
13.210526
35
0.645418
97acfcddcdf30f1b8180e9a840e8bc3831eb8b29
200
package example; public class Test { public static void main(String[] args) { System.out.println(String[].class); System.out.println(Iterable.class.isAssignableFrom(String[].class)); } }
22.222222
72
0.71
c2ec875149577ea07da7ca8fd5c7d58b892e2855
1,319
package cn.merryyou.security.server; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.oauth2.config.annotation.web.configuratio...
36.638889
112
0.752843
6ed1ae45e8a39394549b3146d48021ed2a9a21f2
5,950
package com.copilot.copilot; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.support.v4.app.Fragment; import android.os.Bundle; import android.util.Log; import android.view.Gravity; import android.view.LayoutInflater; import android.v...
35.628743
128
0.623697
56cd91b32bb057029c233a601ab7c066989f73ec
137
package hashcode2016.command; /** * @author vasilevn */ public enum CommandsEnum { PAINT_SQUARE, PAINT_LINE, ERASE_CELL }
12.454545
29
0.686131