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 |
|---|---|---|---|---|---|
4f355e3fd3a1c0fc09caf1a2b91aaa2f4ed667b4 | 2,896 | package com.dadsunion.tron.service.impl;
import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dadsunion.tron.domain.TronChainRecord;
import ... | 41.371429 | 136 | 0.692334 |
9083826369ddde6f5f15271cb038c2c4f38f22f2 | 2,738 | /*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* In jurisdictio... | 37 | 183 | 0.704164 |
099f4533e757f62e0199d66bb24b4d0cbe91dcc7 | 1,207 | // � A+ Computer Science - www.apluscompsci.com
// Name - Sebastian Nunez
// Date - 10/09/18
// Class - 10th
// Lab - Number Verify
import static java.lang.System.*;
public class NumberVerifyRunner
{
public static void main(String[] args) {
//add in input
System.out.println("111 is odd :: " + Numb... | 34.485714 | 75 | 0.607291 |
6ced79a18679063bab6a4bf8b0732250bdea5b1b | 539 | /*
* 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.imos.sample.thread;
/**
*
* @author Alok
*/
public class SimpleThread extends Thread {
public static void main(Str... | 19.962963 | 79 | 0.640074 |
f2e0b40ac60407aabb397eebff0d16c518cbfe4a | 3,044 | package com.google.android.mms.pdu;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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
*
* ... | 27.423423 | 103 | 0.732589 |
5d3161c6efb094d053dd80b4685d346dd7ebcf35 | 1,394 | package org.atlasapi.equiv.results.filters;
import com.google.common.collect.ImmutableList;
import org.atlasapi.equiv.results.description.ResultDescription;
import org.atlasapi.equiv.results.scores.ScoredCandidate;
import org.atlasapi.equiv.update.metadata.EquivToTelescopeResult;
import java.util.List;
public class ... | 32.418605 | 108 | 0.696557 |
09d86d4b24c7693110835e3066d00ef3a2250831 | 6,038 | package home;
import rank.Ranks;
import storage.DataSource;
import java.util.ArrayList;
/**
* Created by sara on 23.11.2014.
*/
public class UserManager {
DataSource dataSource;
String firstName;
String lastName;
String email;
String userName;
String password;
int enabled;
String s... | 31.284974 | 204 | 0.618582 |
ca1dcec8af1acd6526bd0a3b259a8a422acdeb55 | 94 | package net.minecraft.server;
public interface ISource extends IPosition {
World k();
}
| 13.428571 | 44 | 0.734043 |
7d11f5d250789cd79e5b9a34ac95cc075dc94135 | 4,321 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | 36.618644 | 111 | 0.799583 |
48f6e2b58bf83ffbcec6d9426d81249e2fb1b556 | 511 | package com.mrbysco.justaraftmod.init;
import com.mrbysco.justaraftmod.Reference;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
public class RaftTab {
public static final ItemGroup RAFT = ne... | 30.058824 | 84 | 0.729941 |
8d51b0527d33da6ffe10c0771ba110b7eba5816a | 1,748 |
package ca.aatl.app.invoicebook.data.jpa.dao;
import ca.aatl.app.invoicebook.data.jpa.entity.Province;
import ca.aatl.app.invoicebook.data.jpa.entity.Province_;
import java.util.List;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.persistence.NoResultException;
import javax.persistence.TypedQuer... | 23.621622 | 72 | 0.625286 |
2e14c04e94eb2950f0671a641ad1a93d93a17d7c | 8,821 | /*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Olivier Lamy
*
* 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, inclu... | 34.189922 | 134 | 0.66251 |
1d8ea2ec637933eb478de855850b30f2bed153c6 | 269 | package leave.view;
/**
* Created by Administrator on 2018-1-2.
*/
public interface ILeaveDetailView extends ILeaveView {
void setApplyDate(String date);
void setBeginDate(String date);
void setEndDate(String date);
void setBackDate(String date);
}
| 20.692308 | 54 | 0.724907 |
c970bcdd7d3d53aca417a718f2bd79d3559d725e | 11,325 | /*
* Farsi Knowledge Graph Project
* Iran University of Science and Technology (Year 2017)
* Developed by Majid Asgari.
*/
package ir.ac.iust.dml.kg.raw.services.web.rest;
import edu.stanford.nlp.pipeline.Annotation;
import io.swagger.annotations.Api;
import ir.ac.iust.dml.kg.raw.SentenceTokenizer;
import ir.ac... | 38.917526 | 119 | 0.738543 |
0782d74992167f571bd5b1306a539e458c55e54e | 815 | package br.com.alura.leilao.ui.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import br.com.alura.leilao.R;
import br.com.alura.leilao.model.Leilao;
public class LancesLeilaoActivity extends AppCompatActivity {
... | 32.6 | 83 | 0.727607 |
c0d9a9769aae9e667c3b2eaa8f4b6b78138b228c | 1,227 | package pt.up.fc.dcc.mooshak.shared.results.sequencing;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootEl... | 19.790323 | 59 | 0.724531 |
f707907f250d59a4844608d20ee8128fa3939eb9 | 11,313 | package us.ihmc.footstepPlanning.testTools;
import static org.junit.Assert.assertTrue;
import javax.vecmath.Point2d;
import javax.vecmath.Point3d;
import javax.vecmath.Vector3d;
import us.ihmc.footstepPlanning.AnytimeFootstepPlanner;
import us.ihmc.footstepPlanning.FootstepPlan;
import us.ihmc.footstepPlanning.Foots... | 47.936441 | 227 | 0.759215 |
64e98c3affe11eb2fca5b420b5971daa3e30f8c1 | 3,384 | /*
* Copyright 2011 Goldman Sachs.
*
* 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 ... | 36 | 132 | 0.663416 |
fcbac28a48e60c6f44b8ffb1a30996af28a6d276 | 854 | package leetcode;
/**
* Created by Administrator on 2018/10/3.
* 转为char[] 从左右同时遍历,如果左右不相同,则不为回文数
*/
public class L9_Palindrome_Number {
public static void main(String[] args) {
boolean palindrome = new Solution().isPalindrome(12521);
System.out.println(palindrome);
}
static class Solut... | 23.081081 | 64 | 0.484778 |
4633c7b8f2bac762f65e0c6748f040bf4ef3d2f2 | 389 | package com.base.engine.core;
public abstract class ReferenceCounter {
private int refCount;
public ReferenceCounter() {
refCount = 1;
}
public void addReference() {
refCount++;
}
public boolean removeReference() {
refCount --;
return refCount == 0;
}
... | 15.56 | 40 | 0.588689 |
61f19b85d12db088065bb724d2cedbfb3864b1aa | 5,585 | package com.firstlinecode.granite.lite.integration;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.firstlinecode.basalt.protocol.core.IError;
import com.firstlinecode.basalt.protocol.core.JabberId;
import com.firstlinecode.basalt.protocol.core.stan... | 29.240838 | 118 | 0.766697 |
92730ebd2a4767934b02ea66610dae267fd1f1e8 | 4,883 | /*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 33.909722 | 114 | 0.627074 |
3273ca9704f37d38e91919070de6ad7ed6d5bba2 | 1,637 | /*
* 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 centraleapp;
import communication.AudioReceiver;
import communication.CaptureThread;
import communication.VideoReceiver;
impor... | 25.578125 | 79 | 0.690898 |
dd3ae0ac85f4ab17fd073de89be3501ae9fa0b1f | 1,458 | package com.hectorlopezfernandez.boot.pebble.autoconfigure;
import java.nio.charset.Charset;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.util.MimeType;
@ConfigurationProperties("spring.pebble")
public class PebbleProperties {
private static final... | 27 | 85 | 0.740055 |
30fbc2f4b60252d3fb5f0acfe41dd2f509ca5988 | 745 | package com.ruoyi.javamail.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.javamail.domain.QueryRequest;
import com.ruoyi.javamail.entity.SendMailReceivedItems;
import java.util.List;
import java.util.Map;
/**
* @author gmm
... | 32.391304 | 126 | 0.833557 |
033961ce9763341d5e019072f29d9296c93914bc | 4,519 | package com.clearnight.oa.sftp.action;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springf... | 27.222892 | 119 | 0.688648 |
3b9e1a0c29472d9df3beeeb87d0a24e94286518a | 363 | package com.brillantcode.gate;
import java.util.Set;
/**
* Stores and provides available {@link Command} types.
*/
public interface CommandRegistry {
/**
* Returns a {@link Set} of Java {@link Class}
* of available {@link Command} types.
*
* @return A set of available command types.
*/
Set<Class... | 19.105263 | 55 | 0.666667 |
6c5ae58381a158e56f1e91d35971732f56403e41 | 1,028 | package com.springboot.cloud.sysadmin.organization.entity.form;
import com.springboot.cloud.common.core.entity.form.BaseQueryForm;
import com.springboot.cloud.sysadmin.organization.entity.param.GroupQueryParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
... | 32.125 | 79 | 0.783074 |
1d946ad4008fb0b96813755e7dcb2ba62633e943 | 1,058 | /*
* Copyright 2013 Guidewire Software, Inc.
*/
package gw.internal.gosu.parser;
import gw.lang.parser.IToken;
import gw.lang.reflect.IType;
import gw.lang.parser.exceptions.ParseException;
/**
*/
final class ArgExceptionInfo
{
private int _iArgIndex;
private ParseException _pe;
private IToken _parserState;... | 18.892857 | 80 | 0.70983 |
49255d67fc3c817d5e7ab593851edfe1c02fde30 | 2,096 | /*
* Copyright 2021 the original author or authors.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by... | 36.77193 | 107 | 0.763359 |
bf30633607955254899800565c8a964c4cf269bf | 876 | package de.ebuchner.vocab.model.practice;
import junit.framework.TestCase;
public class PracticeStatisticsValueTest extends TestCase {
public void testIncrement() {
PracticeStatisticsValue value = new PracticeStatisticsValue();
assertEquals(0, value.getUsageCount());
long timeStamp0 = va... | 31.285714 | 74 | 0.694064 |
6d914b7af9c1e5c139eedd53ce479141fec2665d | 57,132 | // Targeted by JavaCPP version 1.5.7-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.depthai.global;
import org.bytedeco.depthai.*;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.openbl... | 22.662436 | 197 | 0.715151 |
2faa39e273e38aa509508c778bd35a2a5ec0c3b6 | 2,670 | package com.usthe.bootshiro.support;
import com.usthe.bootshiro.util.XssUtil;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import java.util.HashMap;
import java.util.Map;
/**
* request请求安全过滤包装类
* @author tomsun28
* @date 20:41 ... | 25.92233 | 80 | 0.59588 |
576a615cd88159a7604a223ffc96f5b6fffc388b | 1,673 | package game.tnt;
import org.joml.Vector3d;
import static engine.FancyMath.getDistance;
import static game.blocks.BlockDefinition.getBlockDefinition;
import static game.chunk.Chunk.getBlock;
import static game.chunk.Chunk.setBlock;
import static game.item.ItemEntity.createItem;
import static game.light.Light.lightFlo... | 44.026316 | 117 | 0.536163 |
8680d2f678acbe3f94820804b2a113782bb3bda5 | 1,711 | /*******************************************************************************
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2018 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | 29.5 | 81 | 0.63647 |
c8952d245107ec27ce25de5849ea94311e70b049 | 556 | /* File: MyBrighten.java
* -------------------
* This program shows how we can use 2D arrays and GImages
* to modify an image's pixels to make it brighter.
* -------------------
*/
import java.awt.*;
import java.awt.event.*;
import acm.graphics.*;
import acm.program.*;
import acm.util.*;
public class MyBrighten ... | 21.384615 | 69 | 0.652878 |
f9634852b792511ed2fc04ec030b808aa2cb12ec | 1,343 | package com.adelean.inject.resources.junit.vintage.core;
import static com.adelean.inject.resources.core.Resource.buildPath;
import com.adelean.inject.resources.junit.vintage.helpers.CodeAnchor;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
/**
* Base implementation of resource contain... | 34.435897 | 105 | 0.743112 |
f80c217b195a93f5ec60716f0de70e08699af763 | 248 | package com.github.freshchen.keeping.mediator;
/**
* @program: fresh-design-pattern
* @Date: 2019/5/26 15:11
* @Author: Ling Chen
* @Description:
*/
public interface UnitedNations {
public void declare(String message, Country country);
}
| 20.666667 | 57 | 0.71371 |
4e7f8d1ebab41b6262b073514b17e8258879536a | 9,216 | import org.junit.Test;
import java.util.concurrent.*;
import java.util.function.Supplier;
/**
* https://www.baeldung.com/java-completablefuture
* https://juejin.im/post/5adbf8226fb9a07aac240a67
* CompletableFuture
* 提供了任务编排的能力
* The Future interface was added in Java 5 to serve as a result of an asynchronous co... | 33.032258 | 109 | 0.56033 |
e10f8be4d121da6898450b2c7d60b13e83a996fe | 1,564 | package org.thingsboard.server.dao.sql.task;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.reposit... | 44.685714 | 114 | 0.787724 |
2d5614807386a21e1073e596fceb0141afdf7130 | 4,035 | /*
* Copyright 2015-2016 Red Hat, Inc, and individual contributors.
*
* 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 require... | 44.833333 | 119 | 0.639901 |
baa4c9d02a987f9ae6096f144ad29675ceb4d6b2 | 3,068 | /*
* 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
* d... | 28.407407 | 85 | 0.619296 |
ef542750f6fdcbaeb5470603b5a2bf0d42b25398 | 794 | package com.wangqiang.libs.utils;
import android.content.ContentResolver;
import android.database.Cursor;
import android.net.Uri;
import android.provider.MediaStore;
/**
* Created by heartinfei on 2015/8/6.
*/
public class UriUtils {
public static final String getFilePathFromContentUri(Uri selectedVideoUri,
... | 30.538462 | 98 | 0.68262 |
0b7dccd82c7a2715c1bbff263fe5b08b559f0eb2 | 1,109 | package com.mahogano.core.magento.mapper;
import com.mahogano.core.magento.entity.AdminnotificationInbox;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
public class AdminnotificationInboxMapper implements RowMapper<AdminnotificationInbox> {
@Override
... | 42.653846 | 93 | 0.772768 |
35307cdd4fc0705f0ec72280f997f7ad13840fe4 | 4,014 | package com.aws.kinesis.library;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDB;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder;
import com.amazonaws.services.dynamodbv2.document.DynamoDB;
import com.amazonaws.services.kinesis.clientlibrary.lib.worker.InitialPositionInStream;
import com.... | 33.45 | 127 | 0.76856 |
996f61564442879decfea03cef90105fe905b037 | 8,995 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package erp.mod.bps.db;
import erp.mod.SModConsts;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;
import sa.lib.db.SDbConsts;
import sa.lib.db.SDbRegistry;
import sa.lib.db.SDbRegistryUs... | 38.939394 | 87 | 0.679822 |
ae65b1a71d4becde884634b3582cec5d7e9a2101 | 67,179 | package edu.ncsu.las.source;
import edu.ncsu.las.collector.Collector;
import edu.ncsu.las.document.ForumUserMerger;
import edu.ncsu.las.model.collector.Configuration;
import edu.ncsu.las.model.collector.Job;
import edu.ncsu.las.model.collector.JobHistory;
import edu.ncsu.las.model.collector.SearchRecord;
import edu.nc... | 39.447446 | 652 | 0.704476 |
b347553f4f69273615e6f1192970525cc70b8e7a | 3,066 | /*
* 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 ... | 36.070588 | 99 | 0.733529 |
e59710fa199f6ad49fd06ce38da5127a2a2d73db | 852 | package com.fp.security.exception;
import com.fp.tool.RestResult;
import com.fp.tool.ex.ResultCodeEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.AccessDeniedException;
import org.springframew... | 32.769231 | 115 | 0.803991 |
ca9db338325920cf27f75cdf8d42649c36346065 | 493 | package cn.spear.core;
/**
* @author shoy
* @date 2021/9/28
*/
public interface Constants {
String EMPTY_STR = "";
String RADIX_HEX = "0x";
int CODE_SUCCESS = 200;
String HEADER_CONTENT_TYPE = "Content-Type";
String CONTENT_TYPE_JSON = "application/json";
String CONTENT_TYPE_FORM = "appli... | 23.47619 | 67 | 0.687627 |
b7ba256f26298dfff4dfc1618cf6f1a94839df1c | 8,074 | /**
*
* Copyright 2011 (C) Rainer Schneider,Roggenburg <schnurlei@googlemail.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/LICENS... | 24.029762 | 107 | 0.708199 |
1c274136571db11dd5344d84f1cea1358ca1d579 | 6,919 | package cn.edu.scau.biubiusuisui.entity;
import cn.edu.scau.biubiusuisui.annotation.FXController;
import cn.edu.scau.biubiusuisui.annotation.FXWindow;
import cn.edu.scau.biubiusuisui.config.FXMLLoaderPlus;
import cn.edu.scau.biubiusuisui.config.FXPlusApplication;
import cn.edu.scau.biubiusuisui.log.FXPlusLoggerFactory... | 26.817829 | 118 | 0.573927 |
6c7b7e2dfba12a1c5558089ec8a2844610d603ab | 29,742 | /*
* 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 ... | 38.878431 | 136 | 0.602212 |
753299b975d95947b5952ab734389d44370998cd | 34,325 | /**
* Copyright 2016 Nazar Suhovich
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable la... | 39.363532 | 121 | 0.551056 |
cf0afdc6caf7091560a3541437fc21c84fa4a7dd | 1,719 | /*
* 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 campeonato.SRV;
import campeonato.DAO.EquipoJpaController;
import campeonato.DAO.EtapaJpaController;
import campeonato.SRV.MOD... | 29.135593 | 93 | 0.678301 |
3841239a7a15c54b47a716f4050c3f481595f155 | 361 | package org.springplayground.samples.contenttypenegotiation.resources.model;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class CompanyMinimal {
private String name;
public static CompanyMinimal from(Company company) {
return CompanyMinimal.builder()
.name(company... | 20.055556 | 76 | 0.686981 |
f4b17a1183431e50d88992ae99719a49b75ba78f | 1,267 | package com.rainbow.common.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.RadioButton;
/**
* radiobutton文字和图片同时居中
*
* @author zz
*/
public class TDMRadioButton extends RadioButton {
publi... | 26.957447 | 78 | 0.636148 |
8c7dbfee1338a3c8c94c3e34462d9c26aa7d3874 | 3,448 | package com.shanjingtech.secumchat.db;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
/**
* Message table to save meta data of all messages.
*/
@Entity
public class Message {
public static class Builder {
private long messageId;
private String gro... | 20.282353 | 55 | 0.565545 |
96f53aa85866e6d4612b9719c2bb4b6a870726bf | 1,510 | /*
* Main Author: Igaguri
* Copyright: 2017 Igaguri
* License: MIT LICENSE
* See README in repository.
*/
package net.kurikagononaka.mapImager.model.output;
import net.kurikagononaka.mapImager.model.map.image.ColorImage;
import net.kurikagononaka.mapImager.model.map.image.ColorTable;
import javax.i... | 26.491228 | 78 | 0.627152 |
ba26b6158985126918d1d74253347a8aaecda006 | 5,617 | /*
* Copyright 2017, Hridesh Rajan, Robert Dyer, Ramanathan Ramu
* and Iowa State University of Science and Technology
*
* 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
*... | 29.719577 | 149 | 0.693787 |
71e741f805fae0b2f62c527099ad437fabb27caa | 5,032 | /*
* Copyright 2006-2009 the original author or authors.
*
* 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 requ... | 35.188811 | 103 | 0.736089 |
061e8a9d4b06d10f1e7ad7d9cb429f529befa7e8 | 1,477 | package app;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class ConvertRedToBlue {
public static void main(String[] args) throws Exception {
BufferedImage img = null;
File f = null;
try {
f = new Fi... | 28.403846 | 89 | 0.441435 |
91dd6d3e33b6e52a05e22f81d1833ed3f5977fff | 1,040 | package framework.portal;
import java.util.HashMap;
import java.util.Map;
import framework.JSContainer;
import framework.Renderable;
public abstract class JSPage extends JSContainer {
private JSPageHeader header = new JSPageHeader("header");
private JSContainer content = new JSContainer("content", "d... | 19.259259 | 66 | 0.688462 |
e4dcde2d4f699af4f8e25ba220cdc3409c9825e5 | 1,281 | package com.upserve.uppend.metrics;
public interface InternalMetrics<T extends InternalMetrics<T>> {
String toString();
String present(T previous);
T minus(T other);
enum Prefix {
NANO(1e-9d),
MICRO(1e-6d),
MILLI(1e-3d),
NONE(1d),
KILO(1e3d),
MEGA(1e6d... | 22.086207 | 64 | 0.53708 |
838ca1abbdcb8a66de0afd4af976490ffec627da | 1,385 | package cn.amos.ant.framework.datapermission.config;
import cn.amos.ant.framework.datapermission.core.dept.rule.DeptDataPermissionRule;
import cn.amos.ant.framework.datapermission.core.dept.rule.DeptDataPermissionRuleCustomizer;
import cn.amos.ant.framework.datapermission.core.dept.service.DeptDataPermissionFrameworkS... | 41.969697 | 110 | 0.790614 |
70febd5d89b00d1b50f85305cf24e6a853b60e5f | 1,605 | package com.carloseduardo.movie.search.ui.movies.observer;
import com.carloseduardo.movie.search.ui.movies.listener.NetworkStateChangeListener;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import static org.mockito.Mockito.mock;
import static org.mockito.Mock... | 37.325581 | 109 | 0.7919 |
50c0379da20ffd0a208e579a678349f1f4716b66 | 755 | package com.resource.server.controller;
import java.security.Principal;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spring... | 30.2 | 100 | 0.821192 |
7424172b17969b1fac95bd931fedb71d4e35f521 | 1,202 | package skid.gay.sex.spermix.inside.shalopay.features.idk;
import net.minecraft.client.Minecraft;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.Vec3d;
public class RotationUtils {
public static float[] b = null;
public static Minecraft a = Minecraft.getMinecraft();
public st... | 37.5625 | 217 | 0.68386 |
02191bdaa0ec6b7614215f4de43ab90a5c056600 | 899 | package fr.lecomptoirdespharmacies.offisante.core.api;
import fr.lecomptoirdespharmacies.offisante.OffisanteApi;
import fr.lecomptoirdespharmacies.offisante.entity.http.builder.CreateUri;
import fr.lecomptoirdespharmacies.offisante.entity.http.Uri;
import fr.lecomptoirdespharmacies.offisante.entity.http.Token;
import ... | 31 | 102 | 0.738598 |
4bcb7e311e2f5079a67f8c5055270bf0b2be3e19 | 208 | package com.nano.candy.parser;
import com.nano.candy.utils.Position;
public interface Scanner {
public Token nextToken();
public Token peek();
public boolean hasNextToken();
public Position basePos();
}
| 20.8 | 37 | 0.764423 |
1502fb038af9b8f78de222c3f5b1ff5105faedd1 | 3,424 | /*
* Copyright 2016 Claymore Minds Limited and Niche Solutions (UK) Limited
*
* 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
*
* Unl... | 46.90411 | 123 | 0.730724 |
84ce59b38d27ea24e72d82e26e62c36c96e1d4b6 | 1,022 | package com.luoyifan.voyage.entity.po;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import java.util.List;
/**
* @author EvanLuo
*/
@Entity... | 34.066667 | 130 | 0.771037 |
72f6f9144e89e28b1e75727c40b3faa89dc02f44 | 1,331 | package github.mappingrpc.core.metadata;
import github.mappingrpc.core.rpc.CallResultFuture;
import github.mappingrpc.core.rpc.ServiceInvocationHandler;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutorService;
public class MetaHolder... | 25.596154 | 83 | 0.784373 |
d7adb69aa07936d5f39091bd483b7d212f2e7f6d | 3,635 | /*******************************************************************************
* Copyright (c) 2015 - 2017
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including... | 37.091837 | 150 | 0.696286 |
5a44316603bf28894d7b6ca9e968c0019b4bc7c3 | 1,667 | package ria.lang.compiler.nodes;
import java.util.Objects;
public class TypeNode extends Node {
public String name;
public TypeNode[] param;
public boolean var;
public boolean exact;
public String doc;
public TypeNode(String name, TypeNode[] param) {
this.name = name;
this.par... | 27.783333 | 72 | 0.439112 |
0d50379d9503ce9d2d32723551a53feaa5de7c9e | 2,489 | package com.infodart.peerhuntr.jpa.service.Impl;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.User.UserBuilder;
import org.springframework.security.core.userdetails... | 40.145161 | 179 | 0.736842 |
a1da9f71de43ddac5a00adcb48b99552b62c3138 | 313 | package com.louisga.mapapplication;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MapApplication {
public static void main(String[] args) {
SpringApplication.run(MapApplication.class, args);
}
}
| 22.357143 | 68 | 0.821086 |
12753318189eee5b72fe6b503fbc8809d425ff44 | 625 | package me.aki.tactical.stack.insn;
import me.aki.tactical.core.util.RWCell;
import java.util.List;
/**
* Instruction that might jump to another locations in the code.
*/
public interface BranchInsn extends Instruction {
/**
* Get all instructions to which this instruction may branch.
*
* @retur... | 25 | 76 | 0.6944 |
9a7e62eaa239c51df052adf21752a7a86264f286 | 2,257 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.exam.entity;
import com.thinkgem.jeesite.common.persistence.DataEntity;
/**
* 考评流程环节关联Entity
* @author eav.liu
* @version 2019-12-10
*/
public class ExamWorkfl... | 19.626087 | 108 | 0.72397 |
a870d1360c727321bf4ea570358b8bc03cbd50f4 | 1,442 | package minerLinkComm;
import java.util.List;
import ru.ispras.modis.NetBlox.scenario.GraphMiningParametersSet;
import ru.ispras.modis.NetBlox.scenario.RangeOfValues;
import ru.ispras.modis.NetBlox.scenario.ValueFromRange;
import ru.ispras.modis.NetBlox.utils.MiningJobBase;
import ru.ispras.modis.NetBlox.utils.Pair;
... | 27.207547 | 128 | 0.770458 |
0f23cb499010c31b1d551157b373e89612eec893 | 548 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | 39.142857 | 104 | 0.751825 |
800fb546cf430db6bfe00c63d6e1e8385c5b2f40 | 23,802 | package io.opensphere.core.authentication;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.EventQueue;
import java.net.Socket;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.Principal;
import java.security.PrivateKey;
impor... | 37.30721 | 131 | 0.560541 |
c8774d23e3246d8d4869f44a9632f1b2e700b7ea | 510 | package com.ctrip.framework.apollo.portal.environment;
/**
* 支持多个元服务器地址提供器。 从配置文件、操作系统环境、从数据库...只需实现这个接口.
*
* @author wxq
*/
public interface PortalMetaServerProvider {
/**
* 通过指定的环境获取远服务器地址.
*
* @param targetEnv 指定的环境
* @return 与环境匹配的元服务器地址
*/
String getMetaServerAddress(Env targetEnv);
/**... | 15.9375 | 54 | 0.654902 |
71f098bdb2d6a0141c9c901c68d40ffb641f79b2 | 168 | package am2.api.spell.enums;
public class BuffPowerLevel {
public static final int Low = 0;
public static final int Medium = 1;
public static final int High = 2;
}
| 21 | 36 | 0.738095 |
27c91d5cf2f0fd288f6ebcbdf0e566e627fcda34 | 1,021 | package xyz.micrqwe.model;
import java.io.Serializable;
import java.util.Date;
/**
* Created by le on 2017/5/9.
*/
public class User implements Serializable {
private String name;
private String age;
private Date date;
private byte[] b;
public String getName() {
return na... | 18.232143 | 44 | 0.470127 |
e201519994c6f33354a5b3aa13c409a2f5382d58 | 1,189 | package com.swoqe.newsstand.controllers;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBo... | 37.15625 | 95 | 0.78217 |
b78b48195937eee4e96527a067af544a5cce2355 | 73,556 | /*******************************************************************************
* Copyright (C) 2017, Paul Scerri, Sean R Owens
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Red... | 36.741259 | 387 | 0.619079 |
76bc21b201f57573ffbb0d874d9f287faf31c512 | 1,825 | package org.racetrack.track;
import org.racetrack.karoapi.*;
public class GameAction {
private Game game;
private boolean quitGame;
private boolean skipGame;
private boolean notNext;
private boolean crash;
private Move move;
private boolean finishingMove;
private String comment;
pub... | 20.505618 | 83 | 0.639452 |
b10860d52f775f2584c150b3f3273c48d18f5269 | 4,129 | package me.william278.huskhomes2.commands;
import me.william278.huskhomes2.HuskHomes;
import me.william278.huskhomes2.MessageManager;
import me.william278.huskhomes2.data.DataManager;
import me.william278.huskhomes2.teleport.ListHandler;
import me.william278.huskhomes2.teleport.TeleportManager;
import me.william278.hu... | 34.991525 | 111 | 0.601841 |
7db7cc751af201307e0e0dca4370cfe0837f0ec8 | 8,693 | /*
* This file is part of Quark Framework, licensed under the APACHE License.
*
* Copyright (c) 2014-2016 Agustin L. Alvarez <wolftein1@gmail.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 ... | 26.026946 | 118 | 0.548947 |
851ad451f7972269ea5d3ec49e60fa3f1f9bd92b | 2,607 | /* ** GENEREATED FILE - DO NOT MODIFY ** */
package com.wilutions.mslib.outlook.impl;
import com.wilutions.com.*;
@SuppressWarnings("all")
@CoClass(guid="{C091A926-A463-DB41-5DAE-69E7A5F7FCBC}")
public class ExceptionImpl extends Dispatch implements com.wilutions.mslib.outlook.Exception {
@DeclDISPID(61440) ... | 48.277778 | 115 | 0.723053 |
c1dc037131dbe4e7fe913525af0a977c93640503 | 2,121 | /*
* Copyright 2013 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 applicab... | 35.35 | 126 | 0.730316 |
0fa6bd10687113c1861cf18ccb140042a048f912 | 2,510 | package com.Servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Http... | 27.888889 | 120 | 0.618327 |
4eb4e7e6acf8e7d0bb8f433169c6d4feb4933e2a | 381 | package cn.enilu.flash.common.dao.system;
import cn.enilu.flash.common.bean.entity.system.Dict;
import cn.enilu.flash.common.dao.BaseRepository;
import java.util.List;
public interface DictRepository extends BaseRepository<Dict, Long> {
List<Dict> findByPid(Long pid);
List<Dict> findByNameAndPid(String nam... | 23.8125 | 68 | 0.766404 |
605668569f4acf9e847c29f9a7e5b0f3323bc6e0 | 8,646 | package org.brapi.test.BrAPITestServer.service.core;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import javax.validation.Valid;
import org.brapi.test.BrAPITestServer.exceptions.BrAPIServerException;
import org.brapi.test.BrA... | 35.004049 | 113 | 0.765209 |
7645d185ddb8973cb5ef831d2e3878d67b27744c | 2,582 | package com.fxyublib.android.FxAppTangPoetry.utils;
import net.sourceforge.pinyin4j.PinyinHelper;
import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType;
import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat;
import net.sourceforge.pinyin4j.format.HanyuPinyinToneType;
import net.sourceforge.pinyin4j.forma... | 33.532468 | 102 | 0.599923 |
f0d80a6e544f3da3de556a6a9d6db2b46c5adcf8 | 2,168 | package networkmonitor.bolts;
import backtype.storm.topology.BasicOutputCollector;
import backtype.storm.topology.OutputFieldsDeclarer;
import backtype.storm.topology.base.BaseBasicBolt;
import backtype.storm.tuple.Fields;
import backtype.storm.tuple.Tuple;
import java.io.BufferedWriter;
import java.io.File;
import ... | 30.971429 | 93 | 0.694188 |
998918ba8df0cbc8d21515e31e10f02cd0ccf207 | 832 | package com.omisoft.vitafu.themoviedbapi.model.people;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.StringUtils;
public class PersonCast extends Person {
@JsonProperty("character")
private String character;
@JsonProperty("order")
private int order;
pu... | 18.086957 | 64 | 0.674279 |
07916fba0c36bedd24429a171685733520872c40 | 1,632 | package org.aztec.framework.mybatis.index;
import java.util.Date;
import javax.persistence.Id;
import javax.persistence.Transient;
public class BasicIndex {
protected byte[] indexData;
@Id
protected Long id;
protected Long remainder;
protected Long dataSize;
@Transient
protected Long new... | 22.985915 | 50 | 0.629289 |
6ae82547a2b6ecc53b3f0e33ba28d11bc8778d97 | 1,265 | package com.intuit.karate.template;
import com.intuit.karate.graal.JsEngine;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author pthomas3
*/
class TemplateTest {
static final Logger logger = LoggerFactory... | 33.289474 | 112 | 0.664032 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.