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 |
|---|---|---|---|---|---|
700691d5500dc9eb5985ebce86485e8f87e739cf | 691 | package cl.uchile.dcc.scrabble.AST.operands.logical;
import cl.uchile.dcc.scrabble.types.ITypes;
import cl.uchile.dcc.scrabble.types.SBoolean;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ASTandTest {
private boolean T = true;... | 24.678571 | 57 | 0.672938 |
3b0bc9fdf5cce71b1a63fa2685ea4091272725a5 | 2,288 | package m00nl1ght.gwent.game.common;
import java.util.ArrayList;
import m00nl1ght.gwent.card.Card;
import m00nl1ght.gwent.game.StateGame;
import m00nl1ght.gwent.game.common.CardRow.CardData;
import m00nl1ght.voidUI.sequence.SequenceHandler;
import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;
public c... | 27.902439 | 126 | 0.687063 |
8f444bf290d4f91ad6ac5bd7bc9333a3e5a9ca35 | 3,289 | package com.github.zflxw.reportreborn.commands;
import com.github.zflxw.reportreborn.utils.commands.Command;
import com.github.zflxw.reportreborn.utils.commands.CommandType;
import com.github.zflxw.reportreborn.utils.commands.LoadCommand;
import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brig... | 55.745763 | 185 | 0.702645 |
2d14ad97c773647aee50aee30f1d2ab4e0cc67f9 | 2,587 | /**************************************************************************
* copyright file="MoveCopyItemRequest.java" company="Microsoft"
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* Defines the MoveCopyItemRequest.java.
*******************************************************************... | 25.613861 | 76 | 0.638964 |
7c36747e49cbd998a6633eb08437a5d0ddf15152 | 1,777 | package com.denizenscript.denizen.objects.properties.inventory;
import com.denizenscript.denizen.objects.InventoryTag;
import com.denizenscript.denizencore.objects.Mechanism;
import com.denizenscript.denizencore.objects.ObjectTag;
import com.denizenscript.denizencore.objects.properties.Property;
public class I... | 29.616667 | 78 | 0.633652 |
3379d33936266a6ded90d863319a766aa21df15b | 359 | package org.cat.eye.common.context.provider;
import org.cat.eye.common.context.provider.exception.CloseAppContextException;
import org.springframework.context.ApplicationContext;
public interface SpringContextProvider {
ApplicationContext getApplicationContext();
ClassLoader getClassLoader();
void clos... | 25.642857 | 78 | 0.818942 |
e93bc5f108d443e7228de87afef307d3299a9757 | 871 | package methods;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
class UtilTest {
@Test
void shouldAssignRatingsToVariants() {
double[] ratings = {0.543, 0.435, 0.12... | 28.096774 | 87 | 0.628014 |
36149eae2610481e1579aec5c23c7b886a85b5f5 | 2,400 | package com.yapp.project.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.ParameterBuilder;
import springfox.documentation.builders.PathSelectors;
impo... | 35.820896 | 67 | 0.666667 |
ac8bd2d0b4bab00706f17660647e6505c6380cc2 | 2,590 | /*
* #%L
* de-metas-camel-grssignum
* %%
* Copyright (C) 2021 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* License, or (at your option) any ... | 31.204819 | 108 | 0.783784 |
2b2efd242083bba7d8128004ccce1679df86c4b2 | 3,738 | /*****************************************************************************
* Copyright 2012 bitsofinfo.g [at] gmail [dot] 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:... | 24.754967 | 78 | 0.640449 |
a21884ede6b079b3b1d08113defed2800a6d3b8d | 301 | package com.example.greatbook.local.model;
import com.example.greatbook.greendao.entity.ContentCommit;
import com.example.greatbook.greendao.entity.Essay;
/**
* Created by MDove on 2017/9/20.
*/
public class EssayListItem {
public Essay mEssay;
public ContentCommit mLastContentCommit;
}
| 21.5 | 59 | 0.774086 |
422c3b1c66d7382110e677898f293d1d12a1b414 | 4,154 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 71.62069 | 165 | 0.829803 |
0357312562ecef25a02ad9aadfe805d56d04841b | 9,262 | package eu.livotov.labs.android.camview.camera;
import android.os.Looper;
import android.os.Message;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Executor;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecut... | 26.538682 | 161 | 0.478082 |
a6c7ed85610c03d6a8ff77f18511ebc85b1a59f6 | 320 | package com.stylefeng.guns.api.film.vo;
import lombok.Data;
import java.io.Serializable;
/**
* @ClassName FilmDescVO
* @Description TODO
* @Author yjy
* @Date 2020/7/19 12:18
* @Vertion 1.0
**/
@Data
public class FilmDescVO implements Serializable {
private String biography;
private String filmId;
}
| 15.238095 | 49 | 0.709375 |
dd947e98449bb408af5af523d301d3be6d9eb411 | 2,763 | package com.nvlad.yii2support.views.references;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.io.FileUtilRt;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiManager;
import com.intellij.psi.search.GlobalSearchScope;
import com.intellij.uti... | 38.915493 | 128 | 0.646037 |
537f2b252f5f52a708f8b51af64605a8d69b5a83 | 2,826 | package ijaux.quad;
public class Wynn {
/**
* The Wynn algorithm
* Wynn, P. On a Device for Computing the e m (S n ) Transformation,
* Mathematical Tables and Other Aids to Computation 10, no. 54 (April 1956) 91. DOI:10.2307/2002183.
* @param arr
* @return
*/
public static double[][] ... | 25.690909 | 114 | 0.508846 |
59d6051e8d3a6e8657193fd7dc166542710a5025 | 1,043 | package mchorse.blockbuster.client.gui.dashboard.panels.recording_editor.actions;
import mchorse.blockbuster.client.gui.framework.GuiTooltip;
import mchorse.blockbuster.client.gui.framework.elements.GuiTextElement;
import mchorse.blockbuster.recording.actions.CommandAction;
import net.minecraft.client.Minecraft;
publ... | 29.8 | 89 | 0.715244 |
b75e61e7ebc30431c3ed7f5bf95ddcc98ab367ab | 1,089 | package com.sms.server.util;
import java.util.zip.Deflater;
public class DetectionUtil {
private static final int JAVA_VERSION = javaVersion0();
private static final boolean IS_WINDOWS;
static {
String os = System.getProperty("os.name").toLowerCase();
// windows
IS_WINDOWS = os.cont... | 21.78 | 96 | 0.568411 |
a76e6d6deacc173e112eb9c745d35674d3b0b192 | 436 | package com.feragusper.buenosairesantesydespues.executor;
import javax.annotation.Generated;
import dagger.internal.Factory;
@Generated("dagger.internal.codegen.ComponentProcessor")
public enum JobExecutor_Factory implements Factory<JobExecutor> {
INSTANCE;
public static Factory<JobExecutor> create() {
... | 20.761905 | 65 | 0.733945 |
c1cb26403b01c65b3ad1b86a72007884538ee4a8 | 443 | package com.jjlharrison;
import org.junit.Test;
public class SampleTest
{
@Test
public void test()
{
final Sample sample = new Sample();
assert sample.coveredMethod(true).equals("Branch 1");
assert sample.coveredMethod(false).equals("Branch 2");
assert sample.methodWithUnco... | 26.058824 | 79 | 0.668172 |
b2757ee2b78cb8df6b02c3228f2058b23d6b642f | 895 | package com.zupacademy.magno.mercadolivre.sistemasexternos;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax... | 34.423077 | 105 | 0.768715 |
9bde1c37e08d58b145475748b2bd469264e603d3 | 44,457 | // This is a generated file. Not intended for manual editing.
package io.github.stefansjs.flatbuffersplugin.parser;
import com.intellij.lang.PsiBuilder;
import com.intellij.lang.PsiBuilder.Marker;
import static io.github.stefansjs.flatbuffersplugin.psi.FlatbuffersTypes.*;
import static com.intellij.lang.parser.Generat... | 34.250385 | 102 | 0.573206 |
c752879e9349dc66a5bf9f9a1e7e4655a5d52144 | 799 | import java.util.Scanner;
public class BugAttack {
public static final double ONE_BUG_VOLUME = 0.002; // m3
public static final double GROWTH_RATE = 0.95; // 95% each week
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
System.out.print("Enter volume o... | 29.592593 | 120 | 0.600751 |
91b0002ff22ad573dd30836e4410ebd19309d80d | 3,088 | package com.hmsonline.virgil;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.apache.cassandra.thrift.ConsistencyLevel;
import org.apache.cassandra.thrift.InvalidRequestException;
import org.json.simple.JSONObject;
import org.junit.Ignore;
import org.junit.Test;
impo... | 38.123457 | 109 | 0.675518 |
d05b17592a86eb6d38e253a948632318a416cf5e | 2,936 | package org.opendaylight.opflex.genie.engine.parse.model;
import java.util.TreeMap;
import org.opendaylight.opflex.genie.engine.parse.modlan.Processor;
import org.opendaylight.opflex.modlan.report.Severity;
/**
* Created by midvorki on 3/22/14.
*/
public abstract class ProcessorNode
implements Processor
{
... | 24.466667 | 142 | 0.503406 |
4d8224a33d468837342cbc88c3cf85f9c9a867b6 | 1,886 | /**
* Copyright [2016] [Christian Loehnert]
*
* 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 ag... | 34.290909 | 156 | 0.735949 |
8bf0ec9f0bdbc67edf27dc627a479354dfac8d28 | 1,160 | package com.github.samples.FPSamples_Mario;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
class SalaryRules {
private SalaryRules() {}
public static double allowance(double d) {
return d * 1.2;
}
public static double bonus(double d) {
return d... | 22.745098 | 75 | 0.612069 |
6b83a7a5272b5a15a233efdba415e7badecfe1d3 | 2,169 | /**
* Copyright (C) 2010-2015 eBusiness Information, Excilys Group
*
* 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 ... | 33.890625 | 89 | 0.779161 |
2038f40c482923542090d9759f3c4c7b06c4573f | 522 | /**
* @author effine
* @Date 2016年1月7日 上午11:44:10
* @email verphen#gmail.com
* @site http://www.effine.cn
*/
package cn.effine.utils;
/** 常量 */
public class Constants {
public static final String defaultPackage = "effine"; // 默认包名
public static final String defaultDomainsuffix = "cn"; // 默认域名后缀
... | 20.076923 | 66 | 0.643678 |
04b02879dce8ad7bc0152db980dd35ec82cf249f | 922 | package org.dayatang.utils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class IntRangeTest {
private IntRange range;
@Before
public void setUp() throws Exception {
range = new IntRange(1, 10);
}
@After
public void tearDown() throws Exce... | 19.208333 | 45 | 0.70282 |
c8affddda3df8617954481f311a5d13891c7baf9 | 661 | package com.xuegao.netty_chat_room_server.王仔编程B站.protocolstack.base;
public enum MessageType {
/**
* 业务请求
*/
BUSINESS_REQ((byte) 0),
/**
* 业务应答
*/
BUSINESS_RESP((byte) 1),
/**
* 业务one_way请求(既是请求也是响应)
*/
BUSINESS_REQ_RESP((byte) 2),
/**
* 握手请求
*/
L... | 15.372093 | 68 | 0.496218 |
257b06193f84b4f8a75484965dfa9c9fabd7a6e3 | 955 | package com.yuqinyidev.android.yyandroid.login.presenter.impl;
import com.yuqinyidev.android.yyandroid.login.model.ILoginModel;
import com.yuqinyidev.android.yyandroid.login.model.impl.LoginModel;
import com.yuqinyidev.android.yyandroid.login.presenter.ILoginPresenter;
import com.yuqinyidev.android.yyandroid.login.vie... | 28.088235 | 72 | 0.739267 |
bb4d52093e251f242b8f6a576395a4e4aa7ba248 | 2,754 |
package powerschool.rest.vo.xsd;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for CourseRequestRulesVO complex type.
*
* <p>The following schema fragmen... | 23.538462 | 105 | 0.585694 |
ddc787c96e609527f1cebf60098913dabe471e5c | 2,179 | package top.chenxin.mc.service.impl;
import com.github.pagehelper.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.chenxin.mc.core.ResourceCollection;
import top.chenxin.mc.entity.FailedMessage;
import top.chenxin.mc.resource.CustomerResourc... | 30.263889 | 115 | 0.702157 |
188947a071d8e026cfbc2c2971a6a40326767250 | 437 | package com.viadee.sonarquest.repositories;
import javax.transaction.Transactional;
import com.viadee.sonarquest.entities.StandardTask;
import com.viadee.sonarquest.entities.World;
import java.util.List;
@Transactional
public interface StandardTaskRepository extends TaskBaseRepository<StandardTask>{
List<Stand... | 23 | 81 | 0.803204 |
542207ed6dd14fefa53dd53a618bbec97a500052 | 2,663 | package wearblackallday.data;
import java.util.Arrays;
public class BitArray {
public final int length;
private final long[] storage;
public BitArray() {
this(64);
}
public BitArray(int length) {
this.length = length;
this.storage = new long[(length - 1 >>> 6) + 1 & (1 << 26) - 1];
}
public BitArray(b... | 23.156522 | 108 | 0.651145 |
ff923e14d320c7c8bb2846669a6e7def7cb592e8 | 3,303 | package com.c4soft.util.hadoop.avro;
import org.apache.avro.generic.IndexedRecord;
import org.apache.avro.mapreduce.AvroJob;
import org.apache.hadoop.mapreduce.Job;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.util.ClassUtils;
/**
* An InitializingBean that does AvroJob (mapr... | 31.457143 | 109 | 0.681804 |
cde31552b2c1f5d316431ce8178efcf53de6b30e | 2,107 | /*
* Copyright 2019 Piotr Andzel.
*
* 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 ... | 29.676056 | 93 | 0.685809 |
281a7c571897d5fd1be5b0f9addc714ea733be4f | 4,979 | package com.xrbpowered.gl.res.texture;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.IntBuffer;
import org.lwjgl.opengl.EXTTextureFilterAnisotropic;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
import org.lw... | 29.288235 | 125 | 0.695923 |
41388b702efcb0a741065d8bc9c7df9da24e536a | 2,793 | package part_1.medium.backtracking;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class PermuteUnique47 {
public static void main(String[] args) {
int[] nums = {1, 1, 2};
System.out.println(permuteUnique(nums));
}
// 方法一 HashSet 暴力去重
// public Li... | 36.75 | 146 | 0.589689 |
01a683222d3072057e42361212ef0a22481086f0 | 55,689 | package gate.resources.img.svg;
import java.awt.*;
import java.awt.geom.*;
import java.awt.image.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;
/**
* This class has been automatically generated using <a
* href="http://englishjavadrinker.blogspot.com/search/label/S... | 45.497549 | 539 | 0.737345 |
ec953718c4ee464292be478696c05abf17fa81bc | 8,508 | /*
* #%L
* xcode-maven-plugin
* %%
* Copyright (C) 2012 SAP AG
* %%
* 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 ... | 38.672727 | 117 | 0.742008 |
323f6aa13e0dd311e297a5904f00def729c41744 | 5,915 | /**
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: shulie@shulie.io
* 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 requi... | 21.353791 | 84 | 0.583432 |
1a9659ba68e31925afbcab667f60ae0a6456c8fd | 23,555 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.04.13 at 11:23... | 30.393548 | 114 | 0.503927 |
170d8708f2102dd1c003b9f052e11231bcedf13f | 447 | package com.cognizant.truyum.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateUtil {
public static Date convertToDate(String date) {
SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yyyy");
sdf.setLenient(false);
Date d=null;
try {
d=sdf.par... | 20.318182 | 58 | 0.720358 |
e2aaaa8d5acfdc6e32748f7db677b8e2a22f42e2 | 1,378 | package org.yourcart.controller.admin;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import or... | 27.019608 | 82 | 0.677794 |
ee0e91e5d388cc24d240fa7f33c7589a004538c6 | 494 | package com.kucoin.sdk.rest.response;
import lombok.Data;
import java.math.BigDecimal;
/**
* Created by chenshiwei on 2019/2/22.
*/
@Data
public class MarketTickerResponse {
private String symbol;
private BigDecimal buy;
private BigDecimal sell;
private BigDecimal changeRate;
private BigDe... | 14.529412 | 38 | 0.720648 |
6307c1e8250a1ab716329c18b1b7d535d816e1b7 | 94 | package br.com.proposta.entidades.enums;
public enum StatusAviso {
CRIADO, NAO_CRIADO
}
| 15.666667 | 40 | 0.755319 |
0e50089d83e14a96851f3431aeec3796be507926 | 262 | package org.tool.convert.exception;
public class ConverterException extends RuntimeException {
public ConverterException(String message) {
super(message);
}
public ConverterException(String message, Throwable thr) {
super(message, thr);
}
}
| 20.153846 | 60 | 0.744275 |
5e570fecb7c2604d8282df77b9f40e64507517a7 | 1,128 | package com.teacupofcode.ved.interactapp;
import android.annotation.SuppressLint;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by Admin on 9/15/2016.
*/
class Event {
private String name;
private String link;
private String location;
private Date date;
private Strin... | 18.8 | 111 | 0.619681 |
baeca1126cc291a06e2d4256c2a0a1d8a191900c | 1,712 | package br.com.zupacademy.matheus.mercadolivre.produto.pergunta;
import br.com.zupacademy.matheus.mercadolivre.produto.Produto;
import br.com.zupacademy.matheus.mercadolivre.usuario.Usuario;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.spring... | 37.217391 | 100 | 0.73715 |
9f431f137efdc137a5f66fae9f566b8ccf94bf47 | 2,577 | //package com.mozi.gateway.config;
//
//import io.swagger.annotations.ApiOperation;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import springfox.documentation.build... | 38.462687 | 89 | 0.624757 |
16e265c252af072fab012f2a8bab698d385d53e3 | 897 | package com.google.android.gms.internal.measurement;
import java.util.Collections;
import java.util.List;
import java.util.Map;
/* compiled from: com.google.android.gms:play-services-measurement-base@@17.2.0 */
final class zzhh extends zzhi<FieldDescriptorType, Object> {
zzhh(int i) {
super(i, (zzhh) null... | 29.9 | 90 | 0.518395 |
fc11e0277e20e7424931efd558d1fdcfd064466b | 3,584 | /**
* Copyright (c) 2017-present, Stanislav Doskalenko - doskalenko.s@gmail.com
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Based on Asim Malik android source code, copyright (c) 2015
*
**/
packa... | 35.137255 | 114 | 0.63644 |
efb63bddca0062de171b5483b7ee82612d1e0fbb | 6,907 | package imooc.naga.plugin.sdk;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.sql.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.function.BiConsumer;
pub... | 29.391489 | 100 | 0.619806 |
52eac8d9baedb8664f3ae53a42a8e4bf7cd28842 | 1,542 | package com.github.herowzz.springfuse.example.service.account;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.C... | 28.555556 | 67 | 0.7607 |
4deabbccbb2663fd1f20936fb9997ece54d7a23f | 1,981 | package io.ray.api.call;
import io.ray.api.ActorHandle;
import io.ray.api.Ray;
import io.ray.api.concurrencygroup.ConcurrencyGroup;
import io.ray.api.function.RayFuncR;
import io.ray.api.runtimeenv.RuntimeEnv;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* A helper to create j... | 30.953125 | 96 | 0.720848 |
0b4eec98938d3549c426ade06b0cae1504c95e89 | 6,119 | package com.wzc.chapter_9.provider;
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.content.UriMatcher;
import android.database.Cursor;
import android.net.Uri;
import android.os.Process;
import android.supp... | 43.707143 | 164 | 0.616767 |
f4be117f34e11bf0b8327ddc4cbf239d00d63d25 | 851 | package com.kienht.cache.mapper.employee;
import com.kienht.cache.mapper.Mapper;
import com.kienht.cache.model.EmployeeCached;
import com.kienht.data.model.EmployeeEntity;
import javax.inject.Inject;
/**
* Note:
* Created by kienht on 5/2/18.
*/
public class EmployeeCacheMapper implements Mapper<EmployeeCached, E... | 24.314286 | 84 | 0.663925 |
a283fe5cf963833ea6f78585d6d700c452d4566b | 997 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.0. You may not use this file
* ... | 33.233333 | 95 | 0.775326 |
c901cd2b5d0fd9cc4773087ace0cac6150ec7076 | 782 | package com.bombardier.macs.json.model;
import java.util.HashSet;
import java.util.Set;
public class Jalon {
private Long id;
private String title = null;
private Set<WorkCenterCahier> cahiers = new HashSet<WorkCenterCahier>();
public Long getId() {
return id;
}
public void setId(Long id) ... | 14.481481 | 74 | 0.685422 |
808a0e8f6965814bd00193ab4e7718c4ddf0b64b | 600 | package at.favre.app.blurbenchmark.util;
import com.jjoe64.graphview.GraphView;
import com.jjoe64.graphview.GraphViewSeries;
/**
* Created by PatrickF on 23.04.2014.
*/
public class GraphUtil {
public static GraphViewSeries getStraightLine(int heightY, int maxX, String name, GraphViewSeries.GraphViewSeriesStyl... | 33.333333 | 137 | 0.736667 |
45b0ede0483e598c6b616eba7d4d12210d4437ca | 16,136 | package io.renren.modules.app.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.renren.modules.app.utils.excel.SupCol;
import io.renren.modules.app.utils.excel.annotation.ExcelField;
import java.io.Serializable;
/**
* @param
* @author Yoph... | 32.336673 | 601 | 0.626797 |
352587b90f1463ecac0006542a85e57bd24ee658 | 5,943 | /**
* 项目名:Lazy2b
* 包 名:com.lazy2b.app.activity
* 文件名:TestActivity1.java
* 创 建:2015年10月31日下午2:09:26
* Copyright © 2015, GDQL All Rights Reserved.
*/
package com.lazy2b.app.activity;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.d... | 28.990244 | 98 | 0.658422 |
683c50e5e606fb5e2a76e1bcd6cc20123b064cb9 | 836 | package org.noob.codewars.train.mid_level.prac160305;
/**
* Help the frog to find a way to freedom
*
* You have an array of integers and have a frog at the first position
*
* [Frog, int, int, int, ..., int]
*
* The integer itself may tell you the length and the direction of the jump
*
* For instance: 2 = ... | 24.588235 | 77 | 0.660287 |
46077d259ab93eca9519e1a36db315b548477056 | 1,264 | package se.snowcatsystems.traveldiary.language;
import lombok.*;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;
import se.snowcatsystems.traveldiary.country.Country;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Set;
@Entity
@Table(name="lan... | 29.395349 | 130 | 0.681962 |
aa637521e54b03b2abbc25d8d1252899bba924fb | 8,725 | package com.molmc.ginkgo.basic.mqtt;
import android.Manifest;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.support.annotation.RequiresP... | 35.181452 | 131 | 0.633467 |
86b1f89c28570472e46a3e8516dfdf80b2a0d4dd | 2,483 | /*
* Copyright © 2020 pleuvoir (pleuvior@foxmail.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 applic... | 26.98913 | 92 | 0.716472 |
ce702ba807a1a3e459d0512e69e016c5f461dc17 | 7,605 | /*
* 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 correos.tiendaonline.software.Datos;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.R... | 31.953782 | 96 | 0.522288 |
279e6851c52b5c498c719c50726e9884de3e497d | 12,490 | /*
* 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 ... | 31.943734 | 178 | 0.58743 |
149791b76f9f41afc103dd7b967c6fc45b149732 | 3,039 | package org.yzh.protocol.t1078;
import org.yzh.framework.orm.annotation.Field;
import org.yzh.framework.orm.annotation.Message;
import org.yzh.framework.orm.model.AbstractMessage;
import org.yzh.framework.orm.model.DataType;
import org.yzh.protocol.basics.Header;
import org.yzh.protocol.commons.JT1078;
/**
* @author... | 28.401869 | 105 | 0.679829 |
76b103cdb0b01c8e878fde0e0ca201749f5be3f4 | 3,897 | /*
* 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 m... | 39.765306 | 81 | 0.717732 |
935d8e7da70df9296e7e63f4a1810bc17c08544d | 3,274 | package cybervelia.autocloner;
import java.io.UnsupportedEncodingException;
import cybervelia.sdk.types.ConnectionTypesCommon.AddressType;
import cybervelia.server.CryptoHelper;
class AdvertisementPacket {
private String address;
private AddressType type;
private String adv_data = null;
private String scan_data ... | 22.895105 | 74 | 0.64661 |
389dff3e0c513493ce91beb427c5afdc68e83e23 | 1,500 | package com.whereguesthome.pojo;
public class User {
private Integer uId;
private String uName;
private String uSex;
private String uPassword;
private String uPhone;
private String uEmail;
private String uAccount;
public Integer getuId() {
return uId;
... | 20.547945 | 70 | 0.561333 |
6e2487b7c67f6e4839be2989b99f295a0a4af995 | 1,623 | package com.fasterxml.jackson.datatype.jsr310.failing;
import java.io.*;
import java.time.Year;
import org.junit.Test;
import com.fasterxml.jackson.datatype.jsr310.*;
import com.fasterxml.jackson.databind.*;
import static org.junit.Assert.assertEquals;
public class JDKSerializabilityTest extends ModuleTestBase
{
... | 33.8125 | 94 | 0.739372 |
69a37890179260795e9be538b429aa9ee463435f | 1,172 | package com.sp.corona;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
public class SymptomActivity extends AppCompatActivity {
String precautions[] ={"Remember to regularly take your own temperature. Two times a day. When temperature e... | 55.809524 | 524 | 0.762799 |
31cd3a7952c23882eff70107e733dadb6a52e8ca | 339 | package it.polito.ai.project.requestEntities;
import lombok.Data;
@Data
public class MakeOrRemoveCompanionRequest {
private String targetName;
public MakeOrRemoveCompanionRequest(String targetName) {
this.targetName = targetName;
}
public MakeOrRemoveCompanionRequest(){
this.targetNa... | 19.941176 | 60 | 0.728614 |
1c324aff342032cc3307273e2a95b9290a741863 | 2,835 | package org.roxbotix.elibs2.drive;
import org.roxbotix.elibs2.controller.Controller;
import me.wobblyyyy.intra.ftc2.utils.Timed;
import me.wobblyyyy.intra.ftc2.utils.async.event.StringEvents;
/**
* Xbox-integrated meccanum drive.
*
* @author Colin Robertson
*/
public class XboxMeccanum {
private final Control... | 27.259615 | 78 | 0.535097 |
22968e3b374555f6fd5ad5f4dded32c22523c421 | 704 | package com.nepxion.thunder.stock.util;
/**
* <p>Title: Nepxion Stock</p>
* <p>Description: Nepxion Stock For Distribution</p>
* <p>Copyright: Copyright (c) 2017-2050</p>
* <p>Company: Nepxion</p>
* @author Haojun Ren
* @version 1.0
*/
import java.math.BigDecimal;
public class StockUtil {
public static f... | 28.16 | 82 | 0.693182 |
9bf6892c3cdc05165f5a3ca234c936d5003f5304 | 4,946 | /*
* Copyright 2020 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 applicab... | 35.078014 | 119 | 0.712697 |
5fa03c675a3d5db74aa37ec1d0baa75e4ab02d00 | 397 | package top.shenluw.retry;
import java.util.concurrent.CompletableFuture;
/**
* 触发重试时执行接口
*
* @author Shenluw
* created: 2020/5/30 18:50
*/
public interface RetryHandler<K, Data, R> {
default CompletableFuture<R> handle(String group, Storage.KV kv) {
return handle(group, (K) kv.key, (Data) kv.value)... | 19.85 | 70 | 0.680101 |
08ffb2e7595ac499ff0869fef5fd917a2bcb6ee3 | 853 | package com.atomscat.freeswitch.cdr.spring.boot.starter.handler;
import com.alibaba.fastjson.JSON;
import com.atomscat.freeswitch.cdr.domain.Cdr;
import com.atomscat.freeswitch.cdr.handler.CdrHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
/**
* <p>SimpleCdrHandl... | 25.848485 | 77 | 0.682298 |
d3f31afb21fc2b153922c0b46cf41f00bf30ca75 | 4,405 | /*
* 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 ... | 37.016807 | 88 | 0.664245 |
7be8b211f4129ec1385e8b6977766c521bbfe60c | 2,624 | /*
* Copyright (C) 2020 Temporal Technologies, Inc. All Rights Reserved.
*
* Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Modifications copyright (C) 2017 Uber Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
* use this f... | 26.77551 | 92 | 0.745046 |
2da540417d762c89862960afe0095e83759a0fee | 532 | package com.mxh.weibo.common.util;
import java.util.Random;
public class PasswordUtil {
private PasswordUtil() {
// TODO Auto-generated constructor stub
}
private static String string = "abcdefghijklmnopqrstuvwxyz123456789QAZWSXEDCRFVTGBYHNUJMIKLOP";
public static String getRandomString(int leng... | 23.130435 | 97 | 0.691729 |
a085932f0a05321d589919212a9b5a03d0dde7ff | 1,603 | package com.datagrokr.integration.services.bean;
import java.io.Serializable;
import com.datagrokr.integration.services.entities.Conduct;
public class ServiceBean implements Serializable
{
private static final long serialVersionUID = 1L;
private Conduct requestConduct;
private Conduct responseConduct;
privat... | 17.423913 | 59 | 0.751716 |
805d04dab7e1dfda81c05ff6900f710a4153616c | 1,218 | package hudson.remoting;
/**
* Exception that prints like the specified exception.
*
* This is used to carry the diagnostic information to the other side of the channel
* in situations where we cannot use class remoting.
*
* @author Kohsuke Kawaguchi
* @see Capability#hasMimicException()
*/
class MimicExceptio... | 29 | 84 | 0.651067 |
505faa82d418f043bf975793a5ff09a9176f2d02 | 566 | package com.blockchain.wallet.api.service;
import com.blockchain.wallet.api.po.WalletHotPO;
/**
* @author Administrator
*/
public interface WalletHotService {
int insertSelective(WalletHotPO record);
/**
* 检查账户是否存在
* @param userName
* @param walletAddress
* @param walletType
* @... | 19.517241 | 96 | 0.704947 |
23f256f6d97c542d6e30616bcf3644c79f4932ed | 4,478 | /**
* SnapGames
*
* Game Development Java
*
* GDJ104
*
* @year 2017
*/
package com.snapgames.gdj.gdj104.core;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
/**
* This class is a Render helper class to draw some shiny things.
*
* @author Frédéric D... | 26.034884 | 110 | 0.634882 |
7b62299e62851583f0eb4eed3b71b96838084f52 | 932 | /*
* Copyright 2000-2014 Namics AG. All rights reserved.
*/
package com.namics.commons.random.test;
import java.util.List;
import java.util.Map;
/**
* ListBean.
*
* @author aschaefer, Namics AG
* @since 20.08.14 13:32
*/
public class GenericsWrappedTestBean {
private List<List<String>> names;
private Map<S... | 19.829787 | 89 | 0.717811 |
1694e6ce2ef4eeea1bec609c1c8638e4d8a165b3 | 2,735 | /*
* Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.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
... | 43.412698 | 202 | 0.717002 |
4f60057b12377b9b454f41a01334dee1881d6d0c | 15,587 | /*
* Copyright 2016, Google 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 t... | 29.975 | 99 | 0.628537 |
10f52de50f2a9dfe5690a96e0f5ddf817cfbd5ae | 1,119 | package lesson.newplan.lesson3;
import java.io.File;
import java.util.Arrays;
public class ArraysOfObjects {
public static void main(String[] args) {
Point1D point1D = new Point1D(6);
Point2D point2D = new Point2D(1,4);
Point1D p = point2D;
// System.out.println(point1D);
// ... | 15.760563 | 44 | 0.505809 |
4d8436223ecf8f72f52a7137178f7b96b12ccb2d | 3,917 | /*
* #%L
* fujion
* %%
* Copyright (C) 2021 Fujion Framework
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 31.58871 | 100 | 0.674751 |
c897cf73ed6510090ca5dcbaf3fc554657e47ade | 1,139 | package ca.uhn.fhir.jpa.searchparam.extractor;
/*-
* #%L
* HAPI FHIR Search Parameters
* %%
* Copyright (C) 2014 - 2021 Smile CDR, 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 Licens... | 31.638889 | 79 | 0.726953 |
78c731641f7dc9bfe305f6f490b7844ee38d9529 | 2,807 | package edu.kit.aquaplanning.grounding.datastructures;
import java.util.Arrays;
import java.util.List;
import edu.kit.aquaplanning.model.lifted.Argument;
/**
* Represents a (partial or complete) assignment of arguments
* to a list of parameters of fixed size. The decision level
* of an instance indicates how many... | 22.821138 | 85 | 0.683292 |
f7f7a507e9893b279a5735fb41548da94a9817cc | 615 | // This is a generated file. Not intended for manual editing.
package com.intellij.lang.yang.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface YangUnknownStatement extends YangStatement {
@NotNull
List<YangStatement> getStatementList();
@NotNu... | 17.571429 | 61 | 0.756098 |
0948bd30b5cafe8c8fec02d7adcfa560b44e4e80 | 388 | package com.vinsol.confconnect.gson;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
public class MyGson {
public Gson get() {
GsonBuilder gsonBuilder = new GsonBuilder();
gsonBuilder.setFieldNamingStrategy(new ExpenseTrackerFieldNamingPolicy());
gsonBuilder.setExclusionStrategies(new Expense... | 24.25 | 76 | 0.791237 |
1f4d49ad0197e6498407797daf1e6c8cc446978a | 243 | package de.lksbhm.gdx.ui.screens;
import com.badlogic.gdx.Screen;
public interface ResettableScreen extends Screen {
/**
*
* @param state
* not supposed to be null
*/
void setState(Object state);
Object getState();
}
| 16.2 | 50 | 0.670782 |
88162045173dd4ce2a73c5d5cb3a862ec28191d2 | 993 | package com.clsaa.dop.server.audit.model.po;
import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Field;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Map;
/**
* 操作日志持久层类
*
* @author joyren
*... | 18.388889 | 59 | 0.623364 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.