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 |
|---|---|---|---|---|---|
c5b08a37162109e2d4debfaa78a44bb636376030 | 4,557 | package lectureNotes.lesson3.rule3;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import org.junit.Test;
public class FixedDesignFlaw1 {
// Engine control unit
static class ECU {
public static final String ACTIVATE_FAN_UNIT = "Activate Fan unit";
pu... | 33.507353 | 99 | 0.530832 |
9a7286655090677254558f8309875207353b66ee | 773 | /*
* 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.pfc.soriano.ws.test.util.enums;
/**
*
* @author NACHO
*/
public enum EModelAPI {
CATEGORIAS("categori... | 21.472222 | 80 | 0.624838 |
0970566f418bcadbe2369d6b8602d6f1d55304e8 | 375 | package xyz.rexlin600.rabbitmq.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.lang.reflect.Method;
/**
* Amqp invoke
*
* @author hekunlin
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AmqpInvoke {
/**
* Methods
*/
public Method[] m... | 12.931034 | 38 | 0.717333 |
6062b24b0e2db91b2068fe7b48f9ef9022877e16 | 5,169 | package de.rakuten.cloud.service.productserver.controllers;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
impo... | 46.567568 | 112 | 0.815051 |
c91703157b2d66544fbadfd4bdeb0d23df7c035a | 20,977 | package net.es.maddash.notifications;
import net.es.jsnow.ServiceNowClient;
import net.es.jsnow.oauth.OAuth2Details;
import net.es.jsnow.parameters.TableQueryParams;
import net.es.maddash.NetLogger;
import net.es.maddash.checks.TemplateVariableMap;
import org.apache.log4j.Logger;
import org.ho.yaml.Yaml;
import javax... | 47.139326 | 145 | 0.632121 |
00302347ac015d7bc9c00d918ad730fd5fbb42f0 | 1,546 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.cam.ceb.como.chem.filemgmt.gaussian.parser.geometry.util;
import java.io.Serializable;
/**
*
* @author pb556
*/
public class ChemCompound implements Serializable {
protected Object comp... | 21.774648 | 70 | 0.578913 |
7d799cd8d9de6ac57303776938340c5c3b820555 | 1,510 | package com.leif.knowme.service;
import com.leif.knowme.base.BaseContext;
import com.leif.knowme.exception.AppException;
import com.leif.knowme.factory.ScheduleFactory;
import com.leif.knowme.dto.ScheduleDto;
import com.leif.knowme.dto.TodoDto;
import com.leif.knowme.repository.ScheduleRepository;
import com.leif.know... | 35.952381 | 108 | 0.781457 |
cf31b95851a3b3ec81873714225bd444a0085be1 | 822 | package org.tlh.springcloud.config.properties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import java.util.List;
import java.util.Map;
/**
* @author huping
* @desc
* @date 18/10/7
*/
@Dat... | 18.681818 | 75 | 0.714112 |
c3c31b93b70c10318153d243d10c59d66f071dc2 | 2,585 | package net.degrendel.gui;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import javax.swing.JButton;
... | 27.210526 | 92 | 0.697872 |
588400dba2deab3a2bac892fc555317210899e99 | 9,284 | /*
* Copyright 2018 Google LLC. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 41.262222 | 100 | 0.771435 |
cbb0279e86ac5da8e956d4240a77346a52d7c483 | 4,251 | package com.lotus.dao.gmapper;
import com.lotus.dao.pojo.Content;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.i... | 47.764045 | 109 | 0.673489 |
be9837dd8378b9c4d2bd0baaf225ba92a6080659 | 1,638 | package com.tz.core;
import java.util.Properties;
import org.apache.ibatis.executor.Executor;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.plugin.Interceptor;
import org.apache.ibatis.plugin.Intercepts;
import org.apache.ibatis.plugin.Invocation;
import org.apache.ibatis.plugin.Plugin;
i... | 39.95122 | 152 | 0.717338 |
be8b2fd3afc8fa0e04a024fab298125d1806832c | 1,542 | package br.com.mpssolutions.bookmarkapp.entities;
import java.util.Arrays;
import br.com.mpssolutions.bookmarkapp.constants.MovieGenre;
public class Movie extends Bookmark {
private int releaseYear;
private String[] cast;
private String[] directors;
private MovieGenre genre;
private double imdbRating;
public ... | 21.123288 | 106 | 0.716602 |
0a6278497edd64b920c1ed98343e0492e212e14b | 5,433 | package com.bulbinc.nick;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
impor... | 34.826923 | 90 | 0.65323 |
3873ac982ae4d7be8b414db75e8f0e4bb395919f | 245 | package llh.circular;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class B {
@Autowired
private A a;
public void doB(){
System.err.println("do B...");
}
}
| 16.333333 | 62 | 0.746939 |
ff6a2494b26556b8a3b1081ee82117990da6315e | 3,755 | /*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 48.141026 | 337 | 0.732889 |
c03642a65a232520e80b668953fb21105689ecfa | 1,322 | package com.github.miginmrs.jlogic.terms;
import com.github.miginmrs.jlogic.values.IntegerValue;
import com.github.miginmrs.jlogic.values.Value;
import java.util.Objects;
public class ConstInteger implements IntegerTerm {
private final IntegerValue a;
public ConstInteger(int a) {
this.a = new Integer... | 21.672131 | 63 | 0.612708 |
67b741d441f0deaacbadcb12d7a3b2b73b463c49 | 397 | package com.kosho.ssql.elasticsearch.sharding.condition;
import com.kosho.ssql.core.dsl.semantic.Ssql;
/**
* 分片条件解析器工厂
*
* @author Kosho
* @since 2021-08-27
*/
public class ShardingConditionParserFactory {
public static ShardingConditionParser<Ssql> getSsqlConditionParser(Ssql ssql) {
// where condit... | 23.352941 | 83 | 0.743073 |
cf2864dfbc448a0453770b87815c0ec19ecc3358 | 3,540 | /*
* This class extracts the result predicted by CRF++ pipeline
* in category of Location, Organization, Person, MISC
* refer to NE-ExtractorFormat as example output
* @author Hao Zhang
*/
package nlp.opennlp;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileR... | 26.818182 | 112 | 0.663277 |
0352f71d04aa199092d1d605e7a45f52495fa916 | 1,885 | /*
package io.github.vampirestudios.raa_dimension;
import com.mojang.datafixers.Dynamic;
import com.mojang.datafixers.types.DynamicOps;
import com.mojang.serialization.Codec;
import com.mojang.serialization.Lifecycle;
import com.mojang.serialization.codecs.RecordCodecBuilder;
import io.github.vampirestudios.raa.Random... | 31.949153 | 108 | 0.732095 |
b49618db5f657e4b1c3053fa648ac44d527adefe | 2,298 | package org.quickstart.spring.security.oauth2.redis.oauth2.controller;
import com.alibaba.fastjson.JSON;
import org.quickstart.spring.security.oauth2.redis.oauth2.service.RedisClientDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.spr... | 41.035714 | 92 | 0.81114 |
4107134d660b226740ba2fc670d4834138eded09 | 100,890 | /* 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 io.rong.recognizer;
public final class R {
public static final class array {
public static int rc_audio_file_suffix=0... | 55.282192 | 141 | 0.72916 |
b83589dc3462d2552c2cf97d4205dc08438602b4 | 12,743 | /******************************************************************************
* Compilation: javac TwoPhaseSimplex.java
* Execution: java TwoPhaseSimplex
* Dependencies: StdOut.java
*
* Given an m-by-n matrix A, an m-length vector b, and an
* n-length vector c, solve the LP { max cx : Ax <= b, x >= 0 ... | 29.913146 | 100 | 0.403908 |
3e39ebd5aca5c9d3e4bfe8108cacff5ace389b19 | 34,276 | /*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2019 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* p... | 47.14718 | 127 | 0.678492 |
4bc18d62e61cfa77fd32bb6914db3533a083dd6d | 465 | package com.github.quintans.ezSQL.toolkit.utils;
public class Holder<T>{
private T object;
public Holder() {
}
public Holder(T object) {
this.object = object;
}
public T get() {
return object;
}
public void set(T object) {
this.object = object;
}
public boolean isEmpty(){
... | 14.090909 | 49 | 0.602151 |
df7d15edc56bdc7868fa07326b821d7ac5f3f3fa | 889 | class Dog implements Runnable {
private Object obj;
private String name;
private int length;
public Dog(String name, int length) {
this.obj = null;
this.name = name;
this.length = length;
}
public Dog(String name, int length, Object obj) {
... | 27.78125 | 85 | 0.390326 |
ec15a84fc8c990b7f31d29edab955c6dc6ed21f7 | 4,633 | package com.example.weatherapplicationsosm;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import androidx.fragment.app.Fr... | 37.064 | 136 | 0.648608 |
0fec77a64bff5744e6ea16ac01e146d0e2941953 | 188 | public class PetError extends Exception {
public PetError() {
super("Pet error!");
}
public PetError(String message) {
super("Pet Error: " + message);
}
}
| 18.8 | 41 | 0.579787 |
4738d85dd76be7048e90a472a87760ac66ec8fa9 | 557 | package io.github.talelin.latticy.mapper;
import io.github.talelin.latticy.model.PositionDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.talelin.latticy.model.result.PositionResultDO;
import java.util.List;
/**
* <p>
* Mapper 接口
* </p>
*
* @author 陈灿杰
* @since 2021-04-02
*/
publi... | 20.62963 | 64 | 0.743268 |
bd508af0ebcc96b4b5e73f5661d3207fbb05d287 | 636 | package cn.hankli.stockapp.zuulserver.filter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.netflix.zuul.ZuulFilter;
@Component
public class PostFilter extends ZuulFilter {
private static Logger log = LoggerFactory.getLogger(PostF... | 16.307692 | 72 | 0.685535 |
ca1e0ff6f653d14f9d6dde1c9e6d9591accc35ac | 113 | package org.openrepose.commons.utils.transform;
public interface Transform<S, T> {
T transform(S source);
}
| 16.142857 | 47 | 0.743363 |
32f09a6662e470611aae2ba1073b7f3d8bb81b06 | 1,030 | package comparison;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
public class Find {
static List<Integer> list = Arrays.asList(1, 2, 3, 4, 5);
interface Function1<A,B> {
B apply(A a);
}
public static abstract class Option<A> {
public Boolean isDefined... | 25.75 | 71 | 0.581553 |
d6d925a19b76c3933b60733cd97e07cbb8d4cc79 | 1,069 | package cn.coderme.cblog.controller.bing;
import cn.coderme.cblog.base.PageBean;
import cn.coderme.cblog.entity.bing.BingImageArchive;
import cn.coderme.cblog.service.bing.BingImageArchiveService;
import cn.coderme.cblog.utils.BingUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springf... | 31.441176 | 76 | 0.781104 |
fcf91c24eafb56d7efffac37bdc7222cfe80feac | 3,175 | /*
* Copyright 2012-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 ap... | 40.189873 | 126 | 0.765354 |
79cd01fec69982e56556a7d56b10cfd056ee2be6 | 229 | package com.brctl.common.refactoring.chapter09.section07.after;
/**
* @author duanxiaoxing
* @created 2017/10/8
*/
public class House extends Site {
public House() {
super.setCustomer(Customer.create());
}
}
| 17.615385 | 63 | 0.676856 |
f8b8b9d631090faf89c0804f5e878ad1bffec7e4 | 624 | package com.designpattern.behavioral.memento;
public class Originator {
private String state;
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* backup to memento
* @return
*/
public Memento createMemento() {
return new M... | 17.333333 | 58 | 0.634615 |
e61022d290d2413d71a246a2b03ee0266265e56b | 5,334 | package juniebyte.javadungeons.blocks.entity;
import net.minecraft.block.BarrelBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.entity.BlockEntityType;
import net.minecraft.block.entity.LootableContainerBlockEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.pl... | 32.925926 | 143 | 0.706037 |
fd44fd3d67082760550f7f265d1d66bf3721de17 | 4,896 | package com.mrmq.poker.client.impl;
import java.util.Iterator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.mrmq.poker.client.AbstractClientHandler;
import com.mrmq.poker.client.manager.PokerClientManager;
import com.mrmq.poker.common.proto.AdminServiceProto.LoginResponse;
import com.mrmq.poke... | 34.723404 | 113 | 0.738562 |
d658af19e655e7f4dcf3fb263f87fbdf6fe08484 | 117 | package com.infamous.framework.http.core;
public abstract class RawHttpResponseBase implements RawHttpResponse {
}
| 19.5 | 70 | 0.837607 |
aaf15b38fec6da4ead372e85aca309f95b0048eb | 136 | package br.com.sinqia.resource.dto;
import lombok.Data;
@Data
public class ParticipanteLoginDTO {
String cpf;
String senha;
}
| 13.6 | 35 | 0.735294 |
8bff789d4f5975aedb873b6c5a0385fcc410c6e8 | 942 | package org.CarRental.config;
import org.CarRental.model.AppUser;
import org.CarRental.model.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.orm.hibernate... | 29.4375 | 88 | 0.759023 |
4542be37f32bf25cd969b06d7f3cdcd7d6eab8e0 | 501 | package pinacolada.powers.temporary;
import com.megacrit.cardcrawl.core.AbstractCreature;
import com.megacrit.cardcrawl.powers.ArtifactPower;
import pinacolada.powers.common.AbstractTemporaryPower;
public class TemporaryArtifactPower extends AbstractTemporaryPower
{
public static final String POWER_ID = CreateFul... | 29.470588 | 85 | 0.804391 |
a6f9c58ecf3425c5ba6c0331a3152bbf1d043c87 | 2,281 | /*
reference: https://www.jianshu.com/p/52b0805f1950
*/
package com.util;
import org.apache.ibatis.cache.Cache;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
public class RedisCacheUtils implements ... | 24.010526 | 82 | 0.616835 |
ce437c9cc0d484c8c640d92e6f9320a469917c69 | 1,270 | package net.lecousin.reactive.data.relational.test;
import org.junit.jupiter.engine.config.CachingJupiterConfiguration;
import org.junit.jupiter.engine.config.DefaultJupiterConfiguration;
import org.junit.jupiter.engine.config.JupiterConfiguration;
import org.junit.jupiter.engine.descriptor.JupiterEngineDescriptor;
im... | 35.277778 | 151 | 0.84252 |
f68d43520022c8e6b0cc4cdbb18e8fa37d838e8a | 2,966 | package com.cym.model;
import com.cym.sqlhelper.bean.BaseModel;
import com.cym.sqlhelper.config.InitValue;
import com.cym.sqlhelper.config.Table;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
*
* 代理目标location
*
*/
@Table
public class Location extends BaseModel {
/**
* 所属反向代理serverId
* @required
... | 15.528796 | 61 | 0.679366 |
5993c26b471dc7166e5a22bb73d8687344d4d6ea | 689 | package com.github.humbergroup.soccer.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
public class League... | 21.53125 | 84 | 0.754717 |
d3ea5ece65c61b0c47a2c0278af440ffd8403138 | 25,392 | package com.vinh.doctor_x.Fragment;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import andro... | 40.433121 | 172 | 0.614997 |
cedc80f0eb55db50c59dca03855e7199a508a331 | 1,011 | package com.taylor.reputation.framework.util;
import java.io.File;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* 文件操作工具类
*
* @author huangyong
* @since 1.0.0
*/
public final class FileUtil {
private static f... | 22.977273 | 81 | 0.608309 |
9912aff23f6dd228ed772f4d005ae59ef64e1f11 | 797 | /*
* @(#)BaseEntityPkDto.java 1.0 Aug 28, 2015
* Copyright 2015 by GNU Lesser General Public License (LGPL). All rights reserved.
*/
package org.nlh4j.core.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* The bound class of entity primary/unique key
*
* @param <T> the entity unique ke... | 23.441176 | 84 | 0.66123 |
f03637ce4eeb778a4e2d092e27bcdcc65fce4b24 | 592 | package org.erp.tarak.rawMaterial;
import java.util.List;
public interface RawMaterialService {
public void addRawMaterial(RawMaterial rawMaterial);
public List<RawMaterial> listRawMaterials();
public RawMaterial getRawMaterial(long rawMaterialId);
public void deleteRawMaterial(RawMaterial ra... | 24.666667 | 69 | 0.795608 |
ebd5e0107863243d58633421d3afcc882f1dadb2 | 1,879 | /* ========================================
* System Name : 化交线上平台
* SubSystem Name :自贸区前台服务
* File Name: GenerateContractImpl.java
* ----------------------------------------
* Create Date/Change History
* ----------------------------------------
* 2018年1月11日 池永 Create
*
*
* ---------------------------... | 28.907692 | 106 | 0.610431 |
02dc6de026325aeaf48b31b4e1e70dda3a238530 | 3,499 | package ch.wetwer.moviefleur;
import ch.wetwer.moviefleur.color.ColorMask;
import ch.wetwer.moviefleur.helper.ImageSplitter;
import junit.framework.TestCase;
import org.junit.Test;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
im... | 33.970874 | 94 | 0.684481 |
2243d1821b58d43f92068dea39b507d21b314f7f | 28,618 | package org.inaturalist.android;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.net.Uri;
impo... | 40.478076 | 181 | 0.600846 |
687e6249fea0d6300244bded3edcf2d4cc29f2af | 2,333 | package com.patient.preference;
import android.content.Context;
import com.patient.PatientApplication;
import com.patient.ui.patientUi.entity.baseTable.PartyBean;
/**
* <dl>
* <dt>LoginPreference.java</dt>
* <dd>Description:云电话登陆相关参数的保存:主要是保存 登陆的手机号,和登陆的密码,以及tokenid</dd>
* <dd>Copyright: Copyright (C) 2011</dd>
... | 24.819149 | 73 | 0.720532 |
37621602e324765fb7282dc774969211d710fa57 | 439 | package com.legocms.core.dto.cms;
import com.legocms.core.dto.Dto;
import com.legocms.core.dto.TypeInfo;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class CmsModelAttributeInfo extends Dto {
private static final long serialVersionUID = 1180776869572270932L;
private Stri... | 21.95 | 71 | 0.731207 |
9ee3cb800889ab6b3bc69e72cfeadc155685b1bd | 725 | package twenty_days.day18;
/**
* @author Hs
* @Date 2021/10/18 21:49
*/
/**
* 实现 pow(x, n) ,即计算 x 的 n 次幂函数(即,xn)。不得使用库函数,同时不需要考虑大数问题。
*
* 思路:使用快速幂,对于a的b次方,
* 如果b能被2整除,也就是b的二进制最后一位为0,那么可以转化为a的平方的b/2次方
* 如果b不能被2整除,也就是b的二进制最后一位为1,那么可以转化为a的平方的b/2次方再乘一个a
* 按照这个思路继续下去,直到b等于0, 每进行一次a=a*a,如果最后一位为1,res=res*a
*/
publ... | 21.969697 | 96 | 0.548966 |
c34c1a977f07166a60c7725a36f0a646167b2139 | 776 | package com.builtbroken.sheepmetal.config;
import com.builtbroken.sheepmetal.SheepMetal;
import com.builtbroken.sheepmetal.data.SheepTypes;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.client.event.ConfigChangedEvent;
import net.minecraftforge.fml.common.Mod;
/**
* Created by ... | 22.823529 | 62 | 0.658505 |
952ef279790651be590d34bd07f3a09f3ea2cee5 | 6,582 | package com.dldhk97.kumohcafeteriaviewer.data;
import android.content.ContentValues;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.dldhk97.kumohcafeteriaviewer.UIHandler;
impo... | 35.010638 | 124 | 0.596475 |
ef9e10086a89ccd0636e62dc44ebacbc9b6a318a | 4,018 | package org.checkerframework.dataflow.cfg.node;
import com.sun.source.tree.AssignmentTree;
import com.sun.source.tree.CompoundAssignmentTree;
import com.sun.source.tree.Tree;
import com.sun.source.tree.UnaryTree;
import com.sun.source.tree.VariableTree;
import org.checkerframework.checker.nullness.qual.Nullable;
impo... | 29.985075 | 98 | 0.642111 |
fd12819e3e367d5563c72838ef180a45301fbd19 | 1,370 | /*
* Copyright 2015 Mikhail Khodonov
*
* 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.136364 | 202 | 0.772993 |
de21da0cb0033948b9f198e4d5d2428fd3214147 | 6,987 | package roth.lib.java.util;
import java.math.BigInteger;
import java.util.Base64;
public class BaseUtil
{
public static final int BASE_16 = 16;
public static final int BASE_36 = 36;
public static final int BASE_62 = 62;
public static final int BASE_64 = 64;
protected static final char[] CHARACTERS =
{
// ba... | 21.366972 | 130 | 0.68055 |
90e01d41f2d904c4d757e2539fb409ff52db8a82 | 1,398 | /**
* Copyright (C) 2012 Ness Computing, 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 ... | 29.744681 | 80 | 0.693133 |
f484e2f953281db9f877228007f3b8e7333b137b | 1,348 | package com.hills.mcs_02.dataBeans;
public class Bean_RecyclerView_mine_minor4_wallet {
private int userId;
private String userName;
private int userIcon;
private int userCoins;
public Bean_RecyclerView_mine_minor4_wallet(){
super();
}
public Bean_RecyclerView_mine_m... | 22.098361 | 107 | 0.58457 |
6b66c7924d61f3cfeb6220a4c5fb1980baf6107c | 3,150 | package com.yyang.library.yedis;
import java.io.Closeable;
import java.io.IOException;
import java.net.Socket;
import javax.annotation.concurrent.NotThreadSafe;
import com.yyang.library.yedis.commands.ConnectionCommands;
import com.yyang.library.yedis.commands.DefaultBStringCommands;
import com.yyang.library.yedis.c... | 25 | 97 | 0.746349 |
eb27ebb63b148cd52626bbdd01093fc510fed665 | 2,399 | /* Copyright 1999 Vince Via vvia@viaoa.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 required by applicable law or agreed to i... | 31.986667 | 118 | 0.693622 |
76de40b07724f6273c5c1261ca640895cc2d2dae | 885 | /*
* Copyright ©2016 Kaltura, Inc.
*/
package org.sakaiproject.kaltura.models.error;
/**
* Error statement model
*
* @author Robert Long (rlong @ unicon.net)
*
*/
public class Error {
private String text;
private String action;
private String identifier;
public Error(String text, String actio... | 18.061224 | 65 | 0.610169 |
fc7fca83b9de1e4451b09e2fd4f50312db5b33a9 | 4,322 | /*
* arcus-java-client : Arcus Java client
* Copyright 2020 JaM2in 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
*
* Unles... | 28.813333 | 75 | 0.584683 |
144c9b47f70896a6a25873f8580ea342e95768ac | 2,360 | package com.mao.travelapp.bean;
import com.j256.ormlite.field.DatabaseField;
import com.mao.travelapp.sdk.BaseObject;
import java.io.Serializable;
import java.util.List;
/**
* Created by lyw on 2017/2/20.
*/
public class TravelNote extends BaseObject implements Serializable {
@DatabaseField(generatedId = tru... | 21.261261 | 68 | 0.623305 |
b88b6921f4f63015be022445f8ec47090de58a8b | 2,040 | /*
* Copyright (c) 2014-2015 University of Ulm
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. 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... | 30.447761 | 116 | 0.708333 |
f5d3bbfe367413a5d5b1fb1c50242b93ee412211 | 26,397 | 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... | 14.100962 | 813 | 0.801758 |
189c1e9695ce2c432a2a0a5e6ffa2fc4765c3b5b | 195 | package com.deadapps.testmp3;
import android.view.View;
/**
* Created by Valdio Veliu on 16-08-06.
*/
public interface onItemClickListener {
public void onClick(View view, int index);
}
| 16.25 | 46 | 0.723077 |
6ba918cca3b2ae95867b9bb79d378c94a0a30772 | 22,531 | /*
* Copyright (C) 2012-2015 cketti and contributors
* https://github.com/cketti/ckChangeLog/graphs/contributors
*
* Portions Copyright (C) 2012 Martin van Zuilekom (http://martin.cubeactive.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance ... | 35.877389 | 124 | 0.622431 |
e10896da19638f2be8c6a455365d4a84fb9d0e79 | 12,912 | /* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | 30.597156 | 94 | 0.74938 |
dc741c71e6cdac2178da4c23c7e33307bada5473 | 357 | package de.djuelg.neuronizer.domain.interactors.note;
import de.djuelg.neuronizer.domain.interactors.base.Interactor;
import de.djuelg.neuronizer.domain.model.preview.Note;
/**
* Created by djuelg on 10.07.17.
*/
public interface EditNoteBodyInteractor extends Interactor {
interface Callback {
void onN... | 25.5 | 63 | 0.764706 |
c7074138c673926cd0f9b6e5347e946db34cb845 | 1,778 | package com.aphysia.offer;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class Solution36 {
public ListNode FindFirstCommonNode(ListNode pHead1, ListNode pHead2) {
// 只要有一个为空,就不存在共同节点
if (pHead1 == null || pHead2 == null) {
return null;
}
... | 25.4 | 76 | 0.521372 |
2acbd0d28e3b67966303aa2f68e5cd3da441b907 | 1,942 | /*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | 35.309091 | 116 | 0.725026 |
2f3cacde36d433a9f1a32ff1e599bf8e12d5cf30 | 1,248 | package TP3_RMI.DegreDeux;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
public class DegreImpl extends UnicastRemoteObject implements DegreInterface {
public DegreImpl() throws RemoteException {
super();
}
@Override
public String degre2(int a, int b, int c) thr... | 39 | 139 | 0.548878 |
f69b5916f900a7f9b20efd3dc06abdbc3caf7829 | 9,901 | /*
* Copyright 2014 Tagbangers, 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 agree... | 33.449324 | 112 | 0.758004 |
8621b59b42dee64727f9ab4701f8615b481a8468 | 8,294 | package com.cvicse.controller;
import org.flowable.bpmn.model.BpmnModel;
import org.flowable.engine.*;
import org.flowable.engine.history.HistoricActivityInstance;
import org.flowable.engine.history.HistoricProcessInstance;
import org.flowable.engine.runtime.Execution;
import org.flowable.engine.runtime.ProcessInstanc... | 29.727599 | 126 | 0.631903 |
00d0fec867a6be914212d7206b90286511860c36 | 8,020 | package com.example.pltermproject;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widg... | 45.568182 | 219 | 0.552743 |
820b19fc66600d0c6f967ccdffa319d19b872793 | 1,850 | /*
*
* 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
* distri... | 22.560976 | 75 | 0.665405 |
2ac3e849d1a7b88e46949c16105779d61dc38285 | 943 | package xyz.brassgoggledcoders.steamagerevolution.multiblocks.crucible.blocks;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import xyz.brassgoggledcoders.steamagerevolution.machinesystem.multibl... | 36.269231 | 111 | 0.806999 |
ce9630e60891c7dbdb53bed5d698139b95e5dcbd | 859 | package com.nsabina.samples.oneclickshare.javafx;
public class Workflow {
private String workflowId;
private String nextStepUrl;
private String progressCheckUrl;
public Workflow(Object context) {
this.context = context;
}
private Object context;
public Object getContext() {
return context;
}
pub... | 17.895833 | 59 | 0.748545 |
62d031f0e0796f640382a13c84c3721ce7142a71 | 700 | package com.calatrava.bridge;
import java.io.IOException;
public class KernelBridge {
private AssetRepository assetRepository;
private RhinoService rhinoService;
public KernelBridge(AssetRepository assetRepository, RhinoService rhinoService) throws IOException {
this.assetRepository = assetRepository;
... | 26.923077 | 102 | 0.771429 |
8a239494a7c4c8f43057abdb475cd9b7b5910ffc | 1,933 | package org.rooms;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.util.Arrays;
import org.BackgroundSystem.Background;
import org.enemies.*;
import org.resources.*;
import org.walls.*;
public class EarthRoom1 extends Room {
public static final BufferedImage cave1 = ImagePack.getImage("backg... | 31.688525 | 108 | 0.681324 |
51057372d30c655079843b9a6f5553fc5ff01239 | 1,726 | package com.book.service;
import com.book.dao.BookDao;
import com.book.domain.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
@Service
public class BookService {
private BookDao book... | 25.382353 | 64 | 0.654693 |
81877e8d8d001d49185d02213265b7a30926cb7d | 2,223 | package org.andrejs.cassandra;
import com.datastax.driver.core.Session;
import com.datastax.driver.core.exceptions.ReadTimeoutException;
import com.datastax.driver.core.exceptions.WriteTimeoutException;
import org.junit.After;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;
import static o... | 28.5 | 87 | 0.698156 |
56d9345462dc103f3545c5af5a3022462635db5f | 659 | package com.flowerfat.initapp.ui.history;
import dagger.Module;
import dagger.Provides;
/**
* Created by clevo on 2015/6/10.
*/
@Module
public class TourDayActivityModule {
private final TourDayContract.View mTourDayView;
private final TourDayModel mTourDayModel;
public TourDayActivityModule(TourDayC... | 19.969697 | 95 | 0.716237 |
11757608a002650c882073d555ba4eb1662e870b | 492 | package com.kenshoo.pl.audit.commands;
import com.kenshoo.pl.entity.CreateEntityCommand;
import com.kenshoo.pl.entity.EntityCommandExt;
import com.kenshoo.pl.entity.internal.audit.entitytypes.ExclusiveAuditedType;
public class CreateExclusiveAuditedCommand extends CreateEntityCommand<ExclusiveAuditedType> implements ... | 37.846154 | 175 | 0.837398 |
707df173aaf04ae65c4ad87800471961f8de9e73 | 112 | package com.example.design.principle.dependenceinversion;
public interface ICourse {
void studyCourse();
}
| 18.666667 | 57 | 0.785714 |
96d780a43bc9cf32918ce7a2c03634c80f2d292f | 2,998 | /*******************************************************************************
* Copyright (c) 2012 Mrbrutal. All rights reserved.
*
* @name TrainCraft
* @author Mrbrutal
******************************************************************************/
package src.train.common.blocks;
import static net.minecraf... | 24.57377 | 115 | 0.677118 |
962ab31a4b32e1768a82171cb9bca1e656ccc30d | 707 | package nl.limakajo.numbers.animators;
import android.graphics.Point;
public class PositionAnimator extends Animator<Point>{
/**
* Constructs a PositionAnmiator
*
* @param animationTime the time it takes to animate
*/
public PositionAnimator(long animationTime) {
this.animatio... | 25.25 | 81 | 0.632249 |
0d1ce2f514e76fa5515bc705feb3099bdb0f0bda | 1,160 | package org.tlh.netty.server.handler;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.util.ReferenceCountUtil;
/**
* 丢弃的Server 只接收请求但不给出响应
*/
public class DiscardServerHandler extends ChannelInboundHandlerAdapter {... | 24.680851 | 94 | 0.614655 |
ce7ac4ce2682338c109f8b8288df5d17abbf55c7 | 500 | import java.util.*; //prime number
public class Exercise12 {
public static void main(String[]args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int count = 0;
for(int i = 2; i<n; i++){
if(n%i == 0){
count++;
}
}
... | 23.809524 | 53 | 0.446 |
527a18d36646a8da6366cffc73310ae79c685539 | 466 | package ltd.beihu.core.tools.cast;
import java.math.BigDecimal;
/**
* [转换为字符串]
*/
public class StringCaster implements Caster {
@Override
public Object cast(Object object) {
if (object == null)
return null;
if (object instanceof Number) {
//防止java用科学计数法
re... | 22.190476 | 74 | 0.590129 |
420c9a2e5d315b77a664fee79e30785c0b7a8968 | 1,555 | package de.deutschebahn.bahnhoflive.backend.wagenstand.models;
import android.content.Context;
import de.deutschebahn.bahnhoflive.R;
public interface WaggonFeatureLabelTemplate {
WaggonFeatureLabelTemplate DEFAULT = new WaggonFeatureLabelTemplate() {
@Override
public CharSequence composeLabel(Co... | 47.121212 | 122 | 0.628939 |
087d5df7a320fc1cde589bb1669820ee46562b7a | 653 | package com.obatis.email;
import com.obatis.email.exception.SendMailException;
import java.util.Map;
public interface SendMailService {
/**
* 发送 html 格式的邮件
* @param toEmail
* @param title
* @param content
* @throws SendMailException
*/
void send(String toEmail, String title, St... | 23.321429 | 126 | 0.673813 |
ce9f1a75151c396346a2026f18ee97ffe81d4a5c | 188 | package com.example.apispringboot;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface CandidateRepository extends MongoRepository<Candidate, String>{
}
| 26.857143 | 80 | 0.856383 |
c4f970be1f52a443f63b31bcc56640b7304c11b4 | 101 | package com.leetcode;
/**
* @author xing_seng
* @date 2020/9/21
*/
public class LeetCode_538 {
}
| 11.222222 | 27 | 0.663366 |
74ce14a6c483c5b835765a70a161e90565d9e007 | 451 | package com.axway.apim.prometheus.model;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class Message {
static Logger LOG = LoggerFactory.getLogger(Message.class);
private String t... | 17.346154 | 61 | 0.75388 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.