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 |
|---|---|---|---|---|---|
c8868b97e0e2f99f11ef3a0023e64b44de5bd75a | 1,753 | package com.github.alebabai.tg2vk.security.service.impl;
import com.github.alebabai.tg2vk.domain.Role;
import com.github.alebabai.tg2vk.security.config.JwtSettings;
import com.github.alebabai.tg2vk.security.service.JwtTokenFactoryService;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
import io.jsonwebtok... | 36.520833 | 121 | 0.723902 |
50c9f03d69f714d48662f7f03e653264bce17976 | 1,681 | /*
* (c) Copyright 2015-2016 Micro Focus or one of its affiliates.
*
* Licensed under the MIT License (the "License"); you may not use this file
* except in compliance with the License.
*
* The only warranties for products and services of Micro Focus and its affiliates
* and licensors ("Micro Focus") are as may ... | 40.02381 | 118 | 0.780488 |
b97d5661bfe2195b937c522c299b414a150c945d | 1,373 | package com.esri.hadoop.hive;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.hive.ql.exec.Description;
import org.apache.hadoop.io.BytesWritable;
import com.esri.core.geometry.Geometry;
import com.esri.core.geometry.GeometryEngine;
import com.esr... | 30.511111 | 95 | 0.718864 |
861fdb749e5a21d3af1f25b8188669dedabc4177 | 1,821 | package crackingCodingInterview;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
/**
* @author WuPing
* @version 2016年10月20日 下午4:22:08
*/
public class LongestString_79 {
// 先按字符串长度排个序, 然后从长度最长的开始判断是否是由其他的组成的。
// 每次都从字符串的前... | 26.391304 | 99 | 0.544756 |
c3e98361c92383ff0aab020766a420042fd28c1e | 584 | /**
* See the main class {@link StreamedSQL} for more information on how to use this library.
*
* <p>
* This is based on an idea I found on Stackoverflow: <a href=
* "https://stackoverflow.com/a/32232173/2123025">https://stackoverflow.com/a/32232173/2123025</a>
*
* <p>
* Visit the <a href="https://github.com/... | 36.5 | 98 | 0.714041 |
60d380da3eb629ebcd15eb5275a9227af2c09a3c | 16,713 | //
// Copyright 2018-2020 SenX S.A.S.
//
// 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 l... | 36.975664 | 228 | 0.666128 |
58714167041f0f080a1e293899d5350116b5fa9c | 886 | package com.qchenmo.a001;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class ButtonActivity extends AppCompatActivity {
private Button btn_3;
@Override
protected void onCreate(Bundl... | 26.848485 | 92 | 0.664786 |
985b1f8a6b130edb761b4afc455350f3233b5edc | 511 | package com.example.template_dpr_now.Undangundang_Activity;
public class UndangUndangItem {
private String mNomor;
private String mTentang;
private String mDoc;
public UndangUndangItem(String nomor, String tentang, String file){
mNomor = nomor;
mTentang = tentang;
mDoc = file;
... | 19.653846 | 71 | 0.634051 |
629f173545fc293f6efaebbf9d55e4c8299639ac | 4,642 | package org.sunbird.ui;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import org.ekstep.genieservices.commons.bean.enums.InteractionType;
import org.json.JSONExcept... | 40.719298 | 250 | 0.607497 |
ce7a402ddd5e7bb1b93d970598f0054e8172c8db | 2,037 | /*
* Copyright 2016 CIRDLES.
*
* 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... | 27.90411 | 75 | 0.675503 |
1a0f9bb97e636965e859e1b06a0f20f6a1abaffc | 1,722 | package org.ndexbio.cx2.aspect.element.core;
import static org.junit.Assert.*;
import org.junit.Test;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
public class DefaultVisualPropertiesTest {
... | 39.136364 | 84 | 0.559814 |
7845987dc7e279cf335939f2dc6a1937adb1e942 | 949 | package io.github.pureza.warbots.util;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
/**
* An event type
*
* An event contains a list of consumers attached that are executed when the
* event is fired.
*/
public class Event<T> {
/** Consumers attached to this event */... | 21.568182 | 76 | 0.639621 |
b50c4067f9419c9d59b499e704ed030bc83f0320 | 1,517 | package io.eventuate.tram.messaging.proxy.consumer;
import io.eventuate.tram.messaging.proxy.service.ProxyConfiguration;
import io.eventuate.tram.messaging.proxy.service.SubscriptionService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.EnableConfigurationP... | 47.40625 | 171 | 0.808174 |
d796d0d1d7ed889ae9ae704d5dbcf306e67a3cca | 3,294 | package com.codecool.web.dao;
import com.codecool.web.model.Result;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
public final class ResultDao extends AbstractDao {
private DatabaseUserDao userDao = new DatabaseUserDao(connection);
public ResultDao(Connection connection) {
s... | 37.431818 | 124 | 0.620826 |
ccef6e3298bbb73c2effd251d4ce8b0c3da49ce5 | 966 | package bg.car_wash.areas.user.models.viewModels;
import bg.car_wash.areas.user.entity.UserType;
import com.google.gson.annotations.Expose;
public class UserViewModel {
@Expose
private Long id;
@Expose
private String email;
@Expose
private String fullName;
@Expose
private UserType userType;
public UserV... | 15.836066 | 73 | 0.720497 |
a7f29e3b595a9a48afe3f010eb2e3c1460f659e9 | 6,014 | /**
* 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 m... | 55.174312 | 143 | 0.806784 |
c2652dcd71f24aee19fd772028cd24174e1bf0d1 | 262 | package com.s2.easycode.validator;
import java.util.List;
import com.s2.easycode.sourcegenerator.ProjectDescription;
public interface ProjectValidatorService {
boolean validate(ProjectDescription projectDescription);
List<ErrorType> getErrors();
}
| 18.714286 | 60 | 0.801527 |
00e78a0cf593be379bdc00ae71e146240d6917a0 | 9,890 | /*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software F... | 34.221453 | 94 | 0.617594 |
b958bc6d2408d3e5d00914fa07dc81d35c5e176f | 1,379 | package org.usfirst.frc4786.RobotBuilderTest1.subsystems;
import org.usfirst.frc4786.RobotBuilderTest1.Robot;
import org.usfirst.frc4786.RobotBuilderTest1.RobotMap;
import edu.wpi.first.wpilibj.DoubleSolenoid;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
... | 25.072727 | 100 | 0.751994 |
70d862d8425fb7750433d7162cf36b36ad8bedcb | 3,586 | /*
* Copyright (C) 2017 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... | 33.514019 | 88 | 0.715282 |
83b3d94dd82694f761c3bd50dc4aa0d067dffd48 | 2,780 | /*******************************************************************************
* Copyright (c) 2009 IBM Corporation 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 a... | 22.786885 | 81 | 0.628058 |
f7e237ccd0446751362e17923aa49f0c5d4c3208 | 8,245 | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | 40.615764 | 119 | 0.659794 |
ecd05093bf08fd9c1c1a45ded5cf7bed78bf1ff1 | 786 | package openLyghtPlugins.ColorEffect;
import java.awt.Color;
import org.json.JSONObject;
public class EffectColor {
private String label;
private Color labelColor;
private Color rgbColor;
public EffectColor(JSONObject data){
label = data.getString("label");
JSONObject label = data.getJSONObject("labelCo... | 23.818182 | 91 | 0.717557 |
4818c54999a35669b98f2b75bfee4dcec100ad8e | 2,934 | package br.com.zup.MercadoLivre.integration.transaction;
import br.com.zup.MercadoLivre.integration.util.Persistence;
import br.com.zup.MercadoLivre.integration.util.RequestBuilder;
import br.com.zup.MercadoLivre.transaction.Transaction;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName... | 34.517647 | 93 | 0.708248 |
e49c5d5ad6dcc8c50f77c0d0022e36dd9b0b68c6 | 4,019 | package pl.marcinchwedczuk.elfviewer.gui.mainwindow.renderer;
import javafx.beans.property.StringProperty;
import javafx.scene.control.TableColumn;
import pl.marcinchwedczuk.elfviewer.elfreader.elf.arch.NativeWord;
import pl.marcinchwedczuk.elfviewer.elfreader.elf.shared.ElfGnuHashTable;
import pl.marcinchwedczuk.elfv... | 37.212963 | 92 | 0.582483 |
75a4d2506168f9c8f67270ef0b3847633a0654fd | 545 | package com.librato.disco;
/**
* Interface to decode bytes stored in Zookeeper to type T
* @param <T> type of object excepted from decoding bytes
*/
public interface Decoder<T> {
/**
* Decode a byte array into an object of type T
* @param bytes the byte array payload stored in Zookeeper
* @return... | 24.772727 | 62 | 0.658716 |
9fd69e2315aca51e7a59cc66c49817d54a4251cf | 2,891 | /*
* (c) Copyright 2019 Palantir Technologies Inc. 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 ... | 34.831325 | 101 | 0.708751 |
d5016c7cb18057c13b3981966d4629f5a64cb3cb | 11,577 | /*
KadecotDeviceService
Copyright (c) 2015 NTT DOCOMO,INC.
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
package org.deviceconnect.android.deviceplugin.kadecot;
import android.app.Application;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;... | 36.752381 | 120 | 0.599205 |
19172bb4ebe583566753c52df6441011df9412da | 2,422 | package com.sequenceiq.cloudbreak.cloud.aws;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.stereotype.Component;
import com.amazonaws.services.ec2.AmazonEC2Client;
import com.amazonaws.services.ec2.model.AvailabilityZone;
import com.sequenceiq.cloud... | 43.25 | 153 | 0.680842 |
0f564dbb0b5c1b248fb811054104ff89013c0a92 | 1,148 | package com.codedrinker.github.entity;
/**
* Created by codedrinker on 06/08/2017.
*/
public class GitHubUser {
private String login;
private Integer id;
private String avatar_url;
private String email;
private String name;
private String access_token;
public String getAccess_token() {
... | 18.516129 | 54 | 0.605401 |
c6ac52eff3da490a1696769e4c5ff4a5e1f35c9b | 43,492 | package com.viesis.viescraft.client.entity.render;
import com.viesis.viescraft.api.EnumsVC;
import com.viesis.viescraft.api.ItemsVC;
import com.viesis.viescraft.api.References;
import com.viesis.viescraft.client.InitParticlesVCRender;
import com.viesis.viescraft.client.entity.model.ModelAirshipPanel;
import com.viesis... | 35.045931 | 202 | 0.594707 |
aa28f46bf50d496cccc8490bb0551716bed6105e | 3,662 | package com.company.iendo.mineui.activity.choice;
import android.view.View;
import android.widget.TextView;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.RecyclerView;
import com.company.iendo.R;
import com.company.iend... | 33.907407 | 110 | 0.677772 |
18d702bd05d39c146d6e6ff5cc40898ea569884a | 728 | package io.choerodon.test.manager.api.vo;
import java.util.List;
/**
* @author: 25499
* @date: 2019/11/28 8:49
* @description:
*/
public class ExecutionStatusVO {
private Long total;
private List<TestStatusVO> statusVOList;
public ExecutionStatusVO(Long total, List<TestStatusVO> statusVOList) {
... | 20.222222 | 75 | 0.653846 |
ac7cd5f018228bf38c494004d26699234b8fefc3 | 2,352 | /*
* 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 ... | 36.184615 | 161 | 0.72449 |
7c9bb7eb0ec57b62748cea93656bd42166402e65 | 2,504 | package io.smallrye.lra.tck.extension;
import org.jboss.arquillian.container.spi.event.container.AfterDeploy;
import org.jboss.arquillian.container.spi.event.container.AfterSetup;
import org.jboss.arquillian.container.spi.event.container.AfterStart;
import org.jboss.arquillian.core.api.annotation.Observes;
import org.... | 36.289855 | 173 | 0.694489 |
994c49a5d03c606b66eca24ea74dca0a0e554115 | 1,081 | package com.coreoz.plume.jersey.java8;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import javax.ws.rs.ext.ParamConverter;
import javax.ws.rs.ext.ParamConverterProvider;
public class TimeParamProvider impl... | 31.794118 | 106 | 0.789084 |
da9f656c1e3c5afb31dd9203eff48b1faef38b19 | 1,486 | package ddop.builds;
import ddop.stat.Stat;
import ddop.stat.conversions.NamedStat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
public class CommonAugmentEnchantments {
private static final List<String> enchantments = new ArrayList<String>(Arrays.asLis... | 29.137255 | 89 | 0.543742 |
ccf93fc21fd7a356759e807fa3053a3b47771348 | 3,165 | package stream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class StreamExample2 {
public static void main(String[] args) {
Person[] peopleArr = {
new Person("Brandon", 23),
new Person("Hank", 43),... | 25.942623 | 82 | 0.525434 |
cbe92f45b8bb2d1e2f1cbc85c6c1507295fffe6b | 1,165 | package org.cat.eye.common.ignite.client.pool;
import org.apache.commons.pool2.impl.GenericObjectPool;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.apache.ignite.client.IgniteClient;
/**
* Created by Kotov on 20.04.2019.
*/
public class CatEyeIgniteClientPool {
private GenericObject... | 31.486486 | 110 | 0.743348 |
4f4e6e8f3981755b36c706fb2ac5d520300d05e5 | 545 | package panda.tube.gcloud.vision.images;
public class ColorInfo {
private String color;
private Float score;
private Float pixelFraction;
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
public Float getScore() {
return score;
}
publ... | 20.185185 | 53 | 0.697248 |
63472ca9fe00fab069000e07f09108eba2643ceb | 2,716 | /* */ package psdi.webclient.beans.asset;
/* */
/* */ import java.rmi.RemoteException;
/* */ import psdi.app.asset.Asset;
/* */ import psdi.app.asset.AssetRemote;
/* */ import psdi.mbo.MboSetRemote;
/* */ import psdi.util.MXException;
/* */ import psdi.webclient.system.session.WebClient... | 35.272727 | 126 | 0.554124 |
53b0e96d5966f7bc5921b8d6233c37aa5050d2e5 | 3,484 | package com.placecube.nhs.readiness.web.service;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.sameInstance;
import static org.junit.Assert.assertThat;
import static org.mockito.MockitoAnnotations.initMocks;
import java.util.ArrayList;
import java.util.List;
import java.util.Optiona... | 31.672727 | 110 | 0.82147 |
e848dffc37603d62a6140100521d405f11af9a56 | 4,802 | /*
Copyright (C) GridGain Systems. 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... | 33.58042 | 120 | 0.645773 |
e80cacf339caac65c13587c1d3b7cebce66a625f | 2,964 | package com.example.lcpjava.array;
public class Lcp_2185_Counting_Words_With_a_Given_Prefix {
/**
* time : O(n * prefix)
* space : O(1)
*
* int count <- 0
* int pLength <- prefix length
*
* for String word in words
* if word length is lower than pLength
* continue
* end if
*
* ... | 20.873239 | 150 | 0.539136 |
73a4ecab6f7e858390a7c356af0a3cc30f3e16a1 | 1,257 | package br.com.eliasnepo.proposta.feignclients.dto;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import br.com.eliasnepo.proposta.cartao.Cartao;
import br.com.eliasnepo.proposta.propostas.Proposta;
public class SolicitacaoCartaoResponse {
private String id;
private LocalDateTime emitidoEm;
privat... | 23.716981 | 155 | 0.758154 |
c494196caea438bbb36e77935375875f4accc5ee | 5,847 | /*
* Copyright 2012 Alex Usachev, thothbot@gmail.com
*
* This file is part of Parallax project.
*
* Parallax is free software: you can redistribute it and/or modify it
* under the terms of the Creative Commons Attribution 3.0 Unported License.
*
* Parallax is distributed in the hope that it will be useful, but
... | 36.31677 | 118 | 0.61895 |
88cd73f597cf1792e0fe3d7a362155debcadfc72 | 40,548 | /*******************************************************************************
*
* This file is part of iBioSim. Please visit <http://www.async.ece.utah.edu/ibiosim>
* for the latest version of iBioSim.
*
* Copyright (C) 2017 University of Utah
*
* This library is free software; you can redistribute it and/o... | 36.761559 | 243 | 0.657665 |
2c839188d526b9e3721ca6b264a568218001643d | 129 | package com.socket.totp;
class TotpContent {
public TotpCmd cmd;
public TotpStatus status;
public Object content;
}
| 16.125 | 29 | 0.72093 |
bbd0a7e103c080d35a77b23d0691967e1f8fe6b5 | 6,093 | package hudson.plugins.filesystem_scm;
import hudson.scm.ChangeLogSet;
import hudson.scm.EditType;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import javax.annotation.CheckForNull;
/** Represents a Changelog record (... | 23.988189 | 91 | 0.616773 |
22b700dd2221026e98364eff57d5deb36b32a77c | 1,252 | package com.jlol.match;
import com.jlol.summoner.Summoner;
public class Participant {
private int paticipantId;
private int teamId;
private int championId;
private int spell1Id; //SummonerSpells class
private int spell2Id; //SummonerSpells class
private ParticipantStats stats;
private ParticipantTim... | 20.866667 | 118 | 0.706869 |
0ba6213470d05bf2eeff289ec0abc0a149fb32ae | 335 | import java.util.Scanner;
public class units {
public static void main (String [] args) {
Scanner input = new Scanner (System.in);
System.out.println ("Enter a value for feet: ");
double value = input.nextDouble();
double meters = value/3.2808;
System.out.println (value + " feet is " + meters + " mete... | 23.928571 | 65 | 0.650746 |
b13003d8a1d4738c39f12ae2b3b69b36135b6659 | 873 | package ooga.game.controls;
import java.util.ResourceBundle;
/**
* @author sam thompson
* Concretely handles using a keyboard-type controls mapping.
* Doesn't handle certain other schemes (like analogue in controllers.)
*/
public class KeyboardControls implements ControlsInterpreter {
public static final Strin... | 24.942857 | 77 | 0.71134 |
672f8bbf50559344a19afa738f492277c95a57cc | 6,117 | package biz.integsys.fftplotter;
import android.Manifest;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v... | 36.628743 | 125 | 0.636096 |
943b6945009ac92515b98ff7c7cb531c364be97f | 715 | package vazkii.botania.forge.mixin.client;
import net.minecraft.world.item.Item;
import net.minecraftforge.client.IItemRenderProperties;
import org.spongepowered.asm.mixin.Mixin;
import vazkii.botania.common.item.block.ItemBlockWithSpecialRenderer;
import vazkii.botania.forge.client.ForgeBlockEntityItemRendererHelpe... | 29.791667 | 75 | 0.846154 |
13eab63f6aafca3eef9174d113309d01bb0de501 | 1,650 | /*
* Copyright 2010-2020 Australian Signals Directorate
*
* 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 a... | 25.78125 | 75 | 0.67697 |
56ab8c0157581a31c1e5a3e459384c16a292575e | 3,595 | /*
* Copyright 2012-2014 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 ap... | 34.567308 | 211 | 0.760501 |
8b4a30364c5b10f384492ff58f0d7792dede6835 | 1,212 | package com.twu.biblioteca.user;
import java.util.Objects;
/**
* Created by zgebru on 18.04.17.
*/
public class User {
private String ID;
private String password;
private boolean loggedIn;
private String name;
public String getName() {
return name;
}
public String getEmail() {
return email;... | 18.089552 | 103 | 0.659241 |
c19162024deca877de14d7967d54578a06844f43 | 8,060 | package com.nike.riposte.util.asynchelperwrapper;
import com.nike.internal.util.Pair;
import com.nike.riposte.server.channelpipeline.ChannelAttributes;
import com.nike.riposte.server.http.HttpProcessingState;
import com.nike.wingtips.Span;
import com.nike.wingtips.Tracer;
import com.tngtech.java.junit.dataprovider.Da... | 37.488372 | 127 | 0.713151 |
ee3645c2b869d5e2a107ed116827ffea49aa9953 | 4,451 | package net.qiujuer.italker.common.app;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.os.SystemClock;
import androidx.annotation.StringRes;
import android.util.Log;
import android.widget.Toast;
import net.qiujuer.genius.kit.handler.Run;
import net.qiujuer.genius... | 24.059459 | 105 | 0.56639 |
b62335755b417e7397d276c2724dbbd667309be0 | 2,050 | package com.hope.domain;
public class ScrDailyRecord {
private int id;
private int scrDailyId;
private int type;
private String content1;
private String content2;
private String content3;
private String content4;
private String content5;
private String content6;
publi... | 16.269841 | 118 | 0.57561 |
8c62340927c99ca57457392f26025b31a733e585 | 4,880 | // Copyright (c) 2020, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.ir.optimize.library;
import com.android.tools.r8.graph.AppView;
import com.a... | 37.829457 | 98 | 0.736885 |
c092e96c9ea31beb653e8c0d3950ce03080caab9 | 4,273 | package org.clafer.choco.constraint.propagator;
import java.util.Arrays;
import org.chocosolver.solver.constraints.Propagator;
import org.chocosolver.solver.constraints.PropagatorPriority;
import org.chocosolver.solver.exception.ContradictionException;
import org.chocosolver.solver.variables.IntVar;
import org.chocoso... | 34.459677 | 112 | 0.592558 |
87762b780fbf76e70b53b0ddf73c4f93a2e06c87 | 3,129 | package io.configrd.core.aws.kms;
import java.util.List;
import java.util.Map;
import java.util.StringJoiner;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.ama... | 28.706422 | 96 | 0.707894 |
a3f34f2a5c381c6714c80a5841bc0726e94acec4 | 826 | package com.stefanik36.agds.util;
import com.stefanik36.agds.model.node.Node;
import com.stefanik36.agds.model.node.node_type.NodeValue;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class UtilTest {
@Test
public void disconnect() {
... | 26.645161 | 58 | 0.668281 |
38877fe054cd7d3e3097e2ef1def623a4ee5e93f | 1,027 | package com.test;
import org.apache.commons.io.FileUtils;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.IOException;
public class Log4jConfigurationTest {
static {
try {
File temp = File.createTempFile("temp-file-name", ".... | 29.342857 | 118 | 0.63778 |
5cccdcfecefd6ebd831baf3795cac0acd8255597 | 2,138 | /* ** GENEREATED FILE - DO NOT MODIFY ** */
package com.wilutions.mslib.outlook;
import com.wilutions.com.*;
/**
* OlMeetingRecipientType.
*
*/
@SuppressWarnings("all")
@CoInterface(guid="{00000000-0000-0000-0000-000000000000}")
public class OlMeetingRecipientType implements ComEnum {
static boolean _... | 35.04918 | 94 | 0.682413 |
72ddd701bfd725cc8676ee48124c9451bd2e2abd | 145 | package mobi.tarantino.stub.auto.feature.dashboard;
/**
*/
public interface ShowDriverAssistanseListener {
void showDriverAssistance();
}
| 16.111111 | 51 | 0.765517 |
6224987a58a4067df3c904bde64f4813380176ee | 568 | package org.ovirt.engine.ui.common.widget;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FocusWidget;
public class FocusComposite extends Composite {
private boolean isFocused;
protected void addFocusWidget(FocusWidget widget) {
widget.addFocusHandler(event -> ... | 21.846154 | 58 | 0.700704 |
589c52db40ef8311c3fd120fb9ae7884d27c9d90 | 4,219 | package ch6;
import java.util.ArrayList;
public class ArrayListTesting {
public static void main(String[] args) {
ArrayList<Integer> array = new ArrayList<Integer>();
ArrayList<String> strList = new ArrayList<String>();
int[] start = {0,0,2,0,4,0,6,0,8,0,10,0,12,0,14,0,16}; ... | 27.396104 | 102 | 0.492771 |
707ca1389322e492c3a2933f2ccb6bdfcd78d926 | 1,542 | package com.employee.pagetan.sdk.db.impl;
import com.employee.pagetan.sdk.base.entity.User;
import com.employee.pagetan.sdk.db.UserDbInterface;
import com.employee.pagetan.sdk.mock.MockUser;
import java.util.HashMap;
/**
* Created by pageTan on 2018/3/29.
*/
public class UserDb implements UserDbInterface {
/... | 21.71831 | 71 | 0.57847 |
6f646fa12b2ae29dc8ab44686cf7ba7e0fa94135 | 1,768 | package org.daniandruk.launchpad.rest;
import java.awt.Color;
import org.daniandruk.launchpad.model.Item;
import java.util.List;
import javax.inject.Inject;
import javax.validation.constraints.NotNull;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import j... | 31.571429 | 130 | 0.69457 |
295a81e9a1ead89281daa8f68c1834eb27d9d5b0 | 344 | import java.util.Scanner;
public class numberOfSquares {
public static void main(String ar[]){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int count=0;
while(n>0){
int s=(int)Math.sqrt(n);
n=n-s*s;
count++;
}
System.out.... | 21.5 | 42 | 0.514535 |
35c9584aa52257a4ef81bf92090db844c3b90269 | 245 | package org.colorcoding.ibas.purchase.bo.purchaserequest;
import org.colorcoding.ibas.bobas.bo.IBusinessObjects;
/**
* 采购申请-行 集合
*/
public interface IPurchaseRequestItems extends IBusinessObjects<IPurchaseRequestItem, IPurchaseRequest> {
}
| 18.846154 | 105 | 0.812245 |
938986a9f9db5ca1d563cae183839c5804ee41ea | 1,261 | package edu.wisc.cs.sdn.vnet.vns;
import java.nio.ByteBuffer;
import net.floodlightcontroller.packet.Ethernet;
public class CommandPacket extends Command
{
protected String mInterfaceName;
protected Ethernet etherPacket;
public CommandPacket()
{ super(Command.VNS_PACKET); }
protected CommandPacket deseriali... | 23.351852 | 68 | 0.645519 |
78eecae5fb6593b22895e4ae46255f895d404c2b | 2,122 | /*
* 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 mybasicserver;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
impo... | 27.558442 | 87 | 0.612158 |
88ed13b6ceaa60feadd858eb68250102f76ddbe8 | 256 | package lispfunc2cfunc.parser.node;
public class ASTCalleeNode extends ASTNode {
public String name;
@Override
public String toString() {
return "ASTCalleeNode{" +
"name='" + name + '\'' +
'}';
}
} | 19.692308 | 44 | 0.546875 |
bb619319107465e20a0a2633546ebcee53d15c6d | 696 | package com.example.banking.application;
import com.example.banking.domain.Account;
import com.example.banking.domain.CheckingAccount;
import static com.example.banking.domain.Account.getNumberOfAccounts;
@SuppressWarnings({"static-access","unused"})
public class StudyStatic {
public static void main(String[] args)... | 31.636364 | 69 | 0.758621 |
7f67921b44253935813da8aa461234b20a9726cc | 12,362 | package com.example.androidebook.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.MenuItem;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.vie... | 41.622896 | 226 | 0.638408 |
83ea444a294657358c4cccb6189e8753360fcc85 | 4,980 | package com.ch.fastdfsapi.controller;
import cn.hutool.core.util.IdUtil;
import com.ch.fastdfsapi.model.DeleteParameter;
import com.ch.fastdfsapi.model.entity.FileBean;
import com.ch.fastdfsapi.model.parameter.FileBeanParameter;
import com.ch.fastdfsapi.services.FastDFSApi;
import com.ch.fastdfsapi.services.FileServer... | 31.320755 | 86 | 0.606225 |
bfc328a9bb1b7dc103102728a67d17468e95f682 | 2,976 | /*
* Copyright (c) 2010-2013, University of Sussex
* 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 l... | 33.818182 | 79 | 0.715726 |
e4be4cc7097a71ed0a229c28475f7c891808957f | 1,745 | /*
* 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 floyd.warshall;
import com.jfoenix.controls.JFXButton;
import java.io.IOException;
import java.net.URL;
import java.util.Resou... | 26.044776 | 86 | 0.696848 |
437a5b65cd77d8c0044ef06264ca1daf210526a2 | 378 | package com.taotao.cloud.java.javaee.s1.c11_web.java.bean;
import java.util.List;
/**
* @author 徒有琴
*/
public class TableData<T> {
private int code=0;
private String msg;
private long count;
private List<T> data;
public TableData() {
}
public TableData(long count, List<T> data) {
... | 16.434783 | 58 | 0.616402 |
4212a939159514e0a857d65ef11485f0cbf7ed21 | 1,236 | package Usage;
import Scheduler.Action;
@SuppressWarnings({"unused"})
public class Recurrence extends Action<Boolean, Object> {
private String text;
private String subject;
private String[] addressees;
public Recurrence(String name, long progress, String[] addressees, String subject, String text) {
super(name... | 19.015385 | 98 | 0.711974 |
65f9dd74f5e21406ff9c3b5d4625916efcdd2dec | 2,660 | package com.leanstacks.ws.util;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
/**
* <p>
* The BCryptPasswordEncoderUtil class assists engineers during application construction. It is not intended for us... | 28 | 120 | 0.659023 |
55ef0fa98f8a021dd60d47d8aff5474ee2dd1771 | 433 | package br.com.beibe.beans;
import java.time.LocalDate;
@SuppressWarnings("serial")
public final class Cliente extends User {
public Cliente() {
super();
}
public Cliente(Long id, String firstName, String lastName, String cpf, String email, LocalDate dateBirth, String phone, Address address, Str... | 27.0625 | 159 | 0.704388 |
6e380c07e5f158ecdd25125dacf3917a0fe88723 | 25,050 | /**
* Copyright 2017 Syncleus, Inc.
* with portions copyright 2004-2017 Bo Zimmerman
*
* 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... | 41.611296 | 162 | 0.545309 |
95fde22c558a67f7e4fe6425d44c31faa3868af7 | 8,493 | package org.nachc.tools.fhirtoomop.util.mapping.impl;
import java.sql.Connection;
import java.util.List;
import org.hl7.fhir.dstu3.model.Coding;
import org.nachc.tools.fhirtoomop.omop.util.id.FhirToOmopIdGenerator;
import org.nachc.tools.fhirtoomop.util.db.connection.OmopDatabaseConnectionFactory;
import org.nachc.to... | 35.987288 | 118 | 0.686683 |
514c974126a5acc3f99be04eb229ec3c9627e870 | 3,675 | /**
* The MIT License (MIT)
*
* Copyright (c) 2021-present Alexander Rogalskiy
*
* 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 ... | 34.345794 | 96 | 0.656599 |
a4d87d3cb89405f0b61a6ce59e189108d2822d33 | 60 | package com.example.GenericType;
public class Employee {
}
| 12 | 32 | 0.783333 |
b844c340980803f09c2a03820dd17a2f10f9faf7 | 881 | package com.bindroid.sample;
import java.util.Date;
import android.content.Context;
import android.widget.TextView;
import com.bindroid.BindingMode;
import com.bindroid.converters.ToStringConverter;
import com.bindroid.trackable.TrackableField;
import com.bindroid.ui.BoundUi;
import com.bindroid.ui.UiBinder;
import ... | 25.171429 | 85 | 0.754824 |
27d1fb81c883991e0981ebdc4198af9f042e4a50 | 1,421 | package it.zerono.mods.zerocore.internal.common;
import it.zerono.mods.zerocore.api.multiblock.IMultiblockRegistry;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.network.play.server.SPacketChat;
import net.minecraft.util.IThreadListener;
import... | 33.833333 | 116 | 0.780436 |
a56510c533348d22987c1e473efb468cfc571e55 | 5,773 | package seedu.address.ui;
import static java.time.Duration.ofMillis;
import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTimeoutPreemptively;
import static seedu.address.testutil.EventsUtil.postNow;
import static seedu.address.testutil.TypicalExpenses.getTypicalExpenses;
i... | 44.068702 | 120 | 0.717651 |
91a486bddd41478cc55cc64f36af9bc6573e57d9 | 509 | package com.gitlab.sszuev.tasks.dynamic.matrix;
import com.gitlab.sszuev.tasks.Algorithm;
import com.gitlab.sszuev.tasks.RunTestEngine;
import java.util.stream.Stream;
/**
* Created by @ssz on 01.01.2022.
*/
public class MatrixIslandsDynamicAlgorithmTest extends RunTestEngine {
public static Stream<Data> listD... | 24.238095 | 70 | 0.730845 |
9e30ffe5182faa46bf74365b6f17a1ca2258162a | 2,433 | /*
Copyright 2022 The Kubernetes 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 applicable law or agreed to in writing, softwar... | 32.013158 | 97 | 0.72873 |
8bd683c2209fe810197a5c269062140b6753f3fc | 1,494 | package org.snpeff.sam;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
/**
* Sam header
*
* @author pcingola
*/
public class SamHeader implements Iterable<String> {
HashMap<String, ArrayList<SamHeaderRecord>> recordsByType;
ArrayList<String> lines;
public SamHeader() {
re... | 23.714286 | 114 | 0.710174 |
2f2b562590089c32184a2b54f313b4f73dd26869 | 794 | package com.wavemaker.runtime.filter.etag;
import org.springframework.security.web.util.matcher.RequestMatcher;
/**
* Created by srujant on 26/3/19.
*/
public class CacheFilterConfig {
private RequestMatcher cacheRequestMatcher;
private RequestMatcher etagRequestMatcher;
public CacheFilterConfig() {
... | 24.060606 | 76 | 0.744332 |
e316215160bd376eb039c5fb512b923876ee4dc7 | 5,638 | /*
* Copyright (C) 2016 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... | 35.2375 | 99 | 0.748492 |
a36179a6e9836d8360e4cf281906b6e0dbf2763a | 11,179 | package com.marklogic;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import junit.framework.TestCase;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFa... | 38.02381 | 115 | 0.494499 |
38e3f8bc16bade47e93faf27f8922695fd57a2cc | 2,381 | package com.example.sqlitedatabase.main.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.sqlitedatabas... | 29.7625 | 107 | 0.716086 |
2f948ac7ed48cc52865869db4db6bcad54561602 | 4,673 | /**************************************************************************
* Copyright (c) 2001, 2002, 2003 by Punch Telematix. All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or without *
* modification, ... | 41.353982 | 114 | 0.582709 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.