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
2f8f2933d018fb2141d9b61747036bb374a51e56
7,337
package fr.n7.stl.tam.ast.impl; import java.util.List; import java.util.Optional; import fr.n7.stl.tam.ast.Fragment; import fr.n7.stl.tam.ast.Register; import fr.n7.stl.tam.ast.TAMFactory; import fr.n7.stl.tam.ast.TAMInstruction; /** * Implementation of the factory to build a TAM program AST. * It relies on a sing...
24.456667
88
0.690064
ec105568d913abf1195182738f72f847b7b5dde4
930
package com.madisp.stupid.expr; import com.madisp.stupid.ExecContext; import com.madisp.stupid.Expression; /** * The classic ternary expression, e.g. expr ? trueValue : falseValue. * I know everybody hates it but it has been proven useful from time to time. * * In stupid: {@code expr ? trueValue : falseValue} */...
29.0625
95
0.755914
a8a95199bd6ea9972cb92845542e6639cace185f
3,268
package vv.spoon.processor; import spoon.processing.AbstractProcessor; import spoon.reflect.cu.CompilationUnit; import spoon.reflect.cu.SourceCodeFragment; import spoon.reflect.cu.SourcePosition; import spoon.reflect.reference.CtExecutableReference; import spoon.reflect.code.CtReturn; import spoon.reflect.code.CtState...
34.4
129
0.633109
c95ee02ab882bfaab595f89586ae9f02f8bcaeda
1,880
/****************************************************************************** * ~ Copyright (c) 2018 [jasonandy@hotmail.com | https://github.com/Jasonandy] * * ~ * * ~ Licensed under the Apache License, Version 2.0 (the "License”); * ...
44.761905
86
0.433511
71565d47b9e7e19645c917e96d117d9d515983f7
4,542
/******************************************************************************* * Copyright (c) 1998, 2012 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. ...
42.448598
131
0.659401
9c6245f712d4a7250402143db231fcde049c5179
3,812
package org.semanticweb.more.visitors; import java.util.Iterator; import java.util.Set; import org.semanticweb.owlapi.model.OWLClass; import org.semanticweb.owlapi.model.OWLClassExpression; import org.semanticweb.owlapi.model.OWLClassExpressionVisitor; import org.semanticweb.owlapi.model.OWLDataAllValuesFrom; import ...
25.583893
132
0.763116
93b34d898294082fb02580fe2d2dbfdddc2ab8e3
687
package team23.smartHomeSimulator.model; import java.util.ArrayList; import java.util.List; import team23.smartHomeSimulator.model.request_body.LogItem; /** POJO for Logs */ public class Logs { private List<LogItem> logs; /** Default constructor */ public Logs() { this.logs = new ArrayList<>(); } /** ...
17.615385
60
0.634643
bebcb1d1ce87105cf2d9451f24e4c3e0833739da
770
package io.cem.modules.cem.service; import io.cem.modules.cem.entity.DicTypeEntity; import java.util.List; import java.util.Map; /** */ public interface DicTypeService { /** * 根据id获取某条信息 * @param id * @return DicTypeEntity */ DicTypeEntity queryObject(Integer id); /** * 获取列表 * @param map * @retur...
13.508772
56
0.625974
6c448304f8ca0981564e007a92288c89acd3a87d
1,521
/* * Licensed to Elasticsearch 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 * not use this fi...
35.372093
95
0.750822
2bc6b75911f67a681f281e12ee88f35ffa885b22
1,786
package com.lxj.xpopupdemo.custom; import android.content.Context; import androidx.annotation.NonNull; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.view.View; import com.lxj.easyadapter.EasyAdapter; import com.lxj.easyadapter.ViewHolder; imp...
29.766667
118
0.651736
ceb2af7e223bcbf52f3cd2d835c57acd8d186af1
6,703
/* * 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");...
34.73057
77
0.652544
076dd9a5202ea97cf356221d3e0b3733fe56822c
2,311
/** * vertigo - simple java starter * * Copyright (C) 2013-2018, KleeGroup, direction.technique@kleegroup.com (http://www.kleegroup.com) * KleeGroup, Centre d'affaire la Boursidiere - BP 159 - 92357 Le Plessis Robinson Cedex - France * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
39.844828
99
0.770229
35653b2dea96e0feceff902acfaf8adeb0068a64
2,099
/* * 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 ...
27.986667
88
0.656027
654452e6171f4fd345c9a06f9e8747de71f177c4
370
package io.github.ztkmkoo.dss.core.exception.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface ExceptionHandler {...
26.428571
56
0.810811
8ee5762882a3fde7bbbbca539866c0cc9353d22d
4,301
/** * Copyright 2013 Jim Hurne and Joseph Kramer * * 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 l...
26.88125
79
0.643339
f14f8332472849db11ce20c9e4ce6a4807d1c7b8
1,149
package com.xresch.cfw.validation; /************************************************************************************************************** * The LogLevelArgumentValidator will validate if the value of the ArgumentDefinition * is a valid log4j2 log level. * * @author Reto Scheiwiller, (c) Copyright 2019 ...
35.90625
135
0.579634
a3064f89acc8b18ca4539b7d3414551f96b8c555
210
package coin; import java.math.BigDecimal; /* Concrete flyweight class that extends the Coin class */ public class Dime extends Coin { public Dime() { super(new BigDecimal(".10")); } }
14
56
0.647619
6c0afb827a777a7e3ffeb99b83ea8838b70a0d77
2,658
/** * Copyright 2014 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
34.519481
163
0.676448
8a40d17df35d4e721585238829270a107e2d2b67
2,316
/* * Copyright (c) 2017-2018. 放牛极客<l_iupeiyu@qq.com> * <p> * 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 b...
38.6
84
0.786701
b2349fc4079f799d58c68102a9b285eb76bfef7f
341
package net.impactdev.logger; import org.slf4j.Marker; import org.slf4j.MarkerFactory; public class Markers { public static final Marker BOOT = MarkerFactory.getMarker("Boot"); public static final Marker JOIN = MarkerFactory.getMarker("Join"); public static final Marker TRANSLATOR = MarkerFactory.getMark...
26.230769
82
0.765396
290d1187026e0c2a6b22a671accf61f95a82879d
3,372
/** * Copyright 2009-2018 PrimeTek. * * 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 ...
37.466667
143
0.693654
5460e12456f54fb61153eb34d8414cbbc812d4a0
6,289
/* * NiFi Rest Api * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
24.759843
479
0.609636
93c07cb62deace8249fa8d5445ac1bea666fb8eb
333
package java8professional.chapter05.i18n_l10n.resourcebundle.javaclass; import java.util.ListResourceBundle; public class Tax_en_US extends ListResourceBundle { @Override protected Object[][] getContents() { return new Object[][] { {"taxCode", new UsTaxCode()} }; } } class...
23.785714
71
0.672673
03713bfa693ff34ec0f0ccd1ce701720550130b7
751
package com.github.yingzhuo.playground.api.v2; import com.github.yingzhuo.playground.service.TagService; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.graphql.data.method.annotation.QueryMapping; import org.springframework.security.access.prepost.PreAuthorize; import or...
25.033333
71
0.805593
555dadf084bd653b8da741cd06205645635b8a81
5,200
/* * Licensed to Elasticsearch 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 * not use this fi...
33.766234
196
0.680962
f9a643a431a42e8ea28b7da21a2a39e9f497fcb9
637
package com.yantra.core.managers; import java.sql.Timestamp; import java.util.Date; import org.openqa.selenium.WebElement; import org.testng.Reporter; public class CmnMethods { public static void WriteLog(String logType, String msg) { String callerMethodName = Thread.currentThread().getStackTrace()[2]...
24.5
89
0.659341
2d114a3eea22db982975f0cddf7ec145ce1eaaac
16,180
package com.prowidesoftware.swift.model.mx.dic; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; import org.apache.commons.lang3.bu...
27.423729
89
0.590853
c68f448414e7b241b1663bfeebe35fbcfcd07aec
1,149
package com.liangxiaoqiao.leetcode.day.hard; /* * English * id: 224 * title: Basic Calculator * href: https://leetcode.com/problems/basic-calculator * desc: Implement a basic calculator to evaluate a simple expression string. * The expression string may contain open ( and closing parentheses ), the plus + or mi...
28.02439
230
0.64752
d67dda3ee501bd5171c5e85bd48346b1b6009a98
2,907
package aop; import org.junit.Test; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.Set; public class TestSpring { public static void main(...
33.802326
102
0.568971
0c9253c5a93efa824aac1112ec5d812e23a75bf5
791
package org.hongxi.whatsmars.boot.sample.test; import org.hongxi.whatsmars.boot.sample.test.Application; import org.hongxi.whatsmars.boot.sample.test.DemoService; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test....
28.25
62
0.78129
baa8ba5086caf4f3aa1f40f6cfb1949ff1e285bb
1,987
package csulb.cecs343.lair; import android.content.Context; import android.support.annotation.NonNull; import android.support.annotation.RawRes; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class FileUtil...
28.797101
136
0.490689
5e9195145a6ca4ae63824f6acd903bcd4803254c
103
package com.adyen.v13.model.payout; public class ConfirmThirdPartyResponse extends ModifyResponse { }
20.6
63
0.834951
db483f717293cc91722b4e959cfed1eedc977d0a
2,080
package zigma; import javafx.application.Application; import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.Parent; import javafx.fxml.FXMLLoader; import javafx.scene.layout.GridPane; import javafx.scene.layout.Priority; import javafx.scene.control.Alert; import javafx.scene.control.Label...
28.493151
73
0.710096
c966ce1f02eeed63d8b28833860d87943b80c66c
5,354
import com.walmartlabs.x12.exceptions.X12ParserException; import com.walmartlabs.x12.standard.StandardX12Parser; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.io.UncheckedIOException; import java.nio.charset.Charset; import java.nio.charset.MalformedInputException; im...
37.971631
113
0.620097
72659bd126bf46140f5a76ec4cd11f1771560eb2
2,697
package seedu.track2gather.logic.commands; import static java.util.Objects.requireNonNull; import java.util.List; import seedu.track2gather.commons.core.Messages; import seedu.track2gather.commons.core.index.Index; import seedu.track2gather.logic.commands.exceptions.CommandException; import seedu.track2gather.model....
38.528571
118
0.711531
9fdfb057bc694d8fa040d9ab9cc5ab5f77b21820
5,618
package com.cgutman.adblib; import java.io.Closeable; import java.io.IOException; import java.util.Queue; import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.atomic.AtomicBoolean; /** * This class abstracts the underlying ADB streams * @author Cameron Gutman */ public class AdbStream imp...
26.880383
90
0.703275
dcde92b5fd2935a365b7306e4338683dbe3d8bd3
270
package uk.co.chrisjenx.paralloid.transform; /** * Created by chris on 23/10/2013 * Project: Paralloid */ public interface Transformer { /** * @return can not be null, otherwise scroll will fail */ int[] scroll(float x, float y, float factor); }
18
58
0.655556
25ad002c1155421f45342f86fad784125c9c8059
497
package com.github.sputnik906.example.classic.spring.app.dto.common; import com.github.sputnik906.example.classic.spring.app.domain.common.IdentifiableLong; import javax.persistence.EntityManager; import org.mapstruct.Context; import org.mapstruct.TargetType; public interface EntityManagerContext { default <T exte...
33.133333
87
0.806841
3d65bb20cc10393c1276228ddd5a3bd3ef9016ab
1,601
/* * 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 brain.models; import brain.controller.ClsUpdateModel; import brain.controller.IAction; import java.sql.Date; /** * * @autho...
20.792208
79
0.648345
ec0ac04ce16b2c767129d9fa826737e21be007ff
5,888
/** * Imports */ import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.net.DatagramPacket; import java.net.InetAddress; import java.net.SocketExceptio...
34.232558
100
0.705673
97731596f4666921bcbce6f59b0e49ceac4c5971
246
package jdo.humanresoures.model.position.type; import javax.persistence.Entity; import jdo.model.BaseType; @Entity public class PositionClassificationType extends BaseType { /** * */ private static final long serialVersionUID = 1L; }
15.375
58
0.764228
76699b795d945bb8b1e8ad1fc1ce9427b2b23783
702
package pt.kiko.krip.variables.functions; import org.bukkit.Bukkit; import pt.kiko.krip.Krip; import pt.kiko.krip.lang.Context; import pt.kiko.krip.lang.results.RuntimeResult; import pt.kiko.krip.lang.values.KripJavaFunction; import pt.kiko.krip.lang.values.KripNull; import java.util.Collections; public class PrintF...
25.071429
71
0.763533
f1b9a95450656143020786512aed1ca0579617d3
509
package com.demo.spring.utils; import lombok.SneakyThrows; import org.apache.commons.io.IOUtils; import org.springframework.core.io.Resource; import org.springframework.core.io.support.EncodedResource; import static java.nio.charset.StandardCharsets.UTF_8; /** * @author Shaowei Zhang on 2021/6/20 13:33 */ public c...
24.238095
82
0.764244
b9b4b7b301946f0e3aec190ab597d10d95a2d6da
637
package com.codetaylor.mc.dropt.modules.dropt.rule.data; import com.codetaylor.mc.dropt.api.reference.EnumDropStrategy; import com.codetaylor.mc.dropt.api.reference.EnumReplaceStrategy; import com.codetaylor.mc.dropt.api.api.RandomFortuneInt; public class Rule { public boolean debug = false; public RuleMatch mat...
35.388889
79
0.805338
89c053a2419db173e6892d788dc6ed1da9c66650
1,132
package com.github.zhuobinchan.distributed.lock.spring.boot.demo.service.impl; import com.github.zhuobinchan.distributed.lock.spring.annotation.DistributedLock; import com.github.zhuobinchan.distributed.lock.spring.boot.demo.service.DistributedLockService; import com.github.zhuobinchan.distributed.lock.spring.boot.dem...
29.789474
95
0.742049
ee5e0d11e7d3f4e1a04faf4d11ebc10d3c89df13
10,974
/* * Copyright 2000-2016 JetBrains s.r.o. * * 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...
38.914894
164
0.720703
b9c9a3609e619bbe161605085696d1b7bfbcfc88
564
package bootcamp.proposta.propostas; import bootcamp.proposta.propostas.cartao.CartaoResponse; import com.fasterxml.jackson.annotation.JsonProperty; public class PropostaResponse { @JsonProperty private final String nome; @JsonProperty private final EstadoProposta estado; @JsonProperty private...
28.2
63
0.742908
6f8d57eddd812187e5527c0f88e7363004fc1760
1,046
package jo.vecmath.ext; import jo.vecmath.Point3f; import jo.vecmath.logic.Point3fLogic; public class Line3f { private Point3f mP; private Point3f mN; public Line3f() { mP = new Point3f(); mN = new Point3f(0, 0, 1); } public Line3f(Point3f p, Point3f n) { this(); ...
19.37037
81
0.553537
63cf48631aa61d8d643f41697bd18bc7fb4ba314
320
package io.sdb.service.impl; import io.sdb.dao.OrderDetailDao;; import io.sdb.model.OrderDetail; import io.sdb.service.OrderDetailService; import org.springframework.stereotype.Service; @Service public class OrderDetailServiceImpl extends BaseServiceImpl<OrderDetailDao, OrderDetail> implements OrderDetailService { }
29.090909
120
0.84375
964b47e7a8fc192e01015bd89635f5c1b1230297
647
package cn.navclub.xt.server.service; import cn.navclub.xt.server.api.CommonResult; import cn.navclub.xt.server.service.impl.UserServiceProxyImpl; import io.vertx.codegen.annotations.ProxyGen; import io.vertx.core.Future; import io.vertx.core.Vertx; import io.vertx.core.json.JsonObject; import java.util.Map; @ProxyG...
26.958333
79
0.760433
17d43bbcf797799c77714ef40b58a70e89a1a9bf
2,712
package nl.pvanassen.artifactory.cleaner.api; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown = true) public class FolderInfo { public static final class Children { private String uri; private String folder; publ...
21.696
283
0.575959
ac96d3a68717d68e30da61d4780251b1d317905b
3,760
package bwyap.familyfeud.render.state.play; import java.awt.Graphics; import bwyap.familyfeud.game.FamilyFeudGame; import bwyap.familyfeud.game.play.state.StateFaceOff; import bwyap.familyfeud.game.play.state.StrikeInterface; import bwyap.familyfeud.game.state.StatePlay; import bwyap.familyfeud.gui.window.GameWindow;...
31.333333
95
0.704787
21283a2c740f831813e9e194b804063a38758a6f
546
package net.nanofix.field; /** * User: Mark * Date: 31/03/12 * Time: 20:44 */ public class IntegerField implements Field { private final int tag; private final int value; public IntegerField(int tag, int value) { this.tag = tag; this.value = value; } @Overrid...
16.545455
46
0.534799
d144af4acd5ccec641f5e6d3860d17ccba96f4c8
79
package org.particl.ui.desktop; public interface IDesktopViewListener { }
11.285714
39
0.772152
c6cf33c5720cfbdce5fd8469e373d669a2c2eb0d
3,603
package com.chipsea.ui.activity; import android.app.Activity; import android.content.ContentResolver; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.Bundle; impo...
29.056452
83
0.741604
12fd02605f8757d5d10a5d6bb2efa785a860ce95
3,567
package commandGenerator.arguments.tags.specific; import java.util.ArrayList; import java.util.List; import commandGenerator.Generator; import commandGenerator.arguments.objects.Attribute; import commandGenerator.arguments.objects.AttributeType; import commandGenerator.arguments.objects.ObjectBase; import commandGene...
27.229008
130
0.680123
28e5157fa5b69917d55094f41ca35f2c506e2d92
296
package com.tle.web.api.interfaces.beans; import java.util.List; public class FileListBean extends AbstractExtendableBean { private List<BlobBean> files; public List<BlobBean> getFiles() { return files; } public void setFiles(List<BlobBean> files) { this.files = files; } }
18.5
58
0.722973
fd1355f246379150a4c17801c0493be155116a63
187
package com.sonicbase.common; public class UniqueConstraintViolationException extends RuntimeException { public UniqueConstraintViolationException(String msg) { super(msg); } }
20.777778
74
0.802139
b92fa2b953bab25adedb8f17b0cd44aca242d04b
3,426
package car.ccut.com.vehicle.fragment; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.app.AlertDialog; import android.view.Layo...
32.320755
103
0.563047
ba2d144311e19c2b3a4184d9574f5be217c72484
8,691
package cn.katoumegumi.java.http.server.handle; import cn.katoumegumi.java.common.WsDateUtils; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.channel.Channel; import io.netty.channel.ChannelFutureListener; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleCh...
42.18932
204
0.651939
09a3de09b7a9ab30ccee84328a3e3e67935681a0
22,441
/* * Copyright (c) 2019, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory * CODE-743439. * All rights reserved. * This file is part of CCT. For details, see https://github.com/LLNL/coda-calibration-tool. * * Licensed under the Apache License, Version 2.0 (the “Licensee”)...
28.298865
208
0.572345
bed4dfbcf016537667d8f318478db51cb47d1c96
2,140
package dinchi.org.petshots.utils; /* * Doctor * "c_firstname","c_lastname","c_email","c_phoneprimary","c_phonesecondary","c_address" * */ public class DoctorDetails { String m_title; String m_firstname; String m_lastname; String m_email; String m_phonePrimary; String m_phoneSecondary; String m_address; ...
18.448276
87
0.711682
a449daa14d6f5547277a823f3063b3d315aabc69
7,874
/** * Copyright 2016 Symantec Corporation. * * 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 ...
49.522013
110
0.800737
f9d932311d2ad65b41106e5d666ba5c49aed5dfe
626
package steps.marketData.expirations; import cucumber.api.java.en.Then; import entities.marketDataEntities.expirations.Date; import helpers.ExpirationsHelper; import utils.Share; import static org.hamcrest.MatcherAssert.assertThat; public class ExpirationsAssertionsSteps { @Then("^I get the expiration dates rel...
32.947368
89
0.741214
086f9e98e5be42df440eca1f15d85676568fa06c
11,482
/* * 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 ...
44.851563
137
0.64109
14b00d586da32d85cca492ddf28039d0dacc216c
1,772
package net.runelite.client.plugins.zulrah.overlays; import lombok.extern.slf4j.Slf4j; import net.runelite.api.Client; import net.runelite.api.Prayer; import net.runelite.client.plugins.zulrah.ZulrahInstance; import net.runelite.client.plugins.zulrah.ZulrahPlugin; import net.runelite.client.plugins.zulrah.phase.Zulra...
27.6875
90
0.784989
2ef0371017f91dd135bd48fdb56b6eaee69da263
2,530
/* * Copyright 2011 Chad Retz * * 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.08046
81
0.603162
0ca7a59a38a92c4bdcd1ae62fa110fd7f40a8087
604
package net.shmin.auth.permission.model; import java.util.Set; /** * Created by benjamin on 2017/1/4. * 用户组 */ public class Group<T, R> { private T id; private Set<R> roles; private T parentId; public T getId() { return id; } public void setId(T id) { this.id = id; ...
14.731707
41
0.557947
0d13d54d15bbb42b1d43965d407c0afba6665ecb
8,172
package core.component; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.Dimension; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.OutputType; import org.openqa.selenium.Point; import org.openqa.selenium.Rectangle; import org.openqa.selenium.WebDriver; import...
24.177515
111
0.712433
7628170645273cfa70c7ecb4026ab8d3e257ef4f
1,882
package com.tterrag.k9.util; import java.util.Optional; import java.util.function.BiFunction; import java.util.function.Function; import java.util.function.Predicate; import java.util.function.Supplier; import reactor.core.publisher.Flux; import reactor.core.publisher.GroupedFlux; import reactor.core.publisher.Mono; ...
42.772727
153
0.68119
8e80ebd77875fc4bfef9a9b300d09c47d18901bf
295
package com.argentumjk.client.utils; /** * Excepción que se lanza al querer leer y no hay datos disponibles en un buffer */ public class NotEnoughDataException extends Exception { public NotEnoughDataException() { super("No hay suficientes datos en el buffer para leer"); } }
26.818182
80
0.728814
9cb34a12dc6bd4277c029942cad0992ddf1a8a5f
135,822
/* * Copyright 2015 Midokura SARL * * 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...
36.325756
122
0.621335
bc6ca397b5218e3eced3a5857db77bc28d83a883
588
package bms.stream.receiver.parser; import bms.stream.receiver.model.BatteryAttribute; /** * Temperature and change rate (TCR) parser. * * @author Shrinidhi Muralidhar Karanam on 2021-06-25 */ public class TCRBatteryAttributeParser implements BatteryAttributeParser<BatteryAttribute> { @Override public B...
26.727273
92
0.683673
a8fd9604ea6ab92c98b634f269e3cbf00e746530
787
package us.ihmc.commonWalkingControlModules.desiredFootStep; import us.ihmc.humanoidRobotics.communication.controllerAPI.command.FootstepDataCommand; import us.ihmc.humanoidRobotics.communication.packets.walking.FootstepDataMessage; import us.ihmc.robotics.robotSide.RobotSide; public interface DesiredFootstepCalculat...
39.35
157
0.850064
84ce316972c11a25c400d41cfac9a90f054e9e0f
1,845
/** * Licensed to the RxJava Connector HTTP under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use th...
40.108696
91
0.736043
a5ece628fe7df349bc87a699d7d7a8ee9f61583d
6,332
package com.alibaba.alink.operator.batch.linearprogramming; import com.alibaba.alink.common.comqueue.IterativeComQueue; import com.alibaba.alink.common.comqueue.communication.AllReduce; import com.alibaba.alink.common.comqueue.communication.AllReduce.SerializableBiConsumer; import com.alibaba.alink.operator.batch.Batc...
45.228571
121
0.653664
fb2fc1f6fbb99ea27f93aae38c98d5eafda3acf4
233
package cn.gyw.backend.system.dao; import cn.gyw.backend.system.model.entity.RoleResourceRelation; import cn.gyw.components.web.base.mgb.BaseDao; public interface RoleResourceRelationMapper extends BaseDao<RoleResourceRelation> { }
33.285714
83
0.841202
f783f14f6578a79d16dad5258a59fae705600b55
2,072
/* * Copyright 2019 Scott Logic Ltd * * 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...
35.724138
108
0.743726
bdb280b486e53a363860bb1d57f22635825a3808
2,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 br.com.sergiostorino.model.service.util.sms; import java.io.IOException; import java.util.Properties; import java.uti...
33.746032
109
0.682032
be9d6c2c364592a8803650711e0e0adc87ec3d18
531
/*PLEASE DO NOT EDIT THIS CODE*/ /*This code was generated using the UMPLE 1.21.0.4666 modeling language!*/ // line 24 "GeographicalInformationSystem.ump" // line 106 "GeographicalInformationSystem.ump" public class Point { //------------------------ // MEMBER VARIABLES //------------------------ ...
18.310345
75
0.442561
81ac9d34298ad97867d0f0cd198f90fbcb6789f0
3,822
/* * Copyright © 2021 ProStore * * 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...
48.379747
109
0.758503
0e30612514c794a303d25ef320389e7fed1f224b
723
package leetCode.easy; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class HappyNumberTest { @Test void isHappy() { HappyNumber happyNumber = new HappyNumber(); assertTrue(happyNumber.isHappy(1)); assertFalse(happyNumber.isHappy(2)); ass...
30.125
52
0.676349
443f1575a4c00d5cbec8ee86d957d9cc3bf91c6f
337
package com.example.lottery.service; import com.example.random.service.RandomNumberService; import java.util.List; /** * @author Binnur Kurt <binnur.kurt@gmail.com> */ public interface LotteryService { List<Integer> draw(); List<List<Integer>> draw(int column); void setRandomNumberService(RandomNumbe...
19.823529
57
0.744807
1ebb85ad742e59584d32291d2c0f1c928538296f
1,383
package com.athaydes.osgiaas.javac; import java.util.Collection; import static java.util.Collections.emptyList; /** * Representation of a Java code snippet. * <p> * Instances of types implementing this interface can be used to run * Java code using the {@link JavacService} implementations. * <p> * A trivial im...
23.844828
101
0.60376
1577654d08c22f4a768c67f3240437aedcd90ab9
1,574
package example; import com.amazonaws.internal.CRC32MismatchException; import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; import java.util.zip.CRC32; class ChecksumChecker extends InputStream { public static final int NO_EXPECTED_CRC = -1; private final InputStream stream; ...
26.233333
105
0.619441
dd24823600c312f0654e779d3e7b80a8cfb2c276
971
package net.minecraft.src; public class SEAItemFoodBowl extends SEAItemFood { public SEAItemFoodBowl(int iItemID, int iHungerHealed, float fSaturationModifier, boolean bWolfMeat, String sItemName, String[] eatingTextures) { super(iItemID, iHungerHealed, fSaturationModifier, bWolfMeat, sItemName, eatingTextu...
34.678571
150
0.68898
3e4e9cb34f13532f1e6c267134b9e9c2046fbebe
1,067
package company; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Comparator; /** * @Author: Wenhang Chen * @Description:给定不同面额的硬币 coins 和一个总金额 amount。编写一个函数来计算可以凑成总金额所需的最少的硬币个数。如果没有任何一种硬币组合能组成总金额,返回 -1。 * <p> * 示例 1: * <p> * 输入: coins = [1, 2, 5], amount = 11...
16.415385
98
0.511715
e9f4aaca97c8f9b32717a09f5826ae501974e68e
1,177
package com.dev.reactive.app.stream; import java.util.ArrayList; import java.util.List; public class ParallelStream { public static void main(String...strings) { List<Employee> list = new ArrayList<>(); long startTime; long endTime; for (int i = 0; i < 100; i++) { list.add(new Employee("John", 2000...
28.02381
82
0.661003
f909c910348b2eb0930a5104613e14708d327e76
6,517
/* Reemplazo de Crud.java */ package main.service; import java.util.ArrayList; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryPar...
30.032258
88
0.730858
928b78c007f10ea691846418bc73b9ffff7aa78d
1,032
package com.estafet.boostcd.gateway.api.service; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.web.client.RestTemplate; import com.estafet.boostcd.gateway.api.dto.EnvironmentDTO; import com.estaf...
33.290323
86
0.77907
bb3e948b6dc3cbb742c52acd4edf21b680e04666
1,356
package com.github.jiangxch.mybatis.autoconfig.test.daotest; import java.util.Date; import com.github.jiangxch.mybatis.autoconfig.test.dao.BlogMapper; import com.github.jiangxch.mybatis.autoconfig.test.dao.entity.Blog; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.ann...
30.818182
96
0.698378
1afb66120ebfef166d0c448112a551f04b3b17a6
248
package com.polimorfismo; public class Pilot implements Caneta { @Override public void escreve() { System.out.println("escreve pilot"); } // overload public void escreve(Integer cor) { System.out.println("escreve pilot" + cor); } }
15.5
44
0.697581
cc7a9df428ad58a19f12cad31e53be1625b867d2
284
package jpuppeteer.cdp.client.entity.overlay; /** * experimental */ public class SetShowAdHighlightsRequest { /** * True for showing ad highlights */ public final Boolean show; public SetShowAdHighlightsRequest(Boolean show) { this.show = show; } }
16.705882
53
0.672535
9a107150d832b360f0e17f80fb795095d5e1a174
1,287
package github.banana.view; /** * 深拷贝和浅拷贝 * <p> * 浅拷贝 * 被复制对象的所有变量都含有与原来的对象相同的值, 而所有的对其它对象的引用仍然指向原来的对象 * 浅拷贝仅仅复制所考虑的对象, 而不复制它所引用的对象 * <p> * 深拷贝 * 被复制的所有变量都含有与原来的对象相同的值, 而那些引用其它对象的变量将指向被复制过来的新对象, 而不再是原有的那些被引用的对象 * 深拷贝把要复制的对象所引用的对象都复制了一遍 * <p> * Java数据类型 * * <pre><code> * |--------------------------------|...
25.235294
67
0.379176
653f5e6fd6905cf25ec345c5521849571914d248
2,176
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.test.cascade; import java.util.HashSet; import java.util.Set...
20.72381
100
0.331342
853296fbede8012fc71d35e9d2929ea2e2b46159
1,394
package org.tigergrab.javapooh.view.impl; import org.tigergrab.javapooh.Item; public class Element { protected String type; protected String item; protected byte[] bytes; protected int size = -1; protected String comment = ""; public Element(final String typeName, final String itemName, final byte[] bt, fin...
18.103896
80
0.672884
cdc8d2fa954135d32638391c8267de9854e51b18
801
package com.avereon.zenna.icon; import com.avereon.zarra.image.RenderedIcon; public class QuestionIcon extends RenderedIcon { @Override protected void render() { // Squiggle startPath(); moveTo( g( 9 ), g( 10 ) ); addArc( g( 12 ), g( 10 ), g( 3 ), g( 2 ), 180, 180 ); addArc( g( 16 ), g( 10 ), g( 1 ), g( ...
23.558824
66
0.510612
6eafcd555b11b4f3684878e0b1cfc6c516c68165
5,102
package mrnerdy42.keywizard.gui; import java.util.Arrays; import mrnerdy42.keywizard.util.KeybindUtils; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.resources.I18n; import net.minecraft.client.settings.KeyBinding; import net.minecraftforge...
36.184397
154
0.732066
fc04f9066b2fbc5fca644fc2a538728030fad99b
2,457
package com.rent.service.impl; import com.rent.common.CommonEnum; import com.rent.dao.HouseMapper; import com.rent.dao.PhotoMapper; import com.rent.entity.House; import com.rent.entity.Photo; import com.rent.entity.PhotoExample; import com.rent.service.PhotoService; import org.slf4j.Logger; import org.slf4j.LoggerFact...
34.605634
79
0.701262
613386101c87749fd31fc043af7afe66b0bf8073
1,356
package org.apache.jmeter.protocol.aws; /** * Message Attribute class. * @author JoseLuisSR * @since 01/27/2021 * @see "https://github.com/JoseLuisSR/awsmeter" */ public class MessageAttribute { /** * Message attribute name. */ private String name; /** * Message attribute type. *...
17.61039
48
0.532448