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
18788c0504ae12807abce68a34dd06566d4ba081
5,106
/* * 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. */ import javax.swing.*; import java.awt.TextComponent; import java.awt.TextField; import java.awt.event.ActionEvent; imp...
33.155844
131
0.615354
269789ead1e7e40e24f9e9f31badae99363d3318
277
package jobs; import play.jobs.Job; import play.jobs.OnApplicationStart; import util.DcsSocket; @OnApplicationStart public class InitJob extends Job { @Override public void doJob() { DcsSocket socket = new DcsSocket(); new Thread(socket).start(); } }
16.294118
38
0.703971
84cd0665c42fb7598e13cb325bfc109c9724ce7d
2,527
package com.eu.habbo.habbohotel.commands; import com.eu.habbo.Emulator; import com.eu.habbo.habbohotel.gameclients.GameClient; import com.eu.habbo.habbohotel.modtool.ModToolBanType; import com.eu.habbo.habbohotel.rooms.RoomChatMessageBubbles; import com.eu.habbo.habbohotel.users.Habbo; import com.eu.habbo.habbohotel.u...
34.616438
177
0.597942
f2444a4464a0708c33abf3b8dd88d2b40a068efb
1,105
package com.cognifide.maven.plugins.vltco.vault; import org.apache.commons.cli2.CommandLine; import org.apache.jackrabbit.vault.cli.VltExecutionContext; import org.apache.jackrabbit.vault.util.console.CliCommand; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.concurrent.ExecutionException;...
26.95122
88
0.741176
3976e1e86e8d14172de0865aa1b1db9925076480
783
package com.triangleleft.flashcards.service; import com.triangleleft.flashcards.Call; import com.triangleleft.flashcards.service.vocabular.rest.model.WordTranslationModel; import com.triangleleft.flashcards.util.FunctionsAreNonnullByDefault; import retrofit2.http.GET; import retrofit2.http.Path; import retrofit2.http...
35.590909
85
0.704981
22c6c6454609fb6e46688c3d8be0d547d70e60f1
2,640
package WayofTime.alchemicalWizardry.common.renderer.block.itemRender; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.entity.Entity; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.IItemRenderer; import org.lwjgl.opengl.GL11; ...
32.195122
125
0.629924
707a7b83b9987666e9e53f94ddbf0d604cb2c9da
5,420
/* * * * Copyright (C) 2014 Divine Cloud 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 requ...
25.327103
78
0.605351
08f874afdfeed6369f91516a1a3c1db29b0336d6
2,716
package com.alipay.api.response; import java.util.List; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; import com.alipay.api.domain.OpenItem; import com.alipay.api.AlipayResponse; /** * ALIPAY API: koubei.quality.test.cloudacpt.item.query response. ...
18.731034
82
0.663476
90f677562986d706957e71cda917b7710dfa73d4
992
package net.ed.model.controllers; import java.util.List; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.query.Query; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotati...
21.565217
64
0.771169
a181bdf4f7b33ddf0edb87cb174eb10bbcd2f1fc
8,572
package taskmeter.view; import java.awt.AWTException; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.awt.event.ActionEvent; import java.awt.ev...
25.211765
96
0.74405
41d53c77f5b123ca598146fc905559a84f6093ce
1,695
/* * Copyright (c) 2019. houbinbin Inc. * heaven All rights reserved. */ package com.github.houbb.heaven.util.lang.reflect; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; /** * 反射方法工具类 * * @since 0.0.2 * @author bbhou */ public final class Reflect...
28.728814
84
0.631858
9a265552d8be5d228ed48b96acf0e8eaabc6f2d8
3,077
package org.apache.spark.scheduler; /** * Description of a task that gets passed onto executors to be executed, usually created by * <code>TaskSetManager.resourceOffer</code>. * <p> * TaskDescriptions and the associated Task need to be serialized carefully for two reasons: * <p> * (1) When a TaskDescription i...
83.162162
503
0.748781
95eea6249874421f700607e3776e71c4fb1d7391
4,713
package org.openas2.lib.message; import java.util.NoSuchElementException; import java.util.StringTokenizer; public class Disposition { // The MDN has been automatically generated public static final String DISP_AUTOMATIC_ACTION = "automatic-action/MDN-sent-automatically; "; // The message has been processe...
28.91411
106
0.707829
0f72e9ef2a301bacbd304a05c1959256a593571f
17,218
/************************************************************************** * Copyright (c) 2001 by Acunia N.V. All rights reserved. * * * * This software is copyrighted by and is the sole property of Acunia N.V. * * and its licens...
19.259508
243
0.446858
5e6689a0a5ffd8b7e29462790fef70e02271c7f9
3,191
/* * 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 * distribu...
47.626866
110
0.715136
271c6a8828fc35a5f6926aca18a0dcdad50f738d
4,114
/******************************************************************************* * Copyright 2011 Joachim Ansorg, mail@ansorg-it.com * File: GlocalLocalVarDefInspection.java, Class: GlocalLocalVarDefInspection * Last modified: 2011-04-30 16:33 * * Licensed under the Apache License, Version 2.0 (the "License"); * ...
39.180952
128
0.614973
fb19671578b0b586734b38c62ac795199b31f843
3,039
/* * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
36.614458
87
0.69332
6fa77e67af4e5bf630fd6a76736d2e1de9fb8a67
694
/** * Java WordNet Library (JWNL) * See the documentation for copyright information. */ package rita.wordnet.jwnl.princeton.wndata; import java.util.Map; import rita.wordnet.jwnl.JWNLException; /** <code>FileDictionaryElementFactory</code> that produces elements for the Princeton release of WordNet v 1.7 */ publ...
30.173913
114
0.805476
8e2b6433d76a28414751f20cc1437ffa6ee67ca0
1,485
import crawler.SnapshotParser; import csv.CsvWriter; import java.io.File; import java.io.IOException; import static utils.Constants.*; public class App { //Start date = jul 2008 public static void main(final String[] args) { downloadSnapshots(); getMostRecentSnapshots(); parseSnapsh...
26.517857
98
0.641077
37617cf85629949cb7133a0cb0e0a878878e5269
340
package com.googlecode.transloader.test.fixture; public class SelfAndChildReferencingParent extends WithStringField { private Object self = this; private Object child; public SelfAndChildReferencingParent(String stringFieldValue) { super(stringFieldValue); } void setChild(Object child) { this.chi...
22.666667
69
0.758824
f4289ba6c2910a55b95bbf643709e4855e823766
272
package no.deichman.services.entity.external; /** * Responsibility: provide tools for testing mapped objects. */ public class MappingTester { public final String simplifyBNodes(String data) { return data.replaceAll("\"_:[^\"]+\"", "\"_:0000000\""); } }
24.727273
64
0.669118
26c4408ef601b191bd47a5cafe660393b9586dc1
26,680
/* * 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...
37.107093
151
0.623238
5ac1172a52fa746e62cab042bd742e90103286fb
3,908
/* * @(#)CssMappedConverter.java * Copyright © 2021 The authors and contributors of JHotDraw. MIT License. */ package org.jhotdraw8.css.text; import org.jhotdraw8.annotation.NonNull; import org.jhotdraw8.annotation.Nullable; import org.jhotdraw8.collection.ReadOnlyMap; import org.jhotdraw8.css.CssToken; import org....
31.516129
137
0.632293
e6e6d3d58df10c7a26031e000546bd28c92a95fd
3,050
package fluxnetworks.common.network; import fluxnetworks.common.handler.PacketHandler; import fluxnetworks.common.tileentity.TileFluxCore; import io.netty.buffer.ByteBuf; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.nbt.NBTTagCompound; import ...
38.607595
104
0.652787
abc9ff4f8928df28aadbc04351a6cf269e67d342
5,127
package org.springframework.web.servlet.mvc.method.annotation; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import com.oracle.svm.core.annotate.Alias; impor...
41.016
208
0.840257
63fb904a6bf8341ac13dad4d284711a38d941c1f
776
package com.ipci.ngs.datacleaner.commonlib.utilities; public final class JavaJarProcess { private final String[] command; private final String[] javaArguments; public JavaJarProcess(final String[] javaArguments, final String[] command) { this.javaArguments = javaArguments; this.command = command; } publ...
23.515152
89
0.637887
713bdb43c270196259e5750fc413ae22ee890f08
6,679
/** * 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.74375
136
0.666267
ca6a3ecb124696772edc56ba238897df79aa0be1
1,319
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.bearsoft.org.netbeans.modules.form.bound; import com.bearsoft.org.netbeans.modules.form.RADProperty; import com.bearsoft.org.netbeans.modules.form.RADVisualComponent; import com.eas.client.forms.comp...
33.820513
139
0.698256
23fa13e472ef372f6a92e7a469d56f10a948fc8d
3,924
/* Copyright (c) 2012 Javier Ramirez-Ledesma Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ package msti.io; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.net.DatagramPacket; import java.net.DatagramSocket; imp...
36.672897
244
0.721203
64d2794fd2cd29e1948072085270acb939284775
775
package com.github.k4zoku.configuration.base; public abstract class ConfigurationOptions { protected final Configuration configuration; protected char pathSeparator = '.'; protected ConfigurationOptions(Configuration configuration, char pathSeparator) { this.configuration = configuration; ...
25.833333
85
0.709677
22d50ae1af9f2217bab267fd4dbd7566f74746a6
1,864
/* * Copyright 2015-present Facebook, 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...
28.242424
78
0.726395
59b2b797d2e0c5e31c1e77e3eda193ab9284822c
2,112
package com.crm.info; import java.io.Serializable; import java.sql.Timestamp; public class Device implements Serializable { public Integer Device_Id; public Integer BranchShop_Id; public String Device_Name; public String Device_Address; public String Device_Only; public Integer Device_State; public Timestam...
24.275862
111
0.747159
ab4f3dd1407686151cc4a051c097fa9b3ea36f32
268
package io.jenkins.blueocean.commons; import org.junit.Assert; import org.junit.Test; public class JSONTest { @Test public void sanitize() throws Exception { Assert.assertEquals("hello vivek :)", JSON.sanitizeString("hello\r vivek\n\t :)")); } }
22.333333
91
0.690299
4a8ee3dde98858e021c37e1da959636710cae85f
3,951
package edu.unm.health.biocomp.molcloud; import java.io.*; //BufferedReader,StringReader,ByteArrayInputStream import java.util.Random; import java.awt.*; //BasicStroke,Color,Graphics2D,Rectangle,Canvas,Label import java.awt.geom.*; //Line2D,geom.Rectangle2D,AffineTransform import java.awt.image.*; //BufferedImage i...
34.060345
150
0.686662
468912a1933b588b1efa2adb2843ff1044133970
5,405
package com.joppegames1.tvstudio.common.blocks; import net.minecraft.block.AbstractBlock; import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.block.RedstoneTorchBlock; import net.minecraft.item.BlockItemUseContext; import net.minecraft.state.BooleanProperty; import net.minecra...
40.639098
196
0.689732
1d01f51ddfbe567013856ee4dd8727ed440b310d
327
package net.atlassian.cmathtutor.domain.persistence.descriptor; public class IllegalOperationException extends Exception { /** * Generated by Eclipse */ private static final long serialVersionUID = 992990681976919280L; public IllegalOperationException(String message) { super(message); ...
23.357143
69
0.730887
841c02741c44df422bbb94fd014b035afcf5a613
10,304
/* * Copyright 2017 Skolkovo Institute of Science and Technology * * 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 require...
46.414414
130
0.741071
5a830fa880b5582bdf4d44aa3ffe9921c0a8bae5
4,664
/* * JBoss, Home of Professional Open Source * Copyright 2017 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Vers...
34.80597
83
0.588122
cea5c106fdcaf9b22eef4be606ae90619755d1cc
991
package me.savikin.kris.common; import me.savikin.kris.common.blocks.BlocksInit; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import ne...
26.078947
81
0.752775
0bcaa8d9fa3dc167f822332fb9c16a5d2a9e9e68
2,899
package com.example.waiter; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.LinearLayout; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.F...
39.712329
133
0.723353
98720019b919716c5d8117014b40b2f773bd365b
873
package com.tanzu.twopair.converter; import java.util.List; import java.util.stream.Collectors; import org.springframework.stereotype.Component; import org.modelmapper.ModelMapper; import com.tanzu.twopair.dto.DomainsDTO; import com.tanzu.twopair.model.Domains; @Component public class DomainConverter { public Do...
25.676471
79
0.760596
0b8da259b4b3620293a05c592530c00ab50239f1
9,005
package net.glowstone.command.minecraft; import com.google.gson.Gson; import com.google.gson.JsonSyntaxException; import com.google.gson.reflect.TypeToken; import net.glowstone.entity.GlowPlayer; import net.glowstone.net.message.play.game.TitleMessage; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import or...
23.885942
146
0.614214
c953aecfd77eaffd2ca7192439f9b718b68268d7
23,648
/** * 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...
49.57652
172
0.769325
4719a994d9339af4f45a41032437b2989ad49003
903
package com.chwangteng.www.mapper; import com.chwangteng.www.pojo.Laboratory; import com.chwangteng.www.pojo.LaboratoryExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface LaboratoryMapper { int countByExample(LaboratoryExample example); int deleteByExample(Laboratory...
29.129032
114
0.786268
2a99c7976ad1d2e6624b8e58b2381aa51d157bb3
2,271
package net.i2p.android.preferences.util; import android.content.Context; import android.content.res.TypedArray; import android.support.v7.preference.EditTextPreference; import android.util.AttributeSet; import net.i2p.android.router.R; public class ConnectionLimitPreference extends EditTextPreference { private ...
29.115385
109
0.648173
d0b037f263a6444063e227e51e4acda7c6b20892
339
package ch.rohner.h2.iwb; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class IwbApplicationTests { @Test public void context...
19.941176
60
0.781711
2d0f821b8ecb8a6fbb64b0aa7cd1e739d0fde86a
2,435
package com.deliveredtechnologies.terraform.api; import com.deliveredtechnologies.io.Executable; import com.deliveredtechnologies.terraform.TerraformCommand; import com.deliveredtechnologies.terraform.TerraformCommandLineDecorator; import com.deliveredtechnologies.terraform.TerraformException; import com.deliveredtech...
32.039474
133
0.786448
1887a67e3cb615cecdb030236de00c9b10fec15c
2,393
package io.walkers.planes.fundhelper.service; import io.walkers.planes.fundhelper.dao.FundDao; import io.walkers.planes.fundhelper.entity.model.FundModel; import io.walkers.planes.fundhelper.entity.model.FundValueModel; import io.walkers.planes.fundhelper.listener.DownloadFundValueEvent; import lombok.extern.slf4j.Slf...
26.01087
80
0.659005
ea9b8477147b820d54a496f238a4d87c4614a97d
8,556
package com.flopcode.getpix; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.Service; import android.content.Intent; import android.net.nsd.NsdManager.RegistrationListener; import android.os.Environment; import android.os.Handler; import android.os.HandlerThread; import and...
32.409091
123
0.659303
3c93614ba8124aabd7e9c5a8eb9bc48a4d6acfdb
1,210
package cn.itdeer.common.fields; import java.text.DecimalFormat; import java.util.Random; import static cn.itdeer.utils.Constants.*; /** * Description : Float类型字段 * PackageName : cn.itdeer.common.fields * ProjectName : DataToMySql * CreatorName : itdeer.cn * CreateTime : 2020/02/03/11:46 */ public class FloatF...
19.836066
91
0.609917
ce72592ee1027c6df40d487b0d29182758b4e077
3,602
package dev.magicmq.lettucewrap.bukkit; import dev.magicmq.lettucewrap.RedisClientWrapper; import org.bukkit.plugin.java.JavaPlugin; /** * A wrapper class that wraps lettuce's RedisClient class. This class should only be used with Bukkit plugins. * @see RedisClientWrapper */ public class BukkitRedisClientWrapper e...
46.779221
161
0.705997
818cfff9d02124e0a369a17a2e9de5141cb36fd8
809
package ro.msg.learning.shop.model; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import lombok.ToString; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table;/* */ @NoArgsConstructor @AllArgsConstructor @Entity @Table(name = "Locat...
26.096774
60
0.741656
24cc1e936cfa41af4a08f5361edb3086fc9a612f
9,666
package es.sacyl.gsa.si.ui; import com.vaadin.flow.component.Html; import com.vaadin.flow.component.datepicker.DatePicker; import com.vaadin.flow.component.grid.Grid; import com.vaadin.flow.component.grid.GridVariant; import com.vaadin.flow.component.html.H5; import com.vaadin.flow.component.html.Paragraph; import com...
41.844156
603
0.64939
8c3cb9b3ad2fdbc7fbd9de45b9323f5db8baed4f
1,621
package springfive.cms.domain.resources; import java.util.Arrays; import java.util.List; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.spring...
31.784314
89
0.774213
db1ddf0f93f70aa3aabf4a8718d44696ee8c62da
8,634
package com.github.zengfr.conuniframework.util; import java.util.*; import java.util.Map.Entry; import com.google.common.collect.Table; import com.google.common.collect.Table.Cell; /** * @author zengfr * @author https://github.com/zengfr/conuniframework-util * @author https://gitee.com/zengfr/conuniframework-util * @au...
65.409091
244
0.821056
b5eca278f8cd5c37150420fc1096c9c906a921d0
5,360
/* * Copyright 2016-present Open Networking Laboratory * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
41.230769
104
0.585261
fec0b39f75c74c2a8e677adb48b649d47d5aaf2b
374
package _08final.SpaceX_Invaders.model; import java.awt.*; public interface Movable { public static enum Team { FRIEND, FOE, FLOATER, DEBRIS } //for the game to move and draw movable objects public void move(); public void draw(Graphics g); //for collision detection public Point getCenter(); public int g...
17
48
0.727273
22ac9482c348fff78107716052ae4cd18c9bc273
1,797
package com.rejowan.cutebutton; import android.graphics.Color; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { /* CuteButton Library for Android Created by K M Rejowan Ahmmed (ahmmedrejowan) Min Api 21 Target Api 30...
32.089286
77
0.712298
8f34ee06e46ce2f968c0d2251c76dff220526116
590
package com.hisense.hiatmp.asn.v2x.MsgFrame; import org.junit.Test; import java.io.ByteArrayInputStream; import java.io.IOException; /** * @author zhangyong * @date 2020/12/17 14:55 */ public class TimeConfidenceTest { @Test public void per_decode() throws IOException { //-112 -100 byte...
22.692308
74
0.664407
d39e08ed6ba84561343dcf14dae41d534b25ba94
285
package io.beanmapper.spring.web.mockmvc.fakedomain; import io.beanmapper.annotations.BeanIgnore; import io.beanmapper.annotations.BeanProperty; public class ContainingFakeForm { @BeanProperty(name = "fake") public Long fakeId; @BeanIgnore public String passMe; }
19
52
0.764912
01f5478340d3447b20dfd1cafb8340048e42af1f
5,603
/** * Copyright 2016 Universita' degli Studi di Salerno 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...
30.451087
220
0.745315
7a72cca7e489ebc66742c59d782266a054f2abc6
3,083
/* * Created on 22.03.2004 * * Copyright (C) 2004-2014 Andrey Kholmanskih * * 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...
24.862903
75
0.746675
31cce680b9a1c8a94f172657bf2ce13828c1db6e
10,781
/*- * Copyright (C) 2006-2009 Erik Larsson * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is...
33.902516
103
0.754568
e83218fd627d32b72dc49c01fe20caa31e245ee5
10,690
package com.marsss.listeners; import com.marsss.Bot; import com.marsss.vccallerphone.AudioStorage; import com.marsss.vccallerphone.VCCallPairer; import com.marsss.vccallerphone.AudioStorage.Audio; import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.Permission; import net.dv8tion.jda.api.entities.Guild...
32.492401
159
0.649205
d66cab1671250cd929274b61e95ce27c8a032ce3
2,145
package org.gamegogo.LambdaExpressions.ReferenceWithDifferentObjects; class InstanceMethWithObjectRefDemo { // A method that returns the number of occurrences // of an object for which some criteria, as specified by // the MyFunc parameter, is true. static <T> int counter(T[] vals, MyFunc<T> f, T v) { ...
39
77
0.568765
529a21d2e4f14bead0cd37a12908cf8ad25fd2dc
31,077
package org.nem.nis; import org.hamcrest.MatcherAssert; import org.hamcrest.core.*; import org.junit.*; import org.nem.core.crypto.*; import org.nem.core.model.*; import org.nem.core.model.primitive.*; import org.nem.core.time.TimeInstant; import org.nem.nis.cache.DefaultAccountStateCache; import org.nem.nis.state.Acc...
40.255181
248
0.733629
a840f22c64fdf23b2d48362693892e93ef470c27
9,535
package de.hsmannheim.routing.here; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import de.fhpotsdam.unfolding.data.Feature.FeatureType; import de.fhpotsdam.unfolding.data.ShapeFeature; import de.fhpotsdam.unfolding.geo.Location; import processing.core....
36.673077
127
0.724594
7335cd25f12e1e3512d3cc819be8d448daa26596
1,143
package com.redis.lock.lottery; import java.security.SecureRandom; import java.util.HashSet; import java.util.Iterator; import java.util.Set; /** * 抽奖程序 * * @author legend * @version 1.0 * @description * @date 2020/9/10 */ public class Lottery { /** * 抽奖的名单 */ static String[] QQ = {"legend",...
21.166667
70
0.51706
8c8803ccf2ac37023e26d9d682be0db75b023bdd
94
package jli; public abstract class CS_1<T, U extends CS_1<T, U>.R> { public class R {} }
15.666667
55
0.648936
ed33f9499b642bd9b8f92d3a90798cea9449ed8c
56
package io.undervolt.api.event; public class VEvent {}
14
31
0.767857
b3e9b5bfc72da86856fbbf5c28384f02eb90e64b
12,782
/* * The MIT License (MIT) * * Copyright (c) 2015 NBCO Yandex.Money LLC * * 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 ...
33.904509
100
0.614771
eb5c0d7718ef98bff397cf08daa73b64be6afd66
1,060
package io.github.biezhi.json.gson; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import io.github.biezhi.model.Person; import io.github.biezhi.utils.BeanData; import io.github.biezhi.utils.PrintUtils; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import ja...
28.648649
123
0.686792
14353c4152043a3a2a74b670db07e5f7718e1a9b
339
package com.github.nhojpatrick.cucumber.json.transformations.whitespace.exceptions; public class WhitespaceSuffixException extends WhitespaceTransformationArgumentException { public WhitespaceSuffixException(final int suffix) { super(String.format("Whitespace suffix must be positive but was %d.", ...
30.818182
87
0.775811
0a69c6dcaae78f23a52b03e3fc60a86d748c209d
281
package org.kmrn.jsql.sql; public enum Keyword { SELECT("SELECT"), FROM("FROM"), AS("AS"), WHERE("WHERE"), BRKT("BRKT"), AND("AND"); String name; private Keyword(String value) { name = value; } public String toString() { return name; } }
18.733333
87
0.569395
e2bea6eca5ff0a73f17786fb899457df53a99a83
241
package org.semanticweb.owlapi.docstore; /** * @author Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group, Date: 25/10/2014 */ public interface WriteOperation<R> { R execute(DocumentStore documentStore); }
24.1
106
0.763485
1ffe56a2e75ffb6508cae7f242343456be4a7e04
2,046
/* * Copyright 2019 Couchbase, 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 ...
25.259259
94
0.671554
17dd3fd162d53a0c8c9d5c4433961977c0a3ae8e
1,649
package org.mybatis.generator.api.dom.java.render; import java.util.ArrayList; import java.util.List; import org.mybatis.generator.api.dom.java.CompilationUnit; import org.mybatis.generator.api.dom.java.Field; import org.mybatis.generator.api.dom.java.JavaDomUtils; public class FieldRenderer { public List<Stri...
28.431034
84
0.600364
3baefca7d3b95f80e26e2ad9449fa9a26ec47e7b
65,550
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2019.07....
23.211756
135
0.607368
df2aaa89ef29351c5bd6e52703eb919b7b7557e1
650
package leetcode._05; import org.junit.Test; import static org.junit.Assert.*; /** * @author wenqi.wei created on 16/11/27 * @version 1.0 */ public class LongestPalindromicSubstringTest { @Test public void testLongestPalindrome() throws Exception { LongestPalindromicSubstring test = new LongestPa...
29.545455
77
0.706154
3060975dd02e3caad5d95d6ab3efb0bcc0838753
377
package td5.p1.personnage; import td5.p1.arme.Epée; public class Orc extends Personnage { private int earSize; public Orc() { this(null, 0); } public Orc(String n, int e) { super(n); this.setEarSize(e);; super.setWeapon(new Epée()); } public int getEarSize() { return earSize; } public void se...
13.464286
38
0.660477
68282f718084157947b4e11379d6e4e8001361c3
403
package ru.stqa.pft.sandbox; public class Point { public double x; public double y; public Point (double x, double y){ this.x=x; this.y=y; } public double distance(double x, double y) { double dx=this.x-x; double dy=this.y-y; return Math.sqrt(dx*dx + dy*dy)...
16.791667
49
0.555831
a439f0084544f1c466112f0d12999f5f39f16fef
2,391
/* * The contents of this file are subject to the OpenMRS Public License * Version 1.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://license.openmrs.org * * Software distributed under the License is distributed on an "AS ...
31.88
93
0.660393
39129fa6daee10d10b698827f3dbc6cb19234029
11,317
/** * MIT License * * Copyright (c) 2020 Mark Schmieder * * 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, ...
38.493197
94
0.66325
c9a322b655e0f53a6e8c4490468a784293f5eb3b
3,378
package uk.dangrew.gnocchi.grid.model; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import javafx.scene.paint.Color; import uk.dangrew.gnocchi.grid.square.Square; public class GridModel { private final GridBuilder builder; ...
27.024
74
0.59177
adf4ca62994c0284ff363b505e1b1edce55bfb4b
2,016
package org.platformlayer; import java.util.Iterator; import java.util.List; import org.platformlayer.common.UntypedItem; import org.platformlayer.common.UntypedItemCollection; import org.platformlayer.xml.XmlHelper; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom....
26.88
104
0.733135
90d0e1696b2cf2c21c6218a149dd1dfabbf05946
1,311
/*=========================================================================== Copyright (C) 2016-2017 by the Okapi Framework contributors ----------------------------------------------------------------------------- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except i...
38.558824
78
0.592677
854a4a30427d1ac3db04d4d603f069572682302f
9,610
package com.ejoy.tool.ui.douyin.fragment; import android.os.CountDownTimer; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.RecyclerView; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.RelativeLayout; import com.ejo...
31.611842
151
0.615297
bf340600a9d1ecda04f5e46a947bcfaa16f95f83
2,838
package io.jenkins.plugins.dotnet.commands.msbuild; import edu.umd.cs.findbugs.annotations.NonNull; import hudson.Util; import hudson.util.ComboBoxModel; import hudson.util.FormValidation; import io.jenkins.plugins.dotnet.commands.CommandDescriptor; import io.jenkins.plugins.dotnet.commands.Messages; import org.jenkin...
30.847826
126
0.706131
30246e152f149110b29f4ee85c2b4b489ce9b3fd
5,543
package backtype.storm; import java.util.Enumeration; import java.util.Map; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.apache.thrift7.TException; import backtype.storm.generated.ClusterSummary; import backtype.storm.generated.KillOptions; impo...
23.192469
77
0.700884
11df24aa8faae69bf204cb77be7e295006bff689
9,074
/** * Copyright © 2016, Evolved Binary Ltd. <tech@evolvedbinary.com> * 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 *...
36.151394
152
0.595438
662ea8c9a9d7b68995f6a1bf49982e4e7e3de38a
1,396
package mass3d.springframework.mass3dpetclinic.services.springdatajpa; import mass3d.springframework.mass3dpetclinic.model.Owner; import mass3d.springframework.mass3dpetclinic.repositories.OwnerRepository; import mass3d.springframework.mass3dpetclinic.repositories.PetRepository; import mass3d.springframework.mass3dpet...
34.04878
129
0.800143
e01f680c6ac9bfae05d3f2c12dd3cea90ef1ae85
29,451
/* * This file is part of Pebble. * <p> * Copyright (c) 2014 by Mitchell Bösecke * <p> * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ package com.mitchellbosecke.pebble; import static org.assertj.core.api.Assertions.assertThatExcep...
33.467045
142
0.664595
7a79f8caca8dc7d37deefeb33c975fe22221e822
128
package com.gentics.mesh.core.rest.node.field.list.impl; public class StringFieldListImpl extends AbstractFieldList<String> { }
32
68
0.828125
9568f697ecb8cf9f53ce8113044e263e046f510f
626
package edu.berkeley.nlp.io; /** * Constructs a token (of arbitrary type) from a String and its position in the * underlying text. */ public interface LexedTokenFactory<T> { /** * Constructs a token (of arbitrary type) from a String and its position in * the underlying text. * * @param str * ...
28.454545
79
0.651757
4f1b92e25cb8d13b6ba1e92193a1b8fd2318a8ce
2,215
/* * Copyright (C) 2012 The CyanogenMod 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 ...
30.763889
90
0.638826
2b5f1a25b2916c913800070670a1d8bb17d66d27
764
package main.utils; /** * A {@code Refreshable} view allow reuse of the graphical user interface without reloading. */ public interface Refreshable { /** * Clears user interface, resetting it to its' initial state. */ default void clear() { System.out.printf("The method 'clear()' is not yet impleme...
25.466667
107
0.643979
2b6028e5bede05bf07d142d8ede3a0fab8f548da
8,795
/******************************************************************************* * Copyright (c) 1998, 2013 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. ...
39.617117
88
0.659693
0cdf591c52f4413e2c598b57225c93d973bc77f4
7,526
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. package com.microsoft.azure.kusto.data; import com.microsoft.azure.kusto.data.format.CslDateTimeFormat; import com.microsoft.azure.kusto.data.format.CslTimespanFormat; import org.json.JSONException; import org.junit.jupiter.api.Assertions; imp...
37.073892
208
0.695456
8b1f60d4aa10a0c7e5cd32bc6bd29764613fffa2
1,063
package at.chaosfield.packupdate.common; public enum ProgressUnit { Scalar, Percent, Bytes; private static final int Kibibyte = 1024; private static final int Mebibyte = Kibibyte * 1024; private static final int Gibibyte = Mebibyte * 1024; public String render(int number) { switch...
32.212121
82
0.494826
faa313028c592318c4af675cc559605f0645af12
1,420
package com.javaweb.web.rbac.controller; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import net.sf.json.JSONArray; import net.sf.json.JSONObject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.Med...
28.979592
79
0.766197