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 |
|---|---|---|---|---|---|
eb2a191ea036ab2d71b75481aac536c691aade99 | 106 | package name.matco.simcity.model;
public class Dependency extends Ingredient {
public Long quantity;
}
| 15.142857 | 44 | 0.792453 |
04813268b5dedf16ba721e7ea752c69ec47d33e2 | 3,040 | /*
* Copyright [yyyy] [name of copyright owner]
*
* ====================================================================
* 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:/... | 36.190476 | 140 | 0.665461 |
716accb7cdce5bd4b62a6414db19687ebb1f27d7 | 16,049 | /*
* Minecraft Forge
* Copyright (c) 2016-2020.
*
* 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 version 2.1
* of the License.
*
* This library is distributed in the hope that it... | 52.619672 | 223 | 0.72559 |
db6d23eb32ccfc403e3d9dfa5eda48da942e90d0 | 437 | package br.com.centralit.citcorpore.negocio;
import br.com.centralit.citcorpore.bean.ContatoProblemaDTO;
import br.com.citframework.service.CrudService;
/**
*
* @author geber.costa
*
*/
public interface ContatoProblemaService extends CrudService {
public ContatoProblemaDTO restoreContatosById(Integer idContatoPr... | 31.214286 | 91 | 0.830664 |
910cc58b4023cfc31975eb58d1e9ef27246765e0 | 1,403 | package cc.bitky.clusterdeviceplatform.server.db.dto;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import java.util.Objects;
... | 23.383333 | 69 | 0.62794 |
60ce4c336d1d0b7ac70d79bbc1182577b48c4b10 | 4,884 | /*
* 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 ... | 28.231214 | 91 | 0.726249 |
3524c86388418da6bc130a9e37ef05c1ad7e4189 | 2,319 | package com.example.secondbook;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.GridView;
import android.widget.TextView;
import android.widget.Toast;
import com.example.secondbook.Adapter.SelectImageAdapter;
i... | 29.35443 | 142 | 0.654161 |
213242967cdd80c4ced3c35e5eacff8eda2fc485 | 3,036 | package oneapp.onechat.chat.task;
import android.os.AsyncTask;
import java.util.List;
import oneapp.onechat.androidapp.R;
import oneapp.onechat.chat.network.RequestUtils;
import oneapp.onechat.chat.utils.BaseUtils;
import oneapp.onechat.chat.utils.jump.JumpAppPageUtil;
import oneapp.onechat.chat.view.Bas... | 32.297872 | 117 | 0.607378 |
330ee08fcedf4a3da2b8c971c1b15182ab7cdcce | 6,227 | package discordInteraction.command.list;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import discordInteraction.card.triggered.onPlayerDamage.AbstractCardTriggeredOnPlayerDamage;
import discordInteraction.command.*;
import net.dv8tion.jda.api.entities.User;
i... | 42.360544 | 194 | 0.641561 |
b8f37b24ca2cbf2dc6e921bd3d139137bee48971 | 2,154 | /**
* Copyright (C) 2005-2009 Alfresco Software Limited.
*
* This file is part of the Spring Surf Extension project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | 26.592593 | 100 | 0.712163 |
d4c4bdf6fec2c100bb0f9936cd267f122b7021ee | 296 | package com.foreseeti.corelib.math;
public class FLogNormalDistribution implements FDistribution<Double> {
public static FLogNormalDistribution getDist(double shape, double scale) {
return new FLogNormalDistribution();
}
public Double sample() {
return Double.valueOf(0.0);
}
}
| 24.666667 | 76 | 0.760135 |
97bb4c176ba98548df28ec100f152e95858f8a35 | 1,453 | package com.ppm.integration.agilesdk.connector.octane.model;
import com.ppm.integration.agilesdk.connector.octane.client.DateUtils;
import com.ppm.integration.agilesdk.connector.octane.client.UsernamePasswordClient;
import java.util.Date;
import net.sf.json.JSONObject;
/**
* Created by lutian on 2016/11/28.
*/
pub... | 29.653061 | 83 | 0.730213 |
f9c2101cb523fe50a3459073fc0ea744da2af2e1 | 1,229 | package br.eti.arthurgregorio.minibudget.application.payloads;
import br.eti.arthurgregorio.minibudget.application.validators.Unique;
import br.eti.arthurgregorio.minibudget.model.entities.Contact;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.... | 33.216216 | 99 | 0.696501 |
dee7579bb957c4cc2abae4cd8ca0bee42aaab47f | 1,947 | package com.jjinterna.pbxevents.tcx.callrouter;
import java.util.ArrayList;
import java.util.List;
import org.apache.camel.RoutesBuilder;
import org.apache.camel.scr.AbstractCamelRunner;
import org.apache.camel.spi.ComponentResolver;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annot... | 44.25 | 291 | 0.807396 |
0399e9ac340bb6cd654dfe37a0d1641f9cd41a99 | 2,398 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* 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 a... | 30.74359 | 107 | 0.715596 |
eeb0309f7aa521eeae18f065933f479ce774c22e | 14,885 | /* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.azure.cosmosdb;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.C... | 64.717391 | 208 | 0.74995 |
372f7182850c2e9968e0d27747900466c0655c3c | 359 | package org.metasyntactic.automata.compiler.java.scanner.operators;
public class GreaterThanOperatorToken extends OperatorToken {
public final static GreaterThanOperatorToken instance = new GreaterThanOperatorToken();
private GreaterThanOperatorToken() {
super(">");
}
protected Type getTokenType() {
... | 25.642857 | 89 | 0.779944 |
8be49133091ea1f44fd513f056f91ff323ee591c | 2,355 |
/*
* Copyright (c) 2018.
* AndroidSDKMirror
*/
package io.bunnyblue.android.sdk.mirror.bean.repo21;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
@Generated("net.hexar.json2pojo")
@SuppressWarnings("unused"... | 21.216216 | 60 | 0.665817 |
d719e0939e319adbfecee0c9dd16cb65fc5912f7 | 84 | package util.bezier_curve;
public interface PathComposite extends CurveSegment {
}
| 16.8 | 53 | 0.833333 |
7faa31d20f10ed8adab1e11ed81f26bb942317b8 | 2,585 | package com.analyser.data;
import java.io.*;
import java.util.*;
import java.util.stream.Collectors;
import java.util.function.Function;
import com.analyser.model.*;
import com.analyser.helper.Utils;
public class CSVTransactionLoader implements TransactionLoader {
private static final String SEPARATOR = ",";
... | 32.721519 | 84 | 0.6 |
1047d2bb404516f1334aac89a31af9bbaf3ce4d8 | 5,300 | /*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ===================================================================... | 35.57047 | 113 | 0.739434 |
874f697c93d9049c6a8478588cb67100fafb2839 | 1,079 | package se.ayoy.maven.plugins.licenseverifier.model;
/**
* Represents the total status of all artifacts.
*/
public class OverallStatus {
private boolean hasNoLicense = false;
private boolean hasForbiddenLicense = false;
private boolean hasWarningLicense = false;
private boolean hasUnknownLicense = fa... | 24.522727 | 55 | 0.693234 |
f93cfee60249ffe106196cba1f2e026a1f416554 | 672 | package com.jxufe.study.tinyspring.aop.framework.adapter;
import com.jxufe.study.tinyspring.aop.MethodBeforeAdvice;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
/**
* hong.zheng
*
* @Date: 2019-09-03 15:20
**/
public class MethodBeforeAdviceInterceptor imp... | 28 | 74 | 0.75 |
f15615df48c2a27944267043100600058542bcdf | 2,483 | /*
* The MIT License (MIT)
*
* Copyright (c) 2018 Ordinastie
*
* 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... | 23.647619 | 92 | 0.725332 |
76e5d400517b8a97ab68724e57c3f14d5da03fba | 17,895 | package org.uma.jmetal.algorithm.multiobjective.moead;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import org.uma.jmetal.algorithm.multiobjective.moead.util.MOEADUtils;
import org.uma.jmetal.algorithm.multiobjective.moead.util.SimpleFunctionMethod;
import org.uma.jmetal.algorithm.m... | 31.560847 | 156 | 0.64912 |
65893ffcd902e3196508dd90ef45569ca1239444 | 1,313 | package cc.bugcat.example.api.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel
public class UserInfo {
@ApiModelProperty("用户id")
private String uid;
@ApiModelProperty("名称")
private String name;
@ApiModelProperty("性别")
private String sex;... | 16.4125 | 47 | 0.591013 |
bf82f5e30f21349e7ab21294713c91c16cdba630 | 4,128 | /**
* 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/ecl2.php
*
* Unless required by a... | 52.253165 | 226 | 0.669331 |
b3664be0b0f6b63155d22d645c99b9a9bc5747b2 | 1,716 | package tpiskorski.machinator.model.job;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import org.springframework.stereotype.Repository;
import java.util.Comparator;
import java.util.List;
import java.util.Optional;
import java.util.function.Predicate;
import java.util.stream.Coll... | 28.6 | 109 | 0.65035 |
70f0e04f4a6748d23861d4488fc12c0bcc1230a4 | 186 | package api.interfaces;
import api.gui.Source;
/**
* Created by loucass003 on 24/11/16.
*/
@FunctionalInterface
public interface ActionListener
{
void actionPerformed(Source s);
}
| 13.285714 | 37 | 0.747312 |
8fc942cbaaf8796c8a590c6fc872058b27741d04 | 217,247 | /*
* (C) Copyright IBM Corp. 2019, 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.fhir.model.resource;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import javax.annotation.Generated;
import com.ibm.fhir.m... | 39.679817 | 163 | 0.527183 |
1dd6f5f58fa23e063eb2c54bc02ae77d8a95ffd1 | 922 | package com.fengxxc.fastable.sortable;
/**
* ISortableSet
* @param <V>
*/
public interface ISortableSet<V> {
final static char BREAK = 'b';
void forEach(IteratorFun<V> iteratorFun);
/**
*
* @param iteratorFun
* @param start item start at
* @param end item end at
* @param incl... | 20.043478 | 115 | 0.55423 |
8b782fefcef129e57592688fe245903bc606ef00 | 3,654 | package com.artezio.arttime.repositories;
import java.lang.reflect.ParameterizedType;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.persistence.*;
import javax.persistence.criteria.*;
import org.hibernate.annotations.QueryHints;
public class Query<T> {
private Class... | 29.467742 | 110 | 0.651067 |
07f27db1a182150e4713e7f4f8d4037b86a2c10e | 1,070 | package b.l.a.c.f.i;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.Objects;
public final class w5 {
public static final Charset a = Charset.forName("UTF-8");
/* renamed from: b reason: collision with root package name */
public static final byte[] f3798b;
static {
... | 26.097561 | 111 | 0.572897 |
afead24d7bf47b5f19a6a15c1c0b59ae9fbf25a6 | 752 | package com.esie.core.configurationSingleton;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ConfigurationSingletonTest {
@Test
void getInstance() {
ConfigurationSingleton testConfig = ConfigurationSingleton.getInstance("src/resources/configuration.propertie... | 34.181818 | 121 | 0.704787 |
91f25af46bfbf619955172c1c58095f86e553101 | 1,523 | /*
* Copyright Debezium Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.debezium.relational.ddl;
import io.debezium.relational.SystemVariables;
import io.debezium.relational.Tables;
import io.debezium.text.ParsingException;... | 29.862745 | 127 | 0.697308 |
2a6a1a195262a8071bb350d81ba689a44c843fda | 187 | package net.n2oapp.framework.api.data.validation;
/**
* User: operhod
* Date: 19.08.14
* Time: 10:09
*/
public interface ValidationFailureCallback {
void onFail(String msg);
}
| 14.384615 | 49 | 0.695187 |
de0b9664623c21163a27a26d76705955f9453ce3 | 1,250 | /*
* 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... | 41.666667 | 141 | 0.8152 |
9fcdbc241c75d775cb630dec8d5e3d249052c289 | 829 | package com.naindroidtech.parks.controller;
import android.app.Application;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
public class AppController extends Application {
private static AppController INSTANCE;
private RequestQueue reques... | 23.685714 | 75 | 0.6924 |
355370d34dc2d315f47335e1638762e8e3a74619 | 7,189 | /** Generated Assertion Class - DO NOT CHANGE */
package au.org.greekwelfaresa.idempiere.test.assertj.c_cash;
import au.org.greekwelfaresa.idempiere.test.assertj.po.AbstractPOAssert;
import java.util.Objects;
import javax.annotation.Generated;
import org.compiere.model.X_C_Cash;
/** Generated assertion class for C_Ca... | 27.334601 | 134 | 0.703714 |
994c8c6db38288f2854d8bf325c0b6b3d7354508 | 682 | package com.jordanluyke.reversi.web.model;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.netty.handler.codec.http.HttpResponseStatus;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
im... | 25.259259 | 68 | 0.794721 |
b472670e235d73a92bc64717b74318398ff8a838 | 2,154 | /*
* Copyright 2017 HugeGraph Authors
*
* 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, Ve... | 27.615385 | 79 | 0.711235 |
40e3a05441ea4e98d847b9614dd7baf2e7b62381 | 275 | package de.ur.mi.oop.graphics;
/**
* Enum, welches alle verfügbaren GraphicsObject-Typen beinhaltet
*/
public enum GraphicsObjectType {
NONE,
COMPOUND,
BACKGROUND,
LINE,
RECTANGLE,
ARC,
PIE_ARC,
CIRCLE,
ELLIPSE,
LABEL,
IMAGE
}
| 13.75 | 65 | 0.636364 |
0045dfedac4fd645f1da82b5d8cd13af946f9327 | 1,791 | package com.drive.admin.pojo.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
/**
* 教练钱包表
*
* @author xiaoguo
*/
@Data
public class PlatformWalletInstallParam {
@ApiModelProperty(value = "id")
private S... | 22.111111 | 79 | 0.667225 |
661eadd1df0392671092b1a8a6c51740eddc319e | 223 | package org.age.akka.core.messages.node.messaging;
import org.age.akka.core.messages.Message;
import java.io.Serializable;
public interface WorkerMessage<T extends Serializable> extends Message {
T getContent();
}
| 18.583333 | 72 | 0.780269 |
92e2fc92480adddb411bee5e041729cdb5a1978e | 929 | package br.com.webApp.servletpt1.controler;
import br.com.webApp.servletpt1.modelo.BD;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
public class Login exte... | 33.178571 | 97 | 0.697524 |
8991959a52e362b08a5f7bf1969011b188d567cc | 4,755 | package org.dmc.services.services;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.dmc.services.DBConnector;
import org.dmc.services.DMCError;
import org.dmc.services.DMCServiceException;
import org.dmc.services.ServiceLogger;
import o... | 35.222222 | 131 | 0.733754 |
e025c3c1c77cfd4237b4bf89b3c807606a993afa | 374 | package io.tus.java.client;
/**
* This exception is thrown by {@link TusClient#resumeUpload(TusUpload)} if no upload URL
* has been stored in the {@link TusURLStore}.
*/
public class FingerprintNotFoundException extends Exception {
public FingerprintNotFoundException(String fingerprint) {
super("finger... | 31.166667 | 89 | 0.735294 |
982912d66624378efbc5b5753329cfecfd8be8ac | 462 | package io.collap.bryg.template;
import io.collap.bryg.Unit;
/**
* Implementations of the template interface are allowed to have fields, as a new template object must be created for
* each call to Environment.getTemplate.
* The same template object (with the same fields) can be used to render multiple models; This... | 33 | 117 | 0.768398 |
f45833585f0a88ad70b170e4d4c75c8fcf41c231 | 1,755 | package com.tokelon.toktales.core.render.opengl.gl20.facade;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
public class GLFileScript implements IGLScript {
private static final int BUFFER_SIZE = 4096;
private static final String CHARSET = "UTF-8";
private String ... | 21.9375 | 92 | 0.708832 |
d8b20f2b504409c3742f53e5473ca274d3606a92 | 1,899 | package com.searchitemsapp.company;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.net.MalformedURLException;
import java.util.List;
import org.jsoup.nodes.Document;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api... | 31.65 | 99 | 0.764613 |
ef126baae36c8d98766f61d98d9a03df33a7e6e9 | 892 | package org.opencean.core.eep;
import java.util.HashMap;
import java.util.Map;
import org.opencean.core.address.EnoceanParameterAddress;
import org.opencean.core.common.values.Value;
import org.opencean.core.packets.BasicPacket;
import org.opencean.core.packets.RadioPacket1BS;
public abstract class RadioPa... | 37.166667 | 105 | 0.719731 |
d4076df66340ab623a3857c666ce90b9cb4cf522 | 2,146 | /*
Copyright 2018 The AimMatic 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 applicable law or agreed to in writing, softw... | 25.547619 | 83 | 0.657502 |
b0e3058ee23226ef0e3d8e25d9cfd9bf0b98687b | 323 | public class If
{
public static void main(String[] args)
{
if (5 > 1)
{
System.out.println("Five is greater than one");
}
if (2 < 4)
{
System.out.println("Two is less than four.");
System.out.println("Test succeeded.");
}
}... | 19 | 59 | 0.4613 |
5a16620251ac60d110ba38600054b29a1cff5641 | 100 | package Digitact.Backend.Model.Image;
public enum ImageType {
profilePic,
CV,
Others
}
| 12.5 | 37 | 0.69 |
367ba93e1b2ecdb8487fee8a1b0fd1a724abdb64 | 1,445 | package xdean.fluent;
import static org.junit.Assert.*;
import org.junit.Test;
public class FluentTest implements FluentRx<FluentTest> {
private static final FluentTest other = new FluentTest();
int here = 0;
@Test
public void test() throws Exception {
assertReach(() -> let(f -> here()));
assertRea... | 24.913793 | 86 | 0.583391 |
43a6977530c07bd55d6cbdd2f6ec877ddebeb54e | 8,868 | package com.didichuxing.doraemonkit.aop;
import android.app.Activity;
import android.app.Application;
import android.app.Service;
import android.util.Log;
import com.didichuxing.doraemonkit.kit.timecounter.TimeCounterManager;
import java.util.concurrent.ConcurrentHashMap;
/**
* ====================================... | 38.38961 | 173 | 0.492558 |
3e1c080990a660ef24f387c23110499d3d898c3f | 2,926 | package org.smartregister.eusm.processor;
import android.content.Context;
import android.content.Intent;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import org.smartregister.CoreLibrary;
import org.smartregister.domain.Client;
import org.smartregister.domain.Event;
import org.smartregister.d... | 36.123457 | 129 | 0.654135 |
24122cf0db9cf4a91cd67b12d234e6d722637f80 | 371 | package com.example.nested;
import java.util.Date;
public class PhotoDto {
private String url;
private Date createdAt;
public PhotoDto(String url, Date createdAt) {
this.url = url;
this.createdAt = createdAt;
}
public String getUrl() {
return url;
}
public Date ... | 16.130435 | 49 | 0.614555 |
819dec06349b7b11ed59cfdb87b9f9dba0c630d8 | 2,670 | package com.ansill.lock.autolock.test;
import com.ansill.lock.autolock.AutoLock;
import com.ansill.lock.autolock.ThrowableRunnable;
import com.ansill.lock.autolock.ThrowableSupplier;
import org.junit.jupiter.api.DisplayName;
import javax.annotation.Nonnull;
import java.time.Duration;
import java.util.concurrent.TimeU... | 34.675325 | 114 | 0.776404 |
96724c40ba0378e64a1150b84509c39d49e69153 | 1,974 | package com.odde.snowball.controller.onlinetest;
import com.odde.TestWithDB;
import com.odde.snowball.model.onlinetest.Category;
import com.odde.snowball.model.onlinetest.OnlineTest;
import com.odde.snowball.model.onlinetest.Question;
import org.apache.commons.lang3.StringUtils;
import org.junit.Before;
import org.jun... | 30.369231 | 126 | 0.722898 |
8c8ca79eb70f6946aae8fccc79f0f9dadd35bdb9 | 745 | package io.circleline.filter.auth;
import org.junit.Test;
import javax.servlet.http.HttpServletRequest;
import java.util.Base64;
import static org.junit.Assert.*;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
/**
* Created by 1002515 on 2016. 2. 22..
*/
public class StandardAuthT... | 24.032258 | 70 | 0.684564 |
a0b53bd056555dd7d7ad8c75d8fd128e05adbda8 | 10,162 | package leppa.planarartifice.util;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
import net.mi... | 51.846939 | 153 | 0.671423 |
924f580d5e08964685ce52a6eb3e6c87a5e31911 | 2,442 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | 30.148148 | 94 | 0.710483 |
879ed86ad4b959522b7f811574a4a1c80a222504 | 4,849 | package se.atg.sam.helpers;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Optional;
... | 28.523529 | 145 | 0.6424 |
8dcae1a1efe462e568915eeff1adc75df7923a8c | 6,264 | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | 31.796954 | 113 | 0.700192 |
22bc240fe8bd90a53e34c489284eacbb9c7ef3a9 | 3,559 | package com.litianyi.search.service.impl;
import com.alibaba.fastjson.JSON;
import com.litianyi.common.to.es.SkuEsModel;
import com.litianyi.search.constant.EsConstant;
import com.litianyi.search.service.ProductSaveService;
import lombok.extern.slf4j.Slf4j;
import org.elasticsearch.action.bulk.BulkItemResponse;
import... | 36.690722 | 116 | 0.686148 |
6190c71846a1279dc11829b1b1da7c846f85992a | 3,384 | package me.gregorias.dfuntest;
import me.gregorias.dfuntest.util.FileUtils;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Path;
import java.util.List;
/**
* Environment on local host with specified home path
*/
public class LocalEnvironment extends Abstra... | 26.4375 | 98 | 0.702719 |
24a4ebc8f98ed8bbd7965090a9d5c778baecf2e5 | 1,651 | package com.dlgdev.teachers.helpbook.views.courses.fragments;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.dlgdev.teachers.he... | 27.065574 | 91 | 0.774076 |
ed1fcb81c89e9a4c840a1a3cc7e796275bb6a42b | 1,837 | package com.springrod.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.springrod.annotation.FieldProperty;
/**接口返回*/
public class ResponseBase<T> implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
public void error(){
... | 14.579365 | 53 | 0.614045 |
c8307e358089acb982dbc935c03719a3cf245006 | 1,083 | package edu.carleton.comp.cdstore.product.webservice;
import java.util.HashMap;
import java.util.Map;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import com.alibaba.fastjson.JSON;
import edu.carleton.com... | 24.066667 | 97 | 0.709141 |
7108d61372340a0f35282aced7867ff22bf0aa63 | 36 | package ghost.framework.core.module; | 36 | 36 | 0.861111 |
98ce66cb07f4ca11f18049c470c6fef2ec507669 | 7,764 | /*
* Copyright (c) 2015-2020, Oracle and/or its affiliates. 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
*
... | 36.622642 | 179 | 0.595054 |
3d45914bcf75229ca70826c810d2388777a17e06 | 815 | package cpi.server.handlers.request;
import com.smartfoxserver.v2.entities.Room;
import com.smartfoxserver.v2.entities.data.ISFSObject;
import com.smartfoxserver.v2.entities.data.SFSObject;
import com.smartfoxserver.v2.extensions.BaseClientRequestHandler;
import com.smartfoxserver.v2.entities.User;
public class GetTi... | 35.434783 | 76 | 0.72638 |
f488f685bd842ab55836f2fee6ba894dcbfeeb8b | 576 | package com.project.sell.utils;
import java.util.Random;
/**
* @Author: HB
* @Description: 生成唯一主键工具类
* @CreateDate: 20:38 2020/10/27
*/
public class KeyUtil {
/**
* @Author: HB
* @Description: 生成唯一主键 时间 + 随机数
* @Date: 20:39 2020/10/27
* @Params: null
* @Returns:
*/
public st... | 19.2 | 67 | 0.605903 |
77c36ea537b17a26afac2fb66e69eaf102bb888b | 5,489 | /*
* 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 ... | 44.626016 | 118 | 0.779377 |
bc03819953bcefe60f376ddad5d486d308e0e282 | 132 | public class P01_HelloSoftUni {
public static void main(String[] args) {
System.out.print("Hello SoftUni");
}
}
| 22 | 46 | 0.628788 |
e0099659561bdb09e4630cb6a4e3bf719a7b9e60 | 2,150 | package algorithms;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
public class TwoSum {
private static final int RANDOM_ARRLEN = 100000000;
private static final int RANDOM_MAX_VALUE = 90000000;
private static final int BITMAP_MAXLEN = 0x20000000; //2^29
public static void main(String... | 27.21519 | 76 | 0.641395 |
f49cc3dac684fafb840287f310d38fbd0718b293 | 2,674 | package gui.old.app;
import com.jfoenix.controls.JFXTextField;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.value.ChangeListener;
import javafx.scene.input.KeyEvent;
class IntegerTextField extends JFXTextField {
private final IntegerProperty v... | 29.711111 | 99 | 0.696335 |
ee23cd46f2b0ec3867c8b75b728560cabc9b82fa | 4,128 | package upenn.junto.util;
import gnu.trove.map.hash.TObjectIntHashMap;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import upenn.junto.config.*;
im... | 31.272727 | 98 | 0.640746 |
6c4de1b716593b75dd76020f49950b09a84b8d4e | 16,147 | package org.opencds.cqf.cql.evaluator.measure.dstu3;
import org.apache.commons.lang3.StringUtils;
import org.hl7.fhir.dstu3.model.MeasureReport;
import org.hl7.fhir.dstu3.model.Extension;
import org.hl7.fhir.dstu3.model.Reference;
import org.hl7.fhir.dstu3.model.StringType;
import org.hl7.fhir.dstu3.model.CodeableConc... | 44.482094 | 209 | 0.588964 |
0bfb80fe6779f5ca78a5ffd4a606638f900d0a90 | 3,211 | package org.gov.uk.homeoffice.digital.permissions.passenger.admin.wicu;
import org.jdbi.v3.core.mapper.RowMapper;
import org.jdbi.v3.core.statement.StatementContext;
import org.jdbi.v3.sqlobject.config.RegisterRowMapper;
import org.jdbi.v3.sqlobject.customizer.Bind;
import org.jdbi.v3.sqlobject.customizer.BindFields;
... | 44.597222 | 130 | 0.673933 |
5444504fa5c5e60dc03645d2ac690ed58c3f2b8c | 4,431 | package com.mycompany.myapp;
import android.app.*;
import android.location.Address;
import android.location.Criteria;
import android.location.Geocoder;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.*;
import android.text.format.DateFormat;
import android... | 29.939189 | 134 | 0.635522 |
74185c93da220ac242e63aaadb4dcdd749835579 | 4,699 | package io.bootique.command;
import io.bootique.BQModuleProvider;
import io.bootique.BQRuntime;
import io.bootique.cli.Cli;
import io.bootique.meta.application.CommandMetadata;
import io.bootique.unit.BQInternalTestFactory;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import java.util.HashSe... | 36.146154 | 109 | 0.68738 |
849806805d6b34306efbe5b2634261a66a633673 | 1,466 | package com.matsuyoido.plugin.markdown.task;
import java.io.File;
import org.gradle.api.Action;
import org.gradle.api.tasks.incremental.IncrementalTaskInputs;
import org.gradle.api.tasks.incremental.InputFileDetails;
/**
* MockIncrementalTaskInputs
*/
public class MockIncrementalTaskInputs implements IncrementalTa... | 23.645161 | 79 | 0.595498 |
a0e31a5e46e0db676ccde5229967d3c1f85df978 | 1,850 | package pl.jasinski.tomasz.user.manager.dao;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Properties;
import java.util.logging.Logger;
public class IDGeneratorWithResour... | 29.365079 | 87 | 0.593514 |
f0b063aaee12148816da1ce533dea8096bfcc51d | 1,440 | /*
* 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.steeplesoft.photobeans.main.factories;
import com.steeplesoft.photobeans.main.nodes.MonthNode;
import com.steeplesoft.phot... | 30.638298 | 92 | 0.720833 |
7ec0f9fd34be6a34da1e2cc08e68cf79804c584b | 2,248 | package com.cognifide.aem.dash.core.launchers.predefined;
import java.util.Map;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.ConfigurationPolicy;
import org.apache.felix.scr.annotations.Properties;
import org.apache.felix.scr.annotations.Property;
import org.apach... | 34.060606 | 187 | 0.751335 |
00d8766d07d02babf5a49273f2ec2e20c995fa4f | 753 | /* ************************************************************************
#
# designCraft.io
#
# http://designcraft.io/
#
# Copyright:
# Copyright 2014 eTimeline, LLC. All rights reserved.
#
# License:
# See the license.txt file in the project's top-level directory for details.
#
# Authors:
# ... | 26.892857 | 138 | 0.569721 |
aa4541724bf65d172b0c14262eb162b1de22b858 | 6,248 | package org.bc.pqc.jcajce.provider.mceliece;
import java.io.ByteArrayOutputStream;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;... | 33.234043 | 158 | 0.698624 |
9d5b5c14d3572c9f246a00480c2a3f5496cc6e92 | 201 | package com.sys1yagi.fragmentcreator.exception;
public class UnsupportedTypeException extends RuntimeException {
public UnsupportedTypeException(String message) {
super(message);
}
}
| 22.333333 | 64 | 0.771144 |
4d2d384cfb0d0b58bb3bb252c599c32a3c614051 | 512 | package bootcamp.topic3.shoppingcart;
public class FakeUserDAO implements UserDAO{
public FakeUserDAO() {
}
@Override
public boolean insert(User user) {
System.out.println("User inserted");
return true;
}
@Override
public boolean delete(User user) {
System.out.println("User deleted");
return true;
}... | 16 | 44 | 0.697266 |
801a7be5480cbcf278cd3b9d3632122e75b4c166 | 262 | package org.corfudb.util.serializer;
/** Represents an object which the serializer may hash.
* Created by mwei on 7/16/17.
*/
public interface ICorfuHashable {
/** Generate a hash for this object to be used by Corfu. */
byte[] generateCorfuHash();
}
| 23.818182 | 63 | 0.706107 |
6c45923ffec6f6819b1897b40479232dcabe0072 | 134,115 | /*
* Copyright (c) 2009 - 2017 - Pierre-Laurent Coirer, Frank Hossfeld
*
* 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... | 36.753905 | 258 | 0.637736 |
cffc51135c39f8f712ddd2043bec3b971e861e1e | 1,098 | package com.github.vimboard.mapper;
import com.github.vimboard.domain.Group;
import org.apache.ibatis.type.BaseTypeHandler;
import org.apache.ibatis.type.JdbcType;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class GroupTypeHand... | 28.894737 | 73 | 0.723133 |
cc867d601964102589d5a693fa67b3f072aff8da | 1,373 | // Copyright 2021 Christian Schmitz
// SPDX-License-Identifier: Apache-2.0
package xyz.tynn.astring;
import static xyz.tynn.astring.AssertParcelable.assertParcelable;
import org.junit.Test;
import java.util.Date;
public class ParcelableAStringTest {
public static final int RES_ID = 123;
public static fi... | 28.604167 | 92 | 0.739985 |
eec2456896b7ed812d33e944457cd34288a7169e | 4,139 | package com.etkin.app.network.response;
import java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Event {
@SerializedName("eventid")
@Expose
private Integer eventid;
@SerializedName("userid")
@Expose
private Integer user... | 21.010152 | 55 | 0.631554 |
68c11f64f0bce623308133debd63b388f09a7956 | 1,469 | package cc.mrbird.febs.basicInfo.mapper;
import cc.mrbird.febs.basicInfo.entity.School;
import cc.mrbird.febs.basicInfo.entity.SchoolTimetable;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;... | 23.31746 | 115 | 0.746086 |
5a8bd85a0c166e59263751aa677122187822aab9 | 336 | package dev.buesing.ksd.builder;
import com.beust.jcommander.Parameter;
import dev.buesing.ksd.tools.config.BaseOptions;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class Options extends BaseOptions {
@Parameter(names = { "--delete-topics" }, description = "")
private boolean deleteTop... | 21 | 63 | 0.752976 |
02d2f69a37db838e13afbbd4e0d90b6b3905fd0b | 228 |
import java.util.*;
class interactiveProblen {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int x;
x = sc.nextInt();
System.out.println(x);
}
}
| 16.285714 | 41 | 0.666667 |
baccd8be39b5efaa04eae6d421a7ed90090fd4b1 | 554 | package perryplaysmc.dynamicgui.utils.nbt.types;
import perryplaysmc.dynamicgui.utils.nbt.NBTBase;
/**
* Creator: PerryPlaysMC
* Created: 10/2020
**/
@SuppressWarnings("unused")
public class NBTShort implements NBTBase {
private final Short value;
public NBTShort(Short value) {
this.value = value... | 17.3125 | 49 | 0.631769 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.