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
a2b669d228d1cd2fbc5b2d275b23fe682d4a3d29
209
package minefinder; import engine.GameEngine; public class MineFinder2D { public static void main(String[] args) { System.out.println("SECRET"); GameEngine.runGame(); } }
13.0625
42
0.626794
b2965d2b54149a69983bdc2c4cbfff41a9bda08e
810
package com.github.alebabai.tg2vk.service.tg.update.impl; import com.github.alebabai.tg2vk.service.tg.update.TelegramUpdateDispatcher; import com.github.alebabai.tg2vk.service.tg.update.TelegramUpdateListener; import com.pengrad.telegrambot.model.Update; import org.springframework.beans.factory.annotation.Autowired; i...
31.153846
81
0.793827
f71bdeb8b9f8d4ba1502e4bfeb08f4319fc30c85
714
package com.itech4kids.skyblock; // Created in a text editor, imports aren't there, bugs are expected. public abstract class SandboxModule { private final String name; public SandboxModule(String name) { this.name = name; } public final String getModuleName() { return name; } ...
20.4
87
0.638655
9a7201eb751828cdd9249c3c6ea5d3da8a4edbb2
1,004
package com.example.twowaydatabindingexample; import android.databinding.DataBindingUtil; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import com.example.twowaydatabindingexample.databinding.ActivityMainBinding; import com.example.twowaydatabindingexample.interfaces.GetSpinnerSelectCallB...
30.424242
80
0.729084
1f9f1e642bc68011b8aaf6266c78187ff46913d6
2,059
package gov.va.med.lom.vistabroker.patient.dao; import gov.va.med.lom.javaUtils.misc.DateUtils; import gov.va.med.lom.javaUtils.misc.StringUtils; import gov.va.med.lom.vistabroker.dao.BaseDao; import gov.va.med.lom.vistabroker.patient.data.Admission; import gov.va.med.lom.vistabroker.util.FMDateUtils; import java.tex...
36.122807
95
0.677028
76b4910656c505a2f043ef3d997444a8124f69cd
2,146
/** * Copyright (C) 2018 Dmitry Moryakov, Main aeronautical meteorological center, Moscow, Russia * moryakovdv[at]gmail[dot]com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
25.855422
127
0.76794
a997a5e52af0a8cda4cdc9a556943f1a6e23cdf2
3,850
package com.appium.ApiDemos_debug.pages.home.nested.preference; import com.appium.ApiDemos_debug.pages.Base; import com.appium.ApiDemos_debug.pages.home.Home; import com.appium.ApiDemos_debug.pages.home.nested.preference.strings.PreferenceStrings; import io.appium.java_client.android.AndroidDriver; import io.appium.ja...
35
102
0.743117
9aa3a9b76c72e1535540d1a230e9e246aeeeec3d
134
package com.ley.spring.learn.aspect; import java.util.List; public interface PersonService { List<String> listPersonNames(); }
14.888889
36
0.753731
ca4783603afb8e29a681fa0f6b47875c73ef22fa
270
package dchat.messages; public class MessageNone { private String typeHeader = "MESSAGE_IGNORE"; public String getTypeHeader() { return typeHeader; } public void setTypeHeader(String typeHeader) { this.typeHeader = typeHeader; } }
19.285714
50
0.677778
0468074adbe7e3fc45bc3fb5f310a3053481871f
2,374
/* * 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 ...
32.972222
154
0.756108
0f87f69cb0b24582a5d7542cb73e08a8bbdec171
3,320
package com.mrpeak.trimdata.application.feed.feedStream.view; import android.view.View; import android.widget.TextView; import com.mrpeak.ppkit.android.ObservableUtil; import com.mrpeak.trimdata.R; import com.mrpeak.trimdata.application.feed.feedStream.IFeedStreamBO; import com.mrpeak.trimdata.application.feed.feedSt...
29.380531
80
0.587651
8c23e7c63c424b3345b5ab1efc05e35a2dc67981
52
test java util vector foo bar size vector bar vector
52
52
0.826923
75955586e4be543453b08cab4ae741ca5f594bca
82
package com.eudriscabrera.examples.java.core; public interface ServicioRest { }
13.666667
45
0.804878
711ed7c59f2704aca67f92816c4bbcf6f6f61316
2,619
/* * 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 com.compomics.toolbox.respin.result.reader; import com.compomics.toolbox.respin.result.model.PSM; import com.compomics.toolbox...
39.089552
147
0.652539
5acc8ffa60414bc87a0c6e7859b0907258b7a798
4,699
/* * clytemnastra - a simple gui explorer and stresstool for cassandra * Copyright 2011-2012 MeBigFatGuy.com * Copyright 2011-2012 Dave Brosius * * 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 Lic...
36.426357
171
0.669717
5ea2684933c4d77c87c0159caa725be56a373e4a
1,280
package com.freddy.kulachat.ims.interf; import com.freddy.kulachat.ims.bean.IMSMsg; import com.freddy.kulachat.ims.config.IMSOptions; import com.freddy.kulachat.ims.listener.IMSMsgReceivedListener; /** * @author FreddyChen * @name IMS抽象接口 * @date 2020/08/07 16:36 * @email chenshichao@outlook.com * @github https:...
22.45614
81
0.657031
b065cd30edb83ca8cf4097a88fefa2594bfc2f85
162
class OperatorEx4 { public static void main(String[] args) { int i = -10; i = +i; System.out.println(i); i=-10; i = -i; System.out.println(i); } }
13.5
41
0.574074
9c86d16fc4e06b0893fbf0c3c6a3db441f873f20
1,458
import java.util.Arrays; public class _16_3SumClosest { public int threeSumClosest(int[] nums, int target) { if (nums == null ||nums.length <= 2 ) return 0; int res = Integer.MAX_VALUE; ; int dif = Integer.MAX_VALUE; int sum = 0; Arrays.sort(nums); for (int i = 0...
32.4
217
0.537037
b42c15f19d20e8854d87296dc9e16ebb690e85ad
1,145
/** * Copyright (C) 2015-Present McLeod Moores Software Limited. All rights reserved. */ package com.mcleodmoores.security; import com.opengamma.core.security.SecuritySource; import com.opengamma.id.VersionCorrection; /** * Base class for classes that validate that particular criteria were satisfied when the conf...
42.407407
137
0.768559
a97935222aefd4d58dabd9b8e6aec7e1488d9657
1,614
package com.example.compression; import static org.junit.jupiter.api.Assertions.assertEquals; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.time.Instant; import java.util.stream.Collectors; import java.util.stream.Stream; import org.junit.jupiter.api.Test; public cla...
27.355932
93
0.70632
6b57b4b0ad2f603ebb07ee198cd5921f01cbf4b8
7,739
/* ** 2013 June 16 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. */ package info.ata4.j...
29.314394
113
0.641556
0c6160e103b03db637853e01ca1efd961beee623
511
package com.mall.admin.auth.dao; import com.mall.common.pojo.AdminUser; import io.swagger.models.auth.In; import org.apache.ibatis.annotations.Param; /** * AdminDAO * * @Author BessCroft * @Date 2020/9/20 21:21 */ public interface AdminDAO { public AdminUser getAdminUser(@Param("username") String username, ...
21.291667
70
0.641879
9cc0106b871a54138567672364b1ebe5a8b488b0
1,579
package me.imli.shareanima; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; import android.widget.ImageView; public class MainActivity extends ActionBarActivity { p...
24.671875
106
0.758708
e0009a8c5c106e5a32a86f159fbeced454169115
2,663
package com.java2nb.novel.home.mapper; import org.mybatis.dynamic.sql.SqlColumn; import org.mybatis.dynamic.sql.SqlTable; import javax.annotation.Generated; import java.sql.JDBCType; import java.util.Date; public final class HomeFriendLinkDynamicSqlSupport { @Generated("org.mybatis.generator.api.MyBatisGenerator...
40.969231
94
0.750282
4f1dceaecd80069474fab9a37a2a1fbff4c12f07
4,402
package uk.gov.phe.erdst.sc.awag.utils; import java.io.File; import java.util.HashMap; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import javax.ejb.embeddable.EJBContainer; import javax.naming.Binding; import javax.naming.Context; import javax.naming.NamingEnumeration; impor...
36.683333
120
0.720127
af1d49a65bb59379154eedcae1c38cb8bc7e8021
2,520
// // ======================================================================== // Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others. // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v. 2.0 which is available at // https://www.eclipse.org/...
31.5
96
0.645635
6996779b2e492974e43482d9376b5b338ae97521
12,292
/** * 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...
50.377049
126
0.712496
88ce65fcb9301a3768f18e80d4976117a922e759
1,118
// // CS681: Object Oriented Software Development // Copyright 2016 Pejman Ghorbanzade <pejman@ghorbanzade.com> // More info: https://github.com/ghorbanzade/beacon // package edu.umb.cs681.hw14; import java.nio.file.Path; import java.nio.file.Paths; /** * A webpage is a wrapper object that holds the file cache. * ...
24.844444
69
0.700358
268f43db0a1d83c0735b3b9cb361abe3fe3f0086
267
/* * Copyright 2016 Pamarin.com */ package com.pamarin.security.api.exception; /** * * @author jittagornp */ public class AuthenticationException extends RuntimeException { public AuthenticationException(String message) { super(message); } }
15.705882
63
0.700375
e674afa323cb99da5bbcc76563147f61a631cff6
1,832
package ru.dragonestia.easycooldown.cooldown.player; import cn.nukkit.Player; import ru.dragonestia.easycooldown.EasyCooldown; import ru.dragonestia.easycooldown.cooldown.PlayerCooldown; import java.util.HashMap; public class PlayerCooldownManager { private HashMap<String, PlayerCooldown> cooldowns = new HashMa...
25.09589
73
0.66048
83af234c431e6f8d94dac28e2b11ad868777b36e
2,123
/******************************************************************************* * Copyright © 2019 by California Community Colleges Chancellor's Office * * 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 * o...
46.152174
119
0.712671
257176e5f6993a9c15bc2b89acf857f23e897130
5,550
package controller.servlet.user; import controller.tools.user.OrganizeTool; import model.Managers; import model.entity.Activity; import model.entity.Society; import model.entity.User; import util.Log; import util.function.Creator; import util.function.Pages; import javax.servlet.ServletException; import javax.servlet...
47.033898
122
0.661081
aeef3d5b63c7fc760bae571dd8b3e55c9d816179
750
package io.bdeploy.interfaces.descriptor.template; import java.util.ArrayList; import java.util.List; /** * Describes a template which can be used to fill an instance with pre-configured applications. */ public class InstanceTemplateDescriptor { /** * Short name of the template, e.g. "Simple Configuration...
23.4375
95
0.673333
523e6607f8486ad95ca4c139c6d8efb736ddd017
2,504
/* * Create by Jacob G(GuanDeLiang) on 2020. * Copyright (c) 2020 . All rights reserved. * Last modified 20-3-5 下午11:27 * */ package com.jacob.material.example.backdrop; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.View...
36.823529
118
0.71845
44bd3b8168ba6d02b40d31511aa4a635e4fc25d4
1,652
package net.hexogendev.hexogen.api.material.items; import net.hexogendev.hexogen.api.entity.EntityLivingBase; import net.hexogendev.hexogen.api.entity.alive.player.Player; import net.hexogendev.hexogen.api.inventory.item.ItemStack; import net.hexogendev.hexogen.api.material.Material; import net.hexogendev.hexogen.api....
27.081967
104
0.773608
9a107a320f9300ba33caaa2a93713e49f819b834
2,453
package dk.impact.sheeplifter.spatials; import com.jme.image.Texture.WrapAxis; import com.jme.image.Texture.WrapMode; import com.jme.renderer.Renderer; import com.jme.scene.Node; import com.jme.scene.Spatial; import com.jme.scene.TriMesh; import com.jme.scene.state.BlendState; import com.jme.scene.state.Rende...
29.202381
100
0.673053
51c4e03203f81b7b33594a6356cc09be892878e1
3,954
package io.subutai.core.messenger.impl; import java.sql.Timestamp; import java.util.Map; import java.util.UUID; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; import io.subutai.core.messenger.impl.Envelope; imp...
27.268966
93
0.645169
931fbc595285238381e759a4f384a80d5cf84e87
2,258
package xyz.spedcord.server.endpoint.job; import io.javalin.http.Context; import xyz.spedcord.server.endpoint.Endpoint; import xyz.spedcord.server.job.Job; import xyz.spedcord.server.job.JobController; import xyz.spedcord.server.job.Location; import xyz.spedcord.server.response.Responses; import xyz.spedcord.server.us...
30.513514
101
0.638618
19c9e57a07bcb96b203d8c2b2b0cc102d355bdc8
775
package org.hildan.livedoc.core.validators; import java.util.Collections; import java.util.List; import org.hildan.livedoc.core.model.doc.ApiOperationDoc; import org.hildan.livedoc.core.model.doc.ApiVerb; import org.hildan.livedoc.core.readers.LivedocIdGenerator; public class ApiOperationDocDefaults { public st...
33.695652
105
0.696774
a7266cec708927dd090531d51ec6b0dddcfd7a11
603
package com.example.eeshan.wist; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; /** * Created by eeshan on 15/6/17. */ public class SplashActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super....
21.535714
61
0.648425
59cb12baede39271fb398c9cd5d8e6329fb6dceb
613
package cn.haohaoli.book.headfirst.strategy.version4.duck; import cn.haohaoli.book.headfirst.strategy.version4.Duck; import cn.haohaoli.book.headfirst.strategy.version4.Flyable; import cn.haohaoli.book.headfirst.strategy.version4.Quackable; /** * @author liWenHao * @date 2019/1/8 20:16 */ public class RedheadDuck ...
21.892857
69
0.681892
7fff82d009c43609a671cb92539d303b7d5f303d
3,540
/* * Copyright 2020 Kato Shinya. * * 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...
19.88764
100
0.598305
86cc6daf310be59fade97d081fcb314fa4c84b3e
2,896
package com.twilio.security; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.net.URISyntaxException; import java.util.HashMap; import java.util.Map; /** * Test class for {@link RequestValidator}. */ public class RequestValidatorTest { private Map<String, String> params = ne...
34.070588
115
0.685083
7693407989663e2ed2668ce8cd5aa5af54b4837d
7,431
/* * 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 ...
40.606557
157
0.667878
9f4e781af3f84e5752be89b9aa8196e1c4327a76
257
package com.xiao.o2o.exception; public class ProductOperationException extends RuntimeException { /** * */ private static final long serialVersionUID = 5584346780287780978L; public ProductOperationException(String msg) { super(msg); } }
13.526316
67
0.743191
b8837b11399915dd4f2b8b90f76d42bb319577e7
101
package llosa.joel.jdbcbeandefinitionreader; public interface Seed { public String getWeight(); }
14.428571
44
0.792079
766a9072dc90b77255d1986f393fec673edc9e28
1,911
/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any la...
36.75
81
0.757718
fd8af4255ba38191919a7f853c04ee95dfd42794
838
package net.asdf.core.common; import java.math.BigDecimal; import java.util.Map; import net.asdf.core.data.CommonDao; import net.asdf.core.model.Model; import net.asdf.core.query.QueryIdGenerator; public interface UpdateService extends DefaultService{ int updateSimple(); int updateSimple(String value); int upd...
22.052632
75
0.752983
4deefdecc2cfa65d511cc320901b61690d8dbc4b
10,634
package ca.bc.gov.educ.pen.nominalroll.api.orchestrator; import ca.bc.gov.educ.pen.nominalroll.api.BaseNominalRollAPITest; import ca.bc.gov.educ.pen.nominalroll.api.constants.EventOutcome; import ca.bc.gov.educ.pen.nominalroll.api.constants.EventType; import ca.bc.gov.educ.pen.nominalroll.api.constants.TopicsEnum; imp...
43.052632
177
0.764623
ac661bf119cfae8bc6071109ac93411f5ed4bfba
518
package springboot.jdbctemplate01.service; import org.springframework.stereotype.Service; import springboot.jdbctemplate01.entity.Movie; import java.util.List; @Service public class MovieServiceImpl implements MovieService { @Override public List<Movie> getMovies() { return null; } @Override...
17.266667
55
0.69112
03b97014e93d11cce3148c013d52c902f7172391
2,096
/** * @package Quarkus-DDD-Showcase * * @file Description value object * @copyright 2020-2021 Christoph Kappel <christoph@unexist.dev> * @version $Id$ * * This program can be distributed under the terms of the Apache License v2.0. * See the file LICENSE for details. **/ package dev.unexist.showcase.todo.domai...
22.063158
78
0.599237
5c0c5705addcda961a82005799df65144e755b45
524
/* * 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 de.hsbo.fbg.sm4c.common.dao.geonames; import de.hsbo.fbg.sm4c.common.dao.BaseDao; import de.hsbo.fbg.sm4c.common.model.geoname...
24.952381
79
0.753817
ddb49f3c94818ff792659940a9cb8ac421f3a90c
5,026
package com.quorum.tessera.config.cli.keys; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import com.quorum.tessera.cli.keypassresolver.CliKeyPasswordResolver; import com.quorum.tessera.config.Config; import com.quorum.tessera...
38.661538
100
0.735575
567fdcf55dc28feb5b734721f0a11f1b9e4d68b0
441
package fly.frontend.entity.vo; import fly.frontend.entity.dto.PostDTO; import fly.frontend.entity.model.User; import lombok.Builder; import lombok.Data; @Data @Builder public class PostCommentVO { private Long id; private int level; private User user; private PostDTO post; private Long parentId; ...
21
39
0.743764
366c32a51c8d973bcbee2e7ce16e608dd6f1244a
1,795
package com.justwayward.book.ui.adapter; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.justwayward.book.R; import com.justwayward.book.bean.RechargeRecordBean; imp...
22.721519
90
0.641783
90208a06759615beb3a5d1a55fe6f72c9b08283f
1,301
/* * Copyright (C) 2013 salesforce.com, 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 ...
33.358974
87
0.696387
1cfbae61efabcf6f89902d99babbc49d0c4aea48
940
/** * Stats * * This predicate is used for debugging purposes. * At present it prints out the size of caches. * It ignores arguments. * * @author Cleve (Klivo) Lendon * @version 1.0 */ package inferencilo; import java.util.*; public class Stats extends BuiltInPredicate { private static final String NAM...
20
73
0.643617
db9b99c9b111db8f6883bb16741179c21eb26d68
1,854
package br.com.nandao.cap03InterfacesFuncionais.part01; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; // Interfaces Funcionais // O fato de essa interface ter apenas um método não foi uma coincidência, mas sim um requisito // para que o compilador consiga traduz...
32.526316
141
0.655879
ed6416e9cf3dc842d0e6618691f23c425c497283
1,747
package org.edmcouncil.spec.fibo.view.controller; import org.edmcouncil.spec.fibo.view.model.Query; import org.edmcouncil.spec.fibo.view.service.SearchService; import org.edmcouncil.spec.fibo.view.util.ModelBuilder; import java.util.HashMap; import java.util.Map; import javax.validation.Valid; import org.slf4j.Logger;...
32.351852
88
0.775615
97a3b8c154c9f1ea53d743e2e9995783e50ff58d
1,078
package io.smallrye.reactive.messaging.pulsar.consumer; import java.util.Objects; import java.util.concurrent.Executors; import javax.inject.Inject; import javax.inject.Singleton; import org.apache.pulsar.client.api.Consumer; import org.apache.pulsar.client.api.PulsarClient; import org.apache.pulsar.client.api.Pulsa...
27.641026
116
0.778293
afae84c82033d7a4a8c053a4bac0cc772936dfaf
1,298
package jadx.core.dex.regions.loops; import jadx.core.dex.attributes.AFlag; import jadx.core.dex.instructions.InsnType; import jadx.core.dex.instructions.args.InsnArg; import jadx.core.dex.instructions.args.RegisterArg; import jadx.core.dex.nodes.InsnNode; public final class ForEachLoop extends LoopType { private fi...
31.658537
77
0.781202
172e4ffacb0c176bcfd87e49b5c748c1d97345b0
1,821
package com.github.lianjiatech.retrofit.spring.boot.degrade; import java.lang.reflect.Method; import retrofit2.http.DELETE; import retrofit2.http.GET; import retrofit2.http.HEAD; import retrofit2.http.HTTP; import retrofit2.http.PATCH; import retrofit2.http.POST; import retrofit2.http.PUT; /** * @author 陈添明 * @sin...
26.014286
80
0.598572
fb018c4cbd3d8359011504464196092862b33922
1,928
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.9 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ------------------------------...
28.776119
107
0.660788
cae1d4088992067a034ac1666aa69c6233e12593
857
package org.ukiuni.irc4j.server.worker.webworker; import java.io.OutputStream; import java.util.List; import net.arnx.jsonic.JSON; import org.ukiuni.irc4j.db.Database; import org.ukiuni.irc4j.server.IRCServer; import org.ukiuni.irc4j.server.plugin.Plugin; public class ResponsePluginMyList extends AIRCResponse { p...
29.551724
127
0.743291
66674ed337ce37e9b01bbd9faa019e2bfd0d6652
1,632
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * 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 ...
24.727273
804
0.794118
3ba878f976a47d2d3ac18784d2caa2120f32ce59
4,096
package moxproxy.services; import moxproxy.interfaces.*; import moxproxy.model.MoxProxyProcessedTrafficEntry; import moxproxy.model.MoxProxyRule; import moxproxy.model.MoxProxySessionIdMatchingStrategy; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.time.OffsetDateTime; import java.time.format.D...
35.008547
132
0.73291
5556705647dd50088270a70e34af61f06ae5f29f
34,640
package com.boringbalcomb.YelpApiCacher.BusinessDetails; import com.boringbalcomb.AtsUtilities.AtsDateTime; import com.boringbalcomb.AtsUtilities.AtsMiscellaneous; import com.boringbalcomb.YelpApiCacher.BusinessDetails.model.*; import com.boringbalcomb.YelpApiCacher.YelpApiCacher; import com.fasterxml.jackson.core.Jso...
43.408521
168
0.613943
5b362c2ab49d1b3022e482f23ad770df693ab209
367
package org.example.demo.leetcode.partition; import junit.framework.TestCase; import java.util.List; public class _241Test extends TestCase { public void testDiffWaysToCompute() { _241 s = new _241(); String expression = "2*3-4*5"; List<Integer> integers = s.diffWaysToCompute(expression)...
24.466667
65
0.686649
59d84cb6911a048f90935ea415ce7d3eecf71fad
567
package com.ukefu.webim.service.repository; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import com.ukefu.webim.web.model.ColumnProperties; public abstract interface ColumnPropertiesRepository extends JpaRepository<ColumnProperties, String> { public List<ColumnProperties> f...
28.35
102
0.832451
2771a9964096ec762da50faebd0255af6d9c25f4
8,424
// Based on io.netty.example.telnet.TelnetClient // https://github.com/netty/netty/blob/4.1/example/src/main/java/io/netty/example/telnet/TelnetClient.java package io.github.chitchat; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import io.net...
33.165354
106
0.562085
939658258c42f7ec5d7777ccce9edcc1b2365f76
12,295
class Ops { void methodC() { } /* * Test */ /* * 01A123456789 01A123456789 01A123456789 01A123456789 01A123456789 * 01B123456789 01B123456789 01B123456789 01B123456789 01B123456789 * 01C123456789 01C123456789 01C123456789 01C123456789 01C123456789 * 01D123456789 01D12345...
46.221805
71
0.788532
f453280b33c86348c383f662772b5e965c70702a
1,051
package com.sishuok.spring.cache; import java.io.IOException; import org.junit.Test; import org.springframework.cache.Cache; import org.springframework.cache.ehcache.EhCacheCacheManager; import org.springframework.core.io.ClassPathResource; import com.sishuok.spring.entity.User; import junit.framework.Assert; /** ...
25.02381
79
0.740247
fb36c48bcc0e644d6c7e74b823c0cae9e339de2c
2,146
/* * Copyright oVirt Authors * SPDX-License-Identifier: Apache-2.0 */ package org.ovirt.engine.api.v3.adapters; import static org.ovirt.engine.api.v3.adapters.V3OutAdapters.adaptOut; import org.ovirt.engine.api.model.Step; import org.ovirt.engine.api.v3.V3Adapter; import org.ovirt.engine.api.v3.types.V3Status; imp...
29.805556
70
0.554054
c0cf4d8f28d611e121f61196d494813ce2df8ca0
9,279
/* * 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 utilesFX.formsGenericos; import javafx.beans.value.ObservableValue; import javafx.event.ActionEvent; import javafx.event.Even...
25.846797
125
0.640586
95bc2cd2531599cee6bd968a3754e65f04a7612c
904
package com.ariseontech.joindesk.project.repo; import com.ariseontech.joindesk.issues.domain.IssueType; import com.ariseontech.joindesk.project.domain.CustomField; import com.ariseontech.joindesk.project.domain.CustomFieldType; import com.ariseontech.joindesk.project.domain.Project; import org.springframework.data.jpa...
36.16
100
0.830752
11f34873242c4fb3bf1bfafca550c5c5381e20bc
2,336
package com.sumu.mobliesafe.activity; import android.app.Activity; import android.os.Bundle; import android.os.Vibrator; import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; import android.view.View; import android.view.animation.Animation; import android.view.animation.Animati...
29.56962
92
0.638699
48d5b027aea76d48945f55c08408c0eb233bcb48
2,366
package com.talmer.servicedesk.security; import java.io.IOException; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.talmer.servicedesk.security.exception.InvalidTokenException; import or...
38.16129
143
0.762891
2dcbac7b81a95fab7c22159d88a4b6de68127a63
5,810
/* * 2007-2016 [PagSeguro Internet Ltda.] * * NOTICE OF LICENSE * * 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 b...
21.127273
77
0.656454
5b50e6c0c919eb261927b154d7d5813365888681
3,403
package ch.shaktipat.saraswati.internal.web.controller.pprocess; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutionException; import ch.shaktipat.saraswati.environment.PEnvironmentFactory; import ch.shaktipat.saraswati.internal.pobject.aux.pprocess.PersistentProcessStateMachine; ...
33.038835
116
0.753747
ee2e1e79ae0a664385e2ebcb01aca8beb39b7572
329,070
/* * Copyright (C) 2007 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...
41.760152
120
0.603528
725dc39291f21b1790425281b2a93f9b58048959
399
package test.JVM; import java.util.ArrayList; import java.util.List; public class StringOomMock { static String base = "string"; public static void main(String[] args) { List<String> list = new ArrayList<String>(); for (int i=0;i< Integer.MAX_VALUE;i++){ String str = base + base;...
22.166667
52
0.573935
49f02a2affccbee7e3a0928d5dd42ea71db14f80
4,952
/* * 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 not ...
43.438596
111
0.787763
825084cfe2b1d3755c666e270761e0ca987f956c
204
package com.misout.interfaces; /** * * @author Misout * @date 2017-12-31 18:17:55 */ public interface IdService { /** * 获取全局唯一ID * @return String */ String getGlobalId(); }
12.75
31
0.573529
90177ebfe2962b20c08646a9e85e900bd74cdd28
2,349
/** * Copyright 2020 Alibaba Group Holding Limited. * * 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...
26.393258
75
0.666667
59a20c5a1f0f72edf758da620d0fd6042a4409f0
1,909
package old.bucket; import org.junit.Test; import static org.hamcrest.Matchers.is; /** * Created by xd031 on 2017/7/14. */ public class BucketStateTest { /* @Test public void setWaterByTransferState() throws Exception { BucketState state1 = new BucketState(3, 5, 0); BucketTransfer transfer = new Buc...
43.386364
83
0.757465
fb288976c5aa041b2bae1205730530324a52882c
2,924
/* # Licensed Materials - Property of IBM # Copyright IBM Corp. 2017 */ package com.ibm.streamsx.edgevideo.device.edgent; import java.util.ArrayList; import java.util.List; import org.apache.edgent.connectors.iot.IotDevice; import org.apache.edgent.topology.TStream; import org.apache.edgent.topology.Topology; import...
32.131868
99
0.628249
38ac41609ea558b4f4ec1dbee0ed321b8c0dbd51
2,105
/* * Copyright (C) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
29.647887
77
0.723515
bc68c6d5810f4e4a0947e0750446d08607088384
334
package org.nico.noson.test; import org.nico.noson.Noson; import org.nico.noson.test.entity.Order; public class AnnotationTest { public static void main(String[] args) { String json = "{name:订单,price:23.5,count:3,address:China,books:[{}]}"; Order order = Noson.convert(json, Order.class); System.out.println(o...
20.875
72
0.712575
0119252d350b6f107809738e8ab933a0257f27e5
2,959
package org.ovirt.engine.core.uutils.crypto.ticket; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.security.GeneralSecurityException; import java.security.PrivateKey; import java.security.SecureRandom; import java.security.Signature; import java.security.cert.Certificate; import java...
30.822917
118
0.629267
fb0929bb9f6b01ea48c33599af2164c1a380c5fd
1,908
package il.org.spartan.spartanizer.issues; import org.eclipse.jdt.core.dom.MethodDeclaration; import org.junit.Test; import il.org.spartan.spartanizer.ast.factory.make; import il.org.spartan.spartanizer.utils.tdd.determineIf; /** see issue #716 for more details * @author Ron Gatenio * @author Roy Shchory * @since...
44.372093
147
0.671908
e3285a02de991c10efc9e454e99d99fa658ca970
7,631
/* * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
43.112994
104
0.597956
4fc6e7af11f2214976fb104cf5f1efc2fd827f7d
918
package br.com.casacodig.validator; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import org.hibernate.validator.internal.constraintvalidators.hv.br.CNPJValidator; import org.hibernate.validator.internal.constraintvalidators.hv.br.CPFValidator; //Contagem de Pontos...
26.228571
88
0.803922
96fdfd18a4adc10019e9420df0b46411ef5b3d54
2,498
/* * 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 nick.flashtranslator; import java.io.File; import java.io.IOException; import java.util.LinkedList; import java.util...
25.489796
94
0.580064
b02697c7f5264e2c55e4b366b6fcc6c4565b2e34
93
package com.example.livesocket; public class TestLiveSocket { public int testvar = 1; }
13.285714
31
0.741935
3ae7f5241a48d40f918c532046c22e2fd39a94a8
1,662
package org.sunbird.common.request; import java.util.List; import org.sunbird.common.exception.ProjectCommonException; import org.sunbird.common.models.util.JsonKey; import org.sunbird.common.responsecode.ResponseCode; public class UserProfileRequestValidator extends BaseRequestValidator { @SuppressWarnings("unche...
34.625
88
0.720217
db376793d5890183ecb5c28ecf68b713e90dba8a
642
package com.movies.mvvm.ui.movies; import com.segunfamisa.sample.mvvm.data.model.Movie; import com.segunfamisa.sample.mvvm.data.repository.MoviesRepository; import com.segunfamisa.sample.mvvm.utils.MovieViewModel; public class MovieItemViewModel extends MovieViewModel { private Interactor interactor; public...
27.913043
89
0.721184
0aa938867f9e492c1864a2f6574233140de10c16
1,762
package com.intellij.compiler.artifacts.ui; import com.intellij.compiler.artifacts.ArtifactsTestUtil; import com.intellij.ide.DataManager; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.Presentation; import com.intelli...
32.62963
106
0.768445
a56e4b285b05df72be5c6995eeacec377a9c6fe1
195
package ru.shestakov.start; /** * Init MenuOutException class */ public class MenuOutException extends RuntimeException { public MenuOutException(String msg) { super(msg); } }
17.727273
56
0.702564
102ff9edd20458cd0037b6e5dba6648540ad91c4
18,113
/** * Copyright 2013 Canada Health Infoway, 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 applicab...
36.226
134
0.666593
99a559e3be30823d8dd48b771a887192870bddf4
8,038
/* * Copyright 2013 Palantir Technologies, 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 l...
35.100437
138
0.674919