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
dc63bb7a44a52617cef92b6df947bf0d36db1cfc
1,659
/* * Copyright © 2021 Cask Data, 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 t...
36.065217
120
0.773357
e2cc17160e88eba8608500657c7331af771785c5
4,211
/* * Copyright 2020 Mind Computing Inc, Sagebits LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
29.243056
155
0.710283
4b5403cbf7263b8d155fdddfdabe0855dac0a1af
582
package core.meta; import java.util.HashMap; import java.util.Map; public enum ActionsOnItem { Harvested, Planted, Sold; protected static final Map<String, ActionsOnItem> sv; static { sv = new HashMap<>(); for (ActionsOnItem v : values()) { sv.put(v.toString().toLowerCase(), v...
23.28
83
0.613402
5c5c94df428ca5f5d6cfba0170461bb4c9fb9227
8,107
package com.yoga.admin.shiro; import com.yoga.core.redis.RedisOperator; import com.yoga.core.utils.StringUtil; import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authc.Authenticator; import org.apache.shiro.authc.pam.ModularRealmAuthenticator; import org.apache.shiro.cache.ehcache.EhCacheManager; import org.apa...
42.668421
197
0.729246
898fac8a4b8f69088dfca933d8d365f06707c7b4
1,592
package com.db117.example.leetcode.solution2; import java.util.HashMap; import java.util.Map; /** * 205. 同构字符串 * 给定两个字符串 s 和 t,判断它们是否是同构的。 * <p> * 如果 s 中的字符可以被替换得到 t ,那么这两个字符串是同构的。 * <p> * 所有出现的字符都必须用另一个字符替换,同时保留字符的顺序。两个字符不能映射到同一个字符上,但字符可以映射自己本身。 * <p> * 示例 1: * <p> * 输入: s = "egg", t = "add" * 输出: true *...
22.422535
73
0.491834
62d3c24d7e15b5442ef2be5ff789ea68eda96a2a
820
package org.spoofax.jsglr2.util; import org.spoofax.interpreter.terms.IStrategoTerm; import org.spoofax.jsglr.client.InvalidParseTableException; import org.spoofax.jsglr.client.ParseTable; import org.spoofax.jsglr.client.SGLR; import org.spoofax.jsglr.client.imploder.TermTreeFactory; import org.spoofax.jsglr.client.im...
32.8
90
0.790244
4c9ad47aa8ca77fd5e2e9bd9f83b52910ab2e9e2
1,215
package ru.pet.stockservices.service.impl; import lombok.RequiredArgsConstructor; import org.modelmapper.ModelMapper; import org.springframework.stereotype.Service; import ru.pet.stockservices.dto.PermissionDto; import ru.pet.stockservices.repository.PermissionRepository; import ru.pet.stockservices.service.Permission...
31.973684
117
0.754733
aaa224db7ce4c7a6f99a088057a1292b58116d7b
2,920
package org.jw.basex.renjin; import static org.basex.query.QueryError.castError; import java.util.concurrent.Callable; import org.basex.query.QueryContext; import org.basex.query.QueryException; import org.basex.query.expr.Expr; import org.basex.query.expr.XQFunction; import org.basex.query.util.list.AnnList; import...
24.957265
110
0.745548
21983056b44125b0b261c1cabcb38d72f8dc1a71
2,401
package com.example.focuss; import android.app.Notification; import android.app.NotificationChannel; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.media.Ringtone; import a...
36.378788
121
0.740525
c45a921196827c61ba53af9faf7c2425d0a02ab7
1,008
/* * @(#)JFileURIChooser.java * * Copyright (c) 2009-2010 by the original authors of JHotDraw and all its * contributors. All rights reserved. * * You may not use, copy or modify this file, except in compliance with the * license agreement you entered into with the copyright holders. For details * see accomp...
24.585366
77
0.700397
93390e3c0dda304b6de2fd7cfc25202f3f1f2e15
530
package com.neu.his.backend.dao; import com.neu.his.backend.pojo.UserEntity; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; public interface UserDAO extends JpaRepository<UserEntity, Integer> { UserEntity findByUsername(Str...
29.444444
115
0.830189
e0553cf57c318a70c5b2715b0e74b1edae5c37fe
7,118
package com.rodvar.mfandroidtest; import android.content.Context; import android.content.Intent; import android.location.Location; import android.location.LocationManager; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.util.Log; import android.view.Menu; import android.view.M...
36.502564
285
0.689801
f7b8999e2237504a91ac4b888edeeb52629ec56c
6,043
package org.everit.json.schema.loader; import static java.util.Arrays.asList; import static java.util.Collections.emptyMap; import static org.everit.json.schema.JSONMatcher.sameJsonAs; import static org.everit.json.schema.TestSupport.asStream; import static org.everit.json.schema.loader.JsonValueTest.withLs; import st...
47.582677
141
0.712395
518209617b5f5b29b3dde4d1420f6a71686ac4db
6,730
package org.ak80.standin.verification; import org.ak80.standin.ReceivedMessage; import org.ak80.standin.verification.exception.*; import java.util.List; /** * Define optionally how often a message is wanted to be received */ public final class Times implements VerificationMode { public static final String MAT...
41.54321
136
0.66315
8133c8773055331af133ea9853a24e605922b4e3
505
package fox.spiteful.avaritia.compat.botania; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; public class ModelInfinitato extends ModelBase { ModelRenderer potato; public ModelInfinitato() { textureWidth = 64; textureHeight = 32; potato = new ModelRenderer(thi...
20.2
48
0.724752
7db019df609880066c80e14f37dac910825dbe6a
4,140
/* ScoreBoard Copyright © 2020 Adam Poole 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, distri...
47.586207
194
0.790097
ed216665520cec1661356ef43e2fabc5383d7236
2,835
import net.runelite.mapping.Export; import net.runelite.mapping.Implements; import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("if") @Implements("ArchiveDiskActionHandler") public class ArchiveDiskActionHandler impl...
30.815217
85
0.680071
6379303a06d7037a279327167cf25201077564fa
540
package com.mailjet.client.errors; /** * Indicates that the error happened during communication with the server * And the error nature is bound to the underlying HTTP provider / java.net stack * Please, verify your network configuration * */ public class MailjetClientCommunicationException extends MailjetException...
31.764706
81
0.757407
88235a20d9eec6634cb02b66fa70097a0cebcd8f
6,583
/* * Copyright (c) 2016. TedaLIEz <aliezted@gmail.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 appli...
32.915
110
0.716087
5dd9f7cf694acf225ebee9fcdead59239eab1e40
955
package org.limmen.flexproxy.domain; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import static jakarta.xml.bind.annotation.XmlAccessType.FIELD; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind...
29.84375
105
0.793717
cda0580a2c8a69baec4f93d0f7af127ac74b17a3
1,623
package com.pit.ext.system; import com.pit.core.data.DataSizeUtil; import com.pit.core.log.ILogService; /** * @author gy * @version 1.0 * @date 2020/9/17. * @description: */ public class RuntimeInfo { /** * 获得JVM最大内存 * * @return 最大内存 */ public final static long getMaxMemory() { ...
25.359375
121
0.622304
344f67fcb4f7f4158837b57f7b5761208142a36f
3,549
/*- * #%L * anchor-plugin-image-task * %% * Copyright (C) 2010 - 2022 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche * %% * 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 Soft...
37.755319
96
0.715131
412ba7de5606837987142fb3e8cf9d6fb885a0bb
262
package com.cybernetica.bj.client.interfaces; import com.cybernetica.bj.client.events.UserDataEvent; import com.cybernetica.bj.client.exceptions.ClientException; public interface IDataListener { void onUserData(UserDataEvent event) throws ClientException; }
29.111111
62
0.839695
1b32187cc764f70210f8324959884b08d747f6e9
1,702
package uk.org.ponder.streamutil; import java.io.InputStream; import java.io.OutputStream; import java.io.ByteArrayOutputStream; import java.io.ByteArrayInputStream; import uk.org.ponder.util.Logger; /** This class abstracts the idea of an array of bytes, and handles the task of * converting it (the array, not the...
30.945455
81
0.706816
85bbb218877862c60e8d5f006ed5c9bda1a57773
821
import java.util.Arrays; /** * @author Politeness Chen * @create 2019--08--09 21:14 */ public class _28_MoreThanHalfNum_Solution { public int MoreThanHalfNum_Solution(int [] array) { int count = 1; int num = array[0]; for (int i = 0; i < array.length; i++) { if (count == 0) ...
22.805556
55
0.377588
2685552ce734318e545bd329bca403eff06b4ab3
1,986
/* * Copyright 2000-2017 JetBrains s.r.o. * * 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 agre...
36.777778
108
0.767875
3ca51883f6bf80674344719d789090f8c5456590
2,250
//package com.sun.overweight.config; // //import org.apache.ibatis.session.SqlSessionFactory; //import org.mybatis.spring.SqlSessionFactoryBean; //import org.mybatis.spring.SqlSessionTemplate; //import org.mybatis.spring.annotation.MapperScan; //import org.springframework.beans.factory.annotation.Qualifier; //import or...
40.178571
146
0.732
dc789c96c74f0069ec8106da6cac3c0b0b0aed82
2,450
package com.mycompany.core.framework.reports; import com.google.common.io.Files; //import TestExecutionListener; import java.io.File; import java.io.IOException; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.testng.ITestResult; import org.testng.Reporter; public class C...
38.888889
407
0.722449
0310018ad3bd2dc9863d99fd0fee2548ebb38c9c
1,098
package com.ctrip.xpipe.utils; import java.util.concurrent.locks.AbstractQueuedLongSynchronizer; /** * @author marsqing * * May 20, 2016 2:06:20 PM */ public class OffsetNotifier { private static final class Sync extends AbstractQueuedLongSynchronizer { private static final long serialVersionUID = 4982...
22.408163
86
0.742259
5e97f78e443f69facf8688526760f5a9685f27cc
407
package generators.utils; import java.util.LinkedList; import java.util.List; public class Lake { public List<Point> lakePoints = new LinkedList<>(); public List<LakePass> neighbours = new LinkedList<>(); public Lake next = null; public LakePass pass = null; private int id; public b...
22.611111
59
0.636364
bacb92526f5e146c761c82416821d0e01df67f17
595
package com.dev.crm.core.dto; import java.io.Serializable; public class EstadosCuentaResultViewModel implements Serializable { /** * */ private static final long serialVersionUID = 6364087068352335959L; private Integer codigoEstado; private String estado; public EstadosCuentaResultViewModel() { } ...
16.527778
67
0.744538
6c393aaf0e61b2f74453ea49b729d3f93ee53b90
7,268
package cs2030.simulator; import java.util.LinkedList; import java.util.List; import java.util.ArrayList; import java.util.Optional; import java.util.NoSuchElementException; /** * Server class will serve the customer and also rest. * @author Brendan Cheong * @version CS2030 AY 2021-2022 Sem 1 */ publ...
32.017621
99
0.599064
c6d88ea20716941d96d06dc67497311b9e3d9cd5
387
package com.itstyle.seckill.service; import com.itstyle.seckill.common.entity.Role; import com.itstyle.seckill.common.entity.User; import java.util.Map; /** * @author 周瑞忠 * @description java类作用描述 * @date 2019/3/4 20:07 */ public interface ILoginService { User addUser(Map<String, Object> map); Role addR...
18.428571
46
0.72093
73955e21269d02f53932dc871cba599fcdd2f2c2
1,984
package com.pjzhong.leetcode.contest87; import org.junit.Test; /** * Let's call any (contiguous) subarray B (of A) a mountain if the following properties hold: * <p> * B.length >= 3 * There exists some 0 < i < B.length - 1 such that B[0] < B[1] < ... B[i-1] < B[i] > B[i+1] > ... > B[B.length - 1] * (Note that B ...
27.178082
116
0.49748
94c7ff3847237dc81a4c77cd3d278ea0b8df0ee6
938
package example.services; import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand; import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframew...
31.266667
97
0.763326
f9ef4b2937f542c737694f969221d9648458e1c7
340
package io.wisoft.java_seminar.chap06.sec15.exam_annotation; import java.lang.annotation.*; @Target({ElementType.METHOD}) // 메소드에만 적용 @Retention(RetentionPolicy.RUNTIME) // 런타임 시까지 어노테이션 정보를 유지 public @interface PrintAnnotation { String value() default "-"; // 기본 엘리먼트 value는 구분선에 사용될 문자 int number() default...
30.909091
62
0.726471
b0c1dddb3715322f302b557b72a30c28851ed247
1,891
/* * Copyright 2000-2016 JetBrains s.r.o. * * 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 agre...
29.546875
92
0.745637
722821a7c6da0162ef9804afe066997d9eafef5a
5,917
/* * Copyright (c) 2016 eBay Software 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 applicable * law or agreed to i...
36.300613
100
0.597093
c0ec0511eccec77f385c5b369dab5faa1edfaaa6
3,609
/* * Copyright (c) 2018, 2019, 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 ...
37.989474
96
0.61125
1c1bbd918e443cf0348a952006f040bbc5966b53
2,007
/** * Based on material from Digital Audio with Java, Craig Lindley * ftp://ftp.prenhall.com/pub/ptr/professional_computer_science.w-022/digital_audio/ */ package org.hyperdata.beeps.filters; // Base class for all IIR filters. public abstract class IIRFilterBase { protected static final int HISTORYSI...
24.47561
85
0.693074
65b0f9c37acf2d04fbf82378e3420824a11ee5db
1,416
package org.spacehq.packetlib.test; import org.spacehq.packetlib.event.session.ConnectedEvent; import org.spacehq.packetlib.event.session.DisconnectedEvent; import org.spacehq.packetlib.event.session.DisconnectingEvent; import org.spacehq.packetlib.event.session.PacketReceivedEvent; import org.spacehq.packetlib.event....
34.536585
96
0.715395
2fa3df247a9ef7f24dc2828cd2a9c5139ca84170
960
package net.maromo.prjapolice; public class Apolice { //Atributos private String nomeSegurado; private int idade; private float valorPremio; //Métodos gets - sets //<ALT> + <INSERT> public String getNomeSegurado() { return nomeSegurado; } public void setNomeSegurado(Stri...
20.869565
62
0.617708
94fd8bdd1cefcfe8488f3cf2e15d5df9fd18750c
366
package com.explodingpixels.macwidgets; /** * An interface for listening to {@link SourceListItem} selections. */ public interface SourceListSelectionListener { /** * Called when a {@link SourceListItem} is selected in a {@link SourceList}. * @param item the item that was selected. */ void so...
24.4
80
0.713115
4ef24dc913abe5dba524e28a78ec0b1f1d95f012
4,354
package home.operatorsanddecisionp1; import javax.swing.*; public class logicLibrary { public immutableLibrary referDataLibrary = new immutableLibrary(); public String userSSCodeInput; public String userCRSCodeInput; public double userRegFeeInput; double discountAmount; double finalUserP...
43.979798
227
0.604042
4381bce78988f78fd9309aae748e899ce7560124
3,006
package net.foulest.togepi.check.impl.wtap; import net.foulest.togepi.Togepi; import net.foulest.togepi.check.checks.PacketCheck; import net.foulest.togepi.data.PlayerData; import net.minecraft.server.v1_8_R3.Packet; import net.minecraft.server.v1_8_R3.PacketPlayInBlockDig; import net.minecraft.server.v1_8_R3.PacketPl...
35.785714
92
0.544578
888aab4eb296c9177b4af60b45e982440f05d140
5,518
package com.rainbow.smartpos.service; import android.app.Service; import android.content.Intent; import android.os.Binder; import android.os.IBinder; import com.rainbow.smartpos.Restaurant; import com.sanyipos.sdk.core.AgentRequests; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import jav...
29.042105
102
0.672708
9b1cfeff38a8479a65651f0c65715b669ccdbcb0
426
package com.hubspot.slack.client.models.response.usergroups.users; import org.immutables.value.Value.Immutable; import com.hubspot.immutables.style.HubSpotStyle; import com.hubspot.slack.client.models.response.SlackResponse; import com.hubspot.slack.client.models.usergroups.SlackUsergroup; @Immutable @HubSpotStyle p...
30.428571
71
0.847418
095bcb18437bd42c68d5574f2a0dd490546c8c08
1,134
/* * $Id: BusinessException.java,v 1.2 2009/03/02 20:39:39 haraujo Exp $ * * Copyright (c) Critical Software S.A., All Rights Reserved. * (www.criticalsoftware.com) * * This software is the proprietary information of Critical Software S.A. * Use is subject to license terms. * * Last changed on : $Date: 2009/03...
25.2
73
0.677249
ceca033e432a10a4cd3ea491428abcc1ea5a910c
2,332
/* * SoapUI, Copyright (C) 2004-2016 SmartBear Software * * Licensed under the EUPL, Version 1.1 or - as soon as they will be approved by the European Commission - subsequent * versions of the EUPL (the "Licence"); * You may not use this work except in compliance with the Licence. * You may obtain a cop...
27.761905
119
0.661235
59663a466d5e72ed90562afdd83376a451b755a9
53,315
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
35.902357
168
0.673544
0bf76eb809f00e170b29ede64bfb73e70b3b5bb4
14,371
/* CSSParser.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath 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 2, or (at your option) a...
25.301056
95
0.641639
369784cdb8372219e0e52e09b7d6f5f1b36caa2f
319
package cn.enilu.flash.bean.vo; import lombok.Data; import java.util.Date; /** * @author :enilu * @date :Created in 11/6/2019 11:29 AM */ @Data public class UserInfo { private String mobile; private String avatar; private String nickName; private Date lastLoginTime; private String gender; }
15.95
39
0.69279
6e23cd7deb52617af628374effd23301172cc089
10,887
package com.java110.community.listener.community; import com.alibaba.fastjson.JSONObject; import com.java110.utils.constant.ResponseConstant; import com.java110.utils.constant.StatusConstant; import com.java110.utils.exception.ListenerExecuteException; import com.java110.entity.center.Business; import com.java110.core...
48.386667
121
0.721962
008885bde9f66865e99bee44e7d77ae45b9a3434
274
package com.yky.ykyblog.aspect.annotation; import java.lang.annotation.*; /** * @Author: yky * @CreateTime: 2020-08-06 * Describe: */ @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface PermissionCheck { String value(); }
17.125
42
0.729927
281587f1c77946c440743a6f738344034121ba9f
4,028
package quina.net.nio.tcp; import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; /** * メモリでのデータ受信処理. * * メモリ上でデータを管理するので「大きなサイズ」の場合は * OutputFileBodyを使ってください. */ public class NioRecvMemBody implements NioRecvBody { /** Nio受信バッファ. **/ protected NioBuffer buffer; /** 最大データ長. **/ ...
16.995781
57
0.641758
1a6b631ccb35fbb83ac29fa6fddd7aced710a4cd
854
import java.util.Scanner; //Need to import this to use the Scanner object class AddNumbers { public static void main(String args[]){ int x; //Decalre integer variable x int y; //Declare integer variable y int sum; //Declare integer variable sum //Use System.out.println to print to conso...
35.583333
83
0.665105
3851d96029a7f1a829f1ae5405f8d0fdc8712054
3,219
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */ package com.microsoft.jenkins.acs; import hudson.AbortException; import hudson.Extension; import hudson.FilePath; import hudson.Launcher; import hudson...
34.98913
113
0.690898
dbdead979b8c1340c4748847ccea3d58001c27a4
706
// Java Program to find // transpose of a matrix class Program10 { static final int N = 4; // Finds transpose of A[][] in-place static void transpose(int A[][]) { for (int i = 0; i < N; i++) for (int j = i+1; j < N; j++) { int temp = A[i][j]; A[i][j] = A[j][i]; A[j][i] = temp; ...
17.65
45
0.443343
54a558d632646655ed9e09e7cebf9a25d43fcb8b
1,869
import net.runelite.mapping.Export; import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("am") public final class class43 { @ObfuscatedName("qp") @ObfuscatedSignature( signature = "Ldw;" ) @Export("pcmPlayer1") ...
26.7
113
0.738898
56462bcbd65fe819a4a0c303b9c1615917771d5b
293
package com.pratamawijaya.blog.presentation.di; import com.pratamawijaya.blog.presentation.utils.PratamaImageLoader; /** * Created by Pratama Nur Wijaya * Date : Oct - 10/15/16 * Project Name : MoviesInfoKotlin */ public interface UIDependencies { PratamaImageLoader imageLoader(); }
20.928571
68
0.767918
ba6c2f8d3da49b1370e3115700c16f1f8fb3a4c1
4,093
package com.vaani.leetcode.divide_and_conquer; import java.util.Iterator; import java.util.TreeSet; /** * 02/11/2019 Implement a MyCalendarTwo class to store your * events. A new event can be added if adding the event will not cause a triple booking. * * <p>Your class will have one method, book(int start, int end...
40.93
103
0.549719
3670ed6bda5e30aff401a904d5fac50a1751aa31
1,871
package leetcode; /** * @No 494 * @problem Target Sum * @level Medium * @desc 目标和 * @author liyazhou1 * @date 2019/10/07 * * <pre> * You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you shou...
23.987179
187
0.520043
343521ff8733f5412312e29c601c51116d973afc
3,384
/** * Apache Licence Version 2.0 * Please read the LICENCE file */ package org.hypothesis.event.interfaces; import org.hypothesis.data.model.Group; import org.hypothesis.data.model.User; /** * @author Kamil Morong, Tilioteo Ltd * * Hypothesis * */ @SuppressWarnings("serial") public interface MainUIEv...
19.560694
80
0.739953
7bfe29f2a9bce7b07eb90c92ec982ca046f19321
2,082
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
27.394737
81
0.674832
4b9464e7a29bcea4decc11f8d68182da362511d6
5,254
package com.example.android.notificationchannels; import android.app.Activity; import android.app.Notification; import android.content.Intent; import android.os.Bundle; import android.provider.Settings; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.ImageButton; ...
33.896774
87
0.607727
b99fe28bdbd37df49b4d755081f0c2dc10ca11ef
1,328
package com.zzzmode.appopsx.common; import android.os.Parcelable; /** * Created by zl on 2018/1/9. */ public abstract class CallerMethod implements Parcelable{ protected Class[] cParamsType; protected String[] sParamsType; protected Object[] params; protected void initParams(Class[] paramsType,...
20.75
67
0.596386
9e62edbc0d15004aba21f1da27461b025ba75e4a
486
package com.github.houbb.valid.jsr.constraint; import com.github.houbb.valid.core.api.constraint.AbstractLessThanConstraint; import java.util.Calendar; /** * 日历是否在过去 * @author binbin.hou * @since 0.0.3 */ class CalendarPastConstraint extends AbstractLessThanConstraint<Calendar> { public CalendarPastConstrai...
22.090909
77
0.736626
23ab1690028365af6b1f56a04011f46b7966fa9b
1,489
package com.xem.mzbemployeeapp.entity; import java.io.Serializable; /** * Created by xuebing on 15/8/28. */ public class EmployeData implements Serializable { // employe:{ accid:1, empid:1, roles:[“101”,”102”,”103”],rights:[“PH001”,”PH002”,”PH003”] } public int accid; public Integer empid; publ...
19.592105
98
0.597045
dd1b0600d0abe05326ce3da3eaef17910bb5452e
21
package com.yemao.im;
21
21
0.809524
b64239aa1f7769db11c3b05af39192fe65864d49
3,551
package com.github.stephanenicolas.injectresource; import android.app.Activity; import android.app.Fragment; import android.content.res.ColorStateList; import android.graphics.Movie; import android.os.Bundle; import android.view.animation.Animation; import com.test.injectresource.R; import org.junit.Test; import org.j...
39.898876
98
0.770206
4488377303e9157a2922add3ae6963f87a98f196
3,239
package tfar.upgradableshields.world; import net.minecraft.nbt.CompoundNBT; import net.minecraft.nbt.INBT; import net.minecraft.nbt.ListNBT; import net.minecraft.world.World; import net.minecraft.world.server.ServerWorld; import net.minecraft.world.storage.WorldSavedData; import net.minecraftforge.common.util.Constant...
32.39
103
0.641247
a7209773451f41fe1ab9f318388d94b254090475
1,338
package com.boboyuwu.xnews.mvp.presenter; import com.boboyuwu.xnews.beans.NewsDetailBean; import com.boboyuwu.xnews.common.utils.RxSubscriber; import com.boboyuwu.xnews.common.utils.RxSubscriberState; import com.boboyuwu.xnews.common.utils.RxUtil; import com.boboyuwu.xnews.mvp.model.NewsDetailModel; import com.boboyuw...
29.733333
115
0.675635
9545c0794a3e722ad8fbd578001dea6e43dffe6f
641
package ch.unisg.roster.roster.application.handler; import ch.unisg.roster.roster.application.port.in.ExecutorAddedEvent; import ch.unisg.roster.roster.application.port.in.ExecutorAddedEventHandler; import ch.unisg.roster.roster.domain.ExecutorRegistry; import org.springframework.stereotype.Component; @Component publ...
37.705882
95
0.817473
160ae0722c68c7cd3e8a09f2dd135ece73f70402
4,633
/* * 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 ...
43.299065
108
0.684006
4f1ba2021603bf99e9da758ebddfe9cc0b30b5ae
786
package cl.mineduc.sismologia.models.entity; import java.io.Serializable; import java.math.BigDecimal; import javax.validation.constraints.NotEmpty; import org.hibernate.validator.constraints.Range; import lombok.Getter; import lombok.Setter; /** * * Rango de Magnitudes * * @author Alejandro Sandoval S. * *...
17.466667
85
0.712468
872eb73621d8e5bb3146600b1430385b560f981f
3,249
package rxfamily.entity; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; import java.util.Map; /** * Created by Ray_L_Pain on 2018/1/13 0013. */ public class HealthMyFamilyBean extends BaseEntity { @SerializedName("data") public DataBean data; public class DataBean { ...
39.621951
84
0.451524
4107b296f91d562766e60ab3989c79306f4d916b
3,746
package com.seadev.aksi.model.dataapi; import com.google.gson.annotations.SerializedName; public class DataHarian { @SerializedName("attributes") private Attributes attributes; public DataHarian() { } public DataHarian(Attributes attributes) { this.attributes = attributes; } pu...
28.165414
245
0.605446
5349e278c33ac4e0414e523df71a846efc24f29b
4,638
package com.example.wenda01; import android.app.Application; import android.content.Context; import android.content.SharedPreferences; import com.example.wenda01.utils.Ks; import com.example.wenda01.utils.TTSUtility; import com.example.wenda01.utils.ToastUtils; import com.example.wenda01.views.Wheel.WheelView; impor...
26.809249
86
0.663217
c0daeb305f0b202f9446c8ee0ef29754758b4403
48,171
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v@@BUILD_VERSION@@ // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 20...
38.413876
285
0.504619
a072438721882b9307b101a6b95c33edc4fe6f7d
1,469
package me.Munchii.Shex.Errors; import me.Munchii.Shex.Lexing.Lexer; import me.Munchii.Shex.Shex; import me.Munchii.Shex.Tokens.Location; import me.Munchii.Shex.Utils.Color; import me.Munchii.Shex.Utils.ErrorHelper; import java.util.stream.IntStream; public class UnexpectedCharacterError extends Error { private...
34.162791
141
0.656229
57ddb4a5c979ea150dc5bd3b4d2b1ce5574019bd
3,952
package com.packt.modern.api.controller; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.BDDMockito.given; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; i...
38.368932
94
0.775304
d8c5136f4ec9c1e60ab3bcf79cbd8675480e0643
1,042
/* * @(#)ObservableArraySet.java * Copyright © 2021 The authors and contributors of JHotDraw. MIT License. */ package org.jhotdraw8.collection; import javafx.beans.InvalidationListener; import javafx.collections.ObservableSet; import javafx.collections.SetChangeListener; import java.util.ArrayList; public class O...
26.717949
85
0.737044
60e4cc2c66582d616f407d58d20aa1500f47abca
1,184
package cyou.mrd.persist; import net.sf.ehcache.CacheManager; import net.sf.ehcache.Element; import net.sf.ehcache.config.CacheConfiguration; import net.sf.ehcache.store.MemoryStoreEvictionPolicy; public class EhCacheCache implements Cache { protected CacheManager manager; public EhCacheCache() { ...
27.534884
64
0.728885
890cb0d451969db7c3b665e9f0fc9b457029df51
28,213
/* * 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 bookstore.GUI; import bookstore.BLL.GianHangBLL; import bookstore.Entity.GianHang; import java.io.File; import java.io.FileOut...
46.556106
174
0.634778
33da96d814fd0a80b36b3f83bd7c4fc3cb522fb4
611
// Time complexity - O(N^(0.5)) import java.util.*; import java.math.*; public class PrimeFactorization { public static void primeFactorization(int n) { for (int i = 2; i <= (int) Math.sqrt(n); i++) { int count = 0; while (n % i == 0) { count++; n ...
19.709677
55
0.435352
86ecd79c0573d674078c9d18fc7c157edbcefb9f
8,128
package com.jquestrade; /** Represents information about a symbol/ticker */ public class SymbolInfo { private SymbolInfo() {} private String symbol; private int symbolId; private double prevDayClosePrice; private double highPrice52; private double lowPrice52; private long averageVol3Months; private long aver...
25.4
126
0.721949
bd275bf1807f1d24c501bc2e3a5c77c6505a9a25
3,584
/* @author yujie * */ package ace.rest.customer; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.core.Context; import javax.ws.rs.core.Response; i...
38.12766
120
0.640346
4a7c54f9ef1789123d25935cf992dddeb86dd6e3
1,580
package packt.selenium.chap3_8_advancedwebdriver; import org.junit.rules.MethodRule; import org.junit.runners.model.FrameworkMethod; import org.junit.runners.model.Statement; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import java.io....
37.619048
116
0.59557
815f61315845cf5f8a6c953df2da5f530277a930
969
/* * Copyright 2014-2022 The Ideal Authors. All rights reserved. * * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file or at * https://theideal.org/license/ */ package ideal.development.actions; import ideal.library.elements.*; import ideal.library.reflections.*;...
27.685714
94
0.779154
14db1ac652251809291c21262a816d26d646861d
247
package com.lara.annotations; class T14 { { private int i=10; }public static void main(String args[]) { // private int Object=12; // System.out.println(Object); // System.out.println(i); // System.out.println(Exception); } }
11.761905
40
0.639676
44d58c14550f31848e0902bf769e24696485a935
3,015
public class Hangman { private final String[] asciiHangman = {"", "___", " | " + System.lineSeparator() + "_|_", " __" + System.lineSeparator() + " | " + System.lineSeparator() + "_|_", " __" + System.lineSeparator() + " |/ " + System.lineSeparator() + "_|_", ...
35.892857
107
0.51874
c96c5bc44d70794f8b621a904b43796e29ab5740
414
package com.test; import org.apache.spark.sql.SparkSession; /** * -Dspark.master=local */ public abstract class CommonSpark { public static final SparkSession spark ; static { spark = SparkSession .builder() .appName("Java Spark SQL data sources example") ...
23
65
0.589372
b63e8c30c6eadb464d376112858efb7c20fd30be
1,482
package zhushen.com.shejimoshi.leetcode; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Created by Zhushen on 2018/11/21. */ public class minAreaRect { public static void main(String[] args){ } public int minAreaRect(int[][] points) { i...
29.64
94
0.468286
023536fcee114d6c8c49ac9d82904adf38fe0b40
6,734
package com.tramchester.graph; import com.netflix.governator.guice.lazy.LazySingleton; import com.tramchester.config.GraphDBConfig; import com.tramchester.config.TramchesterConfig; import com.tramchester.domain.DataSourceInfo; import com.tramchester.graph.databaseManagement.GraphDatabaseLifecycleManager; import...
38.48
144
0.693199
04b947a77c29535c84e206578c6866e4de36e4c6
7,108
/* * Copyright (c) 2007-2014 Concurrent, Inc. All Rights Reserved. * * Project and contact information: http://www.cascading.org/ * * This file is part of the Cascading project. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
27.550388
172
0.681204
71bea24794ad9c043aee03e83a5550ec43161188
592
package forms.translation; public class ProgramTranslationForm { private String displayName; private String displayDescription; public ProgramTranslationForm() { this.displayName = ""; this.displayDescription = ""; } public String getDisplayName() { return displayName; } public void setDi...
20.413793
64
0.739865
5b7482f1c9faaee7550c873799a3a12d7b39143a
5,569
/******************************************************************************* * Copyright (c) 2005 Actuate Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is availabl...
22.455645
81
0.696894
baf38744d13487126c1a3010e04020c9bd9c8542
1,948
package colorsdatabase.about; import colorsdatabase.colorpicker.ColorPickerController; import colorsdatabase.utilities.Logger; import java.awt.Desktop; import java.net.URI; import java.net.URL; import java.util.ResourceBundle; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.Initializable; ...
29.969231
105
0.62885
476f149ce90253504b67a9f1a88448926361c187
1,518
package com.unidev.zulustorage; import java.util.HashMap; /** * Storage metadata entry */ public class Metadata extends HashMap<String, Object> { public static Metadata newMetadata() {return new Metadata(); } public static Metadata newMetadata(String id) {return new Metadata()._id(id);} /** * Fe...
19.714286
82
0.550066
43f5ab80623d7f71d390024cacdf339c53c93204
2,281
package au.com.ds.ef; import java.util.*; /** * User: andrey * Date: 6/12/2013 * Time: 2:21 PM */ public final class Transition { private static ThreadLocal<List<Transition>> transitions = new ThreadLocal<List<Transition>>(); private EventEnum event; private StateEnum stateFrom; private StateEnum...
23.515464
99
0.587462