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 |
|---|---|---|---|---|---|
3e643703da60002943497dfb9f1cd70aed0e0530 | 1,595 | package navigation;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebD... | 27.033898 | 123 | 0.708464 |
8d60c506c8f0033118b5687507291fe20723480d | 203 | package libreria;
public class EditoreInesistente extends Exception {
public EditoreInesistente() {
// TODO Auto-generated constructor stub
System.out.println("Editore inesistente!");
}
}
| 22.555556 | 52 | 0.738916 |
415cc50223d1d46802360fefa2f830cb743098b6 | 5,237 | package uk.jamesdal.perfmock.test.unit.internal;
import java.util.HashSet;
import java.util.Set;
import junit.framework.TestCase;
import org.hamcrest.StringDescription;
import uk.jamesdal.perfmock.States;
import uk.jamesdal.perfmock.internal.StateMachine;
public class StateMachineTests extends TestCase {
States... | 39.37594 | 104 | 0.594233 |
2eed40019b9c25c7bdb9f7df15bf5ffed41224eb | 1,460 | package pl.beriko.ioz.web.controller.security;
import javax.faces.context.FacesContext;
import javax.faces.event.ExceptionQueuedEvent;
import javax.faces.event.ExceptionQueuedEventContext;
import pl.beriko.ioz.web.exception.SecurityViolationException;
import pl.beriko.ioz.web.util.SecurityUtil;
import java.io.Serial... | 30.416667 | 104 | 0.713699 |
b132d9c9b19b88c1d9bac7aeea7148f60e993ffc | 1,816 | package org.activiti.designer.features;
import org.activiti.designer.ActivitiImageProvider;
import org.eclipse.bpmn2.Bpmn2Factory;
import org.eclipse.bpmn2.ManualTask;
import org.eclipse.bpmn2.SubProcess;
import org.eclipse.graphiti.features.IFeatureProvider;
import org.eclipse.graphiti.features.context.ICreateContext... | 30.779661 | 99 | 0.784141 |
44666376c3f316aa290324a395019d723e524808 | 3,484 | /*
* The MIT License (MIT)
* Copyright © 2019-2020 <sky>
*
* 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, copy, ... | 34.156863 | 86 | 0.687715 |
d7c027622cb8897c441bcccf5e645a7857221f80 | 3,703 | /**
* JBoss, Home of Professional Open Source
* Copyright Red Hat, Inc., and individual 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/licens... | 39.817204 | 105 | 0.716176 |
3cc33442ce3de6a988ebaae80a2df9615be4ebe0 | 309 | package com.tec.eventbus;
import com.google.common.eventbus.Subscribe;
/**
* @author SUNLEI
* @version V1.0
* @Description: <p>创建日期:2019年12月20日 </p>
* @see
*/
public class TestClass {
@Subscribe
public void getEventbusInfo(String str) {
System.out.println("received : " + str);
}
}
| 18.176471 | 48 | 0.653722 |
c1e1877161e68b5895d64327d7a2c361b24f9c68 | 2,861 | package org.aoc.day10;
import org.aoc.utils.InputReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import java.util.stream.Collectors;
public class Day10 {
private static in... | 31.788889 | 117 | 0.629151 |
18e25507b1b7e3dce36dab90e1db843366790b92 | 2,068 | package com.nibado.amazon.service.sync.config;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3ClientBuilder;
import com.nibado.amazon.lib.auth.PropertySecrets;
import com.nibado.amazon.lib.sync.Sync;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.b... | 29.542857 | 95 | 0.662476 |
60fb6b01f14522e3a143cb8f3dad72ed1b4141d6 | 1,546 | /**
* Copyright 2018 辰领科技 lingkj.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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law ... | 19.08642 | 80 | 0.682406 |
098d78d29af702090f64a7f27c2ad1045ba60d0a | 565 | package com.deftwun.zombiecopter;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.utils.Logger;
import com.deftwun.zombiecopter.screens.GameScreen;
public class App extends Game {
public static GameScreen gameScreen;
public static GameEngine engine;
public static Ass... | 21.730769 | 52 | 0.716814 |
8a0e5f82af534efc40ce8976626add5789c08a2f | 2,695 | package seedu.room.storage;
import static java.util.Objects.requireNonNull;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Optional;
import java.util.logging.Logger;
import seedu.room.commons.core.LogsCenter;
import seedu.room.commons.exceptions.DataConversion... | 31.337209 | 108 | 0.721707 |
567bd42c70aa97fa3af44f9c549d3bc85729935e | 1,496 | package ir.codekeshs.scenes;
import ir.codekeshs.Helper;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.GridPane;
import javafx.scene.paint.Color;
import java.io.FileInputStream... | 30.530612 | 109 | 0.582888 |
10e5949406696022fa5c56170352f947a3914e90 | 3,779 | // Copyright 2017 The Nomulus Authors. 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 by a... | 35.317757 | 100 | 0.71421 |
c2a8beb65ce4407156e9b1d480308e9c7942ff34 | 4,638 | package cc.flogi.dev.smoothchunks.client.handler;
import cc.flogi.dev.smoothchunks.client.SmoothChunksClient;
import cc.flogi.dev.smoothchunks.client.config.LoadAnimation;
import cc.flogi.dev.smoothchunks.client.config.SmoothChunksConfig;
import cc.flogi.dev.smoothchunks.util.UtilEasing;
import lombok.AllArgsConstruct... | 41.044248 | 126 | 0.658689 |
226af1cb3363ac59f45730efdb061ac7d44d7184 | 2,015 | package chapter_8;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class Parens {
public List<String> getParans(int n) {
List<String> result = new ArrayList<String>();
getParans(n, 0, 0, new StringBuffer(), result);
return result;
... | 31.484375 | 121 | 0.511166 |
15ae59b412c70f6f5f8b3d37effa51d91239cc9e | 875 | package org.hopter.plugin.security;
import java.util.Set;
/**
* Hopter Security 接口
* <br/>
* 可在应用中实现该接口,或者在 hopter.properties 文件中提供以下基于 SQL 的配置项:
* <ul>
* <li>hopter.plugin.security.jdbc.authc-query: 根据用户名获取密码</li>
* <li>hopter.plugin.security.jdbc.roles-query: 根据用户名获取角色名集合</li>
* <li>hopter.plugin... | 19.886364 | 75 | 0.617143 |
99fc4eaace856efceb27a64708de5260c82eede5 | 1,282 | package com.irvil.textclassifier;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class Config {
private static Config instance;
private final Properties properties = new Properties();
private Config() {
// rea... | 22.103448 | 92 | 0.687988 |
b6329fefa60922034b5046490904b14dbd294497 | 3,253 | package de.fuberlin.wiwiss.d2rq.expr;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import de.fuberlin.wiwiss.d2rq.algebra.AliasMap;
import de.fuberlin.wiwiss.d2rq.algebra.Attribu... | 26.884298 | 73 | 0.718106 |
424fa719b2c6e3f90425c24d551309a023d540ef | 277 | package ru.fizteh.fivt.students.LebedevAleksey.Shell01;
public class ParserException extends Exception {
public ParserException(String message) {
super(message);
}
public ParserException(String message, Throwable ex) {
super(message, ex);
}
}
| 23.083333 | 58 | 0.703971 |
0344bc23e9251a62617238a98cc38c0b6962bb75 | 167 | package top.crossoverjie.cicada.server.action.req;
import lombok.Data;
/**
* @author crossoverJie
*/
@Data
public class WorkReq {
private Integer timeStamp;
}
| 13.916667 | 50 | 0.730539 |
c1b8f832aae14e60271dc376f8501baff23f0c99 | 77 | package app.event.channel;
public class ManagerChannel extends AChannel {
}
| 15.4 | 46 | 0.805195 |
c488665d22de517139009d128d16a9e22eef4408 | 417 | package com.github.badpop.jcoinbase.service.account.dto;
import com.github.badpop.jcoinbase.model.account.Rewards;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public class RewardsDto {
private final String apy;
private final String formattedApy;
private final String label;
public Rewards toRewards(... | 26.0625 | 86 | 0.784173 |
e80731ff3881bca6f0fbec18a8b630b11d56e214 | 1,406 | package com.example.ShadowSocksShare.service;
import com.example.ShadowSocksShare.BaseTest;
import com.example.ShadowSocksShare.dao.ShadowSocksRepository;
import com.example.ShadowSocksShare.entity.ShadowSocksDetailsEntity;
import com.example.ShadowSocksShare.entity.ShadowSocksEntity;
import lombok.extern.slf4j.Slf4j;... | 33.47619 | 150 | 0.802987 |
2617a5286e5c16a31f8ec448fcabf666d377c614 | 2,605 | /**
* Copyright (C) 2015 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 40.703125 | 196 | 0.722457 |
23126c32a7c7e5e152836136bef2ab05770b1136 | 4,885 | package textgen;
import java.util.AbstractList;
/** A class that implements a doubly linked list
*
* @author UC San Diego Intermediate Programming MOOC team
*
* @param <E> The type of the elements stored in the list
*/
public class MyLinkedList<E> extends AbstractList<E> {
private static final String INDEX_OU... | 22.204545 | 103 | 0.63521 |
cc1f0849382fab0631863d7fb930606907c20ba0 | 7,385 | package com.bitdubai.fermat_pip_addon.layer.platform_service.error_manager.developer.bitdubai.version_1;
import com.bitdubai.fermat_api.FermatException;
import com.bitdubai.fermat_api.layer.all_definition.common.system.abstract_classes.AbstractAddon;
import com.bitdubai.fermat_api.layer.all_definition.common.system.ut... | 60.04065 | 194 | 0.649289 |
67c8a546d11180d46714d8adce0f204cf22df4e2 | 2,422 | package ericminio.regexp;
import org.junit.Test;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
public class CaptureTest {
@Test
public void simpleMatch() {
Pattern pattern = Pattern.compile... | 33.638889 | 87 | 0.643683 |
5c6227a84570829c00e913b32287f3492680970e | 1,937 | /*
* (C) Copyright 2021 Radix DLT Ltd
*
* Radix DLT Ltd licenses this file to you 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... | 25.155844 | 112 | 0.724832 |
545fc1e41f57af55a1a9103b4d0a3ca09e4fa1aa | 3,441 | package er.communication.mail;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.mail.MessagingException;
import com.webobjects.appserver.WOApplication;
import com.webobjects.appserver.WOComponent;
import com.webobjects.appserver.WOContext;
import com.webobjects.appserver.WORequest;... | 35.112245 | 140 | 0.754722 |
e4a78cdf07fdb1acf63f63fe2e6d614ff30b81c5 | 2,309 | package com.cloudentity.tools.vertx.http.builder;
import com.cloudentity.tools.vertx.tracing.TracingContext;
import io.vertx.core.Future;
import io.vertx.core.Handler;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.http.HttpClientResponse;
import io.vertx.core.http.HttpMethod;
import io.vertx.core.streams.Re... | 50.195652 | 115 | 0.818536 |
898656ba0949b7a129ca1a997efc579b46795f61 | 4,731 | package org.firstinspires.ftc.teamcode.Lib.ResQLib;
public class RobotConfigMapping {
//*********************************************************************************************
// ENUMERATED TYPES
//
// user defined types
//
//*****************************************************... | 37.251969 | 99 | 0.534137 |
507b18ff019403918d4950f8304112eb77379747 | 2,583 | package ru.stqa.training.selenium.peges.admin;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import ru.stqa.training.selenium.objects.Good;
import ru.stqa.training.selenium.peges.BasePage;
public class AdminAddNewProductPage extends Base... | 44.534483 | 99 | 0.718931 |
e278c07dc509c515b36c2203a5490c41ef7d9405 | 2,037 | // Targeted by JavaCPP version 1.5.8-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.bullet.BulletCollision;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import org.bytedeco.bullet.LinearMath.*;
import static or... | 37.036364 | 104 | 0.766814 |
49f12cf8fa25b502b8561fc9b38d8ff0565ab57f | 1,660 | package com.ex.library.config;
import com.ex.library.dispatcher.DefaultResponseDispatcher;
import com.ex.library.dispatcher.IResponseDispatcher;
/**
* Author: Jerry
* Date: 2018/10/9
* Version v1.0
* Desc: WebSocket 使用配置
*/
@SuppressWarnings("all")
public class WebSocketSetting {
private static Str... | 25.538462 | 96 | 0.695181 |
63dc72af9b9a5d2f69f194cf04e4f2055b27a0ce | 1,422 | /*
* Iliiazbek Akhmedov
* Copyright (c) 2016.
*/
package codepath.nytarticlesapp.utils;
import android.app.Activity;
import android.content.Intent;
import android.support.v4.content.LocalBroadcastManager;
import android.support.v7.widget.SearchView;
import org.parceler.Parcels;
import codepath.nytarticlesapp.net... | 29.020408 | 119 | 0.731364 |
9472b7fa2aebc590b72e2f5e04d44c434bae3be1 | 7,222 | /*
* Copyright (C) 2006 The Android Open Source Project
*
* 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 app... | 39.25 | 78 | 0.689144 |
eff94aacb16f8ed816b6a0dec198820dd0cf8664 | 1,114 | package livelance.app.support;
import static org.springframework.hateoas.mvc.ControllerLinkBuilder.linkTo;
import static org.springframework.hateoas.mvc.ControllerLinkBuilder.methodOn;
import org.springframework.hateoas.mvc.ResourceAssemblerSupport;
import org.springframework.stereotype.Component;
import liv... | 34.8125 | 89 | 0.780969 |
628e2adf0be93f8d1f55e1b56cee7294b47fae1b | 181 | package org.liquidplayer.hemroid;
public class PNG extends Hemroid {
public PNG(android.content.Context context) {
super(context);
loadLibrary("png16");
}
} | 22.625 | 49 | 0.674033 |
725ec30abd341a6bc50f270889b385eec684a7ba | 1,573 | package Parser.Commands.Turtle_Command;
import GraphicsBackend.Turtle;
import Parser.BackendController;
import Parser.Commands.Command;
import Parser.Commands.TurtleCommand;
import Parser.ExecutionException;
import Parser.SLogoException;
import javafx.scene.paint.Color;
/**
* @author kunalupadya
* @author Louis Lee... | 27.596491 | 108 | 0.65035 |
6d04d6b2b32d7b402c7ff24c8213ffe028200d09 | 3,634 | package com.xstudio.models.sys;
public class SysRoleAuth {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_role_auth.id
*
* @mbggenerated Fri Apr 29 17:01:42 CST 2016
*/
private Integer id;
/**
* This field was generate... | 27.740458 | 82 | 0.632361 |
60b851170fad3d079658aa4355e794360533db50 | 20,148 | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 41.371663 | 116 | 0.6081 |
a7fc254811f80736ec8cae0efbccb92c8752c588 | 445 | package net.savantly.sprout.core.module.web.plugin;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
@Getter @Setter
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class PluginBuildInfo {
priv... | 22.25 | 61 | 0.804494 |
57801b89ff9d00e77389bd3027ebb38560482c9b | 947 | package ba.aljovic.amer.application.exception;
@SuppressWarnings ("UnusedDeclaration")
public class JinniMovieNotFoundException extends Exception
{
private final String movieTitle;
private final String url;
private final Integer id;
public JinniMovieNotFoundException(String movieTitle, String url, Int... | 20.586957 | 81 | 0.629356 |
369fa0c0e8ab06852d581054c257150b3e1c238e | 1,257 | /*
* Copyright 2019, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package com.yahoo.elide.datastores.aggregation.queryengines.sql.query;
import lombok.Builder;
import lombok.Data;
import lombok.NonNull;
/**
* Aids in constructing a SQL query from S... | 24.173077 | 79 | 0.645187 |
0386b042f9e33a0343d490259d9e8342d3c88ec6 | 918 | package com.unionpay.mobile.android.pro.views;
import android.os.Handler;
import com.unionpay.mobile.android.model.b;
import java.util.HashMap;
final class g
implements Runnable
{
g(a parama, String paramString, HashMap paramHashMap) {}
public final void run()
{
Object localObject1 = this.c;
Object... | 27 | 122 | 0.667756 |
b0d4b7a67679a35fa8f88c241193c0f3814f1e7b | 6,450 | package net.minecraft.server;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.JsonSyntaxException;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import javax.annotation.Nullable;
public class AdvancementDisplay {... | 37.068966 | 255 | 0.646047 |
c7d5de6dd0863b428505bbedf248c3aefe68caec | 323 | public class NumbersPrintln
{
public static void main(String[] args)
{
int billingDate = 5;
System.out.print("Bills are sent on day ");
System.out.print(billingDate);
System.out.println(" of the month");
System.out.println("Next bill: October " +
billingDate);
}... | 26.916667 | 50 | 0.600619 |
e9533a39cf2878734e6a539258bed873b982dd66 | 1,146 | package conway.main;
public class World {
private final Cell[][] grid;
public World(int rows, int columns) {
grid = new Cell[rows][columns];
for (int r = 0; r < rows; r++) {
for (int c = 0; c < columns; c++) {
grid[r][c] = new Cell(r, c);
}
}
... | 22.92 | 57 | 0.431937 |
fced9d2e73f17480ea7f29fd97a613909dfd027d | 1,332 | package com.wjz.activemq.demo;
import java.io.IOException;
import javax.jms.Connection;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageConsumer;
import javax.jms.MessageListener;
import javax.jms.Queue;
import javax.jms.Session;
import javax.jms.TextMessage;
import org.apache.active... | 29.6 | 93 | 0.75 |
20666b8605678b4fff9f736e9af3963a0f6f6799 | 202 | package com.alexeyburyanov.smarthotel.ui.myroom;
/**
* Created by Alexey Buryanov 04.04.2018.
*/
public interface MyRoomCheckOutDialogData {
void onBookingClick();
void onCheckOutClick();
}
| 18.363636 | 48 | 0.737624 |
4805a50ec7fd25a73ab618b613845a69f717d30b | 6,834 | package com.stm.main.fragment.main.search.base.activity;
import android.app.ProgressDialog;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
imp... | 29.713043 | 122 | 0.70998 |
6fd9bb4c8eba5ccb8bd6ed047f3a052b91662761 | 564 | package de.nkilders.neuralnetwork;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* @author Noah Kilders
*/
public class Neuron implements Serializable {
public double output;
public double bias;
public double error;
public List<Synapse> inSynapses;
public L... | 22.56 | 45 | 0.652482 |
b118e7fe514a7173afbb534a0225c505a0e55b05 | 18,499 | /*
* 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 ... | 49.068966 | 167 | 0.526893 |
1432ca03178d8dbc8d4e1744db0b5bcef37569bf | 3,467 | package com.batoulapps.QamarDeen.utils;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
public class QamarTime {
public static Calendar getTodayCalendar() {
Calendar c = Calendar.getInstance();
c.set(Calendar... | 33.990196 | 108 | 0.653591 |
ba0951e442d9626688398b80787d34206f9979b4 | 715 | package com.yunio.easechat.utils;
import android.util.Log;
public class LogUtils {
public static boolean isDebug() {
return true;
}
public static void d(String tag, String msg) {
if (isDebug()) {
Log.d(tag, msg);
}
}
public static void d(String tag, String ms... | 20.428571 | 66 | 0.518881 |
9ec62510c4e8d832f6cd465d2219f15173211dac | 4,415 | /*******************************************************************************
* Copyright 2012 Geoscience Australia
*
* 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
*
* ht... | 29.046053 | 81 | 0.650057 |
c68bff2d65d733b5f481636f6330480caa6345c1 | 4,191 | /*
* Copyright (C) 2020 National Institute of Informatics
*
* 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 yo... | 32.742188 | 74 | 0.680744 |
bbf57c6ca40456e2d5641d573d6e9b44250ceefb | 384 | package index.project.version.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/** Preliminary test */
@Retention(RUNTIME)
@Target({ TYPE, FIELD, METHOD, CONSTRUCTOR, AN... | 29.538462 | 81 | 0.794271 |
8bdd3b129b6af4596d8273693813a5402269fe35 | 1,024 | package com.tabnine.binary.requests.autocomplete;
import com.google.gson.annotations.SerializedName;
import com.tabnine.binary.BinaryRequest;
import static java.util.Collections.singletonMap;
public class AutocompleteRequest implements BinaryRequest<AutocompleteResponse> {
public String before;
public String... | 29.257143 | 81 | 0.746094 |
3bafabb6b6661635ab9f06c00920b27a784c9b54 | 1,451 | package com.antfortune.freeline.router;
import com.antfortune.freeline.server.EmbedHttpServer;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
public class Router {
private static Router sInstance;
private Map<String, ISchemaAction> mSchemaMap = new HashMap<>();
private Rou... | 25.45614 | 93 | 0.58787 |
d57ade864e72d82cfce48452e166dac44124ff7f | 2,140 | package com.ubayKyu.accountingSystem.repository;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;
import javax.transaction.Transactional;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.sprin... | 45.531915 | 152 | 0.768224 |
ceeb21bdd0c5f8586162ec17f7a44d1d142d55e4 | 1,137 | package org.knowm.xchange.gatecoin.dto.marketdata;
import static org.assertj.core.api.Assertions.assertThat;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigDecimal;
import org.junit.Test;
import org.knowm.xchange.gatecoin.dto.marketdata.... | 35.53125 | 97 | 0.76869 |
43ad8554bbd0917fe0e28f7d0aa3c0c5f43fe4cf | 2,308 | /*
* Copyright 2005 Joe Walker
*
* 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 i... | 36.634921 | 137 | 0.725737 |
a0d01be5ea7e3cc3e0a7b33eac5121e526723692 | 1,401 | package com.example.TaskManager.services;
import java.util.Collections;
import java.util.HashSet;
import java.util.Optional;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springfra... | 23.745763 | 68 | 0.768023 |
0bcf52f9caf2bf922acc83d4763a1d27a18d62b3 | 223 | package de.xehpuk.disassembler.codes;
/**
*
* @author xehpuk
*/
public class DStore2 extends DStoreAbstract {
protected DStore2() {
super(2);
}
@Override
public OpCode getOpCode() {
return OpCode.DSTORE_2;
}
} | 13.9375 | 45 | 0.690583 |
5f47adf24dc9002de80d5cc53a0953bec3a641cf | 5,847 | package org.morsi.android.nethack.redux.trackers;
import android.content.SharedPreferences;
import android.graphics.Typeface;
import android.text.TextUtils;
import android.text.style.TypefaceSpan;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import a... | 29.831633 | 152 | 0.656063 |
df2f5ba01bf0aad0aa29e1661a317b985dba9478 | 1,283 | package manzilin.homework.h_08.Task5;
import java.lang.reflect.Field;
public class Converter {
public static Act convertContractToAct(Contract contract) {
if (contract != null) {
Act act = new Act(contract.getNumber(), contract.getList(), contract.getDate());
return act;
... | 29.837209 | 95 | 0.548714 |
451fe699cf15212878e71c730d5ee41bfb2f8d67 | 2,321 | package br.com.luizalabs.controllers;
import br.com.luizalabs.adapters.AnnouncementAdapter;
import br.com.luizalabs.controllers.entities.AnnouncementDTO;
import br.com.luizalabs.controllers.entities.ProcessingStatusTypeDTO;
import br.com.luizalabs.entities.Announcement;
import br.com.luizalabs.usecases.AnnouncementUs... | 37.435484 | 117 | 0.717794 |
6cdc5e100a436f7693724df9008fd4c881e40c4f | 7,376 | package com.ibm.javaone2016.demo.furby.sensor;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import com.ibm.javaone2016.demo.furby.AbstractSensor;
import com... | 18.86445 | 102 | 0.620933 |
aa9c6517e37aefa370c2d8c28b0b1bcc069be9b6 | 183 | package eapli.base.gestaomensagens.protocolo;
import eapli.base.gestaomensagens.dominio.Mensagem;
public interface IDescodificar {
Mensagem descodificarMensagem(byte[] data);
}
| 22.875 | 51 | 0.814208 |
5de34fb2efc444d19bf96adc83904856251596ef | 318 | package org.cloudfoundry.autoscaler.exceptions;
public class NoAttachedPolicyException extends Exception{
/**
*
*/
private static final long serialVersionUID = -2621595520272413555L;
public NoAttachedPolicyException(){
super();
}
public NoAttachedPolicyException(String message){
super(message);
}
}
| 19.875 | 68 | 0.767296 |
ed5e1edaeb7f66b6ba46152d69e22834123a7ea7 | 211 | // camel-k:
import org.apache.camel.builder.RouteBuilder;
public class MyRoutes extends RouteBuilder {
@Override
public void configure() throws Exception {
from("timer:tick")
.log("Hello Camel K!");
}
} | 21.1 | 45 | 0.720379 |
95835ad2fcb78f49a0d96193918f0870031af4ca | 1,507 | /*
* Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html... | 36.756098 | 116 | 0.708693 |
ee2a5323920b798e694d12ebc412587e652b96fa | 3,904 |
package org.traccar.ORM;
import javax.ws.rs.WebApplicationException;
import java.beans.Introspector;
import java.sql.SQLException;
import org.traccar.database.QueryBuilder;
import org.traccar.Context;
import java.util.*;
public class Query {
private String query;
private String table;
private Class<?> ... | 35.816514 | 99 | 0.556352 |
69fb0efebb5f49ade2d778c30dfb3caf00365283 | 1,207 | package services;
import util.APIGateway;
import entities.Group;
import entities.User;
import java.util.UUID;
/**
* Class for requests to group_members.svc and group_member.svc
*
*/
public class GroupMembersService
extends APIGateway {
/**
* Gets or sets url to GroupMembers service.
*/
protected static S... | 21.945455 | 89 | 0.715824 |
eaa0d6a5e603205626241167b1cf0560ce6cc7e1 | 227 | package cn.luo.yuan.maze.model.skill;
/**
* Created by gluo on 4/27/2017.
*/
public interface MountAble {
boolean isMounted();
void mount();
void unMount();
boolean canMount(SkillParameter parameter);
}
| 15.133333 | 47 | 0.660793 |
25c60bb10c493f2e3c7a5ffe607a58c63f1091dc | 893 | package org.spacebits.components.sensors;
import org.spacebits.components.TypeInfo;
public class SensorProfile {
private TypeInfo sensorType;
private double signalThreshold;
private double signalGain;
public SensorProfile(TypeInfo sensorType, double signalThreshold,
double signalGain) {
super();
this... | 16.849057 | 66 | 0.760358 |
91622788043b61d4ef34eadd01abc688a6e0040c | 223 | package ru.podstavkov.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping(value = "/")
public class MainController {
}
| 20.272727 | 62 | 0.816143 |
3d4af4f35f06eafb4f19111cf713936365632423 | 4,758 | /**
* SiteJournalDealsInfoStruct.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.stats.aggregator.allegroobj.containers;
public class SiteJournalDealsInfoStruct implements java.io.Serializable {
private int dealEventsCoun... | 32.148649 | 130 | 0.656368 |
51de7491a150daaf5645761a423c1bec3ce40163 | 6,575 | package game.Battles;
import game.client.Button;
import game.client.states.BattleState;
import game.entities.slime.Slime;
import game.entities.slimelord.SlimeLord;
import jig.ResourceManager;
import jig.Vector;
import org.lwjgl.Sys;
import org.newdawn.slick.Color;
import org.newdawn.slick.Font;
import org.newdawn.slic... | 32.230392 | 122 | 0.585399 |
76ff3bfb1cd363d626693a7bb9c0885ed9c2dc4b | 222 | package college.com.collegenetwork.dbhelper;
import android.database.sqlite.SQLiteDatabase;
/**
* Created by sushantalone on 08/06/17.
*/
public interface CommandQuery {
long executeQuery( SQLiteDatabase db );
}
| 17.076923 | 46 | 0.756757 |
e8f0bc4c67b435991f49a94b80b46a1ce33ff161 | 6,829 | package net.minecraft.client.gui;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.spectator.ISpectatorMenuObject;
import net.minecraft.client.gui.spectator.ISpectatorMenuRecipient;
import net.minecraft.client.gui.spectator.SpectatorMenu;
import net.minecraft.client.gui.spectator.categories.Spect... | 35.201031 | 200 | 0.700249 |
83215ca68b0cccc981a46f296d9ebb32dd029643 | 157 | package bbejeck.guava.common.model;
/**
* User: Bill Bejeck Date: 4/3/13 Time: 9:47 PM
*/
public enum Climate {
SUB_TROPICAL, TEMPERATE, DESERT, HUMID
}
| 17.444444 | 47 | 0.700637 |
68654155d759655ab3b7a241c18e895c026674f4 | 3,910 | package game;
import org.json.JSONObject;
/**
* <h1>GameController</h1>
* <p>This is a layer of abstraction between the Game Class and the ServerController.
* The Class defines a set of methods through which the ServerController can put the
* parsed information through to the game. It also defines methods to return t... | 38.333333 | 110 | 0.710742 |
156f72760663a87ea4fbccff55516ac6e3127c5a | 1,046 | package de.maikmerten.quaketexturetool;
import java.awt.image.IndexColorModel;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author maik
*/
public class PaletteQ1 {
public final static int[] colors;
public final static int fullb... | 21.791667 | 87 | 0.660612 |
a1f4f45c0b93e235964d1fcf1c38a4a178b6d668 | 3,541 | package de.gg.game.input;
import com.badlogic.gdx.Input.Buttons;
import com.badlogic.gdx.graphics.PerspectiveCamera;
import com.badlogic.gdx.math.collision.Ray;
import com.google.common.eventbus.EventBus;
import de.damios.guacamole.gdx.DefaultInputProcessor;
import de.gg.game.events.HouseEnterEvent;
import de.gg.game... | 25.47482 | 77 | 0.704603 |
a655af0a3da3549e1ad8113f0f1f63230687544a | 500 | package com.leboro.util.game;
import com.leboro.MainActivity;
import com.leboro.R;
import com.leboro.model.api.live.overview.LiveGameOverview;
public class GameUtil {
public static String getGamePeriodString(int quarter) {
if (quarter > 4) {
return MainActivity.context.getString(R.string.game... | 27.777778 | 91 | 0.694 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.