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
eb1ec72e543398ab46c66b54812ed09d00337a2d
3,515
package com.micmiu.hadoop.mr.demo; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configured; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.LongWritable; import...
31.666667
107
0.737411
b6cb23723fe942bcffca2660fad8b3f96724aa66
3,126
package com.twitter.hraven; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; /** */ public class TestFlow { private static final String CLUSTER = "cluster@dc"; private static final String USER = "testuser"; private static final String APP_ID = "tes...
40.076923
106
0.690339
53bfbe400549968125fcf772669cb911dce8aba0
5,914
package com.ensoftcorp.open.commons.ui.views.smart; import java.util.HashSet; import java.util.Set; import com.ensoftcorp.atlas.core.indexing.IIndexListener; import com.ensoftcorp.atlas.core.indexing.IndexingUtil; import com.ensoftcorp.open.commons.ui.log.Log; import com.ensoftcorp.atlas.core.query.Q; import com.enso...
30.173469
126
0.757355
d65224c7f61ff8b6440aec7ae4d640bb12bcaaf3
1,855
package com.unascribed.fabrication.mixin.e_mechanics.obsidian_tears; import java.util.Optional; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; ...
41.222222
153
0.78221
3e42b13b33bc76e42e910526691f449a9c4ca9db
1,717
package io.kpow.secure; import clojure.java.api.Clojure; import clojure.lang.IFn; import java.util.Properties; public class Decoder { /** * Decode payload > text with key taken from environment variable KPOW_SECURE_KEY **/ public static String text(String payload) { IFn require = Clojure.v...
35.770833
92
0.649971
361622fb666511f5e781b7f513ea26228a5091e3
351
package com.nattguld.tasker.util; /** * * @author randqm * */ public class Misc { /** * Makes the current thread sleep for a given amount of time. * * @param ms The milliseconds to sleep. */ public static void sleep(long ms) { try { Thread.sleep(ms); } catch (InterruptedException e) { //...
13.5
62
0.615385
8d9cbfe1e7343dcafeafe2c8a493bb1115f54ff0
3,768
/* * Copyright 2021 - 2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
35.885714
102
0.667728
b251ddd6017508323ac333a43a126552cf2b0eb3
665
package io.gomint.server.inventory.item; import io.gomint.inventory.item.ItemType; import io.gomint.server.registry.RegisterInfo; import io.gomint.world.block.data.BlockColor; /** * @author geNAZt * @version 1.0 */ @RegisterInfo(sId = "minecraft:wool", id = 35) public class ItemWool extends ItemStack implements io...
22.166667
86
0.690226
b3928fa8dbbdeea0a0d6cb4d4399173de9605acd
3,565
package com.tajkun.ad.search.index; import com.alibaba.fastjson.JSON; import com.tajkun.ad.binlogrel.constant.OpType; import com.tajkun.ad.common.export.ExportConstant; import com.tajkun.ad.common.export.table.*; import com.tajkun.ad.search.handler.LevelDataHandler; import org.springframework.context.annotation.Depend...
38.75
100
0.670407
167d8d1ad9477cceca3b2d200017f41baa3a1f44
1,706
package com.fr.swift.cloud.config.entity.key; import javax.persistence.Column; import javax.persistence.Embeddable; import java.io.Serializable; /** * @author yee * @date 2018/7/3 */ @Embeddable public class SwiftSegLocationEntityId implements Serializable { private static final long serialVersionUID = 214551...
25.088235
93
0.628957
83d5453dc643066a8a23e1ad6627ee220df2888e
2,293
/** * Copyright (C) 2014-2015 LinkedIn Corp. (pinot-core@linkedin.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 * * Unle...
34.742424
120
0.756651
561181d98e39b7de3387c6bf34337f48ce35b9de
5,974
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 ...
16.102426
810
0.798795
8ada1eb364e2afa3c082984b9125518e0a81525b
2,296
/* * 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...
34.268657
97
0.6777
673dc1a3cf3b8c0df5cdcdcc4f13eaa39733f83c
126
package cn.skyui.practice.bytecode; public class ByteDemo { private int a = 1; protected void testMethod() { } }
15.75
35
0.666667
be3bf1c3f5b247eea6573cc79c9c1c84dd57eb4d
176
package ingredients.cobertura; public class Cebola implements Cobertura { @Override public String getNome() { // TODO Auto-generated method stub return "Cebola"; } }
14.666667
42
0.732955
ae2d7a58848726c7dc92ae39bbbb582caf6bdb89
1,332
/* * Copyright 2007-2021, CIIC Guanaitong, Co., Ltd. * All rights reserved. */ package com.ciicgat.api.core.model; /** * Created by August.Zhou on 2017/7/31 10:36. */ public class TestBean { String text; int integer; public TestBean(String text, int integer) { this.text = text; this...
20.181818
81
0.545045
0d37d0725ecfc730876f7786b7697d87e6d42f03
2,145
package se.fnord.jamon.internal; import java.util.ArrayDeque; import java.util.Collection; import java.util.Deque; import java.util.Iterator; import se.fnord.jamon.Node; import se.fnord.jamon.Path; public class PathStack { private static final Holder EMPTY = new Holder(null, new ArrayDeque<Node>(0)); private stat...
23.833333
79
0.664336
0ae671085d1621f3aadf470d4c8c90f3217f40ef
1,328
package com.binlee.design.flyweight; /** * @author binli sleticalboy@gmail.com * created by IDEA 2020/11/16 */ public final class SharedBike { private static final int MAX_SIZE = 10; private static final SharedBike[] POOL = new SharedBike[MAX_SIZE]; private boolean inUse = false; public String qrC...
25.056604
70
0.448795
2cd846ecc85f2cfd73b99c04cf373370affe0112
1,492
package leetcode.weekly_contests.weekly_197; public class P_1515 { private static final int[][] DIRS = { { 0, 1 }, { 0, -1 }, { 1, 0 }, { -1, 0 } }; double lowerLimit = 1e-5; public double getMinDistSum(int[][] positions) { final int n = positions.length; final double[] curr = { 0.0, 0.0...
31.744681
111
0.474531
776741067369cb40b146846d4f2790b6ce514bd4
479
package com.xiao.aop.advisor; import org.aopalliance.aop.Advice; import org.springframework.aop.Pointcut; import org.springframework.aop.PointcutAdvisor; public class MyBeforeAdvisor implements PointcutAdvisor { @Override public Pointcut getPointcut() { //自定义切点 return null; } @Overrid...
19.16
57
0.663883
e824421dc99134a8849faa4f59c3b0239101f53c
303
package wy.rest.addons.zcgl.cpncata.dao; import com.baomidou.mybatisplus.mapper.BaseMapper; import wy.rest.addons.zcgl.cpncata.model.Xyd_cpn_cata; /** * 入驻企业Mapper接口 * * @author wyframe * @Date 2017-09-06 18:41:54 */ public interface Xyd_cpn_cataMapper extends BaseMapper<Xyd_cpn_cata> { }
18.9375
71
0.752475
d439987e8c6ce825c5c800b0977ee309a74965db
2,549
/* * Copyright 2019 Miroslav Pokorny (github.com/mP1) * * 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 applic...
25.49
91
0.666928
0ec1fb869dda6413878d148653085e2c7d76af92
371
package myproject; public class Average { public static void main(String[] args) { long n; int i; double res=0; n=args.length; for (i=0; i<n; i++) { res = res + Integer.parseInt(args[i]); } System.out.println("Average of ("); for (i=0; i<n-1; i++) { System.out.println(args[i]+ ","); ...
15.458333
41
0.560647
69c2a28ae02d6c391c8de0851f7fd5143e09aa03
633
package June2021AppleLeetcode; import java.util.Arrays; public class _0239SlidingWindowMaximum { public static void main(String[] args) { System.out.println(Arrays.toString(maxSlidingWindow(new int[] { 1, 3, -1, -3, 5, 3, 6, 7 }, 3))); System.out.println(Arrays.toString(maxSlidingWindow(new int[] { 1 }, 1))); ...
30.142857
99
0.690363
4fa9d726c461c6a53d44e3abbaa7f9037c7e2dfe
1,239
package playstudios.security.filters; import com.auth0.jwt.JWT; import com.auth0.jwt.algorithms.Algorithm; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.core.Authentication; import org.springframework.security.web.authentication.www.BasicAuthenticationFil...
37.545455
132
0.782889
67b6730d9b1548d19df531999cb7a3e1a6f2a420
6,368
/** * Copyright (C) 2014 Telenor Digital AS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
27.929825
87
0.62343
e759a55bbc7b8981aa9222fdc6e140c5aec4245e
2,618
package org.karlsland.m3g; public class AnimationTrack extends Object3D { public final static int ALPHA = 256; public final static int AMBIENT_COLOR = 257; public final static int COLOR = 258; public final static int CROP = 259; public final static int DENSITY =...
36.873239
113
0.65699
c577ec74209ee3b9bfb50a38a7224618f9568fd2
362
package com.leeseojune53.citylife.Exceptions; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(value = HttpStatus.CONFLICT, reason = "Overlap") public class UserAlreadySignupExceptions extends RuntimeException{ public UserAlreadySignupExcep...
30.166667
66
0.792818
d0d5910ca81dfa4e70aa8cb6532ac6b852e668ff
181
package com.smatechnologies.opcon.commons.serializer; /** * @author Pierre PINON */ public interface ISerializer<T> { String serialize(T value) throws SerializeException; }
18.1
56
0.751381
3558050109cce3f66bdef899f3589d379e1a62bc
933
package com.richer.thirteenwater.Activity; import android.content.Intent; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.richer.thirteenwater.R; public class RuleActivity extends AppCompatAc...
26.657143
68
0.687031
9f63500fc8535a2608fb8729f6d18a59f6bbea5c
4,196
/* * Copyright (C) 2009 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...
27.788079
84
0.649666
e9ca02abb4d39b46af08caef68d673b4cc969abd
473
package com.quorum.tessera.p2p; import static org.mockito.Mockito.mock; import com.quorum.tessera.config.Config; import com.quorum.tessera.core.api.ServiceFactory; import com.quorum.tessera.transaction.TransactionManager; public class MockServiceFactory implements ServiceFactory { @Override public TransactionMa...
22.52381
59
0.782241
9f6bf46331fdf4bbece8de5a22c1368fcd652631
14,934
package com.example.ownclient; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.annotation.SuppressLint; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.DialogInterface; import android.graphics.Point; import android...
33.78733
140
0.496987
8da9ee615ebea33341cdebe7b335fd2b6b1f5e5d
5,089
/* * Copyright (c) 2012 Jan Kotek * * 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 agre...
32.414013
125
0.693653
b08d58d1b481f446d70759df100e015e3a61e4c1
1,886
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.10 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * -----------------------------...
34.290909
148
0.694062
46b0241a8c79973d12370ac6f057ba3c688d0c4e
11,188
package org.zky.zky.widget.surfaceview; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Point; import andro...
33.698795
256
0.571416
fc03d1d1bddcaab53214db97566f627d738a2cd4
730
package type; /** * Represents a user-defined class in the OXi type system. */ public class ClassType extends FieldType { private String id; public ClassType(String id) { this.id = id; } public String getID() { return new String(id); } @Override public boolean isCl...
18.25
60
0.565753
02de55be9866af21357995f4964a04482f78707a
247
package com.github.thriveframework.thrive.example.stats; import lombok.Data; @Data public class Stats { private long total = 0; private long count = 0; public void addItem(long size){ total += size; count++; } }
16.466667
56
0.639676
d4cbcc16f4c56a663f72e0f771c2ffa7cd6d73fa
1,367
package org.jivesoftware.openfire.trustcircle; import java.io.File; import java.security.cert.X509Certificate; import java.util.Collections; import org.apache.commons.io.IOUtils; import org.directtruststandards.timplus.common.cert.CertUtils; import org.directtruststandards.timplus.common.cert.Thumbprint; import org.j...
32.547619
131
0.807608
d1a7c61f5b224022c384e8e584dafac1efe698b8
3,026
package com.yusys.bione.frame.message.entity; import java.io.Serializable; import javax.persistence.*; import java.sql.Timestamp; /** * The persistent class for the BIONE_MSG_NOTICE_INFO database table. * */ @Entity @Table(name="BIONE_MSG_NOTICE_INFO") public class BioneMsgNoticeInfo implements Serializable { p...
21.309859
69
0.77462
2a793a98215244c0f959e75edf958b35f2671b4a
597
package com.github.byference.tinyrpc.core.annotation; import com.github.byference.tinyrpc.core.listener.RpcApplicationContextListener; import com.github.byference.tinyrpc.core.spring.TinyRpcScannerConfigurer; import org.springframework.context.annotation.Import; import java.lang.annotation.*; /** * enable rpc clien...
25.956522
80
0.809045
e98b3f34151cb650ae64e71a191b5166ba57ad9f
582
package com.tramchester.integration.testSupport; import com.tramchester.config.GraphDBConfig; import java.nio.file.Path; public class GraphDBTestConfig implements GraphDBConfig { private final Path fullpath; public GraphDBTestConfig(String subFolderForDB, String dbFilename) { Path containingFolder =...
23.28
72
0.716495
99b95ead2bd9b62466ff4573e5c26095f882f504
2,267
package org.wx.sdk.card.request; import org.wx.sdk.base.Request; import org.wx.sdk.card.respone.CardPayCellSetRespone; import java.util.HashMap; import java.util.Map; /** * <p>设置买单接口请求对象 * <p>创建卡券之后,开发者可以通过设置微信买单接口设置该card_id支持微信买单功能。 * 值得开发者注意的是,设置买单的card_id必须已经配置了门店,否则会报错。 * <p>注意事项: * <p>1.设置快速买单...
22.445545
99
0.601676
95a0ae905166917ac391f3500022dab77ea6583b
3,601
/* * Copyright 2015 SATO taichi * * 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.760331
76
0.72952
b80be72a21d5e28d125f70402107ea885c98210d
611
/* * 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 br.com.petshop.dao; import java.util.List; import org.hibernate.HibernateException; import org.hibernate.Session; import br.c...
25.458333
87
0.759411
722de4e64286d3b98cb161f16a326545a8ea7dee
7,955
package org.bch.c3pro.server.external; import com.amazonaws.services.sqs.model.MessageAttributeValue; import org.apache.commons.codec.binary.Base64; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.bch.c3pro.server.config.AppConfig; import org.bch.c3pro.server.exception.C...
40.380711
120
0.666248
339a455e2680900f68547d4c65ccc1b656b0931d
1,579
package com.minhtetoo.PADCMMNEWS.data.model; import com.minhtetoo.PADCMMNEWS.Utils.AppConstants; import com.minhtetoo.PADCMMNEWS.data.VO.NewsVO; import com.minhtetoo.PADCMMNEWS.events.RestApiEvents; import com.minhtetoo.PADCMMNEWS.network.MMNewsDataAgentImpl; import org.greenrobot.eventbus.EventBus; import org.greenr...
19.987342
81
0.676377
dbd7c3e8eab49e0e5b6396af71a7d05fa8e38479
149
package org.wavecraft.ui.events; public enum UiEventMenu implements UiEvent { QUIT, START_NEW_GAME, NAV_MENU_OPTIONS, NAV_MENU_MAIN, RESUME_GAME }
24.833333
67
0.825503
465728c61f10dc12d16a71c01d5e9019b2566d7a
5,476
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.services.sessions.model; import java.util.Enumeration; import java.util.Set; import...
27.517588
120
0.639701
ec9264d5da38b3fd10d017819111b6206184b60b
2,445
package cmps252.HW4_2.UnitTesting; import static org.junit.jupiter.api.Assertions.*; import java.io.FileNotFoundException; import java.util.List; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import cmps252.HW4_2....
25.46875
81
0.730879
8e43095a1a28e377ab03b5bb4d36523bf85c3ea0
1,301
package com.gitee.passerr.leetcode.problem.algorithm.page1; import java.util.Arrays; /** * 假设按照升序排序的数组在预先未知的某个点上进行了旋转。 * ( 例如,数组 [0,1,2,4,5,6,7] 可能变为 [4,5,6,7,0,1,2] )。 * 搜索一个给定的目标值,如果数组中存在这个目标值,则返回它的索引,否则返回 -1 。 * 你可以假设数组中不存在重复的元素。 * <p> * 你的算法时间复杂度必须是 O(log n) 级别。 * 示例 1: * 输入: nums = [4,5,6,7,0,1,2], targe...
24.092593
88
0.50269
9fe31e0d5f059bfa6be9d6ae14728b52b7f93885
3,709
package com.atolcd.alfresco.filer.core.test.content; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.platform.engine.discovery.DiscoverySelectors.selectClass; import static org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder.request; import java.util.Optional; import or...
42.147727
121
0.765705
e79294b888c4fc747cff55130dd9400ae7cbca2b
3,000
// Copyright (c), 2013, adopus consulting GmbH Switzerland, all rights reserved. package com.purej.vminspect.http.server; import java.lang.management.ManagementFactory; import javax.management.ObjectName; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.servlet.ServletContextHandler; import org....
46.875
150
0.734667
c9e9bba87a8186107c698cd854dd9d13cd92badb
215
package com.jegarn.jegarn.packet.base; public class Notification extends HasSubTypePacket{ public static final String TYPE = "notification"; public Notification(){ this.type = TYPE; } }
23.888889
54
0.683721
41ad493a448b34a88cfbca07a3933496fc7ff399
1,672
/* * Copyright 2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
26.539683
75
0.66567
83689b253a2535f08defbca7bd90c12049c30484
696
package com.taotao.cloud.file.propeties; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.context.config.annotation.RefreshScope; /** * 七牛云文件服务Properties * * @author dengtao * @date 2020/10/26 09:39 * @since v1.0 */ @Data @RefreshSc...
18.810811
75
0.672414
907887d51fb23613d130fa790aea8aad0a49195b
384
package ftw.strategy.applicator; import ftw.simulation.model.SimulationResult; import ftw.stock.ExchangeRate; import ftw.stock.data.reader.DataUnit; import ftw.strategy.model.Strategy; import java.math.BigDecimal; import java.util.Collection; import java.util.List; public interface IStrategyApplicator { void ap...
21.333333
45
0.807292
afaf585bd8d71a590be43eca55c2e5738f7e97d0
397
package cn.alphahub.mall.order.feign; import cn.alphahub.common.constant.AppConstant; import cn.alphahub.mall.ware.api.WareSkuApi; import org.springframework.cloud.openfeign.FeignClient; /** * sku库存 * * @author liuwenjing * @version 1.0 * @date 2021/05/07 */ @FeignClient(value = AppConstant.WARE_SERVICE, contex...
23.352941
75
0.770781
6c06ef81f6cefac29672e075cd574378e52a2032
2,302
/* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved. The MySQL Connector/J is licensed under the terms of the GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most MySQL Connectors. There are special exceptions to the terms and conditions of the GPLv2 as it is appl...
30.693333
92
0.728497
ca0e849459e9e8562fef70359ae10037d9e26953
22,411
/** * 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...
49.802222
120
0.709339
9d8f7e734627d148c5a1420d6a1461d7533f4c40
1,320
package com.kkb.solr.demo; import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.impl.HttpSolrServer; import org.apache.solr.client.solrj.response.QueryResponse; import org.apache.solr.common.SolrDocument; import org.apache.solr.common.SolrDocumentList; import org.junit.Before; imp...
26.4
78
0.665152
2d17168ba67c2074b880159075c5ac173aa4db3a
3,592
/* * 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 ...
44.345679
103
0.77784
556ccc831859aed0b9aa9312ffb97c139557fc33
8,047
/* * Copyright 2018 Benjamin Martin * * 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 ...
43.032086
130
0.538586
cf9cc5646f8ecc77c1b42d09e4e6abc3ba377519
213
package org.sagebionetworks.web.client.widget.entity.controller; public interface URLProvEntryView extends ProvenanceEntry { String getURL(); void configure(String title, String url); String getTitle(); }
17.75
64
0.788732
42fb83ea22568bf1f516f3dbee58c497164f27e1
2,538
package com.github.mictaege.lenientfun; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import java.util.List; import java.util.function.ToIntBiFunction; import static com.github.mictaege.lenientfun.LenientAdapter.toIntBiFunc; import static org.mockito.Mockito.verify; import static org.mocki...
29.511628
128
0.662333
8fe472e65e237bd7287cd6753a84ef182ffa87ea
1,404
package persistencia; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; /** * @author Maikel Maciel Rönnau * @version 1.0 * @since 06/01/2015 */ public class ConexaoBanco { /*** Atributos estáticos com os dados da conexão com o banco de dados *****/ //Ende...
29.25
96
0.606125
854f73d6a161cafc5ab2e182af23692309196b0c
67,546
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...
14.217217
815
0.789151
3e4390c16f3ac7a4c2fc8a6cb363eb043ca34847
7,953
/* Soot - a J*va Optimization Framework * Copyright (C) 2002 Sable Research Group * * 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 ...
24.02719
119
0.582422
c0ac7562345de10e77fb2f6c41ff2a4a9aee5791
28,516
package org.apache.xalan.processor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.StringTokenizer; import java.util.Vector; import javax.xml.transform.TransformerException; import org.apache.xalan.res.XSLMessages; import org.apache.xalan.templates.AVT; import org...
37.178618
215
0.610043
714d378cac7a92be85bba2b5053dade17f3061b0
593
package com.laioffer.twitch.service; import com.laioffer.twitch.dao.RegisterDao; import com.laioffer.twitch.entity.db.User; import com.laioffer.twitch.util.Util; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.io.IOException; @Service public c...
28.238095
85
0.777403
29f9a10cd594ec6b77e90efc082e23d7422f13ee
3,153
package org.dump2csv; import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVPrinter; import org.h2.jdbcx.JdbcDataSource; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; import java...
32.173469
116
0.640977
74c08111f8c75941bcc459ffda1ee01034662763
2,060
package seedu.address.logic.parser; import static java.util.Objects.requireNonNull; import static seedu.address.logic.parser.CliSyntax.PREFIX_EMAIL; import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME; import static seedu.address.logic.parser.CliSyntax.PREFIX_PHONE; import seedu.address.logic.commands.Edit...
42.916667
109
0.737864
05ee8072868819971ef445b56e64dcb57087740d
392
package jp.co.canon.rss.logmanager.scheduler; import jp.co.canon.rss.logmanager.exception.ConvertException; import jp.co.canon.rss.logmanager.vo.job.StepEntity; import java.io.IOException; public interface SchedulerStrategy { void runStep(StepEntity stepEntity, boolean manual) throws ConvertException, IOExceptio...
32.666667
93
0.813776
7029390ddd0e3f8b89b8c7a78c6844cda97df05e
134
package cn.printf.springbootboilerplate.usercontext.domain; public interface PasswordEncoder { String encode(String password); }
22.333333
59
0.813433
ca07ee6bea992c900fb8f11df2c6cf61086c05a3
1,465
package cryodex.modules.mus; import cryodex.CryodexController; import cryodex.modules.Tournament; import cryodex.xml.XMLObject; import cryodex.xml.XMLUtils; import cryodex.xml.XMLUtils.Element; public class MusOptions implements XMLObject { boolean showKillPoints = true; boolean enterOnlyPoints = true; public Mus...
23.253968
68
0.752901
6e455dd39636e850c8f0e4709869f613f0738f99
1,497
package com.sappsoftwaresolutions.OOMenu; public class Main { public static void main(String[] args){ //create main menu leaves MenuItemComponent leaf1 = new MenuItemLeaf("Leaf1"); MenuItemComponent leaf2 = new MenuItemLeaf("Leaf2"); MenuItemComponent leaf3 = new MenuItemLeaf("Leaf3"); MenuItemComponent l...
41.583333
111
0.781563
2fa0854c9324e37883cddb4ae9b7bf3c52cc5c14
8,663
package rhomobile.bluetooth; import java.io.IOException; import net.rim.device.api.bluetooth.BluetoothSerialPort; import net.rim.device.api.bluetooth.BluetoothSerialPortInfo; import net.rim.device.api.bluetooth.BluetoothSerialPortListener; import net.rim.device.api.ui.component.Status; import net.rim.device.api.util....
30.719858
316
0.617338
e42369b8da41e71389021f84e7f856d27776535b
375
package com.atguigu.gmall.sms.mapper; import com.atguigu.gmall.sms.entity.SkuLadderEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 商品阶梯价格 * * @author guiban * @email guiban@atguigu.com * @date 2020-10-28 17:11:25 */ @Mapper public interface Sku...
20.833333
70
0.765333
a3d54c36b3d07b8cafd40af214f03af067b4a9b7
166
package com.atguigu.ioc.component.base; public class BaseRepository<T> { public void save() { System.out.println("saved by base repository..."); } }
16.6
53
0.662651
70fbba005a8abba4e25bf9fe824040d6591447be
994
/* * Copyright 2019 Immutables Authors and Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
30.121212
75
0.721328
c2479df6490b65d6ebcbafc5b7d64de6f44567b4
5,339
package com.skytala.eCommerce.domain.shipment.relations.picklist.control.item; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import javax.servlet.http....
35.832215
151
0.779547
dd68f23839e9c2125d5b20dfa50f5a08246b7883
1,053
package CEform.P; import java.util.ArrayList; import parsing.ParseException; import parsing.Token; import parsing.Tokenizer; import Lustre.Logic; import Lustre.Lustre; import Lustre.Node; import QDDC.QDDC; import QDDC.G.G; public class Rising extends P{ P p; public int parse(ArrayList<Token> t...
22.891304
100
0.660019
46d45bf70a7fa21747dbe3ec19c7ecb7f4be20f4
310
package cn.javava.live.repository; import cn.javava.live.entity.Stream; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.repository.Repository; public interface StreamRepository extends Repository<Stream, String>, JpaSpecificationExecutor<Stream> { }
31
104
0.845161
b3332916224352743de4447b8878016c3a7c4c9a
874
package scraper.image; import java.awt.Component; import javax.swing.DefaultListCellRenderer; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JList; import statics.ImageUtils; /** * @author Daniel J. Rivers * 2014 * * Created: Apr 30, 2014, 11:54:49 PM */ p...
29.133333
132
0.712815
87417b4e550a99934408965fcb8f70811aebb381
2,553
package de.fxdiagram.pde; import com.google.common.collect.Iterators; import de.fxdiagram.eclipse.selection.ISelectionExtractor; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.IStructuredSelection; im...
52.102041
360
0.75989
5e3c9cb7f16a364d01340a19d2684f51fd8ba443
1,850
package com.example.demo1.validate; import com.example.demo1.BaseWebTest; import org.junit.jupiter.api.Test; import org.springframework.core.io.DefaultResourceLoader; import org.springframework.core.io.ResourceLoader; import org.springframework.mock.web.MockMultipartFile; import java.io.File; import java.io.FileInput...
44.047619
169
0.705946
ece154598e4bc87822b31eb0bbe26200e375a7a7
1,124
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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...
33.058824
76
0.745552
1579910e233d14f55cbc1c234886573428349252
3,601
/** * Copyright 2009 - 2011 Sergio Bossa (sergio.bossa@gmail.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 ...
31.313043
79
0.628437
c73b1d1d8247c9ba2bb648450537d0cc79ec6aff
1,195
package com.spreadst.devtools.editors.mainentry; import com.intellij.openapi.fileEditor.FileEditor; import com.intellij.openapi.fileEditor.FileEditorPolicy; import com.intellij.openapi.fileEditor.FileEditorProvider; import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.VirtualFile; import org.je...
29.875
104
0.739749
5fd2ceb39390f5872afe03ada95d384940f9bdf9
6,189
package seedu.address; import java.io.IOException; import java.nio.file.Path; import java.util.function.Supplier; import javafx.stage.Screen; import javafx.stage.Stage; import seedu.address.commons.core.Config; import seedu.address.commons.core.GuiSettings; import seedu.address.commons.exceptions.DataConversionExcept...
39.170886
107
0.709969
421bb968c4f4e586da1825a275ce40a3446d433c
9,019
package com.example.administrator.biaozhunban.greendao; import android.database.Cursor; import android.database.sqlite.SQLiteStatement; import org.greenrobot.greendao.AbstractDao; import org.greenrobot.greendao.Property; import org.greenrobot.greendao.internal.DaoConfig; import org.greenrobot.greendao.database.Databa...
37.268595
127
0.600399
f8fb10ad779abf008cf5819c8e20bf6727c0ef80
298
package com.example.redisspringboot.repository; import com.example.redisspringboot.domain.Person; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; @Repository public interface PersonRepository extends CrudRepository<Person, String> { }
29.8
74
0.855705
294108d211bd2ed55b4a854f75dffb5afba88ce7
1,297
package com.xuegao.netty_chat_room_server.tomcat2; import io.netty.buffer.Unpooled; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.http.*; public class WuzzResponse { //SocketChannel的封装 private ChannelHandlerContext ctx; private HttpRequest req; public WuzzResponse(Chan...
29.477273
82
0.552814
b81f2553b4a12bef500076d85b809e97b90c3a0c
1,544
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html */ package org.hibernate.orm.type.descriptor.java.internal; import org.hibernate.orm.type...
26.169492
121
0.766192
da6058926246da9bd4322066c81f121b3ef92742
5,644
package org.adoptopenjdk.jheappo.io; import org.adoptopenjdk.jheappo.objects.*; /* ROOT UNKNOWN | 0xFF | ID | object ID ROOT JNI GLOBAL | 0x01 | ID | object ID | ID | JNI global ref ID ROOT JNI LOCAL | 0x02 | ID | object ID ...
40.898551
110
0.435507
b833d542410835c133307f2bef67674235c5d44d
628
package com.wixpress.petri.experiments.domain; import com.fasterxml.jackson.databind.JavaType; import org.junit.Test; import static org.junit.Assert.assertTrue; /** * Created with IntelliJ IDEA. * User: uri * Date: 4/23/14 * Time: 5:10 PM * To change this template use File | Settings | File Templates. */ publi...
27.304348
89
0.753185
a0f466c1087c41608618ae4b54e3b29542fce9e3
1,003
/** * http://practice.geeksforgeeks.org/problems/number-of-ways/0 * Medium * Given a tile of size 1 x 4, how many ways you can construct a grid of size N x 4. Input: The first line of input contains an integer T denoting the number of test cases. The first line of each test case is N. Output: Print number of po...
16.442623
84
0.62014
92a8ea8fc7385a55a9ce988183d9d3e346ef26ce
1,262
package invisibleinktoolkit.algorithms.gui; import java.awt.Dimension; import java.awt.event.ActionListener; import javax.swing.BoxLayout; import javax.swing.JCheckBox; import javax.swing.JPanel; import javax.swing.border.TitledBorder; public class LSBMatchPanel extends JPanel{ //VARIABLES /** * Generated Ser...
22.945455
78
0.734548
da15a5cdd2a5fb3f41118d8adfe46d26f700c587
6,131
/* * 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.angularjs.bankapp.config; import java.util.Arrays; import org.springframework.beans.factory.annotation.Autowired; ...
41.707483
111
0.715381
0a0c0bb199894b20d9cd434a31035ed65cfd807f
7,201
/** * Copyright 2015 LinkedIn Corp. 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 applica...
32.004444
100
0.700458