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 |
|---|---|---|---|---|---|
05547ce68eda99547d69fc5c49aba85c202bc1d7 | 869 | package com.king.applib.util;
import java.io.Closeable;
import java.io.IOException;
/**
* IO 相关工具类。
*
* @author VanceKing
* @since 2016/10/20
*/
public class IOUtil {
private IOUtil() {
throw new UnsupportedOperationException("No instances!");
}
/**
* 关闭流对象,忽略异常。
*/
public stat... | 20.209302 | 72 | 0.50748 |
eddc3518a20c9c65b851615f892356efe313c1ae | 3,700 | /*
* Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.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
... | 37.755102 | 144 | 0.646216 |
0902866ab2f939025eba87d564bab9401bdd8a7c | 6,718 | /*
* 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 ... | 37.954802 | 118 | 0.677136 |
6caa6c69b753e324cbf88dcbde50f470d68ee3f6 | 803 | import java.util.Scanner;
class SortWords {
public static void main(String[] args) {
System.out.println("Enter a list of 10 words: ");
Scanner sc = new Scanner(System.in);
String strings[] = new String[10];
for (int i = 0; i < 10; i++) {
strings[i] = sc.nextLine();
... | 26.766667 | 59 | 0.438356 |
3a6c4c3afa250d8e77a1dc693a288357f233dcb2 | 1,510 | /*
* Copyright 2015 West Coast Informatics, LLC
*/
package com.wci.umls.server.test.jpa;
import org.apache.log4j.Logger;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import com.wci.umls.server.helpers.ConfigUtility;
import com.wci.umls.server.test.hel... | 20.972222 | 71 | 0.62649 |
b1d895ea3b62fcd9546659593aeab36bacd32f00 | 319 | package com.ibm.pojo;
import com.ibm.pojo.ImmunizationResource.Immunization;
import io.quarkus.kafka.client.serialization.ObjectMapperDeserializer;
public class ImmunizationDeserializer extends ObjectMapperDeserializer<Immunization> {
public ImmunizationDeserializer(){
super(Immunization.class);
}
}
| 29 | 86 | 0.808777 |
6044794a5eb6ab793c84c75897225c34842c0393 | 5,011 | package com.devblogs.test;
import java.util.HashSet;
import java.util.Set;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
import ... | 36.576642 | 95 | 0.693474 |
e528cda37206979554fd329bede1b827d3da3f5d | 947 | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002, 2014 Oracle and/or its affiliates. All rights reserved.
*
*/
package com.sleepycat.je.dbi;
/**
* Used to distinguish Cursor put operations.
*/
public enum PutMode {
/**
* User operation: Cursor.putCurrent. Replace dat... | 24.282051 | 79 | 0.658923 |
4231e697b1b72e392bf5775ad811239ec54f5849 | 56,060 | /*
* Copyright (c) 2008-2019 Geode Systems LLC
*
* 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 ag... | 32.292627 | 140 | 0.482073 |
209075fa0c855317697549321b0f6ef39940c6dd | 851 | package z.rethink.net;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.LengthFieldBasedFrameDecoder;
import io.netty.util.CharsetUtil;
import java.nio.ByteOrder;
public class RMsgDecoder extends LengthFieldBasedFrameDecoder {
private static final int M... | 28.366667 | 85 | 0.666275 |
97f50016535c5944e2cc577ae40b9225e8c54e48 | 1,411 | /*
* Copyright 2019 JSquad AB
*
* 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... | 30.673913 | 111 | 0.738483 |
895a6aaf6d58a3bbf0d8239fbd832304ca66df45 | 1,375 | package tn.esprit.Repositories;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import tn.esprit.model.DetailProduit;
import tn.esprit.model.Produit... | 41.666667 | 113 | 0.775273 |
4c60d7f1c26b0c7c993f89e1003aead4b2821c7e | 1,509 | // -*- mode: java -*-
// Copyright (c) 2015 Olaf Dietsche
package de.olafdietsche.android.widget;
import java.util.Arrays;
import java.util.List;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
public abs... | 22.522388 | 89 | 0.732273 |
30dc8b0616155d1c0451fa47cf5bf8a7ddee46c1 | 2,490 | /**
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
* IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS
* BE LIABLE F... | 33.648649 | 77 | 0.500803 |
729291cc4f882ca5b2949349f4b66c75f933f903 | 12,698 | package pdl.parser;
import org.antlr.v4.runtime.tree.ParseTree;
import pdl.ast.*;
import pdl.parser.antlr.PdlBaseVisitor;
import pdl.parser.antlr.PdlParser;
import java.util.*;
import java.util.stream.Collectors;
public class PdlProgramVisitor extends PdlBaseVisitor<PdlAst>
{
private KripkeFrame frame;
priva... | 37.568047 | 132 | 0.568515 |
e3819acd811306261838408613e224c0a82864f6 | 2,044 | /*
* Copyright 2015 AndroidPlot.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 ... | 31.9375 | 140 | 0.599315 |
9067a789eee8d768888a3ab97739492d26ebee59 | 1,870 | /**
*
* Copyright (C) 2010 Cloud Conscious, LLC. <info@cloudconscious.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 L... | 31.694915 | 82 | 0.704278 |
12a4f390be60b4d77aafc5c2c6303cc8bc7e904a | 1,764 | /*
* 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, software
* distribut... | 34.588235 | 99 | 0.764739 |
fa0a9b0d58ff5cb0a76dfb3a36dd1f87ccfaeae7 | 17,736 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
package software.amazon.awssdk.crt.test;
import static software.amazon.awssdk.crt.utils.ByteBufferUtils.transferData;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.Test;
import s... | 39.501114 | 217 | 0.602898 |
707938031d5519e4e6e095733cebd69ae723a4c3 | 7,994 | package net.minecraft.server;
import java.util.Random;
public class WorldGenCaves extends WorldGenBase {
public WorldGenCaves() {}
protected void a(long i, int j, int k, Block[] ablock, double d0, double d1, double d2) {
this.a(i, j, k, ablock, d0, d1, d2, 1.0F + this.b.nextFloat() * 6.0F, 0.0F, 0.0... | 38.618357 | 148 | 0.320365 |
0d54308445d4ef587e2b132f79bdd30c419e4eec | 1,365 | package com.springboot.cloud.util;
import com.google.common.reflect.TypeToken;
import com.google.gson.Gson;
import com.nimbusds.jose.JWSObject;
import lombok.extern.slf4j.Slf4j;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;
/**
* @Author: lirisheng
* @Date: 2021/5/5 ... | 29.042553 | 112 | 0.610989 |
424d531d031737c31153c59e9f8408db2a59ffdd | 272 | package com.brahalla.PhotoAlbum.dao;
import com.brahalla.PhotoAlbum.domain.entity.File;
import org.springframework.data.jpa.repository.JpaRepository;
public interface FileRepository extends JpaRepository<File, Long> {
public File findByFilename(String filename);
}
| 22.666667 | 67 | 0.819853 |
1465a9bdf083c0165cdea9c3027cd08bd5910000 | 400 | package seedstonemod.block;
import net.minecraft.util.ResourceLocation;
public class CobbleseedstoneHalfSlab extends CobbleseedstoneSlab {
public CobbleseedstoneHalfSlab(ResourceLocation rl) {
super(false);
this.setRegistryName(rl);
this.setUnlocalizedName(rl.getResourcePath());
... | 25 | 67 | 0.69 |
f33a15f74bf996454aeab0cef6faf97d9d7f1c7d | 192 | package bean;
public interface IVehicle {
int getId();
void setId(int id);
Client getClient();
void setClient(Client client);
double getCostHour();
}
| 12 | 35 | 0.588542 |
89aa6c758198594beab603bee10f13d8da40aeae | 196 | package com.vehicle.framework.aop.advice;
/**
* @author HALOXIAO
* @since 2020-06-18 09:29
**/
public interface AroundAdvice extends AfterReturningAdvice, MethodBeforeAdvice, ThrowsAdvice {
}
| 21.777778 | 94 | 0.765306 |
06efaddc446163025282c47c17d5b5659a8eb948 | 63 | package com.example.cookhub.pojo;
public class Ingredient {
}
| 12.6 | 33 | 0.777778 |
d13960600b2dcfbfbf9072c7ee9aa4d9a3454f94 | 928 | package com.agilie.dribbblesdk.service.retrofit.services;
import com.agilie.dribbblesdk.domain.Project;
import com.agilie.dribbblesdk.domain.Shot;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
public interface DribbbleProjectsService {
/**
* Get a pro... | 25.777778 | 107 | 0.581897 |
82bfceb7c2f11b7358c93152e538f993388549b4 | 4,760 | package seedu.address.model.application;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.commands.CommandTestUtil.VALID_ADDRESS_GARENA;
import static seedu.address.logic.commands.CommandTestUtil.VALID_EMAIL_GARENA;... | 44.485981 | 116 | 0.727731 |
fb82e9671164dbc72a1451600acba087222b654d | 3,999 | package org.sec.core.asm.system;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
import org.sec.core.jvm.CoreMethodAdapter;
import org.sec.model.CallGraph;
import org.sec.model.ClassReference;
import org.sec.model.MethodReference;
import java.util.Set;
publi... | 39.99 | 105 | 0.51888 |
b949c46e278d9bd56b1fcd7154e8f93fa44fa0ae | 1,033 | package com.application.isradeleon.notifyexample;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.application.isradeleon.notify.Notify;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onC... | 38.259259 | 141 | 0.672798 |
090f121c50023c4128a617e82ee99d638dfa36ac | 1,391 | /*
* Copyright 2018 Nextworks s.r.l.
*
* 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... | 26.75 | 75 | 0.748382 |
d9ce1871db57b483a1b09e5dd8357bed1ea3f09c | 11,700 | /*
* Copyright (C) 2016 Lynn
*
* 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... | 37.741935 | 109 | 0.620769 |
7ea4985df95e0ea8b0b933d19a80a5f05e28c955 | 483 | package org.contentmine.graphics.svg.symbol;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
public class Plus extends AbstractSymbol {
private final static Logger LOG = LogManager.getLogger(Plus.class);
public final static String PLUS_SIGN = "+";
public Plus() {
super()... | 20.125 | 68 | 0.749482 |
aca363b753dd8d7008ebeb8e32ef78f1f05df173 | 820 | package uk.gov.hmcts.reform.fpl.validation.validators;
import org.apache.commons.lang3.StringUtils;
import uk.gov.hmcts.reform.fpl.model.ChildParty;
import uk.gov.hmcts.reform.fpl.validation.interfaces.HasGender;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import ... | 41 | 116 | 0.804878 |
54f3d95019b9bacc56589781595e124a88a213ac | 1,582 | public class Sphere{
static char[] shades = {'.', ':', '!', '*', 'o', 'e', '&', '#', '%', '@'};
static double[] light = { 30, 30, -50 };
private static void normalize(double[] v){
double len = Math.sqrt(v[0]*v[0] + v[1]*v[1] + v[2]*v[2]);
v[0] /= len; v[1] /= len; v[2] /= len;
}
pr... | 35.954545 | 82 | 0.39823 |
c6ca5fa417f082f750ef90408ca49fc006d5fce0 | 735 | package hso.autonomy.tools.util.jogl.integration.renderer;
import hso.autonomy.tools.util.imageBuffer.ImageFile;
public class DebuggingGLRendererParams
{
private final ImageFile imageFile;
private final String title;
private final String description;
private final boolean active;
public DebuggingGLRendererPa... | 17.093023 | 104 | 0.756463 |
a0ea9c7dfa6c7bdfe6726210100be00f870b5258 | 888 | /* Copyright (C) 2016 Graham Anderson gandersonsw@gmail.com - All Rights Reserved */
package com.graham.sqlclient.ui.databrowser;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import com.graham.sqlclient.SqlClientApp;
import com.graham.appshell.data.DataUI;
public class NewRelActio... | 29.6 | 85 | 0.761261 |
b0b0c923e7fae2e9262ce4e6add2e824b617455a | 5,182 | package com.bitwait.bitrade.job;
import java.io.IOException;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... | 28.472527 | 130 | 0.664029 |
accd2e2a4d2e5e2cc71ce40efb5537420b4640ab | 782 | package javax.visrec.ml.detection;
import javax.visrec.ml.ClassificationException;
import javax.visrec.util.BoundingBox;
import java.util.List;
import java.util.Map;
/**
* Interface to perform object detection in image.
* Returns a map of object labels/classes and corresponding location in image outlined b... | 27.928571 | 105 | 0.70844 |
1193bbf3e25b1c916bc80b44fa0c11895002f12f | 2,252 | package carpetfixes.mixins.conversionFixes;
import carpetfixes.CarpetFixesSettings;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.mob.MobEntity;
import net.minecraft.network.packet.s2c.play.EntityPositionS2CPacket;
impo... | 43.307692 | 156 | 0.699822 |
1c153f5a590ec3780eabedc9915a8184d9201b0b | 8,557 | /*
*
* 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"); y... | 32.169173 | 154 | 0.694052 |
1ae564fab18a9f9a6df9d2a3c97817f6a0a360dc | 1,592 | /*-
* #%L
* rapidoid-gui
* %%
* Copyright (C) 2014 - 2018 Nikolche Mihajlovski and contributors
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lic... | 27.929825 | 99 | 0.716709 |
8f7ca3b6507dccb6f49aab8c3f79ab8f29219e0c | 746 | package org.iplantc.service.jobs.model.enumerations;
public enum WrapperTemplateAttributeVariableType implements WrapperTemplateVariableType
{
// job value macros
IPLANT_JOB_NAME,
AGAVE_JOB_NAME,
AGAVE_JOB_NAME_RAW,
AGAVE_JOB_ID,
AGAVE_JOB_APP_ID,
AGAVE_JOB_EXECUTION_SYSTEM,
AGAVE_JOB_BATCH_QUEUE,
AGAVE_JOB_B... | 23.3125 | 87 | 0.869973 |
5638dd61388cf2b42f99717e1635192f670d9d2b | 9,320 | package com.summithillsoftware.ultimate.model;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.json.JSONArray;... | 28.765432 | 121 | 0.709013 |
3c8a55a185944e24948a8930f85f2a3ead8cc228 | 3,527 | package org.innovateuk.ifs.competitionsetup.applicationformbuilder.builder;
import org.innovateuk.ifs.form.domain.Section;
import org.innovateuk.ifs.form.resource.SectionType;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public final class SectionBuilder {
private String... | 30.938596 | 116 | 0.709952 |
af409e0c36f7cabde7351ecec2405bc08758eadf | 506 | package com.hask.pc.haskmusic;
import android.app.Application;
import android.content.Context;
import android.graphics.ColorSpace;
import android.support.multidex.MultiDex;
import org.litepal.LitePal;
import org.litepal.tablemanager.Connector;
public class AppContext extends Application {
@Override
protected... | 25.3 | 52 | 0.750988 |
5feaefe16699ba0bc2fc9e10d5bea8dc39ac7011 | 2,305 | package au.gov.qld.fire.domain.report;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persiste... | 24.521277 | 87 | 0.628633 |
8cc4def6f5b8f3d3748bd2134437850c2683b0c0 | 7,983 | package ngosecure.contract;
import com.google.common.collect.ImmutableList;
import net.corda.core.identity.CordaX500Name;
import net.corda.testing.core.TestIdentity;
import ngosecure.vo.NGOTransaction;
import org.junit.Test;
import static net.corda.finance.Currencies.*;
import static net.corda.testing.node.NodeTestUt... | 51.173077 | 177 | 0.614305 |
8e54a5351989dfbf92e56b49f2abb2e419a902be | 3,333 | package Controller;
import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.ButtonType;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent;
import javafx.stage.... | 29.758929 | 71 | 0.60006 |
bcd0962d4515f3476c1e491c9536535c0ee8ffd7 | 1,716 | /*
* 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.2 | 71 | 0.742424 |
c9eeea501e95e1a86f81eff61da94ee29df20d78 | 1,286 | package com.wallee.android.sdk.request.model.base;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by simonwalter on 26.07.17.
*/
public class LocalizedString implements Parcelable {
private String displayName;
private String language;
private String string;
protected Localiz... | 22.561404 | 91 | 0.635303 |
a7c000105aa1ebe9bba165016f152de3434cff43 | 20,078 | /*
* Copyright to the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 40.97551 | 119 | 0.551848 |
ba5e3abb124d6eb9a1a1000e2285955d23e2e908 | 4,232 | package com.dosmike.spsauce.raw;
import com.dosmike.spsauce.Executable;
import com.dosmike.spsauce.Plugin;
import com.dosmike.spsauce.PluginSource;
import com.dosmike.spsauce.am.SourceCluster;
import com.dosmike.spsauce.utils.InOut;
import com.dosmike.spsauce.utils.Ref;
import java.io.File;
import java.io.IOException... | 44.083333 | 131 | 0.601371 |
522eee5ad9ab91e7f3af078eaec9b585d3a08842 | 3,865 | /*
* #%L
* ListIndexesTest.java - mongodb-async-driver - Allanbank Consulting, Inc.
* %%
* Copyright (C) 2011 - 2014 Allanbank Consulting, 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... | 29.96124 | 92 | 0.668823 |
1f6e5e2b96298e6d97ac1696f4f690313771a067 | 597 | package com.shumeng.application.softm.organization.vo;
public class SysDepartmentInfoVo {
public int pageNumber;
public int pageSize;
public String organizationId;
public int getPageNumber() {
return pageNumber;
}
public void setPageNumber(int pageNumber) {
this.pageNumber = pageNumber;
}
public int get... | 18.090909 | 55 | 0.755444 |
34e44054754952e011e00a192470fa31baeeb4cb | 1,817 | package zust.logistics.config;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.buil... | 30.79661 | 94 | 0.711613 |
012eac82ba0d270ab6bf267f2ee3b7d18ac85815 | 2,114 | package com.flutterwave.raveandroid.rave_presentation.rwfmobilemoney;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import androidx.annotation.Nullable;
public interface RwfMobileMoneyPaymentCallback {
/**
* Called to indicate that a background task is running, e.g. a network call... | 44.978723 | 187 | 0.737465 |
83732de05b4128e2afa52f775bc7a58aa53f492f | 316 | package com.adouge.core.mybatis.intercept;
import org.apache.ibatis.plugin.Invocation;
/**
* @author : Vinson
* @date : 2020/6/12 1:22 下午
*/
public interface QueryInterceptor {
Object intercept(Invocation invocation) throws Throwable;
default int getOrder() {
return Integer.MAX_VALUE;
}
}
| 19.75 | 61 | 0.702532 |
38822af5114985799577630b50da4aa8dc88f568 | 393 | package fizzbuzz;
public class FizzBuzzImpl implements FizzBizz {
@Override
public String execute(int number) {
if (number % 15 == 0) {
return "FizzBuzz";
} else if (number % 3 == 0) {
return "Fizz";
} else if (number % 5 == 0) {
return "Buzz";
... | 21.833333 | 47 | 0.493639 |
60bef3f539d4f48bbd78fb8ae076ed4d1cec566b | 4,109 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.management.appservice.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.util.... | 30.664179 | 101 | 0.708688 |
6a913e579d29338dbf71ad8b2a546cadd7be2642 | 386 | package com.codetaylor.mc.artisanworkstumps.modules.workstumps.tile.workstump;
import java.util.Random;
public enum EnumDamagedSide {
// Do not reorder, ordinal used in serialization
// None must be at ordinal 0
None, East, West, South;
public static EnumDamagedSide getRandomSide(Random random, EnumDamagedSi... | 25.733333 | 86 | 0.759067 |
94e789a928c341bea2d852b93b7b562cc1d385d9 | 2,855 | package com.ruiyun.jvppeteer.protocol.runtime;
/**
* Mirror object referencing original JavaScript object.
*/
public class RemoteObject {
/**
* Object type. "object"|"function"|"undefined"|"string"|"number"|"boolean"|"symbol"|"bigint";
*/
private String type;
/**
* Object subtype hint. Spe... | 24.612069 | 165 | 0.636077 |
cb0937013bf996fc338dab33e98862859c751d3d | 359 | package common;
import error.OTMErrorLog;
import error.OTMException;
public interface InterfaceScenarioElement {
Long getId();
ScenarioElementType getSEType();
void validate(OTMErrorLog errorLog);
// void initialize(Scenario scenario) throws OTMException;
// void register_with_dispatcher(Dispatcher... | 22.4375 | 61 | 0.763231 |
ad1aa2312cff9c963869c2c9c5f95d25364a2f98 | 13,928 | /* See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Esri 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
*
... | 32.240741 | 108 | 0.671166 |
b5ec4c1c8aa00b8cc597232e374cf53f004926ab | 2,371 | /*
Copyright (C) 2013-2018 Expedia 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 wri... | 40.87931 | 86 | 0.704344 |
e6c370c60a29ac6142dd0cf5804caca2aa4d0dda | 126 | package com.system.distribute.file.monitor;
public interface Monitor {
public void start();
public void stop();
}
| 12.6 | 43 | 0.698413 |
8b7529da388330c5af4f98f04635ccae3487eb1e | 2,323 | /*
*
* Copyright 2020 EMBL - European Bioinformatics Institute
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 31.821918 | 111 | 0.737839 |
1436bced035d7418124a9ef8ce12f47c300a0f31 | 3,176 | /*
* MIT License
*
* Copyright (c) 2016 Altisource
*
* 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, modi... | 34.901099 | 89 | 0.688917 |
ef18497742d9337bb19532b45ae20d60286b89ee | 11,370 | /*
* (c) Copyright 2020 Palantir Technologies 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 ... | 55.194175 | 120 | 0.749252 |
b3fba35f67d41858671daecf25894c45a0d74916 | 1,874 | /*
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.746032 | 99 | 0.694771 |
07a5e27fef19e7f848f5293dc893de382caf968b | 2,389 | package io.leangen.graphql.microprofile;
import io.leangen.graphql.util.Utils;
import org.eclipse.microprofile.graphql.Name;
import javax.json.bind.annotation.JsonbProperty;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
... | 28.783133 | 92 | 0.627878 |
6c01b0291c63009da0435b7012f3baab0d366c8a | 12,415 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 37.966361 | 142 | 0.631011 |
14268d57db7e814d888131ca86ac87cec513d4f0 | 8,421 | package gov.uspto.patent.doc.greenbook.items;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.regex.Pattern;
import javax.naming.directory.InvalidAttributesException;
import org.dom4j.DocumentHelper;
import org.dom4j.Node;
import org.dom4j.XPath;
impor... | 41.078049 | 114 | 0.658473 |
3520e4918ff3afc3cd1dbaec5fcc46febfac9efc | 2,780 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.rule.properties;
import static net.sourceforge.pmd.lang.rule.properties.ValueParser.BOOLEAN_PARSER;
import java.util.Map;
import net.sourceforge.pmd.PropertyDescriptorFactory;
import net.sourcefo... | 33.902439 | 137 | 0.665108 |
fa1e0bd9224b680a57a14208028649e5495f7f3f | 559 | package com.github.lahahana.xtrpc.server.http;
public @interface ExportAsHttpService {
/**
* Service will only be exported as HTTP
*/
boolean exportAsHttpServiceOnly() default false;
/**
* the http port of http service
*/
int port() default 8081;
/**
* Default value will... | 25.409091 | 128 | 0.67263 |
307bf229b655fb1072f81e4a0e024651be35d29a | 7,418 | package com.gxsn.androiddb.db;
import android.database.Cursor;
import android.text.TextUtils;
import com.gxsn.androiddb.Model.TableModel;
import java.util.ArrayList;
import java.util.List;
/**
* Created by zkj on 2016/12/01
* GreatWall
*/
public class TableSqlManager extends SqlManager {
private static Ta... | 33.872146 | 160 | 0.559315 |
d96e1541428f14e1b67936fe4ecc7bc83a55025d | 377 | package com.craft_ai.exceptions;
public class CraftAiInvalidContextException extends IllegalArgumentException {
private static final long serialVersionUID = -1655975348951167296L;
public CraftAiInvalidContextException(String message) {
super(message);
}
public CraftAiInvalidContextException(String messag... | 26.928571 | 78 | 0.798408 |
4e52104c626a959ddbc4d6626c4c437817f623bd | 2,486 | package com.example.sensorlistener2.bean;
import android.media.MediaPlayer;
import android.util.Log;
import android.widget.TextView;
import java.io.File;
public class MusicPlayer {
private static final String TAG="MusicPlayer";
public MediaPlayer mediaPlayer; // 播放器
public String playStatus; // 播放状态
... | 34.054795 | 96 | 0.502816 |
38c2f2af588d2a36bc0ac408bf2b4cdc5d482397 | 280 | package com.accenture.andrew.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class MainPageController {
@GetMapping("/")
public String greeting() {
return "index";
}
} | 21.538462 | 58 | 0.75 |
1ad1328f3e47e1b69ae3bd97a17da66f6fcfe381 | 1,349 | package uk.gov.hmcts.futurehearings.hmi.acceptance.resources;
import uk.gov.hmcts.futurehearings.hmi.Application;
import uk.gov.hmcts.futurehearings.hmi.acceptance.hearings.HearingValidationTest;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.TestInstance;
impor... | 34.589744 | 94 | 0.787991 |
5299db5cee6ce8910beded49255abd8868c9492f | 4,848 | package br.com.ifsp.aluno.allex.simuladorfinanciamento.model;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import java.io.Serializable;
import br.com.ifsp.aluno.allex.simuladorfinanciamento.Constants;
import br.com.ifsp.aluno.allex.simuladorfinanciamento.enums.TipoFinanciamento;
... | 29.381818 | 133 | 0.685644 |
61a16aa440cdbed150d74466ab19fe643fc8bd1c | 7,680 | package com.mhs.qsol.proximity;
import com.mhs.qsol.proximity.distribute.BasicDistributable;
import com.mhs.qsol.proximity.distribute.Distributable;
import com.mhs.qsol.proximity.distribute.GroupDistributable;
import com.mhs.qsol.proximity.distribute.ProxInfo;
import org.apache.lucene.search.BooleanClause.Occu... | 26.947368 | 79 | 0.617318 |
db8fdf1164dad16323b7f7e0613f453bf92c6c10 | 2,958 | package com.synopsys.integration.detectable.detectables.cran;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.synopsys.integration.bdio.graph.DependencyGra... | 45.507692 | 160 | 0.768087 |
2830a1f1254858f54acc60f477946e1c402477a4 | 1,258 | package dfa.framework;
/**
* A {@code DFAFactory} provides the name and direction of a dataflow analysis. It creates a {@code DataFlowAnalysis}
* from a given {@code SingleTailedBlockGraph}.
*
* @author Sebastian Rauch
*
* @param <E>
* the type of {@code LatticeElement} used by this {@code DFAFactory}
... | 33.105263 | 117 | 0.67806 |
894d416cb0f869c520449ae98fc197ad127edce4 | 2,802 | /*
* Copyright (c) 2005-2010, 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.o... | 35.468354 | 148 | 0.676303 |
f8184c706f1dadddd3860404c5c923cf0f78ad03 | 1,611 | package org.spongepowered.spunbric.mod;
import com.google.inject.Inject;
import org.spongepowered.api.Game;
import org.spongepowered.api.GameState;
import org.spongepowered.api.SystemSubject;
import org.spongepowered.api.client.Client;
import org.spongepowered.api.scheduler.Scheduler;
import org.spongepowered.api.serv... | 25.171875 | 91 | 0.705152 |
c9e183c42339c5af7c5c1fc043bf6d0e3055ac23 | 5,175 | /* Copyright (c) 2011 Danish Maritime Authority.
*
* 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 l... | 30.263158 | 122 | 0.645411 |
b2dad9bd155b45ad12ad3930dc5f0ebdeea0aee9 | 1,903 | package com.zhanjixun.ihttp.test.server;
import com.alibaba.fastjson.JSON;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.handler.codec.http.DefaultFullHttpResponse;
import io.netty.handler.codec.http.FullHttpResponse;
import io.netty.handler.codec.http.HttpResponseStatus;
import io.n... | 32.810345 | 131 | 0.693116 |
db4b6a86b9e81c1faaa66e62e3b1d5814be45823 | 271 | package sql.client;
import java.sql.ResultSet;
public interface DataBaseConnection {
void connect(String url) throws ConnectionException;
ResultSet executeQuery(String query) throws QueryException;
void executeUpdate(String update) throws QueryException;
}
| 27.1 | 63 | 0.800738 |
6964f5625cce15ed2acc91c0ba19414c51045078 | 3,373 | /*
* Copyright 2018-2019 the Justify 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 law... | 36.268817 | 107 | 0.653721 |
c0e9462112614c5fb73da71c907082f6eed13814 | 3,196 | import java.util.*;
public class solutionOfLab8A {
static class node {
char letter;
int frequency;
node(char letter, int frequency) {
this.letter = letter;
this.frequency = frequency;
}
}
static class IntComparator implements Comparator<node>{
... | 31.029126 | 105 | 0.475594 |
1d6bf78a5027adeeb29afb2f824f95ba9e8de7d7 | 1,294 | /*
* Copyright 2021 magaofei
*
* 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 ... | 31.560976 | 124 | 0.744977 |
bcb415ce564705da8c8ffec1c569c7a12cc53295 | 7,944 | package com.example.android.miwok;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.media.RemoteControlClient;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.... | 43.409836 | 129 | 0.649673 |
5f7a7486dd355d14bc61dd1df8e8ca661c974bc9 | 1,986 | /*
*
*/
package com.github.icelyframework.activitystorming.diagram.providers.assistants;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import com.github.icelyframework.activitystorming.diagram.providers.Act... | 38.192308 | 110 | 0.845418 |
035d163b1320a245f352b42dffc8caabd651d85e | 1,663 | package uz.support.v14.app;
import android.os.Parcel;
import android.os.Parcelable;
import uz.support.v14.R;
public class Setting implements Parcelable {
public static final String SETTING = "uz.support.v14.app.setting";
public final int logoResId;
public final String title;
public final String sub... | 26.822581 | 99 | 0.620565 |
41bf785af0b6632144bff7f97245c05f3d245960 | 1,393 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.support.v4.view;
import android.view.View;
import android.view.ViewGroup;
public class NestedScrollingParentHelper
{
public NestedScrol... | 26.283019 | 65 | 0.591529 |
266b11669c73c53eb6a56c0104b83642c2c60b99 | 921 | package nextstep.auth.authentication.converter;
import com.fasterxml.jackson.databind.ObjectMapper;
import nextstep.auth.authentication.AuthenticationToken;
import nextstep.auth.token.TokenRequest;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
public class TokenAuthenticationConverter imp... | 36.84 | 89 | 0.783931 |
94b6053b0f76418f10e164672461bbcb0c9f07bb | 972 | package com.google.api.client.auth.oauth2;
import com.google.api.client.http.HttpRequest;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
final class BearerToken$AuthorizationHeaderAccessMethod implements Credential$AccessMethod {
static final String HEADER_PREFIX = "Bearer ";
pub... | 31.354839 | 92 | 0.687243 |
19883fecd775deb97c71d8b7bd816eb42ac98768 | 670 | package com.specialyang.consolecommand;
import com.specialyang.packet.JoinGroupRequestPacket;
import com.specialyang.util.LogUtil;
import io.netty.channel.Channel;
import java.util.Scanner;
/**
* Created by Fan Yang in 2018/12/1 4:15 PM.
*/
public class JoinGroupConsoleCommand implements ConsoleCommand {
@Ove... | 25.769231 | 85 | 0.744776 |
6ed54c49e806376d17dbee9d845ff8f103fe547a | 1,086 | package me.mindlessly.notenoughcoins.commands.subcommands;
import me.mindlessly.notenoughcoins.utils.ConfigHandler;
import me.mindlessly.notenoughcoins.utils.Utils;
import net.minecraft.command.ICommandSender;
import net.minecraftforge.common.config.Configuration;
public class MinPercent implements Subcommand {
p... | 30.166667 | 115 | 0.660221 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.