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
3e6aedc1e257ec91c9ad0ce1775445cee97cdd88
392
package com.luno.dto.trade; import com.fasterxml.jackson.annotation.JsonProperty; public class LunoPostOrder { public final String orderId; public LunoPostOrder(@JsonProperty(value="order_id", required=true) String orderId) { this.orderId = orderId; } @Override public String toStrin...
21.777778
89
0.67602
777d9a6b379deb53164fd230cea117a5676789cb
118
package com.sun.jna; public interface ffi_callback { void invoke(final long p0, final long p1, final long p2); }
16.857143
61
0.728814
3bc385374e33c5c9981297d9561de2d159e8936f
609
package com.loserico.concurrent; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class SynchronizedTest { private String name = "a"; public synchronized void name() { System.out.println("rico"); } public void foo() { synchronized (this.name) { ...
20.3
63
0.668309
de13e2be249e49947cff2f38986df79e5862d29d
2,107
package com.cezarykluczynski.stapi.server.performer.query; import com.cezarykluczynski.stapi.client.v1.soap.PerformerBaseRequest; import com.cezarykluczynski.stapi.client.v1.soap.PerformerFullRequest; import com.cezarykluczynski.stapi.model.performer.dto.PerformerRequestDTO; import com.cezarykluczynski.stapi.model.per...
45.804348
147
0.864737
acaa7c2f16c63551caec94e1accfd080a0f0c5ea
3,982
package pasa.cbentley.swing.table; import java.awt.Component; import java.util.ArrayList; import javax.swing.DefaultRowSorter; import javax.swing.JTable; import javax.swing.RowSorter; import javax.swing.SortOrder; import javax.swing.table.TableCellRenderer; import javax.swing.table.TableColumn; import java...
36.87037
100
0.666248
e5a08429fc2a4a86e1e348e32a45e8b6726a1d5a
1,237
package com.umbra.apktool.build; import java.io.File; import java.io.FileOutputStream; import java.io.PrintStream; import java.security.KeyStore; import java.security.cert.X509Certificate; import java.util.jar.JarEntry; import java.util.jar.Manifest; public class PatchBuilder { private SignedJarBuilder mBuilder; ...
30.170732
110
0.627324
a86130590ce5ff7509e026d8d0a39c2674ff9c14
13,905
package utils.streams2; import java.util.Comparator; import java.util.DoubleSummaryStatistics; import java.util.IntSummaryStatistics; import java.util.LongSummaryStatistics; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.stream.Coll...
44.710611
115
0.723193
5386f5f08db9d53a211b36abc5dc769bd449c3c8
3,081
package cn.gy.thread; import java.util.Random; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; /**...
29.342857
75
0.434275
afbc11acf69ef214ea38116b606f2bb200aedfdf
612
package org.narrative.network.customizations.narrative.service.api.model; import com.fasterxml.jackson.annotation.JsonTypeName; import org.narrative.network.customizations.narrative.serialization.jackson.annotation.JsonValueObject; import lombok.Builder; import lombok.Value; import java.util.List; /** * Date: 9/13/...
25.5
103
0.802288
5d30e2b6eb25ed8a7e711c3e70abb2f8a2f81f3a
4,159
package com.fluidsimulator.gameobjects.fluid; import java.util.ArrayList; import java.util.Iterator; abstract public class SpatialTable<V> implements Iterable<V> { // default nearby table size private static final int DEFAULT_NEARBY_SIZE = 50; // the actual spatial table private final ArrayList<V> table; // a ...
22.12234
101
0.636451
676ccafae1d9477be9600ed0d23d04707ac94234
10,843
/* * MIT License * * Copyright (c) 2020 Paul Boese a.k.a. Aeronica * * 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 ...
41.385496
137
0.589413
50c6a34ac868af40a88fa1181b36fdaacbddbf2b
2,205
package org.cyka.client; import com.google.common.base.Strings; import io.netty.bootstrap.Bootstrap; import io.netty.channel.Channel; import io.netty.channel.EventLoopGroup; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.pool.ChannelPool; import io.netty.channel.pool.ChannelPoolMap; import io.n...
33.923077
86
0.736054
41789b89dfbae23615ee60ccf1d99a671631a6b2
849
package com.github.datalking.beans.factory.support; import com.github.datalking.beans.factory.config.BeanDefinition; /** * BeanDefinition默认的简单实现类 * 代替spring的ChildBeanDefinition * * @author yaoo on 4/3/18 */ public class GenericBeanDefinition extends AbstractBeanDefinition { // private String parentName; ...
21.225
86
0.683157
a872a2db08eb69190d566f989d1eba0306f00f9b
108
package org.myrobotlab.service.config; public class PollyConfig extends AbstractSpeechSynthesisConfig { }
18
64
0.842593
dc636bdaf21c6810dbc620deaf21ce924543f742
911
import javax.print.*; import java.io.*; public class Main244 { public static void main(String[] args) throws PrintException, FileNotFoundException { DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE; String mimeType = "application/postscript"; StreamPrintServiceFactory[] factor...
41.409091
134
0.739846
4791220f925017ef1511e029947dffb1f2d1c67c
408
import java.util.ArrayList; import java.util.List; public class History { private List<EditorState> states=new ArrayList<>(); public void push(EditorState state){ states.add(state); } public EditorState pop(){ var lastIndex=states.size()-1; var lastState=states.get(l...
21.473684
56
0.617647
ef1e0ba069385334b082cac4dc5c443db0c026c8
1,313
package org.usfirst.frc250.Stronghold2016.commands.auto; import org.usfirst.frc250.Stronghold2016.Constant; import org.usfirst.frc250.Stronghold2016.Robot; import edu.wpi.first.wpilibj.command.Command; /** * */ public class _DriveForward extends Command { boolean isSlow; public _DriveForward(boolean isSlow) { ...
24.314815
104
0.741813
4359fc49841360b0a672f2daabc5e26790ede1f5
2,095
package nl.mvdr.adventofcode.adventofcode2017.day25; /** * Specification of a single step in a Turing machine. * * @author Martijn van de Rijdt */ class Step { /** Value to write: false for 0, true for 1. */ private final boolean value; /** The direction of the next slot: 1 for right, -1 for left. */ ...
32.230769
110
0.600955
d2ec4ecb9d43e5f2d82214868e7b9c70c82c02a3
367
package deltix.qsrv.hf.tickdb.pub; public class LoadingError extends RuntimeException { public LoadingError() { } public LoadingError(String message) { super(message); } public LoadingError(String message, Throwable cause) { super(message, cause); } public LoadingError(Th...
19.315789
58
0.651226
5c74a33693804ac85603b0b4d51f22013547d680
2,136
package es.udc.fi.dc.fd.test.unit.model.form; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; import org.junit.jupiter.api.Test; import org.junit.platform.runner.JUnitPlatform; import org.junit.runner.RunWith; import org.springframework.test.annotation.Rollback; import org...
26.04878
82
0.765449
ebb5cbcba59599ef28522d4abb1fa7f99eb0b1a9
2,651
package com.ruoyi.cms.common.mould.support; import com.github.pagehelper.PageInfo; import java.io.Serializable; import java.util.List; import java.util.Map; /** * @author bobey * * 分页数据 */ public class PageData implements Serializable { private static final long serialVersionUID = 1L; /** 总记录数 */...
21.379032
86
0.56771
4723f4a12d1eedcdc73d8f8ec323959b6a352437
2,368
/* * Copyright 2019 Miroslav Pokorny (github.com/mP1) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
26.021978
91
0.686233
70312cc08ae8e641535ae4b56b30ff58a272d62a
969
package com.eyeline.miniapps.interceptor; import com.eyelinecom.whoisd.sads2.RequestDispatcher; import com.eyelinecom.whoisd.sads2.common.InitUtils; import com.eyelinecom.whoisd.sads2.common.Initable; import com.eyelinecom.whoisd.sads2.connector.SADSRequest; import com.eyelinecom.whoisd.sads2.exception.InterceptionExc...
30.28125
107
0.765738
714c5c18b29ddc47b9f90ea9f832a0ad1a1e8453
4,082
package com.dcap.fileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; /** * Class from Cheetah_Web1.0 * modification by uli * */ public class DataFileUtils { /** * Get the pupil values * * @param lines * the lines to be processed * @param column * ...
26.335484
137
0.668055
fc6bb7f43bf4537580534090b6d074f10a68b36b
3,017
package com.jmc.force.rest; import java.io.IOException; import java.net.URLEncoder; import org.apache.http.Header; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http....
31.757895
88
0.707325
75d14359d0128287642f0848cb7ff8e3c44d089a
334
package com.example.patterns.singleton; /** * 单例模式——枚举模式 */ public enum EnumInstance { /** * 默认的枚举实例是线程安全的,而且可以保证在任何情况下都是一个单例 * 其他单例模式可以在反序列化的情况下重建对象,必须加入readResolve()方法才能避免 */ INSTANCE; private String word = "word"; public void doSomething() { System.out.println("do somethi...
16.7
52
0.640719
1cea048b57ef65090340e2c47a8349a2c75849b6
799
package abacus.project.ietf.network.topology; import java.io.Serializable; import abacus.project.ietf.inet.types.Uri; /** * An identifier for a link in a topology. * The precise structure of the link-id * will be up to the implementation. * The identifier SHOULD be chosen such that the same link in a * real net...
29.592593
67
0.749687
6b41b8290e53caa5a812b9dd8fb8205dbffdf08c
7,169
package com.ycbjie.video.ui.fragment; import android.annotation.SuppressLint; import android.content.Context; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.FragmentActivity; import android.util.Base64; import android.view.View; import android.widget.LinearLayout; ...
33.344186
119
0.565211
2363f04a7d603c24be20da1e953f2ea65b691bda
1,682
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
27.129032
98
0.747325
6de1ffd9a1c0fab5e5276ea30c827cd499f46985
1,554
/* * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
42
101
0.767053
4ac19dc4d056e2ce6c6c47355650111f32a0e35e
853
package org.simplejavamail.converter.internal; import org.jetbrains.annotations.NotNull; import org.simplejavamail.api.email.Email; import org.simplejavamail.converter.EmailConverter; import org.simplejavamail.internal.util.InternalEmailConverter; import javax.mail.internet.MimeMessage; /** * @see InternalEmailConv...
28.433333
88
0.826495
0d0bdcb871e76fccff70f9bd0ccc201a83839299
1,559
package br.ufsc.ine.leb.projetos.estoria.testes.figuracao.classes; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; public abstract class ClasseCheiaDeMetodosDeTeste { @Before public void metodoDeConfiguracao() {} @Ignore @Before public void metodoDeConfiguracaoComIgnore() {} @Test @...
17.715909
66
0.758178
ba55b92eeb831263f387e5d0c183a4f03d181620
10,108
/* * Copyright © 2017 IBM Corp. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
44.333333
111
0.590324
a508658f109fde2918fa31b7ab255585499c5bc7
1,256
/* */ package com.hundsun.network.gates.wulin.biz.service.pojo.baseset; /* */ /* */ import com.hundsun.network.gates.wulin.biz.dao.baseset.SystemUserCheckDao; /* */ import com.hundsun.network.gates.wulin.biz.domain.baseset.SystemUserCheck; /* */ import com.hundsun.network.gates.wulin.biz.service.Bas...
46.518519
107
0.670382
1f8ef02a3906a68e83127c6499ecc7b24c8352e8
3,866
package okhttp3; import java.nio.charset.Charset; import java.util.Locale; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.annotation.Nullable; public final class MediaType { private static final Pattern PARAMETER = Pattern.compile(";\\s*(?:([a-zA-Z0-9-!#$%&'*+.^_`{|}~]+)=(?:([a-zA-Z0-9...
27.034965
153
0.59881
6fad38f5b714d58959c5fdf9f7f12e1d628d50f8
217
package com.orientechnologies.common.console; public interface OConsoleReader { public String readLine(); public void setConsole(OConsoleApplication console); public OConsoleApplication getConsole(); }
21.7
54
0.78341
d692f59c0281dc207eed9a3b9c4996c009c1057a
11,020
/* * 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 ...
38.263889
140
0.663067
d00251f9d679ed6053e2fd51faadd18fa870292f
2,384
package io.antmedia.console.datastore; import io.antmedia.datastore.db.types.User; import io.antmedia.rest.model.UserType; import java.util.HashMap; import java.util.List; import java.util.Map; public abstract class AbstractConsoleDataStore { public static final String SERVER_STORAGE_FILE = "server.db"; public ...
26.786517
104
0.769715
6d1f0fe27961526d592fb168ee7dc12c48dd6a89
1,523
/* * This source file is subject to the license that is bundled with this package in the file LICENSE. */ package com.codeup.auth.infrastructure.web.servlets; import com.codeup.auth.domain.authentication.SignUpUser; import com.codeup.auth.infrastructure.di.AuthContainer; import javax.servlet.ServletConfig; import j...
31.729167
100
0.723572
09cab3df5972905a3556c41ca73021a47eefb38b
1,584
package com.joselestnh.calendar; import android.app.Notification; import android.app.NotificationChannel; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.TaskStackBuilder; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Inten...
42.810811
147
0.767677
1baa48ffd45a78754c8231163ea135356f404de8
460
package de.maxanier.guideapi.api.util; public class NBTBookTags { public static String BOOK_TAG = "G-API_Book"; public static String CATEGORY_TAG = "G-API_Category"; public static String CATEGORY_PAGE_TAG = CATEGORY_TAG + "_Page"; public static String ENTRY_TAG = "G-API_Entry"; public static Strin...
35.384615
68
0.728261
a8d084ff70da790a15f84f8173f80cbaea5a070c
322
package com.ihtsdo.snomed.service.manifest.model; import java.util.List; public class CrossmapRefsetCollection extends BaseRefsetCollection{ public CrossmapRefsetCollection() { super(); } public CrossmapRefsetCollection(List<RefsetModule> refsetModules){ super(refsetModules); } ...
20.125
70
0.726708
523c17e1abf4af7a0c873c33e5076038230664eb
469
package com.codeborne.selenide; public enum FileDownloadMode { /** * Download files via direct http request. * Works only for <a href></a> elements. * Sends GET request to "href" with all cookies from current browser session. */ HTTPGET, /** * Download files via selenide embedded proxy server. ...
26.055556
82
0.695096
b7c51183ab3d69337f647220d802aa06ba98e6f0
1,793
package org.embulk.filter.unnest; import org.embulk.filter.unnest.UnnestFilterPlugin.PluginTask; import org.embulk.spi.Column; import org.embulk.spi.Exec; import org.embulk.spi.Page; import org.embulk.spi.PageBuilder; import org.embulk.spi.PageOutput; import org.embulk.spi.PageReader; import org.embulk.spi.Schema; imp...
28.919355
127
0.693252
2b8afb9b668a89a771bb84d351ed20ace3b33467
2,043
package org.byron4j.cookbook.web; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.Authorization; import net.sf.json.JSONObject; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.byron4j.cookbook.springMVC.root.domain.User; import org.byron...
32.428571
101
0.668135
36fc19e2be5bcabbee077702bcfce4363748848e
562
package es.ucm.fdi.iw.model; import java.util.*; import javax.persistence.*; import lombok.Data; @Entity @Data @Table(name="tag") public class Tag { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "gen") @SequenceGenerator(name = "gen", sequenceName = "gen") private long id; p...
21.615385
74
0.685053
43e245d26ae9f903166002c76f1e4ef1632e0da5
689
package exo05; import lombok.Builder; import lombok.Data; import lombok.Value; import java.time.LocalDate; public class BulkEditing { @Data class MutablePerson { private Integer id; private String label; private LocalDate birthDate; public ImmutablePerson asImmutable() { ...
20.878788
46
0.557329
90eb29d61d70d42175215141bdbc2547b05d6655
4,741
/* * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. 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/...
56.440476
119
0.763552
89f61f207594f4139dc2787972ee986e8cd03f85
12,484
package de.liz3.liz3web.core; import com.teamdev.jxbrowser.chromium.Browser; import com.teamdev.jxbrowser.chromium.BrowserType; import com.teamdev.jxbrowser.chromium.javafx.BrowserView; import de.liz3.liz3web.Liz3Web; import de.liz3.liz3web.gui.controller.BrowserTabController; import javafx.application.Platform; impor...
36.502924
120
0.514979
a92db30454ebdf4441ae36f36b54c281be1f76d0
2,625
/* TestDocument.java */ package org.xlattice.corexml.om; import junit.framework.*; import org.xlattice.corexml.CoreXmlTestCase; /** * @author Jim Dixon */ public class TestDocument extends CoreXmlTestCase { private Document doc; private Element root; public TestDocument (String name) { super...
30.172414
70
0.598857
9eb4eca6fe7fdf9e40c225b6ec40304add45e91b
1,173
package teamcode; import virtual_robot.hardware.ColorSensor; import virtual_robot.hardware.DCMotor; import javafx.scene.paint.Color; import virtual_robot.controller.LinearOpMode; /** * Example OpMode. Demonstrates autonomous proportionate line following. */ public class LineFollow extends LinearOpMode { public...
34.5
92
0.639386
e35b21b1e9ae8876ed169608613a7971e8071027
1,734
package mage.cards.i; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.costs.mana.ColoredManaCost; import mage.abilit...
32.716981
155
0.743368
86d0c962a89f9fd9f7ff4b74640de5d3e89b8b1a
4,338
package life.genny.services; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Set; import io.vavr.Tuple2; import life.genny.services.BaseEntityService2.Column; import life.genny.services.BaseEntityService2.Order; public class SearchSettings { ...
22.59375
100
0.671969
5e4959b6b31a14264a1ea604a760eeed76e2d6a7
1,358
package com.caco3.elijars.maven; import com.caco3.elijars.utils.Assert; import org.zeroturnaround.exec.ProcessExecutor; import org.zeroturnaround.exec.ProcessResult; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Arrays; import java.util...
32.333333
75
0.637703
c3fbedef25f3c2a32058374e2de9af2ecf0dd54a
371
package io.github.henryssondaniel.teacup.protocol.ftp.client; class ResponseImpl implements Response { private final int code; private final String text; ResponseImpl(int code, String text) { this.code = code; this.text = text; } @Override public int getCode() { return code; } @Override ...
16.863636
61
0.681941
182d068ec0b9bbb42ff745a526c65084d58f59b2
4,049
/* * Copyright 2010-2013 Ning, Inc. * * Ning 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 required by a...
44.988889
152
0.712522
a124f183faca9cc2a4c064810835f7ea420d3561
3,389
package com.jn.langx.util.collection; import com.jn.langx.annotation.NonNull; import com.jn.langx.util.Emptys; import com.jn.langx.util.Preconditions; import com.jn.langx.util.function.Supplier; import java.util.Collection; import java.util.Map; import java.util.Set; /** * Avoid the follower code: * <pre> * M...
23.372414
97
0.571555
7bf6a6b80f3349359985da2131044f16b9443955
4,133
package com.hmtmcse.math.test.data; import com.hmtmcse.math.TMMath; import java.math.RoundingMode; import java.util.ArrayList; import java.util.List; public class TMTaxErrorTestDataSet { private List<TMTaxErrorTestData> dataSet = new ArrayList<>(); public TMTaxErrorTestDataSet(){ dataSet.add(new...
55.851351
109
0.726107
4bafa14a8aa31fe8d5b08b791dea95d368fed63f
2,335
/* * Copyright (c) 2021, MegaEase * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
40.258621
116
0.757602
90a5f5f045320487fea3097e0cd4aaedb4119202
5,768
/* ************************************************** Copyright (c) 2012, University of Cambridge Neal Lathia, neal.lathia@cl.cam.ac.uk Kiran Rachuri, kiran.rachuri@cl.cam.ac.uk This library was developed as part of the EPSRC Ubhave (Ubiquitous and Social Computing for Positive Behaviour Change) Project. For more i...
23.834711
135
0.710818
10614bd810efffeff04196223b2ac9dfe611f973
2,258
package com.dawanda.utils; import com.google.common.base.Throwables; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class CategoryUtils {...
34.212121
134
0.613375
562077b409bb04c89f4570a865b20e7e78ca9e2b
787
package com.pyh.collection; /** * 类DStack的实现描述:栈 * * @author panyinghua 2021-4-29 19:09 */ public class MStack<E> { private MLinkedList<E> items = new MLinkedList<>(); private int count; public void push(E item) { if(null == item) { return ; } // 入栈添加到队首...
15.431373
55
0.477764
eaca3a5e4b27b5615d4fee03b82ddeaf6813ed26
3,223
package seedu.ptman.logic.parser; import static seedu.ptman.logic.commands.CommandTestUtil.INVALID_OPERATING_HOURS_DESC; import static seedu.ptman.logic.commands.CommandTestUtil.INVALID_OUTLET_CONTACT_DESC; import static seedu.ptman.logic.commands.CommandTestUtil.INVALID_OUTLET_EMAIL_DESC; import static seedu.ptman.lo...
53.716667
114
0.820974
34e05e16b2a3bf64eec11568c911cd50b60a2059
2,333
/* * Copyright 2019-2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
33.328571
88
0.74925
b875249f82d506f9fd29ab6b8060bc22e49e1d48
7,800
/*********************************************************************** * Copyright (c) 2004 Actuate Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * ...
23.076923
77
0.605
4e858d19f19e5710523265ea392d46f1c571ce12
4,105
package org.sbolstandard.core3.entity.measure; import java.net.URI; import java.util.List; import java.util.Optional; import java.util.OptionalInt; import org.apache.jena.rdf.model.Model; import org.apache.jena.rdf.model.Resource; import org.sbolstandard.core3.entity.ControlledIdentified; import org.sbolstandard.core...
32.84
167
0.757613
d22fd2b64a8af27a465a29efa6f1d231e565bed0
2,911
package br.com.zup.eduardoribeiro.mercadolivre.treinomercadolivre.produto; import br.com.zup.eduardoribeiro.mercadolivre.treinomercadolivre.produto.caracteristica.CaracteristicasDuplicadasValidator; import br.com.zup.eduardoribeiro.mercadolivre.treinomercadolivre.produto.imagem.NovasImagensRequest; import br.com.zup.e...
37.320513
123
0.738234
53fe306b2c19898e1568681d690845aed6731da8
4,488
package nhutlm.lamodafashion.ui.base; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.support.annotation.LayoutRes; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentTr...
26.4
100
0.649733
8af2ca31c59383fe2c6ddbde87253789648f21ff
389
package com.bookstore.repository; import java.util.List; import org.springframework.data.repository.CrudRepository; import com.bookstore.domain.CartItem; import com.bookstore.domain.ShoppingCart; public interface CartItemRepository extends CrudRepository<CartItem, Long> { List<CartItem> findByShoppingCart(Shoppin...
24.3125
76
0.822622
512fbc068cef8c1d4e6ed2cb920e1644e1fe9a67
2,470
package com.kingyzll.recyclerviewentrance; import android.animation.Animator; import android.animation.ValueAnimator; import android.support.v7.widget.RecyclerView; import android.view.View; public class RecyclerViewReboundAnimator { private static final int INIT_DELAY = 500; int order = 1; private int m...
28.72093
84
0.607692
ba6a883aa3b12136acf0f7e9ebee49b7f3171b4a
3,548
package com.gempukku.swccgo.cards.set9.light; import com.gempukku.swccgo.cards.AbstractNormalEffect; import com.gempukku.swccgo.cards.GameConditions; import com.gempukku.swccgo.cards.conditions.OccupiesCondition; import com.gempukku.swccgo.cards.effects.usage.OncePerForceLossEffect; import com.gempukku.swccgo.common.*...
50.685714
266
0.736189
65949a32536298d136c8d56410705df2ae0e87f1
1,863
package IntList; public class IntList { public int first; public IntList rest; public IntList(int f, IntList r) { first = f; rest = r; } /** Return the size of the list using... recursion! */ public int size() { if (rest == null) { return 1; } ...
27.397059
78
0.529791
d39ae45bd0bf8169cf07ef361e82a456662623a7
3,732
package examples.multipart; import com.vtence.molecule.WebServer; import com.vtence.molecule.testing.ResourceLocator; import com.vtence.molecule.testing.http.Form; import com.vtence.molecule.testing.http.MultipartForm; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.io.File; import...
39.284211
112
0.598071
33334262775ce2e44ed276349f495dc44d82ca4a
1,607
package zhushen.com.shejimoshi.leetcode; /** * Created by Zhushen on 2018/7/24. */ public class numMagicSquaresInside { //a b c //d e f //g h i //a + i == g + c //d + f == b + h //d + g == e + i == b + c //a + b == e + g == f + i //438 //951 //276 public int numMa...
27.237288
97
0.393902
7b9ab7dec6a3494a3443b7b11ab3e1c4d99aff72
4,470
/* * Copyright 2019 Steinar Bang * * 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...
35.76
129
0.690157
9deba888df146561e79f7856a576bd68cad93807
809
package co.com.lafemmeapp.dataprovider.network.entities; public class GetServiceRequestBuilder { private boolean enabled; private String currency; private double lat; private double lng; public GetServiceRequestBuilder setEnabled(boolean enabled) { this.enabled = enabled; return th...
25.28125
66
0.677379
0a77974739581d783bbce450f0da68c63213aea0
4,860
package ch.kaiki.nn.ui; import ch.kaiki.nn.data.Dataset; import ch.kaiki.nn.data.DatasetType; import ch.kaiki.nn.neuralnet.BatchMode; import ch.kaiki.nn.neuralnet.NeuralNetwork; import ch.kaiki.nn.ui.color.NNHeatMap; import ch.kaiki.nn.ui.util.VisualizationMode; import ch.kaiki.nn.util.Initializer; import ch.kaiki.nn....
39.836066
177
0.651029
077c7ffa296fe307b0f91a611ce34c97751754d1
370
package application.common; import java.util.Arrays; import java.util.List; import application.common.enums.EPolicy; import application.common.enums.EPreemptMethod; public class StaticSettings { final static public EPolicy[] EXCLUDED_POLICY = {EPolicy.NPFederated, EPolicy.RMNecessaryTest}; final static...
26.428571
97
0.783784
7ca7c02428c08483e873aef4a322407be63fd35a
1,177
/** * Copyright (C) 2018-2020 * All rights reserved, Designed By 臻希 * 注意: * 本软件为臻希开发研制 */ package co.zhenxi.modules.shop.service; import co.zhenxi.common.service.BaseService; import co.zhenxi.modules.shop.domain.ZbWebCate; import co.zhenxi.modules.shop.service.dto.ZbWebCateDto; import co.zhenxi.modules.shop.service.dto...
25.042553
91
0.723025
1b12c881a3054eec1590f428f0f1a7a728cbe00f
8,882
package stest.tron.wallet.contract.scenario; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; import java.util.HashMap; import java.util.Optional; import java.util.concurrent.TimeUnit; import lombok.extern.slf4j.Slf4j; import org.junit.Assert; import org.testng.annotations.AfterClass; import org.te...
43.116505
99
0.742175
08398f7bbb91e23e77b701f15fcb51fe4e2bca36
16,195
package com.truiton.customspeechrecognizer; import android.Manifest; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.database.Cursor; import android.os.AsyncTask; import ...
34.978402
125
0.554986
130ccc19b66b6c4d10b92824b9ec9296638202fe
2,883
package com.mjamsek.tasker.lib.v1.exceptions; import com.fasterxml.jackson.annotation.JsonInclude; import com.mjamsek.tasker.lib.v1.common.HttpStatus; public class ValidationException extends TaskerException { private ValidationExceptionResponse response; public ValidationException(String code) { ...
24.432203
68
0.583767
18705e94df7f94bb8a61f321a9cd13aa730813a5
2,230
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
28.961039
83
0.654709
9b716f1ce518b0fcf5203bb0d3aad2da11d12733
1,746
package server.business.mining; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import server.business.ConfigException; import server.business.MiningDataService; import server.persistence.mining.FrequentItemSet; import server.persistence.mining.Frequ...
41.571429
133
0.760596
6ff94f1df2dbf39d1acbd58df5e8e61d851293e6
4,066
package com.ycbjie.ycwebview; import android.content.Intent; import android.os.Bundle; import android.text.Editable; import android.view.View; import android.widget.EditText; import android.widget.TextView; import com.ycbjie.webviewlib.utils.ToastUtils; import androidx.annotation.Nullable; import androidx.appcompat....
38.358491
120
0.556321
f802409e71ef00219cca2950b778389a4e1d8234
3,046
/* * SPDX-License-Identifier: Apache-2.0 * * Copyright 2020 Vladimir Orany. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * ...
34.613636
120
0.67367
0b9dbc97f7389b6378909f08849a58f7b24e916c
2,355
package com.gmall.user.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.gmall.user.mapper.UmsAdminRoleRelationMapper; import com.gmall.user.domain.UmsAdminRoleRelation; import com.gmall.user.service.IUmsAdminRo...
25.053191
111
0.70913
ef2c075903d3fd5d7f5d1d603b54bcbca1fb40f7
1,563
/* * Copyright (c) 2010-2021 Haifeng Li. All rights reserved. * * Smile is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Smi...
26.05
73
0.653871
7122987d3622796a7193276f1222b4a208a3ffe9
1,846
package com.davromalc.shared.payments.infrastructure.persistence.entities; import java.io.Serializable; import java.util.Objects; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax...
20.511111
82
0.659805
a279fd522da02f147df70673e426e4bf9cff2cd1
4,820
/* * Copyright 2018 JDCLOUD.COM * * 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...
16.971831
76
0.529876
179c79700b4b09f091ead2d7c4e1e0a4fff7ebb8
1,240
package com.jvmup.nbbs.dao; import com.jvmup.nbbs.po.User; import com.jvmup.nbbs.po.Comment; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; /** * ProjectName: NBBS * * @author xxl * <p> * Created by xxl on - 2018-07-16 11:30 **/ public interface CommentDao { // /** ...
17.971014
52
0.537097
3aec3df75dcc773874c38f2ab6cb099160a51753
1,128
package com.yifeng.chaoshibang.model; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import android.app.ProgressDialog; public class DownloadTask { public static File getFile(String path, String filePath, ProgressDialog progr...
27.512195
107
0.72695
6be46364d1d499612d9e71bc79aae8664286b41d
1,234
package com.epam.georgia.model; import com.epam.georgia.calc.Calculator; import com.epam.georgia.calc.CalculatorImpl; import com.epam.georgia.util.Selector; import java.math.BigDecimal; import java.util.List; import java.util.Map; public class CalcState implements Status { Map<Integer, Double> massPrices; M...
31.641026
113
0.709076
46c04ebfc5553f551dc665a101aee3b389f7e9de
3,655
package net.roll19.login.model; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import org.hibernate.validator.constraints.Length; import org.springframework.data.annotation.Id; import javax.persistence.*; import javax.validation.constraints.Email; import ...
29.959016
133
0.650068
b76fbbcc7010afdea848345500fa46e0c55b1863
2,676
package applications.bolts.udf.comm; import brisk.components.operators.base.filterBolt; import brisk.execution.ExecutionGraph; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import util.hash.ODTDBloomFilter; import java.util.Map; import static constants.VoIPSTREAMConstants.Conf; /** * @author Maycon Vian...
43.868852
175
0.742526
fb13bc1a3cfca81eec99cb5f685a8079c29d382e
552
package com.jiappo.open.api.domain.service; import com.jiappo.open.api.dao.mapper.openapi.InMessagePoMapper; import com.jiappo.open.api.support.model.po.InMessagePo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * @Author: lee * @since:1.0.0 * @Da...
25.090909
64
0.757246
8b44cc6004188e80e5778d4b6c95f529d0eb1f60
171
package com.muhardin.endy.belajar.belajargmailapi.service; public interface EmailService { void kirimEmail(String from, String to, String subject, String content); }
28.5
76
0.795322
88220d1e5c7b22c9b09dded8bbe4ca5c814ee286
1,102
package com.ferasinka.prospringproject.ch14; import org.joda.time.DateTime; public class Contact { private Long id; private String firstName; private String lastName; private DateTime birthDate; private String ageCategory; public Long getId() { return id; } public void setId(Long id) { this.id = id; ...
18.065574
49
0.68784
e3703f41ee7ad2718f02ad07fa3650acffb4ec24
810
package com.dasher.osugdx.GameScenes.MainMenu.Actors; import com.badlogic.gdx.audio.Sound; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.scenes.scene2d.actions.Actions; import com.dasher.osugdx.OsuGame; public class OverlayLogo extends MenuLogo { private final MainLogo mainLogo; public Ov...
32.4
139
0.707407
ff2366fc360c28b75c4f380e046e0425d75ba505
583
package pkg; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * We can log LocalizedMessage only when there is not throwable instance in argument. * * @see https://github.com/KengoTODA/findbugs-slf4j/issues/31 */ public class Issue31 { private final Logger logger = LoggerFactory.getLogger(getClass()...
25.347826
85
0.680961