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 |
|---|---|---|---|---|---|
76d32a80c2e96e7961c655eb2906452e8e0a3670 | 46,362 | /*
* Copyright (C) 2020 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.356486 | 199 | 0.554355 |
537d679984950a7a4e620269f8dc540bb5cadf53 | 165 | package com.sigma.sigmacore.message;
/**
* @author huston.peng
* @version 1.0.6
* date-time: 2019/7/18-13:33
* desc: 标记接口
**/
public interface MessageBody {
}
| 15 | 36 | 0.666667 |
234d398983b0cad502bee8dba8f2668dc0d6574d | 256 | package com.codecool.geekofplanets.world.universe.technologies;
import com.codecool.geekofplanets.world.universe.Resources;
public class SpyTechnology extends Technology{
public SpyTechnology() {
super(new Resources(0, 1200, 500,0));
}
}
| 25.6 | 63 | 0.757813 |
a31f5de3cf48e39c5b6b7417d10720c583babee5 | 6,432 | /**
* 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... | 30.483412 | 98 | 0.676461 |
31ea2f2614245163043723ba7d33ab2a7c2c2331 | 181 | package com.mark.ifamily;
/**
* Created by mark.zhu on 2016/9/29.
*/
public interface Command {
void execute(Context context) throws Exception;
String getConfigFile();
}
| 18.1 | 51 | 0.701657 |
c9b63c882e61c63526c24c3ddc05022d01dcd307 | 4,504 | package org.estatio.module.lease.dom.party;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import javax.jdo.annotations.Column;
import org.joda.time.LocalDate;
import org.apache.isis.applib.annotation.DomainObject;
import org.apache.isis.applib.annotation... | 34.914729 | 167 | 0.720693 |
f7849005adfe8fdf3ee492d81553aeda4c525bc8 | 1,114 | package com.cellarlabs.rbmandroidclient;
import android.os.Looper;
import com.badoo.mobile.util.WeakHandler;
/**
* Created by vhanssen on 02/06/15.
*/
abstract public class Listener {
private int tag = 0;
private boolean mainthread = false;
public Listener() {
}
public Listener(boolean mainth... | 21.018868 | 74 | 0.595153 |
d0efe408a24fcdbf58ce32756779c3fa1c3c9614 | 681 | package alien4cloud.plugin.archives;
import java.util.List;
import alien4cloud.orchestrators.plugin.model.PluginArchive;
import alien4cloud.plugin.exception.PluginArchiveException;
/**
* Plugin component that allows to provide archives to be indexed into alien4cloud catalog.
*/
public interface IArchiveProviderPlu... | 34.05 | 101 | 0.759178 |
08ed19ad57f288f2a0c80c40048f82564f4caa6d | 2,395 | /*
* Copyright (C) PicoContainer Organization. All rights reserved. *
* ------------------------------------------------------------------------- *
* The software in this package is published under the terms of the BSD *
* style license a copy of which has been included with this distribution in *
... | 38.015873 | 96 | 0.625887 |
69752a575a394295ee731c3558008484a97948f9 | 1,265 | /**
*
*/
package org.iplantc.service.common.auth;
import org.restlet.Context;
import org.restlet.Guard;
import org.restlet.data.ChallengeScheme;
import org.restlet.data.Method;
import org.restlet.data.Request;
import java.util.List;
/**
* @author dooley
*
*/
public abstract class AbstractGuard extends Guard {
... | 23.425926 | 82 | 0.714625 |
1a5bdd755ae1606ff9b801b09fd83d0b95f2a898 | 429 | package com.awslabs.aws.greengrass.provisioner.implementations.helpers;
import com.awslabs.aws.greengrass.provisioner.interfaces.ExceptionHelper;
import javax.inject.Inject;
public class BasicExceptionHelper implements ExceptionHelper {
@Inject
public BasicExceptionHelper() {
}
@Override
public ... | 25.235294 | 73 | 0.776224 |
a3f37c13bc5bb98c07a96b65bc53a2e9c5179eba | 6,577 | /*
* Copyright (C) 2017-2019 Dremio 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... | 45.358621 | 114 | 0.77847 |
e53e3c33fe1413659f8042c0b00116a90f2b323e | 160 | /**
* Entitäten des ShareIt Systems.
*
* @author Ulli Hafner
*/
@javax.annotation.ParametersAreNonnullByDefault
package edu.hm.hafner.shareit.model;
| 20 | 48 | 0.725 |
c6a8f1231353d3ff62796755f4ca6da89c16f585 | 2,524 | package com.appnerds.hrishikesh.firechat.notifications;
import android.util.Log;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.FirebaseInstanceIdService;
/**
* Created by marco on 09/08/16.
*/
public class MyFirebaseInstanceIDService extends FirebaseInstanceIdService {
pri... | 36.057143 | 116 | 0.630745 |
181938c49372dea5d86006265f241e59a4969872 | 2,026 | package seeta.aip;
/**
* AI Package description. Method should call using {@code Instance}.
* This is interface class with native achivements.
*/
public class Package {
private byte[] cdata;
private native void construct(byte[] cdata);
public Package(byte[] cdata) {
this.construct(cdata);
... | 32.677419 | 125 | 0.672754 |
10cacd51e7633ab793cd94dee17341c6b647710c | 2,247 | package org.butterfaces.resolver;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import javax.faces.component.UIComponentBase;
import javax.faces.component.behavior.AjaxBehavior;
import javax.faces.component.behavior.ClientBehavior;
import java.util.ArrayList;
import java.util.HashMap;
im... | 35.109375 | 128 | 0.736983 |
0c1ea86ff78a7fb16b0e4d7448da14957f50d064 | 4,420 | /*
* [[ Frozen-Bubble ]]
*
* Copyright (c) 2000-2003 Guillaume Cottenceau.
* Java sourcecode - Copyright (c) 2003 Glenn Sanson.
*
* This code is distributed under the GNU General Public License
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the ... | 28.152866 | 78 | 0.650452 |
09f5b8ec4624417c059aaa42195182f9eb466593 | 2,481 | package com.kjnext.dmart.hibernate;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* Users generated by MyEclipse - Hibernate Tools
*/
public class Users implements java.io.Serializable {
// Fields
private Integer uid;
private String uname;
private String upa... | 19.084615 | 125 | 0.61709 |
eedb7b9404968998cfa2821fdf2e8d17eafe2788 | 2,295 | /*
* Copyright (c) 2010-2017, sikuli.org, sikulix.com - MIT license
*/
package org.jdesktop.swingx;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Insets;
import org.jdesktop.beans.JavaBean;
import org.jdesktop.swingx.util.Separator;
/**
* Organizes components in... | 27 | 83 | 0.606536 |
37173e392a0c91d721472bc050bb83772ebea3f2 | 1,613 | package epl.eval.values;
import epl.eval.operations.comparators.Equal;
import epl.eval.operations.comparators.Unequal;
import epl.eval.operations.conjunction.And;
import epl.eval.operations.conjunction.Not;
import epl.eval.operations.conjunction.Or;
public record BooleanValue(boolean value) implements Value, And, Not... | 23.720588 | 137 | 0.616863 |
2f9cad02f3e01331f988954e075edca3da2d5dc6 | 2,777 | package org.etl.spi.flink.reducer.aggregator;
import com.google.common.base.Optional;
import com.google.common.base.Predicate;
import com.google.common.collect.FluentIterable;
import org.etl.api.Record;
import org.etl.api.transform.AggregateType;
import org.etl.api.transform.Aggregator;
import org.etl.api.transform.Ag... | 36.064935 | 161 | 0.64458 |
7a0b24e4b1930a136ebbc98ae94f242c5ea605c9 | 4,684 | /*
* Copyright 2010-2021 James Pether Sörling
*
* 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 o... | 32.303448 | 149 | 0.7231 |
826192da5a325d8c26ddca2aee0fe91da2a2de11 | 2,446 | /*
* 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.ptc.services.common.gateway;
import com.mks.gateway.data.ExternalItem;
import com.mks.gateway.mapper.ItemMapperException;
... | 28.114943 | 106 | 0.611202 |
6bdb1245c5a7b313de1814f99d7687730db7e21d | 34,477 | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 32.679621 | 111 | 0.67094 |
3c09fab8517bf02e9fc5ba8bc98f6bc91ee1a614 | 1,035 | package org.maximkir.shcf4j.java.http.client.config;
import org.maximkir.shcf4j.api.NotSupportedException;
import org.maximkir.shcf4j.api.SyncClientBaseTest;
import org.maximkir.shcf4j.api.config.HttpClientBuilderConfigTest;
import org.slf4j.bridge.SLF4JBridgeHandler;
public class SyncJavaHttpClientBuilderConfigTest ... | 25.875 | 116 | 0.740097 |
8eb8022d650a4ce5ef2c52571be386de3938a5dd | 1,709 | package com.mapsindoors.stdapp.ui.common.fragments;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.provider.Settings;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflat... | 29.465517 | 132 | 0.684026 |
dcc5d105d9aed461c5643460fa04a33cf9bb1095 | 986 | package com.skyinu.wardhere;
import android.support.annotation.Keep;
import android.util.Log;
@Keep
public class LogPrinter {
private static EventListenerAdapter eventListenter;
public static void setEventListenter(EventListenerAdapter eventListenter) {
LogPrinter.eventListenter = eventListenter;
... | 29.878788 | 79 | 0.661258 |
47d7b49b20b90c3c589602901691ab6a771f21e8 | 3,449 | package com.kinglozzer.silverstripe.ide.highlighting;
import com.intellij.openapi.editor.colors.TextAttributesKey;
import com.intellij.openapi.fileTypes.SyntaxHighlighter;
import com.intellij.openapi.options.colors.AttributesDescriptor;
import com.intellij.openapi.options.colors.ColorDescriptor;
import com.intellij.op... | 43.658228 | 112 | 0.71586 |
d2cbe15b2635e1cda269b4966806a8f3618a4a1e | 1,256 | package org.appops.demo.common.dto;
import java.io.Serializable;
import java.util.Date;
import jsinterop.annotations.JsType;
@SuppressWarnings("serial")
@JsType (namespace = "JsHost")
public class Country implements Serializable{
private String country;
private String city;
private double latitude;
private doub... | 17.690141 | 80 | 0.720541 |
52ce71762e31820ea66d87bf0666a12b2a673a47 | 1,658 | package io.github.doocs.im.model.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author hyh
* @since 2021/07/31 14:34
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class FriendGetRequest extends GenericRequest {
@JsonProperty("Fr... | 25.121212 | 119 | 0.706876 |
a182afd9b8bd78890788bfcba844c14a4592f3c3 | 162 | /**
* Copyright (C) 2018 - Marc Henrard.
*/
/**
* Package with classes related to the generic pricing tools.
*/
package marc.henrard.murisq.pricer.generic;
| 16.2 | 61 | 0.685185 |
a86b6da6719831c9cab7de39ca1e7c31abf921a0 | 687 | package com.ldp.oa.resource.actionform;
public class KynamicForm {
private Long kynamicId;
private Long pid;
private String kynamicName;
private Boolean isParent;
public Long getPid() {
return pid;
}
public void setPid(Long pid) {
this.pid = pid;
}
public Long getKynamicId() {
return kynamicId... | 14.934783 | 49 | 0.714702 |
d6a7c81cc9f5bd0ad8d2b62bf6fff8d8615a2517 | 581 | package com.github.aha.poc.micro.district.rest;
import org.springframework.hateoas.mvc.ResourceAssemblerSupport;
import org.springframework.stereotype.Component;
import com.github.aha.poc.micro.district.persistence.domain.District;
@Component
public class DistrictResourceAssembler extends ResourceAssemblerSu... | 27.666667 | 102 | 0.798623 |
1a3157e91f8fce5b7ed65962fcb2a4572d0b9e1e | 1,210 | /*
* 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 lab7_sergiosuazo;
import java.io.Serializable;
/**
*
* @author Sergio
*/
public class Accion implements Serializable{
... | 20.166667 | 100 | 0.612397 |
6717fb48ad84c64e191d1a86dd733c548be6e384 | 94,640 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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... | 13.89313 | 813 | 0.796133 |
fce7e112b384d714b95aa906e293b4f8a43ed223 | 810 | package org.apereo.cas.couchdb.services;
import org.apereo.cas.services.RegisteredService;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.ektorp.support.CouchDbDocument;
/**
* This is {@link RegisteredServiceDocument}. Wraps a {@link Registere... | 28.928571 | 101 | 0.774074 |
9c16543ab5bf47c81a10870096a67d093c151441 | 1,911 | package com.ecommerce.service;
import com.ecommerce.model.LoginCredentials;
import com.ecommerce.model.Users;
import com.ecommerce.model.response.JSONResponse;
/**
* <p>
* This interface will provide the support to controller to handle the requests.
* All the implementation of this interface will have the... | 35.388889 | 108 | 0.668237 |
04da37dc8ba7e7a67687fa912bb5ceeafea6ae72 | 2,060 | package com.wwq.two3;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAuto... | 35.517241 | 88 | 0.757767 |
ac176018725330197d24e7f5c477e5e6c03d38ee | 2,614 | /**
*
*/
package org.iplantc.service.notification.providers.realtime.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
/**
* Bean for wrapping realtime messages and handling serialization
* @author dooley
*
*/
public class ChannelMessageBody {
... | 20.421875 | 115 | 0.599082 |
1419f69f2be742bc7b41ea6cc027f4a61fbf8add | 13,249 | /**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
package com.twilio.rest.preview.understand.assistant;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.anno... | 34.592689 | 91 | 0.602461 |
f7789f6c5d7a70320576616949b49bc2748c1bb3 | 20,303 | /*
* 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 ... | 34.180135 | 100 | 0.581343 |
60d6a8b26db4ad73cc8363672f84625a2c17c02b | 3,349 | package com.mitchellbosecke.pebble.boot.autoconfigure;
import static org.assertj.core.api.Assertions.assertThat;
import com.mitchellbosecke.pebble.boot.Application;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBoot... | 33.158416 | 75 | 0.700508 |
7f1f1121e77816083d5b8e6899d6b431b9bb0089 | 2,282 | package org.infinispan.commons.dataconversion;
import static org.infinispan.commons.dataconversion.MediaType.APPLICATION_OBJECT;
/**
* Encodes/decodes Java primitives, byte arrays and String as text.
*
* <br/> It only applies to {@link MediaType#APPLICATION_OBJECT} content with a "type" parameter.
*
* The follow... | 33.072464 | 127 | 0.647239 |
bb08939c68849213e5a8b6a9716f8486cca1304a | 674 | package com.github.aureliano.achmed.client.types;
public enum PackageProvider {
APT(OperatingSystemFamily.DEBIAN, "apt-get"),
YUM(OperatingSystemFamily.RED_HAT, "yum"),
DPKG(OperatingSystemFamily.DEBIAN, "dpkg"),
GEM(OperatingSystemFamily.APP, "gem");
private OperatingSystemFamily operatingSystemFamily;
priva... | 26.96 | 68 | 0.793769 |
b1ca835c274b05cf0e7e522cd71973fde74aedb4 | 701 | package io.zero88.rsql.parser.ast;
import cz.jirutka.rsql.parser.ast.ComparisonOperator;
public class BuiltinComparisonOperator {
public static final ComparisonOperator BETWEEN = new ComparisonOperator("=between=", true);
public static final ComparisonOperator EXISTS = new ComparisonOperator("=exists=", "=nn... | 46.733333 | 98 | 0.763195 |
293776567571dba294f5bddf575cacb8518647d3 | 1,599 | package com.santosh.quoteapi;
import java.io.Serializable;
import java.util.Date;
public class DayQuote implements Serializable{
private static final long serialVersionUID = 1L;
/**
* Represents daily closing price of a symbol
*/
// 1 Date,Open,High,Low,Close,Volume,Adj Close ... | 16.484536 | 83 | 0.657286 |
7154fad00015a1ca9e15a098bf23c7e415169ba3 | 2,728 | package com.sequenceiq.cloudbreak.service.stack;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.when;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
... | 34.1 | 80 | 0.750733 |
3f092d5d5f395af1450cee8e8607139c6398e66f | 1,310 | package com.kotcrab.vis.usl.lang;
import com.kotcrab.vis.usl.CollectionUtils;
import java.util.ArrayList;
/** Represents group identifier of USL lang */
public class GroupIdentifier extends Identifier {
public ArrayList<String> inherits = new ArrayList<String>();
public ArrayList<Identifier> content = new ArrayLis... | 26.734694 | 80 | 0.723664 |
f9767a41d2a0273655dc324a78ff3b987ff67855 | 1,400 | package game;
/**
*
* @author ThomasDuvinage
*
* @brief This Class is used to represent the position of cell in the grid
*
*/
public class Point2D {
/// X position
public int posX;
/// Y position
public int posY;
/**
* @brief Constructor
* @param newX position X
* @param newY position Y
*/
pu... | 15.909091 | 83 | 0.605 |
3e392fcb1112c34b29656620582c3e995779822b | 2,151 | /*
* 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 (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | 24.724138 | 88 | 0.663877 |
df2b4ad40e68596debf64c45351d731442645e59 | 1,918 | /*******************************************************************************
*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed 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
* ... | 36.884615 | 109 | 0.656413 |
76054f7303af77290add6ec795bf02db000eb74d | 1,112 | package interactors;
import java.util.List;
import dao.CodeTypeDao;
import dao.entities.Code;
import dao.entities.CodeType;
import dao.entities.Location;
import play.db.jpa.JPA;
public class CodeTypeRule {
private static final Long APOLLO_LOCATION_CODE_TYPE_ID = 14L;
public static List<CodeType> findCodeTypes() ... | 26.47619 | 70 | 0.776978 |
92d7af4a590fcfe726e98354cc9c3cab59138165 | 1,002 | package io.cmp.modules.mma.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 多媒体变量表
*
* @author liwenxuan
* @email liwenxuan@sinosoft.com.cn
* @date 2019-07-26 10:47:53
... | 15.415385 | 61 | 0.683633 |
6be0cc7a75e9111bb10a13a19f33d1fa40525c7f | 23,939 | /**
* <copyright>
* Copyright 1997-2002 BBNT Solutions, LLC
* under sponsorship of the Defense Advanced Research Projects Agency (DARPA).
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the Cougaar Open Source License as published by
* DARPA on the Cougaar Op... | 27.547756 | 301 | 0.595973 |
bbb7195ab3c5fd78fae458760a27c2ecd0f33201 | 2,784 | package com.flyer.springmvc.rest;
import com.flyer.springmvc.rest.common.BeanFactoryRegister;
import org.apache.ibatis.session.defaults.DefaultSqlSessionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;
import java.... | 33.142857 | 92 | 0.596624 |
a684e962d80488cfc5ef0a0b561b58382c88aed7 | 679 | package wang.chunfan.director;
public class OneDayBuilder implements AbstractBuilder {
Product vacation;
public OneDayBuilder() {
this.vacation = new Product();
}
@Override
public void buildDay() {
vacation.vacationPlanner = "这是假期的第一天!\n";
}
@Override
public void add... | 18.861111 | 55 | 0.617084 |
a3bd6c39ee889df5733baccf40897436f5c6d0fc | 3,902 | package org.infinispan.server.configuration;
import java.util.List;
import javax.net.ssl.SSLContext;
import org.infinispan.commons.configuration.Builder;
import org.infinispan.configuration.global.GlobalConfigurationBuilder;
import org.infinispan.server.Server;
import org.infinispan.server.configuration.endpoint.End... | 34.22807 | 114 | 0.740902 |
98f4df26744fd608f6334793ba662f3410125641 | 5,151 | /*
* Copyright 2015 Maria Virginia Lucena.
*
* 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 o... | 34.57047 | 80 | 0.59833 |
f87d9d1e26e447909f0dfdfeb364440c80410a53 | 6,692 | package vi.viredis.client;
import vi.viredis.commands.RedisCommands;
import vi.viredis.commands.RedisProtocolCommand;
import vi.viredis.connection.RedisServerReader;
import vi.viredis.connection.RedisServerWriter;
import java.io.IOException;
import java.net.Socket;
import java.util.Arrays;
import java.util.List;
imp... | 32.173077 | 110 | 0.71832 |
83cc9a1425128698136025c0d3cd40d5c29138a6 | 2,590 | /*
* Copyright 2014-2022 Web Firm Framework
*
* 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 o... | 27.849462 | 107 | 0.627027 |
2e9a40253b493367ac8468dbe11ccbaf7b573a6d | 145 | package me.elsiff.morefish.condition;
import org.bukkit.entity.Player;
public interface Condition {
boolean isSatisfying(Player player);
}
| 18.125 | 40 | 0.786207 |
23631c67e30a132bd43673c969daebee925bf2d6 | 6,603 | /*
* 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.593301 | 87 | 0.701045 |
9505f1b5cbd64e70d6919a4f8484f031586a93cb | 2,373 | /**
*/
package org.sheepy.lily.vulkan.model.process;
import org.sheepy.lily.vulkan.model.vulkanresource.BufferReference;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Copy Buffer Task</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <u... | 33.422535 | 143 | 0.680152 |
eddacf71b095270ad441236683a0311646e0f7da | 5,624 | package com.desertkun.brainout.data.components;
import com.desertkun.brainout.BrainOutClient;
import com.desertkun.brainout.content.components.ClientRadioReceiverComponent;
import com.desertkun.brainout.content.effect.Effect;
import com.desertkun.brainout.data.ClientMap;
import com.desertkun.brainout.data.active.Activ... | 24.34632 | 98 | 0.483997 |
d4b2be7463e278d784499e1114f8385bbcf63d4e | 289 | package com.wy.service;
import com.wy.base.BaseService;
import com.wy.model.UserNotice;
/**
* 用户和公告关联表
*
* @author 飞花梦影
* @date 2021-02-08 16:14:31
* @git {@link https://github.com/dreamFlyingFlower}
*/
public interface UserNoticeService extends BaseService<UserNotice, Long> {
} | 19.266667 | 74 | 0.723183 |
854449e2a2c1301bbaafdfe8b3abc46eec6881a7 | 2,046 | /*
* 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.476923 | 82 | 0.612414 |
4447ea03861bcd536651fca61c293d6f5253c7ba | 361 | package org.hcjf.io.console;
import org.hcjf.io.net.NetServiceConsumer;
import org.hcjf.io.net.NetSession;
import java.util.UUID;
/**
* Default session for the console connection.
* @author javaito
*/
public class ConsoleSession extends NetSession {
public ConsoleSession(UUID id, NetServiceConsumer consumer)... | 19 | 65 | 0.731302 |
0985e6647aac3d68bea12707885e8463a98ac574 | 4,763 | /*
* Copyright 2005 Open Source Applications Foundation
* Copyright © 2018 Ankush Mishra, Bobby Rullo, Roberto Polli
*
* 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... | 33.542254 | 99 | 0.732941 |
c35d8eb6b3c58687d6aed91326ed2b8828729945 | 274 | package br.com.zupacademy.gabrielbrandao.casadocodigo.repository;
import br.com.zupacademy.gabrielbrandao.casadocodigo.model.Cliente;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ClienteRepository extends JpaRepository<Cliente, Long> {
}
| 34.25 | 73 | 0.854015 |
f683ce2067f2d065f06b25883bfdcdd5a80c2009 | 19,908 | /*
* Copyright 2017-2021 EPAM Systems, Inc. (https://www.epam.com/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 48.437956 | 116 | 0.643259 |
524be0282bd1f95258a2b49cd2d8129ee9879cc9 | 11,159 | package com.peregrine.adaption.impl;
/*-
* #%L
* admin base - Core
* %%
* Copyright (C) 2017 headwire inc.
* %%
* 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 copyri... | 34.871875 | 125 | 0.601936 |
fd445e11205df8c72f3144be07e756b79d6c93d7 | 1,183 | package k.s.k.th;
import java.util.concurrent.Executors;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class ThAlternate {
static class FooBar {
private int n;
private volatile boolean fooStarted = false;
priva... | 21.125 | 52 | 0.644125 |
169a98428c5da4ceb938fe16a0bc90edbee34ebf | 3,405 | package com.kastking.personProduct.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.kastking.common.annotation.Excel;
import com.kastking.common.core.domain.BaseEntity;
import java.util.Date;
/**
* 人员产品对象 mis_person_product
*
* @aut... | 20.267857 | 72 | 0.592658 |
faa5a78e0b1eceec535fd49a702c94d5029312a8 | 598 | /**
*
* Copyright (c) 2018 Fractus IT d.o.o. <http://fractus.io>
*
*/
package io.fractus.microstart.backing.discovery;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServe... | 23.92 | 80 | 0.76087 |
527b727e43e033bf8ef0f82f52a78d168bc54b97 | 2,170 | /*
* Copyright 2013 JBoss 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... | 39.454545 | 91 | 0.704608 |
cbe3f10a883430f0dd18365b9630005f8d674460 | 9,608 | /**
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... | 47.098039 | 196 | 0.717423 |
a5eed81f8a5de9ec72a7c8492e4844b8611e2e64 | 532 | package com.ocs.dynamo.dao.impl;
import com.ocs.dynamo.domain.CascadeEntity;
import com.querydsl.core.types.dsl.EntityPathBase;
import org.springframework.stereotype.Repository;
@Repository("cascadeEntityDao")
public class CascadeEntityDaoImpl extends BaseDaoImpl<Integer, CascadeEntity> implements CascadeEntityDao {
... | 25.333333 | 107 | 0.761278 |
33a1579d2aabefd4cd435e77da417d52e57b7dfd | 1,460 | /**
* DewTempCalculator.java - calculates the dew point temperature with
* given values for relative humidity and temperature.
*
* @author ethan.lee
*
*/
import java.util.Scanner;
import java.text.DecimalFormat;
public class DewTempCalculator {
/** The Scanner to read all values for the program **/
static Sc... | 31.06383 | 89 | 0.673288 |
8d2e734f8d81b1e4fd184b78bc6e8d4612914900 | 648 | package br.org.recode.frontend.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import... | 24 | 62 | 0.796296 |
ae8e4967c39ada4cffa38c30c8ea560d79cb4490 | 1,428 | package design.database.mysql;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.Connection;
import design.database.manager.DBManager;
import domain.cache.Item;
import domain.cache.impl.Clothe;
public class MySQLManager implement... | 22.666667 | 89 | 0.692577 |
7489f2458f2256448131f46fbdf576260419b9f0 | 6,004 | /**
* This work is protected under copyrights held by the members of the
* TOOP Project Consortium as indicated at
* http://wiki.ds.unipi.gr/display/TOOP/Contributors
* (c) 2020-2021. All rights reserved.
*
* This work is dual licensed under Apache License, Version 2.0
* and the EUPL 1.2.
*
* = = = = = = = = ... | 26.333333 | 139 | 0.701865 |
2e9b31e721dca78c9c814d9610c0f6aae1cfb171 | 621 | package com.redhat.labs.lodestar.engagements.rest.client;
import org.apache.http.*;
import org.eclipse.microprofile.faulttolerance.*;
import org.eclipse.microprofile.rest.client.inject.*;
import javax.ws.rs.*;
import javax.ws.rs.core.*;
import java.util.*;
@Retry(maxRetries = 5, delay = 1200, retryOn = NoHttpRespons... | 29.571429 | 118 | 0.766506 |
427101887f3f8ecd0100916edd9651ded8f97845 | 3,442 | package nam.model.messaging;
import java.io.Serializable;
import javax.faces.context.FacesContext;
import javax.faces.render.ResponseStateManager;
import nam.model.Namespace;
import nam.model.namespace.NamespaceManager;
import nam.ui.design.AbstractDomainTreeManager;
import nam.ui.tree.ModelTreeNode;
import nam.ui.t... | 32.471698 | 110 | 0.745787 |
254076a8ae99f176eeaa84f3da0ce0cb4774ca04 | 6,630 | package Games.RushHour.solver;
import Solvers.BFS.Configuration;
import Solvers.BFS.Observer;
import Games.RushHour.exceptions.NoCarException;
import Games.RushHour.model.JamModel;
import Games.RushHour.model.JamConfig;
import Games.RushHour.model.JamClientData;
import java.util.HashSet;
import java.util.LinkedList;
... | 36.629834 | 117 | 0.632278 |
d44df596b2e77dbd1ca9008bb723dce7e9b1118a | 503 | class Solution {
public int XXX(String s) {
s = s.trim();
int num = 0;
int len = s.length();
int res = 0;
if(s.contains(" ")) {
for(int i = len-1;i>=0;i--) {
char c = s.charAt(i);
if(c == ' ') {
num = i;
break;
... | 20.12 | 41 | 0.343936 |
bbcf2d6c4204cff8919e4f594145b3122a97c4f6 | 2,797 | package com.main;
import com.domain.SensorData;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.HttpClientBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.tim... | 33.297619 | 102 | 0.624955 |
7b62390b100e71a3d9a6ca921fb555ce2c2a6ad3 | 2,177 | /*
* #%L
* SCIFIO library for reading and converting scientific file formats.
* %%
* Copyright (C) 2011 - 2020 SCIFIO developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of so... | 36.898305 | 79 | 0.740928 |
7b89ee341785dc05c3aa580937083f1f7a90b658 | 2,782 | package io.github.vasouv.ui.jsf;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import javax.ws.rs.client.Client;
... | 27.544554 | 108 | 0.666068 |
fd49a0db2515ede7211aeae905e72de752c11e74 | 6,285 | package com.evbox.everon.ocpp.simulator.cli;
import com.evbox.everon.ocpp.simulator.station.actions.user.Authorize;
import com.evbox.everon.ocpp.simulator.station.actions.user.Plug;
import com.evbox.everon.ocpp.simulator.station.actions.user.Unplug;
import com.evbox.everon.ocpp.simulator.station.actions.user.UserMessa... | 35.508475 | 173 | 0.688146 |
1325f37733ad7ee477c2eb62983d982ad6517836 | 577 | package ux.Screens;
import java.awt.*;
/**
*/
class FrameNotifyDisconnect extends FrameNotify {
private static int counter = 0;
FrameNotifyDisconnect() {
super();
counter++;
if (counter <= 1) {
setSize(new Dimension(500, 400));
setDefaultCloseOperation(DISPOS... | 16.970588 | 55 | 0.532062 |
796f0020f870ed9f341e489cea6154eb9acdebd5 | 19,886 | /*
* 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")... | 21.314041 | 113 | 0.485769 |
2f010efad7702394e215ab683b8d5e7d7a76f737 | 8,965 | /*
* 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 ... | 34.217557 | 100 | 0.708422 |
2ab3a3d7ff463300691f649ef033b3737ab05dad | 2,950 | /**
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
package com.salesforce.trellis.rules.impl;
import com.salesforce.trellis.rules.builder.Gro... | 33.146067 | 117 | 0.673559 |
c91514d446a97019b74087d20ff97250ba83a3e7 | 2,259 | package gameObjects.tile;
import authoringUtils.exception.GameObjectTypeException;
import authoringUtils.exception.InvalidIdException;
import authoringUtils.exception.InvalidPointsException;
import gameObjects.ThrowingConsumer;
import gameObjects.gameObject.GameObjectInstance;
import gameObjects.gameObject.GameObjectT... | 36.435484 | 156 | 0.739708 |
991099abdf5c1cb2d0ca964c9a27e175d1949b14 | 4,670 | package byps.http.stdio.test;
import java.io.File;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.ByteBuffer;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolEx... | 29.1875 | 108 | 0.626552 |
6c0a2757b4596c49a87900c2bace56ac1d040da5 | 8,873 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | 39.968468 | 125 | 0.701567 |
f0475cee09ce4b59916ce5e8c72fb8e94574078f | 584 | package com.google.appengine.demos.mapreduce.bigqueryload;
import java.util.Date;
import java.util.List;
public class SampleTable {
Long colNum;
int col1;
String col2;
List<String> col3;
String[] col4;
SampleNestedRecord col5;
Date col6;
public SampleTable(Long colNum,
int col1,
String co... | 18.83871 | 58 | 0.643836 |
50f6fd27f95367db553cc1d4c08556153a46d584 | 3,105 | /*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following discl... | 29.292453 | 86 | 0.704992 |
95f1d6b2855f240544f4d3e0de39b9f56b59b38d | 618 | package com.qiwenge.android.utils;
public enum ApiModels {
/**
* 书籍
*/
books,
/**
* 章节
*/
chapters,
/**
* 点击数自增
*/
view_total,
/**
* 相关推荐
*/
related,
/**
* 分类
*/
categories,
/**
* 推荐
*/
recommend,
/**... | 8.465753 | 34 | 0.331715 |
4d11549989b3b89f76c144bbc1674715d241ccac | 1,534 | /*
* Copyright 2020 Opentracing-LiTE
*
* 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... | 38.35 | 91 | 0.729465 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.