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 |
|---|---|---|---|---|---|
75e6e41704d12f7784175e3907de74011d466298 | 139 | package loon.opengl.d3d.models;
public class ModelMeshPart {
public String id;
public short[] indices;
public int primitiveType;
}
| 13.9 | 31 | 0.748201 |
2ddba2a0b82ad527c52e841cd1461ca844900f84 | 2,205 | package com.fishercoder;
import com.fishercoder.common.classes.TreeNode;
import com.fishercoder.common.utils.TreeUtils;
import com.fishercoder.solutions._987;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static junit.framework.Assert.assertEquals;
publi... | 36.75 | 146 | 0.664853 |
a217f012a742b03fe2703e95d36a30cd79bc6020 | 7,497 |
package assignments2018.a2template;
import java.lang.Iterable;
import java.util.Iterator;
/**
* A basic implementation of some methods in a singly linked list class.
* @author Michael Langer
* @modified by Sayantan Datta
*
* (Most of this code was adapted from textbooks
* e.g. by Frank Carrano, Mark Allen W... | 21.857143 | 128 | 0.592904 |
ce107d85f150f8aa44711d772b9477b2784787fc | 371 | package ru.stqa.pft.addressbook.tests;
import org.testng.annotations.*;
import ru.stqa.pft.addressbook.model.GroupData;
public class GroupCreationTests extends TestBase
{
@Test
public void testGroupCreationTests() throws Exception {
app.getNavigationHelper().gotoGroupPage();
app.getGroupHelper().create... | 19.526316 | 70 | 0.749326 |
ce12de47e49564028f9bfe47f31f21280059fc7e | 406 | package com.hqh.quizserver;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
@SpringBootApplication
@EnableAsync
public class QuizServerApplication {
public static void main(String... | 25.375 | 68 | 0.810345 |
fa47ea810e028228bb4a269389e02a694513bb96 | 2,489 | package seedu.address.model.event;
import static java.util.Objects.requireNonNull;
import static seedu.address.commons.util.AppUtil.checkArgument;
/**
* Represents an Event's time in the application.
* Guarantees: immutable; is valid as declared in {@link #isValidTime(String)}
*/
public class Time {
public sta... | 29.282353 | 104 | 0.610687 |
b522fbbcd3027bf66d43058ef79b9aa0fd7bcd78 | 2,981 | package com.jeffdisher.cacophony.commands;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import com.jeffdisher.cacophony.data.global.GlobalData;
import com.jeffdisher.cacophony.data.global.index.StreamIndex;
import com.jeffdisher.cacophony.data.global.records.StreamRecords;
import com.jeffd... | 44.492537 | 151 | 0.784971 |
8a966cb26df8c3e06856bcb3444e3f81e41c399e | 249 | package BridgePattern;
/**
* Created by cheny on 2018/4/15.
*/
public abstract class Coffee {
protected Additives impl;
public Coffee(Additives impl){
this.impl = impl;
}
public abstract void makeCoffee();
}
| 17.785714 | 39 | 0.62249 |
25c98abf9127a991d6cca2e141213c2324a568a8 | 5,111 | /* 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... | 36.248227 | 117 | 0.683624 |
5f461a890943191cfbe37e9e0bf56c867caf13dc | 1,116 | package com.sohu.cache.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.sohu.cache.entity.AppClientValueDistriSimple;
import com.sohu.cache.entity.AppClientValueDistriStatTotal;
/**
*
* @author leifu
* @Date 2016年5月9日
* @Time 下午5:25:52
*/
public interface AppClientValueStatDa... | 23.25 | 155 | 0.692652 |
da8505ff05313be261753be4daae0f99acce3b62 | 1,221 | package red.medusa.ui.action;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.wm.ToolWindow;
import com.intellij.ui.content.Content;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.an... | 22.2 | 109 | 0.728911 |
11f9667a93dc86d90619e30cdde71ede893ba1d3 | 959 | /*
* 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.hantsylabs.example.ee8.cdi;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.Elemen... | 27.4 | 93 | 0.775808 |
f25e54c1f70f0ac5394578998f15ea4cbaa35a32 | 665 | package com.github.ninerules.utils;
import java.util.Objects;
import java.util.Optional;
import java.util.function.Function;
public class StringUtils {
private StringUtils(){
}
public static boolean isEmptyString(String string){
return string.length() == 0;
}
public static <T> Optional<T... | 25.576923 | 90 | 0.652632 |
0f4f68822e1e0a49336b93274ac3c75d5015cda8 | 4,514 | package com.bombardier.macs.util.temp.forme;
/*
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
//import junit.framework.TestCase;
import com.google.gson.ExclusionStrategy;
import com.goo... | 35.543307 | 96 | 0.696278 |
fa1afaf7f486db1efceb773d46a7b22de588a3b7 | 2,533 | /*
* Copyright Matt Palmer 2013, All rights reserved.
*
* This code is licensed under a standard 3-clause BSD license:
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must ... | 41.52459 | 103 | 0.765101 |
05c0a2f1aa93eb9064b0b781de7bd48571c2f7c2 | 643 | /*
* 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.example;
import java.util.Random;
/**
* ズンドコファクトリー
* <p>
* ZunかDokoを生成します。
*
* @author sengoku
*/
public class ZunD... | 21.433333 | 79 | 0.687403 |
6476926e770491b2209724c5fdaf2ad7da537651 | 389 | package com.app.flight.service;
import com.app.flight.entity.Flight;
import com.app.flight.service.impl.GetFlightImpl;
/**
* @author Jia Boran
* @version 3.0
* @see GetFlightImpl
*/
public interface GetFlight {
/**
* Find flights by flight name.
*
* @param flightId flight ID
* @return fl... | 17.681818 | 49 | 0.66838 |
755f79e66a4bf2e7be3d97f160ac1cdc92729c7d | 189 | package jbr.springmvc.dao;
import jbr.springmvc.model.Login;
import jbr.springmvc.model.User;
public interface UserDao {
void register(User user);
User validateUser(Login login);
}
| 15.75 | 33 | 0.767196 |
04e54e32d4c272b52c933674697aeda76faed67f | 602 | package strategyduckapp;
public abstract class Duck {
public FlyBehaviour flyBehaviour;
public QuackBehaviour quackBehaviour;
public void setFlyBehaviour(FlyBehaviour fb) {
this.flyBehaviour = fb;
}
public void setQuackBehaviour(QuackBehaviour qb) {
this.quackBehaviou... | 20.066667 | 55 | 0.606312 |
381052492b38cb28946b718969039d5b7c558d17 | 13,889 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_package
DECL|package|org.jabref.gui.importer
package|package
name|org
operator|.
name|jabref
operator|.
name|gui
operator|.
name|importer
package|;
end_package
begin_import
import|import
name|java
operator|.
name|io
operator|.
name|IOException
import|;... | 14.303811 | 215 | 0.812298 |
b004437b2b768c27ebba312c9a425a0904d0cdb0 | 1,399 | package com.example.webflux.service;
import com.example.webflux.api.IUser;
import com.example.webflux.dao.UserRepository;
import com.example.webflux.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stere... | 29.145833 | 73 | 0.644031 |
995162361f9c440cc4f09a5054245ffc3017bd25 | 1,046 | /*
Copyright IBM Corp. 2007-2020 All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.mdmce.envtoolkit.deployment;
import com.ibm.mdmce.envtoolkit.deployment.model.CatalogContent;
import com.ibm.mdmce.envtoolkit.deployment.model.TemplateParameters;
import java.io.File;
/**
* Marsh... | 33.741935 | 133 | 0.755258 |
d408f2af2ede2133d7a99338f532409e5d2d9039 | 852 | package sherlock.commit;
import org.junit.Test;
import sherlock.App;
import java.util.Set;
import static java.util.stream.Collectors.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class CommitTest {
@Test
public void testCommit() {
Commit commit = new Commit(A... | 26.625 | 92 | 0.769953 |
90d87d6d6586b310ff660bb307643d1756c14749 | 9,559 | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | 41.025751 | 139 | 0.750811 |
6ba1b05bea1afb331fd96e84565fd648ec235843 | 4,942 | /*
* Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 41.183333 | 118 | 0.706597 |
bee6cfabdff0043950abf0a75ece6e67f0821637 | 22,326 | package com.marqur.android;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.hardware.Camera;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import ... | 35.159055 | 123 | 0.598719 |
ba3b4b031418245e9c70a2f8689f82467996689d | 4,606 | package io.github.indicode.fabric.itsmine.mixin;
import io.github.indicode.fabric.itsmine.Claim;
import io.github.indicode.fabric.itsmine.ClaimManager;
import io.github.indicode.fabric.itsmine.ClaimShower;
import io.github.indicode.fabric.itsmine.Config;
import net.minecraft.entity.Entity;
import net.minecraft.entity.... | 43.046729 | 182 | 0.702562 |
26d74227fc14b637610ba1db3d99e2c7cf14d879 | 1,996 |
package examenlab1_sergiosuazo;
import java.util.ArrayList;
import java.util.Date;
public class Personas {
private String usuario;
private String contraseña;
private Date fecha;
private int telefono;
private String correo;
private String favorito;
private ArrayList<Libros> lista=new Array... | 22.177778 | 211 | 0.608216 |
02ac7a99c8d8479a326ea2c3b965f244228946ef | 1,504 | package com.jivesoftware.os.miru.logappender;
public class MiruLogEvent {
public String datacenter;
public String cluster;
public String host;
public String service;
public String instance;
public String version;
public String level;
public String threadName;
public String loggerNa... | 26.385965 | 49 | 0.640957 |
d136fdabb6a1de8e0737e39e03835e9c4a5b9685 | 2,483 | package com.blesim.bluetooth;
/**
* Created by cerise on 6/8/18.
*/
public class GLog {
private static int STACK_TRACE_LEVELS_UP = 4;
public static void d( String TAG, String message )
{
final String logMsg = getFileName() + "::" + getMethodName()+" @ "+getLineNumber() + " : " + message;
... | 31.833333 | 110 | 0.614579 |
1a7979125af5625cc6d1871bc3397cf0857c7bc3 | 2,825 | package com.google.android.stardroid.activities;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.google.android.stardroid.R;
import com.google.android.... | 26.650943 | 79 | 0.656283 |
2f5e07a89d28ad06be6691080e2273852f311bf3 | 7,789 | package org.example;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSONObject;
import it.unisa.dia.gas.jpbc.Element;
import java.util.HashMap;
import it.unisa.dia.gas.jpbc.Pairing;
import org.apache.commons.co... | 35.729358 | 132 | 0.639877 |
c6ff6f2b0e00ea2c7f6e494cbd9006b741e0cc03 | 1,658 | package java.nio.channels.spi;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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.607143 | 126 | 0.727382 |
df6ceda35a1420dc2b4bef5915d4c3ddb8a90901 | 19,171 | /*
* NOTICE
* This software was produced for the U.S. Government and is subject to the
* Rights in Data-General Clause 5.227-14 (May 2014).
* Copyright 2018 The MITRE Corporation. All rights reserved.
*
* “Approved for Public Release; Distribution Unlimited” Case 18-2165
*
* This project contains content devel... | 43.869565 | 120 | 0.535809 |
58495218958825598b851706057b6c11f14d0235 | 104 | package com.lvdreamer.structure.decorator;
public interface Man {
void laugh();
void cry();
}
| 13 | 42 | 0.682692 |
55609886901cb91960278f243ad309503b7b7c48 | 603 | package test.backgrounddata;
import java.util.List;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import cn.qumiandan.backgrounddata.api.IDlorSaleStatQueryService;
import cn.qumiandan.backgrounddata.vo.DlorSaleStatQueryVO2;
import test.BaseTest;
public class DlorSaleStatQuery... | 26.217391 | 94 | 0.835821 |
b7d083e63e5e45b8a2219ef52d795cbcaedac82e | 9,489 | package org.sagebionetworks.web.client.widget.entity.restriction.v2;
import static org.sagebionetworks.web.client.ServiceEntryPointUtils.fixServiceEntryPoint;
import static org.sagebionetworks.web.shared.WebConstants.FLAG_ISSUE_COLLECTOR_URL;
import static org.sagebionetworks.web.shared.WebConstants.FLAG_ISSUE_DESCRIP... | 36.77907 | 175 | 0.789546 |
8d2c9f49467803b749a890b285f9da1cc3579c65 | 17,279 | import java.awt.*;
import java.text.DecimalFormat;
import java.text.NumberFormat;
public abstract class CircuitElm implements Editable {
static double voltageRange = 5;
static int colorScaleCount = 32;
static Color colorScale[];
static double currentMult, powerMult;
static Point ps1, ps2;
stati... | 28.466227 | 88 | 0.582036 |
538982a9e89c07625c1f02d6c89fe515fa04b82e | 143 | package com.nutrinfomics.geneway.server.phoneVerifier;
public interface PhoneNumberVerifier {
public boolean isLegal(String phoneNumber);
}
| 23.833333 | 54 | 0.832168 |
100775db050488a98e036a751d2e79ab5e5024f9 | 624 | package packt.java9.by.example.mybusiness.bulkorder.dtos;
public class Confirmation {
private final Order order;
private final boolean accepted;
private Confirmation(Order order, boolean accepted) {
this.order = order;
this.accepted = accepted;
}
public static Confirmation accepte... | 22.285714 | 57 | 0.657051 |
af4425b6820ce7672c01e91231f93d49eb85e0ef | 2,845 | package bio.terra.workspace.service.resource.controlled.flight.clone.workspace;
import bio.terra.stairway.FlightContext;
import bio.terra.stairway.Step;
import bio.terra.stairway.StepResult;
import bio.terra.stairway.exception.RetryException;
import bio.terra.workspace.common.utils.FlightUtils;
import bio.terra.worksp... | 41.838235 | 100 | 0.769772 |
0d7d0f81a1d13aa82bb5f5b3543f777118456fff | 1,515 | package ca.ubc.salt.model.composer;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.IBinding;
import org.eclipse.jdt.core.dom.IMethodBinding;
import org.eclipse.jdt.core.dom.ITypeBinding;
import org.eclipse.... | 26.12069 | 82 | 0.717492 |
4063ecd455f36a6e8567f86985826ebd3a6d01cc | 2,724 | /*
* Copyright 2014 peter.
*
* 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 w... | 21.448819 | 76 | 0.564244 |
f26ae2ea24e72028d67ee299f6ccb3ea8cb6f306 | 643 | package com.symphony.bdk.bot.sdk.symphony.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* Loads Symphony-related configurations from properties files
*
* @author... | 20.741935 | 76 | 0.726283 |
abef4aa2ca3bb409332b9599e4f27f66b56b608a | 258 | package io.github.tesla.auth.sdk.jwt;
import java.util.Date;
import io.github.tesla.auth.sdk.jwt.interfaces.Clock;
final class ClockImpl implements Clock {
ClockImpl() {}
@Override
public Date getToday() {
return new Date();
}
}
| 16.125 | 53 | 0.674419 |
c86940d0292b478778d28a53cf367a489a6a1e9f | 4,724 | package com.webank.wecube.platform.core.repository.workflow;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.webank.wecube.platform.core.entity.workflow.TaskNodeExecParamEntity;
@Repository
public interface TaskNo... | 30.477419 | 147 | 0.657705 |
acca51ec00ec42adcd8b90f37117db16e37773ef | 12,160 | /*
* 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.133515 | 122 | 0.645313 |
c5596cc90b4d7906c422e8d5f1e1286f9f3a2765 | 699 | package ${package}.query;
import ${package}.coreapi.SimpleEventCreated;
import ${package}.coreapi.SimpleEventModified;
import org.axonframework.eventhandling.EventHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@Component
public class SimpleQuery{
... | 27.96 | 84 | 0.755365 |
2e5d952ecff2ff00484b78309f69364c63f148e8 | 2,088 | /*
* Copyright 2020 Nathan Webb
*
* 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... | 35.389831 | 115 | 0.672414 |
9ad26dd1aee75e5f5703821fde7190f184f37b60 | 2,525 | package com.howtographql.hackernews.graphql.endpoints;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.howtographql.hackernews.graphql.Schema;
import com.howtographql.hackernews.graphql.messages.SystemMessage;
import c... | 34.589041 | 88 | 0.650297 |
5e7ac0835f3cd833a9f2940e20e2025b81267eef | 2,463 | /*
* Copyright (c) 2020 Karl Oczadly (karl@oczadly.uk)
* Licensed under the MIT License
*/
package uk.oczadly.karl.jnano.callback;
import uk.oczadly.karl.jnano.model.HexData;
import uk.oczadly.karl.jnano.model.NanoAccount;
import uk.oczadly.karl.jnano.model.NanoAmount;
import uk.oczadly.karl.jnano.model.block.Bloc... | 25.926316 | 118 | 0.636216 |
82157d9aa4ffd9b6d492c04bff52623cfde06193 | 771 | package com.jidcoo.android.widget.commentview.view;
import android.view.View;
import android.widget.LinearLayout;
import com.jidcoo.android.widget.commentview.R;
/**
* 自定义回复布局必须继承此抽象类并在构造方法中调用父类构造方法,否则会报错。<p>
* <br></br>
* 在自定义回复布局中最外层必须使用LinearLayout并将布局id设置为“reply_rootView”,否则会报错。<p>
*
* @author Jidcoo
*/
pu... | 26.586207 | 180 | 0.688716 |
cb278079c9d378721d2a92fed7af3ee84932793e | 370 | package com.hyrcb.hydp.modules.crm.service;
import com.hyrcb.hydp.modules.crm.domain.Custinfo1;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 客户信息查询Service接口
*
* @author shenzulun
* @date 2020-05-20
*/
public interface ICustinfo1Service extends IService<Custinfo1> {
... | 18.5 | 64 | 0.767568 |
ba31bd470763ecaf137b3f1224654afbcab976e0 | 4,156 | package com.xq.myxuanqi.util.punch;
import android.content.Context;
import android.net.DhcpInfo;
import android.net.wifi.ScanResult;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.text.format.Formatter;
import android.util.Log;
import java.util.List;
import static android.conte... | 30.785185 | 96 | 0.584456 |
18753a6782680e2ced3554df056eccaa1e4a601e | 958 | /*
*
* * Copyright 2017, Peter Vincent
* * Licensed under the Apache License, Version 2.0, Promise.
* * 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... | 29.9375 | 80 | 0.683716 |
af5d71428afacf8a3e25d4d995046a01307dc179 | 1,329 | /*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.api.errorhandling.filters;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.emc.storageos.model.TaskList;
import com.emc.storageos.model.TaskResourceRep;
import com.sun.jersey.spi.container.ContainerReques... | 29.533333 | 106 | 0.679458 |
eecfdccc6cb59052534d437bdfd548b39d8014d0 | 1,272 | package no015.three.sum;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
public class Solution {
public static List<List<Integer>> threeSum(int[] nums) {
int length = nums.length;
Arrays.sort(nums);
HashMap<Integer, L... | 27.652174 | 81 | 0.559748 |
5e9dda079e378d763b9919f9c8b0443c9125b450 | 930 | package beest.phonemouse;
import java.awt.AWTException;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.Robot;
import java.awt.event.InputEvent;
public class Mouse {
private float sensitivity;
private static Robot r;
public Mouse() {
try {
r = new Robot();
} catch (AWTException e) {
e... | 20.666667 | 84 | 0.726882 |
db13617fc1b2f2191cfa9eec82f6aad3dd015f56 | 1,608 | /*
* Created on 01.12.2004
*
* This file is part of susimail project, see http://susi.i2p/
*
* Copyright (C) 2004-2005 <susi23@mail.i2p>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free S... | 25.935484 | 78 | 0.674751 |
a1874fa35e52a45e1cfe315f3ac37c60cbb593df | 502 | package ir.ac.iust.dml.kg.knowledge.runner.access.dao;
import ir.ac.iust.dml.kg.knowledge.runner.access.entities.Run;
import ir.ac.iust.dml.kg.knowledge.runner.access.entities.RunHistory;
/**
* Farsi Knowledge Graph Project
* Iran University of Science and Technology (Year 2017)
* Developed by HosseiN Khademi khal... | 27.888889 | 69 | 0.76494 |
f6aebcf23fe6c9ffe372d4b63bdb6f4a8fe77d43 | 7,654 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 41.150538 | 96 | 0.755291 |
722bc91b8c370458e639b1fa99ebb13661b95b92 | 785 | package com.ctzen.jpamodelexp.jpa;
import org.h2.jdbcx.JdbcDataSource;
import org.hibernate.dialect.H2Dialect;
import javax.sql.DataSource;
/**
* @author cchang
*/
public abstract class AbstractJpaMetamodelBuilder {
private static DataSource createDataSource() {
JdbcDataSource dataSource = new JdbcDat... | 23.088235 | 79 | 0.703185 |
c80f66803c7667a8a4769a9ef881a3f3f9dbab35 | 461 | package au.com.mineauz.minigamesregions.triggers;
/**
* This action fires if a TimedTriggerAction executes.
*
* @author Turidus https://github.com/Turidus/Minigames
*
*/
public class TimedRemoteTrigger implements Trigger {
@Override
public String getName() {
return "TIMED_REMOTE";
}
@... | 17.074074 | 56 | 0.661605 |
b6b6b1915e68064df6745e295ac0a946b28e6099 | 160 | package TreeAndHeap;
public class HeapNode {
private int val;
public HeapNode(int val ){
this.val = val;
}
public int getVal(){
return this.val;
}
}
| 12.307692 | 27 | 0.675 |
498156618ba3ab24a30b5f68e22e95fd364499f9 | 1,444 | //给定字符串 s 和 t ,判断 s 是否为 t 的子序列。
//
// 你可以认为 s 和 t 中仅包含英文小写字母。字符串 t 可能会很长(长度 ~= 500,000),而 s 是个短字符串(长度 <=100)。
//
// 字符串的一个子序列是原始字符串删除一些(也可以不删除)字符而不改变剩余字符相对位置形成的新字符串。(例如,"ace"是"abcde"的一个子序列,而"ae
//c"不是)。
//
// 示例 1:
//s = "abc", t = "ahbgdc"
//
// 返回 true.
//
// 示例 2:
//s = "axc", t = "ahbgdc"
//
// 返回 false.
/... | 23.290323 | 80 | 0.509003 |
fe3549cf7bb3205b4f790227f326d3a9a9ebabe2 | 323 | public class PrintTime {
public static void printTime(int hour, int minute) {
System.out.print(hour);
System.out.print(":");
System.out.println(minute);
}
public static void main(String[] args) {
int hour = 11;
int minute = 59;
printTime(hour, minute);
}... | 21.533333 | 56 | 0.569659 |
1872f9aa18789582c0d7e9832d9f631a546d05b4 | 990 | import java.util.Scanner;
public class LerMostrarEleentosA {
/**
* a)Elaborar um programa que efetue a leitura de dez nomes de pessoas em
* uma matriz A do tipo vetor e apresentá-los em seguida.
* JOSE AUGUSTO NAVARRO GARCIA MANZANO. Algoritmos (pp. 310-311).
* Editora Saraiva. Edição do Kind... | 28.285714 | 78 | 0.550505 |
d050c3cf21c393fd91be594fb62348d5b3033f71 | 10,089 | /**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
package schemakeeper.generated.thrift;
import org.apache.thrift.*;
import org.apache.thrift.meta_data.FieldMetaData;
import org.apache.thrift.meta_data.FieldValueMetaData;
import org.apache.thrift.protocol.*;
imp... | 29.243478 | 136 | 0.660918 |
efcb873a9a6c05d11eef37716ee9239ee7e26574 | 486 | package com.cloud.blog.common.config.exception;
import com.cloud.blog.model.enums.EnumReturnCode;
/**
* @ClassName BlogException
* @Description 统一异常捕获类
* @Author wsail
* @Date 2019/12/25 15:01
**/
public class BlogException extends RuntimeException {
private final EnumReturnCode returnCode;
public Bl... | 18 | 53 | 0.716049 |
9952f9db56600016ed7fad3991eae09783c445c7 | 645 | package edu.byu.edge.person.basic;
import edu.byu.edge.person.basic.domain.PhoneInformation;
import edu.byu.edge.person.basic.domain.PhoneType;
import java.util.List;
/**
* Created by IntelliJ IDEA.
* User: thirschi
* Date: 10/10/12
* Time: 10:07 AM
*/
public interface PhoneLookup {
/**
*
* @param personI... | 20.15625 | 111 | 0.730233 |
1dd0b41cc12addbfbda8c99a8b293521e12ab721 | 4,089 | /*
* Copyright 2016-2017 The Sponge 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 law... | 34.075 | 112 | 0.714356 |
4cd0a7ec95c750c54127b3194f74e0dccbe332c5 | 5,417 | /*
* Copyright (C) 2020 Dremio
*
* 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... | 38.692857 | 129 | 0.741739 |
03932dc802ab5984f9c63f5fc0728fc7e71e17b4 | 4,737 | package com.lumchine.db.dao;
import com.lumchine.db.domain.LumchineOrder;
import com.lumchine.db.domain.LumchineOrderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface LumchineOrderMapper {
/**
* This method was generated by MyBatis Generator.
* This method corr... | 31.164474 | 153 | 0.686299 |
f95249f24d4fcc12657a3d041432b5d680a05417 | 651 | package com.boguenon.service.modules.bayes.costeffectiveness;
import java.util.List;
import org.openmarkov.core.inference.heuristic.EliminationHeuristic;
import org.openmarkov.core.inference.heuristic.HeuristicFactory;
import org.openmarkov.core.model.network.ProbNet;
import org.openmarkov.core.model.network.Variable... | 34.263158 | 92 | 0.847926 |
d73c73094a34782023ba11b04c5c664e71c4785f | 788 | package com.iminstage.dataxweb.controller;
import com.iminstage.dataxweb.constant.Constant;
import com.iminstage.dataxweb.util.FileUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.Respo... | 34.26087 | 86 | 0.761421 |
ca45c906d53f7fc3e27f7a9feb6f6b78c269ff20 | 311 | public class Media
{
private int val1;
private int val2;
public Media(int x, int y)
{
val1 = x;
val2 = y;
}
public Media(int x)
{
val1 = x;
val2 = x;
}
public Media()
{
val1 = 0;
val2 = 0;
}
public float CalcMedia()
{
return (val1 + val2) / 2f;
}
} | 11.107143 | 30 | 0.498392 |
4bb295ef9a4841ed3376a6f0058c078cfee240cf | 3,759 | package com.example.materialtest.main;
import android.app.Activity;
import android.app.ActivityOptions;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import andr... | 31.855932 | 105 | 0.665337 |
224602067be610d1570af668c327778bc6b659ac | 8,717 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.0... | 28.960133 | 140 | 0.623609 |
662828084239bb34308119b503cec0d17e67c7de | 262 | package com.devteam.core.util.error;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ErrorMessage {
private int statusCode;
private String errorMessage;
}
| 18.714286 | 36 | 0.80916 |
2253327a4d277d3945fef4178194194c3c9c09d6 | 2,657 | /**
* <copyright> </copyright>
*
* $Id$
*/
package orgomg.cwm.analysis.businessnomenclature;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc --> A representation of the model object '
* <em><b>Glossary</b></em>'. <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* This represents a coll... | 34.064103 | 103 | 0.636808 |
2e6d072536a9a4189494ae374d5aa57d21afc855 | 604 | package rms.common.abstracts;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import rms.common.auth.UserInfo;
import rms.common.auth.UserInfoAccessor;
/**
* AbstractForm
* @author
*/
public abstract class AbstractForm {
/**
... | 20.827586 | 89 | 0.675497 |
c4bf6a0919a98358128b39a8d489d95fe18bacb7 | 3,946 | package com.github.spuchmann.xml.splitter.stax;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;
import static com.github.spuchmann.xml.splitter.stax.StaxXmlTestHelper.closeDocument;
im... | 47.542169 | 118 | 0.722757 |
32bdd828f2d3a66b577994dadd2517ecd9dba597 | 817 | package com.github.aha.sat.core.testing.profile;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.juni... | 35.521739 | 93 | 0.79437 |
704072aadd18af818162add4ae76e707e9ec1959 | 15,753 | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.util.zstd;
import javax.annotation.*;
import java.nio.*;
import org.lwjgl.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org... | 55.861702 | 312 | 0.690535 |
a0af7f0ff92b8a6d0237bac64a79bd5010b3c7de | 1,036 | package service;
import com.baidu.aip.ocr.AipOcr;
import org.apache.log4j.Logger;
import org.json.JSONObject;
import java.util.HashMap;
public class Word {
private static Logger logger = Logger.getLogger(Word.class);
public String basicGeneral(AipOcr client, String image) {
// 传入可选参数调用接口
Ha... | 26.564103 | 72 | 0.6361 |
571bfc50670a497c808c732f05790d76daf06748 | 822 | package models;
import java.util.Objects;
public abstract class News {
public static String content;
public String type;
public static String getContent() {
return content;
}
public String getType() {
return type;
}
public void setContent(String content){
this.co... | 21.076923 | 66 | 0.585158 |
49f25b8a2d7b50ed4c27a3a0e4bbb6c53db2af41 | 46 | package model;
public class SpootifyUser {
}
| 9.2 | 27 | 0.76087 |
2965f3ec7c572cd0e807c6f5f27bf02858d143ae | 21,158 | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Softwa... | 41.486275 | 89 | 0.459212 |
e4cf23bd1ad6486f55f05b5639f264bec5897768 | 1,601 | package com.brianhoang.recordvideo.ui;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;
import androidx.annotation.Nullable;
import com.brianhoang.recordvideo.R;
public class Line... | 23.895522 | 94 | 0.662086 |
11a0b35c40514546cafab202891167a1ef21de05 | 486 | package com.heitian.ssm.dao;
import com.heitian.ssm.model.Order;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface OrderDao {
void addOrder(Order order);
List<Order> selectAllOrder();
void updateOrderStatus(String orderCode, int status);
List<Order>... | 27 | 57 | 0.755144 |
21262756fde38398349db944f90b0ce21ff5b6f6 | 3,840 | /*
* Copyright © 2017-2020 factcast.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 27.042254 | 100 | 0.71849 |
e5d228d7c247b666290af1b1066a1c96fea04ee4 | 685 | // Generated by xsd compiler for android/java
// DO NOT CHANGE!
package com.ebay.trading.api;
import java.io.Serializable;
import com.leansoft.nano.annotation.*;
import java.util.List;
/**
*
* This type is deprecated because the calls that use it are deprected.
*
*
*/
public class XSLFileType implements Seria... | 19.027778 | 71 | 0.709489 |
f1094a35bc95bdc524f4c8118c370d46ad7566e4 | 9,922 | package uk.gov.hmcts.reform.sscs.ccd.presubmit.uploaddocuments;
import static java.util.Objects.nonNull;
import static java.util.stream.Collectors.toList;
import static uk.gov.hmcts.reform.sscs.ccd.presubmit.InterlocReferralReason.REVIEW_AUDIO_VIDEO_EVIDENCE;
import static uk.gov.hmcts.reform.sscs.ccd.presubmit.Interl... | 53.632432 | 203 | 0.705402 |
444f73b693aadf73f3bc12f568255690474124c3 | 8,416 | /*
Copyright (c) 2020 LinkedIn Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | 51.006061 | 131 | 0.757605 |
a37d9628443923fcde6b2da5c6ef254b4c44506e | 842 | package dentaira.cobaco.server.test.annotation;
import com.github.database.rider.core.api.configuration.DBUnit;
import com.github.database.rider.core.api.configuration.Orthography;
import com.github.database.rider.junit5.api.DBRider;
import dentaira.cobaco.server.test.config.TestDataSourceConfig;
import dentaira.cobac... | 36.608696 | 91 | 0.839667 |
5aada19a27badfc6297077790d655fc0430580f1 | 179 | package net.viperfish.planner.service;
import net.viperfish.planner.core.Profile;
public interface UtilityFunctionGenerator {
UtilityFunction generate(Profile profile);
}
| 17.9 | 46 | 0.810056 |
cb5614d062a7ccc8c59bde6dfc7e4580518e61a6 | 2,258 | package de.metas.bpartner;
import java.util.Collection;
import java.util.Objects;
import java.util.Set;
import javax.annotation.Nullable;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.google.common.collect.ImmutableSet;
import de.metas.util.Check;... | 22.808081 | 81 | 0.722764 |
4843a8d129d30591136557e3b8af250a95984997 | 37,223 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 37.148703 | 159 | 0.682428 |
4210e519e5d87f1e0bea2d826d6e4146049c5fa5 | 2,121 | /**
* This package provides classes to facilitate the handling of opengl textures, glsl shaders and
* off-screen rendering in Processing.
* @author Andres Colubri
* @version 0.95
*
* Copyright (c) 2008 Andres Colubri
*
* This source is free software; you can redistribute it and/or modify
* it under the terms ... | 29.458333 | 97 | 0.714757 |
c52baef833163b93af4f82bb2841d0194a2ac96b | 1,058 | /*
Copyright 2018 FZI Forschungszentrum Informatik
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 ... | 27.842105 | 72 | 0.743856 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.