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 |
|---|---|---|---|---|---|
8c2cca6feda93238ead87b2229f0d8cd802a0b69 | 9,993 | /*
* 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 ... | 54.309783 | 162 | 0.759432 |
2bb230ca9aec230f7edf6d846132794172072522 | 1,337 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.engine.function.config;
import org.threeten.bp.Instant;
import com.opengamma.core.change.ChangeManager;
import com.opengamma.core.change.DummyChangeManager;
i... | 26.215686 | 92 | 0.706058 |
47f22154bf846cfa5feace7cc0895515244512ef | 1,250 | package io.thorntail.vertx.web;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import... | 24.509804 | 103 | 0.7184 |
1e21517f93547c636e10bf4e3578cf2dbb9b24df | 1,643 | /*
* Copyright 2016 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 29.872727 | 76 | 0.701765 |
a9abfb626ff5b7034736784608f79365fb893876 | 5,755 | package org.openregistry.core.web.resources;
import com.sun.jersey.api.NotFoundException;
import org.openregistry.core.domain.IdCard;
import org.openregistry.core.domain.Person;
import org.openregistry.core.service.PersonService;
import org.openregistry.core.service.identitycard.IdCardManagementService;
import org.ope... | 38.112583 | 147 | 0.669157 |
5b6cfd2d5a78b3d99681aaa84c77f4d2bbdc6af3 | 232 | package br.ufsc.labsec.signature.signer.exceptions;
import org.bouncycastle.cms.CMSException;
public class CmsSignerException extends CMSException {
public CmsSignerException(String message) {
super(message);
}
}
| 21.090909 | 54 | 0.762931 |
93cd3dc639299d4806c8fa7a1107356453d7125f | 3,046 | package org.realityforge.webtack.model;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public final class OperationMember
extends Element
implements Member, Comparable<OperationMember>
{
@Nonnull
private final Kind _kind;
@Nullable
priva... | 22.731343 | 84 | 0.608667 |
5d38d3508395e93b5397f98d5f83938d2a4beb64 | 134 | package ca.wbac.rxreader.domain.intent;
import ca.wbac.rxreader.driver.Intent;
public class ListSubscriptions implements Intent {
}
| 19.142857 | 50 | 0.813433 |
630e3c8c8d4723efb17a85bfd82905e6e4014b3b | 511 | package com.its.sia.repository;
import java.util.List;
import java.util.UUID;
import com.sia.modul.domain.Ptk;
public interface PtkRepository {
public List<Ptk> get();
public List<Ptk> get(String where);
public List<Ptk> get(String where, String order);
public List<Ptk> get(String where, String order, int limit,... | 26.894737 | 73 | 0.727984 |
da1f03151de06f2111a25fc869523ecf0e787cb9 | 26,885 | package com.gykj.zhumulangma.home.activity;
import android.graphics.Color;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;
import androidx.lifecycle.ViewModelProvider;
import androidx.recyclervie... | 39.82963 | 124 | 0.618375 |
8921ed12a739c0d12c85db244763f74b92de59ab | 71,620 | package net.minecraft.entity.player;
import com.google.common.collect.Lists;
import com.mojang.authlib.GameProfile;
import io.netty.buffer.Unpooled;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import javax.annotation.Nullable;
import org.apache.logging.log... | 41.25576 | 223 | 0.668291 |
c86a9bb3eb4391d8c479fb48f729bb270daf9998 | 1,210 | package ru.job4j.servlets;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.Part;
import java.io.*;
public class FileUploadServlet extends HttpServlet {
@Override
... | 34.571429 | 114 | 0.671074 |
d61eb96c8ba474a755464673816479f65769cad8 | 743 | package io.github.joaoh1.okzoomer.client;
import io.github.joaoh1.okzoomer.client.events.LoadConfigEvent;
import io.github.joaoh1.okzoomer.client.events.ManageExtraKeysEvent;
import io.github.joaoh1.okzoomer.client.events.ManageZoomEvent;
import io.github.joaoh1.okzoomer.client.packets.ZoomPackets;
import net.fabricmc... | 33.772727 | 68 | 0.816958 |
77a9d8667e9d73a43300d4193326abdc66556056 | 11,020 | /*
* (C) Copyright IBM Corp. 2020.
*
* 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 w... | 37.355932 | 118 | 0.720508 |
0eba17ed551ce7d695df14dc49404a3ea8c34d19 | 2,996 | package net.mcjukebox.plugin.bukkit.sockets.listeners;
import io.socket.emitter.Emitter;
import lombok.AllArgsConstructor;
import lombok.Getter;
import net.mcjukebox.plugin.bukkit.MCJukebox;
import net.mcjukebox.plugin.bukkit.sockets.SocketHandler;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukk... | 32.565217 | 105 | 0.769359 |
93e1fc2b4e01e05c2e3837797cc85598b6dddcc2 | 2,466 | /* */ package pro.gravit.repackage.io.netty.handler.codec.marshalling;
/* */
/* */ import org.jboss.marshalling.ByteInput;
/* */ import org.jboss.marshalling.Unmarshaller;
/* */ import pro.gravit.repackage.io.netty.buffer.ByteBuf;
/* */ import pro.gravit.repackage.io.netty.channel.ChannelHandlerConte... | 26.516129 | 170 | 0.495945 |
abd34ed3915765fd5f53de51e153014c1effc96a | 3,195 | package org.motechproject.wa.rch.utils;
import org.motechproject.wa.rch.exception.ExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
/**
* Created by beehyvsc on 8/6/17.... | 30.141509 | 117 | 0.550235 |
f87e46689d136ed6053527075929060351a6fa28 | 3,188 | /*******************************************************************************
* Copyright 2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | 28.981818 | 94 | 0.692284 |
85905a05f61b5536923c5bd688ff60d45189b055 | 3,461 | package net.silentchaos512.gear.compat.jei;
import com.google.common.collect.ImmutableList;
import mezz.jei.api.constants.VanillaTypes;
import mezz.jei.api.gui.IRecipeLayout;
import mezz.jei.api.gui.drawable.IDrawable;
import mezz.jei.api.gui.ingredient.IGuiItemStackGroup;
import mezz.jei.api.helpers.IGuiHelper;
impor... | 32.961905 | 117 | 0.706732 |
8951cf4b18d028f0d201ecb0dfe5f628e043f5af | 2,111 |
package ir.iais.sana.service;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import java.io.Serializable;
/**
* <p>Java class for dataPart complex type.
*
* <p>The following schema fragment specifies the expected conten... | 21.11 | 107 | 0.572241 |
7f4d7be67155ac7240828e31e35346d6b31a45db | 9,556 | package me.ticknick.weixzz.dao;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.google.gson.Gson;
import org.json.JSONObject;
import java.io.IOException;
import java.util.ArrayLis... | 34.623188 | 111 | 0.648598 |
66dececc2bc103bae5be06fb0e33c744d6f85602 | 12,599 | /*
* Copyright (C) 2015 egorovev
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distribut... | 51.215447 | 240 | 0.681959 |
8dda8629868ff3477c46da97a8e1e525d3e669bd | 14,477 | package com.safecharge.biz;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.Map;
import com.safecharge.exception.SafechargeException;
import com.safecharge.request.*;
import com.safecharge.response.*;
import org.apache.commons.logging.Log;
import org.apache.comm... | 53.420664 | 159 | 0.677765 |
09967bfa3ad4bd831612dd0b59e89d422a7326ee | 824 | package model.currency;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
/**
*
* This class contains the Market ID's for the Cryptsy Exchange
*
* @author Oussama Zgheb
* @version 1.0
*
*/
@DatabaseTable(tableName = "CryptsyMarketID")
public class CryptsyMarketID {
... | 18.311111 | 63 | 0.735437 |
4690b3901faff756c6ee719b439d003cbdfcfa4b | 2,008 |
package com.bit.gojektestproject.data.server.model;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
imp... | 23.904762 | 85 | 0.687251 |
a9841746ab317b5165a322fc09ff1f1769847a35 | 1,062 | package com.weique.overhaul.v2.mvp.ui.adapter;
import android.widget.TextView;
import androidx.annotation.NonNull;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.weique.overhaul.v2.R;
import com.weique.overhaul.v2.app.utils.StringUtil;
import j... | 30.342857 | 89 | 0.718456 |
ba12882c67408178f66eb07a950f7a8bace22701 | 192 | package hpdp;
import java.util.List;
import java.util.ArrayList;
public class Region extends Topology{
public Region(){
super();
this.region = true;
}
}
| 7.111111 | 37 | 0.598958 |
cf5e424bb39c599d6c3c96ed248ca4154a6a98b3 | 525 | package cn.stylefeng.guns.modular.resources.service.impl;
import cn.stylefeng.guns.modular.resources.service.IAssetService;
import cn.stylefeng.guns.modular.system.dao.AssetMapper;
import cn.stylefeng.guns.modular.system.model.Asset;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.... | 25 | 96 | 0.784762 |
5c2a0b7f4771cfb7f9e395176dc2a09b06fbfd2d | 12,336 | package com.koch.ambeth.persistence.sqlite;
/*-
* #%L
* jambeth-persistence-sqlite-test
* %%
* Copyright (C) 2017 Koch Softwaredevelopment
* %%
* 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 a... | 37.268882 | 98 | 0.708739 |
caf79c5ba132cf51cd2456894c3d000f7176a593 | 481 | package net.noobsters.core.paper;
import lombok.AllArgsConstructor;
import lombok.Data;
@AllArgsConstructor(staticName = "create")
@Data
public class PlayerMask {
String uuid;
long joinTime;
long timePlayed;
public void update(long timeVariable) {
timePlayed += (System.currentTimeMillis() - ... | 20.041667 | 68 | 0.686071 |
3712ddf7fef1da0cc263655cb7952ae53bc996b4 | 895 | package dp;
/**
* @author: Allu
* 2021-06-24 20:24
* @Sources: https://leetcode-cn.com/problems/longest-increasing-subsequence/
* @description: [300]最长递增子序列
* dp[i]代表是以nums[i]结尾的最长递增子序列的长度。
* 如果nums[i] > nums[j],其中nums[j]是dp[j]中最大的值的结尾.
* 动态方程: dp[i] = Max(dp[j]) + 1, 其中 0 < j < i 并且 nums[j] < nums[i].
* 时间复杂度... | 24.861111 | 77 | 0.527374 |
82f516b191b73f284cc909c90aa5e389d6ec01e0 | 1,032 | package net.ninjacat.omg.reflect;
import net.ninjacat.omg.conditions.Condition;
import net.ninjacat.omg.conditions.Conditions;
import net.ninjacat.omg.patterns.CompilingStrategy;
import net.ninjacat.omg.patterns.Pattern;
import net.ninjacat.omg.patterns.PatternCompiler;
import net.ninjacat.omg.patterns.Patterns;
impor... | 29.485714 | 142 | 0.743217 |
8821d8c4abe00d84bfd257d65361fec033ceb680 | 612 | package Utility;
public class AvenuesParams {
public static final String COMMAND = "command";
public static final String ACCESS_CODE = "access_code";
public static final String MERCHANT_ID = "merchant_id";
public static final String ORDER_ID = "order_id";
public static final String AMOUNT = "amoun... | 38.25 | 61 | 0.735294 |
f207e65ce67d943f4cd1dd586b68b35677f84034 | 4,324 | /*
* Copyright 2015-present 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 required b... | 35.735537 | 102 | 0.798797 |
276e761bb4e5f0177b4bd15e7a11d2e2b1b27333 | 4,239 | package nc.unc.cs.services.communal.services.integrations.property_tax;
import static org.mockito.BDDMockito.given;
import nc.unc.cs.services.communal.controllers.payloads.CreationPropertyTaxValue;
import nc.unc.cs.services.communal.entities.PropertyTaxValue;
import nc.unc.cs.services.communal.repositories.PropertyTa... | 38.889908 | 97 | 0.730361 |
d8284db6d418c0e04acacb09904616a034d381e1 | 1,532 | package Models;
import java.io.Serializable;
import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@JsonI... | 16.126316 | 59 | 0.68342 |
9bca59ce1af16911476e20ce05723f1091d479f9 | 8,910 | package com.spon.flow.actions;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import com.spon.ems.abs.actions.EditAction;
import com.spon.flow.for... | 22.963918 | 83 | 0.689226 |
b9948600a0a5aec1f3424fe1da3cc701cf12cd22 | 888 | /*
* Copyright 2021 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 ... | 38.608696 | 99 | 0.748874 |
323b93a82430cd9cfbbbb457df67b8eb87c11506 | 1,713 | /*
* Copyright (c) 2020 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.repo.cache.global;
import org.jetbrains.annotations.NotNull;
import com.evolveum.midpoint.prism.PrismO... | 28.55 | 148 | 0.689434 |
47d4c90e6a21de3ca785837490a848636544815c | 3,845 | /*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | 19.819588 | 78 | 0.509493 |
e10272ea835482b1ac56c4d92df0d42ee734c393 | 12,832 | package org.observertc.observer.evaluators;
import io.micronaut.context.BeanProvider;
import io.micronaut.context.annotation.Prototype;
import io.reactivex.rxjava3.core.Observable;
import io.reactivex.rxjava3.subjects.PublishSubject;
import io.reactivex.rxjava3.subjects.Subject;
import jakarta.inject.Inject;
import or... | 44.867133 | 141 | 0.642768 |
8f17e0d17ec0842f4ace9e6b63714d745999f3ab | 1,723 | package com.zyimm.common.exception.handler;
import com.zyimm.common.exception.ExamException;
import com.zyimm.common.response.Response;
import org.springframework.validation.ObjectError;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bind.annotation.ExceptionHandler... | 29.706897 | 95 | 0.686013 |
1f05ec1a66bde5d7e29e74fe64b559f2d944aec0 | 1,041 | package com.oskarsmc.minimessages;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.minimessage.MiniMessage;
public class ConfigManager {
private static final MiniMessages PLUGIN = MiniMessages.getPlugin(MiniMessages.class);
private static final MiniMessage MINI_MESSAGE = MiniMessage... | 35.896552 | 99 | 0.747358 |
3c6263456c7399d3a77e02d1b55e453b63a9d3a1 | 462 | package application;
public class preandpost {
public static void main(String[] args) {
//증감연사자 위치에 따라 먼저 증감하고 할당(=), 먼저 할당(=)하고 증가
int cats=5;
System.out.println(cats++);
System.out.println(cats);
int dogs = 3;
System.out.println(++dogs);
int chicken = 10;
int animals = cats = chicken++;
S... | 17.769231 | 45 | 0.632035 |
bc2590667736c258c25c4ad6f465e6aedebd936d | 2,467 | package org.evergreen.verse.handler;
import org.evergreen.client.IBiblesNetProxy;
import org.evergreen.verse.Passages;
import org.evergreen.verse.VerseFindRequest;
import java.util.List;
import java.util.Optional;
public class EvergreenQTPassageHandler {
final EvergreenQTTableHandler evergreenQTTableHandler;
... | 38.546875 | 107 | 0.679368 |
1deb86beaa5c2402741b1c427085fa30e2b5ed1b | 3,728 | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 socraticphoenix@gmail.com
* Copyright (c) 2017 contributors
*
* 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,
* in... | 37.28 | 128 | 0.69662 |
c0890208c926f612c709872c0a682c9060167f42 | 629 | package ftb.utils.net;
import cpw.mods.fml.common.network.simpleimpl.*;
import cpw.mods.fml.relauncher.*;
import ftb.utils.api.EventLMPlayerClient;
import ftb.utils.world.*;
import latmod.lib.ByteCount;
public class MessageLMPlayerDied extends MessageFTBU
{
public MessageLMPlayerDied() { super(ByteCount.BYTE); }
... | 24.192308 | 64 | 0.755167 |
141f541b18936cfe0494b864cd6bf97eb932cce9 | 514 | /* Gemma: An RPG
Copyright (C) 2013-2014 Eric Ahnell
Any questions should be directed to the author via email at: support@puttysoftware.com
*/
package com.puttysoftware.gemma.support.creatures.monsters;
public class MonsterFactory {
private MonsterFactory() {
// Do nothing
}
public static Bas... | 24.47619 | 87 | 0.710117 |
bb84d43667be6924a5f32b5b56caafb965da4f33 | 409 | package com.damon.appwheel.api;
import com.damon.appwheel.ui.home.editbetter.EditBetter;
import com.damon.appwheel.utils.HttpsResult;
import java.util.List;
import io.reactivex.Flowable;
import retrofit2.http.GET;
public interface EditBetterApi {
@GET("indexlistsegbyid?count=20&platform=lapinapp_android&channel=y... | 29.214286 | 93 | 0.814181 |
5e079261e92206c83b0f0351cd013027e5fb5112 | 1,704 | /*
* Copyright 2009-2016 iCoreTech, 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 agre... | 23.342466 | 75 | 0.657277 |
80d2b04a8b235f5de8110e9221febd31b73a6e27 | 869 | package com.wing.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @author memory125
*/
@Controller
public class RouterController {
@RequestMapping({"/","/index"})
p... | 22.282051 | 62 | 0.650173 |
071afe1a39c6aea538bda912b62051c5cb7cea2d | 21,418 | /*
* Bytecode Analysis Framework
* Copyright (C) 2003,2004 University of Maryland
*
* This library 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 2.1 of the License, or (at your... | 38.871143 | 131 | 0.595107 |
ab585f6811f1952d4dc708e2b2ee323ac56bd35d | 13,075 | package me.danielluker.csv;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.ut... | 28.673246 | 108 | 0.674034 |
82e7876d137a26a9a6ab642a971f89055c0ce406 | 2,448 | package com.stylefeng.guns.member;
import static org.junit.Assert.assertEquals;
import java.math.BigDecimal;
import javax.annotation.Resource;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.md.member.dao.BalanceMapper;
import com.md.member.model.Balance;
import com.md.member.ser... | 22.054054 | 58 | 0.738154 |
5d406c733b13dd4a47bac436d4e0e5d367c60217 | 8,737 | package io.jans.scim2.client.factory;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;
import java.nio.file.Path;
import io.jans.as.model.util.SecurityProviderUtility;
import io.jans.scim2.client.ScimClient;
import io.jans.scim2.client.rest.ClientSideService;
/**
* A factory class to obta... | 56.367742 | 182 | 0.720957 |
d72399fd08b7be7824f078951864e11b720a3a90 | 6,109 | /*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl1.php
*
* Unless required by... | 38.421384 | 331 | 0.683254 |
10785f2a39df16f48f063db061bff1bdf119875a | 763 | package org.usfirst.frc.team5940.core.wpilib;
public enum MotorType {
CIM(2.41, 131, 5330, 2.7), MiniCIM(1.4, 89, 5840, 3), PRO(0.71, 134, 18730, 0.7);
private final double stallTorque;
private final double stallCurrent;
private final double freeSpeed;
private final double freeCurrent;
MotorType(double stallTo... | 23.121212 | 91 | 0.743119 |
11b1246ec075fb85716844b79b46e2a018991192 | 377 | package tech.dongfei.gulimall.product.dao;
import tech.dongfei.gulimall.product.entity.SkuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* sku信息
*
* @author dongfei
* @email 652117746@qq.com
* @date 2021-05-16 00:55:13
*/
@Mapper
public inte... | 20.944444 | 63 | 0.766578 |
aa237375c017fc8ef9a4215dd0fdf0945c184d55 | 2,881 | /*
* Copyright 2010 Fae Hutter
*
* 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... | 33.894118 | 124 | 0.702534 |
870d7dea55ae3703675627f8c9e4d052666317b7 | 320 | package ui.entiity;
import android.support.v4.app.Fragment;
/**
* Created by xuchichi on 2017/9/29.
*/
public class FragmentInfo {
public String title;
public Fragment fragment;
public FragmentInfo(String title, Fragment fragment) {
this.title = title;
this.fragment = fragment;
}
}
| 18.823529 | 58 | 0.675 |
0e893e49da9875fc097ea038880c5850a89400fe | 345 | package demo1;
import java.util.Scanner;
public class work5 {
//6、控制台输入金额,转换成字符串输出
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("请输入银行卡金额:");
long money=sc.nextLong();
String format=String.format("¥%,d",money);
System.... | 18.157895 | 50 | 0.623188 |
18a7f1112cc22318317820cec6455a6229a6244b | 2,146 | package arjuna.client.guiauto.component;
import arjuna.client.core.action.GuiAutoActionType;
import arjuna.client.core.config.ArjunaComponent;
import arjuna.client.core.connector.BaseSetuObject;
import arjuna.client.core.connector.SetuArg;
import arjuna.client.core.connector.SetuConnectUtils;
import arjuna.client.core... | 34.063492 | 97 | 0.794035 |
7c0b0b64024304185641c36f010aeb7456447866 | 20,089 | package com.guozhengood.user.util;
import com.guozhengood.user.domain.util.TreeNode;
import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.NumberUtils;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.slf4j.Logger;
import org.slf4j.LoggerF... | 33.150165 | 120 | 0.510528 |
f4dc932373ac810367779a6de044edf842306f61 | 525 | package com.giskard.qrcode.bean;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
@Getter
@AllArgsConstructor
@Builder
public class QrCodeBuilderParams {
private String qrCodeText;
private int qrCodeMargin;
private int qrCodeSize;
private String qrCodeRgbColorBackgrou... | 16.935484 | 44 | 0.780952 |
635b8f4125ac49c0d475a52f25a9675ca76b53f8 | 2,595 | package pdm.fia.ues.sv.serviciosocial;
import android.app.Activity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import android.widget.RadioGroup;
public class EncargSInsertarActivity extends Activity {
ControlBD he... | 34.144737 | 151 | 0.633911 |
dfb598dd3107aac17298430ed275dc239aaef8d6 | 2,492 | // Copyright (c) 2016 Per Malmberg
// Licensed under MIT, see LICENSE file.
package jowshell.items;
import jowshell.actors.IItemAcceptor;
import jowshell.logging.ILogger;
import jowshell.system.ICommandExecution;
import jowshell.system.IExecute;
import java.nio.file.Paths;
public class OwDirectory extends OwItem {
... | 32.363636 | 118 | 0.663724 |
1defdc8c120b41789f074e149a640bc6d05f4c59 | 931 | package io.compgen.cgseq.support;
import io.compgen.common.Pair;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class MapCount<T extends Comparable<T>> {
private Map<T, Integer> counter = new HashMa... | 22.166667 | 65 | 0.66058 |
7bc09d08123fa595dca5f9c75e69d1b853662df1 | 1,067 | package org.firstinspires.ftc.teamcode.autonomous.fragments;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import org.firstinspires.ftc.teamcode.autonomous.AutonomousBase;
@Autonomous(name = "WobbleGoal", group = "Autonomous")
//@Disabled
public class WobbleGoalPlacement extends AutonomousBase {
st... | 23.195652 | 64 | 0.609185 |
90ce1e8f6e7c5e3fdf41bc899b9d7051504767a0 | 199 | public abstract class Pet {
private String name;
public Pet(String petName) {
this.name = petName;
}
public String getName() {
return name;
}
public abstract String speak();
}
| 14.214286 | 33 | 0.653266 |
302b41e356f77178ac13fc1fc921fa55eb06e91d | 132 | package com.example.hexbow.callback;
public interface CallbackInterface {
void onDismiss();
void onDismiss(int... args);
}
| 18.857143 | 36 | 0.727273 |
f5041e75983f89022995b96723ff2c903416c019 | 3,428 | package com.arzio.raidablebases.data;
import java.util.List;
import org.bukkit.block.Block;
import com.arzio.arziolib.api.BaseProvider;
import com.arzio.arziolib.api.wrapper.Base;
import com.arzio.raidablebases.event.BaseBlockDamageEvent;
/**
* Holds all the damage data a {@link Base} can carry. Every damage infor... | 26.78125 | 81 | 0.690198 |
e69c47153510e76ac38dd46a949048029b7299ca | 1,054 | package kr.guardians.falldetection.CustomWidget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;
import kr.guardians.falldetection.R;
public class CustomBedView extends RelativeLayout {
public Cus... | 27.736842 | 98 | 0.698292 |
0f6fbdde6fcdcc726c6f1b709e2783191f6bbe9a | 1,110 | /**
*
*/
package br.com.swconsultoria.efd.contribuicoes.bo.blocoD;
import br.com.swconsultoria.efd.contribuicoes.registros.blocoD.RegistroD105;
import br.com.swconsultoria.efd.contribuicoes.util.Util;
/**
* @author Yuri Lemes
*
*/
public class GerarRegistroD105 {
public static StringBuilder gerar(RegistroD105... | 35.806452 | 89 | 0.74955 |
b3b148a405c3704bf67a2520e59ccfe1395d1a84 | 897 | package fr.utbm.vi51.event;
import io.sarl.lang.annotation.SarlSpecification;
import io.sarl.lang.core.Address;
import io.sarl.lang.core.Event;
import javax.annotation.Generated;
/**
* @author Tiboty
*/
@SarlSpecification("0.3")
@SuppressWarnings("all")
public class ResetAgentEnvironment extends Event {... | 26.382353 | 71 | 0.701226 |
6d6a355ef640fbc5bc1cbb1ba9e9cd7c336545d5 | 6,818 | package com.upcwangying.apps.rn.demo.umeng;
import android.app.Activity;
import java.util.List;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.widget.Toast;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bri... | 35.510417 | 122 | 0.598416 |
a64a2a4b1f47f4af27e08b56415a9ed30cb1c099 | 317 | package com.fanxb.bookmark.common.entity.redis;
/**
* redis消费者类
* Created By Fxb
* Date: 2020/3/28
* Time: 22:41
*/
public interface RedisConsumer {
/**
* 功能描述: 消费方法,消费者类必须继承此方法
*
* @param message 数据载体
* @author 123
* @date 2020/3/28 22:41
*/
void deal(String message);
}
| 15.85 | 47 | 0.59306 |
ccc459c983e6b4936ea84d6e495d78debd7546fc | 587 | package store.boundry;
import org.apache.log4j.Logger;
import javax.batch.operations.JobOperator;
import javax.batch.runtime.BatchRuntime;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import java.util.Properties;
@Path("/batch")
public class BatchResource {
private final static Logger LOGGER = Logger.getLo... | 24.458333 | 79 | 0.725724 |
b38e223cf7f2731d6620439e55ea51ed0348c9b1 | 5,476 | package com.example.hxk.webviewx5;
import com.example.hxk.webviewx5.utils.JavaScriptInterface;
import com.example.hxk.webviewx5.utils.WebViewJavaScriptFunction;
import com.example.hxk.webviewx5.utils.X5WebView;
import com.tencent.smtt.sdk.QbSdk;
import android.app.Activity;
import android.os.Bundle;
import android.os... | 23.502146 | 91 | 0.691563 |
7b5b7de53ff637627015fa92c870cb83b6bce1a7 | 2,589 | package projekt.Class;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
/**
*
* @author Andrzej Kierepka
*/
public c... | 29.758621 | 111 | 0.573194 |
5b4391d6616bc83073ce24fd8721b27e353362b2 | 1,999 | package com.test.micro.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.data.redis.connect... | 45.431818 | 91 | 0.787894 |
87eeed343cef0639c1744c6306c4a26b61854ca2 | 2,776 | package de.fau.amos.virtualledger.android.views.savings;
import android.app.Activity;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextVi... | 40.823529 | 125 | 0.701729 |
8186af542e496e31aa1f6ce26cc4230164b3f586 | 1,364 | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class P4_Students {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
List<Student> students = new ArrayList<>();
while (true) {
String[] line = scanner.nextLine... | 29.021277 | 111 | 0.546188 |
d021c2d5270a997734a2a2213374bf38ffb38509 | 1,547 | package test.java;
import static com.xarql.smp.GenericParser.parse;
import static com.xarql.smp.SimpleEncoder.encode;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.Map;
import org.junit.jupiter.api.Test;
import com.xarql.util.Path;
public class ParseTest {
public static final int EXP... | 36.833333 | 85 | 0.743374 |
bc6d5e1beb4fdc0d796ff28142340c7b7f991c65 | 456 | package bg.car_wash.controller;
import bg.car_wash.configurations.site.PageTitle;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class HomeController {
@GetMapping("/")
public String getHomePage() ... | 18.24 | 58 | 0.763158 |
4c22efa88d343282bcb202e3038ba3ffef1e941b | 5,317 | package gui.assets;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Image;
import java.awt.Insets;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseE... | 29.214286 | 106 | 0.739139 |
a3224e4ec572d204960b627cb5fd59cae8bdeb41 | 1,190 | package com.wang.concurrent.demo1;
/**
* Synchronized JDK内置锁
* 修饰方法、修饰同步代码块;同一时刻,只有一个线程可以执行某个方法或代码块。
*/
public class SynchronizedTest implements Runnable {
public static Integer count = 0;
// 修饰代码块
/*@Override
public void run() {
synchronized (this) {
for (int i = 0... | 25.869565 | 92 | 0.533613 |
9d817c1c5e2a8980a4d59487ac9ab151f702a5ae | 1,450 | /*
* Copyright (C) 2014 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 agre... | 39.189189 | 93 | 0.788966 |
3ba1c77535853e0d32cc75f61741db7175938461 | 9,704 | /*
* This file is a part of MI
*
* The MIT License (MIT)
*
* Copyright (c) 2021 Roj234
*
* 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 witho... | 34.289753 | 185 | 0.565952 |
a559e6c9f633f0967563064fd4365d2369087a7b | 2,775 | /*
* 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 ... | 28.608247 | 78 | 0.667748 |
5f1ef56b7f907fe1674ff73b5ce837640ca8a39c | 3,149 | package com.ritesh.innerhourtodo.alarmServices;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android... | 40.371795 | 144 | 0.729755 |
88f458a9b37dc8c0466531d8662ee212a85497aa | 42,504 | package net.minecraft.client.gui;
import net.minecraft.client.*;
import net.minecraft.client.renderer.entity.*;
import net.minecraft.init.*;
import net.minecraft.item.*;
import net.minecraft.potion.*;
import com.initial.events.*;
import net.minecraft.entity.player.*;
import optifine.*;
import net.minecraft.client.reso... | 47.121951 | 305 | 0.572628 |
ed15bd41dbcb4dd18a99098b60238c6c4bf1e6a8 | 28,503 | /*
* MIT License
*
* Copyright (c) 2018 Charalampos Savvidis
*
* 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 without limitation the rights
* to use, c... | 32.061867 | 155 | 0.763744 |
303e78d8672fdf88383ea84f6e5145a778f32b55 | 7,385 | package com.ejoy.tool.ui.douyin.data.adapter;
import android.content.Context;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.LinearInterpolator;
import android.view.animation.RotateAnimation;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import... | 36.37931 | 98 | 0.639675 |
68e41c8b9f7f93335802a7c7285d2dba4a836b38 | 2,646 | package org.openforis.collect.designer.form;
import java.util.List;
import org.openforis.idm.metamodel.CodeList;
import org.openforis.idm.metamodel.CodeListLabel;
import org.openforis.idm.metamodel.CodeListLevel;
/**
*
* @author S. Ricci
*
*/
public class CodeListFormObject extends VersionableItemF... | 23.415929 | 78 | 0.718821 |
1883b8acc5dfcba8be90583df6d39e7019fde443 | 22,591 | package components.misc;
import structures.Log;
import structures.PaintField;
import structures.Student;
import structures.Zone;
import javax.swing.*;
import java.awt.*;
import java.io.File;
import java.sql.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
/**
* Creat... | 38.096121 | 269 | 0.532513 |
86aa1fbb63f3f4784dc4606b1df5813dd996d561 | 893 | package com.company.service;
import com.company.dao.pojo.User;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Service
public class UserService {
public String getName(){
return "HAOHAO";
}
pub... | 26.264706 | 75 | 0.639418 |
d03037a1045e3c766733d3b6bb84836743e8b16e | 546 | package com.harvester.manage.service;
import com.harvester.manage.pojo.CtdInfo;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
import java.util.List;
/**
* Created by cui on 2017/11/15.
*/
public interface CtdInfoService {
/**
* 根据上传文件扩展名称处理
* 1.nc:拷贝到目标文件夹下
... | 21.84 | 102 | 0.716117 |
26fc9edd295c7784c08027f73dab8ba557980b2c | 151 | package io.eventuate.examples.tram.sagas.ordersandcustomers.product.api.replies;
public class ProductNotAvailable implements ReserveProductResult {
}
| 30.2 | 80 | 0.860927 |
0744bc4a3ec0fdc9b2cc430158ebfe031de8d7e3 | 1,590 | package com.github.sylphlike.gateway.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
i... | 33.125 | 119 | 0.766667 |
0016fa5ebbd725f037a28e8460e40200aae663bb | 1,324 | /*
* Copyright 2019-2020 Douglas Kaip
*
* 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... | 32.292683 | 96 | 0.767372 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.