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
d87afb7db93b747bfd4766c09567ad608edd66c5
208
package com.vizo.dash.payload.request.chart; import lombok.Getter; import lombok.Setter; import lombok.ToString; @Getter @Setter @ToString public class PieChartDataRequest { private String fieldName; }
16
44
0.793269
1a8b781d26c79855afd2493d1b4242602ad75354
954
package entity; import com.intellij.psi.PsiClass; import java.util.List; /** * Created by qingwei on 2015/7/15. */ public class InnerClassEntity { private String packName; private String className; private List<String> fields; private PsiClass psiClass; public String getPack...
19.08
49
0.601677
af75f3aad10096a8745c217e933a4b7adbc17083
10,799
package ai.tomorrow.photory.Home; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.Bitmap; import android.os.Bundle; import android.provider.MediaStore; import android.util.Log; import android.view.Menu; import android.view.MenuItem; impor...
36.982877
145
0.655894
096403ae00775a9bc9596dc39dddb7caaffa6ff5
442
package valueit.co.jp.reversi.domain.model.board.grid; public class Grid { private final GridHorizontal horizontal; private final GridVertical vertical; public Grid(int horizontal, int vertical) { this.horizontal = new GridHorizontal(horizontal); this.vertical = new GridVertical(vertical)...
24.555556
59
0.687783
da180716926316b3a9954f22e53a8c8a63f5addc
534
package com.kineolyan.tzio.v1.java.ops; import com.kineolyan.tzio.v1.java.Node; /** * Operation saving the current node value into one of its internal memory slots */ class SaveOperation implements Operation { /** Index of the internal node memory slot */ private final int slot; /** * Constructor. * @param...
19.777778
80
0.713483
ec940e45a857df6da9aeccd64c031c192ff1d4e5
475
/* * 版权所有:杭州火图科技有限公司 * 地址:浙江省杭州市滨江区西兴街道阡陌路智慧E谷B幢4楼 * * (c) Copyright Hangzhou Hot Technology Co., Ltd. * Floor 4,Block B,Wisdom E Valley,Qianmo Road,Binjiang District 2013-2015. All rights reserved. */ package com.huotu.hotcms.service.thymeleaf.model; import lombok.Getter; import lombok.Setter; /** * Create...
18.269231
97
0.692632
51df6fb7992ac35e9355d544d5d6a8c18c8f5ced
3,401
/** * CARIS oscar - Open Spatial Component ARchitecture * * Copyright 2014 CARIS <http://www.caris.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/lic...
29.318966
75
0.644516
61d2a9b078cd3f2d51f64249c10b21adc5afd83e
3,499
/* * 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 ...
33.970874
102
0.733924
1a32347f77bd667953da2bfb2051304237f9b4b6
2,523
/* * 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");...
23.801887
81
0.668648
5a727ef3b249ebe934d0e8439b8fa1668384fd34
1,467
package de.jangassen.lambda.api; import de.jangassen.lambda.util.Generated; import org.apache.commons.lang3.StringUtils; import java.util.Objects; public class ApiResource { private static final String SEPARATOR_CHARS = "::"; protected final String resourceName; protected final String codeUri; prote...
25.293103
77
0.631902
acf588cb2d5a9b4f51d5977364297b20b9484b6e
5,474
package org.firstinspires.ftc.teamcode.SkyStone_2019_2020.TeleOp; import android.annotation.SuppressLint; import com.qualcomm.robotcore.eventloop.opmode.Disabled; import com.qualcomm.robotcore.eventloop.opmode.OpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import com.qualcomm.robotcore.hardware.DcMoto...
43.102362
153
0.668615
f87988694afffc1a5318bc6b883df9fa9c304431
630
package com.zeus.iterator; import org.junit.Test; import static org.junit.Assert.*; /** * @author xuxingbo * @Date 2017/7/3 */ public class NameRepositoryTest { @Test public void test(){ NameRepository repository = new NameRepository(5); repository.add("One"); repository.add("Two"...
21.724138
61
0.592063
4ddd731fbd5177bd18bbc41f79ed5fe00c8edfd9
2,641
package com.ttulka.ecommerce.shipping.dispatching.jdbc; import com.ttulka.ecommerce.shipping.dispatching.Dispatching; import com.ttulka.ecommerce.shipping.dispatching.DispatchingSaga; import com.ttulka.ecommerce.shipping.dispatching.OrderId; import org.springframework.dao.DataIntegrityViolationException; import org.s...
33.43038
120
0.672851
f6cec69f3353d98ba5476a6326f2e937f534a925
1,854
package com.conti.jing.bestdrive; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import cn.sharesdk.framework.ShareSDK; import cn.sharesdk.onekeyshare.OnekeyShare; public class ShareActivity extends Activity implements View.OnClickListener { private...
31.423729
98
0.674757
a0304dc209a11d62247875bd3338a26520d782e7
575
package io.github.nblxa.turntables.io.ingestion; import io.github.nblxa.turntables.Tab; import io.github.nblxa.turntables.TableUtils; import edu.umd.cs.findbugs.annotations.NonNull; import java.util.Objects; public class TwoDimensionalArrayProtocol implements IngestionProtocol<Object[][]> { @NonNull @Override p...
28.75
83
0.746087
25831b25a31aa226ca4278f8bfdd0dfbe27f4159
805
package junit; import java.awt.BorderLayout; import java.io.FileNotFoundException; import java.io.UnsupportedEncodingException; import javax.swing.JFrame; import javax.swing.JList; import model.ihm.list.ListModelPilote; import vue.ihm.pan.list.PanListPilote; import vue.ihm.pan.table.PanTablePilote; import vue.ihm.pa...
28.75
100
0.807453
27dd5e5da58b02036f0f104e9fc1989279c34707
2,828
package it.polimi.sw2019; import it.polimi.sw2019.commons.Character; import it.polimi.sw2019.model.Tokens; import org.junit.Test; import java.util.ArrayList; import java.util.List; import static org.junit.Assert.assertEquals; public class TestTokens { @Test public void addTokensTest() { List<Chara...
31.775281
70
0.67645
783911f396a65ee6504e327297bb446cc780ccac
226
package eu.epitech; import org.javatuples.Pair; import java.util.List; public interface IModule { public String connectOnce(List<String> str); public List<Pair<String, String>> getArguments(String str); }
20.545455
64
0.716814
e7c8859ba12634e30d6f67b3519efd2ef5498e7f
2,138
package dev.yukie.handball.presentation; import javafx.fxml.FXML; import dev.yukie.handball.logic.Model; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.event.ActionEvent; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.contr...
32.892308
103
0.651543
51eb3ae14b92817ced6a3e254264d6a6ae50ea38
1,823
import java.util.ArrayList; import java.util.List; import java.util.Stack; /** * @author liwei * @date 2019/8/28 4:53 PM */ public class Solution5 { private boolean judgeIfIPSegment(String ipSegment) { // 大于 1 位的时候,不能以 0 开头 if (ipSegment.length() > 1 && ipSegment.startsWith("0")) { ...
25.319444
76
0.504114
2b5c8375b8b025638ec7b886b9538cf43d0ba7a0
253
package com.algaworks.algafood.domain.exception; public class ResourceInUseException extends BusinessException { private static final long serialVersionUID = 1L; public ResourceInUseException(String message) { super(message); } }
23
63
0.758893
4799ecf836274ce1043098f534b961a4b8306af5
471
package com.freemovies.watchmoviesonline2020.details; import com.freemovies.watchmoviesonline2020.Movie; import com.freemovies.watchmoviesonline2020.Review; import com.freemovies.watchmoviesonline2020.Video; import java.util.List; /** * @author arun */ interface MovieDetailsView { void showDetails(Movie movie)...
20.478261
53
0.770701
6dc2594091cda52060bf2dfe09ee416539108461
2,070
/* * The Gemma project * * Copyright (c) 2009 University of British Columbia * * 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 *...
31.363636
106
0.710145
790b4722cc068b8bf7adc8b9d9b6e97cf32adaef
820
package jp.crestmuse.cmx.amusaj.sp; abstract class SPFactory { static SPFactory getFactory(String property, String defaultClass) { try { Class c; String className = System.getProperty(property); if (className == null) { try { c = Class.forName("jp.crestmuse.cmx.amusaj.sp." + ...
29.285714
74
0.630488
315acc2bce9fe59324fc8efb7731f41d977bd4b7
7,337
package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.bian.dto.CRMerchandisingLoanArrangementExchangeInputModelMerchandisingLoanArrangementExchan...
32.464602
248
0.785471
bb7e058fd4d760e4c7db3af86777112aaf472f4f
9,046
/** * Copyright 2005-2017 Red Hat, Inc. * * Red Hat 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 r...
46.870466
177
0.721866
407b2b31d3a95c33afd5643ca7a37f0254a252ae
7,577
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.conformance.tests.performance.purge; import org.odpi.openmetadata.conformance.tests.performance.OpenMetadataPerformanceTestCase; import org.odpi.openmetadata.conformance.workbenches.performa...
43.545977
158
0.666755
925964f8303200036b6515e1f6cf6f707364fd8c
3,575
package seedu.delino.model; import static java.util.Objects.requireNonNull; import java.util.List; import javafx.collections.ObservableList; import seedu.delino.model.parcel.Parcel; import seedu.delino.model.parcel.returnorder.ReturnOrder; import seedu.delino.model.parcel.returnorder.UniqueReturnOrderList; //@@auth...
30.555556
115
0.685035
4bc2ac0703ac2c2b1b413697f6a4ea789b3b7ad9
21,868
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * 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 license...
15.091787
814
0.814981
0bc176637e4e10245a706083381450a7ae8bd588
839
package sCADBuilder.model.cmx; public class Location { private int x; private int y; private int width = -1; private int height = -1; public int getX() { return x; } public void setX(int x) { this.x = x; } public int getY() { return y; } public vo...
17.851064
115
0.511323
a0cabc05869be8fb8d7ff6425591b439f47f4c13
88
package com.helospark.lightdi.it.primarymanualoverride; public interface RootBean { }
14.666667
55
0.818182
66baff30f8bad3eb616c3ec53c01a169d7c8f01d
1,470
package com.hockeyhurd.util; public class LogicHelper { public LogicHelper() { } /** * @param text = input * @return true if string isn't null, false if it is. */ public static boolean nullCheckString(String text) { return text != null && !text.equals(""); } /** * Tests set String...
21.617647
120
0.612925
4b995b9eea6578b1e89329ad704b914b449f230d
3,164
/* * (C) Copyright 2005 Arnaud Bailly (arnaud.oqube@gmail.com), * Yves Roos (yroos@lifl.fr) and others. * * 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...
37.666667
100
0.691846
dc719f885b23f256045eb4714791dde0dfd85aa9
322
package moldyn; import org.jtool.test.ConcurrencyTestCase; public class TestMoldyn implements ConcurrencyTestCase { private final int nthreads; public TestMoldyn(int nthreads) { this.nthreads = nthreads; } public void execute() throws Exception { new JGFMolDynBench(nthreads).JGFrun(0); } ...
16.1
54
0.726708
ca1b16224543bcc8198d17a44414d6ac32c6c2c6
6,089
package com.github.rasika.bpmn2solidity.tree.model; import com.github.rasika.bpmn2solidity.BPMN2SolidityParser; import com.github.rasika.bpmn2solidity.exceptions.SolidityParserException; import com.github.rasika.bpmn2solidity.solidty.SolidityCodeTemplate; import com.github.rasika.bpmn2solidity.solidty.SolidityContract...
40.865772
114
0.553621
575f0230e260b9e67dbff351efaddab24fee6bd2
2,376
/* * Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved. */ package com.maxifier.mxcache.ideaplugin.inspections; import com.intellij.codeInspection.*; import com.intellij.psi.*; import com.intellij.codeHighlighting.HighlightDisplayLevel; import com.maxifier.mxcache.ideaplugin.MxCacheInspection; imp...
36.553846
145
0.660354
e3f1df07a71a06278518a72b2d9f3eb86320746d
7,960
package imnotjahan.mod.danmachi.world.dimension.chunkgenerators; import com.mojang.serialization.Codec; import com.mojang.serialization.codecs.RecordCodecBuilder; import imnotjahan.mod.danmachi.init.Entities; import imnotjahan.mod.danmachi.world.CaveFloor; import net.minecraft.block.BlockState; import net.minecraft.bl...
40.20202
153
0.546608
baece3fda398cde22ff991d70adb958118d96874
713
package pingpong; import org.junit.Test; import static org.hamcrest.Matchers.is; import static org.junit.Assert.*; public class GamerLeftTest { @Test public void whenBallOnLeftBorderThenMoveItOnDelta() { int limitX = 30; int limitY = 30; double delta = 1; Ball ball = new Ball(...
26.407407
62
0.587658
008745ac4d53fa89d2459356efcf5a8754356be9
3,194
/* * Copyright 2008-2016 by Emeric Vernat * * This file is part of Java Melody. * * 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/LI...
42.586667
195
0.72918
c8b4906e9c119ef8823d7094b5ee7da71c6a7621
195
package com.pengo.factory.abstract_factory; /** * @author pengo * @description: * @date: 2021/2/7 */ public interface DessertFactory { Coffee createCoffee(); Dessert createDessert(); }
13.928571
43
0.702564
da2234d7509b8cdf7b6a09670c3321e4f43edfe6
6,168
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.ntp; import android.content.Context; import android.util.AttributeSet; import android.view.View; import org.chromium...
41.395973
99
0.68904
702cce9fa4aa0c37c86f7c37d926b4b29eb4176d
2,160
package com.github.instagram4j.instagram4j.actions.users; import java.util.concurrent.CompletableFuture; import com.github.instagram4j.instagram4j.IGClient; import com.github.instagram4j.instagram4j.actions.feed.FeedIterable; import com.github.instagram4j.instagram4j.models.friendships.Friendship; import com.github.i...
42.352941
106
0.794444
f53e02a2d02e4a4a4e76d1aada1e32855ee93d1d
182
package me.ellios.hedwig.rpc.loadbalancer; /** * Load balancer. * Please refer to http://kb.linuxvirtualserver.org/wiki/Category:Job_Scheduling_Algorithms * for more info. **/
30.333333
92
0.747253
871ae356de75818f3a5143b565ad5a4a429f5eb8
4,201
package com.fasterxml.jackson.dataformat.bencode; import com.fasterxml.jackson.core.FormatSchema; import com.fasterxml.jackson.core.JsonEncoding; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.ObjectCodec; import com.fasterxml.jackson.core...
30.223022
143
0.715782
0faa267fc07709d9751fce30d8ff2d9e26b3bf1a
4,278
package com.siyeh.igtest.numeric.implicit_numeric_conversion; public class ImplicitNumericConversion { public ImplicitNumericConversion() { } public void fooBar() { final int i = 0; final char ch = (char) 0; final long l = 0L; final double d = 0.0; float f =...
44.5625
195
0.615007
e9805d4c72d60df037f452dce1a18c0ec3c4491a
1,561
package authoring.menu; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.FirebaseDatabase; import com.google.firebase.database.ValueEventListener; import javafx.scene.control.ListView; import java.util.HashMap; import java.util.Ma...
33.212766
121
0.654709
217a5d656c2ed972e28cff042119da4609227494
3,462
package com.rockhoppertech.music.examples.score; /* * #%L * Rocky Music Examples * %% * Copyright (C) 1996 - 2014 Rockhopper Technologies * %% * 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 Lice...
32.660377
76
0.588099
f2d9f8ba9f8a87e887da48262c1ed63f96e2076c
937
package br.com.senaigo.mobile.vouaprenderandroid.api; import br.com.senaigo.mobile.vouaprenderandroid.entidades.Login; import retrofit2.Call; import retrofit2.http.Body; import retrofit2.http.POST; public interface LoginResorce { //Envia um posts para o servidor @POST("auth/login") Call<Login> post(@Body...
26.027778
66
0.638207
a37ce89cc597e28a8d089908c8e08730462f2508
7,991
/* * 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.791262
124
0.712927
92341cf5440825ba72379c94d91ffe27eaf46743
668
package com.rains.graphql.system.service; import com.baomidou.mybatisplus.core.metadata.IPage; import com.fasterxml.jackson.core.JsonProcessingException; import com.rains.graphql.common.domain.QueryRequest; import com.rains.graphql.common.log.ILogService; import com.rains.graphql.system.domain.Log; import org.aspectj....
31.809524
84
0.811377
7c182dd66fe96eeb85963af9811cb9e85c29422b
4,461
/** * */ package org.filteredpush.kuration.services.test; import static org.junit.Assert.*; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.filteredpush.kuration.services.sciname.IPNIService; import org.filteredpush.kuration.util.CurationComment; import org.filteredp...
35.975806
146
0.756557
f6a4ad6b43ee917c7782a0d846c0159cda435930
4,714
package com.cysout.sousystems.surveymodule.repository.impl; import android.app.Application; import androidx.lifecycle.LiveData; import java.util.List; import com.cysout.sousystems.surveymodule.config.AppDatabase; import com.cysout.sousystems.surveymodule.dao.SurveyAnswerDao; import com.cysout.sousystems.surveymodul...
35.443609
119
0.763046
32cc0541bfb287783f52469f0eb6720367352c73
352
package com.tempestasludi.java.p14_cssp.pcss.selectors; import static org.junit.Assert.*; import org.junit.Test; public class TagTest { @Test public void testTag() { Tag tag = new Tag("div"); assertEquals("div", tag.getName()); } @Test public void testToString() { Tag tag = new Tag("div"); assertEqual...
16
55
0.676136
f68dabf4b075312a1df4ff63fcfa7eeb7430011c
4,212
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v10/services/geo_target_constant_service.proto package com.google.ads.googleads.v10.services; public interface SuggestGeoTargetConstantsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.goog...
32.4
124
0.694444
827658cabb6e2346a7beb41653e4029613e6cdc8
1,091
package com.epam.brest.service.rest; import com.epam.brest.model.dto.DepartmentDto; import com.epam.brest.service.DepartmentDtoService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.core.ParameterizedTypeReference; import org.springframework.stereotype.Service; import org.springfr...
30.305556
121
0.777269
736094e5829b61bd532521cdcea87177e39ea24b
4,977
/* * MIT License * * Copyright (c) 2016 Julian Dobrot * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, mo...
24.043478
106
0.570022
dc0ad93834074f7bc7a68b2f1b086c002e67d775
805
// Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.engine.logic.characters; import org.terasology.engine.entitySystem.entity.EntityRef; import org.terasology.engine.network.Replicate; import org.terasology.gestalt.entitysystem.component.Component; public class Ch...
29.814815
90
0.776398
4b06cef05d3e3e765a6c7c3b9c022f1facf20b8e
3,063
package com.leon.biuvideo.ui.otherFragments.popularFragments; import android.os.Message; import androidx.recyclerview.widget.LinearLayoutManager; import com.leon.biuvideo.R; import com.leon.biuvideo.adapters.homeAdapters.popularAdapters.PopularTopListAdapter; import com.leon.biuvideo.beans.homeBeans.popularBeans.Pop...
36.903614
125
0.697356
4fae4119c2ec627e053e704290614fe7463d96bc
4,158
/* * Precisely APIs * Enhance & enrich your data, applications, business processes, and workflows with rich location, information, and identify APIs. * * The version of the OpenAPI document: 11.9.3.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://opena...
24.898204
146
0.703223
76f4f3e257e8b955f142712c9c2e56b01d390304
1,272
package com.footballun.repository; import java.time.LocalDate; import java.util.Collection; import java.util.List; import org.springframework.dao.DataAccessException; import com.footballun.model.Matchup; public interface MatchupRepository { List<Matchup> findByMatchdayAndCompetitionIdOrderByStartAt...
36.342857
150
0.826258
bc1b7df5b2712c0335588a6ab279deab4d1b8553
3,045
package com.github.walterfan.devaid.http; import java.awt.BorderLayout; import java.awt.Component; import java.util.Map; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTree; import javax.swing.event.TreeSelectionEvent; import javax.swing.event.TreeSelectionLi...
26.946903
99
0.68243
4b3bd37ef2281dd27e8f4236c803b3b845bba369
614
package gg.galaxygaming.projectextended.common.tag; import gg.galaxygaming.projectextended.ProjectExtended; import javax.annotation.Nullable; import net.minecraft.data.BlockTagsProvider; import net.minecraft.data.DataGenerator; import net.minecraftforge.common.data.ExistingFileHelper; public class ProjectExtendedBloc...
34.111111
118
0.819218
397ef04def21c2a64e2c69c96fce8380e6a5dbf7
3,715
package com.servlet; import org.apache.commons.collections4.map.LRUMap; import org.glassfish.grizzly.http.server.HttpServer; import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory; import org.glassfish.jersey.server.ResourceConfig; import com.google.common.io.Files; import de.unibonn.iai.eis.linda....
32.587719
176
0.666756
e36611010d26546af47b28956490ffdd0f45af25
5,488
package cn.iwgang.familiarrecyclerview; import android.content.Context; import android.util.AttributeSet; import androidx.recyclerview.widget.RecyclerView; import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; /** * Support pull refresh and load more * Created by iWgang on 16/04/13. * https://github.com/i...
30.320442
159
0.664723
7276cce593786b4ab349ea3f542cf734665818df
412
package com.rmmeiyuschool.wxapi; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import com.reactnativewechatsdk.WeChatSdkModule; public class WXEntryActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedI...
21.684211
56
0.757282
dbf9ac2ea4b63a66027aaf3387c4c7c1aeb64f2a
18,680
/* * Copyright 2019 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" ...
44.796163
119
0.615792
76b97e7ee325de35bef856239a2869297ae7887b
7,245
package de.metas.ui.web.picking.pickingslot; import java.util.List; import java.util.Set; import java.util.function.Supplier; import java.util.stream.Stream; import javax.annotation.Nullable; import de.metas.ui.web.window.datatypes.LookupValuesPage; import org.adempiere.util.lang.impl.TableRecordReferenceSet; import...
27.236842
170
0.786197
976870f50691d0326845284749537dc8c6eb5ea4
234
package com.sinlov.sprint.demo.hello; import lombok.*; @Data @NoArgsConstructor @AllArgsConstructor public class Greeting { // @Setter // @Getter private long id; // @Setter // @Getter private String content; }
13.764706
37
0.675214
b5d670a369c63a7418ece297d5158616d003c61f
47,854
/* * Tencent is pleased to support the open source community by making BK-CODECC 蓝鲸代码检查平台 available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * * BK-CODECC 蓝鲸代码检查平台 is licensed under the MIT license. * * A copy of the MIT License is included in this file. * * * Terms of...
42.574733
166
0.658064
170497beded3d56bc10201ad6b4fe84bceda8cd5
8,160
/* * Copyright 2020 Xiaomi * * 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...
40.8
126
0.641422
c2cb6c0ab3236960d3267496c35d9ebbdbd86d5f
199
package com.bitsforabetterworld.lunarlander; import java.util.EnumSet; public interface Control { public EnumSet<Command> getCommand(Position position, Velocity velocity); public void reset(); }
22.111111
74
0.80402
5237a7db4fe9923651951a890164e4c47550ffe3
2,686
/* * The MIT License * * Copyright 2013 Cameron Garnham. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
29.516484
88
0.706627
1150beb2fd6f3d29d417168f331741ffeaca4528
1,680
package com.haier.system.util; import java.util.HashMap; import java.util.Map; /** * 轮盘赌 * @author Ami */ public class RouletteWheelVerification { public static void main(String[] args) { Map<String, Integer> statistics = new HashMap<>(); statistics.put("A", 0); statistics.put("B", 0); ...
35
116
0.529167
d32c07ac35f563845f9422fe5186764248d3ca96
428
class BinarySearch { // worst case O(log n) time complexity public int binarySearch(int[] arr, int start, int end, int target){ if(start > end) return -1; int mid = (start + end) / 2; if(arr[mid] == target) return mid; else if(arr[mid] > target) return binarySearch(...
19.454545
69
0.565421
7cdf12b3acf396fc1b6f24126ede1beff3fe5885
716
package org.bbottema.clusteredobjectpool.cyclingstrategies; import org.bbottema.clusteredobjectpool.core.api.LoadBalancingStrategy; import org.jetbrains.annotations.NotNull; import java.util.LinkedList; import java.util.List; import java.util.concurrent.ThreadLocalRandom; /** * Randomly (thread-safe) cycles through...
26.518519
88
0.77514
993e0746ecb40acf9dc9c8d3a255ee4fd9cfc7e9
14,190
/* * This class is distributed as part of the Botania Mod. * Get the Source Code in github: * https://github.com/Vazkii/Botania * * Botania is Open Source and distributed under the * Botania License: http://botaniamod.net/license.php */ package vazkii.botania.common.item; import net.minecraft.ChatFormatting; im...
34.779412
132
0.721424
87b98d0eb863f94739f3ffb8b6f206ec8f41bde1
402
// This is a generated file. Not intended for manual editing. package com.windea.plugin.idea.bbcode.psi; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.psi.PsiElement; public interface BBCodeTagPrefix extends PsiElement { @NotNull List<BBCodeAttribute> getAttributeList(); @Null...
20.1
61
0.773632
c0a878bf26b40d7921e82b28de3386a981dbee42
9,929
/* ### * IP: GHIDRA * * 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 writin...
26.762803
97
0.695135
cd008640771b4205017af336bae0df87be0b0ae4
13,480
package es.bsc.dataclay.logic.classmgr.bytecode.java.constants; import org.objectweb.asm.Type; import org.objectweb.asm.commons.Method; /** Constants of methods for bytecode generation. */ public final class ByteCodeMethods { /** Bitset constructor. */ public static final Method BITSET_CONSTRUCTOR = new Method(By...
42.389937
139
0.754451
4ecc8a4c86859a636604478e9ca8576406ffc402
985
package com.kimzing.user.repository.car; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import com.kimzing.utils.po.AbstractPO; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; import java.io.Serializable; import j...
18.584906
62
0.688325
65308dee6710df1aae15e22f08121fde5d6ec19d
32,832
/* * Copyright 2013 Universidade do Minho * * * 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 ...
29.551755
214
0.604563
b576abec3f992088fec28af29a7e32c702e99a90
454
package org.shirakumo.lichat.updates; import org.shirakumo.lichat.*; import java.util.*; public class Pull extends ChannelUpdate{ public static final Symbol className; static{ className = CL.intern("PULL"); CL.registerClass(className, Pull.class); } public final String target; pub...
23.894737
60
0.671806
5054d8942f93051e782e84055940886a8aebccb2
12,823
/* * Copyright (c) 2017 Michael Krotscheck * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
32.137845
87
0.610544
01f09479db6d9be3c8c5cbdf03cfd6f27e79972d
3,295
/* * Copyright 2013-2017 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...
24.962121
107
0.673748
f275f9aaf4f311c9e78a468bfe23becf810ecfad
2,629
package com.incountry.residence.sdk.tools.crypto; import com.incountry.residence.sdk.crypto.EncryptionSecret; import com.incountry.residence.sdk.crypto.Secret; import com.incountry.residence.sdk.tools.exceptions.StorageCryptoException; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger;...
43.816667
166
0.741727
6e2fbe44aac9bad414b43f446a0c94920a021a5a
1,945
/** * Copyright (C) 2010-18 diirt developers. See COPYRIGHT.TXT * All rights reserved. Use is subject to license terms. See LICENSE.TXT */ package org.diirt.datasource.formula.venum; import static org.diirt.vtype.ValueFactory.displayNone; import static org.diirt.vtype.ValueFactory.newVInt; import java.util.Arrays;...
26.283784
73
0.559383
f389d0adaf4bba30ba8d0cb72d6b686aec278ff0
2,521
/** * Copyright 2003 - 2005 Arcadian Group LLC. All rights reserved. * Use is subject to license terms found in this distribution. */ package com.arcadian.itext.ks; import java.awt.Color; import java.util.ArrayList; import java.util.HashMap; import com.lowagie.text.Element; import com.lowagie.text.pdf.Pd...
24.960396
75
0.652916
3fef2eacc9f2998bae7edcedeec13f13df2a0fef
2,366
/** * @author Rajith Priyanga (c) 2013 - rpriyanga@yahoo.com * * */ package helabasa.tools; public class HBCWordEntry { private static long l...
43.018182
125
0.327557
ce85dd31f15ddfeaa8b086035645df0f6dd0ef48
270
package com.cacoota.cloud.service; import org.springframework.stereotype.Component; @Component public class SchedualServiceHiHystric implements SchedualServiceHi { @Override public String sayHiFromClientOne(String name) { return "sorry "+name; } }
22.5
68
0.762963
66ef7bd6e9b09a9c561dee720dc4027ff862808a
18,642
package coffeeshop; import java.util.ArrayList; import javax.swing.DefaultListModel; import javax.swing.JOptionPane; public class OrderForm extends javax.swing.JFrame { ArrayList<Product> products = new ArrayList<>(); DefaultListModel<String> selectedProductsNames = new DefaultListModel<>(); /** ...
47.194937
210
0.598487
7ccfe8fe53e7ac3b7eebd780c6464693bc0b866a
3,632
package baselib.base; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.alibaba.android.arouter.launcher.ARouter; import org....
22.987342
132
0.628855
49dc5921380f42b930a30aed2c6da0b902b1e210
1,674
package slogo.view.windows; import javafx.beans.property.SimpleBooleanProperty; import javafx.scene.Node; import javafx.scene.control.ListView; import javafx.scene.control.TitledPane; import slogo.controller.Controller; import slogo.view.components.CodeStage; import java.util.ResourceBundle; public class AvailableCo...
26.15625
99
0.70908
8dbe58268be2e305d80c3af01dcdf5b0800c1083
2,156
package controllers; import action.Cors; import com.fasterxml.jackson.databind.node.ObjectNode; import org.joda.time.DateTime; import org.joda.time.Seconds; import play.libs.Json; import play.mvc.Controller; import security.Security; import play.mvc.Result; import java.util.Timer; import java.util.TimerTask; @Cors p...
34.222222
110
0.619666
0c1d88233636e340ac2af957d22be4500a2e1f82
613
/* * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ /** * This package has utility classes that perform common services required * for API documentatio...
17.027778
79
0.659054
a7ac66bbcea81a19b87fc540045c6c7fac37c0ad
1,643
package com.tom.factory.block; import net.minecraft.block.material.Material; import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net...
28.327586
194
0.78941
fbbd9127788b8e833b02a14c0b0e7e6ecb0fd374
1,541
/* * Copyright (c) 2011-2017 Jeppetto and Jonathan Thompson * * 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...
37.585366
134
0.792343
9d220f253c592c11e02abd5232d98e71f22df8ca
2,493
package lk.ultratech.agent.sys.dao.custom.impl; import lk.ultratech.agent.sys.dao.CrudUtil; import lk.ultratech.agent.sys.dao.custom.CementAgentDAO; import lk.ultratech.agent.sys.entity.CementAgent; import lk.ultratech.agent.sys.entity.CementAgentPK; import java.sql.ResultSet; import java.sql.SQLException; import jav...
46.166667
202
0.739671
9c134be3cb12894d6551aa3b81982e678193c291
6,955
package org.jasperreportssample; import java.lang.Runnable; import javax.swing.JPanel; import javax.swing.JOptionPane; import java.awt.event.ActionEvent; import java.io.File; import java.io.FileNotFoundException; import java.sql.Connection; import net.sf.jasperreports.engine.JRException; import net.sf.jasperrepo...
28.858921
123
0.702229
527c4d73e044f710fa6ff20e9cf3cfc3748a8ede
9,655
package org.batfish.common; // IMPORTANT: // If you change the values of any of these constants, // make sure that the javascript, python clients is updated too import org.batfish.common.BfConsts.TaskStatus; public class CoordConsts { public enum WorkStatusCode { ASSIGNED, ASSIGNMENTERROR, BLOCKED, ...
54.857955
100
0.791403
d3164c091461f96f4f1211792714ef31a515c7ed
294
package parser.command.commandlist.turtlecommand; import parser.ParserException; import parser.command.Command; public class PenDownCommand extends Command { @Override public double evaluate() throws ParserException { myParser.getCurrentTurtle().getPen().setDown(true); return 1; } }
21
53
0.792517