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
31e0be79ac9563843f330e9204931d80fda951b5
1,646
/* * 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 ...
35.021277
95
0.763062
a992745fb57a81f29195bea3c93ec9c90288e2de
1,360
package it.overzoom.postway.model; import java.util.ArrayList; import java.util.List; public class SubmitResponse { private Boolean ok; private Request request; private List<Bad> bad = new ArrayList<>(); public Boolean getOk() { return ok; } public void setOk(Boolean ok) { th...
17.662338
52
0.600735
47d510ee78efd3bb5392df8db92936c063676f81
263
package cn.jeeweb.bbs.modules.sys.mapper; import cn.jeeweb.bbs.modules.sys.entity.UserRole; import com.baomidou.mybatisplus.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; @Mapper public interface UserRoleMapper extends BaseMapper<UserRole> { }
26.3
62
0.825095
f4fc1967d2254f5fd88a5789faf191acdc99b21c
5,724
package ch.nblotti.brasidas.exchange.firmhighlights; import com.jayway.jsonpath.DocumentContext; import com.jayway.jsonpath.JsonPath; import lombok.extern.slf4j.Slf4j; import net.minidev.json.JSONObject; import org.modelmapper.AbstractConverter; import org.modelmapper.Converter; import org.modelmapper.ModelMapper; imp...
42.716418
129
0.773585
82a64907c54defb35a73e7625d2e77ca936f7a27
553
package com.coreoz.plume.db.transaction; import javax.inject.Inject; import javax.inject.Provider; import javax.inject.Singleton; import javax.sql.DataSource; /** * Expose a {@link DataSource} Object through dependency injection. */ @Singleton public class DataSourceProvider implements Provider<DataSource> { priv...
20.481481
67
0.78481
7c46948b263bc560f999f9a9d2019d64e568f0e2
28,169
package okhttp3.internal.http2; import java.io.EOFException; import java.io.IOException; import java.io.InterruptedIOException; import java.net.SocketTimeoutException; import java.util.ArrayList; import java.util.List; import p362h.C14179A; import p362h.C14180B; import p362h.C14182D; import p362h.C14186c; import p362h...
41.608567
157
0.539174
118879e24ec8273a5ecda989bb67ea5e532e2f14
11,158
/* * 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 ...
38.081911
143
0.641513
b445d1d528f4b8bc002125aae4336f3e1955c2c8
2,191
package uk.codenest.mongofly.reader; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.charset.Charset; import java.util.regex.Pattern; import java.util.stream.Collectors; import lombok.extern.slf4j.Slf4j; import org.springframewor...
37.135593
155
0.658147
b5757bbe0c91647ccf6f5fdbce2762c6a06a443d
1,571
import kotlin.Unit; import kotlin.coroutines.Continuation; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.io.IOException; public class J { public static void main(String[] args) { String s = new TestRet().test(); // should report deprecation var ...
22.442857
84
0.501591
ff237ea064ed23c032cf4c00d33ed938344eed8f
3,939
/* * Copyright (c) 2016, Stein Eldar Johnsen * * 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 L...
29.395522
91
0.605737
50440e2ad1631e4a8d12bf844da7e268c640edaa
2,484
package org.ncic.bioinfo.sparkseq.algorithms.walker.haplotypecaller.readthreading; import org.ncic.bioinfo.sparkseq.algorithms.utils.Utils; import org.ncic.bioinfo.sparkseq.algorithms.walker.haplotypecaller.graphs.DeBruijnVertex; import java.util.LinkedList; import java.util.List; import java.util.concurrent.atomic.A...
31.05
132
0.682367
dc0b94bc35c19712052db52eb90053abe9f3f7e2
4,712
/* * File: FileSerializationHandlerTestHarness.java * Authors: Justin Basilico * Company: Sandia National Laboratories * Project: Cognitive Foundry * * Copyright October 16, 2009, Sandia Corporation. * Under the terms of Contract DE-AC04-94AL85000, there is a n...
28.557576
79
0.6059
3c20ee8b649733c7f77ce687cfdc1425078cb8bd
1,501
package mideum._29; /** * @author zly * * Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. * * Return the quotient after dividing dividend by divisor. * * The integer division should truncate toward zero. * * Example 1: * * Input: dividend...
25.440678
134
0.622918
82e46093f0bc1e65d3a7a6b8339ef44d8e7085f4
7,253
/* * Copyright 2022 S. Webber * * 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...
26.089928
133
0.625948
70bc91a4b61dd6ca227b9204d9f896f3b9946005
3,128
package org.ihtsdo.otf.traceabilityservice.rest; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.ihtsdo.otf.traceabilityservice.migration.V2MigrationTool; import org.ihtsdo.otf.traceabilityservice.migration.V3Point1MigrationTool; import org.ihtsdo.otf.traceabilityservice.migra...
36.8
151
0.804348
615165318503bca09ab95d6ffa3ce5fe987c9d9a
2,252
package com.fasterxml.jackson.databind.introspect; import com.fasterxml.jackson.databind.BaseMapTest; import com.fasterxml.jackson.databind.MapperFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException; public class TestInferredMutators exte...
32.637681
83
0.58659
4b350cfe5ea31ceb4da7c077318906e028c0ce3c
3,865
package com.backusnaurparser.parser; import java.util.*; import com.backusnaurparser.helper.LanguageParseException; /** * SyntaxTree node that stores either subobjects or if it's a terminal node * (leaf) it stores a terminal String * * @author Dominik Horn * */ public class NonTerminal { /** All Subobjects i...
24.462025
110
0.677878
07287ea3d5a86ce51c7833cb6cc0569ee410826e
2,478
package csc445.missouriwestern.edu.jaunt.extensions.ui; import android.content.Context; import android.graphics.Typeface; import android.support.design.widget.TabLayout; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; import android.support.v7.widget.AppCompatTextView; import and...
32.181818
119
0.658596
5309014bca9df3f6ae7c1089801aa3201a8419ec
324
package com.brand.blockus.content; import com.brand.blockus.blocks.CirclePavementBlock; public class PrismarineRelated { public static CirclePavementBlock PRISMARINE_CIRCLE_PAVEMENT; public static void init() { PRISMARINE_CIRCLE_PAVEMENT = new CirclePavementBlock("prismarine_circle_pavement", 1.5f, 1.2f); ...
21.6
96
0.802469
b2bb38a344c9669361238a8b4885b4ecb3054d3a
4,573
//package com.boot.mybatis.datascope; // //import cn.hutool.log.StaticLog; //import com.baomidou.mybatisplus.extension.plugins.handler.DataPermissionHandler; //import com.boot.admin.common.pojo.DataScope; //import com.boot.admin.common.util.StrUtil; //import com.boot.admin.core.util.SecurityUtils; //import lombok.Sneak...
49.172043
153
0.614914
2edcca8e56e678024b1d661d27300f8f87b1b572
4,133
/** * Copyright (c) 2012, University of Konstanz, Distributed Systems Group All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * Redistributions of source code must retain the above copyright noti...
43.505263
168
0.563513
3227ddcc450f08fc1d9b21b6c4d9bb0d5b7ed703
604
package de.diedavids.jmix.wizard.example.entity; import io.jmix.core.metamodel.datatype.impl.EnumClass; import javax.annotation.Nullable; public enum Salutation implements EnumClass<String> { MR("MR"), MRS("MRS"); private String id; Salutation(String value) { this.id = value; } p...
18.875
54
0.584437
517be131844dacba6b645c4c8ca68c54c4e755d1
73,474
package gms.shared.utilities.geotess.util.numerical.matrixblock; import static gms.shared.utilities.geotess.util.globals.Globals.NL; import gms.shared.utilities.geotess.util.filebuffer.FileInputBuffer; import gms.shared.utilities.geotess.util.filebuffer.FileOutputBuffer; import gms.shared.utilities.geotess.util.global...
36.995972
119
0.616245
9c334fa3b4c9fa6e04ed045d966df1192b805f2c
5,479
package net.minecraft.client.renderer.entity; import net.minecraft.entity.item.*; import java.util.*; import net.minecraft.client.resources.model.*; import net.minecraft.client.renderer.block.model.*; import net.minecraft.client.renderer.*; import net.minecraft.item.*; import net.minecraft.util.*; import net.minecraft...
44.185484
190
0.619274
c4761fb00e46a8b38e250ff854eaed68950eb85e
154
package top.jacktgq.tank.entity; /** * @Author CandyWall * @Date 2021/1/24--11:11 * @Description 坦克阵营:我方,敌方 */ public enum Group { SELF, ENEMY }
14
32
0.649351
2de1d3a70c45b23c59bb6a19ac917e454f93fa00
1,671
/* * Copyright (c) 2022 AVI-SPL, Inc. All Rights Reserved. */ package com.avispl.symphony.dal.avdevices.encoderdecoder.haivision.x4decoder.common.decoder.controllingmetric; import java.util.Arrays; import java.util.Optional; /** * Set of decoder state option * * @author Harry / Symphony Dev Team<br> * Created o...
21.423077
110
0.668462
2e632298fa5a706f3dd2936f8e484f5626bf9ab5
1,751
package org.sagebionetworks.repo.web.service.metadata; import org.sagebionetworks.repo.manager.table.MaterializedViewManager; import org.sagebionetworks.repo.model.DatastoreException; import org.sagebionetworks.repo.model.InvalidModelException; import org.sagebionetworks.repo.model.UnauthorizedException; import org.sa...
39.795455
184
0.836665
e1dcad7af8c65bf8cb44b13fe62f6cc105183bd4
182
package com.example.demonavigationview.main.presenter; /** * Created by Administrator on 2017/8/22 0022. */ public interface MainPresenter { void switchNavigation(int id); }
18.2
54
0.747253
a7dee8e23fff702d03c4d2d6470fcde3780b6f65
3,501
/******************************************************************************* * Copyright (c) 2000, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
28.008
148
0.643816
98fd580d1e5d76d56f1e11f1bb0611b6326e0114
2,378
package com.aibibang.web.generator.entity; import java.io.Serializable; import com.aibibang.common.base.BaseEntity; public class CgDataSource extends BaseEntity implements Serializable { private static final long serialVersionUID = 1L; private String description; private String databaseType; priva...
24.770833
96
0.68545
17da6c7a749c7b7641ec1fa0e836bc0391f5fe6a
602
package threadpool.stop; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; /** * This example demonstrate the right way to stop a thread pool. */ public class Main { public static void main(String[] args) throws InterruptedException { ...
28.666667
73
0.677741
68a3904050cfe361cc1eeb0a946212dcd3ff0ebf
3,014
/** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.thinkgem.jeesite.modules.witcm.business.entity; import com.thinkgem.jeesite.modules.witcm.resident.entity.Resident; import org.hibernate.validator.constraints.Length; import com.thinkgem.jee...
20.786207
108
0.709025
88f21af81289003a7254cfcee275daee7d3c7095
2,605
package com.platform.xss; import jline.internal.Log; import org.apache.commons.lang.StringUtils; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Arrays; import java.util.HashSet; import java.util.Set; /*...
35.202703
179
0.65144
d3ee71518096c38b39af025703bfb136cb541ddc
337
package com.mana_wars.presentation.view; import com.mana_wars.model.entity.skills.Skill; import com.mana_wars.model.entity.ShopSkill; public interface ShopView extends BaseView { void openSkillCaseWindow(Skill skill); void setSkillCasesNumber(int number); void setPurchasableSkills(Iterable<? extends ShopS...
30.636364
68
0.801187
d1cce089f6858020c144a210a5ffb3b8eb6dec42
5,306
/* Copyright 2014 Sven van der Meer <vdmeer.sven@mykolab.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 ...
28.526882
132
0.650584
4c1f4a23e5c199cf305f5a9a13be1d4aa178c628
12,384
/* * Copyright (C) 2006 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...
37.189189
265
0.644622
55592bb86529a7858a6f9016d48e7b713255c3a1
8,179
/* * Copyright 2019 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...
42.598958
103
0.69654
ce3a4e17e8e3085f23cd033c5f344e044848d8ef
710
package practice.klotskiBlockThing; public class ShapeCatalog { public static boolean UNIT[][] = new boolean[][] {{true}}; public static boolean I[][] = new boolean[][] {{true}, {true}}; public static boolean DASH[][] = new boolean[][] {{true, true}}; public static boolean BOX[][] = new boolean[][] {{true, true...
33.809524
80
0.623944
2bb7217a9b22eef81c4ee5704e474670a0d5f2e3
23,503
/** * Copyright (c) 2019,2020 honintech * * 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, modify, merge, publish, di...
26.587104
463
0.66783
87243afb2166a9d44d7b2254fa5f8bc3d773179c
1,051
package core.game; import java.util.HashMap; import core.content.GameContent; import core.content.ParameterContent; /** * Created by dperez on 21/01/2017. */ public class GameSpace extends BasicGame { /** * Default constructor for a basic game. * * @param content Contains parameters for the gam...
22.361702
62
0.627022
fc57ba36b7d0c162e215b1a2de539e168073e1ad
4,349
package com.example.smartphonetovirtuality; import androidx.annotation.RequiresApi; import androidx.appcompat.app.AppCompatActivity; import android.annotation.SuppressLint; import android.app.AlertDialog; import android.content.Intent; import android.content.pm.PackageManager; import android.hardware.Sensor; import a...
40.268519
153
0.650264
26762edcf1642a05bc0b7dea76e2ea8decec7a51
105
package graph; public interface GraphTraverse<T> { int size(); T popItem(); void pushItem(T item); }
13.125
35
0.695238
69bd5dea6f67d378745f9694c5e239970b583a73
3,032
package serviceImp; import java.util.ArrayList; import java.util.List; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import domain.Exam; import domain.User; import enumeration.Role; import mapper.UserMapper;...
27.315315
90
0.659301
a7310d7f2365c751775232660fa7e73186c8703b
4,045
package org.actech.smart.trader.sync.stock.parser; import com.gargoylesoftware.htmlunit.*; import com.gargoylesoftware.htmlunit.html.HTMLParser; import com.gargoylesoftware.htmlunit.html.HtmlPage; import org.actech.smart.trader.Application; import org.actech.smart.test.configuration.UnitTestConfiguration; import org.a...
41.27551
127
0.742645
2257884276f10a95bb902c9151d112804432e46b
3,059
package nl.vu.cs.amstel.msg; import java.io.ByteArrayInputStream; import java.io.DataInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.log4j.Logger; import nl.vu.cs.amstel.graph.VertexFactory; import nl.vu.cs.amstel.graph.VertexState; import nl.vu.cs.amstel...
28.324074
76
0.725727
84187d3a639a26e5da4c1a991545dd19c4d6e355
11,878
package twg2.collections.dataStructures; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.ConcurrentModificationException; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java....
25.006316
112
0.682017
5652b3d2780c4449745638bb19a3448527c4be2f
1,975
package si.isystem.ui.utils; import static org.junit.Assert.assertEquals; import org.junit.Before; import org.junit.Test; import si.isystem.connect.connectJNI; public class ExceptionsTest { @Before public void setUp() throws Exception { loadLibrary(); } public final s...
30.859375
108
0.546835
2a8b202412191c3f8612615860556fcbc882f197
10,204
package com.hoddmimes.gpgui; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.io.File; import java.io.IOExce...
34.12709
156
0.724912
04d38b8fcf572fa576bbf1cd0e7e4d93f51886e6
1,435
package it.com.atlassian.plugin.connect.plugin; import com.atlassian.plugin.ModuleDescriptor; import com.atlassian.plugin.PluginAccessor; import com.atlassian.plugin.connect.api.util.ConnectPluginInfo; import com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner; import org.junit.Test; import org.junit.runner.Run...
36.794872
111
0.713589
fd98f9e1f35964038962a080f96d1e07cc79e111
1,855
package ru.job4j.total.input; import javafx.util.Pair; import java.util.List; import java.util.Scanner; /** * Класс, реализующий ввод пользователя с консоли * @author Nikolay Meleshkin (sol.of.f@mail.ru) * @version 0.1 */ public class ConsoleInput implements Input, UserInput { private final Scanner scanner;...
29.444444
88
0.521294
170a79fed22616a59ad138b3215823c6817d3d2f
2,136
package rocks.bottery.connector.stride.api; import java.io.Serializable; import java.util.HashMap; import java.util.Map; import javax.xml.bind.annotation.XmlRootElement; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotat...
21.36
82
0.729869
08332919202cfbfd4d70e9d0e0ee73f2b1502a3f
2,662
package org.enricogiurin.codingchallenges.hackerrank.ipkit; import org.junit.Test; import java.util.Arrays; import java.util.stream.LongStream; import static org.assertj.core.api.Assertions.assertThat; public class DecibinaryNumbersTest { @Test public void decibinaryNumbers() { assertThat(Decibinar...
46.701754
678
0.670173
0228668aa52e9f52e9c5b2f3b1783cb055f11e1a
2,243
package Lazerz; import com.qualcomm.robotcore.eventloop.opmode.Autonomous; import com.qualcomm.robotcore.eventloop.opmode.Disabled; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.DcMotorSimple; import com.qualcomm.robot...
28.0375
91
0.669639
2d3aae68ab5d306297d5d90df24dc80d4b34791e
1,732
package practicaltest01.eim.systems.cs.pub.ro.practicaltest01; import android.app.Service; import android.content.Intent; import android.os.IBinder; import java.util.Calendar; public class PracticalTest01Service extends Service { public static final String PRACTICALTEST01_EIM_SYSTEMS_CS_PUB_RO_PRACTICALTEST0_IN...
23.726027
190
0.646651
91999cfbfdcc723788899586957f90da51c62fe9
2,598
package com.threelambda.btsniffer.bt; import lombok.Data; import org.joda.time.DateTime; import java.util.LinkedList; import java.util.List; import java.util.Optional; import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; /** * Created by ym on 2019-04-28 */ @Data public class KBucket { pr...
24.280374
63
0.571978
8170a9f7edbe806d5dedb5bb65c24b925aa297ce
2,493
/* * This file is part of adventure, licensed under the MIT License. * * Copyright (c) 2017-2021 KyoriPowered * * 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, inc...
32.376623
87
0.717208
8b9334b95b41cc5e6e063d170022ef42e98aa928
4,630
package com.demon.baseui.keyboard; import android.content.Context; import android.inputmethodservice.Keyboard; import android.inputmethodservice.KeyboardView; import android.text.Editable; import android.view.View; import android.view.inputmethod.InputMethodManager; import android.widget.EditText; import com.demon.ba...
29.490446
109
0.569546
debfcba06f0c3ac3a7ebc24ebe126b8162eba1a6
4,103
package old.Structures; import java.util.LinkedList; import java.util.Queue; public class BinaryTreeDemo { public static void main(String[] args) { // TODO Auto-generated method stub int[] arr = {20, 15, 6, 18, 3, 1, 9, 33, 30, 36}; BinaryTree bst = new BinaryTree(); for (int i :...
26.993421
83
0.429442
c74dd61a7f08e6b10cc02220543cefff854d219c
3,179
/* * Copyright 2010-2013 Ning, Inc. * * Ning licenses this file to you under the Apache License, version 2.0 * (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
38.768293
148
0.716892
c4f887585c65b87992452d39ee76e539c171414d
310
package com.example.mongodbstudy.dao; import com.example.mongodbstudy.model.ProductComment; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.stereotype.Repository; @Repository public interface ProductCommentDao extends MongoRepository<ProductComment,String> { }
31
83
0.86129
f11405f25d599c248978042c520bd9022f312bc1
226
package newsapp.xtapp.com.staggeredpic.config; import com.bumptech.glide.annotation.GlideModule; import com.bumptech.glide.module.AppGlideModule; /** */ @GlideModule public class PICGlideModule extends AppGlideModule { }
17.384615
52
0.80531
6063561df1311bb4b91fac4784df85ff2e4c0b58
3,404
package org.broadinstitute.consent.http; import org.broadinstitute.consent.http.models.grammar.Everything; import org.broadinstitute.consent.http.models.grammar.Not; import org.broadinstitute.consent.http.models.grammar.Nothing; import org.broadinstitute.consent.http.models.grammar.And; import org.broadinstitute.conse...
44.789474
172
0.661868
5d922a3305676f7b6cfa5d90e356fd7340f562c1
272
package com.android.slangify.application_logic.interfaces; /** * Created by avishai on 5/27/2017. */ public interface CaptureManagerInterface { void onSurfaceCreated(); void startCapturing(CaptureVideoListener captureVideoListener); void release(); }
16
67
0.75
1d1df338ce024606cd9572bf8c6b2a9bb82fb1b1
2,045
package top.chenqwwq.leetcode.archive.$20200418.by_topics.dynamic_programming; /** * 304. 二维区域和检索 - 矩阵不可变 * <p> * 给定一个二维矩阵,计算其子矩形范围内元素的总和,该子矩阵的左上角为 (row1, col1) ,右下角为 (row2, col2)。 * <p> * Range Sum Query 2D * 上图子矩阵左上角 (row1, col1) = (2, 1) ,右下角(row2, col2) = (4, 3),该子矩形内元素的总和为 8。 * <p> * 示例: * <p> * 给定 matr...
28.013699
142
0.470416
68a0e5b1ab56b28141e6017f1a8692afbd079686
646
package answers.recursion.task5; /** * TODO complete lore * * Task: * Implement method that checks if n is a power of 2. * Print "YES" if it is. * Print "NO if isn't. * Use recursion! * * Example: * n == 10. result: NO. * n = 64. result: YES. (2*2*2*2*2*2 == 64) */ public class Solution { public static...
20.1875
53
0.544892
77faa77a352a54e1c7fa0c1e05e9fcafa399386f
14,581
package com.commercetools.sync.integration.services.impl; import static com.commercetools.sync.integration.commons.utils.CustomObjectITUtils.createCustomObject; import static com.commercetools.sync.integration.commons.utils.CustomObjectITUtils.deleteCustomObject; import static com.commercetools.sync.integration.common...
43.786787
109
0.714766
2eab60580655b444c194b67feb587005a4e02385
29,669
/** * Copyright (c) 2007-2014 Kaazing Corporation. All rights reserved. * * 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...
41.092798
129
0.58637
f5847a71d8b9f7aa844fa1d0a40f8ccc0fee9760
387
package de.unistuttgart.ims.coref.annotator.document; import de.unistuttgart.ims.coref.annotator.document.op.Operation; public abstract class AbstractEditOperation implements Operation { boolean run = false; public void run(CoreferenceModel model) { run = true; perform(model); } abstract void perform(Corefe...
19.35
66
0.764858
2689c6dd1366dba58dc6ef9c558d39ead0a1ff7a
1,039
package com.bysj.web.controller.mobile.service; import com.bysj.web.controller.mobile.domain.TMobile; import java.util.List; /** * 手机终端Service接口 * * @author bysj * @date 2020-03-17 */ public interface ITMobileService { /** * 查询手机终端 * * @param id 手机终端ID * @return 手机终端 */ publi...
16.492063
60
0.563041
60e7b5c1cc162a3e2248adb099a9631aa9970a14
5,963
package com.epam.pizza_delivery.dao.impl; import com.epam.pizza_delivery.connection.ConnectionPool; import com.epam.pizza_delivery.dao.interfaces.OrderDAO; import com.epam.pizza_delivery.entity.Order; import org.apache.log4j.Logger; import java.sql.*; import java.time.temporal.ChronoUnit; import java.util.ArrayList; i...
43.845588
176
0.664934
2d348e0cb29ba7b9c9e80264755e3eaa3469e880
2,041
package org.nuxeo.labs.threed.obj; import java.io.File; import java.io.Serializable; import javax.inject.Inject; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.nuxeo.ecm.automation.AutomationService; import org.nuxeo.ecm.automation.OperationChain; import org.nuxeo.ecm.aut...
35.807018
117
0.745223
0f3334c9322b32d5a0dffc73aa6504a38005f4f8
9,095
package cn.jpush.android.util; import android.content.Context; import android.os.Handler; import android.os.Looper; import cn.jpush.android.a; import java.util.ArrayList; import java.util.Iterator; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import org.json.JSONArray; import org...
26.988131
122
0.442441
a69f39728c4d8f4c5e45c648c0862f248f486532
1,102
package eatyourbeets.cards.animator.special; import com.megacrit.cardcrawl.characters.AbstractPlayer; import com.megacrit.cardcrawl.monsters.AbstractMonster; import com.megacrit.cardcrawl.orbs.Lightning; import eatyourbeets.cards.base.AnimatorCard; import eatyourbeets.cards.base.EYBCardData; import eatyourbeets.cards....
29.783784
108
0.729583
7f7ad2c229aa56c228a50d67f718f332d9094d36
4,382
/* Copyright (c) 2019, Michael von Rueden, H-DA 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...
34.777778
118
0.629393
23aef2e3659e7b476357a9a7ebe456018d4b7463
5,957
package com.liferay.headless.test.client.pagination; import com.liferay.headless.test.client.aggregation.Facet; import com.liferay.headless.test.client.json.BaseJSONParser; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util...
21.124113
69
0.646298
5d98f981ea589f44029dd302748c2c3ea7355123
4,283
/******************************************************************************* * ============LICENSE_START======================================================= * org.onap.dmaap * ================================================================================ * Copyright © 2017 AT&T Intellectual Property. A...
34.540323
103
0.655382
8e3617139dfd08c30d92754f0c9238ee6a1af45f
1,194
package org.kogu.practice.timing; public final class ThreadLocalTimer<T extends Enum<T>> implements Timer<T>{ private static final String alreadyUnset = "No `Timer` stored in ThreadLocal - has it already been `unset`?"; private final ThreadLocal<Timer<T>> tl; private ThreadLocalTimer(Class<T> clazz) { tl =...
20.586207
111
0.654941
3ed6a9613ffda575479d9bfa354263edc6feae39
6,722
package test; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.io.IOException; import java.net.URI; import java.util.HashSet; import java.util.Properties; import java.util.Set; import org.junit.Test; import ...
36.532609
111
0.699792
1bada6b519d77821a0d8c0834817ea1dc181a6b9
133
package com.bumptech.glide; public interface ListPreloader$PreloadSizeProvider<T> { int[] getPreloadSize(T t, int i, int i2); }
22.166667
55
0.744361
e24ad3183e0772ed971fbb5ae415b5e69f7fd1fd
3,802
/* * This file is auto-generated. DO NOT MODIFY. * Original file: E:\\devwork\\AndroidGCSPractice\\ClientLib\\src\\main\\java\\com\\o3dr\\services\\android\\lib\\model\\IObserver.aidl */ package com.o3dr.services.android.lib.model; /** * Asynchronous notification on change of vehicle state is available by registeri...
31.683333
160
0.774329
2bbb90a11b9fac84ccd6b517dbb04e853094f680
77
package plugins.testDataAndFunction.params; public class NullParameter { }
12.833333
43
0.818182
b579e05674a791ae5bd5fbb1951ed8ead1a1b8fc
1,078
package olog.dev.leeto.location; import android.location.Address; import android.location.Location; public class LocationModel { private final String name; private final String latitude; private final String longitude; private final String address; public LocationModel(Location location, Address...
25.069767
90
0.658627
6fcd0deb0b08fc355ed5020524e5059fd9db7168
8,911
/* * Copyright (C) 2013 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...
43.468293
99
0.734598
a84524481c318f2309eca8e39f0fec14a803b674
618
package org.devgateway.toolkit.forms.wicket.page.user; import org.apache.wicket.validation.validator.PatternValidator; /** * @author Octavian Ciubotaru */ public class PasswordPatternValidator extends PatternValidator { // 1 digit, 1 lower, 1 upper, 1 symbol "@#$%", from 6 to 20 // private static final Str...
30.9
84
0.631068
f475a0c579f38f5c204cf8bb320afc4a8e5a6880
2,646
/* * Copyright 2020 Hippo * * 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 wri...
23.210526
77
0.633787
2aeae30a0f4e1530e414dbbbc7d143cd2f3c5f29
7,093
package com.haoxt.agent.activity.home.transaction; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater...
32.536697
170
0.612858
fb13f117344d4ad97cb48bfe01638a1c21fa60d1
6,602
package speiger.src.collections.impl.fastutil; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.infra.Blackhole; import it.unimi.dsi.fastutil.doubles.DoubleIterator; import it.unimi.dsi.fastutil.ints.Int2DoubleAVLTreeMap; import it.unimi.dsi.fastutil.ints.Int2DoubleArrayMap; import it.unimi.dsi.fa...
25.992126
107
0.725841
c162d22ecd0e3f9482d6de33d83903eed907cccb
1,283
/** * Copyright (c) Lambda Innovation, 2013-2016 * This file is part of LambdaLib modding library. * https://github.com/LambdaInnovation/LambdaLib * Licensed under MIT, see project root for more information. */ package cn.lambdalib.util.client.auxgui; import java.lang.annotation.ElementType; import java.lang.annotatio...
28.511111
92
0.759938
ef634c8f8a21cd67ab20b9690a462785535a6aa1
551
package com.ibeetl.dao.beetlsql.entity; import java.io.Serializable; import org.beetl.sql.core.TailBean; import org.beetl.sql.core.annotatoin.AssignID; import org.beetl.sql.core.annotatoin.Table; @Table(name="sys_user") public class BeetlSqlUser extends TailBean implements Serializable{ @AssignID private Integer i...
19.678571
68
0.735027
0235de35301fdf3a9e2715265f4ff1c4037e9725
2,106
package zztest; import com.icexxx.util.IceConfigUtil; public class ConfigTest {//指定 /** * 不带斜线打成jar后先从里面找,找不到里面的再去外面找。都没有找到则报错 * @param args */ public static void main(String[] args) { System.out.println(IceConfigUtil.getString("abc.properties", "name")); System.out.println(IceConf...
45.782609
73
0.688034
87e28e1906e656dcb1762691cbea1cd204ca1a23
636
package msf.fc.db.dao.slices; import org.hibernate.Criteria; import org.hibernate.criterion.Restrictions; import msf.fc.common.data.FcSliceId; import msf.fc.db.dao.FcAbstractCommonDao; import msf.mfcfc.common.exception.MsfException; import msf.mfcfc.db.SessionWrapper; public class FcSliceIdDao extends FcAbstractCom...
28.909091
88
0.789308
e95483644d702b5de760d1b01bacbc8f93b981bd
3,793
package ru.sbtqa.tag.stepdefs.en; import cucumber.api.java.After; import cucumber.api.java.Before; import cucumber.api.java.en.And; import cucumber.api.java.en.When; import ru.sbtqa.tag.pagefactory.exceptions.PageInitializationException; import ru.sbtqa.tag.pagefactory.exceptions.WaitException; import ru.sbtqa.tag.ste...
24.953947
97
0.604798
7c7c1f60609d1b87dbbfc43c7da80df6778fd5db
1,472
/* Name: Safiyyah Thur Rahman UoW ID: W1714855 IIT ID: 2018025 Course: BEng. Software Engineering Submission Date:02/12/19 Coursework 01 for OOP Purpose: This test is used to check the validation and verification of the field plate Number of the Vehicle class */ package com.company.controllers; import com.company.util...
30.666667
114
0.724864
497c4958c04287aa6f56799cdede9f849ca96c06
5,132
package com.benjaminboyce.partyup; import java.util.ArrayList; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.OnMapReadyCallback; import com.google.android.gms.maps.SupportMapFragment; import com.google.android.gms.maps....
31.484663
83
0.701481
12b9c1fb0ec3305d641f41f66b74c8252ecabee5
1,043
package com.lyricgan.gson.adapter; import android.text.TextUtils; import com.google.gson.TypeAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonToken; import com.google.gson.stream.JsonWriter; import java.io.IOException; /** * 自定义json短整型数据解析 * @author Lyric Gan */ public class S...
23.177778
71
0.627996
089b04540084559667b5dfc8802398ceacfa141f
2,539
package com.wanghui.bigdata.hos.mybatis; import java.io.IOException; import java.io.InputStream; import java.util.Properties; import java.util.Set; import javax.sql.DataSource; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis.session.SqlSessionFactoryBuilder; import org.mybatis.spring.Sql...
34.310811
89
0.761717
6c915658f47a7fbd337edcbe347dddf3cc71f338
4,496
// Copyright 2015 The Bazel Authors. 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 appl...
37.781513
100
0.754671
5cd1a65d6f47e10473fe890e1fc04aad597ee43c
431
package com.example.demo.service; import java.util.Optional; import com.example.demo.mapper.UserMapper; import com.example.demo.model.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class UserService { @Autowired private UserMapp...
17.958333
62
0.798144
4bae1fa4b9e34321d9c51815d3c0b5f0afd71e7b
6,230
/* ---------------------------------------------------------------------------- * Copyright (C) 2021 European Space Agency * European Space Operations Centre * Darmstadt * Germany * --------------------------------------------------------...
38.220859
99
0.685554
defdb47eaf2a349d3dc26efaac6c0ed0565d25b5
9,039
package stellar.dialog; import javax.swing.BoxLayout; import javax.swing.Box; import javax.swing.JPanel; import javax.swing.JCheckBox; import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.Insets; import javax.swing.JComboBox; import javax.swing.JLabel; import javax.swing.ComboBox...
48.859459
162
0.663901