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 |
|---|---|---|---|---|---|
ea96eea99b10f5e1a051f1d5d07268767d15c854 | 756 | package org.firstinspires.ftc.teamcode.MPC.geometry;
import java.text.DecimalFormat;
public class Circle2d extends Translation2d {
private double radius;
public Circle2d(double x, double y, double radius) {
super(x, y);
setRadius(radius);
}
public Circle2d(Translation2d translation,... | 22.909091 | 94 | 0.634921 |
da362f1431f5d877392e3e042b29a07b7d547923 | 358 | package cn.aradin.spring.lts.starter;
import org.springframework.context.annotation.Configuration;
import com.github.ltsopensource.spring.boot.annotation.EnableJobClient;
import com.github.ltsopensource.spring.boot.annotation.EnableTaskTracker;
@Configuration
@EnableTaskTracker
@EnableJobClient
public clas... | 25.571429 | 74 | 0.824022 |
86fefbe4763b1ba1c176fd0811b39a2f1080995a | 1,740 | package com.artsafin.tgalarm.bot.routing;
import com.artsafin.tgalarm.alarm.ScheduledAlarm;
import com.artsafin.tgalarm.bot.command.*;
import com.artsafin.tgalarm.bot.user.UserSession;
import org.telegram.telegrambots.meta.api.objects.Message;
import org.telegram.telegrambots.meta.api.objects.Update;
import java.util... | 32.222222 | 106 | 0.678161 |
2d2484602a951aea2b2476d495a75ec1c82334ed | 4,388 | package org.hisp.dhis.coldchain.catalog;
import static org.hisp.dhis.i18n.I18nUtils.getCountByName;
import static org.hisp.dhis.i18n.I18nUtils.getObjectsBetween;
import static org.hisp.dhis.i18n.I18nUtils.getObjectsBetweenByName;
import java.util.Collection;
import org.hisp.dhis.i18n.I18nService;
import org.springfr... | 34.825397 | 116 | 0.663856 |
e83c3b37b1fc3bca4583d7a9f7c6bc8fed808662 | 2,547 |
import twitter4j.*;
import java.io.IOException;
import java.util.ArrayList;
public final class PrintFilterStream {
public static void main(String[] args) throws TwitterException, IOException {
final Preprocesser Preproc;
Preproc= new Preprocesser();
Preproc.preparefiles();
System.out.println("... | 36.913043 | 142 | 0.612878 |
31cf1e6dabcf800e7564c38f3c1929adb0041fbb | 1,485 | package com.orientechnologies.orient.jdbc;
import org.junit.Test;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import static org.assertj.core.api.Assertions.assertThat;
public class OrientJdbcStatementTest extends OrientJdbcBaseTest {
@Test
public void should... | 27 | 81 | 0.692929 |
69899632f6add332dec5b8a6e5223c2efe441e4a | 9,188 | /*
* JaamSim Discrete Event Simulation
* Copyright (C) 2014 Ausenco Engineering Canada 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/LICE... | 45.485149 | 123 | 0.701894 |
f951676e0a65a873805d87f41b2fc35d4afada44 | 705 | package com.mgu.csp.sudoku;
import com.mgu.csp.Assignment;
import com.mgu.csp.VariableIdentity;
public class PrettyPrinter {
public static void printBoard(final Assignment<Integer> assignment) {
final StringBuilder sb = new StringBuilder();
for (int row = 0; row < 9; row++) {
for (int... | 35.25 | 123 | 0.602837 |
feca8338b3be1c39a27ee3e73878efaf8f2866a4 | 7,334 | /*
* GridGain Community Edition Licensing
* Copyright 2019 GridGain Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause
* Restriction; you may not use this file except in compliance with the License. You may obtain a
* c... | 33.797235 | 123 | 0.650668 |
725e71b41e9d9053f155163c9e9cbf833acb61d4 | 10,883 | package com.txt.video.trtc.videolayout;
import android.content.Context;
import android.content.res.TypedArray;
import androidx.annotation.Nullable;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
impor... | 38.052448 | 123 | 0.649545 |
6621c6aae07b820d301eaed3447da98b7eacece2 | 854 | package hr.fer.zemris.java.hw05.db;
/**
* Class represents one token extracted by lexical grouping.
* @author Blaz Bagic
* @version 1.0
*/
public class Token {
/** The type of the token. */
private TokenType type;
/** The value of the token. */
private String value;
/**
* Default constructor for the... | 20.333333 | 72 | 0.625293 |
766e6f360d6bb936ebe95404a8c8070080873c1f | 3,271 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.subsystems;
import com.ctre.phoenix.motorcontrol.ControlMode;
import com.ctre.phoenix.motorcontrol.Fe... | 30.858491 | 160 | 0.767655 |
6a5f1833eddb829c56b0497adffad0a3c4377773 | 4,740 | package io.github.wayerr.ft.swing;
import javax.swing.*;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.lang.reflect.InvocationTargetException;
/**
* an example of Focus-traverse usage
* Created by wayerr on 10.02.15.
*/
public final class Example implements Runnable {
private static final int ... | 37.03125 | 101 | 0.60443 |
dab0fba80aded49d9d72bc1fb1ae88919e5f87ec | 2,724 | package mekanism.common.item.block;
import javax.annotation.Nonnull;
import mekanism.common.registration.impl.ItemDeferredRegister;
import mekanism.common.util.MekanismUtils;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.i... | 38.366197 | 157 | 0.680617 |
10606df7b088da5231222db232d5c970913e2e08 | 3,060 | package com.pineone.icbms.sda.itf.ci.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.bind.ann... | 31.22449 | 79 | 0.666667 |
07130ad05b03f9c43436ee39aecfc7ab5b9dc387 | 2,044 | package com.example.opengles.act;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.blankj.utilcode.util.ToastU... | 34.066667 | 113 | 0.701566 |
0a2cf5891a1b25acc40b6a37f1b5583b48590cb8 | 3,994 | /*
* 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 ... | 39.544554 | 103 | 0.706059 |
1cd7ff76687930b31ee99ca21b00b09c6a784fb9 | 354 | package me.chibitxt.smsc;
public class ChibiUtil {
public static boolean getBooleanProperty(String key, String defaultValue) {
int value = Integer.parseInt(
System.getProperty(key, defaultValue)
);
boolean property;
if(value == 1) {
property = true;
} else {
property = false;
... | 17.7 | 77 | 0.638418 |
2fee2e13a90f2f76c57c79bacd82e33421afd05b | 2,576 | /*
* Copyright (c) 2002, 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 33.454545 | 79 | 0.724379 |
656dbeb0d8c051a71a33a2cc2392a2436a1911cd | 278 | package example.imagetaskgang.servermodel;
import java.net.URL;
import java.util.List;
import retrofit.http.Body;
import retrofit.http.POST;
public interface ImageStreamService {
@POST("/ImageStreamServlet")
ServerResponse execute(@Body List<List<URL>> inputURLs);
}
| 21.384615 | 60 | 0.776978 |
2711a65ba52737d6ecac79d2b2cc4311f4daebe8 | 73 | package io.undertow.test.jsp.classref.testname;
public class MyTest {
}
| 14.6 | 47 | 0.780822 |
3df1bf0e68b5b11fa71c8856557927d2b07777be | 196 | package com.gls.common.user.api.model.query;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* @author george
*/
@Data
@Accessors(chain = true)
public class QueryClientModel {
}
| 15.076923 | 44 | 0.744898 |
9899c3f46ffb7b1f4a15e378fda85a4525bb9f11 | 3,889 | package com.bringardner.openscad.polygon;
import java.awt.Rectangle;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class ImageDiff {
private static boolean merge(Rectangle r1, Rectangle r2, int hpad,int vpad) {
boolean ret = false;
... | 22.876471 | 118 | 0.53407 |
d0084081c8ab10d2bcffebcdf8178bce4520a7e6 | 1,180 | package consultan.vanke.com.viewmodel;
import android.app.Application;
import android.util.Base64;
import consultan.vanke.com.R;
import consultan.vanke.com.bean.NewLoginResultBean;
import consultan.vanke.com.constant.ConstantLibrary;
import consultan.vanke.com.utils.ToastUtils;
import io.reactivex.Maybe;
import java... | 29.5 | 86 | 0.692373 |
43d42b0bca18825593c52420329a1b5ee89f4f60 | 8,242 | package com.example.test1;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.DialogFragment;
import android.app.DatePickerDialog;
import android.app.TimePickerDialog;
import android.content.Intent;
import android.... | 39.625 | 127 | 0.587115 |
13226a80bb302d7920a2d05c6258801eeae9da8d | 1,607 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.appboy.ui;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
// Referenced classes of package com.appboy.ui:
// AppboyW... | 28.696429 | 104 | 0.608587 |
b176601b964f9838529d23eeece886d25fa3b49b | 1,168 | package com.youngadessi.demo.auth.exception.handler;
import com.youngadessi.demo.auth.exception.NotFoundException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.sp... | 35.393939 | 85 | 0.768836 |
9826d5cdd816625cec083cc6a3fd6b4b375ae5d3 | 851 | package com.utrust.api.model.merchant;
import com.google.gson.annotations.SerializedName;
public class LoginMerchantResponse {
@SerializedName("data")
private Data data;
static class Data {
@SerializedName("type")
private String type;
@SerializedName("id")
private String ... | 18.5 | 50 | 0.612221 |
c7b5db0c62ecc73c970041282d56b5b1663e9296 | 3,448 | package de.tototec.cmdoption.handler;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import de.tototec.cmdoption.internal.I18n;
import de.tototec.cmdoption.internal.I18n.PreparedI18n;
import de.tototec.cmdoption.internal.I... | 30.245614 | 110 | 0.685905 |
1003a4bfb18e2aef2a91e1479718c802601a62f0 | 5,467 | package io.opensphere.core.model;
import java.io.Serializable;
import io.opensphere.core.units.length.Length;
import io.opensphere.core.units.length.Meters;
import io.opensphere.core.util.Constants;
import io.opensphere.core.util.MathUtil;
import io.opensphere.core.util.lang.UnexpectedEnumException;
/**
... | 28.623037 | 130 | 0.602341 |
0b0384f663c42e1391a27fbe0d46f3e75c0f3777 | 349 | package qunar.tc.qconfig.server.web.servlet;
/**
* @author zhenyu.nie created on 2014 2014/10/29 12:17
*/
public class ForceLoadV1Servlet extends AbstractForceLoadServlet {
private static final long serialVersionUID = 4291294666859848420L;
@Override
protected String getVersion() {
retu... | 21.8125 | 71 | 0.696275 |
6d8e6e9a8af69e3add7a944487788fa69cd5e808 | 1,450 | /**
*
*/
package com.ricex.aft.servlet.gcm;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/** Executor for sending messages to the GCM servers
*
* @author Mitchell ... | 21.014493 | 82 | 0.722069 |
4193a0768d1fdef53a20705727db40d68332a9e8 | 3,721 | package com.xm.bus.search.self;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Filter;
import android.widget... | 25.486301 | 80 | 0.694168 |
add3eccf02095bc82add51d4d59c9dd7d9c40249 | 2,692 | /*
* Copyright 2021 wssccc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 33.234568 | 97 | 0.671248 |
90a2be4fe3325bebab7764d1ba52e62dc369dce8 | 10,354 | 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... | 17.489865 | 813 | 0.792544 |
66e7d027a8d489d0fb9945b986132a8714b68409 | 6,307 | /*
* Copyright 2003-2009 the original author or 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 36.456647 | 146 | 0.758998 |
41f343dbdaacbb069d2fd638bf39a2da5c38c40c | 7,652 | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.rankingexpression.importer.tensorflow;
import com.yahoo.searchlib.rankingexpression.RankingExpression;
import com.yahoo.searchlib.rankingexpression.evaluation.Context;
import com.yaho... | 43.977011 | 135 | 0.68505 |
e15cf725f77aa0d7360fca37dd8528d60abc5df1 | 750 | package question2;
import java.util.ArrayList;
public class GameWorld {
private ArrayList<Placeable> placeableItems;
public GameWorld() {
placeableItems = new ArrayList<Placeable>();
}
public Placeable getPlaceableItem(int index) {
if(!placeableItems.isEmpty() && index >= 0 && index < placeableItems.size... | 20.833333 | 80 | 0.702667 |
85633009b80be5f67838ff40dc131cd17258a879 | 1,009 | package br.com.softblue.loucademia.interfaces.shared.web;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import br.com.softblue.loucademia.application.service.DataService;
import br.com.softblue.loucademia.domain... | 22.931818 | 66 | 0.750248 |
6055dc20a57d559698b7fb3b1173f11d12e1ce58 | 146 | package com.example.springlearndemo.aop.overview;
public interface EchoService {
String echo(String message) throws NullPointerException;
}
| 20.857143 | 60 | 0.808219 |
4475b5c7a7a0920a5eb8c0027cf1f687f1a5ab27 | 1,249 | /*
* Copyright 1999-2015 dangdang.com.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 33.756757 | 113 | 0.733387 |
b595f828dac62f3ee777074c61616b8325b59448 | 1,452 | package com.law.flappy.input;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
public class InputHandler implements KeyListener, MouseListener {
public boolean[] keys = new boolean[65536];
public boolean[] mouseButtons = new b... | 19.890411 | 65 | 0.686639 |
7f0684d2697b3017b14553d5ec1c4cfd8ac09eb8 | 7,020 | package com.github.trackexpenses.fragments;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ProgressBar;
import android.widget.... | 32.201835 | 111 | 0.646439 |
78ccd9bcac540d6194583e7b99c0092082000606 | 6,396 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL") (... | 30.898551 | 79 | 0.682458 |
c8c59f4abfc2fbf3f67df9921a32a67226da6876 | 2,529 | /*
* 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 ... | 36.128571 | 111 | 0.713325 |
85e545d60ad17599db781532c2d550e39854291f | 246 | package com.joindata.demo.pangu.dubbo.provider.biz;
public interface DubboProviderService
{
/**
* 生成一些 UUID
*
* @param count 生成几个
* @return 生成后的 UUID 数组
*/
public String[] generateUuid(int count);
}
| 18.923077 | 52 | 0.601626 |
cfb22b6df8387c9c57c9ec32714e07b93a61bdfb | 493 | package io.github.privacystreams.sensor;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
/**
* Provide a live stream of air pressure sensor updates.
*/
class AirPressureUpdatesProvider extends SensorUpdatesProvider {
AirPressureUpdatesProvider(int sensorDelay) {
super(Sensor.TYPE_P... | 23.47619 | 64 | 0.750507 |
3a8578551f581e90b36075d7b47e359bb0b168da | 8,712 | package aQute.bnd.classpath;
import java.io.*;
import org.eclipse.core.resources.*;
import org.eclipse.core.runtime.*;
import org.eclipse.jdt.core.*;
import org.eclipse.jdt.ui.wizards.*;
import org.eclipse.jface.viewers.*;
import org.eclipse.jface.wizard.*;
import org.eclipse.swt.*;
import org.eclipse.swt.events.*;
i... | 34.434783 | 180 | 0.551997 |
76d284e7fedaad8ebdc6760b14dc0f55fcaa4a66 | 7,085 | /**
* SPDX-FileCopyrightText: 2018-2021 SAP SE or an SAP affiliate company and Cloud Security Client Java contributors
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.sap.cloud.security.xsuaa.client;
import com.sap.cloud.security.config.ClientCredentials;
import com.sap.cloud.security.config.ClientIdentity... | 44.559748 | 115 | 0.814679 |
a33387287a6698d5d9a1cedb147cd317a0c89a67 | 1,208 | package com.chairbender.consensus.webservice.entity;
import javax.persistence.*;
/**
* Represents a review of a paper by a user
*/
@Entity
public class Review {
@Id
@GeneratedValue
private long id;
@Column(name = "userId")
private long userId;
@Column(name = "paperId")
private long pape... | 18.875 | 65 | 0.596026 |
426468f8b924c75d779d584db5e0b45a363fcae2 | 2,742 | package org.citrusframework.simulator.http;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import javax.annotation.PostConstruct;
... | 27.69697 | 125 | 0.664843 |
4d40c5094cd964c6f839dbbd1d49a170d972eed0 | 11,059 | package net.minecraft.client.gui.screen;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonIOException;
import com.google.gson.stream.JsonWriter;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.serialization.DataResult;
impor... | 51.199074 | 212 | 0.718329 |
3d96ba0d24767baa8dd89aa6cf5dccbfdd2197d4 | 8,248 | /**
* 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.653846 | 109 | 0.610087 |
3d949cacf061e89e403c35f4905d99dd11de9a27 | 1,082 | package salaryIncrease;
import java.text.DecimalFormat;
public class Person {
private String firstName;
private String lastName;
private int age;
private double salary;
public Person(String firstName, String lastName, int age, double salary) {
this.firstName = firstName;
this.lastName = lastName;
this.age... | 19.321429 | 75 | 0.674677 |
83fd8a0fe93e3884618c667a8897868d82a9c62f | 761 | package Leetcode;
import java.util.Arrays;
/**
* #537 ComplexNumberMultiplication
*/
class ComplexNumberMultiplication {
public static String complexNumberMultiply(String a1, String b1) {
String[] A = a1.split("\\+", 2);
String[] B = b1.split("\\+", 2);
int a = Integer.parseInt(A[0]);
int b = Inte... | 27.178571 | 68 | 0.599212 |
352637daaa6718bafd133008cea035a0f5d7c001 | 895 | package com.gitee.code4fun.facerecognition.gui.util;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.Producer;
import org.apache.kafka.clients.producer.ProducerConfig;
import java.util.Properties;
/**
* @author yujingze
* @data 2018/9/6
*/
public class KafkaUtils {... | 31.964286 | 134 | 0.776536 |
4cfa7e614150e6c45cef77d49e4392405a8de9e1 | 1,349 | package ru.shemplo.pluses.network.message;
import org.json.JSONObject;
public class ControlMessage extends AbsAppMessage {
/**
*
*/
private static final long serialVersionUID = -2101506025334294654L;
public static enum ControlType {
ERROR, ID, INFO, JSON
}
protected final... | 24.089286 | 73 | 0.595256 |
31047e45ba716f2f0114fca4410801816cbc602a | 2,251 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 33.102941 | 100 | 0.731675 |
9b7f8c8a3d02bfb3f1332149b4b7592c7b64f04d | 2,955 | package com.zyb.myWeather.adapter;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import com.zyb.myWeather.R;
import com.zyb.myWeather.model.... | 25.474138 | 86 | 0.625719 |
a11e29847a42ed7a153e3066c44d203d7300835d | 13,487 | package com.clilystudio.netbook.ui.ugcbook;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ImageButton;
import android.widget.Li... | 42.278997 | 209 | 0.606213 |
7b5e6f8e6f134c1dd27b8b0301658e9846adfd1c | 3,798 | package com.example.oukenghua.mobilephonehelper;
import android.Manifest;
import android.app.Activity;
import android.app.DownloadManager;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Environment;
import android.suppo... | 41.736264 | 134 | 0.694839 |
ed4c1422ac085578c8b6b4745071712c4d889185 | 3,537 | package com.devdatto.sandbox.cityconnect.controller;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestP... | 41.611765 | 102 | 0.773254 |
e89d45d14f8dc2fd7d5ffc9b6740cda0ef5a5f60 | 7,072 | /*
* Copyright (C) 2014 TopCoder Inc., All Rights Reserved.
*/
package gov.nasa.asteroid.hunter.services.impl;
import gov.nasa.asteroid.hunter.LoggingHelper;
import gov.nasa.asteroid.hunter.Helper;
import gov.nasa.asteroid.hunter.models.HelpItem;
import gov.nasa.asteroid.hunter.models.HelpItemSearchCriteria;... | 30.747826 | 119 | 0.602941 |
0b1f2a40f361b79631c5d4fc238ea57487b9fd07 | 417 | package com.walkhub.walkhub.global.exception;
import com.walkhub.walkhub.global.error.exception.ErrorCode;
import com.walkhub.walkhub.global.error.exception.WalkhubException;
public class InvalidRoleException extends WalkhubException {
public static final WalkhubException EXCEPTION =
new InvalidRoleE... | 27.8 | 67 | 0.772182 |
7338d41d1cbcb78da0efe6ecb31a4ddfe5ba9410 | 2,359 | package pers.ui.main;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.Insets;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JSplitPane;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.Border;
import... | 25.923077 | 129 | 0.69309 |
0301e6b2f1d59117a0d7e6c64a65f0b05d29a191 | 631 | package stonering.screen.util;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.utils.TimeUtils;
import stonering.util.lang.StaticSkin;
public class CounterLabel extends Label {
private final String prefix;
private long lastSecond;
private int counter;
public Counter... | 21.033333 | 48 | 0.633914 |
02def6e78a791ad6ea222c023580f4ffab4407d2 | 1,319 | /*
* Copyright 2014-2019, Andrew Lindesay
* Distributed under the terms of the MIT License.
*/
package org.haiku.haikudepotserver.passwordreset.controller;
import org.haiku.haikudepotserver.passwordreset.PasswordResetServiceImpl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind... | 37.685714 | 108 | 0.777104 |
ce1f868cb416fb3e4f7a231da8f22eb8a5b1f223 | 5,267 | package cli.BAM_Statistics;
import picocli.CommandLine;
import picocli.CommandLine.ArgGroup;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
import picocli.CommandLine.Parameters;
import java.util.Scanner;
import java.util.Vector;
import java.util.concurrent.Callable;
import java.io.File;
impo... | 36.324138 | 149 | 0.667173 |
577c9400cf685aae396525cbdc406a9d3ae71c91 | 730 | package net.flyingfishflash.ledger.foundation;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@Component
public class HttpSessionListenerLogging implements HttpSession... | 29.2 | 97 | 0.783562 |
e7d5964866669d194736c56a630ff783e28d3a12 | 6,517 | package lab03;
import java.util.Scanner;
/**
* Interface de menu para a classe Agenda.
*/
public class MenuAgenda {
/**
* A agenda a ser manipulada.
*/
private Agenda agenda = new Agenda();
/**
* A string do menu principal.
*/
final private String menuPrincipal = "(C)adastrar ... | 26.929752 | 104 | 0.550714 |
b886f968bc4569f270918c65b5fd0642928ccacc | 299 | package edu.abhi.test.applet;
import java.applet.Applet;
import java.awt.Graphics;
public class Simple extends Applet{
/**
*
*/
private static final long serialVersionUID = 7560346105217166222L;
public void paint(Graphics g){
g.drawString("welcome to applet",150,150);
}
} | 18.6875 | 67 | 0.705686 |
51705a05b4045e2ba4140f69f7fcfafa733b794a | 1,090 | package com.tim.scientific.portal.back.db.models;
import com.fasterxml.jackson.databind.JsonNode;
import com.tim.scientific.portal.back.db.models.crm.type.PageType;
import com.tim.scientific.portal.back.db.models.security.UserPage;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Type;
imp... | 24.222222 | 66 | 0.731193 |
c919fa9e89627a99ae04b10cecc56ecb6c292b6d | 2,514 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.tool.schema;
import java.util.HashMap;
import java.util... | 31.037037 | 102 | 0.798727 |
de4cae5b9be587b12fbe4f64f75e337302966f80 | 3,278 | package com.wlcb.jpower.dbs.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wlcb.jpower.module.base.annotation.Dict;
import com.wlcb.jpower.module.base.annotation.Excel;
import com.wlcb.jpowe... | 34.87234 | 124 | 0.697682 |
c3df78a7ec61ea43cd257138db73d9352e9e589d | 6,313 | /*
* (c) Copyright 2021 Felipe Orozco, Robert Kruszewski. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 46.419118 | 120 | 0.725329 |
879232cf33078d6cb335f4c11751b55ae93aaa47 | 7,364 | /*
* DefaultListFacadeTest.java
* Copyright James Dempsey, 2012
*
* 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 option) any later... | 32.875 | 100 | 0.700299 |
0ec75f6eeaa9ca29aedb64b6b99f4f5d2321e4c7 | 5,268 | package de.tum.mitfahr.networking.models.response;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import de.tum.mitfahr.networking.models.Conversation;
import de.tum.mitfahr.networking.models.Rating;
import de.tum.mitfahr.networking.models.Ride;
import de.tum.mitfahr.networking.models... | 27.581152 | 575 | 0.689446 |
9a93b903555b3db714486ebe8d4f428b78a35a63 | 329 | package mod.linguardium.instantport.mixin;
import net.minecraft.entity.player.PlayerEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
@Mixin(PlayerEntity.class)
public class NetherPortalTimeMixin {
@Overwrite
public int getMaxNetherPortalTime() {
return 1;... | 23.5 | 48 | 0.772036 |
897518ea10dfcbef2e42ab5da76fef8482c9304a | 2,509 | package tutoraid.logic.parser;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import tutoraid.commons.core.Messages;
import tutoraid.logic.commands.DeleteCommand;
import tutoraid.logic.commands.DeleteLessonCommand;
import tutoraid.logic.commands.DeleteProgressCommand;
import tutoraid.logic.commands.D... | 38.6 | 99 | 0.718214 |
d7e4d3b86b26fefba828f7e29f99444a0092de42 | 6,791 | package me.wallhacks.spark.manager;
import com.mojang.realmsclient.gui.ChatFormatting;
import me.wallhacks.spark.Spark;
import me.wallhacks.spark.event.player.PacketReceiveEvent;
import me.wallhacks.spark.util.MC;
import me.wallhacks.spark.util.objects.Notification;
import net.minecraft.entity.Entity;
import net.minec... | 48.507143 | 157 | 0.541599 |
c155e9041122520f38d57342beb3888a9485a840 | 7,927 | /**
* BigBlueButton open source conferencing system - http://www.bigbluebutton.org/
*
* Copyright (c) 2012 BigBlueButton Inc. and by respective authors (see below).
*
* This program 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... | 41.721053 | 131 | 0.72928 |
b7301fdd15c6ceeffad3604f2e207d08db1db6d5 | 6,217 | package com.tracelink.prodsec.plugin.jira;
import com.tracelink.prodsec.plugin.jira.model.JiraThresholds;
import com.tracelink.prodsec.plugin.jira.model.JiraVuln;
import com.tracelink.prodsec.plugin.jira.service.JiraThresholdsService;
import com.tracelink.prodsec.plugin.jira.service.JiraUpdateService;
import com.trace... | 34.538889 | 89 | 0.783175 |
440bdf1c534fc93c7a77cd58ba8740df761aa58d | 312 | package com.example.guestbook.helloworld.service;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
/**
*
*/
import javax.enterprise.context.ApplicationScoped;
/**
*
*/
@ApplicationPath("/")
@ApplicationScoped
public class HelloworldserviceRestApplication extends Application {
}
| 15.6 | 67 | 0.772436 |
8a07a663b0cbecb5d9976b42d0f9d437101fc7bf | 1,143 | package com.annotation.factory.config;
import com.annotation.factory.annotation.MaskSensitiveData;
import com.annotation.factory.introspector.MaskSensitiveDataAnnotationIntrospector;
import com.fasterxml.jackson.databind.AnnotationIntrospector;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframe... | 47.625 | 160 | 0.846019 |
33244012bad26ccb6332201f8b4c2ca90fd814c0 | 2,036 | /*
* Copyright 2021 Club Obsidian and contributors.
*
* 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 re... | 33.377049 | 124 | 0.761297 |
fe967ca6d7aad2cb8268e7685f4171615869b527 | 4,689 | package com.viloma.jagoframework.sample;
import java.sql.SQLException;
import java.util.Date;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import com.viloma.jagoframework.JagoServer;
/**
* Your project main - needs to extend JagoServer which provides a full server-stack web-dev tools... | 41.866071 | 140 | 0.645767 |
635a667aba803b97aac8fe3ef1591ceedd6decea | 1,078 | package com.hyty.cordova.mvp.ui.view;
import android.content.Context;
import android.support.annotation.AttrRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.StyleRes;
import android.util.AttributeSet;
import android.widget.FrameLayout;
/**
... | 28.368421 | 100 | 0.639147 |
e93ceedc9ff6e133b3be34d8624190ef277b8947 | 1,886 | /*
* Copyright 2020 HiveMQ and the HiveMQ Community
*
* 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.517241 | 100 | 0.679745 |
1cfc3703c71c63f2464d7119291759d975eb0f6a | 25,360 | /* Copyright 2017 Zutubi Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 35.418994 | 169 | 0.563565 |
10525c00fd8cb43e027c33791b3bba8e57c51c94 | 13,923 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are su... | 45.351792 | 209 | 0.618617 |
2edb297f7a0b715390d7c2d597c071fa5bb2025f | 3,068 | package org.neo4j.examples.imdb.web;
import org.neo4j.examples.imdb.domain.Actor;
import org.neo4j.examples.imdb.domain.ImdbService;
import org.neo4j.examples.imdb.domain.Movie;
import org.neo4j.examples.imdb.domain.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transac... | 34.088889 | 79 | 0.596154 |
9c077fe499fb9a1b2871f5103e52456ca78429e4 | 250 |
package org.mockito.exceptions.misusing;
import org.mockito.exceptions.base.MockitoException;
public class CannotVerifyStubOnlyMock extends MockitoException {
public CannotVerifyStubOnlyMock(String message) {
super(message);
}
}
| 19.230769 | 64 | 0.776 |
e80733b3a84886bea33a81f304b1b9138a637d64 | 1,624 | package io.github.sruby.concurrent.geek.completionservice;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.*;
/**
* @description: CompletionService test
* @author: sruby
... | 29.527273 | 94 | 0.578202 |
8dd8f6e2f1c6fcd44a073298997683172cbd5fb6 | 1,198 | package appium;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.remote.MobileCapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
public class... | 31.526316 | 85 | 0.702003 |
29206ff72e9cf50436fd20b43f529f0f85786d78 | 10,644 | package persistence;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import exception... | 55.150259 | 207 | 0.780158 |
11df1729fa9f8ff045a691119f73f9e9d6b89057 | 1,056 | package com.woshidaniu.socket.code;
import java.nio.charset.Charset;
import org.apache.mina.core.buffer.IoBuffer;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolEncoderAdapter;
import org.apache.mina.filter.codec.ProtocolEncoderOutput;
import org.apache.mina.filter.codec.tex... | 29.333333 | 88 | 0.689394 |
308950a257f73cf8bc54a436be9f9f97fda897bb | 16,914 | package com.apakor;
import java.util.Calendar;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.app.TimePickerDialog;
import android.content.ContentResolver;
import android.content.Context;
im... | 30.978022 | 115 | 0.737141 |
4c977a558b0a89f1a6ec666fa66244b247fe1f89 | 311 | package org.lexikos;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MorphoApplication {
public static void main(String[] args) {
SpringApplication.run(MorphoApplication.class, args);
}
} | 23.923077 | 68 | 0.800643 |
0326b3084547645ac2a69cae1202e98063f40331 | 10,797 | package jgame.platform;
import jgame.*;
import jgame.impl.JGameError;
//import android.graphics.Bitmap;
import android.graphics.*;
import android.content.res.AssetManager;
import java.io.IOException;
import java.io.InputStream;
import java.util.Hashtable;
/** Image functionality */
class AndroidImage implements JGIm... | 30.159218 | 80 | 0.580995 |
a2c35df278ea552de2879b5ad6f971ea133f8731 | 169 | package com.study.tomcat.connector;
/**
*
* @author dranawhite
* @version $Id: Response.java, v 0.1 2019-03-09 17:44 dranawhite Exp $$
*/
public class Response {
}
| 16.9 | 72 | 0.674556 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.