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 |
|---|---|---|---|---|---|
13da53aea89749fb0b26f10aa95cb9a35f9642b2 | 1,121 |
import java.util.ArrayList;
public class State implements Comparable<State>{
private String idName;
private int currentGroup;
public State(String id) {
this.idName = id;
setGroup(Constants.DEFAULT_GROUP);
}
public void setGroup(int group) {
this.currentGroup = group;
}
public int g... | 18.377049 | 72 | 0.62355 |
664d81594a5e621345c360cde36742aa27ed6429 | 2,040 | package com.commonsware.cwac.endless.demo;
import android.content.Context;
import android.os.SystemClock;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.RotateAnimation;
import android.widget.ArrayAdapt... | 30.909091 | 82 | 0.667157 |
bc40eaed6d154a37736979b1bb99c063cf0f2b93 | 765 | package edu.ucsb.ucsbcslas.repositories;
import java.util.List;
import edu.ucsb.ucsbcslas.entities.TutorAssignment;
import edu.ucsb.ucsbcslas.models.Course;
import edu.ucsb.ucsbcslas.entities.Tutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Reposit... | 36.428571 | 90 | 0.818301 |
fc07ac35f0ff73614f37c5e7893f12605b37e3f6 | 5,119 | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | 42.305785 | 107 | 0.7437 |
3567be3100b0d106ddff77929416d3d6b5a5c1f0 | 1,206 | package org.repositoryminer.metrics.codemetric;
import java.util.List;
import org.repositoryminer.metrics.ast.AST;
import org.repositoryminer.metrics.ast.AbstractField;
import org.repositoryminer.metrics.ast.AbstractMethod;
import org.repositoryminer.metrics.ast.AbstractType;
import org.repositoryminer.metrics.report... | 29.414634 | 106 | 0.772803 |
6d3b73a9c777b8e3235d050e11690ee648b81e24 | 2,708 | package org.tbk.spring.testcontainer.bitcoind.config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframew... | 46.689655 | 131 | 0.735229 |
4947ec961a9adff819ef8c30849906c367ad2e50 | 2,060 | // This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.shuziwuliu.models;
import com.aliyun.tea.*;
public class PayBillInvoiceParam extends TeaModel {
// 账单发票code
@NameInMap("pay_bill_invoice_code")
@Validation(required = true)
public String payBillInvoiceCode;
... | 26.753247 | 92 | 0.685437 |
14e84b93cdd5756bc81b008ddeebb1d5dbd9ae1d | 987 | package br.com.zupacademy.fabiano.casadocodigo.controller;
import br.com.zupacademy.fabiano.casadocodigo.dto.PaisRegisterDto;
import br.com.zupacademy.fabiano.casadocodigo.modelo.Pais;
import br.com.zupacademy.fabiano.casadocodigo.repository.PaisRepository;
import org.springframework.beans.factory.annotation.Autowired... | 35.25 | 84 | 0.804458 |
03d8cdb9d5c5066b3bc1721071cc19d61d6d01c6 | 1,332 | package org.sid.entities;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@Entity
public class RS implement... | 20.181818 | 56 | 0.680931 |
2762c943d986b19a59c5dfae889ea61ee1f4389c | 439 | package org.javamaster.idea.redis;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import org.jetbrains.annotations.NotNull;
/**
* @author yudong
* @date 2020/7/23
*/
public class RedisFrameAction extends AnAction {
@Override
public void actionPe... | 19.086957 | 66 | 0.749431 |
714954545324ee11472aa3ae45a857591c925e97 | 1,142 | package jihedamine.notesapp.appdirect.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Jihed Amine Maaref jihedamine@gmail.com
*/
@XmlRootElement(name="company")
@XmlAccessorType(XmlAccessType.FIEL... | 22.84 | 56 | 0.575306 |
bcb8dfbca97dd131d195247f4c41594afc496f63 | 1,088 | public final int connectAndLogin(Uri u, boolean cwd) throws UnknownHostException, IOException, InterruptedException {
if (ftp.isLoggedIn()) {
if (cwd) {
String path = u.getPath();
if (path != null) ftp.setCurrentDir(path);
}
return WAS_IN;
... | 37.517241 | 121 | 0.486213 |
b5c2fd731b0dfc43c21287fcd01993e788cfb842 | 896 | package WayofTime.bloodmagic.compat.jei.armourDowngrade;
import WayofTime.bloodmagic.util.Constants;
import mezz.jei.api.recipe.IRecipeHandler;
import mezz.jei.api.recipe.IRecipeWrapper;
import javax.annotation.Nonnull;
public class ArmourDowngradeRecipeHandler implements IRecipeHandler<ArmourDowngradeRecipeJEI> {
... | 27.151515 | 95 | 0.760045 |
3a6c51a77ca9f581556a4c3318f0666d61b49c21 | 1,291 | package unit13;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.concurrent.TimeUnit;
public class AutoSuggestiveDropDownList {
public static void main(Str... | 40.34375 | 164 | 0.715724 |
63b20e60e9b9547b3bb249f0a0760547ea4d1b5e | 5,025 | import java.util.NoSuchElementException;
/**
* <h1>Indexed Min Priority Queue: It is a traditional priority queue variant which on top of the regular PQ operations
* supports quick updates and deletions of key-value pairs. </h1>
*
* <li> Associate an index between 0 & N-1 with each key in a priority queue.
... | 24.043062 | 125 | 0.606766 |
db8802691fa287ff8237be934d626ed15b2e2d96 | 1,813 | package org.cboard.modules.dto;
import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import org.apache.commons.collections4.map.HashedMap;
import org.cboard.modules.pojo.DashboardJob;
import org.cboard.modules.services.role.RolePermission;
import java.io.Serializable;
import java.util.Date;
import java.util.Ma... | 31.807018 | 70 | 0.699393 |
3dc7cf89f602ca6c3062395c78c52f253146295d | 1,374 | package com.graphhopper.routing.util.parsers;
import com.graphhopper.reader.ReaderWay;
import com.graphhopper.routing.ev.EncodedValue;
import com.graphhopper.routing.ev.EncodedValueLookup;
import com.graphhopper.routing.ev.IntEncodedValue;
import com.graphhopper.routing.ev.SurfaceQuality;
import com.graphhopper.storag... | 34.35 | 108 | 0.763464 |
f7cd7f1da2440fd92878847e786717d3d0179dde | 8,816 | /*
* 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 ... | 29.09571 | 100 | 0.609914 |
f81191f0cbbecf201abe4e9d264c5515f8ec4ec7 | 1,328 | package org.evrete.spi.minimal;
import org.evrete.api.KeyMode;
import org.evrete.api.ValueHandle;
class KeyedFactStorageMulti extends AbstractKeyedFactStorage<FactsMapMulti> {
private final MultiState multiState;
KeyedFactStorageMulti(int initialSize, int fieldCount) {
super(FactsMapMulti.class, mode... | 27.666667 | 87 | 0.621988 |
84c038ccfed807df841ae70bdf3a4f1745521be9 | 6,412 | /*******************************************************************************
* Copyright 2019 alladin-IT GmbH
*
* 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.apach... | 37.27907 | 123 | 0.623206 |
4bcd653f84d0b9e69dee058f0a4518a7c74236a5 | 2,915 | // Copyright 2007, 2009 The Apache Software 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 applic... | 39.391892 | 120 | 0.700858 |
afb464a85c26fbb27b6261e1adc4f9fa630694c4 | 2,812 | package fr.sii.ogham.core.sender;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.sii.ogham.core.exception.MessageException;
import fr.sii.ogham.core.exception.MessageNotSentException;
import fr.sii.ogham.core.exception.handler.ContentTranslatorException;
import fr.sii.ogham.core.message.Message;
i... | 34.292683 | 127 | 0.747866 |
6ba8af31a73dff6c7e2012df116b49ae173b97e0 | 980 | package com.jx.maneger.util;
import android.support.annotation.NonNull;
/**
* Number相关工具类
*/
public class NumberUtil {
/**
* String类型值转化成int类型值
*
* @param value 文本类型值
* @return 转换成功返回浮点类型值,否则返回0
*/
public static int toInt(@NonNull String value) {
return Integer.parseInt(val... | 19.6 | 58 | 0.60102 |
a14f6e402dcf2b47f5e52991312236247697fcec | 899 | package cn.udslance.leetcode.mainofleetcode5;
import java.util.Arrays;
/**
* @author H
* @create 2021-08-23 9:21
*/
public class Solution621 {
public void test() {
char[] tasks = new char[]{'A', 'A', 'A', 'B', 'B', 'B', 'C', 'C', 'C', 'D', 'D', 'E'};
System.out.println(leastInterval(tasks... | 24.972222 | 94 | 0.467186 |
ca591a8909a2627959d79807b2643f6a18070d61 | 911 | package com.github.skhatri.mounted.model;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
@DisplayName("Provider List Tests")
public class SecretConfigurationTest {
@Te... | 33.740741 | 70 | 0.73326 |
2a96d4b96099b6ee6f96ec27472776924353ba2c | 1,470 | /*
* Copyright 2010 Guardian News and Media
*
* 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... | 29.4 | 78 | 0.72517 |
a987cfa7fa7c9c4cc1d97b59e038f45dd31f5cc0 | 7,354 | /**
* 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.029536 | 80 | 0.754555 |
6412e065e39758ae5230272c8b8d63002aac3e19 | 4,672 | package kobe.textureview_video_example;
import android.content.res.AssetFileDescriptor;
import android.graphics.SurfaceTexture;
import android.graphics.drawable.BitmapDrawable;
import android.media.MediaMetadataRetriever;
import android.media.MediaPlayer;
import android.os.Bundle;
import androidx.appcompat.app.AppComp... | 31.355705 | 103 | 0.634632 |
9719e5c48606e0c9e16c807256058ca75ae7d0ac | 2,616 | /*
* 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 ... | 37.371429 | 119 | 0.724006 |
8ebd76c82fda1ec39eddf577581c8f382e13fd9d | 471 | package com.meiqia.core;
import com.squareup.okhttp.Response;
import org.json.JSONObject;
class d implements cw {
final /* synthetic */ dc a;
final /* synthetic */ b b;
d(b bVar, dc dcVar) {
this.b = bVar;
this.a = dcVar;
}
public void a(JSONObject jSONObject, Response response... | 22.428571 | 76 | 0.632696 |
82d2e9c324ffed657786de95679eacb7780a88e6 | 763 | package me.yukicoder.lv1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.math.RoundingMode;
public class No0211 {
public static void main(String[] args) {
try (BufferedReader br = new BufferedReader(new InputStreamReader(System.... | 24.612903 | 83 | 0.640891 |
dbf6f62c3be4c9a2baa034246d08fad678c79db1 | 2,421 | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | 38.428571 | 116 | 0.742255 |
26e2c23ae7822bd9b22b1112febfac4737a32d11 | 1,592 | package seedu.address.model.student;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.testutil.Assert.assertThrows;
import org.junit.jupiter.api.Test;
import seedu.address.model.tutorialgroup.DayOfWeek;
public class Da... | 35.377778 | 98 | 0.717337 |
b899b80f08714f7fe0faf2f6ae6726d152ceef1c | 2,410 | package com.revature._1811_nov27_wvu.icebox.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.pers... | 22.314815 | 102 | 0.670539 |
5aef648ed4487c8693286553ceeedcd736b8da9a | 391 | package me.ianhe.pp.service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import me.ianhe.pp.dao.QuestionDao;
import me.ianhe.pp.entity.QuestionEntity;
import org.springframework.stereotype.Service;
/**
* @author iHelin ihelin@outlook.com
* @since 2021-04-16 12:01:34
*/
@Service
public clas... | 24.4375 | 79 | 0.792839 |
8e07235e493ff22c2a1c76aae149680409044cdc | 1,452 | /*
* Copyright 2011 Kapelonis Kostis
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 25.473684 | 75 | 0.704545 |
8cc5050bfff8b028f3afcf55c290a20e695fec99 | 65 | package ru.job4j.loop;
/**
* Package for lesson about loops
*/ | 13 | 33 | 0.676923 |
e9d33ecfa033c1e8200912f31d2a47246d1e2b2b | 4,605 | package io.fabric.sdk.android.services.network;
import io.fabric.sdk.android.c;
import io.fabric.sdk.android.k;
import java.security.KeyStoreException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.PublicKey;
import java.security.cert.CertificateException;
impo... | 30.90604 | 144 | 0.695331 |
fe4205e2d5ba82a16f4e44cac022b3027d36cd48 | 171 | package com.github.ahmadaghazadeh.sample.base;
import android.support.annotation.StringRes;
public interface INavigator {
void handleError(Throwable throwable);
}
| 17.1 | 46 | 0.80117 |
7518171d011d3e017d65a10795050d14ec61b883 | 1,171 | package com.example.hello.pojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* 用户档案
*
* @author Aaric, created on 2020-12-22T15:06.
* @version 0.4.0-SNAPSHOT
*/
@Data
@Accessors(chain ... | 26.613636 | 77 | 0.695986 |
2791dc3797fd3cb10f063bcc8b91289a09061169 | 3,243 | package net.glowstone.block.blocktype;
import net.glowstone.EventFactory;
import net.glowstone.block.GlowBlock;
import net.glowstone.block.GlowBlockState;
import net.glowstone.entity.GlowPlayer;
import org.bukkit.DoublePlantSpecies;
import org.bukkit.GrassSpecies;
import org.bukkit.Material;
import org.bukkit.block.Bl... | 37.275862 | 101 | 0.648165 |
f6f9188732b643800280cac919fb19ef62656c8a | 255 | package com.mongo.springbootmongodb;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface EmployeeRepository extends MongoRepository<EmployeeModel, Long> {
}
| 28.333333 | 83 | 0.854902 |
f8d081bbdc04364d19a36ad39496e8ca47283bea | 25,940 | /*
* Copyright (C) 2015 The Android Open Source 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 app... | 47.948244 | 131 | 0.645374 |
c2d3112e6e909202a5b9317d5d63851ec4f1d511 | 499 | package io.agrest.resolver;
import io.agrest.NestedResourceEntity;
import io.agrest.property.PropertyReader;
import io.agrest.runtime.processor.select.SelectContext;
/**
* @since 3.4
*/
public interface NestedDataResolver<T> {
void onParentQueryAssembled(NestedResourceEntity<T> entity, SelectContext<?> context... | 27.722222 | 112 | 0.785571 |
1e2aabaa887910828d0006fa469858a05f110954 | 420 | package com.deliveredtechnologies.terraform;
import java.io.File;
public class TerraformPathResolver {
/**
* Gets the Path for Terraform bin.
* @return
*/
public String getPath() {
File tfwrapper = new File(".tf/tfw");
if (tfwrapper.exists()) {
tfwrapper.setExecutable(true);
}
ret... | 21 | 99 | 0.645238 |
c1c6117ecbd822311142fc96bc514c8a8c83c60e | 131 | package daris.web.client.model.query;
public interface Filter {
void save(StringBuilder sb);
String toQueryString();
}
| 13.1 | 37 | 0.717557 |
a959ceb13c0bc47b9936bc753c117c7ef78bc5d3 | 20,157 | /*-
* #%L
* anchor-image
* %%
* Copyright (C) 2010 - 2020 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche
* %%
* 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... | 43.255365 | 100 | 0.621323 |
6c6fc874f0135dd464f17a8e2c51716dfead49f3 | 2,214 | /*
* Copyright 2021 Hazelcast Inc.
*
* Licensed under the Hazelcast Community License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://hazelcast.com/hazelcast-community-license
*
* Unless required by applicable law or agree... | 36.295082 | 111 | 0.776423 |
ccd72eb91f27f00f13d7a0c028d7834e8d1cbc92 | 535 | public class ThreeDimensionalObjectFactory {
public static String getMenu() {
String menu = " 1. 球\n" +
" 2. 正八面体";
return menu;
}
public static IThreeDimensionalObject create(String name)
throws VolumeCalculatorException {
if( name.equals("1") || name.equals("球") ) {
return... | 25.47619 | 62 | 0.592523 |
e2d1406cc3f854fce20d82af229d83be5a6bbdf6 | 2,793 | package com.harambeeapps.theoddsapiclient.utility;
import android.app.Activity;
import android.content.Context;
import android.view.View;
import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.ads.InterstitialA... | 30.032258 | 113 | 0.609739 |
2391634d5a9c688ed65e9cd311ffd7834c49ebc4 | 43 | package util;
public class FrontUtil {
}
| 7.166667 | 24 | 0.72093 |
7deba33cd1da9c4528a48492b1b658d043186b8f | 2,134 | package io.microgenie.application;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import io.microgenie.application.blob.FileStoreFactory;
import io.microgenie.application.database.DatabaseFactory;
import io.microgenie.application.events.EventF... | 23.195652 | 78 | 0.751172 |
5446968c181faa70aae6996459530e7ecb7d7e50 | 1,603 | package cn.sharesdk.wechat.utils;
import android.text.TextUtils;
import cn.sharesdk.framework.a.a;
import cn.sharesdk.framework.authorize.AuthorizeListener;
import com.mob.tools.a.i;
import java.util.ArrayList;
class h extends Thread
{
h(g paramg, String paramString, AuthorizeListener paramAuthorizeListener)
{
... | 25.046875 | 138 | 0.608858 |
05ee8382c3764f0bfa5af9e413f501a19fdfc043 | 600 | package fr.sii.ogham.sms.sender.impl.cloudhopper;
import fr.sii.ogham.sms.exception.message.EncodingException;
/**
* Handles charset detection for messages content.
*
* @author cdejonghe
*
*/
public interface CloudhopperCharsetHandler {
/**
* Encodes the message string content after a charset detection.
... | 25 | 69 | 0.718333 |
ed8bc05f66c84458ad4901c99a635ba99dceabb8 | 1,415 | package com.tzj.garvel.cli.api.core;
import com.tzj.garvel.cli.exception.CLIErrorHandler;
import com.tzj.garvel.common.spi.core.CoreServiceLoader;
import com.tzj.garvel.common.spi.core.command.CommandException;
import com.tzj.garvel.common.spi.core.command.CommandType;
import com.tzj.garvel.common.spi.core.command.par... | 38.243243 | 128 | 0.725088 |
e904909ebed3aaa405c89617a4fa22534a2d1ecc | 10,864 | package com.dawson.aaaccount.service;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import javax.annotation.Resource;
import org.apache.http.util.TextUtils;
import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSONObject;
im... | 31.859238 | 107 | 0.706001 |
893620e0bdf655a996af3f2e4df5f7886954b2d3 | 914 | package com.cloudlbs.core.utils.service;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.EntityNotFoundException;
import com.cloudlbs.core.utils.search.Searchable;
/**
* Useful pattern for all services that provide CRUD and search capability.
*
* @author Dan Mascenik... | 22.85 | 76 | 0.707877 |
9ef9e1f4ba8bb73bbeaa9cbac697a97c3d2275b6 | 2,419 | package com.thatcoolcoder.weather.weatherApp.weatherDisplayPanel;
import com.thatcoolcoder.weather.weatherApi.models.WeatherSnapshot;
import com.thatcoolcoder.weather.weatherApp.Fonts;
import com.thatcoolcoder.weather.weatherApp.UIUtils;
import javax.swing.*;
import java.awt.*;
import javax.swing.plaf.InsetsUIResourc... | 31.415584 | 85 | 0.620091 |
e334da1870323d4def845c3acb651bae169b593b | 1,237 | package class_box_data_validation;
public class Box {
private double length;
private double width;
private double height;
Box(double length, double width, double height) {
this.setLength(length);
this.setWidth(width);
this.setHeight(height);
}
public void setLength(dou... | 25.244898 | 85 | 0.607922 |
624f23dea7d1ada6b25273b15bc83a3faa8368ec | 850 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.flags;
import javax.annotation.concurrent.Immutable;
import java.util.List;
/**
* @author freva
*/
@Immutable
public class UnboundListFlag<T> extends UnboundFlagImpl<List<T>, ListFlag<T>,... | 36.956522 | 109 | 0.695294 |
699af6a95f4f95b566959a3fcca599b19c096a49 | 4,382 | package com.team2337.robot.subsystems;
import com.ctre.phoenix.motorcontrol.ControlMode;
import com.ctre.phoenix.motorcontrol.can.TalonSRX;
import com.team2337.robot.Robot;
import com.team2337.robot.RobotMap;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
... | 27.217391 | 107 | 0.721588 |
ba1f2ebce92ac977da1cbf9c094b733e135e02d3 | 12,041 | /*
Calimero - A library for KNX network access
Copyright (C) 2006-2008 W. Kastner
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(a... | 35.943284 | 91 | 0.703928 |
e1bf6da29ae02e83bfae50fb72a3352314f82650 | 4,126 | package io.moku.davide.sideproject;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import andr... | 37.171171 | 131 | 0.718856 |
ed0ec15ab00d28d2adea2c462abf77c9a6e8137f | 3,323 | /** Copyright 2012, Adam L. Davis, all rights reserved. */
package com.adamldavis.z.ruby;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.LineIterator;
import org.slf4j.Logger;
import org.slf4j.Log... | 23.567376 | 78 | 0.689136 |
224f7d439e91f9b8960b2e1eaf9c2969c69699e9 | 1,210 | /**
* Copyright (c) 2008-2010 Ardor Labs, Inc.
*
* This file is part of Ardor3D.
*
* Ardor3D is free software: you can redistribute it and/or modify it
* under the terms of its license which may be found in the accompanying
* LICENSE file or at <http://www.ardor3d.com/LICENSE>.
*/
package com.ardor3d.renderer... | 26.888889 | 82 | 0.701653 |
d44c8484fc2a926a5647e980ce1d72235ae88a38 | 2,256 | /*
* Copyright (c) 2017. EPAM Systems
*
* 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... | 34.707692 | 99 | 0.695035 |
0280dfedee39df151234d3abcd6031d14e865fb6 | 838 | package me.skiincraft.embed;
import freemarker.template.Configuration;
import me.skiincraft.embed.embeds.Embed;
import javax.xml.bind.JAXBContext;
public class EmbedTemplate {
private static final EmbedTemplate instance = new EmbedTemplate();
private final Configuration cfg;
private JAXBContext xml;
... | 23.277778 | 70 | 0.664678 |
e9564b3bff6c2d86c917f2d3160c6274ff1edd36 | 9,564 | package io.syndesis.qe.steps.other;
import static org.assertj.core.api.Assertions.assertThat;
import static com.codeborne.selenide.Condition.visible;
import static com.codeborne.selenide.Selenide.$;
import static com.codeborne.selenide.Selenide.$$;
import static com.codeborne.selenide.Selenide.executeJavaScript;
imp... | 47.1133 | 147 | 0.691447 |
45e0095fb6eeff9bd7ea2683634773cceebc64c3 | 1,729 | package Entily;
import java.io.Serializable;
import java.util.Objects;
import javax.swing.JOptionPane;
public class Leitor implements Serializable{
private String codLeitor;
private String nomeLeitor;
public Leitor(String codLeitor,String nomeLeitor){
this.codLeitor = codLeitor; ... | 24.7 | 105 | 0.559283 |
5ad0ee1275c2d64e997296cb77b1b38e989e0b5c | 7,951 | /**
* Copyright (C) 2016 - 2030 youtongluan.
*
* 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 applicab... | 27.800699 | 103 | 0.609986 |
61c16f536ccc9402bd5525ac9fee2f654cb66698 | 1,519 | package com.kesizo.cetpe.front.ui.views.login;
import com.kesizo.cetpe.front.util.Constants;
import com.vaadin.flow.component.html.H1;
import com.vaadin.flow.component.login.LoginForm;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.BeforeEnterEvent;
import com.vaadin.flow.... | 30.38 | 89 | 0.686636 |
d26aeb6c7a926a93beb1e8bb6b2c8fcba77139ea | 4,506 | /*
* Copyright (c) 2014. NoxPVP.com
*
* All rights are reserved.
*
* You are not permitted to
* Modify
* Redistribute nor distribute
* Sublicense
*
* You are required to keep this license header intact
*
* You are allowed to use this for non commercial purpose only. This does not allow any ad... | 20.206278 | 132 | 0.648247 |
61b8fd5671c35f4aceb414890e1f9280e8b0571c | 625 | package com.github.demo8;
import java.util.concurrent.ArrayBlockingQueue;
/**
* @author 许大仙
* @version 1.0
* @since 2021-10-14 15:52
*/
public class Consumer implements Runnable {
private ArrayBlockingQueue<String> queue;
public Consumer(ArrayBlockingQueue<String> queue) {
this.queue = queue;
... | 20.833333 | 55 | 0.5632 |
775883d01d3e4481d6d0bc05d607e3b08fa86f35 | 29,710 | /** Notice of modification as required by the LGPL
* This file was modified by Gemstone Systems Inc. on
* $Date$
**/
// $Id: Protocol.java,v 1.34 2005/10/27 16:05:04 belaban Exp $
package com.gemstone.org.jgroups.stack;
import com.gemstone.org.jgroups.util.GemFireTracer;
import com.gemstone.org.jgroups.Event;
i... | 35.453461 | 135 | 0.568294 |
ce7b986ad8aa34387b0938ddb0cbc93503a7890b | 2,531 | package lingogo.logic.commands;
import static java.util.Objects.requireNonNull;
import static lingogo.logic.parser.CliSyntax.PREFIX_ENGLISH_PHRASE;
import static lingogo.logic.parser.CliSyntax.PREFIX_FOREIGN_PHRASE;
import static lingogo.logic.parser.CliSyntax.PREFIX_LANGUAGE_TYPE;
import lingogo.commons.core.Message... | 35.647887 | 115 | 0.701304 |
14cb44b163e69f29cfcf3b19a971c8e440dfa7d6 | 2,851 | package cn.stylefeng.guns.config.web;
import cn.stylefeng.guns.core.beetl.CustomBeetlGroupUtilConfiguration;
import cn.stylefeng.guns.core.beetl.expander.BeetlConfigExpander;
import cn.stylefeng.roses.kernel.auth.api.LoginUserApi;
import org.beetl.core.resource.ClasspathResourceLoader;
import org.beetl.ext.spring.Beet... | 36.551282 | 140 | 0.754823 |
a9ea484302848d2b95e51c292fe18b9a77c3f4a7 | 1,298 | package yelpInterview;
public class _BT28CousinNodes {
static class Node{
Node left,right;
int value;
public Node(int value) {
this.value=value;
}
}
public static void main(String a[]){
Node n=new Node(6);
n.left=new Node(3);
n.right=new Node(5);
n.left.left=new Node(7);
n.left.right=new Node(8... | 20.28125 | 89 | 0.597072 |
10170d86a89bc25532b9f30e58d442ea5c27498c | 1,596 | /*
Copyright 2019-present, Simon 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 to in writing, so... | 27.050847 | 74 | 0.696742 |
c37ba47c106bf4a62ea7a18346c6bb1f4d5087e0 | 2,102 | package com.akshor.pjt33.arfaxad;
import java.text.*;
import java.util.Vector;
import javax.swing.*;
import javax.swing.text.Position;
/**
* JList allows typing a prefix of an element to search for the element, but the way it does it isn't suited to
* languages with accents. This class redefines the method that doe... | 26.948718 | 111 | 0.673168 |
5b93c7d134dc11006ccf396867b1e69dd49dd98e | 994 | package lec14Final;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;
/**
* Sample Input 3 100 99 98 4 100 99 98 97
* Sample Output 99.00 98.50
*
* @author Administrator
* 不用修改代码,本地调用文件,oj提交时候自动绑定标准
*/
public class ... | 20.708333 | 55 | 0.587525 |
cc161349dfbdb5e9471713d386af84977ada69c4 | 21,881 | /*
* Copyright 2020. Huawei Technologies Co., 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... | 42.570039 | 127 | 0.68708 |
05e3e0c2314ee7ca0f934042d450b4860207c455 | 1,890 | /*
* Copyright 2010-2020 Australian Signals Directorate
*
* 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 appl... | 28.208955 | 88 | 0.691005 |
9bc7e8e02f0c29615980e8e25c7d4454c7fec1ff | 22,022 | /* Copyright 2018 Urban Airship and Contributors */
package com.urbanairship.push;
import android.app.Notification;
import android.app.PendingIntent;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.NotificationCo... | 41.62949 | 151 | 0.694669 |
115167104402776ccc9a857a8858d595dbc71abf | 2,022 | package ua.coolboy.f3name.bukkit;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.file.FileConfiguration;
import ua.coolboy.f3name.core.ConfigParser;
import ua.coolboy.f3name.core.F3Group;
public class BukkitConfigParser implemen... | 28.885714 | 91 | 0.654303 |
59bf360c41605398773d3d3425a4697a9af15b24 | 1,887 | /**
* Licensed to jclouds, Inc. (jclouds) under one or more
* contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. jclouds licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use ... | 30.435484 | 122 | 0.717011 |
ac6d67e8304324b5ee9e7367a6359eeafcb3e0fc | 1,798 | package com.boaglio.appmon.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
@Configuration
public class DynamicConfig {
@Value("${appmon.data:none}")
private String dataDiretory;
@Value("${appmon.debug:false}")
private boolean debug;... | 21.926829 | 105 | 0.676307 |
2f4ceb203dc3be45235ae66c5706e5718b13862b | 425 | package io.github.gaozuo.easyio.access;
import io.github.gaozuo.easyio.source.ObjectResource;
import io.github.gaozuo.easyio.source.PathResource;
import java.util.List;
public interface ResourceBucket {
boolean hasPathResource();
boolean hasObjectResource();
boolean hasError();
List<PathResource>... | 19.318182 | 53 | 0.755294 |
b0409c48831ef165cf209c7170635b507735b63e | 3,088 | package com.mmkpark.mqtt;
import org.apache.commons.lang3.StringUtils;
import org.eclipse.paho.client.mqttv3.MqttConnectOptions;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springf... | 29.692308 | 82 | 0.692034 |
06ee33d14455f1663372a49351920dea13bc037b | 207 | package com.bupt.poirot.pattern.facadePattern;
/**
* Created by hui.chen on 11/25/16.
*/
public class RobotBody {
public void CreateBody() {
System.out.println("Body Creation done");
}
}
| 17.25 | 49 | 0.657005 |
aaeb8d1becec9adc010c3bff9f46959e99e3e7fc | 3,350 | package org.example.util;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.GenericBeanDefinition;
import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;... | 39.880952 | 138 | 0.679104 |
b17f88aba85a5326fa90df891fc0b1b442fd0860 | 1,083 | package enderpower.projectiles;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.scoreboard.Team;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.w... | 25.785714 | 99 | 0.728532 |
88d0f2dadfe45b616ae9be85da9a4aae32643b1f | 2,499 | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... | 59.5 | 304 | 0.801921 |
25b52ad8c7b1d356093c890611d8a026b2ef6178 | 369 | package io.fairyproject.gradle.file;
import io.fairyproject.gradle.FairyExtension;
import org.apache.commons.lang3.tuple.Pair;
import org.jetbrains.annotations.Nullable;
import java.util.Map;
public interface FileGenerator {
@Nullable Pair<String, byte[]> generate(FairyExtension extension, @Nullable String main... | 26.357143 | 136 | 0.802168 |
fdc4f5d4a14386f1f68b09d16e3dc0d13d36bd1b | 16,854 | /*
* Copyright 2000-2016 Vaadin 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 applicable law or agreed to... | 33.775551 | 80 | 0.636288 |
a9323c2e8f22ae824359922606b514e909ecc675 | 1,520 | package com.karashok.mvvm.module_gankio.net.data_manager;
import android.content.Context;
import com.karashok.library.common.base.BaseObserver;
import com.karashok.library.common.base.DataManager;
import com.karashok.library.common.net.DataCallBack;
import com.karashok.mvvm.module_gankio.MGankIOConstant;
import com.k... | 29.230769 | 115 | 0.645395 |
1a72c90d2988229cacafeb9198ef5d27617cc409 | 1,822 | import java.util.ArrayList;
public class TreeNode {
TreeNode parent;
double distance;
ArrayList<TreeNode> children;
int data;
public TreeNode(int new_data) {
this.data = new_data;
this.parent = null;
this.distance = 0.0;
this.children = new ArrayList<TreeNode>();
... | 30.881356 | 131 | 0.622393 |
26d9fb229f8185a0b56d2ac4fb54cc5aa3af465b | 1,135 | package com.henninghall.date_picker.wheels;
import android.graphics.Paint;
import com.henninghall.date_picker.Mode;
import com.henninghall.date_picker.PickerView;
import com.henninghall.date_picker.Settings;
import java.util.Calendar;
public class HourWheel extends Wheel {
public HourWheel(PickerView pickerView... | 24.148936 | 70 | 0.647577 |
2ffb7744a3bb4ff77bcb961a0fb23cab95c2f1c8 | 2,084 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 33.079365 | 89 | 0.730806 |
d310c607ac7ef712a9eecf05c8780bc9fb1eaec1 | 511 | /**
* (Average speed in kilometers) Assume that a runner runs 24 miles in 1 hour, 40
* minutes, and 35 seconds. Write a program that displays the average speed in
* kilometers per hour. (Note 1 mile is equal to 1.6 kilometers.)
*
* Created by Sven on 8/16/2018.
*/
package Chapter01;
public class Exercise0112_Ave... | 34.066667 | 110 | 0.667319 |
f239e3cf9f1f49c6c8f52056136686176fb2c8fa | 4,424 | package com.bytestorm.isp;
import java.io.File;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class LocalReports implements ReportsProvider {
... | 38.469565 | 116 | 0.577306 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.