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 |
|---|---|---|---|---|---|
4281f749d270a1057dfb2deb72d27e6a52b32ebc | 385 |
/**
* Clasa unui nod ce tine informatia de tip string.
*
* @author Alin
*
*/
public class StringNode extends Node {
private String info;
public StringNode() {
}
public String getInfo() {
return info;
}
public void setInfo(String info) {
this.info = info;
}
/*
* @see Node#accept(Visitor)
*/
... | 12.833333 | 51 | 0.633766 |
7bee447aa16e6cfe0acef9babc088c2420474844 | 546 | package main.java.com.octaviocega.effectivejavaexcercises.chapter1.item2builder;
public class Main {
public static void main(String[] args){
// Notice that customer can not be created using a constructor
//Customer customer = new Customer();
// Customer object will always have its require... | 34.125 | 85 | 0.677656 |
7fb52fcccd8e25da161be056cd73151f0a0ceed6 | 6,688 | /**
* 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... | 37.363128 | 98 | 0.732955 |
624b8dde0706cbe348fdbd5daab2f984d1e272bf | 4,775 | package enderpower.backups;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import enderpower.blocks.tileentity.TileEntityMetalEnchanter;
import enderpower.items.EnderpowerItems;
import enderpower.main.R;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import ... | 35.37037 | 231 | 0.686911 |
972a5ffb2eb016fdd1d438c7526bdf92b7e0dc39 | 1,271 | package iskallia.itraders.util;
import javax.annotation.Nonnull;
import iskallia.itraders.Traders;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
/**
* Class: NBTHelper
* Created by HellFirePvP
* Date: 16.10.2019 / 20:09
*/
public class NBTHelper {
@Nonnull
public static N... | 26.479167 | 100 | 0.667191 |
760b31604855af4d1b70f810cdd5440656850ebc | 2,622 | package homework.part1.percolation;
/**
* http://coursera.cs.princeton.edu/algs4/assignments/percolation.html
*/
import edu.princeton.cs.algs4.StdOut;
import edu.princeton.cs.algs4.StdRandom;
import edu.princeton.cs.algs4.StdStats;
public class PercolationStats {
private final double meanVal;
private final... | 33.615385 | 75 | 0.584287 |
277790784f731034c8369fde004b0cabeb193fa6 | 2,665 | /*
* (C) Copyright 2020 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... | 34.61039 | 82 | 0.771857 |
a792ca20be11d72a50befb3095738cc5d551f02d | 7,399 | package github.tornaco.xposedmoduletest.ui.activity.ag;
import android.Manifest;
import android.annotation.TargetApi;
import android.app.Fragment;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.SwitchPreference;... | 43.017442 | 112 | 0.614272 |
725d4f23cf607bae57f652972d033f2468f2b213 | 3,996 | package com.mauriciotogneri.mandy.input;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import com.mauriciotogneri.mandy.screen.Camera;
public class Input implements OnTouchListener
{
private final Object touchLock = new Object();
private final... | 26.818792 | 102 | 0.511512 |
a1f7e835fea8658d6f9053ca8ed67ba8c7c16c6b | 4,302 | package com.librato.metrics.client;
import java.util.*;
public class TaggedMeasure extends AbstractMeasure {
private double sum;
private long count;
private double min;
private double max;
private List<Tag> tags = new LinkedList<>();
public TaggedMeasure(GaugeMeasure measure) {
super(... | 28.872483 | 108 | 0.555788 |
ddb54cd32adb6447f2a2bd9ea8c30fc768fbc7c7 | 1,364 |
package android.aspen.leidos.com.sri.data;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
... | 23.517241 | 130 | 0.583578 |
1665ab1b4a34d9aada4289584f282660ff54ac38 | 3,448 | package ldbc.snb.datagen.entities.dynamic.person;
import org.apache.hadoop.io.Writable;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.Serializable;
import java.util.Objects;
public final class PersonSummary implements Writable, Serializable {
private long account... | 28.495868 | 113 | 0.62326 |
8668a65a019430db804e7dcfc89fb3f8363b120b | 322 | /**
*
*/
package org.javarosa.core.services.locale;
/**
* @author ctsims
*
*/
public class LocaleTextException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = -2852964609244258589L;
public LocaleTextException(String message) {
super(message);
}
... | 16.1 | 71 | 0.649068 |
09838831f84b1ca042b9e0570d85f4f71e05a85b | 456 | //package org.funtime.client;
//
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.boot.test.SpringApplicationConfiguration;
//import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
//
//@RunWith(SpringJUnit4ClassRunner.class)
//@SpringApplicationConfiguration(cla... | 26.823529 | 73 | 0.778509 |
d3ecec01931c6e5abe356ec203289ee33a557ec8 | 1,883 | package org.infinispan.client.hotrod.impl.protocol;
import java.io.IOException;
import java.io.OutputStream;
import org.infinispan.client.hotrod.impl.transport.Transport;
import org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport;
import net.jcip.annotations.NotThreadSafe;
/**
* Implements an {@link Outpu... | 25.794521 | 84 | 0.643654 |
bc69d5e03c8672d3d8cad1159abadb786433ac6e | 13,597 | package org.uniprot.api.aa.controller;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.emptyOrNullString;
import static org.hamcrest.Matchers.emptyString;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Ma... | 50.546468 | 157 | 0.528867 |
85ce3809a974d54c9d6a12b77eaa8e37d57dd94a | 2,255 | /*
* 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 ... | 34.692308 | 94 | 0.743237 |
58d9da35d5a38aa5608fb8d8b84f5d59a8a635b9 | 404 | package io.github.qf6101.rmisdk.base;
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
* User: qfeng
* Date: 15-11-11 下午5:00
* Usage: RMI绑定接口
*/
public interface IBound extends Remote {
/**
* 检测心跳
*
* @param clientMessage 客户端发上来的检测信息
* @return 服务端返回心跳信息
* @throws RemoteExc... | 19.238095 | 66 | 0.673267 |
d870debf53806541928cd397452fcbaf45317a30 | 7,390 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the repository root.
package com.microsoft.tfs.client.common.framework.resources.command;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.core.resources.IResou... | 34.694836 | 116 | 0.690798 |
e49d17555c8c33dca8e07c86266cb187020fee91 | 1,917 |
/*******************************************************************************
* Copyright 2021 Dell 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/lice... | 37.588235 | 100 | 0.701617 |
7032fcced126e170f8398a680586d0db5a8390ca | 3,622 | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package co... | 40.696629 | 97 | 0.786582 |
3c087bb11176171a4d6b07ff18594c5b0b77c354 | 5,628 | /*--------------------------------------------------------------------------
* Copyright 2004 Taro L. Saito
*
* 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://ww... | 24.469565 | 108 | 0.552594 |
2c41f6cb9292107e5330321089a63bd731e79dcd | 3,200 | import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextArea;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import java.awt.Color;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
public class GasDetector {
p... | 32 | 559 | 0.713438 |
58f5bae6e87ebd6b5146b9e7f434e2635d2bb6ce | 2,762 | package day14.MapversionDoudizhu;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
/**
* @author lbf
* @date 2020/7/30 10:34
*/
public class Poker3 {
public static void main(String[] args) {
HashMap<Integer, String> map = new HashMap<>();
... | 30.351648 | 89 | 0.522085 |
973272d2cd41c9b02a0c9800b26942ffb1a48d89 | 930 | package com.peterwanghao.samples.springboot.autoconfiguration;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.test.context.junit4.SpringRun... | 33.214286 | 107 | 0.783871 |
5bafe18b00c5c97a0c66a5b85655e100726b12ab | 976 | package io.github.noeppi_noeppi.mods.minemention.mentions;
import io.github.noeppi_noeppi.mods.minemention.api.SpecialMention;
import net.minecraft.network.chat.MutableComponent;
import net.minecraft.network.chat.TranslatableComponent;
import net.minecraft.server.level.ServerPlayer;
import java.util.function.Predicat... | 29.575758 | 96 | 0.746926 |
174753e0d19721cc5c6421864b40b22d420fa4a3 | 40,381 | // Copyright (c) 2016, the R8 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 com.android.tools.r8.utils;
import com.android.tools.r8.ClassFileConsumer;
import com.android.tool... | 39.705998 | 103 | 0.724351 |
5243f6033ca6503c535882af5e4d404b91e8e34a | 6,087 | package org.kohsuke.stapler.jelly.issue76;
import org.kohsuke.stapler.ForwardingFunction;
import org.kohsuke.stapler.Function;
import org.kohsuke.stapler.FunctionList;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.TraversalMethodContext;
import org.ko... | 34.585227 | 180 | 0.57286 |
2ffc4f60066885190ff6cf1150adb495dd06cce1 | 468 | package hero.concentrationcamp.mvp.presenter;
import hero.concentrationcamp.mvp.BasePresenter;
import hero.concentrationcamp.mvp.contract.MainContract;
import hero.concentrationcamp.mvp.data.MainActivityDataFactory;
/**
* Created by hero on 2016/11/30 0030.
*/
public class MainActivityPresenter extends BasePresent... | 31.2 | 129 | 0.833333 |
59b840260419d4653f1ba655e4d4c71d7b4de719 | 6,571 | package com.osrsbox.squirrel;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.FileWriter;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.Options;
import or... | 27.26556 | 103 | 0.698067 |
04351c25c835231228b70550a9cb452f7c7e3f91 | 1,597 | /**
*/
package org.iobserve.model.correspondence;
import org.palladiosimulator.pcm.repository.RepositoryComponent;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Component Entry</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* ... | 31.313725 | 130 | 0.647464 |
9d9601235b93b18adc8104b5db3e66dd5b373679 | 4,439 | package com.demo.transfer.domain.service;
import com.demo.transfer.common.MqTemplate;
import com.demo.transfer.domain.factory.TransferRecordFactory;
import com.demo.transfer.domain.model.account.Account;
import com.demo.transfer.domain.model.account.DeductAccountEvent;
import com.demo.transfer.domain.model.transfer.Tr... | 36.68595 | 114 | 0.706465 |
cf89aaf40e13473d68acd3acc0b273baf40b4fca | 1,517 | /*
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... | 29.173077 | 67 | 0.735003 |
fcfd6b2395a14b63f3786a17f5b6b09b326ac83f | 2,012 | /*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | 37.259259 | 125 | 0.771372 |
73355e87202a778b50fb2c6a98279630cc029d44 | 350 | package io.crnk.core.mock.repository;
import io.crnk.core.mock.models.ProjectPolymorphic;
import io.crnk.core.repository.InMemoryResourceRepository;
public class ProjectPolymorphicRepository extends InMemoryResourceRepository<ProjectPolymorphic, Long> {
public ProjectPolymorphicRepository() {
super(Proje... | 29.166667 | 104 | 0.808571 |
07c19958cb07fc80d6351528f4bc48d150249da4 | 972 | package es.usc.citius.hipster.model.problem;
import es.usc.citius.hipster.model.Node;
import es.usc.citius.hipster.model.function.NodeExpander;
/**
* Defines a search problems in terms of a initial node to start with and the node expander
* function that generates new successor nodes. A SearchProblem can be fully d... | 32.4 | 110 | 0.712963 |
e94e701ca400856859227e3fce3efc63f98af18f | 2,283 | package com.api.clustermanage;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import com.api.util.ActiveKeyValueStore;
/**
* Zookeeper-集群管理
* Wa... | 26.241379 | 98 | 0.693386 |
bbb7340398c69040c5b7076f065a599aad26e727 | 1,068 | import java.util.ArrayList;
/**
* Created by davidwestgate on 5/1/15.
*/
public class Organization {
private String name;
private ArrayList<Address> addresses;
/**
* Constructor for Organization data object
* @param name
* @param address
*/
public Organization(String name, Addre... | 20.150943 | 60 | 0.607678 |
e41fb58574e2ef22b18e06d880a3bb0c5e0d92d4 | 3,575 | /*
* $Id: OgexIndexArray.java 3827 2014-11-23 08:13:36Z pspeed $
*
* Copyright (c) 2014, Simsilica, LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistribut... | 31.086957 | 94 | 0.638322 |
6efcddf7e7740f3412d8076036ca8efe165ed3d8 | 1,739 | /**
* Copyright (c) 2009-2011, The HATS Consortium. All rights reserved.
* This file is licensed under the terms of the Modified BSD License.
*/
package org.abs_models.frontend.mtvl;
import org.abs_models.common.WrongProgramArgumentException;
import org.abs_models.frontend.delta.DeltaModellingException;
import org.... | 31.618182 | 102 | 0.658999 |
74faa859c35c8c25122dfa6e487d801ded268a1f | 1,784 | package dynks.cache;
import javax.servlet.http.HttpServletRequest;
/**
* Key retrieving strategy that applies namespace in in form:
* <pre>namespace:uri</pre> which can later be saved in repository.
*
* @author jszczepankiewicz
* @since 2015-04-17
*/
public class NamespacedURIKeyStrategy implements KeyStrategy ... | 27.030303 | 111 | 0.697309 |
0fc40050a7f796367d1da98a7be34ed490d81f05 | 2,069 | package anno16_17.poo.file;
import java.io.*;
import java.util.*;
/**
* Dato un file tipato di interi, supposto ordinato per
* valori crescenti, ed un numero x, si desidera aggiungere
* x al file preservando l'ordine (insertion sort su file).
* A questo scopo si usa un file temporaneo su cui si
* copiano tutti i ... | 30.426471 | 70 | 0.679072 |
371bb59c436cd9903589a486b928e7becaea2885 | 1,886 | package sorm.util;
/**
* 封装常用的字符串操作
*
* @Date 2020/02/18 23:08
* @Created by lan-mao.top
*/
public class StringUtils {
/**
* 将字符串转为UpperCamelCase风格
* @param str 目标字符串
* @return 首字符大写的字符串
*/
public static String toUpperCamelCase(String str) {
String[] list = str.split("_");
... | 28.149254 | 88 | 0.531813 |
a614c510c7f73705a85f828dbffde1b1d139afda | 1,759 | /*
* Copyright 2019 DeNA Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 27.484375 | 81 | 0.616259 |
257aba6bdfeff62cf6b6d833ee2dfd3a04905817 | 8,620 | /**
* NotifyWorkersRequest.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.amazonaws.mturk.requester;
public class NotifyWorkersRequest implements java.io.Serializable {
private java.lang.String subject;
private java... | 32.775665 | 138 | 0.606729 |
e6c4012a55f46f14c58c90b6f19287036bccfbd4 | 6,135 | package com.project.convertedCode.globalNamespace.namespaces.Monolog.namespaces.Handler.classes;
import com.runtimeconverter.runtime.references.ReferenceContainer;
import com.runtimeconverter.runtime.passByReference.PassByReferenceArgs;
import com.runtimeconverter.runtime.references.BasicReferenceContainer;
import com... | 42.604167 | 111 | 0.633904 |
954ab77fbf6599bc76eff93b6b1953bf09e82c43 | 904 | package org.jeecg.modules.salary.service;
import org.jeecg.modules.salary.entity.CostManagement;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.http.ResponseEntity;
import java.util.List;
/**
* @Description: 成本管理
* @Author: jeecg-boot
* @Date: 2020-08-13
* @Version: V1.0
... | 18.833333 | 78 | 0.658186 |
1ca3f2569e461312464520854ab911016266a60b | 5,365 | /******************************************************************
* Copyright (C) 2002-2005 Andrew Girow. All rights reserved. *
* ---------------------------------------------------------------*
* This software is published under the terms of the TinyLine *
* License, a copy of which has been included wi... | 34.612903 | 99 | 0.618826 |
47cbf1abc3301c9c2b4af68c1340ebd80cab1533 | 562 | import java.util.Scanner;
/**
* Created by Atanas on 17/02/2017.
*/
public class Test {
public static void main(String[] args) {
//for (int i = 0; i < 26; i++) {
// char upper = (char) ('A' + i);
// char lower = (char) ('a' + i);
// System.out.println(upper +" "... | 25.545455 | 55 | 0.450178 |
42379c78544428dc2b0064eee9b5e8a3f1e6ebd1 | 136 | package site.hanschen.pretty.widget;
/**
* @author HansChen
*/
public interface FragmentBackHandler {
boolean onBackPressed();
}
| 15.111111 | 38 | 0.727941 |
b29d069380149776532d0c1f81580f8ada30bbe4 | 719 | package com.softplan.apigerenciarprocessos.modules.usuarios.entities;
import java.io.Serializable;
public class AuthenticationRequest implements Serializable {
private static final long serialVersionUID = 1L;
private String email;
private String senha;
public String getEmail() {
return email;
}
p... | 19.972222 | 69 | 0.709318 |
b298ca31bcb60b5af9ffc05d57aaa562d16e4f65 | 126 | package com.sachinvarma.betterdoctor.model;
public class SpecialisationModel {
public String uid;
public String actor;
}
| 18 | 43 | 0.793651 |
4db33447f5aa342a0094a68fb569e43b1ca62953 | 9,691 | /*
* 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 ... | 33.302405 | 90 | 0.630276 |
56ac0c490f73d56c256efea5c407266cd3e7faeb | 3,158 | package com.ruoyi.project.production.filesource.controller;
import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.exception.BusinessException;
import com.ruoyi.framework.jwt.JwtUtil;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com... | 28.709091 | 95 | 0.682077 |
5ae012afc9d2126f563be451b5efb9e3c0808827 | 1,213 | package de.hsh.drangmeister.sepgp.gp.operator.crossover;
import de.hsh.drangmeister.sepgp.gp.Gene;
import de.hsh.drangmeister.sepgp.gp.Genome;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class SinglePointCrossover implements ICrossover {
private int maxGenomeSize;
priv... | 26.955556 | 75 | 0.596867 |
242cb76e9c596b9649d2889b5dbfe186beb626a2 | 8,084 | /*
* Copyright 2017-2020 Rudy De Busscher (https://www.atbash.be)
*
* 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 requir... | 44.174863 | 166 | 0.701014 |
47fc7a9c5354cb78aa4541a305dd294ad2d807ce | 11,985 | package eu.fbk.knowledgestore.datastore;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.Nullable;
import com.google.common.base.Function;
import com.google.common.base.MoreObjects;
import ... | 38.047619 | 100 | 0.613016 |
5e345729620fba83ef78d478c9a04eacd47bb240 | 3,189 | package org.hypergraphdb.app.owl.model.axioms;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.hypergraphdb.HGHandle;
import org.semanticweb.owlapi.model.AxiomTy... | 29.803738 | 130 | 0.752901 |
2a0269fc77b5b022f034f4f6e4f1a2d3486c31dd | 7,284 | package org.d3ifcool.finpro.core.presenters;
import android.content.Context;
import android.widget.Toast;
import org.d3ifcool.finpro.R;
import org.d3ifcool.finpro.core.helpers.ConnectionHelper;
import org.d3ifcool.finpro.core.interfaces.lists.KoorListView;
import org.d3ifcool.finpro.core.interfaces.objects.KoorView;
... | 36.238806 | 136 | 0.597474 |
daf5bee8bc992778d1637b5a80a30bdfd8cf945d | 548 | package Interpolator;
public class ImageBSplineInterpolator extends ImageBicubicInterpolator {
public ImageBSplineInterpolator(int targetWidth, int targetHeight) {
super(targetWidth, targetHeight);
}
@Override
protected double getYByFunction(double x) {
// B样条函数的基函数计算过程。
double absoluteX = Math.a... | 24.909091 | 72 | 0.64781 |
f6dd6bbc7d4da22975fee9594067160f6604b8e8 | 10,298 | /*
* Copyright (c) 2011-2019, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... | 33.326861 | 125 | 0.763158 |
dc45242b259e9d62180bd8ca7df26227afd399a4 | 2,887 | /**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in co... | 40.661972 | 154 | 0.758573 |
0a2b919db647e539ee4e8d135e0faee6b3a81847 | 4,814 | /*
* Copyright 2012 Jim Guistwite
*
* 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 t... | 30.0875 | 116 | 0.703988 |
4eefd78fbc3bfbe685c67c5a525d34b47fd5aa8c | 2,489 | package com.mgilangjanuar.dev.goscele.modules.forum.list.provider;
import com.mgilangjanuar.dev.goscele.base.BaseProvider;
import com.mgilangjanuar.dev.goscele.modules.common.model.CookieModel;
import com.mgilangjanuar.dev.goscele.modules.forum.list.adapter.ForumListRecyclerViewAdapter;
import com.mgilangjanuar.dev.go... | 33.186667 | 122 | 0.654881 |
6989d9ad8b515455a709c8cfce8442a99ffdaeda | 3,575 | package uk.co.automatictester.arrayqueue.test;
import org.testng.annotations.Test;
import uk.co.automatictester.arrayqueue.ArrayQueue;
import static org.testng.Assert.*;
public class ArrayQueueTest {
@Test
public void testOffer() {
ArrayQueue<Integer> queue = new ArrayQueue<>();
boolean adde... | 27.5 | 55 | 0.545175 |
599a31d1e1fe329ac1c8a5d02288adbdc0e52b64 | 651 | import java.util.Scanner;
public class PatternMaking {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter a number you rows you want");
int rows = in.nextInt();
PatternRecursion(rows, 0);
}
public static void Pa... | 29.590909 | 65 | 0.539171 |
20ab048f01f251ab7f490799d65af255665caf2e | 623 | public class main {
public static void main(String[] args) {
System.out.println("Serializing...");
LogFile ob = new LogFile();
ob.filename = "User_Nytro.log";
ob.filecontent = "No actoins logged";
String file = "log.ser";
Utils.SerializeToFile(ob,file);
System.out.println("Deserializing... | 23.961538 | 52 | 0.642055 |
3719b7be7c2ea6a8b522059db58f208bceb9e55b | 3,117 | package io.sada.lmsalestaxes;
import io.sada.lmsalestaxes.receipt.ReceiptPrinter;
import io.sada.lmsalestaxes.receipt.ReceiptTextFormatter;
import io.sada.lmsalestaxes.store.ProductStore;
import io.sada.lmsalestaxes.store.ProductStoreInMemory;
import io.sada.lmsalestaxes.tax.BasicSalesTax;
import io.sada.lmsalestaxes.... | 33.880435 | 119 | 0.623035 |
1a913fc9462bab433c1b6437b4370cfa7eaedb9a | 526 | package org.nextime.ion.admin.form;
import org.apache.struts.action.ActionForm;
public class SectionForm extends ActionForm {
private String _id;
private String _parent;
public String getId() {
return _id;
}
public String getParent() {
return _parent;
}
public void setI... | 16.4375 | 45 | 0.596958 |
989c37f89249885d45ca57853141cd35cf2742c8 | 982 | package com.animationtransmog.config;
import java.util.HashMap;
import java.util.function.Supplier;
public class AnimationTransmogConfigManager
{
HashMap<String, Supplier<String>> configGetters;
public AnimationTransmogConfigManager(AnimationTransmogConfig config)
{
configGetters = new HashMap<>()... | 37.769231 | 98 | 0.702648 |
748ff70505304fd9208c1d1cc3d154bedf1acf37 | 2,526 | /*
* IntPTI: integer error fixing by proper-type inference
* Copyright (c) 2017.
*
* Open-source component:
*
* CPAchecker
* Copyright (C) 2007-2014 Dirk Beyer
*
* Guava: Google Core Libraries for Java
* Copyright (C) 2010-2006 Google
*
*
*/
package org.sosy_lab.cpachecker.cpa.smg.checker;
import org.so... | 28.382022 | 97 | 0.768409 |
2a3fcc47288e1292c89091160f8ae7a95fcad47e | 9,726 | import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.FileNotFoundException;
/**
* @authorFelipe Custódio, Gabriel Scalici
*/
public class Chain {
// image properties
int h; // height
int w; // width... | 25.002571 | 75 | 0.460107 |
f5adca33533968b8aec4e9c628987288248d9c1b | 1,501 | package uk.nhs.nhsx.testkitorder;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
public class TestOrderResponseFactory {
public enum TestKitRequestType { ORDER, REGISTER }
private final Map<TestKitRequestType, String> forwardingUrl;
public Test... | 36.609756 | 100 | 0.688208 |
c60e3eb0a92d55d24d0fff1039dcc5a512ae164f | 387 | package eu.xenit.alfred.initializr.start.extensions.alfred.telemetry.grafana.provisioning;
import java.util.ArrayList;
import java.util.List;
import lombok.Getter;
public class GrafanaProvisioning {
@Getter
private final List<GrafanaDataSource> dataSources = new ArrayList<>();
@Getter
private final... | 22.764706 | 90 | 0.770026 |
de1742ad56165ba3a01a13c2f16d0bbcf81279d6 | 864 | package com.gmail.chickenpowerrr.ranksync.api.data;
import com.gmail.chickenpowerrr.ranksync.api.bot.Bot;
/**
* This interface manages all of the possible databases
*
* @author Chickenpowerrr
* @since 1.0.0
*/
public interface DatabaseFactory {
/**
* Returns a new database if the requested database doesn't... | 27.870968 | 102 | 0.71875 |
91a1cf9d82abb4e2aea741c6a8697ec61db883de | 161 | package ioc.test.usecodebean;
/**
* @author Zexho
* @date 2021/7/31 10:47 上午
*/
public interface BeanTest {
/**
* print
*/
void print();
}
| 12.384615 | 29 | 0.559006 |
d63836e1bea1a82c0263a2051fb2ddd739defb75 | 13,512 | package com.joker17.small.tools;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class ConsoleTable {
/**
* 空格
*/
private static final char SPACE_CHAR = ' ';
/**
* 空元素的默认字符
*/
private static final String NULL_ELE... | 26.44227 | 124 | 0.496004 |
c58101a86e2470a7a1fdecc92474bb1cca620e89 | 2,356 | /******************************************************************************
* Copyright (c) 2015 IBM Corporation.
* 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
... | 23.56 | 79 | 0.642615 |
302691787c21b60e5f9bcf669512baa1f3f713c7 | 712 | package uk.gov.justice.digital.delius.data.api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EnforcementAction {
@ApiModelProperty(req... | 27.384615 | 123 | 0.792135 |
2e177519fa140224439002498552c948b323208f | 6,423 | package com.oxygenxml.cmis.ui;
import java.awt.Rectangle;
import java.util.HashMap;
import java.util.Timer;
import java.util.TimerTask;
import javax.swing.DefaultListModel;
import javax.swing.JList;
import javax.swing.SwingUtilities;
import com.oxygenxml.cmis.core.ResourceController;
import com.oxygenxml.cmis.core.m... | 27.566524 | 95 | 0.620271 |
afa1d5b6db70aacd6027c53894619252e6a79eef | 121 | @ParametersAreNonnullByDefault package com.hjwylde.qbs.compiler;
import javax.annotation.ParametersAreNonnullByDefault;
| 30.25 | 64 | 0.884298 |
be32633603ccd0ee3553aecbd9df4e5f1a06bd5d | 1,221 | package com.appspot.hildy.modules;
import static com.google.appengine.api.datastore.DatastoreServiceConfig.Builder.withReadPolicy;
import com.google.api.client.extensions.appengine.http.UrlFetchTransport;
import com.google.api.client.http.HttpTransport;
import com.google.appengine.api.datastore.DatastoreService;
impo... | 46.961538 | 95 | 0.851761 |
1f553ea271b75a3a4564f63d0f1c4027a9d44e98 | 1,442 | package room.entidades;
import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.ForeignKey;
import android.arch.persistence.room.PrimaryKey;
import static android.arch.persistence.room.ForeignKey.CASCADE;
@Entity(tableName = "GI_COMPRA",
... | 25.298246 | 67 | 0.627601 |
2b08dcc65c9062d7177b3ddb147aa7313a214af1 | 3,206 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 39.097561 | 132 | 0.689956 |
99c9a0b5006cda42685a379bf4633a315a797f3c | 146 | import me.tatarka.autodata.base.AutoData;
@AutoData(defaults = false)
public abstract class ErrorGetNoReturn {
public abstract void test();
} | 24.333333 | 41 | 0.773973 |
fee89492e005da8f6d0fcd16e8d641aa3b375ea7 | 108 | package org.paulobichara.springbootapi.dto.keycloak;
public record RoleMapping(String id, String name) {
}
| 21.6 | 52 | 0.805556 |
2ad0c11e310c8ce208535ef918204b5a4d63e7fa | 5,861 | // Copyright 2019 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 in ... | 42.165468 | 94 | 0.632145 |
9dc31bfdf45f07640402a3a1a96142bd93f42ec9 | 1,084 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos.Rpc.proto
package POGOProtos.Rpc;
public interface GetNotificationInboxOutProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Rpc.GetNotificationInboxOutProto)
com.google.protobuf.MessageOrBuilder {
... | 30.111111 | 94 | 0.712177 |
dd5524823cd90f2c41480a51151d2a039113b7bd | 3,400 | package demo;
import org.simplejavamail.converter.EmailConverter;
import org.simplejavamail.email.CalendarMethod;
import org.simplejavamail.email.Email;
import org.simplejavamail.email.EmailBuilder;
import org.simplejavamail.email.EmailPopulatingBuilder;
import testutil.CalendarHelper;
import javax.mail.internet.Mime... | 50.746269 | 145 | 0.756471 |
ff03c22a66616a17af124b6e3d9e0419662384ea | 1,576 | package util;
/**
* Created by Nick on 1/2/2015.
* <p>
* This class was created because a lot of the Utils classes need to be
* a bit more in depth on the results of their methods than just returning "true"
*/
public class Response {
private boolean isSuccessful = false; //defaults to failed
private bool... | 25.015873 | 81 | 0.646574 |
9c39498231cb549246f44fea6da3520172bceca2 | 1,629 | /*
* Copyright (C) 2015 Mobile Jazz
*
* 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... | 37.022727 | 94 | 0.766728 |
cd6b503bc1149afb12f2abe9c2121de671b2c559 | 280 | package com.atguigu.gmall.auth.feign;
import com.atguigu.gmall.ums.api.GmallUmsApi;
import org.springframework.cloud.openfeign.FeignClient;
/**
* @author lzzzzz
* @create 2020-01-15 21:07
*/
@FeignClient("ums-service")
public interface UmsFeignClient extends GmallUmsApi {
}
| 21.538462 | 55 | 0.771429 |
cb60c11ac42593151308e5ebbac3951e5710d2bf | 2,964 | package cc.zip.charon.mixin.mixins;
import cc.zip.charon.Charon;
import cc.zip.charon.event.events.BlockEvent;
import cc.zip.charon.event.events.ProcessRightClickBlockEvent;
import cc.zip.charon.features.modules.player.TpsSync;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import... | 40.60274 | 209 | 0.755735 |
2e97d4ffe52fddd165ab8665f3e363a7333ccb89 | 581 | package hu.unideb.rft.parkingmanagement.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.time.LocalDateTime;
@Entity
@Table(name = "PARKING_PASS")
@Getter
@Setter
public class ParkingPass extends BaseEntity {
@ManyToOne
@JoinColumn(name = "CAR_ID", nullable = false... | 19.366667 | 59 | 0.724613 |
1f22d20cc8c43cacbda7975bb35aa694ae92ed3b | 6,038 | package org.openkilda.integration.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import java.io.IOE... | 34.112994 | 106 | 0.65419 |
16a1b271d456100990657da7a3ebd0b4a625446e | 4,270 | /*-
* ========================LICENSE_START=================================
* EWeather
* ======================================================================
* Copyright (C) 2018 - 2019 Erwan Le Tutour
* ======================================================================
* Permission is hereby granted, free... | 36.810345 | 116 | 0.683138 |
9d7cb547410bc1e702c600d6a13ccabc2ba888f3 | 1,112 | package problems.easy;
/**
* Problem: https://leetcode.com/problems/reverse-words-in-a-string-iii/
* Time Complexity: O(N)
* Space Complexity: O(N)
*/
class Solution557 {
public String reverseWords(String s) {
int start = 0, end = 0;
boolean isSubstring = false;
StringBuilder result = n... | 27.8 | 72 | 0.482914 |
8be99c329bb63efa3de278251067f2700176f07e | 8,021 | /***********************************************************************
* Copyright (c) 2013-2019 Commonwealth Computer Research, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and... | 43.830601 | 107 | 0.65902 |
7641339c2261d379a015502a562ca316cfdfe2de | 1,096 | package net.minecraft.network.play.client;
import java.io.IOException;
import net.minecraft.item.ItemStack;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayServer;
public class C10PacketCreativeInventoryAction implements Packet {
priv... | 25.488372 | 70 | 0.730839 |
6a2c1cd79f134ccd92ce90fc243066075816ee2c | 1,421 | package com.twu.biblioteca.router;
import com.twu.biblioteca.Service.BibliotecaService;
import com.twu.biblioteca.router.handler.*;
public class BibliotecaRouter {
private RouterContext routerContext;
private final BibliotecaService bibliotecaService;
public BibliotecaRouter(RouterState routerState, Bibl... | 35.525 | 91 | 0.691766 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.