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 |
|---|---|---|---|---|---|
d003aed441bb95f9c4208f29b0ffe65e1f1ec814 | 806 | import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
public class File1 {
public static void main(String[] args) throws IOException {
File f = new File("test.txt");
DataOutp... | 33.583333 | 77 | 0.666253 |
757ee9ff8dcd3c363e31d60eb62bcd79ec62d06a | 424 | package com.quorum.tessera.enclave;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
public class DefaultPayloadDigestTest {
@Test
public void digest() {
PayloadDigest digest = new DefaultPayloadDigest();
String cipherText = "cipherText";
byte[] result = digest.digest... | 22.315789 | 57 | 0.731132 |
025ef41ab39da74fbce6bf5ef4fef395ae1e4f71 | 751 | package com.mhuang.kafka.common.producer.event;
import java.util.HashMap;
import java.util.Map;
import org.springframework.context.ApplicationEvent;
import lombok.Getter;
import lombok.Setter;
/**
*
* @ClassName: ProducerEvent
* @Description:生产者通知事件
* @author: mhuang
* @date: 2017年9月15日 下... | 20.297297 | 63 | 0.689747 |
7253c61448070cf822b32e1748ae7106505f803e | 1,110 | package com.chii.www.service;
import com.chii.www.pojo.Admin;
import com.chii.www.pojo.PageBean;
import com.chii.www.pojo.Student;
import com.chii.www.pojo.Teacher;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import java.io.InputStream;
import java.util.List;
public interface UserServi... | 21.346154 | 61 | 0.762162 |
4ff9cfe74ca7ad74d3d04d9308ca05142d4774ac | 6,201 | package com.kaqi.niuniu.ireader.ui.activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.Message;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget... | 31.477157 | 118 | 0.578294 |
4cd17e6c3bc27fe34518b6fafc696897b1c5cf6e | 6,905 | package sdk.jassinaturas.clients;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import java.util.List;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import sdk.jassinaturas.Assinaturas;
import sdk.jassinaturas.clients.attributes.Authentication;
imp... | 43.427673 | 303 | 0.683707 |
ea3f66003fc80dd7fdbd11a1359ded6495a6976f | 4,371 | package io.fizz.analytics.jobs.metricsRollup.aggregator;
import io.fizz.analytics.common.AbstractTransformer;
import io.fizz.analytics.common.HiveTime;
import io.fizz.analytics.common.source.hive.HiveDefines;
import io.fizz.analytics.common.source.hive.HiveEventFields;
import io.fizz.analytics.common.source.hive.HiveP... | 48.032967 | 159 | 0.716541 |
4013fdef95af97d09f8165e88417b007419f4e6e | 2,853 | package ru.iopump.qa.exception;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
public class PumpExceptionTest {
@Test
public void create() {
assertThat(new PumpException("", null, ""))
.isInstanceOf(PumpException.class)
.hasMessage("")
... | 31.351648 | 99 | 0.610936 |
b49333930e335b4ec8bde6f06e5344b81aa2cc4c | 3,518 | /*
* Copyright 2017 Palantir Technologies, Inc. All rights reserved.
*
* Licensed under the BSD-3 License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/BSD-3-Clause
*
* Unless required by applicab... | 43.975 | 116 | 0.741615 |
9793f9439e16b2a4a8266959fb2841e2be92a1bb | 22,764 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* 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... | 42.391061 | 109 | 0.759225 |
94797020dcdefa5d2357776f3b15b03bd1b0b4ba | 883 | package com.ebanswers.kitchendiary.bean;
import android.content.Context;
import android.graphics.Bitmap;
import com.umeng.socialize.media.UMImage;
import java.io.File;
/**
* @author
* Created by lishihui on 2017/3/13.
*/
public class ShareImage extends UMImage {
private File imgFile;
private String imgU... | 18.787234 | 53 | 0.643262 |
648ff45018bf9737b516f8ca3c594a539f0a14a3 | 1,772 | package ru.job4j.search;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Class for testing the "PriorityQueue" class.
*
* @author Dmitrii Eskov (eskovdmi@gmail.com)
* @since 20.01.2019
* @version 1.0
*/
public class PriorityQueueTest {
/**
... | 28.580645 | 65 | 0.579007 |
ac714bbb5c278197e939789989fea7cfc9a53931 | 15,934 | package com.cognition.android.mailboxapp;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.support.annotation.NonNull;
import android.suppo... | 43.416894 | 180 | 0.58303 |
e209e954bdbbef3f02a9063950f160dab98783b0 | 442 | package profile;
import firebase4j.error.FirebaseException;
import firebase4j.error.JacksonUtilityException;
import firebase4j.model.FirebaseResponse;
import firebase4j.service.Firebase;
import java.io.UnsupportedEncodingException;
public interface IProfile {
FirebaseResponse create(String id, String email) thro... | 31.571429 | 133 | 0.848416 |
ee0731542c98f352800b4faed97e6390fc693d70 | 1,237 | package org.companion.inquisitor;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.junit.Assert;
import org.junit.Test;
public class ValidateFromMapTest {
private final ValidationRule validationRule;
public ValidateFromMapTest() throws IOException {... | 31.717949 | 90 | 0.71059 |
3250e52dada922bedc90ff1bb439f519bf29cd91 | 314 | package main.model;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.io.Serializable;
/**
* Created by cipriach on 07.12.2015.
*/
@NoArgsConstructor
@Getter
@Setter
public class User implements Serializable {
private String userName;
private String password;
}
| 16.526316 | 43 | 0.764331 |
85caa2c645ebc1deb8bbd42895528167746ad6e2 | 3,676 | /*
* <!--
* ~ Copyright (c) 2017. ThanksMister 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
* ~
* ~ http://www.apache.org/licenses/LICENSE-2.0
* ~
* ... | 30.380165 | 99 | 0.636017 |
91ba7f777580ecf7b4edb1036dc4154bb45ae0ff | 2,965 | package com.decipherx.fingerprint.idp.entities;
import javax.persistence.*;
@Entity
@Table(name = "user_device")
public class UserDevice {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column (nullable = false, unique = true)
private String username;
@Column (nul... | 21.330935 | 58 | 0.565599 |
22968216f4d500f37629968f079cb171fcdc31a8 | 7,461 | package com.rarchives.ripme.ripper.rippers;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.rarchives.ri... | 37.873096 | 166 | 0.562525 |
dd7cd79d1731c8731150e3c1ab0f4d96683cece2 | 2,670 | package pl.polsl.webexchange;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;
import pl.polsl.webexchange... | 39.264706 | 152 | 0.738951 |
106fe0e1b7a0d241f3e657d921ecf0b1d4e5a5b7 | 6,574 | package design.aem.models.v2.layout;
import design.aem.components.ComponentProperties;
import design.aem.models.BaseComponent;
import design.aem.utils.components.ComponentsUtil;
import org.apache.commons.lang3.StringUtils;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.jcr.resource.api.JcrResou... | 41.345912 | 135 | 0.632187 |
9452025bb9b77bebd2ccc548980927fbe614738c | 2,025 | package com.kunlunsoft.entity;
import java.io.Serializable;
public class User implements Serializable {
/** */
private Integer id;
/** */
private String name;
/** */
private Byte age;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the ... | 25.3125 | 69 | 0.600494 |
5bc168fae1d763b81d5a97a130c62e500395780b | 471 | package no.mnemonic.messaging.documentchannel.kafka;
/**
* A transport object representing a document coming from Kafka
*
* @param <T> document type
*/
public class KafkaDocument<T> {
private final T document;
private final String cursor;
public KafkaDocument(T document, String cursor) {
this.document ... | 18.115385 | 63 | 0.694268 |
109e564634cab4ea6a124adff641ee53231ea993 | 5,109 | package nl.ellipsis.webdav.server;
public interface WebDAVConstants {
public final static String PFX_ACL_PFXDOCUMENT = "PfxDocuments";
public final static String PREFIX_DOMAIN_PERMISSION = "imDomain";
public final static String ENCODING_UTF8 = "UTF-8";
public final static String CONTENTTYPE_XML_UTF8 = "text/xml; c... | 61.554217 | 101 | 0.778626 |
f56a50f293932b53fc50c0850094c0f673f4e645 | 1,379 | /*
* 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 ... | 32.833333 | 79 | 0.744017 |
c34d93468985bd96291d79d2993028b848bc08ba | 1,821 | package com.student.compete.geeksforgeeks.dp.easy;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class MobileNumericKeypad {
// study more
// https://www.geeksforgeeks.org/mobile-numeric-keypad-problem/
public int getWaysCount(int num) {
i... | 31.947368 | 84 | 0.556837 |
e280100019f8a69068feba63dfd00a375f7500d8 | 194 | package com.josericardojunior.gitdataminer.buildingblocks;
import javax.swing.JPanel;
public class Block extends JPanel {
/**
*
*/
private static final long serialVersionUID = 1L;
}
| 13.857143 | 58 | 0.742268 |
0279d9c3751c21b6409c0b158ff98163021179ad | 3,075 | package com.stl.skipthelibrary.DatabaseAndAPI;
import android.net.Uri;
import android.util.Log;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* This class is used to get the book's description from google's boo... | 30.75 | 90 | 0.587317 |
aee0192ca2e08464094d8523546619abf0f1c657 | 617 | package com.langke.wudimall.coupon;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* @author LangKe
* @description
*... | 29.380952 | 72 | 0.795786 |
658fb4f3cf963fb0effaa0a5d0b6bb6acc073420 | 151 | package org.accounting.system.clients.responses.eoscportal;
import java.util.List;
public class Response {
public List<EOSCProvider> results;
}
| 16.777778 | 59 | 0.781457 |
79c583976c85e00dc7c3c0c5794e743ed5887a05 | 2,175 | package com.yuuko.core.modules.utility;
import com.yuuko.core.CommandExecutor;
import com.yuuko.core.modules.Command;
import com.yuuko.core.modules.Module;
import com.yuuko.core.modules.utility.commands.BindCommand;
import com.yuuko.core.modules.utility.commands.ChannelCommand;
import com.yuuko.core.modules.utility.co... | 35.655738 | 93 | 0.670345 |
3ce42c1f32f732df8291dd2bdba13e43a79a618c | 4,718 | package com.alipay.api.response;
import java.util.List;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
import com.alipay.api.domain.TemplateCardLevelConfDTO;
import com.alipay.api.domain.TemplateColumnInfoDTO;
import com.alipay.api.domain.TemplateFieldRuleDTO;
imp... | 24.319588 | 87 | 0.770242 |
187c084efac01ee33cc315fd8cceb46d499e6d0a | 2,389 | package com.example.karakoram.parentFragment;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.karakoram.R;... | 32.283784 | 87 | 0.713688 |
9973a0a98055bdbfa585df1b81b23b5aab9ba029 | 5,338 | package com.arnab.datta.babycare;
import android.app.ProgressDialog;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widg... | 32.54878 | 139 | 0.599288 |
689502cfb8bf25e1ecfc47223fcd5eee9c2e3504 | 1,047 | /** @version $Id: ShowTextElement.java,v 1.10 2015/11/30 23:17:08 ist181861 Exp $ */
package edt.textui.main;
import edt.core.Element;
import edt.core.Document;
import edt.core.DocumentEditor;
import edt.core.Paragraph;
import edt.core.Section;
import static ist.po.ui.Dialog.IO;
import ist.po.ui.Command;
import ist.po... | 25.536585 | 84 | 0.731614 |
fce1da683219cf26f26b526a90a0dec108cc9bc4 | 12,749 | /*
* Copyright (c) 2011, Harald Kuhr
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of condition... | 39.470588 | 121 | 0.640207 |
847c7326b2210a37ef5dccc9614d7b6bdae2376d | 2,317 | package pp.facerecognizer;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
public class S... | 29.329114 | 116 | 0.702201 |
c72fabc7fe91fad0013fa28701a5a3d15791db0c | 1,919 | /*
* DISCLAIMER
*
* Copyright 2016 ArangoDB GmbH, Cologne, Germany
*
* 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
*
*... | 29.075758 | 76 | 0.736842 |
b984c48347ed97366a34ef00a92936265a78020d | 10,943 | package com.fitpay.android.webview.impl.webclients;
import android.Manifest;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.databa... | 38.396491 | 166 | 0.618752 |
323a92746a98a4e6ac795aa0bfc0b1188426927a | 861 | package net.algorithm.answer;
/**
* @Author TieJianKuDan
* @Date 2021/12/19 14:44
* @Description 997. 找到小镇的法官
* @Since version-1.0
*/
public class FindJudge {
public static void main(String[] args) {
}
public int findJudge(int n, int[][] trust) {
int[] records = new int[n + 1];
int c... | 23.916667 | 57 | 0.437863 |
b843d32349de837dd06306cc376b025f835f0bb0 | 647 | package klay.common.dictionary.structure;
import lombok.Data;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
@Data
public class ItemData {
private CharSequence word;
private CharSequence pos;
public ItemData(CharSequence word,
CharSequence pos) {
... | 21.566667 | 66 | 0.659969 |
4d664998157f9aecf65f3769f48a1d432358aaf5 | 2,018 | /*
* JBoss, Home of Professional Open Source
*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* 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/lic... | 30.119403 | 88 | 0.699207 |
e88764dc2787e8faad50f7d43bf7c5180c77187b | 185 | package p;
class SuperA{
public void m() {
}
}
class A extends SuperA{
public void m() {
}
}
class B extends A{
}
class B1 extends A{
public void foo(){
A a= null;
a.m();
}
} | 10.277778 | 23 | 0.594595 |
dd8acf7274f44e540586232578821e1de83dac33 | 2,241 | /*-------------------------------------------------------------------------
*
* Copyright (c) 2004-2008, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgjdbc/org/postgresql/jdbc4/Jdbc4ResultSet.java,v 1.5 2008/01/08 06:56:30 jurka Exp $
*
*------------------------------------------------------... | 29.88 | 125 | 0.632753 |
c4bd99ed1302355373e573ae7c1d4e09652460d0 | 1,088 | package com.frontcamera.zhousong.frontcamera;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.SurfaceView;
import java.util.Timer;
import java.util.TimerTask;
public class MainActivity extends Activity {
Context context = MainActivity.this;
SurfaceVi... | 23.148936 | 73 | 0.661765 |
093beece37a83e05c143f0cd76a281577d165539 | 1,219 | package com.verdantartifice.primalmagick.common.concoctions;
import javax.annotation.Nullable;
import net.minecraft.util.StringRepresentable;
/**
* Definition of a type of alchemical concoction. Determines the maximum dosage of the vial.
*
* @author Daedalus4096
*/
public enum ConcoctionType implements StringR... | 24.38 | 93 | 0.624282 |
4f1e01aab94662d8681f255fd8458cb0fae51c1f | 118 | package edu.illinois.cs.cs125.answerable.classdesignanalysis.fixtures.typeparameters.reference;
public class T<T> {}
| 29.5 | 95 | 0.830508 |
adbd1e8deed7eacdd6f83bd278c6b57184fca658 | 264 | package com.alphagfx.http.transform.util.json;
import org.json.JSONObject;
import java.util.function.Function;
public class AsJsonObject implements Function<String, JSONObject> {
@Override
public JSONObject apply(String s) {
return new JSONObject(s);
}
}
| 18.857143 | 67 | 0.776515 |
8cc8d110e806f90d7a7e1d335cd6e42eea107645 | 5,800 | /*
* Copyright (c) 2019 Greg Hoffman
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condit... | 35.365854 | 97 | 0.722931 |
36cbe106a07d96ab00a82e8ffef0ff583d3d025f | 4,182 | package com.pratamawijaya.blog.presentation.ui.home.fragment.list;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearL... | 34 | 96 | 0.778575 |
0173e3cb63aba80a57833960f2603826f192e86b | 762 | package io.github.xinshepherd.excel.core;
import org.apache.poi.ss.usermodel.Workbook;
import java.util.List;
/**
* @author Fuxin
* @since 1.1.0
*/
public class ExcelSheetBuilder<T> {
private Class<T> modelClass;
private List<T> data;
private Workbook workbook;
private String sheetName;
p... | 21.166667 | 84 | 0.669291 |
11af51c2485dd4a35fd4693eb7d5f6ab4da48ede | 4,266 | package org.tec.datos1.eclipse.grapher.debugger;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.debug.core.model.IStackFrame;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.dom.MethodDeclaration;
import org.eclipse.jd... | 33.590551 | 185 | 0.72691 |
5594f81ad124d47ffc42b83d36f9336dbd98feee | 7,398 | /*
* Copyright 2021 Red Hat
*
* 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 ... | 37.363636 | 131 | 0.682347 |
c42e7aa4d03e673d4b0b801f4316635f90e72755 | 507 | package fr.gustaveroussy.AdvancedQC.model;
//public class SampleValue {
// String sampleName;
// Double sampleValue;
// public SampleValue(String sampleName, Double sampleValue) {
// super();
// this.sampleName = sampleName;
// this.sampleValue = sampleValue;
// }
// public String getSampleName() {
// return sampl... | 22.043478 | 62 | 0.678501 |
ad4bed6851143c827cd61d19ed8c1a5802ebb00e | 1,040 | package si.bismuth.mixins;
import net.minecraft.scoreboard.Score;
import net.minecraft.scoreboard.ScoreObjective;
import net.minecraft.scoreboard.Scoreboard;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin... | 35.862069 | 85 | 0.735577 |
f5dafbf8dbaadbaabd277774f58d236e004dce54 | 544 | package graphicsassignment4;
import org.lwjgl.util.vector.Vector3f;
/**
*
* @author tushariyer
*/
public interface BlenderMethodInterface {
void setS(float x, float y, float z);
void setS(Vector3f updateScale);
void setRA(double angle);
void setRV(Vector3f updateRotation);
void setRV(float... | 15.542857 | 42 | 0.667279 |
b85701b3c8701888da4c280da9bafd160b47e12a | 6,131 | /*******************************************************************************
* Copyright (c) 2013 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"... | 34.44382 | 111 | 0.609525 |
6a6abf041392d240db3cc2226ca0ae845826dc66 | 877 | package android.zou.com.viewpagerdemo.gson;
/**
* Created by Administrator on 2017/8/8.
*/
public class JokeImg {
private String img;
private String title;
private int width;
private int height;
public JokeImg(String img, String title) {
this.img = img;
this.title = title;
}... | 16.865385 | 46 | 0.567845 |
6c7649d7f83a432e43d06fbcf353200cf34bb68b | 17,081 | /*
* Copyright (C) 2014 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... | 37.376368 | 136 | 0.619285 |
e1f0cee9b75fc3a4ca806da37cd7c7b1e29f6d29 | 1,369 | package com.nxy006.project.algorithm.leetcode.p0001.two_sum;
import com.nxy006.project.alogtithm.utils.CaseAssertUtils;
import java.util.HashMap;
import java.util.Map;
/**
* Map 解法
* 时间复杂度:O(n),空间复杂度:O(n)
*
* Runtime 3 ms , beats 58.77 % of java submissions.
* Memory 40.1 MB , beats 22.34 % of java submis... | 35.102564 | 138 | 0.536888 |
e7804f6fb9df3486fd6ae3ea9ff95bb30f151349 | 218 | /**
* Simple Serialize (SSZ) annotations are used for automatic encoding/decoding routines handling
* standard Java class with annotations as SSZ model representation.
*/
package org.ethereum.beacon.ssz.annotation;
| 36.333333 | 96 | 0.793578 |
4a2adf93eee001bcafecdc4d555e758d3f56211b | 2,476 | package com.sengami.gui_diary.di.module;
import com.sengami.data_base.dbo.DiaryEntryDBO;
import com.sengami.data_base.mapper.Mapper;
import com.sengami.data_base.util.DatabaseConnectionProvider;
import com.sengami.data_diary.operation.local.CreateOrUpdateDiaryEntryOperationLocal;
import com.sengami.data_diary.operatio... | 44.214286 | 141 | 0.703554 |
4e9b1cc1c18ba194aac12710eb930e3855c6a70a | 5,271 | /*
* (C) Copyright IBM Corp. 2021
*
* 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, Versi... | 34.227273 | 129 | 0.728325 |
b6513c2dfed8ce4a8195cde70e66821c72f6f923 | 4,053 | /*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2013 - 2022 Andres Almiray.
*
* 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... | 30.704545 | 97 | 0.633851 |
515f21377e8052a7c391de6f0db897f4816edb87 | 299 | package br.com.studies.bean;
import java.math.BigDecimal;
import br.com.studies.service.Payment;
@br.com.studies.annotations.CreditCardPayment
public class CreditCardPayment implements Payment {
public String pay(BigDecimal amount) {
return "payed in credit card " + amount.toString();
}
} | 23 | 54 | 0.77592 |
e9f8b5828183053dc3d2c7ff0b286ddfd998bd10 | 241 | package arrays;
public class TestArguments {
public static void main(String[] args) {
System.out.println(args.length);
for(int iterator=0; iterator< args.length; iterator++){
System.out.println("Hello " + args [iterator]);
}
}
}
| 21.909091 | 57 | 0.692946 |
6bdb308500d5b7c3487e61ae6cb5c0d76b27ad79 | 9,748 | package org.hkijena.jipipe.extensions.ijweka.nodes;
import ij.ImagePlus;
import ij.ImageStack;
import org.hkijena.jipipe.JIPipe;
import org.hkijena.jipipe.api.JIPipeDocumentation;
import org.hkijena.jipipe.api.JIPipeNode;
import org.hkijena.jipipe.api.JIPipeProgressInfo;
import org.hkijena.jipipe.api.data.JIPipeDataTa... | 63.298701 | 261 | 0.725995 |
ef191147fcaa2caca87e163eadf9ffc87a34ad98 | 4,292 | package com.codepath.apps.simpletwitter.fragments;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
i... | 33.271318 | 111 | 0.639096 |
19833620660541cc2f0130c7c969a4148c3e41a2 | 289 | import java.util.Scanner;
public class Reverse {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNextLine()) {
System.out.println(new StringBuilder(sc.nextLine()).reverse().toString());
}
sc.close();
}
}
| 20.642857 | 81 | 0.615917 |
8c9a81ddb6b0974afacc1501e273cedd96e870bf | 3,154 | package com.hedera.services.context.properties;
/*-
*
* Hedera Services Node
*
* Copyright (C) 2018 - 2021 Hedera Hashgraph, 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... | 33.913978 | 94 | 0.792327 |
aa846f3aa9b6bec5998f780c4f672bdcb9da9aef | 695 | package app.com.tvrecyclerview;
/**
* A {@link PresenterSelector} that always returns the same {@link Presenter}.
* Useful for rows of items of the same type that are all rendered the same way.
*/
public final class SinglePresenterSelector extends PresenterSelector {
private final Presenter mPresenter;
/*... | 24.821429 | 80 | 0.68777 |
36a6c1686ac2e09b73ae3d2138273a68f9b1fbd3 | 2,179 | /*
* Copyright (c) 2015 Andrej Halaj
*
* 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 agree... | 35.721311 | 103 | 0.7095 |
3d8e4874bcc876d8d478d25abb821cec07f49dc9 | 41,683 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "Licen... | 38.666976 | 179 | 0.744356 |
790243013ef1fb5bcedc7bdb64b3a2948c1cc0f0 | 11,305 | package br.com.moip.unit_tests;
import br.com.moip.Moip;
import br.com.moip.models.Setup;
import br.com.moip.unit_tests.setup.SetupFactory;
import br.com.moip.utilities.Parser;
import com.rodrigosaito.mockwebserver.player.Play;
import com.rodrigosaito.mockwebserver.player.Player;
import org.junit.Before;
import org.ju... | 47.5 | 116 | 0.664839 |
437792f140605da89345ddc1a86979c664b5a8b6 | 1,308 | /*
* Copyright (c) 2018 Uber Technologies, Inc. (hoodie-dev-group@uber.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-2.0
*
... | 37.371429 | 106 | 0.747706 |
99aeee4e85a1389b7818581237084155823e4e8e | 432 | public class evennumbers {
public static void main(String[] args) {
System.out.println("Folgende Zahlen sind durch zwei teilbar:");
for (int i = 1; i <= 100; i++) {
if (i % 2 == 0) {
// if ((i / 2) * 2 == i) {
System.out.println(i);
}
}
System.out.println("Davon durch 4 teilbar:");
for (int i = ... | 19.636364 | 65 | 0.50463 |
c9b2ab7ad170ae6b14be3fa1d62c0b5ee5fe2716 | 4,989 | package io.entraos.monitor;
import org.eclipse.jetty.server.NCSARequestLog;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.glassfish.jersey.server.ResourceConfig;... | 31.77707 | 135 | 0.633193 |
345c6b3c0e04b48155c42e1699c1d1b5bd8ba4aa | 425 | /*
* Anthony Tornetta & Troy Cope | P5 | 3/31/18
* This is our own work: ACT & TC
* Something that can be held
*/
package com.corntrip.turnbased.gameobject.modifier;
import org.newdawn.slick.Image;
import com.corntrip.turnbased.gameobject.Entity;
/**
* Anything that can be held by an {@link Entity}.
*/
public... | 19.318182 | 51 | 0.703529 |
954585195d7fb739e21cc0c72bdf8923cae06c8a | 293 | package com.github.bordertech.webfriends.api.element.form.input;
import com.github.bordertech.webfriends.api.common.form.capability.Suggestable;
/**
* Input text element with suggestions.
*/
public interface InputTextSuggestionsElement extends InputTextElement, Suggestable {
}
| 26.636364 | 85 | 0.788396 |
43e69d82d58089b02f47adeaaec2892f86d43632 | 438 | package com.aggrepoint.winlet;
/**
* @see ReqConst
*
* @author Jiangming Yang (yangjm@gmail.com)
*/
public interface RespHeaderConst {
String HEADER_UPDATE = "X-Winlet-Update";
String HEADER_TARGET = "X-Winlet-Target";
String HEADER_TITLE = "X-Winlet-Title";
String HEADER_DIALOG = "X-Winlet-Dialog";
String H... | 25.764706 | 46 | 0.726027 |
acbfb03f139629424749b1703d3e6d5db7c55cd6 | 413 | package cn.misection.cvac.ast.expr.terminator;
import cn.misection.cvac.ast.expr.AbstractExpression;
/**
* @author Military Intelligence 6 root
* @version 1.0.0
* @ClassName AbstractTerminator
* @Description TODO
* @CreateTime 2021年02月23日 18:22:00
*/
public abstract class AbstractTerminator extends AbstractExpr... | 21.736842 | 67 | 0.74092 |
1552cb34bca375f1137f377a1afd2b78dd002de9 | 1,841 | package dev.gradleplugins.documentationkit;
import dev.nokee.model.internal.core.NodeRegistration;
import dev.nokee.model.internal.core.NodeRegistrationFactory;
import dev.nokee.model.internal.type.TypeOf;
import org.gradle.api.artifacts.Dependency;
import org.gradle.api.file.ConfigurableFileCollection;
import org.gra... | 44.902439 | 139 | 0.803368 |
7e0a3299faef4dffd4341c58ceefaa4bbffd502a | 1,205 | package com.study.jpkc.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.study.jpkc.entity.LiveCourse;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
/**
* <p>
* 服务类
* </p>
*
* @auth... | 20.775862 | 79 | 0.644813 |
1ad0705b67f10c6899f1da57eebb8871f75c795d | 1,739 | /*
* Copyright 2017 Banco Bilbao Vizcaya Argentaria, S.A.
*
* 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 ap... | 37 | 120 | 0.751581 |
1287850c5118e76844285babdb468aecc179f1ab | 897 | package com.squad.controller;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.ModelAndView;
import com.squad.model.User;
import com.squad.service.UserService;
@Contro... | 28.03125 | 80 | 0.784838 |
6a877445b553eb3e7bdf5d30d1031152d6a35d36 | 2,153 | package com.github.howaric.alg.heap;
import java.util.Arrays;
public class Heap {
public static void main(String[] args) {
MinHeap minHeap = new MinHeap(5);
minHeap.add(1);
minHeap.add(3);
minHeap.add(4);
minHeap.add(2);
minHeap.add(5);
minHeap.traverse();
... | 22.904255 | 91 | 0.489549 |
1d053234e53372dfbd6abbe376b04d43cc695b2d | 19,541 | package org.kuali.ole.deliver.service;
import com.itextpdf.text.*;
import com.itextpdf.text.pdf.BaseFont;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfWriter;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.kuali.... | 45.870892 | 225 | 0.689371 |
448759d3679256a1a170338e2cbf53b554dacbd3 | 615 | import java.io.*;
import java.util.*;
public class epigdanceoff {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int[] arr = new int[m];
for (int x = 0; x < n; x++) {
char... | 27.954545 | 61 | 0.437398 |
e626adef459d2e7ee35a2ad2bdefa1896e989f0c | 857 | /*
* 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 br.com.dsc.cbi.apirest.rest.converters;
import br.com.dsc.cbi.apirest.util.Datas;
import com.fasterxml.jackson.core.Js... | 31.740741 | 119 | 0.760793 |
22b21e00fbb622c96ed1b282feb60361d510d8ef | 2,847 | package com.mossle.form.operation;
import java.util.Map;
import com.mossle.bpm.cmd.CompleteTaskWithCommentCmd;
import com.mossle.core.spring.ApplicationContextHelper;
import com.mossle.form.keyvalue.KeyValue;
import com.mossle.form.keyvalue.Prop;
import com.mossle.form.keyvalue.Record;
import com.mossle.form.keyval... | 35.148148 | 77 | 0.672638 |
14b8236268f921f4489b45886fe923f4e565de1f | 5,668 | package uk.gov.hmcts.reform.adoption.common.service.task;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import uk.gov.hmcts.ccd.sdk.api.CaseDetails;
import uk.gov.hmct... | 59.663158 | 127 | 0.563338 |
6c2d04789662e5e17103142067904fa5e78560dd | 5,428 | package net.minecraft.client.gui;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.WorldRenderer;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.real... | 36.186667 | 117 | 0.704127 |
df5d4efe9ffd8134b4ee6c67196484b0a2ba6079 | 471 | package org.cx.game.user.config;
import org.cx.game.user.dao.IDao;
import org.cx.game.user.domain.IEntity;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@Configu... | 31.4 | 76 | 0.832272 |
7520f9a6e68c33c7257da7e6a47e9e088670a308 | 7,667 | package org.broadinstitute.ddp.service;
import static com.google.openlocationcode.OpenLocationCode.PADDING_CHARACTER;
import static java.util.stream.Collectors.toList;
import java.util.List;
import com.google.maps.model.GeocodingResult;
import com.google.openlocationcode.OpenLocationCode;
import org.apache.commons.l... | 43.5625 | 134 | 0.678753 |
a101ebe31948c4d057041b99c6945c80328b6193 | 967 | package core;
import java.io.IOException;
public class Core {
public enum Status
{
Ready,
Listening,
Busy,
}
// public static state variable to determine in other scripts of what our voice assistant is doing
public static Status currentState = Status.Ready;
// our main initialisation method that will... | 26.135135 | 99 | 0.755946 |
22f761906b0be6760b5a28cc4b3a992c86f2e759 | 4,031 | /*
* 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 ... | 35.052174 | 100 | 0.724138 |
72d41edb4e2d402b5a7e44ad0084c1e53434a877 | 1,686 | /*
* Copyright 2006-2016 the original author or authors.
*
* 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... | 29.578947 | 133 | 0.711151 |
82a198cf358e255a6b8b514d74be380d25c14205 | 1,465 | package jp.chang.myclinic.scanner;
import jp.chang.wia.Wia;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.nio.file.Path;
import java.util.List;
import java.util.function.Consumer;
class ScannerLib {
//private static Logger logger = LoggerFactory.getLo... | 26.636364 | 93 | 0.631399 |
e48758180f920010d5d86ea0a794a726522cae19 | 797 | package me.olmaneuh.blog.post;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.... | 24.151515 | 71 | 0.766625 |
526bbea40d715dcfcd2ebad414e585985498f343 | 2,182 | package javacommon.base;
import static junit.framework.Assert.assertNotNull;
import javax.sql.DataSource;
import org.junit.Before;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestExecutionListeners;
import org.springframework.test.context.junit4.AbstractTran... | 35.770492 | 136 | 0.766269 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.