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 |
|---|---|---|---|---|---|
00130be8b7fba4eaa2982b9070d85c2ae948b361 | 558 | package io.nybbles.progclac.compiler.ast;
import io.nybbles.progclac.compiler.lexer.Token;
public class BooleanLiteralAstNode implements AstNode {
private Boolean _value;
private Token _token;
public BooleanLiteralAstNode(Boolean value, Token token) {
_value = value;
_token = token;
}... | 19.928571 | 62 | 0.66129 |
b5a1aaedc7a13899c7750cb3c1da0b2e50634ca5 | 3,057 | package com.tonybeltramelli.lab.display;
import com.tonybeltramelli.lab.Controller;
import com.tonybeltramelli.lab.brain.Brain;
import com.tonybeltramelli.lab.config.Config;
import com.tonybeltramelli.lib.graphics.ImageSprite;
import com.tonybeltramelli.lib.graphics.ViewPort;
import javafx.scene.image.Image;
import ja... | 28.839623 | 92 | 0.688584 |
a10ff198be1a6d6c1304e7a9cae730416b5f7719 | 1,894 | package com.ae2dms;
import com.ae2dms.model.GameEngines.GameEngine;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;
/**
* This class... | 25.253333 | 83 | 0.604013 |
e41b984ed23b492c2702a7dd9cec8958494e7d09 | 4,689 | package org.telegram.ui.Components;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.os.Parcel;
import android.text.Layout;
import android.text.Spanned;
import android.text.style.LeadingMarginSpan;
public class BulletSpan implements LeadingMarginSpan {
private static final int STANDA... | 31.897959 | 99 | 0.607592 |
c34b7b83b5dfc863cf9b48d49a425dae83eb866f | 1,870 | package org.gds;
import org.gds.command.Command;
import java.util.Queue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class BackgroundCommandProcessor {
private Queue<Command> commandQueue;
private ExecutorService threadExecutor;
public BackgroundCommandProc... | 36.666667 | 108 | 0.594118 |
3f6e5cb881ea25d8876458b72777982605f47f5e | 5,913 | package cn.abelib.biz.controller.admin;
import cn.abelib.st.core.data.redis.RedisStringService;
import cn.abelib.st.core.utils.CookieUtil;
import cn.abelib.st.core.utils.JsonUtil;
import cn.abelib.biz.pojo.Product;
import cn.abelib.biz.pojo.User;
import cn.abelib.biz.service.UserService;
import cn.abelib.biz.service.P... | 33.982759 | 105 | 0.644512 |
5ed48fd1f333d5499768fe07222f2023832d6436 | 5,287 | package com.dtstack.flinkx.es.writer.test;
import org.apache.http.HttpHost;
import org.elasticsearch.action.bulk.BulkRequest;
import org.elasticsearch.action.bulk.BulkResponse;
import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.action.index.IndexResponse;
import org.elasticsearch.action.searc... | 35.722973 | 76 | 0.596368 |
35b05d2369ce7e95198b4e8addc2f28dc239abaa | 1,373 | /*
* Copyright 2019 Arcus 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 applicable law or agreed to ... | 28.020408 | 100 | 0.696286 |
1551643f95fcadf0d8088e1e3706ebe5db7d76cd | 7,548 | package com.werb.pickphotoview;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.View... | 35.772512 | 215 | 0.640037 |
0cfb837bc6b799b18f224fb3f7fed55444ed1233 | 2,315 | package org.jboss.summit2015.beacon.bluez;
import java.nio.ByteBuffer;
/**
* Simple wrapper around the ByteBuffer of the beacon event that provides getters similar to the beacon_info struct
* in C
*/
public class BeaconInfo {
public String uuid;
public boolean isHeartbeat;
public int count;
public ... | 21.635514 | 115 | 0.568898 |
9da455418d7591d2152e9c9b13ac57f6eca6ae38 | 221 | package com.realcomp.mvr;
public enum Color{
BEIGE,
BLACK,
BLUE,
BROWN,
GOLD,
GRAY,
GREEN,
MAROON,
ORANGE,
PINK,
PURPLE,
RED,
SILVER,
TAN,
WHITE,
YELLOW
}
| 10.045455 | 25 | 0.511312 |
7e6674ba41d53d9994157179bbc7d5412c7919e6 | 410 | package com.javarush.task.task34.task3410.controller;
import com.javarush.task.task34.task3410.model.Direction;
/**
* @author Sergey Ponomarev on 09.01.2021
* @project JavaRushTasks/com.javarush.task.task34.task3410.controller
*/
public interface EventListener {
public void move(Direction direction);
public vo... | 25.625 | 70 | 0.77561 |
b01f20c67feebdf6b15dcbc0879c4545c89bc63c | 4,890 | package eu.ldob.lpm.be.service;
import eu.ldob.lpm.be.converter.MemberConverter;
import eu.ldob.lpm.be.converter.ProjectConverter;
import eu.ldob.lpm.be.exception.LpmNoResultException;
import eu.ldob.lpm.be.model.AssignedProjectModel;
import eu.ldob.lpm.be.model.ProjectModel;
import eu.ldob.lpm.be.model.UserModel;
imp... | 35.693431 | 114 | 0.686912 |
55d91a1ad22d0f859fca23839365b324ff1679a3 | 2,723 | package mb.nabl2.terms.build;
import static org.metaborg.util.unit.Unit.unit;
import java.util.Objects;
import org.immutables.serial.Serial;
import org.immutables.value.Value;
import com.google.common.collect.ImmutableMultiset;
import mb.nabl2.terms.IConsTerm;
import mb.nabl2.terms.IListTerm;
import mb.nabl2.terms... | 28.072165 | 107 | 0.592729 |
656f2b143654c2df839d53d2708cf60148ef7fe4 | 3,723 | /*
* Copyright (C) 2010 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... | 35.122642 | 93 | 0.627451 |
42716c9f805e676f508ea6a48edea467f8b1baea | 2,627 | /*
* Copyright 2017-2021 Tim Segall
*
* 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 ... | 30.546512 | 183 | 0.765131 |
bf29949e8e1962cd88d6cc697ce55035fc1cd3ce | 647 | /**
* @(#)BindSingleQuestionRequest.java, 4月 14, 2021.
* <p>
* Copyright 2021 fenbi.com. All rights reserved.
* FENBI.COM PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.imcuttle.bar.web.data;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/*... | 20.21875 | 71 | 0.718702 |
e88ebf35b46bb09ba085e586875d83e344c62027 | 19,590 | /*
* Copyright 2018-2019 Lukas Krejci
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses... | 40.8125 | 150 | 0.575753 |
7ac03d140c32482450368fb60dffa88bc1810cbf | 5,133 | /*
* Creation : 11 févr. 2015
* Project Computer Science L2 Semester 4 - BattleShip
*/
package com.battleship.views.app;
import com.battleship.asset.CheatCode;
import com.battleship.asset.Session;
import com.battleship.network.Capsule;
import com.battleship.network.Request;
import com.battleship.observers.Observa... | 28.203297 | 102 | 0.519969 |
b38c0cc3b3ce45c91feff9b7f95948fadde7cbdb | 9,779 | /*
* Copyright 2016-present Open Networking Laboratory
*
* 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 appli... | 40.409091 | 84 | 0.444115 |
31031cb92cce991a5048d2fc8147d713d934a657 | 2,036 | package com.offsetnull.bt.responder.script;
import com.offsetnull.bt.R;
import com.offsetnull.bt.responder.TriggerResponderEditorDoneListener;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import... | 27.146667 | 114 | 0.761297 |
070d1306f90490895c9d0d62e0ede38d0df4671f | 509 | package org.codehaus.waffle.taglib.form;
import javax.servlet.jsp.JspException;
import java.io.IOException;
import java.io.Writer;
/**
* A form row.
*
* @author Guilherme Silveira
*/
public class RowTag extends FormElement {
@Override
protected String getDefaultLabel() {
return "";
}
pub... | 17.551724 | 82 | 0.669941 |
62a38a7999b308d5aa988faa270464005cb111da | 85 | package singletonPattern;
public enum Subsystem {
PRIMARY,
AUXILIARY,
FALLBACK
}
| 10.625 | 25 | 0.776471 |
e97277c22bbae003884af72108259820fa8f2397 | 1,148 | package jplee.worldmanager.util;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.JsonToNBT;
import net.minecraft.nbt.NBTException;
public class ItemUtils {
public static ItemStack parsItem(String item) throws NBTException {
String[] parts = item.trim().split(" +", 3);... | 22.96 | 68 | 0.638502 |
00cb15fbf3441606288c406964215fa6dae05e67 | 1,223 | package com.lendico.coding.codingtask.service;
import com.lendico.coding.codingtask.model.Repayment;
import com.lendico.coding.codingtask.model.RepaymentPlan;
import org.javamoney.moneta.FastMoney;
import javax.money.CurrencyUnit;
import java.time.LocalDateTime;
/**
* @author Anil Kurmi
*/
public interface Repayme... | 33.054054 | 139 | 0.718724 |
d6bd578dd66a7ab21465595e06157cbdf8b2c5a9 | 5,292 | /*
* Copyright © "Open Digital Education", 2014
*
* This program is published by "Open Digital Education".
* You must indicate the name of the software and the company in any production /contribution
* using the software and indicate on the home page of the software industry in question,
* "powered by Open Digita... | 40.707692 | 152 | 0.674414 |
eda6113aa1e33d659534b3ab771a7f5eaef6c4ed | 5,435 | /*
* Copyright 2020 jrosclient project
*
* Website: https://github.com/lambdaprime/jrosclient
*
* 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/license... | 30.194444 | 104 | 0.631831 |
e530320891d510ffd95c0189782194379e67fefd | 1,491 | package uk.dioxic.mgenerate.core.operator.geo;
import org.junit.jupiter.api.Test;
import uk.dioxic.mgenerate.core.transformer.ReflectiveTransformerRegistry;
import java.util.List;
import static java.util.Arrays.asList;
import static org.assertj.core.api.Assertions.assertThat;
class LineStringTest {
@Test
v... | 43.852941 | 151 | 0.711603 |
ad112394f2bcd7a9197b3aa0823466e33a241677 | 1,019 | //Copyright (C) 2021, Grzegorz Stefański
package edu.ib.project.crazyeights.backend;
import static org.junit.jupiter.api.Assertions.*;
import java.util.ArrayList;
import java.util.List;
import org.junit.jupiter.api.Test;
public class BotsAlgorithmTest {
public BotsAlgorithmTest() {
System.out.println("\n" + "... | 26.815789 | 84 | 0.690873 |
ef901adf42c6ded50df8505571dcfe2954db5c9d | 401 |
public class OopTheRealWay {
public static void main(String[] args) {
Constants constants = new Constants();
System.out.println(constants.three);
}
}
class Constants {
final static double MAX_LENGTH = 9.0;
final static int ONE = 1;
final static String NAME = "John Doe";
public static char... | 15.423077 | 42 | 0.668329 |
74d82de40d68e7e9f1239568915389f343d2e581 | 2,816 | package com.rasto.accommodationbookingsystem;
import com.rasto.accommodationbookingsystem.backend.data.Role;
import com.rasto.accommodationbookingsystem.backend.data.entity.User;
import com.rasto.accommodationbookingsystem.backend.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
impo... | 39.111111 | 129 | 0.783026 |
b399cc0929adde18f2fe3cca6ce0e41d033e4ca1 | 1,461 | package peacefulotter.engine.rendering.graphics;
// A basic material used when loading a texture from a .mtl file
public class SimpleMaterial
{
private final Texture texture;
private final float specularIntensity, specularPower;
public SimpleMaterial( Texture texture, float specularIntensity, float specul... | 29.22 | 90 | 0.6564 |
d96c4f71438bb03524a021439168ed8d671f4602 | 1,113 | package org.iron.ultimate.jpa.dao.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "AR_USER_NAME")
public class ArUserName implements Serializable {
private static f... | 20.611111 | 50 | 0.706199 |
7ec5f742248254eb87947090701866095578b3c2 | 1,685 | package com.vk.demo.dao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.vk.demo.entities.Employee;
import com.vk.demo.repositories.EmployeeRepository;
@Component
public class EmployeeDaoImpl implements Empl... | 24.779412 | 81 | 0.694362 |
609f069499eaeb360c2637d223d97fa86a975402 | 11,181 | package deepthinking.fgi.dao.mapper;
import deepthinking.fgi.domain.TableFunc;
import deepthinking.fgi.domain.TableFuncCriteria.Criteria;
import deepthinking.fgi.domain.TableFuncCriteria.Criterion;
import deepthinking.fgi.domain.TableFuncCriteria;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.j... | 37.27 | 171 | 0.524729 |
7ddb845c5a58f3bfa5b3fad3f368f598aba81ae5 | 348 | package ru.job4j.loop;
public class Mortgage {
public int year(int amount, int monthly, double percent) {
int year = 0;
double total = ((amount * percent) / 100) + amount;
int yearly = monthly * 12;
while (total > 0) {
total -= yearly;
year++;
}
... | 18.315789 | 62 | 0.508621 |
9dd848842ff6db48de17a4ba31f6880029629c23 | 2,010 | private Tuple execute(final HttpMethodBase method, int numTries) throws IOException {
final Timer timer = Metric.newTimer("RestClientImpl.execute");
try {
final int sc = httpClient.executeMethod(method);
if (sc < OK_MIN || sc > OK_MAX) {
throw new RestExceptio... | 39.411765 | 127 | 0.462687 |
90d527e09eadcc20e00e8470f3abd06052a09c04 | 77 | /**
* エナジードリンクを生産する工場に関するクラスが含まれています。
*/
package factory.drink.energydrink; | 19.25 | 34 | 0.779221 |
71d188d53b569d0a972c1955071c3c3fe6d425eb | 4,872 | package org.apache.fop.afp;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Ma... | 34.553191 | 108 | 0.663177 |
d5696b991be9fc65d2b5a457fcd5fd36839bcbbb | 1,797 | package bu.edu.ec500.sshealthapp;
import android.hardware.SensorManager;
public class SensorData {
public float[] accelerate, gyroscope, magnetic, gameRotation;
public long timestamp;
public float[] worldAcc;
public SensorData() {
accelerate = new float[3];
gyroscope = ... | 35.235294 | 99 | 0.601558 |
372ac4d74818c44b01e2cf6e97b1b7ea7b9102ff | 633 | package java_basic;
/**
* Project:Exercise
* Package:main.java.java_basic
* Author:Alan Ruan
* Date:2018-11-09 15:17
* Description://TODO
*/
public class ThreadExtends {
public static void main(String[] args) {
new MyThread("Thread测试").start();
new MyThread("Thread测试").start();
}
}
class... | 18.617647 | 74 | 0.601896 |
60be77ecc4718975b65eb8611ba3373573538f29 | 3,294 | package org.apache.lucene.index;
/**
* Copyright 2006 The Apache Software Foundation
*
* 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... | 28.396552 | 141 | 0.689739 |
08f10967b5baa6679f3da6fd0fc99a8d38efff3e | 618 | package org.batfish.question.boolean_expr;
import org.batfish.question.Environment;
import org.batfish.question.ipsec_vpn_expr.IpsecVpnExpr;
import org.batfish.representation.IpsecVpn;
public class HasRemoteIpsecVpnIpsecVpnBooleanExpr extends BaseBooleanExpr {
private IpsecVpnExpr _caller;
public HasRemoteIps... | 26.869565 | 75 | 0.779935 |
d7de62bd31077ea8ebc1dfb92bffb46a897f5f6d | 7,545 | package com.morethanheroic.taskforce.job.builder;
import com.morethanheroic.taskforce.generator.Generator;
import com.morethanheroic.taskforce.job.Job;
import com.morethanheroic.taskforce.sink.Sink;
import com.morethanheroic.taskforce.task.Task;
import com.morethanheroic.taskforce.task.decorator.StatisticsDecoratorTas... | 46.288344 | 114 | 0.673691 |
6f79276014c5c0dec1d7b937aa4c7482696d5c60 | 450 | package com.cy.core.mobileLocal.dao;
import com.cy.core.mobileLocal.entity.MobileScratch;
public interface MobileScratchMapper {
/**
* 新增
*
* @param mobileLocal
*/
void insert(MobileScratch mobileScratch);
/**
* 找不到归属地的手机号前7位暂存在MobileScratch里面
*
* @param mobileNumber
* @return
*/
MobileScratc... | 16.071429 | 57 | 0.7 |
559d9f2a2f4dad07417aae7cea20c5590e216e1d | 246 | package com.capitalone.dashboard.utils;
import com.capitalone.dashboard.model.CodeQuality;
import com.capitalone.dashboard.model.quality.QualityVisitor;
public interface CodeQualityConverter {
QualityVisitor<CodeQuality> produceVisitor();
}
| 24.6 | 61 | 0.837398 |
dc1fe19cda44536a04dba93f0f04bcdcb5e6bddd | 1,523 | package org.jspare.jpa.injector;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.jspare.core.InjectorAdapter;
import org.jspare.core.MySupport;
import org.jspare.jpa.PersistenceUnitProvider;
import org.jspare.jpa.annotation.RepositoryInject;
import org.springframework... | 27.196429 | 111 | 0.757058 |
60d0626fd73177324019410a6afc18431ac0e5b3 | 2,921 | /*
* 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
* "Lic... | 32.820225 | 126 | 0.661417 |
6c3c0aadda9ae8ac0e119dca687dfe09c3fc015b | 511 | package io.github.growingunderthetree.events;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerMoveEvent;
public class fall implements Listener {
@EventHandler
public void onRiding(PlayerMoveEvent e) {
... | 30.058824 | 91 | 0.716243 |
f2fc41040f6429c7e6446f13855240c72d93eaa7 | 2,346 | package io.confluent.cp.factflow;
import org.apache.kafka.clients.producer.*;
import java.util.Properties;
import java.util.concurrent.ExecutionException;
public class FactQueryProducer extends GenericProducerWrapper {
public static long startTime = 0;
public static int nrOfStatements = 0;
static Prop... | 28.26506 | 134 | 0.629156 |
3619d3a0e88a49f898fd36b7f816ec528fb2d3cc | 4,665 | /*
* Copyright (C) 2019 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... | 38.875 | 99 | 0.716184 |
85a29b2cd31729a48b9e8c0480b39a923e937432 | 536 | package com.turbomandelbrot.draw;
public class TextObject {
public String text;
public float x;
public float y;
public float[] color;
public TextObject()
{
text = "default";
x = 0f;
y = 0f;
color = new float[] {1f, 1f, 1f, 1.0f};
}
public TextObject(String txt, float xcoord, floa... | 16.242424 | 59 | 0.576493 |
c69cf81af0b1424621b3b0ca6a08846f16d440b1 | 610 | package com.example.BookTradingClub.service.exception;
public class BookHasOtherOwnerException extends RuntimeException{
public BookHasOtherOwnerException(String message) {
super(message);
}
public BookHasOtherOwnerException(String message, Throwable cause) {
super(message, cause);
}
... | 30.5 | 97 | 0.640984 |
4d47bff074b3004b8e3cb8354632f14cf606fbbc | 267 | package com.github.liuyuyu.dictator.service.redis;
import lombok.Data;
/*
* zk内缓存的值
* @author liuyuyu
*/
@Data
public class CachedConfigInfo {
/**
* 配置值
*/
private String value;
/**
* 上次更新时间
*/
private Long lastUpdatedTime;
}
| 13.35 | 50 | 0.610487 |
5200af3c9ffafffc80b9316b0a3616284aa2e0e9 | 5,794 | /*
* Copyright 2019 Arcus 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 applicable law or a... | 30.020725 | 96 | 0.626338 |
36696f1fc09aee09546a697b773194c31fba7362 | 733 | package io.vividcode.happytakeaway.restaurant.api.v1.web;
import io.vividcode.happytakeaway.restaurant.api.v1.Address;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import org.eclipse.microprofile.openapi.annotations.media.Schema;
... | 25.275862 | 89 | 0.79809 |
f5b3c7a36d17dc2d84a8f3bb4af7a79dbef16853 | 13,702 | /*
* MIT LICENSE
* Copyright 2000-2020 Simplified Logic, Inc
* 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, co... | 47.248276 | 147 | 0.716976 |
f589ea433ee7fae989aca524e1bd98044d357990 | 2,928 | package com.example.ratingapp.service;
import com.example.ratingapp.model.Post;
import com.example.ratingapp.model.User;
import com.example.ratingapp.repository.PostRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.do... | 27.111111 | 73 | 0.665984 |
9706a7804ed43cd7177996fa3a53bedc8e276608 | 705 | package pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.interactions.Actions;
public class ContextMenuPage {
private By clickableContextBox = By.id("hot-spot");
private WebDriver driver;
public ContextMenuPage(WebDriver driver) {
this.driver... | 22.03125 | 96 | 0.68227 |
819090fa9d85ea74402e3e26054282907b22975d | 3,872 | /****************************************************************
* 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... | 45.552941 | 109 | 0.614669 |
c54319b5b4501bc4dac551aa67c74dbb6fa0ef37 | 361 | package com.teamscale.test;
import java.io.File;
/** Base class that supports reading test-data files. */
public class TestDataBase {
/** Read the given test-data file in the context of the current class's package. */
protected File useTestFile(String fileName) {
return new File(new File("test-data", getClass().... | 27.769231 | 86 | 0.728532 |
a9efc07decbbc23e10cb5d3d2d034b84b486e1a4 | 2,259 | package com.jack.reader.bean;
import java.util.List;
/**
* <p>Title:${type_name}</p>
* <p>Description:</p>
* <p>Company:北京昊唐科技有限公司</p>
*
* @author 徐俊
* @date zhoujunxia on 2019/4/23 11:29
*/
public class ClassIndexBean {
private int errno;
private String msg;
private ClassIndexData data;
publi... | 22.147059 | 77 | 0.534307 |
40ab12c6c0015cf0c30e288382d196f2a57cc6a4 | 1,939 | package com.lwd.qjtv.mvp.ui.holder;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.jess.arms.base.App;
import com.jess.arms.base.BaseHolder;
import com.jess.arms.di.component.AppComponent;
import... | 35.254545 | 117 | 0.771016 |
f74b9975a3dcff4a8fc55f9fc5e9d4da0668f52c | 1,764 | package co.ex.coffeeforcodeapp.Api.ShoppingCart;
import android.graphics.Bitmap;
public class DtoShoppingCart {
int cd_prod, qt_prod, length;
String email_user, nm_prod, img_prod;
Bitmap img_prod_cart;
float full_price_prod;
float price_unit_prod;
public DtoShoppingCart(){}
public Bitmap... | 20.511628 | 59 | 0.641156 |
51ac93e00147ddf9035a0775534776d3eb6e4b5b | 1,707 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.physics.events;
import org.joml.Vector3f;
import org.terasology.engine.entitySystem.entity.EntityRef;
import org.terasology.engine.entitySystem.event.AbstractConsumableEvent;
import org.terasology.engine.m... | 28.45 | 137 | 0.727592 |
0a99de2ebfceed982be6453e79749b2a3b3ac19a | 155 | package org.woehlke.computer.kurzweil.tabs.simulatedevolution;
import java.io.Serializable;
public interface SimulatedEvolution extends Serializable {
}
| 22.142857 | 62 | 0.845161 |
08892a166800c92186d9df59a4c2be4bd1f7541e | 238 | package papers.ADFDPlus.TestClasses;
/**
* Point Fault Domain example for two arguments
* @author (Mian and Manuel)
*/
public class TwoDimensionalPointFailureDomain{
public static void pointErrors (int x, int y){
int z = x/y;
}
} | 19.833333 | 47 | 0.726891 |
85222d14c1a8a2cb662352bacecdd215e04b3d51 | 8,743 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses... | 14.547421 | 813 | 0.799954 |
1e0e258f7cad7d6486c9de0597f762c65781ab71 | 1,424 |
/*
Copyright 2016 Goldman Sachs.
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... | 24.551724 | 70 | 0.602528 |
442a2fc8d2b91fbf682e776684adbbf318203bdb | 1,142 | package com.siyeh.ig.logging;
import com.intellij.codeInspection.LocalInspectionTool;
import com.siyeh.ig.LightInspectionTestCase;
public class StringConcatenationArgumentToLogCallInspectionTest extends LightInspectionTestCase {
@Override
protected LocalInspectionTool getInspection() {
return new StringConcat... | 36.83871 | 140 | 0.635727 |
590fed33ad6c9f6fd5e0218fdae4f6679dcb78ee | 22,891 | package com.guideme.guideme.home;
import android.Manifest;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.graphics.Color;
import android.location.Location;
import android.os... | 40.876786 | 160 | 0.628369 |
d4e66b16486d349771c3e36ecf81e115c0b549e6 | 6,585 | package com.kaltiz.dsTitle.storage;
import com.kaltiz.dsTitle.TitleManager;
import denniss17.dsTitle.DSTitle;
import denniss17.dsTitle.objects.Title;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import java.sql.*;
import java.util.UUID;
import java.util.logging.Level;
public class SQLTitleStorage ext... | 39.196429 | 243 | 0.58861 |
fcc06ab448dd121317cbfb37fa3c0fe79f3a71bb | 90 | package com.example.async.cdi_events.entity;
public class Specification {
// ...
}
| 11.25 | 44 | 0.688889 |
060eae4e49a858349c4475b7d62f6c39b50bb647 | 1,496 | package jp.gr.java_conf.ya.yumura.Twitter; // Copyright (c) 2013-2017 YA <ya.androidapp@gmail.com> All rights reserved. --><!-- This software includes the work that is distributed in the Apache License 2.0
import android.support.v7.util.SortedList;
import twitter4j.Status;
public final class BinarySearchUtil {
p... | 34 | 205 | 0.511364 |
f8a514287b43ac9f16c2dc0f50017ebcd2964117 | 2,676 | /*
An abbreviation of a word follows the form <first letter><number><last letter>. Below are some examples of word abbreviations:
a) it --> it (no abbreviation)
1
b) d|o|g --> d1g
1 1 1
1---5----0----5--8
c) i|nternationalizatio|n --> i18n
... | 34.307692 | 201 | 0.508221 |
79c1ebd3b3ef723f5b0848eafd5c50fbedefb63e | 2,559 | import helpers.DnsImageTagResolver;
import io.homecentr.testcontainers.containers.GenericContainerEx;
import io.homecentr.testcontainers.images.PullPolicyEx;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testcontaine... | 33.233766 | 100 | 0.709652 |
2ca8c14549b675298eeed66869438a8d95431e0c | 5,473 | /*
* Thrifty
*
* Copyright (c) Microsoft Corporation
*
* 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
*
*... | 35.771242 | 122 | 0.705463 |
0fdb24a5b98acda11fc6065f171d56da409f866e | 670 | package tech.weiyi.dynamic.bytecode.compiler;
import javax.tools.SimpleJavaFileObject;
import java.net.URI;
public class JavaSourceCode extends SimpleJavaFileObject {
private String clazzName;
private String sourceCode;
protected JavaSourceCode(String clazzName, String sourceCode) {
super(URI.c... | 24.814815 | 112 | 0.7 |
c03d820dd3764354f79550c6b84938be0e7a614b | 2,261 | /*
* Copyright 2013, 2014 Megion Research & Development GmbH
*
* 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... | 27.573171 | 75 | 0.671384 |
292d589f69221150b768784a7906c8ef8da14363 | 970 | package software.amazon.awssdk.crt.s3;
import software.amazon.awssdk.crt.http.HttpHeader;
import java.nio.ByteBuffer;
class S3MetaRequestResponseHandlerNativeAdapter {
private S3MetaRequestResponseHandler responseHandler;
S3MetaRequestResponseHandlerNativeAdapter(S3MetaRequestResponseHandler responseHandler... | 34.642857 | 116 | 0.770103 |
73c3463cb3f2734c31e9928cbef1526b6bcd488e | 1,913 | package com.infogen.etl;
import org.apache.commons.cli.ParseException;
import com.infogen.mapper.InfoGen_Mapper;
import com.infogen.yarn.InfoGen_Container;
import com.infogen.yarn.Job_Configuration;
/**
* 独立部署示例程序,可以直接传入参数启动
*
* @author larry/larrylv@outlook.com/创建时间 2015年12月21日 下午1:12:07
* @since 1.0
* @versi... | 39.040816 | 149 | 0.728176 |
118a21bbd1b925571a8545a870bb984b54dc5578 | 9,005 | package com.appiaries.baas.sdk;
import android.content.Context;
import android.support.test.runner.AndroidJUnit4;
import android.test.InstrumentationTestCase;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.Date;
import java.util.HashMap;
impo... | 35.592885 | 149 | 0.667407 |
338f2e517f336559e004e56758665cf56109af19 | 7,572 | /*
* Copyright 2021 EPAM Systems, Inc
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. 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 Li... | 38.050251 | 159 | 0.661912 |
a2c8b25f4ea5a783b2518c26856f6d675180c8c3 | 5,073 | /*
* Copyright Terracotta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 31.122699 | 128 | 0.725212 |
029bcc10c7bf5101f9eb1b8f80d40fb7bc75827b | 243 | package com.netflix.conductor.dyno;
import com.netflix.conductor.core.config.SystemPropertiesConfiguration;
public class SystemPropertiesDynomiteConfiguration extends SystemPropertiesConfiguration
implements DynomiteConfiguration {}
| 34.714286 | 88 | 0.860082 |
c36809eef9617887938b925b2181c92b8ad96a51 | 1,809 | package problem;
public class NumberOfIslands {
public static void main(String[] args) {
NumberOfIslands solver = new NumberOfIslands();
int[][] grid = new int[][]{
{0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0
}, {0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0
}... | 30.15 | 63 | 0.381426 |
67483d77f1b0fc655b5a7682a20b20af0b795274 | 1,992 | package com.drumonii.loltrollbuild.repository;
import com.drumonii.loltrollbuild.model.GameMap;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Sort;
import org... | 30.646154 | 117 | 0.756024 |
465dcb7da08ab093458b17ec922bfb8b588500c7 | 1,844 | package rs.ac.uns.ftn.informatika.mbs2.vezbe09.primer01.server.session;
import java.util.Date;
import javax.ejb.EJB;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import rs.ac.uns.ftn.informatika.mbs2.vezbe09.primer01.server.... | 37.632653 | 124 | 0.682755 |
828f12efc1c196cebd784526868189005737e724 | 1,088 | package com.xoozi.apiguides.gl.objects;
import java.util.List;
import com.xoozi.apiguides.gl.data.VertexArray;
import com.xoozi.apiguides.gl.glutil.Geometry.Ray;
import com.xoozi.apiguides.gl.objects.ObjectBuilder.GenerateData;
import com.xoozi.apiguides.gl.objects.ObjectBuilder.DrawCommand;
import com.xoozi.apiguide... | 28.631579 | 66 | 0.715993 |
094e0b13459dc0407ea76851f27122d2cdf0b27d | 2,386 | package com.bluebirdme.mes.platform.dao.impl;
import com.bluebirdme.mes.core.base.dao.BaseDaoImpl;
import com.bluebirdme.mes.core.base.entity.Filter;
import com.bluebirdme.mes.core.base.entity.Page;
import com.bluebirdme.mes.platform.dao.IMessageDao;
import com.bluebirdme.mes.platform.entity.Message;
import org.hibern... | 34.57971 | 230 | 0.671417 |
f51686ddf82274432af1fb2b2dc0783ba9250a1a | 1,995 | package in.co.air.line.ticket.bean;
import java.util.Date;
public class BookBean extends BaseBean {
private long flightId;
private String flightName;
private String firstName;
private String lastName;
private String mobileNo;
private String emailId;
private String address;
private long noOfPerson;
private ... | 15.465116 | 47 | 0.711278 |
8cd959ededaaa2c5b5251bebefe74f2ed498fb2a | 1,786 | /*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not us... | 38 | 105 | 0.712766 |
3a35bf8e182a437e498d16105166bb72e7a3a90b | 2,885 | package net;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net... | 36.987179 | 81 | 0.632929 |
7b98227966b6a045a468c9a6a3a482b03e123d4d | 1,229 | package com.wordnik.swagger.models.properties;
import com.wordnik.swagger.models.Xml;
public class IntegerProperty extends AbstractNumericProperty implements Property {
protected Integer _default;
public IntegerProperty() {
super.type = "integer";
super.format = "int32";
}
public IntegerProperty xml(... | 23.188679 | 82 | 0.676973 |
134aae7922920186c5023d408a4eedf49b50d541 | 1,196 | package com.bolingcavalry.db.service;
import com.bolingcavalry.db.entity.City;
import com.bolingcavalry.db.entity.Country;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.transaction.Transactional;
import java.util.List;
/**
* @aut... | 23 | 73 | 0.663043 |
e5773e4b446ac21252da0f1e75490b196e2c31d7 | 808 | package net.minecraft.world.level.block.state;
import com.google.common.collect.ImmutableMap;
import com.mojang.serialization.Codec;
import com.mojang.serialization.MapCodec;
import net.minecraft.core.Registry;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.properties.Proper... | 38.47619 | 128 | 0.790842 |
59a99e4d8eaff529e6487d3ff692533d4a11a186 | 2,034 | /*
* 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 ... | 31.292308 | 92 | 0.676991 |
e6b4b1dd1b50164f428b4a06566a4eef4df9e36b | 2,512 | /*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2019 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* J... | 39.873016 | 133 | 0.77707 |
e3f75e02e600544dc07fccb3793241979d7b61f6 | 5,377 | package uk.gov.ons.ctp.integration.contactcentresvc.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Collection;
import ja... | 42.007813 | 96 | 0.747443 |
cb71f3f9b8b99072c5322b212a3861ca73bbb26d | 2,884 | package nl.softcause.jsontemplates.types;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.Map;
import lombok.Getter;
import lombok.Value;
@Value
public class MapOf<T> implements IExpressionType<Map<String, T>> {
private IExpressionType<T> bas... | 27.466667 | 91 | 0.57975 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.