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 |
|---|---|---|---|---|---|
99e5783e58df742a6e7f2ce290df439e30039697 | 4,214 | package com.xlite.codec;
import com.xlite.bean.PersonBean;
import com.xlite.codec.impl.DefaultRpcCodec;
import com.xlite.common.ReflectUtil;
import com.xlite.remoting.exchange.Request;
import com.xlite.remoting.exchange.Response;
import com.xlite.rpc.RpcRequest;
import com.xlite.rpc.RpcResponse;
import com.xlite.servi... | 27.363636 | 102 | 0.64262 |
708086105148daa55bc2ef0b0453d89a4fff95d6 | 12,986 | package com.appier.sampleapp.common;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.AppOpsManager;
import android.content.Context;
import android.content.Intent;
import android.graphics.PixelFormat;
import android.net.Uri;
import android.os.... | 42.299674 | 153 | 0.587402 |
7397367bf4937a77eb2007367d07bbae2a03cf64 | 439 | package net.saisimon.agtms.web.dto.req;
import java.util.List;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;
/**
* 角色参数对象
*
* @author saisimon
*
*/
@Data
public class RoleParam {
private Long id;
@NotBlank
private Str... | 13.71875 | 46 | 0.67426 |
c309418eef4a84ec47c4f38a204cb727af1f2371 | 475 | /**
*
*/
package is2011.reproductor.modelo.listeners;
/**
* Evento con toda la informacion necesaria para borrar una cancion.
*
* @author Administrator
*
*/
public class BorrarCancionEvent {
/** La posicion que ocupa esta cancion*/
private int posicion;
public BorrarCancionEvent(int posic... | 15.322581 | 69 | 0.631579 |
e1e5e7c6c151bae3d04a1a527568bac0c127ab70 | 6,388 | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.core;
import com.yahoo.vdslib.state.NodeState;
import com.yahoo.vdslib.state.Node;
import com.yahoo.vespa.clustercontroller.core.database.ZooKeeperDatabase;
... | 40.43038 | 176 | 0.493425 |
30b0ca21238f98ba9ef17dee171d185c202af7f6 | 6,348 | package net.buycraft.plugin.bukkit.signs.buynow;
import lombok.Getter;
import net.buycraft.plugin.bukkit.BuycraftPlugin;
import net.buycraft.plugin.bukkit.tasks.BuyNowSignUpdater;
import net.buycraft.plugin.bukkit.tasks.SendCheckoutLink;
import net.buycraft.plugin.bukkit.tasks.SignUpdateApplication;
import net.buycraf... | 39.428571 | 136 | 0.603655 |
e1ec79c09c1da0beccf9723b0246cfa4a698d66b | 208 | package heranca.cenario1;
public class Passaro extends Animal {
public void voar() {
System.out.println("Voando!");
}
public void piar() {
System.out.println("Piando!");
}
}
| 17.333333 | 38 | 0.600962 |
60382d1145a79e0a5677c9a093ab3dccf98f7605 | 2,972 | /*
MIT License
Copyright(c) 2021 Kyle Givler
https://github.com/JoyfulReaper
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, c... | 33.772727 | 114 | 0.696837 |
f055850bd8863f8064e5deb4e92918e80d37d2d5 | 1,070 |
public class MainClass {
public static void main(String[] args) {
// TODO Auto-generated method stub
//Assuming stock of each sport is 2
Sports sp1=new IndoorSports();
System.out.println("Total Indoor Sports Stock:"+sp1.getCurrentStock());
sp1=new Billiards(sp1);
System.out.println("Total Indoor Sport... | 35.666667 | 76 | 0.729907 |
e89c4cb3ff93e8bfb6e306cc98ea9193f3e9e630 | 3,575 | package com.verdantartifice.primalmagick.client.gui.widgets.grimoire;
import java.util.Collections;
import javax.annotation.Nonnull;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.PoseStack;
import com.verdantartifice.primalmagick.PrimalMagick;
import com.verdantartifice.primalmagic... | 42.559524 | 153 | 0.726434 |
774cfe946c3fa434200ca452c88b76e84ff9b11f | 1,104 | package server.rest.responses;
import server.model.HRPositionRole;
import java.util.ArrayList;
/**
* Response Object for HR Position Role REST API view link
*/
public class HRPositionRoleResponse extends Response {
private ArrayList<HRPositionRole> data;
/**
* Creates an error response object
*... | 25.674419 | 76 | 0.675725 |
19a2a6f3835bbef3521f737bf6a5864ae3055c9a | 949 | package com.ldtteam.animatrix.handler;
import com.ldtteam.animatrix.entity.IEntityAnimatrix;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent;
import net.minecraftforge.f... | 27.911765 | 72 | 0.672287 |
6bc7389a837daf0ba84c4ddbaf8702ffc7581f07 | 497 | package com.hexagonaldemo.ticketapi.common.model;
import java.util.stream.Stream;
public enum Status {
ACTIVE(1),
PASSIVE(0),
DELETED(-1);
private final Integer value;
Status(Integer value) {
this.value = value;
}
public Integer getValue() {
return value;
}
pub... | 19.115385 | 88 | 0.619718 |
d482de9359ee484fc05e6fa2718d077b2108a8a6 | 6,343 | /*
* Copyright 2017 NEOautus Ltd. (http://neoautus.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 required by applicab... | 32.528205 | 139 | 0.668138 |
5be1824331471b14f6b88a67b382e4f3b4a9e953 | 1,278 | /*
* Copyright 2016 lizhaotailang
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 29.045455 | 93 | 0.763693 |
c712ac876fb877eefba69698d212a6aaee970d46 | 404 | package multpoo;
import java.util.Scanner;
import mult.multNum;
public class multpoo {
public static void main(String[] args) {
int valor;
Scanner sc = new Scanner(System.in);
System.out.println("Digite o valor da tabuada:");
valor=sc.nextInt();
multNum novomultNum=... | 22.444444 | 59 | 0.596535 |
fc0feb347c1015a1f7284510a373dc469885d430 | 1,838 | package graphql.kickstart.servlet.core;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/** @author Andrew Potter */
public interface GraphQLServletListener {
/**
* Called this method when the request started processing.
* @param request http request
* @param r... | 32.821429 | 98 | 0.718716 |
90713d0de581ca4f582f824baf5e0a6e4f090948 | 705 | package com.skytala.eCommerce.domain.humanres.relations.responsibilityType.event;
import com.skytala.eCommerce.framework.pubsub.Event;
import com.skytala.eCommerce.domain.humanres.relations.responsibilityType.model.ResponsibilityType;
public class ResponsibilityTypeAdded implements Event{
private ResponsibilityType... | 28.2 | 99 | 0.836879 |
ae68e74391ac6c89a2ba608f3b0644296e90d3b4 | 509 | package ru.swayfarer.swl2.asm.transfomer.injection;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Отметить параметер как ссылку, по которой будет доступна... | 28.277778 | 109 | 0.764244 |
0e9ca5ed9ebb02b46047d4ec96962cf01572a4ed | 266 | package local.kmcgeeka.javaorders.repositories;
import local.kmcgeeka.javaorders.models.Payments;
import org.springframework.data.repository.CrudRepository;
public interface PaymentsRepository extends CrudRepository<Payments, Long>
{
//custom methods only
}
| 22.166667 | 74 | 0.827068 |
b0fd74638fe55042e633116b375ef745be592e5f | 790 | package com.bdxh.school.service;
import com.bdxh.common.support.IService;
import com.bdxh.school.dto.BlackUrlQueryDto;
import com.bdxh.school.entity.BlackUrl;
import com.bdxh.school.vo.BlackUrlShowVo;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* ... | 20.25641 | 88 | 0.718987 |
154baa6eb9909cef70a61b20226cf203cca87387 | 616 | package io.apicurio.bot.util;
import io.apicurio.bot.cache.IssueNotification;
import io.apicurio.bot.cache.PullRequestNotification;
import io.quarkus.qute.CheckedTemplate;
import io.quarkus.qute.TemplateInstance;
import java.util.Set;
@CheckedTemplate
public final class Templates {
public static native Template... | 28 | 124 | 0.805195 |
11a02b3776d1adf22d62105d8c12db42ba9160cd | 5,724 | /*
* Copyright 2018 The GraphicsFuzz Project Authors
*
* 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 applic... | 36.227848 | 100 | 0.72327 |
0a5feea6afb9a1810a557f782b69b0d7333d2213 | 2,612 | package org.zenframework.easyservices.net;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Arrays;
import java.util.Collection;
import org.apache.commons.io.IOUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
im... | 33.922078 | 149 | 0.653905 |
0d9f289ef45086f8a5ee0ab42eda3934e6845bc9 | 908 | package de.mc_anura.eisenbahn;
public class DataContainer {
private String name;
private Object value;
private DataType datatype;
public DataContainer(String name, Object value, DataType datatype) {
this.name = name;
this.value = value;
this.datatype = datatype;
}
pub... | 19.319149 | 72 | 0.555066 |
2cf8226d67a977cb7c5b3af5d55ed090e4641288 | 3,130 | package com.xrz.demo.client;
import com.xrz.demo.common.Constants;
import org.jboss.netty.bootstrap.ClientBootstrap;
import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;
import org.jboss.netty.channel.Channels;
import org.jboss.netty.channel.socket.ClientSocketChannelF... | 37.261905 | 128 | 0.694569 |
f8314e362bbb06a3a85671942fd588b82efc08d3 | 1,013 | package src.Command_Line_Version;
public class Combinations {
public static int[][] combinations(int n, int k) {//subsets of size k from [0,n-1]
int c = (int) binomial(n, k);
int[][] res = new int[c][Math.max(0, k)];
int[] ind = k < 0 ? null : new int[k];
for (int i = 0; i < k; ++i) { ind[i] = i; }
... | 22.511111 | 84 | 0.435341 |
d40c528c474a7ab2b39f2aa10be2efdd126d94a1 | 665 | package entity;
import org.joml.Vector2f;
import render.Animation;
import world.World;
public class GenericPlant extends Plant {
private boolean hasFruit;
public GenericPlant(World world, Vector2f position) {
super("generic-plant", world, new Vector2f(2, 3), position);
this.hasFruit = true;
updateAnimati... | 18.472222 | 62 | 0.697744 |
4e8f50bb903b67aa312f64250abfbe168f162510 | 1,796 | /*
* Copyright (c) 2004, 2008, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.management;
import javax.management.MBeanRegistration;
import javax.management.MBeanServer... | 24.60274 | 88 | 0.701002 |
e7c0a4094f7485ff014a9bd28318959448a6db97 | 4,380 | package com.airsim.view;
import org.controlsfx.dialog.Dialogs;
import com.airsim.MainApp;
import com.airsim.model.Airplane;
import com.airsim.model.Airport;
import com.airsim.model.AssetLoader;
import com.airsim.model.FlightPath;
import com.airsim.model.HoverPath;
import com.airsim.model.World;
import javafx.animat... | 25.465116 | 82 | 0.71758 |
8a0d155fd34805284df8e74f36346aea8a1664a4 | 11,623 | /**
* 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... | 39.804795 | 108 | 0.715048 |
a845ac31733f65688d743521762f8d31e437dd1b | 7,041 | package org.kettle.metastore.steps.writer;
import org.pentaho.di.core.annotations.Step;
import org.pentaho.di.core.database.DatabaseMeta;
import org.pentaho.di.core.exception.KettleException;
import org.pentaho.di.core.exception.KettleXMLException;
import org.pentaho.di.core.xml.XMLHandler;
import org.pentaho.di.repos... | 35.029851 | 146 | 0.766368 |
11faabc45883f3d0b11ccd2af0cad5a2300a7c8c | 1,127 | package com.justwayward.book.ui.adapter;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import java.util.List;
/**
* Created by gaoyuan on 2017/11/17.
*/
public class ViewPagerAdapter extend... | 23.479167 | 110 | 0.661934 |
1b1cf5883e8c889a9a21daccf7a140e3a91542ac | 3,569 | package com.lt.sisyphus.rpc.server;
import com.lt.sisyphus.rpc.codec.RpcDecoder;
import com.lt.sisyphus.rpc.codec.RpcEncoder;
import com.lt.sisyphus.rpc.codec.RpcRequest;
import com.lt.sisyphus.rpc.codec.RpcResponse;
import com.lt.sisyphus.rpc.config.provider.ProviderConfig;
import io.netty.bootstrap.ServerBootstrap;
... | 36.793814 | 86 | 0.626786 |
066791250aa3d48a70a33be1d941b02e7c4d8888 | 1,065 | package ru.ok.android.sdk.util;
/**
* A list of currently available scopes
* <p/>
* Methods <b>users.getLoggedInUser</b> и <b>users.getCurrentUser</b> do not require any scopes
*/
public class OkScope {
/**
* Grants access to API methods.
*/
public static final String VALUABLE_ACCESS = "VALUABLE_... | 24.204545 | 95 | 0.643192 |
812e585aff3edc7d63275fef0864c879afd2afbd | 23,801 | package rlaproject;
import java.io.File;
import java.sql.Connection;
import java.sql.PreparedStatement;
import javax.swing.JOptionPane;
import java.text.SimpleDateFormat;
import javax.swing.JFileChooser;
import org.apache.commons.io.FileUtils;
/**
*
* @author Avi Kathuria
*/
public class form26 extends javax.swing.... | 51.184946 | 155 | 0.607916 |
87f49d8109444485726675a654244dec26bfab89 | 4,935 | package com.example.rxjavawithcallback;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ProgressBar;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurre... | 31.433121 | 115 | 0.630193 |
f89d70e8f0140c8900ced581821d36083f617ae2 | 294 | package limax.provider;
import limax.codec.Octets;
public interface TunnelSupport {
void onTunnel(long sessionid, int label, Octets data) throws Exception;
default void onException(long sessionid, int label, TunnelException exception) throws Exception {
throw exception;
}
}
| 24.5 | 99 | 0.761905 |
973d947fd25db270834939e58ca93f01cbbb988b | 2,063 | package net.sourceforge.kolmafia.textui.command;
import net.sourceforge.kolmafia.RequestLogger;
public class PlayerSnapshotCommand extends AbstractCommand {
public PlayerSnapshotCommand() {
this.usage =
" [status],[equipment],[effects],[<etc>.] - record data, \"log snapshot\" for all common data.";
}
... | 32.746032 | 104 | 0.592826 |
87e034073fbbab51e4b82cba20a4c603a28d37b7 | 353 | package com.github.httpflowlabs.httpflow.core;
import com.github.httpflowlabs.httpflow.resource.HttpFlowResource;
import com.github.httpflowlabs.httpflow.resource.parser.model.HttpFlowDocument;
public interface IHttpFlowCore extends HttpFlowConfigurable {
void execute(HttpFlowResource resource);
void execut... | 27.153846 | 79 | 0.832861 |
feea0153f81ea0148219ae7e4f8022502adab01f | 5,280 | package com.composum.pages.commons.service;
import com.composum.pages.commons.model.ContentVersion;
import com.composum.pages.commons.model.SiteRelease;
import com.composum.sling.core.BeanContext;
import com.composum.sling.core.filter.ResourceFilter;
import com.composum.sling.platform.staging.versions.PlatformVersions... | 40.305344 | 116 | 0.67822 |
4230d01db0bdd82a82e41f6681acd62d98a293cb | 1,303 | package com.wqlin.android.sample.refresh;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import com.wqlin.android.sample.R;
import com.wqlin.widget.irecyclerview.ALoadMoreFooterLayout;
/**
* Created by 汪倾林 on 2... | 17.849315 | 107 | 0.660783 |
1160359f46adbf11210657075be39d48858941f2 | 2,962 | package org.junit.runner;
import org.junit.internal.Classes;
import org.junit.runner.FilterFactory.FilterNotCreatedException;
import org.junit.runner.manipulation.Filter;
/**
* Utility class whose methods create a {@link FilterFactory}.
*/
class FilterFactories {
/**
* Creates a {@link Filter}.
*
... | 35.686747 | 116 | 0.68366 |
e2811146b7c9b56242c0f349e5110b4edf088f81 | 21,269 | /*
* 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 ... | 38.812044 | 169 | 0.610137 |
b52e56f908e6125a35de14cc0fd82fb117bcd80c | 485 | package io.snice.networking.examples.echo;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.snice.networking.app.NetworkAppConfig;
public class EchoClientConfig extends NetworkAppConfig {
@JsonProperty("remoteHost")
private String echoServerIp;
@JsonProperty("remoteIp")
private int ec... | 22.045455 | 56 | 0.736082 |
7048afc5f17f2064f770e77dc9f5843e538daf71 | 5,650 | package com.icm.sphynx.mystyles.ui.metro.manager;
import com.icm.sphynx.mystyles.ui.metro.tools.MetroUIConfigTheme;
import com.icm.sphynx.mystyles.ui.metro.tools.MetroUIStyleColors;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import jav... | 42.164179 | 141 | 0.685664 |
cb7dc6ab24c7de7373bd239fe851f532cf53378a | 4,238 | package d2rq;
import java.io.IOException;
import jena.cmdline.ArgDecl;
import jena.cmdline.CommandLine;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.hp.hpl.jena.query.Query;
import com.hp.hpl.jena.query.QueryCancelledException;
import com.hp.hpl.jena.query.QueryExe... | 34.737705 | 117 | 0.704106 |
8415b58dc12bcc66af42063c8425b7b56f1207eb | 2,835 | package analysis;
import static util.ArrayOps.*;
import static util.ArrayPool.*;
import static util.ImageOps.*;
import java.awt.Point;
import java.awt.image.BufferedImage;
public class RotationDetection {
static final int imgType = BufferedImage.TYPE_BYTE_GRAY;
public static double calculateRotation(double[] img1... | 34.156627 | 189 | 0.688183 |
1ac167e228820154325457b0d2aa482e460ce453 | 4,803 | package net.n2oapp.cache.template;
import net.n2oapp.context.StaticSpringContext;
import net.sf.ehcache.Element;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.cache.Cache;
import org.springframework.cache.CacheManager;
import org.springframework.test.contex... | 40.70339 | 120 | 0.669373 |
c68ad57819d5a4f62d5430e3d67041b910c7de50 | 6,476 | /*
* Copyright 2012-2013 Hippo B.V. (http://www.onehippo.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... | 28.910714 | 152 | 0.585083 |
7c4f8f81f76395b6fa2e2601ea4aa92830e6aacb | 5,804 | package controllers;
import play.*;
import play.mvc.*;
import play.data.*;
import play.data.Form.*;
import play.mvc.Http.Context;
import java.util.*;
import views.html.*;
// Import models
import models.*;
import models.users.*;
import models.products.*;
import models.shopping.*;
// Import security controllers
impo... | 30.387435 | 118 | 0.64266 |
3d4ccbc94726b56e9a60ac368a63f9a31834ead6 | 439 | package _12InfernoInfinityCompareTo;
import _12InfernoInfinityCompareTo.enums.Gem;
import _12InfernoInfinityCompareTo.enums.WeaponType;
public class Axe extends WeaponImpl {
public Axe(String name) {
super.setName(name);
super.setDefaultMinDamage(WeaponType.AXE.getMinDamage());
super.setDe... | 31.357143 | 65 | 0.753986 |
7cd790b5effb8579cda5bae942020e231b8b962a | 733 | package de.yard.threed.graph;
import java.util.ArrayList;
import java.util.List;
/**
* Difference to GraphPath? A transition isType a "short path" used for connecting edges.
*
* Created by thomass on 24.05.17.
*/
public class GraphTransition {
public List<GraphPathSegment> seg = new ArrayList<GraphPathSegmen... | 23.645161 | 91 | 0.671214 |
84ee14441c5646a886d17d30705e428bb3bf42e7 | 941 | package com.example.chardsoftcryptowallet.core.database.models;
import java.time.LocalDateTime;
public class Transaction {
private final String Id;
private final String From;
private final String To;
private final float Value;
private final LocalDateTime Datetime;
private final boolean Success... | 20.456522 | 113 | 0.616366 |
bfb15e92c1a737a68b7bef48f14693ee0019a5da | 5,029 | // Needs 2.0.1 update before finishing port
/*
package org.jbox2d.testbed.tests;
import org.jbox2d.collision.PolygonDef;
import org.jbox2d.common.Vec2;
import org.jbox2d.dynamics.Body;
import org.jbox2d.dynamics.joints.RevoluteJoint;
import org.jbox2d.testbed.AbstractExample;
import org.jbox2d.testbed.TestbedMain;
*/
... | 22.252212 | 86 | 0.65341 |
48d6750df4f18455532931730d70c737e2305ddc | 115 | /**
* aliyun sms.
*
* @author shishuihao
* @version 1.0.0
*/
package cn.shishuihao.thirdparty.api.sms.aliyun;
| 14.375 | 48 | 0.66087 |
572e2b1d5affcedd912b2c0478f706312ec40aa0 | 1,151 | package org.wwr.frc2013.pneumatics;
import edu.wpi.first.wpilibj.Solenoid;
import edu.wpi.first.wpilibj.command.Subsystem;
import org.wwr.frc2013.RMap;
/**
*
* @author Austin Reuland
*/
public class SS_LiftHooks extends Subsystem {
// Put methods for controlling this subsystem
// here. Call these from Comm... | 19.183333 | 105 | 0.697654 |
0e65e1bb4667fccfdc437f4ed01baff940d57a38 | 5,191 | package site.bigdataresource.hbase;
import org.apache.commons.collections.IteratorUtils;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.*;
import org.apache.hadoop.hbase.io.ImmutableBytesWri... | 49.438095 | 127 | 0.671162 |
de7c04f7aaed54147c38585d1963f7188a69ae0f | 466 | package framework;
import java.io.IOException;
/**
* Defines operations for any class that wishes to be notified when an {@link IAgent} hits a goal.
*
* @author Zachary Paul Faltersack
* @version 0.95
*/
public interface IGoalListener {
//region Methods
/**
* Callback for receiving a goal {@link G... | 19.416667 | 98 | 0.671674 |
38e6bced7ca8d377edaf04a8ce60b5519e01bc2d | 14,401 | /*
* Copyright 2015 The Energy Detective. All Rights Reserved.
*/
package com.ted.commander.server.dao;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import com.ted.commander.common.model.VirtualECC;
import com.ted.commander.common.model.history.HistoryKey;
import com.ted.comman... | 42.98806 | 347 | 0.624193 |
2d337272f072bb103fce7e28362bb61c7ef63127 | 202 | package ru.otus.l0111.cache;
public interface CacheEngine<K, V> {
void put(CacheElement<K, V> element);
V get(K key);
int getHintCount();
int getMissCount();
void dispose();
}
| 13.466667 | 41 | 0.633663 |
6ec67e7da298fb76b5a6490540a8a38b8354d1ba | 3,133 | package gui;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.JTextArea;
import javax.swing.SwingConstant... | 30.715686 | 77 | 0.750399 |
53c9989e5fe3106fe93d669133367b8482be3ff2 | 3,149 | package ai.pathfinding;
import java.awt.Point;
/**
* An attempt at vectors in Java
* Tailored a bit for what I actually need
* Really more of a line with a single point
*
* @author Oliver Gratton
*
*/
public class Vector
{
private double dx, dy;
private Point centre;
/**
* Make a vector from two points... | 18.202312 | 85 | 0.614481 |
d53917b1a3597c97da32748fca3a02a5f6c9a88a | 5,379 | package org.embulk.parser.poi_excel.visitor;
import java.text.MessageFormat;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.util.CellReference;
import org.embulk.parser.poi_excel.PoiExcelColumnValueType;
import org.embulk.parser.poi_excel.bean.PoiExce... | 31.273256 | 111 | 0.733594 |
3920e272e8363d4d1134edbbd76e6982bf984c08 | 2,306 | /*
* Tencent is pleased to support the open source community by making QMUI_Android available.
*
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain ... | 35.476923 | 103 | 0.579792 |
f42c042196defab9e3234270dcabd1967d7655a0 | 22,568 | /*
* Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0,
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package org.gridgain.internal.h2.test.jdbc;
import java.io.ByteArrayInputStream;
import java.io.Reader;
import java.io.StringReader;
import java.math... | 38.643836 | 91 | 0.575461 |
de85af5a2b9696e358000385a29eb9469287b7d8 | 1,941 | package me.mmarz11.aod.handlers;
import me.mmarz11.aod.handlers.map.BuildBreakHandler;
import me.mmarz11.aod.handlers.map.MapHandler;
import me.mmarz11.aod.handlers.player.ArrowHandler;
import me.mmarz11.aod.handlers.player.BrainHandler;
import me.mmarz11.aod.handlers.player.HungerHandler;
import me.mmarz11.aod.handle... | 44.113636 | 70 | 0.819165 |
781f3a9781a699a829d6a77924aaf6de2e85e6ba | 1,015 | package Hexel.generation.heightMap;
import Hexel.generation.plate.PlateSumChunks;
import Hexel.generation.plate.PlateSum;
public class HeightMap {
private PlateSumChunks smallPSCs;
private PlateSumChunks bigPSCs;
private static final int SCALE = 2;
public HeightMap(){
smallPSCs = new PlateS... | 26.025641 | 82 | 0.615764 |
72ef945d0ea155e78862d5576633b56adf35811e | 13,971 | /*
* 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.081325 | 106 | 0.724644 |
b0b82bfb320b57a81c543591c4db40518fd49410 | 7,814 | package org.sakaiproject.site.tool.helper.participant.rsf;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.sakaiproject.entitybroker.DeveloperHelperService;
import org.sakaiproject.exception.IdUnusedException;
import or... | 40.071795 | 147 | 0.729204 |
eff204acf5d5575d933b89fcfe6254f2bf2e601f | 3,611 | /*
* 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 ... | 37.226804 | 109 | 0.688729 |
343520c0a102e67d34cbc8faf9cf00a270392436 | 33,401 | /*
* Copyright 2016 Richard Cartwright
*
* 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 a... | 37.529213 | 132 | 0.723092 |
88f25cf4034225d003b87c40105062102642f443 | 1,917 | package com.revature.controllers;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
im... | 27.782609 | 76 | 0.769953 |
a698717993fa8b9ea120ac33118c17bc5da0da7c | 2,338 | package com.daylight.devleague.services.stats.fetch;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
... | 34.382353 | 101 | 0.773738 |
ba1bb6f6f9a689e4a1a63b19ec99a36da288def0 | 920 | /**
* Copyright 2016-2018 Iulian Popa (popaiulian@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 required by ap... | 28.75 | 75 | 0.73587 |
7d9eaaf97345e781792ead229b123fcd00fbd21e | 4,901 | package io.github.cjybyjk.systemupdater;
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.preference.MultiSelectListPreference;
import androidx.pre... | 44.153153 | 121 | 0.605387 |
3facba39ae7d61cbf5aa9b1df700f2b01eebd286 | 20,388 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package open.dolphin.delegater;
import java.awt.Dimension;
import java.awt.Image;
import java.io.StringWriter;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
... | 29.462428 | 121 | 0.552972 |
3d93bb37a2ee94815bd21c43f18d63a9e55d2c1a | 5,132 | package org.swaggertools.core.targets.server;
import org.swaggertools.core.model.ApiDefinition;
import org.swaggertools.core.model.Operation;
import org.swaggertools.core.model.Parameter;
import org.swaggertools.core.model.ParameterKind;
import org.swaggertools.core.run.JavaFileWriter;
import com.squareup.javapoet.An... | 45.017544 | 121 | 0.674786 |
326b61dbac4dd0c0bbf63d77453f7b238de43e72 | 2,071 | package org.lappsgrid.gate.cli.abner;
import gate.util.Files;
import org.junit.Ignore;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.CountDownLa... | 23.534091 | 98 | 0.716079 |
1eee9eda2080fa834ba55afbfb72e680b029657e | 1,236 | package com.tentone.wallrunner.input;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.tentone.wallrunner.Global;
public class Button
{
private Sprite sprite;
public Button(int texture,float pos_x,float pos_y,float size_x,float size_y)
{
spri... | 29.428571 | 139 | 0.696602 |
9d34aeebd01efebb75acf03ce2ae67597fb945d2 | 1,148 | import java.util.List;
public interface CommandVisitors{
//Arithmetic Commands
List<String> visit(Commands.AddCommand command);
List<String> visit(Commands.SubCommand command);
List<String> visit(Commands.NegCommand command);
List<String> visit(Commands.EqualCommand command);
List<String> visit... | 39.586207 | 60 | 0.755226 |
8fbd1148192949f7bff2921d0ff38d50a45d55b4 | 5,361 | package com.shagaba.jacksync.diff.strategy;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.core.JsonPointer;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.shag... | 35.269737 | 130 | 0.744637 |
59c26a1c3be1f3601c35547ad318c29331ce42be | 595 | package yuan.sim.vo.document;
import lombok.Data;
import java.util.List;
/**
* @QQ交流群: 648741281
* @Email: 177300883312@163.com
* @微信: londu19930418
* @Author: Simon.Mr
* @Created 2020/9/30
*/
@Data
public class DocumentField {
/**
* 字段名称
*/
private String name;
/**
* 字段描述
*/
... | 12.659574 | 38 | 0.539496 |
e4ff102cdc318e42cc077833cf2958430e02f9a2 | 2,719 | package org.logstash.beats;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.PooledByteBufAllocator;
import java.util.Iterator;
/**
* Implementation of {@link Batch} for the v2 protocol backed by ByteBuf. *must* be released after use.
*/
public class V2Batch implements Batch {
private ByteBuf internalBuffe... | 25.895238 | 121 | 0.687753 |
40a5db16cac7a00f57077671f105c1b65aa967ae | 772 | package com.github.nohum.localezenmode.util;
import android.content.Context;
import com.github.nohum.localezenmode.R;
import com.github.nohum.localezenmode.ZenModeNotificationService;
public class BlurbHelper {
public static String modeToString(Context context, int mode) {
switch (mode) {
ca... | 38.6 | 132 | 0.777202 |
90070e2ec8cd9749f46daf2655ac27591f723c44 | 5,224 | package com.jlkj.project.ws.mapper;
import com.jlkj.project.ws.dto.WsTowerCraneEquipmentWorkDetailsDTO;
import com.jlkj.project.ws.dto.WsTowerCraneProjectMonitoringDetailsDTO;
import com.jlkj.project.ws.dto.WsTowerCraneProjectRealTimeMonitoringDTO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
... | 58.696629 | 169 | 0.89242 |
82ea2381fa610b007d1e0ef6757a18d219f1b81a | 24,784 | package monet.decoder.gif;
import android.annotation.SuppressLint;
import java.io.IOException;
import java.nio.charset.Charset;
import javax.annotation.Nullable;
import okio.Buffer;
import okio.BufferedSource;
import okio.ByteString;
import okio.Source;
import okio.Timeout;
public final class GifSource implements Sou... | 30.635352 | 99 | 0.447385 |
73ab6cc0f3c055e6a69f3ee8c1caa1ba5f046043 | 1,131 | /*
* Created on 07-Mar-2004
* Author is Michael Camacho
*/
package pipe.actions;
import pipe.gui.imperial.pipe.models.petrinet.Annotation;
import javax.swing.*;
import java.awt.event.ActionEvent;
/**
* Action used to toggle the borderof an annotation
*/
public class EditAnnotationBorderAction ex... | 26.302326 | 115 | 0.682582 |
7c522f3d126bc570d241276c81682217cfe72a5c | 1,589 | package tw.com.tp6gl4cj86.java_tool.RecyclerView;
import android.content.Context;
import android.graphics.PointF;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.LinearSmoothScroller;
import androidx.recyclerview.widget.RecyclerView;
/**
* Created by tp6gl4cj86 on 15/4/3... | 25.629032 | 115 | 0.708622 |
5e0081c9934b91e7392f9d2e27d812a1d0105bfb | 6,566 | /**
* 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... | 35.879781 | 123 | 0.66753 |
7af8193f9b3ee6332c11476f30f0e5280011fd16 | 960 | package com.vpaliy.melophile.ui.base.bus.event;
import android.os.Bundle;
import android.support.v4.util.Pair;
import android.view.View;
public class ExposeEvent {
public static final int PLAYER=0;
public static final int PLAYLIST=1;
public static final int USER=2;
public final int code;
public ... | 27.428571 | 86 | 0.688542 |
1036b356becbc80b3f9b9e4efb0cefd688086947 | 9,410 | package com.inz.z.view.widget;
import android.content.Context;
import android.graphics.drawable.Drawable;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vi... | 37.943548 | 154 | 0.59373 |
6d22c5c6a467ec0a70f0b1645ef5462a59a55733 | 574 | package com.eloKeyboard.base.utils;
import org.junit.Assert;
import org.junit.Test;
public class CompatUtilsTest {
@Test
public void testObjectsEqual() {
Assert.assertTrue(CompatUtils.objectEquals(null, null));
Assert.assertFalse(CompatUtils.objectEquals(null, new Object()));
Assert.a... | 33.764706 | 94 | 0.712544 |
12ad09cf2f0c9900c9c6dc82303411b7cb338200 | 1,281 | package com.lindar.getaddress.io.client.api;
import com.google.gson.reflect.TypeToken;
import com.lindar.getaddress.io.client.util.GetAddressConfigs;
import com.lindar.getaddress.io.client.vo.GetAddressResponse;
import com.lindar.getaddress.io.client.vo.PrivateAddressVO;
import com.lindar.wellrested.vo.Result;
import ... | 35.583333 | 100 | 0.76815 |
233258bc9c9144ce248f3678a5c9f93b6c2acad2 | 1,478 | /*
* Copyright 2012 GWT-Bootstrap
*
* 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... | 22.738462 | 76 | 0.669147 |
2358e2de3c8aa52ab560d782bef5e24dbf0856ac | 398 | /*Question 4 Write a program that takes a year
from user and print whether that year is a
leap year or not. Year is divisible by 4 or 400 but not 100*/
import java.util.*;
class Question4{
public static void main (String[] args){
Scanner kb = new Scanner(System.in);
int input =0;
System.out.println("En... | 20.947368 | 62 | 0.678392 |
d65e04c08e5eec67716ac612b404f9af2ea54506 | 2,104 | /*
package ukim.mk.finki.konstantin.bogdanoski.wp.web.servlets;
import lombok.AllArgsConstructor;
import org.thymeleaf.context.WebContext;
import org.thymeleaf.spring5.SpringTemplateEngine;
import ukim.mk.finki.konstantin.bogdanoski.wp.model.user.User;
import ukim.mk.finki.konstantin.bogdanoski.wp.service.OrderService... | 38.962963 | 113 | 0.742395 |
34039572c453462258d806012d3d29217458449d | 515 | package com.revature;
import com.revature.proxy.LoggingAspect;
import com.revature.proxy.If;
import com.revature.proxy.Original;
import java.lang.reflect.Proxy;
public class JdkProxyDemo {
public static void main(String[] args) {
Original original = new Original();
LoggingAspect handler = new Lo... | 25.75 | 111 | 0.706796 |
e7ab35d0dd88a5f5c3a35701d324280670e36de1 | 4,032 | package com.galois.fiveui;
import java.io.File;
import java.io.IOException;
import java.net.BindException;
import java.util.List;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.Assert;
import org.apache.log4j.Level;
import org.apache.log4j.LogManager;
import org.ap... | 29.430657 | 114 | 0.680804 |
f8f29a9dbabbf5995a3358dbfca73260d32e02ba | 4,204 | package com.github.oxygenPlugins.common.gui.types;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.MouseListener;
import java.util.ArrayList;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JTextField;
import com.gi... | 22.481283 | 102 | 0.721694 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.