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
d2518d6420940971b6d8fe66aa72f878cb61e114
2,935
package com.bono.utils; import java.nio.ByteBuffer; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.util.Base64; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.spec.GCMParameterSpec; public class PasswordEncoder { public static final...
34.127907
115
0.741738
a0ed713543a89d041ecaa5f71a18b226027cab7a
1,499
package io.egen.proteus.interceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import io.egen.proteus.exception.LoginRequiredException; import io.jsonwebt...
30.591837
115
0.746498
38b8c30bcdadd807407fd28b7187bd7f4f051c7e
550
package org.owntournament.extension.korfball.models; import lombok.Data; import org.hibernate.annotations.CreationTimestamp; import org.hibernate.annotations.UpdateTimestamp; import org.owntournament.core.interfaces.models.IBaseDTO; import javax.persistence.*; import java.time.Instant; @Data @MappedSuperclass public...
19.642857
57
0.809091
90e1e1096c76a1dc0046047d6572e58cb1c3c9e3
1,077
public class Sept7th { public ListNode reverseList(ListNode head) { ListNode curr = head; // 1 ListNode prev = null; while (curr != null) { ListNode nextTemp = curr.next; // [hold all the remaining] 2345 - 345 - 45 - 5 - null curr.next = prev; // null - 1 - 2 - 3 - ...
28.342105
97
0.528319
dd36bdd28d7fdea3dfceed6cc1c2d3e8df0d6581
33
package com.dadsunion.demo.feign;
33
33
0.848485
e783ae2e837d7594dace0c2dc36a7dc72727d415
942
package benn1ed.curseofdisintegration; import benn1ed.curseofdisintegration.util.Utils; public class Frames { private int _maxValue; private int _framesPassed = 0; public Frames(int maxFrames) { setMaxFrames(maxFrames); } public int getMaxFrames() { return _maxValue; } public void setMaxFrames(int ...
14.71875
56
0.700637
482c750cb3a90b081e212c53ef78709a2c0c0f70
412
package chapter5.demo519; public class Demo { public static void main(String[] args) { Singleton inst = Singleton.getInstance(); System.out.println(inst);//查看对象内存地址信息 inst.print();//执行对象的方法 Singleton inst2 = Singleton.getInstance(); System.out.println(inst2);//查看对象内存地址信息 ...
29.428571
63
0.640777
4bd3e813642b57165d4fa124a8076ade89581672
10,040
/** * 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.723404
121
0.736255
9432d36443fc131635f6041ecb0781f2088c8d44
971
package com.polydes.extrasmanager.app.utils; import java.io.File; import java.util.ArrayList; import java.util.HashSet; import java.util.List; public class ExtrasUtil { private static HashSet<String> blankSet = new HashSet<String>(); /** * @param toOrder * @param toExclude * @return A list of files, minus O...
21.108696
96
0.670443
7f618e7e10e67476d005792961419c92228d5f8e
5,027
/* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
28.725714
108
0.708574
f56648a128cb7ede038400218ca2c446919ca06b
3,463
package de.polocloud.api; import com.google.inject.Injector; import de.polocloud.api.command.ICommandManager; import de.polocloud.api.command.executor.CommandExecutor; import de.polocloud.api.common.PoloType; import de.polocloud.api.config.loader.IConfigLoader; import de.polocloud.api.config.saver.IConfigSaver; import...
29.853448
98
0.697661
06434567649de60aeb52b9d136101043f08a6cc4
2,248
package com.nike.wingtips.zipkin2.util; import com.nike.wingtips.Span; import com.nike.wingtips.Span.SpanPurpose; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.concurrent.TimeUnit; import zipkin2.Endpoint; /** * Default implementation of {@link WingtipsToZipkinSpanConverter} that knows...
35.125
116
0.665036
44a8e3665979e0d7c31e1bdd0a0affff74241330
3,433
package net.minecraft.world.level.material; import java.util.Optional; import java.util.Random; import javax.annotation.Nullable; import net.minecraft.core.BlockPosition; import net.minecraft.core.EnumDirection; import net.minecraft.core.RegistryBlockID; import net.minecraft.core.particles.ParticleParam; import net.mi...
33.656863
168
0.760559
bbe7c63dc14d9c16ebfb4930547b8633d283eff4
1,938
package com.aclic.lottery.Models.compound; import java.util.Date; public class CommentMUser { private String id; private String newsid; private String userid; private String content; private Date createtime; private String account; private String av; public CommentMUser(){} publ...
21.065217
126
0.600619
e4c42a665c7539d9a4887b8316f4e37d6a599f6a
14,228
/* * This file was generated by openASN.1 - an open source ASN.1 toolkit for java * * openASN.1 is Copyright (C) 2007 Clayton Hoss, Marc Weyland * * openASN.1 is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by t...
23.595357
106
0.732007
1c10abba3be54a0584c0b49773ff7636bde3b953
2,131
/* Copyright Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at http://www.apache.org/licenses/LICENSE-2.0 or in the "license" file accompanying ...
43.489796
163
0.775223
b61b42de76dc37854f42f97036b4daf085c086d4
14,323
package com.ks.process.operation; import com.google.common.collect.ImmutableList; import com.ks.bean.KJson; import com.ks.error.KConfigException; import com.ks.error.KRunException; import org.apache.kafka.clients.producer.internals.DefaultPartitioner; import org.apache.kafka.common.serialization.Serde; import org.apac...
42.627976
140
0.533617
ceae63ba96346743d405f34b80e96380b80ba751
1,274
/** * */ package cl.zpricing.avant.web.chart; import javax.servlet.http.HttpServletRequest; /** * <b>Descripci�n de la Clase</b> * Clase utilizada para poder generar y guardar la ruta de un archivo xml de un * grafico * * Registro de versiones: * <ul> * <li>1.0 08-01-2009 Oliver Cordero: ve...
25.48
80
0.66248
b2e30fd836001097ccbc0aaa18f8f6f70ccb6260
497
package model; public class UserCommand extends Command { public UserCommand(final Cell cell, final CommandType type, final int value) { super(cell, type, value); } @Override public boolean is_user_command() { return true; } @Override public void e...
15.53125
83
0.585513
162e79e91a16a1d1fccd471daa9c917fcdc13ff7
1,444
package io.cem.modules.cem.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; import java.util.Map; import io.cem.modules.cem.dao.AlarmRecordDao; import io.cem.modules.cem.entity.AlarmRecordEntity; import io.cem.modules.c...
22.215385
78
0.786011
5953bf92c332a70a050fd2313a7b49d3014627b4
7,183
package visualiser.Controllers; import javafx.collections.FXCollections; import javafx.collections.ListChangeListener; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.scene.control.Button; import javafx.scene.control.TableColumn; import javafx.scene.control.TableView; import javafx.sce...
35.736318
114
0.667688
16e98f04dbf2f617b58c9ef595649177c6ac75a0
304
package io.github.vampirestudios.obsidian.api.bedrock; import com.google.gson.annotations.SerializedName; public class BlockModelInformation { @SerializedName("textures") public String textures; @SerializedName("textures") public Texture texturesElement; public String sound; }
19
54
0.763158
03a6c1f04d59caa3a135ba5b00cd87ad7da627bc
2,565
package com.sqring.auth.filter; import com.alibaba.fastjson.JSON; import com.netflix.zuul.ZuulFilter; import com.netflix.zuul.context.RequestContext; import com.netflix.zuul.exception.ZuulException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.security.core.Authentication; import...
31.280488
89
0.708382
541606f9ef54beb2875e78c47d44f67261842daa
5,336
package Recursion; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; public class MazeGenerator { public static final int LEFT = 0; public static final int RIGHT = 1; public static final int UP = 2; public static final int DOWN = 3; public static final char s = '.';/...
25.2891
128
0.390367
03ea1e615daf69e98b6c298443628cecc1fc6b14
3,454
/* 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 * distribut...
40.162791
195
0.761436
bc796ceb9ff52f2e0c0ad9a487d68d14c486b487
2,261
/* * 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 pkg2examen2_luisenriquez; import java.io.Serializable; import java.util.ArrayList; /** * * @author Luis Enriquez */ class ...
20.743119
95
0.609907
fadbf40081d5123d2075f5f4b6ccb9e7bc84ae94
2,832
/* * Copyright 2020 lujing * * 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...
17.590062
75
0.555085
327aa4531ef2c6b103c844f74c854b5dca9a996f
1,572
package io.quarkiverse.micrometer.registry.signalfx; import java.util.Map; import javax.enterprise.inject.Produces; import javax.inject.Singleton; import org.eclipse.microprofile.config.Config; import org.jboss.logging.Logger; import io.micrometer.core.instrument.Clock; import io.micrometer.signalfx.SignalFxConfig;...
30.230769
95
0.739186
aada61c771cddd7aa58531b1ab0308dd7c8b9bd5
2,285
package com.twistezo.controller; import com.twistezo.model.BorrowedDate; import com.twistezo.model.Car; import com.twistezo.model.Customer; import com.twistezo.service.BorrowedDateService; import com.twistezo.service.CarService; import com.twistezo.service.CustomerService; import com.twistezo.service.MailService; impo...
40.803571
118
0.766302
ef067c9e45484326dac61aeadd48632fef2069aa
1,034
package com.ruoyi.system.mapper; import java.util.List; import com.ruoyi.system.domain.EduTeacher; /** * 老师Mapper接口 * * @author huangcankun * @date 2021-01-24 */ public interface EduTeacherMapper { /** * 查询老师 * * @param id 老师ID * @return 老师 */ public EduTeacher selectEduTeache...
16.677419
72
0.56383
391d35ed98bc94c50c01b3289cb3ef3610a1cc4c
8,682
package com.chess.game; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.List; import static com.chess.game.GameStatus.*; import static com.chess.game.PieceStatus.*; import static com.chess.game.PieceTyp...
37.422414
130
0.628311
6fab09f58cab1d85194a9691b50bfed2a4fd4180
9,307
package edu.utah.ece.async.sboldesigner.sbol; import java.io.File; import java.io.IOException; import java.net.URI; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.Arrays; import javax.xml.namespace.QName; import org.joda.time.DateTi...
42.304545
925
0.718169
614cc04c2ed2fc3cc7f5dfc605cd8b3775a1aa3e
15,228
package com.hyphenate.chatuidemo.ui; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.provider.MediaStore; import android.support.annotation.NonNull...
35.25
150
0.53533
eb011aa485f4c6ceb9ab1a3064904b50584fcc7c
2,702
package com.example.shequtest.module; import android.os.Parcel; import android.os.Parcelable; import cn.bmob.v3.BmobObject; import cn.bmob.v3.datatype.BmobFile; import cn.bmob.v3.datatype.BmobRelation; public class Knowledge extends BmobObject implements Parcelable { private String content; private MyUser au...
20.784615
83
0.599186
f4c55d6257d52bd3e46744f6c043315f93aba073
4,388
/* * Copyright (c) 2021 Airbyte, Inc., all rights reserved. */ package io.airbyte.integrations.source.mysql.helpers; import com.fasterxml.jackson.databind.JsonNode; import io.airbyte.commons.functional.CheckedConsumer; import io.airbyte.commons.json.Jsons; import io.airbyte.db.jdbc.JdbcDatabase; import java.sql.SQL...
37.504274
241
0.691659
b67dc091e7e26db16e86b28d3e0503f5005fad08
1,741
package wang.bannong.gk5.ntm.rpc.service.api.apis; import com.google.common.base.Splitter; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.stream.Collectors; import lombok.extern.slf4j.Slf4j; ...
35.530612
99
0.615164
9849545af35aba79d456f419cfe75913ff957ac5
3,253
/*- * ============LICENSE_START========================================== * OPENECOMP - DCAE * =================================================================== * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. * =================================================================== * Licensed...
32.858586
125
0.610821
325f79346b0a74d4aec647fbc2a7b7a5d30539dc
2,012
package org.example; public class Employee extends Object{ private String EmployeeFirstName; private String EmployeeLastName; private Integer EmployeeId; private String EmployeeDeptId; public Employee() { super(); } public Employee(String EmployeeFirstName, String EmployeeLas...
24.536585
113
0.618787
c35e8fddadf809adefaae8c72e306e4f774c8caf
282
package complie; import com.depth.ap_annoation.Api; /** * <pre> * Tip: * * * Created by ACap on 2021/4/15 13:48 * </pre> */ @Api(method = "DemoMathodName") public class DemoApi { public DemoApi() { //调用Make Project开始生成 DemoApiGenerate.DemoMathodName(); } }
14.842105
43
0.631206
0f98a4b8d16c14c7ec395e8e5e9a3ab8efb86c44
3,128
/* * 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 Clases; // ///** // * // * @author zgame // */ //public class PrbMultilista { // // /** // * @param args the com...
30.970297
82
0.497762
718ba54bcbe2017e0be75dd7190cd033969619a3
1,422
import java.util.Scanner; import java.util.ArrayList; public class PT1 { public static void main(String[] args) { ArrayList<String> Blog = new ArrayList<String>(); Scanner in = new Scanner(System.in); char key; String keyword,ch; ok: while(true) { System.out.print("請輸入 \'i\', \'o\', \'r\'或\'q\': ")...
20.608696
55
0.54571
7e13b259c472a216b094a696e807a8bf536677dc
2,681
/* * Copyright (c) 2017. Jamie Thompson <bishbashboshjt@gmail.com> */ package com.github.bishabosha.cuppajoe.examples.sequences; import com.github.bishabosha.cuppajoe.collections.mutable.sequences.NonRecursiveSequence; import com.github.bishabosha.cuppajoe.collections.mutable.sequences.RecursiveSequence; import com...
30.816092
89
0.565088
db453f859e3da9fc79d25093d738fe809382edbb
760
package com.a.platform.member.message; import com.a.platform.member.model.bo.MemberBO; import java.io.Serializable; /** * 会员注册发送消息 * * @author weixing.yang * @version 1.0 * @date 2019/10/22 17:18 */ public class MemberRegisterMsg implements Serializable { private static final long serialVersionUID = 1913...
17.272727
70
0.657895
4bd8483bd099ebeac226abc3bfa942e0b5279457
8,349
/* * Copyright 2017 EntIT Software LLC, a Micro Focus company, L.P. * 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 *...
32.360465
128
0.734459
6bae853d6e15a0bc7f9158144d679ee580eef8ed
6,778
/* * 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.637838
123
0.721009
d0f660576c221b36be3a0085758c3b51e1fbef23
2,397
/** * This class is generated by jOOQ */ package org.jooq.test.ase.generatedclasses.tables.records; /** * This class is generated by jOOQ. */ @java.lang.SuppressWarnings("all") public class VLibraryRecord extends org.jooq.impl.TableRecordImpl<org.jooq.test.ase.generatedclasses.tables.records.VLibraryRecord> implem...
23.732673
197
0.65582
c0b7ef4fe2ab993fb3d49ebe803cd733ae05fe95
5,357
//Autogenerated package com.vision4j.completion; import com.google.protobuf.ByteString; import com.vision4j.completion.grpc.CompletionInput; import com.vision4j.utils.*; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; impor...
37.725352
94
0.73474
444203be94474fc45d3391b959113a540af50bae
9,503
package acmi.l2.clientmod.l2pe; import static acmi.l2.clientmod.io.UnrealPackage.ObjectFlag.HasStack; import static acmi.l2.clientmod.io.UnrealPackage.ObjectFlag.Standalone; import static acmi.l2.clientmod.unreal.UnrealSerializerFactory.IS_STRUCT; import java.io.ByteArrayOutputStream; import java.io.File; import java...
39.595833
182
0.666526
503df38d5b48925c80c6aba9f8a1851820db443e
6,167
/* * Copyright 2011-2013, by Vladimir Kostyukov and Contributors. * * This file is part of la4j project (http://la4j.org) * * 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 * * ...
29.649038
75
0.349116
0e4a9bea8fced2a581500bee17ead2a58afa1537
770
package org.springframework.cloud.kubernetes.it; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @SpringBootApplication @Res...
22
68
0.779221
9c2e9799e4c13d23c5697d2610a6899282f02d01
393
package misc; public class CheckNumberInString { public static void main(String[] args) { String str = "Lorem Ipsum has been the industry's standard dummy text ever since the 1500s."; Boolean flag = false; for(int i = 0; i < str.length(); i++) { flag = Character.isDigit(str.charAt(i)); if(flag) { S...
24.5625
95
0.643766
acf57cd00ef71377038da04b54a31db82cff1c63
5,081
class _HEDyC5l { } class OAts_b { public static void oh7zVcTVqfrd (String[] g9C4Im1IKj9V_) { boolean[] Icy = !!-( new f0_X().zauOBQKBDbytD())[ !T().Axk]; boolean KNdsPkCEKwdiwU; ; { int[] qHyh; -new tZ1()._jmpRzsai; int GpdnXLjFAbsrGG; ...
37.360294
292
0.505609
2bf1e9daff84b1b5a255b7676fd2bb6dab00e909
6,013
package work.innov8.todoplus.data; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import java.util.ArrayList; import java.util.List; import work.innov8.todoplus.model...
40.086667
113
0.617495
095be6664c869c78b30e2051f9a1ec2046d37f8a
5,774
package gg.fel.cvut.cz.data.updatable; import bwta.BWTA; import com.google.common.collect.ImmutableSet; import gg.fel.cvut.cz.counters.BWReplayCounter; import gg.fel.cvut.cz.data.AContainer; import gg.fel.cvut.cz.data.IUpdatableContainer; import gg.fel.cvut.cz.data.readonly.Game; import gg.fel.cvut.cz.enums.GameTypeEn...
38.238411
100
0.682369
b093c0c7cf7c09fb290e2214b0a8245caa00016c
6,372
/* * 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 ...
30.932039
127
0.753923
b883e8f6f2d0ca7d5130beb56a203f5ebb3acc07
12,370
package com.chaschev.microbe.samples; //import gnu.trove.list.array.TIntArrayList; //import gnu.trove.map.hash.TIntIntHashMap; import com.chaschev.microbe.*; import gnu.trove.list.array.TIntArrayList; import gnu.trove.map.hash.TIntIntHashMap; import org.apache.commons.lang3.RandomStringUtils; import org.junit.Test; i...
33.523035
133
0.448181
5cd8b982c8bcbac10eaf7dbaef92ad8572c7edc3
293
package org.hzz.annotas; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @MyParent public @interface MyBefore { }
22.538462
44
0.825939
2168d325f5621279461dc79ed994f102eaeed267
1,098
package com.bazaarvoice.emodb.auth; import org.apache.shiro.authz.Permission; /** * Interface for performing authorization internally within the system. Unlike SecurityManager this interface is * intended to be used primarily in contexts where the user is not authenticated. The interface is intentionally * limit...
39.214286
113
0.769581
42d458000b6cdf30dd9b1a140f5e278eb2f00a26
1,392
/** * File generated by the ThingML IDE * /!\Do not edit this file/!\ * In case of a bug in the generated code, * please submit an issue on our GitHub **/ package org.thingml.generated.messages; import no.sintef.jasm.*; import no.sintef.jasm.ext.*; import java.util.*; import java.nio.*; public class DrawRect_b...
28.408163
160
0.729885
bbaf602604cd5bc273c413d37a7f48fbb99dc5cf
878
package com.codeborne.selenide.conditions; import com.codeborne.selenide.Condition; import com.codeborne.selenide.Driver; import org.openqa.selenium.WebElement; import javax.annotation.ParametersAreNonnullByDefault; @ParametersAreNonnullByDefault public class Not extends Condition { private final Condition conditi...
26.606061
82
0.773349
6b45703855da6b01aff3ef00127e2b9ba41b1088
2,758
package com.pandaq.rxpanda.requests.okhttp.io; import static com.pandaq.rxpanda.log.HttpLoggingInterceptor.IO_FLAG_HEADER; import android.text.TextUtils; import com.pandaq.rxpanda.api.Api; import com.pandaq.rxpanda.callbacks.TransmitCallback; import com.pandaq.rxpanda.requests.Request; import com.pandaq.rxpanda.util...
23.982609
77
0.604061
d48acc11d0b9aa2f54d33c1439ade37ee928ab1e
2,704
package com.github.dantin.cubic.protocol.room; import com.fasterxml.jackson.annotation.JsonGetter; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder; import com.google.common.base.MoreOb...
22.915254
92
0.659393
f787a652002a7b1cba9e85c3cc468612d3f5cc99
1,766
/* * Copyright 2006-2009 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 re...
25.970588
79
0.698754
8ef83b6a0e609f0e87558307a7461c5b9566e798
6,268
package com.thankjava.toolkit3d.core.http.httpclient.async.core; import com.thankjava.toolkit3d.bean.http.async.AsyncHeaders; import com.thankjava.toolkit3d.bean.http.async.AsyncHttpMethod; import com.thankjava.toolkit3d.bean.http.async.AsyncParameters; import com.thankjava.toolkit3d.bean.http.async.AsyncRequest; impo...
36.231214
172
0.61806
26dea1dcd85bf60890d8760b3100f1f9264b59ad
643
package com.tanerdiler.microservice.main.repository; import com.tanerdiler.microservice.main.model.Order; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.stereotype.Component; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.Pa...
30.619048
72
0.804044
59e9fc814972d1be84a7ebca21af205bd4faee6f
1,941
package no.f12.agiledeploy.deployer; import java.io.File; import no.f12.agiledeploy.deployer.repo.PackageSpecification; public class DeploymentSpecification { private PackageSpecification packageSpecification; private String environment; private File installBase; private File packageFile; public DeploymentSpe...
24.884615
119
0.773313
10b944d97d49ab1a996059904a71290835120ee4
2,620
package per.qy.crawler.entity; import org.springframework.data.annotation.CreatedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; import javax.persistence.*; import java.util.Date; import java.util.List; @Entity @EntityListeners(AuditingEntityListener.class) public class WebsiteTask {...
20.310078
74
0.629008
f7c271e393419d3e46406d4eda7b26b373b9316e
1,016
package com.valentine.gram; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.domain.EntityScan; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.context....
39.076923
81
0.84252
313dc4ad2853ef33167ea7ea91cba21c4a6ca309
491
/* * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.corba.se.spi.legacy.interceptor; import com.sun.corba.se.spi.oa.ObjectAdapter; public...
12.275
79
0.629328
df35ae97c6f5c87695f91b1aa33ed7623fd13b88
315
package com.foodorderapp.repositories; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.foodorderapp.models.entity.Role; @Repository public interface RoleRepository extends JpaRepository<Role, Long> { Role findByName(String name); }
24.230769
67
0.825397
439b215e77cf3a64c511d2333b06ace4ace61ab7
3,033
/* * MIT License * * Copyright (c) 2019-2021 Jannis Weis * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, mo...
34.078652
100
0.671612
1fdc466f3a61a651c5a53bcc98a6dcf640027f10
394
package projectEuler; public class Problem1 { int target = 999; int sumDivibleBy(int num){ int n = target/num; int sum = num*n*(n+1)/2; return sum; } public static void main(String[] args) { int sum; Problem1 obj = new Problem1(); sum = obj.sumDivibleBy(3) + obj.sumDivibleBy(5) - obj.sumDivibleBy(15);...
20.736842
73
0.667513
a4fd95b514dd505b3fb9d8c1fb7a3277f1c30845
31,980
/* * Copyright (c) 2015, 2016 Qualcomm Technologies, Inc. * All Rights Reserved. * Confidential and Proprietary - Qualcomm Technologies, Inc. */ package org.codeaurora.ims; import android.os.AsyncResult; import android.os.SystemProperties; import android.telecom.VideoProfile; import android.telecom.Connection.Vid...
45.882353
118
0.667761
136b6e04ca99087b94e9f8d35e7e0993b98e743e
1,281
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; public class RandomizedQueueTest { @Test public void isEmpty() { RandomizedQueue<Integer> queue = new RandomizedQueue<>(); assertEquals(0, queue.size()); assertTrue(queue.isEmpty()); } @Test ...
24.169811
65
0.601874
953050fe4fa0ea114a7ebea09ea858a6701deaa5
1,210
package com.oven.demo.core.base.service; import com.oven.demo.common.util.CommonUtils; import com.oven.demo.core.log.service.LogService; import com.oven.demo.core.user.vo.User; import com.oven.demo.framework.cache.CacheService; import org.springframework.stereotype.Service; import javax.annotation.Resource; /** * 基...
20.862069
112
0.61157
ec3d741e84f05e9b5b098db562c2570df65ab5ed
2,189
package com.cjhxfund.autocode.wesklake.model.xsd.common.dict; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlElementDecl; import javax.xml.bind.annotation.XmlRegistry; import javax.xml.namespace.QName; /** * This object contains factory methods for each * Java content interface and Java e...
28.064103
166
0.679306
da1c1e6e4c57608622444db455f5d64877a40363
124,364
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.735071
810
0.804944
41d78ea53c53e2e3829435ad67485619279ea52a
7,167
package io.joyrpc.transport.channel; /*- * #%L * joyrpc * %% * Copyright (C) 2019 joyrpc.io * %% * 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/license...
25.967391
122
0.564253
67915de9f4748606ebb311c4e9f2568e2c6300b3
293
public class Video { public final int iD; public final int size; public Video (int newID, int newSize) { iD = newID; size = newSize; } public int getID() { return iD; } public int getSize() { return size; } }
16.277778
44
0.494881
b5eadd22fcb952395ef0e887044592917156ac99
8,664
/* * citygml4j - The Open Source Java API for CityGML * https://github.com/citygml4j * * Copyright 2013-2020 Claus Nagel <claus.nagel@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 L...
45.6
75
0.841644
27e15f6710fab70609c23161937464ad25fe6917
2,450
package com.rewayaat.core.data; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.faster...
26.630435
85
0.689388
b8b9a28972e2ff117f631751a037604c7bb9655a
460
class Foo { String field; String field2; int hash = field.<warning descr="Method invocation 'hashCode' may produce 'java.lang.NullPointerException'">hashCode</warning>(); Foo(String f2) { field2 = f2; } void someMethod() { if (<warning descr="Condition 'field == null' is always 'false'">field == n...
25.555556
131
0.630435
a7e8b9fe4d0e09e76bcb068987f1e53645c4b398
606
package de.codecentric.boot.webflux; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import reactor.core.publisher.Mono; @RestController public class SimpleWebfluxController { @GetMapping("/hello") public Mono<String> hello()...
25.25
68
0.620462
c79baceb8f67bbbeb7bc3a94a8cee5f059855f21
1,817
package com.harambase.pioneer.controller; import com.harambase.pioneer.common.Page; import com.harambase.pioneer.common.ResultMap; import com.harambase.pioneer.service.RoleService; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.security.access.pre...
46.589744
127
0.708861
8805ae4001ec2b6a3ef983d5df02f879335de7c4
11,168
package ca.pfv.spmf.algorithms.classifiers.naive_bayes_text_classifier; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; ...
33.04142
242
0.706125
411fcda911cb8e72c705474902bdd5f5fb81c4a5
265
package com.baoying.enginex.executor.rule.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baoying.enginex.executor.rule.model.RuleLoopGroupAction; public interface RuleLoopGroupActionMapper extends BaseMapper<RuleLoopGroupAction> { }
26.5
84
0.849057
4652de74ae4c3839f45af9fa917e32bf9e90391c
4,198
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package model; import java.text.SimpleDateFormat; import java.util.Date; /** * * @author Fede */ public class Clima implements Cloneable { private int idClima; private int idZona; private Date fechaHo...
22.449198
74
0.653406
d1dc7f1157200306e69281b91ff1299f732fd40d
1,456
package com.miu30.common.ui.entity; import com.lidroid.xutils.DbUtils; import com.lidroid.xutils.db.annotation.Column; import com.lidroid.xutils.db.annotation.Id; import com.lidroid.xutils.db.annotation.Table; import com.miu30.common.MiuBaseApp; /** * Created by Murphy on 2018/10/24. */ @Table(name = "location") pu...
19.157895
74
0.59272
92910674e97487602b4b8e750a1fd6441a839679
3,451
/* * Copyright 2019-2020 Zheng Jie * * 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 w...
41.578313
97
0.78499
ea158ba0fc520186b04b6093fa2b10118ed49194
4,611
package com.chinamobile.other; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.HashMap; import java.util.Map; import org.apache.poi.EncryptedDocumentException; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.openxml4j.exceptions.InvalidFormat...
36.888
101
0.652353
df152d37f198ac567ae04ab6301b20612d524d68
2,386
/* * Copyright (c) 2010-2020. Axon Framework * * 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 o...
33.605634
114
0.719195
0c5e809c1da86590f29c478cf3dfbaddae0c0187
1,599
/* * Copyright (c) 2015, Inversoft Inc., 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 a...
28.052632
83
0.706692
eb346f1e3ee85084f0b28dcfe38322c8a8fe57ec
6,749
/******************************************************************************* "FreePastry" Peer-to-Peer Application Development Substrate Copyright 2002-2007, Rice University. Copyright 2006-2007, Max Planck Institute for Software Systems. All rights reserved. Redistribution and use in source and binary forms, ...
41.404908
151
0.71981
e4c9bdf0e2b7d33fb1924654c81ee45e7afe3e5c
13,407
/* * Copyright (c) 2009-2021 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of ...
41.252308
203
0.67778
8bb2b06d303546c85739b88503fe4e7bce472bac
1,024
package datadog.trace.instrumentation.spymemcached; import datadog.trace.instrumentation.api.AgentSpan; import java.util.concurrent.ExecutionException; import net.spy.memcached.MemcachedConnection; import net.spy.memcached.internal.BulkGetFuture; public class BulkGetCompletionListener extends CompletionListener<BulkG...
34.133333
99
0.777344
e2c2cddde34157c800c8ea86f05a7f950c1bf691
5,134
package data.railway; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * Created by Pablo on 19/6/17. */ public class Resource implements Serializable { private String baseStation; private int baseStationIndex; private int resourceIndex; private int workedMinutes;...
31.496933
107
0.608882
0ceaf0dcd2b39c062f4a42c26c7edc66b6b59ee7
1,206
package net.sourceforge.greenvine.generator.helper; import java.util.Random; public class RandomHelper { private final static Random random = new Random(); private static final String ALPHABET = "abcdefghijklmnopqrstuvwxyz"; private static final String NUMBERS = "123456789"; public char getR...
26.217391
72
0.634328
ca5a0a58d9bde5dc1d6eca721995f4d28da9d656
635
package appleoctopus.lastword.util; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; /** * Created by lin1000 on 2017/3/26. */ public class Time { public static String getCurrentTimeUTC(){ //follow iso8601 format within entire applicatio...
27.608696
120
0.691339
2e853b637d922a1b2e10af50f00457a84f2f8624
1,155
/* * Copyright (c) 2021 Allette Systems pty. ltd. */ package org.pageseeder.xlsx.util; import java.io.File; import java.io.FileFilter; import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Files; public class FileUtils { /** * Filters directories. */ public static final FileFi...
23.571429
77
0.679654
893a580033887e35d004e40ccc750a9ab19d833d
3,334
package jep.model.optimizationProblem.correctiveProcedure; import java.util.Objects; import jep.model.optimizationProblem.FitnessComparator; import jep.model.optimizationProblem.InitialSolutionConstructor; import jep.model.optimizationProblem.OptimizationProblem; /** * This class implements the threshold accepting ...
49.761194
100
0.692561