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
fc28c6f939be6b18cc9300619ee9232de60f79f1
3,343
/* * Copyright (C) 2021 iofairy, <https://github.com/io-fairy/functional> * * 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...
42.316456
136
0.652109
ff4fd9688e8c6fd46f0ec1714353d9bbf57d81f2
1,689
package leetcode.contests.contest_141; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class ShortestCommonSuperSequence { ShortestCommonSuperSequence shortestCommonSuperSequence; @BeforeEach public void init() { shortestCommonSuperSequence = new ShortestCommonS...
31.867925
133
0.494375
34b7e641e12ece3a82673ab78a949b6c5a4dc4f7
1,102
package uk.gov.ida.matchingserviceadapter.validators; import stubidp.saml.utils.core.validation.SamlResponseValidationException; import javax.inject.Inject; import java.time.Instant; public class AssertionTimeRestrictionValidator { private final DateTimeComparator dateTimeComparator; @Inject public Ass...
32.411765
85
0.68784
d0328e0e272dc20b178c296825d1eee47f909c62
1,210
package snownee.cuisine.internal; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; import javax.annotation.Nullable; /** * A simple wrapper of a String to object map, functioning as a namespace-based * registry. It runs on a "first come, first serve" basis - t...
24.2
84
0.677686
4e2f5542aa3077241a5b9cd1925334c965fe2f61
462
package strategies; import java.util.Arrays; import java.util.LinkedList; /** * CH21 STRATEGY SecurityDuringProcessingContent * * @author Thomas Brüggemann * */ public class CH21_Strategy extends ExistanceStrategy { @Override public StrategyResult execute() { // Check if there is crypting or ciphering wit...
20.086957
89
0.742424
a59ad81d00bb738bcc67146382bf6592dc6143bf
4,479
package com.ibm.ram.guards.it; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.ibm.ram.guards.helper.JWEHelper; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autow...
44.79
159
0.613753
c93b46f8c3a5fba4f19fc5082ba443581e188a67
719
/* package ru.studentProject.controller.vk; import javax.transaction.TransactionManager; import javax.transaction.UserTransaction; import org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform; import com.atomikos.icatch.jta.UserTransactionManager; public class AtomikosJtaPlatform extends Abstract...
24.793103
82
0.756606
397d0a881dac4f488bd5884a4736889968b65ebe
11,271
package wx.api; import net.sf.json.JSONObject; import wx.util.ThreadPoolManager; import wx.util.WXHttpUtil; import wx.util.WXHttpUtil.HttpResponse; /** * ClassName: WXApi * <p> * Description: 全局常量、变量类 * <p> * Copyright: Copyright (c) 2018 * <p> * GitHub:<a href="https://github.com/Mr-Jiang">https://github.com/...
30.136364
193
0.607222
6c6b5f5f991534eb62aeb769687c93996ddd95d3
2,202
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. The ASF * licenses this file to you under the Apache License, Version 2.0 (the * "License"); you may n...
32.865672
80
0.675295
b3ab3c31524d96ec742b355709790804c9138332
1,639
package com.example.cabez.hisrecyclerview; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView.ViewHolder; import com.example.cabez.R...
32.137255
144
0.71507
0234bfba48936f08d3d13cf464027130fa47c49c
2,869
package common.zeroquest.entity.projectile; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.monster.EntityBlaze; import net.minecraft.entity.projectile.EntityThrowable; import net.minecraft.init.Blocks; import net.minecraft.util.DamageSource; import net.minecraft.util.MovingObjectPosit...
27.586538
133
0.54932
eb36b0ccde37133aa59d1829e314d2a56c90bb99
2,201
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
33.348485
115
0.712403
5b40cb2525b10c9fb331903ab80c81784cf18c11
6,408
/* * 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.226415
103
0.575375
62bce4007420b298f8e93b9b662f698c377c708e
709
package a01.nio; import java.io.FileOutputStream; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; public class NIOFileChannel01 { public static void main(String[] args) throws Exception { String str= "hello,yzl"; FileOutputStream fileOutputStream = new FileOutputStream("d:\\fil...
27.269231
78
0.746121
096d630ef9a758e664e70410db4f6257b63b6f7b
571
package com.kristurek.polskatv.ui.arch; import android.util.Log; import com.kristurek.polskatv.util.Tag; import io.reactivex.Single; public abstract class SingleParamAbstractInteractor<R, P> { public Single<R> execute(P param) { return Single.create(emitter -> { try { emitte...
23.791667
59
0.600701
a95bb2b49e0bb4d7f3868b18ebbc0e35ccdef060
2,606
/* * 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 com.grid.ventas.cr.crjpaventassrc; import java.io.Serializable; import javax.persistence.Basic; import javax.persistence.Column;...
25.54902
109
0.599002
8128dfdca773b101b1d5e1ecb096e3db74853fb2
2,621
package it.matlice.malichess.movements; import it.matlice.malichess.ChessboardTest; import it.matlice.matlichess.exceptions.InvalidMoveException; import it.matlice.matlichess.PieceColor; import it.matlice.matlichess.Location; import it.matlice.matlichess.model.pieces.Bishop; import it.matlice.matlichess.model.pieces.K...
31.202381
83
0.591759
8bb415c42c78823d978746c8f38ce82518e255f1
163
package org.codewrite.teceme.model.rest; import org.codewrite.teceme.model.room.StoreProductEntity; public class StoreProductJson extends StoreProductEntity { }
23.285714
58
0.840491
338a0dce88bb99307d07d82e1be7ba84d5afabe9
955
package uk.ac.cam.cruk.mnlab; import ij.ImagePlus; import java.text.SimpleDateFormat; import java.util.Date; import java.time.Duration; public class GetDateAndTime { public static long getCurrentTimeInMs() { return System.currentTimeMillis(); } public static long getCurrentTimeInSecond () { r...
24.487179
75
0.692147
518cedcd85b977c9a70e11f7df3966126e807f13
448
package ru.hutoroff.jagpb.bot.commands; public class Help { public static final String COMMAND_HELP_COMMAND = "/commandhelp COMMAND"; public static final String CREATE_POLL_COMMAND = "/create -t \"Poll Title\" -o {\"option1\",\"option2\",...,\"optionN\" [-r]}"; public static final String HELP = "/help"; public st...
37.333333
128
0.707589
f01ea39c5b99c47fff096a9e065d5abff5c3e4d7
3,298
package Practicas.Java.Practica3.WEB; import java.awt.*; import java.awt.event.*; import java.io.IOException; import java.net.URISyntaxException; import java.util.Arrays; import Practicas.Java.Practica3.Directorio.Directorios; import Practicas.Java.Practica3.IP.DireccionIP; import Practicas.Java.Practica3.Tiempo.Tiem...
32.653465
107
0.629776
8f73feee557d0d3e94649b1e5263642827ea4290
13,163
package io.github.pcscs; import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.Bundle; import android.p...
41.393082
168
0.54243
e3be83ba83a8520d407fd765db6a6ea90a9afd74
4,932
package com.dhl.serv.service.dto; import com.dhl.serv.config.Constants; import com.dhl.serv.domain.*; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import org.hibernate.validator.constraints.Email; import javax.persistence.CascadeType; import javax.persistence.OneToMany; import javax.persistence.Tra...
23.598086
111
0.619221
66b3f99f423b1d81d3ba67e801500418b047a080
407
package com.example.Fooddeliverysystem.repository; import com.example.Fooddeliverysystem.model.MealType; import com.example.Fooddeliverysystem.model.MealtypePK; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface MealTypeRepo ext...
37
72
0.85258
cd8d04bc72574a8320343581f41623c269c1eb8d
752
package ch.interlis.models.IlisMeta16.ModelData; public class MetaBasketDef_Kind{ static private java.util.HashMap valuev=new java.util.HashMap(); private String value=null; private MetaBasketDef_Kind(String value) { this.value=value; valuev.put(value,this); } static public String toXmlCode(MetaBasket...
37.6
83
0.779255
81df68ffa6e58e66953fd2f26f94fa3a47989994
411
package org.jeecg.modules.protocolPerson.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import org.jeecg.modules.protocolPerson.entity.ProtocolPerson; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * @Description: 协议捐赠方 * @Author: jeecg-boot * @Date: 2021-12-10 * @Versi...
22.833333
74
0.776156
6f240095fa4dcd68d6a54fc532042e6fe91e07aa
346
public class Subset { public static void main(String[] args) { String s = StdIn.readLine(); String[] in = s.split(" "); int k = Integer.parseInt(args[0]); RandomizedQueue<String> rq = new RandomizedQueue<>(); for (String str : in) { rq.enqueue(str); } for (int i = 1; i <= k; i++) { System.out.print...
24.714286
55
0.601156
ce2eae340a374c8f416b0d0d8b87c1cdc2fd8734
10,229
import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InvalidClassException; import java.io.ObjectInputStream; import java.io.OptionalDataException; import java.io.StreamCorruptedException; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.ref...
28.33518
115
0.558412
bab454a1e5bc937ffeb406d52fb6f334be39dc9d
1,404
package com.trevorgowing.tasklist.user; import java.util.Objects; import lombok.RequiredArgsConstructor; import org.hamcrest.Description; import org.hamcrest.TypeSafeMatcher; @RequiredArgsConstructor public class UserMatcher extends TypeSafeMatcher<User> { private final User expected; public static UserMatcher ...
29.25
79
0.704416
76ab7766c807174bb6837d93c071c74f71d626e9
3,931
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package br.com.geomapa.controller.actions; import br.com.geomapa.util.SecurityUtils; import br.com.geomapa.geodesic.MainPolygonal; import br.com.geomapa.main.DataManagement; import br.com.geomapa.main.Main; import br.co...
40.112245
141
0.640295
40f27a5de4781d0026a2db00b5f0e9dad7705550
4,463
package mobile.computing.laurentiu.timetableapp.Helpers; import android.os.Bundle; import android.support.v4.app.Fragment; import android.text.Html; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import java.text.ParseException; import java...
39.149123
99
0.647098
5aca282a2a380bde6cdc0234d38471152ff8c21d
11,996
package gov.nist.drmf.interpreter.cas.translation; import gov.nist.drmf.interpreter.cas.common.ForwardTranslationProcessConfig; import gov.nist.drmf.interpreter.cas.logging.TranslatedExpression; import gov.nist.drmf.interpreter.common.constants.GlobalConstants; import gov.nist.drmf.interpreter.common.exceptions.Transl...
38.203822
136
0.64038
73d0eeea00b21938767f19b73a4be58aee89cd42
7,708
package Gdsc.web.controller.api; import Gdsc.web.dto.ApiResponse; import Gdsc.web.dto.requestDto.PostRequestDto; import Gdsc.web.dto.requestDto.PostResponseDto; import Gdsc.web.entity.Post; import Gdsc.web.service.PostService; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import lo...
47.580247
149
0.65698
765d4e85b46265b419445e505a7a43d1e943ede1
10,142
/* * Copyright 2021 the original author or authors. * <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 * <p> * https://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by...
44.482456
140
0.631335
411556bb0b7342c233e5eb2204859df085e92876
22,623
package com.xceptance.xlt.api.data; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.apache.commons.lang3.StringUtils; import com.xceptance.xlt.api.util.XltRandom; impor...
38.871134
142
0.632586
ba18b8b8b9ab08b80bfea361ff6c1543ec38a0aa
6,347
package com.alicloud.openservices.tablestore.model; import com.alicloud.openservices.tablestore.core.utils.Preconditions; import com.alicloud.openservices.tablestore.core.utils.OptionalValue; import com.alicloud.openservices.tablestore.core.utils.Jsonizable; /** * 表的配置选项,用于配置TTL、MaxVersions. * <p>TTL: TimeToLive的缩写...
28.719457
114
0.6173
c7b8ac25c21e39057de18292f2b468bc050e93b6
588
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chromecast.base; /** * Interface representing the actions to perform when exiting a state. * * The close() method is invoked when...
32.666667
99
0.748299
40e653169c0fd132ed14ef2de8eeef46927eb5df
1,419
/* * E: Ken@kenreid.co.uk * Written by Ken Reid */ package io; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.util.ArrayList; import java.util.List; import dataObjects.Window; /** * The Class Input. */ public class Input { /** * Checks if CSV file exists from prev...
21.5
77
0.653982
da4e695e09f593c52ed5772b34db4a6502b9866c
6,119
package example.com.lenovo.tripbook; import android.app.Activity; import android.app.LocalActivityManager; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import java.util.ArrayList; import android...
33.994444
95
0.565615
35410963a8934a0780fc442185404e910e0ad0fc
3,708
package ca.uwaterloo.cs.jgrok.fb; import java.util.HashSet; /** * Patition a binary relation into a collection * of subgraphs. * */ public class Partition { HashSet<Integer> hash; TupleList tuplist; public Partition() { hash = new HashSet<Integer>(1997, 0.75f); } public int c...
24.235294
73
0.432309
27c0df6a33837fa3347622220f71dbb42be9a668
923
package org.iag.utility.singleton.mock; import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.Nullable; import org.iag.utility.singleton.LooseSingleton; import org.mockito.ArgumentMatchers; import org.mockito.Mockito; public class MockSingleton { private MockSingleton(){ }; public static < ...
24.945946
73
0.685807
b6a4f5fa7c5759bbb5960692c21502975d864464
3,753
/* * Copyright 2020, Perfect Sense, 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 a...
28.007463
116
0.672529
a782ac1d8fe3a1fd0de56d60f28a17bd1c5bef1f
2,471
package com.oxygenxml.cmis.ui; import java.awt.event.ActionEvent; import java.util.Deque; import javax.swing.AbstractAction; import javax.swing.JButton; import javax.swing.JToolBar; import org.apache.log4j.Logger; import com.oxygenxml.cmis.core.model.IResource; public class BreadcrumbButtonAction extends AbstractA...
31.679487
115
0.707406
d80a60789472c614cc147fb34300cd297b42aa49
1,060
package org.jogamp.java3d.utils.geometry; import java.util.ArrayList; import org.jogamp.java3d.GeometryArray; import org.jogamp.java3d.GeometryService; import org.jogamp.vecmath.Point3f; /** * Default implementation of the {@link GeometryService} service interface. */ public class GeometryServiceImpl implements G...
27.179487
75
0.749057
d55933adcc69f1e95997b9e6bb0f530823c35ff4
1,717
package com.amala.demo.api; import com.amala.demo.Service.InstitutionRepository; import com.amala.demo.Service.InstitutionService; import com.amala.demo.domain.Institution; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.web.bind....
29.603448
90
0.73908
b8443d8fadad6b0a894440206bdd3fce538f7cb8
3,639
/** * * Copyright (c) 2014, Deem Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
41.352273
123
0.672987
159dc9471b60754f453735b5e4ddac1d279fe83e
1,053
package com.gousade.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import java.io.Serializable; import java.util....
22.891304
53
0.728395
6597703da93a975fda6aee8dda5d614ef8b3db66
8,425
package controllers.api; import java.util.Date; import java.util.List; import java.util.concurrent.ThreadLocalRandom; import javax.inject.Named; import play.Logger; import play.libs.Json; import play.mvc.Http.RequestBody; import play.mvc.Result; import play.mvc.Results; import play.mvc.Security; import com.fixit.mo...
29.665493
77
0.725223
44399b1c1c0e048b8848ecb465dd12f821ef335d
278
package ed1_project; public class Grafo { private List nodos; public Grafo(List nodos) { this.nodos = nodos; } public List getNodos() { return nodos; } public void setNodos(List nodos) { this.nodos = nodos; } }
13.238095
38
0.553957
ff73bc31f5f0e41177af7486b7e0c5920299fe04
4,288
package com.mapswithme.maps.settings; import android.content.ActivityNotFoundException; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.annotation.IdRes; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.view.L...
32.240602
119
0.71945
11c311ea3034cbfa09df1f607db903c4960245c8
530
package javax.media.control; import javax.media.Control; /** * Author:cl * Email:lhzheng@grandstream.cn * Date:20-9-29 */ public interface PacketQueueControl extends Control { int getCurrentDelayMs(); int getCurrentDelayPackets(); int getCurrentPacketCount(); int getCurrentSizePackets(); i...
16.060606
53
0.703774
4adaaaf22a1a1c5f70a6dbfaa1d8aa475f4f9de7
525
package designPattern.abstractFactory.factory; import designPattern.abstractFactory.model.EarPhone; import designPattern.abstractFactory.model.MiEarPhone; import designPattern.abstractFactory.model.MiMobile; import designPattern.abstractFactory.model.Mobile; /** * 小米手机工厂 */ public class MiMobileFactory implements M...
22.826087
63
0.75619
f76f9fc696cf6dfa9a985c212abec95cc06e6fae
481
package pers.wossge.mall.coupon.service; import com.baomidou.mybatisplus.extension.service.IService; import pers.wossge.mall.common.utils.PageUtils; import pers.wossge.mall.common.entity.sms.SmsSeckillSessionEntity; import java.util.Map; /** * 秒杀活动场次 * * @author wossge * @email wossge@hotmail.com * @date 2020-0...
22.904762
85
0.777547
ce941e84dc5cc841e270d39b06a8d75a74514818
1,771
package de.sswis.model.algorithms.ranking; import de.sswis.model.Agent; import de.sswis.model.algorithms.ranking.Score; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; import java.util.HashMap; public class ScoreTest { private Agent[] agents; private Score rankin...
33.415094
79
0.626765
6db5c0fa6e3e408aacad8c553e97d810fac09de3
1,339
/* * SPDX-License-Identifier: Apache-2.0 */ package org.example; import java.io.IOException; import org.apache.http.HttpEntity; import org.apache.http.HttpHeaders; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.CloseableH...
28.489362
75
0.683346
0309ee0394dd3c9bc48567373ee88e8e30fd8448
450
package com.barley.editor.ui; public class Point { private int _x; private int _y; private Point(int x, int y) { _x = x; _y = y; } public int getX() { return _x; } public int getY() { return _y; } public static Point create(int x, int y) { ...
16.071429
48
0.515556
bfbb4fecb5f945437c9fe60c72948e16ebdf20d5
1,445
package net.minecraft.util; import com.google.common.collect.BiMap; import com.google.common.collect.HashBiMap; import java.util.Iterator; import java.util.Map; import net.minecraft.util.IObjectIntIterable; import net.minecraft.util.ObjectIntIdentityMap; import net.minecraft.util.RegistrySimple; public class Registry...
27.788462
90
0.742561
ba62fa1e427d94ab920cb72ec6aab124479739ce
15,681
package org.hisp.dhis.android.app.views.dashboard.navigation; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.CollapsingToolbarLayout; import android.support.design.widget.FloatingActionButton; import android.support.design.widg...
39.007463
141
0.630763
5469540947e2b127631e51651e8b996d18159f26
494
package io.vertx.ext.web.validation.impl.parameter; import io.vertx.codegen.annotations.Nullable; import io.vertx.ext.web.validation.MalformedValueException; import java.util.List; import java.util.Map; /** * This class extracts from parameter map the parameter and converts it to a json representation */ public in...
29.058824
107
0.809717
e408f6be4f0cb09f3168869fb2dc858719dc510b
1,364
/* * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
34.1
100
0.755865
970dbf50a637e9a4422fa2e75d5dae038e81d556
1,843
// @formatter:off /** * * This file is part of streaming pool (http://www.streamingpool.org). * * Copyright (c) 2017-present, CERN. 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 ...
33.509091
140
0.735757
29756504c38269a7565567f1b441b93f31ae30be
8,115
/** * Copyright 2021 Tianmian Tech. 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 ...
43.164894
158
0.635736
4b00d45c8cf7cd188ae457a283bde7645786744e
7,134
package com.leokomarov.jamstreamer.ignored.playlist; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.util.Log; import android.view.MenuItem; import android.view.View; import android.widget.AdapterView; ...
42.213018
118
0.700589
3e88f2caad28ef92e0b9c89cf90e2e527042b58e
595
package com.dustinteel.hipchat.integration.model; public class Installable { private boolean allowGlobal; private boolean allowRoom; private String callbackUrl; public boolean isAllowGlobal() { return allowGlobal; } public void setAllowGlobal(boolean allowGlobal) { this.allowGlobal = allowGlobal; } public ...
22.884615
50
0.768067
b03fdb4ece833e3dea955269ee061ec5707b5bc0
194
package br.agr.terras.materialdroid.utils; import br.agr.terras.materialdroid.Dialog; /** * Created by leo on 13/04/16. */ public interface MDAdapter { void setDialog(Dialog dialog); }
16.166667
42
0.726804
8288c7e52437690ff1ba4405bd8d8d5f0a2be9e7
3,816
package com.actor.myandroidframework.dialog; import android.content.Context; import android.graphics.Color; import android.graphics.RectF; import android.graphics.drawable.ShapeDrawable; import android.graphics.drawable.shapes.RectShape; import android.graphics.drawable.shapes.RoundRectShape; import android.os.Bundle;...
32.067227
97
0.664308
32536046217fada773feea2e211190715c3ee405
765
package offer; /** * 给定单向链表的头指针和一个要删除的节点的值,定义一个函数删除该节点。 * * 返回删除后的链表的头节点。 * * 注意:此题对比原题有改动 * * 示例 1: * * 输入: head = [4,5,1,9], val = 5 * 输出: [4,1,9] * 解释: 给定你链表中值为 5 的第二个节点,那么在调用了你的函数之后,该链表应变为 4 -> 1 -> 9. * 示例 2: * * 输入: head = [4,5,1,9], val = 1 * 输出: [4,5,9] * 解释: 给定你链表中值为 1 的第三个节点,那么在调用了你的函数之后,该链表应...
20.131579
57
0.500654
21550c76e826141eca06f1f6aceb13bf20498cb5
149
package com.github.fridujo.rabbitmq.mock.exchange; public interface TypedMockExchangeCreator extends MockExchangeCreator { String getType(); }
21.285714
71
0.812081
40d4dd4ef63b364b58c9d21fdb986e5ac7ec982b
1,307
/* * Copyright © 2009 HotPads (admin@hotpads.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...
28.413043
96
0.778118
2f8e5a43ef23fbfe14f44cfa85bf3c9682ff70e0
941
package com.didichuxing.datachannel.agent.common.configs.v2.component; import com.didichuxing.datachannel.agent.common.constants.ComponentType; /** * @description: * @author: huangjw * @Date: 2019-07-15 17:00 */ public class ChannelConfig extends ComponentConfig { /** * 最大的缓存数量 */ private Integ...
20.021277
86
0.609989
86eeb935f509e8253adf788144d4a12d69615f17
9,147
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package android.support.v4.app; import android.os.Bundle; import android.support.v4.content.Loader; import android.support.v4.util.DebugUtils; i...
25.129121
191
0.453591
3b115f25a671d023639db39a8ffffc212149db54
441
package com.lisong.learn.core.initialization; /** * Combine exercise 3, exercise 4. */ public class Exercise4 { Exercise4 () { System.out.println("This is no-arg constructor!"); } Exercise4 (String msg) { System.out.println("Hi, " + msg); } public static void main(String[] args...
20.045455
65
0.609977
d0819734c2f66569df7562f0de446d70afe416a1
13,635
package org.flhy.ext; import java.util.Arrays; import java.util.HashMap; import java.util.Hashtable; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; import java.util.UUID; import org.flhy.ext.utils.JSONArray; import org.flhy.ext.utils.JSONObject; import org.pentaho.di.c...
34.002494
170
0.692336
e9c1bd679ddb17f3216da587ed83ecfd7f7fcd39
3,321
package apps.lightrays.raytracer.scene.geometry; import apps.lightrays.raytracer.scene.Colour; import apps.lightrays.raytracer.scene.OpticalProperties; import apps.lightrays.raytracer.scene.Point; import apps.lightrays.raytracer.scene.Ray; import apps.lightrays.raytracer.scene.RayHitInfo; import apps.lightrays.raytrac...
20.374233
81
0.649202
ea86d6ab98fd649413acc7648a8dab3f437d98c7
1,410
/* * Copyright 2014 Nassau 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 agreed ...
28.77551
87
0.715603
e4ccd602d7f74d7cc447125ceaa94bfb09e9d8c7
437
// "Fix all 'Extract common parts of 'if' statement' problems in file" "false" import java.util.Collection; import java.util.List; import java.util.Set; public class IfStatementWithIdenticalBranches { int work() { if (true) { System.out.println(); if<caret> (false) { System.out.println(); ...
21.85
78
0.615561
8d008f4e80a0efde9a2a1c9fb8f6b8d75718a9df
6,847
package com.umeng.socialize.net.utils; import com.xunlei.thundersniffer.sniff.sniffer.SnifferProtocol.SetKey; public class SocializeProtocolConstants { public static final String PROTOCOL_KEY_ACCESSTOKEN = "access_token"; public static final String PROTOCOL_KEY_ACCOUNT = "acs"; public static final String ...
57.058333
79
0.759895
b1f60b532a0fbc0c2bf1595710c50199ce0cc4ed
4,146
package com.roboo.like.google; import java.util.ArrayList; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.support.v4.view.PagerAdapter; import android.text.TextUtils; import android.view.MenuItem; import com.roboo.like.google.adapters.I...
27.64
101
0.774964
2668d9cb3572238b5fc54a9324660b7071559b96
294
package Task3; class Worker_by_month extends Labor_force { double salary; Worker_by_month(double salary, String name) { this.salary = salary; this.name = name; calc_payment(); } public void calc_payment() { this.month_payment = salary; } }
19.6
49
0.62585
92cb7b67b7e31658d854039b8cfd17d3bd7029e1
806
package com.kimzing.sentinel; import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.BlockExceptionHandler; import com.alibaba.csp.sentinel.slots.block.BlockException; import com.kimzing.utils.exception.ExceptionManager; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRespon...
31
117
0.7866
417f542a91c1fc20ad528f95d44ea172241685c2
1,686
package com.site.component.visitpvuv.config; import cn.hutool.core.date.DateUtil; import com.site.component.utils.http.IpUtil; import com.site.component.utils.redis.RedisUtil; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerInterceptor; i...
30.107143
146
0.720641
dac5de7032f4c0699a8bb3af06e4077291c193e3
1,785
package com.zup.proposta.controller.validation; import java.util.List; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import com.zup.proposta.contro...
31.875
112
0.801681
8c8a14ab6d06e40ab82737c8bf916df291cc8517
6,229
/* * MatrixToolTipAdaptor.java: an adaptor supporting multiple lines * tooltip * * Copyright (c) 2003, 2014, 2015, 2016 Nozomi `James' Ytow * 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 m...
24.143411
75
0.637663
b05db8cc06af18e3598e41f1ea1b4248bdefa575
18,586
package uk.gov.hmcts.reform.em.orchestrator.functional; import com.fasterxml.jackson.databind.JsonNode; import io.restassured.path.json.JsonPath; import io.restassured.response.Response; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.springframework.http.MediaType; import uk.gov.hm...
53.408046
144
0.680136
c346973fb708b2657b590b584930d9e36fc38fcd
388
package cn.cy.mybatis.type; /** * @Author: 友叔 * @Date: 2021/12/28 11:33 * @Description: 主键Id */ public class PrimaryId { private String value; public PrimaryId(String value) { this.value = value; } public String getValue() { return value; } public void setValue(String value) { this.value = value; ...
13.37931
37
0.659794
294df9e105ca23d7b3ea00d7b1bb75e197645407
7,261
// Buddy Fetcher: simple RSS-fetcher/aggregator. // Copyright (c) 2021 Buddy Lancer. All rights reserved. // Author - Buddy Lancer <http://www.buddylancer.com>. // Licensed under the MIT license. package Bula.Fetcher.Controller.Pages; import Bula.Meta; import Bula.Fetcher.Config; import Bula.Fetcher.Context; import ...
38.015707
122
0.57981
bd2e3b4a48beefaefcfc6b784f77c22847269eca
4,006
package com.github.chenjianjx.srb4jfullsample.impl.itcase.biz.staff; import com.github.chenjianjx.srb4jfullsample.impl.biz.staff.StaffUser; import com.github.chenjianjx.srb4jfullsample.impl.biz.staff.StaffUserRepo; import com.github.chenjianjx.srb4jfullsample.impl.itcase.BaseITCase; import com.github.chenjianjx.srb4j...
36.752294
102
0.718672
6b42afcedc26f626caa10ebaa0f41e22bd8115cc
655
package com.javaweb.web.service; import java.util.List; import org.springframework.web.multipart.MultipartFile; import com.javaweb.util.entity.Page; import com.javaweb.web.eo.file.FileContentListRequest; import com.javaweb.web.eo.file.FileListRequest; import com.javaweb.web.po.User; public interface FileService { ...
26.2
106
0.810687
fb82929c84a96e6e13bda16d7fcd66539a77c93c
3,941
package tree; import java.util.LinkedList; /** * @Description * @auther zhaoyuanfang * @create 2020-03-01 4:55 下午 */ public class BinaryTree<E> { private Node<E> root; public BinaryTree() { super(); } public BinaryTree(Node<E> root) { this.root = root; } public Node<E> g...
28.977941
70
0.474245
146c9219bc0354579e78296edea0128329a0279f
689
package io.wangxin.elasticjob.spring.boot.autoconfigure.properties; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; import static io.wangxin.elasticjob.spring.boot.autoconfigure.StarterConstants.SCRIPT_JOB_PREFIX; /** * @author wx */ @Com...
28.708333
97
0.798258
6f7903d4d3cb380780cf87eda12a66a7b679dd50
6,335
package cool.solr.response; import java.io.Writer; import java.util.Locale; import java.util.Map.Entry; import java.util.Properties; import java.util.concurrent.TimeUnit; import javax.servlet.http.HttpServletRequest; import nz.net.ultraq.thymeleaf.LayoutDialect; import ognl.OgnlRuntime; import org.apache.solr.client....
36.408046
118
0.684925
58cd48c9f04fe40d49603536544107a8935d42b6
5,616
/* * This file is part of TechReborn, licensed under the MIT License (MIT). * * Copyright (c) 2020 TechReborn * * 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, inc...
39.549296
132
0.731125
1dbd1cd4518215e3f472ea7e126560aab9a207c8
32,331
/* * File: KDTree.java * Authors: Kevin R. Dixon * Company: Sandia National Laboratories * Project: Cognitive Foundry * * Copyright Jul 28, 2009, Sandia Corporation. * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive * license for use of...
32.074405
146
0.562247
44f25818d07d89f32a180f5f23b06b5bc0aa48c8
16,472
package cyclops.async.reactive.futurestream.operation; import static cyclops.container.immutable.tuple.Tuple.tuple; import cyclops.container.immutable.tuple.Tuple3; import cyclops.async.reactive.futurestream.FutureStream; import java.util.Objects; import java.util.concurrent.CompletableFuture; import java.util.functi...
44.042781
189
0.441294
b0605b4440361e12ba4ddf56edcb1f1639295765
12,630
package com.dotmarketing.portlets.rules.business; import java.util.*; import java.util.stream.Collectors; import com.dotcms.repackage.com.google.common.base.Strings; import com.dotmarketing.business.CacheLocator; import com.dotmarketing.business.DotCacheAdministrator; import com.dotmarketing.business.DotCacheExceptio...
32.635659
114
0.647664
babac7fcbd7f71731cfccf72b5f8489761c32d4f
544
package com.shine.monitor.dao; import com.shine.monitor.entity.po.SecuritiesExpressPO; import java.math.BigDecimal; import org.apache.ibatis.annotations.Mapper; @Mapper public interface SecuritiesExpressMapper { int deleteByPrimaryKey(BigDecimal bulletinId); int insert(SecuritiesExpressPO row); int inse...
27.2
66
0.814338
ef258539e057bf928971817c18bb051605584830
1,705
/* * Copyright 2017-2020 Alfresco Software, Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
46.081081
164
0.809971
e9cb18021a09223c4fd5d68f12ba72e51e26ead8
11,556
package com.whirlwindgames.sqorbits.core; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.sql.Connection; import java.sql.Driver; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Stat...
36.454259
122
0.697992
204804b7f582a4dd9c76b3e2e5b481424706ef03
3,030
/* * 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 week8; import java.util.Random; /** * * @author christopher.lewis */ public class ridetracker { private st...
35.647059
89
0.552475
979099eed00cc9f0171662a622cc14878c7c9792
657
package Patrones2Estructurales.Facade; import javax.swing.JOptionPane; /** * @author Genarogg * * Disponemos de un sistema complejo que, al ser muy flexible, * requiere de la configuración de muchos parámetros para conseguir * un fin concreto. Por otro lado, nuestro sistema cliente pretende * util...
28.565217
75
0.659056