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
980e250218b450d6e61a12dba5168859426111bf
1,348
package com.bnpt.model.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; import java.util.Date; import java.util.List; import com.bnp...
42.125
169
0.771513
1e661e2d1621f870192d32c16ee8069995a8d369
8,480
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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...
25.619335
100
0.685731
431529014807fe827d7355b872e48bdac1f86e5f
507
package com.speedment.common.mutablestream.internal.util; import java.util.Optional; /** * * @author Emil Forslund * @since 1.0.0 */ public final class CastUtil { public static <T> Optional<T> castIf(Object obj, Class<T> type) { if (type.isInstance(obj)) { @SuppressWarnings("unchec...
21.125
69
0.57002
4741ff14bda00ffcee85ec48fbdc290561a8d963
158
//Compilable with Java8 public interface InputStaticModifierInInterface { static int f() { int someName = 5; return someName; } }
15.8
47
0.632911
a1930b3df85f83aa32bafe84674230f7f951a8bb
5,382
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.spring.data.cosmos.config; import com.azure.cosmos.ConsistencyLevel; import com.azure.cosmos.CosmosAsyncClient; import com.azure.cosmos.CosmosClientBuilder; import com.azure.spring.data.cosmos.Constants; ...
36.120805
96
0.728725
0718e777df804e5b231d12fdf8a674965a1a40e4
1,567
/* * Copyright (c) 2012. HappyDroids LLC, All rights reserved. */ package com.happydroids.droidtowers.controllers; import com.google.common.collect.Lists; import com.happydroids.droidtowers.pathfinding.AStar; import com.happydroids.droidtowers.pathfinding.TransitPathFinder; import java.util.ArrayList; public clas...
22.385714
71
0.683472
f05ec33efeb300572c3cef8ef6daa16333042733
422
//,temp,UndertowWsProducerRouteRestartTest.java,80,85,temp,UndertowWsProducerRouteTest.java,59,64 //,2 public class xxx { @Override public void onTextFrame(String message, boolean finalFragment, int rsv) { received.add(message); LOG...
38.363636
97
0.526066
386e0a5fa4e27a4fcb5c2a18cfff7f357262a973
815
package com.ceiba.escenario.puerto.repositorio; import com.ceiba.escenario.modelo.entidad.Escenario; public interface RepositorioEscenario { /** * Permite crear un usuario * @param ecenario * @return el id generado */ Long crear(Escenario ecenario); /** * Permite actualizar un us...
20.897436
74
0.625767
379efea07dbdf29f6ea911ed8d4f9a148f7b2d92
7,289
//package lemon.elastic.query4j.provider; // //import java.lang.reflect.Field; //import java.text.DecimalFormat; // //import org.slf4j.Logger; //import org.slf4j.LoggerFactory; // //import com.alibaba.fastjson.JSON; //import com.alibaba.fastjson.JSONObject; //import com.google.common.base.Preconditions; // ...
41.890805
167
0.559062
c5bef4a0a2491bf13d811e16dc65bdae68b41fe6
1,197
package uk.dangrew.dinosaurs.game.actions.movement; import uk.dangrew.dinosaurs.game.actions.mechanism.GameAction; import uk.dangrew.dinosaurs.game.model.dinosaur.Dinosaur; import uk.dangrew.dinosaurs.game.world.World; import uk.dangrew.dinosaurs.game.world.WorldLocation; /** * Implementation of a game action for m...
26.6
95
0.714286
2a017f00e78cb3130f7a7bcd6e757b3644ef4654
627
public class prob3{ public static void main(String[] args) { int[] arr = new int[] {1,2,3,4,5,6}; ListNodeInt head = LinkedListUtil.convertToLinkedList(arr); LinkedListUtil.print(head); System.out.println("after reversing"); head = reverse(head); LinkedListUtil.print(head); } static Li...
22.392857
63
0.633174
36aff0588e8121bac053c866fd113f58c1d1c83b
261
package utils; import org.mongodb.morphia.mapping.DefaultCreator; import play.Play; public class PlayCreator extends DefaultCreator { @Override protected ClassLoader getClassLoaderForClass() { return Play.application().classloader(); } }
20.076923
52
0.747126
5390a47133affe5455db040163687ee355bff1f7
1,517
/* Copyright 2020 The FedLearn Authors. 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 or agreed to...
30.34
73
0.736322
4f21043b71bf2699b88aa9d3d396ceaf964864ea
5,015
package resus.licenseengine.fossology.api; import java.util.List; import javax.ws.rs.DELETE; import javax.ws.rs.GET; import javax.ws.rs.HeaderParam; import javax.ws.rs.PATCH; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import io...
44.776786
190
0.673779
c349724e6a1609a9b6ef6005dbb47dc7fbda1312
1,617
/* * Copyright 2001-2007 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 ap...
32.34
96
0.709957
10c5eff3ce26f24e3f4c68e5aa507379a80b3874
6,652
package vstoyanov.mycar.mycarpro.list.activities; import android.graphics.Color; import android.graphics.PorterDuff; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.view.ViewPager; im...
42.641026
154
0.732562
4724af62bba8b2234b10c3dfcbf1ddba459ebf1c
158
import java.util.Objects; public class Car2 { int car; int amount; Car2(int c, int a) { this.car =c; this.amount = a; } }
11.285714
25
0.518987
71e4978ef7afe2c1162d543d6c195fc0a36ae3b0
5,151
package com.pushtorefresh.storio3.sqlite.integration.auto_parcel; import androidx.annotation.NonNull; import com.pushtorefresh.storio3.sqlite.BuildConfig; import com.pushtorefresh.storio3.sqlite.SQLiteTypeMapping; import com.pushtorefresh.storio3.sqlite.StorIOSQLite; import com.pushtorefresh.storio3.sqlite.impl.Defau...
31.601227
81
0.559309
404e841ae525f87e6674c99898f02d992983ba97
1,888
package no.nav.bidrag.aktoerregister.util; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import jakarta.xml.bind.JAXBException; import javax.jms.JMSException; import no.rtv.name...
46.04878
124
0.820445
a024a1cb6bb9943dc0bf953a72a87a7dfdb58f7f
3,267
package treadstone.game.GameEngine; import android.util.Log; import android.view.MotionEvent; import android.view.GestureDetector.OnGestureListener; import android.view.GestureDetector.OnDoubleTapListener; public class TouchManager implements OnGestureListener, OnDoubleTapListener { // Debug info pr...
29.7
116
0.607591
bf1553f1ea563ce3d55b5c17a50736e46fee813e
972
package com.google.sps.servlets; import java.io.IOException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** Handles requests sent to the /hello URL. Try running a server and navigating...
37.384615
206
0.717078
c4155df22d0d5366e4a68f61dc4c26addd962793
5,111
/* * Copyright 2016 281165273@qq.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 agree...
21.84188
154
0.542947
56b24c3ec873a2765cf0d09910ab94d862f8686d
47,275
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: POGOProtos.Rpc.proto package POGOProtos.Rpc; /** * Protobuf type {@code POGOProtos.Rpc.LayerRule} */ public final class LayerRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:PO...
33.575994
128
0.65853
6fbda0f9b9d1d42b291911de13eaa30a7beedf04
1,834
package nodejt400; import java.sql.Connection; import com.ibm.as400.access.AS400; import com.ibm.as400.access.AS400JDBCConnectionHandle; import com.ibm.as400.access.MessageQueue; import com.ibm.as400.access.QueuedMessage; import com.ibm.as400.access.QSYSObjectPathName; public class MessageQ { private final Connecti...
22.096386
84
0.7241
dded827f77339a6ce28a0e52ee6bc06cc8d40063
23,284
package com.guoziwei.klinelib.chart; import android.content.Context; import android.graphics.Color; import android.graphics.Paint; import android.support.annotation.Nullable; import android.support.v4.content.ContextCompat; import android.util.AttributeSet; import android.widget.LinearLayout; import com.github.mikeph...
39.198653
165
0.649115
2e085a198aab3509fdbbdbdf140fbe2aa3d720dc
6,688
package org.codelogger.utils.beans; import static org.codelogger.utils.ArrayUtils.subArray; import java.util.Collection; import java.util.LinkedHashMap; import java.util.Set; import org.codelogger.utils.ArrayUtils; /** * StorageComponent is a raw type, support variable keys. References to generic * type StorageCo...
28.219409
107
0.588517
25bd3c4c660047ffca7dcce09e0c164a303b55dc
292
import org.junit.Test; import static org.junit.Assert.*; public class GreeterTest { @Test public void should_say_hello() { Greeter greeter = new Greeter("John Doe"); String greeting = greeter.sayHello(); assertEquals("Hello, John Doe!", greeting); } }
19.466667
51
0.643836
99aef53b1ad607313171c34dc8119b8233719f98
2,371
import java.util.Scanner; public class conditionals_practice { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int sub_1 = sc.nextInt(); int sub_2 = sc.nextInt(); int sub_3 = sc.nextInt(); int avg = (sub_1+sub_2+sub_3)/3; if((avg>=40)&&(s...
26.640449
60
0.445803
47c39560e1b704fb6e219fbfbc599793a06c9e84
4,492
package org.visallo.core.model.ontology; import org.visallo.web.clientapi.model.SandboxStatus; import java.util.*; import java.util.stream.Collectors; import static org.visallo.core.util.StreamUtil.stream; public class Ontology { private final String workspaceId; private final Map<String, Concept> conceptsB...
35.936
101
0.628896
89939a31321f1c1f126980c2c5eed73b13fd193d
18,405
/* * Copyright (C) 2016 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...
39.495708
100
0.567509
7b1896f9f1b1e1b97f966a20db9f63920bdabd32
3,942
/* * Copyright (c) 2017-2020, Wasiq Bhamla. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
31.285714
110
0.621258
b12caa500643ca296fff79e0163b4c53af10c832
7,652
/* * This code is free software; you can redistribute it and/or modify it under * the terms of the new BSD License. * * Copyright (c) 2010-2018, Sebastian Staudt */ package com.github.koraktor.steamcondenser.community.l4d; import java.util.HashMap; import java.util.Map; import com.github.koraktor.steamcondenser...
39.443299
116
0.63735
150409361956d5c787540c0699b2bcb264124374
3,394
// 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...
36.494624
103
0.615793
c06ebf244603ec90fd7ce735bd6b85005e196c7b
3,687
/* * 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 ...
39.223404
107
0.69406
53a371c8278c87784a43600812864ab003daaea6
296
package pattern.responsibility; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.math.BigDecimal; @Data @AllArgsConstructor public class PurchaseRequest { private String purpose; private BigDecimal amount; private int number; }
15.578947
33
0.790541
2ce8567ffe28764edc845db1c7e004d430e00ac6
5,675
/* !!! Doost !!! */ /* A Java implementation of BLAKE2B cryptographic digest algorithm. Joubin Mohammad Houshyar <alphazero@sensesay.net> bushwick, nyc 02-14-2014 -- To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software ...
28.094059
101
0.650396
52c7adb00ab3d3ecc826bcc87cd49d05a6c6d12c
5,639
package com.atguigu.p2pinvest0828.activity; import android.app.Activity; import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; import android.text.Html; import android.text.TextUtils; import android.util.Log; import android.view.View; import android.view.animat...
33.170588
121
0.607909
cd22c63469c48b68ad665855b47bc3236b913695
402
package com.ruoyi.data.service; import com.ruoyi.data.domain.Student; import com.ruoyi.data.exception.LoginException; import java.io.IOException; /** * APP数据Service接口 * * @author chunyou * @date 2020-09-02 */ public interface IAppDataService { /** * 获取学生数据 * @param student * @return */ ...
17.478261
79
0.696517
a44e76d361042945aa952f2df57fffcf267abeb5
1,182
package com.thiyagu_7.adventofcode.year2021.day15; import org.junit.Test; import static com.thiyagu_7.adventofcode.FileUtils.readFile; import static org.junit.Assert.assertEquals; public class SolutionDay15Test { private static final String SAMPLE_FILE_PATH = "/year2021/day15/sample-input.txt"; private stati...
31.945946
86
0.73181
f52c451b7c0b50a5b0043e308b47f6ea6cbc01d3
2,082
/** * #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# * This file is part of the LDP4j Project: * http://www.ldp4j.org/ * * Center for Open Middleware * http://www.centeropenmiddleware.com/ * #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# * ...
35.896552
145
0.587416
0944ba1a17931268aa03e7ba7673068475373220
4,046
/* * 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 ...
37.813084
122
0.68611
01c00983297babf61f5dbace1e503e41389067d5
24,484
package com.gamecraft.web.rest; import com.gamecraft.GamecraftslacknotificationmanagerApp; import com.gamecraft.domain.SlackAccount; import com.gamecraft.repository.SlackAccountRepository; import com.gamecraft.service.SlackAccountService; import com.gamecraft.repository.search.SlackAccountSearchRepository; import com...
46.459203
150
0.745793
c56f270f2f1e36e3d4f336981cc6e8c6df7c3590
20,292
/** * EFTEMj - Processing of Energy Filtering TEM images with ImageJ * * Copyright (c) 2015, Michael Entrup b. Epping * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redis...
41.581967
112
0.712251
85911da7eead5d75144c859c6fac4bc2e07a6545
2,140
/* * 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 ...
33.4375
84
0.650935
4748271d17f148890ce00a52e74e54286328a9f6
5,506
package com.lnwazg.mydict.util.handler.start; import java.awt.Frame; import javax.swing.JOptionPane; import org.apache.commons.lang3.SystemUtils; import com.lnwazg.kit.executor.ExecMgr; import com.lnwazg.kit.handlerseq.IHandler; import com.lnwazg.mydict.util.Constant; import com.lnwazg.mydict.util.WinMgr; import co...
45.504132
171
0.412822
bf3174b0019cccb59fa941bcebbd871b673292bf
2,883
package ru.stqa.pft.addressbook.tests; import org.testng.annotations.Test; import ru.stqa.pft.addressbook.model.ContactData; import ru.stqa.pft.addressbook.model.Contacts; import java.io.File; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.MatcherAssert.assertThat; public class ContactC...
39.493151
328
0.694762
829abbd0794d7367b7474c9665eae7b0a01bd8f5
662
package binarysearch; public class SkipTasksToMinimizeWork { private int[][] dp; public int solve(int[] nums) { dp = new int[nums.length][2]; return go(nums, 0, 0); } private int go(int[] tasks, int i, int skippedLast) { if (i == tasks.length) return 0; if ...
28.782609
76
0.496979
83457aa128a03b65c09184194123fce361f03ddf
5,233
/*L * Copyright SAIC, Ellumen and RSNA (CTP) * * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details. */ package gov.nih.nci.nbia.util; import org.w3c.dom.Document; import org.w3c.dom.Element; import org...
31.14881
90
0.576534
b54170f916f8c17b3ce1ad932a2af173366964b0
200
package de.avalax.mtg_insight.domain.model.exception; public class DeckNotFoundException extends ResourceNotFoundException { public DeckNotFoundException(Throwable e) { super(e); } }
25
70
0.765
768d0855c860328bfe50c11a34feaa2f5f6a53ba
1,648
package mono.android.support.v4.view; public class ActionProvider_SubUiVisibilityListenerImplementor extends java.lang.Object implements mono.android.IGCUserPeer, android.support.v4.view.ActionProvider.SubUiVisibilityListener { /** @hide */ public static final String __md_methods; static { __md_methods = ...
33.632653
269
0.787015
47501a33a7f0d6b597f2255d9ca1838470e1f1ab
5,885
// 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...
35.239521
113
0.708921
2bc44fc458f874149d6c2320721907a445181205
387
package com.task.task.exception; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "Task not found") public class TaskNotFoundException extends Exception { public TaskNotFoundException(String c...
29.769231
73
0.739018
71e7d2b66f362f2d09e514869ce32a2006eb160d
2,248
/* * Copyright (C) 2016 Red Hat, 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 agre...
39.438596
120
0.729537
ccfb71344b35ba5358681c62b4863af1581edbae
94
/** * Spring Security configuration. */ package mx.infotec.dads.datapoolgenerator.security;
18.8
51
0.765957
3295de8c4ea162af5d2926791a4faaac9253a53b
1,152
package org.radargun.stages.cache.generators; import java.util.Random; import org.radargun.config.Init; import org.radargun.config.Property; import org.radargun.utils.Utils; /** * Generates sentence made up from words in the dictionary. * * @author Radim Vansa &lt;rvansa@redhat.com&gt; */ public class SentenceGe...
27.428571
76
0.627604
ede0577a20392a52227cd12b82d871cf11071069
1,075
package com.androidfu.nowplaying.app.receivers; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import com.androidfu.nowplaying.app.events.network.NetworkAvailableEvent; import com.androidfu.nowplaying.app.util.EventBus; ...
35.833333
121
0.784186
e623fd7c59d257012668d1e8bbb73497c00ee76f
2,582
/* * Copyright 2013 harald. * * 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 ...
32.683544
95
0.708366
a2555ef524c1f78b2c35932a90a32ce98c68997c
2,701
package com.goatsandtigers.mazezam; import android.content.Intent; import android.graphics.Typeface; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.TypedValue; import android.view.Gravity; import android.view.View; import android.widget.ImageView; import android.widget.L...
37
100
0.673454
41afc484196c45dcf76492e908efd54e0b7b6bc9
910
package io.nuls.api.model.dto; import io.nuls.api.model.po.SymbolPrice; import java.math.BigDecimal; /** * @Author: zhoulijun * @Time: 2020-03-08 20:49 * @Description: 功能描述 */ public class ActualSymbolUsdtPriceDTO implements SymbolPrice { String USDT = "USDT"; private String symbol; private BigDec...
18.571429
68
0.63956
117d1c8570969fb6d829932e45d8de43517f4a52
5,092
package com.pavelsklenar.service.impl; import java.util.Date; import java.util.List; import java.util.Locale; import javax.mail.MessagingException; import javax.mail.internet.MimeMessage; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired...
37.167883
119
0.660055
ed148b6d2c77a9693d1728bc86053a49b36266e0
835
import java.util.Locale; import java.util.Scanner; public class soma_vetor { public static void main(String[] args) { Locale.setDefault(Locale.US); Scanner sc = new Scanner(System.in); int n; double soma, media; System.out.print("Quantos numeros voce vai digitar? "); n = sc.nextInt(); ...
19.418605
60
0.537725
f249fef88a5620047a049c03590231e6d61c19b7
9,097
/** * Copyright (c) 2014 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...
43.319048
135
0.660438
7c3803b83516fe0437ffebc7764d01a05dc26329
10,904
package com.lorenzos.flingswipe; import android.annotation.TargetApi; import android.content.Context; import android.content.res.TypedArray; import android.database.DataSetObserver; import android.graphics.PointF; import android.os.Build; import android.util.AttributeSet; import android.view.Gravity; import android.vi...
32.452381
109
0.611427
45b13fd10e18b2790e19c3002d2dc5159f116ea3
157
package allout58.mods.MSA.blocks.logic; import net.minecraft.item.ItemStack; public interface ILinkable { public ItemStack Link(ItemStack linkCard); }
17.444444
46
0.789809
8981a07e0490e2dfe08c195ac20042c061465721
19,087
/******************************************************************************* * Copyright 2017, 2018 Lambert Boskamp & Sietze Roorda * * 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 Licens...
29.54644
151
0.638969
6c810461692daf5a7e7c3f1e042040655c7ae6b7
1,609
/* * Pessoa * Serviço de Gestão de Pessoas do ERPX * * * Contact: seniorx-dev@senior.com.br * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package br.com.senior.erpx.fnd.pessoa.pojos; im...
21.743243
101
0.703543
767b33c2d6a21a5f21149d5509e6ba8f0a7a0eec
696
package com.happylunch.repository; import com.happylunch.entity.Product; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import java.util.List...
29
76
0.771552
ced2066983e0518cbd031f1b6be93bda73cf6997
1,025
/* * Created on 25.09.2004 * * To change the template for this generated file go to * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments */ package net.strongdesign.stg; /** * @author mark * * To change the template for this generated type comment go to * Window&gt;Preferences&gt;Java&gt;...
18.981481
72
0.677073
c380ecbccfa9ee13719378e889169e34342a31a2
2,474
package me.luke.modules.system.domain; import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.copier.CopyOptions; import lombok.Getter; import lombok.Setter; import me.luke.base.BaseEntity; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Where; import javax.persistence.*; ...
21.145299
92
0.638642
9b8cf4d40f60a12992d6b77f24546be03df1a618
3,073
/* * 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 edu.pse.beast.toolbox; import java.awt.Image; import java.util.Arrays; import java.util.Comparator; import javax.swing.ImageI...
35.321839
100
0.64302
c7d1ded657f0d50b6ed6c330b5fb75795b419097
13,080
/* * Copyright 2017-2018, Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.operator.cluster.operator.assembly; import io.fabric8.kubernetes.api.model.ConfigMap; import io.fabric8.kubernetes.api.model.HasMetadata; import io.fa...
53.606557
136
0.702294
f212094e4553492699878e3dec27816bef7a3416
1,368
/** Attribute a type argument list, returning a list of types. */ List<Type> attribTypes(List<JCExpression> trees, Env<AttrContext> env) { DEBUG.P(this,"attribTypes(2)"); DEBUG.P("trees="+trees); DEBUG.P("env="+env); ListBuffer<Type> argtypes = new ListBuffer<Type>(); for (List<...
27.918367
85
0.603801
3a4c91ee2d3f2306648733964d09dc722f3b418a
2,047
package cn.edu.buaa.crypto.encryption.be.bgw05.serparams; import cn.edu.buaa.crypto.algebra.serparams.PairingKeySerParameter; import cn.edu.buaa.crypto.utils.PairingUtils; import it.unisa.dia.gas.jpbc.Element; import it.unisa.dia.gas.jpbc.Pairing; import it.unisa.dia.gas.jpbc.PairingParameters; import it.unisa.dia.gas...
36.553571
99
0.69321
4f67d010f5cb31e98eba3c94cf1ad7d4b16b45bd
627
public class StringUnique { public static void main(String[] args) { String test1 = "abcdefg"; String test2 = "racecar"; System.out.println(uniqueChar(test1)); System.out.println(uniqueChar(test2)); } public static boolean uniqueChar(String toCheck) { if (toCheck.length() > 128) { return false; // b...
21.62069
51
0.636364
16176cd963c4024eb8d57743196ef43ab36f826a
321
package com.github.geequery.springdata.annotation; /** * 配置@IgnoreIf 使用,用来描述一个表示无条件的参数值 * @author Jiyi * */ public enum ParamIs { /** * 为空字符串时,该参数不作为查询条件使用 */ Empty, /** * 为null时间,该参数不作为查询条件使用 */ Null, /** * 为负数时 (<0) * */ Negative, /** * 为0时 */ Zero, /** * <=0时 */ ZeroOrNagative }...
10.354839
50
0.560748
6b7e1c01d77f087236e28d8fdb08bc92c4e5b450
13,276
/** * TableCellBox.java * Copyright (c) 2005-2007 Radek Burget * * CSSBox 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 Foundation, either version 3 of the License, or * (at your option) any later version....
29.766816
110
0.57442
08dd507b3ab9aba1ae1004e166cff52723e7f009
2,369
package io.sphere.sdk.customers; import io.sphere.sdk.models.Base; import javax.annotation.Nullable; /** * Parameter object for customer title, firstName, middleName and lastName. * * @see Customer * @see Customer#getName() * @see io.sphere.sdk.customers.commands.updateactions.SetFirstName * @see io.sphere.sdk...
31.586667
167
0.71718
ca0a3d7dcd67e533cdfbde362ed289dc7778771e
3,642
package com.young.share.utils; import android.content.Context; import android.graphics.Rect; import android.widget.ImageView; import com.young.share.model.PictureInfo; import java.util.List; public class EvaluateUtil { /** * 批量计算 * 计算每个图片的坐标、大图、缩略图地址 * * @param iv_image * @param pictur...
31.669565
122
0.560406
96e53217960d23b292df9ec4738603188c0d1db3
1,306
package com.github.demo14; import java.util.concurrent.atomic.AtomicInteger; /** * @author 许大仙 * @version 1.0 * @since 2021-10-15 13:38 */ public class Test1 { public static void main(String[] args) { AtomicInteger a1 = new AtomicInteger(10); int i = a1.get(); System.out.println("a1 = ...
35.297297
103
0.598775
5e6e2f1fe2a8efa425543d61100153023f5cefae
1,634
package org.odk.collect.android.feature.formentry; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Rule; import org.junit.Test; import org.junit.rules.RuleChain; import org.junit.runner.RunWith; import org.odk.collect.android.support.CollectTestRule; import org.odk.collect.android.support.TestR...
34.765957
120
0.698286
a52f08f7268cf884ea0b8618014324c51ce32b4f
277
package controllers; import play.mvc.Controller; import play.mvc.Result; import views.html.*; public class Hello extends Controller{ public Result hello(String name) { return ok(hellowelcomepage.render(name)); } public Result html5() { return ok(html5.render()); } }
18.466667
43
0.740072
4c7e583ece6afa5f09b54a012bc1b47dbdf9ed9a
562
package br.com.vizir.falemais.model; public class PrecoLigacao { private double precoLigacaoPLano; private double precoLigacao; private String error; public PrecoLigacao(double precoLigacaoPLano, double precoLigacao) { this.precoLigacaoPLano = precoLigacaoPLano; this.precoLigacao = precoLigacao; } publ...
18.129032
69
0.756228
cda63485e23e4f39ca82150c07bdf12a7fa52cf8
6,785
/* * Copyright 2018 Rod MacKenzie. * * 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.911765
121
0.662049
24f6c863976b87bfae2d2d79b837581c78e7eef8
3,863
/* * Copyright (c) 2021, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root * or https://opensource.org/licenses/MIT */ package utam.base; import java.time.Duration; import org.openqa.selenium.WebDriver; import org.testng.Repo...
28.19708
98
0.711105
0877a3c578178196ebfec1b45baa79b6ca9b3b1a
2,098
package com.leonzhangxf.sms.message; import com.leonzhangxf.sms.enumeration.SendResponseStatus; import java.io.Serializable; import java.util.Objects; /** * 短信发送请求响应 * * @author leonzhangxf */ public class MessageResponse implements Serializable { private static final long serialVersionUID = 1...
27.246753
89
0.618208
17634476806eb79f10dba00e784d85179a4a15a5
1,919
package org.heaven7.scrap.core.delegate; import android.content.Intent; import android.os.Bundle; import com.heaven7.android.component.network.NetworkContext; import com.heaven7.android.component.network.RequestConfig; import com.heaven7.android.component.network.list.ListHelper; import com.heaven7.android.pullrefre...
27.811594
108
0.720688
e4318159dab2b947281d1a0e133bbbe6f21c0f5f
5,280
package com.wayn.framework.config; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.PropertyAccessor; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.jsontype.impl.Lais...
41.25
108
0.729356
481a4e85f6ddcceb319aa5649d6e105713469007
1,865
package org.jeecg.modules.running.uut.mapper; import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Update; import org.jeecg.modules.runn...
25.902778
111
0.699732
c793f3fbcf2c29e0020249212beee19bd12071fa
2,126
/* * 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 ...
43.387755
142
0.587488
2295928c834c2aa2cf271b42a45e27c7d6d4bc4f
163
package com.guoxiaoxing.android.sdk.design._2_3_decorator_pattern; // 抽象组件类 public abstract class AbstractComponent { protected abstract void operation(); }
20.375
66
0.797546
c39a20eeb433d147166426aa829b90dfd9a42a92
15,187
//==================================== // Kyle Russell // StudentCore // ClassesView //==================================== package engine.views.gui.admin.modules; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import engine.controllers.ControllerMessage; import engine.core.RouteHandler; import ...
34.673516
131
0.54303
b0fbfc51f1a3843d32b7e2c87b43d6186d4a0c97
743
package edu.cuny.csi.csc330.examples; public class Point { private int x; private int y; public int getX() { return x; } public int getY() { return y; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass...
14.288462
44
0.578735
d0487f3560f538f8e8367cd77b367a8ee703a2d3
1,199
/* * CommonPackage * * Copyright (c) 2021 * * @author: Viet-Man Le (vietman.le@ist.tugraz.at) */ package at.tugraz.ist.ase.common; import org.junit.jupiter.api.Test; import java.util.HashMap; import java.util.Map; public class RandomGaussianTest { @Test public void testGetGaussian() { RandomG...
26.065217
75
0.57965
a12fcb322c5c23dcbfa6c1058795362900b4968d
2,350
package com.vpaliy.flip_concept; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.content.ContextCompat; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGr...
37.903226
123
0.766809
bd73016f70268f23bad84d798bd6461b3d980ea8
9,425
package DataStructures.graph; import org.junit.Test; import java.util.HashSet; import static org.junit.Assert.*; public class GraphTest { @Test public void testEmptyGraph() { Graph graph = new Graph(); assertNotNull("graph should be instantiated", graph); assertEquals("n...
44.668246
131
0.617082
25a474caa90cd917a3f049ac7bda0cbe82f6d775
1,478
package dev.wonho.leetcode.easy; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; class LengthOfLastWordTest { private final LengthOfLastWord lengthOfLastWord = new LengthOfLastWord(); @Test public void test_Example() { String input = "Hello World"; ...
27.886792
84
0.654263
307fcf315b10565c02f84cf3d2a108f8f76b6ae8
180
package com.yoyaba.google.api.wrapper.pagespeed.exceptions; /** * URL not specified */ public class GooglePagespeedURLNotSpecifiedException extends GooglePagespeedException { }
22.5
87
0.816667
687aa6fc306c8b40cc67fdd809698ed1fcaf26b3
6,067
package com.traviswkim.simpletodo; import android.app.DatePickerDialog; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.DialogFragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; imp...
37.91875
178
0.660788
0a0329c9d0a1d763cb92acd258c8177518a53aef
9,730
/** * 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 writing, software * distribu...
38.458498
145
0.671017
52ab3e89a5d4c3dba81ddba2f1e0e82e6b8230db
2,303
package frangel.benchmarks.controlstructures; import java.awt.Point; import java.util.HashSet; import java.util.List; import frangel.Example; import frangel.SynthesisTask; import frangel.Tag; import frangel.benchmarks.BenchmarkGroup; import frangel.benchmarks.BenchmarkUtils; import frangel.benchmarks.TaskC...
35.984375
150
0.587495