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 |
|---|---|---|---|---|---|
9d3e9c3123bf1ec6181245f4db97de7dc923a2ea | 3,107 | package edu.brown.cs.systems.pivottracing.tracepoint;
import java.lang.reflect.Method;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.google.common.collect.Lists;
import edu.brown.cs.systems.pivottracing.advice.AdviceProtos.AdviceSpec;
import edu.brown.cs.systems.pivottracing.agent.W... | 39.329114 | 150 | 0.701963 |
76e1432014dc686511b277c71cbdbb851448cbc4 | 1,483 | package br.unb.cic.mase.gui;
import javax.swing.JFrame;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
public class MainScreen extends JFrame {
private static final long serialVersionUID = 1L;
private static MainScreen instance;
private SimulationScreen simulationScr;
private Con... | 22.469697 | 56 | 0.698584 |
9368f2fc6decb9ef5f25d300b01be27090d3e1d7 | 5,945 | /*
* 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.697531 | 139 | 0.690664 |
e578b60751b7737d90d5efa4e8f6f3ea8313248c | 3,496 | package net.xtrafrancyz.mods.minidot.items.pet;
import net.minecraft.client.model.ModelPlayer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.MathHelper;
import net.minecraft.util.ResourceLocation;
import net.xtrafrancyz.mods.minidot.item... | 41.619048 | 103 | 0.606693 |
8953b005f6a890a47ac3e64841d2e8a69a3fb7fe | 390 | package cn.jeeweb.generator.mapper;
import cn.jeeweb.generator.entity.Template;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* @Title: 生成模板数据库控制层接口
* @Description: 生成模板数据库控制层接口
* @author jeeweb
* @date 2017-09-15 15:10:12
* @version V1.0
*
*/
@Mapper... | 21.666667 | 62 | 0.741026 |
f6d5be8e6a9374614d58e9688d0781d1bd2578d9 | 1,998 | /**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unl... | 24.975 | 81 | 0.725726 |
e638bda0ca03a380271ff8be28ac0467e0cb4e24 | 1,995 | package com.xarql.user.front;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.xarql.auth.AuthSession;
import com.... | 30.692308 | 167 | 0.678697 |
63cfbfddaa39f2521e1c9b3d3e1c68f2046f2dff | 150 | package com.studentsystem.dao;
import com.studentsystem.entity.Student;
//学生的dao接口继承顶层dao 接口
public interface StudentDaoI extends DaoI<Student>{
}
| 16.666667 | 51 | 0.813333 |
da0b11562a7029c39a1a576e5bb300f805d75c55 | 5,389 | package com.drajer.eca.model;
import java.util.List;
import java.util.Set;
import org.apache.commons.collections4.SetUtils;
import org.hl7.fhir.r4.model.CodeableConcept;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.drajer.ecrapp.config.ValueSetSingleton;
import com.drajer.ecrapp.util.Applicati... | 34.993506 | 150 | 0.694006 |
63520a66d56ef9fc9f3ee913e35d954fab3ea29e | 229 | package ramdan.file.line.token;
public interface LineTokens extends Tokens,Iterable<LineToken> {
boolean empty();
int count();
long length();
LineToken head();
LineToken tail();
void add(LineToken lt);
}
| 20.818182 | 64 | 0.676856 |
04ca19b1ab3259e66f7bad58ead4270a5ebbffd5 | 2,510 | package com.tangmu.app.TengKuTV.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.util.AttributeSet;
import android.widget.Checkable;
import android.widget.ImageView;
import androidx.annotation.Nullable;
import com.tangmu.app.TengKuTV.R;
publi... | 28.202247 | 102 | 0.618327 |
8fff65c5d375f8a38ec15fc060f1fba82bf05d7c | 893 | /*
* Decompiled with CFR 0.150.
*
* Could not load the following classes:
* net.runelite.mapping.Export
* net.runelite.mapping.ObfuscatedGetter
* net.runelite.mapping.ObfuscatedName
* net.runelite.mapping.ObfuscatedSignature
*/
import java.util.Collection;
import net.runelite.mapping.Export;
import net.run... | 27.90625 | 69 | 0.739082 |
2896e44ad75fe80ed6e1aec4af305adab1771344 | 1,466 | package bugs.stackoverflow.belisarius.commands;
import java.util.List;
import bugs.stackoverflow.belisarius.services.MonitorService;
import bugs.stackoverflow.belisarius.utils.CommandUtils;
import org.sobotics.chatexchange.chat.Message;
public class CommandsCommand implements Command {
private final Message me... | 29.32 | 129 | 0.680764 |
415d328a5585c58c1df76c9b47187a28a3a7d1ac | 834 | package com.vencent.transcloudtranslate.config;
/**
* @description:跨域配置
* @author: vencent
* @create 2020-03-26
**/
/*
@Configuration
public class CorsConfig implements WebMvcConfigurer {
@Bean
public WebMvcConfigurer corsConfigurer()
{
return new WebMvcConfigurer() {
@Override
... | 29.785714 | 121 | 0.570743 |
04457779c857ac84e18fa50a7839ffc57be930a8 | 545 | package jpuppeteer.cdp.client.entity.fetch;
/**
*/
public class FailRequestRequest {
/**
* An id the client received in requestPaused event.
*/
public final String requestId;
/**
* Causes the request to fail with the given reason.
*/
public final jpuppeteer.cdp.client.constant.network... | 24.772727 | 113 | 0.702752 |
d32a089e4567d121e3ebbe2371e95801fbe4720c | 157 | package jp.osaka.appppy.sample.osakacity.constants;
/**
* パーツ定義
*/
public enum PARTS {
LOCATION,
URL,
CALL,
PARKING,
FREE,
INFO
}
| 11.214286 | 51 | 0.598726 |
9dfee3b91733fd3a276b70d3481deced63508d19 | 2,258 | /*
* Copyright (c) 2016, Quancheng-ec.com All right reserved. This software is the confidential and
* proprietary information of Quancheng-ec.com ("Confidential Information"). You shall not disclose
* such Confidential Information and shall use it only in accordance with the terms of the license
* agreement you ent... | 32.257143 | 99 | 0.713906 |
c53de59ce9fdda2a688bcdffe63108ababb49730 | 1,465 | /**
* Created with IntelliJ IDEA.
* User: jhasmanyquiroz
* Date: 11/17/15
* Time: 11:59 AM
* To change this template use File | Settings | File Templates.
*/
package ui.pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import ... | 29.3 | 76 | 0.713993 |
9e9cb670ba0d9fac4018e466bbd9534cdb76bb32 | 5,542 | package week1.controller;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import week1.model.Bill;
import week1.model.Product;
import week1.model.Seller;
import java.time.LocalDateTime;
public class ProxyITerminalControllerImplTest {
private ITerminalController ... | 33.792683 | 111 | 0.673764 |
cba8c15b7355b54ef59bcda91e7e5c576546cae0 | 156 | package aula.threads;
public class ExecutarTelaFilaThread {
public static void main(String[] args) {
TelaFilaThread tela = new TelaFilaThread();
}
}
| 17.333333 | 45 | 0.74359 |
3185197f179c2c6e4aab8a4b33b3404daf523366 | 101 | package br.com.leonardo.mercadolivre.model.enuns;
public enum Status {
INICIADA,
SUCESSO;
}
| 14.428571 | 49 | 0.722772 |
71fb320f6fdae58d9c35dfcabdf4131e5344dbed | 1,705 | package org.jakartaeerecipes.chapter06.recipe06_04;
import java.util.Iterator;
import java.util.List;
import javax.persistence.*;
import org.jakartaeerecipes.chapter06.entity.BookAuthor06;
/**
* Recipe 6-4: Persistence Unit Test
*
* @author juneau
*/
public class SequenceTest {
public static void main(String... | 31.574074 | 99 | 0.537243 |
cb21505e2601ad9949102bbeb73fae5a58c3d2db | 3,718 | // "Therefore those skilled at the unorthodox
// are infinite as heaven and earth,
// inexhaustible as the great rivers.
// When they come to an end,
// they begin again,
// like the days and months;
// they die and are reborn,
// like the four seasons."
//
// - Sun Tsu,
// "The Art of War"
package com.theartofdev.edm... | 36.811881 | 119 | 0.678322 |
69fe02e8e9531193ab963132d84c8eda6f2e3ecf | 5,985 | package org.intermine.bio.dataconversion;
import java.io.Reader;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import org.intermine.dataconversion.ItemWriter;
import org.intermine.metadata.ConstraintOp;
import org.in... | 34.595376 | 131 | 0.715957 |
e3a3bd2c80e8982022f49ecdc3244627e9ce5dc9 | 210 | package com.viseator.chartit;
/**
* Created by viseator on 10/18/17.
* Wu Di
* viseator@gmail.com
*/
public abstract class ChartViewFragment extends BaseFragment{
public abstract void updateData();
}
| 17.5 | 61 | 0.728571 |
41aa18fa96ca510c9beedc2dc49a369aabdd8ad6 | 41,102 | 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... | 14.366305 | 813 | 0.810812 |
cf2fc20a0a218f6378278cf9a1c1c3e494fb7dac | 2,129 | package cn.rzedu.sc.goods.config;
import com.github.wxpay.sdk.WXPayConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
@Component
public class SFWXPayConfig implements WXPayConfi... | 23.141304 | 80 | 0.612964 |
f24649832129c22feefcdd3285ae21a5e085c917 | 768 | package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
public class NBTTagString extends NBTBase {
public String stringValue;
public NBTTagString() {
}
public NBTTagString(String var1) {
this.stringValue = var1;
if (var1 == null) {... | 21.333333 | 75 | 0.643229 |
f3dc3142a98dcc1a0a3c4c1ffc6931a56ee862ca | 1,940 | package com.intelligentmusicplayer.android.musicplaying;
import android.content.Context;
import android.media.MediaPlayer;
import com.google.android.exoplayer2.extractor.DefaultExtractorsFactory;
import com.google.android.exoplayer2.source.ExtractorMediaSource;
import com.google.android.exoplayer2.source.MediaSource;... | 41.276596 | 120 | 0.773711 |
8a7d93dede35cc9432c233e33de2296c93e23ebb | 9,742 | /*
* Copyright (c) 2019 Hydrox6 <ikada@protonmail.ch>
* 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
* ... | 33.826389 | 179 | 0.648943 |
30616c2a3684518f27075580c3150c538ecb7efd | 2,574 | /*
* 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 ... | 42.196721 | 95 | 0.722222 |
9e4de48a849b2d6ecb51c78fd26542270513fbbb | 5,651 | package ru.inovus.egisz.medorg.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.inovus.egisz.medorg.callback.ResponseCommand;
import ru.inovus.egisz.medorg.exceptions.ConsumerHttpBadGatewayException;
import ru.inovus.egisz.medorg.exceptions.NotDeliveredException;
import ru.inovus.egisz.medor... | 40.654676 | 259 | 0.691205 |
760e951cc1bb9b1109f366dd2ee89d4bab762676 | 3,977 | /*******************************************************************************
* Copyright 2016-2017 Dell 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/... | 53.026667 | 100 | 0.811164 |
83bcf3481e5df0a07dca1b5c6fd8f3baa2c19485 | 1,334 | package com.examples.audio;
import android.support.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Allows {@link MediaPlayerHolder} to report media playback duration and progress updates to
* the {@link MainActivity}.
*/
public abstract class PlaybackI... | 20.84375 | 94 | 0.669415 |
6d67f4a512c3d76e4d91f7b6defc509522905234 | 231 | package id.ac.unpar.siamodels.matakuliah;
import id.ac.unpar.siamodels.InfoMataKuliah;
import id.ac.unpar.siamodels.MataKuliah;
@InfoMataKuliah(nama = "Jaringan Komputer", sks = 4)
public class AIF133305 extends MataKuliah {
}
| 21 | 52 | 0.787879 |
afbb7f3bc74e564ba8896d124a548efe22b6ad9b | 1,093 | //Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set).
//
//Note: The solution set must not contain duplicate subsets.
//
//Example:
//
//Input: [1,2,2]
//Output:
//[
// [2],
// [1],
// [1,2,2],
// [2,2],
// [1,2],
// []
//]
package wenxinjie1;
import... | 23.76087 | 114 | 0.576395 |
51b7feec41efa93be5c43c2fa7fcbca4aa2b1374 | 5,787 | package com.jeecg.superquery.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
*... | 19.886598 | 68 | 0.68291 |
69b5487855e6bd33cda731e004c2b7bb2b380ddb | 1,008 | package a3.network.api;
import java.io.Serializable;
import java.util.Arrays;
import ray.rml.Matrix3;
import ray.rml.Matrix3f;
public class Rotation implements Serializable {
private static final long serialVersionUID = -3441167665366306905L;
final float[] rotationArray;
public Rotation(float[] rotationArray)... | 22.4 | 82 | 0.731151 |
09b15abf62d45a3cb10f2d54e61260b9cfe0f62f | 1,040 | package GUI;
import Producers.Resource;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.Random;
public class Utils {
public static BufferedImage getScaledImage(Image srcImg, int w, int h) {
BufferedImage resizedImg = new BufferedImage(w, h, BufferedImage.TRANSLUCENT);... | 33.548387 | 108 | 0.640385 |
73ca4a849103ed4c9791f53ceddc5fa27afc3d27 | 456 | package tw.idv.ken.kata.wordwrapper;
public class Kata2 {
public String wrap(String content, int lineWidth) {
StringBuilder sb = new StringBuilder();
int lineBreaks = 1;
for(int i=0;i<content.length(); i++){
sb.append(content.charAt(i));
if(i == (lineWidth * lineBrea... | 26.823529 | 55 | 0.515351 |
88c7d602c57a66fdaf4bb54b9b4ffcfbcfbbe016 | 263 | // https://www.codewars.com/kata/514b92a657cdc65150000006
public class Solution {
public int solution(int number) {
int sum = 0;
for(int i = 1; i < number; i++) {
if(i % 3 == 0 || i % 5 == 0)
sum += i;
}
return sum;
}
}
| 17.533333 | 57 | 0.51711 |
9adc528dcab4b7235161e043f294b92c65fd5733 | 7,696 | /* ###
* IP: GHIDRA
*
* 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 writin... | 27.985455 | 98 | 0.716996 |
6700e7fcf1fd7ec1eec715f6d9305b73bbc54617 | 4,913 | /*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | 23.620192 | 99 | 0.680236 |
ee122db004485d7ecf70eb239a090bbadd4542f0 | 208 | package com.simibubi.create.foundation.render.backend.gl.attrib;
public interface IVertexAttrib {
String attribName();
IAttribSpec attribSpec();
int getDivisor();
int getBufferIndex();
}
| 16 | 64 | 0.721154 |
07ebf6a6acd8dd4ed939218983b577793626f48d | 2,431 | package domain.use_cases.user_manager.address;
import domain.gateway.UserAddressInterface;
import domain.presenter.UserAddressPresenterInterface;
import domain.requests.UpdateAddressRequest;
public abstract class UpdateAddressFactory {
protected UserAddressInterface repository;
private String id;
private ... | 22.933962 | 96 | 0.645825 |
112e97aebfc08e7c42c02227beeb8203dfe9daaf | 2,741 | package uk.gov.dwp.queue.triage.core.jms.activemq.configuration;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;
import uk.gov.dwp.queue.triage.core.jms.JmsMessagePropertyEx... | 65.261905 | 125 | 0.796425 |
fb97dda49c17ca17732646e2a022c70cd4c30926 | 664 | package org.apache.sling.graalvm.http;
import io.quarkus.test.junit.QuarkusTest;
import org.junit.jupiter.api.Test;
import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.equalTo;
import javax.ws.rs.core.MediaType;
@QuarkusTest
public class SlingResourceTest {
@Test
public... | 23.714286 | 58 | 0.65512 |
09e14c6af12394ad7d8419cbb70fce51ac803f43 | 3,425 | package eco.ui;
import eco.render.TextureAtlas;
import eco.render.Render;
import eco.render.RenderUtil;
import org.lwjgl.opengl.GL11;
import java.awt.*;
/**
* A <i>ToggleTextButton</i> behaves just like a normal <i>TextButton</i>, but
* will toggle to it's second texture when pressed, not just when moused over
*
... | 35.677083 | 112 | 0.569635 |
8d4cce45f42cfc953576ac6215fd0738f5dcd866 | 2,306 | package seedu.address.ui;
import java.util.Comparator;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Region;
import seedu.address.model.module.Module;
import seedu.address.model.tag.Tag;
/**
* An UI compon... | 30.746667 | 114 | 0.612316 |
6eed7decd808df294f027563dbda91e6717f9f0b | 200 | package me.yifeiyuan.flapdev.components.generictest;
import me.yifeiyuan.flapdev.components.base.BaseModel;
/**
* Created by 程序亦非猿 on 2019/1/29.
*/
public class GenericModel extends BaseModel {
}
| 20 | 54 | 0.775 |
57a3dc408ae2f5646096fb56a2c4f2ab28cf3e99 | 425 | package uz.maniac4j.participantservice.participant;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
import java.util.Optional;
public interface ParticipantRepository extends JpaRepository<Participant,Long> {
boolean existsByUsername(String username);
Optional<Participant>... | 32.692308 | 80 | 0.828235 |
0a5524ef37cfbc6e983b89550394db5f6017aa5f | 2,960 | /*
* Copyright (c) Numerical Method Inc.
* http://www.numericalmethod.com/
*
* THIS SOFTWARE IS LICENSED, NOT SOLD.
*
* YOU MAY USE THIS SOFTWARE ONLY AS DESCRIBED IN THE LICENSE.
* IF YOU ARE NOT AWARE OF AND/OR DO NOT AGREE TO THE TERMS OF THE LICENSE,
* DO NOT USE THIS SOFTWARE.
*
* THE SOFTWA... | 33.636364 | 122 | 0.651014 |
720811d477f2bd08c4cc7e619f9b90c24dd53163 | 1,558 | package com.example.bonvoyage;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.fires... | 41 | 93 | 0.718228 |
babad5456b5358b5cd4455959efaac11897b160e | 2,785 | package com.wavefront.agent.handlers;
import com.wavefront.dto.Event;
import com.wavefront.dto.SourceTag;
import org.easymock.EasyMock;
import wavefront.report.ReportEvent;
import wavefront.report.ReportPoint;
import wavefront.report.ReportSourceTag;
import wavefront.report.Span;
import wavefront.report.SpanLogs;
im... | 33.963415 | 85 | 0.744345 |
3155bba8cd12794676077105a2c9b8c95f6d40cc | 5,009 | // This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
package com.starrocks.scheduler;
import com.google.common.collect.Maps;
import com.google.common.collect.Queues;
import com.starrocks.common.Config;
import com.starrocks.common.util.UUIDUtil;
import com.starrocks.schedu... | 41.741667 | 116 | 0.659812 |
0a225a49fc859a75e79135dc672d06496aa91bf0 | 47,665 | package vista;
import controlador.CoordinadorCuarentenario;
import java.awt.Color;
import java.awt.Desktop;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import logica.LogicaCuarenten... | 57.220888 | 179 | 0.689122 |
7381ad5d1e1a8c0cdfc3b508291baa6b81195c5d | 2,316 | /*
* Maisam Alatrach 20091817
* Oudai Fayek 20091861
* Latrobe University
* 29/05/2020
*/
package com.pages;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpS... | 30.077922 | 119 | 0.738774 |
934c0ebe9623318db3dbb16211215e2d22ec4ca2 | 2,240 | package org.nico.ratel.landlords.server.robot;
import org.nico.noson.Noson;
import org.nico.ratel.landlords.entity.ClientSide;
import org.nico.ratel.landlords.entity.PokerSell;
import org.nico.ratel.landlords.entity.Room;
import org.nico.ratel.landlords.enums.SellType;
import org.nico.ratel.landlords.enums.ServerEvent... | 42.264151 | 119 | 0.75 |
6e3cf5b565575ccd9dbf9603350e5e129be92167 | 1,115 | package fr.zom.zapi.utils;
import net.minecraft.item.Food;
import net.minecraft.potion.EffectInstance;
import javax.annotation.Nullable;
import java.util.function.Supplier;
public class FoodUtils
{
public static Food createFood(boolean isMeat, boolean isFastToEat, int hunger, float saturation, @Nullable Supplier<E... | 22.3 | 159 | 0.733632 |
3d8a266d5687f823593d5d7e7cf19f5edc9b7f27 | 4,180 | /*
* 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.mycompany.myapp.gui.Matiere;
import com.codename1.components.FloatingActionButton;
import com.codename1.components.Infinit... | 34.545455 | 116 | 0.622727 |
833d3896bb53a1f41b9092f2e9b845c8b90cc070 | 18,798 | package com.salesmanager.shop.store.api.v1.product;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.... | 32.02385 | 236 | 0.736249 |
bd04052207e54df6102bf648a76a380053a7f157 | 1,253 | package org.usfirst.frc.team2706.robot.controls;
import org.usfirst.frc.team2706.robot.EJoystickButton;
import edu.wpi.first.wpilibj.Joystick;
/**
* Button that activates when a trigger is pressed
*/
public class TriggerButtonJoystick extends EJoystickButton {
private final Joystick joystick;
private fina... | 25.571429 | 92 | 0.64166 |
63596bdde9a28028669890b0aafa0e363617e8ad | 6,562 | /*
* Copyright 2016-2019 Tim Boudreau, Frédéric Yvon Vinet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 40.506173 | 102 | 0.579092 |
37e257b4bf807a37d375cda56e16715731fcfb02 | 3,989 | /**
* This class is generated by jOOQ
*/
package generated.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.4" },
comments = "This class is generated by jOOQ")
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtyp... | 33.241667 | 221 | 0.72374 |
f5f7c0d5df698e5d0bb0c38c41dd465a72440acb | 6,116 | package com.example.d_learn;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.AnimationDrawable;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import ... | 34.359551 | 150 | 0.631622 |
4602fbab8222baf3436a12667ea15871b0fc0037 | 651 | package com.hanhan.controller.employee;
import com.hanhan.bean.Employee;
import com.hanhan.service.employee.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springf... | 28.304348 | 62 | 0.795699 |
aea202786851a56607976c2cac8fad691c595022 | 2,499 | package org.schors.merch.controllers;
import lombok.SneakyThrows;
import org.schors.merch.Storage;
import org.schors.merch.data.Child;
import org.schors.merch.data.Gender;
import org.slyrack.telegrambots.ModelAndView;
import org.slyrack.telegrambots.StatefulModelAndView;
import org.slyrack.telegrambots.annotations.Com... | 42.355932 | 96 | 0.697879 |
ab5bbb4a7a66a5f2688c558706ce4bd6769444b3 | 1,690 | package com.personal.oyl.event.sample.order;
import java.util.Date;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
/**
* @author OuYang Liang
*/
public class Order {
private static final Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").create();
private Long id;
... | 22.236842 | 101 | 0.597633 |
3fabbec9b143eceab9af24f7f44e5a0645592a96 | 2,001 |
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.sql.Date;
import java.util.Set;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Too... | 31.761905 | 111 | 0.630185 |
b06896427f473521e948ad1b7308150ab9422236 | 1,632 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.plsql.ast;
import org.apache.commons.io.IOUtils;
import org.junit.Test;
import net.sourceforge.pmd.lang.plsql.AbstractPLSQLParserTst;
public class WhereClauseTest extends AbstractPLSQLParserTst {... | 32.64 | 107 | 0.708333 |
82cbd3496ee6f8a7b79b0c2da5b81394ec1231c0 | 559 | package core.aws.task.s3;
import core.aws.env.Context;
import core.aws.resource.s3.Bucket;
import core.aws.workflow.Action;
import core.aws.workflow.Task;
/**
* @author neo
*/
@Action("desc-s3")
public class DescribeBucketTask extends Task<Bucket> {
public DescribeBucketTask(Bucket bucket) {
super(bucke... | 24.304348 | 103 | 0.68873 |
f07535770a0833e0f3720d539150135c20e3dad5 | 1,515 | package org.baeldung.springcassandra.model;
import org.springframework.data.cassandra.core.mapping.PrimaryKey;
import org.springframework.data.cassandra.core.mapping.Table;
import java.util.Objects;
import java.util.UUID;
@Table
public class Car {
@PrimaryKey
private UUID id;
private String make;
... | 19.423077 | 132 | 0.570297 |
e8944e074b994d65234a18eb1c5ef722af4e8609 | 6,643 | /*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The Universal Permissive License (UPL), Version 1.0
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of this s... | 36.300546 | 143 | 0.63089 |
a81817f34bccf40ad635e912e7a4e7d70a4f113e | 1,006 | package com.biykcode.lesson8.controller;
import com.biykcode.lesson8.entity.Person;
import com.biykcode.lesson8.service.CacheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
im... | 30.484848 | 133 | 0.733598 |
077c720f2b4ab215a311659c8b9b08e12cbd1bb2 | 1,430 | package com.smt.kata.code;
/****************************************************************************
* <b>Title</b>: PolybiusSquare.java
* <b>Project</b>: SMT-Kata
* <b>Description: </b> The Polybius Square cipher is a simple substitution cipher
* that makes use of a 5x5 square grid. The letters A-Z are writt... | 29.183673 | 121 | 0.604196 |
3619920a5d4399a1dec4a7ca743fcf04b5bd6c7f | 10,818 | /*******************************************************************************
* Copyright 2013 Ednovo d/b/a Gooru. All rights reserved.
*
* http://www.goorulearning.org/
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (... | 35.821192 | 190 | 0.728046 |
0003ac62145626b6ba213321e5ae8151dac425e0 | 1,903 | package com.adam.test;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
/**
* @author adam
* contact: luminghi@hotmail.com
* date: 2021/1/8 14:29
* version: 1.0.0
*/
public class Q500 {
public static void main(String[] args) {
String[] words = new String[]{"qz", ... | 31.716667 | 89 | 0.413032 |
146507622a5fd72678f47fbc9627e4f84b0f3309 | 370 | package cn.afterturn.gen.core.util;
import cn.afterturn.gen.config.properties.GunsProperties;
/**
* 验证码工具类
*/
public class KaptchaUtil {
/**
* 获取验证码开关
*
* @author stylefeng
* @Date 2017/5/23 22:34
*/
public static Boolean getKaptchaOnOff() {
return SpringContextHolder.getBe... | 19.473684 | 82 | 0.656757 |
6bd4a8c6bc35e8267c31cebacc9f9255da8e7b91 | 9,372 | /*
* Copyright 2019 ThoughtWorks, 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 agr... | 38.253061 | 153 | 0.714895 |
2a63c430d936837d21aceee2a65e59f3fe51c1ac | 1,002 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.apimanagement.generated;
import com.azure.core.util.Context;
/** Samples for ApiManagementService GetDomainOwnershipIdentifier.... | 41.75 | 176 | 0.787425 |
7bbeb66fcd40e5fbbab26787caca5a625bea3db4 | 2,183 | package com.projecta.mondrianserver.mondrian;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.Map;
import java.util.WeakHashMap;
import org.olap4j.OlapConnection;
/**
* Dynamic proxy for connections to prevent cacheing of connections by S... | 26.301205 | 105 | 0.585891 |
18ea2915f26321abb584a6b3e0d99c9e1e493e50 | 788 | package org.yxs.config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.yxs.config.propertiey.BlogProperties1;
@SpringBootApplication
@EnableConfigurati... | 30.307692 | 89 | 0.769036 |
44135a175b38c8c6bab6abcdbe0e5fd9d32017fb | 7,305 | /*
* Copyright 2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 40.359116 | 171 | 0.727721 |
b696a1ba19367037eca1de3614c56658acb48422 | 2,312 | package com.interview.leetcode.contests._new_weekely.contest192;
import java.util.ArrayList;
import java.util.List;
public class BrowserHIstory {
private int index = 0;
private List<String> list = new ArrayList<>();
public BrowserHIstory( String homepage ) {
list.add(homepage);
}
public... | 37.901639 | 159 | 0.609429 |
27c3c77cff083f9b7bea2bc3c73591b60f67a6d9 | 138 | package com.jk.mvpdemo.mvp2.base;
public interface IBasePresenter<V extends IBaseView> {
void attach(V view);
void detach();
}
| 15.333333 | 54 | 0.710145 |
c83cd3cdae50dc2fd6bba89cc6b9811efd1f7e75 | 2,108 | package com.example.xcs.xcsdemo.rx.api;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.CallAdapter;
import retrofit2.Converter;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
/**... | 39.773585 | 100 | 0.675047 |
be74e82abb5942b3f3b0de85b679792358968144 | 1,620 | package airMap;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.net.MalformedURLException;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
public class MenuView extends JMenu {
private stati... | 26.129032 | 83 | 0.704321 |
14cff78c566b8b0c950323a69fc55c8eafd1d8fa | 8,540 |
package com.jdit.quizio.activity;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.material.snack... | 35.435685 | 111 | 0.609133 |
bd119947a811e9b6002b6fcde442e7ee6a5a64e1 | 1,908 | /*
* 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 un... | 35.333333 | 118 | 0.698637 |
f4a1db21182db6e8bd9fc30735bacec172b1db53 | 432 | package com.company.dao.idao;
import java.util.List;
import com.company.dao.pojo.Emp;
public interface EmpDao extends BaseDao<Emp, Integer> {
//List<Emp> findByName(String ename) throws Exception;
public List<Emp> findEmps();
public boolean saveEmp(Emp e);
public boolean delEmp(Integer empno);
public boolean up... | 28.8 | 55 | 0.770833 |
700b2fe82ee72d89f302d5c0d887829ac49279d4 | 24,534 | /*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.strimzi.systemtest.utils.kafkaUtils;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dat... | 51.1125 | 223 | 0.677916 |
07dfe72980753da18f8f4bd1633592c66d620337 | 178 | package org.aesy.musicbrainz.client;
import org.aesy.musicbrainz.entity.Series;
public interface MusicBrainzSeriesBrowseRequest
extends MusicBrainzBrowseRequest<Series> {}
| 25.428571 | 47 | 0.837079 |
f091aa270e0e39fcd0422c5ffcd728d38d789415 | 267 | package com.base.paginate.interfaces;
import com.base.paginate.viewholder.PageViewHolder;
/**
* 多种布局条目点击事件
*
* @param <T>
*/
public interface OnMultiItemClickListeners<T> {
void onItemClick(PageViewHolder viewHolder, T data, int position, int viewType);
}
| 19.071429 | 84 | 0.749064 |
915ec9a39655ba0a84b533254e98e138f45327ab | 4,617 | package net.minecraft.entity.ai;
import net.minecraft.block.Block;
import net.minecraft.block.BlockCrops;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.ai.EntityAIMoveToBlock;
import net.minecraft.entity.passive.EntityVillager;
import net.minecraft.init.Blocks;
import net.minecraft.init.Ite... | 38.475 | 262 | 0.620966 |
80d6dc4a11333ca18752a4d5eb1c52b3bbf97ed3 | 547 | /**
* Spring's repackaging of {@code org.objectweb.asm.*} (for internal use only).
* <p>This repackaging technique avoids any potential conflicts with
* dependencies on ASM at the application level or from other third-party
* libraries and frameworks.
* <p>As this repackaging happens at the classfile level, source... | 45.583333 | 79 | 0.751371 |
117d6545df484c4c0c1525977ad2e49c3f8d3463 | 2,576 | package com.jeeplus.blog.controller.dto;
import java.sql.Timestamp;
/**
* @author:yuzp17311
* @version:v1.0
* @date: 2017-02-23 19:55.
*/
public class BlogMsgBoardDTO {
private String id;
private String websiteid;
private String msgText;
private BlogUserDTO msgSendUser;
private BlogUserDTO ms... | 21.647059 | 57 | 0.564053 |
845ad55fea0b38ac208ed436bf17fc3aa83f850b | 1,711 | /*
* 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 ... | 38.886364 | 100 | 0.769141 |
7fdf83b56397743275a6245af10487a2d83a406f | 906 | class Database {
private final String F_Name;
private final String S_Name;
private final int Year_o_B;
private int WorkTime = 0;
private static float MaxWorkTime = 1;
public String getF_Name() {
return F_Name;
}
public String getS_Name() {
return S_Name;
}
pub... | 22.097561 | 65 | 0.613687 |
ec508fc7e972e6acf9fd696e8dd6c6286482d285 | 2,723 | package com.caryatri.caryatri.Services;
import android.annotation.TargetApi;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.ContextWrapper;
import android.net.Uri;
... | 35.828947 | 104 | 0.647815 |
103c436ef01a49a102c24659d114d6c996cc8ea1 | 4,110 | /**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in co... | 31.615385 | 101 | 0.775182 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.