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
c56b9b06ae502fce07714117b0076c69d2698a13
2,500
package com.acme.model; import com.google.common.collect.*; import net.nullschool.grains.*; import org.joda.time.*; import java.util.*; /** * 2013-05-09<p/> * * This class holds examples of TypePolicy objects customized with immutable types available from common open source * libraries, allowing the Maven grain...
43.103448
119
0.7488
52a5722225e71dbdc0123f25d117efb277c78ecc
3,029
/** * Copyright 2021 Tianmian Tech. 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 ...
29.407767
127
0.659624
74caceae07c969569fcad17454823de357f916fb
41,878
/* * Copyright (C) 2018 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...
42.258325
100
0.65741
be9bbd0a18f28f605c762a1c00065b3a016bd227
253
package com.github.bingoohuang.blackcat.agent.collectors; import com.github.bingoohuang.blackcat.sdk.protobuf.BlackcatMsg.BlackcatReq; import com.google.common.base.Optional; public interface BlackcatCollector { Optional<BlackcatReq> collect(); }
28.111111
76
0.822134
7b94caeab5eb8428d9234ea6a7271eb5e518c92c
948
package org.usfirst.frc308.FRC2018308.subsystems; import edu.wpi.first.wpilibj.DoubleSolenoid; import edu.wpi.first.wpilibj.Solenoid; import edu.wpi.first.wpilibj.command.Subsystem; import org.usfirst.frc308.FRC2018308.Robot; import org.usfirst.frc308.FRC2018308.RobotMap; import org.usfirst.frc308.FRC2018308.commands...
22.046512
61
0.75211
07813d0ca178f1d8d7df5fe94f7fc60002d0dfd9
5,789
package com.example.tests.appmanager; import com.example.tests.model.LocalValueData; import org.openqa.selenium.*; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import org.testng.Assert; import java.util.concurrent.TimeUnit; import static org.testng.As...
31.291892
156
0.606841
94cf1f3f718e25a74b50d249e6c013419e6b2b0e
2,598
/** Copyright 2017 Andrea "Stock" Stocchero 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...
29.522727
128
0.724788
5aa7a797b0e3f1750f5d913de52f45f28fbef51c
894
package frc.robot.util; import java.util.ArrayDeque; import java.util.Deque; public class MovingAverage { //For finding averages of the most recent //certain number of values in a discrete continuous flow of values Deque<Double> dq; //Double ended queue: a linear storage that can //be edited from both e...
27.090909
89
0.589485
e121938742c03aa84971b86795f0713495e070dc
2,638
package com.shiyajian.examples.consumer.utils; import org.apache.commons.fileupload.disk.DiskFileItem; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.io.IOUtils; import org.springframework.http.MediaType; import org.springframework.web.multipart.MultipartFile; import org.sprin...
33.820513
98
0.657316
541f775534ca7068c0777c87a6899b330b9d4d1b
3,560
/*************************GO-LICENSE-START********************************* * Copyright 2014 ThoughtWorks, 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...
41.395349
160
0.722472
2d376be60e771f191128764fad670bc95b6b156d
3,190
package UnitTest.DataStructureTest.treeTest.binaryTreeTest.binaryTreeApplyTest; import DataStructure.tree.binaryTree.binaryTreeApply.JudgeMirrorBinaryTree; import DataStructure.tree.binaryTree.binaryTreeRealize.BinaryTreeImpl; import UnitTest.DataStructureTest.treeTest.BinaryTreeTestDemo; import org.junit.Test; /** ...
35.054945
79
0.697806
78d744087998a97bc9df7b8d171a13425af18666
2,636
package github.com.st235.grokkingspans.activities; import android.content.Context; import android.graphics.Rect; import android.support.annotation.NonNull; import android.support.v7.widget.AppCompatButton; import android.support.v7.widget.AppCompatTextView; import android.util.TypedValue; import android.view.Gravity; ...
32.95
109
0.700683
4ec21f3985f1b036a25d80aba88567d284da02fc
15,203
/* * 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 projeto.gui.telas; import java.util.logging.Level; import java.util.logging.Logger; import projeto.erro.ConexaoExcept...
52.243986
179
0.653818
dd3e5d90aa0cd803fc651da4573e8a36468b1c89
1,417
package org.onap.sdnc.northbound; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.runners.MockitoJUnitRunner; import org.opendaylight.yang.gen.v1.org.onap.sdnc.northbound.generic.resource.rev170824.PortMirrorTopologyOperationInput; import org.opendaylight.yang.gen.v1...
38.297297
122
0.784757
c487559ca1393c26d79ae27d13cba868dcfa139d
2,316
/* * 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 ...
29.316456
73
0.716321
d8f291afe474e338c42537c6e4b1981b6138e02c
196
package com.java.proiect.exceptions; public class AlbumNotFoundError extends RuntimeException{ public AlbumNotFoundError() { super("Album not found in the database!"); } }
24.5
58
0.704082
31b609ea4fb814c3e04e2418b9bf8ecea5e19a21
3,999
/* * Copyright 2018 Netflix, 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 a...
36.027027
107
0.753188
d25b14a2a36d9183e1b20e5574caaaa6c4e1cef5
2,908
/** */ package fr.unice.polytech.si5.webots.polycreate.abstractsyntax.polycreate; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Distance Condition</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link fr.unice.polytech.s...
36.810127
160
0.693948
8c230c6c8af818e938a237c82d19f9c76e0c1af5
16,958
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package agsml; import java.io.IOException; import java.io.BufferedWriter; import java.io.StringWriter; import java.io.FileWriter; import java.io.File; import java.util.ArrayList; import java.util.Collection; import java...
26.789889
272
0.524118
44192df9858b4a8faa0f2f1037b95c896908f20d
4,218
import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import java.io.ByteArrayOutputStream; ...
26.198758
119
0.568516
630f1d4e9cacf4143d0d843c8468593d86a62468
287
package ec.com.tnb.mibus.ui.main; import java.util.List; import ec.com.tnb.mibus.data.model.Ribot; import ec.com.tnb.mibus.ui.base.MvpView; public interface MainMvpView extends MvpView { void showRibots(List<Ribot> ribots); void showRibotsEmpty(); void showError(); }
16.882353
46
0.731707
2c3c7496a572db87a7a27a119aad340d28a37bee
313
package com.ats.kbsearch.data; import com.ats.kbsearch.domains.Topic; import java.util.List; import java.util.Set; /** * Created by amit on 5/15/17. */ public interface Data { Set<String> getDictionary(); Set<String> getIgnoreWords(); Set<Set> getContextMap(); List<Topic> getAllTopics(); }
17.388889
38
0.690096
3872ba76b39f14b8ee04eecd360b8026b1c14367
6,296
/* * JBoss, Home of Professional Open Source * Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual * contributors by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
29.698113
100
0.603875
7449a01001efa960ba5c8911108cb291a8f7af18
120
package org.chess.core.domain; public interface IMouvement { Position getPosition(); boolean isAttaque(); }
12
30
0.708333
c534f160051a86f3ecaca42c3c48f310e94ff5ad
3,026
package extenreports; import java.io.IOException; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.NoSuchElementException; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.Ass...
32.537634
107
0.751818
8d6444573fa7fd98c45286209f68b698c013cd3c
2,414
/* * 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 ...
36.029851
105
0.709611
accb2facd653ac44c92542b788b6d99089107820
50,595
package com.miniorange.oauth.bamboo; import java.io.IOException; import java.util.*; import com.miniorange.oauth.utils.MoOAuthHttpUtils; import com.atlassian.bamboo.util.BuildUtils; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.BooleanUtils; import org.apache.commons.lang3.RandomStringUtils; ...
42.660202
188
0.806957
c0a7d9e674314a69cacb20f7ee8922fd22600545
373
package edu.southwestern.util.search; import java.util.ArrayList; public interface Search<A extends Action, S extends State<A>> { /** * Given a start State, return a list of actions that reaches a goal state * @param start Start State * @return List of Actions that an agent can perform to reach a goal from th...
28.692308
84
0.731903
2db656bd1fee7e3d4bf776beb1f4db0b37a55ff5
234
package com.glacier.common.core.utils; import org.junit.jupiter.api.Test; /** * @author glacier * @version 1.0 * date 2020-08-10 20:05 */ public class TreeBuildFactoryTest { @Test public void buildMenuTree() { } }
13.764706
38
0.666667
1db528cb1a523731ae911906ad39b948fafa619e
939
package io.vertx.tp.is.init; import io.vertx.core.json.JsonObject; import io.vertx.tp.is.atom.IsConfig; import io.vertx.tp.is.cv.IsFolder; import io.vertx.tp.is.refine.Is; import io.vertx.up.util.Ut; import java.util.Objects; /** * @author <a href="http://www.origin-x.cn">Lang</a> */ final class IsConfiguration { ...
30.290323
96
0.657082
eb84fa8ee36d20cf1697d5bf5caa8a583aac6736
24,028
package com.refinitiv.ema.perftools.common; import com.refinitiv.ema.perftools.emajniprovperf.NIProviderPerfConfig; import com.refinitiv.ema.perftools.emajniprovperf.NIProviderThread; import com.refinitiv.ema.perftools.emajprovperf.IProviderPerfConfig; import com.refinitiv.ema.perftools.emajprovperf.IProviderThread; ...
45.767619
221
0.556309
1468834220e8157bdef9e6d995bcfbd7a81a34aa
5,433
package controllers; import java.util.List; import java.util.ArrayList; import play.mvc.Result; import models.Categoria; import models.Carrinho; import models.FormaPagamento; import models.Transportadora; import models.ItensCarrinho; import models.Produto; import play.mvc.Controller; import play.api.libs...
32.339286
103
0.57887
cea27c51b344120b2f274f37a9f5c8561da51ee7
865
package com.hb0730.dubbo.boot.provider.sample.service.impl; import com.hb0730.dubbo.sample.bean.UserAddress; import com.hb0730.dubbo.sample.service.IUserService; import org.apache.dubbo.config.annotation.Service; import org.springframework.stereotype.Component; import java.util.Arrays; import java.util.List; /** * ...
24.714286
96
0.710983
4384bc84b0b6f2f5a49d66c1e81a6597c78527ad
3,419
package pl.plh.app.employment.controller; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.*; i...
44.986842
109
0.717461
63f84a24889465facd37663bde6a0ad19f66e62e
5,904
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.google.android.gms.cast; import android.os.Parcel; import com.google.android.gms.common.internal.ak; import com.google.android.gms.common.inte...
32.086957
104
0.505928
bb2a9cde75dbb7e8fb6d8dbdecb8ce697cbaf8ad
877
package com.joylink.userms.cache; import java.util.HashMap; import java.util.Map; import com.joylink.userms.constants.WxConstants; import com.joylink.userms.vo.wx.WxAccessToken; public class WxAccessTokenCache { public static final Map<String, Object> LocalCache = new HashMap<>(); private WxAccessTokenCache() ...
23.702703
79
0.749145
b04bd54875d2ae9da3cc27c71f0750fe36b64012
2,367
/** * The MIT License * * Copyright (C) 2015 Asterios Raptis * * 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, c...
32.424658
92
0.741867
5d5fe8984ebf139a736998693a0a6b579d0b3bae
1,969
// Copyright (c) 2016-present Revamp package io.nlopez.revamp.sample; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import butterknife.BindView; import butterknife.Butt...
30.292308
124
0.772473
49c9745a315a235a73a9fa8de5c51e86c80fe984
1,882
package org.michenux.drodrolib.battery; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.BatteryManager; public class BatteryUtils { public static boolean isChargingOrFull( Context context ) { IntentFilter intentFilter = new IntentFilte...
39.208333
125
0.742295
64dba60b4ea59465c33efb08f22241362bc6bacf
1,552
package org.openbaton.nfvo.api; import org.openbaton.catalogue.mano.descriptor.VirtualNetworkFunctionDescriptor; import org.openbaton.exceptions.BadFormatException; import org.openbaton.exceptions.CyclicDependenciesException; import org.openbaton.exceptions.NetworkServiceIntegrityException; import org.openbaton.except...
39.794872
91
0.829897
4770262381c2122d00b9b041ded8ee66334305e2
1,730
package com.spark.platform.wx.shop.biz.setting.service.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.StringUtils; impor...
39.318182
140
0.792486
eb6eb68acafa60577265a00e2902aa4f885e0598
1,849
package com.lc.spittr.config; import org.springframework.context.MessageSource; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.support.ReloadableResourceBund...
33.017857
89
0.742023
11d7bef2129dbac50c4462b455b225aef8e1047b
513
package com.linguahack.app.algorithm; import com.linguahack.app.core.TextStats; import java.util.HashMap; import java.util.Map; public class AlgorithmMockImpl implements Algorithm { public Map<String, Double> process(TextStats t1, TextStats t2) { Map<String, Double> test = new HashMap<String, Double>();...
25.65
68
0.635478
bd3a2e78c980ffd92fee77cb5bb25c6eb5be15f7
2,483
/* * Copyright 1999-2101 Alibaba Group Holding 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 applica...
26.414894
88
0.668546
d8e573d3fa1aea84f09898267db9e9e9ba6c4b8e
2,644
package com.twinkle.framework.datasource.spring.boot.autoconfigure; import com.twinkle.framework.datasource.spring.boot.autoconfigure.druid.DruidConfig; import com.twinkle.framework.datasource.spring.boot.autoconfigure.hikari.HikariCpConfig; import com.twinkle.framework.datasource.strategy.LoadBalanceRoutingDataSource...
31.105882
109
0.720121
f66e76568712e7d316edaa2554c5651d603b5b75
2,166
package com.example.android.bakingbuddy; import android.support.test.espresso.contrib.RecyclerViewActions; import android.support.test.filters.LargeTest; import android.support.test.rule.ActivityTestRule; import android.support.test.runner.AndroidJUnit4; import org.junit.Rule; import org.junit.Test; import org.junit....
40.111111
87
0.718837
d8241c644d9bba782d21ff0d09d6f469d31869f6
1,612
package org.esfinge.guardian.interceptor.cglib; import java.lang.reflect.Method; import org.esfinge.guardian.context.WrappedObj; import org.esfinge.guardian.exception.ProxyCreationException; import org.esfinge.guardian.interceptor.GuardianInterceptor; import net.sf.cglib.proxy.Enhancer; import net.sf.cglib....
33.583333
137
0.712779
7a1ab9da1b103d685a6b130468ef5df15a98f0f8
1,668
package com.skeqi.mes.util.yp.oa; import java.util.List; import com.alibaba.fastjson.JSONObject; /** * 检查是否需要审批 * * @author yinp * */ public class Check { public void runCheck(String step, Integer userId) throws Exception { List<JSONObject> stepList = JSONObject.parseArray(step, JSONObject.class); // 只保留...
24.529412
87
0.596523
51c124232608d91bb7631e1dd996388a6648081f
608
package com.jimsp.accountsettlement.converter; import org.springframework.stereotype.Component; import com.jimsp.accountsettlement.canonico.AccountSettlementCanonico; import com.jimsp.accountsettlement.model.AccountSettlementData; @Component public class AccountSettlementDataToAccountSettlementCanonico { public Ac...
35.764706
113
0.866776
c7bb8f843dcc8bbbe3ffac0213df634e4963a8a4
544
package skyblock.mixin; import net.minecraft.structure.StructurePiece; import net.minecraft.util.BlockMirror; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.gen.Accessor; import org.spongepowered.asm.mixin.gen.Invoker; @Mixin(StructurePiece.class) public interface StructurePieceAccessor ...
27.2
48
0.768382
a5b66f974389b8d62ecf378b086a8723ce1b6676
1,811
/*- * ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ * The Apache Software License, Version 2.0 * —————————————————————————————————————————————————————————————————————————————— * Copyright (C) 2013 - 2020 Autonomic, LLC - All rights reserved * ———————————————————————————————————————...
36.22
96
0.620099
1f7372c543c6ccce4b5935100edee895f2c57428
62,591
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * Copyright (C) 2007 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://...
14.247894
608
0.803742
078341096217444bf49070c0aaee1d79383bf82b
538
package com.gaadi.sfa.ui; /** * Created by kanishroshan on 10/2/16. */ public class TitleData { private String title; private int iconid; public TitleData(String title, int iconid) { this.title = title; this.iconid = iconid; } public int getIconid() { return iconid; ...
16.8125
48
0.585502
3da2dda9a7a3bff815ee0632f6d66c5e5aec913b
3,414
/* * Copyright (C) 2016 Selerity, Inc. (support@seleritycorp.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 b...
35.5625
96
0.705624
e67d740c54450fd21df380bfc42674549361c10b
612
package com.easy.cloud.core.operator.sysroleresource.dao; import com.easy.cloud.core.operator.sysroleresource.pojo.entity.SysRoleResourceEntity; import com.easy.cloud.core.jdbc.base.dao.EcBaseDAO; import com.easy.cloud.core.operator.sysroleresource.pojo.query.SysRoleResourceQuery; import org.apache.ibatis.annotations....
32.210526
108
0.802288
c8f580260817d4bbf9e54aa23e43e983ebaa5456
6,589
/* 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 writing, software * distributed...
44.52027
190
0.788132
8373857408305ff71c05e5d090c47320bd57b861
182
package steed.hibernatemaster.util; import java.util.Map; public class OrHqlGenerator extends SimpleHqlGenerator{ // public class OrGroup{ // Map<String, Object> // } }
18.2
56
0.71978
a2a66b88ae53c7cd086b4f5185d7ef3e51bcec05
2,732
/** * <p> * 文件名称: LogMessage * </p> */ package com.zhou.yadmin.system.monitor.dto; import java.io.Serializable; /** * <p> * 类注释 * </p> * * @author yuZhou * @since 2020/3/10 19:47 */ public class LogMessage implements Serializable { private static final long serialVersionUID = -8158905318770373036L; ...
19.239437
103
0.56552
2e863775046af0343e39600317eb0c730ac067c5
1,316
package yao.algs.stack; import org.junit.Test; import org.junit.Before; import org.junit.After; import java.util.Arrays; import static org.junit.Assert.assertEquals; /** * ArrayStack Tester. * * @author <Authors name> * @version 1.0 * @since <pre>Jan 11, 2018</pre> */ public class ArrayStackTest { privat...
18.277778
83
0.56535
009b830c013f289878550d9ccdd2cfb1025af4b9
9,809
package es.deusto.deustock.dao; import static org.junit.jupiter.api.Assertions.*; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.*; import javax.jdo.*; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Displ...
26.654891
102
0.720461
22db1e1298c286b36c9057d100302a79403b61f2
964
package com.cmcc.shiro.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="t_resource") public class Resource { private int id; private String name; private String permission; private String...
20.083333
67
0.654564
3b6486ee7ba837a254036cf178bdf9f92cf22a07
16,560
package com.hbird.base.mvc.bean.ReturnBean; import com.hbird.base.mvc.bean.BaseReturn; import java.util.List; /** * Created by Liul on 2018/9/5. */ public class SystemParamsReturn extends BaseReturn { private String code; private String msg; private ResultBean result; public String getCode() { ...
29.413854
132
0.493237
146fbca4cf5bdf2cc264ffd392e0306c32d60e3d
12,599
package zhuoyuan.li.fluttershareme; import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Intent; import android.content.pm.PackageManager; import android.net.Uri; import android.text.TextUtils; import android.util.Log; import androidx.annotation.NonNull; import androi...
34.707989
138
0.601159
f7a7818648571b1193a7b09b44ffa549866c6703
905
package org.openstack4j.model.network.ext.status; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import org.openstack4j.model.ModelEntity; import org.openstack4j.model.network.ext.HealthMonitorType; import org.openstack4j.openstack.networking.domain.ext.LoadBalancerV2StatusTree.NeutronHealthMonitorV...
25.138889
109
0.720442
8ceef90ebfc101d983e08fa5ff94657b73ad6b39
3,478
/** * @Name: JavaClosingHomework * @Author: SaarChaffee * @Code: UTF-8 * @Date: Created in 2021 2021/6/6 */ package main.DAO; import java.sql.ResultSet; import java.sql.SQLException; public class DaoPro { public static boolean isFriend( int UserUid, int FriendUid ) { try{ if( UserUid > Fr...
29.474576
121
0.518976
d10c4d99e086452674458d0d7813ae2d47891e80
1,585
package com.jwcrain.sandcastle; import java.util.HashMap; import java.util.Map; public class DocumentFrequency { HashMap<String, Integer> frequency = new HashMap<>(); public DocumentFrequency(String document) { String[] words = document.split(" "); for (int i = 0; i < words.length; i++) { ...
26.416667
90
0.5653
0fc49b80961679209509a8934c1765510b78d317
3,063
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.commands.auton; import edu.wpi.first.math.geometry.Pose2d; import edu.wpi.first.math.geometry.Rotatio...
54.696429
118
0.695397
94cac9275be523002e724848f3a69ffbda65629d
156
/* * Copyright (c) 2017-01-02 23:31, Kenta Yamamoto <ymkjp@jaist.ac.jp>, s1510756. */ public interface Nat extends Comparable<Nat> { Nat plus(Nat y); }
22.285714
80
0.679487
b8b2d3424138b1d2406c70bb93b3aba1a6c9d0e1
7,131
/** */ package thing_ui.interaction.util; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.util.Switch; import thing_ui.interaction.*; /** * <!-- begin-user-doc --> * The <b>Switch</b> for the model's inheritance hierarchy. * It supports the call {@link #...
32.413636
118
0.68083
31c3986f20fdf5bd5a76d153a576d53dbb806e3a
705
package net.rizon.moo.plugin.tickets.conf; import net.rizon.moo.conf.Configuration; import net.rizon.moo.conf.ConfigurationException; import net.rizon.moo.conf.Validator; public class TicketsConfiguration extends Configuration { public String url, username, password; public static TicketsConfiguration load() throw...
28.2
65
0.785816
965a8b4ec298151d3e5b8fbce2b7547dfb1d3fcf
535
package com.proposta.propostaservice.cartao.bloqueio; import com.proposta.propostaservice.cartao.Cartao; import javax.validation.constraints.NotBlank; public class BloqueioRequest { @NotBlank private String ip; @NotBlank private String userAgent; public BloqueioRequest( @NotBlank String ip, @No...
23.26087
78
0.725234
8ee574f81a475acf749e2a891583effc122543eb
2,208
/* * (c) Copyright 2015 Micro Focus or one of its affiliates. * * Licensed under the MIT License (the "License"); you may not use this file * except in compliance with the License. * * The only warranties for products and services of Micro Focus and its affiliates * and licensors ("Micro Focus") are as may be se...
43.294118
161
0.779891
61044ce8bea43617b2aec3be60cd84712d178cef
363
package de.siebn.javaBug.util; public class JsUtil { public static String getSelector(XML xml) { String id = xml.getId(); return id == null ? null : "#" + id; } public static String getJQuerySelector(XML xml) { String selector = getSelector(xml); return selector == null ? ...
22.6875
67
0.578512
4669ad24783650252e0df5624bdc5b1bf6a153a0
603
package org.activiti.bpmn.model; public class Assignment extends BaseElement { protected String from; protected String to; public String getFrom() { return from; } public void setFrom(String from) { this.from = from; } public String getTo() { return to; } public void setTo(String to)...
17.228571
53
0.666667
60ecf4ea99c1d3cea8c91b6ac3472e7cf765ddf3
1,936
package io.github.jitwxs.easydata.core.mybatis.action; import io.github.jitwxs.easydata.common.cache.PropertyCache; import io.github.jitwxs.easydata.common.enums.ClassDiffVerifyStrategyEnum; import io.github.jitwxs.easydata.common.exception.EasyDataException; import io.github.jitwxs.easydata.core.verify.EasyVerify; im...
34.571429
90
0.733471
08bebc9b3f153ba4d461427dd26c275aafb25b98
3,299
/* * Copyright 2022 Whilein * * 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...
27.957627
100
0.636557
57c7f7f38c35b3fcc268e9a6cd71d00633d682da
1,361
package pratica_facul; import java.util.Scanner; public class Questao08 { public static void main(String[]args){ Scanner teclado = new Scanner(System.in); int v2[] = new int[3]; int dia; int mes; int ano; int i; ...
24.303571
83
0.392359
c3f3805fdcf515d12cbc41253af40f8cdb061f36
3,440
package com.infoclinika.mssharing.model.internal.entity; import com.infoclinika.mssharing.platform.entity.AbstractPersistable; import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode; import javax.persistence.*; import java.util.Date; @Entity @Table(name = "storage_usage_statistics") publi...
24.571429
69
0.593314
6aea01c557b31d5f0ed92a66f54a5250db65327d
456
package bi.know.kettle.neo4j.steps.split; import org.pentaho.di.core.row.RowMetaInterface; import org.pentaho.di.trans.step.BaseStepData; import org.pentaho.di.trans.step.StepDataInterface; import java.util.List; public class SplitGraphData extends BaseStepData implements StepDataInterface { public RowMetaInterfa...
26.823529
79
0.820175
d359a9f9bb15389dc04efa29bcdc08f6a06eb62e
2,290
/********************************************************************* * Copyright 2010, UCAR/Unidata * See netcdf/COPYRIGHT file for copying and redistribution conditions. * $Id$ * $Header$ *********************************************************************/ package unidata.ast.runtime; // Wrapper cla...
23.131313
73
0.537555
cbcab29cecfa102cc9241d46d5e8e804f3cca22e
206
package de.schleger.boiler.heat; import de.schleger.boiler.config.HeatPower; public interface HeatTimeInterpolator { public Float interpolateTimeToHeat(float deltaTemperature, HeatPower heatPower); }
25.75
84
0.825243
eadbf4fceba51f78a2e83547693fe510833fdbfb
515
package everything.AI.AICards; import everything.Player; import everything.Card; import java.util.Random; /** * Created by Steve on 4/17/2017. */ public class GoblinStrike extends Card { public GoblinStrike(){ super("Goblin swings wildly, dealing 1-8 damage", "Goblin Strike", "Attack", 0,0, false); ...
23.409091
97
0.656311
c77bd5e317f78ef1b5646eb934b750501cd2621f
1,733
/* * Copyright 2011 SpringSource * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
31.509091
108
0.704559
3121b8e94848494d19516c4963cfa43f94dd730e
915
package com.avalith.hotelo.utils; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Validator { public static boolean isValidPassword(final String password) { Pattern pattern; Matcher matcher; final String PASSWORD_PATTERN = "^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(...
26.142857
92
0.597814
2642ab6557fc8e2af2a23ccbc64e6411cd90cd1a
3,968
package com.zoomulus.speakeasy.sdp.messages; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import java.net.Inet4Address; import java.net.InetAddress; import java.net.UnknownHostException; import java.nio.ByteBuffer; import java.u...
32
139
0.648942
feb5555ee27cd4acfc5e1f2dc490787c92cdac69
691
package cn.lee.leetcode.probolems.g1; import lombok.extern.slf4j.Slf4j; /** * @Title: Q167 * @Description: https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/ * @author: libo * @date: 2020/9/15 22:48 * @Version: 1.0 */ @Slf4j public class Q167 { public int[] twoSum(int[] numbers, int target)...
23.827586
83
0.477569
e1f561482d660c4b68a8600b8769e4a289ff0540
4,871
package org.protege.osgi.jdbc.prefs; import org.osgi.framework.BundleContext; import org.osgi.util.tracker.ServiceTracker; import org.protege.editor.core.prefs.Preferences; import org.protege.editor.core.prefs.PreferencesManager; import org.protege.editor.owl.ui.preferences.OWLPreferencesPanel; import org.protege.osgi...
36.901515
120
0.690618
08c16200b35e513c3e4eb63932c4e061c566dd4e
8,767
package org.python.types; public class DictKeys extends org.python.types.FrozenSet { static { org.python.types.Type.declarePythonType(DictKeys.class, "dict_keys", null, null); } @Override public org.python.Object __hash__() { throw new org.python.exceptions.AttributeError(this, "__hash...
35.068
121
0.617315
bc573c61ce146ce2c1b3561e767eebc02c62091e
654
package com.websocket.user; /** * Date: 2020/9/8 Ahming */ public class OnlineWsUserConstants { private OnlineWsUserConstants(){} /** * 用户信息 hash 键模板. * %s: 频道id * %d: 用户uid */ public static final String USER_HASH_KEY_PATTERN = "wstc:u:h:%s:uid:%d"; /** * 在线用户 uid set 键前缀. ...
20.4375
76
0.593272
8ca93482cbc42b1c8f798214e5a1717f6e1f3e89
15,159
/* * Copyright 2018 Pivotal, 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 t...
46.357798
175
0.734679
ced39c7dfc7c6bb1c9cee9022d0ac5fb99fdf78f
2,747
package ubiquigame.games.curve_fever; import java.util.ArrayList; import java.util.List; import java.util.Random; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Pixmap; import com.badlogic.gdx.graphics.Pixmap.Format; import ...
26.931373
116
0.740808
2d6693d058c0db81d511487b3ab3edb015ca6784
4,222
/* * Copyright 2015-2016 Smithsonian Institution. * * 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/ * * This software and accompanying documentation is su...
41.392157
93
0.731881
eda6c3492b13f4f001401836b000829f262a28f8
17,464
package com.checkmarx.intellij.tool.window; import com.checkmarx.intellij.*; import com.checkmarx.intellij.commands.results.ResultGetState; import com.checkmarx.intellij.commands.results.Results; import com.checkmarx.intellij.components.TreeUtils; import com.checkmarx.intellij.project.ProjectResultsService; import com...
39.069351
148
0.624427
0f1b535f39ca8cf20ac1d18833e436dcbe8c04d4
4,210
package com.weique.commonres.utils.commonutils; import com.jess.arms.integration.IRepositoryManager; import com.jess.arms.mvp.IView; import com.weique.commonres.base.BaseResponse; import com.weique.commonres.base.commonbean.QuestionBean; import com.weique.commonres.base.commonbean.UploadFileRsponseBean; import com.wei...
42.959184
128
0.607363
1c2db69ac865fd2e42267dcc4f26bc19f452c736
2,692
package com.silverbullet.msg.ws.service.impl; import com.silverbullet.msg.ws.service.IWSMessageService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import javax.websocket.Session; import java.io.IOException; import java.util.concurrent.CopyOnWriteArraySet; i...
23.008547
121
0.596954
d0b2de0d4865b7994e290a46da3cc58a7cc2065d
1,795
package org.keithkim.safeql.sample.projects; import org.jdbi.v3.core.mapper.reflect.ConstructorMapper; import org.keithkim.safeql.statement.TableDbRegistry; import java.util.ArrayList; import java.util.List; import java.util.Set; import static java.util.Collections.singletonList; import static java.util.stream.Colle...
35.196078
117
0.632869
69657d67785863cc65b89c574b5d42803a3274aa
159
package com.artclod.common.base; public interface Product extends Iterable<Object> { public int productArity(); public Object productElement(int n); }
15.9
51
0.761006
0c89e98d14584b19d5c26205f26d32a17f046762
3,058
package com.fdreyfs.tenancy.demo; import java.util.HashMap; import java.util.Map; import javax.persistence.EntityManagerFactory; import javax.persistence.spi.PersistenceProvider; import javax.sql.DataSource; import org.eclipse.persistence.config.BatchWriting; import org.eclipse.persistence.config.PersistenceUnitProp...
44.318841
136
0.816874
47b5c6532dd2343a13ce9914530c605aad6c9603
1,515
/** * 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...
35.232558
89
0.738614
552c7a1ee071b6310e09427472a15ac6fb80a5b0
1,519
package mage.cards.w; import java.util.UUID; import mage.MageInt; import mage.abilities.common.DealsDamageToOpponentTriggeredAbility; import mage.abilities.effects.common.PutCardFromHandOntoBattlefieldEffect; import mage.abilities.keyword.DoubleStrikeAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo;...
30.38
138
0.738644