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 |
|---|---|---|---|---|---|
fabf9817758d4e560525752cb28ff7c717cae8f5 | 3,063 | package com.shuzijun.leetcode.plugin.editor;
import com.intellij.openapi.fileEditor.FileEditor;
import com.intellij.openapi.fileEditor.TextEditor;
import com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorProvider;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.LocalFileSystem;
i... | 39.779221 | 132 | 0.704865 |
3d62232fef2235e0750559a0d0e483478e2145a8 | 3,373 | /*
* This project is licensed as below.
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... | 37.065934 | 118 | 0.71005 |
345b133c6fcd821959ddd9b2b871bd6203d48eff | 1,588 | package alloyfl.metrics.reporter;
import static alloyfl.metrics.util.Util.getNumberOfChildren;
import static alloyfl.metrics.util.Util.isSubtree;
import alloyfl.metrics.util.DistanceReportInfo;
import alloyfl.metrics.util.UnifiedNodeInfo;
import alloyfl.metrics.visitor.VisitedNodeMarker;
import java.util.HashSet;
imp... | 36.090909 | 93 | 0.718514 |
a32bc2a80baa3c8f44ed565114b8a9b65a53e96b | 4,414 | package serwisPaczek.controller.worker;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.*;
import javafx.scene.layout.Region;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import serwisPaczek.model.Status;
import s... | 31.084507 | 113 | 0.620752 |
f763d3bcc16d5e4ed94c04ec222ed530c04a84e2 | 130 | package cn.dyz.tools.file;
/**
* Create by suzhiwu on 2019/7/22
*/
public interface IHandle {
void handle(String line);
}
| 13 | 33 | 0.669231 |
b52b5e783101d8c4482c04efb2bd7c7c1aea97eb | 1,515 | package com.snail.job.client.thread;
import com.snail.job.client.biz.AdminBiz;
import com.snail.job.common.model.CallbackParam;
import com.snail.job.common.thread.RabbitJobAbstractThread;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Li... | 24.435484 | 96 | 0.70165 |
ab4e2cbc9a0ae9b5379cb8609e66b45bc97de11c | 2,868 | package net.minecraft.world.level.levelgen.feature;
import com.mojang.serialization.Codec;
import com.mojang.serialization.JsonOps;
import java.util.List;
import java.util.Objects;
import java.util.Random;
import java.util.function.Supplier;
import java.util.stream.Stream;
import net.minecraft.core.BlockPos;
import ne... | 41.565217 | 169 | 0.76569 |
33276023fbfcf322808038fdea024c92237aef8b | 518 | package io.quarkiverse.operatorsdk.it;
import io.javaoperatorsdk.operator.api.reconciler.ControllerConfiguration;
import io.quarkiverse.operatorsdk.runtime.DelayRegistrationUntil;
@ControllerConfiguration(name = DelayedReconciler.NAME)
@DelayRegistrationUntil(event = DelayedReconciler.RegisterEvent.class)
public clas... | 32.375 | 74 | 0.814672 |
9de4cb29979271891b7346731ef5e92a97ecb0fc | 955 | package net.minecraft.server;
import com.mojang.datafixers.DSL;
import com.mojang.datafixers.schemas.Schema;
import com.mojang.datafixers.types.templates.TypeTemplate;
import java.util.Map;
import java.util.function.Supplier;
public class DataConverterSchemaV1451_7 extends DataConverterSchemaNamed {
public DataC... | 43.409091 | 276 | 0.750785 |
5f597d7fffdb25762ccb574cfb42cc1d84fb54c9 | 6,241 | /**
* Autor: fjroa - Novasoft - Jaen (2011)
* Archivo: UsuarioExternoServiceImpl.java
* Creado: 02-jun-2011
* Version: 1.0
* Descripcion:
*/
package es.novasoft.sitae.business.services.impl;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import es.n... | 27.372807 | 87 | 0.72889 |
25632f6cb1a6b900dbeec451432458dacc3f9bc0 | 9,854 | // Copyright 2017 Google 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 to in w... | 35.832727 | 94 | 0.712807 |
ac0b8aaebb7eb0394319bd93671a6d8f5d05cb32 | 916 | package com.abatra.android.wheelie.core.activity.resultContracts;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import androidx.annotation.NonNull;
public class ShareMediaActivityResultContract extends AbstractActivityResultContract<ShareMediaActivityResultContract.ShareableM... | 29.548387 | 135 | 0.704148 |
88a81bf4fbf1ae7ac0d612191dd52c3c35eda6a5 | 360 | package com.easy.security.entity;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.security.core.GrantedAuthority;
@Data
@Accessors(chain = true)
public class Role implements GrantedAuthority {
private Long id;
private String name;
@Override
public String getAuth... | 17.142857 | 58 | 0.733333 |
80bfbd71bbc2ec7bbcb3499db8029302787a5c7f | 4,608 | import java.util.*;
/**
* Un noeud contient les informations suivantes:
* <ol>
* <li><code>prot</code> contient le nom de la protéine contenu dans le noeud (possible null si noeud interne)</li>
* <li><code>seq</code> contient la séquence d'acides aminés associée à la protéine (possible null si noeud interne)</... | 22.699507 | 123 | 0.644965 |
b0aa5f07cd198a63645a6a4d5e8e7750eb70da33 | 2,604 | package com.tencent.angel.psagent.matrix.transport.router.hash;
import com.tencent.angel.common.collections.DynamicIntDoubleArrayPair;
import com.tencent.angel.ml.matrix.RowType;
import com.tencent.angel.psagent.matrix.transport.router.operator.IIntKeyDoubleValuePartOp;
import io.netty.buffer.ByteBuf;
public class Ha... | 24.336449 | 94 | 0.698157 |
244625bbdc3b4e5e72e3d945ecbe788cd26e8021 | 661 | package de.codecentric.ebss;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.integration.config.EnableIntegration;
import de.codecentric.ebss.config.ServiceConfigura... | 31.47619 | 77 | 0.83056 |
1516ba48b40b541c048496a51918619d05532156 | 4,253 | package com.vaadin.demo.component.scroller;
import com.vaadin.demo.DemoExporter;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.button.ButtonVariant;
import com.vaadin.flow.component.datepicker.DatePicker;
import com.vaadin.flow.component.html.*;
import com.vaadin.flow.component.icon.... | 36.350427 | 99 | 0.704209 |
f8235f208083117a652d3d20aef1c08940bb691b | 788 | /*******************************************************************************
* Copyright Duke Comprehensive Cancer Center and SemanticBits
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/c3pr/LICENSE.txt for details.
********************************************************... | 32.833333 | 80 | 0.635787 |
386768bda0ab99c9aa125e162dda6305ab672d27 | 2,689 | package sh.komet.gui.control.text;
import javafx.collections.ListChangeListener;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.control.ContentDisplay;
import javafx.scene.control.Label;
import javafx.scene.layout.StackPane;
import javafx.scene.text.Text;
import javafx.scene.text.TextFlow;
... | 31.267442 | 107 | 0.672369 |
c8c62563f3f287e0f60040be71597efeea89fb26 | 8,305 | package com.wei.you.zhihu.spider.controller.v1;
import javax.validation.constraints.NotNull;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.Reque... | 86.510417 | 195 | 0.714389 |
2e7286dac28a24001485894c73be4afcee3afd9b | 3,234 | package ru.goodvard.repository.entity;
import lombok.Data;
import lombok.NoArgsConstructor;
import ru.goodvard.controller.dto.ParentUserDto;
import ru.goodvard.controller.dto.RegistrationDto;
import ru.goodvard.controller.dto.RequestData;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.Se... | 35.152174 | 93 | 0.724181 |
ce6281aa65739ba99c7bdca25835f9c91774b28e | 1,492 | package org.erp.tarak.address;
public class AddressUtilities {
public static Address saveAddress(AddressService addressService,
Address address) {
addressService.addAddress(address);
return address;
}
public static Address populateAddress(AddressBean addressBean) {
Address address = new Addr... | 33.155556 | 70 | 0.766756 |
bbf2696cd317b11da18813628e86db67139922ca | 10,813 | package uk.ac.ic.wlgitbridge.server;
import com.google.api.client.auth.oauth2.*;
import com.google.api.client.http.GenericUrl;
import org.apache.commons.codec.binary.Base64;
import org.eclipse.jetty.server.Request;
import uk.ac.ic.wlgitbridge.application.config.Oauth2;
import uk.ac.ic.wlgitbridge.bridge.snapshot.Snaps... | 40.650376 | 125 | 0.532692 |
bb77a66ec2f618a6ecc738800a56a30418de7e03 | 1,795 | package com.pydio.cells.api;
public interface IServerFactory {
/**
* Tries to contact a Pydio server at the given URL and returns the Server type (namely P8 or Cells) if found
*
* @param serverURL
* @return
* @throws SDKException
*/
String checkServer(ServerURL serverURL) throws ... | 28.492063 | 113 | 0.671866 |
4244169110e183e2fc1a0ff561e08db6051d6be2 | 13,567 | package com.mc.priveil.gourmetpadosmein;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.NavigationView;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerTogg... | 44.481967 | 171 | 0.499152 |
a832ce9ce1fc49b95624255642d5bcd914663c00 | 100 | package com.google.android.gms.internal.ads;
public interface zzamx {
void zzcz(String str);
}
| 16.666667 | 44 | 0.74 |
113a4765ae0bbd42484c212d09b7a1c941d508f0 | 709 | package org.webpieces.util.locking;
import java.util.concurrent.CompletableFuture;
import java.util.function.Supplier;
public class QueuedRequest<RESP> {
private CompletableFuture<RESP> future;
private Supplier<CompletableFuture<RESP>> processor;
private long timeQueued;
public QueuedRequest(
CompletableFutu... | 20.257143 | 58 | 0.758815 |
8daeb75e7f1f5f6f07c31a857dc1b74c610f9430 | 1,957 | package com.kamontat.model.management;
import com.kamontat.constant.FileExtension;
import java.io.*;
import java.util.*;
/**
* this class is file api <br>
* you can easy to use in many way <br>
* <p>
* this class contain some of method but all of them is <code>static method</code> so you don't need to assign eve... | 27.56338 | 131 | 0.664282 |
75edd326774fb53e2f155d296934b2d346a7964f | 1,380 | package com.github.lbovolini.crowd.server.worker;
import com.github.lbovolini.crowd.core.connection.*;
import com.github.lbovolini.crowd.core.node.NodeGroup;
import com.github.lbovolini.crowd.core.request.RequestHandler;
import com.github.lbovolini.crowd.core.request.Scheduler;
import com.github.lbovolini.crowd.core.r... | 38.333333 | 113 | 0.778986 |
4a45054f608685eb5c08414ec20f63ca5479ce5d | 8,249 | /*
* #%L
* BH2K Portal Data API
* %%
* Copyright (C) 2015 - 2016 Blockhaus2000
* %%
* 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.... | 36.5 | 126 | 0.591344 |
6cbfa2ae9295b1dfc6758db6ac8f0c6867c55921 | 19,246 | package com.culabs.nfvo.model.db;
public class DBHypervisor {
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column hypervisor.hypervisor_id
* @mbggenerated Wed Apr 29 18:38:14 CST 2015
*/
private String hypervisor_id;
/**
* This field was ... | 39.438525 | 139 | 0.694794 |
906c89be98a4dd98b7d05c86e88e81f3d0b3087a | 471 | package daggerok.service;
import lombok.extern.slf4j.Slf4j;
import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.ejb.Startup;
@Slf4j
@Startup
@Singleton
public class StartupSingletonService {
public StartupSingletonService() {
log.warn("Initialization constructor: {}", this.getClass... | 20.478261 | 78 | 0.7431 |
5d5c025408de4562523292f557f7a66bf1167680 | 1,761 | /*
* 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... | 32.611111 | 78 | 0.725724 |
757733b8f960ea378667675adef2b4a3f37cdc28 | 1,595 | package com.trl._tests.lambdaExpression.t4;
/**
* This test is taken from the book: OCP: Oracle ®
* Certified Professional
* Java® SE 8 Programmer II
* by Scott Selikoff, Jeanne Boyarsky
* ... | 33.93617 | 119 | 0.611285 |
86589a6d4ac1c61653c674cb0b1aeab97f1d4031 | 4,133 | /*
* Copyright (c) 2010-2015 Pivotal Software, Inc. 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 req... | 19.495283 | 70 | 0.646746 |
9432696c3baae6ab7a742dee78f18b5290b4404d | 29,529 | package gui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import ... | 33.824742 | 126 | 0.699617 |
cdbd91d3b65bc3a98f18202bf10252b814e6c015 | 2,839 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory... | 35.936709 | 107 | 0.65199 |
7a98fd36c98e7f350a5e363cbd2f840207879dcd | 217 | package com.zdawn.web.sec;
/**
* 简单认证类
* @author zhaobs
*
*/
public interface ServiceAuthentication {
public boolean trustIp(String ip);
public boolean authenticate(String userName,String password);
}
| 19.727273 | 63 | 0.714286 |
89826ff965fcc670be52ce73c1f51c9ac764230b | 1,174 | package com.test.customAbstract;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.test.gson.EventDeserializer;
import com.test.learnWindows.KafkaUtil;
import com.test.socketSource.SocketSource;
import model.Event;
import org.apache.flink.api.common.functions.RichMapFunction;
import org.apac... | 33.542857 | 88 | 0.793015 |
b92518e3d5fe27436b3207bef04e481027247650 | 825 | package unicap.uber.view;
public class Cliente {
private String nome;
static private String sobrenome = "Pires";
static public Cliente euMesmo = new Cliente(null);
private Cliente(String nome) {
this.nome = nome;
}
public void setNome(String novoNome) {
nome = novoNome;
}
public String getNome... | 20.625 | 52 | 0.687273 |
5fee058814dfefe731d62409a391960f88657002 | 929 | package com.zhazhapan.demo.algorithm.leetcode.contest.before;
import org.junit.Test;
public class Contest1020Test {
@Test
public void canThreePartsEqualSum() {
Contest1013 contest1013 = new Contest1013();
assert contest1013.canThreePartsEqualSum(new int[]{0, 2, 1, -6, 6, -7, 9, 1, 2, 0, 1});
... | 48.894737 | 107 | 0.637244 |
08fcf3c46586e966fbb66da30a9d87423aee8444 | 158,960 | package org.mage.test.player;
import mage.MageItem;
import mage.MageObject;
import mage.MageObjectReference;
import mage.ObjectColor;
import mage.abilities.*;
import mage.abilities.costs.AlternativeSourceCosts;
import mage.abilities.costs.Cost;
import mage.abilities.costs.Costs;
import mage.abilities.costs.VariableCos... | 41.438999 | 264 | 0.567866 |
d204f60cce6e4c9ce7c88523a13f1487d26efb0d | 377 | package com.lakeel.altla.vision.nearby.presentation.view;
import android.support.annotation.NonNull;
import android.support.annotation.StringRes;
import com.lakeel.altla.vision.nearby.presentation.presenter.model.InformationModel;
public interface InformationView {
void showInformation(@NonNull InformationModel... | 26.928571 | 84 | 0.819629 |
0a079f23770cb695643f459e44476342107070e6 | 9,428 | /*
* 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 n... | 39.780591 | 154 | 0.684345 |
5213f23e3d0640c747c1d6ecfc15b933bf60af58 | 512 | package pl.naniewicz.mvpweathersample.data.local.gms;
import com.google.android.gms.common.ConnectionResult;
/**
* Created by Rafał Naniewicz on 09.02.2016.
*/
public class ApiClientConnectionFailedException extends Exception {
public ConnectionResult getConnectionResult() {
return mConnectionResult;
... | 25.6 | 82 | 0.773438 |
43ffa1822ef02a180e327503bab9eee7ef74a416 | 1,042 | package top.kylewang.taotao.sso.controller;
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.bind.annotation.RequestMethod;
import org.springframework... | 28.944444 | 69 | 0.777351 |
f4b4ef65fed33b3d4dd3c4fa7ba5aea5f817b217 | 1,367 | package com.evil.inc.platedecisiontaker.repository;
import com.evil.inc.platedecisiontaker.model.Car;
import com.evil.inc.platedecisiontaker.model.Company;
import com.evil.inc.platedecisiontaker.model.Owner;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
import java.util.List;
import ja... | 39.057143 | 97 | 0.659108 |
515220f72e8fd468af2bc072a90692fca98a8939 | 1,017 | import java.util.*;
public class ExampleMain {
public static void main(String[] args){
Parser parser = new Parser("https://openmensa.org/api/v2/canteens"); //create Parser
Data data = new Data(parser, System.out); //create Data
data.initialize(); // initialize Data
Canteen alteMens... | 48.428571 | 121 | 0.66765 |
f8543cc953e23485ca80a1bf125514b129db69a6 | 3,288 | /**
* RateCardServiceInterface.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201405;
public interface RateCardServiceInterface extends java.rmi.Remote {
/**
* Creates a list of {@link RateC... | 38.682353 | 294 | 0.593978 |
b62729f6ec66d0fd53c3f5fb02e6103fe4ffec21 | 1,413 | package sort;
/**
* @author Fcb
* @date 2020/2/19
* @description 堆排序,时间复杂度O(nlogn),空间复杂度O(1),不稳定
*/
public class HeapSort implements Sort {
@Override
public void sort(int[] arr) {
if (arr == null || arr.length < 2) {
return;
}
for (int i = 0; i < arr.length; i++) {
... | 25.232143 | 78 | 0.440198 |
2c74984c22f275a1047a9c84f2a1328d9b5784a7 | 1,654 | /*
*
*
*
*/
package com.cms.controller.admin.storage_plugin;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import com.alibaba.fastjson.JSONObject;
import com.cms.controller.admin.BaseController;
import com.cms.entity.StoragePlugin;
import com.cms.... | 25.84375 | 72 | 0.695889 |
2b231e34ff57c1736c6b8c5c1a878a5a35ad6877 | 3,086 | /*
* Copyright (c) 2008-2018, Hazelcast, Inc. 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 ... | 37.180723 | 90 | 0.635774 |
6446b5d2d5b5b3957d67d46c7ad742a4fd29a20a | 3,051 | /*
* Copyright (C) 2018 xuexiangjys(xuexiangjys@163.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 24.804878 | 115 | 0.617502 |
9b21de61ca161ade06d343a465e43f6cbb6c186d | 1,034 | package org.vitrivr.cineast.api.messages.components;
import org.vitrivr.cineast.core.data.entities.MediaObjectMetadataDescriptor;
import java.util.Arrays;
import java.util.function.Predicate;
/**
* Filter for metadata, based on the key.
*
* This class servers as filter descriptor and as actual filter.
*
* @auth... | 27.945946 | 84 | 0.748549 |
6b94312581d22dc3c9da58cc5fabf2ee25f48336 | 306 | package learn.jni.math.calc;
public class Calculator {
static {
System.loadLibrary("mymath");
}
public native int square(int a);
public native int add(int a, int b);
public native int subtract(int a, int b);
public native int multiply(int a, int b);
}
| 18 | 45 | 0.607843 |
fedf62092cfcc5dc39d9ae49bea65486d4e6aef0 | 682 | package org.terifan.raccoon;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.channels.SeekableByteChannel;
import org.terifan.raccoon.util.Listener;
public interface LobByteChannel extends SeekableByteChannel
{
byte[] readAllBytes() throws IOException;
LobByte... | 19.485714 | 69 | 0.816716 |
3427d9b9525a70bb9e56b3a0de75e40dbbd17b4a | 9,794 | package ca.weblite.jdeploy.installer.win;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
import static com.sun.jna.platform.win32.Advapi32Util.*;
import static com.sun.jna.platform.win32.WinReg.HKEY_CURRENT_USER;
import... | 36.274074 | 165 | 0.595262 |
f7a5197ad7bef80723a76cbe263b8e7ab793c607 | 785 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.engine.function.config;
import com.opengamma.util.PublicSPI;
/**
* Provides a repository configuration for bootstrapping a function repository. Possible
* ... | 25.322581 | 88 | 0.749045 |
fd09c3319e0a995f8a19b6856236360d6e65dd2a | 1,596 | package com.java.test;
import java.util.Scanner;
public class Consecutives {
public static void main(String args[]) {
int i, min;
int[] card = new int[3];
String s;
Scanner in = new Scanner(System.in);
System.out.println("Enter String"); // taking input
s = in.nextLine();
/... | 29.018182 | 79 | 0.500627 |
ffcfc32bdc51545490df047d4dbb568b2fdeb3f6 | 1,818 | package com.mylog.common.batch.job;
import com.alibaba.druid.pool.DruidDataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.configuration.annotation.JobBuilderFactory;
import org.springframework.batch.core.configuration.annotation.StepBuilderFactory;
import org.spr... | 27.969231 | 83 | 0.766227 |
56ae6c261e15cf02688375bed3ee0c26d0a572f0 | 1,268 | package br.com.clinicaanimal.component.progressbar;
import java.util.ResourceBundle;
import javax.el.MethodExpression;
import javax.faces.context.FacesContext;
public class ProgressUtil {
private ProgressUtil() {
//do not compliance
}
/* MENSAGENS SEM PARAMETROS
* Utilizado intensivamente no processo de i... | 30.190476 | 86 | 0.654574 |
6df787bc1f28d65f27e7ffbeda06b39db4df748b | 134 | package ru.mousecray.mousecore.api.asm.method.utils;
public enum MouseReturnCondition {
NEVER,
ALWAYS,
ON_RESULT_EQUALS
} | 19.142857 | 52 | 0.753731 |
511568dfd75c554cec73d5857d5d90362c938b52 | 5,690 | package com.ciel.scaconsumer;
import com.alibaba.cloud.sentinel.annotation.SentinelRestTemplate;
import com.alibaba.cloud.sentinel.rest.SentinelClientHttpResponse;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.ciel.scaapi.util.Faster;
import com.ciel.scaconsumer.config.RestInterceptor;
import ... | 40.070423 | 123 | 0.730404 |
eb8dde9dd1893c21ea18892f744d60e3028b2529 | 890 | package com.company.Day14.homework;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
public class Demo02 {
public static void main(String[] args) {
// 往一个Map集合中添加若干元素。获取Map中的所有value,
// 并使用增强for和迭代器遍历输出每个value。
HashMap<String, Integer> map = new HashMap<>()... | 24.722222 | 55 | 0.576404 |
9f6576050f6d5a425c2da0d9be193400f940c17d | 190 | package no.fint.consumer.utils;
public enum RestEndpoints {
;
public static final String ADMIN = "/admin";
public static final String SOKNADDROSJELOYVE = "/soknaddrosjeloyve";
}
| 19 | 69 | 0.731579 |
5d6cdf8939b4b23c4ea3b75297b6b87b8a40f21a | 1,427 | package org.coredb.portal.service.util;
import java.io.*;
import java.security.*;
import java.security.spec.*;
import java.util.*;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... | 31.711111 | 79 | 0.767344 |
d515a83ed7481c9defbc0d8c32d05bece4ec7809 | 1,950 | /**
* Copyright (C) 2017 - present by wilberding.com
*
* Please see distribution for license.
*/
package com.wilberding.brewery.data;
public final class ReferenceData {
/**
* GRAIN ABSORPTION
*/
public static final double grainAbsorption = 0.13; // gal/lb
/**
* SPECIFIC HEAT
*/
... | 29.545455 | 69 | 0.516923 |
5532c0992ab0224c3213fb6e35531fa9e7531fde | 934 | package com.spring.test.bean.aware;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
/**
* 实现 aware 接口,可以动态增强bean
* <p>
* Aware 接口为 Spring 容器的核心接口,是一个具有标识作用的超级接口,实现了该接口的 bean 是具有被 Spring 容
* 器通知的能力,通知的... | 27.470588 | 81 | 0.779443 |
763ea9d9ddf775ba833fdd39adfab4aca02a26bd | 970 | package com.jafe.comm.util;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.locks.ReentrantLock;
public class ReentrantLockTest extends Thread {
AliasLock lock;
private int id;
public ReentrantLockTest(int i, AliasLock test) {
this.id = i;
this.l... | 21.555556 | 60 | 0.679381 |
706afaebd302963d6fd0fc33461d81718916b793 | 2,164 | package theGambler.cards;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.DrawCardAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import theG... | 40.830189 | 150 | 0.664972 |
c2ad2b7968ac8699dec8df63cb3f154d5326be13 | 291 | package io.github.gnupinguin.tlgscraper.scraper.utils;
import lombok.experimental.UtilityClass;
@UtilityClass
public class ScraperProfiles {
public static final String LOCAL = "local";
public static final String DEEP = "deep";
public static final String SHORT = "short";
}
| 19.4 | 54 | 0.749141 |
defa922ca08e91616d4b9a185199fdee319cabee | 9,579 | package cn.mulanbay.pms.handler;
import cn.mulanbay.business.handler.BaseHandler;
import cn.mulanbay.business.handler.HandlerCmd;
import cn.mulanbay.business.handler.HandlerResult;
import cn.mulanbay.common.exception.MessageNotify;
import cn.mulanbay.common.util.DateUtil;
import cn.mulanbay.common.util.StringUtil;
imp... | 32.471186 | 154 | 0.62731 |
84586beddc887266d8ea7aa7d76aa1276f47dc99 | 2,888 | package io.slingr.endpoints.googlecontacts.services.entities;
import io.slingr.endpoints.utils.Json;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* <p>Created by lefunes on 19/06/15.
*/
public class Where exte... | 31.053763 | 125 | 0.544668 |
d71cb6f1fc0e69f09c2f7ec4492cfbecec852209 | 2,295 | package org.glt.netty.client;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChanne... | 45 | 100 | 0.668845 |
119b3e90217de6e8ef1f74297bfa8f4fdfef9327 | 4,859 | /*
* Copyright (c) 2018 STMicroelectronics – All rights reserved
* The STMicroelectronics corporate logo is a trademark of STMicroelectronics
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* - Redistributions... | 40.157025 | 117 | 0.716197 |
f0b6ebfb9117b377b8aea237433772f117e2b440 | 3,825 | package com.sa.cloud.center.system.controller;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagi... | 31.61157 | 126 | 0.679477 |
bb216c11371d81dc4022668ea4b8c76a717ce461 | 25,613 | package club.towr5291.Concepts;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.util.ElapsedTime;
import java.text.SimpleDateFormat;
import java.util.Date;
import ja... | 44.084337 | 306 | 0.573146 |
8f4405ff2528e803a42484d909959b4a8fb43a84 | 1,528 | package com.github.kakashimamun.utils;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
/**
* This class is copied from https://github.com/chen0040/java-data-frame
*/
public class CollectionUtils {
public static <T> List<T> clone(List<T> that, Function<T, T> transformer) ... | 24.645161 | 78 | 0.570681 |
c21c20430e023887448dd2ffab54fc3ef20b4882 | 401 | package com.github.plplmax.marvelcharacters.data.remote.responses;
public class CharacterDataWrapperResponse {
public int code;
public String status;
public CharacterDataContainerResponse data;
public CharacterDataWrapperResponse(int code, String status, CharacterDataContainerResponse data) {
... | 30.846154 | 103 | 0.735661 |
bd0ca6b9cae4f2b5a5d2580d5838efefe07778ef | 5,022 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 36.656934 | 126 | 0.701115 |
60e8593eea7603cce4f68a35d1980f932a7403d6 | 6,901 | package com.wemall.foundation.log;
import java.lang.reflect.Method;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.AfterThrowing;... | 35.209184 | 113 | 0.576728 |
5b3adeb0d1228e6e2df1b556aa1c6988f9245357 | 2,407 | package es.amplia.oda.subsystem.sshserver.internal;
import es.amplia.oda.subsystem.sshserver.configuration.SshConfiguration;
import org.apache.felix.service.command.CommandProcessor;
import org.apache.sshd.server.ServerBuilder;
import org.apache.sshd.server.SshServer;
import org.apache.sshd.server.auth.password.UserA... | 34.385714 | 118 | 0.710012 |
7d3aa46afd80bd056fd0186a57436709eff88c2e | 230 | package com.dsmanioto.httpimages;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class HttpImagesSpringBootApplicationTests {
@Test
void contextLoads() {
}
}
| 16.428571 | 60 | 0.804348 |
41c7f75323dbe0ac8fce9ed9a187b6f0fd73c757 | 12,636 | /*
* 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.989873 | 155 | 0.43938 |
a13566cc80ada7126cc1ae188097c96b14127d00 | 8,114 | /* Copyright (c) 2014, 2015 Qualcomm Technologies Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted (subject to the limitations in the disclaimer below) provided that
the following conditions are met:
Redistributions of source code must retain the... | 31.571984 | 85 | 0.628543 |
1e1538c6e7ea0312c882b3b0f18a4f5b404a07bf | 952 | package com.belean.payroll.database;
import com.belean.payroll.domain.Employee;
import java.util.Map;
/**
* @author belean
* @date 2021/10/7
*/
public interface PayrollDatabase {
/**
* 根据empId获取雇员
* @param empId
* @return
*/
Employee getEmployee(int empId);
/**
* 获取所有雇员
... | 15.866667 | 57 | 0.567227 |
7b982711875e468c848aa8bded63d90b534c9165 | 2,829 | package com.creditease.ns.controller.chain.def;
import com.creditease.framework.util.StringUtil;
import com.creditease.framework.util.XMLUtil;
import com.creditease.ns.chains.chain.Command;
import com.creditease.ns.chains.def.AbstractAtomicElementDef;
import com.creditease.ns.controller.chain.command.DefaultPublishCom... | 22.452381 | 96 | 0.709084 |
16e4af2fd4461d40abc04cb85cfa098430cdf804 | 686 | package nl.karatemaccie.javaversion.bungee;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.chat.TextComponent;
import net.md_5.bungee.api.plugin.Command;
import net.md_5.bungee.api.plugin.Plugin;
import nl.karatemaccie.javaversion.api.JavaVersionAPI;
public class BungeeJavaVersion extends Plugi... | 28.583333 | 130 | 0.768222 |
f1b412575dd2f718b056eca0a6f6bd9bb9d579d9 | 2,364 | package fca.core.context.triadic;
import fca.core.util.BasicSet;
import java.text.NumberFormat;
public class TriadicRule {
BasicSet antecedant;
BasicSet consequence;
String condition;
double support;
boolean cai;
public TriadicRule(BasicSet antecedant, BasicSet consequence, String condition, double support) {... | 24.122449 | 124 | 0.717428 |
ad3e4b08f2123d7281d2c28df4b259e33bdc8a6c | 13,884 | package com.poratu.idea.plugins.tomcat.conf;
import com.intellij.openapi.fileChooser.FileChooserDescriptorFactory;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.module.ModuleUtilCore;
import com.intellij.openapi.options.ConfigurationException;
import com.intellij.openapi.options.SettingsEditor... | 47.875862 | 192 | 0.684385 |
6fdb3e1839c7dda10584f5ee9d70584fc8a2c74c | 3,440 | package ru.job4j.dsagai.lesson3.food;
import java.util.Date;
/**
* Abstract class Food
* @author dsagai
* @version 1.01
* @since 12.01.2017
*/
public abstract class Food {
//Brand or name
private final String name;
//Date of creation
private final Date createDate;
//Final date when food unq... | 21.5 | 104 | 0.564826 |
ae1fb8bc0dafea717c935f39dd902644dd699aa1 | 4,267 | /*
* Copyright 2015-2016 Mark Prins, GeoDienstenCentrum.
*
* 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 notice,
* ... | 32.572519 | 85 | 0.740567 |
0178d0e4985e27311453967ba893e43fd438aa9f | 1,353 | /**
*
*/
package com.netcetera.trema.maven;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import org.sonatype.plexus.build.incremental.BuildContext;
import com.netcetera.trema.core.exporting.OutputStreamFactory;
/**
* Creates an output stream using a
* {@link org.sonatype.plexus... | 24.160714 | 82 | 0.753141 |
94076f080e720343f53f06e7232be94ae2f6991d | 343 | package com.example;
public class printout {
public static void main(String[] args) {
System.out.println(" '__'");
System.out.println(" (oo)");
System.out.println(" +========\\/ ");
System.out.println(" / || %%% ||");
System.out.println("* ||-----||");
System.out.println(" \... | 24.5 | 43 | 0.483965 |
0176678035702dcfcb9447c2c9a388e736bd9a3d | 2,858 | package io.quarkiverse.doma.deployment;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import javax.inject.Inject;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.shrinkwrap.api... | 32.850575 | 131 | 0.604969 |
036011b0e860577fdb103ecd32c9ff4cdd183be5 | 1,262 | package com.pedro.rtsp.rtcp;
import android.util.Log;
import com.pedro.rtsp.rtsp.RtpFrame;
import java.io.IOException;
import java.io.OutputStream;
/**
* Created by pedro on 8/11/18.
*/
public class SenderReportTcp extends BaseSenderReport {
private OutputStream outputStream;
private byte tcpHeader[];
publ... | 25.755102 | 92 | 0.692552 |
8ddf4cc8a2449f087f8a838815b2812357028396 | 1,760 | package com.example.dependency.di.framework.utils;
import com.example.dependency.di.framework.annotations.CustomAutowired;
import com.example.dependency.di.framework.annotations.CustomQualifier;
import com.example.dependency.di.injector.CustomInjector;
import java.lang.reflect.Field;
import java.util.HashSet;
import ... | 34.509804 | 105 | 0.639773 |
ae104e0875f86700d84098d78be80315d00f31d2 | 12,153 | /**
* This file is part of Aion-Lightning <aion-lightning.org>.
*
* Aion-Lightning is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ver... | 47.287938 | 143 | 0.490085 |
ffff706320dc63e8d7922a2ce8db5b1e485e4e68 | 1,843 | package net.foxdenstudio.foxsuite.foxcore.api.object.link.node;
import net.foxdenstudio.foxsuite.foxcore.api.object.FoxObject;
import net.foxdenstudio.foxsuite.foxcore.api.object.link.LinkContainer;
import net.foxdenstudio.foxsuite.foxcore.api.object.reference.types.LinkReference;
import net.foxdenstudio.foxsuite.foxc... | 32.333333 | 126 | 0.721107 |
1c63688f283e8f26f79e9fd7168c142710e8b1f3 | 1,401 | package eventcenter.builder.local;
import eventcenter.aggr.Student;
import eventcenter.aggr.listeners.DefaultClassroomListener;
import eventcenter.aggr.listeners.EncodeMobileListener;
import eventcenter.aggr.listeners.ScoreListener;
import eventcenter.aggr.listeners.SplitListener;
import eventcenter.api.support.Defaul... | 38.916667 | 83 | 0.710207 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.