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 |
|---|---|---|---|---|---|
d0198c1b03d1d554c246855094e67b058c5eb149 | 2,376 | package com.cunctator.cutedgems.core.init;
import com.cunctator.cutedgems.CutedGems;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Rarity;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredReg... | 47.52 | 192 | 0.774411 |
5c5caea03f0a70782c503882ed31073efe90a23c | 3,142 | /*
* MIT License
*
* Copyright (c) 2018 mnemotron
*
* 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, copy... | 21.087248 | 182 | 0.636537 |
f2bbc40e9cb15b6d62a4ff59fd75151c9167f231 | 645 | package jorn.hiel.urentracker.business.entities;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalTime;
/**
*... | 17.432432 | 48 | 0.713178 |
0680767d252ad12928d966ae8c686b49266e2aa0 | 5,629 | /*
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: shulie@shulie.io
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 21.003731 | 70 | 0.567952 |
48d66273ee654c1df56c8f58254d91592c2d61ee | 241 | package com.moxuanran.learning.dto;
import lombok.Data;
@Data
public class ResultDto<T> {
private boolean success;
private int httpCode;
private String message;
private String Tag;
private T data;
} | 14.176471 | 36 | 0.655602 |
f92e80c1061dd63ea8918a5d25109f86db8e9469 | 5,101 | /*
* Copyright 1999-2021 Alibaba Group Holding 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 appl... | 36.435714 | 95 | 0.694766 |
01a033d781cff669cd33cc65939f62c78028e6eb | 821 | package br.com.jdscaram.androidpetstore.services;
import java.util.List;
import br.com.jdscaram.androidpetstore.services.animals.bean.PetModel;
import io.reactivex.Observable;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
impor... | 23.457143 | 75 | 0.727162 |
c84b231026d904c29c45799e8c0b6dfa525cf331 | 218 | package gov.hhs.onc.phiz.web.ws.logging;
import gov.hhs.onc.phiz.logging.logstash.MarkerObjectFieldName;
@MarkerObjectFieldName("wsResponseMessage")
public interface WsResponseMessageEvent extends WsMessageEvent {
}
| 27.25 | 64 | 0.83945 |
bbb07a9f45cfb6c25f334decee8b9f71c6a5bda4 | 579 | package com.zf1976.ddns.api.auth;
/**
* @author mac
* @date 2021/7/18
*/
public class TokenCredentials implements ProviderCredentials {
private final String accessKeySecret;
public TokenCredentials(String token) {
if (token == null) {
throw new IllegalArgumentException("Access key sec... | 18.677419 | 84 | 0.639033 |
713786c4501c32dce907041fa32aadff04aeb7e5 | 1,603 | package com.csc445.shared.game;
import java.util.ArrayList;
import java.util.List;
public class Spot {
private String name;
private byte color;
private int x;
private int y;
public Spot() {
}
public Spot(int x, int y) {
this.x = x;
this.y = y;
this.color = 6; // w... | 17.615385 | 55 | 0.466001 |
946c1304ab0077e48fcfbca58bfa67c0aefae5f3 | 9,862 | /*
* Copyright 2020 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 35.602888 | 119 | 0.669641 |
4d56a04212d57d835305cb16914c29666ad6722f | 1,700 | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | 43.589744 | 115 | 0.770588 |
0e80e336de2427cdb302ba995c9edd3170662adf | 730 | package com.example.demo.dto;
import java.time.LocalDateTime;
public class Message {
private String room;
private String user;
private String text;
private LocalDateTime time;
public String getRoom() {
return room;
}
public void setRoom(String room) {
this.room = room;
... | 16.976744 | 45 | 0.589041 |
06ae4324c36f58c1f27aabe1755a92418bc59865 | 205 | package com.example.oroles.hlin.Listeners;
public interface IConnectedBluetoothListener {
void updateConnectedBluetooth(String connectionStatus);
void updateLastTimeUsedBluetooth(String time);
}
| 25.625 | 59 | 0.82439 |
974fe0b33b17ccbe351373a22c14a72abec060f1 | 53 | package com.yipeipei.pprqs;
public class Query {
}
| 8.833333 | 27 | 0.735849 |
a13ffcf38844c8cef4379c9a8dea51192fb3a448 | 2,216 | package at.porscheinformatik.antimapper;
import java.io.Serializable;
/**
* A pair of two values
*
* @author HAM
*
* @param <Left> the left value
* @param <Right> the right value
*/
public class Pair<Left, Right> implements Serializable
{
private static final long serialVersionUID = 160174997957476433L;
... | 18.621849 | 76 | 0.485108 |
391c09b004a81c445843ede0454c831228f775dd | 271 | package com.jaredscarito.jftp.model.pages.nodes;
import javafx.scene.control.Label;
import java.util.List;
public class NodeLabel extends Label {
public NodeLabel(String name, List<String> styleClasses) {}
public NodeLabel(String name, String styleClass) {}
}
| 24.636364 | 63 | 0.767528 |
d8068eefdea2e79cca06ca9ba8c546aea08c0ac5 | 567 | package main.java.staticcheckers;
public class CheckError implements Comparable<CheckError> {
private int x;
private int y;
public CheckError(int x, int y, String errString) {
this.x = x;
this.y = y;
this.errString = errString;
}
private String errString;
@Override
... | 19.551724 | 59 | 0.557319 |
6bca452932ee3bc734313bc225f7e3e3d44415d8 | 2,124 | package me.winter.boing;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.utils.Array;
/**
* Represents a step for a dynamic body, typically has a movement and collision shifing but
* different World implementation may Steps with more fields.
* <p>
* Created by Alexander Winter on 2017-06-17.
*/
pub... | 27.230769 | 92 | 0.710452 |
e19f815db57429f8f759ade213070a59f72dd454 | 567 | package com.thewizrd.simplewear;
import android.app.admin.DeviceAdminReceiver;
import android.content.Context;
import android.content.Intent;
import androidx.annotation.NonNull;
/**
* Receiver class which shows notifications when the Device Administrator status
* of the application changes.
*/
public class Screen... | 27 | 80 | 0.772487 |
48373e9d90168d672e12449ed7c350947c1e15fc | 960 | package cc.bodyplus.sdk.ble.dfu;
import java.util.List;
import cc.bodyplus.sdk.ble.utils.DeviceInfo;
/**
* Created by Shihoo.Wang 2019/3/21
* Email shihu.wang@bodyplus.cc 451082005@qq.com
*/
public class DfuNetConfig {
private static List<DfuUpdateInfo> updateInfoList;
public static void setUpdateInfo... | 25.263158 | 78 | 0.601042 |
88ff69a0a40fd3f60a6e944f89b7c637027ccdf8 | 677 | /*
* 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 trabalho;
/**
*
* @author HP
*/
public class LivroAutorTeste {
String livro1 = "DEITEL, H.M; Java Como Prog... | 32.238095 | 110 | 0.645495 |
3f5f4f04a499164c651b845ea0eb5897797e35d2 | 5,333 | /*******************************************************************************
* Copyright 2019 See AUTHORS file
*
* 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.apac... | 34.856209 | 130 | 0.735421 |
f1a1f0a9a6168ece447749060f0437028d09738a | 28,574 | package com.hedera.services.bdd.suites.contract;
/*-
*
* Hedera Services Test Clients
*
* 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 L... | 39.796657 | 115 | 0.731189 |
bb6527c910a475ce98a3e3e01bb19c60a19c9bf8 | 14,067 | import com.sun.source.tree.AssertTree;
import java.awt.dnd.InvalidDnDOperationException;
import java.util.Random;
/**
* Created by Stas on 04/04/2015.
*/
public class BigIntTests
{
public static void allTests()
{
CPrint.blue("============== isValid tests ==============\n");
isValidTests();
... | 45.086538 | 364 | 0.594085 |
e2ca3b1c91dce0dee005c130ccb4fbace63c7877 | 26,822 | package net.noyark.www.xml;
import java.io.FileInputStream;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.util.ArrayList;
import java.... | 38.04539 | 223 | 0.681008 |
3117d019aa6a7c04ba1691958b783cf69de56848 | 5,939 | package lumien.randomthings.block;
import java.util.Random;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyBool;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.state.BlockStateContainer;
... | 28.690821 | 159 | 0.747937 |
de7864fc5a8c9f11e9fab3b3c603d2ad179ac1c1 | 779 | /**
*
*/
package org.asnworks.apis.friendmanagement.exceptions;
import org.asnworks.apis.friendmanagement.constants.Constants;
/**
* @author sudambat This exception occurs when the request contains duplicate invitation for friend request
*/
public class DuplicateInvitaionException extends BaseException {
pr... | 26.862069 | 107 | 0.736842 |
8ae7a0317ce622febc8f147220cfb61d26d5a9e9 | 402 | package com.intellij.gwt;
import com.intellij.codeInspection.InspectionToolProvider;
import com.intellij.gwt.inspections.GwtJavaScriptReferencesInspection;
/**
* @author VISTALL
* @since 20.08.14
*/
public class GwtJsInspectionToolProvider implements InspectionToolProvider
{
@Override
public Class[] getInspectio... | 22.333333 | 74 | 0.803483 |
f9a561a62b8a7ffe534d2d73b6b8904d140a0f99 | 7,551 | package de.uniwue.informatik.praline.datastructure.shapes;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import de.uniwue.informatik.praline.datastructure.styles.ShapeStyle;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.util.*;... | 35.12093 | 119 | 0.659118 |
45f4148d95dc83bacd273ebe405486e4b22e2268 | 218 | package ldap;
public class Starter {
public static void main(String[] args) throws Exception {
System.out.println(
"LADP Server ldap.Starter"
);
LdapServer.start();
}
} | 19.818182 | 61 | 0.577982 |
e4a4085e89c3060fe33fd5d6cde669eb488ac826 | 4,707 | /**
* Copyright 2015, Sharad Singhal, 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. Redistributions of source code must retain the above copyright notice, this
* list of condit... | 32.916084 | 120 | 0.703208 |
bb94c7d1ffc69e12998b1c5aef49a39bd27a3f7d | 1,427 | package com.learning.algorithms.lectures.stack;
import java.util.ArrayList;
import java.util.Stack;
/**
* Created by admin on 16/11/9.
*
* 请编写一个程序,按升序对栈进行排序(即最大元素位于栈顶),
* 要求最多只能使用一个额外的栈存放临时数据,但不得将元素复制到别的数据结构中。
* 给定一个int[] numbers(C++中为vector<int>),其中第一个元素为栈顶,
* 请返回排序后的栈。请注意这是一个栈,意味着排序过程中你只能访问到第一个元素。
*
* 测试样例:... | 24.603448 | 62 | 0.53609 |
f7af3f7874919c75569ac0aba808b5569b659f8c | 25,654 | /*
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.workers.temporal.scheduling;
import io.airbyte.config.FailureReason.FailureOrigin;
import io.airbyte.config.StandardSyncInput;
import io.airbyte.scheduler.models.IntegrationLauncherConfig;
import io.airbyte.scheduler.models.JobRunConf... | 39.2263 | 150 | 0.724487 |
09a914239c9ffe5eeb3ff79ccc22e55b07bd9914 | 1,205 | package br.sprintdev.controller.form;
import br.sprintdev.model.entity.User;
import br.sprintdev.model.service.UserService;
public class UpdateUserForm {
private String firstName;
private String lastName;
private String username;
private String email;
private String bgColor;
public String getFirstName(... | 17.214286 | 51 | 0.727801 |
0506dd2fc745a2e4a340746b15f317a7311cbdf9 | 874 | import java.util.Arrays;
public class Merger {
public static void main(String[] args) {
// int[] array1 = {1, 2, 3, 3, 3, 4, 5};
// int[] array2 = {1, 2, 3, 3};
int[] array1 = {1,3,5,6,7};
int[] array2 = {1,2,3,4,6,8,9};
System.out.println(Arrays.toString(sort(array1, array2))... | 31.214286 | 77 | 0.5 |
05612d9194a7e6311740755068c77ef26d5cc486 | 3,637 | /*
* ePerf: Earnstone Performance Counters.
*
* Copyright 2011 Corey Hulen, Earnstone Corporation
*
* 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... | 25.978571 | 76 | 0.682156 |
123e300ed197b2c2ab10310a3bd809091a5efb43 | 1,038 | package com.example.maguoqing.androiddemo.fragment;
import android.os.Bundle;
import android.widget.TextView;
import com.example.maguoqing.androiddemo.R;
import com.example.maguoqing.androiddemo.annotation.ViewId;
import com.example.maguoqing.androiddemo.base.BaseFragment;
import com.umeng.analytics.MobclickAgent;
/... | 21.183673 | 64 | 0.692678 |
6e0fab78a6937ad18a187c22c4d02d8b31a9b493 | 4,267 | /*
* Copyright 2021 EPAM Systems, Inc
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the Li... | 39.146789 | 137 | 0.682447 |
3600b496aa6e418f2fecfe1f967101b3c71967f6 | 2,276 | // Copyright 2017 The Bazel 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 required by appl... | 40.642857 | 98 | 0.721002 |
177d44ea131e6a7575d4f526f133c4735e56e0aa | 1,133 | package fr.paragoumba.threedlab.components;
import fr.paragoumba.threedlab.materials.Material;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import static fr.paragoumba.threedlab.components.BlueprintPanel.PIXEL_SIZE;
public abstract class MaterialButton extends JButton {
public Mat... | 20.232143 | 90 | 0.677846 |
e9aca338654fdea51c09e84cd8af4bb393526660 | 311 | package de.onyxbits.raccoon.proto;
import com.google.protobuf.ByteString;
import com.google.protobuf.MessageOrBuilder;
public interface ServerCommandsOrBuilder extends MessageOrBuilder {
boolean hasDisplayErrorMessage();
String getDisplayErrorMessage();
ByteString getDisplayErrorMessageBytes();
}
| 23.923077 | 67 | 0.823151 |
1daae4d9a4623be60d1ee060bb252df12d907ea0 | 1,205 | /*
* Copyright (C) 2017, Ulrich Wolffgang <ulrich.wolffgang@proleap.io>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package io.proleap.cobol.asg.metamodel.procedure.use.impl;
import io.proleap.cobol.CobolPars... | 23.173077 | 81 | 0.774274 |
d4d5a4b5562abc55920c569c43b5d3b615303eb7 | 2,105 | package us.dontcareabout.ahCool.client.data;
import java.util.ArrayList;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.event.shared.SimpleEventBus;
import us.dontcareabout.ahCool.client.data.BasicDataReadyEvent.BasicDataReadyHandler;
import us.dontcareabout.ahCool.client.data.InputDat... | 30.507246 | 85 | 0.761045 |
fbb3374cbc3a0ff864a42efcaefc5a528496e79c | 3,659 | package com.pbs.middleware.server.features.ssh.shell;
import com.jcraft.jsch.Channel;
import com.jcraft.jsch.ChannelExec;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.JSchException;
import com.jcraft.jsch.Session;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import j... | 34.847619 | 162 | 0.649358 |
0fec5f7e9fa7ded87719faf934b6ff86a971815f | 659 | package JDBC;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Scanner;
class InseirPessoa {
public static void main(String[] args) throws SQLException {
Connection conexao = FabricaConexao.getConexao();//
Scanner input = new Scanner(Sys... | 25.346154 | 64 | 0.652504 |
8d46c7ca83961a638fadf5105299f8e34e38caa1 | 10,499 | package org.jailbreak.service.base.events;
import java.sql.SQLException;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
import org.jailbreak.api.representations.Representations.Checkin;
import org.jailbreak.api.representations.Represen... | 33.977346 | 122 | 0.736832 |
75634cb907d2e657b4e41df5693928381764c27f | 14,600 | /*
* Copyright (c) 2002-2016, the original author or authors.
*
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
*/
package jdk.internal.org.jline.terminal.impl.jna.w... | 41.242938 | 139 | 0.655959 |
e94e7aa94bd56dd6620092b1702d2dea65edc637 | 1,454 | package com.eldermoraes.ch10.async.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.inject.Inject;
import javax.json.bind.Jsonb;
import javax.json.bind.JsonbBuilder;
import javax.servlet.AsyncContext;
import javax.servlet.Ser... | 27.961538 | 113 | 0.673315 |
110d60927c7edf48b90eee083092f66285a4b176 | 2,083 | package com.example.screentime;
import android.accessibilityservice.AccessibilityService;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.view.accessibility.AccessibilityEvent;
import android.widget.Toast;
import androidx.annotation.RequiresApi;
import static com.... | 42.510204 | 139 | 0.695631 |
37cbff97f46c03462092d11f625e4375b1ba1808 | 3,480 | /*-
* * Copyright 2016 Skymind,Inc.
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unl... | 37.826087 | 99 | 0.618678 |
5957047f07d5fcdfcf836333e1409a9a98c22ac1 | 11,369 | package controllers.api;
import org.jetbrains.annotations.NotNull;
import play.Logger;
import play.libs.F;
import usecases.models.DataPoint;
import usecases.models.Metric;
import usecases.models.StatisticalValue;
import usecases.models.Value;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
i... | 49.864035 | 152 | 0.702348 |
53e3c6447d6ebae99f7f58c6fa713e95221a39fb | 288 | package net.xfunction.java.api.modules.activity.mapper.xfunction;
import net.xfunction.java.api.core.utils.XfunMapper;
import net.xfunction.java.api.modules.activity.model.xfunction.XfuActivityLottery;
public interface XfuActivityLotteryMapper extends XfunMapper<XfuActivityLottery> {
} | 41.142857 | 82 | 0.854167 |
b852f54af0d672bbdfe9f0bb9a96dc14bf0bc6f5 | 452 | package de.unibi.agbi.biodwh2.drugbank.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
public final class Enzyme extends Interactant {
@JacksonXmlProperty(isAttribute = true)
public int position;
@JsonProperty("inhibit... | 32.285714 | 74 | 0.794248 |
3b13558d1b8d71d5c8ff716efaf0c9b42e46576d | 1,827 | /*!
* mifmi-commons4j
* https://github.com/mifmi/mifmi-commons4j
*
* Copyright (c) 2015 mifmi.org and other contributors
* Released under the MIT license
* https://opensource.org/licenses/MIT
*/
package org.mifmi.commons4j.valuefilter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Li... | 23.727273 | 81 | 0.698413 |
b077366e6697a1a0832ee489495085ae26f554eb | 2,807 | /* Copyright 2018 The TensorFlow 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 required by applicable law or a... | 34.654321 | 129 | 0.724261 |
853cf847e2d82503c53c588217011a250802d38d | 98 | package us.nineworlds.serenity.common.media.model;
public interface IDirector extends ICrew {
}
| 16.333333 | 50 | 0.806122 |
678f339ecaecb2b0667e95b9f0d1a912173f305c | 6,751 | /*
* 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 visual;
/**
*
* @author Usuario
*/
public class JpArchivoTxt extends javax.swing.JPanel {
JfInicio ventInicio;
pub... | 51.143939 | 176 | 0.673974 |
d600c36b43aecbd2fc38b894b642f2eb1a793bfc | 7,524 | package com.nitsilchar.hp.passwordStorage.activity;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.E... | 46.444444 | 140 | 0.577087 |
d3173cf9d8b90aeb063d2ca81199f7f764d4b752 | 13,827 | /* 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 pl.undersoft.picatch;
public final class R {
public static final class array {
public static final int doc_types=0x7f... | 54.869048 | 96 | 0.745064 |
668e45392b564434da2cf21743b09ec78406ac24 | 6,078 | package ch.neukom.convenientstreams;
import com.google.common.collect.Lists;
import java.util.*;
import java.util.function.BiConsumer;
import java.util.function.BinaryOperator;
import java.util.function.Function;
import java.util.function.Supplier;
import java.util.stream.Collector;
import java.util.stream.Stream;
/... | 34.534091 | 204 | 0.561862 |
fef28b7f9bb0e0f7b8fb54cadd19041895787b0b | 9,963 | package com.bizzan.ui.wallet;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
... | 34.003413 | 167 | 0.604336 |
1af9137b26047e41305316483065cf82d3760256 | 2,244 | package questions.leetcode844;
public class BackspaceStringCompare {
public boolean backspaceCompare(String S, String T) {
int ptr_s = S.length()-1;
int ptr_t = T.length()-1;
int count_s = 0;
int count_t = 0;
while (ptr_s >= 0 && ptr_t >= 0) {
if (S.charAt(ptr_... | 29.142857 | 79 | 0.306595 |
64e35811e03d7742a763a6fc596926f7b7b2443d | 1,206 | package main.java.de.baltic_online.mediknight.widgets;
import java.awt.Component;
import java.awt.Rectangle;
import java.util.EventObject;
public class JTable extends javax.swing.JTable {
private static final long serialVersionUID = 1L;
@Override
public boolean editCellAt( final int row, final int col... | 26.217391 | 97 | 0.6534 |
3c5f644e875fa6fbea0d0fb54991e7a5e9dfc5a7 | 1,123 | package com.atguigu.struts2.validation.app;
import com.opensymphony.xwork2.ActionSupport;
public class TestValidationAction extends ActionSupport {
/**
*
*/
private static final long serialVersionUID = 1L;
private Integer age;
private String password;
private String password2;
private Integ... | 17.015152 | 58 | 0.670525 |
2e9559f332b7ec6d5a3eb6556c43005e2a213952 | 1,021 | package com.globant.bootcamp.buildings;
import com.globant.bootcamp.abstracts.Animal;
import java.util.ArrayList;
public abstract class AnimalManager extends AnimalBox{
private ArrayList<Animal> allowedAnimals = new ArrayList<Animal>();
public ArrayList<Animal> getAllowedAnimals() {
return allowedAn... | 24.902439 | 71 | 0.686582 |
8b5d767f7e55409a8eb55cf2c253f7a1eec40587 | 1,068 | package com.viglia.android.pdfaudiorecorderapp.utility;
import java.io.Serializable;
/**
*This class represents a portion of the presentation.
*It states a page index and the time this page was first selected in the given portion.
*
* Ex. Frame1:(pag.1 - seconds 0) --> Frame2:(page.2 - seconds 4) --> Frame3: (p... | 23.733333 | 100 | 0.645131 |
a1b60d9a1c1ac860362af2e6eaaeb95367cc4e04 | 2,266 | /*-
* ==========================LICENSE_START=================================
* PolyGenesis Platform
* ========================================================================
* Copyright (C) 2015 - 2019 Christos Tsakostas, OREGOR LTD
* ========================================================================
* L... | 37.766667 | 100 | 0.578111 |
5e5ebf2d7c0631407cc5abb461b8b4c7938eec52 | 3,819 | package com.example.socialMedia.Services;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.socialMedia.controller.UserProfileController;
import com.example.socialMedia.entit... | 36.028302 | 121 | 0.703849 |
885fabe7db7e560552c164f72a7c9da611fd1f75 | 1,332 | package com.icegreen.greenmail.server;
import com.icegreen.greenmail.junit.GreenMailRule;
import com.icegreen.greenmail.util.GreenMailUtil;
import com.icegreen.greenmail.util.ServerSetup;
import org.junit.Rule;
import org.junit.Test;
import javax.mail.internet.MimeMessage;
import static org.hamcrest.CoreMatchers.is;... | 32.487805 | 97 | 0.754505 |
0147c0063272d014b575d7137857ef3782523cab | 10,187 | package ru.alklimenko.calculator;
import java.util.Collections;
import java.util.EmptyStackException;
import java.util.Set;
import java.util.Stack;
/**
* A class for representing an expression in a form that is convenient for processing
*/
public class Expression extends Stack<Term> {
private boolean rpn = fals... | 38.441509 | 161 | 0.481398 |
d0b7f69fa1cfafd40abcb6eaa6315ed94c9b7dce | 3,065 | package uk.gov.hmcts.ccd.endpoint.std;
import org.junit.Before;
import org.junit.Test;
import org.mockito.MockitoAnnotations;
import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.MvcResult;
import org.springframework... | 42.569444 | 175 | 0.76248 |
9d0896fbba8941b5f957b1c43d2ef6eb6cbaee4b | 612 | package io.renren.api.rockmobi.payment.fortumo.service;
import io.renren.api.rockmobi.payment.fortumo.model.callback.PaymentCompleteCallBackRequet;
import io.renren.entity.MmProductOrderEntity;
public interface FortumoOrderService {
/**
* fortumo订单接口
* @param paymentCompleteCallBackRequet
*/
S... | 29.142857 | 120 | 0.777778 |
fad0b00fde65a616643ce299eb17c474e0ba9854 | 1,431 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.support.v4.view.accessibility;
import android.view.accessibility.AccessibilityEvent;
// Referenced classes of package android.support.v4.... | 24.672414 | 81 | 0.668763 |
55013e75c5904989bb191054930ac2341319d7b3 | 1,961 | /*
* CREDIT SUISSE IS WILLING TO LICENSE THIS SPECIFICATION TO YOU ONLY UPON THE CONDITION THAT YOU
* ACCEPT ALL OF THE TERMS CONTAINED IN THIS AGREEMENT. PLEASE READ THE TERMS AND CONDITIONS OF THIS
* AGREEMENT CAREFULLY. BY DOWNLOADING THIS SPECIFICATION, YOU ACCEPT THE TERMS AND CONDITIONS OF
* THE AGREEMENT. IF... | 40.854167 | 100 | 0.72463 |
1b72779ea4906d503ffb8d2210fe76255b3cd5bb | 1,380 | package cn.yiiguxing.plugin.translate.ui.form;
import cn.yiiguxing.plugin.translate.trans.Lang;
import cn.yiiguxing.plugin.translate.ui.TTSButton;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.ComboBox;
import com.intellij.openapi.ui.DialogWrapper;
import com.intellij.ui.components.labels... | 32.857143 | 71 | 0.786957 |
f3f49e7e1ef8398362e2b70e8fc8ff3605a60e41 | 2,717 | package kr.co.vlink.Vlink.contoller;
import kr.co.vlink.Vlink.domain.Partners;
import kr.co.vlink.Vlink.dto.PartnersDTO;
import kr.co.vlink.Vlink.dto.ResultDTO;
import kr.co.vlink.Vlink.service.PartnersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.anno... | 34.392405 | 119 | 0.66728 |
08a357480425127435c9cee4884b2b9c88535edf | 2,876 | /**
* AET
*
* Copyright (C) 2013 Cognifide 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 applicable law... | 31.955556 | 100 | 0.749305 |
dc391fda33b2ff9518c9d670404e39b17822bc5a | 268 | package com.heji.server.file;
public class StorageException extends RuntimeException {
public StorageException(String message) {
super(message);
}
public StorageException(String message, Throwable cause) {
super(message, cause);
}
} | 22.333333 | 62 | 0.697761 |
beca18fd1548a4e252d1de1eddc0ec8e9b80e16e | 1,632 | package de.n26.n26androidsamples.base.presentation.providers;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.StringRes;
import android.support.v4.util.Pair;
import javax.inject.Inject;
import de.n26.n26androidsamples.base.common.utils.StringUtils;
import ... | 31.384615 | 138 | 0.741422 |
8d178c50d270b92b0838fde44486408a22ecdba4 | 3,558 | package fi.riista.feature.announcement.show;
import fi.riista.feature.account.user.SystemUser;
import fi.riista.feature.account.user.UserRepository;
import fi.riista.feature.announcement.Announcement;
import fi.riista.feature.announcement.AnnouncementSubscriber;
import fi.riista.feature.announcement.AnnouncementSubscr... | 47.44 | 137 | 0.796234 |
4ae0fe73d2aa186a0b8106409b6c6de2dba1680a | 13,388 | package com.cb.platform.yq.base.permission.test;
import com.cb.platform.yq.base.interfaces.bean.permission.Permission;
import com.cb.platform.yq.base.interfaces.bean.role.Role;
import com.cb.platform.yq.base.interfaces.constant.InterfaceConstant;
import com.ceba.base.utils.IDSDateUtils;
import org.apache.commons... | 35.417989 | 211 | 0.639154 |
b2d146cb863fb5d79ad466c6929f863313df941e | 213 | package cn.bgenius.pconnect.todo.service;
import cn.bgenius.pconnect.todo.entity.TTodoes;
import cn.bgenius.pconnect.common.service.BaseService;
public interface TtodoesService extends BaseService<TTodoes> {
}
| 23.666667 | 62 | 0.826291 |
c679ee74b70a989e4e41b6231cfdbf399aa03eac | 1,765 | package com.example.loginpage;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActi... | 32.090909 | 121 | 0.717847 |
e2340c5f2f9e2d790e4342d6d67b772fb4d3d537 | 1,569 | /*
* Copyright 2020 ViiSE
*
* 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 wri... | 24.904762 | 75 | 0.671128 |
c0c481c951fab872898ae02de23d9ad7d3a1b5ed | 3,284 | package io.github.cubedtear.jcubit.math;
import io.github.cubedtear.jcubit.util.API;
/**
* 3D Vector of integers (x, y). Immutable.
*
* @author Aritz Lopez
*/
@API
public class Vec3i {
public final int x, y, z;
/**
* Creates a 0-vector. Equivalent to calling {@code new Vec3i(0, 0, 0)}.
*/
@API
public Ve... | 24.691729 | 130 | 0.648904 |
57f55814be3b365c8267783867b8c7ccd309468a | 15,639 | package calculadora.service;
public class Motor {
private static final char MEIA_RISCA = '–';
public static String calcResultado(String formula) throws IllegalArgumentException {
String[] numeros;
String[] operadoresBasicos;
numeros = formula.replace(",", ".").split("([+]|[" + MEIA_R... | 47.679878 | 164 | 0.46659 |
e20aa70c793f271fb438166eef6f037c8e3d2c61 | 9,574 | /*
* Copyright (C) ExBin Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 38.604839 | 129 | 0.667328 |
4a25c68f908681f3408c2f84c65a4463a2ad737b | 1,995 | package io.rapidpro.flows.runner;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import io.rapidpro.expressions.dates.DateStyle;
import io.rapidpro.flows.utils.JsonUtils;
import io.rapidpro.flows.utils.Jsonizable;
import org.threeten.bp.ZoneId;
/**
* An organization - used to provide addition... | 26.6 | 108 | 0.633584 |
8db936c6046b3fd3aadff5fcd834cf1f8b1e8258 | 472 | package musti;
import java.awt.Graphics;
import java.awt.Image;
public class Arkaplan {
private Image arkaplanimage;
int height;
public Arkaplan(Image arkaplanimage)
{
super();
this.arkaplanimage = arkaplanimage;
height = arkaplanimage.getHeight(null);
}
public void ciz (Graphics g,double coordinat... | 19.666667 | 96 | 0.71822 |
8ff77d8668534fcf4310abf747015a5ffc74a6af | 222 | package pl.zankowski.tostringverifier.validator;
import pl.zankowski.tostringverifier.generator.GeneratorResult;
interface Validator {
void validate(final String toString, final GeneratorResult generatorResult);
}
| 22.2 | 80 | 0.828829 |
ab36abc5b10739c4efbe20f596fc9074335cb822 | 481 | package b.j.a.c.h0.t;
import b.j.a.b.f;
import b.j.a.c.y;
import b.j.a.c.z.a;
@a
public final class t0 extends r0<Object> {
public t0() {
super(String.class, false);
}
public boolean d(y yVar, Object obj) {
return ((String) obj).length() == 0;
}
public void f(Object obj, f fVar, ... | 19.24 | 73 | 0.557173 |
50fe39377f8aab55394fef381e5ab7aaac6ae791 | 360 | package com.fredhappyface.anothergemsmod.lib.blocks;
/**
* @author FredHappyface
* @version latest update 2019.08.06
*
* Provides a public constructor for net.minecraft.block.DoorBlock
*/
public class ModDoorBlock extends net.minecraft.block.DoorBlock {
public ModDoorBlock(final Properties blockProperties) {
... | 25.714286 | 66 | 0.752778 |
ac5e718e6b1309711078e8b695e8497ae64437d5 | 1,142 | package com.leax_xiv.logo;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
public class Turtle {
private Graphics2D g;
// Not really sure what to use these for
private int w;
private int h;
private boolean writing;
private boolean showHead;
public Turtle(Graphics g, int w, i... | 16.550725 | 71 | 0.637478 |
b70055556eb9194f3cf337ad8210f5af802b7f12 | 1,019 | package com.lcg.basicweb.controller;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;
public abstract class BaseCon... | 30.878788 | 102 | 0.606477 |
1b34853e388c225f4c3ea651b82f3e7e6bcbcf83 | 4,684 | /**
* Copyright (c) 2013 Martin Geisse
*
* This file is distributed under the terms of the MIT license.
*/
package name.martingeisse.guiserver.configuration.multiverse;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Stack;
import name.martingei... | 32.755245 | 135 | 0.751067 |
9ddaf7318fccdb6a3758c4fc974f1be6f27926da | 965 | package me.chanjar.weixin.mp.bean.guide;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 获取快捷回复,关注顾问自动回复返回类
* @author <a href="https://www.sacoc.cn">广州跨界-宋心成</a>
* @date 2021/5... | 23.536585 | 72 | 0.74715 |
7fa81dba5ecf254a739ca7fab6ad5674b4ca4145 | 4,940 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.ai.formrecognizer;
import com.azure.ai.formrecognizer.models.FormRecognizerLocale;
import com.azure.ai.formrecognizer.models.FormRecognizerOperationResult;
import com.azure.ai.formrecognizer.models.Recogni... | 55.505618 | 188 | 0.640283 |
7a03d376cee04ea4e0ae388fde7abf6f7c247b74 | 7,351 | package com.mysaasa.ui;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import com.mysaasa.MySaasaApplication;
import com.mysaasa.R;
import com.mysaasa.api.mode... | 40.838889 | 141 | 0.522242 |
af8b3fb4568a2762340f6fc44bfcd35ae668ea00 | 5,501 | /*-
* Copyright (C) 2013-2014 The JBromo Authors.
*
* 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, copy, modify, ... | 31.079096 | 109 | 0.632976 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.