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
47bdb7be3906e25caa276ce8e6538a443aeffca5
706
package com.cxmax.webprogress.lib.webview.jsbridge.annotation; import android.webkit.JavascriptInterface; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * @describe : Annotation that allows exposing...
28.24
89
0.725212
153ac9d19dc3c8e1100620b4ec39e5ddd5b8cbcd
656
package org.globalbioticinteractions.dump; /* Dumper - a GloBI commandline tool to help dump access databases. */ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.eol.globi.Version; import org.globalbioticinteractions.dump.cmd.CmdLine; import static java.lang.Syste...
24.296296
68
0.66311
ebcefa3e2c5c8e5bd4bd73484a8704e4a5caaf06
15,051
/* * Copyright (c) 2014-2017 Neil Ellis * * 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 ...
28.723282
128
0.60182
6a1ee468aee41ab51b18c5546406a482770cb60a
491
package com.jvdevlab.java.core.operators; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; public class InstanceOf { @Test public void instanceOf() { Number n = Integer.valueOf(42); // before if (n instanceof Integer) { Inte...
19.64
60
0.572301
122c3292387fca4914453c6f7aecb41b69037b84
3,613
/** * 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"); yo...
30.108333
129
0.633546
81876408123e06e36b0e054cc9212a00d8feb011
3,546
/* * Copyright 2018 Red Hat, Inc. and/or 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 app...
38.543478
129
0.756627
c3d3f5b51f287a1afcebda60e023e1c369733b29
3,538
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
38.879121
112
0.71792
0b81a5bd2b868b0ea3f5e24f351b8bfc069f305f
1,783
package com.example.smsapp; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.telephony.SmsMessage; import android.widget.Toast; public...
27.430769
96
0.579361
9136d73392d3b5669b386c22e06a8ab7d5740f1a
18,883
/* * Copyright 2017-2020 Alfresco Software, 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 required by applicable ...
48.048346
139
0.646931
68886656a645aa4cc8a8c62b16deb34aa13bdbef
2,627
package vn.techmaster.vincinema.model; import java.util.ArrayList; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import java...
26.535354
70
0.676056
0821b3d1912308ac1bdc50af88cae1fa244c4b34
808
package server.services; /** * @authors * Cyusa Keny * Irakoze Loraine */ public class SubscriptionService { private final server.repositories.SubscriptionRepository repository=new server.repositories.SubscriptionRepository(); public int AddNewSubscription(server.models.Subscription subscription) throws java.sq...
35.130435
119
0.809406
42f8502da0befe654d6b412e41b9c461b0b33ead
19,989
package br.com.sobrevida.vacinaSARSCoV2.controller; import br.com.sobrevida.vacinaSARSCoV2.model.VacinaModel; import br.com.sobrevida.vacinaSARSCoV2.model.dao.VacinaDao; import javax.swing.JComboBox; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JSpinner; import javax.swing.JTable; impo...
47.143868
200
0.550853
6990e03d4feaf50b79ab90463276a6e172c556ee
495
package com.github.opennano.valueobject.junit; import org.junit.platform.commons.JUnitException; /** Thrown if a value object could not be injected into a field. */ public class ValueObjectDeserializationException extends JUnitException { private static final long serialVersionUID = 1L; public ValueObjectDeseri...
27.5
79
0.785859
952e426154e86e62673fa53613920cbdd570d549
734
package com.boot.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.env.Environment; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annot...
22.9375
62
0.805177
b70facdd6cc5c010d4c1c084edd99a756a0a6bfe
519
package com.movify.service.impl; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.movify.dao.ICategoryDao; import com.movify.service.ICategoryService; @Service public class CategoryServiceImpl impleme...
22.565217
62
0.801541
8190b7f05a074df04a0350f8be595a4d1fb716f3
25,762
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ pa...
70.969697
209
0.842792
ed22d4564f9f579ad33d6d3072e83dadf265a211
15,481
package com.rw.article.common.utils.pay; import com.rw.article.common.constant.Constants; import com.rw.article.common.utils.pay.berich.MD5Utils; import org.apache.commons.lang3.RandomUtils; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.U...
29.320076
158
0.521866
a7f5f1aded2cd5031c058e7bada9b1d83336a3a3
1,356
package jadx.tests.integration.loops; import org.junit.jupiter.api.Test; import jadx.core.dex.nodes.ClassNode; import jadx.tests.api.IntegrationTest; import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.MatcherAssert.assertThat; public class...
22.6
82
0.585546
3efdbb2844a818dd3142987d125393c0b5975f4a
1,458
package php.runtime.ext.core.classes; import php.runtime.Memory; import php.runtime.annotation.Reflection; import php.runtime.common.HintType; import php.runtime.env.Environment; import php.runtime.exceptions.support.ErrorType; import php.runtime.lang.BaseObject; import php.runtime.lang.IObject; import php.runtime.mem...
31.695652
130
0.705075
8299bd0bc749df0fafa5d97cc882411eaa0925e4
1,603
package org.mmo.db.memory.actor; import org.mmo.db.memory.message.GetRequest; import org.mmo.db.memory.message.KeyNotFoundExecption; import org.mmo.db.memory.message.SetRequest; import org.mmo.db.memory.service.MemoryCacheService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.bean...
32.714286
110
0.74922
9a390f7ecd522eed9c0baaf7737d8dff578212cb
4,639
package sh.cau.commuter.PathSetting; import android.content.Intent; import android.content.SharedPreferences; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v7.app.AppCompatActivity; import an...
31.557823
123
0.629662
342f7d61a1ba58c68cc66dad8d3326ffc95527f8
324
package com.muggle.common; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class DCCommonApplication { public static void main(String[] args) { SpringApplication.run(DCCommonApplication.class, args); ...
27
68
0.796296
2d04dc4b004e5c4fdc1a166fd5d1a88c3b9f1309
2,031
package io.mapwize.mapwizeuicomponents.Models; public class Users { String C_Email, C_Name, C_Username, C_Photo, C_Password, UserType; String R_Email, R_Name, R_Username, R_Photo, R_Password , R_Status; public Users() { } public String getC_Email() { return C_Email; } public voi...
18.981308
71
0.606598
a490fa55922936c62259576660a7559c6ccefccc
2,479
package com.connor.demo.designpattern; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import com.connor.demo.R; /** * 建造者模式 * 对一个复杂对象得构建与它的表示分离,使得同样的构建过程可以创建不同表示的意图。 * 建造者模式的好处就是是的建造代码与表示代码分离,由于建造者隐藏了该产品如何组装的。 * 如果需要改变一个产品的内部表示,只需要再定义一个具体的建造者就可以了 * * 使用场...
22.536364
82
0.624042
b06013c3ee717e0b905ab68d6eea341bde9fe76d
1,434
package org.cyberpwn.react.network; import java.io.DataInputStream; import java.io.DataOutputStream; import java.net.Socket; import org.cyberpwn.react.util.GMap; import org.cyberpwn.react.util.JSONObject; public class RequestBasic extends Thread { private RequestCallbackBasic callback; private NetworkedServer ns; ...
20.485714
116
0.668759
90f45b08b10c0eb4d9abcfe4551686417643299b
16,601
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you m...
48.826471
116
0.724655
10b67d04bc985e2a0f14c443941231250f198850
2,976
package com.hzhang.config; import com.hzhang.service.MailService; import com.hzhang.utils.MessageUtils; import com.hzhang.utils.RedisUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.amqp.core.*; import org.springframework.amqp.rabbit.connection.CachingConnectionFactory; import ...
32.347826
174
0.711694
8e6e160f16cc7bd75d47529d05230a9215ac7eda
20,008
// // $Id$ package com.threerings.msoy.fora.server.persist; import java.sql.Timestamp; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Set; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.inject....
38.183206
100
0.65024
c32e5da5f199a24d1e3fe825fa33975122e8470a
5,259
package com.lethalskillzz.baker.presentation.recipedetail; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.widget.DefaultItemAnimator; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater;...
29.379888
91
0.710021
c1d5e4ba083793d56c58c82134975916c13cd237
25,226
package io.bhpw3j.wallet; import io.bhpw3j.contract.ScriptHash; import io.bhpw3j.crypto.Sign; import io.bhpw3j.crypto.Sign.SignatureData; import io.bhpw3j.crypto.transaction.RawScript; import io.bhpw3j.crypto.transaction.RawTransactionOutput; import io.bhpw3j.model.types.ContractParameterType; import io.bhpw3j.model.t...
57.857798
760
0.735947
2f27528a9db2a709631e608e785ec15a6865b302
1,362
package com.github.vfyjxf.nee.container; import appeng.api.storage.ITerminalHost; import appeng.util.Platform; import com.github.vfyjxf.nee.block.tile.TilePatternInterface; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.p455w0rd.wirelesscraftingterminal....
29.608696
89
0.713656
0d25df778bcc607e04c41e01ab65a7b3072018ef
1,954
/* * User: anna * Date: 25-Aug-2008 */ package com.intellij.refactoring.typeMigration.rules; import com.intellij.psi.*; import com.intellij.psi.util.PsiUtil; import com.intellij.psi.util.TypeConversionUtil; import com.intellij.refactoring.typeMigration.TypeConversionDescriptor; import com.intellij.refactoring.typeM...
54.277778
146
0.732856
50a5c94e6595c1092aa484b1406f834c28279ee6
2,265
package termination; import javafx.application.Platform; import javafx.fxml.FXML; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.layout.AnchorPane; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.Li...
26.034483
89
0.613687
f9c81feb12fe80c9a4f2f4795efd41e777ab34a8
11,760
/* * The MIT License (MIT) * * Copyright (c) 2019 Twineworks GmbH * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to u...
35.315315
163
0.653912
0f4f7341fe0e1992d84ec4e1f416b2a1d2b64640
3,046
/* * otr4j, the open source java otr library. * * Distributable under LGPL license. * See terms of license at gnu.org. * * SPDX-License-Identifier: LGPL-3.0-only */ package net.java.otr4j.session.ake; import net.java.otr4j.api.Session; import net.java.otr4j.api.Session.Version; import net.java.otr4j.crypto.DHK...
35.835294
171
0.701576
2297fa5e872ad721127088dd2af7d8a058b43580
35,744
package com.teamb.model; import org.postgresql.jdbc.PgArray; import java.sql.*; import java.util.ArrayList; import java.util.Arrays; public class VolunteerizeModel { private DatabaseInterface database; private Users user; private Profile profile; public Profile getProfile() { return profile;...
40.434389
122
0.520255
8c07ab552ec737826ad2568980cf4256027d80f2
22,673
package org.jdraft.pattern; import com.github.javaparser.ast.expr.DoubleLiteralExpr; import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.ast.expr.IntegerLiteralExpr; import com.github.javaparser.ast.expr.LongLiteralExpr; import com.github.javaparser.ast.stmt.Statement; import com.github.java...
37.352554
138
0.547479
944df898731f565446adf4e5d770cfbcf78a92b6
1,415
package com.gjs.taskTimekeeper.webServer.server.testResources.rest; import com.gjs.taskTimekeeper.webServer.server.testResources.entity.TestUser; import com.gjs.taskTimekeeper.webServer.webLibrary.pojo.user.UserRegistrationRequest; import io.restassured.http.Header; import io.restassured.response.ValidatableResponse; ...
31.444444
90
0.775972
00d28c50ebf6e387f3f5f5e0aaa0235fc5d5e42a
8,081
package ooga.ModelTests; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.HashMap; import java.util.List; import ooga.model.cardcollection.DeckCardCollection; import ooga.model.cardcollection.deck.DrawDeck; import ooga.model.cardc...
31.321705
111
0.705358
cc87f67ecea3576e989377cb3bc7d3da8f0b0a58
3,743
/* * 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 ...
43.523256
209
0.678333
606cbdca86760d3f1af236674aa29c30f2c819ab
1,114
package org.clevermonkeylabs.labchimp.model; import java.util.ArrayList; /** * Created by Thomas on 5/5/2017. */ public class ProjectArchive { private LabChimpApplicationModel applicationModel = null; private ArrayList<Project> projects = new ArrayList<>(); private Project currentProject = null; pu...
22.734694
80
0.669659
5e03e5bcc890b3e31beb65b64f1d1bc18a6e70fd
8,706
package org.hisp.dhis.common; /* * Copyright (c) 2004-2016, 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 copyrig...
38.693333
102
0.61337
744efb4fac3f56c469a2d7b79b714855d88855ca
9,766
package com.winterparadox.themovieapp.hostAndSearch; import com.winterparadox.themovieapp.arch.Navigator; import com.winterparadox.themovieapp.common.beans.Chart; import com.winterparadox.themovieapp.common.beans.Movie; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import org.mockito.Mockit...
35.256318
99
0.625947
2c7777949b228a6f247d4203ec1ab1d91a2a6ea6
1,691
package com.example.root.projecttest.activity; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatActivity; import com.example.root.projecttest.R; import com.example.root.projecttest.phote_select.ImageBean; import com....
41.243902
236
0.738025
61b5a4a729fc0e26b38ead7904429047524ed943
195
package com.cg.demo; public class StringArray { public static void main(String[] args) { String[] friendsNames = { "Sonu", "Monu", "Ponu" }; System.out.println(friendsNames[0]); } }
15
53
0.651282
d7ec0c59172d9d271f9db5fc07e8905e6f4cd59d
13,567
package org.sdmlib.test.examples.helloworld.util; import org.sdmlib.models.pattern.AttributeConstraint; import org.sdmlib.models.pattern.Pattern; import org.sdmlib.models.pattern.PatternObject; import org.sdmlib.test.examples.helloworld.Greeting; import org.sdmlib.test.examples.helloworld.GreetingMessage; import org.s...
28.323591
147
0.67502
5a65ecf1b9f52cb21b64ddab6608d72fa7884f9c
2,584
/** * Copyright (C) 2018-2020 Expedia, 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 ag...
43.79661
112
0.794505
c3bd9d9086436b42bad15bc0ffcba72ceab977de
1,165
package com.javadevjournal; import com.javadevjournal.service.CustomerService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.stereotype.Component; @Component public c...
38.833333
86
0.744206
d37d4a1026eba546ef3220143b527062c1bcbccc
212
package com.multi.thread.chapter3.section3.example5; /** * @Description * @Author dongzonglei * @Date 2018/12/17 下午6:22 */ public class Tools { public static ThreadLocalExt tl = new ThreadLocalExt(); }
17.666667
59
0.712264
7012f738c9b3ec41dab727684ef74a2f625e7166
1,187
/* This file is licensed 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/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
31.236842
74
0.74642
8e8bf67d487a6b8a24438c27f5096c2857b720b9
1,992
package id.xaxxis.mylistview; import android.content.res.TypedArray; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; import android.widget.Toast; import java.util.ArrayList; public class MainActivi...
32.655738
139
0.673193
a295c40422a60d328b10be1c7b3e0615dce6bfbe
564
package org.bukkit.craftbukkit.block.data; import org.bukkit.block.data.AnaloguePowerable; public abstract class CraftAnaloguePowerable extends CraftBlockData implements AnaloguePowerable { private static final net.minecraft.world.level.block.state.properties.BlockStateInteger POWER = getInteger("power"); @...
23.5
120
0.705674
df3f1515e29ee3ca4b26fe76c9a109e2e0a4a53a
459
package me.ste.stevesdbclient.entry.value; public class EntryValueModifier { private final EntryValueOperation operation; private final String value; public EntryValueModifier(EntryValueOperation operation, String value) { this.operation = operation; this.value = value; } public E...
24.157895
76
0.69281
83fb5a47be39e5cdf121f3ca36dc95ebe9acf297
1,800
package cz.it4i.monitor; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Random; import cz.it4i.parallel.MultipleHostParadigm; public class FakeDataGenerator implements DataGenerator{ private long fakeTime = 0; private Random rand = new Random...
36
83
0.718889
4495254abab4fa85c744443525b6de1bcf72c492
2,550
package webhook.teamcity.executor; import jetbrains.buildServer.serverSide.SBuild; import jetbrains.buildServer.serverSide.SProject; import jetbrains.buildServer.serverSide.SQueuedBuild; import webhook.WebHook; import webhook.teamcity.BuildStateEnum; import webhook.teamcity.settings.WebHookConfig; import webhook.teamc...
39.230769
143
0.815294
e506255936cd6290022af4b16e9b2902f84d9326
895
package com.shaunlu.github.lightweb.config.logging; import ch.qos.logback.classic.LoggerContext; import com.shaunlu.github.lightweb.config.property.ApplicationProperty; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.con...
25.571429
86
0.760894
0849a3ce9e17ceb48665ad6dfb813e42ce2f890e
2,294
package com.company.Goldman; import java.util.*; public class Test { public static void main(String[] args) { int[] a = new int[]{-5,1,4,-7,10,-7,0,7,3,0,-2,-5,-3,-6,4,-7,-8,0,4,9,4,1,-8,-6,-6,0,-9,5,3,-9,-5,-9,6,3,8,-10,1,-2,2,1,-9,2,-3,9,9,-10,0,-9,-2,7,0,-4,-3,1,6,-3}; // int[] a = new int[]{-5...
24.147368
170
0.458152
4dcd4bc389aab354ec92b7390578b40834427365
2,366
import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.Date; import static java.lang.Thread.sleep; public class Main { public static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); static class MyTask implemen...
29.949367
105
0.585376
cd9121bf44a2dba241e452a55ad3ae619f10110e
2,343
/* * All GTAS code is Copyright 2016, The Department of Homeland Security (DHS), U.S. Customs and Border Protection (CBP). * * Please see LICENSE.txt for details. */ package gov.gtas.model.watchlist.json; import java.io.Serializable; import java.util.LinkedList; import java.util.List; import org.apache.commons.l...
19.04878
120
0.665386
d172432cb4bb59cebde2ff1cd8a43b2da6d02a70
1,478
package com.saban.school.core.controller; import com.saban.school.core.bs.dao.DepartmentRepository; import com.saban.school.core.eis.bo.Department; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.*; @RestControlle...
42.228571
108
0.748985
083da2902cc1b9e6fed882506c99744c4d3350cb
4,604
/** * Copyright (c) 2016-present, RxJava Contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
32.422535
112
0.382711
fb82ea6b15698f78ea952e71c86ed3e3cc72541a
2,071
package io.microconfig.configs.io.components; import org.junit.jupiter.api.Test; import java.io.File; import java.util.function.Predicate; import static io.microconfig.configs.io.components.ConfigFileFilters.*; import static java.util.Collections.singleton; import static org.junit.jupiter.api.Assertions.assertFalse;...
39.826923
88
0.693868
290decf2de1f3a125411c2e49780e9e1529a35b4
1,326
// Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.commonworld.geom; import org.terasology.joml.geom.Circlef; import org.terasology.joml.geom.Rectanglef; public class CircleUtility { public static boolean intersect(Circlef cir, Rectanglef rect) { if ...
29.466667
75
0.586727
83b266c76e3fb953e748015b0ed97d829763c920
6,868
/* * Copyright 2015 Aerospike, Inc. * * Portions may be licensed to Aerospike, Inc. under one or more contributor * license agreements WHICH ARE COMPATIBLE WITH THE APACHE LICENSE, VERSION 2.0. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance wi...
29.101695
85
0.695981
4a5ceb833dd68c927bc6c7852ee5e92c44a0a8c4
440
package HackathonTest; import java.util.ArrayList; import java.util.Iterator; public class IteratorConcept { public static void main(String[] args) { ArrayList<String> arr = new ArrayList<String>(); arr.add("aaa"); arr.add("bbb"); arr.add("ccc"); arr.add("eee"); Iterator<...
22
54
0.581818
65676ac47fbf67c6ff164fdad7b1da5636fc9832
5,484
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved. package jodd.madvoc.component; import jodd.madvoc.ActionWrapper; import jodd.madvoc.BaseActionWrapperStack; import jodd.madvoc.MadvocException; import jodd.petite.meta.PetiteInject; import jodd.util.ReflectUtil; import java.util.ArrayList; import...
27.557789
98
0.673778
dbf01906e84f0e3a48d868ba75cdd52ebfab7b90
841
package cn.com.farsgiht.bluetoothdemo.UI; import cn.com.farsgiht.bluetoothdemo.R; import cn.com.farsgiht.bluetoothdemo.R.drawable; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.widget.ImageView; import android.widget.LinearLayout; public class Pa...
26.28125
56
0.78478
a2d74a799638415346a968d092c0981a90a40547
3,138
/*- * #%L * OfficeCompiler * %% * Copyright (C) 2005 - 2020 Daniel Sagenschneider * %% * 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...
36.917647
103
0.761632
ddd2932c1f647febbaf923cb1715a9d9ec0bf811
352
package com.zlbteam.service.impl; import com.zlbteam.service.ShowService; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; /** * @author zhoulibin */ @Slf4j @Service public class ShowOneImpl implements ShowService { /** * 展示信息 */ @Override public void show() { ...
16.761905
49
0.673295
3c2c46ad8741fb72fe2cf4842f7dc5790a84b2a0
5,854
package njtai.m.ui; import java.io.ByteArrayOutputStream; import java.util.Vector; import javax.microedition.lcdui.*; import javax.microedition.m3g.*; import njtai.m.NJTAIM; import njtai.models.ExtMangaObj; /** * {@link View} implementation, that uses M3G for real-time scaling. * * @author Feodor0090 */ public...
23.416
111
0.6411
644638615a142d7ba041e08345d2a65fce76869c
3,348
package com.fastaccess.cheaphlight.ui.modules.main.presenter; import android.app.Activity; import android.content.Intent; import android.support.annotation.NonNull; import android.support.design.widget.NavigationView; import android.support.v4.app.FragmentManager; import android.support.v4.view.GravityCompat; import a...
35.242105
106
0.671744
e620628b9beefe320c60ce170538e7d2cebda660
1,185
package burlap.behavior.stochasticgames.agents; import java.util.List; import java.util.Map; import burlap.debugtools.RandomFactory; import burlap.oomdp.core.states.State; import burlap.oomdp.stochasticgames.SGAgent; import burlap.oomdp.stochasticgames.agentactions.GroundedSGAgentAction; import burlap.oomdp.stochasti...
23.235294
145
0.779747
ee6eec53bdfb235d29f3b0ff812dba44eb04c327
1,253
package net.minecraft.network.play.server; import java.io.IOException; import net.minecraft.client.network.play.IClientPlayNetHandler; import net.minecraft.network.IPacket; import net.minecraft.network.PacketBuffer; import net.minecraft.util.text.ITextComponent; import net.minecraftforge.api.distmarker.Dist; import ne...
27.23913
74
0.735036
826dcb2aa5fdd5840d88fbeb4cf238e8b19dd9e6
1,250
package com.ycengine.ontimealarm.data; public class DBInfo { // TABLE 명 public final static String TABLE_ONTIME = "TABLE_ONTIME"; // TABLE 필드명 public static final String ONTIME_IDX = "ONTIME_IDX"; public static final String ONTIME_ENABLED = "ONTIME_ENABLED"; public static final String ONTIME_NAME...
50
83
0.772
313a442872eb577676242b1c30aaee486b93afe5
5,225
package com.grandstream.cast.airtunes.raop; import android.util.Log; import com.beatofthedrum.alacdecoder.AlacDecodeUtils; import com.beatofthedrum.alacdecoder.AlacFile; import com.grandstream.cast.util.Alac; import java.util.Map; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.cry...
23.858447
147
0.666603
b9e4453db54f04cb96fb64c358ba27181ef45aca
1,458
package de.ne0.sonar.plsql.plugin; import java.util.List; import org.sonar.api.Extension; import org.sonar.api.Properties; import org.sonar.api.Property; import org.sonar.api.SonarPlugin; import com.google.common.collect.ImmutableList; import de.ne0.sonar.plsql.plugin.colorizer.PlSQLColorizerFormat; import de.ne0.s...
28.038462
78
0.711934
79e5c88b4199e118484509d8d95fb5b5a05aa104
1,719
package com.cloud.server.client.common.config; /** * 企业实名鉴权状态枚举 * @author wentao.qiao * @date 2020/04/30. */ public enum AuthStatusEntEnum { /** * 认证成功 */ SUCCESS(0,"SUCCESS","认证成功"), PROCESSING(1,"PROCESSING","认证中,尚未得到结果"), FAILURE(2,"FAILURE","认证失败"), NOT_AUTH(3,"NOT_AUTH","未认证(不...
22.038462
64
0.57708
b9a57d8c806f0b6a98b8172c1bc9d19bb776f77e
5,577
/* * Copyright 2018-2021, ranke (213539@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 applicable...
43.232558
131
0.731755
2bd3b1798c43212bc8645a7ce7524747d7951f04
3,810
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import static java.nio.charset.StandardCharsets.UTF_8; import...
35.607477
83
0.632021
c9afd1b7b6dc4b055d63bfb10f07353bdd71b853
982
package org.runestar.cache.content.config; import org.runestar.cache.content.io.Input; public final class FloorOverlayType extends ConfigType { public static final int GROUP = 4; public boolean _o = true; public int rgb = 0; public int rgb2 = -1; public int texture = -1; @Override protec...
22.837209
56
0.403259
c8386ff225d3abe05a9edb2f7697d8205bb058ba
29,952
/* * XMLQuery.java * Copyright 2020 PDF Association, Inc. https://www.pdfa.org * * This material is based upon work supported by the Defense Advanced * Research Projects Agency (DARPA) under Contract No. HR001119C0079. * Any opinions, findings and conclusions or recommendations expressed * in this material are t...
44.439169
132
0.508113
82ef85582a2928483a620875313f35ea572af6bd
2,674
package com.nerdherd.lib.drivetrain.auto; import com.nerdherd.lib.drivetrain.singlespeed.AbstractDrivetrain; import com.nerdherd.lib.misc.NerdyMath; import edu.wpi.first.wpilibj2.command.CommandBase; /** * Drive to an XY point using a rotational PID and an optional straight PID */ public class DriveToXY extends C...
31.093023
145
0.715782
dffdd03f72b095448ec6933540db73a0efd2b612
3,242
/** * */ package com.hpe.calEStore.model; import java.util.ArrayList; import java.util.Date; import java.util.List; import com.fasterxml.jackson.annotation.JsonIgnore; /** * @author sangaras * */ public class ProductDM { /** * */ public ProductDM() { // TODO Auto-generated constructor stub } publi...
18.316384
68
0.744602
2f314d3f8deddb807d22ac39cbac89a5626f0449
1,389
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 用户引导配置 * * @author auto create * @since 1.0, 2021-05-09 19:19:49 */ public class CustomerGuide exten...
19.842857
82
0.714183
de51d070949f4f75ef97e6789761fc7fe5e3ad25
2,614
package com.qlzw.smartwc.provider; import com.qlzw.smartwc.utils.Pager; import com.qlzw.smartwc.model.Province; import java.util.Map; public class ProvinceProvider { public String selectAll(Map<String, Object> parm) { return "select id,code,name,create_at,update_at,delete_at from province limi...
27.229167
106
0.481637
8818ddfe72bc487b36ad7c659dfd5580463f02e3
2,157
package com.louis.util; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.nio.charset.StandardCharsets; import java.util.Enumeration; import java.util.List; import java.util.logging.Logger; /** * @author Louis */ public class EnhancedServic...
35.95
113
0.496987
6cd87a66b7486c7430418295719d0e2d6f76aad8
3,562
/* * Copyright 2014 Tagbangers, 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 agree...
42.404762
131
0.805727
594e58f4d12d93a9d635bfe54987d4bb13ba32b8
1,020
package br.com.tiagohs.popmovies.ui.adapters; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import br.com.tiagohs.popmovies.ui.view.fragment.PerfilEstatisticasFragment; import br.com.tiagohs.popmovies.ui.view.fragment.PerfilF...
29.142857
76
0.696078
c4e51ca51327673edb7dc412d944ab26a7c04397
2,509
package rr.snowhack.snow.gui.rgui.render; import java.lang.reflect.ParameterizedType; import rr.snowhack.snow.gui.rgui.component.Component; import rr.snowhack.snow.gui.rgui.component.container.Container; import rr.snowhack.snow.gui.rgui.render.font.FontRenderer; public abstract class AbstractComponentUI<T extends Com...
43.258621
221
0.780789
9f06d601ac848e07da6c4fdfd3c7713cd766d7dd
1,650
/* * apigen-maintenance * * Copyright (c) 2021 Synopsys, Inc. * * Use subject to the terms and conditions of the Synopsys End User Software License and Maintenance Agreement. All rights reserved worldwide. */ package com.synopsys.integrations.apigen.maintenance; import java.io.IOException; import com.synopsys.i...
48.529412
161
0.785455
952bc19e655549fecf05d7ffe2bfca3d9b9ae131
619
package com.gateway.server.config; /** * TODO * create by Lyon.Cao in 2021/02/28 21:58 **/ public class Route { private int id; private String description; private String topic; public int getId() { return id; } public void setId(int id) { this.id = id; } public...
17.194444
52
0.591276
875b26aabd04ac17bffe07e8b76835e8f3b58be2
269
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner input = new Scanner(System.in); int fruit = input.nextInt(); //your code goes here System.out.println( (fruit/2)/3); } }
19.214286
47
0.587361
d18f2e7910219b0478cc41f7cac9a9e99ee0d8f8
92
package nz.strydom.gross.domain; public class ProductStoreLocation { // TODO }
11.5
36
0.673913
c95a46c9b49cbdadc7fcec9fcc9913eaafad1706
2,540
package com.free.fs.common.config; import com.baomidou.mybatisplus.core.parser.ISqlParserFilter; import com.baomidou.mybatisplus.core.parser.SqlParserHelper; import com.baomidou.mybatisplus.extension.plugins.tenant.TenantHandler; import com.free.fs.common.constant.CommonConstant; import com.free.fs.common.properties.F...
30.60241
81
0.634646
fdd621fce523afe30afa12bc4b825657e4604850
157
package concurrent; /** * @author zhangxuepei * @since 3.0 */ public class TestForJoinThreadPoll { public static void main(String[] args) { } }
13.083333
44
0.656051
e6e92a8f7641c2f2fed2b9391ae7fc4a46a6e142
405
package com.mshams.cs.algorithms.sorting; import com.mshams.cs.utils.StdArray; public class Selection { public static void sort(Comparable[] array) { for (int i = 0; i < array.length; i++) { int min = i; for (int j = i + 1; j < array.length; j++) { if (StdArray.less(array[j], array[min])) { ...
22.5
50
0.550617
44a3ad88838e3eac055477156f1d2459235ae6d3
1,443
package org.tensorflow.demo; import android.content.Context; /** * Created by sabih on 16-Jul-17. */ public class CommentsHelper { private static Context mContext; public static String TEXT_STAGE = "Lorem ipsum lorem ipsum \\n \\n Lorem ipsum lorem ipsum \\n \\n Lorem Lorem"; public static String g...
25.315789
116
0.632017
55767f215381fbb089ffa05e63a6ce15455c4b2c
4,025
/* * Copyright 2019 Orient Securities Co., Ltd. * Copyright 2019 BoCloud 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 * * Unle...
30.725191
97
0.721988
d118c936949b96422b390c198e97bfb9498d481e
3,152
/*- * #%L * anchor-plugin-image * %% * Copyright (C) 2010 - 2020 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche * %% * 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 ...
40.935065
96
0.713832
810ccb4ecfd6ae0e458d3ff5bf3e9ae7f89baa85
6,878
package org.folio.rest.impl; import static javax.ws.rs.core.HttpHeaders.CONTENT_TYPE; import static javax.ws.rs.core.HttpHeaders.LOCATION; import static javax.ws.rs.core.MediaType.APPLICATION_JSON; import static javax.ws.rs.core.Response.Status.CREATED; import static javax.ws.rs.core.Response.Status.INTERNAL_SERVER_ER...
35.453608
156
0.734661