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 |
|---|---|---|---|---|---|
d2b60861d3779c5c69be36d36c112b801e0b03d0 | 3,250 | package com.blnz.xsl.tr;
import com.blnz.xsl.om.*;
import com.blnz.xsl.expr.StringExpr;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLFilterImpl;
import org.xml.sax.helpers.ParserAdapter;
import org.xml.sax.ContentHandler;
import org.xml.sax.DTDHandler;
import org.xml.sax.EntityResolver;
import org.xml.... | 27.777778 | 85 | 0.530769 |
fad9f7e0c76cd9de26bad38a07041179cc3264b5 | 6,925 | package fr.redstonneur1256.redutilities.graphics;
import java.awt.*;
import java.awt.color.ColorSpace;
import java.awt.font.TextLayout;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Rectangle2D;
import java.awt.image.*;
import java.util.Arrays;
public class ImageHelper {
private static final C... | 39.346591 | 151 | 0.606643 |
d4fe1c8081a73750892aa2b927b8a90371f9472d | 320 | package com.stylefeng.guns.modular.system.dao;
import com.stylefeng.guns.modular.system.model.OrderMember;
import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
* <p>
* 订单用户信息 Mapper 接口
* </p>
*
* @author stylefeng
* @since 2018-11-17
*/
public interface OrderMemberMapper extends BaseMapper<OrderMember> {
}
| 18.823529 | 68 | 0.74375 |
cdbd9c03bba459bc96787dd5e2acc5c1bbc402b8 | 201 | package br.com.pjbank.sdk.enums;
/**
* @author Vinícius Silva <vinicius.silva@superlogica.com>
* @version 1.0
* @since 1.0
*/
public enum FormaRecebimento {
BOLETO_BANCARIO, CARTAO_CREDITO;
}
| 18.272727 | 58 | 0.711443 |
459d678bd496a780fb7c1a4b6955c69132e10afc | 260 | package com.example.myapplication;
/**
* Some constants to check permissions
*
*/
public class Constant {
public static final int PERMISSIONS_REQUEST_ENABLE_GPS = 9002;
public static final int PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION = 9003;
}
| 18.571429 | 76 | 0.761538 |
dddf8581cadb01f6d46430f4e18412a85cb1d121 | 2,140 | /**
* Copyright (C) 2016 - 2030 youtongluan.
*
* 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... | 24.318182 | 85 | 0.666355 |
31744530f9bb9e7790d23a2ca1ebd2ea87c38aa8 | 2,457 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <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 the
* <a href="http://www.apache... | 40.95 | 130 | 0.789988 |
f83e414d05fe93315b2dcfe2a3d23be4430574bc | 1,155 | package org.example.controller.session;
import org.apache.catalina.realm.GenericPrincipal;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
im... | 36.09375 | 121 | 0.754113 |
252c48142a1adfa59750c17a8ec4125484850f0e | 527 | package today.flux.addon.api.packet.server;
import com.soterdev.SoterObfuscator;
import net.minecraft.network.play.server.S2EPacketCloseWindow;
import today.flux.addon.api.packet.AddonPacket;
public class PacketCloseWindow extends AddonPacket {
public PacketCloseWindow(S2EPacketCloseWindow packet) {
super(packet);... | 22.913043 | 62 | 0.787476 |
8d975f9bc5210fdc63966aa6e7308bcaf9cfefa3 | 6,653 | /*
* 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... | 34.117949 | 78 | 0.616113 |
78984bd53518fd93d17aba4bec64dc68a26417eb | 4,810 |
/*
* Janino - An embedded Java[TM] compiler
*
* Copyright (c) 2018 Arno Unkrig. 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... | 42.566372 | 120 | 0.620166 |
092b49fbe4fa03a6988fccce7ed7b6b17db85fac | 2,953 | package com.tazzie02.tazbot;
import com.tazzie02.tazbot.util.JDAUtil;
import com.tazzie02.tazbot.util.MessageLogger;
import com.tazzie02.tazbot.util.SendMessage;
import net.dv8tion.jda.core.entities.Guild;
import net.dv8tion.jda.core.entities.User;
import net.dv8tion.jda.core.events.guild.GuildJoinEvent;
import net.d... | 36.45679 | 176 | 0.742635 |
b7aa2e7f2a721c8a28d50dad0e21464bc3a1d316 | 75 | package lumien.randomthings.potion;
public class SimpleBrewingRecipe
{
}
| 10.714286 | 35 | 0.813333 |
a6228e6fb021367add46fb7dfb9e7fed9682c53e | 1,764 | package cws.core.storage.cache;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import cws.core.VM;
import cws.core.cloudsim.CloudSimWrapper;
import cws.core.core.VMType;
import cws.core.dag.DAGFile;
import cws.core.dag.Task;
import cws.core.jobs.Job;
/**
... | 30.413793 | 101 | 0.671769 |
7162b16cc29b608cf429017f4f47c2b93b907843 | 2,850 | package de.vinado.wicket.participate.components.panels;
import de.vinado.wicket.participate.components.modals.BootstrapModal;
import de.vinado.wicket.participate.components.modals.BootstrapModalPanel;
import de.vinado.wicket.participate.components.snackbar.Snackbar;
import de.vinado.wicket.participate.email.Email;
imp... | 38.513514 | 136 | 0.745614 |
f2db5947d96b8ac04c895455600b7b742b5c60d2 | 3,356 | package com.bytezone.dm3270.orders;
import java.io.UnsupportedEncodingException;
import com.bytezone.dm3270.display.DisplayScreen;
import com.bytezone.dm3270.display.Pen;
import com.bytezone.dm3270.utilities.Dm3270Utility;
// -----------------------------------------------------------------------------------//
publi... | 33.56 | 88 | 0.326877 |
3f382eb65049ba3972afd5c9a598031136528fb5 | 783 | package de.gishmo.gwt.example.domain.services.client.utils;
import com.google.gwt.core.client.GWT;
import com.google.gwt.i18n.client.Constants;
public interface ExceptionUtilsConstants
extends Constants {
ExceptionUtilsConstants INSTANCE = GWT.create(ExceptionUtilsConstants.class);
String applicationErrorText... | 19.575 | 79 | 0.789272 |
0801b364914297d8f2e28396983e151acd0ce461 | 1,380 | package org.bridgedb.util.taverna.ui.config;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import net.sf.taverna.t2.workbench.ui.actions.activity.ActivityConfigurationAction;
import net.sf.taverna.t2.workbench.ui.views.contextualviews.activity.ActivityConfigurationDialog;
import org.bridgedb.util... | 35.384615 | 178 | 0.802174 |
43eb1f18503c6d407278e650f55371c43f4cda6b | 3,404 |
import java.io.*;
public class Valutatore {
private Lexer lex;
private BufferedReader pbr;
private Token look;
public Valutatore(Lexer l, BufferedReader br) {
lex = l;
pbr = br;
move();
}
void move() {
look = lex.lexical_scan(pbr);
System.out.p... | 27.674797 | 106 | 0.494712 |
dcb353fdb7d568809cc6d8b63f078c5e87fbeaa5 | 5,216 | package se.alipsa.ride.inout;
import javafx.concurrent.Task;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import se.alipsa.ride.code.CodeComponent;
import se.alipsa.ride.code.CodeType;
import se.alipsa.ride.code.TextAreaTab;
import se.alipsa.ride.model.MuninReport;
import se.alip... | 33.435897 | 121 | 0.636311 |
1eab009cfa9e9594414224d387fd9f8c844581d8 | 415 | package test.comments.block;
public class X11 {
public X11() {
this(/* comment */
false, /* whitespace */
false, /* nls */
false, /* sourceLevel */
0, /* taskTag */
null, /* taskPriorities */
null, /* taskCaseSensitive */
true);
}
public X... | 21.842105 | 99 | 0.525301 |
59cfa823773b942a07c1d70799e095e3b174d7ae | 1,244 | package com.refactify.arguments;
public class ConversionArgumentsParser {
public ConversionArguments parseArguments(String[] arguments) {
ConversionArguments conversionArguments = new ConversionArguments();
try {
conversionArguments.setSource(arguments[arguments.length - 1]);
... | 41.466667 | 112 | 0.567524 |
c8a4abf42c472fbd1994a42a297c05aee99698d5 | 5,381 | package barsan.opengl.rendering;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.media.opengl.GL2;
import javax.media.opengl.GLAutoDrawable;
import barsan.opengl.Yeti;
import barsan.opengl.input.InputProvider;
import barsan.opengl.math.Vector3;
import barsan.opengl.renderi... | 25.995169 | 97 | 0.692994 |
d61064c425960b40083d65efe789c8a40412ba45 | 3,216 | /*
* Copyright © 2018 Mark Raynsford <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVID... | 33.5 | 100 | 0.73041 |
a43c7a149ca2b6b298a99d39a1abef51197c791c | 1,433 | package de.tototec.cmdoption.handler;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Method;
import java.util.Arrays;
import de.tototec.cmdoption.internal.I18n;
import de.tototec.cmdoption.internal.I18n.PreparedI18n;
import de.tototec.cmdoption.internal.I18nFactory;
/**
* Apply an n-arg option ... | 31.844444 | 98 | 0.734124 |
c4ec2576adc73e86b4cf82730edd0afaca847332 | 14,483 | /*
* 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.github.lxyscls.jvmjava.nativemethod.java.lang;
import com.github.lxyscls.jvmjava.nativemethod.NativeMethod;
import... | 62.158798 | 234 | 0.411724 |
bfd6c0c0ee0df35397c6b0d22985038f7f135e6c | 3,622 | package localhost.abec2304.kurokohi.lazy;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import localhost.abec2304.kurokohi.AttributeInfo;
import localhost.abec2304.kurokohi.AttrUnknown;
import localhost.abec2304.kurokohi.util.MultiByteA... | 33.537037 | 84 | 0.569575 |
1a68524c06bb165296e0feebb5da61b6b539c4e3 | 15,103 | /*
* Copyright 2012 - 2014 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 40.382353 | 142 | 0.651261 |
0d9c79d2a9863b50b02c11228191c406654bf28a | 753 | package ru.job4j.array;
/**
* Class
* {true, true, true} - return true;
* {true, false, true} - return false;
* {false, false, false} - return true;
*/
public class Check {
/**
* Checking that all array items have the same boolean value.
* {true, true, true} - return true;
* {true, false, tr... | 25.965517 | 66 | 0.528552 |
2f1d95fda8f27caa3b359c49b0f3b6213c79e7bd | 1,516 | package org.knowm.xchange.huobi.service;
import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.huobi.HuobiUtils;
import org.knowm.xchange.huobi.dto.marketdata.HuobiAssetPair;
import org.knowm.xchange.huobi.dto.marketdata.HuobiDepth;
impo... | 40.972973 | 99 | 0.82124 |
43c7764f218f30523f2b00f687907cfd46fb2ca8 | 1,354 | package io.github.winterbear.wintercore.wonderhaul.sockets.application;
import io.github.winterbear.wintercore.utils.LoreUtils;
import io.github.winterbear.wintercore.wonderhaul.sockets.ISocketable;
import io.github.winterbear.wintercore.wonderhaul.sockets.SocketType;
import io.github.winterbear.wintercore.wonderhaul.... | 33.02439 | 78 | 0.700148 |
1272b0da9630f7aa2e7a4d54f0f3dec9b02331cc | 2,675 | package com.woshidaniu.cache.core;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import com.woshidaniu.basicutils.StringUtils;
import com.woshidaniu.cache.core.e... | 28.763441 | 104 | 0.620187 |
41e2b7d306d4e4aeb4da968d79251b4405a4e80e | 177 | package net.canarymod.api.world.blocks;
/**
* Map Color wrapper
*
* @author Jason (darkdiplomat)
*/
public interface MapColor {
int getIndex();
int getValue();
}
| 12.642857 | 39 | 0.655367 |
67d4d28714182c269d4e7a05f833e779401ef7bc | 2,027 | package com.github.wdestroier.chamomile.classfile.attributeinfo;
import com.github.wdestroier.chamomile.classfile.pseudostructure.PseudoStructure;
import com.github.wdestroier.chamomile.classfile.pseudostructure.PseudoStructureFactory;
import com.github.wdestroier.chamomile.io.MultiEndianInputStream;
import com.github... | 28.152778 | 117 | 0.806117 |
60b571d17e27f05900427bc6cb3dc942bef6b23f | 3,027 | package com.bytehonor.sdk.server.bytehonor.jdbc.update;
import java.util.List;
import java.util.Objects;
import com.bytehonor.sdk.define.bytehonor.error.ServerBasicException;
import com.bytehonor.sdk.define.bytehonor.util.StringObject;
import com.bytehonor.sdk.lang.bytehonor.string.StringCreator;
import com.bytehonor... | 27.770642 | 119 | 0.685828 |
e664a4f6ce413b2729fb53ed9f598ae3c14da02e | 2,384 | /*
* 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 ma... | 39.733333 | 105 | 0.723993 |
cb77e0b38b4cb6529e90989f35b2a2332e575f15 | 6,323 | /*
* This file is a part of BSL Language Server.
*
* Copyright (c) 2018-2021
* Alexey Sosnoviy <labotamy@gmail.com>, Nikita Gryzlov <nixel2007@gmail.com> and contributors
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*
* BSL Language Server is free software; you can redistribute it and/or
* modify it under th... | 36.976608 | 109 | 0.765301 |
31a2afe676344010a67e4c8d84d107a925b87210 | 4,316 | /*
* Copyright (c) 2014. stuart-warren
* Last modified: 17/08/14 12:06
*
* 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 requ... | 41.902913 | 158 | 0.698795 |
6424737e7eeb1f421387b9e61bddc903e0f2e720 | 1,049 | package com.puppycrawl.tools.checkstyle.checks.annotation;
//this file compiles in eclipse 3.4 but not with Sun's JDK 1.6.0.11
/**
*/
public class InputAnnotationUseWithTrailingComma
{
@SuppressWarnings({"common",})
public void foo() {
@SuppressWarnings({"common","foo",})
Obj... | 18.403509 | 69 | 0.458532 |
9a739bec8b54e0c2cf77418327b0d8554f1524c7 | 4,952 | /*
* JBoss, Home of Professional Open Source
* Copyright 2009 Red Hat Inc. and/or its affiliates and other contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may n... | 34.388889 | 114 | 0.659128 |
2943d9cea0ec32233b362de67d408e09c1c8c766 | 2,327 | package no.nordicsemi.android.mesh.utils;
import android.os.Parcel;
import android.os.Parcelable;
import no.nordicsemi.android.mesh.transport.ProvisionedMeshNode;
/**
* Class containing Network Transmit values in a {@link ProvisionedMeshNode}
*/
@SuppressWarnings("WeakerAccess")
public class NetworkTransmitSetting... | 28.036145 | 107 | 0.690589 |
928415fea15ec9d8515b343800baa41a0ba45596 | 13,452 | /*
// Licensed to DynamoBI Corporation (DynamoBI) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. DynamoBI licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may ... | 31.726415 | 80 | 0.559025 |
d0c87e06e0ca71be80242779981cc43ca017a8ba | 3,724 | package evilcraft.commands;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.StatCollector;
import evilcraft.api... | 29.792 | 135 | 0.61493 |
219f09fe407bdfc009e6c2b2a3628726389f62ac | 3,761 | package climber_example.level_creator;
import Kartoha_Engine2D.geometry.Point2;
import Kartoha_Engine2D.physics.Block;
import Kartoha_Engine2D.physics.Material;
import Kartoha_Engine2D.physics.Space;
import Kartoha_Engine2D.physics.Wall;
import climber_example.Level;
import lombok.Getter;
import lombok.Setter;
import... | 28.930769 | 176 | 0.606222 |
fcd8dde3994154fbfa80bfe3f110dfc8f4ca877c | 256 | package com.techreturners.cats;
public interface CatBehaviour {
public boolean isAsleep();
public String getSetting();
public int getAverageHeight();
public String eat();
public String goToSleep();
public String wakeUp();
}
| 14.222222 | 34 | 0.6875 |
6aa6bc9edd126388f9ceca9391f6f30df5b53f71 | 6,824 | package info.manuelmayer.licensed.service;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.nullValue;
import static org.hamcrest.Matchers.sameInstance;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.never;
import static org.mockito.Mock... | 34.816327 | 109 | 0.771249 |
6dc5065da56527b8f45da37b470f76a72b0c3d94 | 4,506 | /*
* Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.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 requ... | 17.952191 | 75 | 0.651798 |
04e631558932146811a438b4696b76a3e7b8a267 | 5,105 | /*
* 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 ... | 31.90625 | 115 | 0.787463 |
e41022d6a7be1d02f9c7b15c17c8ac7a3e77e55c | 687 | package com.yeyouluo;
/**
* @Auther: yeyouluo
* @Date: 2018/7/16
*/
public abstract class Element {
public abstract void accept(Visitor visitor);
}
class ConcreteElementA extends Element{
@Override
public void accept(Visitor visitor) {
visitor.visitConcreteElementA(this);
}
// 其他相关方法
... | 19.628571 | 65 | 0.647744 |
7bb7407c58a78f7e23f8b9b0af5504e9c8c02262 | 1,084 | package com.sgcc.exam.wxImages.bizc;
import java.util.*;
import com.sgcc.uap.rest.support.QueryResultObject;
import com.sgcc.uap.rest.support.RequestCondition;
import com.sgcc.uap.mdd.runtime.base.BizCDefaultImpl;
import com.sgcc.exam.wxImages.po.WxImageConf;
import java.io.Serializable;
public class WxImageConfBi... | 22.122449 | 110 | 0.7131 |
d0bffc9d31977e5f9ebe508015e60f688ba2e36e | 6,034 | /*****************************************************************************
* Copyright 2012 bitsofinfo.g [at] gmail [dot] 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:... | 29.291262 | 128 | 0.688101 |
85a34cc6d3b151785cfa05c2850d02a83e0cc794 | 307 | package com.atguigu.srb.core.service;
import com.atguigu.srb.core.pojo.entity.IntegralGrade;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 积分等级表 服务类
* </p>
*
* @author Helen
* @since 2021-11-25
*/
public interface IntegralGradeService extends IService<IntegralGrade> {
}
| 18.058824 | 71 | 0.736156 |
4d3bfd250ecd756aff35d8deda74b78df90f3a8f | 3,857 | package com.newsblur.fragment;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import... | 31.104839 | 90 | 0.657247 |
dd117c5b10faff549c1210ba4d53fa677ddfbe74 | 853 | package com.vladkel.eFindMe.xml.parsing.demo.model;
public class Personne {
private int id;
private String nom;
private String prenom;
private String adresse;
public Personne(){
super();
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNom... | 14.706897 | 51 | 0.657679 |
305ab62ab6b2d399eb9a8448bb712bc5387db647 | 289 | package com.antonioalejandro.smkt.cookbook.utils;
import java.util.UUID;
/**
*
* UUID generator interface
*/
public interface UUIDGenerator {
/**
* Default generate UUID
*
* @return the string
*/
default String generateUUID() {
return UUID.randomUUID().toString();
}
}
| 14.45 | 49 | 0.685121 |
724a547da9fe9c00cc34f3498cc61c9b3514d202 | 1,152 | package com.tazine.mvc.pojo;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @author jiaer.ly
* @date 2018/02/24
*/
public class Player {
private String name;
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date date;
private Integer num;
// public ... | 18 | 60 | 0.521701 |
70967baa77a88e59b520e0ccae7ba93b32c8fc21 | 5,676 | package com.croconaut.ratemebuddy.activities.notifications;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.provider.Settings;
import android.support.v4.app.NotificationCompat;
import android... | 43.661538 | 187 | 0.692918 |
be222e7cfbc8c8a50a55462b59a89bba6c906364 | 858 | package lm44_xw47.chatRoom.model;
import common.IChatRoom;
import common.IUser;
/**
* Following defines the adapter the lobby model uses to communicate with lobby view.
*
* @author Xiaojun Wu
* @author Lu Ma
*/
public interface ILobbyModel2ViewAdapter {
/**
* Add a user to the lobby view.
*
* @param use... | 18.255319 | 90 | 0.66317 |
cf9b45748533d2d08a917de5b25b1f455ba0e830 | 730 | package com.zed.dingtalk.service.contact.department;
import com.zed.dingtalk.common.BaseResponse;
import lombok.Data;
import lombok.ToString;
import java.util.List;
import java.util.Map;
/**
* @Author liwenguang
* @Date 2018/11/27 12:32 AM
* @Description 获取所有部门列表
*/
@ToString(callSuper = true)
public class DeptA... | 22.121212 | 78 | 0.657534 |
f25f5bd84596389bed8412c55734af779902c64c | 4,777 | /**
* Copyright (C) 2011 Inqwell Ltd
*
* You may distribute under the terms of the Artistic License, as specified in
* the README file.
*/
package com.inqwellx;
import com.inqwell.any.AbstractComposite;
import com.inqwell.any.AbstractValue;
import com.inqwell.any.Any;
import com.inqwell.any.Call;
import com.inqw... | 32.719178 | 158 | 0.717605 |
b0577459f5852b079695a42cae1cdc9f896015b8 | 7,629 | /*
* Copyright 2017 - 2021 Whole Bean Software, 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 a... | 26.126712 | 96 | 0.630882 |
b9098edb80f1fda3f0b96b42402afadac8cd0968 | 1,616 | package indi.mybatis.flying.service;
import java.util.Collection;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import indi.mybatis.flying.mapper.RoleMapper;
import indi.mybatis.flying.pojo.Role_;
import indi.mybatis.flyi... | 20.455696 | 79 | 0.716584 |
975a85125fc0593e44455023dede62cc9e91a37a | 18,454 | package com.example.zls.widget.custom_view;
import com.example.zls.R;
import com.example.zls.utils.ScreenUtils;
import com.example.zls.widget.action.Action0;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.C... | 43.319249 | 99 | 0.572559 |
75de315acb70396616fcdfeaaa9be3ed71afbe62 | 25,151 | /*
* 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 ... | 42.058528 | 100 | 0.637072 |
f447f1ac1f32ce3cccc53a1cc49f13cf42189808 | 432 | package dev.plugin;
import dev.tensor.Tensor;
import dev.tensor.misc.plugin.Plugin;
/**
* @author IUDevman
* @since 08-10-2021
*/
@Plugin.Info(name = "Example Plugin", version = "0.1.0")
public final class ExamplePlugin extends Plugin {
@Override
public void load() {
Tensor.INSTANCE.LOGGER.info("... | 20.571429 | 70 | 0.689815 |
3b4e68cfdfe2f23594da73298f83b84f30411370 | 6,463 | package com.scottescue.dropwizard.entitymanager;
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableList;
import com.scottescue.dropwizard.entitymanager.entity.Person;
import io.dropwizard.jersey.errors.ErrorMessage;
import io.dropwizard.setup.Environment;
import org.joda.time.DateTime;
... | 36.721591 | 128 | 0.657435 |
89797d3153856efc405183c5aae8b46b37497891 | 3,859 | /*
* Copyright 2014-2018 Lukas Krejci
* and other contributors as indicated by the @author tags.
*
* 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... | 35.731481 | 123 | 0.697072 |
c4440b68298072ba5aaa9ea5e4e04b627527793f | 12,065 | /*
* Copyright © 2019 Mark Raynsford <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVID... | 35.907738 | 76 | 0.737671 |
e5144aa88576992ced09aa44b3c798edac27fdf6 | 16,642 | /**
* Copyright 2013-2014 Linagora, Université Joseph Fourier
*
* 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 b... | 36.178261 | 171 | 0.748528 |
e0aec60e18023fa72dcc34390ca864149bdb66f6 | 5,419 | 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.374005 | 813 | 0.796826 |
96931257a724b986debfdac90ca4e7dc3b5d8a64 | 662 | package farmerthanos.mea;
import arc.Events;
import arc.util.Log;
import farmerthanos.mea.calls.BaseUnderAttack;
import farmerthanos.mea.calls.CoreUnderAttack;
import mindustry.Vars;
import mindustry.game.EventType;
import mindustry.mod.Mod;
public class MEA extends Mod{
public MEA() {
if(Vars.headless) ... | 22.066667 | 63 | 0.619335 |
af2299e0e340bfbc29c756f4e2de058841a75fb9 | 760 | public class Product
{
private final String productCode;
private int quantityInStock;
/** @return the code of this product
*/
public String getProductCode()
{
return productCode;
}
/** @return the current quantity in stock of this product. This should never be negative.
*/
public int getQua... | 20 | 91 | 0.669737 |
0bf3e6dfc6bfef798faa092fd809eb1d81049071 | 738 | // Generated by Dagger (https://dagger.dev).
package com.stripe.android.core.networking;
import dagger.internal.DaggerGenerated;
import dagger.internal.Factory;
@DaggerGenerated
@SuppressWarnings({
"unchecked",
"rawtypes"
})
public final class RetryDelaySupplier_Factory implements Factory<RetryDelaySupplier> ... | 24.6 | 96 | 0.765583 |
42aba00e4eb1568d371e5a633ce7cdcab1e53537 | 7,435 | package org.jzy3d.maths;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class Utils {
/**
* Convert a number into a string, with <code>precision</code> number of meaningfull digits.
*
* 'd' integral Th... | 27.435424 | 100 | 0.594217 |
4a0fb83c750c23304ad95df5153b5e39dee95629 | 337 | package org.nekostudio;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
*
*
* @author neko
*/
@SpringBootApplication
public class WechatApp
{
public static void main( String[] args )
{
SpringApplication.run(WechatApp.class... | 17.736842 | 68 | 0.72997 |
63b074a04598501338be6830cb44271de88bb6ab | 385 |
package com.imt.service.dto;
import lombok.Data;
import java.sql.Timestamp;
import java.util.List;
import com.imt.annotation.Query;
@Data
public class LocalStorageQueryCriteria{
@Query(blurry = "name,suffix,type,createBy,size")
private String blurry;
@Query
private String createBy;
@Query(typ... | 18.333333 | 53 | 0.735065 |
065e963111c86c2e635b9d3c3d3ad44cba021c21 | 4,818 | package net.jbock.convert.matching;
import com.squareup.javapoet.CodeBlock;
import net.jbock.Converter;
import net.jbock.common.Util;
import net.jbock.convert.Mapped;
import net.jbock.convert.ParameterScope;
import net.jbock.convert.matcher.Matcher;
import net.jbock.convert.reference.ReferenceTool;
import net.jbock.co... | 35.688889 | 98 | 0.718763 |
ded9b23ab4e75eed97f59fa76b34fe1505f9ac46 | 109 | package com.pessetto.imap;
public enum IMAPState {
NOT_AUTHENTICATED,
AUTHENTICATED,
SELECTED,
LOGOUT
}
| 12.111111 | 26 | 0.779817 |
514302fcb58b27adaf688dd3f65ba4913830aaf0 | 2,415 | /*
* The FML Forge Mod Loader suite.
* Copyright (C) 2012 cpw
*
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or any later version.
*
* Th... | 34.5 | 161 | 0.693996 |
e0b88f1b1572dec3b6a5b1265695e477f7504f2e | 5,633 | package io.practiceinsight.pinpayments.pojo;
import com.google.gson.*;
import com.google.gson.reflect.*;
import com.google.gson.stream.*;
import java.io.IOException;
import javax.annotation.Generated;
import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault;
/**
* A {@code TypeAdapterF... | 31.824859 | 114 | 0.680277 |
99fbd51a010b4ccaa688de1276dc14a703ecee9e | 5,169 | package com.lizy.retrofit;
import java.io.IOException;
import java.lang.reflect.Array;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.lang.reflect.WildcardType;
import okhttp3.ResponseBody;
import... | 36.401408 | 108 | 0.595086 |
073ff8a785d804e75f9425b131928a0f7d41704a | 2,400 | package com.github.lunatrius.ingameinfo.value;
import com.github.lunatrius.ingameinfo.value.registry.ValueRegistry;
public abstract class ValueSimple extends Value {
@Override
public Value setRawValue(String value, boolean isText) {
this.value = value.replaceAll("\\$(?=[0-9a-fk-or])", "\u00a7");
... | 27.586207 | 132 | 0.565417 |
616c7442a13c58f8f39d09e44d7074debb4cbbed | 15,352 | /*
* The Gemma project
*
* Copyright (c) 2010 University of British Columbia
*
* 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
*
... | 42.060274 | 156 | 0.658807 |
a74934de52f1ee7962f5227bdc33c192384faf0d | 923 | // Generated automatically from android.content.pm.PermissionGroupInfo for testing purposes
package android.content.pm;
import android.content.pm.PackageItemInfo;
import android.content.pm.PackageManager;
import android.os.Parcel;
import android.os.Parcelable;
public class PermissionGroupInfo extends PackageItemInfo... | 36.92 | 91 | 0.775731 |
bf787f62e23dfa0f5838d325b1ecdfd020b121d5 | 12,409 | package hex.schemas;
import hex.glm.GLMModel;
import hex.maxrglm.MaxRGLM;
import hex.maxrglm.MaxRGLMModel;
import water.api.API;
import water.api.schemas3.KeyV3;
import water.api.schemas3.ModelParametersSchemaV3;
import water.api.schemas3.ModelSchemaV3;
import water.api.schemas3.StringPairV3;
public class MaxRGLMV3 e... | 54.187773 | 144 | 0.634137 |
6b8f4d9072c5f283fead3495fbfed254d62d2855 | 1,268 | /*
* Copyright Terracotta, 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 ... | 33.368421 | 103 | 0.735016 |
1a3f50954a6de32431d446ad947bf6401a599f3c | 75 | simple test labeled statement testlabeledstatement main foo foo label label | 75 | 75 | 0.88 |
208ef2e0be1bbd21333eca1edb8fa7a5808a12cb | 36 | package b.o.v4;
public class i {
}
| 7.2 | 16 | 0.638889 |
5bb1ce82d8762489ba86b59ff7b856707fa9bfe6 | 538 | package org.diql.common.util;
import java.util.Collection;
import java.util.List;
/**
* Created by qinglian on 2018/5/7.
*/
public class CollectionUtil {
private CollectionUtil() {
// empty.
}
/**
* collection是否为空.
* @param collection
* @return
*/
public static boolean ... | 19.214286 | 58 | 0.620818 |
152f924e36be307bc3c58817acf526f2932b6547 | 1,929 | package java.practice.examples.datatypes;
public class JavaDataTypesByte {
public static void main(String[] args) {
byte b= 127;
System.out.println(b);
System.out.println();
byte b1= 10;
System.out.println(b1);
System.out.println();
// byte b2= 128; //Type mismatch: cannot convert from int to byte
// S... | 35.722222 | 237 | 0.692587 |
870ab1f2db410978011d54a8d9cbf60af37b1f3f | 594 | package net.petrikainulainen.spring.batch;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotati... | 34.941176 | 89 | 0.855219 |
834bf5d8973faff9a2925f5d4b034af2dd185685 | 1,699 |
public class _410SplitArrayLargestSum {
public int splitArray(int[] nums, int m) {
if (nums == null ) return 0;
int max = 0;
long sum = 0;
for (int i=0; i< nums.length; i++){
sum += nums[i];
max = Math.max(max, nums[i]);
}//for
if ( m == 1) return (int)sum;
long low = max, high = sum;... | 22.653333 | 137 | 0.59741 |
36894104f328787f42407c11c8997cdd07af51c5 | 420 | package net.shrimpworks.unreal.dependencies;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class NativePackagesTest {
@Test
public void loadNativePackages() {
NativePackages pkgs = new NativePack... | 24.705882 | 61 | 0.77619 |
ced2595439c27bcda4afc65aa654ba6a00d27abb | 1,964 | /**
* Copyright (C) 2016-2021 Expedia, 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 ag... | 32.196721 | 109 | 0.75611 |
6c04b84cebfc1974056874d245d762545737d3c1 | 4,465 | package com.dt.module.wx.service;
import org.springframework.stereotype.Service;
import com.dt.core.common.base.BaseService;
import com.dt.core.common.base.R;
import com.dt.core.dao.sql.Insert;
import com.dt.core.dao.sql.Update;
import com.dt.core.dao.util.TypedHashMap;
import com.dt.core.tool.util.DbUtil;
import com... | 31.892857 | 113 | 0.660246 |
8bb8c64867991b00ef1bab99a0c224ff6cec2230 | 273 | package com.zgrannan.crewandroid;
/**
* A building block of a {@link Platform}.
*
* @author Zack Grannan
* @version 0.96.
*
*/
public class PlatFrag extends PlatTypeFrag {
@Override
protected int getCrossbeams() {
return (int) (length.toDouble() / 40);
}
}
| 15.166667 | 44 | 0.663004 |
d21f73650d1ad9e6a54161a970533186c1626880 | 5,961 | package com.opd.therament.activities;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManage... | 39.74 | 214 | 0.654756 |
351e7a65a297b783b9070bac5062380a241ffa32 | 871 | package com.zxf.lib_androidx.model;
import android.text.TextUtils;
import com.zxf.lib_androidx.utils.GsonUtils;
import org.json.JSONObject;
import org.xutils.http.app.ResponseParser;
import org.xutils.http.request.UriRequest;
import java.lang.reflect.Type;
/**
* 解析器,自动解析请求结果
* Created by zxf on 2018/10/10.
*/
... | 23.540541 | 96 | 0.660161 |
dcec94d147faefaa9d1a715cef7ae83002a12c86 | 12,034 | /*
GNU LESSER GENERAL PUBLIC LICENSE
Copyright (C) 2006 The Lobo Project
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your ... | 28.051282 | 116 | 0.649909 |
35b3021c17d8f81e34e0ff78a071e66e60ff0245 | 829 | package com.controllers;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/Up... | 30.703704 | 116 | 0.763571 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.