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 |
|---|---|---|---|---|---|
24f5371530973137b2e31e9768983463f45d1708 | 320 | package co.ulock.api.mapper;
import org.mapstruct.Mapper;
import co.ulock.api.data.Group;
import co.ulock.api.view.FullGroupView;
import co.ulock.api.view.GroupView;
@Mapper
public interface GroupMapper {
Group map(FullGroupView groupView);
GroupView map(Group group);
FullGroupView detail(Group findOne);
}
| 16.842105 | 39 | 0.778125 |
6fb4888d8d19ca93d68a182c6bdf94b03a11a152 | 442 | package j;
import fs.FsCookBook;
import java.io.IOException;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
public class JavaCookBookTest {
@Test
void newPomDependenciesTest() throws IOException {
String importsFromJavaFile = FsCookBook.contentOfFile("t... | 29.466667 | 90 | 0.766968 |
dc2ad8e29c0980591ba0370225ec7feb1d13ed14 | 1,890 | /*
* Decompiled with CFR 0.150.
*/
package nl.matsv.viabackwards;
import java.io.File;
import java.net.URL;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import us.myles.ViaVersion.util.Config;
public class ViaBackwardsConfig
extends Config
implements nl.matsv.viabackwards.api.ViaBackwa... | 25.890411 | 96 | 0.703175 |
56b67ffa6fdb340b60ae5caa49a25aa355acd40e | 2,160 | package org.pimslims.data;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import junit.framework.Assert;
import junit.framework.TestCase;
import org.pimslims.dao.AbstractModel;
import org.pimslims.dao.ModelImpl;
import org.pimslims.dao.WritableVersion;
import org.pimslims.exc... | 40.754717 | 111 | 0.679167 |
c6c9040c7b249c9c262c8a8f8f591f2239c4a7cf | 189 | package uk.gov.ons.ctp.response.action.export.config;
import lombok.Data;
/**
* Config for ExportScheduler
*
*/
@Data
public class ExportSchedule {
private String cronExpression;
}
| 13.5 | 53 | 0.740741 |
9b765a145cd003eba32d087ce55e3d17a62e1194 | 1,400 | package com.dreamers.explorer.placedetail.modal;
import android.os.Parcel;
import android.os.Parcelable;
import java.io.Serializable;
/**
* Created by c029312 on 2/7/18.
*/
public class GeoLocation implements Serializable, Parcelable{
public double lat;
public double lng;
public GeoLocation(double l... | 22.222222 | 105 | 0.623571 |
c0000778ce74ca000247f0c0e1c8649d38a233c6 | 6,599 | package edu.dair.sgdb.gserver;
import org.apache.commons.cli.*;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
/**
* @author zhangwei
*/
public... | 32.995 | 105 | 0.522503 |
a0f34adf9c29f0c7ea7ad007533091be3b541dec | 4,765 | package remoteclock;
import remoteclock.Time;
public class Clock extends javax.swing.JPanel {
private Time time;
private Thread thread;
private boolean suspended = true;
public Clock() {
initComponents();
time = new Time();
thread = new Thread() {
public void run(... | 40.042017 | 143 | 0.60042 |
4eeb019fcf0a9e71a2604f80bc0088a8a0e5805b | 3,057 | package MerchantOfVenus;
import javax.swing.*;
import java.util.*;
import java.awt.event.*;
import java.awt.*;
public class StarPanel extends JPanel implements ActionListener
{
private static final long serialVersionUID = 1L;
Dimension preferred;
Random rand;
private static final int animTime = 100;
private st... | 22.477941 | 97 | 0.605823 |
5ccfdfdc489fb1bbe94b1ac8f4cfe95c2ab1e4bf | 9,163 | /*
* 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")... | 33.811808 | 105 | 0.631562 |
2b743573c81ce0ab68fe41e786e88c65e82c97d3 | 4,610 | package com.minerarcana.transfiguration.entity;
import com.minerarcana.transfiguration.api.TransfigurationType;
import com.minerarcana.transfiguration.content.TransfigurationAttributes;
import com.minerarcana.transfiguration.content.TransfigurationEntities;
import com.minerarcana.transfiguration.item.ITransfiguring;
i... | 40.086957 | 122 | 0.709328 |
8b675bb6f9d18b483ff2544794a351d678e88672 | 2,303 | package com.iscte.mei.ads.schedules.api.services;
import com.iscte.mei.ads.schedules.api.entities.Schedule;
import com.iscte.mei.ads.schedules.api.entities.ScheduleStatus;
import com.iscte.mei.ads.schedules.api.entities.Score;
import com.iscte.mei.ads.schedules.api.repositories.ScheduleRepository;
import com.iscte.mei... | 30.302632 | 98 | 0.712549 |
03b07170867424d0d12305435c382e4206a00b94 | 343 | import java.util.Scanner;
class CheckNum {
public static void main(String[] args) {
Scanner myObj = new Scanner(System.in); // Create a Scanner object
System.out.println("Enter username");
String userName = myObj.nextLine(); // Read user input
System.out.println("Username is: " + userName); // ... | 31.181818 | 73 | 0.676385 |
0d88034880a828d06df721e55296b8eab97bf9ab | 548 | package com.emrekose.popularmoviesstage2.base;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import dagger.android.support.AndroidSupportInjection;
public abstract class BaseFragment extends Fragment {
... | 24.909091 | 63 | 0.779197 |
f7b32db2100a80efe3727cc8911426a177609596 | 999 | package pers.miracle.miraclecloud.system.entity;
import com.baomidou.mybatisplus.annotation.TableId;
/**
* 角色
*
* @author: 蔡奇峰
* @date: 2020/8/10 下午3:51
*/
public class Role {
@TableId("role_id")
private String roleId;
/**
* 角色名称
*/
private String name;
/**
* 是否锁定 默认正常 0 锁定 ... | 16.65 | 51 | 0.512513 |
197783c98a0392a4940ac4b1b2705b157ae6e694 | 2,342 | /*
* Copyright © Contributing Authors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | 37.174603 | 173 | 0.681896 |
1ba49d0866c2af8ab7d32776e35d362bf19f38bc | 18,289 | package com.guanglun.atouch.upgrade;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.DownloadManager;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.pm.PackageInfo;... | 36.287698 | 142 | 0.559899 |
b64d17b3e8a3cabed4fdea1c47a7df3a079e2908 | 1,115 | package de.unikoblenz.west.splodge.mapdb;
import org.mapdb.DBMaker;
/**
* Options to configure the used instance cache of MapDB.
*
* @author Daniel Janke <danijankATuni-koblenz.de>
*
*/
public enum MapDBCacheOptions {
NONE {
@Override
public DBMaker<?> setCaching(DBMaker<?> dbmaker) {
ret... | 19.224138 | 60 | 0.644843 |
9ea2ac4179a5a5822509aff242f4bedc1fd7b09e | 228 | package org.ontosoft.shared.classes;
import org.ontosoft.shared.classes.entities.Model;
public class ModelSummary extends SoftwareSummary {
public ModelSummary(Model model) {
super(model);
}
public ModelSummary() {
}
}
| 17.538462 | 51 | 0.767544 |
ebf9c4e013fe68adcd994de2b6be3e61784cdbcd | 641 | package com.artech.synchronization;
import java.util.TreeMap;
import json.org.json.JSONArray;
public interface ISynchronizationHelper {
// methods to sync from procs
public short syncSend();
public short syncReceive();
public short syncStatus();
public short syncCheckPoint();
// methods to sync blobs (send)... | 29.136364 | 173 | 0.792512 |
980534789c29a417f4a49fbc183af4662e89501c | 1,104 | package com.example.android.testing.notes.notes;
import com.example.android.testing.notes.R;
import static android.support.test.espresso.action.ViewActions.click;
import static android.support.test.espresso.action.ViewActions.closeSoftKeyboard;
import static android.support.test.espresso.action.ViewActions.typeText;
... | 36.8 | 97 | 0.748188 |
045a6ada22b2471a7d219b9aac136d39b5d7eb2e | 3,461 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.sokovision.graphics.visualization;
import java.awt.GridLayout;
import javax.swing.JPanel;
import javax.swing.JLabel;
impor... | 37.215054 | 95 | 0.691708 |
4ee360a54e441f482acb79382d921ecde48eca9f | 1,243 | package com.atlassian.clover.instr.tests;
import com.atlassian.clover.util.FilterUtils;
import java.io.File;
public class AntPatternTestDetectorFilter implements TestDetector {
final String[] includeFilter;
final String[] excludeFilter;
private final String projectRoot;
public AntPatternTestDetector... | 35.514286 | 109 | 0.742558 |
cc1727bc1991e40df220d99eb1cc7ecfad806e15 | 3,248 | package com.SWF.user.dao;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;
import com.SWF.user.dto.AttendenceDTO;
import com.SWF.user.d... | 24.238806 | 101 | 0.710283 |
24217f34be2440bef9df249a894524bc64370560 | 466 | package io.github.wechaty.schemas;
import lombok.Data;
import lombok.ToString;
import java.util.List;
/**
* @author Zhengxin
*/
@Data
@ToString
public class RoomInvitationPayload {
private String id;
private String inviterId;
private String topic;
private String avatar;
private String invi... | 13.705882 | 38 | 0.718884 |
375bfc2ac3f9951883e48208a2616fd38564bc20 | 98 | package study.huhao.demo.domain.core.concepts;
public interface AggregateRoot extends Entity {
}
| 19.6 | 47 | 0.816327 |
5ce170eced84ae80b9800ebca5a66793f69a9dee | 344 | package com.example.springbootcrud.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class MsgInfo {
private String errorMsg;
private String successMsg;
... | 19.111111 | 48 | 0.80814 |
4fc0fec6273872ec3fa20719c2497c96edeab02e | 356 | package com.wuwenxu.codecamp.base.bean;
import lombok.Data;
import java.util.Date;
/**
* 树形结构
*/
@Data
public class TreeBean {
/*节点ID*/
private String treeId;
/*节点名称*/
private String treeName;
/*父节点ID*/
private String parentId;
/*创建时间*/
private Date createTime;
/** 节点下的子节点 */
... | 14.24 | 39 | 0.629213 |
d03284766aaed6a1ef8f684cb8705d0e411ab41d | 1,030 | package com.dhanush;
import com.dhanush.linkedList.DoublyLinkedList;
import com.dhanush.linkedList.SinglyLinkedList;
import java.util.LinkedList;
public class Main {
public static void main(String[] args) {
System.out.println("Singly Linked List part here");
SinglyLinkedList<Integer> list1 = new... | 32.1875 | 67 | 0.631068 |
2bdd3738ac454ba971080b98fe0a969e9f25c1a2 | 3,890 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.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/license... | 29.694656 | 101 | 0.652442 |
72c66ab662704ff419a0ab600019dd5e1deca1f2 | 5,258 | package com.pedro.rtmpstreamer.openglexample;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
... | 29.706215 | 99 | 0.687334 |
7a403c0bbdea950d816489d0aa045fd0c8dbba0e | 701 | package com.bnsantos.chapter1;
public class Question5 {
public static String compress(String input){
if(input==null){
return null;
}else if(input.length()<3){
return input;
}
StringBuffer compressed = new StringBuffer();
char aux = input.charAt(0);
int count = 1;
for(int i=1;i<input.length()... | 17.974359 | 47 | 0.611983 |
fe71e8142ec9879dd2db5ea1ad556aeca762d5df | 5,550 | /*
* Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
*
* License for BK-BASE 蓝鲸基础平台:
* ----------------------------------------------... | 46.638655 | 114 | 0.717477 |
1563238675af710787f0d313060715dfad577640 | 3,476 | /*
* Copyright 2018 Fabio Santos Almeida <livre.programacao at gmail.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
*
* Unl... | 27.370079 | 91 | 0.644419 |
5a56294d423d67bc1b73085d8d146b317aa2aff5 | 1,719 | package com.github.akovalchuk;
/**
* Leetcode. 53. Maximum Subarray
*/
public class MaxSubArray {
public static int maxSubArrayKadanes(int[] nums) {
if (nums == null || nums.length == 0) return 0;
int max = nums[0];
int prev = nums[0];
for (int i = 1; i < nums.length; i++) {
... | 29.637931 | 63 | 0.503781 |
605eed49e49d8bb0cf347214a9c3a3820ba32b6f | 11,394 | package org.zeroturnaround.process;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Additional helper methods for killing processes and waiting until they finish.
* <p>
* Here all methods... | 47.278008 | 245 | 0.741004 |
3113e3a5ec677cf74846c95b6e831314721e7d00 | 10,083 | // This file was generated automatically by the Snowball to Java compiler
// http://snowballstem.org/
package com.mordred.wordcloud.stemmer;
/**
* This class was automatically generated by a Snowball to Java compiler
* It implements the stemming algorithm defined by a snowball script.
*/
@SuppressWarnings("unuse... | 26.18961 | 103 | 0.410493 |
08350bf3147cff035fc6e0a303cc204198eb0637 | 250 | package node;
public class NormalNode {
// receive block
// verify transactions in block and calculate transaction root
// execute transactions in block and calculate state root
// verify block
// add block to local blockchain
}
| 25 | 66 | 0.716 |
88972cd480b8a4cbcafabe922a5eb7e9ae407d57 | 541 | package com.dnsimple.data;
public class DomainCheck {
private final String domain;
private final Boolean available;
private final Boolean premium;
public DomainCheck(String domain, Boolean available, Boolean premium) {
this.domain = domain;
this.available = available;
this.prem... | 20.807692 | 75 | 0.643253 |
fef568d3e9ee07f72961044c5d3944833cb22fa6 | 72 | package ru.job4j.tracker;
public class Engineer extends Profession {
}
| 14.4 | 42 | 0.791667 |
e21aaf3ef986992834bb9164d12e302c1701c9f1 | 100 | package bank;
public class PersonCore extends Person {
public PersonCore() {
super();
}
}
| 11.111111 | 40 | 0.66 |
4ff1fe4722730ce6b7ebc4b4573ab61e942feb45 | 905 | package myAtoi;
class Solution {
public int myAtoi(String str) {
long out_t = 0;
int start_flag = 0;
int pos_flag = 0;
for (int i = 0; i < str.length(); i++) {
char temp = str.charAt(i);
if (start_flag == 0) {
if (temp == ' ') {
continue;
} else if (Character.isDigit(temp)) {
pos_flag ... | 21.046512 | 48 | 0.499448 |
31d90e80ed69fc672abde5e09e1e8fd40742c4c8 | 13,094 | /*
* 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 m... | 48.139706 | 465 | 0.659157 |
dee1b739ce5642e484617939b998d10b4903122a | 470 | package models.dao;
import java.util.List;
import models.entity.DateCondition;
import net.vz.mongodb.jackson.JacksonDBCollection;
import play.modules.mongodb.jackson.MongoDB;
public class DateConditionsDAO {
private static JacksonDBCollection<DateCondition, String> coll = MongoDB
.getCollection("Date... | 26.111111 | 74 | 0.76383 |
b443c54578619a63493d540eea21414060adbab4 | 439 | package com.koch.ambeth.security;
import com.koch.ambeth.service.model.ISecurityScope;
public class TestAuthorizationManager implements IAuthorizationManager {
@Override
public IAuthorization authorize(String sid, ISecurityScope[] securityScopes,
IAuthenticationResult authenticationResult) {
return new Default... | 33.769231 | 78 | 0.829157 |
38a5f062fee2d4b16ae04e45a65c48cfcfc1a6d7 | 3,891 | package com.oasisfeng.nevo.sdk;
import android.app.Notification;
import android.app.Notification.Action;
import android.graphics.drawable.Icon;
import android.os.Parcel;
import android.support.test.InstrumentationRegistry;
import org.junit.Test;
import java.util.Arrays;
import java.util.function.BiConsumer;
import j... | 47.45122 | 140 | 0.762529 |
d0afac224dd6ff5d281be885d896580706f7bbcd | 1,165 | package pokecube.core.moves.implementations.attacks.special;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import pokecube.core.interfaces.IPokemob;
import pokecube.core.interfaces.capabilities.CapabilityPokemob;
import pokecube.core.interfaces.pokemob.moves.MovePacket;
import po... | 32.361111 | 83 | 0.672103 |
00e72f0e4c85a0a32857fd22b046002c3d0dda75 | 9,822 | package com.example.mmmut;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.ActionBarDrawerToggle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.core.view.GravityCompat;
import androidx.drawerlayout.w... | 36.243542 | 117 | 0.692425 |
8417b71151b2774b384f556fb4398fe771f6f9af | 8,423 | // SPDX-FileCopyrightText: 2021 Michel Nass
//
// SPDX-License-Identifier: MIT
package plugin;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import scout.AppState;
import scout.StateController;
public class Mimic
{
private static final int POPULATION = 10... | 25.75841 | 107 | 0.662472 |
500b7c9787f59126e3245fc530b8483cefea59f6 | 1,804 | package com.rosetta.model.lib;
import com.rosetta.model.lib.meta.RosettaMetaData;
import com.rosetta.model.lib.path.RosettaPath;
import com.rosetta.model.lib.process.AttributeMeta;
import com.rosetta.model.lib.process.Processor;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public inte... | 39.217391 | 168 | 0.758315 |
0488b7787ede82199511252ec5b8d9b63e7ea5e1 | 2,104 | package ru.betterend.particle;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.multiplayer.ClientLevel;
import net.minecraft.client.particle.Particle;
import net.minecraft.client.particle.ParticleProvider;
import net.minecraft.client.particle.SimpleAnimatedParti... | 30.057143 | 142 | 0.690589 |
0b7b0054ed6ef2615fe7e7ed9efca2c4ec1269a6 | 1,102 | package com.example.android.pets.database;
import android.net.Uri;
import android.provider.BaseColumns;
public final class PetContract {
public static final String CONTENT_AUTHORITY = "com.example.android.pets";
public static final Uri BASE_CONTENT_URI = Uri.parse("content://" + CONTENT_AUTHORITY);
publi... | 32.411765 | 96 | 0.722323 |
ac661d291aad9e954c6f633732217b05bea79f24 | 2,278 | package com.dev.reactor.operador.error;
import java.util.ArrayList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.dev.reactor.model.Persona;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
public class ErrorOperador {
private static final Logge... | 28.475 | 83 | 0.653644 |
8b8eeb22f4a9e0634fd04e92d1737b863b484f8e | 962 | private static boolean addToZip(String addFileFromThisDir, File addThis, ZipOutputStream zos) {
if (addThis.isDirectory()) return false;
String entryPath;
String addThisPath = addThis.getAbsolutePath();
if (!addThisPath.startsWith(addFileFromThisDir)) {
System.out.println... | 37 | 99 | 0.549896 |
f5a5880e27c9a280babe0ae2680b25e1236abd1d | 1,147 | package com.project.example.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.project.example.domain.Stock;
import com.project.example.entity.Stock_sum;
import com.project.example.mapper.StockMapper;
@Service("St... | 22.490196 | 62 | 0.768091 |
1c95c1a7c53be9f2f041010fb7ebb6d42f55ef8f | 4,737 | package uk.gov.companieshouse.document.generator.accounts.mapping.smallfull.mappers;
import uk.gov.companieshouse.accountsdates.AccountsDatesHelper;
import uk.gov.companieshouse.accountsdates.impl.AccountsDatesHelperImpl;
import uk.gov.companieshouse.api.model.accounts.smallfull.AccountingPoliciesApi;
import uk.gov.co... | 52.633333 | 160 | 0.771585 |
bebebbf551f625688691bad52cd716576d973844 | 4,758 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package minetweaker.mc1710.data;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
i... | 27.50289 | 81 | 0.729929 |
8d5e4a13b7a0ad65cf8683563c5d24db1178c6b1 | 7,449 | package uk.gov.pay.connector.paymentprocessor.service;
import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
import io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder;
import io.dropwizard.setup.Environment;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.moc... | 49.66 | 196 | 0.790844 |
6a8c11f670832f062e22b1b0e0621466aa6d1c08 | 1,904 | package com.xj.zk.listener;
import org.apache.zookeeper.Watcher.Event.EventType;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* Author: xiajun
* Date: 14/5/20
* 监听器管理类
*/
public class ListenerManager {
//监听器
private Listener listener;
private Map<Str... | 22.4 | 93 | 0.660189 |
e0e5959fd420d0a1f6107c27b7d62873a022908b | 2,557 | package openNLP;
import java.io.FileInputStream;
import java.io.InputStream;
import opennlp.tools.cmdline.PerformanceMonitor;
import opennlp.tools.postag.POSModel;
import opennlp.tools.postag.POSSample;
import opennlp.tools.postag.POSTaggerME;
import opennlp.tools.tokenize.Tokenizer;
import opennlp.tools.tokeni... | 46.490909 | 730 | 0.70395 |
eff146f6977eaac0393915b8bafbf1a758223885 | 435 | package leetcode.quicksort;
public class App
{
public static void main( String[] args )
{
//int[] nums = {3, 2, 1, 5, 6, 4};
//int k = 2;
int[] nums = {3, 2, 3, 1, 2, 4, 5, 5, 6};
int k = 4;
Solution solution = new Solution();
int kthLargest = solution.... | 22.894737 | 72 | 0.510345 |
90ba6c2c600d46ad53afa144bdbc035719e499b7 | 3,693 | package com.gempukku.swccgo.logic.modifiers;
import com.gempukku.swccgo.common.CardCategory;
import com.gempukku.swccgo.common.Filterable;
import com.gempukku.swccgo.common.Side;
import com.gempukku.swccgo.filters.Filters;
import com.gempukku.swccgo.game.PhysicalCard;
import com.gempukku.swccgo.game.state.GameState;
i... | 45.592593 | 189 | 0.731925 |
ac5a7396875de22f5b6f9529534fa65179b27b22 | 594 | package implDAO;
import conexusDTO.PerfilDTO;
import iDAO.IPerfilDAO;
public class PerfilDAO implements IPerfilDAO {
@Override
public boolean save(PerfilDTO perfilObjDTO) {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean update(PerfilDTO perfilObjDTO) {
// TODO Auto-generated ... | 18 | 54 | 0.752525 |
e1fd3fdb15673fef7fc80022ca1e0ae8807a0063 | 283 | package geeksforgeeks;
/*
* http://www.geeksforgeeks.org/amazon-interview-set-8/
* Find the Kth largest integer in a Binary Search Tree.
*/;
public class _01AmazonInterview_08_02 {
public static void main(String[] args) {
//Try reverse inorder traversal
}
} | 21.769231 | 57 | 0.69258 |
e9177eb7e48cfca694ce5927d1a72883ec5b927c | 6,539 | /***
Copyright (c) 2008-2012 CommonsWare, 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 agreed to in w... | 35.73224 | 91 | 0.631595 |
3318feaac9904f3e554eebeb82c6fc9be4c146da | 333 | package novamachina.exnihilomekanism.common.utility;
public class ExNihiloMekanismConstants {
public class ModIds {
public static final String EX_NIHILO_MEKANISM = "exnihilomekanism";
private ModIds() {
}
}
public class Ore {
public static final String OSMIUM = "osmium";
private Ore() {... | 15.857143 | 71 | 0.687688 |
c68562600c2bed5f4121127d7fd51eecce97c442 | 58,651 | /*
* This file was automatically generated by EvoSuite
* Mon Nov 30 02:04:31 GMT 2020
*/
package wheel.asm;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org... | 29.252369 | 176 | 0.601882 |
fd88ea3a43e01554998cd1c3c53f41c1e4849421 | 668 | package org.libsmith.sql;
import java.util.Optional;
/**
* @author Dmitriy Balakin <dmitriy.balakin@0x0000.ru>
* @created 08.11.2015 2:55
*/
public interface ResultListOfOptionals<T> extends ResultList<Optional<T>> {
/**
* Возвращает первый элемент из списка или {@link Optional#empty()}, если это пустая к... | 31.809524 | 121 | 0.709581 |
1bb16a7ea33631a87f3277745f12e25c6f187c23 | 576 | package top.janker.pattern.singleton;
/**
* @author janker
* @date 2022/3/30
* <p>
* Blog: https://www.share-java.com
* Github: https://github.com/janker0718
*/
public class DCLSingleton {
private volatile static DCLSingleton singleton;
private DCLSingleton(){}
public static DCLSingleton getSingleto... | 23.04 | 51 | 0.569444 |
795a558ee0d4c9ed73248b78b1c3cecb15271e5d | 1,499 | package org.seltak.anubis.commandmanager;
import java.util.ArrayList;
import org.seltak.anubis.commandmanager.commands.BindCommand;
import org.seltak.anubis.commandmanager.commands.FindPlotsCommand;
import org.seltak.anubis.commandmanager.commands.FriendCommand;
import org.seltak.anubis.commandmanager.commands.PlotChe... | 53.535714 | 150 | 0.761174 |
ef7227fd1104736b28b233a53c3eb9a1e5ee815e | 8,975 | package backend;
import backend.resource.Model;
import backend.resource.MultiModel;
import backend.resource.TurboIssue;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.logging.log4j.Logger;
import prefs.Preferences;
import ui.UI;
import util.Futures;
import util.HTLog;
import util.Utility;
impor... | 36.632653 | 117 | 0.642006 |
499377fa5f16a5a1a063f68a63709a74deb96afb | 741 | package com.github.venth.training.webflux.grpc;
import com.github.venth.training.webflux.grpc.grpc.GrpcConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.github.venth.training.webflux.grpc.jackson.JacksonConfiguration;
impo... | 32.217391 | 75 | 0.751687 |
366fc2f85c13eeee12bd401a6c9cca3f14da2b37 | 80 | package com.clouck.validator;
public enum Level {
INFO, WARNING, ERROR;
}
| 11.428571 | 29 | 0.7 |
388b4b735475ab12396dc36834c27fc022f9c931 | 1,370 | package com.baeldung.requestmapping;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.http.MediaType;
import org.springframework.test.context.junit... | 38.055556 | 95 | 0.748905 |
9e835ed1283fed66377cd3c31ed306cec81277c1 | 1,869 | /**
*
*/
package com.x7700.smm.commons.bean;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.x7700.smm.commons.constant.CommonExceptionCode;
import com.x7700.smm.commons.exception.BeanCopyException;
import ma.glasnost.orika.MapperFactory;
import ma.glasnos... | 37.38 | 121 | 0.683253 |
2f4c0c3445765833b129a648f1a575b0be7038e0 | 1,860 | /*
* #%L
* Talend :: ESB :: Job :: Controller
* %%
* Copyright (c) 2006-2021 Talend Inc. - www.talend.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:... | 33.214286 | 84 | 0.709677 |
2d703858cc538d4a2ed8fbd80f1e10c1df184e82 | 1,436 | package org.seqcode.projects.seqview.components;
import javax.swing.*;
import org.seqcode.genome.sequence.*;
import java.awt.event.*;
public class SeqViewToolsMenu extends JMenu {
private final RegionPanel panel;
public SeqViewToolsMenu(RegionPanel p) {
super("Tools");
panel = p;
... | 29.306122 | 87 | 0.543872 |
5e0eb7e1a94957fdffc49934222ad83aae67955c | 2,920 | package com.github.jinahya.database.metadata.bind;
/*-
* #%L
* database-metadata-bind
* %%
* Copyright (C) 2011 - 2021 Jinahya, 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 a... | 31.73913 | 127 | 0.700685 |
be276b419acc10c2b37e26e4ec508ec4ee2ca65c | 1,670 | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.javaFX.actions;
import com.intellij.icons.AllIcons;
import com.intellij.ide.fileTemplates.FileTemplate;
import com.intellij.ide.fileTemplates.FileTe... | 42.820513 | 140 | 0.822754 |
0e24534687e7a8187c433de9f8d3dbb92efc2e39 | 1,181 | package com.madaoo.sonarqube.checks.naming;
import org.sonar.check.Rule;
import org.sonar.plugins.java.api.JavaFileScanner;
import org.sonar.plugins.java.api.JavaFileScannerContext;
import org.sonar.plugins.java.api.tree.BaseTreeVisitor;
import org.sonar.plugins.java.api.tree.ClassTree;
/**
* 异常类命名使用Exception结尾
*/
... | 31.078947 | 89 | 0.758679 |
4ea803c611a017d9ccbdfbeb902a56eea57d2221 | 8,924 | /*
* Copyright 2020-present Open Networking Foundation
*
* 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 appli... | 37.974468 | 117 | 0.666965 |
bce6541e4ba028fd68ba1cfb3778bad0102841b5 | 3,032 |
package elpoeta.felurian.web.server;
import elpoeta.felurian.domain.Usuario;
import elpoeta.felurian.repository.impl.UsuarioRepositoryImpl;
import elpoeta.felurian.util.GsonUtil;
import elpoeta.felurian.util.ValidarEmail;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;
import j... | 34.067416 | 112 | 0.619393 |
98d33c95c0ef586f7525af153a42ebcbcc31664a | 9,816 | package grimsi.accservermanager.backend.service;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import grimsi.accservermanager.backend.configuration.ApplicationConfiguration;
import grimsi.accservermanager.backend.dto.InstanceDto;
import grimsi.accservermanager.backend.exception.CouldNotCreateFolderE... | 42.678261 | 162 | 0.681438 |
89bfaaa9c4b11b21e2767315fdab54428e3e2a87 | 5,878 | package com.github.riyaz.bakingapp.screens.steps.fragments;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.... | 30.774869 | 92 | 0.731031 |
81735b9671c1e41b991cbc288f8e0b4ddc53e0d3 | 5,642 | package com.krishagni.catissueplus.core.biospecimen.events;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.krishagni.catissueplus.core.administrative.events.StorageLocationSummary;
import com.krishagni.catissueplus.core.common.events.UserSummary;
import com.krishagni.catissueplu... | 19.522491 | 84 | 0.765154 |
e850b6b07c0ef267dee151a1b62cf2643cf7217a | 2,693 | package com.ichess.fastswisspairing;
import com.ichess.jvoodoo.*;
import junit.framework.TestCase;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import java.util.logging.Logger;
import org.junit.*;
import static org.junit.Assert.*;
public class TestFirstRou... | 34.974026 | 110 | 0.654289 |
eae26cd0ac8170cdedd8f527d354da036404864f | 1,350 | package com.chaos.thriftplus.core.client;
import org.apache.commons.pool2.impl.GenericObjectPool;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.apache.thrift.protocol.TProtocol;
/**
* Created by zcfrank1st on 8/31/16.
*/
public class ThriftConnectionPool implements ConnectionProvider {
... | 28.125 | 84 | 0.652593 |
796139c530ca51ba620ad1cd2f3de6910ac522a1 | 4,860 | /*
* Copyright (c) 2015, Eric A Maginniss
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of... | 32.61745 | 90 | 0.643004 |
28134dc21bb5c894b8d5654b5b22108d539f0af0 | 8,062 | package com.ubs.ws;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ubs.ws.model.Message;
import com.ubs.ws.service.Checker;
import com.ubs.ws.service.XChange;
import com.ubs.ws.utils.WsTestUtils.MyStompFrameHandler;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.cli... | 38.574163 | 129 | 0.703051 |
57ad141d7fd42a8a2279847a6cff759d212858e6 | 4,926 | package sc.ustc.dao;
import sc.ustc.dao.config.JDBCEntity;
import sc.ustc.dao.config.ORMUserEntity;
import sc.ustc.dao.config.ProperityEntity;
import java.lang.reflect.Field;
import java.sql.*;
import java.util.List;
public class Conversation {
public static Object getObject(Object o) throws SQLException {
... | 36.488889 | 135 | 0.525579 |
b3fa0f6aff395ed6cf9de6c5e8f7183525d1aaf7 | 1,464 | package cn.xuexuan.newui.ui.coordinatordemo;
import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.view.View;
import android.widget.Button;
/**
* Created by Jant on 2017/3/20.
*/
public class Coor... | 25.241379 | 119 | 0.702869 |
9226f504ceca67f42e3c750ef848e2b868ff3b11 | 2,331 | package com.sphinx.hopy.customer.domain;
import java.util.Date;
public class Customer {
private String customerId;// PK, 순차적으로 증가하는 id
private boolean isAdmin;// 관리자인지 여부
private String sphinxId;// 실제 사용자들이 입력한 계정Id
private String password;
private boolean del;
private String name;
private String ph... | 20.094828 | 71 | 0.649078 |
5d17fe70bc3a1568a2c0fbf0db2390914b696b67 | 481 | /*
* Copyright (c) 2018. University of Applied Sciences and Arts Northwestern Switzerland FHNW.
* All rights reserved.
*/
package rocks.process.pizza;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.... | 21.863636 | 93 | 0.777547 |
037ab8636884d91be5d0bd7bb29e692af9c35a6c | 5,750 | package org.openecomp.sdc.be.components.merge.instance;
import fj.data.Either;
import org.openecomp.sdc.be.components.merge.VspComponentsMergeCommand;
import org.openecomp.sdc.be.components.merge.property.DataDefinitionsValuesMergingBusinessLogic;
import org.openecomp.sdc.be.dao.api.ActionStatus;
import org.openecomp.... | 55.825243 | 229 | 0.770261 |
5e443ae8be99b7a2d78fb7652cb623b2d495aa1e | 2,098 | /**
* Copyright 2005-2017 Dozer 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 applicable law or a... | 24.682353 | 76 | 0.699714 |
26ed35d7071f4eaf8df2f3c5bf05bf54d8a1866a | 2,723 | package my;
import org.apache.camel.CamelExecutionException;
import org.apache.camel.Predicate;
import org.apache.camel.RoutesBuilder;
import org.apache.camel.builder.PredicateBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.jsonpath.JsonPath;
import org.apache.camel.processor.validation.... | 38.352113 | 116 | 0.662505 |
4cacd65eb354ccdc8c372c93f5bd77856a744de0 | 3,246 | package com.zphaonu.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class MainActivity extends AppCompatActivity {
private Button btn0, btn1, btn2, btn3, btn4, btn5, ... | 30.622642 | 100 | 0.510166 |
1bdfd6539344fb8a2b7e0b1ce36b6331f787a722 | 1,051 | package com.redescooter.ses.web.ros.service.base.impl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import com.redescooter.ses.web.ros.dao.base.OpeFactoryMapper;
import ... | 33.903226 | 114 | 0.768792 |
22c3fd17501df9cb53780b62992cd3714158c74b | 2,239 | package se.gustavkarlsson.rocketchat.jira_trigger;
import org.slf4j.Logger;
import se.gustavkarlsson.rocketchat.jira_trigger.configuration.MessageConfiguration;
import se.gustavkarlsson.rocketchat.jira_trigger.converters.fields.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util... | 43.901961 | 99 | 0.799017 |
539e330866e6d9dc7b32c12085524ebd7c2485bb | 279 | package com.chihurumnanya.itransmit.listeners;
import com.chihurumnanya.itransmit.models.PlaceModel;
/**
* Listener for communication between PlaceListFragment and its host Activity
*/
public interface OnPlaceInteractionListener {
void onPlaceClicked(PlaceModel place);
} | 27.9 | 77 | 0.817204 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.