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 |
|---|---|---|---|---|---|
2691c1f9c5b4bf6f56effd67f4c9678e11e571de | 1,240 | /*
* Copyright 2010-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 29.52381 | 75 | 0.778226 |
90bfcb573f4264a6ac110ec1e4cabd35e3f713ca | 1,632 | /*
* 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 ... | 28.631579 | 138 | 0.691789 |
2b94ae869a0dae6b22b7b2d620fc1f1bfb7d9341 | 629 | package Exercicios;
import java.util.ArrayList;
import java.util.List;
public class Ex6 {
public static void main(String[] args) {
List<Integer> numeros = new ArrayList<>();
List<Integer> numerosPares = new ArrayList<>();
numeros.add(2);
numeros.add(3);
numeros.add(5);
... | 24.192308 | 64 | 0.535771 |
676b09c9c502b7881464816157b1b799aa8b194e | 305 | package com.rexx.rra;
import com.rexx.rra.registry.ModItems;
import net.fabricmc.api.ModInitializer;
public class rra implements ModInitializer {
public static final String MOD_ID = "rra81206";
@Override
public void onInitialize() {
ModItems.registerItems();
}
}
| 20.333333 | 52 | 0.685246 |
c2d57716d3038fffde1c1dafb23dd5e40c35a886 | 2,583 | /**
* Copyright (C) 2016-2019 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 agr... | 31.5 | 107 | 0.716221 |
a91c7459558a40d518d7ab1f982fca749138b780 | 288 | package net.sadovnikov.marvinbot.core.service.chat;
import net.sadovnikov.marvinbot.core.domain.Channel;
public abstract class AbstractChat {
public boolean isGroupChat() {
return false;
}
public abstract String chatId();
public abstract Channel channel();
}
| 19.2 | 52 | 0.725694 |
5592ad7c72529eb57d981f9f0b14468fc49f916e | 3,382 | /*
* Copyright (C) 2015 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 32.834951 | 100 | 0.703134 |
ced5c727cc78051997a0a1af353a1d48ed8787eb | 3,632 | package myy803.model.version;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import myy803.DocumentManager;
import myy803.commons.Files;
i... | 33.321101 | 111 | 0.741189 |
d287b4804982c4310f84efbf385cd9dfe3add9c2 | 1,129 | package com.robocon.leonardchin.capstone3.fragments;
public class DoubleParkReport {
public String latitude;
public String longitude;
public String car_plate;
public String time;
public String photoUrl;
public DoubleParkReport(String latitude, String longitude, String car_plate, String time, ... | 20.907407 | 112 | 0.630647 |
78d793cae636e6200f566b9c30c1d9e8bf79d5a0 | 925 | package cn.lliiooll.opq.core.managers.event.data;
import cn.lliiooll.opq.core.data.group.Group;
import cn.lliiooll.opq.core.managers.event.Event;
import cn.lliiooll.opq.core.managers.event.HandlerList;
import lombok.Getter;
/**
* 好友请求事件
*/
public class FriendRequestEvent extends Event {
private static HandlerLi... | 23.125 | 95 | 0.694054 |
f863e38216364ddfb4625322d1b658ca6a6d9985 | 38,499 | /*
* 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 ... | 41.665584 | 100 | 0.734409 |
9b0012d26333561195209593701d415c4b8f0d84 | 1,960 | package cl.usach.ingesoft.agendator.business.service;
import cl.usach.ingesoft.agendator.entity.CareSessionEntity;
import cl.usach.ingesoft.agendator.entity.OngEntity;
import java.util.Date;
import java.util.List;
public interface IAdministrationService {
/**
* Operation 5.
*
* @param careSession ... | 31.111111 | 103 | 0.698469 |
83615a4b445dd057852480a321f3bb6de91028b1 | 183 | package com.example.retrofit.downlaod;
/**
* 下载状态
* Created by WZG on 2016/10/21.
*/
public enum DownState {
START,
DOWN,
PAUSE,
STOP,
ERROR,
FINISH,
}
| 10.764706 | 38 | 0.584699 |
edcb7c13debf7b43ccc0039eaf4e13e603e66085 | 2,727 | package com.puresoltechnologies.javafx.reactive.flux;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertSame;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.ju... | 27.545455 | 83 | 0.700403 |
8087251bce7e30a740679ce08389ce9b172c3d4b | 1,386 | package data;
import java.util.*;
import static data.WarehouseRepository.getAllItems;
public class Warehouse {
// Fields
private int id;
List<Item> stock;
// Constructor
public Warehouse(int warehouseId) {
this.id = warehouseId;
this.stock = new ArrayList<>();
}
public... | 19.25 | 67 | 0.561328 |
2e4111afe6ceba72ffd72349a51e4c9e4e3f6c15 | 11,194 | /*
* This file is part of plugin-meta, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "So... | 39.695035 | 129 | 0.588619 |
981526a8ef3f0320102f955b76713e7ff0c58858 | 370 | package com.github.apachefoundation.jerrymouse.enumeration;
/**
* @Author: xiantang
* @Date: 2019/4/17 14:45
*/
public enum HttpStatus {
OK(200),NOT_FOUND(404),INTERNAL_SERVER_ERROR(500),BAD_REQUEST(400),MOVED_TEMPORARILY(302);
private int code;
HttpStatus(int code){
this.code = code;
}
p... | 23.125 | 94 | 0.664865 |
12ec87d1b045a3a7593cd817319e306640263103 | 520 | package com.pnu.spring.smartfactory.Mapper;
import java.util.List;
import java.util.Map;
import com.pnu.spring.smartfactory.DAO.InspectDAO;
import com.pnu.spring.smartfactory.DAO.RepairDAO;
public interface RepairMapper {
public void insRepair(Map<String, Object> param);
public void delRepair(Map<String, Object> p... | 26 | 77 | 0.792308 |
5ff495cc1b4a827eba19c17df0fb16ada5239df9 | 249 | /**
* Original: https://en.wikipedia.org/wiki/Interpreter_pattern#Java
*/
package pattern.behavioral.interpreter.calculator;
import java.util.Map;
public interface Expression {
public int interpret(final Map<String,Expression> variables);
}
| 22.636364 | 67 | 0.771084 |
25c6eb8067bbc039be3f2fdfab8aca688dfefc06 | 1,869 | package ch.uzh.ifi.group26.scrumblebee.security.utils;
import io.jsonwebtoken.*;
import io.jsonwebtoken.security.Keys;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Component;
import javax.crypto.SecretKey;
import java.util.Date;
import java.util.function.Func... | 31.677966 | 95 | 0.712681 |
699ce841084940ef539a0ccae4bae98de7956df6 | 18,357 | package org.hisp.dhis.common;
/*
* Copyright (c) 2004-2013, University of Oslo
* 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 copyrig... | 30.493355 | 138 | 0.612464 |
2545d7b017cd247365b81f8243c2fc45abfb213f | 1,367 | package dev.unethicalite.api.query.entities;
import dev.unethicalite.api.Interactable;
import net.runelite.api.Actor;
import org.apache.commons.lang3.ArrayUtils;
import java.util.List;
import java.util.function.Supplier;
public abstract class ActorQuery<T extends Actor, Q extends ActorQuery<T, Q>>
extends SceneEnt... | 18.726027 | 79 | 0.684711 |
8adbeebc7fbdac1689705269b0bbe89728a787b6 | 4,990 | package org.acme.dvdstore.controller;
import java.io.File;
import java.io.IOException;
import java.io.Reader;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
im... | 33.945578 | 100 | 0.704409 |
8e9a5e5913221977b03fe5ba249b260e5289671a | 7,705 |
package com.esotericsoftware.kryo.serializers;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import j... | 39.111675 | 128 | 0.684231 |
6ccb604c9a91b354e86b85f57a5f7851548a24f2 | 2,255 | /*
* Copyright 2019 Netflix, 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 i... | 33.656716 | 116 | 0.746341 |
4f60515a59ea107ef6d352e1338efdbcaa288b74 | 4,212 | package br.edu.ufcspa.tc6m.dao;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.support.annotation.NonNull;
import java.text.SimpleDateFormat;
import jav... | 33.967742 | 101 | 0.619183 |
b83c49170a23c1a625a5e8a1eb08d47d3cb48d32 | 216 | @javax.xml.bind.annotation.XmlSchema(namespace = "urn:wco:datamodel:WCO:DocumentMetaData-DMS:2", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package wco.datamodel.wco.documentmetadata_dms._2;
| 72 | 164 | 0.833333 |
853c3e8fc0080e3223ad0032eeea9931274f36ca | 495 | package com.mt.demo.upload.swagger.config;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
/**
* ResultStateEnum
*
* @author mt.luo
* @description:
*/
@AllArgsConstructor
@NoArgsConstructor
public enum ResultStateEnum {
/**
* success
*/
... | 16.5 | 43 | 0.612121 |
a3418e0d2cd25e6be1e22608f3fb4b85afbdbe0a | 1,905 | package com.github.kwoin.kgate.test;
import com.github.kwoin.kgate.core.configuration.KGateConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.net.ServerSocketFactory;
import javax.net.ssl.SSLServerSocketFactory;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Server... | 26.830986 | 119 | 0.610499 |
39ea2d9724578e5f69f4a76ec69ed619dc51ee98 | 2,486 | package com.scoreboard.app.utils;
import com.scoreboard.app.comment.dto.CommentDto;
import com.scoreboard.app.comment.repository.Comment;
import com.scoreboard.app.game.repository.Game;
import com.scoreboard.app.game.repository.PlayerStat;
import java.time.ZonedDateTime;
import java.util.UUID;
public class EntityCre... | 33.146667 | 79 | 0.609815 |
19bfa119ec16c0b582f010c75fe3f71927ea5f5e | 3,159 | /*
* Copyright © 2015 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 33.967742 | 118 | 0.759418 |
c7aac5ff443d715c1e99c2784c8ee6ccfee1259a | 899 | /*
COLA DE PRIORIDADES EN UN MONTÍCULO
A continuación se escribe su implementación utilizando las operaciones básicas del montículo.
Naturalmente, los elementos son referencias a Tarea que implementa la interfaz Comparador.
*/
package PriorityQueues1;
public class AplicacionCP {
//Creo un Monticulo/Binary heap
... | 24.297297 | 93 | 0.682981 |
9de54a0549b30f6446ec2fcc37d63891b4dc4d23 | 1,475 | package com.twu.biblioteca;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
public class ReturnBookTest {
PrintStream console = null;... | 27.314815 | 94 | 0.696949 |
df6dbb19dc30cbce4dd1881f0437034509970a3f | 294 | package edu.psu.presenations.simple;
import edu.psu.presenations.defaultabstract.Orientable;
public class OrientableWithDefaults implements Orientable
{
public static void main(String[] args)
{
OrientableWithDefaults twd = new OrientableWithDefaults();
twd.rotate();
}
}
| 18.375 | 62 | 0.755102 |
1bf3dc585f7deabb92777621d94106e0de11858a | 2,637 | package my.pkg.name;
import java.net.URI;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import microsoft.exchange.webservices.data.core.ExchangeService;
import microsoft.exchange.webservices.data.core.PropertySet;
import microsoft.exchan... | 39.358209 | 112 | 0.79105 |
3deff4a652cd39249f4006cc943901dc2a9b560c | 434 | package lists.chap14.list14_03;
import java.util.Calendar;
import java.util.Date;
public class Main {
public static void main(String[] args) {
// 現在の年を表示する
Date now = new Date();
Calendar c = Calendar.getInstance();
c.setTime(now);
int y = c.get(Calendar.YEAR);
System.out.println("今年は" + y + "年です");
/... | 20.666667 | 41 | 0.656682 |
662d2bf5b08a709627761e36793a9aaa00940a0a | 1,897 | package com.skjanyou.desktop.swt;
import java.util.Queue;
import java.util.concurrent.LinkedBlockingDeque;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Shell;
public class S... | 25.293333 | 71 | 0.691618 |
acf373a7de5fe74f86a96f7669ad66646175e587 | 3,001 | /*
* Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 37.049383 | 79 | 0.699434 |
7020cb87de4b57d894ac161388783a5aeb5bbd34 | 7,991 | /**
*/
package org.jboss.drools.util;
import java.util.List;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.jboss.drools.DocumentRoot;
import org.jboss.drools.DroolsPackage;
import org.jboss.drools.GlobalType;
import org.jboss.drools.ImportType;
import org.jboss.drools.MetaData... | 33.7173 | 118 | 0.692654 |
72f363caf151085b5f18b9ebabf9a08a7d5f13f2 | 2,331 | package org.batfish.specifier;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import java.util.regex.Pattern;
import org.batfish.datamodel.IpWildcard;
import org.batfish.datamodel.questions.InterfacesSpecifier;
import org.junit.Rule;
... | 31.5 | 100 | 0.739168 |
48c0db95a17de36ec1ce9b37be820c60b099b244 | 1,796 | /*
* 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 org.thespheres.betula.services.implementation.ui.build;
import java.util.function.BiConsumer;
import java.util.function.Consum... | 35.215686 | 135 | 0.767261 |
187e17b5357e69620a9c86aaa570d783e7e21187 | 498 | package org.ansj.recognition.impl;
import org.ansj.domain.Result;
import org.ansj.splitWord.analysis.ToAnalysis;
import org.junit.Assert;
import org.junit.Test;
public class EmailRecognitionTest {
@Test
public void recognition() throws Exception {
Result recognition = null ;
recognition = ToAnalysis.parse("an... | 22.636364 | 95 | 0.761044 |
744ea07da9a06f90ce4a3924dfac6f20d1e984c4 | 4,992 | package de.tarent.mica.maze.bot.strategy.navigation;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import de.tarent.mica.maze.model... | 24.835821 | 77 | 0.686498 |
60ccabfba5f2b1042e2629a309e47af06ac5ec54 | 4,280 | /*
* Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 33.4375 | 101 | 0.692523 |
5cbc2d979e1587a7c229d3fafe20a0fc334346a8 | 2,959 | /**
* CopyRight by Chinamobile
*
* Util.java
*/
package com.chinamobile.bcbsp.deploy;
import java.io.BufferedWriter;
public class Util {
public static class SystemConf {
public static String MASTER_NAME_HEADER = "three-master-name";
public static String SYSTEM_CHECK_FILE = "profile";
public static Strin... | 35.22619 | 101 | 0.726935 |
97944605184523d6014323b03b56f8ed2380e725 | 61,355 | /*
* roombajssc
*
* MIT License
*
* Copyright (c) 2016 Geoffrey Mastenbroek, geoffrey@maschel.com
*
* 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, inc... | 42.430844 | 152 | 0.648505 |
8821daa215a4f8640aa4a5cafecad74fe992daf7 | 13,360 | package com.saltechsystems.couchbase_lite;
import android.content.res.AssetManager;
import com.couchbase.lite.Array;
import com.couchbase.lite.Blob;
import com.couchbase.lite.ConcurrencyControl;
import com.couchbase.lite.CouchbaseLiteException;
import com.couchbase.lite.Database;
import com.couchbase.lite.DatabaseCon... | 34.521964 | 185 | 0.618488 |
82254c481894867ab7facb8f7ec848ed3500d083 | 324 | package org.innovateuk.ifs.competition.domain;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import java.io.Serializable;
@Entity
@DiscriminatorValue("COMPETITION_INNOVATION_LEAD")
public class InnovationLeadInvite extends CompetitionInvite<InnovationLeadInvite> implements Serializable... | 32.4 | 107 | 0.864198 |
4e82a84f48c854ef682776f9c20c46c114a7c2c1 | 1,338 | package tr.havelsan.ueransim.ngap0.ies.sequence_ofs;
import tr.havelsan.ueransim.ngap0.core.*;
import tr.havelsan.ueransim.ngap0.pdu.*;
import tr.havelsan.ueransim.utils.bits.*;
import tr.havelsan.ueransim.utils.octets.*;
import tr.havelsan.ueransim.ngap0.ies.bit_strings.*;
import tr.havelsan.ueransim.ngap0.ies.octet_... | 31.116279 | 109 | 0.763827 |
2ed32fee4eff6173435bf63cb90cd80cc1199a63 | 1,553 | package br.com.zup.propostas.proposal;
import javax.persistence.*;
import java.math.BigDecimal;
@Entity
@Table(name = "proposals")
public class CardProposal {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(nullable = false)
private String personalDocument;
@Co... | 23.179104 | 113 | 0.670316 |
e9472a09abb30335876200f5fa52e8f519481ce1 | 5,831 | /*
* Copyright @ 2021 - present 8x8, 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 ... | 26.99537 | 98 | 0.598011 |
0d6c431df93efe278d29ddb687bb74d0c7de7152 | 7,917 | /*
* Copyright ConsenSys AG.
*
* 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... | 43.5 | 159 | 0.765315 |
0715a2ad8b60f8441c80389ad16971e4f58eaf19 | 3,969 | /*
* Copyright (c) 2016 deltaDNA Ltd. 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 b... | 29.4 | 75 | 0.566893 |
b08136f8e21d3aeed36b34920031656ae8f4643b | 813 | package me.ifydev.factionify.api.faction;
import lombok.AllArgsConstructor;
import lombok.Getter;
import me.ifydev.factionify.api.structures.Chunk;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;
/**
* @author Innectic
* @since 07/27/2018
*/
@AllArgsCo... | 23.911765 | 68 | 0.694957 |
c95458726e891c3e12545548e3247b42b28ff872 | 6,405 | /*
* 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 not ... | 43.571429 | 100 | 0.78829 |
5f1c2f5d3acd71461a933801cc83def40c94eb80 | 1,505 | package com.beijunyi.parallelgit.filesystem;
import java.io.IOException;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class GitPathHashCodeTest extends AbstractGitFileSystemTest {
@Before
public void setupFileSystem() throws IOException {
initGitFileSystem();
}... | 27.87037 | 70 | 0.683721 |
832a6e92447eb36d4ef3c80db9e7d74064cd14c8 | 1,217 | package org.omg.hw.session;
import org.omg.PortableServer.POA;
/**
* Generated from IDL interface "Session_I"
* @author JacORB IDL compiler V 2.2.3, 10-Dec-2005
*/
public class Session_IPOATie
extends Session_IPOA
{
private Session_IOperations _delegate;
private POA _poa;
public Session_IPOATie(Session_IOper... | 17.897059 | 70 | 0.723911 |
31bc2a74111ca1077d1999ece0f69348b21a3138 | 1,316 | package com.ys.yoosir.zzshow.mvp.presenter;
import com.ys.yoosir.zzshow.mvp.apis.VideoModuleApiIml;
import com.ys.yoosir.zzshow.mvp.apis.interfaces.VideoModuleApi;
import com.ys.yoosir.zzshow.mvp.entity.videos.VideoChannel;
import com.ys.yoosir.zzshow.mvp.presenter.interfaces.VideoPresenter;
import com.ys.yoosir... | 25.307692 | 116 | 0.675532 |
59352e51fa89b487e05bc90c5883daf333b50119 | 488 | package concurrency.ex03;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* 会预先创建有限的线程集
*
* @author wangzhichao
* @since 2020/3/2
*/
public class FixedThreadPool {
public static void main(String[] args) {
ExecutorService newFixedThreadPool = Executors.newFixedT... | 23.238095 | 77 | 0.668033 |
c5f94364edf9d0915f8c6aca217f6f56b1df8938 | 5,200 | /*
* Copyright © 2019 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 43.333333 | 120 | 0.778654 |
f20aab9df5f2ddfc315ed782658ce9388b660c4a | 4,199 | package software.amazon.rds.dbsubnetgroup;
import java.util.List;
import software.amazon.awssdk.services.rds.RdsClient;
import software.amazon.awssdk.services.rds.model.DBSubnetGroup;
import software.amazon.cloudformation.proxy.AmazonWebServicesClientProxy;
import software.amazon.cloudformation.proxy.Logger;
import s... | 53.151899 | 209 | 0.673256 |
36631b4bb14cd549980c22c69fba7a121e0b2cf3 | 3,264 | package xyz.klenkiven.kmall.ware.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import xyz.klenkiven.kmall.common.exception.ExceptionCodeEnum;
import xyz.klenkiven.kmall... | 25.700787 | 87 | 0.660846 |
98e69f689bfcba8d38c4320c79e08f4bcf9ab9cd | 13,776 | package ru.betterend.entity;
import net.minecraft.core.BlockPos;
import net.minecraft.core.BlockPos.MutableBlockPos;
import net.minecraft.core.particles.ParticleOptions;
import net.minecraft.core.particles.ParticleTypes;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.chat.Component;
import ... | 31.815242 | 173 | 0.684669 |
4264b146e793acb663ef29715b55c4377a9e244b | 82 | package interfaces;
public interface OnResult {
void onSuccess(String s);
}
| 13.666667 | 30 | 0.731707 |
9404204d18af21715821c0b0601178dc799bfd37 | 3,060 | package com.ecust.test;
import com.ecust.utils.PageUtils;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import java.util.List;
/**
* 用来测试 Selenium
*/
public class TestSeleniumDemo {
/**
* 用来测试第一个代码,访问百度
*/
@Test... | 28.333333 | 115 | 0.635294 |
0cf645623f33c070c540eb0dd4c0cf9812511ad2 | 1,740 | package problem.p1089duplicatezeros;
import java.util.Arrays;
/**
* 1089. Duplicate Zeros
*
* https://leetcode-cn.com/problems/duplicate-zeros/
*
* Given a fixed length array arr of integers, duplicate each occurrence of zero,
* shifting the remaining elements to the right.
*
* Note that elements beyond the l... | 27.1875 | 101 | 0.531609 |
1cf1bb06b008b3bc46d0d29b273c44fdb104617a | 1,372 | package exceptions.ex24;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
class NeedsCleanup {
public void dispose() {
System.out.println("NeedsCleanup " + " disposed");
}
}
class FailingConstructor {
private BufferedRead... | 24.945455 | 155 | 0.572157 |
8eb9d4c711d2e781227af261c1d29c27cb8cb81e | 1,004 | package io.quarkus.agroal.test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import javax.enterprise.inject.spi.DeploymentException;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.juni... | 31.375 | 114 | 0.726096 |
5de81c899c73315a59bd092cab43f4b3df9e5592 | 235 | package com.binder.database.datasearch;
import android.content.Context;
import com.binder.database.DatabaseAccess;
public class LoginCheck {
private DatabaseAccess instance;
public LoginCheck (Context context){
}
}
| 14.6875 | 42 | 0.757447 |
ad803180eb25921601c2d12d5cfb229797b24722 | 643 | package org.woehlke.twitterwall.oodm.repositories.custom;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.woehlke.twitterwall.oodm.model.HashTag;
import org.woehlke.twitterwall.oodm.model.transients.HashTagCounted;
import org.woehlke.twitterwall.oodm.repositorie... | 37.823529 | 88 | 0.847589 |
884a31f883ee0d8df879cc7eadae2e20ec0562f5 | 898 | package com.jivesoftware.os.miru.catwalk.shared;
import com.jivesoftware.os.miru.api.base.MiruTermId;
import java.util.Arrays;
/**
*
*/
public class StrutModelKey {
private final MiruTermId[] termIds;
public StrutModelKey(MiruTermId[] termIds) {
this.termIds = termIds;
}
@Override
pub... | 20.883721 | 62 | 0.55902 |
24c4a470d352f7298ffe6b85028c43dc15f5249c | 775 | package ru.stqa.pft.sandbox;
import org.testng.Assert;
import org.testng.annotations.Test;
public class PointTests {
@Test
public void testDistance() {
Point p1 = new Point(1,2);
Point p2 = new Point(4,6);
Assert.assertEquals(p1.findDistance(p2), 5.0);
}
@Test
public void testDistanceWhenZeroY... | 22.142857 | 50 | 0.651613 |
0a0f7d80a221460cae529d5029bb39f7b4594e08 | 572 | package com.thomsonreuters.upa.shared.rdm.marketprice;
/**
* Market price request flags.
*/
public class MarketPriceRequestFlags
{
public static final int NONE = 0;
public static final int HAS_QOS = 0x001;
public static final int HAS_PRIORITY = 0x002;
public static final int HAS_SERVICE_ID = 0x004;
... | 28.6 | 54 | 0.718531 |
10f106bbf6140c6ab36df4e40eb5bba591a897a8 | 6,650 | package de.ids_mannheim.korap.query;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.TermContext;
import org.apache.lucene.search.spans.SpanQuery;
import org.apache.lucene.sea... | 31.367925 | 75 | 0.609774 |
b96dc458a62fde5a41158089847338556ea11cd0 | 2,149 | /****************************************************************
* 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... | 39.072727 | 91 | 0.597487 |
fb0b38d6fc0e07cd8868dd739f189ba133e24f0a | 1,615 | package io.ankburov.retrofit.httpclient;
import java.io.IOException;
import java.io.InputStream;
import java.net.http.HttpRequest;
import java.time.Duration;
import org.jetbrains.annotations.Nullable;
import okhttp3.Request;
import okhttp3.RequestBody;
import okio.Buffer;
public class DefaultHttpRequestFactory impl... | 31.057692 | 94 | 0.627864 |
eb6617c2a27a38485415a8db2026b4589fe0a0eb | 8,091 | package com.codingpixel.healingbudz.adapter;
import android.content.Context;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Filter;
import android.widget.ImageView;
import android.widg... | 46.234286 | 202 | 0.600667 |
eb45c74ed1c791e2017f30495c58be7d936145da | 3,051 | // Copyright 2016 The Nomulus Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... | 38.620253 | 96 | 0.732219 |
cbf4d79ffbcc7d893937ae8944bb0f97ac3ae594 | 239 | package org.cynic;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@SpringBootApplication
@EnableEurekaServer
public class Configuration {
}
| 23.9 | 74 | 0.861925 |
87e80eb3594ae731b8f03abc7bc194630df90a4e | 6,869 | /*-
* <<
* UAVStack
* ==
* Copyright (C) 2016 - 2017 UAVStack
* ==
* 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
*
... | 39.705202 | 128 | 0.646382 |
a015c3b7c03b5462e4776aba4ca5514ab4941254 | 343 | package io.choerodon.websocket.receive;
import org.springframework.web.socket.BinaryMessage;
import org.springframework.web.socket.WebSocketSession;
/**
*
* @author hailuo.liu@choerodon.io
*/
public interface BinaryMessageHandler extends MessageHandler {
default void handle(WebSocketSession session, BinaryMes... | 22.866667 | 73 | 0.790087 |
078b687523553ad452c6f63f0e1a95afa4b7dce4 | 2,500 | package data;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
public class Link {
private static File f = new File("./com.lingotechsolutions.data/links.xml");
priva... | 29.411765 | 77 | 0.6736 |
8178aa3be87b6fe1afdd2af10a31b4fa6ca4fd15 | 1,700 | package org.coeg.routine.backend;
import android.app.AlarmManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.util.Log;
public class AlarmBroadcastReceiver extends BroadcastReceiver
{
@Override
public void on... | 29.310345 | 86 | 0.653529 |
d73f272a5601c4355256e56f3d023f4491084f17 | 1,867 | package com.lambdaschool.shoppingcart.services;
import com.lambdaschool.shoppingcart.ShoppingcartApplication;
import com.lambdaschool.shoppingcart.models.Cart;
import com.lambdaschool.shoppingcart.models.User;
import com.lambdaschool.shoppingcart.models.UserRoles;
import org.junit.After;
import org.junit.Before;
impor... | 26.671429 | 87 | 0.776647 |
6455ac80400251bdcbb39ba86053632d8ab8885a | 1,445 | package de.artfulbird.gardenhero.models.operation;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import de.artfulbird.gardenhero.models.BaseModel;
import de.artfulbird.gardenhero.models.measurement.Field;
import lombok.*;
import org.hibernate.anno... | 25.803571 | 90 | 0.768166 |
6ec9c7af79b4b21cb26eb31ad6d97d0b09d99e54 | 7,586 | /*
* PROJECT: NyARToolkit(Extension)
* --------------------------------------------------------------------------------
* The NyARToolkit is Java edition ARToolKit class library.
* Copyright (C)2008-2009 Ryo Iizuka
*
* This program is free software: you can redistribute it and/or modify
* it under the te... | 25.979452 | 93 | 0.647772 |
30e903eceaecfff8c66090437339d785e48d9150 | 3,391 | package com.huaweicloud.sdk.live.v1.model;
import com.huaweicloud.sdk.core.SdkResponse;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.huaw... | 26.492188 | 103 | 0.645532 |
145c8d279697d40db591f6ef51dd87af4b7011a5 | 328 | package com.neu.onlinebanking.dao;
import java.util.List;
import com.neu.onlinebanking.pojo.InternalRecipient;
public interface InternalRecipientDao {
List<InternalRecipient> findall();
InternalRecipient findByName(String theName);
void deleteByName(String theName);
void save(InternalRecipient recipie... | 17.263158 | 52 | 0.789634 |
b933f7f09d0c7086743500cb7e6bee9b32ac2049 | 4,336 | /*
* Copyright (c) 2015 Evident Solutions Oy
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge... | 42.097087 | 218 | 0.656135 |
1b072a0de0c8a3ae0e973938e3b550a39df45bf4 | 3,768 | package com.symphony.bdk.http.api;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import sta... | 34.568807 | 118 | 0.718418 |
df7483da680fc0d221abaa338d1832c289e10464 | 322 | package eu.fivegmedia.aaa.service.catalogue.dto;
import java.io.Serializable;
public class CatalogueUserResourceDTO implements Serializable{
private static final long serialVersionUID = 1L;
public String catalog_user;
public String catalog_tenant;
public String resource_id;
public String resource_properties;
... | 23 | 62 | 0.826087 |
ad75317f256ba3a1c526a017f2a8ce984470b3e5 | 4,893 | /*
* This file is generated by jOOQ.
*/
package com.yg.gqlwfdl.dataaccess.db.tables.records;
import com.yg.gqlwfdl.dataaccess.db.tables.DiscountRate;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record3;
import org.jooq.Row3;
import org.jooq.impl.UpdatableReco... | 20.472803 | 122 | 0.503781 |
c26264276c5d6f6c9d33744d41cb75c1869ebf1a | 4,604 | package com.usthe.tom.service.impl;
import com.usthe.sureness.matcher.TreePathRoleMatcher;
import com.usthe.tom.dao.AuthResourceDao;
import com.usthe.tom.dao.AuthRoleDao;
import com.usthe.tom.dao.AuthRoleResourceBindDao;
import com.usthe.tom.pojo.entity.AuthResource;
import com.usthe.tom.pojo.entity.AuthRole;
import c... | 34.358209 | 109 | 0.706342 |
0ee3f7f7b26ce0c28fad0a472a59d1fee0567844 | 329 | /*
* @test /nodynamiccopyright/
* @bug 6843077
* @summary test incomplete vararg declaration
* @author Mahmood Ali
* @compile/fail/ref=IncompleteVararg.out -XDrawDiagnostics -source 1.8 IncompleteVararg.java
*/
class IncompleteArray {
// the last variable may be vararg
void method(int @A test) { }
}
@interfa... | 23.5 | 93 | 0.720365 |
e14d6deffc082d424c6184bfa2175305c830f2df | 1,422 | package com.wondernect.elements.easyoffice.excel.handler;
/**
* Copyright (C), 2020, wondernect.com
* FileName: ESExcelItemHandler
* Author: chenxun
* Date: 2020-07-22 00:37
* Description: excel数据处理类
* 1、需要展示的属性名需要继承该接口进行展示配置
* 2、需要处理展示数据的属性名才需要继承该接口进行数据转换
*/
public abstract class ESExcelItemHandler<T> {
... | 20.314286 | 81 | 0.624473 |
4022fa68440c819ce77062fcca256dca26cf3348 | 1,110 | package com.dankideacentral.dic.activities;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
import com.dankideacentral.dic.R;
import com.dankideacentral.dic.fragments.OAuthWebViewFragment;
public clas... | 41.111111 | 97 | 0.761261 |
f7164884ffaf3319b9ed275765ee04ebb472cbb8 | 2,916 | package timeline.lizimumu.com.util;
import android.os.Environment;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
impor... | 32.4 | 133 | 0.600137 |
475a89f5d4d363cd23fb14d9bc400db59325678d | 7,170 | package com.tonight.manage.organization.managingmoneyapp;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManag... | 35.85 | 134 | 0.637238 |
a43a6ebddbc66689d60aef375c9299de01221d2b | 9,970 | // Copyright (c) 2002 Graz University of Technology. 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, this
// l... | 33.013245 | 100 | 0.687663 |
cd4b480076d9c2c55f0d7191ca089997f3fc5027 | 3,589 | package io.digisic.bank.util;
import io.digisic.bank.model.TransactionType;
public class Patterns {
// Common
public static final String DATE_FORMAT = "MM/dd/yyyy";
public static final String TRANSACTION_AMOUNT = "^(?=.+)(?:[1-9]\\d*|0)?(?:\\.\\d+)?$";
// User
public static final String USER_PASSWORD = ... | 45.43038 | 172 | 0.623015 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.