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
11ad37cdba76910c7b4c9d0d8d595dbc50c6767f
1,249
package com.thms.util; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import org.springframework.core.convert.converter.Converter; import org.springframework.util.StringUtils; public class StringToDateConverter implements Converter<String, Date> { private final SimpleDat...
33.756757
123
0.718975
941af7c18e1d91caed4834efaa1da3839eb5991f
122
class Foo { void test(String s) { Object x = s; System.out.println(((String) x).substring()); } }
17.428571
53
0.516393
dd9ca03a9a403aca3dfb6b455551d8a683f75886
12,245
/* * Copyright (C) 2013 4th Line GmbH, Switzerland * * The contents of this file are subject to the terms of either the GNU * Lesser General Public License Version 2 or later ("LGPL") or the * Common Development and Distribution License Version 1 or later * ("CDDL") (collectively, the "License"). You may not use ...
37.446483
129
0.611433
61d19f5d77e1f949e29f5160275ff84e8e0401b4
352
package com.dongao.kaoqian.livesocketlib.message; import com.dongao.kaoqian.livesocketlib.live.ILiveManager; /** * 矩形 * Created by mayunfei on 17-9-18. */ public class DrawRectMessage extends WhiteBoardMessage { @Override public void handleMessage(ILiveManager liveManager) { liveManager.getWrite...
19.555556
58
0.738636
044684fba046ac6bd0f0d40670b9f5e0fba114ae
1,719
package io.simplesource.saga.saga.internal; import io.simplesource.kafka.internal.util.Tuple2; import org.apache.kafka.common.serialization.Serdes; import org.apache.kafka.streams.KeyValue; import org.apache.kafka.streams.StreamsBuilder; import org.apache.kafka.streams.kstream.*; import org.apache.kafka.streams.proces...
44.076923
135
0.66434
114f269382d46c75f4e92db28d7314e3b34ba41d
12,408
package com.codingpixel.healingbudz.activity.Registration.login; import android.location.Location; import android.os.Bundle; import android.provider.Settings; import android.support.v7.app.AppCompatActivity; import android.text.method.PasswordTransformationMethod; import android.util.Log; import android.view.Gravity; ...
46.47191
186
0.625403
16c2294e023ff9a58a7e520bcb188e495a9487de
2,374
package leetcode.palindrome_partitioning; import java.util.ArrayList; public class Solution { public void buildTable(char[] charAry, int[] table){ int L = 0, R = -1, C = 0; int len = charAry.length; for(int i = 0; i < len * 2 - 1; i++){ int ref = 2 * C - i; if(i > R || ref - table[ref] + 1 <= L){ i...
26.377778
126
0.536226
19d3ff1a49ac0d267becab211e19b69839fa79d0
444
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.lang.java.rule.bestpractices.missingoverride; public class ConcreteClassArrayParams extends AbstractClass { @Override Object fun(String s) { return null; } @Override public...
23.368421
79
0.695946
0faec10a01b65dd85b43e382f7776a8685c6e1a8
15,350
/* * Copyright 2019 Project OpenUBL, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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://w...
61.646586
138
0.513225
ddb3da452d2b821ecef9c9334931eef3e3201fd0
612
package org.strangeforest.tcb.stats.model; import org.strangeforest.tcb.stats.model.core.*; public class TopPerformerRow extends PlayerRow { private final WonLost wonLost; public TopPerformerRow(int rank, int playerId, String name, String countryId, Boolean active, WonLost wonLost) { super(rank, playerId, name,...
20.4
113
0.732026
504d388c12ef462d71df89155d76c7fc0515db0a
3,628
/* * Copyright 2017 OPS4J Contributors * * 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 ...
33.284404
70
0.665105
e59ca093cc8664a66635ee83f2d1e3bc40df7826
3,345
package com.gempukku.swccgo.logic.modifiers; import com.gempukku.swccgo.common.Filterable; import com.gempukku.swccgo.filters.Filter; import com.gempukku.swccgo.filters.Filters; import com.gempukku.swccgo.game.PhysicalCard; import com.gempukku.swccgo.game.state.GameState; import com.gempukku.swccgo.logic.conditions.Co...
47.785714
153
0.755755
44a2257db62cbab213349355777d1ac350afd7fc
15,678
/* * Copyright (c) 2016 acmi * * 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, modify, merge, publish, distr...
40.511628
208
0.620487
01bbd934d18609c63117dc75ea4842d6e5d6d180
3,507
/* * Copyright 2021, TeamDev. 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 * * Redistribution and use in source...
41.258824
99
0.740519
0e5f5c2ccd981f2ff6133b2cc9d719cf0cb276d5
7,989
package org.jeecg.modules.business.view; import cn.hutool.core.util.StrUtil; import org.apache.poi.hssf.usermodel.*; import org.apache.poi.hssf.util.HSSFColor; import org.apache.poi.ss.util.CellRangeAddress; import org.jeecg.common.util.RedisUtil; import org.jeecg.modules.business.annotation.ExcelSelf; import org.jeec...
38.594203
146
0.536863
e11fd24b29888aacfaabb11080bd9b6408dffb88
7,123
package in.wilsonl.nanoscript.Interpreting.Builtin; import in.wilsonl.nanoscript.Interpreting.Arguments.NSArgument; import in.wilsonl.nanoscript.Interpreting.Data.NSData; import in.wilsonl.nanoscript.Interpreting.Data.NSList; import in.wilsonl.nanoscript.Interpreting.Data.NSNumber; import in.wilsonl.nanoscript.Interpr...
34.57767
299
0.651692
4fbc908c77174fb955452ae344c6f75e1a8e2233
942
/* * 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 servopwmcontroller; /** * * @author Rollie */ public class PWM { private int dutyCycle; private final ...
21.906977
80
0.57431
4d3c3c800e3bccb02b99794757eca8f10bdc8322
72,638
package net.minecraft.server; import com.google.common.base.Objects; import com.google.common.collect.Maps; import java.util.Collection; import java.util.ConcurrentModificationException; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Random; import java.util.UUID; import javax...
33.092483
336
0.511399
6317301655dc07e9001784aabd88a75d93e37454
3,736
package ir.piana.business.premierlineup.rest; import ir.piana.business.premierlineup.common.dev.uploadrest.AfterSaveImage; import ir.piana.business.premierlineup.common.dev.uploadrest.GroupProperties; import ir.piana.business.premierlineup.common.dev.uploadrest.StorageFileNotFoundException; import ir.piana.business.pr...
41.977528
108
0.744914
8a1e1e574d643000a6eac04ba5ffda218689f4c0
1,159
package org.jarvis.operations; import java.io.*; /** * 存储临时文件内容 * */ public class TemporaryFiles { private static File file = null; private static OutputStream outputStream = null; private static OutputStreamWriter outputStreamWriter = null; private static BufferedWriter bufferedWriter = null; ...
23.653061
70
0.621225
e0653a5632a9d8f8661b6e72a5be86c72e6f120d
10,271
package com.nrupeshpatel.university.fragment.hod; import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.app.Aler...
38.040741
124
0.633823
fd74e8bdf21ddcf0281aee3c1c2fbd7a2b4b358d
15,263
import java.util.*; public class Suraj { // static int fact=1; // static int a=0; // static int b=1; // static int c; public static void main(String[] args) { /*larger between 2 and three numbers*/ // Scanner Sc=new Scanner(System.in); // // System.out.println("Enter the first number"); // int n...
20.794278
84
0.461967
b6fba9cf3995f795a539d2bdd4fb2e68fcd55d1e
374
import main.Vector2d; public class LineSegment { public Vector2d a; public Vector2d b; public Vector2d dir; public LineSegment(Vector2d a, Vector2d b){ this.a = a; this.b = b; dir = new Vector2d(b.x - a.x, b.y - a.y); } @Override public String toString() { ...
18.7
52
0.534759
049fdd6a83d32864ca1a607aaa996b773529ac9c
3,941
package com.microsoft.applicationinsights.library; import com.microsoft.applicationinsights.logging.InternalLogging; import com.microsoft.cll.android.AndroidCll; import com.microsoft.telemetry.IChannel; /** * A single class that manages the different types of channels we support */ public class ChannelManager { ...
28.557971
165
0.623446
956978ad58edc88d9ce40b3029c65cc35a4c33b1
143
package no.nav.foreldrepenger.melding.klage; public record KlageVurderingResultat(KlageVurdering klageVurdering, String fritekstTilBrev) { }
23.833333
93
0.846154
4ee6bd787517c13e683eeebc24949a9c35f32f66
1,124
import java.util.*; public class Main { public final static int d = 256; static void index(String second, String first, int q) { int sec = second.length(); int fir = first.length(); int i, j; int p = 0; int t = 0; int h = 1; for (i=0; i<sec-1; i++) h = (h*d)%q; for (i=0; i<sec; i++) { ...
16.057143
58
0.522242
961dc497ae8ed42902cc8c63d86ac3f1d33cc9bd
33,402
/* * ServidorDatos.java * * Created on 8 de julio de 2002, 21:27 */ package ListDatos; import ListDatos.estructuraBD.JFieldDef; import ListDatos.estructuraBD.JRelacionesDef; import ListDatos.estructuraBD.JRelacionesDefs; import java.util.Comparator; import utiles.*; /**Utilidades del JListDatos, union de JListDa...
47.991379
237
0.52925
0a360780c662bbefbae05e929facc88cd6efcba4
3,998
/** * This software is released as part of the Pumpernickel project. * * All com.pump resources in the Pumpernickel project are distributed under the * MIT License: * https://raw.githubusercontent.com/mickleness/pumpernickel/master/License.txt * * More information about the Pumpernickel project is available he...
25.961039
79
0.676588
7a3daffc746fe38414233f09e5ec91185baf0d66
2,254
package io.liyou.sample.http.callback; import com.google.gson.Gson; import com.google.gson.stream.JsonReader; import com.lzy.okgo.callback.AbsCallback; import com.lzy.okgo.request.base.Request; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import io.liyou.sample.model.entity.BaseResponse...
31.746479
94
0.632209
5c15065f9c3de4c5bac2c51f8805d71e001d1b00
4,219
/* * Copyright (c) 2017 by Gerrit Grunwald * * 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...
34.024194
123
0.544916
1aa71923091e66291eeca8462154ecb40dcb408b
2,095
package org.folio.edge.core.security; import java.util.Map; import java.util.Properties; import java.util.concurrent.ConcurrentHashMap; import java.util.regex.Pattern; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class EphemeralStore extends SecureStore { public stati...
30.808824
95
0.666348
21d36e81ca3187fa475addf803ebec05f6b053df
613
package models.helpers; import play.data.validation.Constraints; import java.util.List; public class ConversationHelper { @Constraints.Required public Long id; @Constraints.MaxLength(256) @Constraints.Required public String title; @Constraints.Required public List<ConversationMemberHelp...
21.892857
107
0.699837
60c686af72aaea6fc1d9d8888f80f867cf9fe2c3
12,486
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
31.770992
110
0.708233
6cb3d4286f54e3cb84124b4dda4b900aab046b83
785
package com.liu.data_structure.sout; /** * 选择排序 */ public class SelectionSort { public void sort(int[] a,int n){ if (n<=1)return; for (int i = 0; i < n; i++) { int value = a[i]; int sert = i; for (int j = i; j < n ; j++) { if (a[j]<value){ ...
18.255814
58
0.397452
c4d12c42bb2ae5ed37e0c021c53b3c9b7b752a09
5,893
package ru.job4j.list; import net.jcip.annotations.GuardedBy; import net.jcip.annotations.ThreadSafe; import java.util.ConcurrentModificationException; import java.util.Iterator; import java.util.Objects; /** * @author Vitaly Zubov (mailto:Zubov.VP@yandex.ru). * @version $Id$ * @since 0.1 */ @ThreadSafe public c...
25.846491
97
0.493976
fb3643526bbbe5206ddfcb1e1c87b4c5dd7db063
6,370
package main.java.utils; import main.java.dataset.Dataset; import weka.core.Attribute; import weka.core.FastVector; import weka.core.Instance; import weka.core.Instances; import java.util.*; /** * Created by Andrea on 10/10/2017. */ public class Helper { public static String selectRandomString(String[] senten...
34.808743
105
0.589168
c9154089a5177dab89467158a1182231f04d2b23
5,131
/* *********************************************************************** * VMware ThinApp Factory * Copyright (c) 2009-2013 VMware, 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 ...
45.40708
110
0.69733
6d990a20910cdeadb1b6ce2c07b20de812b8046d
1,649
package com.lord.mp.user; import java.util.Date; import org.junit.Test; import com.lord.mp.MpApplicationTests; import com.lord.mp.entity.User; /** * AR:ActiveRecord 通过继承model来实现crud操作 * */ public class ARTest extends MpApplicationTests { @Test public void insert() { User user = new User(); ...
24.25
67
0.585203
fe5c4b47b120ceb732dbed58b7090aa009bace3b
4,303
package com.example.firebasefullcourse; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; import com.amirarc...
37.745614
120
0.522891
807bc1dbd46f82afa813e5cf96f1e41598493e76
7,678
/* * $Id$ * * SARL is an general-purpose agent programming language. * More details on http://www.sarl.io * * Copyright (C) 2014-2020 the original authors 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 ma...
29.875486
133
0.672701
b36ff7d226251aa18c732493a23af906b07d686c
6,593
/* * 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 ...
45.784722
140
0.739421
e57c077e670103e26396f537410df01abf66609a
1,097
import java.util.Random; import java.util.Scanner; class APlusB { public static int naiveAlgorithm(APlusBData data) { return data.a + data.b; } public static int implementedAlgorithm(APlusBData data) { if (new Random().nextInt(100) > 95) { // sometimes fails return data.a + data.b + ...
18.913793
68
0.640839
7aef08e500cf2b9e7bb59e6460c6625f838a21f0
1,234
package rocks.inspectit.ocelot.core.selfmonitoring; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import rocks.inspectit.ocelot.core.i...
25.708333
76
0.706645
b5ca3b349c11d9fec9c97a99346e432e77203a45
9,351
/* * Copyright 2015 JBoss 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 i...
20.872768
77
0.59523
952a5b5f2121b098d80323875189081ae80e4546
9,856
/* Copyright 2010 Shahriyar Amini 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...
32.853333
166
0.725852
246144bb075a292b1165ab25781187f2a6300f72
16,247
package org.openestate.io.immobiliare_it.xml; import java.io.Serializable; import javax.annotation.Generated; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.b...
40.516209
247
0.594818
470a974254f00c44373b668ed0e0f69e88ce8f90
224
package cn.huangdayu.smarthome.skill.jsonbean.xiaomi.request; import lombok.Data; @Data public class XiaomiRequestProperty { private String did; private int piid; private int siid; private Object value; }
17.230769
62
0.745536
0331888c57e6c29278b837771458ba0ce356f1e6
6,333
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.billing.fluent; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.co...
57.054054
119
0.753513
021e55609303cf045be924d3619a1e50a4cad0e9
542
package org.apache.batik.dom.svg; import org.apache.batik.dom.AbstractDocument; import org.w3c.dom.Node; import org.w3c.dom.svg.SVGFEFuncGElement; public class SVGOMFEFuncGElement extends SVGOMComponentTransferFunctionElement implements SVGFEFuncGElement { protected SVGOMFEFuncGElement() { } public SVGOMFEF...
23.565217
109
0.741697
12b98e93796543e1998b5f21fe301729b1cf0d30
3,581
package org.wso2.carbon.apimgt.rest.api.publisher.v1.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.wso2.carbon.apimgt.rest.api.publisher.v1.dto.EventCount...
27.546154
137
0.688355
7409a8cd7e9e0c180f2aafe2a5667107d79deec7
12,594
/** * Copyright (C) 2012 FuseSource Corp. All rights reserved. * http://fusesource.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2....
34.50411
134
0.562569
cd117f90b92685f8598b4d0ec4f65d3b9719e4b2
752
package com.rwxlicai.entity; import java.io.Serializable; /** * Created by xuebing on 16/1/26. */ public class ContentMessage implements Serializable { // "title":"xxx",//标题 // "date":"xxx",//时间 // "content":"xxx"//内容 private String title; private String date; private ...
17.904762
53
0.574468
0c655b127282db576b68fe2615f7e46c5dc6ae57
104
package com.fantasyunlimited.rest.dto; public record ClassItem(String id, String name, String icon) {}
26
63
0.788462
8b2d945c304f21f56b8349dcf00bb1c6b5147f35
5,664
package mypi; import mypi.diplayEventPanel.DisplayEvents; import mypi.calendarPanel.CalendarPanel; import java.awt.Dimension; import java.awt.HeadlessException; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.util.Calendar; import java.util.GregorianCalendar; import javax.swing.JDialo...
39.333333
189
0.667549
08b985aa43eb9aba2364d7c6b7594f1416685aae
20,841
/* * 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 ...
36.952128
198
0.635142
c9e65c8963ae058dba80913bae007e0374ff83a6
661
package com.craftmend.openaudiomc.spigot.modules.players.interfaces; import com.craftmend.openaudiomc.generic.media.objects.Media; import com.craftmend.openaudiomc.generic.networking.client.objects.Session; import com.craftmend.openaudiomc.spigot.modules.regions.interfaces.IRegion; import com.craftmend.openaudiomc.spi...
31.47619
83
0.794251
954ecf86a28fd7f3cfb504560363ab156393483e
5,886
/* * Copyright 2017-present Open Networking Foundation * * 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 appli...
38.723684
117
0.657322
225a189af599ebccedd5ea91630d42213ad6a789
293
package com.mailerdaemon.app.attendance.database; import androidx.room.Database; import androidx.room.RoomDatabase; @Database(entities = {Subject.class},version = 1,exportSchema = false) public abstract class AppDatabase extends RoomDatabase { public abstract SubjectDao subjectDao(); }
29.3
70
0.802048
36937c300f1fc382fcec5d35dd1b01a4eb301914
95
package me.trqnquility.masterworks.tickable; public interface Tickable { void tick(); }
11.875
44
0.736842
0252c965a288f39dc23901ffdb6bdeb756d33e4a
2,207
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.carbonauts.frc2014.subsystems; import com.carbonauts.frc2014.Constants; import com.carbonauts.frc2014.util.CarbonDigitalInput; import com.carbonauts.frc2014.util.CarbonTalon; import com.carbonauts.frc2014.ut...
27.246914
89
0.647032
a331881bcdaa7fdf2cfb9de665c7e41d1988a3d2
2,835
/* ************************************************************************* * The contents of this file are subject to the Openbravo Public License * Version 1.1 (the "License"), being the Mozilla Public License * Version 1.1 with a permitted attribution clause; you may not use this * file except in...
35
97
0.708289
6d456ab499c298eefe4acf770712ce632111a871
1,379
package com.kaiscript.dht.crawler.socket.handler; import com.kaiscript.dht.crawler.constants.YEnum; import com.kaiscript.dht.crawler.domain.Message; import com.kaiscript.dht.crawler.domain.Node; import com.kaiscript.dht.crawler.route.RouteTable; import com.kaiscript.dht.crawler.task.FindNodeTask; import com.kaiscript....
28.729167
84
0.697607
acd18cc519f565eab5de8664abeb0e21a35f8898
1,883
package com.packtpub.reactive.chapter04; import static com.packtpub.reactive.common.Helpers.subscribePrint; import java.beans.Introspector; import java.nio.file.Paths; import rx.Observable; import com.packtpub.reactive.common.CreateObservable; import com.packtpub.reactive.common.Program; /** * Demonstrates how to...
26.521127
108
0.678704
8579e028b5d42eb77b0e415f40f4f933b3a6bb2e
280
package com.bstek.bdf3.importer.filter; import java.util.Map; import javax.persistence.EntityManagerFactory; /** *@author Kevin.yang *@since 2015年8月23日 */ public interface EntityManagerFactoryFilter { void filter(Map<String, EntityManagerFactory> entityManagerFactory); }
18.666667
69
0.792857
cec8f6d8c23201cd9a4f7c4b3cf759f3b0ab9444
4,632
package pamela.com.aircarbusiness.Adapters; import android.content.Context; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toa...
35.358779
113
0.634283
8d84e071b9c88ed2cbd447c903c78e87bd78019d
862
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.test.annotations.derivedidentities.e2.a; import javax.persist...
26.121212
94
0.756381
7890b3968b48aa46a4b390cf9135b4c19c31eb3d
11,058
/* * Copyright (C) 2014 Easy Target * * 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.txt * * Unless required by applicable law or a...
28.647668
99
0.545397
0fb9e950aba5c2d1eda9c9959bb4c6415ffa5345
808
package extracells.util.inventory; import appeng.api.implementations.ICraftingPatternItem; import appeng.api.networking.crafting.ICraftingPatternDetails; import extracells.util.FluidUtil; import net.minecraft.item.ItemStack; public class InventoryPatterns extends InventoryBase { public InventoryPatterns(String _...
33.666667
118
0.72401
fb286b9c44716e62caf5968b641b1f77271414d3
775
/** * *************************************************************************** * 工程:IntelliJ IDEA v1.0 * All Rights Reserved. * <p> 类 * * @author chenweizhao * 创建日期:2020/2/2 0:00 * 版 本 号: 1.0 * <p> * **************************************************************************** */ package com.chenwz.d...
17.222222
79
0.455484
3816e9159edc8c324220928d0f8fc761948ba73b
6,837
package com.kapcb.framework.logging.processor; import com.kapcb.framework.common.constants.enums.StringPool; import com.kapcb.framework.common.util.ThrowableUtil; import com.kapcb.framework.logging.actuator.CollectorActuator; import com.kapcb.framework.logging.collector.ILogCollector; import com.kapcb.framework....
42.73125
171
0.663156
8625853ec5d3f1511675ae1a09ff75781aa95895
5,031
package rdf; import java.util.ArrayList; import rdf.SimpleRelation; import nlp.ds.Word; public class SemanticRelation { public Word arg1Word = null; public Word arg2Word = null; public String relationParaphrase = null; // longest match public double LongestMatchingScore = 0; // longest match score //judge d...
29.25
160
0.724111
c618ef203fcca3d71951ffae116469aa48fb03c5
2,144
package br.com.alura.ecommerce.dispatcher; import br.com.alura.ecommerce.CorrelationId; import br.com.alura.ecommerce.Message; import org.apache.kafka.clients.producer.*; import org.apache.kafka.common.serialization.StringSerializer; import java.io.Closeable; import java.util.Properties; import java.util.concurrent.E...
34.580645
109
0.645522
8291857c87bdb9ccb35dd68e02087f74f10f9757
3,661
/* * Copyright 2016-2018 shardingsphere.io. * <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 required by applicable l...
44.646341
151
0.730402
322d6b7bfff3612ba54bce69c0e5f026de40968f
3,257
package mayfly.sys.module.db.controller; import mayfly.core.model.result.Response2Result; import mayfly.core.permission.LoginAccount; import mayfly.core.util.bean.BeanUtils; import mayfly.sys.module.db.controller.form.DbSqlSaveForm; import mayfly.sys.module.db.controller.vo.ColumnVO; import mayfly.sys.module.db.contro...
34.284211
107
0.709549
13ef9d13992dca15d40b81eef191f7e983329446
1,272
package org.museautomation.core.variables; import org.museautomation.core.context.*; import org.slf4j.*; /** * @author Christopher L Merrill (see LICENSE.txt for license details) */ public enum VariableQueryScope { Project, Suite, Execution, Local, Any, // Look in any of the scopes (limited - see NotLoc...
28.266667
139
0.746855
26004c3dba806b19de28fe122165df3f50bb3281
854
package com.allen.minispring.test.example; /** * @ClassName HelloWorld * @Description * @Author XianChuLun * @Date 2020/9/19 * @Version 1.0 */ public class HelloWorld { private String greeting; private TimeHolder timeHolder; public HelloWorld(String greeting) { this.greeting = greeting; ...
19.409091
54
0.591335
6c160ee0abe31b96473a03a2d8d472c862aa0e21
784
package com.prestoncinema.ui.tabs; import android.app.Fragment; import android.os.Bundle; import android.text.Layout; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.prestoncinema.app.R; /** * Created by MATT on 11/13/2017. */ public class TabFragmentOne ext...
23.058824
103
0.729592
c7cc387f804eaaa407e7e9cfc0679089b1bfe2d5
779
package pro.jk.ejoker.common.system.extension; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import co.paralleluniverse.fibers.Suspendable; /** * 不像Netty中直接为Future接口加入一系列异步协调的方法(其中就包含await),<br /> * 因为异步协调的方法是一个系列的,如果要使用其实使用CompleteableFuture更好。<br /> * 也不单独加入await方法,是为了使用Qua...
23.606061
68
0.725289
b35d79beb8578143ed43f89dfde7d2f8cdf25113
130
package com.lei.stu.clone; /** * @Description * @Author leihaoyuan * @Date 2019/11/25 15:33 */ public class Clone_Test { }
10.833333
26
0.653846
0e992fdc98e7607d11ccce2d3875071b73a7417b
4,556
package de.melanx.vanillaaiots.util; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.sounds.SoundEvent; import net.minecraft.sounds.SoundEvents; import net.minecraft.sounds.SoundSource; import net.minecraft.world.InteractionResult; import net.minecraft.world.entity.player....
40.318584
134
0.613696
b6acff8ce141dea5545d5effd39fbc205d4241ba
742
package com.benonshi.array; /** * 给定一个整数数组 nums ,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。 * * @Author: BenOnSHI * @Date: 2021/1/10 15:50 **/ public class MaxSubArray { public static int maxSubArray(int[] nums) { if (nums.length == 1) { return nums[0]; } int ans = nums[0]; ...
20.611111
61
0.456873
7ff0aac56b39a821b05dc52ba263be14c477873a
950
package ru.job4j.array; import org.junit.Test; import static org.hamcrest.collection.IsArrayContainingInAnyOrder.arrayContainingInAnyOrder; import static org.junit.Assert.assertThat; public class ArrayDuplicateTest { @Test public void whenArrayHasDuplicateThenDropIt() { ArrayDuplicate arrayDuplicate =...
36.538462
92
0.670526
9138020863e6324229c3f87c6d9771dc191035da
2,667
package uk.gov.justice.hmpps.prison.aop; import lombok.extern.slf4j.Slf4j; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.AfterThrowing; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.anno...
38.652174
162
0.619798
a1c38dec852cf0fd89db7e11a1aa89cbb0499207
7,317
package com.kinghao.mango.admin.model; import java.io.Serializable; import java.util.Date; public class SysRoleMenu implements Serializable { /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column sys_role_menu.id * * @mbg.generated */ ...
27.200743
90
0.629903
d846eab1a958594622d24496a74348d1024d38b5
1,143
package uzc.kit.util; import uzc.kit.entity.*; import uzc.kit.entity.response.http.attachment.MultiOutAttachmentResponse; import uzc.kit.entity.response.http.attachment.TransactionAttachmentAndAppendagesResponse; import com.google.gson.GsonBuilder; @SuppressWarnings("WeakerAccess") public final class UzcKitUtils { ...
47.625
147
0.776903
e048a5c67c7889e76ab1f59478493da55088b76e
418
class OptWhile { public static void main(String[] a){ System.out.println(new WhileFalse().f()); } } class WhileFalse { public int f() { int n; n = 0; while (false) { n = n + 1; } return n; } } class WhileTrue { public int f() { int n; ...
13.483871
42
0.406699
1d1276c9b2ba1061d7f409a960213e32b345877e
1,329
/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; } * ListNode(int val, ListNode next) { this.val = val; this.next = next; } * } */ /** * https://leetcode.com/problems/add-two-numbers/ * sel...
24.611111
77
0.569601
3a6d9907a3f67259e8e38cc65e39e96b1caf23a4
762
package net.mostlyoriginal.game; import com.badlogic.gdx.Game; import net.mostlyoriginal.game.component.Score; import net.mostlyoriginal.game.screen.GameScreen; import net.mostlyoriginal.game.screen.LogoScreen; import static com.badlogic.gdx.Input.Keys.G; import static net.mostlyoriginal.game.GameRules.*; public cla...
23.090909
65
0.762467
46e9dab75cfcd92ac60c6ded0b917d04d0356548
5,777
/* * 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 distributed under t...
23.67623
180
0.692747
404d91fed31482178bb2b827bf744a1699babd36
1,771
package org.mapfish.print.attribute.map; import org.mapfish.print.attribute.ReflectiveAttribute; import org.mapfish.print.config.Configuration; import org.mapfish.print.config.Template; import org.mapfish.print.wrapper.PArray; import java.util.List; /** * <p>The attributes for the {@link org.mapfish.print.processor...
37.680851
127
0.735743
7c0f874356f033bdf948a9eef4fe7b779445077e
2,872
/******************************************************************************* * Copyright (c) 2014 IBM Corp. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 which accompany this d...
27.352381
81
0.629526
1eab1dd5485539d84f5ea998e175b4216859ae2f
308
package com.demo.hospital.user.user_repository; import com.demo.hospital.user.entity.Role; import org.springframework.data.jpa.repository.JpaRepository; import java.util.Optional; public interface RoleRepository extends JpaRepository<Role,Integer> { Optional<Role> findByRoleName(String roleName); }
25.666667
69
0.818182
9f28e5b8b5acdcaa24c53f61a626166a6f95bbe2
5,508
/* * Copyright 2011 gitblit.com. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
34.21118
107
0.726216
ceaeb91dc526e078aa86b56f942b0044d4d07856
577
package com.poccofinance.loan.exception; import lombok.Getter; import lombok.Setter; import lombok.ToString; import javax.validation.ConstraintViolation; import java.io.Serializable; import java.util.Set; @Setter @Getter @ToString public class InvalidInputException extends RuntimeException{ private final Set<Co...
24.041667
95
0.795494
d36583fa565fb150f9f9a4b8c1e3a2bdd3741461
2,856
package org.bean.jandan.activity; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import android.support.v4.view.ViewPager; import android.view.View; import com.melnykov.fab.FloatingActionButton; import com.ogaclejapan.smarttab...
28.848485
125
0.690476
48ee8d230ac2c44c7e330fb62fd66f24e9914d64
249
package com.webank.webase.front.contract.entity; import lombok.Data; import java.util.List; @Data public class ReqCopyContracts { private Integer groupId; private String contractPath; private List<RepCopyContractItem> contractItems; }
20.75
52
0.783133
0ab8282eb1f9f8039cfb5ea6cc0618564a14fe47
1,951
package com.bupt.rongsell.utils; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; /** * @Author huang xin * @Date 2020/3/21 16:40 * @Version 1.0 */ public class DatetimeUtil { public static final String STANDARD_FORMAT = "yyyy-MM-dd hh:mm:ss"; /** * 字符串转换为d...
24.3875
86
0.57509
94f547c76d2fbe9f01f680c5225d1457ecf8bae5
2,670
/* * Copyright (c) 2017 United States Government as represented by the Administrator of the * National Aeronautics and Space Administration. All Rights Reserved. */ package gov.nasa.worldwind.ogc.ows; import android.util.Xml; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; impo...
34.230769
105
0.69176
6c849461fd277924e9abe6064ebadc66b31f208c
6,956
/* * 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 ...
33.76699
109
0.626078
008e17fb8d817c49c76c9531c286a3261ac72be8
7,445
package jp.ac.titech.c.se.stein; import java.io.File; import java.io.IOException; import java.time.Duration; import java.time.Instant; import java.util.concurrent.Callable; import java.util.function.BiConsumer; import org.apache.commons.io.FileUtils; import org.eclipse.jgit.lib.Constants; import org.eclipse.jgit.lib....
36.674877
158
0.627401