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
402b5d207b387a1fc554568d0d1e0b442326049b
1,136
/* * Copyright 2016 Synerzip Softech. All Rights Reserved. */ package com.synerzip.framework.automation.page.pages; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import com.synerzip.framework.automation.page.PageBase; /** * The ...
22.27451
69
0.649648
334390476dc9046e5d158acacf567722c55864b5
2,218
package graphics.nim.boids.shader; import static org.lwjgl.opengl.GL11.GL_FALSE; import static org.lwjgl.opengl.GL20.GL_COMPILE_STATUS; import static org.lwjgl.opengl.GL20.GL_FRAGMENT_SHADER; import static org.lwjgl.opengl.GL20.GL_VERTEX_SHADER; import static org.lwjgl.opengl.GL20.glAttachShader; import static org.lwj...
30.805556
86
0.7633
1d2f88b8b5705869c33db47abb21dcc4acb160e3
10,065
package com.bjwg.back.util; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.u...
32.785016
222
0.620864
037c8ad674cb292d632b0a800174a506dcc99027
3,067
package org.usfirst.frc.team1759.robot; import edu.wpi.first.wpilibj.AnalogPotentiometer; import edu.wpi.first.wpilibj.CANTalon; import edu.wpi.first.wpilibj.Joystick; import java.math.*; import edu.wpi.first.wpilibj.DigitalInput; public class Climber { private CANTalon talonActuator1, talonActuator2; private Digi...
42.013699
191
0.67134
31d937be858aeaa4be0ed667999914a66a610f6a
3,385
/** * * Copyright 2018 Paul Schaub. * * 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 agree...
38.033708
145
0.686854
02078359fdd61f09e56fee59cd72590668a5350a
5,677
package th.watsize.imageviewer; import java.io.File; import th.watsize.filebrowser.FileUtils; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Matrix; import android.graphics.PointF; import android.util.AttributeSet; import android.util.F...
27.692683
79
0.655276
c355a579b1479946466944f79b43742bb4ab7b41
2,210
/*************************************************************************** * Purpose : To create class for random number genration * * @author Aashish * @version 1.0 * @since 21-08-2017 ****************************************************************************/ package com.bridgelabz.lib; import java.util.Ran...
27.974684
77
0.574208
1b5c37775e768695113c7c27847669e194d52711
504
import java.util.Scanner; public class SeuqeunceSumModified { public static void main(String[] args) { Scanner sn=new Scanner(System.in); System.out.println("Enter Sequence limit"); int n=sn.nextInt();//taking limit of sequence as an input sn.close(); System.out.print("Answer: "+(n*n)); ...
31.5
93
0.59127
0b916177fed259923f0fbf6229d8872d3fc8bf77
10,277
package org.etnaframework.core.util; import java.lang.reflect.Type; import java.util.Arrays; import java.util.List; import java.util.Map; import org.etnaframework.core.logging.Log; import org.etnaframework.core.spring.annotation.Config; import org.etnaframework.core.util.DatetimeUtils.Datetime; import org.etnaframewor...
35.684028
235
0.592002
2c1d6f8d7a00bd0b07123b446fdd216e73a9412e
40,598
/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any la...
49.570208
926
0.749815
54b1f75c7315c124cb6fcefbadbfa37887102c5b
393
/* * Copyright (c) 2015 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.saml.idp.web.filter; import pl.edu.icm.unity.types.endpoint.Endpoint; public interface IdpConsentDeciderServletFactory { IdpConsentDeciderServlet getInstance(String...
32.75
115
0.814249
3fcd9df244209d9629decbc323d784524c8fd27f
22,770
package com.android.clockwork.bluetooth; import static com.android.clockwork.bluetooth.WearBluetoothConstants.PROXY_SCORE_CLASSIC; import static com.android.clockwork.bluetooth.WearBluetoothConstants.PROXY_SCORE_ON_CHARGER; import android.annotation.MainThread; import android.annotation.NonNull; import android.annota...
39.6
100
0.631796
85f687bcf30b28a3061e60ff9e30632ed6a30a1c
474
package org.miip.waterway.model.eco; public class Rectangle { private int x,y; private long length; private long width; public Rectangle( int x, int y, long length, long width ) { this.x = x; this.y = y; this.width = width; this.length = length; } public int getXPos() { return x; ...
14.363636
61
0.601266
90ea4a8f3cd54c24f311692f9dc474a51f5cd689
4,079
package com.checkout.apm.rapipago; import com.checkout.PlatformType; import com.checkout.SandboxTestFixture; import com.checkout.common.CountryCode; import com.checkout.common.Currency; import com.checkout.common.PaymentSourceType; import com.checkout.payments.PaymentStatus; import com.checkout.payments.request.Paymen...
40.79
112
0.734984
a488a9951170506eb916ee5a1958092bba9e359b
1,638
import org.junit.Test; import controller.ApplicationController; import controller.CommandController; import controller.ViewController; /** * Includes testcases for the controllers. */ public class ControllerTest { @Test public void testScriptWithValidCommands() throws Exception { ApplicationController appl...
34.125
154
0.748474
065befe37966d89eebbd570953b15262ce3b4a92
761
package com.avob.openadr.server.common.vtn.models.venmarketcontext; public class VenMarketContextDto { private Long id; private String name; private String description; private String color; public VenMarketContextDto() { } public VenMarketContextDto(String name) { this.name = name; } public Long get...
14.634615
67
0.704336
d89ac10edc165b1d83d524039d3f759a4ec31ef5
894
/* * gabien-app-r48 - Editing program for various formats * Written starting in 2016 by contributors (see CREDITS.txt) * To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed withou...
37.25
214
0.756152
63839edbe817c43a7957fd5b46208642e1db8f1a
498
class TestInvokeVirtual { static class A { public static int i = 1; public void m() { System.out.println("calling m from A"); System.out.println(i); } } static class B extends A { public static int i = 2; public void m() { System.out.println("calling m from B"); Sy...
15.090909
43
0.526104
6ccf92aa9cfca596703bdf997d983ddfb0401da9
3,409
/* * Copyright 2017-2020 original 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
39.639535
124
0.7313
5bc6fc7ba17ff8b62766acc48306fafbdbd41d65
4,843
package com.md.jsyxzs_cn.zym_xs.fragments; import android.app.Activity; import android.app.ActivityManager; import android.content.Context; import android.net.Uri; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.text.format.Formatter; import ...
33.867133
116
0.667355
6a63e33e9927a9c9627f7f9166b8685df9d68e07
372
package com.spring.cloud.user.domain; import lombok.*; import java.util.List; /** * @author Travel Hu */ @Data public class UserDetailDO { /** * 用户ID */ private Long userId; /** * 用户名 */ private String username; /** * 密码 */ private String secret; /** ...
12.4
37
0.52957
90d48e108cabf29b7395bcfb2f222706a5474a50
3,854
/* * * Copyright 2012-2013 University Of Southern California * * 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 * * Unles...
33.224138
151
0.632849
894fd473732f9228d6c6f7299d6c8a9e2d337096
3,407
package com.github.tomato.core; import com.github.tomato.annotation.Repeat; import com.github.tomato.annotation.TomatoToken; import com.github.tomato.support.DefaultTokenProviderSupport; import com.github.tomato.support.Phone; import com.github.tomato.support.TokenProviderSupport; import com.github.tomato.support.User...
36.634409
114
0.697975
a059cf1a49663000b74c5fa0433932d16a92c788
3,520
package com.cmbc.gulimall.controller; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.cmbc.gulimall.common.utils.R; import com.cmbc.gulimall.dao.BrandDao; import com.cmbc.gulimall.dao.CategoryDao; import com.cmbc.gulimall.entity.BrandEntity; import com.cmbc.gulimall.entity.CategoryBrandR...
30.344828
95
0.700568
ae113a4d2f8f31f825cebb83d281ca7683ec2ee3
662
package com.example.database.backend; import android.database.ContentObserver; import android.net.Uri; import android.os.Handler; import android.util.Log; /** * Created by davidvalentin on 1/8/18. */ class MyObserver extends ContentObserver { private static final String TAG = "ContentObserver"; public My...
22.066667
56
0.669184
5ddb5a0d8bff0339c84e923daa2bc0551e8c1031
912
package com.github.ayltai.hknews.service; import org.junit.Assert; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import c...
35.076923
115
0.797149
bbb4e53db81f3daaa9adc09a123df5cdefcab01e
640
package top.yuan.beans.factory.support; import top.yuan.beans.BeansException; import top.yuan.beans.factory.config.BeanDefinition; import java.lang.reflect.Constructor; /** * \* Create by Yuan * \* @author: Yuan * \ */ public interface InstantiationStrategy { /** * 实例化策略接口 * @param beanDefinition ...
23.703704
79
0.678125
de576a649d22f627882311f7995ff7feca250fd6
1,431
package com.heroku; import com.google.common.hash.Hashing; import io.undertow.Undertow; import io.undertow.server.HttpHandler; import io.undertow.server.HttpServerExchange; import io.undertow.util.Headers; import java.nio.charset.StandardCharsets; import java.util.Optional; public class App { public static void ...
33.27907
114
0.594689
3b492dcde402884c0226b400ec1137fd4f923cce
553
package org.forwoods.messagematch.generate.nodegenerators; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.JsonNodeFactory; import org.forwoods.messagematch.generate.nodegenerators.constraints.Constraint; public class StringTypeGenerator extends NodeGenerator { public Str...
26.333333
80
0.824593
fc00be1cb8f8f188785a70c62ff48bd9a05c2fb7
1,135
/** * Leetcode - longest_consecutive_sequence */ package com.leetcode.longest_consecutive_sequence; import java.util.*; import com.ciaoshen.leetcode.util.*; /** * log instance is defined in Solution interface * this is how slf4j will work in this class: * ============================================= * if (...
25.222222
71
0.489868
3117db0338cf01107078138100dcd1e42243f800
1,195
/* * Copyright 2019 kiwipeach(1099501218@qq.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 ...
29.146341
81
0.746444
84a4e6d703f18f6276495d88dbf00561ddbd1033
739
package com.paypal.reports.reportsextract.service; import com.paypal.reports.reportsextract.model.HmcBraintreeRefundLine; import com.paypal.reports.reportsextract.model.HmcBraintreeTransactionLine; import java.util.Date; import java.util.List; public interface ReportsBraintreeRefundsExtractService { /** * Retrie...
32.130435
104
0.792963
490396fa2fc2082cc205d25cde01fa07cc7868f5
331
package com.tiagoamp.userinfo.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.rest.core.annotation.RepositoryRestResource; @RepositoryRestResource(collectionResourceRel = "user", path = "user") public interface UserRepository extends JpaRepository<UserEntity, ...
33.1
76
0.833837
54984e0a4967d3355026c80353cc59025715e044
1,092
/* * Janssen Project software is available under the Apache License (2004). See http://www.apache.org/licenses/ for full text. * * Copyright (c) 2020, Janssen Project */ package io.jans.as.server.model.exception; /** * @author Yuriy Zabrovarnyy * @version 0.9, 16/06/2015 */ public class AcrChangedException ex...
23.234043
124
0.702381
fc253b4602ebdc34cd4b242fb9bbfc563101126d
537
package array; import java.util.HashSet; import java.util.Set; public class ContainsDuplicate { /** * Default version * <p> * Time: O(n) <br> * Space: O(n) */ public static boolean containsDuplicate(int[] nums) { Set<Integer> set = new HashSet<>(); //noinspection ForL...
21.48
90
0.560521
97c521dad8857b7523a2683e3d612485d587e57c
7,309
/** * Copyright 2013 Netflix, 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 ...
28.550781
112
0.681352
8049e764db47c136f9dd40b9477cf7a5d537c1bc
11,286
package org.java.smartrestaurant.web.controller; import org.java.smartrestaurant.dto.DishDto; import org.java.smartrestaurant.dto.MenuItemAdminDto; import org.java.smartrestaurant.dto.RestaurantDto; import org.java.smartrestaurant.exception.NotFoundException; import org.java.smartrestaurant.service.dish.DishService; i...
45.878049
138
0.668262
145a5dc5d23f4b4f87dc73dc05c4fcc7fea9523f
2,952
package com.inmu.nanoforum.dao; import com.inmu.nanoforum.model.AppUser; import org.hibernate.Hibernate; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.query.Query; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; ...
29.52
131
0.678184
3d1853b05320275a2ae8a40a179911fd3701e1d5
2,390
/******************************************************************************* * Copyright 2017 HuaWei TLD and OTC * * Licensed under the Apache License, Version 2.0 (the "License"); you m...
30.253165
85
0.5
511959e747fad663b74f099d1e889181e43ba2df
534
package net.iccraft.gameboosters.booster; import org.bukkit.Material; public enum BoosterType { XP (Material.EXPERIENCE_BOTTLE, "XP Booster"), FLY (Material.ELYTRA, "Fly Booster"), SPEED (Material.FEATHER, "Speed Booster"), MCMMO (Material.BLAZE_POWDER, "McMMO XP Booster"); private Material item; private Str...
19.777778
51
0.726592
33b66a404559c834251334f6375ff4eada5f4214
2,735
/* * * Copyright (c) 2004-2008 Arizona State University. 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 must retain the above copyright * not...
26.813725
73
0.725777
23627e1d392756a5879547a19ebde199bc61e93a
454
package javagrinko.spring.inject; import org.springframework.stereotype.Component; import java.util.List; @Component public class TestBean { @InjectBeans List<Foo> listWithInject; @InjectBeans Foo listWithoutInject; @Override public String toString() { return "TestBean{" + ...
19.73913
60
0.627753
6517560864165824755e91a0da56b511936f6cb7
1,643
package com.archfiery.andriod.commonhash; import android.app.Activity; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; import android.widget.TextView; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class DisplayLicense exte...
31.596154
76
0.639684
884d733fd119c35ad447e37de80e01796594f6c5
5,866
/** * */ package org.pimslims.servlet.experiment; import java.io.IOException; import java.io.PrintWriter; import java.util.Collection; import java.util.LinkedList; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax....
42.817518
139
0.622741
d769e299b7fe771290e536b12d91ce8a20b32bf1
3,555
package builders.dsl.spreadsheet.builder.api; import builders.dsl.spreadsheet.api.*; import groovy.lang.Closure; import groovy.lang.DelegatesTo; import groovy.transform.stc.ClosureParams; import groovy.transform.stc.FromString; public interface CellStyleDefinition extends ForegroundFillProvider, BorderPositionProvide...
46.168831
349
0.766245
8b249b79a0f1eaf33ae2cdeaef1a379d1dc93b08
11,326
package me.soubhik.GforG; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.PriorityQueue; /** * Created by soubhik on 01-12-2018. * from https://practice.geeksforgeeks.org/problems/maximum-rectangular-area-in-a-histogram/0 */ pub...
29.341969
93
0.46795
1aa0903dfb4ad9279c8bad00f5fdb115add2417c
2,602
package fr.lteconsulting.hexa.client.datatable; import java.util.HashMap; import java.util.HashSet; import com.google.gwt.core.client.Scheduler; import fr.lteconsulting.hexa.client.interfaces.IHasIntegerId; import fr.lteconsulting.hexa.databinding.properties.Properties; import fr.lteconsulting.hexa.databinding.prope...
23.232143
98
0.72867
9b672f3b92b6d8efca1f03ae820440864eeebd2b
13,784
/* * Copyright (C) 2016 Nishant Srivastava * * 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 ...
37.661202
104
0.741947
4c22a1fb48af31d5e82f27e1ea27036fcd3336d6
1,729
package amu.zhcet.core.admin.dean.datatables; import amu.zhcet.data.user.faculty.FacultyMember; import amu.zhcet.data.user.faculty.FacultyRepository; import com.fasterxml.jackson.annotation.JsonView; import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springfra...
40.209302
121
0.764604
c21e65273aabee8e441fceadc5591f2ebad405bf
3,196
/* * * * Copyright 2013 Jive Software * * * * 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 * * * * U...
22.194444
102
0.641427
2c9665ec6d04a6c00c5204fef71dfca66f33e214
232
package com.leaf.magic.image.dowload; import java.io.InputStream; /** * Created by Administrator on 2017/3/20. */ public interface DownloadStream { InputStream getStream(ImageDownloadInfo imageDownloadInfo); }
17.846154
64
0.724138
70f5d02d50f2cc3d1cb98bb6da892a6d86c91928
21,011
/** * Copyright 2019 LinkedIn Corp. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
49.554245
158
0.760221
9ab6ac9d683d87e3746ae019bb85d73cd3fb23bf
253
package id.ac.unpar.siamodels.matakuliah.kurikulum2018; import id.ac.unpar.siamodels.InfoMataKuliah; import id.ac.unpar.siamodels.MataKuliah; @InfoMataKuliah(nama = "Analisis Sistem Informasi", sks = 2) public class AIF133381 extends MataKuliah { }
23
60
0.798419
aa0d58ff506da35cd5ec22855e3d906cd5911b99
11,610
import static java.lang.Math.*; import java.awt.Graphics2D; import java.util.ArrayList; import java.util.Collection; /** * Branch of an GJHyperbola2D. */ public class GJHyperbolaBranch2D extends GJAbstractSmoothCurve2D implements GJSmoothContour2D, Cloneable { // ======================================...
29.170854
94
0.576744
3b6a9d9395397cd47e1c4a6041c83d66f5fd432d
2,578
package net.lacnic.siselecciones.admin.web.commons; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxLink; import org.apache.wicket.markup.html.WebMarkupContainer; import org.apache.wicket.markup.html.link.Link; import org.apache.wicket.markup.html.panel.Panel; public abs...
23.436364
70
0.748254
bd643ceb4bde88c6af91347469fdded9d6e5549a
1,279
package basemod.abstracts; import com.badlogic.gdx.graphics.Texture; import com.megacrit.cardcrawl.relics.AbstractRelic; public abstract class CustomRelic extends AbstractRelic { public CustomRelic(String id, Texture texture, RelicTier tier, LandingSound sfx) { super(id, "", tier, sfx); texture.setFilter(Textur...
26.645833
98
0.750586
8ae0319affdbdcb702e0874cd3a03e4e38aabd59
6,980
//ALL DONOR RELATED TASKS; import java.io.*; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.logging.Logger; class FunctionDonor { private DataInputStreamCustom dataInputStream; private DataOutputStreamCustom dataOutputStream; private DBConnection dbConn...
39.435028
128
0.586676
6406d3d84e81f2ff0d9c7664f43d90d7f7727865
3,273
/* * Copyright (C) 2017 The Dagger 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 required by applicable law or ag...
39.914634
99
0.780018
b56efd2eff408d9219d458947161a2ecf64aa6bc
3,738
/* * Copyright 2020 陈圳佳 * * 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 writi...
35.264151
102
0.771803
539ddafed1b028f80e7da397ccf4a1ed8e4fc5e7
813
package br.com.randomthings.domain; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.OneToMany; import javax.persistence.OneToOne; import lombok.AllA...
23.911765
76
0.805658
9e115db9b9c53681f8acf36213ddbc4ced1d7615
2,870
/* */ package ch10; /* */ /* */ import java.util.Scanner; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ class ATM /* */ { /* */ private Account[] accounts; /* 18 */ int state = 0; /* */ /* */ /* */ /* 22 */ int ...
30.210526
99
0.44669
4c6e60929d58f4d5a50b73035401e7dcca9fccc4
364
package com.regent.rpush.dto.common; import lombok.*; import java.io.Serializable; /** * @author 钟宝林 * @since 2021/3/5/005 17:47 **/ @Data @NoArgsConstructor @AllArgsConstructor @Builder public class IdAndName implements Serializable { private static final long serialVersionUID = -8247431937045453249L; p...
16.545455
71
0.739011
71a927d4ff099ea9b92872c5511abbd449e4e304
11,929
/* * * * 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 ...
41.276817
134
0.605835
a046155b5fe95c6bc23be111d119c09c0ed4f304
937
package com.wangrollin.leetcode.n0_normal.p300.p380.problem387; import java.util.HashMap; import java.util.Map; /** * 字符串中的第一个唯一字符 * * 给定一个字符串,找到它的第一个不重复的字符,并返回它的索引。如果不存在,则返回 -1。 * * 案例: * s = "leetcode" * 返回 0. * * s = "loveleetcode", * 返回 2. * * 注意事项:您可以假定该字符串只包含小写字母。 * * 来源:力扣(LeetCode) * 链接:https:/...
20.822222
73
0.532551
bb92945189ed0b9bdf25d6b7e62016ca0faa0cd1
3,726
/** * vertigo - application development platform * * Copyright (C) 2013-2022, Vertigo.io, team@vertigo.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
38.020408
157
0.80891
860b73e139a332d8832b8fd6b8fe6866ec171038
483
package org.code4everything.demo.springboot.jpa.model; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import lombok.ToString; import lombok.experimental.Accessors; import org.code4everything.boot.base.bean.BaseBean; /** * @author pantao * @since 2019/10/20 */ @Data @ToString...
19.32
54
0.786749
fbbba551c46a37eb4d9d6266478bb20744d8550d
14,644
package com.example.root.Scraper; import android.content.Context; import android.content.SharedPreferences; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.AsyncTask; import android.os.Bundle; import android.os.StrictMode; import android.support.annotation.Nullable; import an...
39.901907
392
0.570882
32f50cb02f9dd86297ee0ed112aef05fd1864fae
611
package com.kuliginstepan.dadata.client.domain.fms; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import lombok.Builder; import lombo...
25.458333
63
0.780687
1386996405dafdd6f5345029664fc334ebc38134
13,492
package com.ysj.usb.usbconnector.core; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.pm.PackageManager; import android.content.res.XmlResourceParser; import android.h...
35.505263
142
0.606063
a05ded1d433c546370ac4c0eec482261072c33fe
28,467
package com.infoclinika.mssharing.platform.model.read; import com.google.common.base.Optional; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSortedSet; import com.infoclinika.mssharing.platform.model.common.items.NamedItem; import java.util.Date; import java.util.List; impo...
36.171537
110
0.540485
28abd4bc864ff991f1cd36b3d6d5ab75197ead04
3,263
package com.fasterxml.classmate; import java.io.Serializable; import java.util.*; import com.fasterxml.classmate.util.ClassKey; /** * Interface for object that can provide mix-ins to override annotations. */ @SuppressWarnings("serial") public abstract class AnnotationOverrides implements Serializable { /* ...
32.306931
118
0.564205
6ab92ef2186cb0b53bfc7c4907be5f69fa07cdf2
6,391
/* * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
25.666667
135
0.560632
fa6f2da9a680807f770989c556f7b03554485d3b
3,429
package io.github.ouyi.dwdemo.business; import io.github.ouyi.dwdemo.io.PersonDAO; import liquibase.util.csv.opencsv.CSVParser; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.io.UncheckedIOException; import java.time.ZoneOffset; import java.time.ZonedDateTime; import ...
33.291262
122
0.648294
06738350c9b981d2a520c6792849f1c856abea39
4,944
package org.apache.bookkeeper.meta; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import java.util.Collection; import static org.apache.bookkeeper.meta.MetadataDrivers.getBookieDrivers; import static org.apache.bookkeep...
41.898305
111
0.654126
db713e42eb7b97fdc57c590933a61b63d1b09bfb
454
package com.sjwitservices.guiceutils.childinjectortools.destroyable; import com.google.inject.AbstractModule; import javax.inject.Singleton; /** * This module should be bound at a global level. * * Both lifecycle manager containers require this to be bound. */ public class PreDestroyMethodFinderModule extends Ab...
25.222222
68
0.764317
180d7d9bc1827ad63d81de75ee53bf2072cd81b0
3,106
/* * Copyright (c) 2021 - for information on the respective copyright owner * see the NOTICE file and/or the repository https://github.com/carbynestack/cli-ng. * * SPDX-License-Identifier: Apache-2.0 */ package io.carbynestack.cli.resolve; import io.carbynestack.common.Describable; import java.util.Objects; impo...
28.495413
84
0.597553
6d944032c115cfbea5226442ce04f93e414db9c4
1,620
package com.nextBook.controller.databaseEndpoints; import com.nextBook.database.entity.User_roles; import com.nextBook.database.entity.Users; import com.nextBook.database.persistence.UserDAO; import org.apache.log4j.Logger; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import java...
30.566038
83
0.703704
091a12ec84596d25613bb4e7edb4102b667dd1ed
764
package I.visualization.tools; import com.bitplane.xt.BPImarisLib; import I.plugin.LogIn; public class ImarisTools { public static ImarisServer.IServerPrx GetServer(BPImarisLib vImarisLib){ ImarisServer.IServerPrx vServer = vImarisLib.GetServer(); return vServer; } public static int GetObjectId(BPImarisLib ...
26.344828
73
0.717277
89cecddfe5c0bddd304a2ead7d44a338bc25a576
2,514
import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; public class GUIclass extends JFrame implements ActionListener { private JLabel label; // Label for hourly salary ...
27.933333
94
0.650756
e29f5ef1baff2e0bdbee726528072a9a04f6b080
715
package com.coffee.baby.idlecheckdemo; import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelPipeline; import io.netty.channel.socket.SocketChannel; import io.netty.handler.timeout.IdleStateHandler; import java.util.concurrent.TimeUnit; /** * @Classname IdleCheckServerInitializer * @Descripti...
27.5
83
0.760839
cac360923398d3034a3bfbf2af0e1bb4ae0a1350
2,868
package com.rzico.weex.model.zhibo; import com.rzico.weex.model.info.BaseEntity; /** * Created by Jinlesoft on 2018/4/11. */ public class UserBean extends BaseEntity { private data data; public data getData() { return data; } public void setData(data data) { this.data = data; ...
19.916667
54
0.487448
444c0e5c203ef699cedb4cf1a6f32420cd94f61a
116
package edvisees.edl2015.evaluation; public enum NerType { PER, GPE, LOC, FAC, ORG, TTL; }
10.545455
36
0.577586
0e5995188a1cf1b034e28429afc425dc44bc5bc4
1,111
/* * Copyright 2022 KCodeYT * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
37.033333
89
0.760576
0597fd260ffbda9163928b014f061ad83b9ba539
582
package com.lyu.shopping.recommendate.service; import java.util.List; import com.lyu.shopping.recommendate.dto.UserActiveDTO; /** * 类描述:操作数据库中用户的行为数据的服务类 * 类名称:com.lyu.shopping.recommendate.service.UserActiveService * @author 曲健磊 * 2018年3月26日.下午6:33:09 * @version V1.0 */ public interface UserActiveService { ...
19.4
62
0.745704
b1eaff35f0ab15183d98ee3ca37a5b42c0120436
33,391
/* * Easy!Appointments API * These are the OpenAPI specs that describe the REST API of Easy!Appointments. * * OpenAPI spec version: 1.0.0 * Contact: info@easyappointments.org * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do ...
46.312067
329
0.689198
982635e420e59cb154b5fcfd11f0425f4ecae20b
959
package org.sapient.Number; public class MyNumberImpl implements MyNumber { @Override public int checkPrime(int x) { if (x == 1) return 0; else if (x == 2) return 1; // will return 1 if prime else 0 for (int i = 2; i < Math.sqrt(x) + 1; i++) { ...
25.236842
64
0.506778
f809838600e04cbccb8b08b80951cb4f2283f9fe
2,655
/* * Copyright 2013-2014 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 required by ap...
32.378049
90
0.760452
9d1a83fad19724507e5b4af53a59914ef1138667
5,136
package com.plushnode.banana.controllers; import com.plushnode.banana.models.Action; import com.plushnode.banana.models.Punishment; import com.plushnode.banana.models.PunishmentTargetType; import com.plushnode.banana.storage.PunishmentQuery; import com.plushnode.banana.storage.sql.Database; import java.sql.Timestamp;...
42.098361
173
0.655179
089955aa59dc2159d242dee7eb78ba43a939427a
785
package com.goodsave.basic.threadpool; import org.junit.Test; import java.util.concurrent.*; /** * CallableThreadPool * Created by Joker on 2017/8/8. */ public class CallableThreadPool { ExecutorService cachedThreadPool = Executors.newCachedThreadPool(); @Test public void test() throws ExecutionExce...
24.53125
80
0.570701
d545d3d882c7ba947a5b09a5d9b06e80f2b49b6b
6,821
package org.mdeforge.presentation.rest; import java.util.List; import org.mdeforge.business.BusinessException; import org.mdeforge.business.CRUDArtifactService; import org.mdeforge.business.ProjectService; import org.mdeforge.business.WorkspaceService; import org.mdeforge.business.model.Artifact; import org....
40.123529
100
0.758393
e4d17a265e74453b223762b41215c69f77d7e3fa
706
package com.company; import java.util.Scanner; public class p06_Number_in_Range { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.printf("Еnter a number in the range [1...100]:"); Integer n = Integer.parseInt(input.nextLine()); while (tr...
29.416667
72
0.512748
2a4c18aa174347d1081c79825d9af2c1344cc097
251
package com.webot.bintools.models; public class DecodeResponse { public String codec; public String data; public DecodeResponse() {} public DecodeResponse(String c, String d) { this.codec = c; this.data = d; } }
17.928571
47
0.63745
5505b9567f4eac3cc13d7b20dd2060695f41f876
4,468
/* * 3D City Database - The Open Source CityGML Database * https://www.3dcitydb.org/ * * Copyright 2013 - 2021 * Chair of Geoinformatics * Technical University of Munich, Germany * https://www.lrg.tum.de/gis/ * * The 3D City Database is jointly developed with the following * cooperation partners: * * Virtua...
42.150943
150
0.692927
9fcc126293a520fbcb5e02740dfc5e4baf0091ba
3,378
/** * Copyright (C) 2014 Arnaud Piroelle (contact@arnaudpiroelle.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 * * Unles...
21.935065
75
0.641208
673e10df4c18830d5930b5bccf45ed69f4199b8c
1,161
package edu.NUDT.PDL.RatingMessages; import java.util.Hashtable; import edu.NUDT.PDL.coordinate.ratingCoord; import edu.harvard.syrah.sbon.async.comm.AddressIF; import edu.harvard.syrah.sbon.async.comm.obj.ObjMessage; public class ClustIssueRequestMsg extends ObjMessage { static final long serialVersionUID = 63L; ...
30.552632
95
0.784668
aa8a15421b03ef2bd2f9958571138fa162022385
528
package com.leetcode.algorithm.easy.mincostclimbingstairs; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public class SolutionTest { @Test public void testCase1() { Solution solution = new Solution(); assertEquals(15, solution.minCostClimbingStairs(new in...
26.4
100
0.708333
cd08356a1da350259531242efd760a67ba8f3881
500
package de.coronavirus.imis.domain; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import javax.persistence.Entity; import javax.persistence.OneToMany; import java.util.List; @EqualsAndHashCode(callSuper = true) @Entity @Getter @Setter public class Laboratory extends InstitutionImpl { ...
18.518519
50
0.802
ee0bb4bee9bc1fe8cce880b5e9293034d864706f
80
package minesweeper; public enum GameLevel { BEGINNER, INTERMEDIATE, EXPERT }
13.333333
31
0.7875
fc0cc4ef9916bb14ced7928859ca74abe6ddd5c9
17,303
/* * $Id$ * * Copyright (c) 2006 VeriSign. 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 must retain the above copyright notice, * this list of co...
32.708885
112
0.681558
9b9d33b16d3725f5bbeba42adfc67548f73702d2
1,095
package com.bitdubai.fermat_ccp_api.layer.request.crypto_payment.exceptions; import com.bitdubai.fermat_api.FermatException; /** * The exception <code>com.bitdubai.fermat_ccp_api.layer.request.crypto_payment.exceptions.CantListCryptoPaymentRequestsException</code> * is thrown when there is an error trying to list t...
39.107143
136
0.778995