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
83787a6b4bbfe9af7d8ccde734a6aaaa4ae1a5e5
9,833
/** */ package gluemodel.CIM.IEC61970.Wires.impl; import gluemodel.CIM.IEC61970.Core.impl.PowerSystemResourceImpl; import gluemodel.CIM.IEC61970.Wires.BusbarSection; import gluemodel.CIM.IEC61970.Wires.RegulationSchedule; import gluemodel.CIM.IEC61970.Wires.VoltageControlZone; import gluemodel.CIM.IEC61970.Wires.Wir...
32.667774
184
0.731821
65bf3f0a63c888ddee02321c2a795c5e8e1f8461
416
package odms.commons.model._enum; public enum EventTypes { USER_UPDATE("USER"), CLINICIAN_UPDATE("CLINICIAN"), ADMIN_UPDATE("ADMIN"), COUNTRY_UPDATE("COUNTRY"), APPOINTMENT_UPDATE("APPOINTMENT"), REQUEST_UPDATE("REQUEST"), BLOOD_TEST_UPDATE("BLOOD_TEST"), USER_DELETE("USER_DELETE"); ...
19.809524
38
0.670673
a336c2116cd8c639949c1c98f755852526a9d992
3,959
package org.nhindirect.stagent; import junit.framework.TestCase; import org.nhindirect.stagent.DefaultNHINDAgent; import org.nhindirect.stagent.cert.impl.KeyStoreCertificateStore; import org.nhindirect.stagent.trust.DefaultTrustAnchorResolver; import org.nhindirect.stagent.utils.BaseTestPlan; /** * Generate...
29.766917
93
0.742612
301195eabd1301ea94ed4fa48f94fd15aae79e5d
178
package com.siziksu.annotations.data.bus.event; public class GetIntegerEvent { public int integer; public GetIntegerEvent(int integer) { this.integer = integer; } }
16.181818
47
0.735955
e4723616343252c70eca931a4ed361d5743b5bbf
1,110
import java.util.Objects; public class Clientes extends Pessoas { private Endereco adress; public Clientes(String nome, String cpf, String email, String telefone, Endereco adress) { super(nome, cpf, email, telefone); this.adress = adress; } public Clientes() { } public Ender...
24.666667
117
0.545045
302a92c13d4491885c424ad740eb32bc4a8c22c2
4,891
package com.youdevise.fbplugins.tdd4fb; import static com.youdevise.fbplugins.tdd4fb.TestingBugReporter.tddBugReporter; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.instanceOf; import static org.hamcrest.Matchers.is; import static org.junit.Assert.fail; import static org.moc...
37.335878
158
0.680638
a2c3e1eba359c62cc3b55a654e45721007ffea0f
218
package com.github.wxiaoqi.security.demo.mybatis.mapper; import com.github.wxiaoqi.security.demo.mybatis.entity.User; import tk.mybatis.mapper.common.Mapper; public interface UserMapper extends Mapper<User> { }
31.142857
61
0.798165
d7c1a56d988c8db949874fc86fc43f5df7a00f83
104
public class MyJavaClass { boolean ffff() {} { boolean b = ffff(<caret>239); } }
10.4
37
0.509615
9c1fdddea8eb994a868376249c907095c0510b9f
1,812
package com.haohan.platform.service.sys.modules.xiaodian.core.order.entity.req; import org.hibernate.validator.constraints.NotBlank; import java.math.BigDecimal; /** * @author shenyu * @create 2019/1/2 */ public class WxAppGoodsOrderReq extends BaseOrderReq<WxOrderDetailReq> { @NotBlank(message = "appid can n...
23.230769
79
0.629139
6ba23c9ea40f8ce4dd043e89fbf1b1cc4acbf7f0
3,885
/* * Copyright (c) 2000, 2020, 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 ...
32.375
102
0.695495
2944eccc915b7c854f780acc9c4ab77a20e55ae4
622
package com.patient.constant; import android.net.Uri; import com.patient.db.table.DiseaseTable; /** * <dl> * <dt>ProviderConstant.java</dt> * <dd>Description:授权的头部表</dd> * <dd>Copyright: Copyright (C) 2011</dd> * <dd>Company: </dd> * <dd>CreateDate: 2015-1-2 下午2:19:08</dd> * </dl> * * @author lihs */ pub...
21.448276
96
0.697749
0ec95f99b79f33d708fa6182312fdfb25ab7ffa9
1,455
package com.taxiao.cn.commonlibrary.view.camera; import android.graphics.Outline; import android.graphics.Rect; import android.view.View; import android.view.ViewOutlineProvider; import com.taxiao.cn.commonlibrary.uitl.data.LogUtils; /** * 圆角 或者 椭圆 * Created by hanqq on 2020/7/30 * Email:yin13753884368@163.com *...
30.957447
133
0.64055
25fe84ce95e6c28452f39edd0817099b380fb71f
9,408
/* * 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 co.edu.uniandes.csw.escarabajos.ejb; import co.edu.uniandes.csw.escarabajos.entities.*; import co.edu.uniandes.csw.esc...
39.529412
179
0.655612
466c96d7a5c63b03b0ab83ba6387c05f8c8c1caa
153
/** * Author: Michael PK */ public class TestJava { public static void main(String[] args) { System.out.println("hello java..."); } }
15.3
44
0.581699
06c320677e4b625a8f14fb32591257f4f45e8b2b
1,046
package ua.com.fielden.platform.entity.annotation; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Retention; import java.lang.annotation.Target; /** * An annotation used for specifying mapping of properties to correspondi...
29.885714
174
0.716061
7164f29b452ef349af6af331eaa231f3ec0501f9
5,304
/* * The MIT License (MIT) * * Copyright (c) 2017 schors * 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...
29.966102
280
0.693627
ba68a166be2846c3cd4538d4663fad667d07fcee
2,178
/* * 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...
30.25
113
0.667585
6b4ebebdf434ff1267fe837544a77b4fee87da91
459
package io.spring2go.piggymetrics.notification.domain; import java.util.stream.Stream; public enum Frequency { WEEKLY(7), MONTHLY(30), QUARTERLY(90); private int days; Frequency(int days) { this.days = days; } public int getDays() { return days; } public static Frequency withDays(int days) { return ...
17.653846
54
0.694989
78c8b19e955e0a44829ff8a36853231d14e054fc
697
package org.jslipc.util; import java.io.File; import java.io.IOException; /** * Thrown by {@link HostDir#create(File)} in case there is already an active host. * @author Ralf * */ public class ActiveHostException extends IOException { private static final long serialVersionUID = 1L; final private File activeH...
22.483871
101
0.748924
1387f04f597bbddd308df32fadda60fd73254bf7
2,683
package com.github.bademux.ghfecher.utils; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectWriter; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import com.github.bademux.ghfecher.model.GitHubRepo; impo...
38.884058
158
0.706299
d48bf4e107f2c8769e471fd65ddda502c7a44f72
922
package com.zzy.captcha.xposed.utils; import com.zzy.captcha.utils.Utils; import de.robv.android.xposed.XSharedPreferences; /** * Created by zzyandzzy on 2017/1/12. */ public class PreferencesUtils { private static XSharedPreferences instance = null; private static XSharedPreferences getInstance() { ...
26.342857
74
0.669197
54d533170ec29e72f5d5bb58d73244dbdbccc23d
2,235
package catan.client.graphics.ui; import catan.client.graphics.masks.RenderMask; import catan.client.input.UserEventListener; import java.awt.event.KeyEvent; import java.util.function.BiConsumer; /** * Created by Greg on 1/3/2015. * A screen area containing a text box that is editable by the user. */ public class...
27.592593
153
0.630425
6f429456deee6fde5e1f6e827698d8ada16c7255
6,744
/* * Copyright 2011 by Graz University of Technology, Austria * MOCCA has been developed by the E-Government Innovation Center EGIZ, a joint * initiative of the Federal Chancellery Austria and Graz University of Technology. * * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by * the Europ...
46.510345
117
0.766756
4ed93844846cb788bdd2debe99aaa980fbf3fbff
342
package <%= packageName %>; import greenfoot.export.GreenfootScenarioApplication; public class <%= mainClassName %> extends GreenfootScenarioApplication { /** * Main method for <%= appName %>. This gets executed before anything else. */ public static void main(String[] args) { GreenfootScenarioApplication...
22.8
76
0.725146
18ca4493395fecdf340457b92f4e85aa58d14a06
12,355
package os.nushi.jfree; import org.junit.Assert; import org.junit.Test; import os.nushi.jfree.data.TokenType; import os.nushi.jfree.matcher.CoreMatcher; import os.nushi.jfree.matcher.LazyMatcher; import os.nushi.jfree.matcher.Matcher; import os.nushi.jfree.matcher.ProgressiveMatcher; import static os.nushi.jfree.Resu...
36.880597
119
0.71728
b7b3112be850c49cca1837f0a9146e37d7098d1c
111
public class Motorcycle extends Vehicle { public Motorcycle() { setNumberOfTires(2); } }
13.875
40
0.612613
e801ddabd6fa459c08deb396535bf793fe371a9b
3,076
package com.example.wonderfulchat.model; import android.os.Parcel; import android.os.Parcelable; import java.io.Serializable; /** * @Author wonderful * @Description 消息封装 * @Date 2019-8-30 */ public class MessageModel implements Parcelable, Serializable { private String sender; private String senderImage;...
24.220472
106
0.636216
9f2c69b24f9a044c6f0b4830832407fd007d2dbd
300
package com.google.appengine.api.datastore; /** * GWT emulation class. */ public class DataTypeUtils { public static final int MAX_STRING_PROPERTY_LENGTH = 500; public static final int MAX_SHORT_BLOB_PROPERTY_LENGTH = 500; public static final int MAX_LINK_PROPERTY_LENGTH = 2038; }
21.428571
65
0.76
fcf0b51f53a4332e92c55959214cb8de216f84c8
5,800
package com.mesosphere.sdk.offer.evaluate; import com.mesosphere.sdk.offer.*; import com.mesosphere.sdk.scheduler.plan.PodInstanceRequirement; import com.mesosphere.sdk.scheduler.plan.PodInstanceRequirementTestUtils; import com.mesosphere.sdk.specification.PodInstance; import com.mesosphere.sdk.specification.VolumeSpe...
52.727273
119
0.673448
5681d32b3b0d4d89e9a57ed5195bd45780ce7675
7,445
/** * Copyright (C) 2011 Brian Ferris <bdferris@onebusaway.org> * * 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...
23.785942
191
0.716185
5530b05f454d47b6d00d96a554f479cbb1d7c428
327
package com.fpt.capstone.wcs.model.pojo; import com.fpt.capstone.wcs.model.entity.user.User; import com.fpt.capstone.wcs.model.entity.user.Website; import lombok.Data; import lombok.Getter; import lombok.Setter; @Data @Getter @Setter public class ReportWebsiteUserPOJO { private User user; private Website webs...
20.4375
54
0.782875
9f701a11e57f25f215927036725c0b2c0d01dd8c
20,834
package com.lamfire.utils; import java.math.BigDecimal; import java.math.BigInteger; import java.text.DecimalFormat; public class NumberUtils { public static final Long LONG_ZERO = new Long(0L); public static final Long LONG_ONE = new Long(1L); public static final Lon...
29.302391
120
0.444802
6880b656edccd00d29496855d71dbd5e1c13ac29
3,068
package services; import models.Agenda; import models.User; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax.persistence.Persistence; public class UserService { private static final EntityManager...
31.628866
107
0.597458
8f1fe89073adbd5502fbaaeb1f48a0158f5d98c1
917
package com.tramchester.domain.presentation.DTO; import com.tramchester.domain.reference.TransportMode; import java.util.ArrayList; import java.util.Collection; import java.util.List; public class ConfigDTO { private List<TransportMode> modes; private boolean postcodesEnabled; private int numberJourneysT...
25.472222
110
0.720829
0fe8595989207bb2f7244226f3a92f747c78bd96
3,258
/* * Copyright 2017-2019 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
39.253012
126
0.744322
f9bb9a39e1b4eaf0dc1e69b5ab566bd0447119e1
1,578
/* * Copyright (C) 2014 Benny Bobaganoosh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
29.222222
105
0.733207
ef66b14f1edc2d6cde4f9954bd870cf8ff2f08dd
658
package com.kael.ldap.handler; import leap.core.annotation.Bean; import leap.lang.logging.Log; import leap.lang.logging.LogFactory; import org.apache.directory.api.ldap.model.message.AbandonRequest; import org.apache.mina.core.session.IoSession; /** * @author kael. */ @Bean public class AbandonRequestHandler implem...
26.32
91
0.735562
7257d1704644e4e496e615c3157b7bd8ae1d0f43
5,122
package contact; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.Properties; import javax.mail.*; import javax.mail.internet.*; import java.io.IOException; import javax.mail.MessagingException; import javax.mail.Multipart; import javax.mail.Part; import java.util.concurrent.TimeUni...
33.92053
113
0.614799
ed49ac0a429b007beae270c1646d16f318d90ce1
735
package net.covers1624.wt.mc; import net.covers1624.wt.api.Extension; import net.covers1624.wt.api.ExtensionDetails; import net.covers1624.wt.api.gradle.GradleManager; import net.covers1624.wt.event.InitializationEvent; /** * Created by covers1624 on 9/8/19. */ @ExtensionDetails (name = "Minecraft", desc = "Provide...
31.956522
97
0.722449
ee575544e764399862ce91c658a78febaf894592
2,510
/* * (C) Copyright 2006-2011 Nuxeo SA (http://nuxeo.com/) and others. * * 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 re...
26.421053
117
0.665339
b5c5a2804346c0898371ac4f0ec2116dc0492fa9
7,865
/* * Copyright © 2014 Cask Data, 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...
32.770833
120
0.699682
c99b438afcef89dd835d8f767e421fdeef5f1cb8
400
package ast; import visitors.StatementVisitor; public class DoWhileStatement extends WhileStatement { private Expression condition; private Statement loopBody; public DoWhileStatement(Expression condition, Statement loopBody) { super(condition, loopBody); } @Override public <R> R ac...
21.052632
71
0.715
cc100444930d6fcd5e9a2664c9db70aa07132a95
1,976
/* * (c) 2017 Michael A. Beck, Sebastian Henningsen * disco | Distributed Computer Systems Lab * University of Kaiserslautern, Germany * All Rights Reserved. * * This software is work in progress and is released in the hope that it will * be useful to the scientific community. It is provided "as is" with...
34.666667
115
0.699393
ec86fdb216f917b2cd45276bef38d6d65249fc7a
1,454
package com.opentravelsoft.action.manage.operate; import org.springframework.beans.factory.annotation.Autowired; import com.opensymphony.xwork2.ActionContext; import com.opentravelsoft.action.ManageAction; import com.opentravelsoft.common.SessionKeyParams; import com.opentravelsoft.entity.Plan; import com.opentravels...
20.194444
68
0.662999
43143393b2951ad4e917bb01d68c5a7ac50bad39
3,438
package local.fredslee; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class TestMath extends TestCase { QSreader reader0; /** * Create the test case * * @param testName name of the test case ...
26.651163
98
0.586678
35d8f121b43602a210f70a00054bd7429bc8bbe5
276
package dk.jonaslindstrom.math.algebra.abstractions; public interface Monoid<E> extends Semigroup<E> { /** * Return the identity element of this monoid. */ E getIdentity(); default boolean isIdentity(E a) { return this.equals(a, this.getIdentity()); } }
18.4
52
0.692029
256ea16b77eb907889a38278dba96b98fbd9a3de
6,479
package lib.gintec_rdl.momo.extraction; import java.util.Collections; import java.util.LinkedHashMap; import java.util.Map; import lib.gintec_rdl.momo.model.Transaction; /** * <p> * This class provides the facility to register and recall transaction * extractors. It is not needed. It simply provides th...
38.565476
144
0.640068
3359dc30d0e74af015190a8a1774fe47efa84841
23,475
/******************************************************************************* * Copyright (c) 2010-2011 VIVO Harvester Team. For full list of contributors, please see the AUTHORS file provided. * All rights reserved. * This program and the accompanying materials are made available under the terms of the new BSD l...
37.924071
223
0.715698
ca5ac89ba1eb19f25c6ba0a51d20c49aed1ab481
2,492
package net.groot.data.controllers; import java.util.List; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframewo...
35.098592
138
0.774077
98fc671f59aaf945546dcc55ff54e624ab0b8f3b
1,326
package com.satyajit.lpumarkscalculator; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.ViewGroup; public class Disclaimer extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...
28.212766
161
0.713424
bcb6b678c2b5ed6ddf25798384e681bbef209cea
1,162
package fr.il_totore.spigotmetadata.api; import fr.il_totore.spigotmetadata.api.datawatcher.DataWatcherManager; import fr.il_totore.spigotmetadata.api.datawatcher.DataWatcherRegistry; import fr.il_totore.spigotmetadata.api.nbt.NBTManager; public interface VersionSpigotMetadataAPI { /** * Get the {@link Data...
29.05
96
0.698795
87bce14fa56656b4296afd52d5d2192c0b091997
2,260
/** * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999. * * This program is free software; you can redistribute it and/or modify * it under the terms of the latest version of the GNU Lesser General * Public License as published by the Free Software Foundation; * * This progr...
37.666667
90
0.75708
13fba834341b0804ac6554858e91e23961967c4f
1,750
/* * Copyright 2011 - 2013 NTB University of Applied Sciences in Technology * Buchs, Switzerland, http://www.ntb.ch/inf * * 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 * * h...
27.34375
76
0.628
1c2e0cc892ad5c439785f6d206c6c4508777bcb1
905
package com.weyong.onenet.server.initializer; import com.weyong.codec.OneNetMsgDecoder; import com.weyong.codec.OneNetMsgEncoder; import com.weyong.onenet.server.OneNetServer; import com.weyong.onenet.server.handler.OneNetChannelInboundHandler; import io.netty.channel.ChannelInitializer; import io.netty.channel.socket...
31.206897
81
0.744751
c2fb8d0ef711cd49e219d54a8b5777e29656c87f
3,738
/* * Copyright (c) 2015 The Jupiter 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 or...
39.347368
101
0.563403
ff4b91361cb96d3e51f0c1fd1cf67288be1c5555
18,545
/* Copyright 2010, 2017, Oracle and/or its affiliates. All rights reserved. */ package davelaar.demo.ui.view.dyntab; import davelaar.demo.ui.util.JsfUtils; import davelaar.demo.ui.util.RichClientUtils; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; import java.io.Serializa...
27.433432
130
0.670154
66e3052b7800ac01a4c2ffaabc25d01b0f46ebfc
9,822
/* * 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 ...
55.491525
225
0.712991
18fff51413c33f5e81c7a629be284c8a3d097033
12,080
package cn.org.atool.fluent.mybatis.processor.filer.segment; import cn.org.atool.fluent.mybatis.base.IEntity; import cn.org.atool.fluent.mybatis.base.model.InsertList; import cn.org.atool.fluent.mybatis.base.model.UpdateDefault; import cn.org.atool.fluent.mybatis.base.model.UpdateSet; import cn.org.atool.fluent.mybati...
41.512027
138
0.627732
f202a5ced7f73cbd381e0f83555070db82fc3ebb
22,842
package com.github.hykes.codegen.configurable.ui; import com.github.hykes.codegen.configurable.SettingManager; import com.github.hykes.codegen.configurable.UIConfigurable; import com.github.hykes.codegen.configurable.model.Templates; import com.github.hykes.codegen.configurable.ui.action.TemplateAddAction; import com....
49.873362
143
0.567201
83533ff2d2419ec23a40869ab682324e1e477d64
1,613
package models.form; import java.util.List; import common.Const; import play.data.validation.Constraints; /** * @author nagashima-mizuki * */ /** * 社員情報用フォーム */ public class RegistEmpForm { @Constraints.Required(message = "社員番号を入力してください。") @Constraints.Pattern(value = "^[0-9a-z]+$", me...
33.604167
104
0.707378
357a2d5881c5c4ef2aed85515f6c01fac32346d9
101
package org.akadia.itemraffle.enums; public enum DepositorySelection { SEQUENTIAL, RANDOM }
14.428571
36
0.752475
90de09205ac186761fcd6699149e44c4b2ead121
2,471
////BigInteger를 쓰기위해 클래스 소환 import java.math.BigInteger; ////이항 계수를 위한 클래스 소환. ////(이항 계수가 뭔지 모름..) import static java.math.BigInteger.*; public class Ans6 { public static void main(String[] args) { ////4567891234라는 큰 수를 testNum 으로 객체화. BigInteger testNum = new BigInteger("45678911234"); ///...
37.439394
86
0.461352
672910f368f25f52798f17a401a2d77a29f7cebb
764
package ir.soroushtabesh.hearthstone.controllers.game.scripts; import ir.soroushtabesh.hearthstone.controllers.game.viewmodels.GameObject; public class HeroBehavior extends GenericScript { public static final String DAMAGE_TAKEN = "onDamageTaken"; public static final String ATTACK_DONE = "onAttackDone"; ...
25.466667
107
0.71466
22a997b66caf9081cbff794714c0e24a45b50ea6
9,737
/* * Copyright (c) 2011, Jan Amoyo * 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 * notice, this list...
28.893175
75
0.703605
a49331dd97698477d07af89d197064af7247f909
1,604
package org.shoulder.crypto.negotiation.support.dto; import org.shoulder.crypto.negotiation.util.TransportCryptoByteUtil; import java.util.Set; /** * 协商发起者提供参数 * Token = 服务端公钥签名(xSessionId + publicKey) * * @author lym */ public class NegotiationRequest { /** * Header 中 会话标识 */ private transie...
20.05
102
0.642768
ab704fefb35d7dae8cfcfef1f7c282550d484df7
12,894
package com.huaban.analysis.jieba; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.huaban.analysis.jieba.conf.Configuration; import com.huaban.analysis.jieba.conf.DefaultConfiguration; import com.huaban.analysis.jieba.dic.DictSegment; import com.huaban.ana...
37.158501
101
0.409183
744f1bbae995b16735ee2a867ec952fbb47f183f
7,383
package com.domain.process.engine.machine; import com.domain.ports.outgoing.communicator.OnNewOutgoingMessageListener; import com.domain.ports.outgoing.productinformation.ProductInformationService; import com.domain.process.engine.machine.controller.InfoController; import com.domain.process.engine.machine.controller.P...
79.387097
152
0.812678
7fc6380f27619e33c0cb4ffdb8c8097dedf3c900
2,029
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.execution.actions; import com.intellij.execution.Executor; import com.intellij.execution.ExecutorRegistry; import com.intellij.execution.executors.DefaultRu...
31.703125
140
0.724495
6892e6824aafab610505d08cd578ab84d6dcc13d
21,228
package com.kissthinker.xml; import java.io.InputStream; import java.net.URI; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.xml.sax.At...
29.731092
157
0.545412
aaa8fd7b441e76457edafb4f4689f551a8a9c295
1,676
import java.util.ArrayList; import java.util.Scanner; public class D24_Coin_Change_Permutations { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] coins = new int[n]; for (int i = 0; i < coins.length; i++) { coins[...
31.037037
72
0.460024
2a06da3155329a9972dccfe183156d2fc1e07047
3,168
package biz.netcentric.nclabs.groovyconsole.groovy.impl.servlets; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.commons.lang.CharEncoding; import org.apache.commons.lang.StringUtils; import org.apache.sling.api.SlingHttpServletRequest; import org.apache.sling.api.SlingHttpServletResponse; impor...
41.142857
140
0.766414
a7994d3bafc60f4b8759d09ef055f051f5cda851
1,711
package com.lcyanxi.worker.algorithm; /** * 通过最小堆寻找无序数组中第K大元素 * Created by lcyanxi on 2019/10/27 * @linke(https://mp.weixin.qq.com/s/LKrxeFT9S5NEAHlhHI3nSQ) */ public class HeapOperatorFindTopN { public static void main(String[] args) { int findKey = 3; int[] arr = new int[]{7, 5, 15, 3, 17, 2...
28.04918
83
0.504968
35f43d72c884741935b3f274ef1647e283a0de1b
1,955
package com.icepoint.base.config.web; import org.apache.commons.lang3.ArrayUtils; import org.springframework.lang.NonNull; import org.springframework.web.servlet.mvc.method.RequestMappingInfo; import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping; import java.lang.reflect.Method; i...
38.333333
100
0.713555
e9de2e0e95a4461ff144318179eab131ec929334
5,717
package com.landicorp.android.wofupay.fragment; import android.os.Bundle; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast...
34.029762
113
0.634599
368ea1bfb8a74401993429631831097e3efe3759
2,808
package world.ultravanilla.commands; import net.luckperms.api.LuckPerms; import net.luckperms.api.context.ImmutableContextSet; import net.luckperms.api.model.group.Group; import net.luckperms.api.model.user.User; import net.luckperms.api.track.Track; import net.md_5.bungee.api.ChatColor; import org.bukkit.command.Comm...
42.545455
166
0.616097
4c9f2fad7d383c4fe2ddaafea4650618facbea55
841
/* * Copyright 2021 K.J. Hawkins <kjh67@cam.ac.uk> * * 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...
31.148148
75
0.6956
d857fb029da33a0bf63eac726c9fd638b4c0b7a7
551
package com.facebook.share.internal; import com.facebook.internal.DialogFeature; import com.facebook.internal.NativeProtocol; public enum CameraEffectFeature implements DialogFeature { SHARE_CAMERA_EFFECT(NativeProtocol.PROTOCOL_VERSION_20170417); private int minVersion; public String getA...
23.956522
67
0.700544
e301a21e48e376da381bdf21cc10cd0c5ddc0822
2,970
package com.centurylink.mdw.model.request; import com.centurylink.mdw.model.InstanceList; import com.centurylink.mdw.model.Jsonable; import com.centurylink.mdw.util.DateHelper; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.text.ParseException; import java.util.Array...
32.637363
94
0.643098
54d898d1ed6d888c85ff96733f58be6dfe50c83e
2,154
// Copyright 2017 Pants project contributors (see CONTRIBUTORS.md). // Licensed under the Apache License, Version 2.0 (see LICENSE). package com.twitter.intellij.pants.testFramework; import com.intellij.openapi.vfs.LocalFileSystem; import com.intellij.openapi.vfs.VirtualFile; import com.twitter.intellij.pants.util.Pa...
39.888889
111
0.747911
3c4670c96bfac5f9c3e0001a3be9928293348e29
1,339
package com.tistory.hskimsky.mr; import org.apache.commons.lang.StringUtils; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Reducer; import java.io.IOException; import java.util.ArrayList; import java.util.List; /** * description. * * @author HaNeul, Kim * @since 0.1 */ public class ZipCod...
29.755556
116
0.74832
cbfb6446094dc1ffce6b03721e2f2ace0ee36856
1,201
package katas.java.sort.mergesort; import org.junit.Test; import katas.java.sort.SortAssertions; import java.util.ArrayList; import java.util.List; public class MergeSort19 implements SortAssertions { @Test public void sortList() { assertListsCanBeSorted(MergeSort19::sort); } private static <T ...
29.292683
90
0.552873
5f2eb995019213b81b6e14a3eeed095fb7365ebb
718
package android.support.v4.view; import android.view.MotionEvent; class MotionEventCompatEclair { MotionEventCompatEclair() { } public static int findPointerIndex(MotionEvent motionEvent, int i) { return motionEvent.findPointerIndex(i); } public static int getPointerId(MotionEvent motion...
24.758621
72
0.699164
81231e3e2d3f10d7442a433a24f8d10797f765b9
772
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 物料发货计划反馈接口 * * @author auto create * @since 1.0, 2019-06-03 19:46:00 */ public class AntMerchantExpandDeliveryProcessSyncModel extends AlipayObject { private static final long ...
25.733333
94
0.774611
604b03428444ecb05bf4d4b797ef2512b5921bde
3,202
package fax.play.service; import org.infinispan.client.hotrod.RemoteCache; import org.infinispan.client.hotrod.RemoteCacheContainer; import org.infinispan.client.hotrod.RemoteCacheManager; import org.infinispan.client.hotrod.configuration.ConfigurationBuilder; import org.infinispan.client.hotrod.impl.ConfigurationProp...
45.742857
144
0.742973
52b604e75dd36910f7ea7c805c271b14bdbc878f
2,500
package com.rabbit.springcloudstream.source.configs; import io.opentracing.Tracer; import io.opentracing.contrib.kafka.spring.TracingProducerFactory; import lombok.extern.slf4j.Slf4j; import org.apache.kafka.clients.producer.ProducerConfig; import org.apache.kafka.common.serialization.LongSerializer; import org.apache...
33.783784
104
0.7968
04a952f52783b4d9a7248127fc8572243aa1da3a
1,429
package pl.sdacademy.algorithms; import org.junit.Before; import org.junit.Test; import static junit.framework.TestCase.assertFalse; import static junit.framework.TestCase.assertTrue; public class PeselUtilityTest { private PeselUtility peselUtility; @Before public void init() { peselUtility = ...
19.847222
53
0.640308
84cdd244ec162f57bf607cc5cebc63f679a7b4d0
947
package com.javarush.test.level18.lesson05.task05; /* DownloadException 1 Считывать с консоли имена файлов. 2 Если файл меньше 1000 байт, то: 2.1 Закрыть все потоки ввода-вывода 2.2 выбросить исключение DownloadException */ import java.io.*; public class Solution { public static void main(String[] ar...
27.057143
86
0.702218
d911afd51d0dfa896039d5fe9e258d561672c7e0
805
package com.uwc.bmbrmn.logic.ai.iml; import com.uwc.bmbrmn.logic.ai.AIStrategy; import com.uwc.bmbrmn.model.units.Bot; import com.uwc.bmbrmn.scheduling.SessionAwareRunnable; import java.util.Collection; /** * Scheduled runnable for making periodical calls to AIStrategy for performing bots' actions */ public class ...
25.967742
92
0.718012
ad60e3686a68621a82378caae3c36ca20339627f
373
package com.kingbase.lucene.commons.indexer.indexWriter; import java.io.IOException; import org.apache.lucene.store.Directory; import org.apache.lucene.store.Lock; import org.apache.lucene.store.LockFactory; public class CustomLockFactory extends LockFactory{ @Override public Lock obtainLock(Directory dir, String...
21.941176
76
0.806971
8c59dd48ffd9c4eaa81de9be72e4eddbe56de0b2
552
package org.diverproject.spring.module.mysql.column; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; import javax.persistence.Column; import java.io.Serializable; @Data @Accessors(chain = true) @NoArgsConstructor @AllArgsConstructor public ...
23
67
0.826087
efd80b8407da1b23e72fdf2fb6c4aa7e2aa700ca
4,158
package lang.java.javac.strategies; import java.io.File; import java.io.IOException; import java.io.StringWriter; import java.nio.file.Files; import java.nio.file.Path; import java.util.Arrays; import java.util.Comparator; import java.util.Optional; import java.util.stream.Collectors; import javax.tools.JavaCompiler...
39.226415
120
0.651515
403d32cbf4d598b1023f334b982755ef516d971f
5,623
// // 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: 2020...
32.69186
125
0.605371
2ad0d226eb2f3d4d9fb281d31f62136969f7ba6e
240
package OOP.Rect; public class Rect extends Figure { public Rect(double a, double b) { super(a, b); } public Rect(double size){ super(size,size); } @Override public double square() { return getA()*getB(); } }
12.631579
35
0.608333
e8b48a5368b0755eb5a8e33c1d5370b861c9cd9c
2,849
package hr.fer.zemris.jcms.web.actions; import java.util.Date; import java.util.List; import java.util.Locale; import hr.fer.zemris.jcms.web.actions.data.support.IMessageContainer; import hr.fer.zemris.jcms.web.actions.data.support.IMessageLogger; import hr.fer.zemris.jcms.web.actions.data.support.LoggerMessage; impo...
25.212389
88
0.759916
1a082c454d84fefc86edeac4d6fdc9162046cf8b
1,275
/* +-------------------------------------------------------------------------- | Mblog [#RELEASE_VERSION#] | ======================================== | Copyright (c) 2014, 2015 mtons. All Rights Reserved | http://www.mtons.com | +--------------------------------------------------------------------------- */ pac...
31.875
97
0.637647
3542e764545a01de6b669edb1a2897dd6c944b0a
963
package ch.fhnw.digibp.recommendation; import java.util.List; import ch.fhnw.digibp.order.Order; import ch.fhnw.digibp.validation.Validation; import org.springframework.stereotype.Component; @Component public class RecommendationEngine { private final AnalysisEntryRepository analysisEntryRepository; public ...
37.038462
147
0.797508
d5b913600e304570b30b30ffa792ff5635a4a26d
4,934
package de.heidelberg.collectionsexplorer.visitors; import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.ast.expr.MethodCallExpr; import com.github.javaparser.ast.visitor.VoidVisitorAdapter; import com.github.javaparser.resolution.types.ResolvedType; import de.heidelberg.collectionsexplorer.F...
36.279412
123
0.634374
3592cbf6f8d5cdf5cd12142b170f26077a1ae107
2,832
package us.creepermc.enchants.cmds; import lombok.AccessLevel; import lombok.experimental.FieldDefaults; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import us.creepermc.enchants.Core; import us.creepermc.enchants.managers.EnchantManager; import us.creepermc.enchants.objects.Enchant; impor...
33.714286
166
0.703037
52174aa4c7c4d3edbfce6ae531f8b466ec1928b1
1,720
package io.georocket; import io.vertx.core.Future; import io.vertx.core.Verticle; /** * <p>A verticle contributed by a GeoRocket extension.</p> * * <p>Implementations should be registered through the Java Service Provider * Interface (SPI). Upon startup, GeoRocket will instantiate and start * registered implemen...
38.222222
79
0.755233
265bba535f35d963d4d42525e5d9d3e72f3dc20b
5,110
package com.example.rhymedys.intelligencebj.activity; import android.content.Context; import android.content.Intent; import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.view.ViewTreeObserver; import andro...
37.028986
124
0.608415