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 |
|---|---|---|---|---|---|
dd58ef630041bc232f4e8a8404e5f6f1477ffaad | 70 | package com.studentmgr.common.messages;
public class InfoMessage {
}
| 14 | 39 | 0.8 |
256984870eba81edcff8896f60b32aeb147a4ba9 | 1,943 | package com.bitdubai.fermat_cbp_api.layer.business_transaction.customer_broke_bank_sale.interfaces;
import com.bitdubai.fermat_cbp_api.all_definition.enums.BankCurrencyType;
import com.bitdubai.fermat_cbp_api.all_definition.enums.BankOperationType;
import com.bitdubai.fermat_cbp_api.all_definition.enums.BusinessTrans... | 52.513514 | 266 | 0.83016 |
547b413950925aa839e8f5ef0828258f4b8a8fb0 | 302 | package eu.qualimaster.common.signal;
/**
* A listener for Curator signals.
*
* @author Cui Qin
*/
public interface SignalListener {
/**
* Is called upon signal reception.
*
* @param data the payload data
*/
public void onSignal(byte[] data);
}
| 17.764706 | 40 | 0.57947 |
a24f163a7125055544b5c52f5f4a3f3a0c252dd3 | 1,245 | package co.enoobong.billablehours.util;
import co.enoobong.billablehours.backend.data.CompanyInvoice;
import co.enoobong.billablehours.backend.data.Invoice;
import co.enoobong.billablehours.backend.data.InvoiceResponse;
import java.util.Collections;
public final class TestUtil {
public static final String CSV_ERRO... | 34.583333 | 138 | 0.767871 |
9b30d010b9599d9ddd387813c866e55af4ba66b9 | 415 | package com.kirilanastasoff.ars.customer.service;
import java.io.File;
import java.io.IOException;
import org.thymeleaf.context.Context;
import com.lowagie.text.DocumentException;
public interface PdfService {
File generatePdf()throws IOException,DocumentException;
File renderPdf(String html)throws IOException... | 20.75 | 65 | 0.814458 |
b69035a8f19b219bbdad8edf62ac6990363a2d2c | 476 | package com.buschmais.xo.api.annotation;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Declares a type as abstract, i.e. it is only allowed to createa an instance
* fr... | 26.444444 | 78 | 0.779412 |
1fe2a6441fb11a077f79b18e13ce1507b61fa1ca | 510 | package com.liuzhihang.doc.view.facade;
import com.liuzhihang.doc.view.facade.dto.ShowDocUpdateRequest;
import com.liuzhihang.doc.view.facade.dto.ShowDocUpdateResponse;
/**
* ShowDoc 文档对接
* <p>
* <p>
* https://www.showdoc.com.cn/page/102098
*
* @author liuzhihang
* @date 2021/7/27 12:43
*/
public interface Sh... | 19.615385 | 85 | 0.696078 |
c86d0b4420e333e0efd8746355824c728c5f69e7 | 4,457 | package com.twu.biblioteca.models;
import com.twu.biblioteca.repository.BookRepository;
import com.twu.biblioteca.repository.LoginRepository;
import com.twu.biblioteca.repository.MovieRepository;
import com.twu.biblioteca.repository.RentRepository;
import org.junit.Before;
import org.junit.Test;
import java.util.Arra... | 39.794643 | 127 | 0.699574 |
b3d01df2b752b7b113f7aca198d1af04ddd5d686 | 3,392 | package headfront.guiwidgets;
import headfront.services.ProcessService;
import javafx.beans.property.SimpleStringProperty;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundFill;
import javafx.scene.l... | 32.932039 | 122 | 0.660672 |
7d5a7bfe1e2639b1998a342815b0f880a037e9ff | 1,412 | /*
* Copyright 2015-2017 Red Hat, Inc. and/or its affiliates
* 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://w... | 35.3 | 88 | 0.71813 |
a16f80f4a425d6a97feeeaae0b161e8376933109 | 842 | package section_17_lendo_txt;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Scanner;
public class ProgramaLerTXT {
public static void main(String[] args) {
File file = new File("src\\section_17_lendo_txt\\herois.txt");
Scanner sca... | 29.034483 | 71 | 0.551069 |
8eac9cc6e9add2d578427a66fb26d8bcf7a75261 | 8,142 | 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... | 16.251497 | 811 | 0.813928 |
63ee361ec13ab9162c179933b67d4b233430d000 | 586 | package lk.ijse.dep.web.library.business.custom;
import lk.ijse.dep.web.library.business.SuperBO;
import lk.ijse.dep.web.library.dto.MemberDTO;
import java.util.List;
/**
* @author : Lucky Prabath <lucky.prabath94@gmail.com>
* @since : 2021-02-05
**/
public interface MemberBO extends SuperBO {
void saveMembe... | 24.416667 | 58 | 0.754266 |
a7a11839e4e73d7608694e78783490aa5012f172 | 4,510 | package com.codingmore.service.impl;
import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.codingmore.dto.PostsPageQueryParam;
import com.codingmore.mapper.RoleResourceRelationMapper;
import c... | 36.08 | 102 | 0.730377 |
bc422a917b3bb57999810668733b409f7bfa3e42 | 900 | package pt.up.fc.dcc.asura.snake.models;
import pt.up.fc.dcc.asura.builder.base.movie.GameMovieBuilder;
import pt.up.fc.dcc.asura.snake.utils.Sprite;
import pt.up.fc.dcc.asura.snake.utils.SpriteManager;
import pt.up.fc.dcc.asura.snake.utils.Vector;
import static pt.up.fc.dcc.asura.snake.SnakeState.TILE_LENGTH;
/**
... | 25 | 63 | 0.676667 |
e6dc247149bf44e3f44134a1b6d8b23f7486fb0d | 918 | package com.zte.iui.layoutit.bean.vm.visibility;
import java.util.ArrayList;
import java.util.List;
public class OrganizeVisibility {
private List<Visibility> visibilityList;
public OrganizeVisibility(String visibility) {
if (visibility != null && !visibility.isEmpty()) {
String[] arr = visibility... | 23.538462 | 60 | 0.618736 |
0885ea7daf807f136b926f41f795637a676a10d4 | 3,360 | /*
* Copyright (c) 2022 Mark S. Kolich
* https://mark.koli.ch
*
* 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,
... | 33.267327 | 74 | 0.714583 |
f8789d8870bb7f4ac2954da2cce13a195d30132b | 264 | /**
* Package contains implementation
* of {@link info.smart_tools.smartactors.base.interfaces.iresolve_dependency_strategy.IResolveDependencyStrategy}
*/
package info.smart_tools.smartactors.ioc_strategy_pack.resolve_by_composite_name_ioc_with_lambda_strategy; | 52.8 | 114 | 0.867424 |
784791303d49d7b1135d7abe368ef1e86b1138e2 | 1,344 | /**
* Copyright 2017 SPeCS.
*
* 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 writi... | 34.461538 | 118 | 0.730655 |
22c737289123d39561e64b9bd1e8a97db7dddad1 | 583 | package com.rest.car.bean;
import org.codehaus.jackson.annotate.JsonProperty;
public class InListDetail {
@JsonProperty("cmd")
private String cmd;
@JsonProperty("name")
private String name;
@JsonProperty("pri")
private int pri;
public String getCmd() {
return cmd;
}
public void set... | 14.219512 | 51 | 0.627787 |
29d815aac1ce258d39f8d91d92079680949f0dfb | 1,457 | package de.m4lik.burningseries.ui.listitems;
/**
* Created by Malik on 12.06.2016.
*/
public class ShowListItem {
public Boolean loaded = false;
private Integer id;
private String title;
private String genre;
private boolean fav;
public ShowListItem(String title, Integer id, String genre, b... | 23.5 | 89 | 0.574468 |
8c98098f37071f83e523ece48e2504e07e7f8799 | 1,122 | package com.gwtjs.icustom.springsecurity.service;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.springframework.stereotype.Component... | 19.344828 | 70 | 0.731729 |
385d3649acb5034a75fad0c345ad3ac52032c80e | 3,419 | /*
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
... | 24.775362 | 109 | 0.688213 |
032225acbc3c76137744d87f89d809c6375447dc | 195 | package mounderfod.moundertweaks.impl;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class MounderTweaks {
}
| 21.666667 | 43 | 0.820513 |
cfd8ef0f8655af9010da2246869d389e2bbcf164 | 3,899 | // Copyright 2021 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 agre... | 44.816092 | 159 | 0.760708 |
7af4d01f818c717e29378abc3a8b0c058b21070a | 729 | package com.jbd.saop.around;
import com.jbd.saop.around.dao.UserRepository;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
@SpringJUnitConfig(Application... | 25.137931 | 72 | 0.78738 |
52ddcf190e2b26f57982be7cd59a6cbd1a4eebe3 | 11,852 | package com.paypal.core.nvp;
import java.util.HashMap;
import java.util.Map;
import com.paypal.core.APICallPreHandler;
import com.paypal.core.Constants;
import com.paypal.core.CredentialManager;
import com.paypal.core.credential.CertificateCredential;
import com.paypal.core.credential.ICredential;
import com.paypal.c... | 27.371824 | 112 | 0.710344 |
145c5a69fbabde4490d99cb216e28b1d65762399 | 2,579 | package db;
import Interfaces.Communicator;
import javacard.security.PrivateKey;
import javacard.security.PublicKey;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
/**
* @author Matti Eisenlohr
* @author Egidius Mysliwietz
* @author Laura Philipse
* @author Alessandra van Veen
*... | 30.702381 | 80 | 0.630865 |
0e0c6e408899a3a5bef14390a65ad1f60dd4e504 | 21,907 | /*******************************************************************************
* Copyright (c) 2009, 2014 IBM Corp.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany ... | 31.887918 | 191 | 0.620076 |
14bf87e4550c469e071b9e174706c1b19a4a5ee5 | 2,460 | /*
* Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html... | 30 | 118 | 0.767886 |
41c7ddea29f5be28f0cfe23b904410384d5bc1e4 | 4,343 | package tss.tpm;
import tss.*;
// -----------This is an auto-generated file: do not edit
//>>>
/**
* TPM2_Commit() performs the first part of an ECC anonymous signing operation. The TPM will perform the point multiplications on the provided points and return intermediate signing values. The signHandle parameter sha... | 33.152672 | 301 | 0.635045 |
4c5ad66e013353a7f6810bbfd22599d0ebe64b00 | 1,905 | // Less probability
/*
Count number of squares in a rectangle
Given a m x n rectangle, how many squares are there in it?
${number of squares in matrix.png}
Let us first solve this problem for m = n, i.e., for a square:
For m = n = 1, output: 1
For m = n = 2, output: 4 + 1 [4 of size 1×1 + 1 of size 2×2]
For m =... | 26.830986 | 101 | 0.573228 |
42982b9cd7d084b9d441bb6007df71cf114a8d80 | 2,929 | /*
* Copyright 2004-2010 the Seasar Foundation and the Others.
*
* 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 ... | 31.159574 | 99 | 0.717992 |
f9ed47d9c0158f77ffb6e9e6dcc3216c4c126d94 | 754 | package br.ufcg.ppgcc.compor.ir;
public class FontePagadora {
private String nome;
private String cpfCnpj;
private double rendimentoRecebidos;
private double impostoPago;
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String getCpfCnpj() {
ret... | 17.534884 | 65 | 0.749337 |
92727c921a6964d4c36247b233ca37ecbf5baffd | 4,298 | package org.ahocorasick.interval;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class IntervalNode {
private enum Direction {LEFT, RIGHT}
private IntervalNode left;
private IntervalNode right;
private int point;
private List<Intervalable> intervals = new... | 34.66129 | 98 | 0.587483 |
6e088cf3a931bb4a132d95f7ad93d2a355ffb3dc | 214 | package com.example.mybatis.plus.demo.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mybatis.plus.demo.model.User2;
public interface UserMapper2 extends BaseMapper<User2> {
}
| 23.777778 | 56 | 0.817757 |
7277564fe0323b0739a70b102d436ca922d35cd9 | 101 | package net.cubedserver.webservices.dto;
public interface HasValidator {
boolean isValid();
}
| 12.625 | 40 | 0.752475 |
c4bec88582921754847eb104600d2f13ba7c12b1 | 60,108 | package org.seng302.user;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.seng302.exceptions.*;
import org.seng302.model.*;
import org.seng302.model.enums.BusinessType;
import org.seng302.model.enums.Role;
import java.time.LocalDate;
impor... | 34.132879 | 131 | 0.5187 |
9b1d3010d1753a5a0ab4dd877d07abf8b1827347 | 3,126 | package net.openid.conformance.condition.client;
import com.google.gson.JsonObject;
import net.openid.conformance.condition.Condition;
import net.openid.conformance.condition.ConditionError;
import net.openid.conformance.logging.TestInstanceEventLog;
import net.openid.conformance.testmodule.Environment;
import org.jun... | 29.214953 | 76 | 0.760717 |
1f53a76b14a6e0c501cfc0e611e79a09e8509ce5 | 1,857 | package com.ttnn.business.wm.controller.zk;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import o... | 30.442623 | 65 | 0.739365 |
40cbfc95dbe1bfc27196db8a2abb8a1cdedf3b2d | 3,606 | package primal.bukkit.nms;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import io.netty.channel.Channel;
import org.bukkit.entity.Player;
import primal.bukkit.plugin.PrimalPlugin;
import primal.lang.collection.GMap;
public abstract class CatalystPacketListener i... | 18.304569 | 93 | 0.641986 |
5406eaa8a02da26a0d798b03280448ec1e5b69a9 | 4,206 | package com.simcoder.bimbo.Admin;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
i... | 37.891892 | 231 | 0.647884 |
89b715e7b520281bb7e64249a7c76cc7f4346aea | 8,477 | package com.example.uploadingfiles;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Map;
import java.util.Queue;
import java.util.stream.Collectors;
import com.example.uploadingfiles.fileParsing.DataObject;
import ... | 39.427907 | 114 | 0.745783 |
ae722b84238b26e618076e3a96127d2a78626b86 | 6,589 | package es.upm.miw.apaw_ep_computers.api_controllers;
import es.upm.miw.apaw_ep_computers.ApiTestConfig;
import es.upm.miw.apaw_ep_computers.daos.ComponentDao;
import es.upm.miw.apaw_ep_computers.daos.ComputerDao;
import es.upm.miw.apaw_ep_computers.daos.SupplierDao;
import es.upm.miw.apaw_ep_computers.documents.Comp... | 41.702532 | 119 | 0.659888 |
048db5527c5abdf44eec36a746ef22d09b5ca0cf | 3,202 | /**
* Copyright 2007-2016, Kaazing 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
*
* Unless require... | 40.025 | 120 | 0.678014 |
851ba8dd5948d626f936b10ef0a2b45ca3081e17 | 112 | package io.github.kuyer.logmonitor;
/**
* for test
* @author rory.zhang
*/
public class LogMonitorTest {
}
| 11.2 | 35 | 0.6875 |
89311fc23e2343dc8e951ce8eb495e7b892c9e12 | 8,319 | package io.github.mylyed.gravy.entitis;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.Formula;
/**
* 商品信息
*
* @author lilei
*
*/
@Entity
@Table(name ... | 23.974063 | 88 | 0.708378 |
36068ccd9077b70bede68098d77e096df762566d | 3,735 | package org.apache.taverna.activities.xpath.ui.menu;
/*
* 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 Apa... | 32.763158 | 88 | 0.790897 |
b76a296fed89afa9dcd2119c55a30242e43350d1 | 2,587 | package com.haoyue.app.happyreader.interactor.impl;
import com.haoyue.app.happyreader.bean.HotNewsEntity;
import com.haoyue.app.happyreader.bean.HotWxNewsEntity;
import com.haoyue.app.happyreader.interactor.HotWxNewsListInteractor;
import com.haoyue.app.happyreader.interactor.NewsListInteractor;
import com.haoyue.app.... | 41.725806 | 109 | 0.611519 |
882936ec9b7b1fa24635f9e65d0c7b830d59859e | 1,741 | package ch7.ex1;
import java.util.function.Function;
public class Demo01_ExecuteAround_duration {
public static void main(String[] args) {
System.out.println(imperativeSquareApproach(5));
System.out.println(imperativeCubeApproach(5));
Function<Integer, Integer> computeSquare = x -> x * x;
Function<Int... | 27.203125 | 90 | 0.68811 |
acb26fb9ebcc32b71d0268a867b7e8d0e02de937 | 14,398 | /*
* 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 n... | 37.989446 | 110 | 0.538755 |
91c101aeb096221f73bc50efc920ab15f67ae9ce | 146 | package com.test.behavior;
public class FlyNoWay implements FlyBehavior{
@Override
public void fly() {
System.out.println("no fly");
}
}
| 13.272727 | 45 | 0.712329 |
21c9b49a6c5ea566b7362c0d91861508b9e17ec7 | 2,707 | /*
* Copyright 2019 The TranSysLab Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 45.116667 | 133 | 0.753602 |
bb23f7c0b0d5eef1605b90a6410403eb14f50086 | 2,552 | // Copyright 2009 Distributed Systems Group, University of Kassel
// This program is distributed under the GNU Lesser General Public License (LGPL).
//
// This file is part of the Carpe Noctem Software Framework.
//
// The Carpe Noctem Software Framework is free software: you can redistribute it and/or modify
// ... | 36.985507 | 97 | 0.675157 |
7d9af8cf7327844bb63d88e6d97b8c7a9c220d55 | 1,498 | package com.tech.xiwi.xpay;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.tech.xiwi.pay.alipay.AliPay;
import com.tech.xiwi.pay.common.Channel;
import com.tech.xiwi.pay.common.IPay;
import com.tech.xiwi.pay.common.PayApi;
import com.tech.xiwi.pay.wechat.WXPay;
import org.json.... | 23.046154 | 98 | 0.591455 |
eb795ff5e02ce4d98306b80bbe4302bdc406a94e | 3,344 | /*
* Copyright 2021 EPAM Systems.
*
* 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... | 40.289157 | 95 | 0.764952 |
9f421f011a4f69345083e32fe2a575ca73d3236b | 3,057 | package Screens;
import Minesweeper.Cell;
import Lookup.*;
import Minesweeper.Grid;
import Minesweeper.Main;
import Minesweeper.Settings;
public class StartScreen extends Screen {
StartScreen(Main main){
this.main = main;
initialize();
}
@Override
protected void initialize() {
Main.mainClass.image(Sprites... | 35.546512 | 132 | 0.730782 |
413f129de2f2b93fd73ea8575b32b338e9fa2628 | 473 | package icpc.tab1;
import java.util.Scanner;
public class cf136d2a {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int [] arr=new int[n+1];
int j=1;
for(int i=1;i<=n;i++){
int x=sc.nextInt();
arr[x]=j... | 20.565217 | 44 | 0.460888 |
7082d45d7d604520d6262d2b4d3d64729e59a0eb | 733 | package seatsio.events;
import com.google.common.collect.ImmutableMap;
import org.junit.jupiter.api.Test;
import seatsio.SeatsioClientTest;
import java.util.Map;
import static com.google.common.collect.Lists.newArrayList;
import static org.assertj.core.api.Assertions.assertThat;
public class UpdateExtraDataTest ext... | 28.192308 | 102 | 0.735334 |
9fb33faeb537d835f53b2696036d7d52612fde66 | 4,318 | package com.zyd.blog.util;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.springframework.util.StringUtils;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author yadong.zhang email:yadong.zhang0415(a)gmail.com
* @website http://... | 29.575342 | 96 | 0.560676 |
68b1fda5da12c527ac354d5759566fde1457ed28 | 9,328 | /*
* Created by JFormDesigner on Wed Apr 02 18:28:03 CEST 2014
*/
package gameshop.advance.ui.swing.manager;
import com.jgoodies.forms.builder.PanelBuilder;
import com.jgoodies.forms.factories.CC;
import com.jgoodies.forms.layout.FormLayout;
import gameshop.advance.controller.FornitureControllerSingleton;
import ga... | 39.35865 | 129 | 0.584155 |
24de14593cd6cb897d6d3a35158cd40e54d532ae | 786 | package com.konselorku.android.Fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.konselorku.android.R;
public class KontakFragment extends Fragment {
public KontakFragment() {
... | 25.354839 | 78 | 0.703562 |
ac7d839f53bb3df648af381c7a80ac71dfe1b26a | 213 | package com.usher.mapper;
import com.usher.base.MyMapper;
import com.usher.pojo.ChatMsg;
import org.springframework.stereotype.Repository;
@Repository
public interface ChatMsgMapper extends MyMapper<ChatMsg> {
} | 23.666667 | 58 | 0.826291 |
b4a76d985ec73a6f3fceb0614bb4f2a9dd87cbaf | 1,232 | package de.ellpeck.actuallyadditions.common.gen.village.component.handler;
import java.util.List;
import java.util.Random;
import de.ellpeck.actuallyadditions.common.gen.village.component.VillageComponentEngineerHouse;
import net.minecraft.util.EnumFacing;
import net.minecraft.world.gen.structure.StructureComponent;
... | 42.482759 | 247 | 0.80763 |
5ddb348603634b9accddfa89a7505e05e229ca28 | 3,588 | package com.l000phone.themovietime.user;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Toast;
import com.l000phone.... | 30.666667 | 94 | 0.608417 |
dde35773a80723da8392d7297af027b94ee58474 | 2,322 | package com.programmerdan.minecraft.simpleadminhacks.hacks.basic;
import co.aikar.commands.BaseCommand;
import co.aikar.commands.annotation.CommandAlias;
import co.aikar.commands.annotation.CommandCompletion;
import co.aikar.commands.annotation.CommandPermission;
import co.aikar.commands.annotation.Description;
import... | 31.378378 | 85 | 0.767442 |
7f1bfdff04c469652fb968420458f0d37374f0e0 | 3,418 | /*
* 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
* dist... | 34.18 | 89 | 0.565535 |
4552d34a32b7d7c88d673e801eb2237a3450d239 | 2,406 | /*
* FILE: RtreePartitioning
* Copyright (c) 2015 - 2018 GeoSpark Development Team
*
* MIT License
*
* 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 wit... | 29.703704 | 81 | 0.691189 |
25758b17a72dcbacd2492a4883794b15c4a00608 | 390 | package ru.javabegin.library;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan(basePackages = {"ru.javabegin.library"})
publ... | 30 | 73 | 0.858974 |
a45cff27682b1d9ab69593418fcbe79a3507e6b2 | 301 | /*
* 文件名:IUserLogic.java
* 版权:Copyright by http://nercel.ccnu.edu.cn/
* 描述:
* 修改人:longyunxiang
* 修改时间:2016年3月28日
* 跟踪单号:
* 修改单号:
* 修改内容:
*/
package com.yllyx.clubs.logic.user;
public interface IUserLogic
{
boolean invalidByNamePasswd(String name, String passwd);
}
| 15.05 | 61 | 0.644518 |
04036bf92fc40004ea316206231f9c40604a0b44 | 915 | import java.util.Stack;
public class S0682BaseballGame {
public int calPoints(String[] ops) {
Stack<Integer> vals = new Stack<>();
int sum = 0;
for (int i = 0; i < ops.length; i++) {
String op = ops[i];
if (op.equals("+")) {
int v1 = vals.pop();
... | 26.911765 | 46 | 0.35847 |
6bfc23d5e8860b932c06a309c48ae6b31a939328 | 130 | package com.lqr.wechat.ui.view;
import android.widget.EditText;
public interface IPostScriptAtView {
EditText getEtMsg();
}
| 16.25 | 36 | 0.769231 |
6980a6ba60eb84c76d7ad41413cbe22257be256c | 2,755 | package com.shushanfx.zconfig.client.config;
import com.shushanfx.zconfig.client.ZKConfig;
import com.shushanfx.zconfig.client.ZKConfigParser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
/**
* 字... | 27.55 | 91 | 0.550998 |
cafc07146e44f78f3dcdd74585ccd31124cbe49c | 9,210 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.adrianjg.dlab;
public final class R {
public static final class attr {
}
public static final class color {
... | 53.546512 | 91 | 0.74658 |
102731a9d520a9fdcf5bcb2c42a47b7b7b28a767 | 938 | public class W_Machine extends Home
{
private String en_class;
private float storage;
private int rpm;
//set
public void setstorage(float storage){
this.storage=storage;
}
public void setrpm(int rpm){
this.rpm=rpm;
}
//get
public float getstorage(){
return storage;
}
pu... | 26.055556 | 256 | 0.660981 |
61e941e22778f2d5125de565f3840508c13198d4 | 961 | package com.cjm.wcpe.sample.server;
import com.cjm.wcpe.sdk.mobile.server.BaseWcpeServer;
import java.util.ArrayList;
import java.util.List;
/**
* Created by jiaminchen on 16/3/18.
*/
public class TestShortServer extends BaseWcpeServer {
private final static String TAG = "Wcpe.TestShortServer";
public fina... | 27.457143 | 61 | 0.654527 |
d5f0e0bb1b546f36fa561023fd5b26265a3216bc | 3,981 | package uk.gov.cshr.service;
import org.hamcrest.MatcherAssert;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import uk.gov.cshr.domain.Invite;
import uk.gov.cshr.domain.InviteStatus;
import uk.gov.cshr.domain.factory.InviteFactory;
import uk.gov.cshr.repository.InviteRepository;
import uk.gov.service.noti... | 35.864865 | 99 | 0.721929 |
e30e09bda7e7f52895410784c932a321a8892126 | 14,891 | /*
*
* * Copyright 2010-2016 OrientDB LTD (http://orientdb.com)
* *
* * 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... | 35.20331 | 123 | 0.726143 |
5c119e38d25a1d3856f48272714d0079964fc474 | 1,792 | package org.infinispan.xsite;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.concurrent.CompletionStage;
import org.infinispan.commands.VisitableCommand;
import org.infinispan.factories.ComponentRegistry;
import org.infinispan.util.ByteString;
/**
* RPC command... | 26.352941 | 101 | 0.728795 |
95614af19bc0d281fb0102368606e322c0f51051 | 2,564 | package me.bscal.game.GUI;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
import me.bscal.game.Game;
import me.bscal.game.graphics.Rectangle;
import me.bscal.game.graphics.Render;
import me.bscal.game.listeners.MouseClickListener;
import me.bscal.game.sprites.Sprite;
public abstract class GUI... | 24.653846 | 119 | 0.655226 |
a521f3476c94c7025a811162ab3a964f052c22fc | 2,904 | package de.notecho.spotify.bot.modules.commands;
import com.neovisionaries.i18n.CountryCode;
import de.notecho.spotify.bot.instance.BotInstance;
import de.notecho.spotify.bot.modules.Command;
import de.notecho.spotify.database.user.entities.module.Module;
import de.notecho.spotify.database.user.entities.module.ModuleE... | 50.068966 | 150 | 0.662534 |
d9bd96d90621eaace9db5c92acfb387df02df3c3 | 2,506 | package com.sequenceiq.it.cloudbreak.actor;
import java.util.Base64;
import javax.inject.Inject;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.sequenceiq.it.TestParameter;
import com.sequenceiq.it.clo... | 40.419355 | 154 | 0.731844 |
63d98b4df61c7e654776a05257fda49d8d7b258d | 4,652 | /* Copyright (C) 2005-2011 Fabio Riccardi */
package painting;
import com.lightcrafts.model.ImageEditor.ImageEditorDisplay;
import com.lightcrafts.jai.JAIContext;
import com.lightcrafts.jai.utils.Functions;
import com.lightcrafts.image.ImageInfo;
import javax.imageio.ImageIO;
import javax.swing.*;
import com.lightcr... | 35.51145 | 143 | 0.575021 |
da9f166872b2dbe1143f955e57f0b4c02aa1ef0c | 2,692 | /*
* Copyright (c) 2020, Jonathan Revusky revusky@freemarker.es
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of con... | 36.876712 | 95 | 0.69688 |
c1d561411c18959806adedd39f45f7c6b9efc09a | 7,251 | package james.crasher.activities;
import android.content.ClipData;
import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.support... | 42.403509 | 188 | 0.682664 |
0f1618f278900ec487203c45fed4f5dce0e67227 | 2,511 | package com.aisino.modules.system.service;
import com.aisino.modules.system.entity.Menu;
import com.aisino.base.BaseService;
import com.aisino.modules.system.entity.vo.MenuTreeVo;
import com.aisino.modules.system.service.dto.MenuDtoBase;
import com.aisino.modules.system.service.dto.MenuQueryParam;
import javax.servle... | 21.10084 | 90 | 0.616886 |
90fca28ee0989526d5fb60fe37d624b97aa4a57a | 1,309 | package com.mj.weather.weather.model.dp.dao;
import com.mj.weather.weather.model.dp.entity.WeatherCache;
import org.litepal.crud.DataSupport;
/**
* Created by MengJie on 2017/6/27.
*/
public class WeatherCacheDao {
/**
* @return
*/
public static WeatherCache getLatestWeather() {
Weather... | 22.568966 | 98 | 0.589763 |
55aa2369dce78b491c05cd7b5e11887328ff92c4 | 657 | package br.com.zup.mercado_livre.controllers.requests;
import br.com.zup.mercado_livre.controllers.validations.*;
import br.com.zup.mercado_livre.models.*;
import javax.validation.constraints.*;
public class NotaFiscalRequest {
@NotNull
private Long idCompra;
@NotNull
private Long idComprador;
... | 22.655172 | 63 | 0.642314 |
d2c7945c1d2bf65678af8176872fc6479df26e5b | 227 | package com.usf.catalogservice.repositories;
import com.usf.catalogservice.models.Level;
import org.springframework.data.jpa.repository.JpaRepository;
public interface LevelRepository
extends JpaRepository<Level, Integer> {}
| 28.375 | 61 | 0.845815 |
ef3ee1a303e5e15dabf1c8b895ad6d761ad9a72e | 2,216 | /*
* Copyright (C) 2019 Toshiba Corporation
* SPDX-License-Identifier: Apache-2.0
*/
package snavigablemap.random;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.atomic.AtomicLong;
import org.springframework.beans.factory.annotation.Autowired;
import org.wcardinal.controller.Abstrac... | 25.181818 | 65 | 0.699007 |
af1a5a2bda87b0c64d04054540d47684c6beaf26 | 1,597 | package com.behsazan.model.sqlite;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
/**
* Created by admin on 08/27/2017.
*/
public class SettingDb extends SqliteHelper {
public void updateKey... | 29.036364 | 105 | 0.560426 |
4cb9f3f4a51d16ec409dce387aba14ae52dc9539 | 2,029 | package com.sample.andremion.musicplayer.model;
import android.net.Uri;
import java.io.Serializable;
public class MediaEntity implements Serializable {
private static final long serialVersionUID = 1L;
public int id; //id标识
public String title; // 显示名称
public String display_name; // 文件名称
p... | 19.892157 | 54 | 0.600789 |
2b7139e5786cc52e228c23ad0df235e1685174c1 | 993 | package ch.helin.messages.dto.message.missionMessage;
import ch.helin.messages.dto.MissionDto;
import ch.helin.messages.dto.message.Message;
import ch.helin.messages.dto.message.PayloadType;
/**
* Message to assign a drone a specific mission.
*/
public class AssignMissionMessage extends Message{
private Missio... | 23.642857 | 85 | 0.673716 |
701d25ba0da0dc3d2e8641fe8c6925a8f9adc539 | 128 | /**
* Package for the local enactables performing simple calculations.
*/
package at.uibk.dps.ee.enactables.local.calculation; | 32 | 67 | 0.78125 |
fb7ba65ab2e1ba29cfc378a88b8cfe261ffbdf71 | 6,051 | package com.adriel.calculator;
import com.adriel.calculator.exception.OperatorNotDefinedException;
import com.adriel.calculator.util.StringAndBoolReturn;
public class Splitter {
private final String OPERATOR_NOT_DEFINED_MSG = "Operator %s cannot be used in first position, or after another operator.";
private fina... | 38.541401 | 236 | 0.689473 |
4c9994dee97322021edac3b7d7b7ffd10f016876 | 2,027 | package org.codeforamerica.shiba.output.documentfieldpreparers;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.codeforamerica.shiba.application.Application;
import org.codeforamerica.shiba.output.DocumentField;
import org.codeforamerica.shiba.out... | 36.854545 | 94 | 0.74001 |
696aba025c37aff6cd4da9f061107df412bdb34c | 349 | package io.dockstore.tooltester.blueOceanJsonObjects;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Json object part of the Links json object
*/
public class Link {
@SerializedName("href")
@Expose
private String href;
public String getHref() {
... | 18.368421 | 53 | 0.707736 |
50790281505fa7fb8c8f8f66b08fcbf155fbac57 | 69 | package factory;
public enum ListType {Array, LinkedList, SyncList}
| 17.25 | 50 | 0.797101 |
873b0f21ff0e98058b936524fe1334a1b8363d82 | 5,546 | package guitests;
import static org.junit.Assert.assertTrue;
import static savvytodo.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static savvytodo.logic.commands.MarkCommand.MESSAGE_MARK_TASK_SUCCESS;
import static savvytodo.logic.commands.MarkCommand.MESSAGE_USAGE;
import java.util.LinkedList;
impor... | 37.727891 | 113 | 0.689326 |
1b5e302cf0458ebc3b7ae6b9ab0ed19ee9859987 | 239 | package org.prebid.server.bidder.thirtythreeacross.proto;
import lombok.AllArgsConstructor;
import lombok.Value;
@AllArgsConstructor(staticName = "of")
@Value
public class ThirtyThreeAcrossReqExt {
ThirtyThreeAcrossReqExtTtx ttx;
}
| 19.916667 | 57 | 0.8159 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.