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 |
|---|---|---|---|---|---|
3a69df08f9a6574bebd47edaa50e495dee04d602 | 939 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.world.propagation;
/**
* An enum that describes how propagation rules have changes when blocks are replaced with others
*/
public enum PropagationComparison {
/**
* Propagation is restricted in ... | 24.076923 | 97 | 0.675186 |
b04d059c0d084538416e666f5d1ced9f501192ad | 2,786 | /*
* 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
* distribut... | 34.825 | 137 | 0.691314 |
8e70670e83ae1f44478f9084a49144a2344419e0 | 1,155 | package com.sandrew.bury.r2;
import com.sandrew.bury.Session;
import com.sandrew.bury.SqlSessionFactory;
import com.sandrew.bury.SqlSessionFactoryBuilder;
import com.sandrew.bury.callback.POCallBack;
import com.sandrew.bury.model.SessionExt;
import org.junit.Test;
import java.util.List;
public class Query... | 26.25 | 189 | 0.681385 |
26ff643fd2f8660f33cb863169a76db6d839a576 | 1,663 | /*
* Copyright 2016-2022 Talsma ICT
*
* 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 agr... | 36.152174 | 114 | 0.734817 |
5d263dc6d3b5e8dfb54027be5b91a2962b80e00a | 4,818 | /*
* 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... | 38.854839 | 131 | 0.683064 |
894f5671dd84a3746683f3a9a7f36c29f63a4747 | 844 | package com.example.threadpool;
public class TestThreadPoolManager {
public static void main(String[] args) {
ThreadPoolManager poolManager = new ThreadPoolManager(10);
poolManager.submitTask(new Runnable() {
@Override
public void run() {
System.out.println("Starting Task A....");
... | 21.1 | 61 | 0.572275 |
ce071016f27cf164a95df6e0e79acebc9b77ca3b | 388 | package expression.constParser;
import expression.myNumber.LongNumber;
import expression.myNumber.MyNumber;
public class LongConstParser implements ConstParser<Long> {
@Override
public MyNumber<Long> parse(String data) {
return new LongNumber(Long.valueOf(data));
}
@Override
public MyNumb... | 22.823529 | 59 | 0.713918 |
34f5d05d31c279be73681de848a4f355eee21d9b | 1,338 | package com.spring.cloud.transaction.api;
import com.spring.cloud.transaction.api.repository.GoodsRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annot... | 29.733333 | 87 | 0.685351 |
f59d2fceab150d449d202ccc8181d26d040e2841 | 784 | package com.github.dwaite.cyborg.electrode;
public class CborException extends Exception {
private static final long serialVersionUID = 1L;
public CborException() {
super();
// TODO Auto-generated constructor stub
}
public CborException(String message, Throwable cause, boolean enableSuppression, boolean writ... | 25.290323 | 111 | 0.762755 |
2d1c2628475f3221b156dfdcc4479af707883805 | 14,425 | package org.example.work.fingerprint;
import org.example.uitl.Keys;
import org.example.kit.entity.ByteArray;
import org.example.kit.io.ByteBuilder;
import org.example.work.eigenword.EigenWord;
import org.example.work.eigenword.ExtractEigenWord;
import org.example.work.parse.Tag;
import org.example.work.parse.nodes.Doc... | 39.629121 | 159 | 0.527556 |
6241fd7313f0d57b6c113b1610b4940adfde7afa | 8,462 | /*
* 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 ... | 29.280277 | 126 | 0.649846 |
7ae189d21cad55b0392e0ddb05f31bae0b058996 | 673 | package cn.mypandora.springboot.modular.system.model.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* Login
*
* @author hankaibo
* @date 2019/10/26
*/
@ApiModel(va... | 20.393939 | 57 | 0.661218 |
695076962ff1c7f3b978ff31676e8b79ad732584 | 161 | package com.h5190077.can_caglar_kirici_final.application;
import android.app.Application;
public class KitaplarApplication extends android.app.Application {
}
| 23 | 66 | 0.850932 |
3ebf947882d5ad3103c1712aa02ad1d6d23a873d | 2,410 | package org.ka.menkins.app;
import com.hazelcast.core.ITopic;
import io.prometheus.client.exporter.MetricsServlet;
import lombok.extern.slf4j.Slf4j;
import org.ka.menkins.app.init.AppConfig;
import org.ka.menkins.storage.NodeRequest;
import org.ka.menkins.storage.NodeRequestWithResources;
import spark.Spark;
import j... | 33.013699 | 106 | 0.554772 |
af6c2de57b2f90ec868e7557d144173f0f068a5b | 8,792 | /**
*
* The MIT License
*
* Copyright 2018-2021 Paul Conti
*
* 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, co... | 28.732026 | 84 | 0.636601 |
c936d2750ad10f3c12abeeb5bcc1b8f17f79d1b5 | 530 | package net.minecraft.state.properties;
import net.minecraft.util.IStringSerializable;
public enum RedstoneSide implements IStringSerializable
{
UP("up"),
SIDE("side"),
NONE("none");
private final String name;
private RedstoneSide(String name)
{
this.name = name;
}
public St... | 16.060606 | 55 | 0.611321 |
6ad183f6cea066e33136d90ed7cc89f96f9079c8 | 2,595 | package com.mtons.mblog.web.controller.site.auth;
import com.mtons.mblog.base.lang.Consts;
import com.mtons.mblog.base.lang.Result;
import com.mtons.mblog.modules.data.AccountProfile;
import com.mtons.mblog.modules.data.UserVO;
import com.mtons.mblog.modules.service.MailService;
import com.mtons.mblog.modules.service.... | 35.547945 | 105 | 0.687861 |
1982cce5c09de2fa028306489e5f8e838d4c4ba5 | 596 | package com.systemmeltdown.robotlog.topics;
import com.systemmeltdown.robotlog.lib.Utils;
/**
* Logs integers as a data topic.
*/
public class IntegerTopic extends DataTopic {
private final int m_roundingFactor;
public IntegerTopic(final String name, final int roundingFactor) {
super(name, Integer.class);
m_... | 23.84 | 72 | 0.753356 |
7685edc2a7221e7e1040d39dfc02e4e2080905e9 | 1,308 | package tw.waterball.judgegirl.academy.domain.usecases.group;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import tw.waterball.judgegirl.academy.domain.exceptions.DuplicateGroupNameException;
import tw.waterball.judgegirl.academy.domain.repositories.GroupRepository;
import tw.waterball.judgegirl.... | 29.727273 | 98 | 0.745413 |
317d1b9a716b1bbe9aaa1fba7031ce43683c1cd5 | 2,027 | package com.ucm.informatica.spread.Data;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.location.LocationManager;
import android.os.Binder;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;
import com.ucm.informat... | 34.355932 | 134 | 0.723236 |
3e09cacbbd93c1f37dd237e86f0b2925fcc266b5 | 1,612 | package com.github.vvorks.builder.server.extender;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.github.vvorks.builder.common.lang.Strings;
import com.github.vvorks.builder.server.domain.ClassContent;
import com.githu... | 29.309091 | 104 | 0.7866 |
c0279b992a8eaa09f6f27310985934a88dc05fa1 | 4,642 | /*
* 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 ... | 36.84127 | 117 | 0.758294 |
bd2e0b9d03c42b15da54da270f850904540fe2a8 | 3,898 | package tsg.mwe;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.BitSet;
import java.util.Scanner;
import tsg.ParenthesesBlockPennStd.WrongParenthesesBlockException;
import tsg.TSNodeLabel;
import util.Utility;
public class TSG_Frags_MWE_Eval_Inside {
static... | 33.033898 | 139 | 0.68394 |
578fd7fe775de8f0b67d060f89f12f31e5914c98 | 8,103 | package jetbrains.mps.baseLanguage.editor;
/*Generated by MPS */
import jetbrains.mps.nodeEditor.menus.substitute.SubstituteMenuBase;
import org.jetbrains.annotations.NotNull;
import java.util.List;
import jetbrains.mps.lang.editor.menus.MenuPart;
import jetbrains.mps.openapi.editor.menus.substitute.SubstituteMenuIte... | 39.334951 | 253 | 0.722325 |
777111c8d01c41224e63a71faf5cc9139028d38f | 1,667 | /*
* 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 sprites;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import misc.Updatable;
import pong.Pong;
/**
... | 24.15942 | 79 | 0.592681 |
b0fb8fde7a399ee476548dae86efdf6641fb4f68 | 8,581 | /****************************************************************
* 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 ... | 39.362385 | 161 | 0.619275 |
2b9197cd0a1f85b58b4569697db7ef6cd19fe306 | 1,912 |
package com.commercetools.history.models.common;
import java.util.Arrays;
import java.util.Optional;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.vrap.rmf.base.client.utils.Generated;
@Generated(value = "io.vrap.rmf.codegen.rendring.CoreCodeGener... | 26.555556 | 120 | 0.654289 |
25ce1839313c2d18fe8f0eb6344dd9ae8148dbcd | 4,476 | package com.github.kokorin.jdbunit;
import com.github.kokorin.jdbunit.table.Column;
import com.github.kokorin.jdbunit.table.Row;
import com.github.kokorin.jdbunit.table.Table;
import java.util.*;
import static org.junit.Assert.*;
public class JdbUnitAssert {
private JdbUnitAssert() {}
public static void as... | 36.688525 | 116 | 0.531948 |
2e0ac3abda46bf9e98c0b42f0258108a586de3dd | 8,297 | /*
* 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 ... | 51.216049 | 145 | 0.707846 |
b02195052289c38616533b54c92613f12ba722b2 | 579 | package com.funix.lab04.asm21.model;
import java.time.LocalDate;
import javax.persistence.Entity;
import javax.persistence.Id;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Wedd... | 19.3 | 36 | 0.775475 |
3d30e00f5211ee8f376ac9b20dd476abe79e608c | 559 | package cn.com.mfish.oauth.credentials;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.credential.SimpleCredentialsMatcher;
/**
* @author qiufeng
* @date 2020/2/25 16:49
*/
public class QRCodeCredentialsMatcher extends SimpleCreden... | 32.882353 | 119 | 0.808587 |
a996f50f526e7f50a65b5a7389ef64bd187bf596 | 1,045 | package one.microproject.logger.dto;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
public class InsertDataRecord {
private final Long timeStamp;
private final String groupId;
private final String ... | 24.880952 | 72 | 0.629665 |
0aceedf126de19f725a8ed927a3b222465465924 | 5,146 | package liquibase.ext.vertica.snapshot;
import liquibase.CatalogAndSchema;
import liquibase.database.AbstractJdbcDatabase;
import liquibase.database.Database;
import liquibase.database.ObjectQuotingStrategy;
import liquibase.database.jvm.JdbcConnection;
import liquibase.diff.compare.DatabaseObjectComparatorFactory;
im... | 37.021583 | 170 | 0.642246 |
ffcb1930af9931e647d67fdfdd201a1d028e1955 | 797 | package com.actionworks.flashsale.app.model.enums;
public enum OrderTaskStatus {
SUBMITTED(0, "初始提交"),
SUCCESS(1, "下单成功"),
FAILED(-1, "下单失败");
private final Integer status;
private final String desc;
OrderTaskStatus(Integer status, String desc) {
this.status = status;
this.des... | 22.138889 | 69 | 0.5734 |
3c68fbb1f26380ce0294b6f0f12eabb915bc8da4 | 6,904 | /*
* 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... | 24.48227 | 102 | 0.724218 |
699d762bb27c7549b2ebaf5fc5ee381da683fae1 | 3,438 | /*******************************************************************************
* Copyright (c) Dec 2, 2015 @author <a href="mailto:iffiff1@gmail.com">Tyler Chen</a>.
* All rights reserved.
*
* Contributors:
* <a href="mailto:iffiff1@gmail.com">Tyler Chen</a> - initial API and implementation
****************... | 37.78022 | 114 | 0.616638 |
0d5445f6dffd58385db467b00542d989a6da8592 | 2,401 | /*
Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 29.280488 | 95 | 0.720117 |
8ede974f166581954f735bc3694e2318cbb46c08 | 3,518 | /*
Copyright (c) 2010, Geomatics and Cartographic Research Centre, Carleton
University
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright... | 39.977273 | 129 | 0.756396 |
9f4e7134f15038b50d78ca3c9f6f2fa7cadf90f2 | 3,097 | /*
* Copyright (C) 2016 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 43.619718 | 128 | 0.70649 |
f9c934d354f4c55eef2e01c424e717def577b34f | 2,015 | package com.ericmschmidt.latinreader.datamodel;
import org.junit.Before;
import org.junit.Test;
import static com.google.common.truth.Truth.assertThat;
public class BookTest {
Book testBook;
String expectedLine1 = "This is line 1";
String expectedLine2 = "This is line 2";
String expectedLine3 = "Thi... | 32.5 | 75 | 0.678908 |
23ec36abf19002105b4dcbbf6917e3ee7286acf6 | 8,254 | package uk.gov.companieshouse.ocr.api.image.extracttext;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import org.apache.commons.lang.time.StopWatch;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframe... | 55.395973 | 242 | 0.739036 |
9892047dbdf1c854e4353ded85c67363e19d7edd | 1,810 | package org.o7planning.farmeggmvc.service;
import java.util.List;
import org.apache.log4j.Logger;
import org.o7planning.farmeggmvc.database.DataFarm;
import org.o7planning.farmeggmvc.model.Farmer;
import org.o7planning.farmeggmvc.model.factory.EggFactory;
import org.springframework.beans.factory.annotation.Autowired;
... | 23.815789 | 71 | 0.716575 |
7327d4234dbf382e797b6531ff93cc5aee407edb | 2,230 | package com.xWash.service.Impl;
import cn.hutool.http.HttpException;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.xWash.entity.MStatus;
import com.xWash.entity.QueryResult;
import com.xWash.service.IChecker;
import o... | 30.135135 | 106 | 0.552466 |
a60e2ae49a90f4556fc700751a89ccc17b8a436a | 1,144 | package leetcode_201_250;
import java.util.HashMap;
/**
* leetcode_201_250
* 给定两个字符串 s 和 t ,编写一个函数来判断 t 是否是 s 的一个字母异位词。
* 说明:
* 你可以假设字符串只包含小写字母。
* 进阶:
* 如果输入字符串包含 unicode 字符怎么办?你能否调整你的解法来应对这种情况?
*
* 算法1,开辟两个26大小的数组来存计数
* 算法2,两个hashmap
*
* @author xin
* @date 2019-02-28
*/
public class ValidAnagram_242 {
... | 24.869565 | 62 | 0.476399 |
c9dcdc1d1c5a722455300c20b329ebc9d8118ecf | 2,288 | package com.ninja.poohla.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.Toast;
import com.... | 25.707865 | 127 | 0.649476 |
acc952a67ffeb056357f5448ec282ee6cd4ac782 | 214 | package com.example.searchphone.mvp;
/**
* Created by 许东 on 2018/8/9.
*/
public interface MvpMainView extends MvpLoadingView{
void showToast(String msg); //显示信息
void updatView(); //更新view
}
| 17.833333 | 52 | 0.663551 |
60cd5173f3c7cbf5928940dd37fab16281b088a8 | 3,659 | /*
* Copyright (c) 2005-2016 Clark & Parsia, LLC. <http://www.clarkparsia.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 ... | 35.872549 | 119 | 0.63378 |
ec5c5640589710fbaf5101e3d40450f72e49f962 | 367 | package br.com.database.dao.model;
public class LikeFieldTO extends FieldTO{
public LikeFieldTO(String fieldName) {
super(fieldName);
}
public LikeFieldTO(String fieldName, Object fieldValue) {
super(fieldName,fieldValue);
}
public LikeFieldTO(String fieldName, Object fieldValue, int fieldType) {
... | 24.466667 | 76 | 0.749319 |
d5e9f11c1b35af316e4161f5bd76efdca83ae010 | 2,576 | /*
* Copyright 2019. The Scouter2 Authors.
*
* @https://github.com/scouter-project/scouter2
*
* 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/LICEN... | 35.287671 | 96 | 0.607919 |
7d6c3ef6df60a3e2ea3405ef8150070c26e33733 | 1,168 | package com.ruoyi.wx.service;
import java.util.List;
import com.ruoyi.wx.domain.WxAlternative;
/**
* 备选老师Service接口
*
* @author ruoyi
* @date 2021-02-24
*/
public interface IWxAlternativeService
{
/**
* 查询备选老师
*
* @param traineeId 备选老师ID
* @return 备选老师
*/
public WxAlternative s... | 18.83871 | 84 | 0.61387 |
5d2047c352338fcc8609c75afa14c885a48cbf6e | 168 | package fr.masciulli.drinks.view;
public interface ViewPagerScrollListener {
public void onScroll(int position, float positionOffset, int positionOffsetPixels);
}
| 28 | 87 | 0.815476 |
d9ced6fb5a22bd817b75bed8f6433b6fce83aff7 | 723 | import java.util.Calendar;
public class AgeCalculator {
private String name;
private int ageGroup;
public AgeCalculator(String name, int ageGroup){
setName(name);
setAgeGroup(ageGroup);
}
public void setName(String name){
this.name = name;
}
public String getName(... | 21.909091 | 86 | 0.611342 |
1cadc97905b5d08d8c45bdd18bea4c2e4f96ad4d | 2,951 | package com.hcmus.fitrss.ui.news;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import andr... | 34.313953 | 132 | 0.731955 |
20355ef9eed69c012dac79bb4f753665ecda3060 | 557 | package com.hisense.hiatmp.asn.v2x.index;
import com.hisense.hiatmp.asn.v2x.basic.BrakeSystemStatus;
/**
* {@link BrakeSystemStatus}
* {@link BrakeSystemStatus.BrakePedalStatus}
* {@link BrakeSystemStatus.BrakeAppliedStatus}
* {@link BrakeSystemStatus.BrakeBoostApplied}
* {@link BrakeSystemStatus.TractionControl... | 29.315789 | 58 | 0.780969 |
3babe3120ace76b2c101116290e08c7f1161e90f | 3,738 | package com.haleywang.putty.view.side.subview;
import com.haleywang.putty.dto.AccountDto;
import com.haleywang.putty.util.StringUtils;
import com.haleywang.putty.view.constraints.MyGridBagConstraints;
import com.haleywang.putty.view.side.SideView;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.... | 32.789474 | 105 | 0.680578 |
b245581d0323efbaf87cd86fd0092d565bef14cb | 5,142 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses ... | 15.168142 | 809 | 0.790937 |
c569788fad3e752dfe1fd998ca4c8a9e44afdc4d | 1,520 | package name.aliaksandrch.px.beans;
import java.io.Serializable;
import com.google.gson.annotations.SerializedName;
/**
* The short format of a User object.
*
* @author Aliaksandr_Chaiko
* @version 0.1
*/
public class User implements Serializable{
private static final long serialVersionUID = -6617481034264379... | 16.344086 | 68 | 0.719737 |
5725c9dda980190f3349b2c61a691f18c39a5bd3 | 3,874 | package com.tcc.sospets.controllers;
import com.google.api.client.googleapis.auth.oauth2.GoogleIdToken;
import com.google.api.client.googleapis.auth.oauth2.GoogleIdTokenVerifier;
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.j... | 39.530612 | 123 | 0.715539 |
422084aa656aaeffb6c93f6109057c761d0280b7 | 1,592 | package com.well.swipe.preference;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.TextView;
import com.well.swipe.R;
/**
* Created by mingwei on 3/31/16.
*
*
* 微博: 明伟小学生(http://weibo.com/u/238... | 23.411765 | 83 | 0.676508 |
9a19c67819dd113d1be044fd26effad518ed11b4 | 1,676 | package com.skytala.eCommerce.domain.accounting.relations.payment.command.gatewaySagePay;
import org.apache.ofbiz.entity.Delegator;
import org.apache.ofbiz.entity.DelegatorFactory;
import org.apache.ofbiz.entity.GenericEntityException;
import org.apache.ofbiz.entity.GenericValue;
import com.skytala.eCommerce.domain.acc... | 38.976744 | 115 | 0.847852 |
09077976d5e33d96ff9b7669cf9fa9e421607607 | 1,003 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.oastem.frc.pid;
import edu.wpi.first.wpilibj.PIDSource;
/**
*
* @author KTOmega
*/
public class TargetSource {
private double[] vals;
public TargetSource(double[] params) {
... | 22.795455 | 117 | 0.555334 |
14f5ca50546300584a0578ff711a9c7375664bb1 | 385 | package krjakbrjak.bazel.plugin.services;
import com.intellij.openapi.projectRoots.Sdk;
import com.intellij.testFramework.IdeaTestUtil;
import krjakbrjak.bazel.plugin.project.services.JdkResolver;
public class JdkResolverTest implements JdkResolver {
@Override
public Sdk resolveJdk(String javaHome) {
... | 29.615385 | 64 | 0.78961 |
b5ed965732d7d9f7b27778c56043f013e25e6c06 | 164 | package com.dipanjal.batch1.generics.example1;
public class NumberPrinter<T extends Number> {
public void print(T t) {
System.out.println(t);
}
}
| 18.222222 | 46 | 0.682927 |
20e622994cffae6260fe953b1d5275aa6328f507 | 196 | package aa.sw.command.run;
import aa.sw.command.CommandResult;
@FunctionalInterface
public interface RunnableEntryExecutionStrategy {
CommandResult execute(CommandRunnerContext context);
}
| 19.6 | 56 | 0.826531 |
7c05e7f477c61fd70a224ebaf173ea479a817601 | 17,737 | /* Copyright 2017 Alfa Financial Software
*
* 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 l... | 32.544954 | 189 | 0.689294 |
236d87b39c44d4ac44b570e810f1171fd1f36bf8 | 541 | package com.chimpler.simtick.readers;
import com.chimpler.simtick.writers.LongWriter;
public abstract class Reader<T> {
// reuse same object to avoid reinstantiation every time
protected final ValueAndLength<T> valueAndLength;
public final boolean fixed;
public abstract ValueAndLength<T> readRaw(byt... | 27.05 | 75 | 0.724584 |
2bc4d9c9ef39b2d71a1bf1be786207a529548ec5 | 836 | package io.ayte.utility.function.kit.unary.optional;
import io.ayte.utility.function.kit.AugmentedFunction;
import lombok.AccessLevel;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.ToString;
import java.util.Optional;
import java.util.function.Function;
@ToString(includeFieldNames = fal... | 29.857143 | 79 | 0.729665 |
3faa12099bbf5534ebffe664780d7a6e238ea5b5 | 4,494 | package org.lnu.is.extractor.person.pension;
import static org.junit.Assert.assertEquals;
import static org.mockito.Matchers.anyLong;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.util.Arrays;
import java.util.HashMap;
import jav... | 27.740741 | 72 | 0.754339 |
029fd895c017d1d837cdf2031736345542bc6bc8 | 1,485 | package uk.gov.companieshouse.certifiedcopies.orders.api.validator;
import org.springframework.stereotype.Component;
import uk.gov.companieshouse.certifiedcopies.orders.api.dto.CertifiedCopyItemOptionsRequestDTO;
import uk.gov.companieshouse.certifiedcopies.orders.api.dto.CertifiedCopyItemRequestDTO;
import uk.gov.com... | 37.125 | 113 | 0.762963 |
3731036066c1d244e3cfb378fab40209186e6dfa | 2,106 | package offer;
/**
* @Title: Question12
* @ProjectName java-utils
* @Description: TODO
* @Author liunengkai
* @Date: 2020-01-11 23:08
* @Description:题目:给定一个double类型的浮点数base和int类型的整数exponent。求base的exponent次方。保证base和exponent不同时为0
*/
public class Question12 {
public static void main(String[] args) {
... | 27.350649 | 94 | 0.456315 |
2750e808d3fb3412dd29e770fad3e3d06e2d96f6 | 38,825 | /*
* Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... | 51.152833 | 120 | 0.70537 |
3324293a5e18874705c276972df85b27bff22a82 | 225 | package com.technology.oracle.scheduler.detailedlog.shared.service;
import com.technology.jep.jepria.shared.service.data.JepDataServiceAsync;
public interface DetailedLogServiceAsync extends JepDataServiceAsync {
}
| 32.142857 | 74 | 0.831111 |
66c1eb1354132986db3d915c249fb72ea11c0cf4 | 1,586 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/bigquery/storage/v1/storage.proto
package com.google.cloud.bigquery.storage.v1;
public interface SplitReadStreamRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.SplitReadStrea... | 34.478261 | 118 | 0.684741 |
1be50e2c13a62e5a3d22d504dbb11dcaca490379 | 1,104 | package cn.augusto.ch1.sync;
import java.util.Calendar;
public class SyncClass {
public static synchronized void print(){
System.out.println("print --> " + Calendar.getInstance().getTimeInMillis()/ 1000);
try {
Thread.sleep(1000*3);
} catch (InterruptedException e) {
e.printStackTrace();
... | 25.090909 | 98 | 0.565217 |
f035794d50b96b6d3a357ecd558f448c9dd98173 | 569 | package de.l3s.simpleml.tab2kg.model.sparql;
public enum Language {
DE("de"), EN("en");
private String languageTag;
public static Language getLanguageByTag(String languageTag) {
for (Language language : Language.values()) {
if (language.getLanguageTag().equals(languageTag))
return language;
}
return... | 20.321429 | 73 | 0.711775 |
bef67d1393ffa2542d1c8b5ab4a711f13a32bb86 | 5,876 | package com.shortlyst.test.vendingmachine;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Created by zer0, the Maverick Hunter
* on 22/07/19.
* Class: EndToEndTestSuite.java
*/
public class OneCyclePurchaseTest {
private App app;
... | 36.496894 | 121 | 0.394656 |
b04c0c7cdc12cbb5343f5d6baf545ff5d7d063d7 | 1,422 | import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;
import java.util.OptionalDouble;
import java.util.function.Predicate;
import java.util.stream.Stream;
import static oracle.jrockit.jfr.events.Bits.doubleValue;
class PickShareFunctional {
public static final List<String> symbols
... | 33.857143 | 107 | 0.650492 |
68706097c76bfd134f7911a7dca21c74bcef4dc8 | 3,559 | package com.tracelink.prodsec.plugin.sonatype.controller;
import com.tracelink.prodsec.plugin.sonatype.SonatypePlugin;
import com.tracelink.prodsec.plugin.sonatype.model.SonatypeApp;
import com.tracelink.prodsec.plugin.sonatype.model.SonatypeMetrics;
import com.tracelink.prodsec.plugin.sonatype.service.SonatypeAppServ... | 45.628205 | 111 | 0.824389 |
2477a60b094ed06705776784ce10aa944418cf27 | 59 | package fr.eservices.drive.model;
public enum Status {
}
| 9.833333 | 33 | 0.745763 |
6c93b83daa16825695a370cd5256d681b56464fc | 292 | package com.thomrick.projects.xebia.tondeuses.interfaces.constantes;
/**
* OrientationConstants.java
*
* @author ThomRick
* @date 2016-08-04
*
*/
public interface OrientationConstants {
String NORTH = "N";
String SOUTH = "S";
String EAST = "E";
String WEST = "W";
}
| 18.25 | 69 | 0.65411 |
0d08574a7866ef24f28a2f7a2998d6f63bc30901 | 528 | package su.svn.href.models;
import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;
import java.math.BigInteger;
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@ToSt... | 19.555556 | 63 | 0.765152 |
1ab78eb7923a35e87282104c16baaee65fa64bdb | 27,033 | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.util.ElapsedTime;
import org.opencv.core.Core;
import org.opencv.core.Mat;
impor... | 36.188755 | 203 | 0.627973 |
9dfb0000f2751c0d8ef10126611b077da119664b | 483 | package cc.blynk.clickhouse.http;
import cc.blynk.clickhouse.settings.ClickHouseProperties;
public final class DefaultConnectorFactory extends HttpConnectorFactory {
@Override
public HttpConnector create(ClickHouseProperties properties) {
return new DefaultHttpConnector(properties);
}
@Overr... | 26.833333 | 78 | 0.745342 |
f74ca9f2af244318ea617bf18e287ceefa171772 | 1,959 | package com.print_stack_trace.voogasalad.controller.guiElements.gameObjects;
import com.print_stack_trace.voogasalad.controller.guiElements.gameAuthor.ViewObjectDelegate;
import com.print_stack_trace.voogasalad.model.GoalCharacteristics;
import com.print_stack_trace.voogasalad.model.SpriteCharacteristics;
import com.p... | 36.962264 | 117 | 0.830526 |
ec62c3cefbbc9ebd7603f67fbb1644709c4ea321 | 658 | package challengeMath;
import static java.lang.Math.random;
import static java.lang.Math.round;
public class Jogo {
public static void main(String[] args) {
double[] valor = new double[6];
double aleatorio;
double entero;
int i = 0;
while( i < 6) {
aleatorio = random() * 100;
entero ... | 18.8 | 79 | 0.585106 |
819aa94fe6f67c38a8bf1abbd671a3f409f5bd60 | 7,614 | package org.ovirt.optimizer.solver.thread;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Supplier;
impor... | 38.649746 | 107 | 0.686367 |
2704406e208302dd2edf46ccaffc210fd720b2ce | 1,150 | package fr.femm.findyourtrashcan.controller;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMa... | 35.9375 | 86 | 0.796522 |
f111f6e488513d27c672a622c050f6f986da3eb6 | 1,070 | package org.folio.circulation.infrastructure.storage;
import static org.folio.circulation.support.http.ResponseMapping.forwardOnFailure;
import java.util.concurrent.CompletableFuture;
import org.folio.circulation.domain.CheckInRecord;
import org.folio.circulation.support.Clients;
import org.folio.circulation.support... | 33.4375 | 82 | 0.802804 |
14743ccb39d0d864fbfef9bc6ccee54dca142706 | 483 | package edu.utexas.tacc.tapis.shared.exceptions;
public class TapisNotFoundException
extends TapisException
{
private static final long serialVersionUID = 6546186422079053585L;
// Name not found.
public String missingName;
public TapisNotFoundException(String message, String name)
{s... | 30.1875 | 77 | 0.751553 |
a52ce987217722b12164074ef595c62fb534a998 | 5,221 | package eu.supersede.mdm.storage.model.omq.relational_operators;
import com.clearspring.analytics.util.Lists;
import com.google.gson.Gson;
import eu.supersede.mdm.storage.model.omq.wrapper_implementations.*;
import eu.supersede.mdm.storage.util.RDFUtil;
import net.minidev.json.JSONArray;
import net.minidev.json.JSONOb... | 40.789063 | 161 | 0.608504 |
40f80f76b6baabc96b237ad01c950940af1d6b07 | 1,382 | package it.uniparthenope.fairwind.data.nmea0183.mapper;
import net.sf.marineapi.nmea.event.SentenceEvent;
import net.sf.marineapi.nmea.sentence.VTGSentence;
import it.uniparthenope.fairwind.data.nmea0183.SentenceSignalKAbstractMapper;
import nz.co.fortytwo.signalk.util.SignalKConstants;
import static nz.co.fortytwo.... | 35.435897 | 93 | 0.772069 |
681df634fac7ee2051e42a186560567c0993e503 | 8,566 | package net.minecraft.client.gui.fonts;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import java.io.BufferedReader;
import java.io.IOException;
import ... | 48.123596 | 208 | 0.670675 |
06b9d522e73e702d5750164d756657cd128638a4 | 11,271 | /*
* This file is part of TechReborn, licensed under the MIT License (MIT).
*
* Copyright (c) 2018 TechReborn
*
* 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, inc... | 33.247788 | 175 | 0.722119 |
740750898d661fb4433550ccc4f2adfbaef542ef | 3,655 | package com.example.demo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.web.bind.ann... | 36.55 | 202 | 0.709439 |
816e7e682d13c2a7846e2e580ea5fb9867e55b4c | 2,218 | /**
* This software is released as part of the Pumpernickel project.
*
* All com.pump resources in the Pumpernickel project are distributed under the
* MIT License:
* https://raw.githubusercontent.com/mickleness/pumpernickel/master/License.txt
*
* More information about the Pumpernickel project is available he... | 25.204545 | 80 | 0.772317 |
df3de42818ad2f095ebbc58ec6a5e1fe4a169893 | 11,669 | package de.azrael.listeners;
import java.awt.Color;
import java.sql.Timestamp;
import java.util.EnumSet;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import de.azrael.constructors.Bancollect;
import de.azrael.constructors.Channels;
import de.azrael.core.Hashes;
import de.azrael.enums.Channel;... | 62.736559 | 445 | 0.702202 |
388be3eacafd6e48e8399e51fbeb7e9e98672c8b | 2,579 | /*
* This file is part of the Yildiz-Engine project, licenced under the MIT License (MIT)
*
* Copyright (c) 2019 Grégory Van den Borre
*
* More infos available: https://engine.yildiz-games.be
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated docu... | 35.819444 | 93 | 0.706863 |
886cff377265c3b2913483217c1d0813d049f9f1 | 4,560 | package com.vordel.circuit.script.context.resources;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.vordel.kps.Model;
import com.vordel.kps.ObjectExists;
import com.vordel.kps.ObjectNotFound;
impo... | 24.782609 | 113 | 0.719298 |
916a782cfb3fad897b5554fd69d3df9f95307d5d | 2,866 | package com.aises.repository;
import com.aises.domain.SocialLogin;
import com.aises.domain.User;
import com.aises.domain.enums.SocialLoginType;
import com.aises.repository.interfaces.Repository;
import com.aises.server.Database;
import com.aises.utils.ResourceLoader;
import org.slf4j.Logger;
import org.slf4j.LoggerFac... | 35.382716 | 126 | 0.704466 |
b8e40f3efd90090f2c71294f44eb3662a10c0c2e | 4,475 | package com.codepath.assignment.mytweets.twitterusertimeline;
import android.content.Context;
import android.databinding.DataBindingUtil;
import android.graphics.Bitmap;
import android.support.v4.graphics.drawable.RoundedBitmapDrawable;
import android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory;
import a... | 33.395522 | 112 | 0.634413 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.