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
9202ca686af04415ed8cd7797fe4e1316648bd52
5,131
/* * 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.azure.maven.auth; import com.microsoft.azure.maven.exception.MavenDecryptException; import com.microsoft.azure.maven.model.MavenAuth...
52.357143
156
0.732606
dca1b90d5aa584ae55d5f1c36b0347e00f63fafc
3,489
package prefuse.controls; import java.awt.Cursor; import java.awt.event.MouseEvent; import java.awt.geom.Point2D; import java.util.Iterator; import javax.swing.SwingUtilities; import prefuse.Display; import prefuse.visual.NodeItem; import prefuse.visual.VisualItem; /** * Control that changes the location of a who...
33.873786
103
0.650616
92a3c5c44ef445b0a257e7fa5ac720427f266927
1,056
package com.wisdom.acm.szxm.form.sysscore; import lombok.Data; import org.hibernate.validator.constraints.Range; import javax.validation.constraints.NotBlank; import java.math.BigDecimal; /** * Author:wqd * Date:2020-01-02 14:00 * Description:<描述> */ @Data public class ObjectTemplateAddForm { /** * 考核项名...
18.857143
58
0.604167
5609f3b7b36619ea3af7401e5c2ee4272e935e27
4,374
package gov.nih.nci.ncicb.cadsr.common.persistence.dao.jdbc; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Collection; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.DataSource; import org.springframework.jdbc.object.MappingSqlQuery; import gov....
42.466019
178
0.763832
2da093c87558a6cb1e40509331083f55d025a859
33,622
/* * MIT LICENSE * Copyright 2000-2021 Simplified Logic, Inc * 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, co...
39.555294
211
0.698382
50156564159cd987f39869144562f675fb7c26ba
19,343
/* * 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 ...
37.413926
97
0.52846
6c2446c50f781c3dd8199163d010f78ed7532e0b
618
package cn.wyu.Dao; import cn.wyu.Domain.Resource; import cn.wyu.bean.PageInfo; import java.util.List; public interface ResourceDao { /** * 插入操作 * @param Resource */ int insert(Resource resource); /** * 根据id查询数据 * @param id * @return */ Resource queryById(int id); ...
15.073171
45
0.555016
da62566c538b62df70f4b61f2b7072a6d44fff7e
5,160
package nc.block.storage; import java.util.ArrayList; import nc.tile.storage.TileStorage; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.playe...
36.595745
202
0.712597
cbf96e9ee6a9aed194d2eca7ff0b5d2ab667492d
1,556
/* * Copyright 2004-2011 H2 Group. * Copyright 2011 James Moger. * * 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...
25.933333
80
0.74036
ff954486622d2f65a0f319db8610a67268025077
512
package com.tngtech.flink.connector.email.imap; import static org.assertj.core.api.Assertions.assertThat; import com.tngtech.flink.connector.email.testing.TestBase; import org.apache.flink.table.catalog.Catalog; import org.junit.Test; public class ImapCatalogTest extends TestBase { @Test public void testLis...
30.117647
94
0.767578
651d516ede08b87218da7f1818b85e5796078c53
131
package com.xthena.api.form; import java.util.List; public interface FormConnector { List<FormDTO> getAll(String scopeId); }
16.375
41
0.755725
e714e5a7c249fdedb08d79f70861086a91f2c7df
55,507
// The MIT License (MIT) // // Copyright (c) 2017 Smart&Soft // // 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...
36.043506
393
0.623579
4f0c8cda58aad67ef7d5fd2625d14f964e329acb
628
package com.sequenceiq.cloudbreak.service.secret.vault; public class VaultConfigException extends RuntimeException { public VaultConfigException() { } public VaultConfigException(String message) { super(message); } public VaultConfigException(String message, Throwable cause) { su...
26.166667
121
0.721338
62cf7188560503757bbf08aaa232f6d0ae5fb4df
1,028
package com.rozvi14.facialrecognition; import com.google.firebase.messaging.FirebaseMessagingService; import com.google.firebase.messaging.RemoteMessage; import androidx.core.app.NotificationCompat; import androidx.core.app.NotificationManagerCompat; public class MyMessagingService extends FirebaseMessagingService {...
38.074074
111
0.741245
451482b6d593aeed06d9b935ba5e7f0dc26032f5
3,965
package com.smt.kata.code; import java.util.*; /**************************************************************************** * <b>Title</b>: MorseCodeTranslator.java * <b>Project</b>: SMT-Kata * <b>Description: </b> Morse Code converter. Take any phrase and convert it to * its morse code equivelant and decode a...
32.5
91
0.44111
260cc91ed32269e1652c4deec241b60e73326b04
5,908
package fishmaple.utils; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import fishmaple.thirdPart.baiduWebWorm.BaiduSearchObject; import org.apache.http.HttpEntity; import org.apache.http.HttpStatus; import org.apache.http.StatusLine; import org.apache.http.client.HttpClient; import org....
35.590361
162
0.590386
3c0f5c5beab4a8e680ad340ebcdd9b20ad28bd80
372
package com.goodworkalan.manifold; // TODO Document. public class Close implements Runnable { // TODO Document. private final Conversation conversation; // TODO Document. public Close(Conversation conversation) { this.conversation = conversation; } // TODO Document. public void ru...
20.666667
45
0.666667
84c7114cb4d480a74e9217938ff4619078e723df
2,396
/* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
34.724638
75
0.594324
6485739c59acdd857ff6bf09d4b4567af87b82e4
36,996
package org.basex.qt3ts.op; import org.basex.tests.bxapi.*; import org.basex.tests.qt3ts.*; /** * Tests for the gYearMonth-equal() function. * * @author BaseX Team 2005-15, BSD License * @author Leo Woerteler */ @SuppressWarnings("all") public class OpGYearMonthEqual extends QT3TestSet { /** * * ******...
30.349467
228
0.470375
53a9edcf4ce6502ef5b7074809817775efbdc9d4
3,067
/* * Copyright 2018 tweerlei Wruck + Buchmeier GbR - http://www.tweerlei.de/ * * 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 * * Unl...
31.295918
101
0.789697
07321a4dc50157f155c943971a7d4948ab5c957d
215
package io.agrest.cayenne.qualifier; import io.agrest.base.protocol.Exp; import org.apache.cayenne.exp.Expression; /** * @since 3.3 */ public interface IQualifierParser { Expression parse(Exp qualifier); }
16.538462
41
0.744186
10c9465b5b5b53c42cdb3ed906a2581252672b69
456
import java.util.*; /* 852. Peak Index in a Mountain Array */ public class Solution { public int peakIndexInMountainArray(int[] arr) { int left = 0; int right = arr.length - 1; while (left < right) { int mid = left + (right - left) / 2; if (arr[mid] < arr[mid + 1]) {...
24
52
0.449561
5283abfaac182aa68ef921f6a548b9bab47a7a1c
361
package org.codeforamerica.shiba.output.pdf; import static org.apache.pdfbox.cos.COSName.YES; import lombok.AllArgsConstructor; import lombok.Value; @Value @AllArgsConstructor public class BinaryPdfField implements PdfField { String name; String value; public BinaryPdfField(String name) { this.name = nam...
18.05
49
0.756233
2b46ee3ac73bd22b97c528dfbb266e14c79f02ba
1,699
package top.murphypen.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import top.murphypen.domain.DemoObj; import javax...
36.934783
88
0.698058
e9bd8c021994577f1f36f38eed629542ec9043a3
3,366
package kripke; import expressions.*; import java.util.*; import java.util.stream.Collectors; public class World { private List<World> children; private Set<Variable> forcedVariables; private Map<Expression, Boolean> forcedExpression; public World() { children = new ArrayList<>(); fo...
32.057143
113
0.523767
04552899b625998821b48549f0da96fef9f64326
375
import java.util.ArrayList; public class Arrays { public static void main(String[] args) { ArrayList<String> food = new ArrayList<String>(); food.add("Pizza"); food.add("Ivan"); food.set(1, "Hello There"); for (int i = 0;i < food.size(); i++){ ...
19.736842
58
0.506667
cdf3211660448e1892141efa110ea0af985f8980
2,015
package hr.fer.zemris.jcms.web.actions.data; import hr.fer.zemris.jcms.beans.ext.MPUserState; import hr.fer.zemris.jcms.beans.ext.MPViewBean; import hr.fer.zemris.jcms.model.Group; import hr.fer.zemris.jcms.model.UserGroup; import hr.fer.zemris.jcms.service.has.HasParent; import hr.fer.zemris.jcms.web.actions.data.sup...
22.142857
73
0.741439
283903e2b8e08b5a2c448ecf8cf2726099009334
2,191
package cn.snaildev.zuul.gateway.filter; import cn.snaildev.zuul.gateway.util.NetUtils; import com.netflix.zuul.ZuulFilter; import com.netflix.zuul.context.RequestContext; import com.netflix.zuul.exception.ZuulException; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; i...
28.828947
100
0.635783
303aa13721c88941e5dfc866a5a6f1d83a5616a9
4,951
package com.essam.chatapp.ui.verification; import android.app.Activity; import android.util.Log; import androidx.annotation.NonNull; import com.essam.chatapp.firebase.data.FirebaseManager; import com.essam.chatapp.firebase.fcm.FcmUtils; import com.google.android.gms.tasks.OnCompleteListener; import com.google.androi...
39.608
126
0.661079
d9dd23a75f15841bc9d35ad471f1056e8cdbec33
462
package lychi; public final class Version { public static final String VERSION = "20180207"; public static final String COMMIT = "fe2ea2a"; public static final String USER = "tyler"; public static final String TIMESTAMP = "02/07/2018 at 17:57:34 EST"; private Version () {} public static void main ...
38.5
116
0.683983
9dd6ff9d8b277794d6764431d203326f0c7afade
5,816
/* * 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 writing, software * distributed u...
22.198473
86
0.706843
4e77d8d219fde6e12abc8528a68639fc270819dd
5,470
package dev.anhcraft.craftkit.internal.tasks; import dev.anhcraft.craftkit.events.ArmorChangeEvent; import dev.anhcraft.craftkit.events.ArmorEquipEvent; import dev.anhcraft.craftkit.events.ArmorUnequipEvent; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.inventory.EquipmentSlot; import or...
44.836066
97
0.476782
7634468f1426357347762a949d5b06f999d937e5
876
package com.example.gdrivepasswordvault; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import android.app.Activity; import android.widget.TextView; import android.widget.Toast; public class Logger { private static TextView statusBar; private static final SimpleDateFor...
28.258065
104
0.671233
ef82e726a527f57ea199ffe018a2dfcf4ca75509
9,238
/* * Copyright 2015 Adaptris Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
36.65873
132
0.741935
35ccab548416f295cb6561dc2613c4472e2aee43
4,250
/* * * * Copyright 2018 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...
26.898734
102
0.666588
b6273ad9c7a45c0d058e02c7b61219969b5dd150
2,662
package com.vladsch.flexmark.parser; import com.vladsch.flexmark.util.ast.Document; import com.vladsch.flexmark.util.ast.Node; import com.vladsch.flexmark.ast.Text; import com.vladsch.flexmark.ast.util.Parsing; import com.vladsch.flexmark.parser.core.delimiter.Bracket; import com.vladsch.flexmark.parser.core.delimiter...
35.972973
137
0.743802
9fcac15f0d8a775e0095f2ff1a4d9e4cedbb1d97
1,405
/* * Copyright 2010 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...
39.027778
85
0.77153
78755a3cbeea2c2d3f07fc5890e28f15721c8fb6
23,984
package com.droiuby.client.core; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.StringReader; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent...
32.193289
83
0.700634
ee9887d774be195ff93626ecdc7ba7e8aae47701
68
package com.google.android.gms.base; public final class C1517R { }
13.6
36
0.764706
dc95db5c3b11ac578e51682bdd544c0d6cafa247
9,473
package mmt; import java.io.Serializable; import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.time.Duration; /** A customer of the TrainCompany, has Itineraries * * @see Itinerary * @see TrainCompany */ public class Passenger implements Serializable, Comparable { ...
24.478036
85
0.679405
df89653464f3c9b925425fb3b96a7eeaa2867efb
2,701
/* * Copyright 2011 DTO Solutions, Inc. (http://dtosolutions.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 r...
37.513889
105
0.739726
564bb37040709e4445489bb8ab4f98e9d847e6ce
1,895
package com.vato.app; import sun.reflect.generics.reflectiveObjects.NotImplementedException; /** * The State class is the abstract class for all states that a raft node may be in. */ public abstract class State { Node context; int currentTerm; public State(Node context){ this.context = context;...
31.583333
111
0.685488
8ad81add2c03feef9408969baf9f3e8926286ff9
2,493
package ru.heroes.modeselector.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapp...
35.614286
95
0.708785
a7ce8c6189e63e863e89b2dec4e4482ca4131ee9
444
package com.nekose.officemanage.usermanagement.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import lombok.extern.slf4j.Slf4j; @Slf4j @RestController @RequestMapping("...
24.666667
62
0.804054
83a1500249503e39c32e9ea17f44c252d3fbd9f7
412
/* * */ package net.community.chest.javaagent.dumper.ui; import net.community.chest.javaagent.dumper.ui.data.SelectiblePackageInfo; /** * <P>Copyright as per GPLv2</P> * @author Lyor G. * @since Aug 14, 2011 12:18:48 PM * */ interface SelectiblePackageInfoHandler { void processSelectiblePackageInfo (Select...
22.888889
74
0.752427
72bf42d4b70187775262ed3be1f1b5ea6bec8fcd
1,634
/* * Copyright 2013 Foundation4GWT * * 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...
30.259259
76
0.72399
22ca327349890c196b214c06c7e885fe8d5738d1
904
public class Filme { private String nome; private FilmeEstado estado; public Filme() { this.estado = FilmeEstadoNaoAssistido.getInstance(); } public void setEstado(FilmeEstado estado) { this.estado = estado; } public String marcarAssistido() { return estado.marcar...
19.652174
60
0.621681
a47a30e452c6bcae57f8eade7ca3e2e77b435977
2,164
/* * smart-doc https://github.com/shalousun/smart-doc * * Copyright (C) 2018-2022 smart-doc * * 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 ...
38.642857
122
0.744917
c76a10cc8cfbfc23bff76c7bb491fa38060827fe
1,857
// WARNING: This file is autogenerated. DO NOT EDIT! // Generated 2020-08-29 20:45:22 +0200 package jnr.constants.platform.solaris; public enum SocketMessage implements jnr.constants.Constant { MSG_DONTWAIT(0x80L), MSG_OOB(0x1L), MSG_PEEK(0x2L), MSG_DONTROUTE(0x4L), MSG_EOR(0x8L), MSG_TRUNC(0x20L), MSG_CTRUNC(0x10L), M...
33.160714
113
0.750673
d516fcb11815ce99d02d1b29aeee2b4c841cca01
628
package vdsMain.tool; import bitcoin.UInt256; import vdsMain.transaction.CHash256; //bqu public class Hash { public static UInt256 m10362a(byte[] bArr) { return m10363a(bArr, 0, bArr.length); } /* renamed from: a */ public static UInt256 m10363a(byte[] bArr, int i, int i2) { byte[] bA...
24.153846
63
0.571656
404b6082afdd41e5abdfe5cad8310a28e4884988
660
package com.nice.mqtt.thread.pool; import java.util.concurrent.Callable; /** * @Author hzdz163@163.com * @Description CallableTemplate * @Date 17:03 2020/9/24 * @Param * @return **/ public abstract class CallableTemplate<V> implements Callable<V> { /** * 前置处理 */ public void beforeProcess() { ...
16.5
66
0.566667
11e9cc213266a267e0556a68f515b02996224f4f
850
package com.springboot.chapter6.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Isolation; import org.springframework.transaction.annotation.Transactional; import com.springboot.chapter6.dao.U...
28.333333
66
0.8
0f89905a6d423ed9e9c415b57a208e970b8e8cf1
3,650
/** * Copyright (c) 2015 Mark S. Kolich * http://mark.koli.ch * * 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, ...
34.761905
116
0.732055
b01f22a65e38919ac71341fe1778b9f7c06d74cd
8,378
package com.tuling.tim.common.data.construct; import org.junit.Assert; import org.junit.Test; import java.util.List; public class TrieTreeTest { @Test public void insert() throws Exception { TrieTree trieTree = new TrieTree(); trieTree.insert("abc"); trieTree.insert("abcd"); } ...
26.345912
69
0.525901
bfb3835186e8f02052ece6aeb35e544f872173ba
4,640
/************************************************************************ * Menu.java is part of Titanium4j Desktop 1.2 Copyright 2012 Emitrom LLC * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use obj file except in compliance with the License. You may obtain a copy of * t...
41.061947
113
0.665948
dc57b215ad5024e87c20e0601a3556f006045825
1,803
/* * The contents of this file are subject to the terms * of the Common Development and Distribution License * (the "License"). You may not use this file except * in compliance with the License. * * You can obtain a copy of the license at * glassfish/bootstrap/legal/CDDLv1.0.txt or * https://glassfish.de...
26.130435
73
0.689407
37e5ae3a02cd463295b6ec881a327151b97cb1eb
11,172
package com.benny.openlauncher.viewutil; import android.app.WallpaperManager; import android.content.Context; import android.content.Intent; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.net.Uri; import android.os.Environment; import android.support.annotation.NonNull;...
50.781818
195
0.571608
acad1b385cddd01b23098bb816046807d7897851
3,279
/******************************************************************************* * Copyright (c) 2018 Robert Koszewski * * 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 restricti...
29.017699
168
0.689235
7c9c4264bd62f88d392eda04a044ba8d06a6751e
1,664
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package net.sf.mmm.code.base.loader; import java.io.File; import java.nio.file.Path; import java.nio.file.Paths; import net.sf.mmm.code.api.language.JavaLanguage; /** * Base implementatio...
25.6
118
0.714543
d5c97edddaadabde64231079321c7b71ca98b3ce
541
class Solution { public List<Integer> minimizeWaitTime(int[] tasks) { final Comparator<Integer> cmp = (i,j) -> { final int cmpDuration = Integer.compare(tasks[i], tasks[j]); if (cmpDuration != 0) return cmpDuration; return Integer.compare(i,j); }; final PriorityQueue<Integer> pq = new Pr...
27.05
66
0.593346
2bad48854e0e4edc12287c34c7f3c7d6a07b9538
1,467
package net.minecraft.server; import com.google.common.collect.Sets; import java.util.Arrays; import java.util.Set; public enum EnumDirection8 { NORTH(new EnumDirection[]{EnumDirection.NORTH}), NORTH_EAST(new EnumDirection[]{EnumDirection.NORTH, EnumDirection.EAST}), EAST(new EnumDirection[]{EnumDirection.EAST})...
50.586207
491
0.740286
402c3608946dd80eea1bffaaa3f4c8f846ceb744
9,908
package lsedit; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Container; import java.awt.FlowLayout; import java.awt.Font; import java.awt.FontMetrics; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Vector; import...
23.590476
94
0.639584
58823eca22cbf51511dd64699c0dbbd5a581e875
819
package br.com.zup.casadocodigo.cadastrolivro.listLivro; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframewo...
28.241379
70
0.822955
a5b5c912398fb215aafbf72858246e7cbffe7fd9
6,051
package protobuf.lang.resolve; import static protobuf.lang.psi.PbPsiEnums.ReferenceKind; import com.intellij.openapi.diagnostic.Logger; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiNamedElement; import consulo.psi.PsiPackage; import protobuf.lang.psi.api.PbFile; import protobuf.lang.psi.api.block.Pb...
27.013393
174
0.65328
1ae1a8dfcef760271c1b824e3090c94d3267ba10
2,555
package ru.job4j.task; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * Game class. * @author agavrikov * @since 28.08.2017 * @version 1 */ public class Game { /** * Board. */ private final Board board; /** * Victory. */ pri...
29.034091
105
0.496673
859baf0ce5feb5ad26e77d97bfb1a4ddb7c153b0
7,643
package org.kohsuke.github; import java.io.IOException; import java.io.InterruptedIOException; import java.util.Objects; import java.util.logging.Logger; import javax.annotation.Nonnull; /** * A GitHub API Rate Limit Checker called before each request. * * <p> * GitHub allots a certain number of requests to each...
44.958824
120
0.679445
13dc23ee81a73bb763e26b926a535b33f55e676e
2,577
package de.unigoe.informatik.swe.kcast.expression; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import de.unigoe.informatik.swe.krm.KnowledgeComponent; /** * Represents a sizeof operator that is applied to an expression<br /><br /> * Syntax: <code>sizeof</code> <em>expression</em> [<a h...
26.295918
139
0.727202
0c4acf36952f50f558a844654365f7690d65aa54
2,602
/* * Copyright 2016 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 a...
28.911111
92
0.646042
962b6fdcee1e94afc328a988e8f8e15cb2830a67
680
package me.yamakaja.rpgpets.api.event; import me.yamakaja.rpgpets.api.entity.PetDescriptor; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; /** * Created by Yamakaja on 12.06.17. */ public class PetLevelUpEvent extends Event { private static final HandlerList handlerList = new HandlerList()...
20.606061
69
0.692647
3cc873e7497fa483ce27a9b0fd9c0ba540b027ae
2,285
package com.bhaptics.bhapticsandroid.adapters; import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.TextView; import com.bhaptics....
30.466667
117
0.696718
95e98cd4e8c4851a32ad308c1f6d8c16bf757e60
197
package DungeonCrawler.GameObject; import DungeonCrawler.GameData; //Game objects that require a regular update. public interface Update { void update(GameData gamedata, double deltaTime); }
21.888889
53
0.796954
9a19fe27a4da4c1e8e0709ba4986056efbbdd9be
269
package io.github.adobe.sign.core.workflow; public class SignWorkflowException extends Exception { public SignWorkflowException(String msg) { super(msg); } public SignWorkflowException(String msg, Throwable t) { super(msg, t); } }
22.416667
59
0.680297
1a73aa18f1f703f27469c7715c25bcf2a1f47741
32,459
/** * PercolatorSQTDataUploadService.java * @author Vagisha Sharma * Dec 11, 2008 * @version 1.0 */ package org.yeastrc.ms.service.sqtfile; import java.io.File; import java.io.FilenameFilter; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Ma...
40.523096
158
0.606118
626901c31ebca5713c1d7d31479203f21fb98aa1
116
/** * 哲学家就餐问题 */ package com.zc.concurrency_program_design.concurrency_program_design.dining_philosophers_problem;
29
97
0.844828
72a87a1fa6cb7727158c5d6ea9fa67a247d8fc7d
4,444
/* * Licensed to STRATIO (C) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. The STRATIO (C) licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file...
43.145631
115
0.719847
482ecf68f4cac61402e8a08898cef64c5c1d25d4
578
package noppes.npcs.enchants; import noppes.npcs.items.ItemGun; import noppes.npcs.items.ItemStaff; public class EnchantConfusion extends EnchantInterface { public EnchantConfusion() { super(3, ItemStaff.class, ItemGun.class); setName("confusion"); } @Override public int getMinEnchan...
20.642857
56
0.652249
f49f79308fd80df0665a6de26b075416745fe2be
2,722
/* ========================================== * JGraphT : a free Java graph-theory library * ========================================== * * Project Info: http://jgrapht.sourceforge.net/ * Project Creator: Barak Naveh (http://sourceforge.net/users/barak_naveh) * * (C) Copyright 2003-2008, by Barak Naveh ...
28.957447
81
0.557311
d6dbf54d8f4bdb8c381e476ad8e3cbe758334561
5,293
package com.ulyp.core; import com.google.protobuf.ByteString; import org.agrona.ExpandableDirectByteBuffer; import org.agrona.MutableDirectBuffer; import org.agrona.concurrent.UnsafeBuffer; import org.agrona.sbe.MessageDecoderFlyweight; import org.agrona.sbe.MessageEncoderFlyweight; import java.lang.reflect.Parameter...
30.245714
160
0.631022
e579620445eb9a82c93ffe7ce59c4c825f2acfe8
2,098
package org.cempaka.cyclone.managed; import static com.google.common.base.Preconditions.checkNotNull; import com.google.common.util.concurrent.ThreadFactoryBuilder; import io.dropwizard.lifecycle.Managed; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.con...
35.559322
100
0.736416
fe0baf336d977b6325c7d53d2dd0dbae3879653f
542
package springfive.cms.domain.models; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import lombok.Data; import org.hibernate.annotations.GenericGenerator; /** * @author claudioed on 28/10/17. Project cms */ @Data @Entity @Table...
18.066667
60
0.743542
f864525d9c2dbe853831dd85880cf6fcc9e50419
1,022
package com.caleb.algorithm.leetcode; import com.caleb.algorithm.offerdemo.ListNode; /** * @author:Caleb * @Date :2021-08-14 23:18:55 * * 反转链表II * * 给你单链表的头指针 head 和两个整数 left 和 right ,其中 left <= right 。请你反转从位置 left 到位置 * right 的链表节点,返回 反转后的链表 。 * */ public class ReverseBetween92 { publ...
18.925926
78
0.620352
0017075f0a244205c5776cb7a718091aacc1b899
2,715
package com.qp.net; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import okhttp3.Call; import okhttp3.Callback; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; public class FileDownload { private static FileDownload ins...
32.321429
94
0.483241
899365f0b141305f364fae0c90a40cf8355974fe
3,094
package com.felhr.usbserial; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.util.Arrays; @RunWith(JUnit4.class) public class FTDISerialDeviceTest { @Test public void adaptEmptyByteArray() { byte[] onlyHeaders = {1, 2}; ...
61.88
398
0.654169
8d887be1ffbe58a7d4cf4c723064eb86bdadacfb
2,442
/* 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"...
34.885714
111
0.68878
9f8cf3178b5f7d5c439d8b7dc5ba24abf9bdf7e3
2,320
/* * 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 writing, software * distr...
30.526316
98
0.707328
c9131b22048d1cfe7fd0e306fa73081e75da7485
5,620
/* * Copyright 2011-2021 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.578947
112
0.764769
ac3416322e60caecadbcf16e79e1e945cc333fef
1,603
package com.cskaoyan.controller; import com.cskaoyan.bean.BaseRespVo; import com.cskaoyan.service.StatUserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springf...
28.625
62
0.653774
acfad5619b36fa53778dba73c50a9f1c62990e53
1,116
package org.loser.cache; import static com.loserico.commons.jackson.JacksonUtils.toJson; import java.time.LocalDate; import java.util.List; import java.util.Map; import org.junit.Test; import com.loserico.commons.jackson.JacksonUtils; import com.loserico.commons.resource.PropertyReader; public class P...
30.162162
88
0.760753
07c24852db8a9c10c2655f8400674e8871d73193
2,213
/* * Copyright (c) 2018, Fitzyy. All Rights Reserved. */ package me.fitzyy.tool.datetime; import org.joda.time.DateTime; import java.util.Date; /** * <p> </p> * * <p> Created At 2018-02-14 13:57 </p> * * @author FitzYang * @version 1.0 * @since JDK 1.8 */ public class TimeUtil { private TimeUtil() { ...
22.353535
74
0.592408
99007773b49344f64879246a3fa9293ca21bb380
11,653
package com.pgmmers.radar.service.impl.model; import com.alibaba.fastjson.JSON; import com.pgmmers.radar.dal.bean.DataListQuery; import com.pgmmers.radar.dal.bean.DataListRecordQuery; import com.pgmmers.radar.dal.model.DataListDal; import com.pgmmers.radar.dal.model.ModelDal; import com.pgmmers.radar.service.cache.Cac...
35.966049
113
0.5977
7dec6c078ea43e3e7309640c958de467d1ee8924
846
package org.modelcatalogue.spreadsheet.api; /** * Created by ladin on 03.03.17. */ public interface PageSettingsProvider { Keywords.Orientation getPortrait(); Keywords.Orientation getLandscape(); Keywords.Fit getWidth(); Keywords.Fit getHeight(); Keywords.To getTo(); Keywords.Paper getLet...
24.882353
43
0.696217
9291f842580350da5cbdd2e1da355e862ec59c5c
7,215
package us.kbase.genbank; import us.kbase.auth.AuthService; import us.kbase.auth.AuthToken; import us.kbase.auth.AuthUser; import us.kbase.auth.TokenFormatException; import us.kbase.common.service.Tuple11; import us.kbase.common.service.UObject; import us.kbase.common.service.UnauthorizedException; import us.kbase.kba...
34.521531
168
0.559529
57ef2e99298ce578f963f60d47964d4a3ca17a1f
840
package com.github.nekolr.util; import java.lang.reflect.Field; public class BeanUtils { /** * 设置字段的值 * * @param obj 实体对象 * @param field 字段 * @param value 值 */ public static void setFieldValue(Object obj, Field field, Object value) { try { field.setAccessib...
21
77
0.527381
2d78296d2df6688e47355d4b53e995846a7e685c
2,040
/* * Copyright 2016-2018 ISP RAS (http://www.ispras.ru) * * 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 ...
32.903226
100
0.740196
646686da99ca8b848ec532b8e5f5700f205f99c7
5,094
/* * Copyright 2020 The Netty Project * * The Netty Project licenses this file to you 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...
39.184615
111
0.659992
1cdce66f0ad30d16574d96c679f1ebc7b8792439
694
package com.julianfm.wvctf.api.dto; import java.util.Date; import javax.validation.Valid; import javax.validation.constraints.Max; import javax.validation.constraints.Min; import com.julianfm.wvctf.model.entity.Product; import com.julianfm.wvctf.model.entity.Users; import lombok.AllArgsConstructor; import lombok.Ge...
18.756757
77
0.772334
4a157e9650b9927158ba0dcf0ec5522786e1b31e
2,422
/* * 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 ...
25.765957
79
0.698183
58175cdff11b66d51e52be07c986de2effda7853
3,408
/******************************************************************************* * * Copyright FUJITSU LIMITED 2018 * * Creation Date: 13.07.2010 ...
29.128205
83
0.598298
20b5d4d97df206b88c3673358acbafb80dcfaf51
5,539
package com.tersesystems.proxyjsse.builder; import com.tersesystems.proxyjsse.keystore.TrustStore; import java.security.*; import java.security.cert.CertPathParameters; import java.util.function.Supplier; import javax.net.ssl.CertPathTrustManagerParameters; import javax.net.ssl.TrustManagerFactory; import javax.net.ss...
35.280255
99
0.772161
f090e0fcbec1caa5caa5b3778ae3f68d30afd636
62
package classifyx.ui.admin; public class AdminController { }
12.4
30
0.790323