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
00d728594846b9d764be389516b7011c88b39359
858
class Solution { public int minOperations(int[] target, int[] arr) { Map<Integer, Integer> have = new HashMap<>(); int n = target.length; for(int i=0;i<n;i++){ have.put(target[i],i); } int length = 0; int[] dp = new int[n]; for(int x: arr){ ...
27.677419
55
0.367133
9b4ac3cbfa1c52ad3ebba7fda7ce8621dcbc64a5
2,917
/* * This file is part of project Helios, licensed under the MIT License (MIT). * * Copyright (c) 2017-2018 Mark Vainomaa <mikroskeem@mikroskeem.eu> * Copyright (c) Contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files ...
31.031915
92
0.701406
3da31700c20b495b9b55a514193316765e867e5e
4,753
package de.ub0r.android.choosebrowser; import android.content.ComponentName; import android.content.Context; import android.content.pm.PackageManager; import android.graphics.drawable.Drawable; import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import androi...
32.554795
97
0.641069
98aeeaca83bbbfa5af932e182228dcc4e2fcb703
23,300
/* * 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 ma...
34.214391
96
0.696609
5e2d49987b7de1d84e6f695cc16658b3e62e7139
18,302
/** * 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...
32.507993
119
0.505027
dc92065cd6191ae40972c6e3057fb7c71d31b646
4,429
/* * Copyright Lealone Database Group. * Licensed under the Server Side Public License, v 1. * Initial Developer: zhh */ package org.lealone.common.logging.impl; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.message.FormattedMessage; import org.apache.logging.log4j.message.Message; import ...
25.601156
89
0.634455
01577b5c957e3b6d7cbfe0632b20a3e5d0968875
4,948
package com.beinet.firstpg.controller; import com.beinet.firstpg.configs.ConfigReader; import com.beinet.firstpg.mysql.JpaDemo; import com.beinet.firstpg.mysql.entity.Users; import io.swagger.annotations.*; import lombok.Data; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import or...
31.119497
121
0.634196
5d92ad0155602bf907440c7b58d26721f1b6780c
4,429
package org.wms.controller.order; import static org.junit.Assert.*; import static org.mockito.Mockito.*; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.junit.BeforeClass; import org.junit.Test; import org.wms.model.material.Material; import org.wms.model.order.Order; import org....
27.006098
89
0.741025
097ef11693fea960025252d0215b981a81711b1e
394
package com.dragontalker; public class BinaryTest { public static void main(String[] args) { int num1 = 0b110; int num2 = 110; int num3 = 0127; int num4 = 0x110A; System.out.println("num1 = " + num1); System.out.println("num2 = " + num2); System.out.println...
23.176471
45
0.545685
88692eb7382cb34d8c42c2ded428bde10d290371
2,008
package br.com.centralit.citcorpore.bean; import br.com.citframework.dto.IDto; public class AcordoNivelServicoContratoDTO implements IDto { private Integer idAcordoNivelServicoContrato; private Integer idContrato; private String descricaoAcordo; private String detalhamentoAcordo; private Double valorLimite; pri...
23.08046
60
0.773904
9c04ffb46930b26c6e91bf346233c657fdd59a08
2,268
/******************************************************************************* * Copyright (c) 2020-2021 Matt Tropiano & Xaser Acheron * This program and the accompanying materials are made available under * the terms of the MIT License, which accompanies this distribution. **************************************...
26.372093
144
0.64903
e361782b62fc6e3f9fba5502f0eae4280b4af3bb
27,849
/* * 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 ...
45.504902
153
0.520055
33344ca7ef322ff06ce21e01c43e68b24e6eecef
384
package Screens.Login; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class LoginTest { Login login; @Before public void start(){ login = new Login(); } @Test public void loginUser() throws Exception { try{ login.loginUser...
16
46
0.59375
e1e32544090d85fe9d42e0ea579e7d504368f558
647
package com.team6378.thanu.frcmanager; import java.util.ArrayList; public class Tournament { private ArrayList<Team> teams; private String name; private ArrayList<RobotImage> robotImages; public Tournament(String name){ teams = new ArrayList<>(); robotImages = new ArrayList<>(); ...
18.485714
51
0.632148
e77799ad7ba94deb70a6aea0446e52fb680d01e9
2,971
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
45.707692
81
0.734769
a968d6171dbf0941ec21e1c4b6666c76b641bb03
180
package com.billybyte.dse.outputs; public class InTheMoneyAmtDerSen extends AbstractSensitivityType{ @Override public String getString() { return "IN_THE_MONEY_AMOUNT"; } }
18
65
0.794444
558bd2cea9af0cf24002801ec3989d0a2d8bb256
2,373
/* * 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 ...
30.818182
110
0.69153
4234896fb887f75ef07a7d05dc8b14c1b214d11a
575
package com.lebogang.zapperdisplay.database; import androidx.room.ColumnInfo; import androidx.room.Entity; import androidx.room.PrimaryKey; @Entity(tableName = "entries") public class DataEntry { @PrimaryKey(autoGenerate = true) private int id; @ColumnInfo(name = "name") private String name; /...
18.548387
51
0.648696
a80873c4584a05e5bbcc0db874b40ef4e7616121
1,782
package AlphaBeta; import Game.Move; import Game.State; public abstract class AlphaBetaEngine { public static final boolean DEBUG = true; public abstract float positionEvaluation(State state); public abstract Move[] possibleMoves(State state); public abstract boolean reachedMaxDepth(State state, Int...
28.741935
98
0.554433
1397ddc78e8be24076bc9bb7f9679bc7b77d9cce
6,562
/* * Copyright 2013 LinkedIn, 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...
38.828402
100
0.617342
cac0b615ed31d616cfae6d2b465bf53a15ecf059
420
package lark.util.cache; import lark.core.lang.ProcessHandle; /** * @author andy */ public interface LockService { /** * 分布式锁实现 * @param lockKey 锁名称 * @param waitLockSeconds 等待锁时间 * @param autoUnlockSeconds 自动释放锁时间 * @param handle 业务处理 * @param <T> 返回值 * @return */ <T...
21
103
0.647619
e58a9657499390fa74434d4638e047cdf67e7b79
15,258
package europeana.rnd.dataprocessing.dates; import java.io.File; import java.io.IOException; import java.io.Writer; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.HashMap; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.io.ou...
40.906166
111
0.728667
bcf2d54f06df2a7eafdbf9817937667dc13ba01c
477
package seedu.address.model.person.predicates; import java.util.function.Predicate; import seedu.address.model.person.Person; public class PersonIsPaidPredicate implements Predicate<Person> { @Override public boolean test(Person person) { return !person.isPaid(); } @Override public bool...
23.85
65
0.69392
a5618703601100d9deb89646c4987eafccd22cd9
1,287
package com.awesome.medifofo; import android.util.Log; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; /** * Created by Eunsik on 2017-06-19. */ class DownloadURL { public String r...
25.74
99
0.602176
33c5885e49c17b7b256e03f351277bdaf8a95021
1,040
package com.bj58.argo.utils; import com.bj58.argo.ArgoException; import sun.net.util.IPAddressUtil; import java.net.InetAddress; import java.net.UnknownHostException; public class NetUtils { private NetUtils() {} /** * 将ip地址由文本转换为byte数组 * @param ipText * @return */ ...
24.186047
85
0.6
bb08444e390d08bf22799daa27350ac648e81086
2,049
/* * 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 not use...
25.936709
120
0.70815
4ed1d4823df691203d8dc5f5a9abaa6ecf1c943a
982
package graphics; public class Framelimiter { public static long Before_time = System.currentTimeMillis(); public static int Limit_FPS = 1000; private static final int WaitTime = 1000 / Limit_FPS; public static void setLimit_FPS(int FPS) { Limit_FPS = FPS; } public static void setFPS_...
25.179487
73
0.621181
161d5f843c96d4aee816f470d5fdccb31ba2f09f
90
package com.project.EStore.service.domain.order; public interface OrderDetailService { }
18
48
0.822222
c4b1057cf720915f86273c08a0e20a4ccc4b5828
1,698
package one.digitalinnovation.citiesapididi.controller; import lombok.AllArgsConstructor; import one.digitalinnovation.citiesapididi.entity.State; import one.digitalinnovation.citiesapididi.exception.StateNotFoundException; import one.digitalinnovation.citiesapididi.repository.StateRepository; import org.slf4j.Logger;...
37.733333
96
0.78563
8cc04dbed28a2581bb25cf7c9bc5913c65eddad4
6,427
/* * Copyright 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 required by applica...
32.459596
115
0.643379
208fc9ef93891cee9efdd61a07dc8bf74e4ba7c4
309
package dk.statsbiblioteket.doms.transformers.fileobjectcreator; public class FileIgnoredException extends Throwable { private String filename; public FileIgnoredException(String filename) { this.filename = filename; } public String getFilename() { return filename; } }
22.071429
64
0.721683
2c75176e44e96b092a80f4828a51205baafb715d
3,413
/* * Copyright 2015-2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
29.678261
101
0.744799
7652274f3d07ab071f387d1700370921a5c32a20
1,745
package org.sv.flexobject.hadoop.mapreduce.input.split; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapreduce.InputSplit; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.sv.flexobject.hadoop.streaming.parquet.streamable.Parq...
32.314815
110
0.681375
4695f4d2966dae48c9ff993fde24ff31e14ede64
65,927
/* * Copyright 2006-2009 The Kuali Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/ecl2.php * * Unless required by ap...
55.775804
346
0.681056
1c070c3202cae5756ac6830a3d8dc27f24b144b4
2,516
/* * Copyright 2014 Capptain * * Licensed under the CAPPTAIN SDK LICENSE (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://app.capptain.com/#tos * * This file is supplied "as-is." You bear the risk of using ...
30.313253
111
0.713434
91ba578f12a14948b88799e4048dfe581cd82f65
14,947
package org.hadatac.console.controllers.triplestore; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import java.util.Comparator; import java.util.LinkedList; import java.util.List; import java.util.Map; import javax.inject.Inject; import org.apac...
37.555276
99
0.643407
4eff7d67fafff5049bc6187ed89224f3cc0538bc
25,728
/* *AVISO LEGAL © Copyright *Este programa esta protegido por la ley de derechos de autor. *La reproduccion o distribucion ilicita de este programa o de cualquiera de *sus partes esta penado por la ley con severas sanciones civiles y penales, *y seran objeto de todas las sanciones legales que correspondan. *Su...
26.199593
325
0.726368
2d8bea5cec582c1f7652941e9d6513e33b8a836b
294
package sft.bar.sandbox; public class Point { public double x, y; public Point (double x, double y) { this.x = x; this.y = y; } public double distance (Point p1) { return Math.round(Math.hypot(p1.x - this.x, p1.y - this.y)); } }
17.294118
69
0.52381
06bf631c451f6b99b76b93ff9b01a11546004490
2,781
/* * Copyright DataStax, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
39.169014
100
0.764114
084dcfa52f2fc12ce7e5b38c478ef1de7e64e01f
1,756
package it.smartcommunitylab.cartella.asl.model.ext.infotn; public class TeachingUnitInfoTn { private String extId; private String origin; private String address; private String mgIndirizzoDidattico; private String ordineScuola; private String tipoOrari; private String tipoScuola; private String name; privat...
18.291667
67
0.744875
32eb1737b0de39cc21c677300490d2e3c543705a
1,197
package com.songlea.springboot.demo.servlet; import com.alibaba.druid.support.http.StatViewServlet; import javax.servlet.annotation.WebInitParam; import javax.servlet.annotation.WebServlet; /** * Druid数据库连接池监控界面Servlet * * @author Song Lea */ @WebServlet(urlPatterns = "/druid/*", initParams = { // @WebIn...
35.205882
97
0.686717
ff9c24f16bd5432141bf474b9b6aa0fd7fb6f3a0
4,413
/* * Copyright (c) 2014 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
35.02381
100
0.70179
24b3305355cc984727f7cf2fe43780eac645fa1d
417
package com.yuanxiang.gulimall.order.dao; import com.yuanxiang.gulimall.order.entity.OrderOperateHistoryEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 订单操作历史记录 * * @author yuanxiang * @email 1045703639@qq.com * @date 2021-03-16 16:42:55 */ @Ma...
23.166667
87
0.788969
98035cbd3bfc2d334cef8607806da4ecaa6a0c53
5,110
package com.databasir.dao.impl; import com.databasir.dao.tables.pojos.Project; import com.databasir.dao.value.GroupProjectCountPojo; import lombok.Getter; import org.jooq.Condition; import org.jooq.DSLContext; import org.jooq.impl.DSL; import org.springframework.beans.factory.annotation.Autowired; import org.springfra...
39.007634
108
0.635421
720e8b49bb2ebf0c10e997ea91fc2cd506c2e4fe
1,087
package com.jstorm.example.unittests.trident; import backtype.storm.tuple.Fields; import java.util.ArrayList; import java.util.List; /** * Created by binyang.dby on 2016/7/9. * * This is a finite version of the FixedBatchSpout class. * Using the BasicLimitBatchSpout, pick at most maxBatchSize content in the outp...
28.605263
103
0.684453
022149744c08b2a6ab892a90ca174ce286c8ff0d
2,735
/* * DBeaver - Universal Database Manager * Copyright (C) 2013-2015 Denis Forveille (titou10.titou10@gmail.com) * Copyright (C) 2010-2019 Serge Rider (serge@jkiss.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
27.908163
107
0.663254
a87c4579ac3f4e899553940c5546a0a6d77811ee
1,081
package org.springframework.credhub.support; /** * The acceptable values for the {@code mode} parameter on a set or generate request, * indicating the action CredHub should take when the credential being set or generated * already exists. * * @author Scott Frederick */ public enum WriteMode { /** * Indicates ...
20.788462
87
0.695652
e4d2c539cd9686cb797e5fc603e388c5931899f4
4,972
package org.vogu35.ocr.ui.main; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.os.Environment; import android.os.Handler; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import androidx.a...
38.84375
153
0.642599
9ee8ce8d335bb9ca6e4f0ed27697266ae7752aa7
4,076
/* * 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 ...
30.878788
120
0.733808
1a2e0754a71a18c9664c953414122ea2ad93112a
12,564
/* Derby - Class com.pivotal.gemfirexd.internal.iapi.sql.dictionary.ViewDescriptor 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 license...
28.882759
101
0.71283
0913639360f0aa086ce49299fca94319bbfcdb8a
913
package io.github.imsejin.jsonrpc4j.server.config; import com.googlecode.jsonrpc4j.spring.AutoJsonRpcServiceImplExporter; import com.googlecode.jsonrpc4j.spring.JsonServiceExporter; import io.github.imsejin.jsonrpc4j.server.service.UserService; import org.springframework.context.annotation.Bean; import org.springframe...
30.433333
70
0.782037
5c67e2ebf0fff240d25215d331b49b89a88ca383
2,560
package com.google.developer.bugmaster; import android.content.Intent; import android.database.Cursor; import android.support.test.espresso.core.deps.guava.base.Objects; import android.support.test.espresso.matcher.BoundedMatcher; import android.support.test.rule.ActivityTestRule; import android.support.test.runner.An...
39.384615
116
0.739453
ddc5d235026848865393201d1b5c52157a124ead
5,680
/* * Copyright 2019 GridGain Systems, Inc. and Contributors. * * Licensed under the GridGain Community Edition License (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.gridgain.com/products/software/community-edition...
30.702703
110
0.673592
edd209136adddade20374d8957fc64250144f2c0
929
package com.tjpeisde.onlineordersystem.service; import com.tjpeisde.onlineordersystem.dao.MenuInfoDao; import com.tjpeisde.onlineordersystem.entity.Catalog; import com.tjpeisde.onlineordersystem.entity.MenuItem; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype....
33.178571
63
0.737352
bb922c1f3e72352948b615f9f9a1e0c919c1778f
3,661
import java.util.HashSet; import java.util.Set; public class Problem75 { /** * Inner class to define pythagoran triplets as an object * The APIs of this class includes: * 1. length() : length of right-angled triangle by sum of all three sides * 2. toString() : string representation of the trip...
33.281818
116
0.516252
2b215965160c457322e71ab5abe22d162ee48a9c
9,884
/* * Last change: $Date: 2004/05/20 23:41:59 $ * $Revision: 1.9 $ * * Copyright (c) 2004, The Black Sheep, Department of Computer Science, The University of Auckland * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the followi...
50.428571
757
0.759207
3b4a1a9cce2ad3ce34f07df7f1d86a6180abb6ff
7,443
/******************************************************************************* * Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 ...
44.568862
120
0.680236
5fa090d5d80d9525aafa32e68d98b5566f8c41cf
344
package org.darbots.corebotlib.debugging.interfaces.graphics.canvas_packet; import org.darbots.corebotlib.debugging.interfaces.graphics.DrawableCanvas; import java.io.Serializable; public interface CanvasPacketSegment extends Serializable { public static final long serialVersionUID = 0L; void drawOnCanvas(Dr...
31.272727
75
0.831395
f6702ae67d3320db66820a17c96845c4063bddfe
4,087
package com.github.aiosign; import com.github.aiosign.module.request.*; import com.github.aiosign.module.response.*; import lombok.extern.slf4j.Slf4j; import org.junit.Test; /** * @author yangyouwang * @description 印章Test * @since 2020/5/13 */ @Slf4j public class SealTest extends AbstractSignTest { /** ...
32.181102
84
0.630536
33f8c76cb4fd15e75df22f34e135f9974c4dab67
5,605
package de.tub.dima.scotty.slicing.aggregationstore.test; import de.tub.dima.scotty.core.windowFunction.ReduceAggregateFunction; import de.tub.dima.scotty.core.windowType.ForwardContextAware; import de.tub.dima.scotty.core.windowType.SessionWindow; import de.tub.dima.scotty.core.windowType.WindowMeasure; import de.tub...
39.471831
133
0.717395
dd9415016d2c311f9d30e4a765019d85cde6d33e
3,587
/* * * * Copyright 2017 Symphony Communication Services, LLC. * * Licensed to The Symphony Software Foundation (SSF) 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...
50.521127
116
0.735991
f83b61396cf70844f562d00402901d19b46b89f7
1,279
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package uit.tkorg.utility.evaluation; import java.util.List; /** * This class content methods for computing metric related to ReciprocalRank. * Caller needs to get mean of reciprocal rank later. * Ref: ...
29.068182
110
0.594214
6d7bb256be72205b4668513598ec7676762babfb
2,351
/** * 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...
30.141026
109
0.643981
16261de31b3ce49790aa16a3becfc7949dbc4841
4,178
package org.deeplearning4j.models.classifiers.dbn; import org.apache.commons.math3.random.MersenneTwister; import org.apache.commons.math3.random.RandomGenerator; import org.deeplearning4j.datasets.fetchers.MnistDataFetcher; import org.deeplearning4j.datasets.iterator.DataSetIterator; import org.deeplearning4j.dataset...
35.40678
147
0.668023
91b8f1ad102e222262e2e3885f07f7ade386b87b
629
package dev.alexengrig.myjdi.event; import com.sun.jdi.Field; import com.sun.jdi.ObjectReference; import com.sun.jdi.Value; import com.sun.jdi.event.WatchpointEvent; public abstract class YouthWatchpointEventDelegate<E extends WatchpointEvent> extends YouthLocatableEventDelegate<E> implements Watchpoi...
23.296296
77
0.694754
dcb393b088618be7b96a49022e8f323d2ae34502
6,575
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.core.rollup.job; import org.elasticsearch.act...
33.375635
133
0.653384
7a39f5204964e61d11052b6b23642784b5eb9f95
506
package br.com.starcode.parccser.model; public class TypeSelector extends SimpleSelector { private String type; private boolean isUniversal; public TypeSelector( String type, Context context) { super(context); this.type = type; this.isU...
20.24
51
0.55336
2230459df85f545056d62fcdbc5f7e330a155eb0
264
package com.learning.patterns.po; import lombok.Data; import java.util.Date; /** * @author wangzhen * @date 2020/9/21 */ @Data public class User { private String name; private Integer age; private Date birthday; private String timezone; }
12.571429
33
0.681818
41824dd27ab5a552721dbb04bf95f1e2f677c4b0
10,469
package com.logginghub.logging.simulator; import java.text.NumberFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.List; import java.util.Random; import java.util.TimeZone; import com.logginghub.logging.DefaultLogEvent; import com.logginghub...
31.820669
172
0.566339
acb492d83cf6bde0a93aa98f1a07f27870329669
510
/* * Copyright 2018, EnMasse authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.enmasse.systemtest.resources; public class ResourceParameter { private String name; private String value; public ResourceParameter(String name, String...
21.25
101
0.647059
371394ddc54e95683de9b6aadde242284326a16c
3,455
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * 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 ...
23.827586
810
0.787844
9258fa5b0f05b4c0502e59e8b5e19ab937b6a4f2
925
package app.ccb.domain.dtos.card; import javax.xml.bind.annotation.*; @XmlRootElement(name = "card") @XmlAccessorType(XmlAccessType.FIELD) public class CardImportDto { @XmlAttribute(name = "account-number") private String accountNumber; @XmlElement(name = "card-number") private String cardNumber; ...
21.022727
56
0.663784
fe3979d2f163b4c2987d66a156f5c67c18c5c107
4,042
package br.com.engebras.exceptions; import java.io.PrintWriter; import java.io.StringWriter; import java.util.Iterator; import java.util.Map; import javax.faces.FacesException; import javax.faces.application.FacesMessage; import javax.faces.application.NavigationHandler; import javax.faces.context.ExceptionHa...
40.828283
112
0.662296
ecff8f70dfcc174fcec22dd9026bc15f97406551
1,434
package algo.lc; import org.junit.Test; /** * @Author: sunhaijian * @Date: 2020/6/13 * @Description: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? Note: Given n will be a positive integer. Exa...
16.482759
96
0.526499
79bb2fb848f95c3e7482d7ae8687a4b809cc634e
546
/* * IntPTI: integer error fixing by proper-type inference * Copyright (c) 2017. * * Open-source component: * * CPAchecker * Copyright (C) 2007-2014 Dirk Beyer * * Guava: Google Core Libraries for Java * Copyright (C) 2010-2006 Google * * */ package org.sosy_lab.cpachecker.cpa.shape.constraint; import o...
20.222222
71
0.728938
50e9649ae3009c852d6b19383691e9fbf7e7b441
473
package org.odlabs.wiquery.ui.position; /** * Enumeration of position values * * @author Julien Roche * @since 1.1 * */ public enum PositionRelation { BOTTOM, CENTER, LEFT, RIGHT, TOP; /** * Method searching the Position value * * @param value * @return */ public static PositionRelation getP...
13.911765
57
0.672304
d1dee8170fdc0c58ceb4dd21869d6176bbe5b139
235
package ham.dayOne; /** * Eine sterbliche Lebensform ist eine Lebensform (erweitert also <code>LifeForm</code>), die sterben kann. */ public interface MortalLifeForm extends Lifeform { /** * stirb */ void die(); }
19.583333
107
0.66383
01d93bf5ba4637bce116c4bf646fdac7a8bd389f
2,011
/******************************************************************************* * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with th...
42.787234
130
0.702636
863f542cba360949616d0f4ceb028ecad384755c
1,121
package brnln.utl.sttMchn; import java.lang.reflect.Method; import java.util.Arrays; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; public class MyTestUtils { public static Method getMethod(Class clz, String reqMthdName, Class... reqParams) { for (Metho...
31.138889
112
0.586976
a36ea478e94a373f465b441f302f8eceeed1e7b5
417
package com.hughes.service; import com.hughes.protobuf.message.SendRequest; import com.hughes.protobuf.message.SendResponse; import com.hughes.service.impl.MessageSendServiceImpl; /** * @author HughesLou * Created on 2022-03-09 */ public interface MessageSendService { SendResponse send(SendRequest request); ...
21.947368
54
0.760192
c54576fedf99135cc1bc1a2e72e0f400e2034399
3,159
import java.util.*; public class minDisNodesTree { static ArrayList<Integer>[] neigh; public static void main(String[] args) { Node root = new Node(1); root.left = new Node(2); root.right = new Node(3); root.left.left = new Node(4); root.left.right = new Node(5); ...
25.475806
64
0.457423
529c1ab035c5fb9d1af05097faa555959a00f77c
268
package com.sparta.mjn.manager; import com.sparta.mjn.search.BinarySearchTree; /** * Hello world! * */ public class Start { public static void main( String[] args ) { BinarySearchTree binarySearchTree = new BinarySearchTree(30); } }
14.888889
69
0.652985
2d8750df70eed58037d4d436a6be4bd6fa4e292c
252
package com.yupaits.web.prop.model; import lombok.Data; /** * @author yupaits * @date 2018/10/17 */ @Data public class GroupApiInfo { private String name = "default"; private String title = "接口"; private String description = "接口文档"; }
16.8
40
0.670635
49c5628c07c5fda0b0d7a9675cabdd777de834b0
302
package MoonHalo.Uranium.Others; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) public @interface ModuleInfo { String ModName() default " "; ModuleType type() default ModuleType.Hidden; String info() default " "; }
25.166667
48
0.761589
57485f4b4ec11dbf1130424cc99def203237160f
1,406
/* * Copyright (c) 2014. Knowledge Media Institute - The Open University * * 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...
26.037037
76
0.683499
2db2ab5b52e4c27b855b0d8e39b2799bd2ae97b3
359
package com.github.athingx.athing.aliyun.thing.tsl.specs; import com.github.athingx.athing.aliyun.thing.tsl.schema.TslDataType; import java.util.LinkedHashMap; public class EnumSpecs extends LinkedHashMap<Integer, String> implements TslSpecs { @Override public TslDataType.Type getType() { re...
27.615385
84
0.740947
acf42469c8a4cf1c9103d9625094466bbbd5e835
665
package com.commercetools.payment.handler; import org.springframework.beans.propertyeditors.StringTrimmerEditor; import org.springframework.web.bind.WebDataBinder; import org.springframework.web.bind.annotation.InitBinder; import javax.annotation.Nonnull; public class BaseCommercetoolsController { protected fina...
31.666667
90
0.809023
f8058d47b08bfeab7c026339645853d19c79b4e1
6,618
package edu.telecomstet.cep.engine.optimised; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; import java.util.concurrent.CountDo...
25.453846
109
0.741463
bb9fc67c0f98c091ba15c534f4f2c45651b0bdea
5,959
package mirrormirror.swen302.mirrormirrorandroid.activities; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; import com.jjoe64.graphview.GraphV...
34.051429
115
0.656486
b3e7fce867c1553f7d97cfc04e9053da5b06aa66
339
package engineer.echo.oneactivity.core; import engineer.echo.oneactivity.animator.PageAnimator; public interface PagerController { void allowSwipeBack(boolean allowSwipeBack); boolean allowSwipeBack(); void setPageAnimator(PageAnimator pageAnimator); PageAnimator getPageAnimator(); boolean ha...
19.941176
55
0.781711
4c684c6417fd98cbc85e7e4e2b95404a24b1d2db
2,861
package ru.ydn.wicket.wicketorientdb.filter; import java.util.Arrays; import java.util.List; interface ITesterFilterConstants { public static final String TEST_CLASS_NAME = "FilterTestOClass"; public static final String LINK_TEST_CLASS_NAME = "LinkFilterOClass"; public static final String PARENT_CLA...
52.018182
114
0.704299
df19a7a888a060f4ef18537d2f0a603687a5d007
583
package com.jordanluyke.reversi.match; import com.jordanluyke.reversi.match.model.Match; import com.jordanluyke.reversi.match.model.Position; import io.reactivex.rxjava3.core.Single; /** * @author Jordan Luyke <jordanluyke@gmail.com> */ public interface MatchManager { Single<Match> createMatch(String playerId1...
26.5
82
0.761578
f39da60331be0536ea4eb7f0409daab3cdd48283
665
package jhetzel.vagar.exception; public class MissingGeneratedBinderClassException extends RuntimeException { private final String mMessage; public MissingGeneratedBinderClassException(Exception e){ super(e); mMessage = new StringBuilder() .append("Unable to Instantiate the ge...
30.227273
92
0.633083
99faea13b5422d0fc4c8b711a5dc635a7540a3a5
367
package cn.lingxiao.org.mapper; import cn.lingxiao.basic.mapper.BaseMapper; import cn.lingxiao.org.domain.Department; import cn.lingxiao.org.query.DepartmentQuery; import org.springframework.stereotype.Component; import java.util.List; @Component public interface DepartmentMapper extends BaseMapper<Department> { ...
21.588235
66
0.792916
68f7ad787352c0ecc690b67775dc13ff1d0ab4f6
2,272
package com.darren.AlgorithmAndDataStructures.DataStructures; import org.junit.Test; /** * Project: light * Time : 2020-10-18 18:26 * Desc : * */ public class DoubleLinkedList { DoubleListNode head = new DoubleListNode(0); public void add(DoubleListNode node) { DoubleListNode current = head...
22.949495
67
0.511884
717591e2e94e7fb519506e4ed73be33615b34b33
2,585
package com.gildedrose.services.strategies.impl; import com.gildedrose.enums.ItemName; import com.gildedrose.exceptions.MaxQualityException; import com.gildedrose.exceptions.MinQualityException; import com.gildedrose.models.Item; import lombok.SneakyThrows; import org.junit.jupiter.api.Test; import static org.junit.j...
37.463768
110
0.71528
6b7fe0d8d0bb400d5d6a77159d59239b8baefc10
1,517
package com.jayway.rps.app; import org.glassfish.jersey.server.ResourceConfig; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import c...
41
89
0.790376
60aba63c2b5c1ef24591023ef1557cb998b141d6
422
package Excecao.personalizadaB; import Excecao.Aluno; public class testeValidacao { public static void main(String[] args){ try { Aluno aluno = new Aluno("Ana", 7); Validar.aluno(aluno); } catch (StringVazia e) { System.out.println(e.getMessage()); } catch (NumeroForaIntervalo | IllegalArgum...
16.88
62
0.668246
cf0d1cb7317ecbfcf93cce2e5844757105528b55
6,154
package InitConn; import com.DRBot.Commands.myCommands; import com.DRBot.OS.OsProp; import com.DRBot.SecureLine.SecureLine; import java.net.Socket; import java.net.Inet4Address; import java.io.BufferedReader; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.InputStreamReader; import java.i...
33.445652
117
0.514625
c250d3f02808f4719f028a75e334732681f8e9f0
750
package com.JNet.http; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; public class HttpSession { private String sessionId; private Map<String, Object> attributes; public void setAttribute(String name, Object value) { attributes.put(name, value); } public String get...
22.727273
69
0.673333