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
e35fc4fc8a3b00e2dc6d0ff55ee2164e13b2a560
542
package it.polimi.eftaios.model.command; import it.polimi.eftaios.model.match.MatchImpl; import it.polimi.eftaios.model.position.Position; /** * Implementa l'azione della LightCard * * @see it.polimi.eftaios.model.card.LightCard * * @author Federico Gatti * */ public class LightCommand implement...
21.68
60
0.712177
f8588db6b4ca1fb96386c38fc632c632adbbe87d
11,309
package com.google.firebase.quickstart.database; import android.app.IntentService; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.util.Log; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import c...
36.015924
196
0.480325
d79546460928365d00933893c7cd718d46043f24
994
package com.commercetools.api.client; import io.vrap.rmf.base.client.ApiHttpClient; import io.vrap.rmf.base.client.utils.Generated; @Generated(value = "io.vrap.rmf.codegen.rendring.CoreCodeGenerator", comments = "https://github.com/vrapio/rmf-codegen") public class ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDRequest...
35.5
120
0.762575
c95ffc03dfd90b227ddb7b560fac55f8c7ad1299
5,630
package asa; import java.sql.SQLOutput; import java.util.Scanner; public class FileUploader { public static int fileCount = 0; public static void main(String[] args) throws InterruptedException { // introduce the user to the system menu(); } public static void menu(){ ...
39.929078
108
0.531083
1d0f17af1e8f6da015b31b005f2d2c41a9e2effc
10,115
/* * 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 ...
37.051282
118
0.640732
09825e817bd85dda7574d3d991d11064cc48b54e
315
package modifierClazzStrictfpToNonStrictfp; import testing_lib.modifierClazzStrictfpToNonStrictfp.ModifierClazzStrictfpToNonStrictfp; public class Main { public static void main(String[] args) { ModifierClazzStrictfpToNonStrictfp constr = new ModifierClazzStrictfpToNonStrictfp(); constr.toString(); } }
24.230769
89
0.831746
f35118f132d09ebfb9795925330a7056754d2100
1,738
package org.disruptiontables.rest; import java.util.List; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.Context; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.UriInfo; import...
28.032258
83
0.695052
d3b8e16cef5b08cb9429944597e4bf2e541edd7f
1,097
package com.example.ui; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; /** * * */ public class TabContentFragment extends Fragm...
31.342857
123
0.748405
233ef5899ceda35ed869cfc973b7c6018ec11c5a
1,435
package io.minimum.minecraft.alien.minecraft.bedrock.packet; import io.minimum.minecraft.alien.minecraft.bedrock.util.McpeUtil; import io.netty.buffer.ByteBuf; public class McpeDisconnect implements McpePacket { private boolean hideDisconnectScreen; private String message = ""; public McpeDisconnect() { ...
26.090909
66
0.641115
dbf3133910ad4038712fda7dbb9bf97a6ff9f2de
3,323
/* * Copyright 2014,2015 agwlvssainokuni * * 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...
31.951923
108
0.701174
c9cdf04cbb5dbcb4ec329c00a5470cec8ba56176
8,829
package com.moment.user.domain; import java.io.Serializable; import java.util.Date; public class UserVO implements Serializable { private Integer id; private String sex; private String name; private String account; private String phonum; private String email; private String salt; ...
32.222628
142
0.575263
c635b7b904e4a5776daac92ce1209e60bca98e08
63
package com.ajoshow.multiproject; public class ProjectAIT { }
12.6
33
0.793651
87dc7fd083c78e16925aedd34d8841c5400267b5
10,133
/* * 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 library_2; import java.awt.Toolkit; import static library_2.LIBRARY_2.audio; /** * * @author akash */ public class DEVELOP...
40.532
120
0.639396
1038f0ac1bd8adfb9f27b4692dd367d9cd9b55b6
1,574
package abi38_0_0.expo.modules.notifications.notifications.presentation.effects; import android.app.Notification; import android.content.Context; import abi38_0_0.org.unimodules.core.ModuleRegistry; import abi38_0_0.org.unimodules.core.interfaces.InternalModule; import java.util.Collections; import java.util.List; ...
29.148148
108
0.802414
f0ec3773bb64fb35e74a529daeecb1007e2f06fd
103
/** * Defines the various Spring XD Shell commands. */ package org.springframework.xd.shell.command;
20.6
48
0.747573
caf6872dbeb9d111cf4706d4a6426b82061ca2ba
9,048
package eu.nimble.service.trackingAnalysis.impl.dao; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import eu.nimble.service.trackingAnalysis.imp...
25.925501
147
0.701813
168ffc3422aa8e7e3c7a3fae268a858601cc33a2
17,728
package org.loudonlune.smol_plugin.utils; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.util.ArrayList; import java.util.Arrays; import java.util.Base64; import java.util.HashMap; import java.util.List; import java.util.UU...
33.386064
169
0.61338
b58ab32121d406effdc2573a43f76ab69d9aadfb
8,933
package com.msg91.sendotp.sample; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.net.Uri; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.w...
35.589641
204
0.527035
ce9e55d95712c82df9e061b23b0e7bf53235f721
2,319
package com.fix.api.auth; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.scheduling.annotation.Async; import org.springframework.security.oauth2.common.O...
35.676923
106
0.683053
33fcdec112403de08d1a83694187080195649193
606
package org.spacebits.components.sensors; import java.math.BigDecimal; public class PowerLawSignalPropagationModel implements SignalPropagationModel { private double exponent; public PowerLawSignalPropagationModel(double exponent) { this.exponent = exponent; } @Override public double getSignal(double logIn...
25.25
84
0.775578
0f9126a720653311f39830c6c9e6ac1962a01a52
4,830
// $Id$ package mkl.testarea.pdfbox2.sign; import java.awt.Color; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.apache.pdfbox.Loader; import org.apache.pdfbox.cos.COSName; import org.apache.pdfbox.pdmodel.PDDocumen...
42.743363
134
0.686542
3c1129caa092b7e04d2fffad4b4c187cbe29171f
567
package com.project.convertedCode.globalNamespace.namespaces.PharIo.namespaces.Manifest.classes; import com.runtimeconverter.runtime.passByReference.PassByReferenceArgs; import com.runtimeconverter.runtime.classes.RuntimeClassBase; import com.runtimeconverter.runtime.RuntimeEnv; import com.runtimeconverter.runtime.arr...
28.35
96
0.830688
03f2092da4e3cd2b1fe499f0145fe09d9a185c55
1,638
package com.macrodream.spring.guides.gs.cachinggemfire; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import org.springframework.stereotype.Service; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.L...
30.333333
83
0.58486
66322b31b9a8fec27917900cc75fa9ad9275deca
7,895
package com.jiyehoo.informationentry.presenter; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.hardware.biometrics.BiometricPrompt; import android.net.Uri; import andr...
28.297491
105
0.559848
22cc3230aad4d479405b140cd58f7fa49d66024a
1,392
package com.xys.controller.product; import com.xys.model.Product; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.mvc.Controller; import javax.servlet.http.HttpServletRequest; import javax....
38.666667
136
0.760057
53087a6bc6a163ff42bc50ce89a30e184d3d2a36
979
package cn.edu.tju.ina.estuary.service.generic; import java.io.Serializable; import org.springframework.transaction.annotation.Transactional; import cn.edu.tju.ina.estuary.repo.generic.GenericDao; @Transactional public class GenericServiceImpl<T, ID extends Serializable> implements GenericService<T, ID> { privat...
18.12963
94
0.73953
f739f9f8601314aca5e68f54072b027f417aea1e
7,370
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.search.documents; import com.azure.core.credential.AzureKeyCredential; import com.azure.core.util.Configuration; import com.azure.search.documents.indexes.SearchIndexClient; import com.azure.search.docume...
43.869048
161
0.717368
c89b2a3e55a301a4559f7cc8516a27b67dc7e853
751
package es.alonsoftware.newsapp.clases; import org.json.JSONArray; import org.json.JSONException; import java.util.ArrayList; import java.util.List; import es.alonsoftware.newsapp.Constantes; /** * Created by jorge on 11/3/17. */ public class DAO { public static List<Titular> getCategoria(int categoria){ ...
23.46875
109
0.629827
cd5f1ac686346ebee10051183def5ba10ea040e2
3,059
/* * 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 ...
43.7
149
0.750245
e4fa6612eb97f1eca79d1eac20e88a10852f33f4
674
package io.github.artemnazarov.sdktestapplication.injection; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import com.nextmillennium.inappsdk.core.InAppSdk; import io.github.artemnazarov.sdktestapplication.databinding.ActivityInlineBinding; public class InlineActivity extends AppCompat...
30.636364
83
0.78635
7abd30acc72091e4f1cbf26df54e9dc1264428af
1,272
package jasmine.core.util.timer; /** * @author mh.z */ public class ExecuteTimer { /** 开始时间 */ private Long startTime; /** 结束时间 */ private Long endTime; /** 总的时间 */ private Long totalTime; private ExecuteTimer(Long startTime) { this.startTime = startTime; this.endTime = -...
16.519481
60
0.508648
b3ebe59be07383f4a0922a14205e62e6907b0eac
5,153
package org.sv.flexobject.hadoop.mapreduce.input.mongo; import org.apache.hadoop.conf.Configuration; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; import org.sv.flexobject.StreamableWithSc...
32.20625
109
0.69086
71dbf2e4001d31896957a4713b727b5fdf150224
1,603
package com.lyricgan.network; import java.io.IOException; import okhttp3.Call; import okhttp3.Response; import okhttp3.ResponseBody; /** * 网络请求回调接口 * @author Lyric Gan */ public abstract class StringCallback implements ResponseCallback { @Override public void onFailure(Call call, IOException e) { ...
26.716667
115
0.576419
63f5b95224ae854e2f550129f1c4dd676ebd11b4
1,047
package org.podcastpedia.admin.update.batch; import java.util.concurrent.Future; import org.podcastpedia.common.types.UpdateFrequencyType; public interface BatchUpdateService { /** * Updates all the podcasts with the given frequency with the given number * of worker threads * * @param updateFrequency */...
23.795455
75
0.74212
675a4e35574790a2918a7e298d4e7447ad434f18
1,337
/* * Software Name : OCast SDK * * Copyright (C) 2017 Orange * * 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 ...
28.446809
148
0.631264
9eb12116a1fb640884fa688b5366132406beca7a
379
package com.basestructure.modules.tab2; import com.basestructure.modules.view.presenter.PresenterStub; /** * Created by innofied on 3/4/18. */ public class TabTwoPresenter extends PresenterStub { private ITabTwoFragment fragment; public TabTwoPresenter(ITabTwoFragment fragment) { this.fragment = ...
19.947368
62
0.744063
dfd997be49bf4d70b61437ab0cd056a6a8e5243d
629
package com.wojciechdm.corrector.names; import info.debatty.java.stringsimilarity.Damerau; import java.util.*; class NameMatcher { private Damerau damerau; NameMatcher(Damerau damerau) { this.damerau = damerau; } String match(String name, Collection<String> existingNames, int maxDistance) { return...
26.208333
91
0.707472
5e7a521a7016f4511d636d5074a5badfd01f1049
18,998
package com.example.zhangjianwei.weiweiweather.view.fragment; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v...
37.033138
144
0.637646
f5b23a7c2a5166523aecba427037a4300ceadfae
1,062
package com.abeldevelop.architecture.library.common.enums; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; public class EnvironmentsTest { @Test public void test_LocalEnvironment() { Environments actual = Environments.LOCAL; String expected = "local"; asser...
23.6
60
0.742938
6358a4751d08fea1f522d6206e5868e72c7efa91
374
package com.basis.net.oklib; import java.util.HashMap; /** * @author gyn * @date 2021/9/28 */ public class OkParams { private HashMap<String, Object> mParams = new HashMap<>(); public OkParams add(String key, Object obj) { mParams.put(key, obj); return this; } public HashMap<Stri...
17
62
0.614973
52c0c91f7e313221845120cd82a2b061e8a0e8f6
15,671
// Copyright 2017 Google 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 by applicable law...
39.374372
142
0.651075
8119bd093a58e756142f91d316dcbb8f286f8f8d
14,897
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * Copyright 2014 The Apache Software Foundation. * * 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 * ...
12.571308
623
0.776062
10d2cf39cc9edf0ea5ae3b0eba58b03c0b44f250
1,662
package cellsociety_team10.individualSimulations; import javafx.scene.paint.Color; import java.util.HashSet; import cellsociety_team10.CA; import cellsociety_team10.Cell; import cellsociety_team10.Simulation; public class CatchingFire extends Simulation{ private final int EMPTY = 0; private final int TREE = 1; ...
22.16
77
0.658845
327322d892a55b9f5f7c61b36d91607a68d35a08
2,992
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2019 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...
34
174
0.675134
54b304fd00cfb52b09eda2a25af8f83433437a5a
653
package com.docuware.dev.schema._public.services; import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TypeReference") public class TypeReference { @XmlAttribute(name = "TypeName", required = true) protected String typeName; @XmlAttribute(name = "Uri") @XmlSc...
17.648649
53
0.646248
c3c572794ab372c7b470878fcd93f34aba429918
16,564
package com.genexus.db.service; import java.io.InputStream; import java.io.Reader; import java.math.BigDecimal; import java.net.URL; import java.sql.Array; import java.sql.Blob; import java.sql.Clob; import java.sql.Connection; import java.sql.Date; import java.sql.NClob; import java.sql.ParameterMetaData; import java...
26.630225
117
0.683893
8a47eff5a7e23d1ade68821d8b37465616c8bbd7
9,306
package info.unterrainer.commons.httpserver; import java.io.IOException; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ExecutorService; import info.unterrainer.commons.httpserver.daos.CoreDao; import inf...
40.637555
114
0.771438
e0115fce5af599379dfc2d76bd970c673cb9f58f
700
package com.moemoe.lalala.view.adapter; import com.moemoe.lalala.R; import com.moemoe.lalala.model.entity.InviteUserEntity; import com.moemoe.lalala.model.entity.ShowFolderEntity; import com.moemoe.lalala.view.widget.adapter.BaseRecyclerViewAdapter; /** * * Created by yi on 2017/6/26. */ public class InviteAdapte...
24.137931
92
0.731429
d09a2258a2fb4880745113b417196fc2072b6e3e
1,016
package chapter11; // TypeCastingEx3.java public class TypeCastingEx3{ /** * Upcasting and downcasting with Number, Integer, Float etc. * * @param args */ public static void main(String[] args) { Number n, n1; Integer i = 5; Double d = 2.5; // Upcasting, putting Double and Integer to Number. No issues...
29.028571
75
0.650591
5d6534d5c8d61277f804647178ee26a808bb223e
3,439
package com.tlabs.android.jeeves.views.contracts; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.ViewGroup; import com.tlabs.android.jeeves.views.R; import com.tlabs.android.jeeves.views.ui.list.AbstractListRecyclerView; import com.tlabs.andro...
34.049505
123
0.664728
0c30bf73fbd91c3770f7516966ce9d3f7fbb73a3
514
import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import java.util.concurrent.TimeUnit; public class LoginTest extends TestBase{ ...
22.347826
57
0.725681
e3aefdd4512e9bac7ac55695a7025a7101de4373
6,443
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.provision.provisioning; import com.yahoo.component.Version; import com.yahoo.config.provision.ApplicationId; import com.yahoo.config.provision.ClusterMembership; import ...
44.434483
151
0.64768
f03a4e7e1a5880d551d450437eb2011f69c877f1
1,140
package Miscellaneous //Find the k-th largest number in a sequence of unsorted numbers. // Input: // [8, 7, 2, 3, 4, 1, 5, 6, 9, 0], K = 3 // Output: // 7 // PRograming Language Java public class kThLargestElement { public int findkThLargestElement(int[] arr, int n, int k) { int max = 0; ...
15.405405
65
0.409649
af8cb50f6b1c1352ccfea98c332c5428b119a3f4
1,948
package com.zugaldia.robocar.software.camera; import android.hardware.camera2.CameraCaptureSession; import android.hardware.camera2.CaptureFailure; import android.hardware.camera2.CaptureRequest; import android.hardware.camera2.TotalCaptureResult; import android.support.annotation.NonNull; import timber.log.Timber; ...
29.969231
99
0.674538
07a04418600fefa263b46454c1c3acbca560db46
623
package cn.cnki.spider.entity; import lombok.Data; /** * @ClassName SpiderCAS * @Description TODO 中国科学院cas * @Author 8203 liu_jt * @Date 2020/6/28 13:45 * @Version 1.0 */ @Data public class SpiderCAS { private Integer id; private String casSubject; //学科 private String casName; //院士名称 pr...
23.961538
92
0.661316
65f3687f92481c69132fd8dfce59d92dfd39e3ca
1,254
package club.dizy.jsit.visitor.expression; import club.dizy.jsit.node.Node; import club.dizy.jsit.node.SimpleNode; import club.dizy.jsit.node.expression.ASTExpression; import club.dizy.jsit.node.expression.ASTResultType; import club.dizy.jsit.token.TokenList; import club.dizy.jsit.visitor.JsitParserVisitor; i...
24.588235
72
0.665869
1f4e0d4fe7672378fe27f2d272ed7889e849b762
4,214
package example; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.net.Socket; import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.ut...
26.503145
79
0.687945
b8616333695a988e69347a0fc76ffdc9d98b387d
809
package lee.code.code_89__Gray_Code; import java.util.*; import lee.util.*; /** * * * 89.Gray Code * * difficulty: Medium * @see https://leetcode.com/problems/gray-code/description/ * @see description_89.md * @Similiar Topics * -->Backtracking https://leetcode.com//tag/backtracking * @Similiar Problems * ...
21.289474
93
0.648949
f3b71daf325a654cc71dfe1f6d3ca0483c2347c7
1,568
package test; import com.duing.domain.Admin; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.util.HashSet; import java.util.Iterator; import java.util.Set; public class Test1 { public static void main(String[] args) throws IllegalAccessException { Admin admin = new Admin("a...
32.666667
108
0.575893
ef3c784bf6d806973f3c5a30d4b5d7ed51e49538
2,939
/* * Copyright 2019 Avee Player. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
31.945652
154
0.656005
4dca59627275d115306caef2b2bf033a6429c1b9
4,049
package com.github.apiggs.http; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonDeserializer; import com.fast...
30.908397
151
0.681156
243519106c30b980e051a63a7d5c6d1ccacb46f4
197
package icons; import com.intellij.openapi.util.IconLoader; import javax.swing.*; public interface JiraIcons { Icon ISSUES_REFRESH = IconLoader.getIcon("/icons/ico-issues-refresh.png"); }
16.416667
78
0.756345
a4fc8c579035b914bad3da3226334651fd17e915
3,058
package com.yunxiweather.android; import android.app.NotificationManager; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v4.app.NotificationCompat; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.RelativeLayout; import android...
37.292683
108
0.629169
7b5343026b6a470ce85402faaede0f1b21ef7e12
455
package domain.dao; import domain.dbmodel.User; import org.apache.ibatis.session.SqlSession; import org.springframework.stereotype.Repository; import javax.annotation.Resource; import java.util.List; /** * Created by bsu on 2015/5/28. */ @Repository public class UserRepository { @Resource private SqlSess...
17.5
70
0.738462
d1d1619230b985f6850172b4b0d80ca8ec6d59b0
3,178
package solutions.java.jesse; //# Single and Ready to Mingle // Given an array of integers in which two elements appear exactly once and all other elements appear exactly twice, // find the two elements that appear only once. // // Business Rules/Errata // You can assume that the input will always include at least two ...
34.923077
141
0.57961
450e40518d24f282ed9c25f9187fed85b148636f
6,776
/* * Copyright 2015 Loic Merckel * * 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 ...
34.050251
131
0.749852
b4fd3a185cfa0319f49f0103b635b0f8770c6236
9,869
/* * Copyright (c) 2004 David Flanagan. All rights reserved. * This code is from the book Java Examples in a Nutshell, 3nd Edition. * It is provided AS-IS, WITHOUT ANY WARRANTY either expressed or implied. * You may study, use, and modify it for any non-commercial purpose, * including teaching and use in open-sou...
34.996454
79
0.633296
4d399d0189e6b0e764ee69c95b9808d0285b35a5
2,758
/* =========================================================================== @ $Author$ @ $Revision$ @ $Date$ @ =========================================================================== */ package com.baloise.testautomation.taf.swing.server.elements; import java.awt.Component; import javax.swing.J...
27.858586
100
0.636331
7100b08dd09e0e74fe677f9bda4db6c592246fd6
524
package fwwb.classMoments.services; import fwwb.classMoments.DTO.ActivityDTO; import java.util.List; /** * Created by hongcj on 2017/4/28. */ public interface ActivityService { ActivityDTO doShowActivity(int activity_id); List<ActivityDTO> getClassActivitiesByClassId(int class_id, int count, int page); ...
23.818182
85
0.772901
98b734d3b6712ee774af06929c38bdd4029749a2
11,312
import java.awt.*; import java.awt.geom.Ellipse2D; import java.util.List; /** * Abstract Knight class. For time limitations, some of its methods were not documented. * @author Mehmet Can Boysan. */ public abstract class Knight { public static int COOLDOWN_INTERVAL = 1000; //1 second public static int ...
29.458333
114
0.660449
cc3ee59135c9e7f3d68562d246d70a434a5e820c
2,712
package com.waterteam.musicproject.util.getdatautil; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.provider.MediaStore; import android.util.Log; import com.waterteam.musicproject.bean.AlbumBean; import com.waterteam.musicproject.bean.SongsBean; impo...
35.220779
164
0.575221
e7a5029008c27539a7cff398d8be1378a7119040
13,289
package org.osgl.mvc; /*- * #%L * OSGL MVC * %% * Copyright (C) 2014 - 2017 OSGL (Open Source General Library) * %% * 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://ww...
36.709945
129
0.640379
0d0ce7747feb6f2b71b7796f96feb351be1cad46
196
package org.uberfire.security.server.auth.source.adapter; import java.util.List; import org.uberfire.security.Role; public interface RolesAdapter { List<Role> getRoles(String username); }
17.818182
57
0.780612
d88707aedd99052a90221bca080ab89f6030ef47
464
package com.cyberobserver.tests; import org.testng.annotations.Test; public class GroupCopyTests extends TestBase { @Test(enabled = false) public void testGroupModification (){ app.getNavigationHelper().gotoToolsConfigurationPage(); app.getNavigationHelper().gotoGroupsPage(); app.getG...
25.777778
63
0.713362
29b58866b7f080431b6fe94e9284a5c28a0e1df6
841
package dialight.toollib; import dialight.misc.Colorizer; import dialight.misc.ItemStackBuilder; import dialight.toollib.events.ToolInteractEvent; import org.bukkit.inventory.ItemStack; import org.jetbrains.annotations.Nullable; public abstract class Tool { private static final ToolData ID_DATA = new T...
23.361111
100
0.671819
2e06aa4d414170481e13e0ffecf307e1d12924ee
7,916
package org.bndly.common.json.api; /*- * #%L * JSON * %% * Copyright (C) 2013 - 2020 Cybercon GmbH * %% * 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.or...
45.234286
190
0.784613
854c80ef93ef644414fcf01bf2f7d123ec00e1af
4,747
package com.uwsoft.editor.view.ui.widget.actors; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.utils.Array; import com.esotericsoftware.spine.Animation; import com.esotericsoftware.spine.Animati...
36.515385
166
0.66126
98fe0c143142678749dcc1b7d2a49f560715b257
9,336
/* * Copyright [2019] [Doric.Pub] * * 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...
38.106122
85
0.57048
2f32b06f31eb27e11b6e34f8b567c18ba4fdb926
1,120
import org.newdawn.slick.Graphics; import org.newdawn.slick.Image; import org.newdawn.slick.SlickException; public class Boost extends Item{ private int countDown; private Player boostPlayer; public Boost(double x, double y) throws SlickException { super(x, y, new Image(Game.ASSETS_PATH + "/items/boost.p...
18.064516
69
0.669643
6bbb1d74c5ddc3731d057411f182f064e2f9a573
465
package github.toby0622.oopsection3; public class Engine { private String model; private int rpm; public Engine(String model, int rpm) { this.model = model; this.rpm = rpm; } public String getModel() { return model; } public void setModel(String model) { t...
16.607143
42
0.565591
ae770f72a2bda0b605203bd34c2193cca0a0ba62
5,144
package com.cv4j.proxy.web.job; import com.cv4j.proxy.ProxyManager; import com.cv4j.proxy.ProxyPool; import com.cv4j.proxy.domain.Proxy; import com.cv4j.proxy.web.config.Constant; import com.cv4j.proxy.web.dao.CommonDao; import com.cv4j.proxy.web.dao.ProxyDao; import com.cv4j.proxy.web.domain.JobLog; import com.cv4j.p...
28.577778
88
0.632776
0cac2e04f74231b31de7cd3789a2df663684d321
2,037
/* * Copyright 2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
35.12069
112
0.757486
aff9fda8c15460f024a7972d820e5c95350982db
216
package jhw.eventbusdemo.event; /** * Created by jihongwen on 15/10/12. */ public class EventTestEvent extends BaseEvent{ public EventTestEvent(Type action, Object data) { super(action, data); } }
19.636364
53
0.689815
939ffeb89bed9ad274b5e8b75ecbb4da1e27fd4f
1,969
package org.apache.spark.sql.hive.execution; /** * Transforms the input by forking and running the specified script. * <p> * param: input the set of expression that should be passed to the script. * param: script the command that should be executed. * param: output the attributes that are produced by the script...
85.608696
373
0.769934
5fd41082e9a99c18017ba479c34c24d38ede4341
2,085
package com.ibm.rdf.store.sparql11; import static com.ibm.rdf.store.sparql11.CommandLineDriver.getData; import static com.ibm.rdf.store.sparql11.CommandLineDriver.getEngine; import java.io.File; import java.io.FileFilter; import java.lang.reflect.InvocationTargetException; import junit.framework.TestCase; import jun...
33.629032
214
0.727578
d40fc53241c4c72a680764f11d92b2ae6c25ebed
1,839
/******************************************************************************* * Copyright 2017 UIA * * 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. ...
26.271429
81
0.588363
dfbb5c05ad14a069c6606e96b456460767107bdb
595
package de.quaddy_services.ptc.enterprise; import static org.junit.jupiter.api.Assertions.*; import java.util.List; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; /** * Manual test. Can only run if server is running. * * @author user */ public class PtcRemoteCallTestManual { @Test @...
23.8
71
0.757983
01012c75aebbbf22a2d30cc28ed6ee1da47ccfcd
5,280
package com.annaru.common.util; /** * @author TuMinglong * @version 1.0.0 * @description 常量 * @date 2018年4月19日 下午3:57:46 */ public class Constant { /** 超级管理员ID */ public final static String SUPER_ADMIN = "1"; // 控制线程数,最优选择是处理器线程数*3,本机处理器是4线程 public final static int THREAD_COUNT = 12; /** * @D...
15.761194
56
0.378977
1370d907e084cfc3aa6122f540699beaf6fa8bbb
2,947
package Ds.src.codingbootcamp; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.HashMap; import java.util.Map.Entry; import java.util.Set; public class MostRepeatedWordsinTextFuile { public static void main(String[] args) { //Creating wordCou...
30.381443
94
0.446216
18a3eb1cf8b4607df936ccbf5a5a32d833433349
1,546
package org.ferris.tweial.console.main; import java.util.Arrays; import java.util.List; import javax.enterprise.event.Event; import javax.enterprise.inject.spi.CDI; import javax.inject.Inject; import org.apache.log4j.Logger; import org.ferris.tweial.console.email.EmailSendEvent; import org.ferris.tweial.console.exit.E...
27.607143
86
0.695343
2596391befe58f4c1d1b6bc7f603395d247cc115
209
package com.sky.hsf1002.designpattern.Proxy.DynamicProxy; /** * Created by hsf1002 on 2017/9/17. */ public interface ILawsuit { void summit(); void burden(); void defend(); void finish(); }
17.416667
57
0.660287
84bdc05561b1cb9fcf76c446d3a73cb722a90f87
1,978
/** * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. * * <p>This source code is licensed under the BSD-style license found in the LICENSE file in the root * directory of this source tree. An additional grant of patent rights can be found in the PATENTS * file in the same directory. */ package com...
30.90625
100
0.712336
f8afbb8be987df297743bed3650e3d9b81ecb956
7,501
package org.smartregister.child.provider; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.mockito.Mockito; import org.mockito.MockitoAnnotations; import org.smartregister.child.BaseUnitTest; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; publi...
42.378531
173
0.746567
b38d7d39f7085a678e6682939e6e3d826ea6e959
9,024
/** * Copyright (C) 2015 Orion Health (Orchestral Development Ltd) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
35.527559
180
0.723848
74986e85700bc683b837894f0c037ebd2fec4ab8
10,647
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
36.091525
92
0.632854
f544be7a1c6c8eae5220f82306ef9512bd549885
2,215
package com.github.superzhc.minio; import io.minio.MinioClient; import io.minio.errors.*; import io.minio.messages.Bucket; import java.io.IOException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.util.List; /** * @author superz * @create 2021/10/27 10:37 */ ...
25.170455
110
0.581941
dbb512707790743f797976296adf855599657d3e
1,853
package com.windchat.im.storage.dao.config; /** * 数据库配置中的KEY * * @author Sam{@link an.guoyue254@gmail.com} * @since 2018-06-09 12:51:54 */ public interface JdbcConst { String WINDCHAT_EDITION = "windchat.edition"; String SQLITE_URL = "windchat.sqlite.url"; // ----------------------MASTER-------------------...
39.425532
95
0.751214
909ba567d82fa75c6bc9e1f1303e0fc08f9b4819
15,757
/* * Copyright (c) 2008, 2012 Oracle and/or its affiliates. * All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
41.033854
152
0.535762
65429a99a3d02156fba8a9b8aa71cc3c963bef7f
985
package com.espressif.iot.action.user; import com.espressif.iot.command.user.EspCommandThirdPartyLoginInternet; import com.espressif.iot.command.user.IEspCommandThirdPartyLoginInternet; import com.espressif.iot.type.user.EspLoginResult; import com.espressif.iot.type.user.EspThirdPartyLoginPlat; import com.espressif.io...
36.481481
93
0.770558
e2f6b3e74d953eb01cfc86ad173b23dbbda753e8
4,899
package org.apache.maven.plugins.dependency.tree; /* * 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 A...
39.508065
120
0.537048