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 |
|---|---|---|---|---|---|
55aa4a48a57d3c28fbc48414eca566bbdfc414fa | 1,963 | package com.konnectkode.liquibase.runtime;
import io.agroal.api.AgroalDataSource;
import liquibase.Liquibase;
import liquibase.database.Database;
import liquibase.database.DatabaseConnection;
import liquibase.database.DatabaseFactory;
import liquibase.database.jvm.JdbcConnection;
import liquibase.exception.DatabaseExc... | 35.690909 | 124 | 0.776872 |
52a9f207d1d51ffc3ea415367b040474ce2fa70d | 2,128 | package com.classpath.ordersapi.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.confi... | 50.666667 | 112 | 0.707237 |
80515baa43c6705b50cbfd22b8cd1c2264745426 | 1,156 | package com.emramirez.islandtrip.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.Set;
import java.util.UUID;
@Data... | 23.591837 | 63 | 0.737889 |
ac4759f7caa4672cd43174c944e2724380316de2 | 1,566 | package org.hisp.dhis.client.sdk.ui.bindings.commons;
import android.content.Context;
import android.support.annotation.NonNull;
import org.hisp.dhis.client.sdk.android.api.D2;
import org.hisp.dhis.client.sdk.android.api.utils.LoggerImpl;
import org.hisp.dhis.client.sdk.ui.AppPreferences;
import org.hisp.dhis.client.... | 27.964286 | 112 | 0.739464 |
dc0c8a878a37640832ec2d3bc36870446b030f50 | 2,139 | package com.focus.cos.api.email.io;
import java.io.IOException;
import java.io.InputStream;
public class InputStreamResource extends AbstractResource
{
private final InputStream inputStream;
private final String description;
private boolean read = false;
/**
* Create a new InputStreamResource.
*
* @para... | 22.515789 | 131 | 0.719028 |
4abcb59f3fd6fe026d8f57cdc52b1ed2fa12713a | 934 | package tutorials.daysofcode30;
import java.util.Scanner;
import java.util.regex.Pattern;
public class DataTypes {
public static void main(String[] args) {
try(Scanner scan = new Scanner(System.in)) {
int i = 4;
double d = 4.0;
String s = "HackerRank ";
f... | 26.685714 | 73 | 0.505353 |
8190f1776656f4aa8146a22376b7b65d9decc625 | 195 | class EntryPoint {
public static void main(String[] args) {
Point p = new Point();
Point q = new Point();
}
}
class Point extends DoesNotExist {}
class Point {}
class Point {} | 16.25 | 42 | 0.625641 |
55d1043a5b62f942e11cd4f2d9618f2343db7e9a | 809 | package xyz.hcworld.hcwblog.service;
import xyz.hcworld.hcwblog.commont.lang.Result;
import xyz.hcworld.hcwblog.entity.UserCollection;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author Kenith-Zhang
* @since 2020-07-12
*/
public interface UserCollectionService exten... | 19.261905 | 73 | 0.636588 |
bc8a261cc9e78157d4735e7e0c71ed2c601b2a28 | 145 | package io.vertx.core.eventbus;
/**
* @author <a href="http://tfox.org">Tim Fox</a>
*/
public interface Copyable {
public Object copy();
}
| 14.5 | 48 | 0.648276 |
fce5289cf0f4fb91c2324edd423b6e819eeee40a | 1,051 | package com.tresorit.zerokitsdk.component;
import android.content.Context;
import android.content.SharedPreferences;
import com.tresorit.zerokit.Zerokit;
import com.tresorit.zerokitsdk.module.AdminApiModule;
import com.tresorit.zerokitsdk.module.ApplicationModule;
import com.tresorit.zerokitsdk.module.EventBusModule;... | 27.657895 | 62 | 0.749762 |
6946ecb8748bd5f86278048ab628dd762f86b4b6 | 909 | package io.github.glytching.junit.extension.testname;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
impo... | 24.567568 | 57 | 0.773377 |
f439d43603715f791349dc3858ee309de08bd81c | 11,431 | package com.mx.pro.lib.fragmentation.support;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.IdRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
im... | 28.939241 | 140 | 0.700901 |
c28f24d9d8fb62e5db04afa28619d1f09bbc543f | 17,335 | /*
* 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 javaapplication3;
import javax.swing.JOptionPane;
/**
*
* @author kauha
*/
public class TelaCadastroCliente extends javax.... | 54.857595 | 174 | 0.66184 |
66ab655c751df13b554b0bad6a13979aa2b0a1d5 | 3,574 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* You may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* d... | 29.783333 | 108 | 0.627868 |
42621d4eeef1023cd60f0cc56a0ad208ad6fa0b1 | 3,065 | /*
* 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")... | 33.681319 | 80 | 0.696574 |
3def7828a51694424f585dcba32aaa68304b7ce9 | 2,927 | /*
You have to represent a point in 2D space. Write a class with the name Point. The class needs two fields (instance variables) with name x and y of type int.
The class needs to have two constructors. The first constructor does not have any parameters (no-arg constructor).
The second constructor has parameters x an... | 39.026667 | 157 | 0.640929 |
029d4c7fa2fb4e07807218088346a75a00edf8ac | 6,601 | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 37.72 | 102 | 0.706105 |
59bfcfaa8dfb4c06fc225e187e2359143f360057 | 5,154 | package eu.bcvsolutions.idm.vs.event.processor;
import java.util.List;
import java.util.Objects;
import org.apache.commons.codec.binary.StringUtils;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import... | 35.061224 | 112 | 0.752425 |
5e4bd2e40fed9fb235309b71c61fe01a75d04b4c | 1,034 | package com.github.czyzby.lml.parser.impl.attribute.building;
import com.github.czyzby.lml.parser.LmlParser;
import com.github.czyzby.lml.parser.impl.tag.builder.AlignedLmlActorBuilder;
import com.github.czyzby.lml.parser.tag.LmlBuildingAttribute;
import com.github.czyzby.lml.parser.tag.LmlTag;
/** Allows to build wi... | 41.36 | 115 | 0.774662 |
38dad1754b55253f7525ddcd825b356d0e71e5cb | 5,694 | /*
* This file is a component of thundr, a software library from 3wks.
* Read more: http://www.3wks.com.au/thundr
* Copyright (C) 2013 3wks, <thundr@3wks.com.au>
*
* 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... | 26 | 89 | 0.626976 |
5665bcfa4a9e55d1f0b30f33bf9c7c9bd7d7a996 | 1,082 | package io.github.bloodbitt.facecraft.init;
import io.github.bloodbitt.facecraft.FaceCraft;
import io.github.bloodbitt.facecraft.blocks.BaldFaceBlock;
import io.github.bloodbitt.facecraft.blocks.FaceBlock;
import io.github.bloodbitt.facecraft.blocks.FaceOre;
import io.github.bloodbitt.facecraft.blocks.Oven;
import net... | 43.28 | 123 | 0.808688 |
347a55037b56a976c0e565e50ae4d2b4b4254ff2 | 1,091 | package P00_ShapesDrawing;
public class Rectangle implements Drawable {
private int height;
private int width;
public Rectangle(int height, int width) {
this.height = height;
this.width = width;
}
public int getHeight() {
return height;
}
public voi... | 23.212766 | 60 | 0.444546 |
14fb43f5201ce2150d30d0a8319b5fddbc7fb77f | 1,221 | package com.zhzx.ims.mapper;
import com.zhzx.ims.domain.CustomerInfo;
import java.util.List;
/**
* 客户信息Mapper接口
*
* @author kiver
* @date 2019-12-04
*/
public interface CustomerInfoMapper
{
/**
* 查询客户信息
*
* @param customerInfoId 客户信息ID
* @return 客户信息
*/
publ... | 19.693548 | 81 | 0.580672 |
cd42f6d4049dbf721fdef046f6d625af1a0fa910 | 664 | package com.readlearncode.lesson1.section2.subsection4;
/**
* Source code github.com/readlearncode
*
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class PrimitiveWrapper {
public static void main(String... args){
Integer score = new Integer(1_000_00);
byte result = sc... | 23.714286 | 55 | 0.64006 |
ee7fcb9a3c66c4a92905f9038728edb19e23ec7f | 2,585 | import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class Day10 {
public static void main(String[] args) {
ArrayList<CodeLine> lineList;
if (args.length >= 2) {
lineList = parseDataFile(ar... | 29.375 | 89 | 0.566731 |
2b3226c21ddd7a340b56c6dec8202a033ae19d6d | 1,976 | /**
* 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... | 40.326531 | 97 | 0.779858 |
12934534b3381b36719af7bf400a1309040ce9aa | 2,745 | /*
* Copyright (c) 2017 Tran Le Duy
*
* 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... | 30.164835 | 93 | 0.726776 |
efe0485d05ff16504edb3e544e625905b665ea5a | 795 | package com.ps.repos.impl;
import com.ps.ents.User;
import com.ps.repos.UserRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import javax.sql.DataSource;
import java.util.Set;
/**
* Created by iu... | 24.090909 | 78 | 0.737107 |
41d26a4dcc090e663cf80238eec1b4ed179de676 | 277 | package com.example.springboot.mapper;
import com.example.springboot.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author zengzl
* @since 2022-03-23
*/
public interface MenuMapper extends BaseMapper<Menu> {
}
| 16.294118 | 55 | 0.714801 |
b88c4f2333a448e0998ca12dd42289cf949b3666 | 2,174 | /**
* Copyright © 2017 Jeremy Custenborder (jcustenborder@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 34.507937 | 79 | 0.731371 |
ee63075d41088f3dff87cdf4207a2fc8d79c9961 | 20,699 | /**
*
*/
package com.github.jearls.SPRaceTracker.ui;
import java.awt.Dimension;
import java.awt.DisplayMode;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.WindowAdapter;
import java.awt.eve... | 41.731855 | 167 | 0.570414 |
091fabee78586c25fc60a16bcae3f90ff7fa61d8 | 937 | package com.yolosh.android.model;
public class CollectionObject {
private String urlImage;
private int imageId;
private String likeNumber;
private String ViewNumber;
public CollectionObject(String urlImage, int imageId, String likeNumber,
String viewNumber) {
super();
this.urlImage = urlImage;
this.imag... | 18.372549 | 73 | 0.734258 |
4727dd80d0835420f286ad24a3c328a364864f49 | 3,407 | /*
* Latke - 一款以 JSON 为主的 Java Web 框架
* Copyright (c) 2009-present, b3log.org
*
* Latke is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWA... | 35.123711 | 204 | 0.627532 |
57ef6425d99c11fe60ffc0633f4cc9da3bcdd7fc | 931 | package com.mongodb;
public class BulkWriteUpsert
{
private final int index;
private final Object id;
public BulkWriteUpsert(int index, Object id)
{
this.index = index;
this.id = id;
}
public int getIndex()
{
return index;
}
public Object g... | 9.8 | 65 | 0.522019 |
35a62f174f27ad461aebbe85e1e847960c0b374a | 158 | package trabalhofinal.diego.nathan.otes06.udesc.trabalho_final_android.ui;
public interface OnDirectorClickListener<T> {
void onDirectorClick(T item);
}
| 26.333333 | 74 | 0.816456 |
958cc12f0d8016b011977ad53de6fbeff920cae1 | 1,602 | package io.dazraf.vertx.futures.filters;
import java.util.function.Consumer;
import io.dazraf.vertx.consumer.Consumer2;
import io.dazraf.vertx.consumer.Consumer3;
import io.dazraf.vertx.consumer.Consumer4;
import io.dazraf.vertx.consumer.Consumer5;
import io.dazraf.vertx.tuple.Tuple2;
import io.dazraf.vertx.tuple.Tup... | 32.04 | 128 | 0.706617 |
b7eaec75581c7d511a92437322565df269ebf2ee | 1,341 | package com.hebaja.auction.model;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.math.BigDecimal;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
class PlayerTest {
private Player player1;
priv... | 29.8 | 78 | 0.683072 |
cc9fada10db5d6f77aa115991df89d9a42801dce | 195 | package com.windea.java.annotation;
import java.lang.annotation.*;
/**
* 已测试的代码的注解。
*/
@Documented
@Retention(RetentionPolicy.SOURCE)
public @interface Tested {
String value() default "";
}
| 15 | 35 | 0.728205 |
a7fc18afa5c7c2a035d63735684b3c0aa16e1fcc | 362 | package com.example.vidbregar.bluepodcast.dagger.provider;
import com.example.vidbregar.bluepodcast.ui.main.favorites.FavoritesFragment;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;
@Module
public abstract class FavoritesFragmentProvider {
@ContributesAndroidInjector
abstract Favo... | 24.133333 | 77 | 0.839779 |
2ca4ae6bce26e078bf4f28758ac7567a3a8c3753 | 363 | package com.hyrax.microservice.project.rest.api.security;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Component;
@Component
public class AuthenticationUserDetailsHelper {
public String getUsername() {
return SecurityContextHolder.getContex... | 27.923077 | 80 | 0.801653 |
5a881ffb4824fcc9d5e198d713575c303d829ad0 | 3,299 | /*
* 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.lacv.marketplatform.controllers.rest.process;
import com.lacv.marketplatform.dtos.process.BasicResultDto;
impo... | 37.488636 | 150 | 0.7087 |
ed6cad4935978c0e325423ed4c3546d52ba79f37 | 484 | package com.frank.user.api.ip.ali.bean;
import com.alibaba.fastjson.annotation.JSONField;
public class FSIPResult {
@JSONField(name="ret")
private String ret;
@JSONField(name="data")
private FSIPData data;
public String getRet() {
return ret;
}
public void setRet(String ret) {
... | 17.925926 | 49 | 0.613636 |
c1f43fb4ac211c010a57095d9f93d39742db8739 | 15,311 | /**
*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 n... | 32.646055 | 418 | 0.658873 |
ad3f4a4bb8326a905e76e822ce0d56c034cd6e3f | 1,794 |
package org.apache.catalina.ssi;
import java.io.IOException;
import java.io.PrintWriter;
/**
* Implements the Server-side #include command
*
* @author Bip Thelin
* @author Paul Speed
* @author Dan Sandberg
* @author David Becker
*/
public final class SSIInclude implements SSICommand {
/**
* @see SSIC... | 35.176471 | 76 | 0.548495 |
0bd736c6171c08dbccc66d819cc1ba8be981a3a1 | 799 | /**
*/
package org.eclipse.epf.uma.tests;
import org.eclipse.epf.uma.VariabilityElement;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Variability Element</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
public abstract class VariabilityElementTest extends MethodElementTest {
/**
... | 21.594595 | 74 | 0.659574 |
eef69661fb7c994030637e03f071cf5ace689a20 | 1,671 | package com.il360.xiaofeiyu.model.order;
import java.io.Serializable;
import java.math.BigDecimal;
public class PayFeeOrder implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private Integer payFeeId;//缴费订单id
private Integer userId;//用户ID
private String payFeeOrderNo;//缴费... | 20.62963 | 53 | 0.728306 |
72a76634f51193486daf8ee4134a11cd9ffaa58e | 16,853 | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 37.203091 | 139 | 0.708183 |
b3973d03a4158109c4427b8a8a3be82dac1a4606 | 4,144 | package artisynth.tools.rotation;
import maspack.matrix.Point3d;
import maspack.matrix.Vector3d;
import artisynth.core.mechmodels.Frame;
import artisynth.core.modelbase.MonitorBase;
import artisynth.core.util.TimeBase;
import artisynth.tools.rotation.RotationAxis.AxisValidity;
public class Rotation2DComputer extends ... | 25.73913 | 87 | 0.574566 |
76b9e6144644a81b46683a315dc8ebb7f2f5a050 | 1,474 | /*
* Mckoi Software ( http://www.mckoi.com/ )
* Copyright (C) 2000 - 2015 Diehl and Associates, 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/lic... | 23.774194 | 75 | 0.683853 |
73222ae6493fa886db096e0eacf3a948c2cb79dc | 6,787 | /*
*BSD 2-Clause License
*
*Copyright (c) 2019, itinordic All rights reserved.
*
*Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
*conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this ... | 44.94702 | 222 | 0.706498 |
3de65af0402c4b73dfaa7500114ccfa27a463137 | 541 | // Copyright 2013 Square, Inc.
package org.assertj.android.api.animation;
import android.animation.Animator;
import android.annotation.TargetApi;
import static android.os.Build.VERSION_CODES.HONEYCOMB;
/**
* Assertions for {@link Animator} instances.
* <p>
* This class is final. To extend use {@link AbstractAnima... | 27.05 | 92 | 0.774492 |
af3485e79401e4885e3a28247c0892029191aeae | 3,366 | package com.secuconnect.demo.api_integration_of_smart_checkout;
import com.secuconnect.client.ApiException;
import com.secuconnect.client.Environment;
import com.secuconnect.client.api.SmartTransactionsApi;
import com.secuconnect.client.model.*;
import com.secuconnect.demo.Globals;
/**
* API Integration of Smart Che... | 40.071429 | 140 | 0.497623 |
3f9ac738da1b3c96c5a2e3c6657b9bee476d7fea | 2,268 | package com.akshatjain.codepath.tweeter.data;
import com.google.gson.annotations.SerializedName;
import org.parceler.Parcel;
/**
* Created by akshatjain on 8/4/16.
*/
@Parcel
public class User {
@SerializedName("id")
public long id;
@SerializedName("name")
public String name;
@SerializedName... | 21 | 113 | 0.601852 |
45930520a66381fde4f6b2485958c0d88188db56 | 184 | package ru.iopump.qa.allure.entity;
import org.junit.Test;
public class ReportEntityTest {
@Test
public void sizeKB() {
}
@Test
public void checkUrl() {
}
} | 13.142857 | 35 | 0.630435 |
4f47e0baa0c4053bc06aef25c89e10e8f04ce3af | 1,165 | package AllClasses;
import javafx.scene.layout.AnchorPane;
import javafx.scene.shape.Rectangle;
import java.util.ArrayList;
public class Fight extends Rectangle {
public static ArrayList<Fight> fights=new ArrayList<>();
public static ArrayList<FightAnimation> fightAnimations =new ArrayList<>();
... | 31.486486 | 84 | 0.642918 |
8cf50f550a6f4de620ca0054d953bbf42a447635 | 2,400 | package com.cool.util;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONException;
import com.github.pagehelper.PageInfo;
/**
* 页面工具类
*/
public cl... | 23.076923 | 93 | 0.685833 |
5c1fe0be2939fd8a5d73fbe75c706fd086184985 | 2,045 | package beforeApril.firstDay;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
/**
* Created by Alex_Xie on 12/01/2017.
*
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.
This is case sensiti... | 23.505747 | 146 | 0.526161 |
0ba556f322fd649906fc8beb0b98c049bf6d2c05 | 200 | package com.mit.community.mapper;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.mit.community.entity.ConfigInfo;
public interface ConfigInfoMapper extends BaseMapper<ConfigInfo>{
}
| 22.222222 | 65 | 0.835 |
1dfba5fa3a9c11bad70361b557c1ce6e0b92595f | 816 | package handymods.block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import... | 27.2 | 171 | 0.792892 |
f2048e69c0bbed21b1c354698a1f42d6bfc24923 | 835 | package chris.HackerRank;
import java.util.Scanner;
import java.util.stream.IntStream;
public class HrPlusMinus {
static void plusMinus(int[] arr) {
double n = arr.length;
long pos = IntStream.of(arr).filter(x -> x > 0).count();
long neg = IntStream.of(arr).filter(x -> x < 0).count();
... | 29.821429 | 66 | 0.542515 |
785aebe3790ae779b0279158fd86c4f9241619c7 | 6,080 | package com.github.hinaser.gfma.browser;
import com.github.hinaser.gfma.settings.ApplicationSettingsService;
import com.github.hinaser.gfma.template.ErrorTemplate;
import com.github.hinaser.gfma.template.MarkdownTemplate;
import org.apache.commons.lang.exception.ExceptionUtils;
import java.io.File;
import java.io.Fil... | 47.131783 | 134 | 0.567763 |
66ae6e588adca60ad46f01c2a518f6a0acb3e54e | 2,012 | package com.letv.core.parser;
import com.letv.core.bean.TicketShowListBean;
import com.sina.weibo.sdk.component.WidgetRequestParam;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONObject;
public class TicketShowListParser extends LetvMasterParser<TicketShowListBean> {
protected boolean ... | 37.962264 | 112 | 0.597416 |
3cb9804134bb3a87123386f4f766ecffb62a7177 | 175 | package poussecafe.source.models.p214;
import poussecafe.util.StringId;
public class A2Id extends StringId {
public A2Id(String value) {
super(value);
}
}
| 14.583333 | 38 | 0.697143 |
4b2a754e499810dbe67cd093bbe76e76b6780ab8 | 478 | package com.github.zuihou.gateway.feign;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* TODO 日志接口 待实现
*
* @author zuihou
* @createTime 2017-12-13 15:09
*/
@FeignClient("... | 26.555556 | 73 | 0.763598 |
7288c1f56b3388c461e8c37ec782045a5e9064ea | 999 | package buildInPresets;
import presets.AbstractMieParticlePreset;
public class NaCLInAir extends AbstractMieParticlePreset {
public NaCLInAir() {
setName("NaCl in Air");
checkForWavelengthMismatch=false;
//how to use wavelength sensitive refractive indices:
refractiveIndexMedium.put(0.673, 1d)... | 31.21875 | 59 | 0.747748 |
750e81fe2e18df0e4e7de51b2ae33d8c8ce55084 | 1,837 | /* */ package org.apache.commons.collections.primitives.adapters;
/* */
/* */ import java.io.Serializable;
/* */ import java.util.Collection;
/* */ import org.apache.commons.collections.primitives.LongCollection;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/... | 21.114943 | 134 | 0.443114 |
820b530226122563c94bb9f2d40c69515227e072 | 3,442 | /*
* Copyright 2010 Last.fm
*
* 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... | 35.854167 | 84 | 0.737071 |
be3239111462e01a04c372aada6905841c53e47b | 1,237 | /*
*/
package multiplechoiceprototype.controllers;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author MP
*/
public class DBController implements DBInterface {
public DBController() {
}
@Override
public List<String> getQuestions(String subject) {
... | 27.488889 | 98 | 0.611156 |
d0b90f9578f893bb73d7a382da8c0dce4916c3af | 446 | package technology.dice.dicewhere.downloader.md5;
public class MD5ChecksumResult {
MD5Checksum originalChecksum;
MD5Checksum processedChecksum;
public MD5ChecksumResult(MD5Checksum originalChecksum, MD5Checksum processedChecksum) {
this.originalChecksum = originalChecksum;
this.processedChecksum = proce... | 27.875 | 89 | 0.802691 |
8be5f864c24be2d0b2e52bc80956b4a808c6ba50 | 1,469 | package _leetcode._CONTEST._biweekly._75;
import java.util.Arrays;
/**
* @Description: 6035. 选择建筑的方案数
* 给你一个下标从 0 开始的二进制字符串 s ,它表示一条街沿途的建筑类型,其中:
* s[i] = '0' 表示第 i 栋建筑是一栋办公楼,
* s[i] = '1' 表示第 i 栋建筑是一间餐厅。
* 作为市政厅的官员,你需要随机 选择 3 栋建筑。然而,为了确保多样性,选出来的 3 栋建筑 相邻 的两栋不能是同一类型。
* 比方说,给你 s = "001101" ,我们不能选择第 1 ,3 和 5 栋建筑,因... | 28.25 | 84 | 0.470388 |
b8ff9f35842a9bcd269d84a22b10dded0bac2730 | 1,801 | /**
* Copyright Indra Soluciones Tecnologías de la Información, S.L.U.
* 2013-2019 SPAIN
*
* 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... | 24.013333 | 75 | 0.757357 |
35953e8b355cb1e6be4b238a0717842aa5872b12 | 153 | public class ChunkRenderDispatcher$3 {
// Failed to decompile, took too long to decompile: net/minecraft/client/renderer/chunk/ChunkRenderDispatcher$3
} | 51 | 112 | 0.816993 |
8233dcf9c661cc373d17bceb818e9ee7a1e7835d | 5,760 | package org.square.qa.utilities.fileParsers;
import org.apache.log4j.Logger;
import org.square.qa.utilities.constructs.GeneralUtils;
import org.square.qa.utilities.constructs.workersDataStruct;
import java.io.File;
import java.io.IOException;
import java.util.*;
public class FileParserJStrings {
private static Logg... | 32.178771 | 117 | 0.736111 |
9601bd7e66d788d19d810d1a381532c685887c6a | 374 | package net.minestom.server.event.player;
import net.minestom.server.entity.Player;
import net.minestom.server.event.PlayerEvent;
import org.jetbrains.annotations.NotNull;
/**
* Called when a player stops sneaking.
*/
public class PlayerStopSneakingEvent extends PlayerEvent {
public PlayerStopSneakingEvent(@No... | 23.375 | 60 | 0.764706 |
c2032021e476766db06d4fae1d7df06edeb4d45a | 22,982 | package com.shu.alogrithm.test;
import com.shu.aleetcode.LeetCode;
import org.junit.Test;
import java.util.*;
/**
* @author shuxibing
* @date 2019/8/9 21:15
* @uint d9lab
* @Description:
*/
public class Solution {
/**
* 输入一个矩阵,按照从外向里以顺时针的顺序依次打印出每一个数字,
* 例如,如果输入如下4 X 4矩阵: 1 2 3 4 5 6 7 8 9 10 11 ... | 25.062159 | 151 | 0.436777 |
1fbb44346a84d4a30af8a4a73951daeaa6708053 | 11,901 | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 39.936242 | 98 | 0.701454 |
c501720d6c43b4cd1d1b2b00f9857d88411e80b0 | 1,014 | package com.wxmp.core.page;
public class Pagination<E> extends AbstractPage<E> {
protected int start;
protected int totalItemsCount;
protected int totalPageCount;
public Pagination(){}
public int getTotalItemsCount() {
return totalItemsCount;
}
public void setTotalItemsCount(int totalItemsCount) {
t... | 21.125 | 154 | 0.684418 |
f686ead2b41e84723e7c70284a0e43875567317c | 5,086 | /*
* Copyright © 2017 Cask Data, 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... | 43.844828 | 116 | 0.748525 |
091fb04be9056a438010bd52bf675f2dd9d3cc23 | 849 | /*******************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
*********************************... | 29.275862 | 80 | 0.616019 |
e529919003d62983b32009ba3a5cc40ceb083217 | 3,915 | package com.github.pcimcioch.memorystore.header;
import com.github.pcimcioch.memorystore.encoder.ObjectPoolEncoder;
import com.github.pcimcioch.memorystore.encoder.UnsignedIntegerEncoder;
import java.util.Objects;
import static com.github.pcimcioch.memorystore.encoder.UnsignedIntegerEncoder.MAX_BIT_COUNT;
import sta... | 32.89916 | 141 | 0.655172 |
44a4c398ef730953f4770bba5884461d72e1db6d | 26,392 | /*
* FileName: PaginationDalClient.java
* Author: v_qinyuchen
* Date: 2016年3月30日 下午6:00:07
* Description: //模块目的、功能描述
* History: //修改记录
* <author> <time> <version> <desc>
* 修改人姓名 修改时间 版本号 描述
*/
package org.alljet.dal.client.support;
im... | 31.456496 | 121 | 0.591694 |
8b7d78039ffa615f441118702e68aba2e66e103e | 5,729 | /**
* Given a string S, find the number of different non-empty palindromic subsequences in S,
* and return that number modulo 10^9 + 7.
*
* A subsequence of a string S is obtained by deleting 0 or more characters from S.
* A sequence is palindromic if it is equal to the sequence reversed.
*
* Two sequences A_1... | 34.305389 | 138 | 0.561005 |
b60b40e1e08cef7ee4d7b3636a90da899e259710 | 350 | package takmela.viz.webdoc.tdom.datalog;
import takmelogic.engine.Call;
import takmelogic.engine.Cont;
public class CallAsFact implements ProcessingOp
{
public Call callee;
public Call caller;
public Cont cont;
public CallAsFact(Call callee, Call caller, Cont cont)
{
this.callee = callee;
this.caller = cal... | 18.421053 | 55 | 0.751429 |
a0086470603ad43bf1e1144c400fdefc1e88e924 | 677 | /*
Leola Programming Language
Author: Tony Sparks
See license.txt
*/
package leola.ast;
import leola.vm.EvalException;
/**
* @author Tony
*
*/
public class NamespaceGetExpr extends Expr {
private VarExpr namespace;
private String identifier;
public NamespaceGetExpr(VarExpr namespace, Str... | 16.512195 | 67 | 0.644018 |
f7b20dd90d8b60ae65858877c022c745325bd51d | 542 | package com.sxjs.jd.composition.login;
import android.os.Bundle;
import android.support.annotation.Nullable;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.sxjs.jd.R;
import com.sxjs.common.base.BaseActivity;
/**
* @author:admin on 2017/4/10 15:23.
*/
@Route(path = "/test/login")
public cla... | 25.809524 | 66 | 0.747232 |
c9edcd4b4bf881e4d308a79c26cf2f5e86011ca1 | 1,889 | package com.googlecode.jmeter.plugins.webdriver.config;
import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
impo... | 35.641509 | 106 | 0.802012 |
01ae1b0bfcc041e6acf365789e32bb2ff6b293b4 | 351 | package me.learn.spring.learn1.bean;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
/**
* Created by oneday on 2016/7/13 0013.
*/
@Data
public class Student {
@Autowired
ClassRoom classRoom;
private String name;
public Student(String name) {
... | 18.473684 | 63 | 0.655271 |
cbd64be0578f660ed4ccdd32a3bbecccb478fa21 | 7,336 | /*
* 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 not ... | 36.497512 | 100 | 0.704471 |
4a0747749eb6e36ec3897a1bc5aadd1af71b7b00 | 2,052 | /*******************************************************************************
* Copyright (c) 2000, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 27.72973 | 85 | 0.57846 |
62e5acd8c6ed8bbd8ba3a844d47604d49e26a1f3 | 524 | //generated by abstract-syntax-gen
package minillvm.ast;
import java.util.*;
public interface TypeArray extends Element, Type {
void setOf(Type of);
Type getOf();
void setSize(int size);
int getSize();
Element getParent();
TypeArray copy();
TypeArray copyWithRefs();
void clearAttributes... | 26.2 | 62 | 0.679389 |
a452f5e72821a1bd5bf0cdc7b77d39e0dafef17d | 6,221 | /*
* Copyright 2012 JBoss 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 ... | 42.033784 | 128 | 0.708889 |
0ba42fc3132ae047f89123dc01fb106860ba78a7 | 2,047 | /*
* Copyright (c) 2016 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.management.backup.util;
import java.io.IOException;
import java.io.InputStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ProcessInputStream extends InputStream {
private static final Logger ... | 27.662162 | 110 | 0.615046 |
f692d8f388f3950e37889d4650b4e48db7fe12f4 | 353 | /**
* <p>
* Provides implementation to make formula evaluation result "flat", i.e. to agreggate
* operands for AND or OR logical operations.
* <p>
* This can be used for formula presentation as "flat" formula is not as deep as basic
* SPL formula with binary AND or OR logical operations.
*/
package cz.cuni.mff.... | 39.222222 | 87 | 0.736544 |
6e4a40e5be5df1fdd824c5400488514ee9bd9ce1 | 280 | package com.venky.swf.plugins.collab.extensions.beforesave;
import com.venky.swf.plugins.collab.db.model.user.UserPhone;
public class BeforeValidateUserPhone extends BeforeValidatePhone<UserPhone> {
static {
registerExtension(new BeforeValidateUserPhone());
}
}
| 28 | 77 | 0.782143 |
766c28bd9695104fee90f7ac63453fcffa8ec7e6 | 240 | package hkube.storage;
import hkube.utils.Config;
public interface IStorageConfig {
public String getStorageType();
public String getClusterName();
public Config getTypeSpecificConfig();
public String getEncodingType();
}
| 21.818182 | 42 | 0.758333 |
f89fefb4037bd425a81e18efe25bfd9fe7e09eea | 29,625 | /*
* Copyright (C) 2019 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 39.083113 | 106 | 0.685637 |
b42434b7021834d824b4d9507b82fd7df2db81ae | 302 | package creational.builder.sample4;
class SubaruBuilder extends CarBuilder {
void buildMake() {
car.setMake("Subaru Forester");
}
void buildTransmission() {
car.setTransmission(Transmission.MANUAL);
}
void buildMaxSpeed() {
car.setMaxSpeed(270);
}
}
| 17.764706 | 49 | 0.642384 |
cfa2e7cf1d399173d552a851220d3c00c5858c6b | 3,560 | /*******************************************************************************
* Copyright (c) 2010 Haifeng Li
*
* 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.apac... | 27.175573 | 83 | 0.548596 |
c8781a414da344e2430f62c54e4f31fcace79ec2 | 2,367 | package org.wiztools.restclient.idea;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.fileEditor.FileEditor;
import com.intellij.openapi.fileEditor.TextEditor;
import com.intellij.openapi.fileEditor.impl.text.TextEditorProvider;
import ... | 26.3 | 88 | 0.651035 |
ba9b0aa7e4bd4e09ad8a1024f0145676e375f507 | 4,459 | /**
* MIT License
*
* Copyright (c) 2017 Wolf Angelo
*
* 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, copy, mod... | 30.965278 | 101 | 0.690738 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.