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
dec4cea87718db020b418e438b7f68f501e7db44
3,659
package edu.urfu.cadpp.web.dao.impl; import java.util.ArrayList; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.criterion.Restrictions; import org.springframework.beans.factory.annotation.Autowir...
31.543103
131
0.743099
f02e890f5206464edc07d9e2d22a588d0df7ab86
2,006
package com.penglecode.xmodule.common.codegen.mybatis; import com.penglecode.xmodule.common.codegen.config.DomainEntityConfig; import com.penglecode.xmodule.common.codegen.config.MybatisCodegenConfigProperties; import com.penglecode.xmodule.common.codegen.config.MybatisXmlMapperConfig; import com.penglecode.xmodule.co...
31.84127
166
0.734796
189bbcf47135b7953538a4a94f5c6d4ad573579f
413
package com.zzhoujay.richtext.ig; import com.zzhoujay.richtext.callback.BitmapStream; import java.io.IOException; /** * Created by zhou on 2017/9/11. * 图片下载器 */ public interface ImageDownloader { /** * 下载图片并返回流,无需异步 * * @param source 图片URL * @return 下载到的图片的输入流 * @throws IOException...
16.52
60
0.682809
8461f6591f099985c69c9dcd32edb7137b8d590d
1,416
/* * Copyright (C) 2016 Adam Huang <poisondog@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 required by ap...
29.5
92
0.727401
00fb77fa3e1a12bb8f2338825dc06df3c1054124
2,330
/* * JBoss, Home of Professional Open Source * Copyright 2008, Red Hat, Inc., and others contributors as indicated * by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * This copyrighted material is made available to anyone wishin...
36.40625
83
0.72618
af305f27b26ef744ea2510792c2c676883d8ce20
1,148
// Copyright 2012 Foursquare Labs Inc. All Rights Reserved package com.foursquare.common.thrift.base; import java.io.IOException; import java.io.OutputStream; import org.apache.thrift.transport.TTransport; import org.apache.thrift.transport.TTransportException; /** * An OutputStream adapter around a Thrift TTrans...
22.96
72
0.682927
89f266f5eb2dad7737f804fab0137c8a9f084251
3,431
package com.isxcode.oxygen.flysql; import com.isxcode.oxygen.flysql.config.FlysqlAutoConfiguration; import com.isxcode.oxygen.flysql.core.Flysql; import com.isxcode.oxygen.flysql.entity.FlysqlPage; import com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesConfiguration; import org.junit.jupite...
41.337349
122
0.620227
0760626b6a7ad28c599d7b4176d018bfe64e9298
3,825
package com.senseidb.clue; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.net.URI; import java.util.Properties; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.util.Version; import com.senseidb....
35.416667
109
0.721046
951b31798fd2a4d3fea112405bdf98f57020e73f
4,355
package org.pflager.redbook.kvs; import com.pflager.glut; public class texsub extends glut { int checkImageWidth =64; int checkImageHeight =64; int subImageWidth =16; int subImageHeight =16; byte checkImage[]=new byte[checkImageHeight*checkImageWidth*4]; byte subImage[]=new byte[subImageHe...
33.244275
127
0.579564
d6399fd6f10e18895f39aa7bc4a8bcafcb37b76a
25,679
/* * Copyright 2016-2018, EnMasse authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.enmasse.systemtest; import io.enmasse.systemtest.resources.*; import io.fabric8.kubernetes.api.model.*; import io.fabric8.kubernetes.client.KubernetesClient; ...
46.689091
143
0.620195
9d01e2f7b6d83d396b266961f413229416b07bbf
465
package application; import java.util.Iterator; import model.NumRange; import model.WrongDataException; public class NumRangeApp { public static void main(String[] args) throws WrongDataException { NumRange numRange = new NumRange(21, 29); /* Iterator<Integer> it = numRange.iterator(); whi...
18.6
68
0.636559
d2d7dcbed1ff22ee721881550d40402e825ca25f
4,657
/* * (C) Copyright 2006-2011 Nuxeo SA (http://nuxeo.com/) and others. * * 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 re...
31.466216
100
0.701095
294d4ef9ed03fee9f659b6d5ef750475074be4af
8,705
package maxhyper.dynamictreesforestry.worldgen; import com.ferreusveritas.dynamictrees.api.TreeRegistry; import com.ferreusveritas.dynamictrees.api.worldgen.BiomePropertySelectors; import com.ferreusveritas.dynamictrees.api.worldgen.BiomePropertySelectors.RandomSpeciesSelector; import com.ferreusveritas.dynamictrees.a...
67.48062
204
0.700976
64340f49e2facc455d3857c2518ddc893da4ce09
4,466
package com.zhisheng.common.utils; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.*; import java.util.stream.Collectors; public class PropertiesUtil { /** * 默认属性集合(文件在Constants中配置) */ public static Properties defaultProp = null; /** * 所有读取过的属性...
30.589041
119
0.592476
274bdb38d0e2c6c83a5b015de9c428cbd7a9750a
366
package com.security.demo.validation; import lombok.AllArgsConstructor; @AllArgsConstructor public class UserAlreadyExistsException extends RuntimeException { private static final long serialVersionUID = -2832764066471944507L; private String message; @Override public String toString(){ retur...
24.4
71
0.743169
80d9f197a121f048a7f8a64472f6a0b1cb89de53
771
package org.woelker.jimix.core; import java.io.IOException; import java.io.OutputStream; public interface HttpRequest { public static int STATUS_NOT_FOUND = 404; public String getMethod(); public String getPathInfo(); public String getRequestURI(); public String getQueryString(); public ...
21.416667
62
0.749676
994f7ae1bcfd5a88419e4b225bf11a18459f902c
700
package mongoose.backend.operations.entities.allocationrule; import javafx.scene.layout.Pane; import dev.webfx.framework.client.ui.controls.entity.sheet.EntityPropertiesSheet; import dev.webfx.framework.shared.orm.entity.Entity; import dev.webfx.platform.shared.util.async.Future; final class EditAllocationRuleExecuto...
36.842105
87
0.781429
08a108d3c6ff4cd3a9b9e2c635604a9ced073634
10,695
package com.loopme.parser; import android.content.Context; import android.text.TextUtils; import com.loopme.Constants; import com.loopme.Logging; import com.loopme.ad.AdParams; import com.loopme.ad.AdSpotDimensions; import com.loopme.ad.AdType; import com.loopme.ad.LoopMeAd; import com.loopme.models.Errors; import co...
35.65
130
0.648434
4b94ba8bb5cc59e22aac4959c89ae50e943238ea
1,951
/* This file is part of VoltDB. * Copyright (C) 2008-2020 VoltDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any la...
34.22807
80
0.66735
660108c03c56c7080ede926bcc10902046059f38
11,430
package gui; import javax.swing.*; import java.awt.*; import java.awt.event.*; import actorClasses.*; import threads.*; public class ManagerGui implements ActionListener{ JFrame ManagerWindow = null; JButton exit = null; JTextField project1 = null; JTextField project2 = null; JTextField project3 = null; JTextF...
31.401099
100
0.705774
8413ce9dcf7db9e35157634bb95d28c20fc0dc14
6,794
package no.nav.registre.frikort.service.util; import java.io.IOException; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Random; import java.util.stream.Collectors; import javax.xml.bind.JAXBException; import no.nav.registre.fr...
41.938272
149
0.676332
6411758fc6a7ec26bec9b6973ea21e4b4d4b793c
14,783
package iudx.resource.server.apiserver.util; import java.util.List; import java.util.regex.Pattern; public class Constants { // date-time format public static final String APP_DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss[.SSSSSS]'Z'"; public static final String APP_NAME_REGEX = "[a-zA-Z0-9._\\-]*$"; public sta...
54.150183
125
0.75668
7deddd207ea082a8a6ac4834b521f13499a0e121
914
package flashcard.web.exceptions; /** * Created by Kacper Kuźniarski on 23.06.2017. */ public class NoRegexException extends Exception { public NoRegexException() {} public NoRegexException(String message) { super(message); } public NoRegexException(String message, Throwable cause) { ...
27.69697
117
0.676149
32d7c4035584117bb51d2489f2b5d3dd8184cd32
840
package DGP.CJLU.Experiment5.Lab1; /** * @author 16861 */ public class DoubleHashingHashTable<T> extends AbstractHashTable<T> { /** * Method that performs double hashing resolution. * used to call findPos * * @param x the item to search for. * @return the position where the search termin...
26.25
81
0.558333
49a686ec605ef9ba2843eb0a7a1e108cd6e4fc63
7,697
package cn.edu.ruc.iir.paraflow.loader.producer; import cn.edu.ruc.iir.paraflow.commons.exceptions.ConfigFileNotFoundException; import cn.edu.ruc.iir.paraflow.commons.message.Message; import cn.edu.ruc.iir.paraflow.commons.proto.StatusProto; import cn.edu.ruc.iir.paraflow.commons.utils.FiberFuncMapBuffer; import cn.ed...
38.10396
160
0.617124
545c4d998cd83ed5f1fc6c247c37972b0eac8086
15,261
package com.zuccessful.trueharmony.utilities; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.Configuration; import android.content.res.Resources; import android.net.Co...
38.832061
222
0.669157
7985736d0239d71b3091015f279b4f6df6089489
1,346
package com.senior.cyber.frmk.common.provider; import javax.persistence.Tuple; import javax.persistence.TupleElement; import java.io.Serializable; import java.util.HashMap; import java.util.List; import java.util.Map; public class BasicTuple implements Tuple, Serializable { private Map<String, Object> data = new...
25.396226
75
0.667905
35c2d1993a0ea5cf3c99f87f27a5711350bd58ff
570
package com.geraldoyudo.kweeri.core.boolresolver; class StringBoolResolver implements BoolResolver { @Override public boolean resolve(Object string) { if (string == null) { return false; } switch ((String) string) { case "": case "false": ...
21.923077
50
0.524561
b5f43437f649f44164a05d392ab0986f11103b43
110
package learning.factory.methodfactory; public interface Book { void context(); void read(); }
15.714286
40
0.663636
722160b7ad4b76ae0fd3fb4f50a06bffe9403530
301
package study.daydayup.wolf.business.pay.biz.epi; import study.daydayup.wolf.business.pay.biz.domain.entity.PaymentEntity; /** * study.daydayup.wolf.business.pay.biz.epi * * @author Wingle * @since 2020/3/1 12:31 上午 **/ public interface TradeNotifier { int notify(PaymentEntity payment); }
21.5
72
0.740864
a3df5aeb76584a2995757091e090050498c295a7
3,303
package io.wjh.wcartadministrationback.controller; import com.github.pagehelper.Page; import com.sun.org.apache.regexp.internal.RE; import io.wjh.wcartadministrationback.dto.in.OrderSearchInDTO; import io.wjh.wcartadministrationback.dto.out.*; import io.wjh.wcartadministrationback.po.Customer; import io.wjh.wcartadmin...
42.346154
150
0.740236
8d9b5e676d7dbf4e398099669e69f4fa25a1922d
9,608
package ramo.klevis.transfer.style.neural; import lombok.extern.slf4j.Slf4j; import org.deeplearning4j.nn.api.Layer; import org.deeplearning4j.nn.graph.ComputationGraph; import org.nd4j.linalg.api.ndarray.INDArray; import org.nd4j.linalg.factory.Nd4j; import org.nd4j.linalg.learning.AdamUpdater; import org.nd4...
44.897196
188
0.665175
a82c3d3cbb867a49389e248b28665e1c30e3ea1c
1,814
package net.mgsx.game.examples.convoy; import net.mgsx.game.core.EditorScreen; import net.mgsx.game.core.annotations.PluginDef; import net.mgsx.game.core.plugins.EditorPlugin; import net.mgsx.game.examples.convoy.model.Universe; import net.mgsx.game.examples.convoy.systems.ConveyorLogicSystem; import net.mgsx.game.exa...
37.020408
72
0.821389
0f6206718f40ef55a0d10e2b1d0172e42671640f
5,672
/** * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by a...
37.071895
115
0.69464
c59bb72b437344f2af220a0e2e36f2eec5c1b775
1,699
package com.jxtech.distributed.zookeeper.pool; import org.apache.commons.pool.PoolableObjectFactory; import org.apache.zookeeper.ZooKeeper; import org.apache.zookeeper.ZooKeeper.States; import com.jxtech.distributed.Configuration; import com.jxtech.distributed.zookeeper.common.ConnectionWatcher; /** * Zookeeper实例对象池...
26.546875
106
0.678634
9f2d4d6ee9429a064a372f28d3d26f7cbc28b14f
2,626
package gov.cms.qpp; import gov.cms.qpp.acceptance.helper.MarkupManipulator; import gov.cms.qpp.conversion.Converter; import gov.cms.qpp.conversion.InputStreamSupplierSource; import gov.cms.qpp.conversion.correlation.PathCorrelator; import gov.cms.qpp.conversion.model.error.AllErrors; import gov.cms.qpp.conversion.mod...
38.617647
516
0.747525
eba70c6e2b7ab840db5007222fc339cc61576776
35,088
package All_Frames; import com.mysql.jdbc.Connection; import com.mysql.jdbc.PreparedStatement; import com.mysql.jdbc.ResultSetMetaData; import java.awt.Color; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Vector; import java.util.logging.Level; import java.ut...
49.074126
156
0.639193
0efd96e002a7269a7146a002ede782c80d3c6c00
369
/* * Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com> */ package scala.runtime.function; @FunctionalInterface public interface JFunction1$mcZD$sp extends JFunction1<Object, Object> { abstract boolean apply$mcZD$sp(double v1); default Object apply(Object t) { return (Boolean) apply$mcZD$sp(s...
26.357143
115
0.742547
82a8a40c91b1a3b5d83a1765aa07d828e21435e6
4,202
package com.terraforged.noise.util; import com.terraforged.cereal.spec.Context; import com.terraforged.cereal.spec.DataAccessor; import com.terraforged.cereal.spec.DataSpec; import com.terraforged.cereal.spec.DataSpecs; import com.terraforged.cereal.value.DataObject; import com.terraforged.cereal.value.DataValue; impo...
36.859649
82
0.670871
606fd63bb2e13e929f26aad94956f9bacf5321c7
429
package ru.job4j.singletone; import org.junit.Test; import ru.job4j.tracker.Tracker; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; public class TrackerSingle3Test { @Test public void henTwoObjectsAreEqual() { Tracker trackerOne = TrackerSingle3.getTracker(); ...
25.235294
57
0.736597
2d0a5b7681f2a04d6cbd534b95c055ee2af9197c
1,510
/* * Copyright 2015 Bersenev Dmitry molasdin@outlook.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 app...
29.038462
81
0.742384
8be8616fdc309b89280e40d59223a2ecdcd43b7b
10,728
/******************************************************************************* * Copyright 2016-2017 Dell 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/...
32.607903
100
0.743661
2b461b40e8b5b1bad605cbbe928eb7395f8db2cf
623
package org.ncic.bioinfo.sparkseq.algorithms.walker.haplotypecaller; import org.ncic.bioinfo.sparkseq.algorithms.utils.haplotype.Haplotype; import java.util.Comparator; /** * Author: wbc */ public class HaplotypeSizeAndBaseComparator implements Comparator<Haplotype> { @Override public int compare(final Hap...
29.666667
78
0.691814
26e49fb1af1b9ae5af9f675aeaa480de219173cf
93
package sender; public interface ILogger { public void printMessage(String string); }
15.5
42
0.741935
a7fbb123a8a0f4e0cd9599c86c1ca8cf67b4c2ca
512
package com.mercadopago.android.px.tracking.internal.events; import android.support.annotation.NonNull; import com.mercadopago.android.px.tracking.internal.views.ResultViewTrack; public final class ScoreEvent extends EventTracker { private final String eventPath; public ScoreEvent(@NonNull final ResultViewT...
26.947368
74
0.746094
771f96e0c137ba6d1444d2a88c66cf62c6e7f5ff
2,477
/******************************************************************************* * Copyright 2015 MobileMan GmbH * www.mobileman.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 * ...
20.641667
102
0.643117
2591fef5e84ca908e1864f199fcbee384a1ce8fc
1,154
package com.cy.sys.log.dao; import com.cy.pj.sys.entity.SysRole; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest...
25.086957
101
0.711438
2443fb1a65f919eb44b73a3c1193614abc85ce81
13,206
/* * 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 ...
42.326923
114
0.693927
8a5cb551ba38dfe45ce64dd5f812519175164e9f
545
package com.caesarcipher.alphabetcharfinder; public class CharFinderBackwardServiceImpl implements CharFinderService{ @Override public int getCharPosition(char source) { return Alphabet.getReverse().indexOf(source); } @Override public int getTargetPosition(char source, int positionsToChange) { int sourcePo...
25.952381
76
0.781651
852b19b174cea9bcd20b95cd31fbae9d4b13f8f3
3,493
package com.cjyun.tb.patient.bean; import com.google.gson.annotations.Expose; import org.litepal.crud.DataSupport; /** * Created by Administrator on 2016/5/18 0018</br> * description:</br> 上月服药记录 */ public class PrevRecordBean extends DataSupport { /** * patient_id : 3 * id : 1 * device_id : n...
27.077519
109
0.690238
27055af9a165b2cf16a58c11020ef760eba57047
3,652
/* Copyright (C) GridGain Systems. 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 applicable law or...
29.451613
96
0.653614
60eb854ca4cf506fce453c2902a87f14c4b81d37
1,257
/* RmicBackend.java -- Copyright (c) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath 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 Softwar...
39.28125
79
0.757359
0de80d9322609a68cbfd0fa4db468f1c16febb4d
1,042
package com.odenktools.master.service; import com.odenktools.common.dto.CustomerDto; import com.odenktools.common.model.Customer; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import java.util.Optional; public inte...
23.681818
108
0.725528
eedb3865b3f0900e2273b78ef4590e6fd51b9ac5
6,467
/* * 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.536723
107
0.648059
85ab0b8b81ad2d82cdade7dce121fa3543e9782b
486
package com.lanking.uxb.service.report.value; import java.io.Serializable; import lombok.Getter; import lombok.Setter; /** * 综合统计数据. * * @author wlche * */ @Getter @Setter public class VStudentPaperComprehensive implements Serializable { private static final long serialVersionUID = -5249440757...
16.758621
69
0.699588
ec7b8c1b14e2f3c88ab9791bfa13816b3b36dd7d
2,987
package seung.kimchi.java.utils; import java.util.Date; import java.util.Map; import javax.validation.constraints.NotBlank; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml....
23.155039
71
0.742551
b34bfc28540f813c398f82501c00fe31cf939822
2,982
package devkit.appstate.tool; import com.google.common.eventbus.Subscribe; import com.jme3.app.SimpleApplication; import com.jme3.app.state.BaseAppState; import com.jme3.math.Vector3f; import com.jme3.renderer.Camera; import com.jme3.scene.Node; import com.jme3.scene.Spatial; import fr.exratio.jme.devkit.event.Selecte...
31.0625
93
0.712944
39b963b8bd87e0db3ecccc88aa68367400bb8696
604
package io.yooksi.jute.commons.validation; import io.yooksi.jute.commons.define.PositiveRange; @SuppressWarnings("unused") class ValidationTestClass { interface accessibleFieldChecks {} @PositiveRange(max = 1, groups = accessibleFieldChecks.class) public final int publicField = 2; @PositiveRange(max...
27.454545
65
0.731788
2cd2e1054efc89a3972cfaa2b227e3b2f177f1f5
4,643
/** * Copyright © 2016-2020 The Thingsboard 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...
34.392593
142
0.665949
1a2471e9c147e4f2f1296d983f4e54e2823880fc
2,297
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
35.338462
119
0.72094
a24391bcf637f70bb5981a054ec1c9add1ef28d9
2,425
/** * * Copyright 2003-2007 Jive Software, 2014 Florian Schmaus * * 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 require...
27.873563
98
0.663505
269e58d40ad1816fdc51259134f62aedb524b14c
2,947
/** * Copyright 2012-2013 Wicked Charts (http://wicked-charts.googlecode.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...
24.355372
83
0.657957
42005508213fcf97756a11e0c1b80556e7cc7e1f
561
package com.mzz.esdemo.manager; import org.elasticsearch.common.settings.Settings; /** * The type Setting manager. * * @author Zero */ public class SettingManager { private static final String INDEX_BLOCKS_WRITE = "index.blocks.write"; /** * Gets blocks write settings. * * @param value th...
20.777778
74
0.639929
7aa00f27aea75a325598a62a5f2e3e0cd25fe709
2,027
/** * Copyright (C) 2011 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
36.854545
94
0.786384
6bca363729777f62adfbc4e04b7e69f3f3e517ed
1,192
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.document.restapi; import com.yahoo.application.Application; import com.yahoo.application.Networking; import org.junit.Test; import java.io.IOException; import java.net.ServerSocket;...
32.216216
118
0.659396
aa879bb3374521f9ea9a50c4f223eb2481a9e773
4,560
/* * Copyright (c) 2019 Couchbase, 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 agr...
30.810811
96
0.726316
4343590f8d7ff9ef2750738ee52c2cb41c815560
1,199
package com.kailang.memo; import android.content.Context; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import androidx.navigation.NavController; import androidx.navigation.Navigation; import androidx.navigation.ui.NavigationUI; import android.view.inputmethod.InputMethodManager; publ...
29.243902
106
0.753128
3ffaf7d032201108d944a74025b7d9473fbdb147
1,902
import java.util.*; public class S0675CutOffTreesGolfEvent { public int cutOffTree(List<List<Integer>> forest) { if (forest.isEmpty() || forest.get(0).isEmpty()) { return 0; } int M = forest.size(), N = forest.get(0).size(); PriorityQueue<int[]> queue = new PriorityQueue...
32.793103
123
0.404311
47f8c0c7b8be5c2f4c7acf143955bba3b55c098d
313
package com.xavier.petclinic.repositories; import com.xavier.petclinic.model.Owner; import com.xavier.petclinic.services.CrudServices; import org.springframework.data.repository.CrudRepository; public interface OwnerRepository extends CrudRepository<Owner,Long> { Owner findByLastName(String lastName); }
26.083333
69
0.830671
4d9f7bebbdaf554e32557862904e70d1f64185d0
1,471
package com.online.code; import com.online.code.controller.easy.SingleRowKeyboard; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; import static org.junit.Assert.assertEquals; @SpringBootTest cla...
29.42
91
0.67777
a2671c53626e89526783d2e2875052f5faf83377
901
package com.github.dactiv.basic.authentication; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.openfeign.EnableFeignClients; import org.spr...
33.37037
96
0.825749
f2f29aecca3f9e02c22e1a3bbd058c5aed062643
1,081
/* * 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 applic...
32.757576
138
0.750231
fc2f6d8284e6ede38ae47568a74cf1cf8e1ece07
6,077
package org.folio.circulation.services; import static java.util.concurrent.CompletableFuture.completedFuture; import static org.folio.circulation.domain.FeeFine.lostItemFeeTypes; import static org.folio.circulation.services.LostItemFeeRefundContext.forCheckIn; import static org.folio.circulation.services.LostItemFeeRe...
42.496503
96
0.760902
a02c2f0ca4cc98cdef6592d9ff22d6a39a1e589c
403
package com._604robotics.robot2012.control.models; /** * * @author Michael Smith <mdsmtp@gmail.com> */ public class Stinger { public static boolean down = false; public static void put (boolean down) { Stinger.down = down; } public static void putDown () { Stinger.put(true)...
18.318182
50
0.595533
d0f3bd9344d77544b2e628e248981be6268cce4f
3,457
package org.embulk.config; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonDeserializer; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxm...
44.896104
117
0.709286
9d1d89ca3a118b23dfa6821381defc364dc67355
267
package com.bora.thesis.repositories; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; /** * @author: bora */ public abstract class BasicRepository { @PersistenceContext protected EntityManager entityManager; }
19.071429
45
0.764045
bfd7cd5613afad9b05a8239e8281c78e49d09ad0
2,236
package Hash; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Set; public class Solution64 { /* * 思路 : * 本题需要的是计算森林中兔子的最少数量,题目中兔子会告诉我们其余同种颜色的兔子的具体数量,怎么计算最小的总数呢? * 其余兔子剩余数量相同的数据,代表着这是一种,或者多种颜色兔子的集合 * 我们可以发现,对于提供的数据中,设剩余兔子数量(k),m+1 >= n...
32.882353
75
0.498211
ff6b9b463308700590193cd9d79b69ceab23d049
3,020
/* * 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 ...
49.508197
117
0.750993
1687736d93dc1a509fc437301423875152040b7a
664
package postfix; import stacks.*; public class PostfixEvaluatorTester { private static PostfixEvaluator eval = new PostfixEvaluator(); public static void test(String exp, double ans ) { System.out.println("Evaluate [" + exp + "] = " + eval.evaluate(exp) + " [expected " + ans + "]"); } publi...
22.896552
72
0.548193
7127b2d840d9226f9eeb60417edb4272ea7c3f68
1,124
package ru.job4j.tracker; import java.util.Arrays; /** * Class CoffeeMachine * * @author Konstantin Inozemcev (9715791@gmail.com) * @version $Id$ * @since 0.1 */ public class CoffeeMachine { private final int[] monets = {1, 2, 5, 10}; // 100-35 65 10 public int[] change(int value, int price) {...
22.48
66
0.504448
5da4f17b7436bea3e3124178c2f3217e3325980f
216
package com.abculatter2.blockelectric.proxy; public class ClientProxy extends CommonProxy { @Override public void preInit() { } @Override public void init() { } @Override public void postInit() { } }
10.8
46
0.703704
4b7a0bc14f247c3ee9b5c29b1179f65402dd5a46
955
/* */ package com.hundsun.network.gates.houchao.biz.enums; /* */ /* */ public enum EnumMiddleFundAccount /* */ { /* 17 */ MIDDLE_GOODS_FUND_ACCOUNT("9999999999", "中间账户--货款"), /* 18 */ MIDDLE_FEE_FUND_ACCOUNT("8888888888", "中间账户-手续费"); /* */ /* */ private String code; /* */ privat...
34.107143
94
0.559162
2107385d6eb2c1549463047290f29df461a6a585
6,494
package org.fortiss.smg.actuatorclient.enocean.impl.telegrams; import jonelo.jacksum.algorithm.Crc8; public class ESP3Telegram extends UniversalTelegram { private static final int ORG_OFFSET = 6; private static final int DATA_OFFSET = 7; private static int STATUS_OFFSET = 12; char dBm; char[] he...
31.221154
79
0.510933
4bea42b72d313cc9c8940b208039cf0950e87792
2,203
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package com.facebook.fbui.textlayoutbuilder; public final class R { private R() {} public static final class styleable { ...
51.232558
193
0.734907
cd6a74eb89d2a86f391c54b34d0f2a413a152162
757
package com.rogernadal.caronnas.lib.component; import android.app.Dialog; import android.content.Context; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.view.LayoutInflater; import android.view.View; import android.view.Window; import android.widget.TextView; /** * Crea...
27.035714
85
0.754293
f6b9110af3795d4fdf71ac97e08ed9063f25bcc8
2,212
import java.io.*; import org.json.simple.JSONObject; import org.json.simple.JSONArray; import org.json.simple.parser.ParseException; import org.json.simple.parser.JSONParser; import org.json.simple.JSONValue; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.Serializable; import java.io...
20.481481
108
0.72604
a7e07b1c0e7671e96e28ffb2a40467a463b0ff22
3,900
/* * LICENSE INFORMATION Copyright 2005-2007 by FZI (http://www.fzi.de). Licensed * under a BSD license (http://www.opensource.org/licenses/bsd-license.php) * <OWNER> = Max Völkel <ORGANIZATION> = FZI Forschungszentrum Informatik * Karlsruhe, Karlsruhe, Germany <YEAR> = 2007 * * Project information at http...
26.530612
96
0.677692
d0cdf39a62f4afcc18bb1c08c7362f891f1f394b
995
package ru.leymooo.botfilter.utils; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.UnknownHostException; import java.util.logging.Level; import net.md_5.bungee.BungeeCord; import net.md_5.bungee.UserConnection; import net.md_5.bungee.netty.ChannelWrapper; /** * @author Leymooo */ pu...
24.875
125
0.680402
2b254c8ab314014630ccdf0949886129d32e89be
1,822
package org.gentar.exceptions; import org.apache.logging.log4j.util.Strings; import org.gentar.security.permissions.Operations; public class ForbiddenAccessException extends RuntimeException { private static final String ERROR_TEMPLATE = "You do not have permission to %s the %s%s."; public ForbiddenAccessExc...
35.038462
116
0.648189
35c3c3a1d5a043a732d25384f2cb1d119a50c19c
1,068
package com.jungdam.diary.domain.vo; import static org.assertj.core.api.Assertions.assertThat; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; import org.junit.jupiter.params.provider.ValueSource; import org.springframework.util.StringUtils; class TitleTest { ...
27.384615
77
0.616105
249a52dcee075510995e952758c7a37e22538cc2
562
package org.knowm.xchange.binance.dto.account; import com.fasterxml.jackson.annotation.JsonProperty; public final class DepositAddress { public String address; public boolean success; public String addressTag; public String asset; public DepositAddress(@JsonProperty("address") String address, @JsonPropert...
28.1
106
0.745552
41d60a1965f0166122b05fd07d8bd565de35dd3d
966
package com.geecommerce.inventory.model; import com.geecommerce.core.service.api.Model; import com.geecommerce.core.type.Id; public interface InventoryItem extends Model { public static final String TABLE_NAME = "inventory_stock"; public Id getId(); public InventoryItem setId(Id id); public Id getP...
26.108108
67
0.716356
f23d46d3a725c6a20604ea606d8cb227ca7c58c8
152
package ru.redguy.rednetworker.utils.file; import ru.redguy.rednetworker.utils.FileType; public interface HasFileType { FileType getFileType(); }
19
45
0.789474
9cb29170e7527d7c89caa185bfdeb77b25dfa942
381
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2013-2014 sagyf Yang. The Four Group. */ package goja.mvc.render; import com.jfinal.render.Render; /** * <p> * . * </p> * * @author sagyf yang * @version 1.0 2014-03-29 14:09 * @since JDK 1.6 */ public class BadRequest extend...
14.653846
59
0.624672
248441d8f85d3bd6803ab45bceeaaaf9150e7b90
419
package cn.faury.fwmf.module.service.qa.sqlProvider; import cn.faury.fwmf.module.service.qa.generate.sqlProvider.QaInfoGenerateSqlProvider; /** * SQL Provider:常见问题信息 * * <pre> * QaInfoGenerateSqlProvider为数据库通用增删改查操作,不可修改 * 当前SQL Provider继承自QaInfoGenerateSqlProvider,用于项目业务代码扩展添加 * 只需初始化生成一次,然后根据需要扩展,...
27.933333
86
0.787589
59d44ca35ad1f26af29b246753fe68e6dc48a182
331
package generics; public class Container<T,U> { private T val1; private U val2; public T getVal1() { return val1; } public void setVal1(T val1) { this.val1 = val1; } public U getVal2() { return val2; } public void setVal2(U val2) { this.val2 = val...
14.391304
33
0.534743
64c516cbd9cc93d2181e8901157e3f12a39faeb5
292
package jota.error; /** * Created by Adrian on 09.12.2016. */ public class NotEnoughBalanceException extends BaseException { private static final long serialVersionUID = -3807270816402226476L; public NotEnoughBalanceException() { super("Not enough balance"); } }
20.857143
71
0.708904
7a93c24d447ce41ecae4f0ab8c64fcbbfceeb6ad
2,998
package nablarch.core.date; import static org.hamcrest.CoreMatchers.*; import java.sql.Timestamp; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.Map; import nablarch.core.repository.ObjectLoader; import nablarch.core.repository.SystemRepository; import nablarch.u...
27.254545
111
0.647098
20bfcae683f6bff5a6aeb6c27f5fe3baa9819f5d
321
package com.jun.mqttx.entity; import lombok.Data; /** * 主题限流 */ @Data public class TopicRateLimit { //@formatter:off /** 主题 */ private String topic; /** 容量 */ private int capacity; /** 填充速率 */ private int replenishRate; /** 每次请求消耗令牌数量 */ private int tokenConsumedPerAcquire; }...
13.375
40
0.607477
3a4e47db7ee14e8114d2bcb35672d3cc60e32278
10,417
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 ...
15.274194
810
0.812134