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
35357c4635231f017e7c42081b11ec99e8051559
3,022
package mekanism.client.key; import com.mojang.blaze3d.platform.InputConstants; import net.minecraft.client.KeyMapping; import net.minecraft.client.Minecraft; import net.minecraftforge.client.settings.IKeyConflictContext; import net.minecraftforge.client.settings.KeyConflictContext; import net.minecraftforge.client.se...
47.21875
151
0.671079
47eb8c75ae4b51dae28442bde649a926cdf5b5c1
8,512
/* * Copyright 2011 Hanson Robokind LLC. * * 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.689655
113
0.710409
9e5fe4504347186df11a3c981f818a46abec201e
29
package com.liumapp.simple.b;
29
29
0.827586
22b75d039d08c77f1a8735af0a928698a5e7a399
9,697
package me.hydos.blaze4d; import java.io.FileOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.IntBuffer; import java.nio.LongBuffer; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.util.Arrays; import java.util.HashMap; i...
48.485
171
0.631639
c64283aaa1619bb19cda07d97495ca58a889718d
2,447
/* https://leetcode.com/explore/learn/card/queue-stack/239/conclusion/1393/ An image is represented by an m x n integer grid image where image[i][j] represents the pixel value of the image. You are also given three integers sr, sc, and newColor. You should perform a flood fill on the image starting from the pixel image...
33.986111
113
0.556191
8c5dba6f284e1ec9b1baf5f10748a27de9acbd05
147
package ru.intertrust.cm.core.config; public class FindNotificationContextObjectsQueryConfig extends FindNotificationContextObjectsConfigBase { }
29.4
105
0.884354
0fe22bd46382cbfae666f69ca39b2282770faec8
3,023
package com.gitee.gen.gen; import org.apache.commons.dbcp2.BasicDataSourceFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.sql.DataSource; import java.sql.Connection; import java.sql.SQLException; import java.util.Map; import java.util.Properties; import java.util.concurrent.ConcurrentHa...
35.151163
95
0.617929
3225c34a1cfd6759faf1df576d35a63a2d45b06c
330
import java.util.*; public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); String num1 = in.next(); char[] num=num1.toCharArray(); System.out.println(isNum(num1)); } public static boolean isNum(String str){ return str.matches("^[-+]?(([0-9]+)([.]([0-9]+))?|([.]([0-9]+))?...
20.625
69
0.618182
39e445a7d1a26b64783bb291eac870b4b04af6af
690
package me.matoosh.esketit.rules; import me.matoosh.esketit.ParserRule; /** * Prints value of a variable. * Usage: Smashin' on your bitch, {variable-name} */ public class PrintLnRule extends ParserRule { @Override public String getTriggerPhrase() { return "Smashin' on your bitch,"; } @Over...
26.538462
85
0.615942
afe903a7f146a458882d038fa060df60b2594b41
2,318
import org.jsoup.nodes.Element; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardOpenOption; import java.util.HashSet; /** * Created by tsotne on 7/16/17. */ public class Main { pu...
36.21875
237
0.619068
90369c7a568f94cc09fac9e909c58c477f2cde1e
2,623
/* * File created on Mar 10, 2016 * * Copyright (c) 2016 Carl Harris, Jr * and others as noted * * 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/L...
28.824176
78
0.740374
4e88227f02fd906e07cc4e6dd3aac48b90b22a6a
220
import dev.mgrech.javaopc.test.BigInteger2; public class Program { public static void main(String[] args) { BigInteger2 i = 1; BigInteger2 j = null; j = 2; System.out.println(i); System.out.println(j); } }
15.714286
43
0.681818
9e9fcb8430aa8e328b851cf216fdf60152b33d0f
1,880
/** * This file is part of the JCROM project. * Copyright (C) 2008-2015 - All rights reserved. * Authors: Olafur Gauti Gudmundsson, Nicolas Dos Santos * * 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 c...
32.413793
93
0.668085
22e5be0f8488041ef93f23c7777d50a8324cffeb
17,633
package de.metas.edi.api.impl; import static de.metas.esb.edi.model.I_EDI_DesadvLine_Pack.COLUMNNAME_BestBeforeDate; import static de.metas.esb.edi.model.I_EDI_DesadvLine_Pack.COLUMNNAME_C_UOM_ID; import static de.metas.esb.edi.model.I_EDI_DesadvLine_Pack.COLUMNNAME_IPA_SSCC18; import static de.metas.esb.edi.model.I_E...
47.400538
199
0.798106
39d1fa210ce396e04134cedd9d22172f17516d32
6,822
/* * 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 ...
32.331754
105
0.727939
d42e0a74ac6dd329539d04f47caf589c2dcc2c79
4,828
/////////////////////////////////////////////////////////////////////////////// // // AutobahnJava - http://crossbar.io/autobahn // // Copyright (c) Crossbar.io Technologies GmbH and contributors // // Licensed under the MIT License. // http://www.opensource.org/licenses/mit-license.php // /////////////////////...
41.62069
98
0.64623
af391b79fac17d4817a73734cf3d5ab3d1b617d1
307
package fm.pattern.valex.fixtures.dsl; @SuppressWarnings("unchecked") abstract class AbstractDSL<T, C> { public T thatIs() { return (T) this; } public T thatAre() { return (T) this; } public T and() { return (T) this; } public abstract C build(); }
14.619048
38
0.563518
1bd5e21896f6764215056ddcad739a792a3aa686
149
package com.codepath.apps.twitter.constants; public class Extras { public static final String TWEET_ID = "tweetId"; private Extras(){} }
14.9
52
0.711409
4ca1defd80a32f0c1fd11e5737711cae8e179bca
1,991
/* * Copyright 2017 K. P. Sroka * * 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...
32.112903
94
0.715721
997f6fd05b30c2a1ec392ae8e5ee27f7060c4d41
3,006
/** * Copyright 2005-2014 Red Hat, Inc. * * Red Hat licenses this file to you 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 r...
46.246154
137
0.616766
22d519f82ffb2df2848296c8679d56c4c97a9f41
751
package com.skydive.sdk; import java.io.IOException; /** * Created by Bartosz Nawrot on 2016-11-02. */ public abstract class CommInterface { protected CommInterfaceListener listener; public void setListener(CommInterfaceListener listener) { this.listener = listener; } public CommInterfac...
20.297297
69
0.684421
78a77fba8e5c9831141faf66cff97d191305f933
1,168
package ru.otus.hw2testforstudents.service; import org.springframework.stereotype.Service; import ru.otus.hw2testforstudents.domain.Person; import java.util.ArrayList; import java.util.List; @Service public class QuizPerformerImpl implements QuizPerformer { private final IOService ioService; public QuizPer...
27.809524
84
0.634418
eae55dbc08f8f76393ea485170872ef275b8d70b
1,375
package com.castle.store; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; class ConcurrentInMemoryImplementation implements KeyStoreTest.Implementation { static class Factory implements KeyStoreTest.ImplFactory { @Override public Ke...
31.25
96
0.696727
69211e0cccb76fb1f5c37841b3cb0095db6ab403
714
package org.conscrypt; import java.security.cert.X509Certificate; import java.util.Set; /** * A certificate store that supports additional operations that are used in * TrustManagerImpl. This is primarily implemented by the cert store on the * Android platform. */ @Internal public interface ConscryptCertStore { ...
27.461538
80
0.72549
9ec9f1924d8b945342399a4b98572ba882294a56
28,944
/* * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
40.033195
125
0.581122
8f828373bc6c0c6db092180576f3de8629759fa4
2,991
package com.mcxiaoke.minicat.adapter; import android.app.Activity; import android.content.Context; import android.database.Cursor; import android.provider.BaseColumns; import android.support.v4.widget.CursorAdapter; import android.text.TextUtils; import android.util.Log; import android.view.LayoutInflater; import andr...
35.607143
87
0.671347
820be0d1466b3a37a1775a057cde4a7d54f4c393
986
package com.greenpepper.reflect; import com.greenpepper.util.ClassUtils; import com.greenpepper.TypeConversion; import java.lang.reflect.Constructor; public class Type<T> { private final Class<? extends T> klass; public Type(Class<? extends T> klass) { if (klass == null) throw new NullPointerExc...
27.388889
96
0.68357
e69ed182199552958fde4517b8d9df3a360686ab
499
package ru.adelf.idea.dotenv.models; import com.intellij.psi.PsiElement; /** * Environment key usage PsiElement representation with key */ public class KeyUsagePsiElement { private final String key; private final PsiElement element; public KeyUsagePsiElement(String key, PsiElement element) { t...
19.192308
63
0.667335
e8a31afbf3b9e0712367c61a5f69ac8347808c46
1,605
package com.project.movietickets.service; import com.project.movietickets.entity.UserEntity; import com.project.movietickets.repository.UserRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.auth...
40.125
109
0.783801
6d5ff466eddc3e9ed6dd71dd9d57cb54716b4137
715
package dev.lazurite.thimble.side.client; import dev.lazurite.thimble.composition.packet.StitchCompositionS2C; import dev.lazurite.thimble.synchronizer.packet.SynchronizeEntryPacket; import net.fabricmc.api.ClientModInitializer; import net.fabricmc.fabric.api.network.ClientSidePacketRegistry; /** * Really doesn't do...
35.75
117
0.812587
d101704fbea4309f0cdd3715b4733a5a7adb939f
970
package com.redhat.service.bridge.shard.operator.app; import javax.enterprise.inject.Produces; import javax.inject.Inject; import javax.inject.Singleton; import com.redhat.service.bridge.shard.operator.utils.networking.KubernetesNetworkingTestUtils; import com.redhat.service.bridge.shard.operator.utils.networking.Net...
32.333333
95
0.801031
069cba571b3369e29bdf528b4ff9114be0091082
4,467
package org.petapico.nanobench; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Set; import org.eclipse.rdf4j.model.IRI; import org.eclipse.rdf4j.model.Resource; import org.eclipse.rdf4j.model.Statement; import org.eclipse.rdf4j.model.Valu...
34.627907
110
0.723976
164860d0d2ee1a97c0fa3ca8376ef9b70b6c7048
981
package cn.dm.composite.company; public class Main { public static void main(String[] args) { //一个总公司 ConcreteCompany root = new ConcreteCompany("北京总公司"); root.add(new HrDept("总公司人力资源部")); root.add(new FinanceDept("总公司财务部")); //三个子公司 ConcreteCompany com1 = new Concr...
29.727273
60
0.577982
5ea7a6c9565085202184aa514f19350068b076cc
1,202
package org.jabref.gui.edit; import org.jabref.gui.DialogService; import org.jabref.gui.StateManager; import org.jabref.gui.actions.SimpleCommand; import org.jabref.gui.util.BindingsHelper; import org.jabref.logic.l10n.Localization; import com.airhacks.afterburner.injection.Injector; import static org.jabref.gui.act...
35.352941
148
0.78619
dae83a16b5684605c9785c2db68ced9d795273f5
1,845
/* * 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.176471
92
0.751762
0d45ab09a6924b5bbd8912d149d8752b671312f7
4,564
package Lesson1; import java.util.ArrayList; public class Race { private Object[] members; private Obstacles[] obstaclesCourses; public Race(Object[] members, Obstacles[] obstaclesCourses) { this.members = members; this.obstaclesCourses = obstaclesCourses; } public void doRace(...
42.259259
112
0.425723
b93d87abb1a9f6730eed3df3034dac2587d5764b
3,325
package org.humancellatlas.ingest.core.service; import lombok.AllArgsConstructor; import lombok.NonNull; import org.humancellatlas.ingest.core.EntityType; import org.humancellatlas.ingest.core.MetadataDocument; import org.humancellatlas.ingest.core.exception.RedundantUpdateException; import org.humancellatlas.ingest.p...
55.416667
142
0.73985
09c4e2cf5a3a77c1dabae865f54a93001bfae4df
4,571
/* * Copyright 2016-2019 Tim Boudreau, Frédéric Yvon Vinet * * 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...
33.123188
119
0.606869
2d08c788f519dedd04e172bd7fcfada56128005a
1,129
package pt.up.fc.dcc.mooshak.content.types; import java.util.Date; import java.util.Map; import pt.up.fc.dcc.mooshak.content.MooshakContentException; /** * A type is HasListingRow if it can be presented as row in a listing. * Method getRow return a map containing row data indexed by column name. * Time of row since...
24.543478
74
0.735164
a3b243d106b9975da6057a9f62d8b9563e36ad32
2,791
package cc.mrbird.febs.auth.service.impl; import cc.mrbird.febs.common.service.RedisService; import com.alibaba.fastjson.JSONObject; import lombok.extern.slf4j.Slf4j; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation...
31.359551
123
0.706198
1f28a4696310667f3258945edbd0171859f5d216
1,356
package engine.graphics.image; import engine.util.Color; import java.nio.ByteBuffer; public interface WritableImage extends ReadOnlyImage { ByteBuffer getWritablePixelBuffer(); int getPixel(int x, int y); default void setPixel(int x, int y, Color color) { setPixel(x, y, color.toRGBA()); } ...
30.818182
129
0.664454
71685446162062cb9483f2f645431409c74c5bfb
1,856
package ga.rpmtw.www.storagedrawersforfabric.utils; import com.google.common.collect.ImmutableList; import net.minecraft.block.BlockState; import net.minecraft.client.render.model.BakedModel; import net.minecraft.client.render.model.BakedQuad; import net.minecraft.client.render.model.json.ModelOverrideList; import net...
23.2
84
0.679957
3163e34584b195d821a49cd7f8a830fe7edf8681
9,446
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.contextualsearch; import android.os.Build; import android.support.annotation.Nullable; import android.support.annotat...
44.980952
100
0.709824
884e1590d1640ad21596d378ea7ed4344643e80b
7,865
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
38.179612
132
0.695232
c867e3dbd09ff563b2106e7ca2638aae4f018dcc
2,508
package office ; import com4j.*; /** */ public enum MsoShapeType implements ComEnum { /** * <p> * The value of this constant is -2 * </p> */ msoShapeTypeMixed(-2), /** * <p> * The value of this constant is 1 * </p> */ msoAutoShape(1), /** * <p> * The value of this constant is...
14.752941
47
0.48445
21e48dd2d4c8de2b75f7563b00f27141222d6ea2
8,306
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: statistics.proto package org.tensorflow.metadata.v0; public interface NaturalLanguageStatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.metadata.v0.NaturalLanguageStatistics) com.google.protobuf.MessageOrB...
32.069498
114
0.699254
4551eaed8fed3747f48486318a25ca12e669be67
3,282
////////////////////////////////////////////////////////////////////////////// // // Copyright 2020, Cornutum Project // www.cornutum.org // ////////////////////////////////////////////////////////////////////////////// package org.cornutum.tcases.openapi; import org.ju...
42.623377
136
0.644424
c92c2379beb860ec79c466d4d1aabf68a880feb6
7,526
/** * 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...
28.08209
84
0.705288
b8a27d7fdb43c5be7abb31ec53640d2f41d02c98
588
package com.ialogic.games.cards.event; import java.util.ArrayList; import com.ialogic.games.cards.Card; import com.ialogic.games.cards.CardGameRule; public class CardEventFaceUp extends CardEventTurnToPlay { public CardEventFaceUp() { super("Declare Face Up Cards"); CardGameRule rule = new CardGameRule(); rul...
28
58
0.727891
44f257ba55794010e28526a5eb039140c27ca29c
372
package com.yueny.demo.micros.boot.spring.configure.service; import java.util.List; import com.yueny.demo.micros.boot.spring.configure.entry.ModifyDemoForJpaEntry; public interface IModifyDemoService { Long count(); ModifyDemoForJpaEntry queryById(Long id); ModifyDemoForJpaEntry queryByName(String name); List...
23.25
79
0.817204
70cdcdb6d9d81dfaf8715383c0b20d6214c4f0c0
3,474
/* MIT License Copyright (c) 2019 Universidad de los Andes - ISIS2603 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...
23.472973
88
0.646517
aca44382209cb03b07f62b7993f6539905e20e0f
646
package br.com.zup.casadocodigo.pais; import br.com.zup.casadocodigo.validator.RegistroValido; import com.fasterxml.jackson.annotation.JsonProperty; import com.sun.istack.NotNull; import javax.validation.constraints.NotBlank; public class PaisEstadoRequest { @JsonProperty @NotNull @RegistroValido(entidad...
20.83871
56
0.685759
c1867fc5466db59aa52892419f0c8ce823e0ad9a
1,502
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited. package com.starrocks.external.iceberg; import com.starrocks.catalog.IcebergTable; import org.apache.iceberg.Table; import org.apache.iceberg.catalog.TableIdentifier; import java.util.Map; /** * Interface for Iceberg...
34.930233
98
0.682423
64fe05dd111441a55bede93f75b3418f8a8e9631
1,630
package org.springframework.web.spingmvc; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bi...
22.957746
66
0.727607
eaadcf4c49a65c32c65ae24991904cc9c441f4ac
1,958
package org.cnt.java.io.bio; import java.io.InputStream; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.net.Socket; import java.text.SimpleDateFormat; import java.util.Date; import java.util.concurrent.atomic.AtomicInteger; /** * @author lixinjie * @since 2019-05-07 */ p...
27.577465
154
0.627171
4e30f98ef36b141c602bf0bddcaeac984489b7e7
1,955
/* * MIT License * * Copyright (c) 2020 Christophe Deleray * * 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, cop...
34.910714
82
0.752941
d8e69509b081834413e8d31175f07c8833433f82
4,471
/** * Copyright 2011-2021 Asakusa Framework Team. * * 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...
28.845161
101
0.572803
ef317c7c230e191fba6ac8128f34ac274a35065c
4,344
/* * 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 ...
21.829146
102
0.563766
6e1a528cfddabe9ad371ad4b110b8add02b41e65
8,912
import data.*; import javax.swing.*; import java.io.*; import java.util.ArrayList; import java.util.InputMismatchException; import java.util.Scanner; public class Parser { static int noOfPolygons = 0; //count how many polygons entered so far public Parser(File file) { try { FileReader in...
42.236967
124
0.475875
bd3bd8aaee355fbfc56691398f9333c4c8eed9aa
6,449
package cz.metacentrum.perun.webgui.json.registrarManager; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.i18n.client.LocaleInfo; import com.google.gwt.user.client.ui.*; import com.google.gwt.user.client.ui.FlexTable.FlexCellFormatter; import cz.metacentrum.perun.webgui.client.PerunWebSessio...
27.917749
134
0.718871
98600949bfe1490a3b822f664d7a0940f1ba6fc2
582
package com.skcraft.plume.network; import io.netty.buffer.ByteBufInputStream; import io.netty.buffer.ByteBufOutputStream; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import java.io.IOException; public interface PlumePacket { void readFromServer(ByteBufInpu...
25.304348
66
0.812715
8126eb569e0fba32c63b8a4dfd917f731eba2c40
16,185
/* * Copyright (C) 2014 Archie L. Cobbs. All rights reserved. * * $Id$ */ package org.jsimpledb.kv.util; import java.util.Iterator; import java.util.NavigableSet; import org.jsimpledb.kv.KVPair; import org.jsimpledb.kv.KVStore; import org.jsimpledb.kv.KeyFilter; import org.jsimpledb.kv.KeyFilterUtil; import org...
40.061881
132
0.649428
5771ac20efd19ec81ba954f4f32f3c7b1444aea9
1,072
package com.kzmen.sczxjf.test.bean; /** * Created by Administrator on 2017/8/17. */ public class TstBean { /** * id : 1 * name : 测试 * email : 123@126.com * memo : 测试1 */ private int id; private String name; private String email; private String memo; public int get...
17.015873
44
0.469216
0c9209737b091a5842cbb6d298639b2bf7b9460d
3,037
package com.sls.security.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToOne; import javax.persistence.Table; import com.fas...
19.100629
160
0.713533
00ff6f42ca3cf547b02369379174282c497428f8
9,023
/* * Copyright (c) Andrey Kuznetsov. All Rights Reserved. * * http://uio.imagero.com * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, ...
20.140625
86
0.577746
5efb52d1ae21118eac7e4709f457ad222a1c053a
1,158
package org.knowm.xchange.coinmate.dto.trade; import com.fasterxml.jackson.annotation.JsonProperty; import java.math.BigDecimal; public class CoinmateTransferHistoryEntry { private final long id; private final BigDecimal fee; private final String transferType; private final long timestamp; private final Str...
32.166667
60
0.74266
e99796726c3e1497010dd59c5428fb637e331e0a
8,098
package com.huaweicloud.sdk.sdrs.v1.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Collections; import java.util.HashMap; import j...
30.216418
106
0.629538
77e0889610e57d38c5a3ab444c7a884e066c0b51
872
package com.opitzconsulting.orcas.maven; import java.io.File; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; /** * Specialized version of <a href="ExecuteOneTimeScripts-mojo.html">ExecuteOneTimeScripts</a> which is added at the beginning of the build cycle. ...
22.947368
145
0.732798
80f0811c35fa816b2729d6a1d6956fac9ed8bfff
284
package com.loserico.pattern.flyweight.demo; public class CPlatform implements Platform { public CPlatform() { System.out.println("CPlatform object created"); } @Override public void execute(Code code) { System.out.println("Compiling and executing C code."); } }
23.666667
57
0.71831
f1c2b30d95701c7fb935cdcc1b1f11d9d08d52e0
681
package com.jd.easyflow.flow.cases.runner; import java.util.concurrent.Executors; import java.util.concurrent.SynchronousQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.ThreadPoolExecutor.AbortPolicy; import java.util.concurrent.TimeUnit; import com.jd.easyflow.flow.engine.impl.Mult...
28.375
103
0.769457
033950dd48e43ff9c2055d132fe0e1e8ebcdfda8
10,804
package slimeknights.tconstruct.tools.common.inventory; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.i...
37.776224
147
0.725842
d972c7d1acf60bc946e6c72c74ef457dc8b504c6
411
package org.uibk.iis.robotprojectapp; public class ObstacleSurrounder { public interface PositionListener { void onPositionUpdated(OdometryManager.Position pos); } public enum Dir { LEFT, RIGHT } private Dir direction; private int distanceToObject; public ObstacleSurrounder(Dir direction, int distanceT...
17.869565
65
0.776156
141672734a09cae2ffd72a8c4d6c983f081eefc7
5,928
package com.github.conanchen.guoi.graphql.enums; //# Currency codes public enum CurrencyCode { // # United States Dollars (USD) USD, // # Euro (EUR) EUR, // # United Kingdom Pounds (GBP) GBP, // # Canadian Dollars (CAD) CAD, // # Afghan Afghani (AFN) AFN, // # Alb...
14.147971
55
0.482794
e856e1e88a639201f69ff332b54d811837f54f6a
1,184
package com.jwss.music.observer; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.control.ProgressBar; import javafx.scene.image.Image; import javafx.scene.image.ImageView; /** * 视图对象观测器 * * @author jwss * @date 2022-2-22 20:04:34 */ public class ViewObserver { priva...
30.358974
110
0.722973
d6e77e81de38a31842c5fa6f7c284af1495bc011
7,867
package edu.iub.seclab.appguardian; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import edu.iub.seclab.appguardian.R; import android.media.MediaRecorder; import android.os.Bundle; import android.os.Handler; import android.os.Mess...
29.245353
114
0.680946
20694018a9b42da46461a1c7870d6b3f6393feb9
281
package ic2.api.energy.event; import ic2.api.energy.tile.IEnergySource; public class EnergyTileSourceEvent extends EnergyTileEvent { public int amount; public EnergyTileSourceEvent(IEnergySource energySource, int amount) { super(energySource); this.amount = amount; } }
20.071429
71
0.790036
69311d4851352fc43de5964f8e416dd59bfa88da
2,279
/* * Copyright (c) 2015 Hewlett-Packard Development 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 * * Unless require...
24.244681
84
0.697236
11087d9ef90a9b6b0b3ef292cb874a3c3e75aaf5
1,761
package com.huanhai.utils; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Properties; /** * @version 1.0 * @Description: 读取配置文件 * @Author: 覃波 * @Date: 2019/7/9 */ public class LoadProperties { private ClassLoader cl = LoadProperties.class.getCl...
32.018182
159
0.601363
030daa7fdbf6c0be89a0dfc57266dbb8ac4fdcef
2,907
package facade; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import servidor.Db; import servidor.Farmacia; import servidor.Usuario; public class FarmaciaFacade { Statement stmt = null;...
22.534884
119
0.671827
b3f00e2eab453c001093a0f46ed60493ce4a6f09
205
package com.apl.ticket.ui.login.model; import com.apl.ticket.ui.login.contract.LogInContract; /** * Created by Administrator on 2017/3/31. */ public class LogInModel implements LogInContract.Model{ }
18.636364
55
0.765854
f89b0b01d3f2c0eaa849a409496c98f0f07320e0
835
package cn.ffcs.wisdom.city.web.entity; /** * <p>Title: web popWin实体 </p> * <p>Description: </p> * <p>@author: zhangws </p> * <p>Copyright: Copyright (c) 2013 </p> * <p>Company: ffcs Co., Ltd. </p> * <p>Create Time: 2013-5-31 </p> * <p...
22.567568
49
0.511377
24d5729b3fe767fcc388a1bdfb59658bbfe34566
862
package org.infinispan.tx.recovery.admin; import org.infinispan.configuration.cache.CacheMode; import org.infinispan.configuration.cache.ConfigurationBuilder; import org.testng.annotations.Test; /** * @author Mircea Markus * @since 5.0 */ @Test(groups = "functional", testName = "tx.recovery.admin.CommitFailsReplic...
25.352941
86
0.741299
2401d19acecbbb75cd772b2d6b93bd226b4a92c4
228
package db; import java.sql.ResultSet; public interface iOperations { public boolean Connect(String connectionString,String user,String password); public boolean Execute(String sql); public ResultSet Select(String sql); }
20.727273
77
0.798246
a27363a9b66ad1183b986efdc2ef933da36bc407
157
package br.com.albus.comum.pais; import br.com.albus.generic.GenericRepository; public interface PaisRepository extends GenericRepository<Pais, Long> { }
19.625
71
0.808917
2f10243a2488792cf8be39c2dd522a3778b15cfc
571
package com.darian.pattern_23._07_builder; public class House { private String floor; private String wall; private String housetop; public String getFloor() { return floor; } public void setFloor(String floor) { this.floor = floor; } public String getWall() { ...
15.861111
46
0.600701
0a3a16d64c09e7be847a0459ea0e83a6f5520c31
511
package passion.springboot.passion.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; @Controller @RequestMapping("/") public class ProjectController { @GetMapping("/projects") ...
26.894737
62
0.741683
e9a891d47625f12c0f2e3977a14f42034576209c
839
package com.xiaoping.thread; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class ThreadPool { static class Task implements Runnable { @Override public void run() { System.out.println(System.currentTimeMillis() + " - " + Thread.currentThre...
25.424242
101
0.564958
6226b4fe3111a346d8ca155cc8f37abf761a5164
905
package com.alibaba.rocketmq.remoting.netty; import com.alibaba.rocketmq.remoting.InvokeCallback; import com.alibaba.rocketmq.remoting.common.SemaphoreReleaseOnlyOnce; import java.util.concurrent.Semaphore; public class GroupResponseFuture extends ResponseFuture { private final Semaphore semaphore; public ...
30.166667
93
0.664088
ae8ccceeb29a8137c64ba0b32a57e4aedb7c5119
32,960
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 license...
13.037975
814
0.795874
535a669945ced6a94460cc688e70dbe8352cee80
863
/* * Copyright (C), 1987-2099, Winter All Rights Reserved. */ package com.winterframework.core.convert.support; import com.winterframework.Nullable; import com.winterframework.core.convert.ConversionService; /** * @author huangwh@paraview.cn * @since 2021/07/26 */ public class DefaultConversionService extends Ge...
27.83871
72
0.645423
1c191ef2c93896880458b383d05bc86e27471ced
830
package com.blink.jtblc.core.binary; import com.blink.jtblc.core.serialized.StreamSink; import java.io.*; public class FileSTWriter extends STWriter implements Closeable { BufferedOutputStream out; private FileSTWriter(StreamSink sink, BufferedOutputStream out) { super(sink); this.out = out;...
25.151515
69
0.651807
e2f76ff7ac2d354943b3dede7b7067a446c9ae4c
328
package game.blocks; import game.chunk.Chunk; public interface BlockModifier { default void onDig(double posX, double posY, double posZ, Chunk chunk) { } default void onPlace(int posX, int posY, int posZ, Chunk chunk) { } default void onRightClick(int posX, int posY, int posZ, Chunk chunk){ ...
17.263158
76
0.682927
90ce5631b9a26b4acc8c762e2e9169628c1a8197
4,117
/* * @(#) ByteArrayView.java * * Copyright (C) 2015, Chris Wareham, All Rights Reserved */ package net.chriswareham.mvc; import java.io.IOException; import java.io.OutputStream; import java.util.Map; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet...
32.417323
195
0.65266
fbbccaec069de9bdc945478484ce8a200003dbe8
6,402
package com.liziczh.erp.web.controller; import com.liziczh.erp.common.code.BaseRestCode; import com.liziczh.erp.common.response.BaseRestResponse; import com.liziczh.erp.common.response.PageRestResponse; import com.liziczh.erp.dto.request.PurchaseDTO; import com.liziczh.erp.dto.request.SaleDTO; import com.liziczh.erp.d...
39.763975
121
0.691971
25618026d9c52d112a239110d16101ce22bffe9e
632,231
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.example.android.miwok; public final class R { public static final class anim { public static final int abc_fade_in=0x7f01...
50.618975
185
0.65933
90f33ec0c395421292ff96e74e3fd1fcad677190
8,756
package io.apptik.rhub.example; import org.reactivestreams.Publisher; import io.apptik.rhub.AbstractReactorHub; import io.apptik.rhub.DefaultReactorHub; import io.apptik.rhub.RSHub; import io.reactivex.Flowable; import io.reactivex.subscribers.DefaultSubscriber; import reactor.core.publisher.Flux; import static io....
38.915556
96
0.455916
50852d0d6bf1ecb10199ee6e1139c534c58bddb5
4,934
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. * * Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners. * * The contents of this file are su...
36.279412
84
0.691528
222a3f32c8956bbe2112ee5c931aba8d8f88e37b
1,219
package com.github.genmllc.liferay.common.exception; import javax.servlet.http.HttpServletRequest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.Ex...
32.078947
97
0.794914
1c148935bda6c459dd9a6d68b8efe3180fc53237
6,595
/* __ __ _ * \ \ / /__ _ __ (_) ___ ___ * \ \/ / _ \ '_ \| |/ __/ _ \ * \ / __/ | | | | (_| __/ * \/ \___|_| |_|_|\___\___| * * * Copyright 2017-2021 Venice * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
32.810945
137
0.707354
f239de69a990631bf31e2e2a0901bd6eb32afaa8
16,272
package com.android.myapidemo.smartisan.browser.bookmarks; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.res.Resour...
33.829522
176
0.587635