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 |
|---|---|---|---|---|---|
099ba111a6cbb25eedbd16d5d5cf068f69266be9 | 663 | package com.tss.excel_to_db.vo;
import lombok.Data;
/**
* @Description: 值对象
* @Author: xiangjun.yang
* @Date: Created in 2018-2-6
*/
@Data
public class ExcelModelVo {
// 格式校验成功的数据大小
private long succSize;
// 格式校验失败的数据大小
private long failSize;
// 导入数据库失败的数据大小
private long failToDBSize;
... | 22.862069 | 74 | 0.666667 |
81f2b7881281653f13dbc45f77b3f6cc8ef873a3 | 467 | package org.highmed.dsf.fhir.service;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class SnapshotInfo
{
private final SnapshotDependencies dependencies;
@JsonCreator
public SnapshotInfo(@JsonProperty("dependencies") SnapshotDependencie... | 22.238095 | 86 | 0.777302 |
e938dca086c2278c2c906617311dae7ce5d8a690 | 3,236 | /*
* Copyright 2020 ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 29.153153 | 118 | 0.717862 |
b75874668b904e3a8e4d06c89e8f650a9f31e38d | 1,792 | package kentico.kentico_android_tv_app.details.cafe;
import android.content.Context;
import android.support.v17.leanback.widget.Presenter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import kentico.kentico_android_tv_app.R;
import kentic... | 33.811321 | 104 | 0.72433 |
336a94a8eb7d1b947c70fe860060b7412665e21f | 783 | package matgm50.jrose.core.res;
import matgm50.jrose.core.gl.Texture;
import org.lwjgl.BufferUtils;
import org.lwjgl.stb.STBImage;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public class TextureProvider extends ResourceProvider<Texture> {
public TextureProvider(String root) { super(root); }
@Ov... | 26.1 | 78 | 0.711367 |
80570f28b3fba7bce2ab84e22c40403725de710b | 1,805 | /*
* 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 ... | 33.425926 | 71 | 0.759557 |
2b478649f4170759063bd596a147c57d9a45a64f | 4,018 | package com.berniac.vocalwarmup.sequence.sequencer;
import com.berniac.vocalwarmup.sequence.Direction;
import java.util.Comparator;
import java.util.Set;
import java.util.TreeSet;
/**
* Created by Mikhail Lipkovich on 6/01/2018.
*/
public class WarmUpStep {
public static final WarmUpStep FINAL_STEP =
... | 31.147287 | 90 | 0.666501 |
735e9b9bcceb65ab1106f518fc3f43277c6a42da | 1,424 | package monads;
import java.io.*;
import java.util.*;
public class Words {
public static void main(String[] args) throws Exception {
Set<String> keywords = new HashSet<String>();
BufferedReader reader = null;
try {
reader = new BufferedReader(new InputStreamReader(Words.class.g... | 30.297872 | 113 | 0.514045 |
e84b728bc46953ffcd0bed93d39f45bf07ef3314 | 1,409 | package com.ekwing.databindinglist;
import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import com.ekwing.databindinglist.databinding.Activity... | 32.767442 | 93 | 0.735273 |
d0d968c01e0a934c1311a830c65314c9a3e38c41 | 820 | package com.georgebindragon.base.receiver;
import android.content.Context;
import android.content.Intent;
import com.georgebindragon.base.monitor.BaseListenerMonitor;
import com.georgebindragon.base.receiver.callbacks.IBaseReceiverCallBack;
import com.georgebindragon.base.utils.EmptyUtil;
import java.util.Queue;
/*... | 19.52381 | 73 | 0.745122 |
160b2d437a88b7e37f3b3357a67589a4fb4b950d | 2,963 | package com.lgy.oms.disruptor.audit;
import com.alibaba.fastjson.JSON;
import com.lgy.framework.util.ShiroUtils;
import com.lgy.system.domain.SysUser;
import com.lmax.disruptor.RingBuffer;
import com.lmax.disruptor.SleepingWaitStrategy;
import com.lmax.disruptor.dsl.Disruptor;
import com.lmax.disruptor.dsl.ProducerTyp... | 27.435185 | 102 | 0.648329 |
fc46a336f1c9937d425e828c99aa9a584bd49838 | 3,341 | package com.elmakers.mine.bukkit.world.populator;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.logging.Level;
import javax.annotation.Nullable;
import org.bukkit.configuration.ConfigurationSection;
import com.elmakers.mine.bukkit.magic.MagicController;
public clas... | 36.315217 | 173 | 0.614487 |
2ea9c0160c97337ecc25083b5691e14f5fe1c16d | 2,519 | /*
* 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.954023 | 78 | 0.654625 |
0dca8bee433e32eb50053e833df824ebd786b109 | 931 | package easycriteria;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
@Entity
@Table(name = "tree_node_tbl")
public class ... | 17.240741 | 78 | 0.705693 |
1eaaee0cff2cabaf8ea128fda7bb7d3cad8e9219 | 276 | package purpleblue.com.nytimessearch;
/**
* Created by ernest on 7/26/16.
*/
public class Constants {
public static final String APIKEY_NEWYORKTIMES = "11119956891143ac98d2e386618db948";
public static final String SHAREDPREF_SEARCHSETTINGS = "NYTSearchSettings";
}
| 27.6 | 88 | 0.775362 |
1e07b1b33a2573b3dcf37ca33406bc1d4d0ad45c | 336 | package ru.job4j.tictactoe;
public interface LogicAI {
/**
* Loads new board.
*/
void loadBoard(Cell[][] cells);
/**
* Which side AI plays.
* @param markX is comp on X mark.
*/
void setMarkX(boolean markX);
/**
* calculates next move and make it.`
*/
boolea... | 16 | 41 | 0.550595 |
292ae7768372aed75348d36126328e3451a797c7 | 3,781 | /*
* Copyright (c) terms as published in http://waffle.codehaus.org/license.html
*/
package org.codehaus.waffle.controller;
import static org.codehaus.waffle.Constants.CONTROLLER_KEY;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.codehaus.waffle.action.Meth... | 45.011905 | 146 | 0.731288 |
c1e8e378046b1038919c4ac20ad27316260fd8e3 | 2,168 | package com.hikki.masakapanih.adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;
import androidx.recyclerview.widget.RecyclerView;
import com.hikki.masakapanih.R;
import com.hikki.masakap... | 30.971429 | 117 | 0.684502 |
af1d7b5a486719980f6a9d4899a6975d3cac9d74 | 1,633 | package xyz.staffjoy.framework.api;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.springframework.util.Assert;
import java.beans.Transient;
@Data
public class ServiceResponse<T> {
private Integer code = Result.SUCCESS.getCode();
private String message = Result.SUCCESS.ge... | 27.216667 | 85 | 0.653399 |
572e69df0fad63f296f6d4c17af8d16a41ee2d33 | 368 | package com.leeup.sms.mapper;
import com.leeup.sms.bean.Clazz;
public interface ClazzMapper {
int deleteByPrimaryKey(String classStudentNo);
int insert(Clazz record);
int insertSelective(Clazz record);
Clazz selectByPrimaryKey(String classStudentNo);
int updateByPrimaryKeySelective(Clazz recor... | 21.647059 | 52 | 0.766304 |
471085770ef8ec4dd4023416217e964302cb8e7c | 4,321 | // Code generated by lark suite oapi sdk gen
package com.larksuite.oapi.service.admin.v1.model;
import com.google.gson.annotations.SerializedName;
public class AuditAndroidContext {
@SerializedName("udid")
private String udid;
@SerializedName("did")
private String did;
@SerializedName("app_ver")
... | 20.774038 | 60 | 0.616755 |
b5b14d238c084d7962c4398d3de0d1638abaf19b | 3,247 | package com.packtpub.techbuzz.controlers;
import java.util.HashMap;
import java.util.Map;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;
import org.apache.log4j.Logger;
import org.primefaces.... | 31.221154 | 125 | 0.70619 |
348e217fd4b5beb912263f95888d348ce1a24c0d | 3,272 | // MESSAGE STATE_CORRECTION PACKING
package com.jeremydyer.mavlink.Messages.pixhawk;
import com.jeremydyer.mavlink.Messages.MAVLinkMessage;
import com.jeremydyer.mavlink.Messages.MAVLinkPacket;
import com.jeremydyer.mavlink.Messages.MAVLinkPayload;
/**
* Corrects the systems state by adding an error correction term t... | 26.387097 | 201 | 0.677262 |
fccec1bc208b675bc15b0b9be850dea5ed3e7795 | 234 | package ru.job4j.professions;
public class Profession {
private String name;
private String surname;
private String education;
private String birthday;
public String getName() {
return this.name;
}
}
| 18 | 29 | 0.679487 |
3972e4a48f2d0bb6641e1cf378c569869001da01 | 1,130 | /**
*
*/
package com.ravi.game.base;
import java.util.Map;
import com.ravi.game.layout.IBoard;
/**
* All the customization regarding a board game rule to be placed here.
*
* @author Ravi Kant Singh
*
*/
public interface IGameRuleHandler {
/**
* Game specific starting position validity ch... | 25.681818 | 113 | 0.69823 |
d628991a4b28cebe665535515efaea9158ff577b | 2,907 | /*
* Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 39.283784 | 115 | 0.733058 |
2a95be2b1d57ec0e498cacc8679fbf277fb104c9 | 677 | package me.Serophots.UHCCore.Hub;
import me.Serophots.UHCCore.Main;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
public class RemoveMessages implements Listener {
pr... | 26.038462 | 63 | 0.722304 |
3d07e9a67589e4ce21fbcf8e0dfef63c28034792 | 943 | package academy.learnprogramming;
public class PC {
private Case theCase;
private Monitor monitor;
private Motherboard motherboard;
public PC(Case theCase, Monitor monitor, Motherboard motherboard) {
this.theCase = theCase;
this.monitor = monitor;
this.motherboard = motherboard... | 24.179487 | 71 | 0.593849 |
8adc20def51836079231e7986a2ddb676df1f13a | 17,530 | /**
*
* Copyright (c) Microsoft and contributors. 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 r... | 36.293996 | 121 | 0.702852 |
8dcb6b95e211939d33a719aaf56d1602e3beeecd | 4,617 | /*
* Copyright 2013 Xebia and Séven Le Mesle
*
* 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 ... | 45.264706 | 182 | 0.722764 |
bc73964e16854af10ba2b8c0f26f59fc63f0c23d | 12,832 | /*
* Copyright 2008-2014 by Emeric Vernat
*
* This file is part of Java Melody.
*
* 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/LI... | 40.736508 | 92 | 0.76317 |
a9f5e2717d711632184a6450204af5443c0f674b | 183 | package com.tanchaoyin.demo.module.uerinfo.presenter;
/**
* Created by tanchaoyin on 2017/4/28.
*/
public interface UserReposPresenter {
void requestUserRepos(String url);
}
| 16.636364 | 53 | 0.743169 |
0beb19083b6bacc77cc170090456cfa677ebef9d | 7,935 | // Copyright (c) guige.com. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root.
package com.guige.tfvc;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;
import com.fasterxml.jackson.jaxrs.json.Jackso... | 43.125 | 138 | 0.685696 |
5b101474b7a8cc026c7969a0cf4279691e802278 | 202,714 | /**
* Copyright 2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 55.190308 | 261 | 0.643981 |
229eda430d7d3509b1b49fb7c9525aae87f2e73d | 2,029 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.sdk.resources;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
import com.google.common.collect.ImmutableSet;
import org.junit.jupiter.a... | 34.389831 | 99 | 0.747166 |
05049b46a284824dfc99dca4e0ce72eb0cd2d740 | 774 | package io.tomahawkd.tlstester.config;
import io.tomahawkd.config.sources.ConfigSource;
import java.util.HashMap;
import java.util.Map;
public class EnvironmentConfigSource implements ConfigSource {
@Override
public Map<String, String> getData() {
Map<String, String> env = new HashMap<>();
// System OS
Stri... | 24.967742 | 62 | 0.736434 |
2334db0a516eca8dd384ecff839df8611628412b | 6,160 | package se.codeunlimited.firebaseauthexample;
import android.arch.lifecycle.ViewModelProviders;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.FragmentTransaction;
import android.widget.Toast;
import com.google.android.gms.auth.api.Aut... | 40.526316 | 102 | 0.640097 |
c1071efa1b22da1660812a8c2a3ac7063dc53a8e | 1,541 | package com.sicdlib.dao.pyhtonDAO.imple;
import com.sicdlib.dao.pyhtonDAO.IBBSChinaPostDAO;
import com.sicdlib.dao.IBaseDAO;
import com.sicdlib.dto.TbArticleSimilarityEntity;
import com.sicdlib.dto.entity.BbsChinaPostEntity;
import org.hibernate.Session;
import org.springframework.beans.factory.annotation.Autowired;
i... | 29.075472 | 85 | 0.69111 |
43f3cd5e47e9a56f077d3c32180239da1f0cd7df | 1,178 | /*
* This file is subject to the terms and conditions outlined in the file 'LICENSE' (hint: it's MIT); this file is located in the root directory near the README.md which you should also read.
*
* This file is part of the 'Adama' project which is a programming language and document store for board games; however, it... | 38 | 190 | 0.686757 |
c6107690cb1c6b6bb0926f5517d6b7ca624ec3bf | 507 | /*
* Copyright 2016 Gili Tzabari.
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
package com.github.cowwoc.pouch.jersey.scope;
import java.sql.Connection;
/**
* Values specific to a database transaction.
* <p>
* Implementations are not thread-safe.
*
* @author ... | 22.043478 | 93 | 0.7357 |
badbde37d4ac02b26c38b67bae7b2e3228c440d0 | 4,939 | /**
* Copyright (C) 2009-2016 DANS - Data Archiving and Networked Services (info@dans.knaw.nl)
*
* 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/license... | 33.828767 | 118 | 0.621178 |
9fb1828d3b20e3bc7aa59e4fd85c7cda0ff1f468 | 1,108 | // Copyright 2011 The Apache Software Foundation
//
// 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 o... | 33.575758 | 97 | 0.734657 |
070760e97ba6d5fecc4526bece3d94f2a082ca0d | 13,819 | // Copyright (c) 2002 Graz University of Technology. 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
// l... | 43.731013 | 115 | 0.709241 |
ac8831cfa5bd27549b0ce24f2c5696c606e95cff | 1,267 | package com.frre.practica.tsp.programacioni.arreglos.busqueda;
import java.util.Arrays;
/**
* Created by justo on 12/05/16.
*/
public final class Main {
private Main() throws InstantiationException {
throw new InstantiationException("This class is not created for instantiation");
}
public stat... | 25.34 | 88 | 0.521705 |
d0e9e120bf69cd63d5075ec44310373200d320a2 | 1,414 | package com.outbrain.selenium.extjs.components;
import com.outbrain.selenium.extjs.core.locators.ComponentLocator;
import com.thoughtworks.selenium.Selenium;
/**
* @author Asaf Levy
* @version $Revision: 1.0
*/
public class Button extends Component {
/**
* Constructor for Button.
* @param locat... | 22.09375 | 71 | 0.636492 |
8db6c12e9f6ed3b2279485b7efd66d0d28565b0f | 697 | package bloque;
import java.util.ArrayList;
import mapa.Mapa;
import personaje.Personaje;
import posicion.Posicion;
import movimiento.Movimiento;
public class BloqueMovimiento extends Bloque {
private Movimiento movimiento;
public BloqueMovimiento(Movimiento movimiento){
this.movimiento = movimient... | 21.78125 | 77 | 0.724534 |
42f70b5dea1ed8c8f0fcf7c4619a87d11ddd5f24 | 2,321 | package org.ofbiz.content.content;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
/**
* Created by Alex on 2016/7/23.
*/
public class ImgCompress {
private Image img;
private int width;
private int height;
publi... | 32.236111 | 110 | 0.6243 |
adee7c77fef33090dbbf66e73068290f25cd66c7 | 2,805 | /***************************************************************************
* Copyright (c) 2014-2015 VMware, 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
*
... | 48.362069 | 101 | 0.703743 |
ec5d200169aea4c714d8fa40494061795641a2da | 130 | /*
* Author: Manoj Bharadwaj
*/
package pcap.reconst.compression;
public interface Unzip {
public byte[] unzip();
} | 13 | 34 | 0.646154 |
9b177d2b693b84dd583149ef703a55c08de1a522 | 835 | package modularmachines.common.blocks.tile;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.play.server.SPacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ITickable;
public abstract class TileEntityBase extends TileEntity implements ITickable {
... | 24.558824 | 79 | 0.779641 |
cbc782432f51d5d96ea05791bbd00ac3b0c8e5e6 | 709 | package org.robobinding.widget.timepicker;
import org.robobinding.viewbinding.BindingAttributeMappings;
import org.robobinding.viewbinding.ViewBinding;
import android.widget.TimePicker;
/**
*
* @since 1.0
* @version $Revision: 1.0 $
* @author Joachim Hill-Grannec
*/
public class TimePickerBinding implements Vie... | 29.541667 | 88 | 0.767278 |
1b3d7a4a843ffd7ac0112f2ad2a350d268e8c54d | 1,104 | import java.util.Locale;
import java.util.Scanner;
public class Exercicio06 {
public static void main(String[] args){
System.out.println("digite tres valores A, B e C, que irá mostrar: |A- a área do triângulo retângulo que tem A por base e C por altura |B- a área do círculo de raio C |C- a área do trapézio... | 42.461538 | 321 | 0.557065 |
c44eb7f696ccd2d32c36a4a933cdcb448d3d5f9d | 1,175 | /*
* Copyright 2000-2021 Vaadin Ltd.
*
* 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... | 30.128205 | 80 | 0.711489 |
d6a90c68f5ea7ed935296b21c87cfda3ae574fd4 | 2,245 | /*
* Copyright (c) 2010-2016 Osman Shoukry
*
* 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... | 29.539474 | 95 | 0.726503 |
8d43696947a0ad7b7095ff5fada839f2fa047d18 | 5,891 | /*
* 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 ... | 29.903553 | 112 | 0.61195 |
3d8cd867c3f7d5e3027ff5be7eb4000105fb79b9 | 13,835 | package com.umiwi.ui.fragment;
import android.annotation.SuppressLint;
import android.app.Service;
import android.content.Intent;
import android.content.res.AssetFileDescriptor;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.hardware.Sensor;
import android.hardware.Sensor... | 28.006073 | 183 | 0.744272 |
011cfe5b5c862361c26fbfaeb4f5213e9b0a45d8 | 434 | package pl.lotko.datetime.holidays.fixed;
import lombok.Value;
import pl.lotko.datetime.holidays.Holiday;
import java.time.LocalDate;
import java.time.Month;
@Value
public class FixedHoliday implements Holiday {
private final int dayOfMonth;
private final Month month;
@Override
public boolean isOn(L... | 22.842105 | 88 | 0.732719 |
7cd71ee926ad39568a2c0f2c4c3d25698035743e | 282 | package quoter;
public class ProfilingController implements ProfilingControllerMBean {
private boolean enable = true;
public boolean isEnable() {
return enable;
}
@Override
public void setEnable(boolean enable) {
this.enable = enable;
}
}
| 18.8 | 70 | 0.673759 |
3dbb27305c2ef8779017650b6226128793124e3f | 1,575 | package net.minecraft.world;
import javax.annotation.Nullable;
import net.minecraft.block.BlockState;
import net.minecraft.entity.Entity;
import net.minecraft.util.math.BlockPos;
public interface IWorldWriter {
boolean setBlockState(BlockPos pos, BlockState state, int flags, int recursionLeft);
/**
* Sets ... | 35 | 101 | 0.725714 |
7cba7f4a6b4460f84e5e31d233f669a128898964 | 2,365 | package com.ants.modules.system.controller;
import com.ants.common.system.query.QueryGenerator;
import com.ants.common.system.result.Result;
import com.ants.modules.system.entity.SendMailHistory;
import com.ants.modules.system.service.SendMailHistoryService;
import com.baomidou.mybatisplus.core.conditions.query.QueryW... | 34.779412 | 115 | 0.677801 |
15cd928b9551ae98276fd483cf893036d484db13 | 197 | package com.algorithm.pattern.proxy;
import java.lang.annotation.*;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface AnotherAnnotationActorMethod {
}
| 19.7 | 48 | 0.822335 |
2dd2c14b29b00074c3bbc53f9a48e2797d29154e | 2,714 | package com.sms.io;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import com.sms.io.flv.IKeyFrameDataAnalyzer.KeyFrameMeta;
public cla... | 26.871287 | 98 | 0.722918 |
fb156737d7e29a35d4e041a113b6300b2096b78d | 9,343 | /*
* Copyright 2005 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 i... | 37.979675 | 143 | 0.628385 |
a68b47d050e7019a35edcce8784bc0df5a411a6c | 1,360 | /*
* Copyright (c) 2010-2021 Allette Systems (Australia)
* http://www.allette.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 a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0... | 18.888889 | 75 | 0.638971 |
3d6551548606a1a949ea3d20ce4f1b8d3c20a619 | 1,777 | package org.andengine.opengl.util;
import java.nio.ByteBuffer;
import org.andengine.d.i.a;
public class BufferUtils {
private static final boolean a;
private static final boolean b;
private static final boolean c;
static {
boolean z;
try {
System.loadLibrary("andengine");
... | 26.132353 | 146 | 0.504783 |
8a3d070812f5e28c1ba9fbcffab2ae7a35dcaa1d | 8,244 | package com.lupicus.nasty.entity;
import java.util.Random;
import com.lupicus.nasty.config.MyConfig;
import net.minecraft.core.BlockPos;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.Difficulty;
import net.minecraft.world.InteractionHand;
i... | 32.714286 | 172 | 0.729864 |
a1e722b4a321213894c3486dda85673c834de9cd | 294 | package com.example;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class BeansConfig {
// Java configuration in Spring
@Bean ("myDog")
public Dog getMyDog() {
return new Dog("Fluffy");
}
}
| 16.333333 | 60 | 0.748299 |
1c71539dc49c4a5a1e06ea2f30d1e5382ec98396 | 919 | package ceylon.language;
import com.redhat.ceylon.compiler.java.metadata.Annotation;
import com.redhat.ceylon.compiler.java.metadata.Annotations;
import com.redhat.ceylon.compiler.java.metadata.Ceylon;
import com.redhat.ceylon.compiler.java.metadata.TypeInfo;
@Ceylon(major = 3)
public interface Number {
@Ann... | 26.257143 | 60 | 0.708379 |
9001df314d916b290958b348794db9859ee36ff2 | 5,842 | package me.tatarka.bindingcollectionadapter2;
import android.databinding.ViewDataBinding;
import android.support.annotation.LayoutRes;
import android.util.SparseArray;
/**
* Provides the necessary information to bind an item in a collection to a view. This includes the
* variable id and the layout as well as any ex... | 31.75 | 99 | 0.615885 |
8ef590628149aa150949457f6979c1cbdee37d8f | 1,271 | public class Conditions {
public static void main(String[] args) {
boolean isTrue = true;
if(isTrue) {
System.out.println("True is true");
}
if(10 > 5) {
System.out.println("10 is greater than 5");
} // single line comment
/* multiline
comment */
if(returnTrue()) {
System.out.println("returnT... | 19.553846 | 49 | 0.5893 |
007028804663c0e95708c8245ec1d71db70685d0 | 12,259 | /*******************************************************************************
* Copyright (c) 2000, 2008 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... | 41.276094 | 141 | 0.722897 |
8ad2129fd82b5d72a59e3c21dac64e304ba3e385 | 2,831 | package test.byexample.macro.custom;
import com.github.javaparser.ast.Node;
import com.github.javaparser.utils.Log;
import junit.framework.TestCase;
import org.jdraft._class;
import org.jdraft.macro.macro;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.function.Co... | 34.52439 | 112 | 0.665489 |
dcc935c9251207af60e8cb67adac79d0e7cb35ed | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:28f0d636f9bcd0d6e7bdc0f7953c503a900aa672b9c15108463ad2963becffb8
size 7254
| 32.25 | 75 | 0.883721 |
8027fa9cc26509cf046e8f6274d5da0e8c755104 | 1,143 | package simplest.possible;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.function.Consumer;
/**
* <pre>
* some goals:
* ===
* - [ ] take a string, a key or an expression, and return bytes
*
* cat was the most literal translation of the first goal.
*
* hig... | 22.411765 | 70 | 0.569554 |
f694a0fa65066b9acb4bebd128b3c0d288d43fd4 | 7,763 | package com.edgardleal.engine;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.text.DecimalFormat;
import javax.swing.BorderFactory;
import javax.swing.JDialog;
/**
*/
public class Vetor {
pri... | 20.428947 | 101 | 0.547855 |
2ddf6ad87bbba1866f0ae3246e79964bcbdf6435 | 1,519 | package javax.persistence.upsert.model;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import lombok.Getter;
import lombok.experimental.SuperBuilder;
@SuperBuilder
public class Header {
@Getter
private String name;
private String references;
private St... | 23.015152 | 86 | 0.662936 |
08d6d6be44235ce84b2a1dd2be09f3335daeae43 | 7,735 | /**
*/
package subkdm.kdmObjects;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Metho Kind</b></em>',
* and utility methods for working with t... | 22.485465 | 104 | 0.583581 |
08416e798ecfd9642cbcac9297cba563086cf626 | 1,905 | /*
* Copyright 2014 OCTO Technology
*
* 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... | 27.608696 | 75 | 0.745932 |
17c97bf2e5a2b9b9561aea0cf22f530fe6bbf980 | 17,467 | package com.example.asknanterre;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import... | 38.304825 | 183 | 0.536784 |
1a37945ccec3331c4d595383540a907d2f63bfe8 | 225 | package example.service;
import example.repo.Customer1392Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer1392Service {
public Customer1392Service(Customer1392Repository repo) {}
}
| 20.454545 | 59 | 0.84 |
15997705afe1fd528369fa81540f234b0c59d70b | 1,669 | /*
* 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 ... | 32.72549 | 75 | 0.756741 |
527e8da2e280cd2c7c1eac082ba5e524d2198c73 | 4,731 | package org.mockserver.echo.http;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.handler.codec.http.DefaultFullHttpResponse;
import io.netty.handler.codec.http.DefaultHttpObject;
import org.mockserver.codec.Moc... | 43.009091 | 188 | 0.681463 |
6d42bcacc2cafc1e0b98aea2c92ba3b866887ba3 | 1,413 | /**
*/
package aadl2.tests;
import aadl2.Aadl2Factory;
import aadl2.AbstractFeature;
import junit.textui.TestRunner;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Abstract Feature</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
public class AbstractFeatureTest extends DirectedFeat... | 19.901408 | 71 | 0.634112 |
881e7b6f61ee00d3863acc7239dc55425e0c3af4 | 548 | package com.github.carniwar.springboot.scalable.rest;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* Application Main class. Called when package application is in run with fat jar.
*/
@SpringBootApplication(
scanBasePackages = Ap... | 27.4 | 88 | 0.759124 |
b45f99925e674dd39716a53d3c8486cea4624ac0 | 8,987 | /*
* (C) Copyright 2015 Kurento (http://kurento.org/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 32.68 | 109 | 0.736397 |
82ef183895fe496311fed56704d741385d50b48b | 1,454 | package ru.job4j.bank;
/**
* @author Maxim Dick (maxim1994barca@gmail.com)
* @version $Id$
* @since 0.1
*/
public class User implements Comparable<User> {
private String name;
private String passport;
public User() { }
public User(String name, String passport) {
this.name = name;
... | 24.233333 | 113 | 0.537139 |
d4018b6d4b17b606fb2a40f669be5d11e50cbd57 | 1,754 | package com.cym.model;
import cn.craccd.sqlHelper.bean.BaseModel;
import cn.craccd.sqlHelper.config.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel("额外参数")
@Table
public class Param extends BaseModel {
@ApiModelProperty("所属反向代理id")
String serverId;
@ApiModel... | 18.463158 | 53 | 0.744014 |
a0901ee85ba8b463d69fcd77545628935642311f | 5,221 | package com.fasterxml.util.membuf;
/*
* Copyright Tatu Saloranta, 2011-
*/
/**
* Shared allocator object, used by standardl {@link MemBuffer} implementations.
* Handles allocation of new {@link Segment} instances, as well as sharing of
* reusable segments (above and beyond simple reuse that individual
* buffers... | 34.576159 | 91 | 0.587244 |
0c9cc7885b465d9b553078438830c2ea8cea68ea | 3,908 | /**
* Copyright (C) 2013 Motown.IO (info@motown.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 33.689655 | 206 | 0.658649 |
6554d81743ad5e9d0fbdb7f6817b9696f496f656 | 1,770 | package io.github.noeppi_noeppi.libx.impl.render;
import net.minecraft.client.renderer.block.model.BakedQuad;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.server.packs.resources.ResourceManager;
import net.minecraft.server.packs.resources.SimplePreparableReloadListener;
import ... | 39.333333 | 127 | 0.719774 |
905b214db689a22a203cab95fd652cfb92b2451b | 6,573 | package ca.gc.aafc.seqdb.api.repository;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import java.io.IOException;
import... | 36.314917 | 101 | 0.757493 |
2bf8ae577afd4d1ae3a81ef38053ec34647d7655 | 902 | package com.cezarykluczynski.stapi.server.literature.mapper;
import com.cezarykluczynski.stapi.client.v1.rest.model.LiteratureBase;
import com.cezarykluczynski.stapi.model.literature.dto.LiteratureRequestDTO;
import com.cezarykluczynski.stapi.model.literature.entity.Literature;
import com.cezarykluczynski.stapi.server... | 39.217391 | 84 | 0.859202 |
557e8bff871e4ba2de138c227a5aa25464c0b250 | 691 | package gov.samhsa.c2s.trypolicy.config;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
imp... | 24.678571 | 75 | 0.765557 |
a9653eb4c6a490f81523df7cc4c9f534697ec373 | 1,892 | package com.commercetools.service.ctp;
import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.payments.Payment;
import io.sphere.sdk.payments.PaymentMethodInfo;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.Co... | 42.044444 | 148 | 0.72833 |
9770dc0a1f8b8871b473ff91d1b2b1872c6a615a | 1,391 | package controllers.security;
import model.dao.UserDao;
import model.entity.User;
import model.service.UserService;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.BadCredenti... | 35.666667 | 102 | 0.780733 |
89cc0a5f372656abbda01e35a78805c953e362ef | 858 | package zerod.copy.domain;
import javafixes.object.DataObject;
import java.time.ZonedDateTime;
import java.util.List;
import static java.util.Collections.unmodifiableList;
import static javafixes.common.CollectionUtil.newList;
public class CopyProgress<Id, SuccessSummary> extends DataObject {
public final Id i... | 31.777778 | 136 | 0.758741 |
f5b5f1872d073668541fe145b0e36bbc1e1f56ff | 4,533 | package retroscope.datamodel.datastruct.struct;
import retroscope.datamodel.datastruct.RQLSymbol;
import retroscope.datamodel.datastruct.variables.DoubleRQLVariable;
import retroscope.datamodel.datastruct.variables.LongRQLVariable;
import retroscope.datamodel.datastruct.variables.StringRQLVariable;
import retroscope.d... | 27.143713 | 98 | 0.531436 |
42d76c26e9defda99e3eb27481807a9c6b9fb09c | 2,198 | /******************************************************************************
* Copyright (c) 2016 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the... | 25.858824 | 81 | 0.635123 |
3ba42c7505b7de15ba77da1e0eb538651275fb71 | 2,579 | package de.fau.amos.virtualledger.server.banking.adorsys.api.bankAccessEndpoint;
import de.fau.amos.virtualledger.server.banking.model.BankAccessBankingModel;
import de.fau.amos.virtualledger.server.banking.model.BankingException;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframewor... | 40.936508 | 125 | 0.783249 |
e40a16fbb41899c26a708e67f235e77075891410 | 260 | package com.github.sigalhu.function.unchecked;
/**
* @see java.util.function.IntToLongFunction
* @author huxujun
* @date 2019-04-20
*/
@FunctionalInterface
public interface UncheckedIntToLongFunction {
long applyAsLong(int value) throws Exception;
}
| 20 | 49 | 0.765385 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.