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
dea678b744bdbd0c0ed21b62cd6228dc245ec4ee
73,936
/* * 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 bill_recept; import com.mysql.jdbc.Connection; import com.mysql.jdbc.PreparedStatement; import com.toedter.calendar.JDateChoo...
50.81512
193
0.633697
6979e39c5d2e582d5ec1302ee813ccf1e12bf43f
3,248
/* * 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...
41.113924
113
0.746613
ad20cde6d7ab5fcb968e949a6ba65f9a03447ad1
1,042
import java.util.Objects; public class StringComparison { public static void main(String[] args) { String s1 = "HELLO"; String s2 = "HELLO"; System.out.println("Different ways of comparing Strings in Java."); System.out.println(" Example 1 - Comparing objects using Objects class...
41.68
129
0.646833
d719d14661376a488a3cbb69c462a534ea82418d
2,236
/* Copyright 2021 JD Project Authors. Licensed under Apache-2.0. Copyright 2019 The Vitess 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 ...
31.055556
78
0.55814
d519aa1ab239b136ab0387c6d0c17de242f4c823
5,387
package com.exasol.releasedroid.adapter.communityportal; import static com.exasol.releasedroid.adapter.communityportal.CommunityPortalConstants.*; import static java.nio.charset.StandardCharsets.UTF_8; import java.io.IOException; import java.net.ProxySelector; import java.net.URI; import java.net.URLEncoder; import j...
45.652542
116
0.684425
19ff4b57e84b86b36f770543b977e9b78b3f2403
509
package com.woniuxy.map.basic; import java.util.Map.Entry; import java.util.TreeMap; public class TreeTest { public static void main(String[] args) { TreeMapDemo tmd = new TreeMapDemo(); TreeMap<Integer, String> tm = tmd.add(); tmd.get(tm); System.out.println("-------------"); tm.remove(1); tmd.get(tm); ...
23.136364
46
0.614931
27d2c6a80347acc2a2fe248b9e7ee25f5dbc18c7
419
package com.redhat.springmusic.repositories.jpa; import org.springframework.context.annotation.Profile; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.redhat.springmusic.domain.jpa.Album; @Repository @Profile("!mongodb & !redis") public inte...
29.928571
106
0.832936
d80b6465ea7a6d2c5536d4ea718dd5806b31a6cc
6,823
/* * 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 connection; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLExcep...
33.777228
169
0.534222
8766f41c35adaedf6f92d0d22d5bedccb25e44da
3,310
/* The MIT License Copyright (c) 2016-2020 kong <congcoi123@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
38.045977
108
0.727795
6af03f2102ef7b50592cb8d902482997a7a55296
22,153
class c9 { public boolean[][] lyzn_Z3FQSs; public mJy_kpR7_q6[][] p4gqCjpbi () { boolean Poduf_ccWcX6 = -ZiaZMoo().VajrxJ2JpT(); void[] o; int Oqb = true.rSunTjWw = null[ !true.Tc]; R1Y[ !!true[ !--ORi8CcWk[ !-false[ this[ !!( --true.qe1aO1f())._9jDiMao()]]]]]; !nuehw...
36.737977
252
0.479709
247fae13bb9949b176cea3b4a64bd2b85a7e1c16
5,169
package seedu.address.logic.commands.room; import static java.util.Objects.requireNonNull; import static seedu.address.commons.core.Messages.MESSAGE_INVALID_PATIENT_NAME; import static seedu.address.commons.core.Messages.MESSAGE_INVALID_ROOM_NUMBER; import static seedu.address.commons.core.Messages.MESSAGE_PATIENT_NO_...
36.401408
94
0.662024
5e114498e3d92a068d1775da5afd673b50b1028b
1,241
package io.payrun.helpers; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; public class SerializerHelper { private final ObjectMapper ...
33.540541
88
0.706688
00dd3854e06f0506dec5d556bcf93c76e58e21d5
4,563
package com.example.leo.starwarsapp; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.squareup.picasso.Picasso; import java.util.A...
31.253425
107
0.666448
1d18fed37d7cf4fe883ed94fb8085470472ab472
875
package item; public class Link extends FilesystemItem implements fsi2 { protected DataObject data ; public Link() { this.data = new DataObject(); this.data.setName("MySpecialName"); } /* (non-Javadoc) * @see item.fsi2#getSize() */ @Override public int getSize(){ data = this.getData...
17.857143
58
0.619429
08d6a28dccd38773b219ce650900397b3422a937
4,284
/* * Copyright Terracotta, 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 ...
34.272
146
0.737162
72d9302b4e992ff51cd0132f0dbcb88dd6f6ead9
722
package qj.util; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import qj.util.funct.P0; import qj.util.funct.P1; public class SystemUtil { static BufferedReader br; public static String readLine() { if (br == null) { br = new BufferedReader(new InputStreamReader...
18.05
61
0.641274
0700695f52278cc5968ab1cb26c5469097c77642
3,517
package org.ossgang.commons.observables; import org.ossgang.commons.monads.Maybe; import org.ossgang.commons.observables.exceptions.UnhandledException; import java.util.function.BiConsumer; import java.util.function.Consumer; /** * Utility class to create {@link Observer} instances. */ public class Observers { ...
34.145631
119
0.605914
b7ccb59874751513c69b0c75db25ecca8f82984e
685
package com.hospital.appointmentservice.repository; import com.hospital.appointmentservice.model.Appointment; import com.hospital.appointmentservice.projection.AppointmentProjection; import org.springframework.data.jpa.repository.JpaRepository; import java.util.Date; import java.util.List; public interface Appointme...
31.136364
98
0.833577
deae1de1468373449d654f7445c649308e7e69a9
17,944
/* * ModeShape (http://www.modeshape.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/licenses/LICENSE-2.0 * * Unless required by applicable law o...
45.892583
173
0.656933
e68431c670acff5f990232e5fd5a5813924cce12
1,395
package com.laketravels.ch07.kafka.producer; import org.apache.kafka.clients.producer.*; import java.util.Properties; import java.util.concurrent.ExecutionException; /** * Created by pankajmisra on 3/3/17. */ public class SimpleProducer { public static void main(String[] args) throws ExecutionException, Inter...
30.326087
94
0.660932
dbfd32d533a50626ce7214fe97bafb5e76f9c41c
385
package com.eventnotifierlibgdx.event.internal; import com.eventnotifierlibgdx.event.api.Event; /** * Handles events. * * TODO: Make this public when other event handlers need to be registered, besides the event handlers created by the * event notifier initializer. */ interface EventHandler { /** * Hand...
21.388889
116
0.722078
22d5a6de2de75b84e1f7f35c13166e1c6f17a35d
6,616
/** * 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...
33.414141
146
0.690901
92683ea6632bf1d12496f7d8ccafbd20fef8978e
2,360
/* * Copyright (C) 2010 Heed Technology Inc. * * 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 Foundation; either version 2 * of the License, or (at your option) any later version. * This pr...
33.239437
115
0.736017
bf7ed336a553f7462ff8404f519dec3760a24945
8,582
/* * GridGain Community Edition Licensing * Copyright 2019 GridGain Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause * Restriction; you may not use this file except in compliance with the License. You may obtain a * c...
41.863415
121
0.704614
943b0718e6a5684457c25e7ea76760ee97ea9bdc
5,629
package vdsMain; import bitcoin.BaseBlob; import bitcoin.UInt256; import generic.io.StreamWriter; import generic.serialized.SeriableData; import java.io.IOException; import java.util.Arrays; import java.util.Locale; //bsf public class SaplingPaymentAddress extends SeriableData implements CTxDestination { /* ren...
30.592391
178
0.610233
4b99dce308f3c403ce3218cdf3a37b3dde5f3f77
599
/** * Jakarta Bean Validation TCK * * License: Apache License, Version 2.0 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. */ package org.hibernate.beanvalidation.tck.tests.constraints.application.method; import jakarta.validation.Valid; import jakarta.validation....
18.71875
98
0.719533
f8e8053fca10e6e24da59994ec09040ce2e1fd4b
1,552
/* * Copyright 2011 Goldman Sachs. * * 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 ...
26.758621
109
0.709407
cdeec66d736778bbdf77ff13ba717e9afe3c86b1
3,819
package eu.asterics.component.actuator.gui_tester; import java.awt.Color; import java.awt.FlowLayout; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import javax.swing.JPanel; /* * AsTeRICS - Assistive Technology Rapid Integration and Construction Set *...
29.604651
78
0.596491
7a1fae59510be7f57d5ec7c368e4f7f607c11a09
1,680
package com.example.commontask.ui; import android.app.Dialog; import android.app.DialogFragment; import android.content.DialogInterface; import android.os.Bundle; import android.support.v7.app.AlertDialog; import android.view.LayoutInflater; import android.view.View; import com.example.commontask.R; public class Ad...
33.6
106
0.68869
9183fcaf3a4a70583df107cdf830e72330488f82
360
package me.sargunvohra.mcmods.alwaysdroploot.test; import net.minecraft.gametest.framework.GameTestHelper; public class TestUtil { public static void runCommand(GameTestHelper helper, String command) { var server = helper.getLevel().getServer(); server .getCommands() .performCommand(server.crea...
25.714286
72
0.752778
a7ecdf6478389aecfddbd8e6dfb1f6154047c59a
231
package com.qmt.okhttplibrary.network.downLoadFile; /** * Created by sunch on 2018/3/22. */ public interface ProgressListener { //已完成的 总的文件长度 是否完成 void onProgress(long currentBytes, long contentLength, boolean done); }
21
73
0.74026
ff62df73195bd4305d09458c1c72a1e92b276f73
5,473
package no.unit.nva.publication; import static java.lang.Integer.parseInt; import static no.unit.nva.publication.PublicationServiceConfig.dtoObjectMapper; import static nva.commons.core.attempt.Try.attempt; import com.fasterxml.jackson.databind.JsonNode; import java.net.URI; import no.unit.nva.identifiers.SortableIden...
43.436508
119
0.701992
282d9be76657c47c17489707f35d379261bced9e
97
package miniprogram.server.service; public interface AllService { public void getcode(); }
13.857143
35
0.752577
1ea0897ccd90ec57f13c7a5aac512c2b730abeca
3,714
package uk.ac.ebi.interpro.scan.model; import javax.xml.bind.annotation.XmlTransient; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * Implementation to assist with 'chunking' of long text fields. * Performs the tasks of splitting very long strings into * chunks and putting th...
30.195122
168
0.572967
b64b05b67629a547ff6b264d00a6e8f375ec885c
1,933
package com.socion.entity.config; import com.socion.entity.dao.IamDao; import com.socion.entity.dao.KeycloakDao; import com.socion.entity.dao.RegistryDao; import okhttp3.OkHttpClient; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springfra...
31.177419
70
0.662183
aad1e051dcad3f9d203011df78e861890e470f9a
352
package com.faasj.builder.dao; import com.faasj.builder.dto.BuildDto; import java.util.*; public interface BuildRepository { void save(UUID buildId, BuildDto buildDto); void delete(UUID buildId); Optional<String> findLogs(UUID buildId); Set<Map.Entry<UUID, String>> findLogs(); Optional<Build...
18.526316
47
0.724432
a240610e851c8d27480bf4ffe19005900457beb6
352
package org.gluu.casa.plugins.inwebo; enum CodeType { VALID_IMMEDIATELY_FOR_15_MINS(0), CODE_INATIVE_VALID_FOR_3_WEEEKS(1), ACTIVATION_LINK_VALID_FOR_3_WEEKS(2); private long codeType; private CodeType(final int codeType) { this.codeType = codeType; } public long getCodeType() { ...
20.705882
42
0.693182
2644928beb834dc69880188b0e5bd4f0df9da183
1,147
package com.sweetpotatoclock.service.impl; import com.sweetpotatoclock.dao.GoalDayCompleteMapper; import com.sweetpotatoclock.entity.GoalComplete; import com.sweetpotatoclock.entity.GoalDayComplete; import com.sweetpotatoclock.service.GoalDayCompleteService; import org.springframework.beans.factory.annotation.Autowire...
31.861111
76
0.766347
30d31f1b4b9adbf9696faa186f05678be24273e5
4,001
package com.sparta.golam.model; import com.sparta.golam.controller.DateFormatter; import com.sparta.golam.controller.FilterIDs; import com.sparta.golam.model.Employee; import java.time.LocalDate; import java.util.ArrayList; public class EmployeeList { static ArrayList<String[]> startingData = FilterIDs.findOrig...
42.56383
124
0.604599
97d7c9d0dada4f0714548d57eacaaa65ee46c5b4
1,362
package ba.wave.wavebackend.model.user; import com.fasterxml.jackson.annotation.JsonBackReference; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; import javax.validation.constraints.NotNull; import java.util.Set; @Entity public class Role { @Id @Column(name = "ID") @Genera...
20.953846
111
0.631424
24a99739d2ed7b987d943552feff5965493347bc
1,571
package com.agonyforge.core.model; import org.hibernate.annotations.GenericGenerator; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.OneToOne; import java.util.Object...
23.80303
70
0.653724
14175ac73ac684b9cb35826b65b54baf97335357
2,415
package com.xxmassdeveloper.mpchartexample.realm; import android.os.Bundle; import android.view.WindowManager; import com.github.mikephil.charting.animation.Easing; import com.github.mikephil.charting.charts.ScatterChart; import com.github.mikephil.charting.data.ScatterData; import com.github.mikephil.charting.data.r...
32.635135
116
0.720911
a0baab210987ea13e15e547674f179e0c02436b1
7,799
package vivo.learn.rime.pedomap; import android.Manifest; import android.content.pm.PackageManager; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; import android.support.v4.app.ActivityCo...
35.940092
259
0.660341
bdd7547270111cb9c7d9f3859113d233875e867b
405
package space.pxls.palette; import java.util.List; public class Palette { protected List<Color> colors; protected byte defaultColorIndex; public Palette(List<Color> colors, byte defaultColorIndex) { this.colors = colors; this.defaultColorIndex = defaultColorIndex; } public List<Color> getColors() { retur...
18.409091
61
0.753086
00bfc9bc17345ac2d8fd993637974238188cc90d
15,421
package com.example.nctai_trading; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.util.Patterns; import android.view.Vi...
44.313218
395
0.591985
ddc1b990362f0a2345f786cf1d76e89b6447eca0
360
package com.claireshu.nysearchtimes_; import android.content.Context; import android.graphics.Typeface; /** * Created by claireshu on 6/23/16. */ public class StaticUtils { public static Typeface sTypeFace(Context context) { Typeface font = Typeface.createFromAsset(context.getAssets(), "fonts/sourcesans...
24
97
0.725
822a756bf0180af313b462bfbd3f16d968689f99
4,223
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
42.656566
112
0.655932
453ac0528afdf399bcec2d0adb03d6664c46e728
2,612
package com.tryme; import java.io.IOException; import java.io.PrintWriter; import java.text.DecimalFormat; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRe...
30.729412
125
0.692956
41484463b522183301fd3e02b6758050e232f7d0
7,848
1、CardView 的使用方法: (1)本质上是 FrameLayout, 只不过多了圆角和阴影等效果。 (2)布局代码如下: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" ...
46.43787
101
0.585754
0bbafc38f26f65c8423658bec6f27c21b506d6b4
3,797
package com.arun.externaldatabsedemo; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.data...
24.980263
80
0.687121
33ce5528acb9bc2539c4b46a2bd853b248e74850
637
package edu.sru.brian.tictactoegame; /** * File: AIInterface.java * @author Brian * * Description: Provides an interface for Tic Tac Toe AI. Classes can * implement new AI implementations. * */ public interface AIInterface { /** * Called when it is the AI players turn. Pass in the Game of Tic Tac Toe, ...
21.233333
77
0.682889
1729f9b5f9b5cfc8f84c01559ad480e11d8b860e
2,063
/* (C) 2021 DragonSkulle */ package org.dragonskulle.renderer; import static org.dragonskulle.utils.Env.envInt; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import lombok.experimental.Accessors; import org.dragonskulle.settings.Settings; /** * Configurable renderer settings. * * @a...
29.471429
99
0.661173
33a161294d97e87e35f3418ded8cdc7d6f218e9f
1,253
package duke.data; import duke.exception.DukeException; import duke.exception.DukeFatalException; import duke.ui.card.ResultCard; import duke.ui.context.Context; public class Result extends Evidence { /** * Represents results of an investigation based on the treatment prescribed for a patient. * A Resu...
31.325
106
0.706305
3d92629470744e58ba2f92fe92e9dd50d57dc0ed
1,845
package tech.aistar.day14.practice; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; /** * @author: Merlin * @time: 2020/8/7 16:06 */ public class MapPractice { public static void main(String[] args) throws ParseException { Scanner scanner = new Scanner(System.in)...
29.758065
79
0.58374
1e3f52a94807b03eedf93bcd36e59f2ff764c4f9
296
package engine.gameObject; /** * Interface allows an Object to be set to an Enabled or Disabled State * Also gets the ID of the Object. * @author Will * */ public interface IEnabled { public void enable (); public void disable (); public boolean isEnabled (); }
16.444444
71
0.64527
0120e59093e3b6345246effc989a1a66ead437b5
178
module jpasswd { requires java.sql; requires javafx.controls; requires javafx.fxml; opens com.halfegg.jpasswd to javafx.fxml; exports com.halfegg.jpasswd; }
19.777778
45
0.707865
7ed2a18142136fe4f6efaddecf260b15730b3392
388
package com.pdp.manager.service; import java.util.List; import com.pdp.manager.pojo.PsychotropicDrugDict; import com.pdp.manager.pojo.RecipelDrug; /** * 处方内药品业务接口 * @author LIXr * @date 20/11/17 */ public interface IRecipelDrugSerevice { public List<PsychotropicDrugDict> init(); public List...
20.421053
76
0.737113
67901edbf3fa758fe847fea6f7c10b742b3f134e
2,801
import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.stream.Collectors; public class GrahamScan { static class Point { public double x; public double y; public Point(double x, double y) { this.x = x; this.y = y; }...
29.177083
84
0.489111
affc2c67c0c2000a575c5373213a799e0d129271
3,569
package org.ukettle.basics.page.dialect.db; import java.util.List; import org.ukettle.basics.page.Sorting; import org.ukettle.basics.page.dialect.Dialect; import org.ukettle.basics.page.plugin.BaseParameter; import org.ukettle.www.toolkit.StringUtils; /** * Sql 2005的方言实现 * * @author Kimi Liu * @Date Aug 18, 20...
29.254098
74
0.684505
247f19eb103a2777f615c7e5fbc2a9ab23db685a
3,365
package gr.sperfect.djuqbox.webapp.server.youtube; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; ...
33.316832
98
0.713522
d3505ca07fd9a2eacbf72a3213372969031bb2d6
1,144
package com.alibaba.alink.operator.common.fm; import java.util.List; import com.alibaba.alink.common.lazy.ExtractModelInfoBatchOp; import com.alibaba.alink.operator.batch.BatchOperator; import org.apache.flink.api.common.typeinfo.TypeInformation; import org.apache.flink.ml.api.misc.param.Params; import org.apache.fl...
27.902439
102
0.73514
15c86e345857e1dd06fba2157a6d8d3d7340cabb
1,674
package com.github.ibole.infrastructure.common.exception; /********************************************************************************************* * . * * * <p>Copyright 2016, iBole Inc. All rights reserved. * * <p> * </p> *********************************************************************...
24.985075
96
0.5681
f449b114fbe2f89e6806f8aaf1d579d6b0fd4d96
189
package com.tvd12.ezyfoxserver.entity; import com.tvd12.ezyfox.constant.EzyConstant; public interface EzyDisconnectReasonAware { void setDisconnectReason(EzyConstant reason); }
18.9
49
0.798942
f9bb5e649837d08d12b76e7810b1dd782b548cd6
3,461
/* * Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.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 ...
38.88764
113
0.682751
326fff6e5659ca165156dadb2a01e69fd368bb93
3,103
package com.wuhulala.service; import com.wuhulala.auth.JwtManager; import com.wuhulala.dal.mapper.AccountMapper; import com.wuhulala.dal.model.Account; import com.wuhulala.util.PasswordUtil; import com.wuhulala.util.TokenUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans....
26.982609
118
0.639059
da098f33074a21e88b5026d876c180e82c17ce4b
11,732
/* * 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...
62.737968
74
0.590948
fc6fba72e5b70935adc88d762d852fd1399b33a6
1,458
package gov.dot.its.datahub.webapi.model; import java.util.Date; import com.fasterxml.jackson.annotation.JsonProperty; public class DHEngagementPopup { private String id; private boolean isActive; private String name; private String description; private Date lastModified; private String content; private Strin...
21.761194
55
0.748971
bf11c2ec49069e49ac9833e73914190dc3dc3b14
5,356
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */ package com.microsoft.azure.management.storage.samples; import com.microsoft.azure.management.Azure; import com.microsoft.azure.management.resources.f...
35.236842
102
0.571882
f02cc62a7f0d75237b7eabc1fd82088641b81e33
385
package com.NowakArtur97.WorldOfManga.feature.user; import lombok.RequiredArgsConstructor; import org.modelmapper.ModelMapper; import org.springframework.stereotype.Component; @Component @RequiredArgsConstructor class UserMapper { private final ModelMapper modelMapper; User mapUserDTOToUser(UserDTO userDTO)...
21.388889
52
0.792208
c7cab9b99bae7c348d97450ede09946b258a7a08
4,684
/* * Copyright Debezium Authors. * * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package io.debezium.connector.db2; import java.sql.SQLException; import java.util.List; import org.apache.kafka.connect.source.SourceRecord; import org.fest.asser...
39.694915
114
0.668446
ddf776342f874abf1719a309fb90fd3c7bcfea5e
3,148
/** * * Copyright (c) Microsoft and contributors. 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 r...
30.563107
93
0.702351
87c02f1504d3fbe9ea9d898aefb7c1a6a032a31a
345
package systems.v.wallet.utils; import android.content.pm.ApplicationInfo; import android.util.Log; import com.alibaba.fastjson.JSON; import systems.v.wallet.App; import systems.v.wallet.basic.utils.JsonUtil; public class LogUtil { public static void Log(String tag, Object... args){ Log.d(tag, JSON.toJS...
21.5625
55
0.73913
b23a2826a69d4837284d01937a9ad803d8fb11e6
1,395
/* * * Copyright (c) 2006-2020, Speedment, 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 requi...
34.875
92
0.650179
70e6e6e2c6869d96d05f5d10eb56a53e9cee36bc
1,205
package mazegame; public class Monkey extends Sprite implements Moveable { /** Score of the player, initially set at 0. */ private int score = 0; /** Number of moves of a monkey made. */ private int numMoves; /** * Create a monkey with symbol "1" for player1, and symbol "2" for player2 * at the give row ...
21.517857
75
0.658921
e7c5c503b6add11407eb5f5fa20d26aafc82999d
904
package ObjectOrientedDesign.RideSharingApplication; public class Ride { private Integer id; private Integer origin; private Integer destination; private Integer noOfSeats; private RideStatus rideStatus; public RideStatus getRideStatus() { return rideStatus; } public void setRideStatus(RideStat...
20.545455
71
0.72677
a22ce5c78939bec9330f291402278850ca596bbd
529
package org.openvasp.transfer.account; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.openvasp.client.config.LocalTestModule; /** * @author Olexandr_Bilovol@epam.com */ @Tag("transfer") public class LocalAccountTransferIT extends BaseAccountTransferIT { public LocalAccountTrans...
23
89
0.746692
e42ef1d195dd154209a0350df9ebe424d5ff5cbe
622
package com.example.iavanish.popularmovies.util; import java.io.IOException; /** * Created by iavanish on 16/9/16. */ public class NetworkConnection { public static boolean isOnline() { Runtime runtime = Runtime.getRuntime(); try { Process ipProcess = runtime.exec("/system/bin/ping ...
21.448276
78
0.569132
e7b519c58b873a842fcb1b9e3f889068623a376a
70
package pl.thecode.helper.chat; enum ChatUser { NEEDY, VOLUNTEER }
11.666667
31
0.742857
3b1d860932f1552baac0c520a02af26a66e4d903
1,055
import java.util.Scanner; /* * 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. */ /** * * @author dwigh */ public class Console { public static void main(String[] args) { Sc...
31.029412
153
0.575355
66212a667679a407fee83bae57447a65d26db048
9,091
/* * Copyright (C) 2009 The Sipdroid Open Source Project * Copyright (C) 2006 The Android Open Source Project * * This file is part of Sipdroid (http://www.sipdroid.org) * * Sipdroid is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publish...
42.882075
92
0.656473
8ca581409c7c2430e4567d52c4114eb8f2be5082
2,736
/* * Copyright 2013-2015 Sergey Ignatov, Alexander Zolotov, Florin Patan * * 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 req...
38
131
0.762427
0c0d3a496d4044f04a3c6872b86a119c323aa0c5
2,331
/* * 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 ...
41.625
93
0.679108
9c7274693969be656a56dac23f9576f50624c5a5
6,156
/* * Copyright 2018 jd.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 applicable law or agreed t...
39.210191
99
0.75
a3d71efc302b57a3fbdea2001340de46d3304f4f
573
package com.bmsoft.canteensystem.entity; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; import java.io.Serializable; /** * 店铺表 * @author guoguo */ @AllArgsConstructor @NoArgsConstructor @Data @Accessors(chain = true) public class Shop ...
21.222222
44
0.767888
622594f42ad955064c20c383177b2909eae5ad59
2,277
package com.touchableheroes.drafts.spacerx.ui.binding; import android.content.Context; import android.support.v4.app.Fragment; import android.view.View; import com.touchableheroes.drafts.spacerx.dom.SyntheticDOM; import com.touchableheroes.drafts.spacerx.dom.SyntheticDomFactory; import com.touchableheroes.drafts.spac...
26.788235
121
0.662714
6c996cb6f884f866137487ecbebac6b23f84722e
593
package com.cs.scu.service.impl; import com.cs.scu.entity.User; import com.cs.scu.mapper.UserMapper; import com.cs.scu.service.LoginService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class LoginServiceImpl implements LoginService { ...
25.782609
62
0.763912
b5e3250d861dfc9aee5117896e396d5cc425b891
246
package io.github.thecursedfabricproject.cursedfluidapi; public enum Simulation { SIMULATE, ACT; public boolean isSimulate() { return this == SIMULATE; } public boolean isAct() { return this == ACT; } }
16.4
56
0.626016
fdb6eb8c79ad32954137010f629032650504c091
371
package com.sourcesense.joyce.sink.mongodb.service; import java.net.URISyntaxException; import java.net.URL; import java.nio.file.Path; import java.nio.file.Paths; public interface ResourceLoader { default Path loadResource(String name) throws URISyntaxException { URL res = this.getClass().getClassLoader().getRes...
24.733333
67
0.778976
abf5ad5ce9cfd6130a3e2411c3845116179c369f
11,006
package com.github.ryan.data_structure.concurrent; import java.lang.Runnable; import java.security.AccessControlContext; import static java.lang.Thread.currentThread; /** * When a Java Virtual Machine starts up, there is usually a single * non-daemon thread (which typically calls the method named main of * some d...
35.850163
82
0.621933
ec816767e47fa4589975c2440d74edf657170898
1,736
package org.blackbox.bricksole; /** * Class to manage the model of a command parameter */ class CommandParameter { private final String name; private final boolean required; private final String defaultValue; private final Class<?> type; CommandParameter(String name, boolean required, String de...
28.933333
96
0.648618
4bccc8a4c3d379a55cfd5834662a29c339f21ab2
3,277
package org.haobtc.wallet.activities.settings; import android.annotation.SuppressLint; import android.content.Intent; import android.view.View; import android.widget.Switch; import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; import org.haobtc....
32.445545
111
0.683857
a693a2c8cf6e6f8a9af581ca85a5c9456cc76e6d
262
package tutorial03; /** * * @author ainzone * @version 1.0 */ public class StudentTester { public static void main(String[] args) { Student ourStudent = new Student("Jonathan", "Hinkel", 319401); ourStudent.registerForExam(""); } }
17.466667
72
0.629771
84a70e65843ff13bccc989edb27335ead228d7c4
897
package gov.loc.rdc.app; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springfram...
33.222222
88
0.820513
30107b66631b287fbd1fbd516cd8e9654e824b25
1,653
import edu.duke.*; import java.io.*; import java.lang.*; import java.util.*; public class WordFrequencies { private ArrayList<String> myWords; private ArrayList<Integer> myFreqs; public WordFrequencies(){ myWords = new ArrayList<String>(); myFreqs = new ArrayList<Integer>(); } ...
26.238095
177
0.485178
c8f064303253996d55aa9320dfb38acde92c5487
751
package com.codigodelsur.photoexample.di; import com.codigodelsur.photoexample.di.fragment.builder.DetailFragmentBuilderModule; import com.codigodelsur.photoexample.di.fragment.builder.MainFragmentBuilderModule; import com.codigodelsur.photoexample.ui.detail.DetailActivity; import com.codigodelsur.photoexample.ui.main...
31.291667
85
0.829561
de3841879626c6db510f19ea91040355b181d25b
298
package app.jg.og.zamong.exception.business; import app.jg.og.zamong.exception.ErrorCode; public class CommentNotFoundException extends BusinessException { public CommentNotFoundException(String message) { super(message); setErrorCode(ErrorCode.COMMENT_NOT_FOUND); } }
21.285714
65
0.758389
0424db0dd03897286c4dea8f0b76806b1c6efea3
3,972
package com.sampleapp.module.musiclist; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.text.TextUtils;...
25.461538
129
0.670443
40d53148b9d16eafde73aec2a89b16794bb0cfb4
472
package STRING; import java.io.*; class frequencyofallletters { public static void main(String[]args)throws IOException { InputStreamReader ab=new InputStreamReader(System.in); BufferedReader cd=new BufferedReader(ab); String n; int i,j,l,f=0; System.out.println("Enter any string:"); n=cd.readLine(); l=...
15.225806
56
0.637712
50ea4a96b1e8fd882959eea71a72d356d01fe747
860
/* This code originated as a project for the COMP 520 class at McGill * University in Winter 2015. Any subsequent COMP 520 student who is * viewing this code must follow the course rules and report any viewing * and/or use of the code. */ package golite; public class GoLiteWeedingException extends RuntimeException...
26.875
72
0.77907
ddbafd0cc955c4e1189e136a0a52a64cc1562fa2
4,393
package com.xem.mzbcustomerapp.activity; import android.content.Intent; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.loopj.android.http.RequestParams; import com.xem.mzbcustomerapp.R; import com.xem.mzbcustomerapp.base.BaseActivity; import com.xem.mzbcustomerap...
30.506944
142
0.55725