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
b44e63de496df30926fb704185c03009f9689a5c
2,562
/* * The MIT License * * Copyright (c) 2015, Delta Star Team * * 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 u...
31.62963
115
0.706089
20743187800bd7d5cddf9a8b1a54fc609d9b8fca
608
package concurrency; /** * @ClassName ThreadLocalTest * @Author bin * @Date 2020/8/13 下午12:07 * @Decr TODO * 线程本地存储-测试 * @Link TODO **/ public class ThreadLocalTest implements Runnable{ private int id; public ThreadLocalTest(int id) {this.id = id;} public void run() { while (!Thread.c...
20.965517
65
0.597039
d03205a8efadd0b7188a7cf391caba3fdfd59365
1,667
package io.github.malikzh.qchain.controllers; import io.github.malikzh.qchain.responses.TransactionCreateResponse; import io.github.malikzh.qchain.services.TransactionPoolService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; impor...
43.868421
116
0.777445
41e0f03119e31f18d8445245a3b8e4349b29b4b8
18
// Horizontal, //
4.5
11
0.555556
3a6dd83e464affac6fa2e91a62f3738f4f6a1d65
1,506
package com.teamplay.core.function; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import java.util.Objects; @FunctionalInterface public interface Predicate<T> extends Function<T, Boolean>, java.util.function.Predicate<T> { @NotNull @Contract(pure = true) static <T> ...
23.904762
93
0.618858
2108ac15fe248269c8e9f340f01eb24350fc65ae
883
package br.edu.ulbra.election.candidate.client; import br.edu.ulbra.election.candidate.output.v1.PartyOutput; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.stereotype.Service; import org.springframework.web.bind.annotat...
28.483871
68
0.793884
36df2cc460136e45cb913d2aff235ab87d142868
4,057
/* * 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 ...
38.638095
140
0.706433
5dbe02a1d9cf47b8d03659ff099aec5a9e74b394
8,205
/** * Copyright © 2013, Masih H. Derkani * 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 ...
42.293814
345
0.628154
edfd0d41ab049fd1662f0783743ea1176860d571
401
package com.yuzhyn.bigbird.app.application.internal.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.yuzhyn.bigbird.app.application.internal.entity.SysFile; import com.yuzhyn.bigbird.app.application.internal.entity.SysFileDownloadLog; import org.apache.ibatis.annotations.Mapper; @Mapper publ...
36.454545
82
0.852868
fe2e992dca84400528ad6fdc1032bf3813d00247
394
package com.liyongquan.math; import lombok.extern.slf4j.Slf4j; import org.junit.Assert; import org.junit.Test; import static org.junit.Assert.*; @Slf4j public class ValidNumberTest { private ValidNumber vn = new ValidNumber(); @Test public void isNumber() { boolean res = vn.isNumber("7e69e"); ...
20.736842
47
0.667513
7d0a98f2b1e5872057971be49e187334e7188cfa
241
package model.newCommands; import java.util.List; import model.commands.Command; import model.commands.SpecialCommand; public abstract class MultipleTurtleCommand extends SpecialCommand { public abstract List<Integer> getTurtleList(); }
21.909091
68
0.825726
5f2a6010e66831e9890b36ac509593b4c7faf49f
2,320
package org.agilewiki.jactor2.util.durable.incDes; import junit.framework.TestCase; import org.agilewiki.jactor2.core.facilities.Plant; import org.agilewiki.jactor2.core.reactors.NonBlockingReactor; import org.agilewiki.jactor2.core.reactors.Reactor; import org.agilewiki.jactor2.util.durable.Durables; import org.agil...
46.4
78
0.630603
8c7f7b562b81084833ecfbd1a93e11cf95f299b6
5,152
/* * Copyright (c) 2016—2017 Andrei Tomashpolskiy and individual contributors. * * 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 * * ...
36.027972
119
0.654891
5f240f73b5be0aba6e6b3f5f47e892e21d52f945
2,315
/* * Copyright (C) 2011 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...
27.235294
80
0.665659
b5b3ac7d15686a883fb9e59313dfa3420e1ae3bc
1,869
package com.bitprogress.discover.reactive; import com.alibaba.cloud.nacos.ConditionalOnNacosDiscoveryEnabled; import com.alibaba.cloud.nacos.discovery.reactive.NacosReactiveDiscoveryClientConfiguration; import com.bitprogress.discover.NacosCustomDiscoveryAutoConfiguration; import com.bitprogress.discover.NacosServiceD...
49.184211
125
0.881755
41e5b6a10d0f7ba3b33503adbc86d3f24f200187
1,443
/* * Copyright 2007 Google 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 in w...
32.066667
80
0.711019
04f5f4ff6d8b8c97b18cecea2d1a8dc5ec021d54
328
public class Main { public static void main(String[] agrs){ //instanciar objeto do tipo pessoa Pessoa p1 = new Pessoa(); p1.nome = "Fulano"; System.out.println("Nome p1: " + p1.nome); Pessoa p2 = new Pessoa("Maria"); System.out.println("Nome p2: " + p2.nome); ...
17.263158
50
0.54878
b343ffc7e9c6bc7dfa57a968475c5e98e55ca1ff
6,042
/* * 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 ma...
40.28
111
0.67279
7ace53e7040322df81bb94d0371c75f5e758ea9a
615
class Solution { public boolean validateStackSequences(int[] pushed, int[] popped) { Stack<Integer> st = new Stack<>(); // Create a stack int j = 0; // Intialise one pointer pointing on popped array for(int val : pushed){ st.push(val); // insert the values in st...
38.4375
102
0.528455
3c589e79afa94411bc0f1f1846efc1b1c7988d61
3,420
/* * 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 ...
28.5
92
0.559942
3a7438f7701f32fd4aa25d4bb5ae5012c8df8b3b
1,807
package com.melardev.android.crud.todos.list; import android.content.Intent; import android.os.Bundle; import android.view.View; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import com.melardev.android.crud...
31.701754
105
0.765357
c6cc9bde776c581d5eff3e8673cb6cdbc7b1172c
758
package com.mcoding.base.auth.service; import java.util.List; import com.mcoding.base.auth.bean.Operator; import com.mcoding.base.auth.bean.OperatorExample; import com.mcoding.base.core.BaseService; import com.mcoding.base.core.PageView; /** * Created by LiBing on 2014-07-17 14:02 */ public interface ...
30.32
99
0.771768
04faa24029e85ab898d74131bc35fc2d0a50777a
4,762
package io.envoyproxy.envoymobile.engine; import java.util.List; import java.util.regex.Pattern; import java.util.regex.Matcher; import io.envoyproxy.envoymobile.engine.types.EnvoyHTTPFilterFactory; /* Typed configuration that may be used for starting Envoy. */ public class EnvoyConfiguration { public final String...
47.62
100
0.698866
edc601f309c532a93bbde918ddfe35aa82224550
346
package com.github.combinedmq.activemq; import com.github.combinedmq.message.BaseMessage; /** * @author xiaoyu */ public class ActiveMqMessage extends BaseMessage { public ActiveMqMessage(byte[] bytes) { super(bytes); } public ActiveMqMessage(byte[] bytes, Long delayMillis) { super(byt...
19.222222
60
0.690751
783fc7e1518169978e3691a0873773b92a36f3b9
11,959
import java.net.*; import java.io.*; import org.json.*; /** * The class CompetitionEvaluator connects the evaluation cost function of the competition to the online * server of the competition */ public class CompetitionEvaluator extends WindFarmLayoutEvaluator { protected int nScenario; // scenario id (...
35.381657
212
0.640773
0c85548a3affc2ece859ba8472daa3e28ec3b06d
8,731
package rnk.bb.views; import org.primefaces.PrimeFaces; import org.primefaces.event.FileUploadEvent; import org.primefaces.event.FlowEvent; import org.primefaces.model.StreamedContent; import org.primefaces.model.UploadedFile; import rnk.bb.domain.hotel.staff.Staff; import rnk.bb.services.HotelService; import rnk.bb.s...
27.805732
97
0.678273
1d6529c5bc52ef1728658b1c595e9eba7555a086
2,064
package org.multiot.em4so.model; public class Player { private int id; private Location myLocation; private int timeJoined; private int timeRecorded; private int timesWorked; private String role; public int getTimesWorked() { return timesWorked; } public void setTimesWorked(int timesWorked) { this.time...
20.435644
132
0.691376
7ff6f32350b7d4d6c8bf3bfbb8d64e3c48d5c24e
13,059
// Copyright © 2016-2019 Shawn Baker using the MIT License. package ca.frozen.rpicameraviewer.activities; import android.app.Dialog; import android.app.DialogFragment; import android.content.DialogInterface; import android.os.AsyncTask; import android.os.Bundle; import android.os.Handler; import android.os.SystemClock...
28.701099
106
0.518034
e20350e1d0be5dc883206375f8f8066ab5eaf41a
1,397
package com.android.book.ui; import android.os.Bundle; import android.os.Handler; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import com.android.book.R; pu...
31.044444
119
0.670007
d6121803ff7d70dc66f6f98e9e58bceec2cba3d0
1,019
package org.jruby.truffle.parser.ast; import org.jcodings.Encoding; import org.jcodings.specific.ASCIIEncoding; import org.jruby.truffle.parser.lexer.ISourcePosition; /** * Base class for all D (e.g. Dynamic) node types like DStrParseNode, DSymbolParseNode, etc... */ public abstract class DParseNode extends ListPar...
31.84375
94
0.705594
eaafa835c97a0a2d90d55114bbc15ca16981f2d5
793
package encontreimatriz; import java.util.Scanner; public class EncontreiMatriz { public static void main(String[] args) { int valor, cont = 0; int matriz[][] = {{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}}; Scanner leitura = new Scanner(System.in); System.out.print("Digite o valor que voc...
27.344828
86
0.477932
e117f332bf1bf3501ae0dba29a964e07ae2b95a7
5,222
/* * Copyright (C) 2012-2016. TomTom International BV (http://tomtom.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 * * Unles...
31.083333
151
0.615664
4c9ccb55924b663ec3748f2c7198cba7889547d1
510
package com.baise.baselibs.net.converter; import java.io.IOException; import okhttp3.MediaType; import okhttp3.RequestBody; import retrofit2.Converter; final class JsonRequestBodyConverter<T> implements Converter<T, RequestBody> { private static final MediaType MEDIA_TYPE = MediaType.parse("application/json; ch...
25.5
99
0.760784
0625cd4b4f03a84c898ec3a6c2cc4fb5990760bf
2,962
package org.credo.jdk.iotest.in; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.HashMap; import java.util.Iter...
29.919192
106
0.599932
5dde799e759ff692ce8cccf0872c0df633715481
4,594
/* * Copyright (c) 2009-2010 jMonkeyEngine * 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 ...
34.80303
91
0.644972
fc90a5250b175bf3b59cfdcc600d2d69078fadf8
5,903
package com.sagisu.vault.ui.businessprofile; import androidx.databinding.DataBindingUtil; import androidx.lifecycle.Observer; import androidx.lifecycle.ViewModelProvider; import android.content.Context; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx...
39.353333
166
0.677791
076cd4dce9a4a5bf6655eb800fb77bd793b27705
513
package uk.gov.hmcts.cmc.domain.models.orders; import lombok.Builder; import lombok.EqualsAndHashCode; import lombok.Getter; import java.util.ArrayList; import java.util.List; @Builder @EqualsAndHashCode @Getter public class BespokeOrderDirection { private final List<BespokeDirection> bespokeDirections = new Arr...
24.428571
79
0.793372
f4ee7f4e760c5237cbbf4b7bff311ac4b9cc7224
9,387
/* * Copyright 2015 Midokura SARL * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
23.764557
75
0.647811
d3bf005d90ae9d74453cebe3d338aef9298a64b2
1,558
package be.brusselsbook.servs; import java.io.IOException; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax....
34.622222
109
0.806162
9aa7a187256c6163c9a6aa8c5901759a99a2cb6b
375
package net.blay09.mods.hardcorerevival.mixin; import net.minecraft.entity.LivingEntity; import net.minecraft.util.DamageSource; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.gen.Invoker; @Mixin(LivingEntity.class) public interface LivingEntityAccessor { @Invoker boolean callCh...
25
69
0.824
de3b66051f70b270407fffb528ed9df64bed82e1
1,104
package dillig; import java.util.Map; import java.util.HashMap; import java.util.Set; import java.util.HashSet; import java.util.List; import java.util.ArrayList; import java.util.Iterator; import gov.nasa.jpf.jvm.Verify; public class ListOfKeyValuePairs { public static void main(String[] args) { Map<Integer, I...
14.72
60
0.593297
b073e6361b682a52593a3b66532a8acaede896a0
359
package net.mnio.springbooter; import net.mnio.springbooter.persistence.model.User; public class TestUtil { public static User createUser(final String email, final String name, final String pwd) { final User user = new User(); user.setName(name); user.setEmail(email); user.setPassw...
25.642857
92
0.671309
52a64f30d975f80d5c9e99686df0e5f4d8a8015c
40,959
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.privatedns.fluent; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure...
61.407796
120
0.743475
017fb2e290d49fea1e8972327db80156a33b88a8
9,165
package br.usp.icmc.ssc0103; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.regex.Matcher; import java.util.regex.Pattern; enum Command { NOOP, USERADD, CATALOG...
38.1875
100
0.440262
f5af285adc52842d54fd868140fa83c5f551ef5a
1,800
package org.softuni.residentevil.web.controllers.user; import org.softuni.residentevil.config.WebConfig; import org.softuni.residentevil.domain.models.binding.user.UserRegisterBindingModel; import org.softuni.residentevil.service.UserService; import org.softuni.residentevil.web.annotations.Layout; import org.softuni.r...
31.034483
84
0.759444
55237d3b9b288d736f2d0630235b87a4ad9b4fa0
5,958
package gov.usgs.cida.wqp.dao.count; import com.github.springtestdbunit.annotation.DatabaseSetup; import com.github.springtestdbunit.annotation.DbUnitConfiguration; import gov.usgs.cida.wqp.ColumnSensingFlatXMLDataSetLoader; import gov.usgs.cida.wqp.dao.CountDao; import gov.usgs.cida.wqp.dao.NameSpace; import gov.usgs...
37.006211
112
0.749748
7f6fa8188d2c28698dcbff95ded81a9576dc697d
1,891
/* * Copyright 2006 University of Virginia * * 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 agr...
30.015873
139
0.760444
106c91327d2fb833aa3a08e643c4a0c18a2bdbac
525
package net.n2oapp.criteria.filters.rule; import net.n2oapp.criteria.filters.FilterType; import net.n2oapp.criteria.filters.Pair; import net.n2oapp.criteria.filters.rule.base.AlwaysSuccessRule; /** * Rule for merge isNotNull and contains filters * */ public class Contains_IsNotNull extends AlwaysSuccessRule { ...
25
69
0.739048
894073777c55c6c36ebd481a50523ec1c658ad4d
3,502
/* * 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 org.mage.test.cards.abilities.keywords; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Ignore; ...
44.897436
168
0.652199
46963d79df944d21363a507c4512a07c56c79ff5
4,133
package com.ait.lienzo.charts.client.xy; import com.ait.lienzo.charts.client.model.DataTable; import com.ait.lienzo.charts.client.model.DataTableColumn; import java.util.ArrayList; import java.util.Collection; import java.util.Date; import java.util.List; public class XYChartDataSummary { private XYChartData dat...
32.03876
105
0.573191
18a7e6eee2e4b41d41929b232da7c008d31c7159
3,050
package com.helloingob.gifter.data.to; import java.sql.Timestamp; public class Giveaway { private String title; private Integer points; private Integer copies; private Integer entries; private Double winChance; private String author; private String giveawayLink; private String steamLi...
21.785714
354
0.630164
26cdc95cfbe4839dbe60c247341752f3dd2c01df
3,475
import com.datarangers.sdk.RangersClient; import java.util.HashMap; /** * @Author zhangpeng.spin@bytedance.com * @Date 2020-06-15 */ public class ExampleBySdk { public static void getDataExportUrl() throws Exception { String ak = "xxx"; String sk = "xxx"; RangersClient rangersClient =...
35.824742
114
0.620719
bb0653684d828e12c49685d31e1f946df9223631
8,632
package com.bacloud.word2vecdemo; import android.Manifest; import android.app.Activity; import android.content.pm.PackageManager; import android.os.Bundle; import android.os.Environment; import android.util.Log; import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.ActivityCompat; import org.deep...
35.817427
114
0.597544
b518e096314086a49da054a646db81b245a8e8ce
336
package bitflow4j.steps.query.exceptions; import java.io.IOException; /** * Abstract class for exceptions where is a problem with sample header. */ public abstract class IllegalHeaderException extends IOException { public IllegalHeaderException(String query) { super("Parsing Error when processing: " + ...
24
71
0.744048
ba25e33533035554f0521ff4a9cf47daeae8b012
3,351
/** * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * * The Apereo Foundation licenses this file to you under the Educational * Community License, Version 2.0 (the ...
26.595238
112
0.680692
146b01d46a13deeed8b038d03aa6709bec87541e
795
import java.math.*; public class Exo4 { public static boolean estUnEntier(String chaine) { try { Integer.parseInt(chaine); } catch (NumberFormatException e) { return false; } return true; } public static void main(String args[]) { int nombre1=0,nombre=0,resultat=0; if ...
24.090909
84
0.612579
907ee936f72e8c61a9f8207ee8026572f398adbc
630
package com.sly.hial.business.blog.service.impl; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.sly.hial.business.blog.service.ContentService; import com.sly.hial.business.syste...
30
89
0.795238
473f8a281ca4db400d08a2c1091f7779811d575b
2,099
package com.clinacuity.acv.controls; import com.jfoenix.controls.JFXTextField; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.control.Label; import javafx.scene.layout.HBox; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import java.io.IOException; cla...
30.867647
121
0.666508
641c37d53805852eb284d76c17db4d7868fd112f
16,164
/* * Copyright (c) 2014 AsyncHttpClient Project. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.or...
52.480519
160
0.831477
8b18af62ec2e4fa1f36cb75d70b14677425c0b22
1,423
package com.packagename.myapp.Views; import com.packagename.myapp.Controllers.PersonasController; import com.packagename.myapp.MainLayout; import com.packagename.myapp.Models.Personas; import com.vaadin.flow.component.Component; import com.vaadin.flow.component.dependency.CssImport; import com.vaadin.flow.component.ht...
33.880952
95
0.719606
9b1b9430473537ece367230f40bcf176649557fd
193
package com.krishagni.catissueplus.core.exporter.services; import java.util.List; @FunctionalInterface public interface ObjectsGenerator { List<Object> apply(int startAt, int maxResults); }
21.444444
58
0.813472
9f1a36b5dcfaaf3f0895b81e695be4ecfd1a7b77
829
package com.syj.crowdfunding.mapper; import com.syj.crowdfunding.bean.TMenu; import com.syj.crowdfunding.bean.TMenuExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface TMenuMapper { long countByExample(TMenuExample example); int deleteByExample(TMenuExample example); ...
27.633333
104
0.768396
09e0cc6f3fa8fd7448cc73b3d990345f327befec
1,821
// This is a generated file. Not intended for manual editing. package org.intellij.erlang.psi.impl; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.lang.ASTNode; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; impor...
26.779412
155
0.768808
2a014332fd9ef7c11b9418d579869349520655a9
372
package com.example.mymvp.view; import com.example.mymvp.model.User; /** * Created by QYer on 2016/6/2. */ public interface IUserLoginView { String getUserName(); String getPassword(); void clearUserName(); void clearPassword(); void showLoading(); void hideLoading(); void toMainA...
13.777778
36
0.669355
84c11f4fe48e625424bc7f37584929df70c03103
1,842
package org.quantum.minio.plus.dto; import java.time.Instant; import java.util.Map; /** * 生命周期 创建数据传输对象 * @author ike * @date 2021 年 03 月 29 日 16:39 */ public class BucketLifecycleRuleDTO { /** * 标识 */ private String id; /** * 桶 */ private String bucketName; /** * 状...
15.74359
56
0.547231
b43dc8f651ef3f60e07aae4cbb6938e66cdbb0d5
2,415
package edu.eci.arsw.exams.moneylaunderingapi.service; import edu.eci.arsw.exams.moneylaunderingapi.model.SuspectAccount; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Component; import org.springframework.stereotype.Service; import java.util.ArrayList; import ja...
37.734375
122
0.72588
462a1900665db7d6ccfabefc8aa464d67a1f5dbc
537
package p005cm.aptoide.p006pt.view.app; import p026rx.p027b.C0132p; /* renamed from: cm.aptoide.pt.view.app.ea */ /* compiled from: lambda */ public final /* synthetic */ class C5267ea implements C0132p { /* renamed from: a */ private final /* synthetic */ ListStoreAppsPresenter f9044a; public /* synthe...
26.85
83
0.6946
223beb02ddb7a5a27a775d00a86017aa27195cd9
31,308
package org.jboss.resteasy.test.security.doseta; import static org.jboss.resteasy.test.TestPortProvider.generateBaseUrl; import java.net.URL; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.PrivateKey; import java.security.PublicKey; import java.security.SignatureExc...
37.182898
178
0.661971
441b47ea74ff93839ac30d7900d0a99c361bc084
2,215
package com.atjl.configdb.service.impl; import org.junit.*; import org.junit.rules.ExpectedException; import com.atjl.util.common.SystemUtil; import org.junit.runner.RunWith; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import j...
25.45977
118
0.606772
8e75beaef7dc48ecb1ee10c6b018e3fb6841242c
10,478
/* * Copyright (C) 2013 Peter Gregus for GravityBox Project (C3C076@xda) * 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.555556
100
0.587421
d724aab81722986bf13d9a3a77fe6a1784da8793
846
public class AtividadeVotos { public static void main(String[] args) { AtividadeVotos atividadeVotos = new AtividadeVotos(); Double resultValidos = atividadeVotos.validosToTotal(800, 1000); Double resultBrancos = atividadeVotos.brancosToTotal(150, 1000); Double resultNulos = atividadeVotos.nulosToTotal(50, 1...
32.538462
72
0.717494
ce2dabd5a44567054af65bdb82593839f08f3451
205
package uk.gov.cshr.exception; public class UnableToUpdateOrganisationException extends RuntimeException { public UnableToUpdateOrganisationException(String message) { super(message); } }
25.625
75
0.780488
311ee3c1843fda979a986fcce9b93692e2b1d8be
9,585
/* * Copyright (c) 2008-2017, Hazelcast, 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 required ...
26.188525
84
0.606364
3856012229be38d7e10385c99ab636db5187a5f4
306
package com.github.config.observer; /** * 被观察者关心的主题 */ public interface ISubject { /** * 注册观察者 * * @param watcher */ void register(IObserver watcher); /** * 通知观察者 * * @param key * @param value */ void notify(String key, String value); }
12.75
42
0.522876
c93b97099121e436ca75a9186a52352d93ccbf8d
399
package com.shengda.redis.constant; /** * redis 工具常量 * * @author takesi * @date 2020-03-01 */ public final class RedisToolsConstant { private RedisToolsConstant() { throw new IllegalStateException("Utility class"); } /** * single Redis */ public final static int SINGLE = 1; ...
15.346154
57
0.60401
08155395168a89cc0fc193a9d68eec3976c8e657
303
package toothpick.data; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @javax.inject.Scope @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface CustomScope { }
23.307692
44
0.828383
c8d57b331c2495cdfd07050f2fba72192eb23b66
3,622
/* * * * * Created by Juan Carlos Serrano Pérez on 6/01/19 13:04 * * Any question send an email to juan.carlos.wow.95@gmail.com * * Copyright (c) 2019 . All rights reserved. * * Last modified 29/12/18 21:49 * */ package com.example.xenahort.dss_proyect.Activitys; import android.content.Intent; import andro...
38.126316
134
0.717283
65af8476381c645d4208c2b7e447c10f75b6e30c
11,335
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licens...
30.552561
107
0.692633
46e2a7963419824397065c8aadab19196ad57ee8
1,234
package doctester; import static org.assertj.core.api.Assertions.assertThat; import java.util.List; import model.ExportTemplateDefinition; import ninja.NinjaDocTester; import org.doctester.testbrowser.Request; import org.doctester.testbrowser.Response; import org.junit.Test; import com.fasterxml.jackson.core.type....
28.045455
88
0.777958
039bddc59d8b1680bbd4df08bd0b0e849ba802c4
17,526
package org.apache.spark.sql.hive.client; /** * A class that wraps the HiveClient and converts its responses to externally visible classes. * Note that this class is typically loaded with an internal classloader for each instantiation, * allowing it to interact directly with a specific isolated version of Hive. Loa...
93.721925
389
0.762353
11952bdda81e98f129d7993e832a0fccca28a939
1,415
package com.open.lcp.queue.kafka; import java.util.Properties; import org.apache.kafka.clients.producer.KafkaProducer; public class KafkaProducerHolder<K, V> { private ZKKafkaProducerConfig producerConfig; void setProducerConfig(ZKKafkaProducerConfig producerConfig) { this.producerConfig = producerConfig; } ...
28.877551
71
0.732862
f023d787f00e062fb18ca66919b09de7754cc742
589
package in.ashwanik.dcp.problems.p91_120.p100; class Solution { int getMinimumDistance(int[][] points) { if (points == null || points.length < 2) { return 0; } int distance = 0; for (int index = 0; index < points.length - 1; index++) { distance += distance(...
25.608696
67
0.534805
ddbc5c9b57a85875f5a46e908810ea88f6856507
134
package op; import register.Registers; public abstract class Op { public abstract Registers apply(Registers registers); }
14.888889
55
0.738806
69d486f20b9c8ded915072d9b63ee71f44ca7a08
2,440
package data.follow; import com.wrapper.spotify.SpotifyApi; import com.wrapper.spotify.enums.ModelObjectType; import com.wrapper.spotify.exceptions.SpotifyWebApiException; import com.wrapper.spotify.model_objects.specification.Artist; import com.wrapper.spotify.model_objects.specification.PagingCursorbased; import com...
40
193
0.775
8a86ef8eca28c1da4adf18ac70ed0a421eb2636d
2,022
package org.zstack.header.identity; import org.apache.commons.lang.StringUtils; import org.springframework.http.HttpMethod; import org.zstack.header.MapField; import org.zstack.header.message.APIMessage; import org.zstack.header.message.APIParam; import org.zstack.header.message.APIReply; import org.zstack.header.othe...
32.095238
123
0.696835
6b79d08a5f86df1f488d09642788c58b054c5db5
6,262
package core.services; import core.apis.discogs.DiscogsApi; import core.apis.discogs.DiscogsSingleton; import core.apis.last.ConcurrentLastFM; import core.apis.spotify.Spotify; import core.apis.spotify.SpotifySingleton; import core.commands.utils.CommandUtil; import core.exceptions.LastFmEntityNotFoundException; impor...
45.05036
170
0.615618
511dd7120db994678b63ad4df80af5fe9b53e6c4
124
package com.draga.spaceTravels3; public enum GameState { COUNTDOWN, PLAY, PAUSE, LOSE, TUTORIAL, WIN }
11.272727
32
0.645161
155730c6fbc89fae88764bf4309129f85c20a9a8
836
package net.glowstone.io.entity; import net.glowstone.entity.passive.GlowBat; import net.glowstone.util.nbt.CompoundTag; import org.bukkit.Location; import org.bukkit.entity.EntityType; class BatStore extends LivingEntityStore<GlowBat> { public BatStore() { super( GlowBat.class, EntityType.BAT ); } @Override ...
19
71
0.70933
deb7c7df45cc3f4a7c29fa4a0adfb7e9ec359962
858
package com.design.pattern.singleton.safe; import com.design.pattern.singleton.*; /** * @ClassName SingletonFactory * @Description * @Author Jacob * @Date 2020/3/31 10:31 * @Version 1.0 **/ public class SingletonFactory extends AbstractFactory { @Override public Object getHungry() { return Hungry.getInstanc...
17.875
55
0.7331
944597e5beb09c10fcb72501f0577c9a17fe03cd
8,294
package rocks.inspectit.agent.java.eum.instrumentation; import java.io.PrintWriter; import java.util.Locale; import rocks.inspectit.agent.java.eum.html.StreamedHtmlScriptInjector; /** * A PrintWriter which injects the given tag on the fly into the head (or another appropriate) * section of the document. Automatica...
22.355795
97
0.686641
c7b84bf0018281dce4cc88f0fddeff34c2933181
1,776
package me.joeleoli.fairfight.listener; import com.google.common.io.ByteArrayDataInput; import com.google.common.io.ByteStreams; import java.util.Map; import lombok.RequiredArgsConstructor; import me.joeleoli.fairfight.FairFight; import me.joeleoli.fairfight.event.BungeeReceivedEvent; import me.joeleoli.fairfight.e...
29.114754
166
0.761824
81ca2f95a20956205667ee6c4b07f50448063110
19,991
/******************************************************************************* * Copyright (c) 2022 Eclipse RDF4J contributors. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License v1.0 * which accompanies this distribution,...
36.479927
117
0.713371
234d856838d81927d5c7bff90460cedf764a91e7
1,127
/* * 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 analisador; import java.util.HashMap; import java.util.Map; /** * * @author lufh */ public class Analisador ...
21.264151
84
0.492458
ce25e34ec9f5bf9d37044825a02e73200f0f2dab
1,134
/* * Copyright (C) 2007 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...
34.363636
79
0.734568
8e2460677f7b9bdb0b0f6101349ec33ef70b5d87
571
package com.codepreplabs.consumer; import java.util.Scanner; public class Consumer implements Runnable { private Object lock; private Scanner scanner; public Consumer(Object lock) { this.lock = lock; } public void run() { try { Thread.sleep(100); } catch (InterruptedException e) { e.printStac...
15.861111
72
0.670753
2abd00606bb0ecd8684dadb0097de3df2271e679
277
package com.swall.tra; import android.app.Activity; import android.os.Bundle; /** * Created by pxz on 14-1-6. */ public class UploadProgressActivity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } }
21.307692
54
0.729242
6ccfbe2b3d6e2ffec11a7e571d8d3b07692767ba
3,686
/* ** Author(s): Miguel Calejo ** Contact: interprolog@declarativa.com, http://www.declarativa.com ** Copyright (C) Declarativa, Portugal, 2000-2005 ** Use and distribution, without any warranties, under the terms of the ** GNU Library General Public License, readable in http://www.fsf.org/copyleft/lgpl.html */ pac...
40.955556
121
0.724905
5282045719ee8385bad64c1fae382c70bdcdf985
4,576
/* * Copyright 2018 Netflix, 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 t...
32
105
0.642701
b776f25d9eae8129ad92083357e868aec5b64ba9
3,156
package com.darkhouse.shardwar.Logic.GameEntity.Spells; import com.darkhouse.shardwar.Logic.GameEntity.GameObject; import com.darkhouse.shardwar.Logic.GameEntity.Tower.*; import com.darkhouse.shardwar.Logic.Slot.Slot; import com.darkhouse.shardwar.Player; import com.darkhouse.shardwar.ShardWar; import com.darkhouse.sh...
33.574468
96
0.592205
5abfb5a37cc2334838afeb542763c112c34e6418
448
package Commands; import Audio.SoundLibrary; import Main.WeenieBot; import net.dv8tion.jda.core.events.Event; public class ReloadCommand extends Command { public ReloadCommand(String user, String message, Event event) { super(user, message, event, CommandType.RELOAD_LIBRARY); } @Override ...
21.333333
66
0.703125