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
b3744dbdd166c3c74045db60131ea6f8b30d7492
6,734
/** * Copyright (c) 2016 Samsung Electronics, Inc., * 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 * li...
39.846154
148
0.786308
be487b9a96f367d2e74de0474c20df07855d0877
408
package cycling; public enum StageState { /** * Stage is currently under preparation * Segments can be added but no results can be */ UNDER_PREPARATION, /** * Stage is currently waiting for results * Segments can no longer be added but results can be */ WAITING_FOR_RESULTS, /** *...
17.73913
55
0.659314
519522e231dd71b971002122c43c73c2e970c5db
877
package gol.label; import javax.swing.JLabel; public class StatisticLabel extends JLabel { private static final long serialVersionUID = 4926258335130317160L; private static final String STATISTIC = "Statistics:"; private String status; private String aliveCount; private String evolutions; public StatisticL...
21.925
116
0.689852
669dd4b6bba1b88bd0435b040c44a860c11cb523
269
package cohadar.assembler.code; abstract class TextInstruction implements TextLine { final int sourceLine; final String mnemonic; public TextInstruction(int sourceLine, String mnemonic) { this.sourceLine = sourceLine; this.mnemonic = mnemonic; } }
22.416667
59
0.750929
4b5a56380ca180ca1963273aeb532f251793f4dc
3,473
package cn.edu.zut.zzti.server; import cn.edu.zut.zzti.core.Saver; import cn.edu.zut.zzti.model.impl.HtmlResource; import cn.edu.zut.zzti.model.impl.HtmlTask; import cn.edu.zut.zzti.model.impl.LinkItem; import cn.edu.zut.zzti.utils.ConfigUtils; import cn.edu.zut.zzti.utils.Constants; import cn.edu.zut.zzti.utils.HtmlU...
39.022472
197
0.576735
179f08534a3381ce7c6d3d659a62bf1c368501dc
5,355
package org.apache.batik.svggen.font.table; import java.io.IOException; import java.io.RandomAccessFile; public class Os2Table implements Table { private int version; private short xAvgCharWidth; private int usWeightClass; private int usWidthClass; private short fsType; private short ySubscriptXSize...
25.5
86
0.690943
a44141a23b222cf1afdcb320ba73569ca498fc8d
3,492
/* * ***************************************************************************** * Copyright 2013 William D. Kraemer * * 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://...
34.235294
106
0.621707
6ca0721f7a7895e32d2aac9f572cf3dad95ea582
980
package com.example.abdullah.budgetary.data; import android.arch.persistence.room.Entity; import android.arch.persistence.room.Ignore; import android.arch.persistence.room.PrimaryKey; import java.util.Date; @Entity(tableName = "periods") public class Period { @PrimaryKey(autoGenerate = true) private long id;...
18.490566
49
0.597959
c2c4f833461592ffc0226ec781374ca4012479f1
6,031
/* * Copyright 2014 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
37.930818
97
0.66009
c0031e5bac264a52badbd2a268f5590d82ffbd8f
2,952
package org.truenewx.tnxjee.core.parser; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.HashMap; import java.util.Locale; import java.util.Map; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.truenewx.tnxjee.core.Strings;...
37.367089
89
0.595528
0211e55817e888d3ead79dc4d9c3c48b0a5e9a6a
6,729
package eu.lucaventuri.fibry; import junit.framework.TestCase; import java.util.Random; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicLong; import java.util.stream.IntStream; import java.util.stream.Stream; public class TestGene...
27.921162
117
0.581513
e10b0cc04a6e5599e1f8d2c130aac26116ca8102
1,168
package webcrawley.crawler.elementcheckers; import org.jsoup.nodes.Element; import java.util.Arrays; /** * Class that checks for keywords in an element's attributes. */ public class AttributeElementChecker { private AttributeElementChecker() { throw new IllegalStateException("Utility class"); } ...
29.948718
110
0.604452
afa1d96b37a813d30ef0123e025e298bc2fda09f
356
package intergrative.mit.codebusters.Repositories; import intergrative.mit.codebusters.Models.UserModel; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.stereotype.Repository; @Repository public interface UserRepo extends MongoRepository<UserModel, String> { UserMod...
27.384615
70
0.842697
aafb2da16ed58442da76c63cc6b0522e981d0ef3
456
/** ** Copyright © 2020, Oracle and/or its affiliates. All rights reserved. ** Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. **/ package mushop.orders.resources; import org.hibernate.validator.constraints.URL; import java.net.URI; public class NewOrderResou...
21.714286
105
0.699561
d25e27a4bad100f3f67511a8b3dada32fea94c07
2,595
/* * Copyright (c) 2018 * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subl...
41.190476
150
0.785356
a08a1579677b3880ed57eeec0ff556b16b112277
1,673
package wallettemplate.startup.backup; import java.awt.Color; import java.awt.Desktop; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.File; import java.io.IOException; import java.net.URL; import java...
30.418182
117
0.774656
f833a27bb67886f0133cca3ebeb028978a8e194c
4,312
package org.infinispan.stream.impl.local; import java.lang.invoke.MethodHandles; import java.util.HashSet; import java.util.Set; import java.util.function.ToIntFunction; import java.util.stream.Stream; import java.util.stream.StreamSupport; import org.infinispan.AdvancedCache; import org.infinispan.Cache; import org....
42.693069
119
0.692486
469eca7ec881b9d30c2d409c31782f18a729b445
1,494
/* * Copyright 2021 webtau maintainers * * 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 ...
39.315789
116
0.761714
ec56a7a31343086e532cac893ba182615dad9219
509
package games.dominoes.stickersdominoes; import games.common.model.enums.Color; import games.common.model.enums.Direction; import games.dominoes.DominoTile; public class DominoStickerTile extends DominoTile<DominoStickerSide> { public DominoStickerTile(Shape shape, Color color) { for (Direction d : Dire...
25.45
70
0.719057
a2a91ad6bed21c8744f04840fe4314f271dc67c8
234
package nl.nn.adapterframework.doc.testtarget.doclet; import nl.nn.adapterframework.doc.IbisDoc; public class Parent { @IbisDoc("50") public void setInherited(String value) { } public String getInherited() { return null; } }
18
53
0.747863
9ff07310f82a07a0ebcd0077ff5c28ba7990be2d
499
package com.winson.spring.aop.features.bean; /** * @author winson * @date 2021/10/15 **/ public class User { private String name; private int id; public String getName() { return name; } public void setName(String name) { this.name = name; } public int getId() { ...
14.676471
48
0.553106
f40aad008817c38fd82e26087e8d912159036b01
2,771
package org.jmt.mcmt.serdes.filter; import java.util.ArrayList; import java.util.List; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.regex.Pattern; import org.jmt.mcmt.config.SerDesConfig; import org.jmt.mcmt.serdes.ISerDesHookType; import org.jmt.mcmt.serdes.SerDesRegistry; im...
26.644231
128
0.670877
40a2d781b0900d612868f3659fe640100f50c461
1,524
/* Copyright 2012-2014 Norconex 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 o...
28.222222
76
0.652887
6576413fe2fa44ab3159f7c78e897bbaba32cec3
415
package com.inventario.microservice.common.entity; import java.io.Serializable; import java.time.LocalDateTime; import lombok.Builder; import lombok.Getter; import lombok.Setter; @Getter @Setter @Builder public class ErrorEntity implements Serializable{ private static final long serialVersionUID = 1L; private S...
18.043478
50
0.807229
b5bfc376e7a93962ee2e1a1cfcffc8dd9514104b
3,373
/* * Copyright (C) 2019 The Turms Project * https://github.com/turms-im/turms * * 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 * *...
23.423611
75
0.653128
75bebb248573fba23e70d9a4230ed3c33b48f4ee
152
package com.devcircus.java.algorithms.maths.geometry; /** * * @author Adrian Novegil <adrian.novegil@gmail.com> */ public abstract class Shape { }
15.2
53
0.723684
d76e84f1ecc18ba4087152d5be3d1d5a24fc72b8
379
import java.io.*; public class salary extends employee { int da;int hra;int total=0; public double calc()throws IOException { super.accept(); da=(10*sal)/100; hra=(10*sal)/100; total=da+hra+sal; return total; } public void disp1() { super.disp(); System.out.println("The da="+da); System.out.println("The...
18.95
40
0.670185
a58c9385e0e63a87fb98c10fb460df5d20ad6bff
392
package uk.gov.ons.ssdc.caseprocessor.model.dto; import java.util.Map; import java.util.UUID; import lombok.Data; @Data public class CaseUpdateDTO { private UUID caseId; private UUID collectionExerciseId; private UUID surveyId; private boolean invalid; private RefusalTypeDTO refusalReceived; private Map<S...
23.058824
48
0.785714
f4eff7da2c204c7eae0fc76742763627bab4646d
1,957
package id.brainmaster.iso20022.util; import id.brainmaster.iso20022.entity.Transaction; import id.brainmaster.iso20022.entity.TransactionKey; import id.brainmaster.iso20022.model.FIToFICustomerCreditTransferV07; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; publi...
63.129032
179
0.706183
fe4484336097f5b7c7ac92ab61a9607402ede5a6
5,276
package org.opencb.opencga.account.beans; import java.util.ArrayList; import java.util.List; public class Account { private String accountId; private String accountName; private String email; private String password; private String role; private String status; private String mailingList; ...
25.244019
118
0.629644
26b01218b04a8b2f2fa7456284a4cb27fcffda9c
3,172
/* * Copyright (c) 2021-Present, Okta, 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 o...
44.676056
117
0.742434
b9d29d056b17a5e3b90c884aa89eb11add8627ba
1,151
package com.cloud.dips.gov.mapper; import java.util.List; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import com.baomidou.mybatisplus.mapper.BaseMapper; import com.baomidou.mybatisplus.plugins.Page; import com.cloud.dips.common.core.util.Query; import com.cloud.dips.gov.a...
28.775
108
0.75934
4cefbb6ab45f339af035de857b6c1394f04cab17
3,480
package br.com.mesttra.mcs.orcamento; import java.math.BigDecimal; import java.math.BigInteger; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.util.Calendar; import java.util.Date; import java.util.Random; import java.util.UUID; import org.apache.commons.lang3.Rand...
21.75
80
0.689943
10fef41e43917d4cec6e12ff80450c18624d9665
16,319
package com.dianping.cat.status.model.transform; import com.dianping.cat.status.model.Constants; import com.dianping.cat.status.model.IEntity; import com.dianping.cat.status.model.entity.*; import org.xml.sax.Attributes; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.helpers.Defaul...
39.705596
144
0.618972
6f9e764d57378f56da8d9816e12f8cd038478772
1,470
package dao; import models.Departments; import models.Users; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.sql2o.Connection; import org.sql2o.Sql2o; import static org.junit.jupiter.api.Assertions.*; class Sql2oDepartmentsDaoTest { p...
28.269231
102
0.680272
078f4abacf2771f3b28dc21c88d9835fda385fe3
800
package com.soft.ware.model; public class LikeLink { private Integer id; private String link; private String remark; private Integer programmerId; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getLink() { ...
18.604651
60
0.5975
0496f9d83f5d1e4cc032e6df2de20c09cfb3f64d
3,763
/* * 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 ...
38.397959
116
0.6827
506ae209d37cd78ccd8ab5175594e06319cb79fa
3,517
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
35.887755
98
0.684959
af37114c19fd10b606cfc4280574bf611ae4a70d
1,377
package com.axlabs.ip2asn2cc.checker; import com.axlabs.ip2asn2cc.model.IPv4Subnet; import org.apache.commons.net.util.SubnetUtils; import org.apache.commons.validator.routines.InetAddressValidator; import java.util.Collections; import java.util.HashMap; import java.util.Map; public class IPv4Checker implements IPv4...
32.785714
121
0.682643
fb1552dee96e3f9c143f4ce0d27c28a7ad866d3e
2,485
package org.phoenix.interview.ctci.objectorienteddesign.parkinglot; import java.util.ArrayList; import java.util.List; /** * Design a Parking Lot */ public class Driver { public static void main(String[] args) { // Construct the parking lot int numberOfLevels = 5; int numberOfRows = 10;...
34.041096
102
0.522736
ffe59ad28dd312eba4ff27a589ae637c1917aefe
6,992
package aueb.gr.nasiakouts.popularmovies.Data; import android.content.ContentProvider; import android.content.ContentUris; import android.content.ContentValues; import android.content.UriMatcher; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.net.Uri; import android.suppo...
36.227979
128
0.613701
94e1b31d7de8180ee56404dfaa0916e4f2f76f34
4,924
/* * JBoss, Home of Professional Open Source * Copyright 2009-10 Red Hat and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser G...
31.164557
121
0.552396
c2c18d7edd25a26f5cc4f502be2b2d41f9acd046
2,418
package stroom.test; import com.google.inject.AbstractModule; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import stroom.app.guice.CoreModule; import stroom.config.app.AppConfig; import stroom.config.app.AppConfigModule; import stroom.config.app.YamlUtil; import stroom.index.VolumeTestConfigModule; import ...
36.636364
120
0.682382
31db1e41deebae1fbc791ecd3822be4bc326e8b1
3,924
/** * Copyright (c) 2016 Lemur Consulting Ltd. * <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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by appli...
31.902439
112
0.706932
02927f9d5bb1f512f939131d98437782e76dfad5
527
package org.jabref.logic.layout.format; import java.util.Locale; import java.util.Optional; import org.jabref.logic.layout.LayoutFormatter; import org.jabref.model.entry.Month; public class RisMonth implements LayoutFormatter { @Override public String format(String month) { if (month == null) { ...
25.095238
96
0.703985
8485e26dbcf764f2ef2e842f205a16b87219a76f
1,774
package com.jacobandersson.dodskrok.cast; import android.app.Activity; import android.util.Log; import com.google.android.libraries.cast.companionlibrary.cast.BaseCastManager; import com.google.android.libraries.cast.companionlibrary.cast.CastConfiguration; import com.google.android.libraries.cast.companionlibrary.ca...
34.784314
90
0.726607
8a9cb08a7eb8d2921fd25ea01d2e44cbb40d5f8c
4,189
/* * Copyright 2020 DataStax, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
34.619835
96
0.705658
f07e13428e34ba05c3a0af91d37b91c50ac127dd
5,303
package com.github.mmauro.glhmg; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonParseException; import com.github.mmauro.glhmg.datastruct.Corrections; import com.github.mmauro.glhmg.datastruct.Location; import com.github.mmauro.glhmg.datastruct.Locations; import com.github.mmauro....
39.574627
239
0.711484
efbf8005cd2c265430472ef56a54457603a0af3b
15,414
/* * 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...
34.40625
173
0.622356
d708c203aa5e7a64f8c80d874f14fd461147eba4
2,325
package calc_mvc; import java.util.LinkedList; import java.util.List; /** * This class must be inherited by the Calculator's Model. * @author lzfelix */ public abstract class CalculatorObservable { private List<CalculatorObserver> observers; public CalculatorObservable() { observers = new LinkedList<>(); } ...
31.418919
110
0.730753
418a6b82345d2266b530521e45e477941bd80c51
1,750
package org.folio.circulation.support.results; import static api.support.matchers.FailureMatcher.isFailureContaining; import static java.util.concurrent.TimeUnit.SECONDS; import static org.folio.circulation.support.results.Result.succeeded; import static org.folio.circulation.support.results.ResultExamples.alreadyFail...
34.313725
81
0.770286
9205ae23b93894ca9550f8c00d78907863d25efd
2,929
/* * Copyright 2021 Open Raven 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 ...
20.921429
75
0.704677
49132d77c11fe32af791d431319cef2b3b73da5d
4,963
package de.sopro.model; import com.fasterxml.jackson.annotation.JsonView; import de.sopro.filter.Views; import org.hibernate.annotations.LazyCollection; import org.hibernate.annotations.LazyCollectionOption; import org.hibernate.annotations.NaturalId; import org.springframework.security.core.GrantedAuthority; import o...
23.083721
88
0.642353
ca09fd394fcb97cf64e57b2ef730f2151ed98675
2,357
/******************************************************************************* * (c) Copyright 2016 Hewlett-Packard Development Company, L.P. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License v2.0 which accompany this distribution. * * T...
31.013158
99
0.621553
553d5b53fdb56e1fee362dd74b80971ea8a178d1
2,425
package MONTECARLO; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; /** * Devuelve un archivo de texto plano, para escribir en �l. * * @version 1.0, 07/07/2012 * @author Jos� Ra�l Garc�a Giles. */ public class TextFile { /** * Escritor del tex...
26.648352
83
0.582268
523e0ef335dc11b1b0479963a559d97a28c9da36
1,189
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.commands; import java.util.function.DoubleSupplier; import edu.wpi.first.wpilibj2.command.CommandBas...
31.289474
127
0.765349
7f2da3625dff64619bf80e2af769cfde512ec56c
840
package org.apache.batik.svggen.font.table; import java.io.IOException; import java.io.RandomAccessFile; public class LigatureSet { private int ligatureCount; private int[] ligatureOffsets; private Ligature[] ligatures; public LigatureSet(RandomAccessFile var1, int var2) throws IOException { var1.s...
28.965517
75
0.675
112077d9ff900f0fab30690fe635660ba83b570b
489
package com.syska.network.controllers; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class HelloController { @RequestMapping(value = "/api/hello") public String hello() { return "hello"; } @RequestMapping(v...
20.375
62
0.658487
7c08014ccef045389525239473d80a6b9f0d1f22
4,926
/* * Copyright (C) 2015, BMW Car IT GmbH * * Author: Sebastian Mattheis <sebastian.mattheis@bmw-carit.de> * * 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...
35.438849
100
0.573488
c13d87bea5612449f776469f914d8fd8e574f427
2,431
/* * 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")...
29.646341
79
0.636364
6141927eb92bc7e681b43118fbaa399ada6c81f8
2,112
/** * 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...
40.615385
107
0.738636
f4f2b19a3833ab7506b5f96146df7c9a1098770e
601
package org.javaturk.oofp.ch11; import java.util.*; import org.javaturk.oofp.ch10.domain.*; public class ListSorter { public static void main(String[] args) { List<Employee> employees = new ArrayList<>(); employees.add(new Employee(3, "Kemal", "Can", 3)); employees.add(new Employee(23, "Fatma", "Nar", 5)); ...
21.464286
55
0.667221
c0053549892c92dfb9fd2182821601485a3bdf6f
4,407
package boardgames.view.game; import java.awt.Dimension; import java.awt.Font; import java.awt.FontFormatException; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Toolkit; import java.awt.event.ActionListener; import java.io.IOException; import java.io.InputStream; import java.util...
32.88806
111
0.680054
c6ccfadbfdb1cd0c17f8566babcb237635624554
2,849
/** * Copyright 2011-2019 Asakusa Framework Team. * * 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...
31.655556
84
0.640225
d6681c20ca48c28079966bfd26d8a9d54ad6315e
899
package com.maxqiu.demo.normal; /** * 整数反转 * * https://leetcode-cn.com/problems/reverse-integer/ * * @author Max_Qiu */ public class Issue0007 { public static void main(String[] args) { System.out.println(Integer.MAX_VALUE); System.out.println(reverse(123)); System.out.println(rever...
24.972222
52
0.53059
3c2d7ce7fbac87e0bd0ce60384f2f9692aa14ae2
1,025
package gui.controller; import gui.MainApp; import javafx.fxml.FXML; /** * Dummy class that works as a parent class for all the controllers, so the application * can change panels accordingly without worrying. * @author Melina Vidoni, INGAR CONICET-UTN, 2016. */ public abstract class Controller { /** * ...
21.354167
87
0.640976
98d6fbdd23d140905d630eb01f09d37f00118228
2,380
package rocks.process.acrm.data.domain; /* * Copyright (c) 2020. University of Applied Sciences and Arts Northwestern Switzerland FHNW. * All rights reserved. */ import javax.persistence.*; import java.util.ArrayList; import java.util.List; @Entity @Table(name = "t_author") public class Author { @Id @Ge...
21.25
93
0.617647
51c1d15c93b5a63ecd1fcd32da68632f9888cb41
1,439
package com.ossel.petrobot.data; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Item { private String text; private Date createDate; private String creator; private static DateFormat dateFormat = new SimpleDateFo...
21.477612
87
0.601807
f73ffa62fac2261199bef46d1ab840101db475b0
63
package week13; public class Student extends Person { }
9
37
0.698413
e03dc89c56eb1455a6b1b9b3fee709502a055c17
6,494
package com.viesis.viescraft.configs; import java.io.File; import net.minecraft.util.text.TextFormatting; import net.minecraftforge.common.config.Configuration; import com.viesis.viescraft.api.util.LogHelper; public class ViesCraftConfig { public static Configuration config; public static final String CATEGORY_...
51.952
146
0.797505
7d4563ffdc196a34f4a1a21d7ab8e7ff26ba3a26
2,101
package Autonomous; import android.content.ClipData; import com.qualcomm.robotcore.eventloop.opmode.Autonomous; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import org.checkerframework.checker.units.qual.C; import java.util.Arrays; import DriveEngine.DriveConstraints; import DriveEngine.MecanumDriv...
30.014286
89
0.769158
eb389e377aaee6dba988e356bcd0c2923f085d9c
4,923
package ch.aaap.harvestclient.impl.project; import java.time.LocalDate; import org.junit.jupiter.api.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static org.assertj.core.api.Assertions.assertThat; import ch.aaap.harvestclient.HarvestTest; import ch.aaap.harvestclient.api.ProjectsApi; import ch...
33.951724
115
0.631525
eeb9f6304fa2a73d2c9709e13ef73227b8f0ec98
1,812
package edu.sjtu.naocemis.entity; import com.fasterxml.jackson.annotation.JsonIgnore; import javax.persistence.Entity; import javax.persistence.Id; import java.util.Date; /** * @author alan_chen * @date 2019/7/30 */ @Entity(name = "consumable_product") public class ConsumableProduct { @Id ...
21.831325
59
0.635762
5779b8784e145da674a58727c763fa46b274070a
4,087
/** * The MIT License (MIT) * * Copyright (c) 2009-2015 FoundationDB, 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...
32.696
92
0.659653
8e2b2ef2361dd80e0d24c10336295ee8a510d6ef
5,898
package org.optaplanner.openshift.employeerostering.webapp.skill; import org.jboss.arquillian.test.api.ArquillianResource; import org.jboss.resteasy.client.jaxrs.ResteasyClient; import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder; import org.jboss.resteasy.client.jaxrs.ResteasyWebTarget; import org.junit.Test...
42.73913
120
0.671923
d699a51bf462d9a2d12fbe2d61859d0df104fdd0
2,860
package com.dotmarketing.util; import java.io.File; import java.io.IOException; import java.util.Date; import com.liferay.util.FileUtil; public class TrashUtils { private final String trashFolder; public TrashUtils(final String trashFolder){ this.trashFolder=trashFolder; } public TrashUtils(){ this(ConfigUt...
29.484536
150
0.719231
eed9d036294d00440ba800b9fbcb0262fd3635b6
1,134
//--------------------------------------------------------------------------------------------------------------------- // Copyright (C) 2015-2020, Joseph M. G. Tsai // under the terms of the Apache License, Version 2.0 (ALv2), // found at http://www.apache.org/licenses/LICENSE-2.0 //-----------------------------------...
54
119
0.410935
53ecbcc19280e38aafdb0a6c173dfd4c8236a021
3,059
package io.cloudracer; /** * Predefined values used by the test routines. * * @author John McDonnell * */ public abstract class TestConstants { /** * Duration of 1/10th of one second, expressed in milliseconds. */ public static final int ONE_TENTH_OF_A_SECOND = 100; /** * Duration of 1...
26.6
106
0.617849
af625a8ab4f93103adbe5a2dfde7f31d00ca0f9c
669
package qouteall.imm_ptl.core.mixin.common.portal_generation; import qouteall.imm_ptl.core.portal.custom_portal_gen.CustomPortalGenManagement; import net.minecraft.server.PlayerManager; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injecti...
33.45
80
0.784753
b12c564c2edb07958d25bef36e9b71e41f36055d
3,220
/* * 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 ...
37.011494
99
0.763665
8644bcb682172e10df3adc2a74cb0d7ba4fb0b85
1,337
package com.wptdxii.playground.todo.addedittask.usecase; import android.support.annotation.NonNull; import com.wptdxii.framekit.executor.PostExecutionThread; import com.wptdxii.framekit.executor.ThreadExecutor; import com.wptdxii.framekit.interactor.CompletableUseCase; import com.wptdxii.framekit.di.scope.Acti...
29.065217
93
0.71279
ee55bde06aad833229034bd6f9609860ee0c4ef4
6,716
/* Derby - Class com.pivotal.gemfirexd.internal.impl.sql.execute.SetRoleConstantAction 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 lic...
35.723404
86
0.624926
bcad47f4dec926350909aad3d9e794ceb316fd85
160
package test.org.springdoc.api.app54; import test.org.springdoc.api.AbstractSpringDocTest; public class SpringDocApp54Test extends AbstractSpringDocTest { }
20
63
0.8375
edc64fbe115cbaae2b87ac085c994436edc52f87
1,501
/* * 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 ...
27.290909
75
0.698201
768515fae56a474885f92c8748ba4d75b89b78dd
299
package com.mobilebanking.transferservice; import com.mobilebanking.transferservice.controllers.Controller; import dagger.Component; import io.javalin.http.Context; @Component(modules = TransferServiceModule.class) public interface TransferServiceComponent { Controller<Context> controller(); }
24.916667
64
0.839465
11db79f52488bd0607a9bcd75c1e45cdb6bc819a
2,364
package me.javaee.uhc.database.serverinfo; import com.mongodb.client.FindIterable; import com.mongodb.client.MongoCollection; import com.mongodb.client.MongoDatabase; import com.mongodb.client.model.Filters; import lombok.Getter; import lombok.Setter; import me.javaee.uhc.UHC; import me.javaee.uhc.utils.DatabaseUtils;...
32.383562
90
0.663706
6e9dc62a6d399570caa4007a77a1e488b2df10ec
967
package xyz.snwjas.blog.model.vo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; import xyz.snwjas.blog.model.base.BeanConvert; import xyz.snwjas.blog.model.enums.SpecialListType; import...
21.977273
67
0.785936
cc49e16ccc730467689048e2291f8f193ba20dd0
2,767
package com.github.rkumsher.date; import static com.google.common.base.Preconditions.*; import static java.time.Month.FEBRUARY; import static java.time.temporal.ChronoField.DAY_OF_MONTH; import static java.time.temporal.ChronoField.MONTH_OF_YEAR; import java.time.LocalDateTime; import java.time.LocalTime; import java...
36.893333
100
0.730394
41b24ba7a8154f90ce6c304492cc2c3f7c018daf
1,841
package pig.dream.compiler; import com.squareup.javapoet.ClassName; import com.squareup.javapoet.JavaFile; import com.squareup.javapoet.MethodSpec; import com.squareup.javapoet.ParameterizedTypeName; import com.squareup.javapoet.TypeSpec; import java.util.Map; import javax.lang.model.element.Modifier; /** * @autho...
40.911111
164
0.700163
9e5d615cb2de42141f44c74032176daa40469595
1,055
package org.nutz.pay.bean.poslink.req; /** * Copyright 2018 Freshplay Co ltd * * @author howechiang */ public class QueryRefundReq extends BaseReq { /** * 商户订单号 * 商户订单号与银商订单号至少存在一个,如均存在,以银商订单号为准,忽略商户订单号 */ private String merchantOrderId; public String getMerchantOrderId() { ret...
20.288462
60
0.661611
08f79193365e6e8c10d566152dbba5d07aa7472c
2,136
/* * Copyright 2012-2016, the original author or 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 ...
35.016393
142
0.714419
292725b9505aa12859571e6892c9b1c4d98a885a
409
package com.tysonmak.states.manager; import com.tysonmak.application.Application; import java.awt.*; public abstract class GameState { protected Application app; protected GameStateManager gsm; public GameState(Application app, GameStateManager gsm) { this.app = app; this.gsm = gsm; ...
19.47619
61
0.706601
c7ee9b29cf706e40ba226e54822d071793746217
1,079
package ada.adapters.cli.converters.api; import ada.adapters.cli.converters.avro.AvroSink; import ada.adapters.cli.converters.avro.AvroSinkMemento; import ada.adapters.cli.converters.csv.CSVSink; import ada.adapters.cli.converters.csv.CSVSinkMemento; import ada.adapters.cli.converters.local.LocalSink; import ada.adapt...
38.535714
95
0.732159
36cdb726cadd69886b956d95131e5b16ba7e61ac
1,253
package com.liangxiaoqiao.leetcode.day.easy; /* * English * id: 665 * title: Non-decreasing Array * href: https://leetcode.com/problems/non-decreasing-array * desc: Given an array with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element.\nWe define an array is non-d...
44.75
510
0.696728
6b8f0344df5f497b3b5fcfb242373ab429acc4de
204
package ru.ruscalworld.points.common.core; import org.jetbrains.annotations.Nullable; import java.util.UUID; public interface PlayerManager { @Nullable OfflinePlayer getOfflinePlayer(UUID uuid); }
20.4
56
0.803922
0a5ed1a27a8464546903e02386bcac869e839461
15,531
/* * Copyright (c) 2008-2016 Haulmont. * * 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 agr...
47.935185
138
0.645548
929533bd1e0815068b220fbfd21a1278c6e545c4
6,643
/* * 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 ...
26.05098
99
0.661147
c8158454bad65e7853bd0f914c9327985cb510c1
423
package iscte.ico.semantic.infrastructure; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; @SpringBootApplication @ComponentScan("iscte.ico.semantic") public class RunServices { pu...
28.2
68
0.803783
d336bf861c34534405c8080958a981902db465f7
1,628
package com.fasterxml.jackson.databind.introspect; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.*; // Test(s) for [databind#1947], regression for 2.9 public class AutoDetect1947Test extends BaseMapTest { static class Entity1947 { public int shouldBeDetected;...
34.638298
107
0.670762
66d358b02dbae8447783b5babd7c52775a29ae21
4,806
package app_chapp; import java.io.*; import java.security.NoSuchAlgorithmException; import java.util.HashMap; import java.util.Map; import java.util.logging.ConsoleHandler; import java.util.logging.FileHandler; import java.util.logging.Level; import java.util.logging.Logger; /** * Created by Igor Konoval...
32.04
116
0.598835