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 |
|---|---|---|---|---|---|
c3118804dc4c29299113e4ce2ee8d9715f2477b1 | 1,402 | /*
* Copyright 2020 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 31.863636 | 87 | 0.760342 |
d236017564cd6073ba55415899049fda78327a1e | 3,527 | package org.hl7.davinci.atr.server.service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hl7.davinci.atr.server.dao.ProcedureDao;
import org.hl7.davinci.atr.server.model.DafProcedure;
import org.hl7.davinci.atr.server.util.SearchParameterMap;
import org.hl7.fhir.r4.model.IdType... | 32.063636 | 93 | 0.767791 |
decf9a436a5786f4de8d4cf3e3171218378667c1 | 5,660 | package com.example.video.mvp.news.othernew;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import com.example.commonlibrary.BaseFragment;
import com.example.commonlibrary.baseadapter.SuperRecyclerView;
import com.example.commonlibrary.baseadapter.empty.EmptyLayout;
import com.exam... | 35.597484 | 174 | 0.715018 |
6454f7afe29b230e224a5e404ccc7e2367882352 | 644 | package org.frameworkset.elasticsearch.entity.sql;
import java.util.List;
public class SQLRestResponse {
private ColumnMeta[] columns;
private List<Object[]> rows;
private String cursor;
public SQLRestResponse() {
// TODO Auto-generated constructor stub
}
public ColumnMeta[] getColumns() {
return columns;
... | 16.947368 | 50 | 0.706522 |
24a2363befbb52d2b6ac9ebb710c1aa5d33716e3 | 8,436 | package UserInterface.RequestRehab;
import Business.Disaster;
import Business.Organisation.RequestRehabOrganisation;
import Business.Organisation.Organisation;
import Business.UserAccount.UserAccount;
import Business.WorkQueue.RequestRehabTestRequest;
import Business.WorkQueue.WorkRequest;
import java.awt.CardLayout;
... | 46.351648 | 182 | 0.651968 |
1489c4f4866bf92931d1f6bc77996db4eeb7497c | 2,094 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 38.072727 | 101 | 0.755969 |
6c7bb9d3f8ad13636c3945181559435e4ffdcbc2 | 299 | package uk.gov.ch.pscdiscrepanciesapi.common;
public final class Kind {
public static final String PSC_DISCREPANCY_REPORT = "psc_discrepancy_report#psc_discrepancy_report";
public static final String PSC_DISCREPANCY = "psc_discrepancy#psc_discrepancy_report";
private Kind() {
}
}
| 29.9 | 104 | 0.782609 |
06f2724c5806969f078d4990f045c3a3d6163c49 | 1,183 | package com.blaxout1213.SecondChanceReborn;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map.Entry;
import org.bukkit.entity.Player;
public class DownCounterTask implements Runnable
{
private SecondChanceReborn plugin;
private static double forgiveTime;
private static HashMa... | 23.66 | 79 | 0.677937 |
cb177d68c64c6bd870ef161e84f0471932cc9b65 | 2,382 | /**
*
* @author - William Chad Brown
*
* Description: This class holds the information that is needed to translate a string
* to morse code. The main driver class reads a file that contains the information
* that then adds that information to the class in a key value HashMap. A HashMap
* was used ... | 26.764045 | 86 | 0.667506 |
238c70e6e352c98e4e59598f1cc4d7362a55ccea | 4,002 | package thewrestler.potions;
import com.badlogic.gdx.graphics.Color;
import com.evacipated.cardcrawl.mod.stslib.Keyword;
import com.megacrit.cardcrawl.core.AbstractCreature;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.helpers.GameDictionary;
import com.megacrit.cardcrawl.helpers.Pow... | 40.836735 | 125 | 0.763118 |
68811b8f129912b9111f42cddb55d4704013a40a | 651 | // Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.internal;
import com.android.tools.r8.CompilationMode;
import org.junit.Test;... | 31 | 77 | 0.777266 |
839eedc8af2bbe0efb678003ca5785809b0f9c6b | 5,976 | package com.java110.common.listener.carInout;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.java110.common.dao.ICarInoutServiceDao;
import com.java110.core.annotation.Java110Listener;
import com.java110.core.context.DataFlowContext;
import com.java110.core.factory.GenerateCo... | 33.016575 | 121 | 0.663822 |
ce1b7357143fbf862c59a74eac4497c0ddc9ae24 | 471 | package no.entra.bacnet.internal.octet;
import no.entra.bacnet.internal.apdu.SDContextTag;
import no.entra.bacnet.octet.Octet;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class OctetTest {
@Test
void testEquals() {
Octet octet29 = new Octet("29");
... | 26.166667 | 60 | 0.711253 |
1523eee753436f4ad25554960becb2e14a2aea3b | 6,691 | /*
* 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 u... | 19.507289 | 81 | 0.665371 |
354c948abe614fce9a3ef961c20a07d73d15736e | 472 | /**
* @author banbao
* @comment 修改自示例代码
*/
import java.util.List;
import java.util.ArrayList;
class Fruit {}
class Apple extends Fruit {}
class RedApple extends Apple {}
public class Fruits2 {
public static void main(String...args) {
test(new ArrayList<Apple>());
}
public static void test... | 18.88 | 55 | 0.603814 |
4e7fde6630f1cd792ef72bf167cdb7a3f3b82b39 | 1,194 | package org.fogbeam.quoddy.ldap;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.directory.Attributes;
import org.springframework.ldap.core.AttributesMapper;
import org.springframework.ldap.core.LdapTemplate;
public class GroupAttributeMapper implements AttributesMappe... | 25.404255 | 98 | 0.721943 |
224a170f49c76193a92a5b7c86c7742cfe13754d | 710 | package objectManager;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class UIMap {
public static String getObject(String obj){
Properties prop = new Properties();
try {
... | 27.307692 | 142 | 0.674648 |
684cb36221a760b0075182c16fb875a07fca833f | 1,293 | package x.scratch;
import lombok.RequiredArgsConstructor;
import lombok.Value;
import javax.annotation.Nonnull;
import static lombok.AccessLevel.PRIVATE;
public interface PersistableDomain<Snapshot,
Domain extends PersistableDomain<Snapshot, Domain>> {
@Nonnull
String getNaturalId();
int getVer... | 26.387755 | 78 | 0.676721 |
bf99bad16a1fabf203400dac79939c30829e6c0d | 566 | package com.intel.ssg.dcst.panthera.parse.sql.generator;
import org.antlr.runtime.tree.CommonTree;
import org.apache.hadoop.hive.ql.parse.ASTNode;
import com.intel.ssg.dcst.panthera.parse.sql.SqlXlateException;
import com.intel.ssg.dcst.panthera.parse.sql.TranslateContext;
public class ErrorGenerator extends BaseHiv... | 28.3 | 88 | 0.798587 |
f0e1e2f709f415ba9407fd38c97c4ebee7b5fc5e | 10,778 | /*-
* Copyright (C) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENS... | 32.173134 | 96 | 0.598905 |
95c89d72194ce5de37dfd498ae0e5e6859c2a444 | 900 | package org.dew.swingup.util;
import java.awt.Color;
import java.awt.Component;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import org.dew.swingup.ResourcesMgr;
public
class BGColorFocusListener implements FocusListener
{
private Component oComponent;
private Color oBGColorOnFocus;
p... | 22.5 | 84 | 0.755556 |
27d02ad97e0801a249cbd0389b5a1874a50ee822 | 1,352 | package org.corpus_tools.annis.gui;
/*
* Copyright 2012 Corpuslinguistic working group Humboldt University Berlin.
*
* 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.o... | 28.166667 | 100 | 0.734467 |
7ccf6c9b200cb1ff964ace92349a753878d085cc | 527 | package bio.singa.chemistry.features.reactions;
import bio.singa.features.units.UnitRegistry;
import javax.measure.Unit;
import static tech.units.indriya.AbstractUnit.ONE;
/**
* Second order rates are in concentration^-1 * time^-1.
*
* @author cl
*/
public interface SecondOrderRate extends ReactionRate<SecondOr... | 25.095238 | 130 | 0.764706 |
26df4eada908d47824debcbed624df7ef29a3b5d | 521 | package dcraft.struct.format;
import dcraft.struct.Struct;
import java.math.BigDecimal;
import java.text.DecimalFormat;
public class DecimalFormatter implements IFormatter {
@Override
public FormatResult format(Object value, String op, String format) {
BigDecimal val = Struct.objectToDecimal(value);
if (val... | 22.652174 | 86 | 0.727447 |
1d3aedf54e864cb2d964e44b7e4a83a1f703df45 | 2,509 | package Screenshot;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class ImageDissimilarity {
public static void main(String[] args) throws IOException {
BufferedImage img1 = ImageIO.read(new File(".\\SavedScreenshots\\2019.11.25... | 44.017544 | 177 | 0.651654 |
b1769421688ca4082f4a1536cdaa202ed82e6c70 | 437 | package com.high.concurrency.chapter5;
/**
* @Description
* @Author dongzonglei
* @Date 2019/01/01 下午8:52
*/
public class StaticSingleton {
private StaticSingleton() {
System.out.println();
}
private static class SingletonHolder {
private static StaticSingleton instance = new StaticSi... | 19.863636 | 72 | 0.677346 |
c4d76809aa3a67208dde520b2a553113853d1133 | 1,156 | import java.util.HashMap;
public class Solution {
public int fourSumCount(int[] A, int[] B, int[] C, int[] D) {
// key 是 A 和 B 数组分别取一个数可能的和,value 是这个和可能由几个不同的组合
HashMap<Integer, Integer> map = new HashMap<>();
// 计数器
int res = 0;
for (int a : A) {
for ... | 28.9 | 66 | 0.394464 |
d4608bac18dd3081652a468e31ea3b11211851c9 | 84 | package com.google.android.gms.internal;
final class zzcqp {
zzcqp() {
}
}
| 12 | 40 | 0.642857 |
3649ebb2e6d629d815e41ace7035376bf0a98c81 | 3,129 | package org.scribble.model.global;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.scribble.model.MState;
import org.scribble.model.MPrettyState;
import org.scribble.model.endpoint.EState;
import org.scribble.model.endpoint.actions.EAction;
import org.scribb... | 30.086538 | 205 | 0.711729 |
caf89cfe17c4596f208bf31d06a77df6ff42e9a2 | 73 | package dk.cs.aau.huppaal.utility.helpers;
public class ColorHelper {
}
| 14.6 | 42 | 0.780822 |
98c140fb28dad811590e96ba6c85d5355cdf8f60 | 382 | public class Multicast {
public static void main(String[] args) {
// 32 bit --> 8 bit --> 16 bit --> 32bit
//
// Sign extension is performed if the type of the original value
// is signed; zero extension if it is a char, regardless of the
// type to which it is being converte... | 34.727273 | 72 | 0.586387 |
ed4cf23f3eb4329c92f25986d7ca2c3390c2abb4 | 313 | package com.heroku.demo.repository;
import com.heroku.demo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
public interface UserRepository extends JpaRepository<User, Integer> {
User findByUserLogin(String userLogin);
}
| 28.454545 | 70 | 0.827476 |
290cb86be51ace7a2b0a277232f1bf899a28ea55 | 352 | package limax.codec;
public class JSONException extends CodecException {
private static final long serialVersionUID = 7067191163493197089L;
public JSONException(String message) {
super(message);
}
public JSONException(Throwable e) {
super(e);
}
public JSONException(String message, Throwable e... | 20.705882 | 68 | 0.721591 |
a0d3aab900a7e69aeaec8448dbf43a67f51c7c73 | 1,584 | package gxun.soft.homework_system.utils;
import com.alibaba.fastjson.JSONObject;
//import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang.StringUtils;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Created by Taller on 2017/9/9.
*/
public class Verify {
/**
* ... | 25.142857 | 78 | 0.558081 |
234cda9ea982d3be8ae29fb0251d1f4a6ee2a001 | 1,418 | /*
* MFP project, Statement_endclass.java : Designed and developed by Tony Cui in 2021
* 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.cyzapps.Jmfp;
import java.util.Linked... | 28.36 | 136 | 0.700987 |
4804e8725178f35bced6cc517d37f526215b6025 | 705 | package org.kuali.ole.select;
import org.junit.Test;
import org.kuali.ole.SpringBaseTestCase;
import org.kuali.ole.sys.batch.OLEReEncumberRecurringOrdersJob;
import org.kuali.ole.sys.context.SpringContext;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
/**
* Created by aruna... | 30.652174 | 147 | 0.804255 |
b79e0aab67364bd948045e8c2123ee2f71c6c307 | 1,827 | package cn.bubi.baas.utils.http.converters;
import cn.bubi.baas.utils.http.HttpServiceConsts;
import cn.bubi.baas.utils.http.HttpServiceContext;
import cn.bubi.baas.utils.http.HttpServiceException;
import cn.bubi.baas.utils.http.ResponseConverter;
import cn.bubi.baas.utils.http.agent.ServiceRequest;
import java.io.IO... | 30.45 | 117 | 0.637657 |
b5ad3d694ace7468d9d1b3800503acc33994c88c | 30,061 | package org.ovirt.engine.core.vdsbroker.vdsbroker;
@SuppressWarnings("WeakerAccess")
public final class VdsProperties {
// vds configuration (i.e. VdsStatic)
// vds runtime (i.e. VdsDynamic req getVdsCapabilities)
public static final String hostDatetime = "dateTime";
public static final String utc_diff... | 52.646235 | 107 | 0.743821 |
397c1f0a2dc8438501dd3b7ce6cd1f4c366284f9 | 2,219 | package nl.cwi.pr.runtime.examples.thesis.npb.lu;
import nl.cwi.pr.runtime.api.InputPort;
import nl.cwi.pr.runtime.api.OutputPort;
public class Workers {
public static void Master(int N, String CLASS, String version,
OutputPort initAdderOutputPort, OutputPort initLowerJacOutputPort,
OutputPort initRHSComputeO... | 32.632353 | 76 | 0.767913 |
8bdea801f99f36655ffd3612770eea3638127793 | 1,042 | package com.github.zuihou.exception;
/**
* 运行期异常基类
*
* @author zuihou
* @version 1.0
* @see Exception
*/
public abstract class BaseCheckedException extends Exception implements BaseException {
private static final long serialVersionUID = 2706069899924648586L;
/**
* 异常信息
*/
protected Strin... | 18.607143 | 87 | 0.607486 |
90e83519a37bdacce45ff46210dc5b4133d1c241 | 1,332 | package org.coderdreams.wicketfields.fields.text;
import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.html.form.TextArea;
import org.coderdreams.wicketfields.BaseUiField;
import org.coderdreams.wicketfields.FieldArgs;
public class TextAreaField extends BaseUiField<String> {
private static f... | 27.183673 | 134 | 0.68994 |
a839fcc66d4f6a7cc033e0bf29c717933811e034 | 339 | package provider.example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ProviderExampleApplication {
public static void main(String[] args) {
SpringApplication.run(ProviderExampleApplication.clas... | 24.214286 | 70 | 0.80236 |
2df91ba5ed81e4297ae7f747e8a0fb9a448ce790 | 1,665 | package com.springapp.mvc.bean;
/**
* Created by Xr on 2016/8/25.
* 用户实体
*/
public class User {
/**
* email = username
*/
private String email;
/**
* 用户昵称
*/
private String nickname;
/**
* username = email
*/
private String username;
/**
* 用户密码MD5
... | 16.65 | 60 | 0.574775 |
52c31c5345cb496a582600b6508c258c0d1ee20e | 1,193 | package com.github.zhenwei.core.pqc.crypto.sphincsplus;
import com.github.zhenwei.core.crypto.AsymmetricCipherKeyPair;
import com.github.zhenwei.core.crypto.AsymmetricCipherKeyPairGenerator;
import com.github.zhenwei.core.crypto.KeyGenerationParameters;
import java.security.SecureRandom;
public class SPHINCSPlusKeyPa... | 31.394737 | 90 | 0.758592 |
c01e86c07cf22e908fd259ca6ce858d7a9850045 | 1,554 | package com.packtpub.readingsensordata;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widg... | 30.470588 | 101 | 0.720721 |
698f3fd1ddd06be8f6b2a5289bb20133331d646c | 219 | package phoenixTeam.entity.actions.hidden;
import com.badlogic.ashley.core.Entity;
import phoenixTeam.entity.actions.Action;
public interface HiddenAction extends Action {
public boolean willUnlock(Entity entity);
}
| 24.333333 | 46 | 0.826484 |
819a6893c9ec97e162fbf7ebc699b8fe1ff229fc | 276 | package ch.supsi.dti.i2b.shrug.optitravel.api.GTFS_rs.api;
import com.jsoniter.any.Any;
import java.util.Arrays;
public class Result {
public Any result;
public Meta meta;
public Any getResult() {
return result;
}
public Meta getMeta() {
return meta;
}
}
| 14.526316 | 58 | 0.702899 |
96417ff8169191b59b209716fdaba93e07e54079 | 5,920 | package org.workcraft.plugins.shutters;
import org.workcraft.Config;
import org.workcraft.gui.properties.PropertyDeclaration;
import org.workcraft.gui.properties.PropertyDescriptor;
import org.workcraft.plugins.builtin.settings.AbstractToolSettings;
import org.workcraft.utils.BackendUtils;
import org.workcraft.utils.D... | 36.54321 | 183 | 0.71098 |
fbe01c9540f96cfff3939c8e117039473c1519e3 | 1,362 | package com.ruoyi.hospital.mapper;
import java.util.List;
import com.ruoyi.hospital.domain.TMedicalCpoeSickroomDuty;
/**
* 病房值班记录Mapper接口
*
* @author ruoyi
* @date 2021-09-24
*/
public interface TMedicalCpoeSickroomDutyMapper
{
/**
* 查询病房值班记录
*
* @param id 病房值班记录主键
* @return 病房值班记录
... | 21.967742 | 128 | 0.668869 |
5041bcbfb5272fba96fee4137f61321edc91cefe | 806 | package org.wickedsource.coderadar.commit.rest;
import java.util.Date;
import org.springframework.hateoas.ResourceSupport;
public class CommitResource extends ResourceSupport {
private String name;
private String author;
private Date timestamp;
private boolean analyzed;
public String getName() {
re... | 16.791667 | 53 | 0.700993 |
b95b8c005e1534de474d01c141520d5f57e5fa8c | 5,406 | package com.dwarfeng.fdr.impl.handler.trigger;
import com.dwarfeng.dcti.stack.bean.dto.DataInfo;
import com.dwarfeng.dutil.basic.io.IOUtil;
import com.dwarfeng.dutil.basic.io.StringOutputStream;
import com.dwarfeng.fdr.stack.bean.entity.TriggerInfo;
import com.dwarfeng.fdr.stack.bean.entity.TriggeredValue;
import com.... | 30.542373 | 117 | 0.627266 |
f4c617cd894e7951fe4ab5b043b326cfeea1f4ca | 511 | package Sistema.Gestao.Despesas.UI;
import java.io.BufferedReader;
import java.io.IOException;
/**
* Interface Funcional que apenas corre o método correspondente
* com um BufferedReader que recebe.
*
* Pode atirar uma exceção IO caso o terminal exploda.
*
* @author André Sousa Diogo, António Pedro Silva, Luís... | 26.894737 | 80 | 0.772994 |
39a368cbeca8ed551328b5af2007500bebc7564e | 717 | package com.dji.sdk.sample.internal.controller;
import android.app.Application;
import android.content.Context;
import com.secneo.sdk.Helper;
import android.support.multidex.MultiDex;
import com.squareup.otto.Bus;
import com.squareup.otto.ThreadEnforcer;
import dji.sdk.base.BaseProduct;
import dji.sdk.products.Aircra... | 26.555556 | 60 | 0.785216 |
82233fd53440b687000302eb4b87dedccc770ab0 | 716 | /**
* A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
* <p>
* a^2 + b^2 = c^2
* For example, 3^2 + 4^2 = 9 + 16 = 25 = 52.
* <p>
* There exists exactly one Pythagorean triplet for which a + b + c = 1000.
* Find the product abc.
*/
public class SpecialPythagTriplet {
public st... | 27.538462 | 81 | 0.409218 |
bd3bb015d9b4ecf2fd9dd576cfbcbdbda7f92a2e | 14,758 | package cz.metacentrum.perun.webgui.json.registrarManager;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.i18n.client.LocaleInfo;
import com.google.gwt.json.client.JSONObject;
import com.g... | 30.303901 | 185 | 0.720355 |
7b61ffc762177a4feba8358cd9c7f89d40d96824 | 1,080 | package com.reedelk.azure.storage.internal;
import com.azure.core.http.HttpClient;
import com.azure.core.http.netty.NettyAsyncHttpClientBuilder;
import io.netty.channel.nio.NioEventLoopGroup;
import reactor.netty.http.HttpResources;
public class NettyClientProvider {
private static HttpClient httpClient;
pu... | 32.727273 | 98 | 0.65 |
894b95cf32ad5995aa2d875bb0de42f4a07eadb3 | 3,249 | package slimebound.cards;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.evacipated.cardcrawl.mod.stslib.actions.defect.EvokeSpecificOrbAction;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.actions.common.GainBlockAction;
import com.megacrit.cardcrawl.actio... | 33.153061 | 135 | 0.720529 |
a8fd82767ec8b3d784e283601de6abb213a4010e | 2,212 | /*
* 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 ... | 30.722222 | 93 | 0.688969 |
97d6a53e25ed94a28f9bb291437cf0d898a1a225 | 457 | package com.ctseducare.apirestful.exception.response;
import java.io.Serializable;
public class ExceptionResponse implements Serializable {
private static final long serialVersionUID = 1L;
private int error;
private String reason;
public ExceptionResponse(int error, String reason) {
this.error = error;... | 17.576923 | 56 | 0.719912 |
970b555e93786b0c134d178cb5b30e6dbaf15def | 2,119 | package com.yarolegovich.slidingrootnav.sample;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android... | 27.519481 | 129 | 0.665408 |
534387f1990570484ecf9a0f374d17f898c9e99d | 940 | package lt.ekgame.bancho.api.packets.server;
import java.io.IOException;
import lt.ekgame.bancho.api.Bancho;
import lt.ekgame.bancho.api.packets.ByteDataInputStream;
import lt.ekgame.bancho.api.packets.ByteDataOutputStream;
import lt.ekgame.bancho.api.packets.Packet;
/**
* Protocol version.
* One of the... | 22.380952 | 79 | 0.738298 |
aaef33d96d924d681c0e600df86198fae049ccb3 | 1,590 |
package org.springframework.web.bind.support;
import org.springframework.lang.Nullable;
import org.springframework.web.context.request.WebRequest;
/**
* Strategy interface for storing model attributes in a backend session.
*
* @since 2.5
* @see org.springframework.web.bind.annotation.SessionAttributes
*/
publ... | 33.125 | 86 | 0.762264 |
3a7f7055b1f2d67b381391630495475d4d11c93b | 748,724 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.huawei.hiai.vision.videosummarydemo;
public final class R {
public static final class anim {
public static final int abc_... | 51.908209 | 197 | 0.665043 |
729658d41e23ec86b9b607ddcfd6e645ebecfaac | 388 | package com.unclezs.spring.context.service;
import lombok.Getter;
import lombok.Setter;
/**
* @author blog.unclezs.com
* @date 2021/8/29
*/
@Setter
@Getter
public class AppService {
private Boolean useCache = false;
public void doService() {
if (Boolean.TRUE.equals(useCache)) {
System.out.println("我... | 16.869565 | 43 | 0.659794 |
bd43e4b36956768d93ee41c485fffabb23d3c6c0 | 735 | package com.eltechs.axs.xserver;
import com.eltechs.axs.helpers.Assert;
public class KeyboardLayout {
private final int[] majKeysyms = new int[KeyboardModel.KEYS_COUNT];
private final int[] minKeysyms = new int[KeyboardModel.KEYS_COUNT];
public void setKeysymMapping(int i, int i2, int i3) {
Asser... | 28.269231 | 75 | 0.64898 |
d91216eddf04962ab52e6138cf547e8ad3adddde | 5,389 | package owl.cs.evowl.ui;
import java.io.IOException;
import java.io.StringReader;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.json.simple.JSONArray;
import o... | 27.35533 | 106 | 0.710707 |
279d32c2c63ae21151168c91a13b17f76a9066ee | 771 | package io.freedriver.math.measurement.types;
import io.freedriver.math.measurement.units.Unit;
import io.freedriver.math.number.ScaledNumber;
/**
* A Measurement lacking a temporal component, incapable of having one.
* @param <M>
*/
public abstract class FixedMeasurement<M extends FixedMeasurement<M>> extends Mea... | 25.7 | 95 | 0.667964 |
e29612ddca402588a1c30f452b89d191b20e54a0 | 492 | package de.be.thaw.math.mathml.typeset;
import de.be.thaw.math.mathml.typeset.element.MathElement;
import de.be.thaw.util.Size;
/**
* A typeset math expression.
*/
public class MathExpression {
/**
* The root math element.
*/
private final MathElement root;
public MathExpression(MathElement ... | 16.965517 | 58 | 0.630081 |
b3f3b6389aeb30ecab73715f2d26bb04be1fe074 | 767 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.ui.standalone;
import com.intellij.ui.scale.JBUIScale;
import com.intellij.util.ui.TestScaleHelper;
import org.junit.Test;
import static junit.framewor... | 27.392857 | 140 | 0.745763 |
2e23698926a898e31cca93ddd261ecd4ef5b6c5a | 2,758 | /*
* Copyright 2016 Huawei Technologies Co., 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... | 20.58209 | 75 | 0.601885 |
c133547f09be4d66a5b8d6f9e22e2d98463dc0e7 | 5,343 | /*-
* #%L
* BigDataViewer core classes with minimal dependencies.
* %%
* Copyright (C) 2012 - 2021 BigDataViewer 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 source ... | 29.683333 | 79 | 0.735355 |
a47b7d62df8cddf58bb9bbfc0e2531d2002c2e9e | 3,032 | package com.pankx.dao;
import com.pankx.bean.Department;
import com.pankx.bean.DepartmentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
@Repository
public interface DepartmentMapper {
/**
* This method was generated by MyBatis Gen... | 30.938776 | 114 | 0.681069 |
4990d4c8845eacae0d8677bde2e8847140ff8837 | 2,337 | package mage.cards.c;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
import mage.constants.SubType;
import mage.abilities.keyword.NinjutsuAbility;
i... | 32.013699 | 160 | 0.727856 |
a07658001f91832812fb5916b00d85b6f87b5bba | 303 | package minijava.intermediate.tree;
public interface TreeExpVisitor<A> {
A visit(TreeExpCONST expCONST);
A visit(TreeExpNAME expNAME);
A visit(TreeExpTEMP expTEMP);
A visit(TreeExpMEM expMEM);
A visit(TreeExpOP expOP);
A visit(TreeExpCALL expCALL);
A visit(TreeExpESEQ expESEQ);
}
| 15.947368 | 36 | 0.742574 |
0b4c2f61c61568ed3d2b384b98cb38c4c7a7d66f | 2,921 | package com.xxmassdeveloper.mpchartexample.custom;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.PixelFormat;
import android.graphics.RadialGradient;
import android.graphics.Shader;
import android.graphics.draw... | 29.21 | 81 | 0.66758 |
f6f28b55155fb06e854883644c43611ffd52bbab | 2,117 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | 45.042553 | 128 | 0.758148 |
a8d5d5070197f1023d585a4c2f99aa08993dc8a7 | 2,157 | package io.amecodelabs.ims.view.addstockproduct;
import io.amecodelabs.ims.models.utils.ContentValues;
import io.amecodelabs.ims.service.ProductService;
import io.amecodelabs.ims.service.StockService;
public class PresenterProductControlViewImpl implements PresenterProductControlView<ContentValues> {
private Product... | 34.790323 | 122 | 0.759388 |
ceb151d6b02b8484ae9be0f44858648e15394447 | 789 | package com.edu.fiap.catalogprocessing.repository;
import com.edu.fiap.catalogprocessing.model.entity.CatalogGenreEntity;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Service;
/**
* Genre Repository
* @author agnaldo.almeida
*/
@Service
public interface CatalogGe... | 28.178571 | 93 | 0.746515 |
09538cdb7c82f18f5b17e20d3739c1ecdfee44d4 | 2,558 | package io.github.edmm.core.plugin;
import io.github.edmm.model.edimm.ComponentType;
public interface EDMMPropertyMapper {
String toAuth0PropertyKey(String specificPropertyKey);
String toComputePropertyKey(String specificPropertyKey);
String toDBMSPropertyKey(String specificPropertyKey);
String to... | 36.028169 | 98 | 0.693511 |
93c2063d4d1babc7e287fe026f28f3fb68367de8 | 7,570 | /*
* 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 ... | 39.222798 | 100 | 0.660238 |
c688a3cfb4a01660b666de2a3a42ba850c007e5b | 1,713 | //Deobfuscated with https://github.com/PetoPetko/Minecraft-Deobfuscator3000 using mappings "1.12 stable mappings"!
//
// Decompiled by Procyon v0.5.36
//
package dev.cuican.staypro.module.modules.misc;
import dev.cuican.staypro.client.FriendManager;
import dev.cuican.staypro.common.annotations.ModuleInfo;
import... | 31.722222 | 270 | 0.702277 |
13b907ab237a5000ed2e2454f4de352a4dc624da | 140 | package spork.android.support.test.bindclick;
public interface ClickTestProvider {
int getClickCount();
int getClickViewResourceId();
}
| 17.5 | 45 | 0.8 |
6c0a1846f65b934042b18692035e9469c363e952 | 2,547 | package io.github.slackapi4j.objects;
/*-
* #%L
* Slack-Api-4J
* %%
* Copyright (C) 2018 - 2019 SlackApi4J
* %%
* 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, i... | 37.455882 | 103 | 0.733412 |
f7acbf38c932e4cac19b35aed84189f396719389 | 1,400 | /*
* SonarQube PDF Report
* Copyright (C) 2010-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the... | 31.111111 | 75 | 0.722857 |
939d326df1208ea06fda54164ec2b65b19a062ad | 1,760 | package com.yunqiic.cocojob.server.test;
import com.yunqiic.cocojob.server.common.utils.OmsFileUtils;
import com.yunqiic.cocojob.server.persistence.mongodb.GridFsManager;
import com.yunqiic.cocojob.server.core.scheduler.CleanService;
import com.mongodb.client.gridfs.model.GridFSFile;
import org.junit.Test;
import org.... | 30.344828 | 84 | 0.746023 |
46980cc0957424171c3dc329c81b57151f42f6dc | 5,489 | /*
* Copyright (C) 2008 feilong
*
* 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 ... | 35.185897 | 123 | 0.541082 |
14ba8a50a76a68db6c07e0ced8a25af7523c89af | 652 |
/******************************************************************************
* Purpose: Determines print the given input string hello inputstring how are you.
*
* @author Nilesh singh
* @version 1.0
* @since 23-02-2018
*
******************************************************************************... | 28.347826 | 83 | 0.542945 |
fcd66da9fd7e9feb080c75313ca0700f5d07b3de | 2,416 | /**
* Copyright © 2018 organization baomidou
* <pre>
* 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 applicabl... | 36.606061 | 123 | 0.74255 |
5468183f30123f181b59e476f9af5efad26cf328 | 2,672 | package nc.ki.optisoins.service.impl;
import nc.ki.optisoins.service.PatienteleService;
import nc.ki.optisoins.domain.Patientele;
import nc.ki.optisoins.repository.PatienteleRepository;
import nc.ki.optisoins.service.dto.PatienteleDTO;
import nc.ki.optisoins.service.mapper.PatienteleMapper;
import org.slf4j.Logger;
im... | 29.362637 | 112 | 0.701722 |
f85d5db19f59649bbd2d8f04042d389cabd5adf5 | 4,069 | /*
* Copyright 2015 NAVER Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 47.313953 | 148 | 0.710248 |
dd1d9225db6a6f58486b8b61b5dbf37ecc7619ab | 520 | package io.blocktyper.theotherworlds.plugin.controls;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.Map;
@JsonIgnoreProperties(ignoreUnknown = true)
public class ControlBindings {
public String pluginName;
public Map<String, Map<String, ButtonBinding>> gameModeButtonBindings;... | 28.888889 | 74 | 0.769231 |
5280a0905b51aa1330f7ba3da23e53b9832fd6bf | 1,249 | package org.hibernate.validator;
import java.io.Serializable;
import java.text.DateFormat;
import java.text.ParseException;
import java.util.Calendar;
import java.util.Date;
import org.hibernate.mapping.Column;
import org.hibernate.mapping.Property;
/**
* Check that a given date is in the past, and apply the same r... | 26.020833 | 91 | 0.717374 |
bca04ff4c6c1fb6cabdcf5dbcee947c03489d2b3 | 2,652 | package com.androidufo.loading.dialog;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager... | 27.340206 | 114 | 0.638763 |
76951b83c5b654107bbc7718c1310e23f33e433c | 3,134 | /**********************************************************************
Copyright (c) 2006 Andy Jefferson and others. 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
h... | 30.72549 | 143 | 0.585833 |
6a2799966a0414b921ee7ce32d4bb6e219599608 | 935 | package cn.icepear.dandelion.common.lock;
/**
* @author rim-wood
* @description 分布式锁抽象类,实现基本的方法,关键方法由子类去实现
* @date Created on 2018/12/8.
*/
public abstract class AbstractDistributedLock implements DistributedLock {
@Override
public boolean lock(String key) {
return lock(key, TIMEOUT_MILLIS, RETRY... | 26.714286 | 75 | 0.68877 |
7a9ccfc57b7a15b0383aee3a8eeb518487917088 | 1,591 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands.Auto;
import edu.wpi.first.wpilibj2.command.ConditionalCommand;
import edu.wpi.first.wpilibj... | 48.212121 | 102 | 0.788812 |
6ae50aeb6a30ed3cc61e4685b75b76e6e4ff1b98 | 575 | package annotions;
import form.BaseForm;
import play.mvc.BodyParser;
import play.mvc.With;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @Created_With kitchen
* @Author: kris
* @Email: wubinwu@... | 19.827586 | 44 | 0.753043 |
b03fcf555e302419c820133298b3887fd29bfbb5 | 2,029 | package com.fleury.metrics.agent.config;
import static com.fleury.metrics.agent.model.MetricType.Counted;
import static com.fleury.metrics.agent.model.MetricType.Timed;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import com.fleury.metrics.agent.model.Metric;
import com.fle... | 36.232143 | 128 | 0.706259 |
cb8010bbe0c78633459f35e81a0f534383a39e7e | 554 | package kasirgalabs;
import javax.swing.AbstractListModel;
public class ExamListModel extends AbstractListModel {
private final Exam[] examList;
public ExamListModel(Exam[] examList) {
this.examList = examList;
}
@Override
public int getSize() {
if(examList == null) {
... | 18.466667 | 54 | 0.586643 |
ed946f3af51dca5a30e02f4fc061f8516c102dc5 | 711 | package com.taobao.tddl.dbsync.binlog.event;
import com.taobao.tddl.dbsync.binlog.LogBuffer;
/**
* Log row updates with a before image. The event contain several update rows
* for a table. Note that each event contains only rows for one table.
*
* Also note that the row data consists of pairs of row data: one ro... | 30.913043 | 77 | 0.727145 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.