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
94bac08c5c8eb8f3bf2dad0a4a32b60def491762
3,579
package ru.stqa.training.selenium; import org.junit.Test; import org.openqa.selenium.By; import java.util.concurrent.TimeUnit; public class LoginTest extends TestBase { @Test public void chromeTest() { driver.navigate().to("http://localhost/litecart/admin/login.php"); driver.manage().time...
38.074468
84
0.644873
afb6c2d6d9aa5ca8f8f64cc755f5befc541ef49c
3,018
package com.alibaba.alink.io; import com.alibaba.alink.common.AlinkParameter; import com.alibaba.alink.io.utils.JdbcTypeConverter; import org.apache.flink.api.common.typeinfo.TypeInformation; import org.apache.flink.table.api.TableSchema; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Arra...
32.451613
105
0.607687
addf2d2bdb5b7d6f28f03aa6cf7970bb63de9e3c
1,236
package com.example.yaowu.steamhelper.db; import com.example.yaowu.steamhelper.util.Timeconvert; import org.litepal.crud.DataSupport; import java.util.List; /** * Created by yaowu on 2017/5/25. */ public class Friend extends DataSupport{ private String friendname; private String friendsteamid; privat...
23.769231
105
0.685275
872db704d0635c7ff2435b8b38ea60b1bfd6c70b
9,735
package shitamatsuge.haifuri.CharaViews; import android.content.Context; import android.os.Handler; import android.util.AttributeSet; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.widget.FrameLayout; import shitamatsuge.haifuri.MainActivity; import shitamatsuge....
43.075221
248
0.557884
71d8dab96608032184e300bca85fb8589ccb8dcd
3,757
package ds.linkedlist; import java.util.Stack; public class LinkedListLoops<E> { private int size; private Node head; private Node tail; // to check whether if the node has a loop or not by using marking public boolean hasLoopMark() { Node temp = head; boolean hasLoop = false; ...
28.037313
80
0.501996
3524960ec482e7fc3daf017d1a1b3169a9021b4e
816
package com.andyadc.test.zookeeper; import com.andyadc.codeblocks.framework.zookeeper.ConnectionListener; import com.andyadc.codeblocks.framework.zookeeper.ZkSessionManager; import org.apache.zookeeper.ZooKeeper; /** * andy.an * 2019/12/25 */ public class BaseZkSessionManager implements ZkSessionManager { privat...
18.976744
69
0.751225
7f8105d8fbb62d2da7cf7189b08ff5c6f95f9874
8,874
/* * 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 ...
26.972644
130
0.6492
e2faaf7fc8ea792c3e7ea2c4fd7ad1a231fdc6e6
133
package fr.goui.restapiconsumer; import android.content.Context; /** * */ public interface IView { Context getContext(); }
10.230769
32
0.691729
d9714a2ee394064c50b7f1ae70ba3a379202e820
4,532
/* * Open Source Physics software is free software as described near the bottom of this code file. * * For additional information and documentation on Open Source Physics please see: * <http://www.opensourcephysics.org/> */ package org.opensourcephysics.display; import java.awt.Dimension; import java.awt...
27.466667
97
0.65556
ffae5c5f53eae15dd3cca4ba41dd793132bc2001
2,190
package com.example.android.bakingrecipes.Adepters; import android.content.Context; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import co...
34.761905
102
0.703653
76d765b8148000e4df5690c5994b4636bc755c34
15,949
package ca.uhn.fhir.jpa.searchparam.registry; /*- * #%L * HAPI FHIR Search Parameters * %% * Copyright (C) 2014 - 2021 Smile CDR, 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...
35.207506
172
0.748448
e19c0930499f4290f2094dd80e4f5e3df747bf19
3,773
package org.kidinov.mvp_test; import android.support.annotation.NonNull; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import ...
32.808696
106
0.692287
7164569ebe2341e0c3e55932ecc6bbe9b9ccac26
3,138
package org.persvr.data; import java.util.logging.ConsoleHandler; import java.util.logging.Formatter; import java.util.logging.Handler; import java.util.logging.LogRecord; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.impl.Jdk14Logger; ...
25.933884
89
0.626832
c5915a762f1820e548bd1d2f827077499c4d3932
1,449
/* * Fabric3 * Copyright (c) 2009-2015 Metaform Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
27.339623
75
0.703244
b496534aea0f6b1e23b12301834183a7882a351e
7,427
package org.firstinspires.ftc.teamcode; import java.util.Random; public class BeaconPresser extends RobotExecutor { GyroTracker gyroTracker = null; HardwareBeaconArm beaconArm = null; protected long lastTimeStamp = 0; // navigation info protected int lineToBeaconDistance = 390; //509 protec...
35.366667
120
0.517032
74e36bc1ce8436b5e54bc1bef35fb21ffc61c8cb
1,290
import java.util.HashMap; import java.util.Map; class MSISMemoization { public int findMSIS(int[] nums) { if(nums == null || nums.length == 0){ return 0; } Map<String, Integer> dp = new HashMap<String, Integer>(); return findMSIS(nums, 0, -1, 0, dp); } private int findMSIS(int[] n...
28.666667
106
0.605426
c60d77653c6d2054ff22f513d5eb3180804017e2
16,487
package ru.mrsmile2114.ytmusic.player; import android.app.AlertDialog; import android.content.ComponentName; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.ServiceConnection; import android.os.AsyncTask; import android.os.Build; import andr...
38.701878
156
0.620004
37c2764092da897f14db250696ebbf9499cfc033
301
package com.github.akarazhev.jacademy.jprog.basics; public final class MethodParameters { public static void printMyNumber(final int x) { System.out.println("My favorite number is " + x + "."); } public static void main(final String[] args) { printMyNumber(42); } }
23.153846
63
0.66113
847c2bc7d44d54bcfbeac909a31e969f8bcf9adc
400
package com.finanzas_backend_spring.payments_system.util; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(HttpStatus.BAD_REQUEST) public class FullLimitException extends RuntimeException{ public FullLimitException(String price) { ...
30.769231
76
0.795
4de89dd0c8c42b1d7a091dbf9b89b5e4628df9b3
538
package com.dianping.paas.core.dal; import com.dianping.paas.core.dal.dao.AppPlanDao; import com.dianping.paas.core.dal.entity.AppPlanEntity; import org.springframework.stereotype.Repository; import javax.annotation.Resource; /** * yapu.wang@dianping.com * Created by wangyapu on 15/12/15. */ @Repository public cl...
20.692308
55
0.752788
c91a1516bb6940add8465abe9423b2b8a21326b4
1,170
/* * Copyright 2001-2014 Aspose Pty Ltd. All Rights Reserved. * * This file is part of Aspose.Words. The source code in this file * is only intended as a supplement to the documentation, and is provided * "as is", without warranty of any kind, either expressed or implied. */ package asposefeatures.mailmerge.mail...
32.5
125
0.728205
d323f3584a8c13cc8ada659a0209a8ad4967e3c1
2,612
package com.devband.tronwalletforandroid.tron; import org.tron.api.GrpcAPI; import org.tron.api.GrpcAPI.AssetIssueList; import org.tron.api.GrpcAPI.NodeList; import org.tron.api.GrpcAPI.WitnessList; import org.tron.protos.Contract; import org.tron.protos.Protocol; import org.tron.protos.Protocol.Account; import io.re...
38.985075
184
0.822358
da0a1a26056bc3aa01046b31352dee62c42ab6e3
87
package com.main.controller; public class RestController { private String name; }
14.5
29
0.758621
cc40b484606c67dd2ccaef47091a52a1f291d676
544
package com.java.learn; import org.junit.Test; import java.io.File; public class FileTest { public boolean mkdir(String path) { File file = null; try { file = new File(path); } catch (Exception e) { System.out.println("wrong"); } if (!file.exists()...
18.758621
56
0.529412
11f16e88018dbe3e63e2d3437e640f25e690e52e
2,438
package pl.komorowskidev.solutions.problems.median; import org.springframework.stereotype.Component; import pl.komorowskidev.solutions.problems.Problem; import pl.komorowskidev.solutions.businesslogic.SolutionsModel; import pl.komorowskidev.solutions.exception.DataNotValidException; import pl.komorowskidev.solutions.u...
32.078947
86
0.682937
cf14c0423e71fe941dc5f5cbb328f4c289ad69fe
3,030
package com.udacity.jdnd.course3.critter.service.impl; import com.udacity.jdnd.course3.critter.entity.Employee; import com.udacity.jdnd.course3.critter.exception.ObjectNotFoundException; import com.udacity.jdnd.course3.critter.repository.EmployeeRepository; import com.udacity.jdnd.course3.critter.service.EmployeeServi...
32.934783
98
0.683498
1b71b05c5eee21a697a9dfd654a77acb25714999
1,643
package com.example.demo.entity.s7; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import lombok.ToString; import org.hibernate.annotations.CreationTimestamp; import org.hiber...
25.671875
78
0.736458
57e56e00e78a7996f5b2d29224604c49e51a271f
783
// Programmer: Maciej Szpakowski, Muhammad Habib Khan, Muhammad Khalil Khan // Assignment: Project 2, Monopoly // Date: Oct 20th, 2015 // Description: CornerSquare class that models a CornerSquare object which includes Go to Jail, // free parking, etc. This BoardLocation doesn't really do anything...
32.625
95
0.726692
af137c4315034ee1a055a81775b75a69f5ff5d66
2,085
import java.util.*; // Longest Continuous Subarray With Absolute Diff <= Limit public class longSubArrDifflimit { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int t = sc.nextInt(); //sc.nextLine(); while (t-- > 0) { final int n = sc...
31.119403
75
0.475779
3dd27b0628b062a8e357bd1119c6fbaec20e6ebd
1,062
package org.rc.inventory.activity; import android.os.Bundle; import android.support.v4.content.ContextCompat; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import org.rc.inventory.R; public abstract class AbstractToolbarActivity extends AppCompa...
25.902439
93
0.666667
b1a3711b35614730230e0c0869482dfd803f7e69
1,861
package nl.ulso.markdoclet.document; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; public class Interface extends Section { private final List<Attribute> attributes; private final List<Operation> operations; private Interface(Builder...
30.016129
85
0.636217
e15870a745e2540a067467b3321b05f62d7274d9
3,562
/* * MIT License * * Copyright (c) 2021 pumbas600 * * 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...
34.25
109
0.68922
af7becfccedb48234564f705bd11192ec78827aa
1,537
/* * Android基础开发个人积累、沉淀、封装、整理共通 * Copyright (c) 2016. 曾繁添 <zftlive@163.com> * Github:https://github.com/zengfantian || http://git.oschina.net/zftlive * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
33.413043
100
0.730644
05e02184d8b007a27a5e6727d65ff0a2c273f631
121
package rs.math.oop1.z090402.solid.z016.dobarIRestoran; public interface Placanje { public void platiPorudzbinu(); }
20.166667
55
0.785124
93e411dc68ab6bf041393b5d47ba7c07b10dea2e
2,472
/** * Copyright 2016-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
34.333333
98
0.793285
a9486378e5e68a467078edc9ba3fe7d24984aa68
3,254
/* * This source file is part of Cube. * * The MIT License (MIT) * * Copyright (c) 2020-2021 Shixin Cube Team. * * 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, ...
27.344538
81
0.653964
50cdacb150c7c002030cd48598e81f5bbac5c083
710
package de.SweetCode.SteamAPI.interfaces; import de.SweetCode.SteamAPI.SteamAPI; import de.SweetCode.SteamAPI.method.methods.*; public class ISteamRemoteStorage extends SteamInterface { public ISteamRemoteStorage(SteamAPI steam) { super(steam, "ISteamRemoteStorage"); this.add(new EnumerateUserP...
29.583333
57
0.721127
275808de70d4a4d04fec8b73bdaa51ff79a6045c
2,805
package com.example.habitsmasher; import android.content.Context; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import androidx.annotation.NonNull; import and...
30.48913
132
0.681283
87c1263d37e39334de77c2939d00f08a0ff6910a
1,401
package org.apereo.cas.ticket.accesstoken; import org.apereo.cas.authentication.Authentication; import org.apereo.cas.authentication.principal.Service; import org.apereo.cas.ticket.code.OAuthCodeImpl; import org.apereo.cas.ticket.ExpirationPolicy; import javax.persistence.DiscriminatorValue; import javax.persistence....
31.840909
103
0.730193
4c28e544e31dabb07166a6b03ac92103f0d91fc8
2,244
/** * 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 m...
37.4
127
0.749554
09a5d833c1eb58b5381c69b9d34dc6aae09a9ccd
638
package Tests; import java.io.File; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.remote.RemoteWebDriver; public class Screenshot { public boolean takeScreenshot(final String name, RemoteWebDriver driver) { String screenshotD...
37.529412
118
0.760188
0f53199369a71274cce626ade9a19741852060d8
539
package org.vanilladb.comm.protocols.floodingcons; import net.sf.appia.core.AppiaEventException; import net.sf.appia.core.Channel; import net.sf.appia.core.Direction; import net.sf.appia.core.Event; import net.sf.appia.core.Session; public class ConsensusResult extends Event { private Value decision; public Con...
22.458333
69
0.768089
7c0722492d6946fd4f0585c92fe1df31c1fc1a8a
1,034
package org.condast.symbiotic.core.transformer; import java.util.Collection; import java.util.Iterator; import org.condast.symbiotic.core.def.ITransformer; public class TransformerWrapper<I, O extends Object> implements ITransformer<I, O> { private ITransformer<I, O> transformer; protected Transforme...
22
85
0.713733
23e614818e97a8cf6bd32ca8f1902cd2e309c74f
758
package com.shiyizhonghua.bean; import lombok.Data; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import java.io.Serializable; import java.util.Date; /** * @ClassName: User * @Description: 用户信息实体类 * @Author: zhuaowei * @Date: 2021/11/1 * @Version: 1.0 */ @Entity...
15.469388
43
0.629288
b190b0c9a2526f528a397b9fa542f8ac6234561b
4,771
/* * Copyright (C) 2015 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...
41.486957
97
0.779711
01ec4575ad2eaf2f3402eb74b2a06eb03e4bf4d3
6,529
package org.opencv.test.objdetect; import org.opencv.objdetect.HOGDescriptor; import org.opencv.test.OpenCVTestCase; public class HOGDescriptorTest extends OpenCVTestCase { public void testCheckDetectorSize() { fail("Not yet implemented"); } public void testComputeGradientMatMatMat() { f...
25.111538
98
0.667637
951d0d60b89bea31e6788b3ac7de2ecc3f3ce3cf
523
/* * * Licensed under the MIT License. See LICENSE file in the project root for full license information. * */ package ga.classi.web.controller.base; import java.util.Map; import org.json.simple.JSONArray; import ga.classi.commons.utility.ActionResult; /** * * @author muhammad */ public interface IBaseCont...
18.034483
101
0.711281
d6726f1b31c78ee8a15b223e766964dd7fd70df2
1,036
package co.com.jdti.practice.conference.models; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import javax.persiste...
25.9
66
0.73166
4698ce71ecb0e8bc864cc4c31254604dca920cce
951
package com.reachauto.hkr.cr.tool.exception; import lombok.Data; /** * Created with IntelliJ IDEA. * User: chenxiangning * Date: 2018-01-19 13:55 * This is my work in reachauto code. * mail:chenxiangning@reachauto.com * Description: */ @Data public class ResultExceptionBean { private int code; private ...
25.702703
93
0.677182
962d4010a249f1c3659dd657327ad842d3f8f609
1,336
package org.nem.core.model.observers; /** * Known notification types. */ public enum NotificationType { /** * The notification represents a transfer of XEM. */ BalanceTransfer, /** * The notification represents a credit of XEM. */ BalanceCredit, /** * The notification represents a debit of XEM. *...
18.30137
106
0.714072
40f96a82536308fad775abd048c37c82472198ee
574
package profileservice.component.skill; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import profileservice.domain.Skill; @Component class SkillComponentImpl implements SkillComponent{ @Autowired private SkillRepository skillRepository; p...
22.96
62
0.749129
e026bceb97e58fd559e49251fb7c1606e6c19ed9
2,183
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
30.319444
76
0.67705
8ce424a14f0b180a5d53f6574cc28d0be62d97be
1,105
package pl.krug.yagna.transcoding.startup; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.apache.commons.io.FileUtils; import org.springframework.boot.context.event.ApplicationReadyEvent; import org.springframework.context.event.EventListener; import org.springframework.stereotype....
30.694444
73
0.815385
902a0a8d1819f1a3c918da649c8d684bfc4749bc
1,383
/* * Copyright (c) 2017 Dragan Zuvic * * This file is part of jtsgen. * * jtsgen 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, either version 3 of the License, or * (at your option) any later version...
30.065217
71
0.740419
030d0e7b135c6cbddb9c08f8bdb3f7d92f384c2c
167
package ie.wit.application.service.enums; /** * Created by joewe on 14/04/2017. */ public enum TransactionSortType { ENTERED, DUE, TITLE, AMOUNT }
11.928571
41
0.652695
4f8c934d84973244fc8aa0f6cfe86f0fd611f0f8
24,691
package co.ex.coffeeforcodeapp.Activitys; import androidx.appcompat.app.AppCompatActivity; import androidx.cardview.widget.CardView; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.core.app.ActivityCompat; import androidx.core.app.ActivityOptionsCompat; import androidx.recyclerview.widget.Lin...
46.065299
181
0.649589
8a305b4966f647432e2cf26e60ee3e4f3b655b57
627
package com.design.api.pstep; // import java.util.ArrayList; // import java.util.List; // import javax.swing.text.Document; // import com.design.api.utilities.MongoReader; // import org.springframework.beans.factory.annotation.Autowired; // import org.springframework.http.HttpStatus; // import org.springframework.h...
23.222222
65
0.76874
aa2cb54c641708f8b3bb3838da298cf1c354fef1
2,325
// Copyright (c) Microsoft and contributors. All rights reserved. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. package sdk.sample.model; import java.util.List; // Instantiates a ModelVolume object public class ModelVolume { /* ...
24.473684
108
0.67828
609ab77f3c6ff17397fcb1861cba5bde05fc4dcd
3,923
/** * 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 n...
31.134921
85
0.698955
71080182b62497c932b904308804dbb0d45fa138
679
package com.mareksebera.simpledilbert.utilities; import android.graphics.Bitmap; import android.util.Log; import com.nostra13.universalimageloader.core.assist.LoadedFrom; import com.nostra13.universalimageloader.core.display.BitmapDisplayer; import com.nostra13.universalimageloader.core.imageaware.ImageAware; public...
32.333333
71
0.723122
235bf408c8b4c9e64287fa6311acfc3dfdd13189
29,628
/*=========================================================================== Copyright (C) 2008-2011 by the Okapi Framework contributors ----------------------------------------------------------------------------- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except i...
38.033376
133
0.68739
69b26739eef718c6bec4ad9c7c19fcf545d2bdc4
4,494
/* * Copyright (c) 2015, Ali Afroozeh and Anastasia Izmaylova, Centrum Wiskunde & Informatica (CWI) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code mu...
36.536585
123
0.692256
90ceedf58b4bdd4206410d55d4a5374811bfbb99
1,207
package com.beetle.framework.business.service.common.codec; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBufferInputStream; import org.jboss.netty.channel.Channel; import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.handler.codec.frame.LengthFieldBase...
30.175
78
0.75145
d5430c5d6c4325b3e5a58bf68f6cc7bfcd547979
80
package no.sintef.thingml.diversifier; public enum Mode { STATIC, DYNAMIC }
11.428571
38
0.75
114ebcb860d1f7d676de4f5d04c4fb4403a61844
307
package com.turchanovskyi.mediasphere.repository; import com.turchanovskyi.mediasphere.model.Purchase; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface PurchaseRepository extends JpaRepository<Purchase, Long> { }
30.7
75
0.856678
71d68e12e39cac536ff7a8d02a32724413b7cd1f
1,075
package pl.softfly.integ.shipment.entity; /** * Entity. */ class ShipmentStatusLiterals { public static final String ERROR = "ERROR"; public static final int ERROR_ID = -1; public static final String NONE = "NONE"; public static final int NONE_ID = 0; // 1xxx Incoming public static final String AWAITING...
32.575758
67
0.746047
fc17f12745f137284b3e8637eedc546da76dafa2
2,522
/* Copyright 2017 Zutubi Pty Ltd * * 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...
40.677419
161
0.706186
8e7b44a036f1bb3d7c7ced4a2c80fd75b9f40c55
6,065
package life.expert.common.function; import static life.expert.common.async.PrintUtils.printConsumer; import static life.expert.common.async.PrintUtils.printRunnable; import static life.expert.common.function.CheckedUtils.*; import static reactor.core.publisher.Mono.justOrEmpty; import io.vavr.control.Try; import ...
31.588542
167
0.546414
6265e2b49c5da505f394fa9bbc2d8569494337e6
3,752
/* * Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. */ package com.sap.hybris.saprevenuecloudcustomer.populator; import de.hybris.platform.commerceservices.strategies.CustomerNameStrategy; import de.hybris.platform.converters.Populator; import de.hybris.platform.core.model.user.Addre...
32.068376
113
0.779584
786d5db20e239a559c952f1815bfcefd6e4bed9b
89
package com.example.sht.homework.utils.bmobmanager; public class MultipleObjects { }
11.125
51
0.786517
4d67d10a8c2e926ec659c800e7381c6553e38b6c
4,473
/* * #%L * ===================================================== * _____ _ ____ _ _ _ _ * |_ _|_ __ _ _ ___| |_ / __ \| | | | ___ | | | | * | | | '__| | | / __| __|/ / _` | |_| |/ __|| |_| | * | | | | | |_| \__ \ |_| | (_| | _ |\__ \| _ | * |_| |_| \__,_|___/...
25.706897
87
0.647664
66fde8f595c6a705012544fe6d682a324502ea50
1,895
package models; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.List; public class HomeCook extends User implements Serializable { private List<Recipe> favouriteRecipes; private List<User> favouriteCooks; public HomeCook() { super(); favouriteReci...
36.442308
148
0.751979
ab92a82be59d2c586ee954a0ec8492d21c15b86a
1,580
package fooddiary.model.entry; import static fooddiary.testutil.Assert.assertThrows; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; public class RatingTest { @Test public void constructor_null_throwsNu...
36.744186
86
0.688608
9539e8e1abbb64a0a574b324435818fd8bbd3587
352
package in.keepgrowing.interviewcodingquestions.algorithms.sorting.withcomparators; import org.jetbrains.annotations.Nullable; import java.time.LocalDateTime; public record FlightItinerary( Long bookingId, @Nullable String carrier, int connections, LocalDateTime arrival, ...
23.466667
83
0.730114
c64e4ba78ab3f8a6adbb533c592f9ecd6298685c
204
package org.xmlcml.cml.converters.compchem.qespresso.log; public class QEspressoCommon { public static final String LOG = "qespresso_log"; public static final String XML = "qespresso_xml"; }
22.666667
58
0.75
936073f6e5fcc51b5737c0a6f6b20e940bc19766
2,046
package com.limpoxe.serial; import android.util.Log; import java.io.File; import java.io.FileDescriptor; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class SerialPort { private static final String TAG...
30.088235
153
0.668622
96471a4a41c15148bec30d20db229d4e6f8ecf36
2,085
/* // This software is subject to the terms of the Eclipse Public License v1.0 // Agreement, available at the following URL: // http://www.eclipse.org/legal/epl-v10.html. // You must accept the terms of that agreement to use this software. // // Copyright (C) 2002-2005 Julian Hyde // Copyright (C) 2005-2013 Pentaho and...
24.821429
76
0.604317
6d1b1236866aff51dc380adb8e3f1375d16daefb
1,712
package dev.marksman.gauntlet.examples; import dev.marksman.gauntlet.GauntletApiBase; import dev.marksman.gauntlet.Prop; import org.junit.jupiter.api.Test; import static dev.marksman.gauntlet.Domains.asciiCharacters; import static dev.marksman.gauntlet.Prop.allOf; import static dev.marksman.gauntlet.Prop.named; impor...
37.217391
122
0.711449
b0b83d9d1b3468199373a2caaad613334ce0a7b4
215
package com.elead.im.util; /** * Created by xieshibin on 2017/1/11. */ public class EaseNname2EpUser { public static String EaseNname2EpUser(String easeuser){ return easeuser.substring(1); } }
16.538462
60
0.683721
a84ad68eb566e2ed08e1cf884a64db2ba3a8cacb
2,342
package com.example.administrator.taoyuan.activity_life; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; ...
28.91358
97
0.640478
b63e1c49f99cb5dbd24174c00d6969484f79fb86
1,026
/* * Copyright 2014 OpenMarket Ltd * * 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.096774
93
0.714425
7cc730573c52d815f0a65e1976b3e6281563249d
24,242
/* MIT License Copyright (c) 2020 FBSQL Team 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, dis...
35.235465
267
0.672799
5b9fe813afc64aea3eadb8c8e87dce919e41b45f
505
package nasa.storage; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; /** * Jackson-friendly version filter property. */ public class JsonAdaptedFilterProperty { private final String filterProperty; @JsonCreator public JsonAdaptedFilterPropert...
22.954545
93
0.748515
c114d99621efba4e71833be66f3a00f1d8d76f87
2,713
/* * Copyright 2010 Mark Slater * * 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 writin...
27.683673
308
0.686694
f82f733253e469c8faeec0d85823716cfec60904
735
package au.com.itgeeks.spring.security.oidc.client.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.sp...
29.4
95
0.785034
730f91945494149930f9f13ec2c793115918436f
29,748
package mds.mdsip; import java.awt.Window; import java.io.Closeable; import java.io.EOFException; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.ConnectException; import java.net.Socket; import java.net.SocketException; import java.nio.ByteBuff...
34.075601
247
0.690904
d91d7eb8856a24d9f37cd6280219dd9e92ecce39
4,080
/* Copyright (C) 2013-2021 Expedia 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...
36.106195
102
0.710294
f088f9057ad14f3c84e66aef955fbf290fcb50be
3,219
package dextrous.app.hack.ai.cedric.model; import java.io.Serializable; import java.util.List; import java.util.Map; public class AnalysisResult implements Serializable { private List<Category> categories; private Map<String, Object> adult; private List<Tag> tags; private TagDescription description; ...
26.170732
85
0.581236
f83cc1e18464664081367fc8acb2170a77fe915f
3,866
/* * Documents Distributor - CallStreet Events * CallStreet Events contains all the Documents Distributor APIs that provide events data such as Events Audio and Near Real-Time Transcripts The Events Audio API provides access to all audio recordings to various company events covered by FactSet. The events include, b...
33.327586
968
0.746508
0aba2d13b535012e64a1f9c174525cd8e673af5e
10,739
/* * 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 n...
42.113725
136
0.680324
85462a6e84a33d6d21ff7dc9a985a2a97d5666de
1,806
package kochetov; import org.junit.Test; import java.util.ArrayList; import java.util.LinkedList; import java.util.TreeSet; /** * PerformanceCollectionsTest. * * @author Kochetov * @version $Id$ * @since 0.1 */ public class PerformanceCollectionsTest { /** * amount. */ private final int amou...
31.137931
80
0.634551
21809886dad65a677a8f03ca104f167488a3ac60
1,534
package com.nthportal.hadoop.hdfs.erase.core; import org.apache.hadoop.conf.Configuration; /** * A specification for erasing something. */ abstract class ErasureSpec extends NonNullConfigured { private boolean loggingEnabled = false; /** * Returns whether or not this {@code ErasureSpec} is terminal. ...
30.68
115
0.67601
62fb0a5ec150754451cca252ea51f91874f3ba14
80
package com.merapar.graphql.controller; public interface GraphQlController { }
16
39
0.825
adba1c1c5c4b858d6d691d057d6e34db9b2a83a0
19,071
package com.antplatform.admin.common.utils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.BoundListOperations; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Component; import org.springframework.util.Collectio...
24.356322
103
0.506423
510ff01c98d05834e953900cbabe1d5c36b91091
1,230
package com.codurance.lightaccess.mapping; import java.util.*; import java.util.function.BiFunction; import static org.apache.commons.lang3.builder.EqualsBuilder.reflectionEquals; public class OneToMany<K, V> { private Map<K, List<V>> data = new HashMap<>(); public void put(KeyValue<K, Optional<...
27.954545
79
0.572358
6c3602584995772966d4ffd336bb41a39d635ea7
6,261
/* * Copyright 2015-2017 floragunn GmbH * * 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 ...
47.793893
225
0.65916
71f5b5e3be4a2221fd8726d39f5e1948e7a61aef
286
package com.google.firebase.udacity.friendlychat.common.base; import android.support.v4.app.Fragment; import android.view.View; public abstract class FragmentBase extends Fragment { protected abstract void initializeViews(View v); protected abstract void setListeners(); }
22
61
0.793706
80bc48a2633f5daccb8d585a1ab525a6096e301d
4,820
package com.github.vbauer.jackdaw.code.generator; import com.github.vbauer.jackdaw.annotation.JComparator; import com.github.vbauer.jackdaw.code.base.GeneratedCodeGenerator; import com.github.vbauer.jackdaw.code.context.CodeGeneratorContext; import com.github.vbauer.jackdaw.util.ModelUtils; import com.github.vbauer.ja...
34.676259
94
0.643361
1ad98f7de8c1c9ebd9b1a602a42312b47ed6cc91
1,618
package com.tencent.bk.codecc.defect.dao.mongotemplate; import com.tencent.bk.codecc.defect.model.BuildEntity; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.mongodb.core.FindAndModifyOptions; ...
32.36
99
0.730532
b4054b7b4b92f9ad9b8d8d24a82ea290e660bdd7
2,289
package me.brucezz.sample; import android.content.Context; import android.content.res.Resources; import android.util.DisplayMetrics; import android.util.TypedValue; /** * Created by david on 16/5/26. * Email: huangdiv5@gmail.com * GitHub: https://github.com/alighters */ public class DisplayUtil { private sta...
24.880435
107
0.624727