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
63cc32bcf44101ece88843fd3d0d1c398d3f5174
1,675
package com.example.forum_4_stupid.unit.service; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.time.LocalDateTime; import java.util.Optional; import org.junit.jupiter....
28.389831
74
0.768358
2917f5eb4b527b1d6f6896e5b636797b033ee71a
365
package io.sapl.grammar.sapl.impl; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; class CombiningAlgorithmImplCustomTest { @Test void cannotBeCalled() { var combiner = new CombiningAlgorithmImplCustom(); assertThrows(UnsupportedOperationException.class, () -> c...
22.8125
97
0.786301
c463c68a3f8d303236be73750111e515d5c94b74
3,839
package org.camunda.bpm.extension.reactor.fn; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import org.camunda.bpm.engine.RepositoryService; import org.camunda.bpm.engine.delegate.DelegateCaseExecution; import org.camunda.bpm....
32.533898
104
0.772076
608d846facf863919e8b9f50feb2ec9dd8fc33ef
1,658
package act.util; import act.Destroyable; import act.app.App; import act.app.AppByteCodeScanner; import act.app.AppCodeScannerManager; import act.app.AppSourceCodeScanner; import org.osgl.logging.L; import org.osgl.logging.Logger; import org.osgl.util.C; import javax.enterprise.context.ApplicationScoped; import java....
33.16
107
0.689988
b3054507a9d581423e55e98ef94c0609b18cc152
725
class Solution { public int[] distributeCandies(int candies, int num_people) { int[] distrCand = new int[num_people]; int iteration = 0; while(true) { for(int i = 0; i < num_people; i++) { candies -= (i+1+iteration); ...
22.65625
65
0.347586
99ae5eb43e6d6da7f407db776ad07df8909593e2
1,668
package org.atlasapi.content.v2.model.udt; import com.datastax.driver.mapping.annotations.Field; import com.datastax.driver.mapping.annotations.UDT; import org.joda.time.Instant; import java.util.Objects; /** This doesn't hold the actual ID and publisher because those are the strict PK of * any resource ref. These ...
26.0625
103
0.652878
00b33693d4dcd7a7a145ac29e83946e235add501
2,323
package com.mikescamell.sharedelementtransitions.picasso_fragment_to_fragment; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.view.ViewCompat; import android.view.LayoutInflater; import android.view.View; import android.view.ViewG...
35.738462
135
0.671115
87e7f52188916708aad210f6b1858f9d5ee94177
1,148
package Leetcode.Tree.BinarySearchTree; import java.util.ArrayList; // Inorder traversal gives ascending order! public class FindModeInBinarySearchTree_501 { public class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int x) { val = x; } } private ArrayList<In...
23.916667
57
0.515679
53ee4151fa84b350af9f22442d272d81117dfbc5
1,892
/* * JBoss, Home of Professional Open Source * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Vers...
32.067797
75
0.667019
413f1d054eaa36a781356ccabc3e93e88e889c0f
1,050
package org.enricogiurin.codingchallenges.codeforces.old.c1247; import java.io.PrintWriter; import java.util.Scanner; public class ForgettingThingsA extends PrintWriter { //this trick improves performances ForgettingThingsA() { super(System.out); } public static void main(String[] $) { ...
26.923077
63
0.482857
ae91fa8d105ccc63af75cd00431fcbef97fb75c3
933
/** * Multiple Devices * * Copyright 2016 by Tim Dünte <tim.duente@hci.uni-hannover.de> * Copyright 2016 by Max Pfeiffer <max.pfeiffer@hci.uni-hannover.de> * * Licensed under "The MIT License (MIT) – military use of this product is forbidden – V 0.2". * Some rights reserved. See LICENSE. * * @license "The ...
26.657143
95
0.736334
0be4ca566c97700a6a9844a8f422bd395e26a5a4
1,032
public abstract class TableHeader { String type; public TableHeader() { } public String toString() { return type; } public abstract TableData createTableData(); } class TableHeaderInt extends TableHeader { public TableHeaderInt() { type = "INT"; } @Override pub...
18.428571
48
0.628876
349b9e81035f3ce6bf01334a9cbd770829031e63
3,753
package cn.xr.config; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.converter.ByteArrayHttpMessageConverter; import org.springframework.http.conver...
37.53
148
0.687983
719fbf0bd2298573fad04203ee2925b0eb0420b3
513
package unsch; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import unsch.Autor; public class Main { public static void main(String[] args) { ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");...
24.428571
91
0.779727
dce63a109b038b1c60ed70c8452d33ad10537674
798
//,temp,ExpiredMessagesTest.java,378,385,temp,ExpiredMessagesTest.java,293,304 //,3 public class xxx { @Override public boolean isSatisified() throws Exception { DestinationStatistics view = getDestinationStatistics(broker, destination); LOG.info("Stats: size: " +...
46.941176
91
0.528822
a06f632e1fc53ff5e7b1b6beb67b5481a257b1e2
3,825
/* * Copyright 2017 FBK/CREATE-NET * * 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...
32.415254
85
0.644183
d17ca459936f51c864c67ba437203f09084864c1
2,659
package com.sununiq.scaffold.controller; import com.sununiq.scaffold.domain.User; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.propertyeditors.CustomDateEditor; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.web.bind.WebDataBinder; import org.springframewo...
28.902174
98
0.754795
c53adcb8f9f9960390b28804d074e3891b5b3b75
164
import java.util.Arrays; class A { public void test() { System.out.println(Arrays.asList("frst", <selection>"scnd", "third"</selection>, "4th")); } }
23.428571
95
0.621951
b479432029f7fc623e7ea04ee89b03e1c7dca0f3
262
package com.fangdd.doclet.test.service; import com.fangdd.doclet.test.dto.User; /** * @author xuwenzhen * @date 19/1/4 */ public interface UserService { /** * 通过ID获取用户基本信息 * * @param id 用户ID * @return */ User get(int id); }
14.555556
39
0.591603
2ffbfc2ecc327bafaf7be36433f27b642d888ff3
4,895
package or.kosta.andro1218; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.TaskStackBuilder; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.app.Notification...
48.95
140
0.59857
e31da5bacd0e84ce285ebc4de1fba0e5fde60777
19,392
/* * Copyright (c) 2017 NCIC, Institute of Computing Technology, Chinese Academy of Sciences * * 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 limi...
50.631854
206
0.708075
fcf82159e740190a59f35e790c372d224ea6e2c7
992
package com.softicar.platform.workflow.module.workflow.management; import com.softicar.platform.dom.elements.popup.DomPopup; import com.softicar.platform.dom.refresh.bus.IDomRefreshBusEvent; import com.softicar.platform.dom.refresh.bus.IDomRefreshBusListener; import com.softicar.platform.workflow.module.WorkflowI18n; ...
35.428571
96
0.846774
08fe4645a5f2c378c3ff57736a027f02ff27ee66
5,347
/** * View for the category deletion window. This is just a small Yes, No window to confirm the deletion of an category. * * Copyright (c) 2020, Matthew Crabtree * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source ...
30.039326
117
0.610623
66da317508c8237bc7c0a8497fa97dc531ab9891
2,397
/* * The MIT License * * Copyright 2014 Cimport java.io.IOException; import java.util.List; import org.sa.rainbow.core.ports.eseb.ESEBProvider; import org.sa.rainbow.translator.effectors.IEffectorIdentifier; import edu.cmu.cs.able.eseb.participant.ParticipantException; ut limitation the rights * to use...
39.95
119
0.740509
eba071771442cd16d073326ffa6b6a83ce04d98b
2,500
package seedu.flashcard.storage; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonRootName; import seedu.flashcard.commons.excep...
39.0625
110
0.734
d9b36d962cdea7b7ce177d02e3461b5526f69657
158
package messenger.external; public class FightEndEvent extends Event { @Override public String getName() { return "Fight End Event"; } }
17.555556
42
0.670886
764bb128f63cda3aa755d86749c861ee526cb233
5,104
/* * 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")...
30.746988
115
0.654781
934e767d2b15163077bf884ca4b612e48b0dbd46
2,282
package com.pixy; public class PixyCamera { PixyCamera() {} public void setAutoWhiteBalanceEnabled(boolean enabled) { int result = PixyJni.camSetAutoWhiteBalance(enabled); PixyResult.throwIfError(result); } public boolean isAutoWhiteBalanceEnabled() { int result = PixyJni.cam...
32.140845
87
0.667397
9f3f9e204eb1b25fa5ecfb96c5a79f6b4ea82554
1,814
package com.ctrip.zeus.dao.mapper; import com.ctrip.zeus.dao.entity.SlbVsDomainR; import com.ctrip.zeus.dao.entity.SlbVsDomainRExample; import org.apache.ibatis.annotations.Param; import java.util.List; public interface SlbVsDomainRMapper { long countByExample(SlbVsDomainRExample example); int de...
34.226415
151
0.753032
1a95fa3b60fa6301e5f7dc03284be21b377a221f
20,591
/* * MIT License * * Copyright (c) 2020 Michael Wenk (https://github.com/michaelwenk) * * 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 limitatio...
56.413699
164
0.5093
7edd571f421fb04e995da45f38fb2c3527daf529
295
package com.grg.security.common.properties; import lombok.Data; /** * qq登录配置项 * @author tjshan * @date 2019-7-22 22:10 */ @Data public class QQProperties { private String appId; private String appSecret; /** * providerId */ private String providerId = "qq"; }
13.409091
43
0.640678
492580a5b2b028eeb0ec4a8c0cf6e3514e14c57e
463
package com.fount4j.security.csrf; import lombok.Builder; import lombok.Getter; @Getter @Builder public class CsrfToken { public static final String ATTRIBUTE_NAME = "_csrf"; public static final String HEADER_META_NAME = "_csrf_header"; public static final String DEFAULT_HEADER_NAME = "X-CSRF-TOKEN"; ...
25.722222
68
0.760259
fe7324c7057c821eb99e01ac5360442c5aeb841f
544
package org.smartregister.eusm.presenter; import org.smartregister.view.contract.BaseRegisterFragmentContract; public class BaseRegisterFragmentPresenter implements BaseRegisterFragmentContract.Presenter { @Override public void processViewConfigurations() { //do nothing } @Override publ...
19.428571
94
0.683824
76f21532ae80a370ca02ef1d389efdf2d68717d4
11,379
package com.google.cloud.storage; import com.google.cloud.storage.spi.v1.*; import java.util.concurrent.*; import com.google.api.gax.retrying.*; import com.google.cloud.*; import java.io.*; import java.util.*; import com.google.common.base.*; public class CopyWriter implements Restorable<CopyWriter> { private fin...
43.102273
689
0.589068
e915e926d8289f9004c175e8d11036a9dc7f2422
4,141
package soot.asm.backend; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 1997 - 2018 Raja Vallée-Rai and others * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Fo...
31.135338
162
0.685583
a37130cbe06933aeb8fdd42acfbc7f729a0ae260
2,438
package org.joverseer.domain; import java.io.Serializable; /** * Stores information about an element of an army estimate. * * @author Marios Skounakis * */ public class ArmyEstimateElement implements Serializable { private static final long serialVersionUID = 5958104833199695499L; String descr...
23.442308
68
0.725595
19f200f70adf829f6654ffee9bb85cb47931627e
7,710
/* * Copyright (c) 2010-2015 Pivotal Software, 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 req...
33.521739
79
0.671725
6f8d785bf2c21d82650ccab00cd19dcbb5075559
4,775
/* * Copyright (c) 2017. Hans-Peter Grahsl (grahslhp@gmail.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...
42.633929
143
0.69089
09d44d394f2a284659e64b01c0a809a1cae7642d
2,033
/* * 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 ...
35.051724
129
0.719134
fc9344365d0fe0f04ca30ea45196fda82c1704b6
3,554
/** * Copyright (C) 2013-2017 Helical IT Solutions (http://www.helicalinsight.com) - 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://...
37.808511
105
0.685706
b7612c30f1bbbd7e4e1d3f067b479e7a0ae9a214
1,462
package org.academiadecodigo.koxtiposix.acdefender; import org.academiadecodigo.koxtiposix.acdefender.enemy.Enemy; import org.academiadecodigo.koxtiposix.acdefender.weapons.Bullet; import org.academiadecodigo.simplegraphics.pictures.Picture; import java.util.Iterator; import java.util.LinkedList; import java.util.Li...
27.584906
119
0.593707
40fbb0383b9e3fc0f9ce906ab20cf8336d1837af
6,719
/* * Copyright 2014 Andrew Reitz * * 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...
33.427861
97
0.721536
105d1a9ad89e2c0c157c14a4c106d8025faf1e08
5,828
package mainpackage; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; public class Demonstration { static final int MAX_STUDENTS = 30; static final String csvPath = "./data.csv"; static String[][] parseCSV(String path) { String[][] data...
29.887179
107
0.624228
e6cf81909099582860bebe8d327a2eba10170046
4,148
package com.felipeflohr.w2gbuilder.seleniumbuilder; import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.By; import org.openqa.selenium.TimeoutException; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openq...
37.035714
167
0.659354
f5290a9769288fc14ce60ccd58bab56585a36505
5,787
/* * Copyright 2021 Hazelcast Inc. * * Licensed under the Hazelcast Community License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://hazelcast.com/hazelcast-community-license * * Unless required by applicable law or agree...
43.840909
110
0.563159
9ac14626e683ae8d2b9673cffae31592c69c9516
121
package best.reich.ingros.events.entity; import net.b0at.api.event.Event; public class TeleportEvent extends Event { }
17.285714
42
0.793388
7eb5eda1812943de76a279807a5a4dbdc04bcec5
27,062
package Utils; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import java.io.StringWriter; import java.io.Writer; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; import java.util.List; import java.util.Map.Entry; /** * Класс, который отвечает за...
30.338565
134
0.643818
3c5eb0779c873e1e09378d2281a440610191a524
2,090
package de.katzenpapst.amunra.world.neper; import java.util.List; import cpw.mods.fml.common.registry.GameRegistry; import de.katzenpapst.amunra.block.ARBlocks; import de.katzenpapst.amunra.world.AmunraBiomeDecorator; import de.katzenpapst.amunra.world.WorldGenOre; import micdoodle8.mods.galacticraft.api.prefab.core....
40.192308
136
0.729187
fb0c8c06d729bcb9a4e82f127f46d6035d78d3dc
1,853
import com.github.newk5.flui.Alignment; import com.github.newk5.flui.Color; import com.github.newk5.flui.widgets.Canvas; import com.github.newk5.flui.widgets.Label; import com.github.newk5.flui.widgets.UI; import com.github.newk5.flui.widgets.Window; public class WindowWithAlignedCanvasTest { public st...
44.119048
77
0.361576
b379b03a59e9eeb50ae072784883a58a377d4819
15,457
// Copyright (c) 2015-2020 Vladimir Schneider <vladimir.schneider@gmail.com> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.vladsch.md.nav.actions.styling.util; import com.intellij.openapi.actionSystem.ActionPlaces; import com.intellij.openapi.actionSy...
34.813063
177
0.663971
2b002549f8d75c6749b6df45365c58165f78eefc
4,718
package ru.zav.storedbooksinfo.service; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.dao.EmptyResultDataAccessException; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.T...
37.444444
205
0.653879
8d5ede983151f1c7e0ed4c8a5cbb09255341a351
5,644
package com.starrocks.connector.datax.plugin.writer.starrockswriter; import java.io.Serializable; import com.alibaba.datax.common.exception.DataXException; import com.alibaba.datax.common.util.Configuration; import com.alibaba.datax.plugin.rdbms.util.DBUtilErrorCode; import java.util.List; import java.util.Map; impo...
33.005848
143
0.671687
0b9fd830bc7387c349115d00f6b9b0769eb44b6e
9,502
/** * */ package org.opentravel.dex.controllers; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.opentravel.application.common.AbstractMainWindowController;...
32.541096
118
0.705746
f0648036ba7934e24ed848a3e7f7ada478c6e872
1,227
package com.lintcode; /** * @author : Joshua * Date: 3/9/16 * @see <a href="http://www.lintcode.com/zh-cn/problem/merge-sorted-array-ii/">合并排序数组</a> */ public class MergeSortedArray { /** * @param A and B: sorted integer array A and B. * @return: A new sorted integer array */ public int[...
24.54
89
0.363488
dab6531d66ad7e66e0074b8da6092ffe578dd7b3
2,329
package com.jia54321.utils.entity.rowmapper; import com.jia54321.utils.entity.query.ITableDesc; import org.easymock.EasyMock; import org.junit.Test; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; public class AbstractRowMapperTest { @Test public void mapRow() thr...
47.530612
104
0.693431
851f0550d0aaeeacda97fb3069b77b2b8abef57b
1,415
package tech.indicio.ariesmobileagentandroid.admin.credentials.eventRecords; import com.google.gson.JsonObject; import tech.indicio.ariesmobileagentandroid.admin.credentials.messages.CredentialReceivedMessage; import tech.indicio.ariesmobileagentandroid.admin.credentials.offerObjects.CredentialAttribute; import tech....
41.617647
111
0.790813
1716b11079ce834950655fa0b3013487b588eb7c
5,396
package gr.eap.dxt.backlog; import android.app.Activity; import android.content.Intent; import android.content.res.Configuration; import android.os.Bundle; import android.util.DisplayMetrics; import android.view.View; import android.widget.ImageButton; import android.widget.LinearLayout; import android.widge...
33.725
146
0.626761
a9130fe0c584fe123c7ce2222e83e0214e0f0fa2
2,237
package com.github.sakserv.minicluster.yarn.util; import static org.junit.Assert.assertEquals; import org.junit.Before; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compli...
36.080645
253
0.750112
ced52c3c9033308d7ebed39bb6e38ac95f468eda
4,183
package seedu.address.model.bug; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import static seedu.address.testutil.Asser...
39.093458
94
0.66579
c70a4e03d2fd5b06a5a487c48202b5abf960b08a
3,196
/** * Copyright 2013-present memtrip 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 a...
28.035088
106
0.585419
300b2f4a87fb47e7b6094564d848a5f852e79c4d
1,320
/** * Copyright 2008-2017 Qualogy Solutions B.V. * * 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...
20
75
0.725758
be4dfca8c7036ebc3820c781aeabe93d6c4d857b
27,395
/* * 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 VISTAS; import DATOS.vusuario; import LOGICA.fusuario; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableM...
40.949178
282
0.641832
6cd312af7f74cca5037510de5b993e44325e1dd1
141
package org.motechproject.ivr.event; import org.junit.Test; public class CallEventTest { @Test public void appendData() { } }
12.818182
36
0.687943
c9b93516ee5f632856679a6fede9df35bd766abb
2,047
package com.salesmanager.core.model.system; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Embedded; import javax.persistence.Entity; import javax.persistence.EntityListeners; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persist...
25.271605
160
0.777235
b5745765f5734a277b72b8c3a7aa517f2b32ca85
1,285
package com.algalopez.mytv.domain.interactor.history; import com.algalopez.mytv.domain.interactor.CallbackInteractor; import com.algalopez.mytv.domain.model.SearchEntity; import com.algalopez.mytv.domain.repository.IHistoryRepository; import java.util.ArrayList; /** * AUTHOR: Alvaro Garcia Lopez (algalopez) * DA...
23.796296
82
0.651362
88db1f13bc4ba613d5827f3df24522d5a97ce495
26,792
package edu.utexas.segmentation; import java.awt.Color; import java.awt.Point; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.io.Console; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.lang.reflect.Array; import java.util.ArrayList; import ja...
26.138537
131
0.622089
8cbe1475e41195de29d7a658e1e9edb1b5914adc
10,786
/******************************************************************************* * Copyright (c) 2021 Composent, Inc. 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 ...
36.938356
113
0.693584
7047b034be260d7dc125f94644a90bbec8b52aa1
1,847
package org.soaringforecast.rasp.windy; import org.soaringforecast.rasp.satellite.data.SatelliteCode; public class WindyLayer { private static final String COMMA_DELIMITER = ","; private int id; private String code; private String name; private boolean byAltitude; public WindyLayer(String c...
23.679487
75
0.582566
f57bd883956128c6fda482145b05c39da644a7f3
482
package me.fmeng.anstore; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * @author fmeng * @since 2019/01/06 */ // @St...
21.909091
44
0.802905
f83ebe25b089a9ec12858b085688643bd7327fd0
1,948
/* * JBoss, Home of Professional Open Source * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Vers...
33.016949
101
0.733573
f33f2c55b922211402588ae8a2b8a8e11c803239
190
package ml.alternet.util.gen.sample; public class SampleInterfaceImpl implements SampleInterface { public static final SampleInterface SAMPLE_INTERFACE = new SampleInterfaceImpl(); }
23.75
85
0.815789
a635054790a0f79c4ba26fb07fc79ead21acda54
1,297
package org.firstinspires.ftc.teamcode; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.HardwareMap; import com.qualcomm.robotcore.hardware.Servo; /* * Created by noahbrick48 on 10/17/2018. */ public class hardwaremap2 { public DcMotor lifter = null; public DcMotor r...
20.919355
67
0.675405
887869c24f2f4cfbf75fb3195aa533898653ca23
772
package com.kira.shop.config; import io.github.jhipster.config.JHipsterConstants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.jpa.repository.config.EnableJpaAud...
35.090909
84
0.854922
df8547c493f821f3225083a6966bf3efc1db86fa
739
package com.github.ddth.commons.qnd.utils; import com.github.ddth.commons.utils.HashUtils; public class QndHashUtilsMultithreads { public static class TestThread extends Thread { @Override public void run() { for (int i = 0; i < 10; i++) { System.out.println(HashUtils....
25.482759
94
0.506089
cb703357592b39042b29225dcec0d5778656aacb
448
package com.xin.gameFi.aww.bean.dto; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.math.BigDecimal; /** * create 2021/12/7 */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class CancelOrderEventDto { private long id; ...
17.230769
37
0.765625
aafb4ca50e6a4b56881d6a8df2895a7b470df63b
1,008
package com.sharepower.JKutkh.common.enums; import lombok.AllArgsConstructor; import lombok.Getter; /** * @date 2021/1/21 * @author chenguang * @desc execute status */ @Getter @AllArgsConstructor public enum ExecuteEnums { /** * @date 2021/1/21 * @author chenguang * @desc execute success ...
17.084746
50
0.568452
efef3dcde846956e6d02c52addcd1e2c3c092358
1,939
package com.sangupta.clitools; import java.io.IOException; import java.util.Map; import org.apache.http.client.config.CookieSpecs; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.sangupta.jerry.http.WebRequest; import com.sangupta.jerry.http.WebResponse; import com.sangupta.jerry.http.service.Htt...
28.101449
164
0.760701
5e5e47f244bd13fcb428ff291a379dee6cfec934
1,429
/* * Copyright 2021 Adobe. All rights reserved. * * This file is licensed 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 b...
34.853659
315
0.73198
764f6c8081aabec5d33058f60c3b710041ae8ef1
1,495
package com.its.sia.service; import java.util.ArrayList; import java.util.List; import java.util.UUID; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.sia.modul.domain.Pengguna; import com.its.sia.repository.PenggunaRepository; @Service public...
21.056338
79
0.739799
b5ca2cd760dac78106d4c359cd96c45728cb1f90
20,915
/* * The MIT License * * Copyright 2017 yasshi2525 (https://twitter.com/yasshi2525). * * 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...
36.373913
143
0.591537
d32c466ffb7687f3773d32b06eb094a341921e18
581
package com.g2forge.habitat.metadata.access.value; import com.g2forge.habitat.metadata.access.ITypedMetadataAccessor; import com.g2forge.habitat.metadata.type.predicate.IPredicateType; import com.g2forge.habitat.metadata.value.predicate.IPredicate; import com.g2forge.habitat.metadata.value.subject.IValueSubject; clas...
41.5
103
0.833046
edeee1c920f6747e054705930df85fd941788065
1,681
package com.github.mahjong.main.service.model; import com.github.mahjong.main.model.PlayerScore; import com.google.common.base.Preconditions; import java.util.Collections; import java.util.Map; import java.util.Set; public class RoundScore { private final Map<Long, PlayerScore> playerIdToScore; private fina...
35.020833
119
0.707317
5d3f8667a2c2949bd59639c76e0afef338b27301
234
package com.mvp.tictactoe.view; public interface TicTacTowView { void showWinner(String winningPlayerDisplayLabel); void clearWinnerDisplay(); void clearButtons(); void setButtonText(int row, int col, String text); }
26
54
0.752137
e2ac16553a5d013f25872bbab209cc803168fbfb
2,165
package org.aries.generator; import java.io.File; import org.apache.commons.io.FileUtils; import aries.generation.engine.GenerationContext; import aries.generation.engine.GeneratorEngine; public class AriesCommonModelGeneratorOLD { private static String ARIES_COMMON_MODEL = "aries-common-1.0.aries"; private st...
34.919355
139
0.762125
b2b2a3fb861f58e8d3cb4511f7b9b0e6ea5d26bc
3,084
package org.broadinstitute.dropseqrna.vcftools.filters; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Iterator; import java.util.List; import org.testng.Assert; import org.testng.annotations.Test; import htsjdk.variant.variantcontext....
42.833333
98
0.745785
0f2482e50bbc2a7fc16d940543a3d557c200fbf7
433
package com.example.appraise.service; import com.example.appraise.model.ArIndex; import com.example.appraise.model.RestApiException; import java.util.List; public interface IndexService { ArIndex save(ArIndex entity) throws RestApiException; ArIndex update(ArIndex entity) throws RestApiException; ArInd...
22.789474
59
0.775982
aa0e30b66976ebfd5cfa31612c45bac3f601d85c
2,398
package com.yyz.demo.getappinfo.utils; import android.util.Log; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; public class DateTransUtils { private static final SimpleDateFormat dateFormat = new SimpleDateFormat("M-d-yyyy"); public static ...
32.849315
127
0.653878
c5163286f1db1ed530910dd18d7f3e9bc3f94000
664
package com.refinitiv.eta.valueadd.reactor; /** * Tunnel stream Info available through {@link TunnelStream#info(TunnelStreamInfo, ReactorErrorInfo)} method call. * * @see TunnelStream */ public interface TunnelStreamInfo { /** * Get buffers used count. * * @return total buffers used - both big ...
18.444444
114
0.597892
e9b696db3003aa43457db779c97ca9dae2166ac2
6,254
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2010.0...
43.430556
124
0.619763
af7bd32783a0b7cbb551e2610e5a8673b58aa74d
534
package cz.optimization.odpadky.retrofit_data; import java.util.List; import cz.optimization.odpadky.objects.Container; import cz.optimization.odpadky.objects.Place; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.Path; public interface GetDataService { @GET("places") Call<List<Place...
24.272727
89
0.756554
dfb5304b16a2fdb779a9e532aa60ab488485d78f
2,729
// // // Modified by Orb on 3/27/14. // // Created by Raymond Daly on 10/31/10. // Copyright 2010 Floatopian LLC. All rights reserved. // Copyright (C) 2017 Migeran // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may ob...
31.732558
95
0.728838
a39c8ced35b29210e1f0892badc64dce7b067e2b
2,518
/* * Copyright 2015 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" ...
28.613636
125
0.623908
e43354669ab17422de0ad8570d99e2e3ee1f5ba1
412
package com.jlife.abon.form; import org.hibernate.validator.constraints.Email; import org.hibernate.validator.constraints.NotBlank; /** * @author Dzmitry Misiuk */ public class ChangingEmailForm { @Email @NotBlank private String newEmail; public String getNewEmail() { return newEmail; ...
17.913043
52
0.691748
0e0227be9203fa981a25ad6ed382f6f7eb451fc8
422
package io.sruby.github.test.unit.service; import io.sruby.github.test.unit.entity.BookCompany; import org.springframework.stereotype.Service; /** * @description: user * @author: sruby * @create: 2020-12-07 11:54 */ @Service public class BookCompanyService { public BookCompany get(String companyId){ r...
22.210526
100
0.734597
12f9ff4f0b39b4eaf20340111f7252bbcb2a800d
1,311
package org.springframework.data.r2dbc.support; import io.r2dbc.spi.ConnectionFactories; import org.springframework.data.r2dbc.config.beans.Beans; import org.springframework.data.r2dbc.core.DefaultReactiveDataAccessStrategy; import org.springframework.data.r2dbc.dialect.DialectResolver; import org.springframework.data...
40.96875
100
0.743707
1bbc74841799d3b685b27c9a09e10301861e5e07
233
package com.foodorderback.repository; import com.foodorderback.model.ShoppingCart; import org.springframework.data.repository.CrudRepository; public interface ShoppingCartRepository extends CrudRepository<ShoppingCart, Long> { }
23.3
84
0.849785
f8baadcd06a9f0df601690dd67ec3d4008d2e551
313
package com.xiaozhi.dao.mapper; import com.xiaozhi.dao.base.MyMapper; import com.xiaozhi.entity.Order; import org.springframework.stereotype.Repository; /** * @author fenghouzhi * @date 2020/5/10 - 12:18 下午 * @description: OrderMapper */ @Repository public interface OrderMapper extends MyMapper<Order> { }
20.866667
54
0.763578
5bb26e1ace2ec31ef3f8848403782039d0027ea0
1,043
/* * DownloadUnzip.java * * Version 1.0 * * 21 May 2013 */ package com.bixly.pastevid.download; import com.bixly.pastevid.Settings; import com.bixly.pastevid.util.LogUtil; import java.io.File; /** * Extension of DownloadThread class for downloading the Unzip library. Only run * on Windows since unzip is pre-...
23.177778
80
0.644295
75a57ceb5430ba252035dd91f9e98e6489ccfe0a
3,527
package com.emc.mongoose.base.logging; import static com.emc.mongoose.base.Constants.K; import static com.emc.mongoose.base.Constants.M; import static com.emc.mongoose.base.env.DateUtil.FMT_DATE_ISO8601; import com.emc.mongoose.base.item.op.OpType; import com.emc.mongoose.base.metrics.snapshot.AllMetricsSnapshot; imp...
35.27
90
0.694074
d198ff9b0ec2b2a30d0b84220f4d30e91b405710
871
package com.dumas.pedestal.tool.orm.generator.config; import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.stereotype.Component; /** * Mybatis plu...
30.034483
92
0.758898