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 |
|---|---|---|---|---|---|
3df5c1942bdb9ab820a2d1fa5e045519e6992bef | 22,387 | /**********************************************************************************
*
* $Id$
*
***********************************************************************************
*
* Copyright (c) 2005, 2006, 2007, 2008 The Sakai Foundation, The MIT Corporation
*
* Licensed under the Educational Community License, V... | 53.944578 | 203 | 0.699602 |
bb18815ce5cc99ecba669a39b6e58fdd73192d61 | 1,764 | package in.yagnyam.proxy.server;
import org.springframework.http.HttpStatus;
public class ServiceException extends RuntimeException {
private static final long serialVersionUID = 1L;
private final HttpStatus statusCode;
protected ServiceException(HttpStatus statusCode, String message) {
super(message);
... | 28.451613 | 99 | 0.776644 |
37541244f0d48bb4961ab67f14a05d9951466f37 | 2,253 | package edu.jsykora.sql2stream.element;
import java.util.function.BiFunction;
public final class ElementAppender<A, B> implements BiFunction<Element<A>, Element<B>, Element<A>> {
private static final String BASE_ELEMENT = "BASE_ELEMENT";
private static final String SOURCE_ELEMENT = "SOURCE_ELEMENT";
@S... | 43.326923 | 163 | 0.60941 |
090bda453481253bbc61785a09eb1e9a5316c288 | 72,686 | /*
* Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* - Redistribution of source code must retain the above copyright
* notice, this list o... | 37.896767 | 192 | 0.666346 |
88e9791febca49aca606162dfdbb264fde24fb16 | 843 | package io.github.icefrozen.attempt;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Attempt Statistics, which is used to collect statistics on the number of exceptions during Attempt execution
*
* @author Jaosn Lee
*/
public class AttemptRecord {
protected AtomicInteger executeCount = new AtomicInte... | 22.783784 | 111 | 0.689205 |
6ef87d0126dc4ae72ee521223373dbe39bef7dc1 | 1,462 | /*
* Copyright 2015-2016 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/licenses/LICENSE-2.0
*
* Unless required... | 32.488889 | 84 | 0.645691 |
1b2537c565c287096e064fe735b1cd156bd31b8d | 1,384 | package Ships;
import Core.Observable;
import Core.Observer;
import java.util.ArrayList;
//Observable Player ship, extended from Ship.
public class PlayerShip extends Ship implements Observable{
private CombatMode mode;
private int hostiles;
public PlayerShip(){
setShipType("Player");
}
... | 20.656716 | 97 | 0.638006 |
246085d2ad253022f561ed6e55f635781acfc7c7 | 1,754 | /**
* Copyright 2011-2017 Asakusa Framework Team.
*
* 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... | 26.179104 | 102 | 0.648803 |
ca138344b30bf5bac734b976dcdffc15e1dd7565 | 2,624 | /*
* 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 ... | 31.238095 | 79 | 0.754192 |
7c4fbab3803134327bb92e6119b4a58b7ed2721d | 660 | /*
* 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 Services;
import Entities.Categories;
import java.sql.SQLException;
import java.util.List;
import javafx.collections.Observabl... | 27.5 | 79 | 0.760606 |
801b982f189ef55e328238934e820ff4094394b0 | 21,103 | /*
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 46.278509 | 122 | 0.530541 |
878d910f9889b309ef2141b4c0def87b735bedac | 1,869 | package rpc.ept;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
public class IPAddressFloor implements Floor {
private static final byte IP_ADDRESS_IDENTIFIER = (byte) 0x09;
private InetAddress address;
public IPAddressFloor() {
this((InetAddress... | 26.7 | 75 | 0.629213 |
125ed3a0341751f7c767cbe0ab1fcc42f7a6c3f6 | 1,830 | /*
* Copyright 2011 - 2013 NTB University of Applied Sciences in Technology
* Buchs, Switzerland, http://www.ntb.ch/inf
*
* 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
*
* h... | 27.727273 | 76 | 0.68306 |
58b2bd3671fed6ce67d0d22827d9ee8d697e03ad | 911 | import com.lorentzos.pj.PJParser;
import org.antlr.v4.runtime.tree.ParseTree;
import org.hamcrest.Matcher;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.text.IsEqualIgnoringWhiteSpace.equalToIgnoringWhiteSpace;
/**
* Created by dionysis_lorentzos on 8/9/14.
... | 21.690476 | 86 | 0.675082 |
5991eb965d7bac45d28893c8179d02ac2508250a | 4,562 | /*
* Copyright (c) 2020 . All Rights Reserved.
*
* Filename: BookEntityDaoImpl.java
*/
package com.app.libraryManagement.dao.impl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import org.apache.commons.collections4.CollectionUtils;
import org.slf4j.Logger;
im... | 27.154762 | 136 | 0.68961 |
833e4b58dc90f9548bce2cb56ee1617c9bb8577b | 2,110 | package com.nilportugues.shared.domain;
public class PageOptions {
private Integer number = 1;
private Integer size = 10;
private String limit;
private String cursor;
private String offset;
public PageOptions() {
}
public static PageOptions forNumericPage(Integer pageNumber, Integer ... | 19.357798 | 84 | 0.577725 |
5e3cbc3a9536939c164cef93f1b9181d87dd0929 | 379 | package tech.pdai.springboot.mapstruct.entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author pdai
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Address {
private String street;
private Integer zipCode;
... | 18.047619 | 46 | 0.773087 |
11e1e78af929e8c36145b2b693fecc1d031cfe01 | 292 | package enums;
public enum MessageHierarchyEnum {
LEVEL_1((short) 1), LEVEL_2((short) 2), LEVEL_3((short) 3), LEVEL_4((short) 4);
private short level;
private MessageHierarchyEnum(short level) {
this.level = level;
}
public short getLevel() {
return level;
}
}
| 17.176471 | 81 | 0.657534 |
9e1392b43c1a13a9e139711b69a240dc60f752f3 | 929 | package io.ddd.framework.application.sys.menu.command;
import io.ddd.framework.coreclient.context.UserThreadContext;
import io.ddd.framework.domain.domain.sys.Menu;
import io.ddd.framework.coreclient.dto.common.response.Response;
import io.ddd.framework.coreclient.dto.sys.menu.MenuDeleteCmd;
import io.ddd.framework.do... | 29.03125 | 64 | 0.730893 |
436218c94cb27f6e6906e52e1a4fbc79a7e26a3d | 3,420 | package com.appsmith.server.repositories;
import com.appsmith.server.domains.UserData;
import com.mongodb.client.result.UpdateResult;
import lombok.extern.slf4j.Slf4j;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowi... | 42.222222 | 121 | 0.722807 |
b36a19ef9e1e6bec23ca3f7ff495547ef2481762 | 29,622 | /*
* 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... | 50.549488 | 131 | 0.598744 |
9cea3403651c2921234ff59f627b95916e5dd1cf | 724 | class Solution {
public int[][] floodFill(int[][] image, int sr, int sc, int newColor) {
if(image[sr][sc] != newColor) {
floodFill(image, sr, sc, image[sr][sc], newColor);
}
return image;
}
private void floodFill(int[][] image, int i, int j, int originalColor, in... | 34.47619 | 105 | 0.477901 |
d992cca8fab7ee20b7231c98aacf284ea2085b09 | 1,728 | /*4.18 (Calculador de limite de crédito) Desenvolva um aplicativo Java que
determina se um cliente de uma loja de departamentos excedeu o limite de crédito
em uma conta-corrente. Para cada cliente, os seguintes dados estão disponíveis:
a) Número de conta.
b) Saldo no início do mês.
c) Total de todos os itens cobrados ... | 33.882353 | 86 | 0.743634 |
0202e827a465ab432a4978a9a5efad62d0bd943c | 2,127 | /**
* Approach 1: brute force.
* Use recursion to calculate the sum of each divided section.
* And in each section, we recursively calculate the sum of the rest of the array.
* We use a variable tmp to record [The return value of current division method].
* But what we need is to find a division method that can mi... | 37.982143 | 138 | 0.61307 |
416f0d7833a3ae62920db9a65bab35942359945a | 239 | package org.jeecg.modules.demo.test.service;
import org.jeecg.modules.demo.test.entity.JoaDemo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 流程测试
*/
public interface IJoaDemoService extends IService<JoaDemo> {
}
| 18.384615 | 60 | 0.782427 |
4466b5ed3397cf01073b203275afd66cddcd7be8 | 5,272 | /*******************************************************************************
* Copyright SemanticBits, Northwestern University and Akaza Research
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caaers/LICENSE.txt for details.
*************************************... | 46.654867 | 195 | 0.663885 |
47e3e8b0494147718977b5c29ab24d6c211e4f25 | 1,430 | package cn.bugu.algorithm;
public class LowestCommonAncestorCount {
private int count = 0;
/**
* @param root: The root of the binary search tree.
* @param A and B: two nodes in a Binary.
* @return: Return the least common ancestor(LCA) of the two nodes.
*/
public TreeNode lowes... | 29.791667 | 82 | 0.53007 |
adb517510edd0cb55cdab13bfb58137cabd29fc2 | 14,472 | /*
* 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 u... | 28.376471 | 87 | 0.515616 |
b270ca00194630363c6e9ec2d2d3c7b278683b0d | 1,326 | package com.murphy1.foodlogger.model;
import lombok.Builder;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.ArrayList;
import java.util.List;
@Builder
@Document
public class Cat... | 20.090909 | 89 | 0.645551 |
a98040d9a07021a4e2c21a1f79cf3c9d0e2177aa | 2,092 | package com.mnubo.java.sdk.client.models.datamodel;
import java.util.Set;
public class Timeseries {
private final String key;
private final String displayName;
private final String description;
private final String type;
private final Set<String> eventTypeKeys;
public Timeseries(String key, S... | 27.893333 | 115 | 0.582218 |
74e25d809bd9ab5875719dc3f6dd7907be6e7f85 | 251 | package br.com.talpi.usuario;
public enum PapelUsuarioProjetoEnum {
/** Project Manager */
PM,
/** Apenas um membro que trabalha no projeto */
MEMBRO,
/** Cliente que teve acesso liberado para acompanhar o projeto */
CLIENTE;
}
| 19.307692 | 67 | 0.677291 |
1e5bac706b671f05f9ba185fdd2fa11bb14842a0 | 418 | package org.javaee7.batch.samples.scheduling;
import static javax.batch.runtime.BatchStatus.COMPLETED;
import javax.batch.api.AbstractBatchlet;
import javax.inject.Named;
/**
* @author Roberto Cortez
*/
@Named
public class MyBatchlet extends AbstractBatchlet {
@Override
public String process() {
... | 19.904762 | 56 | 0.720096 |
ebcfaf58bf3ab46c4c6b01ffd9379791191f6f90 | 3,273 | package br.ufg.si.poo.consorcios.telas;
import br.ufg.si.poo.consorcios.modelo.Consorciado;
import br.ufg.si.poo.consorcios.negocio.CadastroConsorciadoService;
import br.ufg.si.poo.consorcios.negocio.exceptions.NegocioException;
import br.ufg.si.poo.consorcios.negocio.impl.CadastroConsorciadoServiceImpl;
import br.ufg... | 26.827869 | 123 | 0.751604 |
50c1df1c973cdba70e5b2cbbe47c335de2c74c11 | 460 | package com.gengine.editor.util;
import com.badlogic.gdx.files.FileHandle;
import java.io.File;
import java.nio.file.Files;
public class FileIO {
public static boolean renameFile(FileHandle fileHandle, String newName) {
File file = fileHandle.file();
File renamed = new File(file.getParent() + Fi... | 21.904762 | 77 | 0.658696 |
50fd4bbcf17a7198ab00552325080cc3be4761a3 | 1,864 | package io.oz.g4.godot2d.scene;
import com.badlogic.gdx.assets.AssetDescriptor;
import com.badlogic.gdx.assets.AssetLoaderParameters;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader;
import com.badlogic.gdx.assets.loaders.FileHandleResolver;
import com.badlog... | 34.518519 | 126 | 0.760193 |
dbc34c6582e4f4f3eecb63985c25bbff46e99d0a | 485 | package org.jax.go;
public class AnnotationTool {
public static void main(String [] args) {
System.out.println("Go Annotation Tool");
if (args.length!=2) {
System.err.println("Usage: java -jar GoAnnotationTool.jar go.obo goa_human.gaf");
System.err.println("\tYou entered " ... | 32.333333 | 97 | 0.618557 |
76d5732825a933a04478dabdc743e206116b9be1 | 18,192 | /*******************************************************************************
* Copyright (C) 2018 DXC Technology
*
* 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... | 29.436893 | 154 | 0.72389 |
debe062015078523edd2336af26f3b12ee816425 | 4,243 | package com.example.example.util;
import android.graphics.Color;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.text.style.URLSpan;
import android.view.View;
import android.wi... | 35.066116 | 135 | 0.596983 |
da45334028d430dfcae7672f852182cb25947984 | 540 | package com.comcast.pop.endpoint.api;
public class BadRequestException extends RuntimeServiceException
{
private static final int statusCode = 400;
public BadRequestException()
{
super(statusCode);
}
public BadRequestException(String message)
{
super(message, statusCode);
... | 19.285714 | 64 | 0.672222 |
fa5863378eff762424ad3d1878b60c3027427b6e | 1,115 | package cl.humankind.humankindcounter.points;
public class GameStatus{
private CounterPoints structure;
private CounterPoints will;
private boolean onGame;
public GameStatus(int structure, int will){
onGame = true;
this.structure = new CounterPoints(structure, 1);
this.will = ... | 21.442308 | 57 | 0.599103 |
e875eca93c01b551ca42e8ba9a6fcf2a6c740b8d | 1,621 | /******************************************************************************
* Copyright (c) 2006, 2010 VMware Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distr... | 31.784314 | 80 | 0.665638 |
c79f9f3bfd336b029910422575a016753bcb4b6a | 1,477 | package com.googlecode.mp4parser.boxes.apple;
import com.coremedia.iso.IsoTypeReader;
import com.coremedia.iso.IsoTypeWriter;
import com.googlecode.mp4parser.AbstractFullBox;
import java.nio.ByteBuffer;
/**
* <h1>4cc = "{@value #TYPE}"</h1>
* This atom carries the pixel dimensions of the track’s production apertur... | 24.616667 | 89 | 0.690589 |
ac98a275c5ae6549919bdb4300f6321135e53641 | 1,697 | package com.drive.member;
import lombok.extern.slf4j.Slf4j;
import lombok.var;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import ja... | 41.390244 | 108 | 0.458456 |
ab151844739be13708f75e18bbaae9b7292ef0a3 | 3,697 | package edu.tamu.app.controller;
import static edu.tamu.weaver.response.ApiStatus.INVALID;
import static edu.tamu.weaver.response.ApiStatus.SUCCESS;
import static edu.tamu.weaver.validation.model.BusinessValidationType.CREATE;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.s... | 39.752688 | 140 | 0.753313 |
a86f3ea940535f014a5d163d2846e19414be0dea | 525 | package kr.co.popone.fitts.viewmodel.store.browser;
import io.reactivex.functions.Consumer;
final class StoreBrowserViewModel$startLoadingTimer$2<T> implements Consumer<Throwable> {
final /* synthetic */ StoreBrowserViewModel this$0;
StoreBrowserViewModel$startLoadingTimer$2(StoreBrowserViewModel stor... | 32.8125 | 93 | 0.740952 |
ee5c585c4b0c32d46a7bcdccb49987b4dd73eeb5 | 3,894 | /*
* 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 bingo.requests;
//import bingoserver.interactions.AssignUserToRoom;
import bingo.GameDelegate;
import bingo.interacti... | 38.554455 | 88 | 0.684386 |
2ff8b12996019238b63872ebd6a75e300651b005 | 1,098 | package net.kernal.spiderman.worker.extract.util;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* 默认链接查找实现
* <Short overview of features>
* <Features detail>
*
* @author qwop
* @date May 21, 2017
* @version [The version number, May... | 23.869565 | 94 | 0.662113 |
7a2c743af8241c8dec24c375605456a4b5ed55dc | 335 | package com.codeka.justconduits.packets;
import net.minecraft.network.FriendlyByteBuf;
/**
* Interface implemented by classes that want to send packets to the client to display in the conduit tool gui.
*/
public interface IConduitToolExternalPacket {
void encode(FriendlyByteBuf buffer);
void decode(FriendlyByte... | 27.916667 | 111 | 0.797015 |
9107e67ddb74dfd2364247cb121b862d36849b64 | 368 | package com.jaku.request;
import com.jaku.core.JakuRequestData;
public class KeypressRequest extends JakuRequestData {
private String key;
public KeypressRequest(String url, String key) {
super(url);
this.key = key;
}
@Override
public String getPath() {
return "/keypress/" + key;
}
@Override
pu... | 15.333333 | 54 | 0.69837 |
5349922a833fa67f2fc62c78e41b135cfaec9e2e | 1,599 | package tsp;
import java.io.*;
import java.util.ArrayList;
public class Report {
ArrayList<Double> overall_bests, iteration_bests, averages;
public Report() {
overall_bests = new ArrayList<Double>();
iteration_bests = new ArrayList<Double>();
averages = new ArrayList<Double>();
}
public void clear() {
o... | 20.766234 | 73 | 0.590369 |
34e364128ec7b21a2861c9afb93fbf61fbb9bc71 | 1,131 | package org.cthul.monad.result;
import java.util.function.Consumer;
import java.util.function.Function;
import org.cthul.monad.Result;
import org.cthul.monad.Unsafe;
import org.cthul.monad.function.CheckedFunction;
public interface NoResult extends NoValue<RuntimeException>, Result<Object> {
@Override
defaul... | 24.586957 | 122 | 0.664898 |
0f361166b9b84cf2c6b8fe9ed707852f6d41e0ee | 634 | package com.zicheng.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.zicheng.domain.User;
import com.zicheng.mapper.UserMapper;
import com.zicheng.service.UserService;... | 21.133333 | 64 | 0.805994 |
d4711193c055c9bee204beece3c1039c24fee0fe | 1,295 | package top.imwonder.mcauth.pojo.responsebody;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import top.imwonder.mcauth.pojo.ServerInfo;
@Compone... | 22.719298 | 66 | 0.70888 |
43dd9fa7ca19a3d569898c6b979e384574e5d65a | 4,056 | package com.cc.company.action;
import java.io.IOException;
import java.util.Date;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONObject;
import org.apache.struts2.ServletActionContext;
import com.cc.company.domain.Notice;
import com.cc.company.domain.PageBean;
import com.cc.company.service.N... | 23.177143 | 82 | 0.713757 |
613ac30d87e3ae3679eb89617b62f4e871c55494 | 252 | package com.g10.ssm.po;
import java.util.List;
public class UserNoticeVo {
private List<UserNoticeKey> list;
public List<UserNoticeKey> getList() {
return list;
}
public void setList(List<UserNoticeKey> list) {
this.list = list;
}
}
| 13.263158 | 48 | 0.702381 |
ba117d74c5fab0513a8f569329bc705325943a3b | 3,850 | /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) 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
*
* Un... | 40.957447 | 130 | 0.729351 |
54839ec114b81d521ac7efa21ac85c6cd631218c | 163 | package com.bullet.costcategorization.domain;
public enum Category {
SALARY,MORTGAGE,TAX,INSURANCE,FOOD,UTILITIES,MEDICAL,SUBSCRIPTIONS,SPORT,SAVINGS,REST;
}
| 27.166667 | 90 | 0.815951 |
5e0903e1516c45c42a16b25af2588b1bfe9cb418 | 598 | package org.recap.model.usermanagement;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
/**
* Created by dharmendrag on 29/11/16.
*/
@Setter
@Getter
public class UserForm implements Serializable {
private Integer userId;
private Str... | 16.162162 | 52 | 0.740803 |
197fd8fae36cc0b4c64e571a30fc923de10f4558 | 767 | package io.github.vampirestudios.raa.items;
import io.github.vampirestudios.raa.generation.materials.Material;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ShearsItem;
import net.minecraft.text.LiteralText;
import net.minecraft.text.Text;
import net.minecraft.text.TranslatableText;
import org.apache.... | 29.5 | 119 | 0.766623 |
42e08d6b54775fcc8d93f5e07ccb1de8ccc21683 | 1,819 | package com.jd.blockchain.ledger.core;
import com.jd.blockchain.ledger.BlockchainIdentity;
import com.jd.blockchain.ledger.BytesValue;
import com.jd.blockchain.ledger.DataVersionConflictException;
import com.jd.blockchain.ledger.EventInfo;
import com.jd.blockchain.ledger.EventPublishOperation;
import utils.Bytes;
/*... | 34.980769 | 175 | 0.715778 |
5431f3bff47355ad1007030604af980b73b02cc9 | 513 | package com.sillygames.killingSpree.networking.messages;
import com.sillygames.killingSpree.pool.Poolable;
public class EntityState implements Poolable{
public short id;
public byte type;
public float x, y;
public float angle;
public short extra;
public float vX, vY;
... | 19 | 57 | 0.532164 |
686a38d1a8b72bd334d05e2f8b54809487d48bf0 | 3,955 | /*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.progress;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;
import org.hamcrest.Match... | 35 | 100 | 0.670544 |
68f6956b6176a4aacc3a52a2b4928ed26fec1628 | 1,456 | package artifacts.common.item.curio.feet;
import artifacts.Artifacts;
import artifacts.common.config.ModConfig;
import artifacts.common.item.curio.CurioItem;
import com.google.common.collect.Multimap;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.ai.attributes.Attribute;
import net... | 41.6 | 205 | 0.758242 |
ba575055a94ff7b73b527c6e29b0a887bdf9c429 | 261 | package InterfaceLayer;
/**
* Created by Konumsal PC11 on 10.5.2016.
*/
public interface IEntityView {
public String toStringName();
public void setId(Long id);
public Long getId();
public Long getMid();
public void setMid(Long mid_);
}
| 18.642857 | 41 | 0.678161 |
0cd6f67c46ca343ab97209167a9428cbbcad1ebe | 1,825 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package org.jetbrains.kotlin.js.backend.ast;
import org.jetbrains.kotlin.js.util.AstUtil;
import org.j... | 24.662162 | 80 | 0.672877 |
d64ab9f1bc7280667d1a512ac9e3e3f5f38446c2 | 585 | package online.damfood.damfood.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class OrderDetail {
@SerializedName("id_produk")
@Expose
private Integer idProduk;
@SerializedName("qty")
@Expose
private Integer qty;
public Integer... | 18.870968 | 50 | 0.654701 |
0641739b6074606db23afdc0785a2657d2324adf | 595 | package no.nav.tag.tiltaksgjennomforing.avtale;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
import static org.assertj.core.api.Assertions.assertThat;
class NavIdentTest {
@ParameterizedTest
@CsvSource(value = {
"xxxxxx,false",
... | 28.333333 | 67 | 0.658824 |
44cc07f8813bfc1c66b2ee425d7a1a5737469d08 | 1,198 | public class DoWhile {
public static void main(String[] args) {
int counter = 3;
// // If Condition check
// if (counter > 20)
// System.out.println("Value of Counter is " + counter);
// // For Loop
// System.out.println("Counter value BEFORE For Loop is " + counter... | 33.277778 | 77 | 0.479967 |
36dea9d5234793e4c4a371b4839ddb2dbc95d7c9 | 4,989 | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | 32.607843 | 118 | 0.685308 |
3b4d61b35dda1278a56d507058716519c51a0a59 | 3,291 | package com.honyum.elevatorMan.view;
import android.media.MediaPlayer;
import android.media.MediaRecorder;
import android.os.Environment;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class AudioRecorder implements RecordStrategy {
private Med... | 27.655462 | 94 | 0.584625 |
519d4a04d1f7bf35ab6e947e059404b57a9aa4e7 | 64,083 | package de.azrael.listeners;
import java.awt.Color;
import java.sql.Timestamp;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.strea... | 62.888126 | 398 | 0.677652 |
ea9585a404bdf4e717785c3d34b883b66153d72e | 307 | package com.api.yirang.email.dto;
import lombok.Data;
import lombok.RequiredArgsConstructor;
@Data
@RequiredArgsConstructor
public class EmailValidationRequestDto {
private final String certificationNumbers;
public EmailValidationRequestDto() {
this.certificationNumbers = null;
}
}
| 19.1875 | 46 | 0.775244 |
422e87083e84561ee978f1c764134244821a3b4c | 456 | package com.vinitello.network.base;
import java.io.IOException;
import java.net.Socket;
import com.vinitello.network.INetworkSession;
public abstract class BaseNetworkSession implements INetworkSession {
private final Socket socket;
protected BaseNetworkSession(Socket socket) {
this.socket = socket;
}
@Over... | 17.538462 | 69 | 0.763158 |
8a797528ce6c865bf76d8b87be4b0f6881c63b72 | 18,329 | package com.vijay.jsonwizard.presenters;
import java.io.File;
import java.util.Date;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.rengwuxian.materialedittext.MaterialEditText;
import com.rey.material.widget.Switch;
import com.vijay.jsonwizard... | 44.060096 | 140 | 0.620874 |
f92c2ac50f841ee41f7e0cbefdbaa5418e8d4a9b | 4,817 | package cz.valkovic.boolparser;
/*
* Created by Patrik Valkovic
* Part of BooleanParser
*/
import cz.valkovic.boolparser.SyntaxTree.*;
import java.util.HashSet;
import java.util.Set;
public class SyntaxAnalyze {
private static String mess = "Parser error";
private static boolean debug = false;
pr... | 26.467033 | 73 | 0.467718 |
0f26927c207e60ac2852d3c989f4db7c6fa9210c | 250 | package com.p.s.pinpoint.dao;
import com.p.s.pinpoint.model.AgentInfo;
import java.util.List;
public interface AgentInfoDao {
AgentInfo getInitialAgentInfo(String agentId);
List<AgentInfo> getInitialAgentInfos(List<String> agentIds);
}
| 17.857143 | 64 | 0.772 |
b9daf248bcce2b401d932e9b1b8388936307766a | 258 | package cn.xxt.customwidget.thinkinginjava.collection.reference17_12;
/**
* @Author zhq
* @Date 2019-11-22-11:59
* @Description
* @Email 1457453696@qq.com
*/
public class Value extends Element {
public Value(String id) {
super(id);
}
}
| 18.428571 | 69 | 0.674419 |
ad651f7b88987754cd053be9ce7c086aaf52c6a3 | 695 | package net.savantly.aloha.importer.domain.gnddrwr;
import org.springframework.stereotype.Service;
import net.savantly.aloha.importer.dbf.AbstractDbfImporter;
import net.savantly.aloha.importer.dbf.AlohaTable;
import net.savantly.aloha.importer.dbf.ImportIdentifiableRepository;
import net.savantly.aloha.importer.doma... | 30.217391 | 113 | 0.831655 |
0e2776801c6a454d6e8b6b46257a79774dbcd560 | 47,847 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|// Copyright (C) 2015 The Android Open Source Project
end_comment
begin_comment
comment|//
end_comment
begin_comment
comment|// Licensed under the Apache License, Version 2.0 (the "License");
end_comment
begin_comment
comment|// you m... | 14.278424 | 177 | 0.808494 |
28d5a80c00d1bcbd5a37a27aa353d506c846d9a8 | 1,549 | package com.shenjinxiang.spb.domain;
/**
* @Author: ShenJinXiang
* @Date: 2020/4/28 15:30
*/
public class Book {
private int id;
private String name;
private String author;
private String type;
private String publicationDate;
private String description;
public int getId() {
ret... | 20.381579 | 64 | 0.534538 |
f00b039d993e21c6c0abef0b2c7ba73920eb3368 | 1,496 | package com.aaron.justlike.online.preview;
import android.content.Context;
import android.content.Intent;
import com.aaron.justlike.common.http.download.DownloadIntentService;
import java.io.File;
class PreviewModel implements IPreviewContract.M {
private static final String PATH = "/storage/emulated/0/Picture... | 31.166667 | 103 | 0.598262 |
5dcf47e33635c32aedf46b8e83756f19cde30e0c | 6,564 | package io.github.winx64.sse;
import io.github.winx64.sse.command.CommandReload;
import io.github.winx64.sse.command.CommandTool;
import io.github.winx64.sse.configuration.SignConfiguration;
import io.github.winx64.sse.configuration.SignMessage;
import io.github.winx64.sse.handler.VersionAdapter;
import io.github.winx... | 37.508571 | 116 | 0.69546 |
c91fcdedee8a920cdcb3d84c2431e328de1ab6df | 321 | package duelistmod.abstracts;
public abstract class HiddenCard extends DuelistCard
{
public HiddenCard(String ID, String NAME, String IMG, int COST, String DESCRIPTION, CardType TYPE, CardColor COLOR,CardRarity RARITY, CardTarget TARGET)
{
super(ID, NAME, IMG, COST, DESCRIPTION, TYPE, COLOR, RARITY, TARGET);
}
}... | 32.1 | 154 | 0.772586 |
e01643b3b7d5157e9d6c9961cc397d0f6d68a75f | 177 | package com.crowdin.cli.utils.http;
import java.io.PrintWriter;
@FunctionalInterface
interface HttpListener {
void accept(HttpRequest request, PrintWriter responseOut);
}
| 19.666667 | 62 | 0.80226 |
747fb8eb8d940e1ddd242a3433ffe98668ca67c7 | 5,607 | package com.mathgame.plugin.tictactoe.selection;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.mathgame.R;
import com.mathgame.plugin.tictactoe.TTTConstants;
import com.mathgame.plugin.tictactoe.game.TTTGameActivity;
import com.mathgame.structure.BaseActiv... | 33.57485 | 114 | 0.639736 |
80cc63111b1352c51919224456e405d3d1c88c40 | 2,965 | package com.zhidian.test;
import org.springframework.util.StringUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
/**
* Created by 江俊升 on 2019/3/14.
*/
public class TestHuiwen {
public static void main(String[] args) {
String test = "aab";
System.out.println("是否... | 22.126866 | 66 | 0.477572 |
374eddbbe7626150f794140badab09e17a984907 | 345 | /**
*
*/
package dao;
import java.util.List;
import models.TweedleRequest;
public interface TweedleRequestDao {
public TweedleRequest saveRequest(TweedleRequest tweedleRequest);
public List<TweedleRequest> getRequestsByUserId(String userId);
public TweedleRequest getRequestByUserIdAndTweedle(String u... | 21.5625 | 85 | 0.791304 |
c5b6be634377a3b433f2945920a270a7360b3e6a | 3,700 | package com.verdantartifice.primalmagick.common.network.packets.fx;
import java.util.function.Supplier;
import com.verdantartifice.primalmagick.client.fx.FxDispatcher;
import com.verdantartifice.primalmagick.common.network.packets.IMessageToClient;
import com.verdantartifice.primalmagick.common.tiles.crafting.Spellcr... | 38.947368 | 156 | 0.633514 |
9ae35f6fc7303ccf708b50627037298a244aff06 | 350 | package com.brightcove.player.samples.cast.basic;
final class Constants {
static final String INTENT_EXTRA_VIDEO_ID = "videoId";
static final String INTENT_EXTRA_AD_CONFIG_ID = "adConfigId";
static final String PROPERTY_LONG_DESCRIPTION = "long_description";
static final String PROPERTY_SHORT_DESCRIPT... | 31.818182 | 73 | 0.788571 |
982f0a44fca667df77bd93f69a12781cf99ed15b | 1,898 | /* ###
* IP: GHIDRA
*
* 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 writin... | 37.215686 | 117 | 0.74078 |
6e9d0f0a978d245f7ad1ae47d64403db6c3cd9db | 7,226 | package cellsociety.Model;
import cellsociety.Rule.RulesInterface;
import cellsociety.cell.Cell;
import cellsociety.cell.IllegalCellStateException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.*;
import javafx.scene.Node;
public class Model {
// Model.clas... | 33.453704 | 159 | 0.696513 |
d886126a4c3bc367c61d340e94fdd127e22f76d7 | 6,257 | /*
* Copyright (C) 2013 Universidad de Alicante
*
* 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 Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This progr... | 33.639785 | 88 | 0.57168 |
405f0cabae3050c69e93960a59a3b8310ad969cc | 3,357 | package de.homelab.madgaksha.lotsofbs.cutscenesystem.fancyscene;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.Scanner;
import org.apache.commons.lang3.StringUtils;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.g2d.Batch... | 27.975 | 123 | 0.75216 |
349e627c803932d421ba822e0f791822e299d3d5 | 11,172 | package net.corda.examples.obligation.contract;
import com.google.common.collect.ImmutableList;
import net.corda.core.identity.CordaX500Name;
import net.corda.examples.obligation.Obligation;
import net.corda.examples.obligation.ObligationContract;
import net.corda.testing.contracts.DummyContract;
import net.corda.test... | 58.1875 | 180 | 0.635428 |
3196ed3347bb3d8b7d21960896b53a5510644c03 | 9,185 | import weka.core.Instance;
import weka.core.Instances;
import weka.filters.Filter;
import weka.filters.unsupervised.instance.Normalize;
import weka.filters.unsupervised.instance.RemoveRange;
import java.io.FileReader;
import java.io.IOException;
import java.util.Arrays;
import java.util.Random;
class Main {
private... | 33.4 | 187 | 0.643985 |
1480ce794f6c616589b47d61c05cd64eea1a1925 | 22,531 | package com.juchao.upg.android.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.juchao.upg.android.entity.MaintenaceTaskEquipment;
import co... | 29.034794 | 99 | 0.649461 |
219578104e9c3ffbc1418d055fe47663512f1196 | 11,858 | package com.ergonautics.ergonautics;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.support.test.runner.AndroidJUnit4;
import com.ergonautics.ergonautics.models.Board;
import com.ergonautics.ergonautics.models.DBMode... | 42.199288 | 137 | 0.67971 |
6ceabf140b4e2bc8802eaaf7573a5d7643c8077d | 2,266 | package org.jenkinsci.plugins.pipeline.maven;
import java.util.Objects;
import javax.annotation.Nonnull;
/**
* @author <a href="mailto:cleclerc@cloudbees.com">Cyrille Le Clerc</a>
*/
public class MavenDependency extends MavenArtifact {
private String scope;
public boolean optional;
@Nonnull
publi... | 27.975309 | 78 | 0.53707 |
227847e89b2bed5076b8c4e2f052648e1874ce65 | 8,555 | /* GENERATED SOURCE. DO NOT MODIFY. */
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html#License
/*
*******************************************************************************
* Copyright (C) 2014, International Business Machines Corporation and ... | 49.738372 | 90 | 0.567271 |
cbad23feb814c799b899139f0d704060bba7ad55 | 3,572 | package pl.dreamlab.persistentcollectionsbenchmark.set.plan;
import io.lacuna.bifurcan.Set;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.organicdesign.fp.collections.PersistentHashSet;
... | 35.366337 | 122 | 0.673572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.