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
d17b9e88dd09f5618795a314ffc13dbe5fd04ece
166
package com.github.gv2011.util.beans; @FunctionalInterface public interface Parser<T> { T parse(final String encoded, ExtendedBeanBuilder<T> builder); }
18.444444
65
0.740964
44dd39785cc800d354c8d262bed9f52c2c547e05
592
package org.flowable.rest.servlet; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.EnableAsync; @Configuration @ComponentScan({ "org.flowa...
34.823529
98
0.842905
020c2d10726d467416b639beec7b47aa882de680
16,130
/******************************************************************************* * Copyright 2011 Netflix * * 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.651822
100
0.584439
c9adfe62c3e83b8e33d5b80bcd1de1bc29fb92a1
410
package com.xiaomi.channel.commonutils.logger; import org.android.agoo.common.AgooConstants; public class a implements LoggerInterface { private String a; public a() { this.a = AgooConstants.MESSAGE_SYSTEM_SOURCE_XIAOMI; } public void log(String str) { } public void log(String str, ...
18.636364
60
0.660976
799c48c43031c0a48880d9504e61f16e22f514dd
1,061
package org.narrative.common.persistence.hibernate; import org.hibernate.dialect.function.SQLFunction; import org.hibernate.dialect.function.StandardSQLFunction; import org.hibernate.engine.spi.SessionFactoryImplementor; import org.hibernate.type.Type; import java.util.List; /** * Created by IntelliJ IDEA. * User:...
29.472222
103
0.71065
c492185334194c17515cd70aff2d13ad90ca7697
4,274
package org.hzero.admin.domain.entity; import com.fasterxml.jackson.annotation.JsonInclude; import io.choerodon.core.exception.CommonException; import io.choerodon.mybatis.annotation.ModifyAudit; import io.choerodon.mybatis.annotation.MultiLanguage; import io.choerodon.mybatis.annotation.MultiLanguageField; import io....
26.382716
96
0.676416
7cc4d19390c3188084d994d140cf2b164c8cc38a
4,619
package example; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintStream; import java.security.GeneralSecurityException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Scanner; import com....
41.612613
114
0.740204
f6e520c43d9c94289f8203bd43fbdb383e646e79
322
package com.example.BookService; import com.example.BookService.database.Database; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class AppConfig { @Bean public Database database() { return new Database(); } ...
20.125
60
0.763975
5367c2d2bbc5c060568e069803910657ea0143ec
85
int factorial(n = 4) { if (4 <= 1) return 1; return 4 * factorial(3); }
14.166667
27
0.494118
0f5287e23a42a8d83711f30f3a731fa6764d1207
183
package org.lefmaroli.factorgenerator; public interface NumberGenerator<N extends Number> extends ReusableGenerator, Iterable<N> { N getNext(); NumberGenerator<N> getCopy(); }
20.333333
91
0.775956
3d4bab45650d4688b097162844b82e22acd4ed76
15,874
/* Copyright (c) 2013 OpenPlans. All rights reserved. * This code is licensed under the BSD New License, available at the root * application directory. */ package org.geogit.remote; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.i...
36.077273
100
0.595817
7ff0e6529e784b2dce078f3cda1af9010df49d0d
2,146
/** * Copyright (C) 2006-2016 INRIA and contributors * Spoon - http://spoon.gforge.inria.fr/ * * This software is governed by the CeCILL-C License under French law and * abiding by the rules of distribution of free software. You can use, modify * and/or redistribute the software under the terms of the CeCILL-C li...
29.805556
98
0.767008
48080063760e9c8d582836236ec8bbe77aebead6
1,422
package hello.domain; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "T_SYS_USER") public c...
17.775
94
0.658228
eff8dc1bf54e704f0b4cae17236b784b8ed04036
355
package io.renren.modules.saas.dao; import io.renren.modules.saas.entity.AuthenEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * * * @author blooze * @email 1459264166@qq.com * @date 2019-04-25 11:34:20 */ @Mapper public interface AuthenDao exte...
19.722222
61
0.752113
40f6017ceed81f99dc65c3c81017857d875e374d
3,249
package betterwithaddons.util; import net.minecraft.block.BlockBanner; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.ItemBanner; import net.minecraft.item.Item...
40.6125
132
0.661127
f524bc756d29493b0a3808a5950a3359ac8a814c
5,529
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra GraphQL Extension * Copyright (C) 2018 Synacor, Inc. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software Foundation, * version 2 of the License. * * This p...
36.615894
111
0.716043
3cf748eee6b29cf612118015ca4fcbb9e462b96c
116
package cardibuddy.model.flashcard; /** * Type of card. */ public enum CardType { FLASHCARD, IMAGECARD }
11.6
35
0.663793
9c2f5e4e516c3d809929b9b48d4259d3c27d7bac
607
package javaapp; public class ExceptionDemo { public static boolean isValidUser(String user) throws InvalidUser { if(!user.contentEquals("admin")) { throw new InvalidUser(); } else return true; } public static void main(String[] args) { // TODO Auto-generated method stub try { isValidUser("admine...
14.116279
66
0.672158
7c3378de16e05224ff49bd25d7648c14ac6be680
2,086
package de.seine_eloquenz.lbcfs.utils; import java.util.StringJoiner; /** * Class containing utils for Strings */ public final class StringUtils { /** * Concatenates the string array to a message using blanks as delimiters * @param args args to concat * @return concatenated string */ pu...
36.596491
115
0.663471
9def8f1d194530dbb0bb1bc27d1b3efe73a194ce
1,238
/* * Meltwater Streaming API v2 * The Meltwater Streaming API provides the needed resources for Meltwater clients to create & delete REST Hooks and stream Meltwater search results to your specified destination. * * OpenAPI spec version: 2.0.0 * Contact: support@api.meltwater.com * * NOTE: This class is auto gene...
24.27451
179
0.703554
553ec671fd0787080f13b1489e151b1d4418d656
8,310
/* * Copyright DataStax, 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 agreed to in wri...
37.432432
100
0.634296
905c5a7fd03b2fe29c4446fbd896d2a6d49b5aa7
1,924
package com.github.chrisblutz.trinity.lang.types.nativeutils; import com.github.chrisblutz.trinity.lang.types.bool.TYBoolean; import com.github.chrisblutz.trinity.natives.TrinityNatives; /** * @author Christopher Lutz */ class NativeFloat { protected static void register() { TrinityNative...
52
171
0.709979
0bbe4296fd7daacd6472b927902dad69e11066f3
8,776
/* * Licensed to CRATE Technology GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you may not us...
45.237113
135
0.677302
2aac3703d07872819634b0133dfa2d9b49ebca5e
688
import java.util.Scanner; public class ReverseCString { public static void main(String[] args) { // Accepts a string as input and shows output of reverseCString Scanner s = new Scanner(System.in); System.out.println("Enter a string."); String str = s.next(); System.out.println("The string " + str + " revers...
28.666667
88
0.655523
7b76a5b2f9144f089dcd569f50517842d5cf710e
3,533
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
29.441667
92
0.585621
c37e5c15963037940a822bc03225a4d67d041c76
1,204
/* * Queryman. Java tools for working with queries of PostgreSQL database. * * License: MIT License * To see license follow by http://queryman.org/license.txt */ package org.queryman.builder.command.update; import org.queryman.builder.Query; import org.queryman.builder.token.Expression; /** * UPDATE .. SET ....
26.755556
86
0.673588
e75525723f7ca88125cff2b8fcabef0c6eec55fb
10,324
package org.support.project.knowledge.control.admin; import java.util.ArrayList; import java.util.List; import org.support.project.common.bean.ValidateError; import org.support.project.common.util.StringUtils; import org.support.project.di.DI; import org.support.project.di.Instance; import org.support.project.knowled...
39.254753
131
0.657691
6a7fd690f6b16d2678dd8de8e9ae96e8573d7392
3,555
package ru.timmson.jloan; import lombok.Getter; import java.math.BigDecimal; import java.math.MathContext; import java.util.Collections; import java.util.Comparator; import java.util.LinkedList; import java.util.List; import java.util.stream.Collectors; import java.util.stream.IntStream; import static java.math.BigD...
37.819149
137
0.651195
e31b8812ecb41a21f51d14ed6de3633f567b3a14
2,192
// WARNING: This file is autogenerated. DO NOT EDIT! // Generated 2018-09-20 19:13:06 +0200 package jnr.constants.platform.solaris; public enum Fcntl implements jnr.constants.Constant { F_DUPFD(0L), // FAPPEND not defined // FREAD not defined // FWRITE not defined // FASYNC not defined // FFSYNC not defined // FNONBLOC...
29.226667
89
0.731296
824ebf64fa711597915d3b5f36cd63a78eff9a42
274
package de.chris.apps.cars.vehicle; public class VehicleNotExisting extends RuntimeException { private static final long serialVersionUID = 8460613660424609112L; VehicleNotExisting(String vin) { super("Vehicle with vin: " + vin + " not existing"); } }
27.4
70
0.726277
76dca1bdd10d459b44ba9e19e4c9dc13c0972f35
7,290
/* * 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 ...
35.217391
195
0.646228
26d7c6ca4120fbc4344f88c74276f53f655ef434
2,657
package som.interpreter.actors; import som.primitives.ObjectPrims.IsValue; import som.primitives.ObjectPrimsFactory.IsValueFactory; import som.vmobjects.SArray.STransferArray; import som.vmobjects.SObject; import com.oracle.truffle.api.dsl.Specialization; import com.oracle.truffle.api.nodes.Node; public abstract cl...
34.960526
106
0.7516
f85f0a6fa78962754c09f254d6849c42963f43e2
336
package org.infinispan.api.sync; import org.infinispan.api.common.MutableCacheEntry; import org.infinispan.api.common.process.CacheEntryProcessorContext; /** * @since 14.0 **/ @FunctionalInterface public interface SyncCacheEntryProcessor<K, V, T> { T process(MutableCacheEntry<K, V> entry, CacheEntryProcessorCont...
25.846154
80
0.791667
33d4f614208b687ab9faaefb05afe941161be626
3,648
package tt.servlet; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.io.IOException; import java.security.SecureRandom; import javax.imageio.ImageIO; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.se...
28.061538
91
0.613761
2568773df08cf27d934c7758c3bd516823bafb23
756
/** * Copyright (C) 2013-2016 The Rythm Engine project * for LICENSE and other details see: * https://github.com/rythmengine/rythmengine */ package org.rythmengine; import com.google.appengine.api.LifecycleManager; enum GaeShutdownService implements ShutdownService { INSTANCE; @Override public void ...
25.2
96
0.562169
4775c26f6a4508039dfdffb18e34c8b439897b4d
14,317
/* * Copyright (c) 2010-2019 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.model.impl.expr; import static org.testng.AssertJUnit.assertEquals; import static org.testng.Asser...
45.741214
272
0.746595
fc54cfed1a4e4dabb9fcafe7e91e9613065a2c7b
2,727
/* Copyright (C) 2019 Interactive Brokers LLC. All rights reserved. This code is subject to the terms * and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. */ package com.ib.api.dde.utils; import java.util.ArrayList; import com.ib.api.dde.socket2dde.data.TickByTickDa...
42.609375
106
0.649432
35fbe314a7fac3052640afcb218000f3316873e2
860
package com.block.xjfkchain.data; /** * Copyright (C) 2020, Relx * FilEarnListEntity * <p> * Description * * @author muwenlei * @version 1.0 * <p> * Ver 1.0, 2020/10/22, muwenlei, Create file */ public class FilEarnListEntity { /** * id : 1869 * tran_id : 1869 * uid : 2553 * type : r...
20
58
0.613953
821ae357a50684d7d85542d15efa8ec551f00ca2
760
import java.util.*; public class TestClass { public static void main(String args[]) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); int k = in.nextInt(); int arr[] = new int[n+1]; for(int i =0;i<n;i++) arr[i+1]= in.nextInt(); lo...
21.111111
46
0.447368
f3073f4cad793b8cfb50ee0920076245285cd335
1,507
package fi.vincit.multiusertest; import fi.vincit.multiusertest.annotation.RunWithUsers; import fi.vincit.multiusertest.configuration.TestBaseClass; import org.junit.Test; import static fi.vincit.multiusertest.rule.expectation.TestExpectations.expectException; import static fi.vincit.multiusertest.rule.expectation.Te...
32.76087
90
0.678832
d2700438dcf8e7d545ceaf8e223cb436c019caef
404
package com.engineeringplus.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraftforge.common.ToolType; public class BlockAluminium extends Block{ public BlockAluminium(){ super(Properties.of(Material.METAL) .strength( 4.0f, 5.0f) ...
23.764706
48
0.680693
d813665d8e3dd52a3ab65f4cc3cb739027dfa0aa
2,681
package com.y1ph.easy.design.security.oauth.controller; import com.y1ph.easy.design.common.enums.Locked; import com.y1ph.easy.design.security.annotation.PreAuthorize; import com.y1ph.easy.design.security.beans.AccessToken; import com.y1ph.easy.design.security.beans.Principal; import com.y1ph.easy.design.security.oauth...
31.916667
98
0.712421
7b93dd5d483bd1950b578ce75a26d5669b8a6d7c
2,062
import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import com.sun.javacard.apduio.CadTransportException; public class OracleSimulator implements Simulator { private JavaCardHostApp hostApp = new JavaCardHostApp(); public void initaliseSimulator() throws IOException, CadTransportExce...
31.242424
104
0.660524
42f6e216a686b5f7e9db2949aade50fbf69bf0e2
1,163
package io.github.bettersupport.lock.core.model; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.recipes.locks.StandardLockInternalsDriver; import org.apache.zookeeper.CreateMode; import java.util.concurrent.TimeUnit; /** * zookeeper 获取锁驱动 * @author wang.wencheng * date 2...
30.605263
184
0.738607
2e1cb30991cc293a04629075e8de5580064981ac
3,156
/* * Copyright (c) 2015, SRI International * All rights reserved. * Licensed under the The BSD 3-Clause License; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://opensource.org/licenses/BSD-3-Clause * * Redistribution and use in...
33.221053
79
0.71071
8db254d7a2d40bbece88d632d6d130ff45fa1aee
1,179
package tracesListener; import java.awt.Color; import java.util.prefs.Preferences; public class ProgFilter { String name = null; Color color = null; int pid = -1; /** * @param name */ public ProgFilter(String name, Color color) { super(); this.name = name; this.color = color; pid = -1; } public...
16.842857
80
0.661578
42951437e69564af73f6de20359422e2f2422cd6
9,038
/* * * Copyright 2015-2018 Vladimir Bukhtoyarov * * 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 * * ...
40.348214
247
0.691082
311444b9874a914b9fe7bfed4765dc048c835c90
1,143
package ua.com.fielden.platform.serialisation.jackson.entities; import ua.com.fielden.platform.entity.AbstractEntity; import ua.com.fielden.platform.entity.annotation.DescTitle; import ua.com.fielden.platform.entity.annotation.Ignore; import ua.com.fielden.platform.entity.annotation.IsProperty; import ua.com.fielden.p...
27.214286
75
0.748031
9fa4f2ea0fa45da00f776039eb4fa2821b352b79
3,394
/* * Copyright 2014, The Sporting Exchange 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 applicabl...
35.354167
156
0.63406
f773d46e1c6f7fec66e63da443c76a0a8dc23244
18,421
package eu.isas.peptideshaker.scoring; import com.compomics.util.waiting.WaitingHandler; import eu.isas.peptideshaker.filtering.AssumptionFilter; import eu.isas.peptideshaker.scoring.targetdecoy.TargetDecoyMap; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; ...
36.405138
175
0.642148
4cbb268ae47eca5887ed9a96aa9f4955276d689d
1,389
package by.jackraidenph.dragonsurvival.network.emotes; import by.jackraidenph.dragonsurvival.common.capability.DragonStateProvider; import by.jackraidenph.dragonsurvival.network.IMessage; import net.minecraft.entity.player.ServerPlayerEntity; import net.minecraft.network.PacketBuffer; import net.minecraftforge.fml.net...
29.553191
95
0.728582
116f2e008a6250e85910fb2b318220263446e17d
124
package com.mdj20.quickgraph.quickgraph.main; public interface DiGraph<V> extends BaseDiGraph<V,DirectedEdge<V>> { }
20.666667
69
0.758065
eb98e3a849279a7b5ae90f6ad5bb4a7ce5dedf20
934
package org.parseout.java; import org.parseout.ContentType; import org.parseout.run.Run; /** * Runs of (non punctuation symbols) * * OPERATOR * SEPARATOR * */ public class OperatorRun extends Run.ContentRun { public static ContentType CONTENT_TYPE = new ContentType("Operator", ContentType.OPERATOR); pub...
21.227273
95
0.407923
9e2b56464d385a1c8f71bfde94cbefd6764e0d31
1,771
package mullak99.mullak99sMod.container; import java.awt.Dimension; import java.awt.List; import java.util.ArrayList; import java.util.Iterator; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.IRecipe; import net.minecraft.world.World; public ...
20.593023
142
0.760023
58e6a756bc2a78bf3dde138ad1fe9ff5971bb7d7
967
package miage.skillz.models; import lombok.*; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashSet; import java.util.Set; @Getter @Setter @Builder @AllArgsConstructor @NoArgsConstructor @ToString public class QuizImpl { private Long idQuiz; private String name; private Stri...
24.794872
116
0.709411
098248b7760ec8e8061ac082b4f7e816b23e859c
2,349
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.github.eddyosos.e_sus_ab_factory.cds.esus.cds.consumoalimentar; import br.gov.saude.esus.cds.transport.generated.thrift.co...
29
124
0.708812
7554d76ac23ac172635c931bf67954f79b6608f6
7,481
/** * 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 requ...
42.265537
123
0.702714
c5a227bf495d275f27275a72f1a10274849346d9
634
package org.firstinspires.ftc.team2981.old; import com.qualcomm.robotcore.hardware.HardwareMap; import com.qualcomm.robotcore.hardware.Servo; import org.firstinspires.ftc.team2981.old.systems.FourBar; import org.firstinspires.ftc.team2981.old.systems.RobotDrive; import org.firstinspires.ftc.team2981.systems.*; publi...
25.36
61
0.716088
c0adbf5de7d97b31b7f73ad3357a220f3db94902
1,185
package com.muscleape.excel.test.model; import com.muscleape.excel.annotation.ExcelProperty; import lombok.Data; import java.math.BigDecimal; import java.util.Date; @Data public class ReadModel extends BaseReadModel { @ExcelProperty(index = 2) private Integer mm; @ExcelProperty(index = 3) private B...
22.788462
52
0.518143
de19640026d6d56ae1f3a9f7feb757475c385dd8
5,387
/** * Copyright 2018-2021 Deere & Company * * 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.646259
108
0.754037
7434f0cb8d27fc29e72b1b680b00827ba1cbcdcc
3,229
package sonar.flux.network; import io.netty.buffer.ByteBuf; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; import net.minecraftforge.common.util.Constants; import net.minecraftforge.fml.common.network.ByteBufUtils; import net.minecraftforge.fml.common.network.simpleimpl.IMessage; import...
35.097826
104
0.771137
0419e5341d0f5b8983aa01f94f2f943a4589e016
1,157
package com.kfzx.leyou.user.pojo; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.hibernate.validator.constraints.Length; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax...
20.298246
60
0.719965
f3dc28126ad18a67d81fed9739e772169836f03d
1,678
package com.sun.mobileshop.db; import android.database.sqlite.SQLiteDatabase; import com.sun.mobileshop.common.MyApplication; import com.sun.mobileshop.gen.DaoMaster; import com.sun.mobileshop.gen.DaoSession; /** * Created by Administrator on 2019/5/3 0003. * <p> * 数据库配置 */ public class GreenDaoManager { /...
25.044776
122
0.643027
92838f7bed037e9be5667d2c8c9a728f996350b3
3,399
package com.lofidewanto.demo.server.domain; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fas...
22.361842
86
0.620477
bd2a9f178abd7eb0551c622d190112104ea6e745
7,157
package com.company; import java.sql.*; import java.util.List; import com.company.model.*; public class Main { public static void main(String[] args) { // write your code here Datasource datasource = new Datasource(); if(!datasource.open()) { System.out.println("Can't open datasourc...
51.862319
115
0.521867
3e5dcabd1b534d0a68c36ee4dde523c797a0442c
671
package com.hospital.management.exception; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.util.Date; public class GlobalResponse { public GlobalResponse() { } public Date getDate() { return date; } public GlobalResponse(Date date, Str...
17.657895
54
0.642325
7db69257ee798accbd6efedc5c6bfc57bfe6c79d
9,727
package com.biermacht.brews.frontend.fragments; import android.content.Context; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.Vi...
34.739286
131
0.714198
a609cc57d046234d3692e49442a9afe8a4a3bd74
1,534
package chav1961.necrosql; import java.io.File; import java.sql.Connection; import java.sql.Driver; import java.sql.DriverManager; import java.sql.SQLException; import java.util.Enumeration; import org.junit.Assert; import org.junit.Test; public class SimpleDriverTest { @Test public void spiAndURITes...
31.306122
110
0.698827
daffcce42c646fcacca1c43a4e20425d785be3ec
1,797
/* * #%L * ELK OWL Model Implementation * * $Id$ * $HeadURL$ * %% * Copyright (C) 2011 Department of Computer Science, University of Oxford * %% * 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...
24.616438
75
0.702838
fcd475e4ad040a82ca0ae20c45d462f4523760f1
1,811
package com.boot.controller; import java.util.List; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.an...
34.169811
83
0.805632
5d208e925d93340e87462fcdbac282e6dfa81d73
2,299
package com.jbproductions.liszt; import android.content.Context; import android.util.Log; import androidx.annotation.NonNull; import androidx.room.Database; import androidx.room.Room; import androidx.room.RoomDatabase; import androidx.room.TypeConverter; import androidx.room.TypeConverters; import androidx.sqlite.db.S...
35.369231
108
0.667682
ac214ac8adae7c24723b415b6d5f1a43eca87c96
954
package kr.ac.hs.se.controller; import kr.ac.hs.se.container.Container; import kr.ac.hs.se.dto.Guestbook; import kr.ac.hs.se.service.GuestbookService; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest;...
34.071429
121
0.793501
769108efd380ee72defd445e16ca764dfbf8f83f
407
/* * Copyright (c) TIKI Inc. * MIT license. See LICENSE file in root directory. */ package com.mytiki.kgraph_generate; import java.util.List; public class KGraphDefs { private List<KGraphDefsVertex> vertices; public List<KGraphDefsVertex> getVertices() { return vertices; } public void se...
19.380952
62
0.690418
dd4691377930e3e9a069c9bd9db2482b14df2691
663
package org.apereo.cas.adaptors.duo.web.flow; import org.apereo.cas.web.flow.resolver.impl.AbstractCasWebflowEventResolver; import org.springframework.webflow.execution.Event; import org.springframework.webflow.execution.RequestContext; import java.util.Set; /** * This is {@link DuoAuthenticationWebflowEventResolve...
28.826087
92
0.803922
f127fa0466a0e692c6b26887dcb87f11dca48084
1,952
/* * Copyright 2018 Charles University in Prague * Copyright 2018 Vojtech Horky * * 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 * ...
28.705882
88
0.637295
a58177c3d3fda36dd3373363961183a40a5debb3
1,120
package util; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; public class FileUtil { public static String readFileInSameFolder() { try { String jarpath = System.getProperty("java.class.path"); int firstIndex = ...
31.111111
101
0.580357
76c06682e70a28991893ab3e69068b64f0534d78
784
package fr.anatom3000.gwwhit.mixin; import fr.anatom3000.gwwhit.WrappedPack; import net.minecraft.resource.ReloadableResourceManagerImpl; import net.minecraft.resource.ResourcePack; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.M...
49
256
0.808673
0194ebf2501896c1f5e98038b9fdf43dc074f359
12,445
/** * Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT * All rights reserved. Use is subject to license terms. See LICENSE.TXT */ package org.diirt.datasource.formula; import java.util.AbstractList; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; im...
29.56057
102
0.571073
abc69b91e233ffadf9fd1a545a37c61b2d602715
350
package ch.evel.warehouse.db.dao; import ch.evel.warehouse.db.model.UserRole; import org.springframework.data.repository.CrudRepository; import java.util.List; import java.util.UUID; public interface UserRolesRepository extends CrudRepository<UserRole, Long> { List<UserRole> findUserRoleById(UUID uuid); UserR...
25
77
0.805714
6af085e117d822fe6a95b024debd913247f6390e
4,719
package com.clj.blesample.tool.operation; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.IBinder; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentTr...
29.867089
112
0.614325
13ed71aaf4d8e76e914db42bf875ac3858f98d7f
175
package de.gematik.demis.exceptions; public class ParseRuntimeException extends RuntimeException { public ParseRuntimeException(Throwable cause) { super(cause); } }
19.444444
61
0.782857
fb08397f62d0f9fefc040cdfa7b785814537c306
850
package io.github.swingboot.example.editor.control; import javax.inject.Inject; import io.github.swingboot.control.Control; import io.github.swingboot.example.editor.model.SpellCheckingService; import io.github.swingboot.example.editor.view.DocumentView; public class CorrectSpellingControl implements Control<Void> {...
31.481481
102
0.830588
f9bd74f9ce6bd6650726e5a993f9b6e292cdc74d
259
package org.bukkit.block; import org.bukkit.material.Colorable; /** * Represents a captured state of a bed. * @deprecated does not provide useful information beyond the material itself */ @Deprecated public interface Bed extends TileState, Colorable { }
23.545455
77
0.772201
8111094db818125655bb9c40fc71be53c554248a
466
package com.anokbook.Models; import java.io.Serializable; public class EditPostImageModel implements Serializable { String image_id,image_url; public String getImage_id() { return image_id; } public void setImage_id(String image_id) { this.image_id = image_id; } public Stri...
18.64
57
0.669528
f8fe940ef76c8e693a874ee8122e7b208cd20dc7
4,035
/* * 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 co.edu.uniandes.csw.carros.resources; import co.edu.uniandes.csw.carros.dtos.AutomovilDTO; import co.edu.uniandes.csw.carros.e...
36.351351
123
0.685998
e8f5f228adddfaeb1357009ad96251ea82e9f422
1,134
/* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.intellij.inspection; import com.intellij.codeInspection.LocalInspectionTool; import org.jetbrains.annotations.NotNull; import org.mapstruct.intellij....
29.076923
105
0.710758
0e58c313af3c6bd0aafa7460a2d4094859f59600
256
package com.wangjie.recyclerview.example; import com.wangjie.androidinject.annotation.present.AIAppCompatActivity; /** * Author: wangjie * Email: tiantian.china.2@gmail.com * Date: 7/10/15. */ public class BaseActivity extends AIAppCompatActivity{ }
21.333333
72
0.777344
99920590cd2e03b5a67f5bdd12b228403fb1f03e
18,268
package com.donkingliang.imageselector; import android.Manifest; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ObjectAnimator; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Inte...
32.738351
108
0.588515
59b77c27eb143414d1b36bb1c28676134c059607
49,361
package fy.game.blockpuzzle.gamepiece.sets; import fy.game.blockpuzzle.gamepiece.IGamePieceSet; /** GENERATED */ public class GamePieceSet0010 implements IGamePieceSet { @Override public String[] getGamePieceSet() { String[] r = new String[1600]; r[0] = "#1#4#4"; r[1] = "#4#5#2"; r[2] = "#Ecke2#Ecke2#4"; ...
30.583024
63
0.515488
b6abbc75bc7f59a779ffabf77860572e1402c892
7,039
package com.eventyay.organizer.ui.binding; import android.content.Context; import android.content.Intent; import android.content.res.ColorStateList; import android.content.res.Resources; import android.graphics.drawable.Drawable; import android.net.Uri; import android.view.View; import android.view.inputmethod.EditorI...
34.674877
134
0.67609
86f2bad20c5c0e16a2c6856105383abaf105b489
1,541
package org.clubrockisen.controller.abstracts; import org.clubrockisen.entities.enums.Gender; import org.clubrockisen.entities.enums.Status; /** * Interface for defining a controller for a member entity. * @author Alex */ public interface MemberController { /** * Change the name of the member in the model. ...
23.707692
70
0.669046
4334434db9675c9d83e9235a6a33c3733f10a190
2,768
package theForsaken.cards; import com.megacrit.cardcrawl.actions.AbstractGameAction.AttackEffect; import com.megacrit.cardcrawl.actions.animations.VFXAction; import com.megacrit.cardcrawl.actions.common.ApplyPowerAction; import com.megacrit.cardcrawl.actions.common.DamageAllEnemiesAction; import com.megacrit.cardcrawl...
38.444444
135
0.747832
1848369b5cd4896a9dcf07be61674fe157456642
620
package com.example; import com.example.rest.config.SpringConfig; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; /** * Hello world! */ public class App { public static void main(String[] args) { //实例化 /*Hel...
29.52381
96
0.716129
6c1156880ec6c026be7eafd4c2e373b25ab8bec8
35,658
package com.example.lyc.vrexplayer.activity; import android.content.Intent; import android.content.IntentFilter; import android.net.Uri; import android.net.wifi.p2p.WifiP2pDevice; import android.net.wifi.p2p.WifiP2pDeviceList; import android.net.wifi.p2p.WifiP2pInfo; import android.net.wifi.p2p.WifiP2pManager; import ...
45.891892
190
0.406921
1d6345ce70095f072d7c8aa487865795364f218c
813
package com.caleb.algorithm.review.offerdemo; /** * @author:Caleb * @Date :2021-08-04 16:35:04 */ public class CuttingRope14 { public int cuttingRope(int n) { if (n <= 3) { return n - 1; } if (n % 3 == 1) { int count = n / 3; count--; return (int) Math.pow(3, count) * 4; } if (n % 3 == 2) { ...
17.673913
45
0.501845
750a2ecb141eea782929105ae39621c8e3e672fa
2,196
package com.lakeel.altla.vision.nearby.presentation.presenter; import android.content.Intent; import com.firebase.ui.auth.AuthUI; import com.google.firebase.auth.FirebaseAuth; import com.lakeel.altla.vision.nearby.R; import com.lakeel.altla.vision.nearby.domain.usecase.SignInUseCase; import com.lakeel.altla.vision.ne...
30.5
100
0.67623
2aa71e78f00d34888fb31b864e5ddbf472f8f5fb
211
package jquants; /** * * @author Mathias Braeu * @since 1.0 * * @param <T> */ public abstract class BaseQuantity<T extends Quantity<T>> extends Quantity<T> { public abstract UnitOfMeasure baseUnit(); }
17.583333
79
0.682464
9ec4ae691cca85868232ec0eca10cee0bfc44646
3,026
/** * SkillAPI * com.sucy.skill.manager.TitleManager * <p> * The MIT License (MIT) * <p> * Copyright (c) 2014 Steven Sucy * <p> * 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 witho...
38.794872
110
0.689689
4afdfaa774f6e73763f1b72c9520e0965df12caa
5,231
package net.logicsquad.minifier; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.Reader; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.nio.charset.StandardCharsets; import java.n...
29.061111
115
0.724336
37c7433093defdba895f418ff413b46d0225ff76
1,172
import java.util.*; public class Solution { public Solution() { // TODO Auto-generated constructor stub } public static void main(String[] args) { // TODO Auto-generated method stub Scanner s = new Scanner(System.in); System.out.println("Enter the size of array : "); int n = s.nextInt(); System.o...
18.903226
67
0.544369