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
a8226772b84a42787faf67705c464324dde94670
3,898
/** * (C) Copyright 2014 Whisper.io. * * All rights reserved. This program and the accompanying materials are made * available under the terms of the Eclipse Public License v1.0 which * accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: Maxime ESCOUR...
31.691057
131
0.67881
0b9b4cff4b77157103a65ab82a895c88fcbd5b4c
4,425
package com.example.paypro.gcm; import java.util.Set; import org.json.JSONException; import org.json.JSONObject; import android.app.IntentService; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.os.Bundle; import ...
29.697987
71
0.709831
5c1b2f0f408b4ccf5b56762a7368f1e2d933fbd1
2,137
/** * File: DebugMenu.java * Author: William Forte * Time: 10:09:09 AM * Date: May 16, 2016 * Project: Survival * Package: survival.main.debug */ package survival.main.debug; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.util.ArrayList; import java.util.Comparator; impor...
26.382716
169
0.688348
748892332f0e2e6032aae0a57cbcba6e71301053
151
package com.ysu.zyw.tc.openapi.constant; public abstract class TcSessionKey { public static final String S_ACCOUNT_ID = "session_account_id"; }
18.875
67
0.774834
57d914f445b66ec528576a637eb83021608d3ef0
3,787
package com.webank.wedatasphere.streamis.datasource.appconn.operation; import com.webank.wedatasphere.dss.standard.app.development.DevelopmentService; import com.webank.wedatasphere.dss.standard.app.development.publish.RefExportOperation; import com.webank.wedatasphere.dss.standard.app.sso.builder.SSOUrlBuilderOperati...
51.175676
157
0.796409
bb98f35864d025ac38709bb7921d072b86f84420
7,002
package org.springframework.contrib.gae.search.metadata.impl; import org.assertj.core.api.Assertions; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.mockito.Mock; import org.mockito.junit.MockitoJUnit; import org.mockito.junit.MockitoRule; import org.springframework....
49.309859
134
0.75507
46f0c8c8e73a7355697fc7c3dc43b870ccce4278
277
package ru.mail.polis.dao.shkalev; import org.jetbrains.annotations.NotNull; import ru.mail.polis.dao.DAO; import java.io.IOException; import java.nio.ByteBuffer; public interface AdvancedDAO extends DAO { Row getRow(@NotNull final ByteBuffer key) throws IOException; }
23.083333
65
0.794224
a98fb8fe25c7146a63e6557e88d8bd0e70f6e95b
5,028
package com.tud.alexw.visualplacerecognition; import android.content.Context; import android.os.Environment; import android.text.Html; import android.util.Log; import android.widget.TextView; import com.segway.robot.sdk.locomotion.head.Head; import java.io.File; import java.io.IOException; import java.util.LinkedLis...
33.298013
176
0.622116
243285801533d2680ed6fa8641dc6a2590f75003
553
package com.seudev.simple_posts.module.api.mapper; import javax.enterprise.context.ApplicationScoped; import javax.ws.rs.core.Response; import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.ext.Provider; import org.jboss.resteasy.spi.DefaultOptionsMethodException; @Provider @ApplicationScoped public class Defau...
26.333333
108
0.790235
b4610243dc9f2efa909be27a2b1076894791f71b
1,845
package br.com.abc.javacore.jdbc.test; import java.util.Scanner; public class TesteCRUD { private static Scanner teclado = new Scanner(System.in); public static void main(String[] args) { int op; while (true) { menu(); op = Integer.parseInt(teclado.nextLine()); ...
32.368421
61
0.55122
657e6e8b7587489e8e3f6aae00bd8f84767ba17b
682
import java.util.Scanner; public class App { public static void main(String[] args) throws Exception { // Max of two numbers System.out.print("Enter two numbers to find the max among them -: "); Scanner input = new Scanner(System.in); int x = input.nextInt(); int y = input.n...
32.47619
87
0.489736
78cba681e8595409141458c21421a81b18dada5d
10,492
package org.sagebionetworks.repo.web.controller; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Reader; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.L...
35.687075
127
0.730461
2e7ae00133a4bb8d41571888880887c05988f027
586
package io.github.leovr.rtipmidi; import io.github.leovr.rtipmidi.messages.MidiCommandHeader; import io.github.leovr.rtipmidi.model.MidiMessage; public interface AppleMidiMessageListener { /** * This method is called when a new MIDI message from the origin server is received * * @param midiCommand...
34.470588
102
0.735495
7ba76bc731175deee4f0ecc317ce97ef05921105
1,716
/* * Copyright 2013-2020 Bloomreach Inc. (http://www.bloomreach.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 * * Unless requir...
31.777778
91
0.70979
ed054f83035a13da1707022fd0fbaa879f09330f
2,637
/* * Copyright (c) 2021, 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.org/li...
39.954545
118
0.751612
0bb921cb64e6b7fcf669afed14232f2b9556e00e
2,605
/* * 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 fr.service.management.helpers; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOExc...
38.308824
129
0.742418
4c04d31eedd45723d298c9c3762c000e6ce7a4a5
751
package com.webapp.timeline.sns.domain; import lombok.*; import javax.persistence.*; import java.sql.Timestamp; @Entity @Table(name = "newsfeed") @Getter @Builder @NoArgsConstructor @AllArgsConstructor public class Newsfeed { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long id; ...
19.25641
55
0.691079
79d1a36ba87b0711c2743b39885625cecfb46525
296
package com.flarebyte.cm.com.order; import com.flarebyte.cm.com.core.Concept; import com.flarebyte.cm.com.core.dc.vocabulary.Property; public interface SalesTaxPolicy extends Concept { public Float getRateAsFloat(Property property); public TaxationType getTaxationType(Property property); }
26.909091
56
0.820946
80d8b1ad35d4862864b16d54b866718bded05fa6
944
package org.eugene.mod.collection; import java.util.List; public class ListTest { public static void main(String[] args) { List<Integer> emptyList = List.of(); List<Integer> luckyNumber = List.of(19); List<String> vowels = List.of("A", "E", "I", "O", "U"); System.out.println("empty...
28.606061
66
0.536017
1158e6bab19ebe98762b2de87d9435578dabe4c5
5,001
// Copyright 2017 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...
37.886364
93
0.736653
2c7d0711ec4bd20f0f808deb3f083b0b582ac29f
15,920
package com.github.sparkzxl.workflow.domain.service.driver; import cn.hutool.core.date.DatePattern; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.github.sparkzxl.core.utils.DateUtils; import com.github.sparkzxl.core.utils.ListUtils; import com.github.sparkzxl.patterns.factory.B...
54.896552
183
0.730716
8533ffc83f896ea43d711fdf4f3a83791f4a3559
2,609
package dev.cheos.armorpointspp.core.render; import dev.cheos.armorpointspp.core.IRenderComponent; import dev.cheos.armorpointspp.core.RenderContext; import dev.cheos.armorpointspp.core.RenderableText; import dev.cheos.armorpointspp.core.RenderableText.Alignment; import dev.cheos.armorpointspp.core.adapter.IConfig.Boo...
47.436364
175
0.730548
b5da1a2fbc885fc2b4598148c829dc0aa1cbca66
2,898
package es.us.oauthclient.patches; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.google.api.client.auth.oauth2.AuthorizationCodeFlow; import com.google.api.client.auth.oauth2.Authorization...
32.2
95
0.745342
c36b7a16b947f1ce07458b086b3fc15558d70c37
150
package rosetta; public class MDC_PRESS_BLD_VEN_UMB_MEAN { public static final String VALUE = "MDC_PRESS_BLD_VEN_UMB_MEAN"; }
16.666667
68
0.7
be0eafa54d214a575091a898e451b6df60bd1f95
972
package xy.reflect.ui.util; import java.util.Arrays; /** * Simple generic getter/setter class that stores the accessed value in an * array. * * @author olitank * * @param <T> The type that is accessed. */ public class ArrayAccessor<T> extends Accessor<T> { protected T[] arrayValue; public ArrayAccessor...
16.758621
74
0.659465
d7b9d2e99a503d8ce12f956692a1f34bc728f649
3,073
/******************************************************************************* * MIT License * * Copyright (c) 2017 CNES * * 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 wi...
30.127451
83
0.607224
526319282f77736b08f00691ba180b3fba1223c9
1,184
package com.example.learn.model; import java.util.ArrayList; public class WeekClass { public String getId() { return id; } public void setId(String id) { this.id = id; } public String getClassName() { return className; } public void setClassName(String className) { this.className = className; } pub...
20.77193
49
0.73902
cee1fe4b7263ab5f549bf3dba08d8591b7d1113b
1,080
package codetest.LeetCode.BitOperation; /* * [461] Hamming Distance * * https://leetcode.com/problems/hamming-distance/description/ * * algorithms * Easy (69.46%) * Total Accepted: 197.4K * Total Submissions: 284K * Testcase Example: '1\n4' * * The Hamming distance between two integers is the number of ...
19.285714
74
0.517593
d007495f5c2e87bd68b966cda52422e798ce0247
2,491
package com.omigost.localaws.budgets.collector.sources; import com.amazonaws.services.budgets.model.CalculatedSpend; import com.amazonaws.services.budgets.model.Spend; import com.omigost.localaws.budgets.aws.BudgetService; import com.omigost.localaws.budgets.collector.DataCollectorService; import com.omigost.localaws....
33.662162
110
0.606182
bb9bbd8391a1e95e63991de35266cbb7f5ea4da1
621
package info.kfgodel.diamond.objects; /** * This type serves as a test object for field accessors * Created by kfgodel on 23/10/14. */ public class FieldAccessorTestObject { private int privateField; int defaultField; protected int protectedField; public int publicField; public int getPrivateField() { ...
20.032258
56
0.726248
4e74fb4143d426496632d5dd95bb94f6364d827b
12,904
package Database; import UDM.api.UDMClient; import UDM.models.*; import com.squareup.okhttp.MediaType; import com.squareup.okhttp.OkHttpClient; import com.squareup.okhttp.Request; import com.squareup.okhttp.RequestBody; import org.codehaus.jackson.map.ObjectMapper; import javax.ws.rs.core.Response; import java.io.IOE...
41.095541
166
0.557734
7b93676b0b224e7d4940b258c27883f24238ee42
1,968
package org.humancellatlas.ingest.query; import org.humancellatlas.ingest.biomaterial.Biomaterial; import org.humancellatlas.ingest.project.Project; import org.humancellatlas.ingest.protocol.Protocol; import org.humancellatlas.ingest.process.Process; import org.humancellatlas.ingest.file.File; import org.humancellatla...
35.142857
137
0.72002
1c0cc64701ff73ac900e0fd9a48334fa32c2e6a0
5,393
package org.hisp.dhis.tracker; /* * Copyright (c) 2004-2020, University of Oslo * 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 copyri...
41.484615
113
0.771185
7af136836476ab026212a8b86ce88dbcde1c81aa
3,425
/* * Copyright 2019 kiwipeach(1099501218@qq.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 * * Unless required by applicabl...
23.458904
132
0.64292
f895eb526a15baaaeb9463d34747da9cad8ce095
2,490
/* ************************************************************************* ************************************************************************* ** ** ** V2KPARSE ** ** Copyright (C) 200...
37.164179
73
0.428112
bdcec6454c4f0e55939e33f3503609a84ee118b6
738
package com.mmit.presentacion.comando.entrenadores; import com.mmit.negocio.entrenadores.EntrenadorSA; import com.mmit.negocio.factoriaNegocio.FactoriaNegocio; import com.mmit.presentacion.Evento; import com.mmit.presentacion.comando.Comando; import com.mmit.presentacion.controlador.Contexto; public class ComandoAbri...
33.545455
101
0.752033
c2d8469a792acb769d5bf93f5d3d5cb7a37a0433
163
class Outer { public void withClass(Object <caret>o) { System.out.println(o.toString()); } public void foor(Object objct) { withClass(objct); } }
16.3
42
0.644172
62c9f5f6028d24a3ff0312bb12e30f55d9f223a9
114
package com.example.recipes.user; public class UserJsonViews { public interface RegistrationView { } }
12.666667
39
0.72807
c5059077193c58c97957ffdeca7825626f0fb9ff
573
package com.tencent.bk.codecc.task.vo.scanconfiguration; import com.tencent.devops.common.api.CommonVO; import io.swagger.annotations.ApiModel; import lombok.Data; /** * 新告警判定视图 * * @version V4.0 * @date 2019/11/8 */ @Data @ApiModel("新告警判定视图") public class NewDefectJudgeVO extends CommonVO { /** * 判定方式1...
15.486486
56
0.633508
a7b0540716e23e71ab1cfe2d53b1837d19e43540
1,581
/** * 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...
27.736842
65
0.679949
306f62873ba0c73e42a23c4cf694bd14c8895207
3,643
package com.amanitadesign.expansion; import com.adobe.fre.FREObject; import com.amanitadesign.GoogleExtension; import com.amanitadesign.GoogleExtensionContext; import com.adobe.fre.FREContext; import com.adobe.fre.FREFunction; import android.app.PendingIntent; import android.content.Intent; import android.util.Log; i...
36.069307
145
0.603898
10146e10f9c17c6beebe8b503d54d000123aa986
649
package Lab_5_Students; public class Students { private String firstName; private String lastName; private int age; private String hometown; public Students(String firstName,String lastName, int age, String hometown){ this.firstName = firstName; this.lastName = lastName; th...
20.28125
80
0.624037
34e3a3530e6b02af714b96cdc71b72116c59e077
410
package com.jense.spring.context.demo.impl; import com.jense.spring.annotation.JAutoWire; import com.jense.spring.annotation.JService; import com.jense.spring.context.demo.AService; import com.jense.spring.context.demo.BService; @JService public class AServiceImpl implements AService { @JAutoWire BService bSe...
24.117647
47
0.753659
b049cf11f7ca85c98fbe5e16959d15247a1ceff9
2,236
/** * Copyright (C) 2014-2021 Philip Helger (www.helger.com) * philip[at]helger[dot]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/LICE...
30.630137
81
0.687388
3fd51609b8c9636ade963603a8fbbfa585b8d0b7
2,075
package hkube.communication.streaming; import java.util.ArrayList; import java.util.List; import java.util.Map; public class Flow { List<Node> nodes = new ArrayList<>(); public List<Node> getNodes() { return nodes; } public void setNodes(List<Node> nodes) { this.nodes = nodes; }...
22.802198
94
0.528675
8aa1762a0f72cef26230951153d1b0589052fc34
7,118
package xyz.monkeytong.hongbao.activities; import android.accessibilityservice.AccessibilityServiceInfo; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.media.Image; import android.os.Build; import android.os.Bundle; import...
29.53527
166
0.679826
4887511b1d18dfce273472d6abecf6dc51f65f8c
2,608
/* * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
30.682353
136
0.773006
6f5124b981ba7cee004b196ad39b668770b75c89
3,272
/** * 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...
41.948718
120
0.761919
6e3fb0008cb99edecdc26a75f6b17886ddd72785
5,138
package com.stevezero.game.engine.actor.enemy; import com.stevezero.game.engine.Engine; import com.stevezero.game.engine.actor.Actor; import com.stevezero.game.engine.actor.Role; import com.stevezero.game.engine.actor.projectile.Projectile; import com.stevezero.game.engine.graphics.Layers; import com.stevezero....
24.235849
86
0.603153
4f1bb8c553c237977bf0d9893374c0f8dde6872d
12,579
/* This file is part of Intake24. Copyright 2015, 2016 Newcastle University. 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...
43.829268
190
0.593847
37b388207ce291a30827567fc79698f5253b6483
2,767
package com.example.thowfeeqrahman.medicalcard; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget....
31.804598
106
0.56704
9345e02e8dfb8febee8250268129bd17786dd67d
3,856
package org.cboard.filedp; import org.cboard.dataprovider.DataProvider; import org.cboard.dataprovider.annotation.DatasourceParameter; import org.cboard.dataprovider.annotation.ProviderName; import org.cboard.dataprovider.annotation.QueryParameter; import org.cboard.exception.CBoardException; import org.slf4j.Logger; ...
40.589474
133
0.658454
4b8b98e83954993c8cb313de3451a4bd08b287bd
1,433
package com.codepath.todoapp; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import java.util.List; /** * Created by rashmisharma on 8/16/17. */ public class ReminderAd...
34.95122
100
0.695743
cc2115951644c28b7a25118b6a57560be0f9b8a4
430
package object; public class PassFactory { public static Pass buildPass(Guest guest, Reservation reservation, PartyInstance partyInstance) { Pass pass = new Pass(guest); guest.addPass(pass); pass.setReservation(reservation); reservation.addPass(pass); pas...
23.888889
98
0.632558
3695d62e9c0d3ae20a8c88401a1a2e43e1bd7665
1,938
package autoreconnect.config; import me.shedaniel.clothconfig2.api.AbstractConfigListEntry; import me.shedaniel.clothconfig2.gui.entries.BaseListEntry; import me.shedaniel.clothconfig2.gui.entries.IntegerListEntry; import me.shedaniel.clothconfig2.gui.entries.IntegerListListEntry; import java.lang.reflect.Field; impo...
36.566038
109
0.639319
5500e05bee500493fee206b0e48ed79986b618bb
4,203
/* * #%L * ACS AEM Tools Bundle * %% * Copyright (C) 2014 Adobe * %% * 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...
39.280374
117
0.669046
7a85546dadc1a20b6dcdcfa985c32db699a70fbe
4,908
package com.orbitz.monitoring.lib.timertask; import com.orbitz.monitoring.api.Monitor; import com.orbitz.monitoring.api.MonitoringEngine; import com.orbitz.monitoring.lib.BaseMonitoringEngineManager; import com.orbitz.monitoring.test.MockDecomposer; import com.orbitz.monitoring.test.MockMonitorProcessor; import com.or...
50.081633
104
0.640587
22dc7e5cfb5670013ead20ec036d4ef50aaae346
3,241
package frc.robot.util; public class CommandDetails { /** * Enum list of type of commands available */ public enum CommandType { // Runs at a time independent of other commands PARALLEL, // Runs after previous command ends SERIES, // Runs a p...
27.939655
109
0.551373
f795e9dea23d20af565767fd7a79a674ff38831e
397
package payne.framework.pigeon.core.encryption; import java.io.IOException; import java.security.NoSuchAlgorithmException; public class MD2WithRSAInvocationSigner extends RSAInvocationSigner implements InvocationSigner { public MD2WithRSAInvocationSigner() throws NoSuchAlgorithmException, IOException { su...
23.352941
98
0.780856
43ddcd29baca195b86a2b63447c93bc25f51e7ac
915
package dev.keva.app; import lombok.SneakyThrows; import lombok.val; import org.junit.jupiter.api.Test; import redis.clients.jedis.Jedis; import java.net.ServerSocket; import java.util.concurrent.TimeUnit; import static org.junit.jupiter.api.Assertions.assertEquals; class ApplicationTest { public static int po...
24.72973
72
0.655738
949d0544ac331365da39d2a901058d955e39e0d9
485
package com.teamwork; import org.openqa.selenium.WebDriver; public class TasksPage extends AbstractTeamworkPage { public TasksPage(WebDriver driver) { super(driver); } public AddNewTaskListModule clickOnAddTaskListBtnAndGoToAddNewTaskListModule() { return new AddNewTaskListModule(driver); } public Task...
19.4
86
0.791753
c5865f1644421ccc05ef5795a9fd477878ee8583
2,150
package features.domain.builders; import features.domain.OneToOneAFoo; import java.util.List; import joist.domain.builders.AbstractBuilder; import joist.domain.builders.DefaultsContext; import joist.domain.uow.UoW; @SuppressWarnings("all") public abstract class OneToOneAFooBuilderCodegen extends AbstractBuilder<OneTo...
22.164948
88
0.686977
db78c4554c4a78e6ed0fd9c45f459d5a8a41368b
1,367
package io.magnum.antimalware.features; import java.util.ArrayList; import android.util.Log; public class MemoryFeatures extends AbstractFeatures { private static String TAG = "AntimalwareMemory"; public MemoryFeatures() { _tags = new String[] { "memActive", "memInactive", "memMapped", "memFreePages", ...
28.479167
70
0.643745
31be33abf350dec2dbcb0f990376b4685613503c
24,144
/* * 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 ...
44.464088
141
0.728587
0c8269cd1eba6c9253106e6972077b16d4fcf27b
7,447
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
20.628809
106
0.703908
71a42ce21dad19152b048e0457d36b7603b33cda
11,942
package com.hck.imagemap; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import net.yoojia.imagemap.ImageMap1; import net.yoojia.imagemap.core.PrruShape; import net.yoojia.imagemap.core.RequestShape; import ...
33.080332
316
0.674091
cd4b9a3772a402b6c2c74393e00ab505ff486529
2,593
package tester; import javax.crypto.Cipher; import javax.crypto.NoSuchPaddingException; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.PBEKeySpec; import javax.crypto.spec.SecretKeySpec; import java.security.InvalidAlgorithmParame...
34.573333
162
0.700347
554e135874cc1ffbbb1b036bbf06cb640295564e
15,605
/* * Copyright 2014-2018 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 requi...
33.777056
207
0.730599
72006912b95c27c296637fc28e17ec06de459e83
1,871
package Diadoc.Api.httpClient; import org.jetbrains.annotations.Nullable; public class DiadocResponseInfo { @Nullable private byte[] content; @Nullable private Integer retryAfter; private int statusCode; @Nullable private String reason; @Nullable private String fileName; @N...
23.987179
111
0.648851
1e3511ac6b295994322b3f76bed4b80c023acdac
5,579
/* * 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 ...
46.882353
151
0.749955
828f60bd0a45d418e1f7f2b6e1346842d437a07c
2,968
package com.huifer.planar.aset.utils.geo; import com.huifer.planar.aset.entity.FourBox; import com.huifer.planar.aset.utils.TmeanLength; import lombok.extern.slf4j.Slf4j; import org.geotools.data.simple.SimpleFeatureCollection; import org.geotools.data.simple.SimpleFeatureIterator; import org.geotools.data.simple.Simp...
36.641975
90
0.65027
81515f90846cbfe959d169f17ccb4574dc0dd324
1,497
package yandex.cloud.sdk.auth.provider; public abstract class AbstractCredentialProviderBuilder<BUILDER extends AbstractCredentialProviderBuilder<BUILDER>> implements CredentialProvider.Builder { private AuthUpdater updater = null; private boolean cached = true; public BUILDER withDefaultBackgroun...
28.245283
115
0.655311
608e3a78106b1755e7457d25760d9848385d2487
506
public class EstimationExample { public static void main(String[] argv) { double numTrials = 100000; double total = 0; for (int n = 0; n < numTrials; n++) { // Perform the experiment and observe the value. double x = Experiment.getValue(); // Record the t...
28.111111
60
0.535573
ae3e5c669594903a5c8adf51ae1fd75633d3de95
2,076
package se.danielmartensson.CSV2MySQL.components; import java.text.SimpleDateFormat; import java.util.Date; import org.apache.commons.validator.routines.EmailValidator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springfra...
28.833333
99
0.731696
190ec0257f777965a9f8b37bb944683181cb6985
990
package pl.allegro.tech.search.elasticsearch.tools.reindex.query; import org.assertj.core.api.AbstractAssert; public class RangeSegmentAssert extends AbstractAssert<RangeSegmentAssert, RangeSegment> { protected RangeSegmentAssert(RangeSegment actual) { super(actual, RangeSegmentAssert.class); } public sta...
31.935484
117
0.744444
3dbdf77b969a9766449b108fd5cfdcf8feed313e
3,180
package cn.bearever.mingbase.app.permission.requester; import android.annotation.SuppressLint; import android.os.Build; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentActivity; import androidx.fragment.app.FragmentManager; import androidx.lifecycle.GenericLifecycleObserver; import androi...
31.176471
99
0.671069
480a4c9cf227ad5556848590b14aa22950881bdc
1,439
package id.ac.polban.jtk.cursoradapter; import android.content.Context; import android.database.Cursor; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CursorAdapter; import id.ac.polban.jtk.nearestplace.R; /** * Cursor Adapter untuk ListView Place ...
23.983333
90
0.665045
2c778fd1362e3af983369b8680c3c754cb4e808e
1,116
package io.github.trashemail.utils; import io.github.trashemail.Configurations.TrashemailConfig; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import javax.mail.Message; import java.io.FileWrite...
27.219512
72
0.666667
1a48425dc5619a9aef52f4aab88fcaa025cd4068
2,396
/* * Copyright (C) 2013 Camptocamp * * This file is part of MapFish Print * * MapFish Print 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 Foundation, either version 3 of the License, or * (at your option) any l...
31.946667
95
0.678214
fa221cfd8b9f1eb933e687f2f5386f99f198b629
2,292
package com.github.leecho.spring.cloud.gateway.dubbo.argument.rewirte.variable.render; import com.github.leecho.spring.cloud.gateway.dubbo.argument.rewirte.variable.VariableRenderContext; import org.junit.jupiter.api.Test; import java.util.*; /** * @author LIQIU * @date 2021/7/2 17:18 */ class SpelVariableRenderT...
31.833333
100
0.704188
973e6e8082cf4d001bb36adeace859284deafd8f
13,718
package hiteware.com.halfwaythere; import android.content.Intent; import android.content.IntentFilter; import android.view.View; import android.widget.TextView; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.Robolectric; import org.robolectric.RuntimeEnvironment; import org.robolectric...
45.574751
145
0.772416
de372fe7e6d47a23de8698ea5afe94a77e6456ac
2,324
/* * Copyright 2000-2009 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
32.732394
125
0.796041
39e1073c0f67b687ad61d7349cc39ed79ca5c872
551
import java.util.Scanner; /** * Created by Atanas on 04/02/2017. */ public class p04_SumN_v2 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int numbers = Integer.parseInt(s.nextLine()); sum(numbers); } static void sum(int n) { ...
20.407407
54
0.497278
071867ec4c1f0403b0706fdfaf500684e3c69ef5
381
package org.rdv.ui; import java.awt.event.MouseEvent; import javax.swing.JPopupMenu; /** * Interface for panels to implement if they are building popup * menus dynamically. * * @author drewid * */ public interface PopupMenuBuilder { /// Insert items into menu, return index of next item in menu...
21.166667
65
0.703412
2d92d4f0d65352909036bf0acd0790ff3714c6f4
1,245
import java.util.Scanner; import java.util.Map; import java.util.HashMap; import java.util.Set; import java.util.HashSet; import java.util.Arrays; public class Solution { private static final Scanner scan = new Scanner(System.in); public static void main(final String... args) { int q = scan.nextInt(); while...
19.153846
103
0.633735
d7773d9b650e6a0105d8b367ec8cfc40fee2c0a0
1,052
package grp.wudi.j2ee.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import grp.wudi.j2ee.dao.NewsDao; import grp.wudi.j2ee.entity.News; import grp.wudi.j2ee.service.NewsService; @Service public class NewsServiceImpl...
20.627451
62
0.673004
b19de62804c301d6d413009de9c740a34586a549
7,642
/* * Copyright 2012-2013 inBloom, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
31.191837
140
0.573803
39f5a45962da4a701015d02a8d6b7d61a59bccb7
658
package cgeo.geocaching; import android.widget.CheckBox; import android.widget.ImageView; import android.widget.RelativeLayout; import android.widget.TextView; public class cgCacheView { // layouts & views public RelativeLayout oneInfo; public RelativeLayout oneCheckbox; public CheckBox checkbox; ...
27.416667
42
0.775076
edf70b42bbca3eaeae3239d1000d8b42aa3f8ea1
233
package com.lambdaschool.starthere.repository; import com.lambdaschool.starthere.models.Author; import org.springframework.data.repository.CrudRepository; public interface AuthorRepository extends CrudRepository<Author, Long> { }
23.3
70
0.845494
26404a3c69d9253942ecba83af0ee421b6fa7dc0
656
package com.eviltester.gwtshowcase.pageObjects; import com.thoughtworks.selenium.Selenium; public class BasicButtonPanel { private Selenium selenium; public BasicButtonPanel(Selenium selenium) { this.selenium = selenium; } public boolean isPageTitleCorrect() { return selenium.getTitle().endsWi...
21.866667
69
0.716463
6ee851218b40ab7183c8d7f4602229308e965c67
2,231
package com.pratapkumar.bakingapplication.utilities; import android.content.Context; import android.util.TypedValue; import androidx.recyclerview.widget.GridLayoutManager; import androidx.recyclerview.widget.RecyclerView; import static com.pratapkumar.bakingapplication.utilities.Constant.GRID_COLUMN_WIDTH_DEFAULT; i...
38.465517
97
0.681309
7dad45832bdbac50941547dce3dd02b26999c9ea
1,125
package com.chao.wifiscaner.action; import java.io.File; import java.util.ArrayList; import com.chao.wifiscaner.controller.Controller; import com.chao.wifiscaner.model.PutItem; import com.chao.wifiscaner.ui.PutActivity; import com.chao.wifiscaner.utils.FileUtil; public class GetPutAction extends PutAction { public...
26.162791
62
0.738667
d3974a149cd6c0fbc4429f5bddfa855387c489d6
3,406
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache license, Version 2.0 * (the "License"); you may n...
33.392157
107
0.699354
e4d306dc5efdf34431297ec750c20f12efa838d9
2,783
import java.util.Scanner; import java.util.Set; import java.util.SortedSet; import java.util.TreeSet; import static java.util.stream.Collectors.toCollection; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; i...
33.939024
146
0.681639
ebf7548e90bf15fca87215769bc4c2576cd5155e
1,460
/* * Copyright 2019-2020 Elypia CIC and Contributors (https://gitlab.com/Elypia/elypiai/-/graphs/master) * * 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/l...
21.791045
102
0.70274
ec105bde42945a946e1fae8ba6bb66573aa6f15d
1,032
package com.liang.y.daniel.chapter.three; /* Write a program that reads three edges for a triangle and computes the perimeter if the input is valid. Otherwise, display that the input is invalid. The input is valid if the sum of every pair of two edges is greater than the remaining edge. */ import java.util.Scanner; ...
41.28
117
0.659884
729f321548eb69a3d9e1b53da2dc50c37e3610bc
1,865
package uk.gov.ons.ctp.common; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.time.ZoneOffset; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; /** Some individual methods for unit tests to reuse */ public class TestHelper { /** * Creates an instance...
38.854167
100
0.732976
4dae4a72d5d5a024b040615d09da0b4969b4e716
3,929
/******************************************************************************* * Copyright (C) 2018 Joao Sousa * * 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, in...
42.247312
87
0.67829
69f9a7d282871bf0d5c4fcae69591c7ed0810fd3
72
package com.networknt.oauth.auth; public interface LightPortalAuth { }
14.4
34
0.805556
4ebc854febdca1b6186345284d51648bea2ea886
624
package com.willian.yunmusic.fragment; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.willian.yunmusic.R; /** * Created by willian on 2016/7/27. */ public class SubNearbyFragment extends Fragm...
20.8
103
0.727564