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 |
|---|---|---|---|---|---|
ea599a6b5cc1211bde3137cc8b4f437f962228e1 | 776 | package com.rhymes.app.companyadmin.model;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@SuppressWarnings("serial")
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Admi... | 27.714286 | 59 | 0.740979 |
8fb257158137fbb3ca6c00d5c02f72c1d98ce7b3 | 606 | package org.hongxi.java.util.concurrent;
/**
* @author shenhongxi 2019/8/10
*
* @see InterruptedTest
*/
public class InterruptTest {
public static void main(String[] args) {
Thread t = new Thread(() -> {
try {
Thread.sleep(3000);
} catch (InterruptedException e)... | 25.25 | 80 | 0.549505 |
241d8b41e4bc725fc145dd4d1f3c68643e66524d | 2,138 | // Copyright (c) 2020 Mobanisto UG (haftungsbeschränkt)
//
// This file is part of covid-plz.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limi... | 32.892308 | 81 | 0.738073 |
3bf7a9611519f90fad15b7c2d322d6cc8a8cd870 | 12,504 | /*
* Copyright (C) 2013 Google Inc.
* Copyright (C) 2013 Square 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 requir... | 47.725191 | 100 | 0.59477 |
54fcfef1f7b9f94abce45930c7c5cfca1c966867 | 1,175 | package com.itgacl.magic4j.common.bean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
/**
* 分页参数
*
*/
@Data
@ApiModel("分... | 20.982143 | 62 | 0.63234 |
ff324577f5092591dc3e2baa1f2c274540dadba5 | 5,256 | package com.builtbroken.mc.test.grid;
import com.builtbroken.mc.api.tile.ITileModuleProvider;
import com.builtbroken.mc.testing.junit.AbstractTest;
import com.builtbroken.mc.testing.junit.VoltzTestRunner;
import net.minecraft.block.Block;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.uti... | 30.55814 | 127 | 0.590563 |
bc0a9cfd404d9f86f19d0a681778671794e48049 | 918 | package fr.pturpin.hackathon.iceandfire.strategy.comparator.train;
import fr.pturpin.hackathon.iceandfire.cell.GameCell;
import fr.pturpin.hackathon.iceandfire.command.TrainCommand;
import fr.pturpin.hackathon.iceandfire.game.GameRepository;
import fr.pturpin.hackathon.iceandfire.strategy.comparator.BeatableOpponentCo... | 34 | 95 | 0.786492 |
65f51ef8c7134bb0f09ef066f71d13dbc9bc8c6a | 319 | package com.github.bgalek.utils.devicedetect;
class KindleTablet implements Detector {
@Override
public boolean test(String userAgent) {
return userAgent.toLowerCase().contains("kindle");
}
@Override
public DefaultDevices getDevice() {
return DefaultDevices.TABLET_KINDLE;
}
}
| 22.785714 | 58 | 0.702194 |
144829e934a7497063e23e0b0083e9d5111cea2a | 359 | package com.skeqi.mes.service.yp.oa;
/**
* 加签
*
* @author yinp
* @data 2021年6月29日
*/
public interface CountersignService {
/**
* 加签提交
*
* @param listNo
* @param userId
* @param countersignUser
* @param dis
*/
public void sub(String listNo, Integer userId, String countersignUser,String signatureMe... | 16.318182 | 124 | 0.685237 |
c82a7d8f4f968c9bf9da133ce37e8c741303c3d3 | 2,040 | package ru.assisttech.sdk.network;
import android.text.TextUtils;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* HTTP request parameters include:
* - request method GET or POST
* - HTTP header fields (added with addProperty() method)
* - request data (payload)
*/
class HttpRequest {... | 25.185185 | 76 | 0.554902 |
82cc14bb80b22fafb98b4acab5fb24efedda2701 | 2,039 | package example.rxbus;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import com.zsp.util.R;
import com.zsp.utilone.rxbus.RxBus;
import com.zsp.utilone.rxbus.annotation.Subscribe;
import com.zsp.utilone.rxbus.annotation.Tag... | 29.550725 | 99 | 0.672388 |
3061b42cbc76b41b707d31709eee09d26425e165 | 1,978 | package com.shoufeng.threadlocal;
/**
* 线程局部 (thread-local) 变量
*
* @author shoufeng
*/
public class Demo {
ThreadLocal<String> threadLocal = new ThreadLocal<String>() {
/**
* 返回此线程局部变量的当前线程的“初始值”。线程第一次使用 get() 方法访问变量时将调用此方法,但如果线程之前调用了 set(T) 方法,则不会对该线程再调用 initialValue 方法。通常,此方法对每个线程最多调用一次,但如... | 31.396825 | 165 | 0.570273 |
5bfc4527c2c2fe40b78c44ec54d6b0ce3e227b37 | 3,434 | /*
* Copyright 2017 ~ 2025 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 req... | 33.019231 | 84 | 0.778684 |
b296552deedaf9f3f884cdd6005051733e9f7cca | 1,077 | /*
* Copyright (C) 2016 Frank Hossfeld <frank.hossfeld@googlemail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 33.65625 | 101 | 0.765088 |
16c0bb3e49ba0de03808c0527eb2fcd500ec65f2 | 3,404 | package object;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import org.opencv.core.Mat;
import org.opencv.core.MatOfPoint;
import org.opencv.core.MatOfPoint2f;
import org.opencv.highgui.HighGui;
import org.opencv.imgproc.Imgproc;
/**
*
* @author Pedro
*/
public class Component {
... | 30.123894 | 120 | 0.585194 |
a4c29e8a5c535dc82ba26294bf13991d89641f67 | 2,037 | /*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 36.375 | 81 | 0.725577 |
4e33e90281f8a89efcd9c7ced92be309553ec560 | 1,840 | /*
* Copyright 2021 ThoughtWorks, 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 agr... | 28.307692 | 90 | 0.705978 |
7142141a9661cee6618c1e0837658aa2ee065786 | 5,830 | package org.bouncycastle.openpgp.examples;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.security.Security;
import java.util.Iterator;
import org.bouncycastle.bcpg.ArmoredOutputStream... | 42.867647 | 229 | 0.704117 |
ba41ab4ed46e73524f523fb06ee6e35925bd404b | 599 | package com.pj.squashrestapp.repository;
import com.pj.squashrestapp.model.League;
import com.pj.squashrestapp.model.LeagueRole;
import com.pj.squashrestapp.model.RoleForLeague;
import java.util.List;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaReposito... | 33.277778 | 85 | 0.823038 |
cc7382e7154d9178e7226edd15a687e40698dbd4 | 9,916 | package de.ipvs.as.mbp.web.rest;
import de.ipvs.as.mbp.RestConfiguration;
import de.ipvs.as.mbp.constants.Constants;
import de.ipvs.as.mbp.domain.user.User;
import de.ipvs.as.mbp.domain.user.UserLoginData;
import de.ipvs.as.mbp.error.*;
import de.ipvs.as.mbp.repository.UserRepository;
import de.ipvs.as.mbp.repository.... | 54.483516 | 270 | 0.718334 |
68ac1be69162cde89bc7806badd46e0f435cb380 | 3,847 | package com.nextfaze.poweradapters;
import android.widget.TextView;
import com.nextfaze.poweradapters.binding.Binder;
import com.nextfaze.poweradapters.binding.Mapper;
import com.nextfaze.poweradapters.binding.MapperBuilder;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner... | 25.646667 | 83 | 0.571094 |
8b396ac2286841a0898896c8529293afccf48be2 | 336 | package com.polaris.common.utils;
/**
* @author CNPolaris
* @version 1.0
*/
public interface CallBack {
/**
* 回调执行方法
*/
void executor();
/**
* 本回调任务名称
* @return /
*/
default String getCallBackName() {
return Thread.currentThread().getId() + ":" + this.getClass().get... | 16 | 80 | 0.544643 |
3bb5f69fca27c5be2946d0778b25019627c551b5 | 5,217 | package singlePlayer;
import java.util.Map;
import java.awt.Font;
import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.JFrame;
import java.awt.EventQueue;
import javax.swing.JButton;
import java.awt.SystemColor;
import java.awt.event.ActionEvent;
import javax.swing.SwingConstants;
import java.awt.event... | 34.78 | 86 | 0.734713 |
8129b330d1a644bd9051c582f29a9c9eb37a89f0 | 5,229 | package org.infinispan.notifications.cachelistener;
import static org.infinispan.test.TestingUtil.k;
import static org.infinispan.test.TestingUtil.v;
import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.fail;
import java.lang.reflect.Method;
import javax.transaction.RollbackException... | 35.331081 | 111 | 0.711035 |
24a3b34bbf1632c02538433b4127e7879cb321bd | 802 | package com.atguigu.springcloud.controller;
import cn.hutool.core.util.StrUtil;
import com.oracle.tools.packager.Log;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.... | 30.846154 | 84 | 0.786783 |
2bdcad224d210411c414272c0e4519e586608682 | 5,932 | package com.github.k24.prefsovensample;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.v... | 34.488372 | 98 | 0.630984 |
29c37e65055c10314e5afe32ad9ea97cb539dbcc | 667 | package cz.kulicka.util;
import com.sun.jna.platform.win32.Kernel32;
import com.sun.jna.platform.win32.WinBase;
import org.springframework.stereotype.Component;
@Component
public class WindowsSetSystemTime {
public boolean SetLocalTime(int wYear, int wMonth, int wDay, int wHour, int wMinute, int wSecond) {
Kernel... | 29 | 100 | 0.751124 |
0a86b6aa12de7a038eeb32f51678625602596a34 | 1,046 | package com.example.entities;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Device {
@Id
private String deviceId;
private String deviceType;
private String deviceStatus;
private String bedId;
public Device(){}
public Device(String deviceId, String deviceTyp... | 21.791667 | 88 | 0.711281 |
ebcc942d2f21e6072a7dd380069de45b3dd5b4fc | 771 | //,temp,JmsConsumer.java,125,135,temp,SjmsProducer.java,216,232
//,3
public class xxx {
protected void testConnectionOnStartup() throws FailedToCreateConsumerException {
try {
LOG.debug("Testing JMS Connection on startup for destination: {}", getDestinationName());
Connection con = l... | 48.1875 | 113 | 0.679637 |
9626d82e32709c4e927191fa636fe7451fa11489 | 484 | package extrabiomes.core;
import java.util.Locale;
import extrabiomes.lib.Const;
public abstract class Version {
public static final String MOD_ID = Const.API_MOD_ID;
public static final String MOD_NAME = "Extrabiomes Core";
public static final String VERSION = "@VERSION@";
public static final String API_VE... | 30.25 | 84 | 0.766529 |
09544ab3f35ab62067b1b743056cf4f89091d021 | 1,198 | package com.github.zhgxun.leetcode.thread;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.Semaphore;
public class H2O {
private final Semaphore semaphoreH = new Semaphore(2);
private final Semaphore semaphoreO = new Semaphore(1);
... | 29.95 | 80 | 0.640234 |
1ecc7367fcf070f4675fc3672e63049b4609b6c0 | 398 | package ro.rasel.spring.microservices.component.ssl.server;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.PropertySource;
@ConditionalOnProperty(name = "server.ssl.enabled", havingValue = "true", matchIfMissing = true)
@PropertySource("cla... | 39.8 | 96 | 0.836683 |
252c1d9020b2c04b79d18c3d05badcb5e15b1c02 | 4,060 | package io.jans.as.client.ws.rs;
import io.jans.as.client.*;
import io.jans.as.client.client.AssertBuilder;
import io.jans.as.model.common.ResponseType;
import io.jans.as.model.common.SubjectType;
import io.jans.as.model.crypto.signature.SignatureAlgorithm;
import io.jans.as.model.jwt.JwtClaimName;
import io.jans.as.... | 41.85567 | 110 | 0.739409 |
e30b3acf9b49bdbcc5c1586c773ed0ebbec4e26a | 494 | package Chapter_2;
public class Example_02 {
public static void main(String[] args) {
// Declare some variables
float sum = 0.1f + 0.1f + 0.1f + 0.1f + 0.1f + 0.1f + 0.1f + 0.1f + 0.1f + 0.1f;
float num = 1.0f;
// Is sum equal to num
boolean equal = (num == sum);
// ... | 35.285714 | 88 | 0.536437 |
413404bea61217d0dcbd81244b5d8186748ddc5e | 252 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
package com.microsoft.signalr;
public enum TransferFormat {
TEXT,
BINARY
}
| 25.2 | 111 | 0.746032 |
d90e60b3dbe759dac78e683a51382093ca0ac0f9 | 7,220 | /*
* Copyright (c) 2008-2013 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.volumecontroller.impl.plugins.discovery.smis.processor.detailedDiscovery;
import com.emc.storageos.db.client.DbClient;
import com.emc.storageos.db.client.model.StringSet;
import com.emc.storageos.db.client.model.UnManage... | 50.84507 | 140 | 0.646814 |
12f89952538c04611740d7c93199ddef8b9777e0 | 1,411 | package org.noear.weed.generator.entity;
public final class Names {
public static final String tag_source = "source";
public static final String tag_entity = "entityGenerator";
public static final String tag_table = "table";
public static final String att_schema = "schema";
public static final Str... | 42.757576 | 71 | 0.746988 |
ef36d98b243461154188c4f712cec25d6ad3b54b | 7,463 | /* Copyright (C) 2017-2019 Andreas Shimokawa, Aniruddha Adhikary, Daniele
Gobbetti, ivanovlev, kalaee, lazarosfs, McSym28, M. Hadi, Roi Greenberg,
Ted Stein, Thomas, Yaron Shahrabani
This file is part of Gadgetbridge.
Gadgetbridge is free software: you can redistribute it and/or modify
it under t... | 45.785276 | 146 | 0.469918 |
b4f541301564046caf469a994ef2659b7d16e7a0 | 2,652 | package io.github.anantharajuc.rc.infra.security;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.BeanIds;
import org.springframework.s... | 36.328767 | 108 | 0.793363 |
1ddcc2689ce5e436965772b6d8c69d68e8c979c8 | 354 | package es.code.urjc.BiblioBookingService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class BiblioBookingServiceApplication {
public static void main(String[] args) {
SpringApplication.run(BiblioBookingServi... | 25.285714 | 69 | 0.838983 |
2152d0aad9b829b27cc37027eddd3a5e69803683 | 2,440 | package de.dm.intellij.liferay.schema;
import com.intellij.openapi.application.ReadAction;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VfsUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiManager;
import com.jetbrains.jsonSch... | 31.282051 | 144 | 0.685246 |
fd92a891fe5f571222ef553c7df316e34007c804 | 1,133 | import javafx.collections.ObservableList;
public interface ICard{
// @ ensures \result.length() > 0
public /*@ pure @*/ String getName();
// @ ensures \result.length() > 0
public /*@ pure @*/ String getDescription();
// @ ensures \result > 0
public /*@ pure @*/ Integer getAbility();
// ... | 25.75 | 64 | 0.58782 |
fd2873aad19c0f4994856d5a77e47aba5db14cfb | 270 | package com.homebrew.io.observers;
import java.util.Observable;
import java.util.Observer;
public class ObserverTest implements Observer {
@Override
public void update(Observable arg0, Object arg1) {
System.out.println("Observer1 notified");
}
}
| 19.285714 | 54 | 0.72963 |
b6c92be94482a30ade0eda1f9a0442f7ac2e0fca | 27,595 | /**
* 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... | 30.832402 | 133 | 0.668309 |
147f5b370f73ca2df60e47c3352f69569f0c767e | 2,980 | /**
* The MIT License
* Copyright (c) 2011 Kuali Mobility Team
*
* 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, ... | 23.28125 | 81 | 0.707047 |
945d7ddbe7872e627311cbe97530f24d3dfa2148 | 3,612 | package com.telecominfraproject.wlan.core.model.pagination;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.telecominfraproject.wlan.core.model.json.BaseJsonModel;
import com.telecominfraproject.wlan.core.model.pagination.PaginationContext;
import com.telecominfraproject.wlan.core.mode... | 61.220339 | 625 | 0.766058 |
c6b12e900a2cd37f178b74d72bef758777407860 | 493 | package edu.bits.wilp.ir_assignment.index;
import java.util.ArrayList;
import java.util.List;
/**
* Wrapper for List<{@link Document}> for Kryo
*/
public class Documents {
private final List<Document> documentOlds;
// for kryo
private Documents() {
this(new ArrayList<>());
}
publ... | 19.72 | 52 | 0.657201 |
5857dd644aef3b1e7d75a7a83b6cbc175362e122 | 1,952 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package mygame;
import com.jme3.input.controls.ActionListener;
import com.jme3.renderer.Camera;
import com.jme3.renderer.RenderManager;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.CameraNode;
import com.jme... | 26.378378 | 78 | 0.573258 |
6ea79360cc4fcbf9d3bec6e059839bf1a9883996 | 10,005 | /*
* The MIT License
*
==================================================================================
* Copyright 2016 SIPHYC SYSTEMS Sdn Bhd All Rights Reserved.
*
* project reference code contributed by Moaz Korena <korena@siphyc.com,moazkorena@gmail.com>
*
* Permission is hereby granted, free of charge,... | 41.004098 | 135 | 0.68036 |
552ca60930cc1d3864198700c5e3e7ef4d0a0a83 | 58,491 | /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | 57.456778 | 76 | 0.66241 |
cc17fa66114831a9cff9b043d53481a80b04928f | 2,087 | package org.tron.core.services.http;
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import ... | 37.945455 | 92 | 0.747005 |
f4a522bc65d11c292bd60e4ff3a0fdf5ac516874 | 6,100 | /*
* Copyright 2008, Unitils.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 agreed to in writing, ... | 41.496599 | 144 | 0.702623 |
667fba0034a80bccfa1960cf07ac2e39df1a943a | 6,369 | package com.github.mygreen.sqlmapper.core.meta;
import java.lang.reflect.Modifier;
import java.util.Collection;
import java.util.NoSuchElementException;
import java.util.Optional;
import org.springframework.util.LinkedCaseInsensitiveMap;
import com.github.mygreen.sqlmapper.core.annotation.CreatedAt;
import com.githu... | 25.173913 | 114 | 0.661014 |
c9bb837d0d796595e825c7b922f4c92c57e03e5d | 7,724 | /*****************************************************************
* 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
* ... | 37.678049 | 116 | 0.476437 |
0c09cc9b8f4a32e52a69d1438f74a027374c93d8 | 9,561 | /*
* Copyright 2014 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 49.283505 | 197 | 0.648468 |
ae6b2e48e45a5d847f03c4dee2415c84880813e2 | 362 | /** Read code block.
*/
Code readCode(Symbol owner) {
nextChar(); // max_stack
nextChar(); // max_locals
final int code_length = nextInt();
bp += code_length;
final char exception_table_length = nextChar();
bp += exception_table_length * 8;
readMembe... | 27.846154 | 55 | 0.563536 |
c99e9cfce6868606e9c7b7fc4b7cb86faf59650d | 1,823 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.ai.formrecognizer.models;
import com.azure.core.annotation.Immutable;
import java.util.Collections;
import java.util.List;
/**
* The FieldData model.
*/
@Immutable
public final class FieldData extends... | 26.042857 | 104 | 0.657707 |
cdc0ca78fbaf3dec546a65f6e74c30b8903dca96 | 2,459 | package aries.codegen.util;
import nam.model.Field;
import nam.model.util.TypeUtil;
import org.aries.util.NameUtil;
import aries.generation.model.ModelField;
public class MethodUtil {
public static String toGetMethod(Field field) {
return toGetMethod(field, true);
}
public static String toGetMethod(Field f... | 31.126582 | 126 | 0.755998 |
dc55f4f7da75a551074bf223957451aa6521980b | 930 | package com.github.andrewapj.todoapi.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
/**
* Entity ... | 22.142857 | 57 | 0.694624 |
36c0c828070a7becd8c853307f0767b317ca9a21 | 792 | package model;
import java.util.ArrayList;
import java.util.List;
public class ExpressionNode {
private String myExpression;
private String myCommand;
private List<ExpressionNode> myChildren;
public ExpressionNode() {
myChildren = new ArrayList<ExpressionNode>();
}
public ExpressionNode(String s, String p... | 18.418605 | 57 | 0.72096 |
0fdcdab47dd27db8adfc6f85dc73293503fe1b08 | 10,821 | package com.slxy.www.domain.po;
public class Registration {
private String registrationFaculty;
private String registrationMajor;
private String registrationName;
private long registrationNumber;
private String registrationTitle;
private String registrationTeacher;
private String registrat... | 31.920354 | 88 | 0.759172 |
a832d86c8566cbca0d366805fa81b8c981874536 | 711 | package sn.analytics.sets.type;
import java.util.Iterator;
/**
* String based offheap sets using Chronicle map
* Created by sumanth
*/
public class StringOffHeapSet implements IdSet<String> {
@Override
public void addElement(String elem) {
}
@Override
public boolean contains(String elem) {
... | 15.8 | 56 | 0.59775 |
26fb77e49365a745a5e4fa6ea76538e8f6ac9565 | 1,434 | package uk.gov.hmcts.ccd.domain.model.definition;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
public class SearchResultField implements Serializable {
@JsonProperty("case_type_id")
private String caseTypeId;
@JsonProperty("case_field_id")
private String caseFiel... | 21.402985 | 56 | 0.656206 |
0dd6c143412b0e9c49b9eb4ff65eb9387b383527 | 177 | package net36px.passport.app.task.qna;
public interface Asker {
void commit(Asking asking);
void close(Asking asking);
void reject(Asking asking);
}
| 14.75 | 39 | 0.661017 |
ba82b95f2293edcc6df4d40dc89e2d8321b2ef78 | 293 | package com.neo.service;
import com.neo.model.User;
import java.util.List;
public interface UserService {
public List<User> getUserList();
public User findUserById(long id);
public void save(User user);
public void edit(User user);
public void delete(long id);
}
| 13.952381 | 38 | 0.696246 |
babb50a3dc707c6c2e76f0010b4f451c3a3a6df9 | 1,472 | package com.trunkrs.sdk;
import java.util.HashMap;
import java.util.Map;
import lombok.val;
public abstract class APICredentials {
/**
* Creates API credentials from your client id and client secret used in the V1 API.
*
* @param clientId The Trunkrs provided client id.
* @param clientSecret The Trunkrs... | 27.773585 | 86 | 0.66712 |
5c7377a2db5ab5be8a94abf39d031a53a5b917b1 | 1,959 | package de.adorsys.opba.protocol.sandbox.hbci.config;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.adorsys.opba.protocol.sandbox.hbci.protocol.context.HbciSandboxContext;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import org.flowa... | 30.138462 | 112 | 0.709035 |
b763b9ff01e57ade7548a9aef9e5301471c7defc | 330 | package br.com.romaninisistemas.repository.search;
import br.com.romaninisistemas.domain.Cor;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
/**
* Spring Data Elasticsearch repository for the Cor entity.
*/
public interface CorSearchRepository extends ElasticsearchRepository<Cor, ... | 30 | 81 | 0.827273 |
9cde47b0a9f810bc2102792954400f7f9aa1bcd3 | 1,633 | package tw.gov.epa.taqmpredict.util;
import android.text.format.DateUtils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* Created by user on 2017/3/8.
*/
public class DateTimeUtil {
static String HEADLINE_DATE_PATTERN = "yyyy-MM-dd";... | 28.649123 | 65 | 0.630129 |
4b3f44cdb7af6c167b8d5dd7dffcc45cf231d17b | 378 | package com.github.thiagogarbazza.training.springangular.core.grupodocumento.impl;
import com.github.thiagogarbazza.training.springangular.core.grupodocumento.GrupoDocumento;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.UUID;
interface GrupoDocumentoRepository extends JpaRepository<... | 37.8 | 112 | 0.867725 |
eee2ba53ba422dbe6b926742f98dcfc976993b2c | 744 | // Copyright 2012 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.content.browser;
import android.content.Context;
import org.chromium.base.CommandLine;
import org.chromium.content_public.common.Co... | 29.76 | 82 | 0.752688 |
fc76bffad188d1f3094107ce8e7e8931f0cce1f3 | 422 | import java.util.Scanner;
public class Repeticao4 {
public static void main(String args[]){
Scanner input = new Scanner(System.in);
int number;
System.out.print("Digite um número: ");
number = input.nextInt();
int fatorial = 1;
for (int i = 1; i <= number; i++){
... | 28.133333 | 51 | 0.554502 |
14db44b2554ad8465ba9dc60e20c5e3feb9eb29d | 1,043 | package com.gcplot.model.gc;
import com.fasterxml.jackson.annotation.JsonValue;
import com.gcplot.utils.enums.TypedEnum;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
public enum Generation implements TypedEnum {
YOUNG(1),
TENURED(2),
/* Used be... | 20.45098 | 83 | 0.623202 |
5574e6af09040c675ae10ca6947bd6fbdb73ca7e | 243 | package lk.ijse.dep.pos.jpa.dao.custom;
import lk.ijse.dep.pos.jpa.dao.CrudDAO;
import lk.ijse.dep.pos.jpa.entity.Customer;
public interface CustomerDAO extends CrudDAO<Customer,String> {
String getLastCustomerId() throws Exception;
}
| 22.090909 | 63 | 0.777778 |
6c4a70898f0d8e8bcdbf493b100a6b3dcb1b5920 | 513 | import SelfDrivingCar.Car;
import org.junit.Assert;
import org.junit.Test;
/**
* Created by awilczek on 4/8/14.
*/
public class Tests {
@Test
public void testInit()
{
Car car = new Car();
System.out.println(car.getInfo());
car.populateUsers();
car.setZone1User(car.users.g... | 21.375 | 149 | 0.526316 |
1a660c29c04f8737d08f486bb9e10d88663dff20 | 428 | package com.home.commonManager.tool;
import com.home.commonManager.net.httpResponse.base.ManagerNormalClientHttpResponse;
import com.home.shine.net.httpResponse.BaseHttpResponse;
import com.home.shine.tool.IHttpResponseMaker;
public class ManagerClientHttpResponseMaker implements IHttpResponseMaker
{
@Override
publ... | 28.533333 | 84 | 0.845794 |
8001f95d83860d7cba3680b6ae9ec13d60e7f8ac | 3,369 | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | 29.295652 | 124 | 0.672009 |
c807860a763e78258efdb7a060d38c49b84bfee8 | 93 | package com.pixcat.jellymonsters.input;
public enum KeyState {
PRESSED,
RELEASED
}
| 11.625 | 39 | 0.72043 |
1e8b3322e87c0b21e0cc55e35fe406dcb94ab26c | 2,122 | package org.jclouds.vi.compute;
import static org.jclouds.compute.util.ComputeServiceUtils.getCores;
import static org.testng.Assert.assertEquals;
import java.util.Properties;
import org.jclouds.compute.BaseComputeServiceLiveTest;
import org.jclouds.compute.ComputeServiceContextFactory;
import org.jclouds.compute.do... | 36.586207 | 113 | 0.758247 |
e1500c8d64c718d51837b7be305ebb2e2f211420 | 10,463 | /*
* Copyright © 2019-2022 Forb Yuan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 35.110738 | 136 | 0.661856 |
1e43fbca9fe6198a8e8230ea7045a8bcda24c11c | 899 | package org.codecraftlabs.octo.service;
public class InvoicePatchVO {
private final String invoiceId;
private String name;
private double amount;
private String status;
private final long version;
public InvoicePatchVO(String invoiceId, long version) {
this.invoiceId = invoiceId;
... | 19.12766 | 59 | 0.611791 |
4b688d8a3b00d97e8514dd833197a3b349ba2256 | 8,632 | package spins.promela.compiler.ltsmin.model;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import spins.promela.compiler.Specification... | 29.460751 | 131 | 0.666126 |
d6001fcb13b46a01ec70ede1a18234a62a58baba | 1,896 | package com.savor.operation.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.common.api.utils.DensityUtil;
import com.savor.operation.R;
import ja... | 29.169231 | 130 | 0.69673 |
70bb667e99156d628d879dc1c1b99c655dae803f | 5,225 | package com.jn.kiku.utils.manager;
import android.app.Activity;
import android.app.Application;
import android.content.ComponentCallbacks;
import android.content.res.Configuration;
import androidx.annotation.IntDef;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.util.DisplayMet... | 29.027778 | 104 | 0.618756 |
0d74a8a95c032e8023408a0f3c6dd2eaceb5117c | 1,330 | package org.fugerit.java.ext.doc;
public class DocPhrase extends DocElement implements DocStyle {
public DocPhrase() {
this.text = "";
}
private int style;
private int size;
private String text;
private String foreColor;
private String backColor;
private String fontName;
private Float leadi... | 12.090909 | 63 | 0.67594 |
1053766b2257368865c4486709849cc42aa47933 | 2,563 | package com.medlinker.track.sourcepath.fragment;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import com.heaven7.core.util.BundleHelper;
import com.medlinker.track.sourcepath.TagNode;
import com.medlinker.track.sourcepath.TrackFactory;
import com.medlinker.track.sourcepath.Track... | 30.152941 | 115 | 0.641046 |
13cfeeb7f1c97a69a2a028836140c0074cca25c6 | 3,599 | package be.nicolasdelp.quoridor.gui;
import java.io.File;
import java.net.URL;
import java.util.ResourceBundle;
import be.nicolasdelp.quoridor.saveload.LoadGame;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.Scene;
import java... | 32.718182 | 110 | 0.621562 |
24892237447f7eaf772085ebb611dd3b4b3450b5 | 1,131 | package com.ThoughtWorks.DDD.Inventory.interfaces.facade;
import com.ThoughtWorks.DDD.Inventory.domain.shop.Shop;
import com.ThoughtWorks.DDD.Inventory.domain.shop.ShopRepository;
import com.ThoughtWorks.DDD.Inventory.interfaces.DTO.ShopResponse;
import com.ThoughtWorks.DDD.Inventory.interfaces.assembler.ShopAssembler... | 33.264706 | 83 | 0.791335 |
5894e226b977df34caaa7fa2c302ebabf6035234 | 1,209 | package br.com.zup.MercadoLivre.integration.util;
import javax.persistence.EntityManager;
import javax.persistence.Query;
public class Persistence<T> {
private final EntityManager em;
private final Class<?> domain;
public Persistence(Class<?> domain, EntityManager em) {
this.domain = domain;
... | 26.866667 | 77 | 0.612903 |
944a6be6edf57f52cd8c9ea5e63f8408b0450a98 | 34,343 | /*
* Copyright 2019 Miroslav Pokorny (github.com/mP1)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 35.811262 | 135 | 0.560231 |
eb9c81f666ad9663d7d8b8fca14f2beebdfd8f4f | 1,897 | package com.github.dzieciou.testing.curl;
import static org.hamcrest.CoreMatchers.hasItem;
import static org.hamcrest.MatcherAssert.assertThat;
import com.github.valfirst.slf4jtest.LoggingEvent;
import com.github.valfirst.slf4jtest.TestLoggerFactory;
import java.io.IOException;
import java.util.Collections;
import ja... | 33.875 | 83 | 0.705851 |
0eb82e30603a5108517f9e987c7d30f45d0d5fcb | 1,722 | package com.google.pubsublite.kafka.sink;
import com.google.cloud.pubsublite.CloudZone;
import com.google.cloud.pubsublite.ProjectPath;
import com.google.cloud.pubsublite.PublishMetadata;
import com.google.cloud.pubsublite.TopicName;
import com.google.cloud.pubsublite.TopicPath;
import com.google.cloud.pubsublite.inte... | 47.833333 | 107 | 0.783972 |
300f565bbfd45a0225db13899b01d5fe1502d66f | 3,367 | package joshie.enchiridion.wiki.gui;
import static joshie.enchiridion.wiki.WikiHelper.drawScaledText;
import static joshie.enchiridion.wiki.WikiHelper.getPage;
import static joshie.enchiridion.wiki.WikiHelper.horizontalGradient;
import static joshie.enchiridion.wiki.WikiHelper.mouseX;
import static joshie.enchiridion.... | 37.411111 | 140 | 0.550045 |
300afba83cc5e28c8ca4ff277a826b9a8b876cd6 | 3,046 | package cz.metacentrum.perun.webgui.json.registrarManager;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.json.client.JSONNumber;
import com.google.gwt.json.client.JSONObject;
import cz.metacentrum.perun.webgui.client.PerunWebSession;
import cz.metacentrum.perun.webgui.client.resources.Perun... | 23.075758 | 113 | 0.721274 |
6b2cb21aae1607c4cf6648b9f9bb67664b573c8b | 760 | package cvut.fit.borrowsystem;
import com.mongodb.Mongo;
import com.mongodb.MongoClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.config.AbstractMongoConfiguration;
import org.springframework.data.mongodb.re... | 25.333333 | 82 | 0.765789 |
02eb5ab47548b64b07209ce67c6c6d9f591e3bf1 | 966 | package cn.liuawen.service;
import cn.liuawen.PindongdongApplicationTests;
import cn.liuawen.enums.ResponseEnum;
import cn.liuawen.vo.CategoryVo;
import cn.liuawen.vo.ResponseVo;
import lombok.extern.slf4j.Slf4j;
import org.junit.Assert;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autow... | 24.769231 | 78 | 0.772257 |
dd88236dfbe4c69232d1f4df59fb7c9ff5160c2d | 1,535 | package org.tcsaroundtheworld.admin.server;
import java.util.Collections;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.cache.Cache;
import javax.cache.CacheException;
import javax.cache.CacheManager;
import org.tcsaroundtheworld.admin.client.AdminSer... | 25.583333 | 105 | 0.732248 |
4362eed4ee73f0f5356c4d120eeb377d38db114d | 1,466 | package instantcoffee.cinemaxx.dto;
import instantcoffee.cinemaxx.entities.Movie;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.modelmapper.ModelMapper;
import java.util.List;
import java.util.stream.Collectors;
@NoArgsConstructor
@Getter
@Setter
public class MovieDTOCustom... | 29.918367 | 143 | 0.712142 |
c6cf341cfd19e9a9612716266ab1ed4055059718 | 12,959 | package com.webleader.appms.util.image;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import javax.imageio.IIOImage;
import javax.imageio.ImageIO;
import javax.imageio.Image... | 26.555328 | 93 | 0.661702 |
bd8507607818a28b3bb72c0e7a64e085a4754363 | 2,010 | package com.aiit.byh.service.common.redis;
import com.aiit.byh.service.common.redis.entity.UpdateInfo;
import com.aiit.byh.service.common.redis.entity.UpdateType;
import com.aiit.byh.service.common.utils.CommonUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import ... | 24.216867 | 83 | 0.581592 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.