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 |
|---|---|---|---|---|---|
81ef718aae17c89cc0c979646348ada26576f8bb | 139 |
public interface IMarket {
void buyPlant(Plants plant, Area area);
void sellPlant (Plants plant, Area area) throws Throwable;
}
| 19.857143 | 60 | 0.719424 |
5b76f67ec88f5ebad6e6a419529facc51f727e4a | 1,856 | /*
* Software Name : IoT for technicians
* Version: 1.0
*
* Copyright (c) 2020 Orange
*
* This software is distributed under the Apache License, Version 2.0,
* the text of which is available at http://www.apache.org/licenses/
* or see the "license.txt" file for more details.
*
*/
package com.company.iotfortechnicians.... | 29.460317 | 90 | 0.709591 |
4169f640af624f81322fd1f52a9c7a821df856d7 | 10,329 | /*
* MIT License
*
* Copyright (c) 2021-2022 yangrunkang
*
* Author: yangrunkang
* Email: yangrunkang53@gmail.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 restricti... | 38.977358 | 131 | 0.70578 |
4833b8b19808809d3af23baa9d57abbb31f0a33f | 3,818 | package org.open.covid19.utils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* 日期工具
* @author wuchao
*/
public class DateUtil {
public static final String FORMAT_TZ = "yyyy-MM-dd'T'HH:mm:ss'Z'";
public static final String FORMAT_T... | 27.868613 | 84 | 0.573337 |
857c7efc5bbfe1506edfc691dc788386602d8eb7 | 1,077 | package tech.ibit.structlog4j.test;
import lombok.experimental.UtilityClass;
import org.slf4j.event.Level;
import org.slf4j.impl.LogEntry;
import java.util.List;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* 测试工具类
*
* @author IBIT程序猿
*/
@UtilityClass
public class ... | 29.108108 | 119 | 0.684308 |
aa26944c1829f9e62fc500b404f8ab72bbdb89a9 | 2,030 | /**
* Copyright (C) 2015 Fernando Cejas Open Source Project
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless requ... | 32.741935 | 92 | 0.757635 |
c618db60c1e06260bc313437f5962f0006853a15 | 1,225 | package me.donglin.leetcode.hard;
import org.junit.Assert;
import org.junit.Test;
/**
* 1014. 最佳观光组合
* 给定正整数数组 A,A[i] 表示第 i 个观光景点的评分,并且两个景点 i 和 j 之间的距离为 j - i。
* 一对景点(i < j)组成的观光组合的得分为(A[i] + A[j] + i - j):景点的评分之和减去它们两者之间的距离。
* 返回一对观光景点能取得的最高分。
*
* 示例:
* 输入:[8,1,5,2,6]
* 输出:11
* 解释:i = 0, j = 2, A[i] + A[j] ... | 26.06383 | 87 | 0.564082 |
9ce199df230f62c8091ab7d39f1773ac0a03ef9d | 441 | package com.example;
import javax.annotation.Generated;
import javax.annotation.Nonnull;
import jsinterop.annotations.JsFunction;
import jsinterop.annotations.JsNonNull;
/**
* Callback has both return type and argument as enums.
*/
@Generated("org.realityforge.webtack")
@JsFunction
@FunctionalInterface
public inter... | 23.210526 | 55 | 0.804989 |
acc0b84f6d16b4ea75c4def44aae9ecb0dbe833e | 1,922 | package usc.cs310.ProEvento.dao;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import usc.cs310.ProEvento.model.Tag;
import java.util.Collections;
imp... | 28.686567 | 62 | 0.583767 |
ee7b79219b14ef493a10314ea56e5ef6fd50e98e | 8,614 | /*
* 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 ... | 36.969957 | 99 | 0.701648 |
0cf8d1e429cb8b91e3dbeabce0a472104ad896a4 | 5,786 | package com.sebix.unittesting.ui.note;
import com.sebix.unittesting.models.Note;
import com.sebix.unittesting.repository.NoteRepository;
import com.sebix.unittesting.ui.Resource;
import com.sebix.unittesting.util.InstantExecutorExtension;
import com.sebix.unittesting.util.LiveDataTestUtil;
import com.sebix.unittesting... | 36.1625 | 120 | 0.695299 |
bca5b067272e97e304f39e0e98f05e864f38023d | 2,611 | /*
* MIT License
*
* Copyright (c) 2018 Victor Schappert
*
* 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,... | 31.083333 | 81 | 0.710456 |
e66d374030bdf2eacb2ebeca5d310c59ae8c6396 | 382 | package org.irods.jargon2.common.confg.enumz;
import org.junit.Assert;
import org.junit.Test;
public class EnumIoStyleTest {
@Test
public void testMapIoStyleToEnum() {
String test = EnumIoStyle.NIO.toString();
EnumIoStyle actual = EnumIoStyle.mapIoStyleToEnum(test);
Assert.assertNotNull("null enumIoStyle", a... | 22.470588 | 58 | 0.769634 |
79a92b12b34aca4459b22c6c1131fed0c6bfa6ba | 902 | package org.ovirt.mobile.movirt.model.condition;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.ovirt.mobile.movirt.R;
import org.ovirt.mobile.movirt.model.Vm;
public class StatusCondition extends Condition<Vm> {
private final Vm.Status statu... | 25.055556 | 109 | 0.685144 |
13288696d062ac036bef76cfc20ea6be7416f4e0 | 1,437 | package unae.lp3.service;
import java.util.LinkedList;
import java.util.List;
import java.util.Optional;
import unae.lp3.model.Pedido;
import unae.lp3.model.Usuario;
import unae.lp3.repository.PedidosRepository;
import unae.lp3.repository.UsuariosRepository;
import org.springframework.beans.factory.annotation.Autowi... | 23.177419 | 74 | 0.752958 |
8115ca50f117373f62ae1062663bdee9c26b9ddb | 1,996 | package com.tjazi.profilescreator.client;
import com.tjazi.profilescreator.messages.CreateBasicProfileRequestMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.support.converter.JsonMessageConverter;
import org.... | 34.413793 | 97 | 0.745491 |
f956e3f4072f05caba88e0af38a3e61737a9e799 | 1,340 | package org.springframework.webflow.test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
import org.springframework.webflow.core.collection.LocalAttri... | 32.682927 | 73 | 0.763433 |
0be40d6a8cf29fa08c31ceef634d97b005ba5610 | 5,978 | /**
* Copyright (c) 2016, WSO2.Telco Inc. (http://www.wso2telco.com) All Rights Reserved.
* <p>
* WSO2.Telco Inc. licences 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
* <p>
* h... | 45.984615 | 144 | 0.682168 |
2def1273ec82e7c3321962ca258d908b93b82e4c | 3,609 | package com.skeqi.mes.pojo.chenj.srm.req;
/**
* @author ChenJ
* @date 2021/6/7
* @Classname CSrmSupplierR
* @Description ${Description}
*/
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* 供应商升降级申请行表
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class CSrmSupplierRReq {
/**
... | 20.05 | 72 | 0.561929 |
3507ccd4197f12b44a10babc171bb0509ec76fea | 446 | package com.progzc.blog;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @Description 博客项目的启动类
* @Author zhaochao
* @Date 2020/10/22 23:26
* @Email zcprog@foxmail.com
* @Version V1.0
*/
@SpringBootApplication
public class BlogRunAppl... | 22.3 | 68 | 0.748879 |
174171699dd750f8a11a21169cb28dab61ce423d | 1,019 | /*
* @(#)MessageListener.java 1.14 02/04/09
*
* Copyright 1997-2002 Sun Microsystems, Inc. All Rights Reserved.
*
* SUN PROPRIETARY/CONFIDENTIAL.
* This software is the proprietary information of Sun Microsystems, Inc.
* Use is subject to license terms.
*
*/
package javax.jms;
/** A <CODE>MessageListen... | 25.475 | 76 | 0.683023 |
22e2d62345b428114d421ac3913f57371a9e444a | 12,357 | /*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.31.1.5860.78bb27cc6 modeling language!*/
package cruise.umple.testgenerator;
import cruise.umple.parser.ParseResult;
import java.util.*;
// line 12 "../../../../ump/TestCaseTemplate_model.ump"
public class TestModel
{
//------------------... | 25.115854 | 186 | 0.66084 |
2a7d6020f1d62ecf5ddb17e61005fdbbd0867824 | 2,160 | /*
* 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 ... | 36 | 85 | 0.7125 |
5f997cfc1da0fadfea03c943f4edc55121dbe3ba | 1,418 | /*
* 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.ejemplo.dominio;
/**
*
* @author MARTIN
*/
public class Packing extends Carga{
private float pesoCaja;
private ... | 23.633333 | 131 | 0.643159 |
3e8f8555e51b34524001bf373dece0a094a9d56c | 588 | package wang.sunnly.modules.auth.service;
import javax.servlet.http.HttpServletRequest;
/**
* AuthService
*
* @author Sunnly
* @since 2020/12/11
*/
public interface AuthService {
/**
* 获取锁定时长
* @param id id
* @return 返回锁定时长
*/
long lockedTime(String id);
/**
* 锁定用户
* @p... | 17.294118 | 79 | 0.598639 |
f7b3284f2af2688b4b7dc05135a7bc5016f9dce7 | 1,546 | /*
* Copyright (c) 2020 Bixbit s.c. All rights reserved.
* See LICENSE file for licensing information.
*/
package io.imunity.furms.domain.applications;
import io.imunity.furms.domain.users.FURMSUser;
import io.imunity.furms.domain.users.FenixUserId;
import java.util.Objects;
import java.util.Set;
public class Pr... | 24.935484 | 104 | 0.732212 |
ea8a5d7e229989b2a8026a584c76e757d16e9156 | 387 | package ltd.newbee.mall.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Builder;
import lombok.Data;
/**
* @program: newbee-mall
* @description: 点赞记录表
* @author: chenshutian
* @create: 2021-03-16 11:03
**/
@Data
@Builder
public class ThumbLog {
@TableId
private Integer id;
p... | 18.428571 | 51 | 0.69509 |
dbf0f42989c82513999a6a612a538241755c6746 | 7,051 | package classes;
/**
* @author Eduardo Migueis, Rodrigo Smith and Manuela Benassi.
* @since 2020.
*/
public class Aeroporto implements Cloneable
{
private int idAeroporto;
private String codigoIATA = "";
private String codigoICAO = "";
private String nomeAero = "";
private String pais = "";
... | 26.309701 | 128 | 0.55907 |
66f2e64f0e3676d9ac39b78a78b24c0bfc2e03cf | 6,225 | import org.junit.Test;
import static org.junit.Assert.*;
// LC221: https://leetcode.com/problems/maximal-square/
//
// Given a 2D binary matrix filled with 0's and 1's, find the largest square
// containing all 1's and return its area.
public class MaxSquare {
// time complexity: O(M * N ^ 2), space complexity: O(... | 32.763158 | 82 | 0.423293 |
454cb6866295c8b1393c8d9c90095ec819c40cad | 705 | package com.devotedmc.ExilePearl.util;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.entity.Player;
import com.devotedmc.ExilePearl.ExilePearlPlugin;
public class SpawnUtil {
/**
* Spawns a player in the world without killing them
* Uses Randomspawn if availab... | 24.310345 | 61 | 0.744681 |
d6079bf2a96ab21e811069cf4b88823a48fdb3a7 | 752 | package org.season.ymir.core.annotation;
import org.springframework.stereotype.Component;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 服务导出
*
* @author ... | 16 | 48 | 0.634309 |
2718711dbf32c14e87be14f609a97f9e216828b5 | 157 | public int hashCode() {
// System.out.println("In hashcode");
int hashcode = 0;
hashcode = a * 20;
hashcode += b * 20;
return hashcode;
} | 22.428571 | 41 | 0.579618 |
b7696f4f7b136a00df05292c4ace1ba76dfbe494 | 9,204 | /*
* Copyright (c) 2002-2017, Mairie de Paris
* 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
* ... | 37.721311 | 146 | 0.66395 |
cf3773d0d8993fdf7f3edddb08a3a638c6279c64 | 1,395 | /*******************************************************************************
* Copyright (c) 2008 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | 21.461538 | 81 | 0.636559 |
c069a8589506f036d00113abcde511fdd7d65ee2 | 7,813 | /*
* (C) Copyright 2014-2017 Nuxeo (http://nuxeo.com/) and others.
*
* 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 requi... | 38.678218 | 110 | 0.664917 |
424f9c00afdac8c95f363f0b98a68a9ca62ee8e9 | 29,066 | package org.codelibs.elasticsearch.dictionary.service;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
impor... | 41.881844 | 137 | 0.539255 |
f5b34b30ae7a1b0a2bd34cf06da9f39b73a65d60 | 2,578 | package org.aikodi.chameleon.eclipse.property;
import org.aikodi.chameleon.core.element.Element;
import org.aikodi.chameleon.eclipse.view.outline.ChameleonOutlineTree;
import org.eclipse.core.expressions.PropertyTester;
import org.eclipse.core.resources.IProject;
import java.util.Collection;
/**
* A default class f... | 28.644444 | 112 | 0.724593 |
23ab3b35001ea1d2d44aeb066d74234f450a4e91 | 582 | package utilities;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.UnicodeFont;
import org.newdawn.slick.font.effects.ColorEffect;
import java.awt.*;
public class FontUtility {
public static UnicodeFont makeFont(int size){
UnicodeFont font = new UnicodeFont(new Font("Comic Sans MS", Fon... | 26.454545 | 87 | 0.652921 |
bd1d1972fddb9ec8e21a29ef884df51ba4b657c4 | 3,030 | package com.unbox.dominio;
import java.util.HashSet;
import java.util.Set;
import com.unbox.exceptions.RegraNegocioException;
public class CPF {
private String cpf;
private static final Set cpfInvalidos = new HashSet();
static {
cpfInvalidos.add("00000000000");
cpfInvalidos.add("11111111111");
cpfInvalid... | 23.307692 | 79 | 0.706601 |
c63630bdfb55724c8a7212bc4862bfaf4675ce25 | 2,586 | /*
*
*
*/
package ujf.verimag.bip.ifinder.analysis.petrinet;
import java.util.HashMap;
import java.util.ArrayList;
import bip2.ujf.verimag.bip.instance.*;
import bip2.ujf.verimag.bip.behavior.*;
/*
*
*
*/
public class XTransition {
// the component instance where the transition is defined
protected ... | 27.221053 | 79 | 0.688708 |
7af19cca07e7a202cd6c88926b4b753ec3135eec | 4,018 | package client;
import classes.User;
import javafx.scene.control.Label;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeight;
import javafx.stage.Stage;
/**
* Class ... | 32.666667 | 93 | 0.60005 |
dbc8b8945140752bc71b0b36a5a22a520877bcce | 306 | package no.hvl.dat104.dataaccess;
import no.hvl.dat104.model.ItemEntity;
import java.util.List;
public interface IItemEAO {
void addItem(ItemEntity v);
ItemEntity findItem(Integer id);
void updateItem(ItemEntity v);
void removeItem(ItemEntity id);
List<ItemEntity> allItems();
}
| 17 | 38 | 0.728758 |
f0120a3f8b072cb75b943f54c142541be07dbc80 | 484 | package edu.washington.cse.instrumentation.tests;
import java.util.Random;
public class StringOverheadTest {
@SuppressWarnings("unused")
public static void main(String[] args) {
long start = System.currentTimeMillis();
Random r = new Random();
for(int i = 0; i < 1000000; i++) {
boolean foo = r.nextBoolean... | 24.2 | 49 | 0.657025 |
45844536e26bc4bf9111432c6e0d958d4f2812f0 | 991 | package ru.geminisystems.entity;
/**
* Created by IntelliJ IDEA.
* User: gb
* Date: 08.07.2009
* Time: 2:25:36
* To change this template use File | Settings | File Templates.
*/
@Entity
@Table(name = "statuses")
public class Status {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(na... | 20.22449 | 64 | 0.632694 |
0d3a362bd4c6cfaf353b6871a3eb551b7d82bd65 | 570 | /**
* Copyright (2018-2019) Institute of Software, Chinese Academy of Sciences
*/
package com.github.isdream.amazon.ec2;
import com.github.isdream.jointware.core.ModelParameterGenerator;
/**
* @author wuheng@otcaix.iscas.ac.cn
*
* 2018年5月4日
*/
public class AmazonEC2ModelParameterGenerator extends ModelParameter... | 18.387097 | 79 | 0.67193 |
1a5e5dab4e5b8ce447d89862bb18f6d6dde131d2 | 3,049 | package com.marcoscg.easyabout.helpers;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.view.View;
import com.marcoscg.easyabout.... | 41.767123 | 160 | 0.648409 |
6ec8222c40c00dc7b18f0a79ad7131796fe3e0ad | 694 | package com.sportsmeeting.serviceimpl;
import com.sportsmeeting.dao.NewsDao;
import com.sportsmeeting.entity.News;
import com.sportsmeeting.service.NewsService;
import java.io.IOException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Li... | 21.6875 | 62 | 0.775216 |
4c3a1eabf7f78f4b9415606d8067132877c7717b | 30,180 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are su... | 31.569038 | 127 | 0.476077 |
e23c18b6e6438c77d5077e5bcb6a19a94be372cc | 1,223 | package commands;
import basetool.SystemClipboardTools;
import extensions.SoundTypeWriter;
import io.airlift.command.Command;
import io.airlift.command.Option;
/**
* @author linxi
* www.leftvalue.top
* commands
* Date 2018/8/5 3:26 PM
*/
public class Fun {
@Command(name = "qinqin", description = "a magic col... | 30.575 | 130 | 0.588716 |
1b754b6e0faece2d375d176d46c241db604bb475 | 1,292 | package com.example.instagramclone;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class LoginActivity extends AppCompatActivity {
public static final String TAG = ... | 33.128205 | 70 | 0.662539 |
1f428bc094ae33722827307321dfdb966bfcfb41 | 162 | package com.skmuddamsetty.linkedlists;
public class Node {
public int data;
public Node next;
public Node(int d) {
this.data = d;
this.next = null;
}
}
| 13.5 | 38 | 0.685185 |
744810007b6acf56fdc2dde26eee878450ed965c | 6,189 | package controller_msgs.msg.dds;
/**
*
* Topic data type of the struct "TaskspaceTrajectoryStamped" defined in "TaskspaceTrajectoryStamped_.idl". Use this class to provide the TopicDataType to a Participant.
*
* This file was automatically generated from TaskspaceTrajectoryStamped_.idl by us.ihmc.idl.generator.IDL... | 36.839286 | 169 | 0.751979 |
5e1477e614b0189b9ee9672c31443d8c8d3d31aa | 695 | package org.nutz.dao.impl.sql.callback;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.LinkedHashMap;
import org.nutz.dao.entity.Record;
import org.nutz.dao.sql.Sql;
import org.nutz.dao.sql.SqlCallback;
public class FetchMapCallback implements SqlCallback {
... | 26.730769 | 86 | 0.683453 |
dd38a6bdd0b5cd2823856fa0471772afbcf56211 | 1,162 | package com.example.endpoints;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.integration.channel.QueueChannel;
import org.springframework.integration.support.MessageBuilder;
import org.spri... | 32.277778 | 72 | 0.728916 |
556ea463cc305faf2dd52765d04f447677b46af7 | 656 | package org.ric.strukdat.project;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author MONICA
*/
public class Stack<E> {
LinkedList<E> list;
public Stack() {
list = new LinkedList<E>();
}
public E pop() {
return list... | 16 | 52 | 0.550305 |
979117a488fcd6d0c82415c7637f7d655b5a2d08 | 863 | package com.example.fragment;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
/**
* Cre... | 26.96875 | 132 | 0.738123 |
d3cc65c01744c0b554daed2bf0d4209a09066e1f | 8,931 | /*
* Copyright 1999-2021 Alibaba Group Holding Ltd.
*
* 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 applica... | 36.012097 | 85 | 0.540813 |
83d73d67dd88f82fb21bc426f6164d4a3ce8be3b | 1,041 | package me.mckoxu.mckmagazyn.skript.conditions;
import ch.njol.skript.lang.Condition;
import ch.njol.skript.lang.Expression;
import ch.njol.skript.lang.SkriptParser;
import ch.njol.util.Kleenean;
import com.sun.istack.internal.Nullable;
import me.mckoxu.mckmagazyn.MCKMagazyn;
import org.bukkit.configuration.Configurat... | 28.135135 | 106 | 0.716619 |
0b79ab4da6d1b195cdb817e6c4534faea6929c61 | 1,578 |
package eu.doppel_helix.jna.tlb.excel1;
import com.sun.jna.platform.win32.COM.util.IComEnum;
public enum XlParameterDataType implements IComEnum {
/**
* (0)
*/
xlParamTypeUnknown(0),
/**
* (1)
*/
xlParamTypeChar(1),
/**
* (2)
*/
xlParamTypeNumeric(... | 12.934426 | 53 | 0.404943 |
d66b773ab6c1e9d4f63a7921b6524e83eaa06498 | 1,066 | package id.my.avmmartin.matched.data.prefs;
import android.content.Context;
import android.content.SharedPreferences;
import id.my.avmmartin.matched.utils.Constants;
public class PreferencesHelper {
private SharedPreferences sharedPreferences;
// username
public String getUsername() {
return sh... | 26.65 | 97 | 0.722326 |
f862aaa7dedbc639ba6976f90095a240da3ac435 | 6,746 | /*
* Copyright 2009 Mike Cumings
*
* 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... | 32.907317 | 80 | 0.608805 |
b1b06b5a5432bf40377792dfbd4b80abea1ebc86 | 4,998 | /*
* BSD 2-Clause License
*
* Copyright (c) 2020, dutta64 <https://github.com/dutta64>
* 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 th... | 25.630769 | 82 | 0.655662 |
e8ba7cade36b72ab0baa19d5173da892c151520b | 703 | package org.webswing.server.services.security.modules.keycloak;
import org.webswing.server.common.model.Config;
import org.webswing.server.common.model.meta.ConfigField;
import org.webswing.server.common.model.meta.ConfigFieldOrder;
import org.webswing.server.common.model.meta.ConfigFieldVariables;
/**
* Created by ... | 31.954545 | 139 | 0.783784 |
f4fac25a49b39ecf063398871a9fa661c2708709 | 3,654 | package tk.slicecollections.maxteer.titles;
import com.mongodb.client.MongoCursor;
import org.bson.Document;
import org.bukkit.inventory.ItemStack;
import tk.slicecollections.maxteer.database.Database;
import tk.slicecollections.maxteer.database.MongoDBDatabase;
import tk.slicecollections.maxteer.player.Profile;
impor... | 38.87234 | 180 | 0.686371 |
9c9a3165c66b365b58a0e857d04673c0caa8962b | 3,015 | package com.progwml6.natura.world;
import com.progwml6.natura.Natura;
import com.progwml6.natura.common.ClientEventBase;
import com.progwml6.natura.world.block.TreeType;
import com.progwml6.natura.world.client.LeavesColorizer;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.Render... | 40.743243 | 124 | 0.779104 |
ec543c6032bb690e9d09386b430be2620ad5fe9e | 713 | package com.prasertcbs;
public class Main {
public static void main(String[] args) {
demo3();
}
public static void demo() {
Person p1 = new Person();
p1.setFirstName("Peter");
p1.setLastName("Parker");
p1.setGender("M");
p1.setNickName("Pete");... | 24.586207 | 64 | 0.539972 |
03df4d799c3a6451f80757b7a4662b2023240e16 | 2,948 | package com.example.android.abnd_project3_jonathanfernandezgomez;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.Toast;... | 42.724638 | 244 | 0.63806 |
323c574eede06b529514450d7bef3fcd6f993294 | 2,631 | package l04;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class App {
public static void main(String[] args) {
long count = 0;
try {
Random random = new Random();
List<Integer[]> list = new ArrayList<>();
while (true) {
... | 24.361111 | 159 | 0.607374 |
7e23e515f4cb5f70161f3909554b4a7bb803339c | 76 | package us.eunoians.mcrpg.api.displays;
public interface ActionBarBase {
}
| 15.2 | 39 | 0.802632 |
f263614de90e6cf7c30179a0d7132237c4426044 | 1,047 | /*
* Copyright (C) 2017 the original author or authors.
*
* This file is part of jBB Application Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.jbb.lib.commons.vo;
impor... | 20.94 | 67 | 0.69723 |
0b6f6490063eb7bfbf17f66cb4577bcde8ea8860 | 2,160 | /**
*
* Copyright 2017 Florian Erhard
*
* 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 applica... | 27.341772 | 141 | 0.721296 |
6898b2185444e9084bd5c4ab9cc4f23cc6d1e37f | 6,860 | package models;
import c195.*;
import java.time.*;
import java.sql.*;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.TimeZone;
import javafx.beans.property.*;
public class Appointment extends DBEntity {
private ReadOnlyIntegerWrapper appointmentId = new ReadOnlyInte... | 48.309859 | 121 | 0.664869 |
c80aaa0297f91f22c2a5fcf543aa9421d35f7c8b | 556 | /*
* 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 it.av.fac.messaging.client;
/**
*
* @author Diogo Regateiro <diogoregateiro@ua.pt>
*/
public enum RequestType {
GetPoli... | 20.592593 | 79 | 0.690647 |
84766b70f3a1d9f98d3c015bd915ebfd6289e1b9 | 3,730 | package GUI;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.io.FileNotFoundException;
import javax.swing.JComponent;
import javax.swing.JFormattedTex... | 29.84 | 78 | 0.626273 |
7ed55004f386c7a332b939ad5bae988eb0b15c69 | 7,989 | /*
* Copyright 2013
*
* 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 writin... | 21.650407 | 115 | 0.685693 |
aa9de86412b50527890223f8c582e089ccc3f3a8 | 558 | package io.manbang.ebatis.core.provider;
import io.manbang.ebatis.core.domain.Aggregation;
/**
* 聚合条件提供者
*
* @author 章多亮
* @since 2020/1/2 19:51
*/
public interface AggProvider extends Provider {
/**
* 获取多聚合
*
* @return 多个聚合
*/
default Aggregation[] getAggregations() {
Aggrega... | 18 | 73 | 0.584229 |
f87ce061b2e545dee619fb178ca5de92260320ff | 666 | package com.xunlei.downloadprovider.homepage.relax.d;
import android.view.View;
import android.view.View.OnClickListener;
import com.xunlei.downloadprovider.model.protocol.b.d;
// compiled from: RelaxItemAdaper.java
final class e implements OnClickListener {
final /* synthetic */ a$b a;
final /* synthetic */ ... | 27.75 | 77 | 0.678679 |
57f6526b0cd7c291d1a89649cea6e960df9c7488 | 1,777 | /**
* Copyright (c) 2020-2021 Mauro Trevisan
*
* 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, me... | 39.488889 | 100 | 0.751266 |
cd6c76a7762be9c3a236190402c765fcbaa53244 | 1,454 | import java.util.Scanner;
public class Histogram {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = Integer.parseInt(scan.nextLine());
double under200 = 0;
double from200to399 = 0;
double from400to599 = 0;
double from600to799 =... | 26.925926 | 68 | 0.482118 |
48075c33bfb6c6a93547e8f054c6e2412e1fb92a | 10,463 | /*
* 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 ... | 45.099138 | 119 | 0.722642 |
5e1b65a27c3a0e82f98c09d85ec35f1390f3c766 | 237 | package test.dependsongroup;
import org.testng.annotations.Test;
@Test(
groups = {"second"},
dependsOnGroups = {"zero"})
public class SecondSampleTest {
@Test
public void secondA() {}
@Test
public void secondB() {}
}
| 14.8125 | 35 | 0.670886 |
63c3e90d53bc6707edcefd7df73ec661667a1ff6 | 280 | package com.github.knightliao.vpaas.api.base;
import lombok.Data;
/**
* @author knightliao
* @email knightliao@gmail.com
* @date 2021/8/22 15:11
*/
@Data
public class VpaasRpcResponseBase {
private String traceId;
private String info;
private int statusCode;
}
| 16.470588 | 45 | 0.714286 |
57917f0087306ecf6d07cb54f1824f6f3ec248b7 | 1,467 | package umm3601.todo;
import org.junit.Test;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.*;
/**
* Tests umm3601.todo.ToDoDatabase filterToDosByLimit
* and listToDos with _limit_ query parameters
*/
public class FilterToDosByLimitFromDB {
@Test
p... | 31.891304 | 86 | 0.724608 |
2b6def1c5736fd2204df1bb9a531a9422ad2b3b8 | 1,508 | package org.myddd.security.account.application.assembler;
import org.myddd.security.account.domain.LoginEntity;
import org.myddd.security.api.LoginDTO;
import javax.inject.Named;
import java.util.Objects;
@Named
public class LoginAssembler {
public LoginEntity toEntity(LoginDTO dto){
if(Objects.isNull(d... | 32.085106 | 61 | 0.668435 |
7068088437d6ba13df09028bd40d4fce0e46e26d | 987 | package com.jvmausa.algafood.auth.core;
import javax.validation.constraints.NotBlank;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
@Validated
@Component
@ConfigurationProperties... | 21 | 75 | 0.701114 |
4274d27400f083c60b21b99d5e31dd3bfec2f7f5 | 2,374 | // Code generated by Wire protocol buffer compiler, do not edit.
// Source file: com/ppdai/framework/raptor/proto/Result.proto
package com.ppdai.framework.raptor.proto;
import com.ppdai.framework.raptor.annotation.RaptorField;
import com.ppdai.framework.raptor.annotation.RaptorMessage;
import java.util.List;
import j... | 23.50495 | 97 | 0.637321 |
b94692a7277ae28a8c3324bd8ef0a1a1edb01af3 | 4,690 | package org.ovirt.engine.core.common.utils.pm;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.fail;
import static org.ovirt.engine.core.common.businessentities.pm.FenceProxySourceType.CLUSTER;
import s... | 32.797203 | 106 | 0.635608 |
74b86d931b2e4092a700226aa73e78da4be9f118 | 1,459 | package com.zy.demo.base;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
import androidx.annotation.Nullable;
import com.zy.multistatepage.MultiStateContainer;
import com.zy.multistatepage.MultiStatePage;
import com.zy.multistatepage.OnNotifyListener;
im... | 27.528302 | 105 | 0.695682 |
626c5a3cc59dbcb76108a40830dca3fa867f6539 | 1,610 | //路径 被定义为一条从树中任意节点出发,沿父节点-子节点连接,达到任意节点的序列。同一个节点在一条路径序列中 至多出现一次 。该路径 至少包含一个 节点,且不
//一定经过根节点。
//
// 路径和 是路径中各节点值的总和。
//
// 给你一个二叉树的根节点 root ,返回其 最大路径和 。
//
//
//
// 示例 1:
//
//
//输入:root = [1,2,3]
//输出:6
//解释:最优路径是 2 -> 1 -> 3 ,路径和为 2 + 1 + 3 = 6
//
// 示例 2:
//
//
//输入:root = [-10,9,20,null,null,15,7]
//输出:42
//... | 21.756757 | 96 | 0.603727 |
d0fcf8dbf5530cfcdc55e2e9223a681d5b6955a5 | 103 | package com.cts.training.initialpublicofferingservice;
public interface InitialPublicOfferingDAO {
}
| 17.166667 | 54 | 0.854369 |
3c4fec6434029aa375e86419dea4afea00d97cf2 | 1,900 | package mage.cards.p;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.DiesSourceTriggeredAbility;
import mage.abilities.condition.Condition;
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
im... | 32.20339 | 106 | 0.718421 |
4154e8378e034c66ff789dd5ff4f3cdbe07b8cfe | 482 | package uk.gov.hmcts.reform.sscs.servicebus.messaging;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class MessagingConfigTest {
private final MessagingConfig messagingConfig = new MessagingConfig();
@Test
public void jmsUrlStringFormatsTheAmqpString() {
final String ... | 26.777778 | 106 | 0.732365 |
90cb1f775165ece43552688af5854621cef73208 | 3,393 | /**
* 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.12844 | 82 | 0.669909 |
af6e1c99f5d0dfe225ac8cfe5c409c97e989703f | 2,111 | package ru.fizteh.fivt.students.pershik.FileMap;
import java.util.NoSuchElementException;
import java.util.Scanner;
/**
* Created by pershik on 10/4/14.
*/
public class Runner {
protected boolean exited;
protected boolean batchMode;
protected boolean checkArguments(int min, int max, int real) {
... | 26.3875 | 66 | 0.54666 |
1c050fbeb9c6f5952cbe7e07b42b9665728e0080 | 276 | package org.dominokit.cli.generator;
import java.util.Map;
import java.util.function.Supplier;
public interface ProjectFile {
String getName();
void write(String path, Map<String, Object> context);
default Supplier<Boolean> condition() { return () -> true;}
}
| 21.230769 | 63 | 0.721014 |
347ae25e72a698987b4221004b0a7171af6a4632 | 1,207 | package cc.vihackerframework.uaa.controller;
import cc.vihackerframework.core.api.ViHackerResult;
import lombok.RequiredArgsConstructor;
import org.apache.commons.lang3.StringUtils;
import org.springframework.security.oauth2.provider.token.ConsumerTokenServices;
import org.springframework.stereotype.Controller;
import... | 26.822222 | 102 | 0.747307 |
18f6b06c20a871240fcf3ef0063635b8f6e3eb3e | 6,082 | /*******************************************************************************
* Copyright 2012 Internet2
*
* 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.ap... | 42.830986 | 104 | 0.663104 |
420d36a82bdc2e269fe8540890195fefa48682d7 | 3,669 | package com.alinv0.other;
/**
* Given a binary square matrix of nxn
* Find longest sequence of 1s on row, column or diagonal
*/
public class LongestOneStreak {
public static int getMatrixMaxSum(int[][] matrix) {
int maxSum = 0;
for (int i = 0; i < matrix.length; i++) {
maxSum = Math.... | 24.790541 | 72 | 0.452439 |
4024ffd20da0784a248e3baf374656d1ea096af4 | 1,681 | package specialmembershipservice.bootstrap;
import static org.apache.kafka.clients.producer.ProducerConfig.ACKS_CONFIG;
import static org.apache.kafka.clients.producer.ProducerConfig.BATCH_SIZE_CONFIG;
import static org.apache.kafka.clients.producer.ProducerConfig.BUFFER_MEMORY_CONFIG;
import static org.apache.kafka.c... | 33.62 | 93 | 0.791791 |
438d9208ab835ca1e046eae00afb2fdf10bc6947 | 42,648 | /*
* Copyright (c) 2016-2019 LabKey Corporation
*
* 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... | 46.406964 | 393 | 0.675811 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.