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
0d931e15df85d91af68a05b545d0e05673e6af1c
1,621
package org.openecomp.sdc.be.externalapi.servlet.representation; import javax.annotation.Generated; import org.junit.Test; public class ProductCategoryGroupMetadataTest { private ProductCategoryGroupMetadata createTestSubject() { return new ProductCategoryGroupMetadata("", "", ""); } @Test public void tes...
20.518987
64
0.752622
512e284cd0be90934a00f58cab04d49c10188996
1,287
package commenttemplate.template.tags.tags; import commenttemplate.expressions.primitivehandle.NumHandle; import commenttemplate.expressions.tree.Exp; import commenttemplate.context.Context; import commenttemplate.template.tags.ConditionalTag; import static commenttemplate.template.tags.BasicTag.EVAL_BODY; import stat...
23.833333
149
0.749806
e58cf45c8936b7ed3398d454d8d94f7c195185fd
2,233
package quiz.controller; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; import org.springframework.http.MediaType; import org.sprin...
35.444444
112
0.734886
65a03a2e76a7bdc0e47bad42f0aa69fdc95730fa
10,763
package org.broadinstitute.hellbender.tools.walkers.haplotypecaller; import htsjdk.variant.variantcontext.VariantContext; import org.broadinstitute.barclay.argparser.Advanced; import org.broadinstitute.barclay.argparser.Argument; import org.broadinstitute.barclay.argparser.ArgumentCollection; import org.broadinstitute...
57.25
258
0.733067
4348d016a36ad058dcf4a147deb2f9ec74fd03fb
2,315
package me.robotoraccoon.warden; import me.robotoraccoon.warden.books.BookEvents; import me.robotoraccoon.warden.items.ItemEvents; import me.robotoraccoon.warden.ores.OreEvents; import me.robotoraccoon.warden.signs.SignEvents; import me.robotoraccoon.warden.logger.WardenLogger; import me.robotoraccoon.warden.ores.OreM...
30.866667
93
0.675162
8828b33ba52a0249681a73523f670008e4601d9e
418
package pclements; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.dataflow.server.EnableDataFlowServer; @SpringBootApplication @EnableDataFlowServer public class AwsLambdaDataflowServer { public static void ...
27.866667
70
0.820574
fa35615342f1033d55483e4575ffb844f71092dc
1,359
package org.erp.tarak.salesorder; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; @Service("sales...
30.886364
70
0.794702
0e5d976fde0c8531c851ba1565b251da425d0ce6
1,364
package com.github.kristofa.brave.mysql; import com.github.kristofa.brave.ClientTracer; import com.google.common.base.Optional; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.io.IOException; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertSame; i...
28.416667
122
0.767595
e48ea4cac2f3d3c48adaa77ffe3519a096d5859d
243
package com.njuzhy.demo.data; import lombok.Data; /** * @Author stormbroken * Create by 2021/07/07 * @Version 1.0 **/ @Data public class MySystemInfo { Double memoryUsage; Double cpuUsage; Double diskUsage; Long time; }
13.5
29
0.670782
e68a285fe9b89e36a045c68c1bfd514a2bc2265c
138
package com.hkm.slider.Layouts; /** * Created by hesk on 7/3/16. */ public abstract class Decor { public abstract void create(); }
15.333333
34
0.673913
49b89d42a6503fcaef434ab086700d774f2cf20d
693
package vacheck.demo.service; import java.util.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import vacheck.demo.repository.ConsultaRepository; import vacheck.demo.model.*; @Service public class ConsultaService { @Autowired ConsultaRepository consul...
18.72973
62
0.730159
2f3c86503a8d038ae490d8c86cbb854a2e7af294
3,322
package config; public class Constants { private Constants() { } public static final String SKIP_UNSTABLE_TESTS = "SKIP_UNSTABLE_TESTS"; // For Socket Mode, Event Auth APIs public static final String SLACK_SDK_TEST_APP_TOKEN = "SLACK_SDK_TEST_APP_TOKEN"; // Socket Mode public static fina...
60.4
141
0.801023
e9fdf40cafb749aaee82599ff6e41c544175e4d0
4,475
package com.isaacsheff.charlotte.node; import static com.isaacsheff.charlotte.node.PortUtil.getFreshPort; import static java.util.Collections.emptySet; import static java.util.Collections.singletonMap; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTru...
41.055046
104
0.68
afb25555e4113d081815820d1256161b46e5fc8f
7,239
package test; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.net.InetSocketAddress; import java.net.SocketTimeoutException; import java.nio.channels.Channels; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; impo...
32.755656
79
0.550629
0a03109c27f5e3625f88708fa1774f41e0120fec
7,667
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2010, 2012, 2013, 2014, 2016 Synacor, Inc. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software Foundation, * versi...
35.331797
121
0.573758
709ad9cb7d78d465c8324720fc089e6f1a662340
4,732
package com.example.erick.bttest; import java.text.ParseException; /** * Created by ERICK on 07.05.2017. */ public class StringBuilderToBT { /* 'h-' — выкл тэна 'h+' — вкл тэн 'p-' — выкл мешалку 'p+' — вкл мешалку 'c...' — задать время 't...' — задать температу...
34.794118
92
0.499789
b4cfdc09c3a51dec0edc133470d33e1a4db5141e
145
package com.example.feature0.export; import com.blankj.utilcode.util.ApiUtils; public abstract class Feature0Api extends ApiUtils.BaseApi { }
18.125
60
0.813793
136c93c2853b322c0af4a0b194d1486405ec7f23
1,859
package HealthMonitorMng.util; import java.math.BigDecimal; import java.util.HashMap; import java.util.List; import java.util.Map; public class AssessAnalysisUtil { public static Map<String, Double> getAnalysisResult(List<String> totalResult){ int onesum=0; int twosum=0,threesum=0,foursum=0,fivesum=0; ...
33.196429
80
0.699839
8d604f3692cef45ab972840fe2e64e56dd30f59c
21,261
package com.revature.dao; import com.revature.dto.AddReimbursementDTO; import com.revature.model.Reimbursement; import com.revature.model.User; import com.revature.utility.ConnectionUtility; import jdk.nashorn.internal.ir.Assignment; import java.io.InputStream; import java.sql.*; import java.time.Instant; import java...
50.742243
191
0.603688
47d4d04b93645911a34177ed8b29cc8181e29368
810
package org.tview.visualization.redis.cache; import java.util.Map; import org.tview.visualization.cache.impl.FifoCache; import org.tview.visualization.model.redis.RedisConnectionConfig; import org.tview.visualization.redis.singlet.RedisSinglet; /** @see RedisSinglet#getRedisNameConfigCache() */ public class RedisName...
23.142857
84
0.74321
76aee747391faf3f62e1ee2de1c2724a41b55feb
1,896
package org.acme.DTO; import java.util.ArrayList; import java.util.List; public class Service1DTO { String vendeur; int numero_rue; String adresse; int code_postal; int etage; int porte; List<String> ancienProprietaires = new ArrayList<>(); public int getNumero_rue...
22.046512
75
0.544831
8d7a4033482b16047166cba28977e85962df62d9
8,859
/** * 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...
38.855263
122
0.763517
07ee7e6abe59f0a2b283301f2ee4a9529aba2e82
6,693
/** * 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...
33.465
120
0.652323
60c1dd57d949da1f65330ed24592942d4ff079cf
1,255
package org.xlattice.crypto.u; import java.io.File; import java.io.IOException; /** * @author Jim Dixon */ public class Walker { private final Visitor _v; private final String _pathToU; private File _uDir; public Walker( Visitor v, final String pathToU ) throws IOException { if (v ...
27.888889
79
0.550598
d7948ea67c085f16e8c3fe2f11b28894e4b5ec28
2,852
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License") + yo...
34.780488
97
0.743338
d51c235d79c55d4f172ef559a06e993266c38e43
717
package de.atomfrede.mate.service.email; import static org.fest.assertions.api.Assertions.*; import org.apache.commons.configuration.ConfigurationException; import org.junit.Test; import de.atomfrede.mate.service.email.MailConfig; public class MailConfigTest { @Test public void assertThatPropertiesCanBeCreated()...
28.68
79
0.76848
36bd91af325c8a13d0ee482877b1d3ead336c003
973
package x.xx.leetcode.all; import java.util.ArrayList; import java.util.List; /** * 找出所有相加之和为 n 的 k 个数的组合。 * 组合中只允许含有 1 - 9 的正整数,并且每种组合中不存在重复的数字。 */ public class P216CombinationSumIII { List<List<Integer>> ans = new ArrayList<>(); int[] nums = new int[]{1,2,3,4,5,6,7,8,9}; public List<List<Integer>> co...
26.297297
78
0.498458
f76f518dd5d84e1b7fa3bd5d73ecdf9abfa0b6a2
727
package cn.itcast.ssm.po; public class SysRolePermission { private String id; private String sysRoleId; private String sysPermissionId; public String getId() { return id; } public void setId(String id) { this.id = id == null ? null : id.trim(); } public String getSy...
22.030303
87
0.636864
12bcb1240051ea7961f403f0a86301378498701e
2,717
package ru.spbstu.icc.kspt.kuznetsov.tictactoe; import android.app.Activity; import android.app.FragmentManager; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.GridView; import android.widget.Toast; import ru.spbstu.icc.kspt.kuznetsov.tictactoe.g...
38.814286
151
0.646669
d2e53830e3951cec927b5351d8272098e42e989f
3,475
package org.stowers.microscopy.converter; import ij.ImagePlus; import ij.plugin.ZProjector; import org.scijava.command.Command; import org.scijava.command.Previewable; import org.scijava.plugin.Parameter; import org.scijava.plugin.Plugin; import loci.plugins.BF; import org.stowers.microscopy.ij1plugins.FastFileSaver;...
25.740741
104
0.59482
76c20cb3c3dfa478b3a757fd3cbe835a242729a0
416
package com.anooky.testproject; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.annotations.Test; public class GotoAnooky { @Test public void visitAnooky() { System.setProperty("webdriver.gecko.driver", "./geckodriver"); WebDriver driver = new Fir...
21.894737
65
0.71875
98255a4d0ce51ac8deb41dfcbf582b66249d93de
761
package io.gridgo.utils.pojo.setter.data; public interface GenericData { default boolean isNull() { return false; } default boolean isSequence() { return false; } default boolean isKeyValue() { return false; } default boolean isPrimitive() { return false;...
17.697674
41
0.607096
b6e64b735ba640958067f9a2a4c8720139fa5c24
660
package guru.springframework.sfgpetclinic.services.map; import guru.springframework.sfgpetclinic.model.Pet; import guru.springframework.sfgpetclinic.services.PetService; import java.util.Set; public class PetMapService extends AbstractMapService<Pet, Long> implements PetService { @Override public Set<Pet> findA...
18.333333
88
0.743939
085f57e276fe64fe0760c83d300805c8d724d05d
4,269
package com.HuaQiangWeather.App.Activity; import android.content.Context; import android.content.Intent; import android.support.design.widget.AppBarLayout; import android.support.design.widget.CollapsingToolbarLayout; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snack...
35.87395
116
0.668072
4f8efa20d38738794f09be42452712afd5dbdbbd
334
package chp02; public class SumAve1 { public static void main(String[] args) { int x = 63; int y = 18; System.out.println("x的值是" + x + "。"); System.out.println("y的值是" + y + "。"); System.out.println("合计值是" + (x + y) + "。"); System.out.println("平均值是" + (x + y) / 2 + ...
22.266667
55
0.476048
dfc63535c23fffe9f23f5a1014f41f12735b21f5
651
package com.google.common.collect; import java.util.Collection; import java.util.Set; import javax.annotation.Nullable; final class TreeRangeSet$AsRanges extends ForwardingCollection<Range<C>> implements Set<Range<C>> { final /* synthetic */ TreeRangeSet this$0; TreeRangeSet$AsRanges(TreeRangeSet treeRangeSe...
25.038462
99
0.69278
b39cabc7925d618a05a79c70f4af2f70648981dc
5,481
/* * org.riverock.portlet - Portlet Library * * Copyright (C) 2006, Riverock Software, All Rights Reserved. * * Riverock - The Open-source Java Development Community * http://www.riverock.org * * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Pub...
28.107692
104
0.667032
2572c390c7a6c51aa5b17b28a498f766f561786a
554
package com.gridgain.example; public class CityKey { private Integer id; private String CountryCode; public CityKey(Integer id, String countryCode) { this.id = id; CountryCode = countryCode; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getCo...
16.294118
65
0.685921
fb452324a92584147df2b21a464c2d536d18ac5b
4,121
package com.github.appreciated.mvp; import com.googlecode.gentyref.GenericTypeReflector; import com.vaadin.flow.component.Component; import com.vaadin.flow.component.Composite; import com.vaadin.flow.internal.ReflectTools; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; /* * Copyright Vaa...
40.009709
133
0.692308
f49d12ff1f31b075f8de7b066a58b6d83405c23a
1,416
package org.errai.mvp.client.local.common.mvp; import java.lang.annotation.Annotation; import javax.annotation.PostConstruct; import javax.inject.Inject; import org.errai.mvp.client.local.common.mvp.places.EntryPlace; import org.errai.mvp.client.local.common.mvp.places.PlaceManager; import org.errai.mvp.client.local...
34.536585
99
0.739407
f791c469e78340839fd248b18c4fb1ddc2822c2a
1,142
// Copyright © 2011-2019 Andy Goryachev <andy@goryachev.com> package goryachev.common.io; import java.io.EOFException; public class BitStream implements IBitStream { private byte[] bytes; private int index; private static final int[] MASK = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 }; ...
14.641026
61
0.56655
293398f82239d9fd1fb03886032ebd8a2e844d9d
624
package com.holub.database; import java.io.IOException; import javax.xml.parsers.ParserConfigurationException; import org.junit.Test; import org.xml.sax.SAXException; import com.holub.database.XMLImporter; import com.holub.database.ConcreteTable; import com.holub.database.Database; import com.holub.database.Table; ...
24
90
0.772436
0c45368e63cd5fcfcae53e834d65f5be61e0c3fc
273
package com.jt.blog.mapper; import com.jt.blog.dto.CategoryDto; import com.jt.blog.model.Category; import com.jt.blog.mybatis.common.MyMapper; import java.util.List; public interface CategoryMapper extends MyMapper<Category> { List<CategoryDto> getListAndCount(); }
22.75
60
0.787546
e7eafe9a8702bd57336f2afea54a66d54e352345
916
package org.jeecg.modules.business.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import org.jeecg.modules.business.entity.SiteGovFacility; import org.jeecg.modules.business.entity.SiteMonitorDevice; import org.jeecg.modules.business.mapper.SiteGovFacilityMapper; import org.jeecg.mod...
35.230769
136
0.804585
33e05d429b4e085ca1d22fbc7bf28feb9b9564b7
6,686
package aitoa.algorithms; import java.io.IOException; import java.io.Writer; import java.util.Arrays; import java.util.Random; import aitoa.structure.IBinarySearchOperator; import aitoa.structure.IBlackBoxProcess; import aitoa.structure.INullarySearchOperator; import aitoa.structure.ISpace; import aitoa.structure.IUn...
34.112245
76
0.63102
4ec4f7f62da4a2f1d76678251d7d67907fc095d5
1,593
/** * Copyright 2006 Mark Miller (markrmiller@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 * * Unless requir...
32.510204
78
0.667922
cb53e67c60d984bc97b60e71f15efb9a1da5c519
503
package kitkat.auth.repository; import kitkat.auth.model.entity.AuthRoleToAuthorities; import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; import java.util.Optional; import java.util.UUID; @Repository pub...
31.4375
102
0.840954
db640628930a70a9e7ac40323433c9043dfb56f5
860
package org.apache.spark.ml.feature; /** * Class that represents an instance of weighted data point with label and features. * <p> * param: label Label for this data point. * param: weight The weight of this instance. * param: features The vector of features for this data point. */ class Instance implements ...
47.777778
128
0.718605
f08b5e2f00147ff2078791a12c3c6f565b54456c
548
package io.github.edmm.web.model; import java.util.ArrayList; import java.util.UUID; import javax.validation.constraints.NotEmpty; import io.github.edmm.plugins.multi.model.ComponentProperties; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsC...
18.266667
62
0.790146
25363dec690f9afc0afea6fc22b9258b74e9ac5c
1,726
package __TOP_LEVEL_PACKAGE__.client.scaffold.ioc; import __TOP_LEVEL_PACKAGE__.client.managed.request.ApplicationRequestFactory; import __TOP_LEVEL_PACKAGE__.client.scaffold.request.EventSourceRequestTransport; import com.google.gwt.core.client.GWT; import com.google.gwt.event.shared.EventBus; import com.google.gwt.e...
33.843137
107
0.823291
dcf9dbe78594bfc85c34ed63b92f6fd073b55056
1,294
package com.github.rskupnik; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown=true) public class Response { private boolean error; private String url; private String image; private String ext; private String filename; private String delete; ...
17.972222
61
0.600464
81564583ef2a1877ddaa8dfdecfda9a8cec62180
5,146
//package listeners; // //import net.dv8tion.jda.core.EmbedBuilder; //import net.dv8tion.jda.core.entities.Guild; //import net.dv8tion.jda.core.entities.Message; //import net.dv8tion.jda.core.events.guild.GuildJoinEvent; //import net.dv8tion.jda.core.events.message.priv.PrivateMessageReceivedEvent; //import net.dv8tion...
36.496454
162
0.536533
02d14dc6393e16e5880fe3ef84483e8daae58254
12,346
package frc.robot.vision; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.SocketException; import java.nio.ByteBuffer; import java.util.ArrayList; import frc.robot.subsystems.TankDrive; /** * <p><a href="https://github.com/KHS-Robotics/MoePi">MoePi</a> UDP Client to get * retrorefl...
28.251716
119
0.662887
8d7e97185ec0d70907322e4ef5a45785b9a1632b
2,842
package eu.bcvsolutions.idm.ic.impl; import eu.bcvsolutions.idm.ic.api.IcConnectorKey; /** * Uniquely identifies a connector within an installation. Consists of the * quadruple (icType, bundleName, bundleVersion, connectorName) */ public class IcConnectorKeyImpl implements IcConnectorKey { private String framewo...
25.375
109
0.706545
30c888840c7712d43011c06cd5f31f57238b289e
1,124
package com.jww.common.mdb; import com.jww.common.core.Constants; import cn.hutool.core.util.StrUtil; /** * 数据源DbContextHolder * * @author wanyong * @date 2017/11/17 13:31 */ public class DbContextHolder { private static final ThreadLocal<String> CONTEXTHOLDER = new ThreadLocal<String>(); /** * 设置数...
21.615385
87
0.605872
3dbf271b87717309fc48066267f8bb9f5094cd22
229
package de.simonlaux.survey; import java.util.List; public interface SurveyStore { public int add(Survey inhalt); public Survey getbyID(int id); public List<Survey> getAll(int limit); boolean close(); }
14.3125
40
0.689956
ebb109ba496cdce8b3464ee75723c27cdac5cf64
4,148
/* * 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 gestock.resources.views; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.Act...
41.89899
149
0.603905
b2656a5696d97e0033f30ab7349b1daf932e8793
1,275
package com.docomo.purchaserefund.refund; import com.docomo.purchaserefund.exception.PurchaseRefundException; import com.docomo.purchaserefund.model.Purchase; import com.docomo.purchaserefund.model.Refund; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; ...
34.459459
148
0.774902
7a0d573ffc6ad95936120ee9fd02951dea3e3604
6,687
/* * Copyright (c) 2020 Georgios Damaskinos * All rights reserved. * @author Georgios Damaskinos <georgios.damaskinos@gmail.com> * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package apps.lr; import android.util.Log; import coreC...
29.073913
142
0.632122
5587a7f74c06e37445c06aa5344ab2ca5a68d0a1
3,055
package com.example.testmvpapp.sections.launcher; import android.content.Intent; import android.support.v4.view.ViewPager; import android.view.View; import android.widget.Button; import com.bigkoo.convenientbanner.ConvenientBanner; import com.bigkoo.convenientbanner.listener.OnItemClickListener; import com.example.te...
28.820755
120
0.690998
5c77211c73425eca7248aeb1d6016abcca8f1b03
9,205
package com.codes.common.util; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Random; /** * 随机数据工具类 * * @author zhangguangyong * * 2015年11月27日 下午6:28:22 */ @SuppressWarnings({ "unchecked", "rawtypes" }) public class Randoms { static final R...
24.096859
117
0.535361
8f80818a7a183cb72213cb8fc97f70c2808d3da1
3,461
/* * Copyright 2019 James Fenn * * 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 ...
30.359649
88
0.596359
d7a6b45b2d207b098a28ae988d8410be3256fef9
556
package io.undertow.predicate; import io.undertow.server.HttpServerExchange; /** * @author Stuart Douglas */ class OrPredicate implements Predicate { private final Predicate[] predicates; public OrPredicate(final Predicate... predicates) { this.predicates = predicates; } @Override pub...
21.384615
60
0.633094
3ff800d0e32c30d2f23a7aa90853750dba67983e
166
package p; class A{ class Inner{ Inner(){ } Inner(int i){ } } } class I2 extends A.Inner{ I2(){ new A().super(); } I2(int i){ new A().super(i); } }
9.222222
25
0.512048
65d38e2dd83b287770d31c2accddf2a4845ede3c
1,127
package org.springframework.web.reactive.result.method.annotation; import org.springframework.core.MethodParameter; import org.springframework.lang.Nullable; import org.springframework.util.Assert; import org.springframework.web.bind.support.SessionStatus; import org.springframework.web.reactive.BindingContext; impo...
30.459459
95
0.822538
89d705b43d96666c41b7c39ea0e70261c3a062b2
4,630
package com.taopao.tiktok; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget...
33.79562
127
0.65378
f697b601a71c9021b9b934ec6abc0d70f9f74fe7
2,643
package com.plout.blockchain.listener; import com.google.common.base.Optional; import com.plout.blockchain.core.Block; import com.plout.blockchain.event.BlockConfirmNumEvent; import com.plout.blockchain.event.FetchNextBlockEvent; import com.plout.blockchain.event.NewBlockEvent; import com.plout.blockchain.utils.Serial...
31.843373
102
0.746122
157477a1b20dd321d78789899154e46c18d69161
8,759
package com.edusoft.controller; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Map; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired;...
41.316038
183
0.647106
57b49442d12b4c01f7d08d4c24237ee0ffa7500f
802
package amat.occupy; import java.util.Arrays; import java.util.Collection; import amat.antigen.Antigen; import amat.antigen.AntigenPool; /** * Implements a follicular dendritic cell (FDC) occupation model in * which exactly one antigen occupies an FDC surface site. * * The occupation probability for a given a...
26.733333
79
0.739401
6c3cb8c525c176399836ed43c460741ad2e83c3a
1,919
/* * Copyright (C) 2017 AutSoft Kft. * * 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...
37.627451
98
0.656592
5b64a690a15295b26a25ad9c4d4d7cd05982bb07
622
package org.acme.order_fulfillment; import org.kie.api.runtime.process.WorkItem; import org.kie.api.runtime.process.WorkItemHandler; import org.kie.api.runtime.process.WorkItemManager; public class RestMockWih implements WorkItemHandler { public void abortWorkItem(WorkItem workItem, WorkItemManager manager) { man...
28.272727
74
0.786174
be944ec6f59b74203b4df3dabff7e42265ae1218
1,892
/* * 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 ...
31.016393
100
0.69186
a0ac1640645a0696ab8e097c7d5740063d1f551a
1,506
package ch.goodrick.brewcontrol.button; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.util.HashSet; import java.util.Set; import org.junit.Test; public class FakeButtonTest { FakeButton fb = new FakeButton(); @Test ...
24.688525
62
0.731076
411c8be8aab502ccd10844b4663fe4deb73606d6
5,033
package com.tinkerpop.blueprints; /** * A Graph is a container object for a collection of vertices and a collection edges. * * @author Marko A. Rodriguez (http://markorodriguez.com) */ public interface Graph { /** * Get the particular features of the graph implementation. * Not all graph implementat...
39.944444
129
0.693423
4fd28844e7dc47fcb5d5d8c243b18e4129d1f728
313
package com.example.nhoxb.mytodo.data.local; import com.example.nhoxb.mytodo.data.model.Item; import java.util.List; public interface DbDataSource { List<Item> getAllItem(); void insertItem(Item item); void updateItem(int id, Item item); void deleteItem(int id); long getItemCount(); }
17.388889
48
0.715655
8ea0bc67a484f28ad7e97186997014b66e31672e
6,012
/* * This file or a portion of this file is licensed under the terms of * the Globus Toolkit Public License, found in file GTPL, or at * http://www.globus.org/toolkit/download/license.html. This notice must * appear in redistributions of this file, with or without modification. * * Redistributions of this Softwar...
39.552632
83
0.602794
82420421ab923359364f93df47bb2a92df87a7f9
1,517
/* * 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.hm.registropersonasclientjsf.bean; import com.hm.registropersonabusiness.service.PersonaService; import com.hm.registroper...
25.711864
120
0.694133
3bb569642e35f3a87e6c9e086811c56d24fb3640
4,477
// Template Source: BaseEntityRequestBuilder.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -----------------------------...
52.670588
216
0.774403
e328b2ea05339b9956f6c540959760ca9404708f
1,923
/* 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 * distribu...
33.155172
190
0.73947
304f8652240d0c0ad453844f63bdb766c4d65866
1,475
/** * <p>Copyright (R) 2014 我是大牛软件股份有限公司。<p> */ package com.woshidaniu.wjdc.dao.entites; import java.io.Serializable; import java.util.List; /** * @author Penghui.Qu(445) * 试题管理DAO * * @author :康康(1571) * 整理,优化 * */ public class WjtjtjModel implements Serializable{ private static final long serialVersionU...
16.388889
108
0.64678
0d01eefe0614ccea2c38683e83db6e8e1581a43d
6,137
/* Copyright [2011] [Yao Yuan(yeaya@163.com)] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicabl...
32.470899
105
0.716311
6e20d37d561faee926a5f1027f510b2c5b18e2ef
1,170
package com.pinicius.android.cas2016.speaker.view.renderer; import com.pedrogomez.renderers.Renderer; import com.pedrogomez.renderers.RendererBuilder; import com.pinicius.android.cas2016.speaker.view.presenter.SpeakersPresenter; import com.pinicius.android.cas2016.speaker.view.viewmodel.SpeakerViewModel; import java....
32.5
79
0.742735
001125641efe35fc1bad90151289f19d944a36fe
595
package L7; public class Sort012 { public static void sort(int[] a) { if(a.length <= 1) { return; } int i = 0, nextZero = 0, nextTwo = a.length-1; while(i <= nextTwo) { if(a[i] == 0) { int temp = a[i]; a[i] = a[nextZero]; a[nextZero] = temp; i++; nextZero++; } else if(a[i] == ...
14.875
48
0.477311
49230a4c5bc98489eccdccbf49544f0c038a5381
2,901
package com.github.junlong.cmd; import com.github.junlong.util.LogUtil; import org.apache.commons.cli.Option; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.util.LinkedList; import java.util.List; import java.util.regex.Matcher; i...
25.226087
78
0.606343
9fb612c272c84b8060ffc49e1101a3fc037fc98e
285
package org.dayatang.domain.internal.criterion; /** * 代表属性小于或等于指定值的查询条件 * @author yyang */ public class LeCriterion extends ValueCompareCriterion { public LeCriterion(String propName, Comparable<?> value) { super(propName, value); setOperator(" <= "); } }
20.357143
62
0.680702
df6c0ce362a6a8d6a8a9711b8ec77ad6bf973437
395
package com.bookshop.shoppingcartms.dto; import java.math.BigDecimal; import java.math.BigInteger; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @Getter @Setter @NoArgsConstructor public class ProductDTO { private String id; private String title; private String description; private...
18.809524
40
0.812658
3c7bb84e29b71d2b47b88cb00419c239b9c637e1
6,640
/* * Copyright 2012 Sauce Labs * * 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 wr...
45.170068
109
0.5625
a91f31340e1b5e4ba233d471c42c2cf2158d4dfd
4,648
package com.vlkan.log4j2.logstash.layout.resolver; import com.fasterxml.jackson.core.JsonGenerator; import com.vlkan.log4j2.logstash.layout.util.Throwables; import org.apache.commons.lang3.StringUtils; import org.apache.logging.log4j.core.LogEvent; import java.io.IOException; class ExceptionRootCauseResolver impleme...
45.568627
150
0.5142
3263c8d20ac1a9dd765ec0fa97bfc7c0fe8a0f4b
691
package com.alibaba.alink.pipeline.dataproc; import org.apache.flink.ml.api.misc.param.Params; import com.alibaba.alink.operator.batch.BatchOperator; import com.alibaba.alink.operator.common.dataproc.AggLookupModelMapper; import com.alibaba.alink.params.dataproc.AggLookupParams; import com.alibaba.alink.pipeline.MapM...
24.678571
71
0.775687
4f05ac0c2fafc27fe5af6d4907b0c3632d05a5d5
571
package com.alibaba.oneagent.utils; import java.io.File; import java.io.IOException; import java.util.jar.Attributes; import java.util.jar.JarFile; import java.util.jar.Manifest; /** * * @author hengyunabc 2020-07-31 * */ public class JarUtils { public static Attributes read(File jarFile) throws IOException { ...
17.84375
65
0.711033
f3caae05b06ed7804e9fefaf5d4d7f6dfef64b0a
482
package controller; public class Error { // Class for error handling. public static int count = 0; // Error count for current session. private int errorID; public Error() { // Default null constructor this("general unspecified error"); } public Error(String error_msg) { // this.errorID = date * 10 + ++cou...
26.777778
138
0.70332
764fe95b2aa3be45e610c282a57305bfdff51b40
3,938
package com.ai.aspire.authentication; import java.io.IOException; import java.util.StringTokenizer; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.ai.application.interfaces.IInitializable; import com.ai.application.interfaces.RequestExecutionException...
32.278689
82
0.642204
a1d006f07dafcf6c8bd48228fc112dfa8afa77f1
2,428
package guys; import world.Object3D; import linalg.Vec3; import world.Simulatable; import world.Directed; import linalg.StatePair; import common.CardinalDirection; import java.lang.Math; /** * @brief Represents Homo Sapiens in this rude world */ public class Guy extends Object3D implements Directed, Simulatable { /*...
22.691589
107
0.689456
e22adc9732a188de0364607b7a202f0478a3b4cf
567
// SPDX-FileCopyrightText: 2021 Falk Howar falk.howar@tu-dortmund.de // SPDX-License-Identifier: Apache-2.0 // This file is part of the SV-Benchmarks collection of verification tasks: // https://gitlab.com/sosy-lab/benchmarking/sv-benchmarks package mock.sql; public class Connection { public void prepareStateme...
23.625
75
0.671958
73d972e0536626774ecd52ff59854051ea6f12c6
1,078
package com.ekam.utilities.excelwriter.base; import java.util.HashMap; import java.util.Map; public final class WriteConfig { public static final String CONFIG_OUTPUT_FILE_LOCATION = "CONFIG_FILE_LOCATION"; public static final String CONFIG_OUTPUT_FILE_NAME = "CONFIG_OUTPUT_FILE_NAME"; public static fin...
25.666667
96
0.729128
ef1a3bc6cac82352ad9d76e5cb55826a176d2754
5,351
/* * Copyright (c) 2009-2015 farmafene.com * All rights reserved. * * 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 limitati...
25.725962
76
0.680807
bb186004d8d2f09439c04305717fe7974d4ac66d
5,939
package com.theberge_stonis.game; import java.util.HashMap; import java.util.LinkedList; import java.util.Map; import com.theberge_stonis.entity.*; import com.theberge_stonis.input.KeyInput; import com.theberge_stonis.input.KeyListener; import com.theberge_stonis.input.MouseInput; import com.theberge_stonis...
24.044534
107
0.650615
e85c86e2a6503eaa133a75065b0045ba77355502
1,257
package com.ruoyi.server.task; import com.ruoyi.server.common.ConstantState; import com.ruoyi.system.domain.SysCollectionPoint; import com.ruoyi.system.domain.SysDevice; import com.ruoyi.system.service.ISysDeviceService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduli...
29.928571
91
0.684169
c45127ad2f8bd63f44fdfe001aa37a51f2c55a57
659
public class ExceptionExample { private int x; private Exception except; public ExceptionExample() { x = 0; } public void throwingMethod() throws Exception { // throw calls native method - we can't summarise it if(x==0) throw except; } public static void main(String[] args) { ExceptionEx...
19.969697
56
0.617602
6336ce9e801554f58049f11cd14b8d93abbfa846
202
package com.github.ennoxhd.semver.api; public interface Notation { public String getSignFor(Component component, Type type); public interface Component { } public interface Type { } }
13.466667
58
0.722772