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 |
|---|---|---|---|---|---|
a34efc42bf116c0fbe608f35a4a1427ea7cc64c4 | 25,885 | package com.mapsindoors.stdapp.ui.direction;
import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annot... | 41.952998 | 288 | 0.6661 |
bf3fc8eb690fad57e955976017ecbd84f168d8f4 | 4,946 | package com.umiwi.ui.adapter.updateadapter;
import android.support.v4.app.FragmentActivity;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.umiwi.ui.R;
import com.umiwi.ui.beans.updatebeans.RecentPlay... | 39.568 | 127 | 0.663567 |
4ddac7ec8359b491915162d522014aecab9359af | 1,415 | package edu.isu.umls.database;
import java.sql.Connection;
import java.sql.SQLException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import edu.isu.umls.utils.LoggerUtil;
/**
*
* ... | 25.267857 | 91 | 0.749117 |
e3983d559c279c01720d7ff5101d7997e4accc84 | 492 | package org.apache.spark.sql.catalyst.expressions;
public class ExtractIntervalHours$ extends scala.runtime.AbstractFunction1<org.apache.spark.sql.catalyst.expressions.Expression, org.apache.spark.sql.catalyst.expressions.ExtractIntervalHours> implements scala.Serializable {
/**
* Static reference to the singleto... | 54.666667 | 225 | 0.792683 |
64c9241f84487103a25c38c905bd920838d2fec6 | 906 | package com.palmtrww69.firstplugin.itemevents;
import com.palmtrww69.firstplugin.items.ItemManager;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.player.PlayerInteractEvent;
public class WandEvent ... | 26.647059 | 109 | 0.651214 |
47dfd3a8aa666b9084fc89fb117d5484f3c9d22f | 1,123 | package org.api.Controller;
import org.api.Entity.Student;
import org.api.Services.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bi... | 34.030303 | 68 | 0.765806 |
0b779d465e84a8bff3df521d7cac158ecc8b1ae6 | 15,540 | /*
* Copyright 2013-2022 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 a... | 47.378049 | 116 | 0.729794 |
a0f2ed93cc3e884239e1de8ed31239ed59d2e56e | 938 | package com.jikezhiji.domain;
import org.springframework.validation.beanvalidation.CustomValidatorBean;
import javax.validation.Configuration;
import javax.validation.Validation;
import javax.validation.spi.ValidationProvider;
/**
* Created by E355 on 2016/8/31.
*/
public class AggregateRootValidator extends Custo... | 29.3125 | 95 | 0.745203 |
f944bf1a4d6fa83d0b88bd5677ee30d1872f4800 | 913 | package com.pipai.wf.util;
import java.util.ArrayList;
public enum Direction {
N(true), S(true), E(true), W(true), NW(false), NE(false), SW(false), SE(false);
private final boolean cardinal;
Direction(boolean isCardinal) {
this.cardinal = isCardinal;
}
public boolean isCardinal() {
return ca... | 19.425532 | 103 | 0.630887 |
66aaa81c4956efe22a5884bcd26c897c931c6e03 | 2,595 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/identitytoolkit/v2/account_management_service.proto
package com.google.cloud.identitytoolkit.v2;
public interface StartMfaEnrollmentRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.cloud.identitytoolki... | 32.037037 | 114 | 0.702505 |
429d7710fcea1297b5a644525339f6d0ab286231 | 10,249 | package com.getphone_contacts;
import android.app.AlertDialog;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view... | 36.734767 | 124 | 0.587277 |
ab766ddb1c29b74bfe623eb585c8899090ceea1b | 6,654 | package com.nexenio.bleindoorpositioningdemo;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import androidx.annotation.NonNull;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
impo... | 35.393617 | 121 | 0.654794 |
676137cb1d02a13d55e10be224ef91dbe11b0fd1 | 2,579 | package org.apereo.cas.util.junit;
import lombok.SneakyThrows;
import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.InitializationError;
import org.junit.runners.model.Statement;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/**
* This is {@link ConditionalSpringRu... | 37.926471 | 110 | 0.691741 |
1f77dfb6b9d823b3290f027b0f4a86a704733f67 | 177 | import java.math.BigInteger;
interface BinaryScore {
static BigInteger score(BigInteger n) {
return BigInteger.ZERO.setBit(n.bitLength()).subtract(BigInteger.ONE);
}
}
| 22.125 | 74 | 0.751412 |
4e573459318edbd908779634f1f333091272284c | 1,202 | package Done;
public class MyPoint {
private int x = 0;
private int y = 0;
public MyPoint() {
}
public MyPoint(int x, int y) {
this.x = x;
this.y = y;
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public int ge... | 19.079365 | 44 | 0.478369 |
e35432eb093bc0645bb6f68f38fc23042a081c6a | 5,288 | /*******************************************************************************
* Copyright 2015 MobileMan GmbH
* www.mobileman.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
* ... | 30.923977 | 110 | 0.705938 |
a678b160915067c1be964823e6c44d029dbed1e1 | 1,754 | /*
* Copyright 2003-2017 JetBrains s.r.o.
*
* 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... | 29.233333 | 96 | 0.756556 |
a4239d3096ed29c0b7bddeeaaa1ba5e995d18083 | 144 | public class EntryPoint {
EntryPoint() {
new Frame();
}
public static void main(String[] args) {
new EntryPoint();
}
}
| 12 | 42 | 0.569444 |
7c047c3307fad1ced91235d289a740c8d183e445 | 1,058 | package mcjty.rftoolsdim.modules.workbench.network;
import mcjty.rftoolsdim.modules.workbench.client.GuiWorkbench;
import net.minecraft.network.PacketBuffer;
import net.minecraftforge.fml.network.NetworkEvent;
import java.util.function.Supplier;
public class PacketPatternToClient {
private final String[] patter... | 26.45 | 65 | 0.640832 |
0df8628483d4fbf97c8bd768d8e182d1c52b23a4 | 429 | package com.nilcaream.atto.example.case013;
import com.nilcaream.atto.example.case008.SomePrototype;
import javax.inject.Inject;
public class InnerClassImplementationHolder {
@Inject
private SomePrototype regularPrototype;
public final class InnerClassImplementation implements InnerClassInterface {
... | 22.578947 | 80 | 0.755245 |
31cd184ddba82698b082a26540c135feee2c98f0 | 431,450 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package android.support.v7.appcompat;
public final class R {
public static final class anim {
public static final int abc_fad... | 61.390154 | 192 | 0.672335 |
6d24a8eecc55ebdeab9fc1fec2bc368fcb7d0706 | 6,170 | package com.fufu.ecommerce.service.impl;
import com.fufu.ecommerce.delivery.DeliveryCostService;
import com.fufu.ecommerce.delivery.impl.DeliveryCostServiceImpl;
import com.fufu.ecommerce.domain.Category;
import com.fufu.ecommerce.domain.Product;
import com.fufu.ecommerce.domain.discount.Campaign;
import com.fufu.ecom... | 33.172043 | 101 | 0.723501 |
76788e8bf001b6d67a1f22adfa27b08ebf0cb099 | 1,720 | /*
Copyright (c) 2012 LinkedIn Corp.
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... | 29.152542 | 83 | 0.738372 |
361db9855e4fa4e6b9a9152a28cf02206a220c06 | 628 | package cn.mirrorming.hello.spring.cloud.alibaba.provider.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
/**
*... | 29.904762 | 76 | 0.745223 |
eacfaaf0bb89c2c851621af2f1b94cdfe8054a29 | 15,775 | /*
* BSD 3-Clause License
*
* Copyright (c) 2021, CGATechnologies
* 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. Redistributions of source code must retain the above copyright not... | 39.735516 | 157 | 0.691347 |
81685716ffb32715bb3249bc72a47ed245f31aac | 386 | package org.jruby.compiler;
public interface JITCompilerMBean {
public long getSuccessCount();
public long getCompileCount();
public long getFailCount();
public long getAbandonCount();
public long getCompileTime();
public long getCodeSize();
public long getAverageCodeSize();
public long... | 27.571429 | 40 | 0.733161 |
639cd14e7cb6614d9e0a7b237414a762364eea68 | 2,422 | package com.spit.matrix15;
public class EventData {
private String id;
private String name;
private String desc;
private String email;
private String contact1;
private String contact2;
private String fee;
private String venue;
private String eventhightlight1;
private String even... | 24.714286 | 62 | 0.626755 |
bcf6c532b4620ddf9fc56b6147315b7969d68bf4 | 2,112 | package com.ociweb.protocoltest.data;
import java.io.IOException;
import com.ociweb.pronghorn.util.Appendables;
public class SequenceExampleASample {
int id;
long time;
int measurement;
int action;
public static void setAll(SequenceExampleASample that,int id, long time, int measurem... | 24.275862 | 107 | 0.568655 |
7f7dfe1b76f5dfac8d6dee3c472b7a57e721be3d | 4,111 | /*
MIT License
Copyright (c) 2021 Utkarsh Priyam
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, modify, merge, publish,... | 36.380531 | 121 | 0.685478 |
5e4867f4df05755f091e16dda5fbcf6a8335cd25 | 3,077 | package com.koros.demoapp.config;
import lombok.RequiredArgsConstructor;
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 org.sp... | 42.150685 | 107 | 0.768931 |
0cb0c5a12c89eb40ba3bb4311e556507dc34092d | 6,187 | /*
* Copyright (c) 2018 Dafiti Group
*
* 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, modify, merge, publi... | 35.557471 | 126 | 0.643123 |
f7d2408e591324d6181b06e19322ff4b49f1a28f | 2,056 | package com.example.shequtest.fragment;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.... | 33.16129 | 104 | 0.666342 |
d3d6c762700c6db15ee49524f0e1ba045c722aa7 | 1,190 | /*
* Copyright (c) 2015-2017, David A. Bauer. 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
*
* Unle... | 23.8 | 76 | 0.67563 |
b8113b9b473520c8918317c886e343ce9486a0ef | 3,236 | package org.valuereporter.client.http;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.valuereporter.Observation;
import org.valuereporter.ObservedMethod;
import org.valuereporter.client.ObservationDistributer;
import org.valuereporter.http.CommandSender;
import java.util.ArrayList;
import java.ut... | 35.173913 | 148 | 0.699938 |
8158388232f55f9a452bca65a38ee1601f106775 | 5,391 | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 45.686441 | 117 | 0.761454 |
fbc3d4b30a49075c86cee5a50067beaea7eb9fdc | 2,638 | package com.ngdesk.workflow.channels.chat;
import java.util.Date;
import java.util.List;
import org.springframework.data.mongodb.core.mapping.Field;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ngdesk.workflow.dao.Workflow;
public class ChatPrompt {
@JsonProperty("NAME")
@Field("NAME")
priva... | 20.771654 | 109 | 0.756634 |
0d900622eadae05842c411af787a1257377501d0 | 1,937 | package cn.byhieg.designpatterntutorial.builder;
/**
* Created by shiqifeng on 2017/5/7.
* Mail byhieg@gmail.com
*/
public class SimpleDialog {
public SimpleDialogController controller;
public SimpleDialog(){
controller = new SimpleDialogController();
}
public void setIcon(String icon) {... | 24.518987 | 161 | 0.607641 |
bbd2fa87b7d4cf9b663f6860720579edb072d562 | 2,858 | package section_7_oop_part_2_composition_encapsulation_polymorphism.polymorphism_challenge;
class Car {
private boolean engine;
private int cylinders;
private String name;
private int wheels;
public Car(int cylinders, String name) {
this.cylinders = cylinders;
this.name = name;
... | 23.048387 | 91 | 0.595871 |
481589828f80b6fd9217129bf432a383dc834229 | 1,350 | package com.ttaxus.thermidor;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.text.Html;
import android.text.util.Linkify;
import android.graphics.... | 32.142857 | 73 | 0.746667 |
8a1eeadb57ce12359d68b65de3df2e1e1a2cf42a | 9,758 | package net.smackem.jobotwar.gui.graphics;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.effect.GaussianBlur;
import javafx.scene.image.Image;
import javafx.scene.paint.*;
import javafx.scene.shape.ArcType;
import net.smackem.jobotwar.runtime.Vector;
import net.smackem.jobotwar.runtime.*;
import org.... | 35.100719 | 101 | 0.565895 |
fe9d2bafe9588569eae4fac215cc63b11e0872eb | 2,609 | package zyxhj.kkqt.domain;
import java.util.Date;
import zyxhj.utils.api.Controller.ENUMVALUE;
import zyxhj.utils.data.rds.RDSAnnEntity;
import zyxhj.utils.data.rds.RDSAnnField;
import zyxhj.utils.data.rds.RDSAnnID;
/**
* 接单列表
*/
@RDSAnnEntity(alias = "tb_task_list")
public class TaskList {
public... | 16.832258 | 50 | 0.597164 |
1175c177458dd8c71e783a2cc22d7bd4e1fbc20e | 2,458 | /*
* Copyright (C) by Courtanet, All Rights Reserved.
*/
package io.doov.core.dsl.template;
import java.util.function.Supplier;
import io.doov.core.dsl.field.types.*;
public class ParameterTypes {
public static Supplier<TemplateParam<BooleanFieldInfo>> $Boolean = () ->
new TemplateParam<>(BooleanF... | 46.377358 | 135 | 0.689585 |
423a13c9d47cd3717672248ed37a54eb4bdc1112 | 2,349 | package org.egov.bookings.controller;
import java.util.List;
import org.egov.bookings.common.model.ResponseModel;
import org.egov.bookings.contract.BookingApprover;
import org.egov.bookings.contract.OsbmApproverRequest;
import org.egov.bookings.model.BookingsModel;
import org.egov.bookings.model.OsbmApproverModel;
im... | 28.301205 | 100 | 0.791826 |
6a957addd35c05842c1079d19a9090ff0b0bfa62 | 1,483 | package org.apache.spark.sql.catalyst.expressions;
public class Hex extends org.apache.spark.sql.catalyst.expressions.UnaryExpression implements org.apache.spark.sql.catalyst.expressions.ImplicitCastInputTypes, scala.Product, scala.Serializable {
static public byte[] hexDigits () { throw new RuntimeException(); }
... | 92.6875 | 250 | 0.766689 |
0707b49ae569d41ee63f43909b973fe20f926632 | 6,463 | // Template Source: BaseEntityCollectionRequest.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// --------------------------... | 37.143678 | 226 | 0.70803 |
84cf1084b70cfd4e9e48d293b4aeca0e04c3ea9b | 4,027 | package kvstore;
public class KVConstants {
public static final String GET_REQ = "getreq";
public static final String PUT_REQ = "putreq";
public static final String DEL_REQ = "delreq";
public static final String RESP = "resp";
public static final String REGISTER = "register";
public sta... | 35.955357 | 80 | 0.675192 |
2137c7a6969ac86cd629dd73075fafc6dfb73865 | 2,272 | package com.growingio.android.sdk.circle;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.view.View;
import android.widget.FrameLayout.LayoutParams;
i... | 34.424242 | 117 | 0.681338 |
f34e58168a37eabf5a5a23bd692b779a6ea1b26d | 2,315 | package org.kawakicchi.dev.tools.util;
public class DevToolsUtil {
/**
* 文字列をキャメル文字へ変換する。
*
* @param string 文字列
* @return キャメル文字へ変換した文字列
*/
private static String toCamelCase(final String string) {
String result = null;
if (isNotNull(string)) {
boolean flg = false;
StringBuffer s =... | 21.635514 | 83 | 0.602592 |
1ef85c41c4234dd22531293a764ebf5e0f65db12 | 10,528 | package com.github.blutorange.primefaces.component.monacoeditor;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import javax.faces.component.behavior.ClientBehaviorHolder;
import javax.faces.component.html.HtmlInputTextarea;
import com.github.blutorange.primefaces.config.monacoed... | 33.422222 | 120 | 0.700038 |
73a39977bdd4e1ea1f010b0d0826a3ed861979f6 | 296 | package com.paoperez.contentservice;
class ContentMismatchException extends Exception {
private static final long serialVersionUID = 1L;
ContentMismatchException(String id, String idArg) {
super(String.format("Content with id %s does not match content argument %s.", id, idArg));
}
}
| 29.6 | 94 | 0.763514 |
bf876ee2e2dc53fd7bc3f0e1d2e5125cb53802bf | 14,032 | /*
* FindBugs - Find bugs in Java programs
* Copyright (C) 2003,2004 University of Maryland
*
* This library 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 2.1 of the License, o... | 38.549451 | 130 | 0.615165 |
603e83c1c072da4ccc98c71d197cb8f625e42d02 | 4,551 | package com.xuecheng.auth.controller;
import com.xuecheng.api.auth.AuthControllerApi;
import com.xuecheng.auth.service.AuthService;
import com.xuecheng.framework.domain.ucenter.ext.AuthToken;
import com.xuecheng.framework.domain.ucenter.request.LoginRequest;
import com.xuecheng.framework.domain.ucenter.response.AuthCo... | 35.007692 | 127 | 0.715008 |
6b805cafe826e7a66fd29cb47b0163df2e18f1bf | 1,074 | package com.unitec.kitbox.ui.map;
import com.google.firebase.Timestamp;
import java.util.Map;
public class Item implements Cloneable{
private Long Count;
private Timestamp ExpireDate;
private String Name;
public Item (Map<String, Object> hm) {
this.Count = (Long)hm.get("Count");
thi... | 23.347826 | 60 | 0.583799 |
2faef8b8393e526c0e8b1a8647f18dc952c240bb | 3,517 | package com.uwetrottmann.trakt5.services;
import com.uwetrottmann.trakt5.BaseTestCase;
import com.uwetrottmann.trakt5.TestData;
import com.uwetrottmann.trakt5.entities.Episode;
import com.uwetrottmann.trakt5.entities.Ratings;
import com.uwetrottmann.trakt5.entities.Season;
import com.uwetrottmann.trakt5.entities.Stats... | 39.965909 | 115 | 0.647427 |
a0a2989d9b47c266dbeba6066c6ddc04ce907203 | 2,441 | /**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Hoteia, 2012-2014
* http://www.hoteia.com - http://twitter.com/hoteia - con... | 36.984848 | 94 | 0.661614 |
10c6cceb4c96fedfc25994bbe185038e6f5001d7 | 1,137 | package problem2;
import java.util.Objects;
/**
* Represents a name. Includes the first name and the last name.
*/
public class Name {
private String firstName;
private String lastName;
/**
* Constructor for the Name class
* @param firstName The first name of the name
* @param lastName The last nam... | 18.95 | 88 | 0.626209 |
79df3a4af8b97c27738c9f505bb9e170f7008a52 | 3,695 | // Copyright (c) 2021, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.apimodel;
import static com.android.tools.r8.apimodel.ApiModelingTestHelper.... | 37.704082 | 91 | 0.733694 |
3d03bb9a37ea6ad454a1b159b2b92ba9d54ea649 | 1,393 | package no.nav.kontantstotte.api.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet... | 32.395349 | 132 | 0.758076 |
4de2dc2339563f5dc8a9f7c266f052a7039af577 | 4,340 | package io.github.seccoding.excel.option;
import java.util.ArrayList;
import java.util.List;
import org.apache.poi.ss.util.CellReference;
import io.github.seccoding.excel.annotations.ExcelSheet;
import io.github.seccoding.excel.annotations.Field;
/**
* Excel(xls, xlsx) 파일을 읽을 때, 필요한 옵션을 정의한다.
* 여기에 정의된 옵션들을 사용해... | 19.908257 | 78 | 0.649539 |
d0f937e291f08efa684838883d1a4935cfaa9a9e | 1,562 | package agilesites;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Properties;
public class ConfigureSatellite {
URL url;
File satellitePrp;
... | 25.606557 | 70 | 0.701665 |
79de89b80d6139ed4770f5b7c7b629b9bdc067ce | 8,074 | package com.mauriciotogneri.crazytunnel.client.engine;
import java.net.InetAddress;
import java.util.List;
import android.content.Context;
import android.os.Vibrator;
import android.util.SparseArray;
import com.mauriciotogneri.crazytunnel.client.R;
import com.mauriciotogneri.crazytunnel.client.connection.Clien... | 27.09396 | 165 | 0.699529 |
28d382510ba3188660a69b9f1f5db9050a15bf28 | 6,416 | package com.yandex.metrica.impl.ob;
import android.text.TextUtils;
import com.yandex.metrica.CounterConfiguration;
import com.yandex.metrica.impl.a;
import java.util.LinkedList;
import java.util.List;
public class s {
/* renamed from: a reason: collision with root package name */
private final t f933a;
... | 28.140351 | 108 | 0.457138 |
57f1983727a6ad45967e092a0ffa7aa7bff64fa5 | 693 | package disl_metrics_fetcher.helpers;
import ch.usi.dag.disl.marker.AbstractDWRMarker;
import org.objectweb.asm.tree.*;
import java.util.LinkedList;
import java.util.List;
public class VarInsnMarker extends AbstractDWRMarker {
public List<MarkedRegion> markWithDefaultWeavingReg(MethodNode method) {
List... | 28.875 | 76 | 0.695527 |
be985d4ceb52df3f429d24283922f556adedd7f2 | 350 | package com.information.center.courseservice.model.request;
import lombok.*;
import org.hibernate.validator.constraints.Length;
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TopicRequest {
@Length(min = 3, max = 255)
private String name;
private String externalId;
priva... | 19.444444 | 59 | 0.771429 |
8cd50742fea9daf5ec32c20335faa57e5959f602 | 980 | package com.hazelcast.management;
import com.eclipsesource.json.JsonObject;
import com.hazelcast.spi.ProxyService;
import static com.hazelcast.util.JsonUtil.getInt;
/**
* A Serializable DTO for {@link com.hazelcast.jmx.ProxyServiceMBean}.
*/
public class SerializableProxyServiceBean implements JsonSerializable {
... | 23.333333 | 71 | 0.692857 |
4cdbb5e7038475433b1fec28a1eb26ef167db4cf | 698 | package com.wmb.threads.pc;
import java.util.concurrent.BlockingQueue;
/**
* Created by robertmurray on 8/16/17.
*/
public class Consumer implements Runnable {
private BlockingQueue<Message> queue;
public Consumer(BlockingQueue<Message> q) {
this.queue = q;
}
@Override
public void ru... | 21.8125 | 63 | 0.563037 |
3d31cd8b82f318556d90c8720c009c359248479e | 868 | package leetcode.review;
import java.util.Stack;
/**
* @author: wyj
* @date: 2021/06/08
*/
public class R155_5 {
// 执行耗时:7 ms,击败了81.53% 的Java用户
// 内存消耗:40.1 MB,击败了65.83% 的Java用户
Stack<Integer> stack=new Stack<>();
Stack<Integer> minStack=new Stack<>();
public void push(int val) {
i... | 20.186047 | 53 | 0.549539 |
dc7fa497b0d7e92061882d3d2047c014837486e2 | 735 | package com.rbkmoney.anapi.v2.config.properties;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.NotE... | 21 | 75 | 0.787755 |
4a8f46525eccfbe77198d6fcdf8840d80a67bbcc | 647 | package cu.kareldv.apklis.api2.internal;
import okhttp3.Headers;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
public final class FormDataPart{
private String header, value;
public FormDataPart(String header, String value) {
this.header = header;
this.val... | 23.107143 | 81 | 0.676971 |
8c0dd79b1ff572e42ac8abe88d2b4fbbaf4f2186 | 4,088 | package io.onedev.server.util.match;
import static io.onedev.server.util.match.WildcardUtils.*;
import static org.junit.Assert.*;
import org.junit.Test;
public class WildcardUtilsTest {
@Test
public void shouldMatchPath() {
assertTrue(matchPath("**//*.java", "com/example/Test.java"));
assertFalse(matchPath("*... | 52.410256 | 119 | 0.667319 |
7b57fa25af4ce622e337af5b5ce1d0ec6cc05a05 | 1,429 | package myproject.common;
import base.BaseScenario;
import cucumber.api.java.en.When;
import org.openqa.selenium.*;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import cucumber.api.java.en.Given;
public class CommonStepDef extends BaseScenario
{
/**
... | 34.853659 | 123 | 0.706088 |
8fd57c11f16a3eede377139451d1fbbd9fcad53d | 1,987 | package org.example.util;
import java.io.File;
import org.springframework.scheduling.annotation.Scheduled;
import com.marklogic.client.DatabaseClient;
import com.marklogic.client.helper.LoggingObject;
import com.marklogic.client.modulesloader.ModulesFinder;
import com.marklogic.client.modulesloader.impl.DefaultModul... | 36.796296 | 115 | 0.757423 |
270e9c3db13164c27ee063957bf8bb27af9f4d62 | 328 | package com.chain.test;
import org.junit.Test;
import com.chain.exception.ChainUtilsException;
import com.chain.utils.others.PinyinUtils;
public class PinyinUtilsTest {
@Test
public void test() throws ChainUtilsException {
String s = "A我#是123中 国人1";
String p = PinyinUtils.getPinyin(s);
System.out.println(p)... | 18.222222 | 48 | 0.75 |
7a34d58965e0d40f6ae4e88fb80bf40d2c8ab85e | 269 | package seedu.address.logic.parser.load;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
public class RemoveCommandParserTest {
@Test
public void parse_successful_delete() {
assertTrue(true);
}
}
| 15.823529 | 58 | 0.732342 |
1b4de810dec3153973f23855bf2ae19ecd64d321 | 1,018 | package ru.majordomo.hms.personmgr.model.promocode;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.HashMa... | 26.789474 | 92 | 0.779961 |
932b7bcb3eac5d66e2d1b50de8f7c1da5569fb52 | 351 | package ru.job4j.condition;
public class Point {
private int x;
private int y;
public Point(int x, int y){
this.x=x;
this.y=y;
}
public int getX(){
return this.x;
}
public int getY(){
return this.y;
}
public boolean is(int a, int b){
retu... | 14.04 | 36 | 0.51567 |
3c4fa10647ef97b782c5ab49d200eb29f74404d4 | 1,080 | package com.android.batdemir.library.ui.ui_default.fragments.home;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.life... | 36 | 109 | 0.787037 |
4fb98fc9a00bec130ba6c8dd66704ce559f6376a | 1,348 | package com.why.dpr.common;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class TypeUtils {
/**
* ip address verification
*
* @param ip
* @return true if is ip address
*/
public static boolean isIpFormat(String ip) ... | 27.510204 | 125 | 0.589763 |
75bef08c2d632f22a40374b482524f25ae47f87a | 2,264 | /*
* Copyright 2015-present Facebook, 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... | 31.013699 | 98 | 0.734541 |
bd8f502f8e3b495b009b4f4cc481370c7fdc8aac | 6,992 | package de.fraunhofer.iais.eis;
import java.net.URI;
import java.util.List;
import javax.xml.datatype.XMLGregorianCalendar;
import de.fraunhofer.iais.eis.util.*;
public class ConnectorUnavailableMessageBuilder implements Builder<ConnectorUnavailableMessage> {
private ConnectorUnavailableMessageImpl connectorU... | 36.416667 | 104 | 0.726545 |
84f954491ab33d3a2f869df75882495aea759188 | 176 | package cn.icedsoul.userservice.utils;
public class CONSTANT {
//JWT相关
public static int EXPIRE_TIME = 60;
// public static String SECRET_KEY = "authJWT";
}
| 22 | 51 | 0.681818 |
4dee8bdd4a05e1489fb0336d88eeb18e3be9814b | 1,542 | package optfine;
public class CacheLocalByte {
private int maxX = 18;
private int maxY = 128;
private int maxZ = 18;
private int offsetX = 0;
private int offsetY = 0;
private int offsetZ = 0;
private byte[][][] cache = (byte[][][]) null;
private byte[] lastZs = null;
private int lastDz = 0;
public CacheLoca... | 24.870968 | 84 | 0.669261 |
0207e956038976f666df51c1fa50ee29aa348578 | 7,159 | package org.vertexium.cypher;
import java.util.*;
import java.util.function.*;
import java.util.stream.*;
public class VertexiumCypherResult implements Stream<CypherResultRow> {
private final Stream<CypherResultRow> stream;
private final LinkedHashSet<String> columnNames;
public VertexiumCypherResult(Str... | 26.712687 | 141 | 0.652326 |
3c5a5d10d3778cfffa7db9100666d3a4b139c17f | 172 | package com.wilshion.headlinenews.helper.iamge;
/**
* Created by Wilshion on 2017/8/8 18:35.
* [description : ]
* [version : 1.0]
*/
public class ImageLoader {
}
| 15.636364 | 47 | 0.651163 |
c34cb406c820cbdb178f1bcaa1829a156b56a471 | 1,431 | package com.example.hujin.graffitidemo.util;
import android.content.Context;
import android.os.Environment;
import android.text.TextUtils;
import java.io.File;
/**
* @Package com.example.hujin.graffitidemo.util
* @Description: 文件工具类
* @Author hujin
* @Date 2017/6/2 上午11:02
* @Email xiaoqingxu0502@gamil.com
* @... | 32.522727 | 97 | 0.668064 |
c985ad9a42df9955ad674afc61ff6055211444f4 | 714 | package io.github.jiashunx.masker.rest.framework.model;
import io.github.jiashunx.masker.rest.framework.servlet.MRestServlet;
import java.util.Objects;
/**
* @author jiashunx
*/
public class UrlMappingServlet {
private final UrlPatternModel urlPatternModel;
private final MRestServlet restServlet;
pub... | 25.5 | 89 | 0.747899 |
e2f8f35e3166390d69f1795e473108850d6a76b5 | 1,741 | package com.woshidaniu.pwdmgr.service.test;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit... | 25.602941 | 117 | 0.756462 |
1521b1944860315b85495bf37060680a003492da | 822 | package no.nav.veilarbvedtakinfo.test;
import lombok.extern.slf4j.Slf4j;
import org.flywaydb.core.Flyway;
import org.h2.jdbcx.JdbcDataSource;
import org.springframework.jdbc.core.JdbcTemplate;
@Slf4j
public class LocalH2Database {
private static JdbcTemplate db;
public static JdbcTemplate getDb() {
... | 26.516129 | 125 | 0.676399 |
77088fb8a40cb430ba179a063ed4003e82521e2c | 1,939 | package com.jtricks;
import java.rmi.RemoteException;
import java.util.Collection;
import org.ofbiz.core.entity.GenericValue;
import com.atlassian.jira.project.ProjectManager;
import com.atlassian.jira.rpc.auth.TokenManager;
import com.atlassian.jira.rpc.exception.RemoteAuthenticationException;
import com.... | 33.431034 | 97 | 0.758638 |
2f7b59a70fe6de5cbf347e28bfc31fffd3d11a95 | 9,988 | /**
* Copyright 2019 The Google Research 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 applicable... | 38.268199 | 98 | 0.661093 |
fcb6c64db3173862c2f7ca0a4629b1ff4c97059c | 2,161 | /**
* Copyright 2021 Tianmian Tech. 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 ... | 25.423529 | 83 | 0.661731 |
4226fd4d9bc0f115257607bab05842f0b344e01b | 1,117 | package party.threebody.skean.jdbc.util;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import party.threebody.skean.jdbc.SkeanSqlSecurityException;
import party.threebody.skean.jdbc.util.SqlSecurityUtils;
public class SqlSecurityUtilsTest {
@Rule
public ExpectedExcept... | 30.189189 | 63 | 0.745748 |
2a9e432326288f8974be405f978430747b0359b6 | 921 | package org.kokzoz.dluid.reducer;
import lombok.AllArgsConstructor;
import org.kokzoz.dluid.content.TabModelTestController;
import org.kokzoz.dluid.domain.action.Action;
import org.kokzoz.dluid.domain.action.ActionType;
import org.kokzoz.dluid.domain.action.Reducer;
import java.util.Observable;
@AllArgsConstructor
p... | 31.758621 | 75 | 0.751357 |
0d117d8e9603924a3fff45bea9b62ce3cca6fdbe | 4,542 | package io.github.nullptrx.pangleflutter.v2;
import android.view.Gravity;
import android.widget.FrameLayout;
import com.bytedance.msdk.adapter.util.UIUtils;
import com.bytedance.msdk.api.AdSlot;
import com.bytedance.msdk.api.TTAdConstant;
import com.bytedance.msdk.api.TTVideoOption;
import java.util.HashMap;
import ... | 40.553571 | 111 | 0.632321 |
f3fee78aba2b2379fd6797bc392fed8aa78587fb | 2,227 | package rit.eyeTracking;
import java.io.Externalizable;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public abstract class AbstractEvent implements Event, Serializable {
private static final long serialVersionUID = -671937536... | 22.049505 | 74 | 0.691064 |
8de8a0b2c2df958f3962e3ea1faa8f0f71f0d44d | 4,266 | /*
* Copyright (C) 2015-2017 RWTH Aachen University - Information Systems - Intelligent Distributed Systems Group.
* 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... | 40.245283 | 112 | 0.64346 |
86b68afa1241f4768ca5c14a683181ee7483f47e | 634 | /*
* Author: Andrei Vasiliu <andrei.vasiliu@intel.com>
* Copyright (c) 2015 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
public cla... | 23.481481 | 75 | 0.654574 |
d34433c03aeadab8706c0a8d1274918d07282abf | 1,238 | package pt.samp.scrumCards;
import android.os.Bundle;
import android.view.MenuItem;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.preference.PreferenceFragmentCompat;
public class PreferencesActivity extends AppCompatActivity {
@Override
protected ... | 30.95 | 114 | 0.702746 |
262f67b0d9a9653e17861a0d60d2d11cf6465c16 | 1,920 | /*
* Copyright © 2014 Cask Data, 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 agreed t... | 36.226415 | 88 | 0.754688 |
36ba4ff19e47f9237064a3e6cbf8074829e9ecd2 | 3,158 | /*
* Copyright (c) 2009-present, b3log.org
*
* 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... | 38.048193 | 184 | 0.692527 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.