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
9e6170d96ccb23e836deb13009000c5e52ca087b
929
package com.packt.example.scopebinding; import org.springframework.beans.factory.InitializingBean; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.core.userdetails.UsernameNotFoundException; i...
34.407407
99
0.786868
4e740240f1563de51fddef0be22654bf3c3b3e1a
2,221
package com.dxp.graphql.service; import com.dxp.graphql.fetcher.AllBooksDataFetcher; import com.dxp.graphql.fetcher.BookDataFetcher; import com.dxp.graphql.fetcher.PageBookFetcher; import graphql.ExecutionResult; import graphql.GraphQL; import graphql.schema.GraphQLSchema; import graphql.schema.idl.RuntimeWiring; impo...
34.703125
134
0.739757
1d9785aa0cfbd7bd652f87671bccf6e6ae8454f0
1,831
package org.ly.server.application.model.messaging.payloads; public class PayloadProgram extends Payload { // ------------------------------------------------------------------------ // c o n s t // ------------------------------------------------------------------------ private s...
31.033898
79
0.308575
5b541e1d0a8ba3bc63882f5ab75ee00e5fee2c4c
2,430
package com.bluebrim.font.shared; import java.rmi.*; import java.util.*; import com.bluebrim.base.shared.*; import com.bluebrim.font.impl.shared.*; import com.bluebrim.font.shared.metrics.*; import com.bluebrim.xml.shared.*; /** * Remote interface for the Font Repository, i.e. the central which handles all fonts and...
26.703297
198
0.78642
fe75fe28c3abd279bd0bc448bcb281a470373ed4
144
package com.mitravaruna.rxsheets.models; public abstract class Formula extends Cell { private Expr expression; private Value value; }
18
44
0.763889
016aee4f192e38a9b4788e8e2770e6a463bcd883
2,933
/* Copyright (c) 2006-2007, Vladimir Nikic All rights reserved. Redistribution and use of this software 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 copy...
37.126582
112
0.700648
73184763870113a00b32b951a8eeb2cc5b9cb54c
2,588
package com.jimmy.amap; import java.io.File; /** * Created by jimmy */ public class RMixModTrans { private File input; private File output; private RVoxelSpace voxelSpace; public RMixModTrans(String input, String output, boolean overwrite_output) throws Exception { this.input = new File(...
26.141414
97
0.620943
1a6290542c64d47b670f2803e60b429000f95b9d
2,827
package com.benwunet.msg.section.login.activity; import android.animation.Animator; import android.os.Bundle; import android.widget.ImageView; import android.widget.TextView; import androidx.lifecycle.ViewModelProvider; import com.benwunet.msg.MainActivity; import com.benwunet.msg.R; import com.benwunet.msg.common.i...
27.990099
80
0.569862
fa7915ca01c7a842a0fbee8edc1f08d1740fbc1a
657
package com.company.jsonb.web.screens.address; import com.haulmont.cuba.core.app.UniqueNumbersService; import com.haulmont.cuba.gui.screen.*; import com.company.jsonb.entity.Address; import javax.inject.Inject; @UiController("jsonb_Address.edit") @UiDescriptor("address-edit.xml") @EditedEntityContainer("addressDc") ...
26.28
100
0.7793
764f0f45f3c78a62f6eb69716d2acf1ca72e26e3
2,808
package cucumber.table; import difflib.Delta; import difflib.DiffUtils; import difflib.Patch; import gherkin.formatter.model.Row; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class TableDiffer { private final Table orig; private final Table other;...
38.465753
126
0.639601
a7fa4f22d26d7bb00ce987c0f832889ec5f97e99
1,574
/* Copyright 2018 Telstra Open Source * * 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.48
97
0.739517
c1bf60944e2cbe969557ead952cfea8459d0abe8
673
package com.bingor.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.SOURCE) @Target(ElementType.TYPE) public @interface RouterNode { // Activity int NODE_TYPE_...
23.206897
50
0.738484
fd8fe85b55a0ee631b51c975011af0fc454a5b81
270
package com.vaadin.cdi.tutorial; import java.util.List; public interface UserDAO { public User getUserBy(String username, String password); public User getUserBy(String username); public boolean saveUser(User user); public List<User> getUsers(); }
18
60
0.733333
8107684c9ee4388fc506813ab6d8af6316e4367d
7,384
package urender.engine.shader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; import urender.api.UObjHandle; import urender.api.UShaderType; import urender.api.backend.RenderingBackend; import urender.engine.UGfxEngineObject; import urender....
28.731518
106
0.72007
71780b8130553219a8e591a89888ce5dabfdea99
397
package org.jaylen.test.crimson.sandbox.correct.impl; import org.jaylen.crimson.annotations.Component; import org.jaylen.test.crimson.sandbox.correct.service.SimpleService; /** * Uses id {@code "custom"}. */ @Component(id = "custom", role = SimpleService.class) public class CustomSimpleBean implements SimpleService...
24.8125
69
0.725441
e7275d1908cfcc08b48cd509e523983bcf585967
1,338
/******************************************************************************* * Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 ...
40.545455
102
0.690583
e7c85cd49866a08fceb6f2cbd41cb22f9ca59496
2,117
package com.stuypulse.robot.commands; import com.stuypulse.robot.Constants.Alignment; import com.stuypulse.stuylib.network.SmartNumber; import com.stuypulse.stuylib.network.limelight.Limelight; /** * The drivetrain goal aligner is an aligner that uses the limelight to send * instructions to the drivetrain on how it...
34.704918
110
0.663203
798dff884146d33a91f80451afab1b49f5c15b7f
1,592
/** * APPIA implementation of JGCS - Group Communication Service * Copyright 2006 University of Lisbon * * 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/licens...
25.269841
75
0.713568
fdd32a8ca3e7c7dd749e482bec0860b31e8fa2d1
5,134
/* * Copyright (c) 2001-2009 JGoodies Karsten Lentzsch. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, * this...
34.689189
93
0.678224
cd0510a834447adc370fc84f057fbc1813bc628c
2,789
package com.finalhints.mymandirdemo.network; import java.util.HashMap; import okhttp3.OkHttpClient; import retrofit2.CallAdapter; import retrofit2.Converter; import retrofit2.Retrofit; /** * @author Bhumik Sapara */ public class RetrofitManager { private static String DEFAULT_RETROFIT = "DEFAULT_RETROFIT"; ...
32.811765
167
0.700251
4bc60e62c66722eab140d4d781263df50fdcd83e
7,520
package com.bitwait.bitrade.engine; import com.bitwait.bitrade.entity.*; import com.bitwait.bitrade.handler.MarketHandler; import com.bitwait.bitrade.service.ContractOptionCoinService; import com.bitwait.bitrade.service.ContractOptionOrderService; import com.bitwait.bitrade.entity.*; import com.bitwait.bitrade.job.Exc...
35.980861
145
0.602128
00621984b898566283eb0ed502753441cbe66af8
825
package com.networknt.bot.release; import org.junit.Assert; import org.junit.Test; import java.io.IOException; public class ReleaseMavenTaskTest { //@Test public void testReleaseMaven() throws IOException, InterruptedException { ReleaseMavenTask cmd = new ReleaseMavenTask(); int result = cmd....
27.5
77
0.676364
de9730efc05c4dcfe911be01d8b3ce38a8a82c86
967
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.commands.autonomous; import edu.wpi.first.math.geometry.Pose2d; import edu.wpi.first.math.geometry.Ro...
34.535714
94
0.750776
be4ca746d2ad23d09b34c0ae4b614edbeb95ec0d
6,223
package com.example.commontask.service; import android.app.Service; import android.content.Context; import android.content.Intent; import android.os.Build; import android.os.Handler; import android.os.IBinder; import android.os.Message; import android.os.Messenger; import android.os.PowerManager; import android.prefer...
33.820652
100
0.616262
39036874ae9aa127072f6804428dae5b3f13549f
2,684
package com.hanyee.geekzone.presenter; import com.hanyee.androidlib.network.RemoteApiCallback; import com.hanyee.geekzone.base.SuperiorPresenter; import com.hanyee.geekzone.model.bean.zhihu.NewsDailyBean; import com.hanyee.geekzone.model.source.local.LocalDataSourceManager; import com.hanyee.geekzone.model.source.rem...
33.55
96
0.634873
ea1536aaa02c5c852c1cde64449a00d28e5dd655
1,755
package com.iwobanas.screenrecorder; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import...
37.340426
161
0.736182
8c8b052a0f75babf37ae63814c305dd1af1ed57d
4,490
package tests.trees; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertEquals; import java.util.Arrays; import org.junit.Test; import tree.BasicNode; import tree.BinarySearchTree; import tree.TreeUtil; /** * Unit tests for {@link TreeUtil}. */ public class TreeUtilTest ...
37.731092
80
0.680624
91bb5b26bea5f29af8dcf9e0d0f4618a8bda23f8
3,019
package com.sixsq.slipstream.module; /* * +=================================================================+ * SlipStream Server (WAR) * ===== * Copyright (C) 2013 SixSq Sarl (sixsq.com) * ===== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
26.252174
75
0.708513
8d0ebf28971d155c833e6c2b8ae74751f1875fd8
11,026
// // Copyright (c) Phoenix Contact GmbH & Co. KG. All rights reserved. // Licensed under the MIT. See LICENSE file in the project root for full license information. // SPDX-License-Identifier: MIT // package com.phoenixcontact.rsc.demo.RscController; import com.phoenixcontact.ade.commonremoting.CommonRemotin...
36.269737
149
0.569019
03dd199d64c98f63161df365e8ba3603820ee7d5
4,379
package com._22evil.util; import javax.imageio.ImageIO; import javax.imageio.ImageReader; import javax.imageio.ImageWriter; import javax.imageio.stream.FileImageInputStream; import javax.imageio.stream.FileImageOutputStream; import java.awt.*; import java.awt.image.BufferedImage; import java.io.File; import java.io.IO...
29.389262
102
0.568166
6f79564bcfe83855e18ca9a7a55d31fbfb771362
1,543
/* * Copyright 2012 - 2014 Future Interface. All rights reserved. */ package com.fi.tech; import android.content.Context; public class PNativeLibrary { public static final int STATE_LOADED = 0; public static final int STATE_UNINITIALIZED = 1; public static final int STATE_INITIALIZED = 2; public st...
22.042857
75
0.594297
ada4a836f489580f21a1d6a1a110aa656378c687
384
module qrscan { requires javafx.controls; requires javafx.fxml; requires com.google.zxing; requires java.desktop; requires org.apache.pdfbox; requires com.google.zxing.javase; requires org.tinylog.api; requires java.prefs; opens nl.ls31.qrscan.controller to javafx.fxml; opens nl...
27.428571
51
0.713542
3a00e6d467f63b71b1dd2e6b14ca931a6087d251
2,439
package com.snk.property.service.impl; import java.util.List; import com.snk.common.utils.DateUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.snk.property.mapper.ProCarportRentOrderMapper; import com.snk.property.domain.ProCarportRentOrder...
25.40625
107
0.706437
daebbd6d2120169c21c23c98d6bba89561b81db1
497
import StringManipulation.LongestCommonPrefix; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertAll; public class LongestCommonPrefixTest { @Test void longestCommentPrefix() { LongestCommonPrefix lcp = new LongestCommonP...
26.157895
125
0.684105
f868dd746b71cb319a5d549f5953b0d439c495b7
2,904
package zan.lib.gfx.model; import static org.lwjgl.opengl.GL11.GL_FLOAT; import static org.lwjgl.opengl.GL11.GL_INT; import static org.lwjgl.opengl.GL15.GL_ARRAY_BUFFER; import static org.lwjgl.opengl.GL15.GL_STREAM_DRAW; import static org.lwjgl.opengl.GL15.glBindBuffer; import static org.lwjgl.opengl.GL15.glBufferDat...
28.470588
81
0.735193
7643b90cb1e599fee1bb0f30096cf4730700243b
1,665
package net.blay09.mods.cookingforblockheads.client.render; import net.blay09.mods.cookingforblockheads.block.ModBlocks; import net.blay09.mods.cookingforblockheads.tile.TileSpiceRack; import net.minecraft.block.state.IBlockState; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.GlStateManag...
43.815789
154
0.762763
45900815516089b6409d48dc2bf7a1f5c2378829
807
package com.github.droibit.plugin.androidapilevel.ui; import com.intellij.openapi.ui.DialogWrapper; import org.jetbrains.annotations.Nullable; import javax.swing.*; /** * [DialogWrapper](http://www.jetbrains.org/intellij/sdk/docs/user_interface_components/dialog_wrapper.html) */ public class AndroidApiLevelDialog ...
20.692308
108
0.697646
b97d1a2b3a9a27d0804b5127e249cfb3c6226682
773
package org.pikater.core.options.evaluation; import org.pikater.core.agents.experiment.virtual.Agent_VirtualBoxStandardEvaluationMethod; import org.pikater.core.ontology.subtrees.agentinfo.AgentInfo; import org.pikater.core.ontology.subtrees.batchdescription.EvaluationMethod; import org.pikater.core.options.SlotsHelpe...
32.208333
91
0.826649
d0717f3a266baa515de6ea62f5fb561499290a5e
1,581
/* * RED5 Open Source Media Server - https://github.com/Red5/ * * Copyright 2006-2016 by respective authors (see below). 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 Lic...
32.9375
149
0.710942
90986f36ab03d95fcaba4c858bed5055ba7810a2
189
package com.speedrunhub.levelsystem.sql; import java.sql.ResultSet; import java.sql.SQLException; public interface SQLResult { void process(final ResultSet p0) throws SQLException; }
21
57
0.798942
2abc4872452491841e943ecd5a7e0cb65d7c2343
5,189
/** * Copyright © airback * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distribut...
49.894231
172
0.723453
2ada8e501d43eacbaef86680aac0a2bc7179edf4
313
package edu.put.ma.io.model; import java.util.List; public interface ModelInfo { int getModelNo(); void addEntityId(int entityId); List<Integer> getEntityIds(); int getEntityIdByStrandIndex(int index); void setEntityIds(List<Integer> entityIds); boolean isEntityIdsConsidered(); }
16.473684
47
0.71885
14253288a4c48592758ea69214a1995ca7937397
3,597
/* * 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 ...
31.831858
106
0.724771
2f3d707a75142ddd9dc6f1c0cf36fb2dde9bfc2d
3,097
package utils; import java.util.List; import dbn.Observations; import dbn.ScoringFunction; public class ScoreCalculationThread extends Thread{ private int t; private int i_init; private int i_final; private List<List<Integer>> parentSets; private Observations observations; private double[][][] scoresMatrix; p...
26.698276
101
0.654504
96cc4764eda5d095f2132f5dbef0a2fa9049643e
8,473
/* * Copyright 2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
37.657778
135
0.699988
ad17ae8847c04bf0c57cf205d0fa0a3c9da2a2ab
7,100
package com.mobile.mobilehardware; import android.content.Context; import android.support.annotation.NonNull; import com.mobile.mobilehardware.applist.ListAppHelper; import com.mobile.mobilehardware.audio.AudioHelper; import com.mobile.mobilehardware.band.BandHelper; import com.mobile.mobilehardware.bluetooth.Bluetoo...
22.611465
76
0.644789
2a527cb63d7d26f2015090c0a034310519768c88
666
package ru.job4j.tracker; import java.util.Iterator; import java.util.List; public class InputStub implements Input { private final List<String> value; Iterator iterator; public InputStub(List<String> value) { this.value = value; iterator = value.iterator(); } public String as...
22.2
70
0.624625
f76131a2d26358b8cc3c09f6eac3624982ab0e27
392
package com.mehta.dao.framework.finder.impl; import java.lang.reflect.Method; import com.mehta.dao.framework.finder.FinderNamingStrategy; public class SimpleFinderNamingStrategyImpl implements FinderNamingStrategy { @Override public String queryNameFromMethod(Class<?> findTargetType, Method finderMethod) { ret...
26.133333
82
0.803571
b039aa6b237196d576f47064cfb32e6730d807f5
238
package rocks.gioac96.veronica.core; import lombok.NonNull; /** * Pipeline stage that filters a {@link Request} before a {@link Response} * is generated. */ public interface PreFilter { void filter(@NonNull Request request); }
17
74
0.718487
e44fe552c5ab23409cb1521c5b3aa68befcdc008
2,662
package com.facebook.share.internal; import android.support.annotation.Nullable; import com.facebook.share.model.ShareOpenGraphAction; import com.facebook.share.model.ShareOpenGraphObject; import com.facebook.share.model.SharePhoto; import java.util.List; import org.json.JSONArray; import org.json.JSONException; impor...
39.731343
172
0.686326
afcefb36da1a201b6645421c169b6e26e6ec31f2
280
import LogMessage; public abstract class Subsystem { public SubSystem(HardwareMap hardwareMap) { } public void init() { } public void setInput(Gamepad gamepad) { } public void execute() { } public LogMessage getLogMessage() { } }
11.666667
47
0.617857
caffcad3fad6ea1a3a34f123a787f42c44e67b33
2,098
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, softw...
27.605263
75
0.70877
e1489c64fb2132ec9efa454f5636428fe226826a
2,883
import java.io.*; import java.util.Scanner; import javax.sound.sampled.*; import jp.kmgoto.music.*; public class FastAudioInput { public static void main(String[] args) throws Exception { AudioFormat format = new AudioFormat( AudioFormat.Encoding.PCM_SIGNED, 44100f, 16, 1, 2, 44100f,false...
29.418367
73
0.627818
5c2d6e9e657220aaf3303a59bd92ddd959d86319
2,515
package com.brunoccc.sudoku; import org.junit.*; import static org.junit.Assert.*; public class BitCandidatesTest { private static final int GRID_SIZE = 9; private BitCandidates candidates; /** * Sets up the test fixture. * (Called before every test case method.) */ @Before pu...
31.835443
121
0.562227
4a0503e1c4c73150d67282b26de8e5f99dc02385
609
package edu.cmu.cs.mvelezce.adapters.grep; import edu.cmu.cs.mvelezce.adapters.BaseAdapter; import java.util.Arrays; import java.util.List; public abstract class AbstractGrepAdapter extends BaseAdapter { public AbstractGrepAdapter(String programName, String directory, List<String> options) { super(programName...
21.75
90
0.689655
87795b9ec80fee019161f1ae807392e9ec839190
667
package br.co.zupacademy.jefferson.mercadolivre.transacao; import org.springframework.stereotype.Service; import org.springframework.web.client.RestTemplate; import br.co.zupacademy.jefferson.mercadolivre.fechacompra.Compra; import br.co.zupacademy.jefferson.mercadolivre.sistemaexterno.RankingRequest; @Service publi...
31.761905
94
0.812594
212b722d77239ee0ec4192e5fbd0a553d9037f89
10,367
package dev.yasint.regexsynth.synthesis; import com.google.re2j.Pattern; import dev.yasint.regexsynth.api.Expression; import dev.yasint.regexsynth.dsl.Literals; import dev.yasint.regexsynth.exceptions.InvalidCodepointException; import dev.yasint.regexsynth.unicode.UnicodeScript; import java.util.HashSet; import java....
36.893238
107
0.600463
6aa31dab60c27134c535997de27cdf47517ff3ba
4,736
/** * @author Virtusa */ package org.bian.controller; import java.util.List; import org.bian.annotation.BianRestController; import org.bian.annotation.BQ; import org.bian.dto.BianRequest; import org.bian.dto.BianResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.b...
48.326531
281
0.822424
72be8f5af2e70af7d094143e77f68000f2868f7b
1,392
/* * (C) Copyright 2016 Hewlett Packard Enterprise Development LP * * 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 b...
28.408163
75
0.68319
b4476be877d48713a9affc47cc6e1efc7cb2543e
2,445
/* * Copyright 2020 nghiatc. * * 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...
26.576087
75
0.614315
d958351def76813ec16825540733d4fb3040496d
2,797
package com.neeraja.ShareMyOffer.config; import org.modelmapper.ModelMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import or...
32.905882
107
0.771541
8d637dce211a51a909b4f3b1eb5a134d70803dd1
4,564
/* * (C) Copyright 2011 Nuxeo SA (http://nuxeo.com/) 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/licenses/LICENSE-2.0 * * Unless require...
33.558824
98
0.693909
af4e539c2cf2b1007958bf3dea0af2fbb8cb7526
1,566
package com.webcheckers.model.checkers; import java.io.Serializable; /** * Represents a piece on the board as well as the type of piece that it is * * @author Collin Bolles */ public class Piece implements Serializable { /** * Represents the types of pieces, either single or king */ public enum PieceTy...
20.337662
84
0.636654
24b8035f3be51db7bb31f4bf1268f9cbd0245b83
2,780
/** * 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...
27.524752
80
0.648921
c37e3c99ac31acd32b8ded5aa6de9b91775bb8c5
14,862
package org.firstinspires.ftc.teamcode.Subsystems; import com.acmerobotics.dashboard.config.Config; import com.acmerobotics.roadrunner.control.PIDCoefficients; import com.acmerobotics.roadrunner.control.PIDFController; import com.acmerobotics.roadrunner.util.NanoClock; import com.qualcomm.hardware.rev.RevTouchSensor; ...
33.026667
131
0.583905
ac9907e083574399fa164e5811fa5f429687ee1d
358
package com.shu.shuny.common.exception; import lombok.Getter; import lombok.Setter; /** * @Author:shucq * @Description: * @Date 2019/9/9 */ @Getter @Setter public class BizException extends RuntimeException { public BizException(Throwable e) { super(e); } public BizException(String errorMs...
14.32
52
0.664804
0713a5fcfcf95785389c9a4c6f73f692764a852b
12,486
package cn.yiya.shiji.activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import a...
36.940828
134
0.535159
95788f4c1d0d2a09dde0b43d78a726cc252b13c0
2,214
package eu.lunekiska.scythd.compat.tiers; import net.minecraft.item.IItemTier; import net.minecraft.item.crafting.Ingredient; import net.yezon.theabyss.item.*; import javax.annotation.Nonnull; public enum ScythdTheAbyssItemTiers implements IItemTier { ABYSS_DIAMOND(1000, 3.0F, 8,Ingredient.fromItems(AbyssDiamon...
24.876404
104
0.676152
7a1108ba0e12de69780917f53b6f775c55b8cbcf
1,916
/* * Copyright (C) 2005-2020 Gregory Hedlund & Yvan Rose * * 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 applica...
31.409836
90
0.760438
83782973453a9bad457abfb8f26d4773cdd03f7c
4,213
package com.nensi.superheroes.controller.errors; import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.List; import java.util.Map; import java.util.UUID; public class ErrorResponse { private final String apiVersion; private final ErrorBlock error; public ErrorResponse(final String apiVer...
32.914063
120
0.593876
699f9568d84dad1b50ae9d06a4a8159fd41c60b8
593
package com.rzk.pojo; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; //等价于 在xml配置 <bean id="dog" class="com.rzk.pojo.Dog"/> @Component public class Dog { private String name; public String getDog() { return name; } @Value("狗子") ...
19.766667
58
0.56661
24fc5e679da2c1497118e955ac5f54954f4f8551
440
package ru.simple.operations; import ru.simple.start.Input; import ru.simple.start.Tracker; public class DeleteItem extends BaseAction { public DeleteItem(int key, String name) { super(key, name); } public void execute(Input input, Tracker tracker){ System.out.println("------------ Удале...
23.157895
74
0.622727
59faa621ce119dc5d783f017f1b92e9b7b450e04
405
package comunicaciones; import java.io.Serializable; import java.util.ArrayList; public class MsjListaSala implements Serializable { /** * */ private static final long serialVersionUID = 1L; private ArrayList<String> nombreSalas; public MsjListaSala(ArrayList<String> nombreSalas) { this.nombreSalas = nomb...
19.285714
53
0.760494
c42e18b19e9a7631f35f79b40566602aaa590700
2,819
package com.cronutils.model; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.regex.Pattern; import java.util.stream.Collectors; import com.cronutils.mapper.CronMapper; import com.cronutils.model.definition.CronDefinition; import com.cronutils.model.field.CronField; import c...
33.963855
190
0.667613
92cbabb52f7ab974474255c6b53c08f0ef608e53
1,225
package ru.job4j.jdbc; import java.io.*; import javax.xml.transform.OutputKeys; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.stream.StreamSource; /** * Converted XML file by scheme to other XML format...
32.236842
76
0.657959
d98ab28d1f8c3284e7fdba3af86fad44227342ad
2,185
package sirinleroyun; import java.awt.Graphics; import java.util.List; /** * * @author Gökçe Yılmaz */ public class Dijkstra { // private static final int NO_PARENT = -1; // // public static void dijkstra (int[][] adjacencyMatrix, int startVertex, int endVertex,List<Integer> shortWay){ // // int nVerti...
31.214286
114
0.599542
cd7577efd6c4c169af71aba9fd57d657408f9072
2,784
package org.firstinspires.ftc.team7316.commands; import org.firstinspires.ftc.team7316.maps.OI; import org.firstinspires.ftc.team7316.maps.Subsystems; import org.firstinspires.ftc.team7316.maps.Hardware; import org.firstinspires.ftc.team7316.util.Util; import org.firstinspires.ftc.team7316.util.commands.Command; publ...
33.95122
127
0.63829
a0b3800fa04908730f93f2591c6ae95c791e8649
69
package fr.lightnew.magician; public class QuestMagicianManager { }
13.8
35
0.811594
08f0482f848bea6f5086c3fd514092ca1b521ba2
625
package np.blockchain.session1; import np.blockchain.session1.Cipher; public class CeaserCipher extends Cipher{ byte shift_value; CeaserCipher(int shift){ shift=(byte)shift; } @Override public byte[] encrypt(byte[] data) { byte[] result=data.clone(); for(int i=0;i<data...
17.361111
41
0.5568
294bde96f1a4c10c78ba9a69382dbf112b00a6aa
7,360
/** * 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...
34.232558
80
0.52038
6c0bcfc34b4d55adafc7fdd591973f8647b1ae4d
25,479
package java.dev.other; import android.app.Activity; import android.content.Intent; import android.text.TextUtils; import com.luck.picture.lib.PictureSelectionModel; import com.luck.picture.lib.PictureSelector; import com.luck.picture.lib.entity.LocalMedia; import com.luck.picture.lib.tools.PictureFileUtils; import ...
30.332143
111
0.53185
87f30d3a8129237dc2fbf2e4f794642f56d18d71
2,964
package comp1110.ass2.member; /** * @author Yixin Ge * @version 1.0 * @since 2021.3.27 */ /** * Modified by Ruizheng Shen in 2021.4.18 * 1. Removing inherited classes. * 2. Removing (String)'colorName' member. * 3. Add a Enum class TileType, for the tile's color. * 4. Add a constructor. * 5. Add 'private' ...
26
104
0.540486
1e1aa50752b5f867ad2d2e3e968f7d9637262e36
7,721
package com.github.neuralnetworks.samples.test; import static org.junit.Assert.assertEquals; import org.junit.Ignore; import org.junit.Test; import com.amd.aparapi.Kernel.EXECUTION_MODE; import com.github.neuralnetworks.architecture.NeuralNetworkImpl; import com.github.neuralnetworks.architecture.types.NNFactory; im...
44.630058
262
0.778267
814f8cf4400ed612e4ae93a7cb23a942df965a52
188
package org.nightvoyager.core.ext; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) public @interface NVPlugin { }
20.888889
44
0.824468
af9837070369b542e3db98af0d44e1c9980b079f
22,852
package us.getfluxed.controlsearch.client.gui; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.*; import net.minecraft.client.resources.I18n; import net.minecraft.client.settings.*; import net.minecraftforge.client.settings.KeyModifier; import net.minecraftforge.fml.client.config.GuiCheckBox; im...
44.807843
227
0.574392
c423ab9f11c6264881e185fa12d1e9e463ed3aad
4,642
/* Kruskal.java */ package com.xqbase.java.graphalg; import com.xqbase.java.dict.HashTable; import com.xqbase.java.graph.Neighbors; import com.xqbase.java.graph.WUGraph; import com.xqbase.java.queue.SortedListPriorityQueue; import com.xqbase.java.set.DisjointSets; import java.util.Comparator; /** * The Kruskal cl...
36.265625
129
0.575399
31be3f40a1560bd5e2e740939bd1622734cfc838
10,263
package run.halo.app.config; import static run.halo.app.model.support.HaloConst.FILE_SEPARATOR; import static run.halo.app.utils.HaloUtils.URL_SEPARATOR; import static run.halo.app.utils.HaloUtils.ensureBoth; import static run.halo.app.utils.HaloUtils.ensureSuffix; import com.fasterxml.jackson.databind.ObjectMapper; ...
44.04721
100
0.746273
52c75cbf69cf64744c214065c6c26d9a201972e0
1,353
package com.acme.test.vlingo.infrastructure.persistence; import com.acme.test.vlingo.model.project.ProjectRenamed; import io.vlingo.common.serialization.JsonSerialization; import io.vlingo.symbio.BaseEntry.TextEntry; import io.vlingo.symbio.EntryAdapter; import io.vlingo.symbio.Metadata; public final class ProjectRe...
38.657143
118
0.791574
bf3385347e5b435abcca319a2779095d07a798a8
1,666
package com.grandata.www.grandc.domain.user; import java.io.Serializable; public class UserBean implements Serializable { /** * */ private static final long serialVersionUID = 1L; private int userid; private String username; private String password; private int status; priva...
18.511111
94
0.620048
c17891063bc7181ffbed8e2a4c4a699130148d8a
1,147
package fr.bipi.tressence.console; import android.util.Log; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; public class ThrowErrorTreeTest { private static final Strin...
31
64
0.677419
31866cd8f95b6f993ef336ea599630a2cb75897d
6,321
package com.pms.controller; import java.io.IOException; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.sprin...
28.472973
94
0.710172
fc4dfeaaa540570f5dcbbdedd868c2b934e1d006
1,160
package chapter14; public class BinaryIndexTreeReverse { int[] BITree; BinaryIndexTreeReverse(int n) { BITree = new int[n]; } private void update(int n, int index, int val) { index = index + 1; while (index > 0) { BITree[index] += val; index -= index & ...
27.619048
98
0.50431
e88fc6f04d02a868f5c2f2a839aeb32186cf296a
5,642
package com.rideaustin.utils; import com.google.android.gms.maps.model.LatLng; import com.rideaustin.App; import com.rideaustin.api.config.GlobalConfig; import com.rideaustin.api.model.Boundary; import com.rideaustin.api.model.CarTypeConfiguration; import com.rideaustin.api.model.driver.RequestedCarType; import com.ri...
48.637931
136
0.556363
3dfbdf669fa93521b1e29ab42ff53dfc835268a1
1,023
//,temp,NameNodeRpcServer.java,882,906,temp,NameNodeRpcServer.java,835,862 //,3 public class xxx { @Override // ClientProtocol public void rename2(String src, String dst, Options.Rename... options) throws IOException { checkNNStartup(); if(stateChangeLog.isDebugEnabled()) { stateChangeLog.debug(...
34.1
77
0.662757
799d76ea8dcd3662c48eb37be3323bb9eb3ac80d
1,089
/* * Copyright © 2020 LambdAurora <aurora42lambda@gmail.com> * * This file is part of NetheriteShulker. * * Licensed under the MIT license. For more information, * see the LICENSE file. */ package me.lambdaurora.netherite_shulker.client.render.block.entity; import net.minecraft.block.entity.ShulkerBoxBlockEnti...
36.3
162
0.81359
edd6e521f148375281c7269559ac532a6059492b
679
package com.pchudzik.springmock.mockito.configuration.matchers; import org.mockito.ArgumentMatcher; import org.mockito.internal.matchers.VarargMatcher; import java.util.HashSet; import java.util.Set; import static java.util.Arrays.asList; public class PresentInAnyOrder extends ArgumentMatcher<Class[]> imp...
28.291667
91
0.739323
f1dc2ddf1115b49ae378b3458895763eac04d313
2,461
package rover; import plateau.Coordinates; import plateau.Plateau; public class Rover { private Coordinates coordinates; private Orientation orientation; private Plateau plateau; private Rover(Coordinates coordinates, Orientation orientation, Plateau plateau) throws Exception { if(plateau != null) { if(plat...
22.171171
119
0.715156
c84e79b1379ae493c63134303a702aa41182a7a5
2,491
/* * Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. */ package org.mystwebservices.queues.populators; import static org.mockito.BDDMockito.given; import static org.mockito.Mockito.mock; import de.hybris.bootstrap.annotations.UnitTest; import de.hybris.platform.commerceservices.util.Conv...
31.935897
137
0.818145
3505feca51a5d94ef979ed26dfae19d8fe3b9e5f
446
package stx.libjava.tests.vm; import static org.junit.Assert.*; import org.junit.Test; @stx.libjava.annotation.Package("stx:libjava/tests") public class DREM { public double one = 1.0d; @Test public void test_01() { // Have to do it this way because compiler folds constant // arithmetic...
22.3
65
0.623318
e229aad43f96872fd9dd291e967ffc326e1347d0
1,814
package com.qiuxs.cuteframework.view.controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; import com.qiuxs.cutef...
32.392857
102
0.7828