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
748e605f0a8024a038c1be4be993f55874489783
372
package lpadron.me.project1_payit.helpers.interfaces; import java.util.ArrayList; import lpadron.me.project1_payit.models.CardReminder; /** * Project1-Payit * lpadron.me.project1_payit.helpers * Created by Luis Padron on 3/17/16, at 7:01 PM */ public interface RecyclerViewUpdater { void onUpdateRecyclerView...
23.25
78
0.790323
22fecc41de203c394ac6339ba2b285a54d9d897a
3,117
package com.dji.sdk.sample.internal.view; import android.annotation.SuppressLint; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.widget.Button; import android.widget.PopupWindow; import android.widget.SeekBar; import android.widget.TextView; import com.dji...
33.516129
109
0.663779
941dd5b8f73bfa7a1f948a2c1c00ea6fe3450844
2,050
package com.zw.platform.repository.core; import com.zw.lkyw.domain.ReportMenu; import com.zw.platform.domain.core.Resource; import com.zw.platform.domain.core.query.ResourceQuery; import org.apache.ibatis.annotations.Param; import java.util.Collection; import java.util.List; import java.util.Map; /** * 资源Dao */ pu...
20.918367
85
0.600488
10aa7468cd3aae0b521eff4f37e8745a4a0bd755
1,083
package fr.univcotedazur.webots.polycreate.rewritingrules; import fr.univcotedazur.webots.polycreate.Condition; import fr.univcotedazur.webots.polycreate.rewritingrules.ConditionAspectConditionAspectProperties; import java.util.Map; @SuppressWarnings("all") public class ConditionAspectConditionAspectContext { publi...
47.086957
239
0.827331
5f048d7c611d473840acf849101c1c334f9ddf00
495
package com.yoosal.common.event; public abstract class PublicEventContext { private EventRegister eventRegister = new EventRegister(); public void addListener(Object type, EventOccurListener listener) { eventRegister.addListener(type, listener); } public void removeListener(Object type, Even...
26.052632
74
0.725253
6c7e8f3c710512dc4f79c930dc37e068c1cc936e
10,247
package com.kiwigrid.helm.maven.plugin; import java.io.ByteArrayInputStream; import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.net.*; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import com.kiwigrid.helm.maven.plugin.exception.Bad...
38.961977
140
0.772714
a4cb38aa8abbb921c17e17d6c2d0526f4f58ccc5
228
package com.example.dto; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class WebTwoRequestDTO { private String webTwoMessage; }
16.285714
33
0.820175
06dbe5cf4ae6f2a418b98de26b58090f62c7c6d3
2,597
package com.flickr4java.flickr.photos; /** * @author Anthony Eden */ public class Permissions { private String id; private boolean publicFlag; private boolean friendFlag; private boolean familyFlag; private int comment = 0; private int addmeta = 0; public Permi...
22.780702
142
0.544089
f4206eb7bb287114112c5f27e9d82b2f80929442
7,703
package com.github.bhlangonijr.chesslib.move; import com.github.bhlangonijr.chesslib.Square; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * The type Move list test. */ public class MoveListTest { /** * Test move list starting position. * * @throws MoveConversionExcept...
42.092896
111
0.578476
76200acf2581b25597750bc73c44b3bfcab49d52
2,939
/* * Copyright 2015-2016 Red Hat, Inc, and individual contributors. * * 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...
36.283951
119
0.703981
07f042470a0adda9c121e4601016aadf41ecc811
326
package com.gm.util; public enum PaymentStatus { REQUESTED("Requisitado"), PROCESSING("Processando"), PAID("Pago"); private String paymentStatus; PaymentStatus(String status) { this.paymentStatus = status; } public String getPaymentStatus() { return this.paymentStatus; ...
18.111111
38
0.653374
bcb1437a5248bfb7c4e36e2c62f4280f3483c40b
3,188
/* * 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 ...
43.081081
119
0.722083
a8aaafc8f46d4a5a53c100ac298bd5ecb76b8943
1,228
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.lcsim.recon.tracking.seedtracker.diagnostic; import org.lcsim.event.EventHeader; import org.lcsim.recon.tracking.seedtracker.HitManager; import org.lcsim.recon.tracking.seedtracker.MaterialManager; import o...
27.288889
112
0.728827
76d73b45213194417f957197e44f17e1c5b579db
711
package uk.gov.hmcts.reform.roleassignment.util; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import uk.gov.hmcts.reform.roleassignment.controller.advice.exception.ResourceNotFoundException; class EnvironmentVariableUtilsTest { @Test void getRequiredVariable() { String ...
29.625
96
0.735584
daaef368ae81a21d0b3353ac11f0ba8136fd82b3
1,506
/* * Copyright 2020 Google 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 ...
28.961538
95
0.722444
dac4db1fc7e7261c30117273873544f74e3495d4
1,324
public void atualizarLivro(LivroBean livro) { PreparedStatement pstmt = null; String sql = "update livro " + "set " + "isbn = ?, " + "autor = ?, " + "editora = ?, " + "edicao = ?, " + "titulo = ? " + "where " + "isbn = ?"; try { pstmt = connection.prepareStatement(sql); ...
40.121212
152
0.480363
60d1c448c170a77cfd203074826be7d20f3869be
762
package me.imdanix.caves.regions; import org.bukkit.Location; import java.util.function.BiPredicate; @FunctionalInterface public interface RegionProtector extends BiPredicate<CheckType, Location> { /** * Called on plugin enable */ default void onEnable() { // Not needed by default } ...
23.090909
75
0.652231
4dbe021a023904dfaf0dda899b3eb940cde3dc61
3,482
/* * Copyright (c) 2019 Otávio Santana and others * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distribution. * The Eclipse Public License is available at http://ww...
29.508475
98
0.659391
19330d641d5bb297dc165f44cf33e8092e63ca95
1,880
package mage.cards.l; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.effects.Effect; import mage.abilities.effects.common.continuous.BoostEnchantedEffect; import mage.abilities.effects.common.continuous.GainAbilityAtta...
34.181818
176
0.722872
73dfca7a92d2f3927c256de7f68618044037d5f3
243
package com.jinhua.domain; import lombok.Data; import java.util.Date; /** * @author Jinhua */ @Data public class Item { private Integer id; private String name; private Double price; private Date createTime; private String detail; }
13.5
26
0.73251
dc4bd21c74d1d74c8e9eb9807dfb9f9e1fa6395c
428
package cz.vutbr.feec.utko.tin.cv1.pr5; public class Adresar { private Adresar podadresar1; private Adresar podadresar2; public Adresar getPodadresar1() { return podadresar1; } public void setPodadresar1(Adresar podadresar1) { this.podadresar1 = podadresar1; } public Adresar getPodadresar2() { return po...
19.454545
50
0.754673
94a86e841f5fd0f3e02f72e1c240d6da56c9425d
24,349
/*- * ============LICENSE_START======================================================= * ONAP : APPC * ================================================================================ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved. * ======================================================...
51.046122
120
0.68972
4600b326f2529906f30cff08afbaf1d96d8858fb
10,010
package net.crazysnailboy.mods.halloween.entity.monster; import java.lang.reflect.Field; import java.util.List; import javax.annotation.Nullable; import com.google.common.base.Predicate; import net.crazysnailboy.mods.halloween.common.config.ModConfiguration; import net.crazysnailboy.mods.halloween.init.ModLootTables; ...
28.518519
171
0.71029
3154d35c692148422eaf255ae7e1ad1781b7ab1d
18,001
package com.deltaqin.seckill.dataobject; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; public class SeckillGoodExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public SeckillGoodExam...
31.47028
102
0.585523
bf37100cd96ee7d40c4d95cda5930d6fc1003392
396
package com.example.demo.repository; import com.example.demo.domain.Task; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface TaskRepository extends CrudRepository<Task,Long>{ @Override List<Task> fin...
24.75
66
0.782828
e371782cb85c69b68db60d73eae8abfac5872b19
473
package io.metadew.iesi.connection.host; import io.metadew.iesi.connection.HostConnection; /** * Connection object for a Windows host. This class extends the default host connection object. * * @author peter.billen */ public class WindowsHostConnection extends HostConnection { private static String type = "w...
24.894737
95
0.710359
86a813bc2260bc9f2868a3eca7b4ca2c14fbb5e3
25,793
/* * 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 ...
41.2688
120
0.677548
3ee2e6a0d4ed4bc7d28ea327df195dcf69305578
2,882
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.0...
28.534653
131
0.664816
013417ed83cd58216b9c68c159c6d9911be467b2
12,759
/** * 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...
38.663636
124
0.681558
60ff527659387b19623559995d97d92d6a6607ff
2,172
package io.vividcode.happytakeaway.restaurant.resource; import io.vividcode.happytakeaway.order.api.v1.PageRequest; import io.vividcode.happytakeaway.restaurant.api.v1.web.ConfirmOrderResponse; import io.vividcode.happytakeaway.restaurant.api.v1.web.FindOrdersResponse; import io.vividcode.happytakeaway.restaurant.api....
38.785714
93
0.771179
8a0ca52343e3eea97dbd3b107dab5fa05f08e858
1,477
package algorithm.implementation;/* * 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. */ import java.io.FileNotFoundException; import java.io.FileReader; import java.util.Scanner; /** * *...
25.912281
79
0.465132
5f944dffc41692b91426a501d97f2b0caf6f4563
549
package in.ac.sharda.pizzaapplication.data; import java.util.LinkedList; import java.util.List; public class GrayTokenizer { String text; char deli; public GrayTokenizer(String txt, char del) { this.text=txt; this.deli=del; } public List<String> tokenize() { List<String> list=new LinkedList<>(); ...
14.447368
43
0.622951
fba7914fefb40ab3ba61699e33d8f59b3bf3af48
379
package de.japkit.metaannotations; import java.lang.annotation.Documented; /** * Like {@link Case}, but with a condition that always evaluates to true. Should * be placed at last position within a Switch. * * @author stefan */ @Documented public @interface DefaultCase { String value() default ""; String val...
18.95
80
0.704485
7660d257c3b69210ff304ed25dde4dc6594a88d0
349
package org.endeavourhealth.core.database.dal.informationmodel; import org.endeavourhealth.core.database.dal.publisherCommon.models.VisionClinicalCodeForIMUpdate; import java.util.List; public interface VisionClinicalCodesIMUpdaterDalI { void updateIMForVisionClinicalCodes(List<VisionClinicalCodeForIMUpdate> co...
29.083333
103
0.859599
004f32cdb17c9988a59c0b81723e737bdf070eec
1,080
package DailyInterview.Day61_80; /** * https://leetcode-cn.com/problems/find-the-duplicate-number/ * Created by Elvis on 2020/5/26. */ public class Day78 { // 快慢指针 public int findDuplicate(int[] nums) { int slow = 0, fast = 0; do { slow = nums[slow]; fast = nums[nums[...
23.478261
62
0.387037
3d0c9eff83150a1a1fbb4907b875d1607a894a99
2,062
/* * Copyright 2011 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 ...
35.551724
114
0.739088
c2d748e5c9808ffabff354bd97017aa16698af29
17,659
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
35.892276
130
0.69415
97a58d5ddaf6ee2e4b5d473abc126b289be5f257
576
package com.hepengju.hekele.data.generator.gen300_string; import com.hepengju.hekele.data.generator.AbstractStringGenerator; import io.swagger.annotations.ApiModel; import lombok.Data; import org.apache.commons.lang3.RandomStringUtils; import org.springframework.core.annotation.Order; @ApiModel("随机字母数字生成器") @Data @Or...
28.8
74
0.776042
a25beb0cdf722ee8d49d0824aa37d67e322ef925
363
package br.com.elton.jsm.chamados.types; /** * Novo * Em Andamento * Encerrado * Cancelado * * @author Elton.Luiz * */ public enum StChamadoType { SELECIONE(0), NOVO(1), EM_ANDAMENTO(2), ENCERRADO(3), CANCELADO(4); private final int value; StChamadoType(int value){ this.value = value; } public i...
13.444444
68
0.658402
6657d70414ed674c60af8c177f1c053b79ef2ab9
809
package inc.morsecode.etc; public class Mutex { private boolean lock; public Mutex() { this.lock= false; } synchronized public boolean get() { return lock= (lock ? false : true); } public void release() { lock= false; } public boolean lock() { return lock(3); } public boolean lock(int ...
16.854167
87
0.635352
04a22ee7775c17bc1a9ffa1209252e16579618d7
2,151
package com.snake19870227.stiger.admin.entity.po; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import java.io.Serializable; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProp...
22.175258
59
0.642492
5193a26588570726448aee5629d158bdf41486d0
760
package org.xbase.android.view.progress; import android.view.View; import android.view.animation.AnimationUtils; public class Progress { public static void show(View root,int resID){ View findViewById = root.findViewById(resID); findViewById.setVisibility(View.VISIBLE); findViewById.setOnClickListener(new View...
30.4
104
0.768421
b1ab76bc9315eb6f4775f6f31593086b7b175bab
690
package com.ibm.casesdk.sample.edittask.utils; /** * Created by stelian on 26/10/2015. */ public class Constants { public static final String ENDPOINT = "http://ecm1.fws.io:9080/navigator/"; public static final String SOLUTION = "CRE Loans"; public static final String SOLUTION_PREFIX = "CRE1"; public...
38.333333
79
0.724638
53db38869b44643b04415df27ae8a9b69e89b9ea
544
package excel.comparison; import utility.ExcelUtility; import java.io.IOException; import java.util.ArrayList; import java.util.List; /** * Created by biantech on 2021/1/25. */ public class WorkbookData { public List<SheetData> getSheetsData() { return sheetsData; } private List<SheetData> she...
20.923077
68
0.705882
d3ab26e1eeccdd6a4b22ea18869fae0bfe67e9a9
2,933
package com.baeldung.swaggerkeycloak; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpMethod; im...
34.916667
109
0.721787
40a13f2a4ab55268fa1f77d5e67ff64e67a281fa
548
package me.kingtux.minecoin.storage; public enum SqlQueries { CREATE_TABLE( "CREATE TABLE IF NOT EXISTS `users` ( `id` INT NOT NULL AUTO_INCREMENT,`uuid` TEXT NOT NULL, `balance` INT NOT NULL, PRIMARY KEY (`id`) )"), getUser("SELECT * FROM `users` WHERE uuid=? LIMIT 1"), CREATE_USER("INSERT INTO `users` (...
26.095238
146
0.669708
4ba295a187d62d7b5f32ea3d7b088a19706697ea
5,841
package onlineShop.models.products.computers; import onlineShop.models.products.BaseProduct; import onlineShop.models.products.Product; import onlineShop.models.products.components.Component; import onlineShop.models.products.peripherals.Peripheral; import java.util.ArrayList; import java.util.List; import static on...
37.203822
122
0.630885
d6871dedf1f74111b19f4ae157383fc02699d501
1,956
package search.algo; public class BinarySearch { public static void main(String[] args) { int[] ints = {1, 2, 5, 7, 9, 12, 15}; System.out.println(binarySearch(ints, 3)); System.out.println(binarySearch(ints, 8)); System.out.println(binarySearch(ints, 9)); System.out.print...
32.6
105
0.607362
a52c705c465eb495d41436b14c1a8d8cc68460e1
6,517
package com.arematics.minecraft.core.server.entities.player.inventories; import com.arematics.minecraft.core.items.CoreItem; import com.arematics.minecraft.core.server.entities.player.CorePlayer; import com.arematics.minecraft.core.server.entities.player.inventories.helper.Box; import com.arematics.minecraft.core.serv...
40.987421
114
0.66994
c74ace8b1994cc3f30e52810b21d2a5932424636
2,439
package com.onpositive.text.analysis.syntax; import java.util.Stack; import com.carrotsearch.hppc.IntOpenHashSet; import com.onpositive.semantic.wordnet.AbstractWordNet; import com.onpositive.semantic.wordnet.Grammem.Case; import com.onpositive.semantic.wordnet.Grammem.PartOfSpeech; import com.onpositive.text.analysi...
27.715909
206
0.771218
2d1576bd1c866ce1aef753c7c530a6403bce0a90
996
package com.dyh.array; /** * 数组中只出现一次的数字:一个整型数组里除了两个数字之外,其他的数字都出现了两次。请写程序找出这两个只出现一次的数字。 * 思路:使用异或运算:任何一个数字异或它自己都等于0 * @author dyh * */ public class Solution { //num1,num2分别为长度为1的数组。传出参数 //将num1[0],num2[0]设置为返回结果 public static void FindNumsAppearOnce(int[] array, int[] num1, int[] num2){ if(ar...
20.75
77
0.572289
6b2fffba68e17e9da22ebfd3f9365cff2d12c75f
3,238
/* ******************************************************************************************************* Copyright (c) 2015 EXILANT Technologies Private Limited 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...
55.827586
208
0.725139
7eb7232039adb4a0812e3e290e9c2099d5dea6cf
3,074
package dev.snowdrop.buildpack.docker; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.mocki...
29.557692
65
0.71568
18a714984e9aeb69e7c87889a1f772e49174e865
229
package gameeditor.controller.interfaces; import java.util.HashMap; /** * * @author Pratiksha Sharma * */ public interface IControlManager { public void setLevelsControls( HashMap<String,String> newControlMap); }
16.357143
73
0.733624
5104378cde28ebb89e4aa4fa1bf7dbd8f299cc41
2,823
/* * Copyright 2018 Nokia Solutions and Networks * Licensed under the Apache License, Version 2.0, * see license.txt file for details. */ package org.rf.ide.core.testdata.model.presenter.update.tasks; import java.util.List; import org.rf.ide.core.testdata.model.AModelElement; import org.rf.ide.core.testdata.mod...
36.662338
108
0.672334
4c5f6aac071a4a3225054c143b2a311eebd8e922
3,440
/* * Copyright © 2019 Apple Inc. and the ServiceTalk project 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 requi...
44.675325
117
0.725
aa7fea267b32795f5ca176080c51a2990572cdb9
10,990
package lia.Monitor.JiniClient.CommonGUI.Gmap; import java.awt.geom.Point2D; import java.util.Enumeration; import java.util.Iterator; import java.util.Vector; public class ForceDirectedLayoutAlgorithm extends GraphLayoutAlgorithm implements Runnable { private LayoutChangedListener lListener; private Thread runner; ...
30.443213
98
0.579891
03c77d3f8b829827097b3884ee334032c7312b21
2,151
/* * 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.736842
68
0.734542
350c8a3e4fa8a673063d7b158879658db864f900
5,522
//Copyright (c) 2006, Adobe Systems Incorporated //All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // 1. Redistributions of source code must retain the above copyright // ...
39.163121
99
0.69377
1c3b1f59cbba30c82fa7b49f4077f5440a5e6025
1,403
package media.comenzi; import media.Catalog; import media.Item; import java.io.BufferedWriter; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; public class Save extends Catalog implements Command{ private String name; public Save(){ FileWriter...
30.5
86
0.54526
4c777e5ce8677176deff734e391ed9fe28a1a587
188
package com.ansorgit.plugins.bash.lang.psi.api.arithmetic; /** * User: jansorg * Date: 07.01.12 * Time: 21:23 */ public interface IncrementExpression extends ArithmeticExpression { }
18.8
67
0.739362
7eaa9db745945144e33e4f26a82149453118db56
417
package com.cyecize.summer.common.annotations; import com.cyecize.ioc.annotations.AliasFor; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD)...
24.529412
58
0.832134
2a9e1e787e1e659424cbdaeb394b05d3851f2337
5,013
/* * Copyright 2003-2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
27.543956
90
0.576302
857906d02419a3636164f3dbc5a0f21fa0c492ff
4,314
/* * Copyright 2018 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use...
29.958333
106
0.74293
6065660b30915ae56e373de3d937db466105b387
818
package es.uniovi.asw.model; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.junit.Test; public class EleccionTest { private Eleccion e = new Eleccion(); @Test public void testNombre() { e.setNombre("Eleccion3"); assertTrue(e.getNombre().equals("Eleccion3")...
22.722222
49
0.711491
1908f114b5ccb65bd6b1a900f5f55580774c3589
5,712
// The MIT License (MIT) // // Copyright (c) 2017 Tim Jones // // 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,...
46.819672
151
0.721814
448b3c80148fc9cbf9331ece1a98ad61ffe8f481
328
package monitoring.monitorings; import monitoring.App; import monitoring.model.MonitoringResult; import org.bson.Document; public interface HasMonitoringResult { MonitoringResult getResult(); static Document getDocument() { return App.client.getDatabase().runCommand(new Document("serverStatus","1")); ...
25.230769
85
0.759146
88ecef04c3ab4ddac8347257165ef7f79cabaf50
8,375
package com.alitag.mina_tools.filters; import java.io.IOException; import org.apache.mina.common.IdleStatus; import org.apache.mina.common.IoFilterAdapter; import org.apache.mina.common.IoSession; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.alitag.mina_tools.ArgumentValidator; import c...
22.273936
116
0.605851
63c003177b98ac7406de5c1acb50a9c049e62d6d
375
//,temp,CLIService.java,373,380,temp,CLIService.java,251,258 //,3 public class xxx { @Override public OperationHandle getTableTypes(SessionHandle sessionHandle) throws HiveSQLException { OperationHandle opHandle = sessionManager.getSession(sessionHandle) .getTableTypes(); LOG.debug(sessionHand...
28.846154
71
0.730667
31995e9d2e4519eebc4a735190e1fc0028b01fa6
11,481
package com.codebrig.journey.proxy; import org.joor.Reflect; import java.awt.*; import java.util.Vector; /** * Journey local proxy for CefBrowser. * <p> * Javadoc taken from: https://bitbucket.org/chromiumembedded/java-cef * * @author <a href="mailto:brandon.fergerson@codebrig.com">Brandon Fergerson</a> * @ver...
28.992424
103
0.622158
d6286e5eef4ffc54969d6c33732b5162a82ce98e
620
package com.asteroid.duck.pubquiz.rest.socket.events; import com.asteroid.duck.pubquiz.model.Team; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder; import lombok.Builder; import lombok.Data; @Data @Builder @JsonDeserialize(builder = Te...
28.181818
65
0.782258
22b650386d80bbc68b1ff6c07fa91f3f2a9bae38
4,455
package com.nobrain.android.permissions; import android.content.pm.PackageManager; import android.text.TextUtils; import android.util.Pair; import android.util.SparseArray; import java.util.HashSet; import java.util.Set; public class Result { /* * first = hasPermissions, second = noPermissions */ ...
31.595745
97
0.615937
12ae6b9986c59eb99dc998070714add2816f94fa
856
package com.funnyboyroks.real._2022_01_15; import java.io.File; import java.io.FileNotFoundException; import java.util.HashMap; import java.util.Map; import java.util.Scanner; import java.util.concurrent.atomic.LongAdder; public class Twelve { public static void main(String[] args) throws FileNotFoundException {...
26.75
73
0.587617
e3a33dc59c240f4eb73824f8586ff0738a33df1d
2,585
package com.b.c.m; public class f extends com.b.c.g<g> { public f(g paramg) { super(paramg); } public String getBitsPerChannelDescription() { Object localObject = ((g)this.a).getInteger(4); if (localObject == null) { return null; } StringBuilder localStringBuilder = new StringB...
26.927083
128
0.618956
31dbfe32868edfa674fc92c1f4a0c1b862d1622a
11,107
/* * Autopsy Forensic Browser * * Copyright 2016 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> 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 obtain a copy of the License at * * http://ww...
36.179153
132
0.632034
7de0befdc3f21bfe95565cc97a30728a50a5054b
19,781
package com.github.kislayverma.rulette; import com.github.kislayverma.rulette.core.data.IDataProvider; import com.github.kislayverma.rulette.core.engine.IEvaluationEngine; import com.github.kislayverma.rulette.core.exception.DataAccessException; import com.github.kislayverma.rulette.core.exception.RuleConflictExceptio...
40.785567
136
0.668571
3026d9b19807a24a92ae492e5897c1e69fa9973d
1,701
package fr.neamar.lolgamedata.tips.holder; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.nostra13.universalimageloader.core.ImageLoader; import fr.neamar.lolgamedata.R; import fr.neamar.lolgamed...
34.02
94
0.748383
43309f7fff0c47022db5d3c15ac54ec57b06f343
141
/** * * The classes in this package represent PetClinic's business layer. * */ package org.activejpa.examples.petclinic.model;
15.666667
69
0.680851
6ba722da2e8815024157defa1ba229a8310d6ae0
1,274
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved. * */ package com.sleepycat.persist.model; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang...
30.333333
79
0.734694
64597fb2e0db349881b8e46d0b6f6742b6b704c9
5,321
/** */ package br.usp.icmc.amenu.aMenu; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.eclipse.emf.common.util.Enumerator; /** * <!-- begin-user-doc --> * A representation of the literals of the enumeration '<em><b>Type</b></em>', * and utility methods for working with t...
21.199203
100
0.546326
feb1065b171837e3f243abe3a7c703e2e64715f3
3,753
package de.roessl.abc; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; import de.roessl.cnf.CNF3; import de.roessl.cnf.Fitness; import de.roessl.cnf.VariableAssignments; import de.roessl.optimization.MAX3SATOptimization; public class DiscreteABC implements MAX3SATOptimization {...
23.310559
87
0.732214
0cd2cd210d7d411a36739c8fc6cd80cd3c4700d2
3,481
package com.lxk.guava.collection; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import org.junit.Before; import org.junit.Test; import java.util.*; /** * @author lxk on 2017/2/28 */ public class SetsTest { private final List<String> big = ...
30.80531
101
0.589773
c22e570370aef071c2c5cb4b9ca4a22fe76c2471
8,021
package com.feiyue.controller; import java.io.IOException; import java.io.PrintWriter; import java.util.List; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.Http...
29.817844
120
0.684703
fb5cfde4e830b626aad9fa85bd58a9fbed281ae6
2,001
package com.saasovation.collaboration.infrastructure.services; import com.saasovation.collaboration.domain.model.Tenant; import com.saasovation.collaboration.domain.model.collaborator.Collaborator; import javax.ws.rs.client.Client; import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.client.WebTarget; import ...
26.328947
86
0.711644
5517cb9bc300525dca372e990241be8fda105999
772
package teshlya.com.serotonin.model; public class Comment { private String body; private String author; private String score; private String date; public String getBody() { return body; } public void setBody(String comment) { this.body = comment; } public String g...
16.782609
42
0.581606
bd960b44867822c53caa29d268ee5f1a9f13ef2a
1,252
package com.delivery.system.controller; import com.delivery.system.model.dto.ResponseWrapper; import com.delivery.system.service.TicketService; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.PageRequest; import org.springframework....
34.777778
88
0.728435
64420f2dd2eb3550a7cf17b0aeb3a92e651e0d5f
14,186
/* * generated by Xtext 2.23.0 */ package de.fraunhofer.ipa.componentInterface.serializer; import com.google.inject.Inject; import componentInterface.ComponentInterface; import componentInterface.ComponentInterfacePackage; import componentInterface.RosActionClient; import componentInterface.RosActionServer; import c...
37.430079
139
0.776399
1850586d0b9f1f888415205d81c85f79fe9c834d
1,452
package org.notima.api.fortnox.entities3; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; /** * * https://developer.fortnox.se/documentation/resources/voucher-file-connections/ * * @author Daniel Tamm * */ @XmlRootElement(name="VoucherFileConnection") public class...
22.6875
81
0.767906
a573380711498b5e5221588d8e40bff2de354713
2,232
package com.ruoyi.system.domain.survey; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; /** * 问卷填写对象 t_survey_answer * * @author 2y * @date 2021-03-21 */ publ...
20.477064
71
0.592294
0488a6989235896527ddb4a507ea09b7979fe0db
18,560
package com.geecommerce.checkout.model; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import org.codehaus.jetti...
29
119
0.658459
f0a672948d2957f03a60962cb2d0951cec2758b8
5,171
package com.apkola.muzei.lastfm; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.SparseIntArray; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.AdapterView; import android.widget.Spinner; import android.w...
36.935714
98
0.647844
3c141320faf0031b459f9fda8e6c3c4c818db995
360
package ca.wescook.nutrition.events; import ca.wescook.nutrition.utility.ChatCommand; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.event.FMLServerStartingEvent; public class EventServerStart { @Mod.EventHandler public void serverStart(FMLServerStartingEvent event) { event.registe...
27.692308
66
0.825
39c96721282fff5715d6715c12a054cb8a9057ca
2,750
package com.kf5.sdk.system.init; import com.kf5.sdk.system.entity.Field; import com.kf5.sdk.system.internet.BaseHttpManager; import com.kf5.sdk.system.internet.HttpRequestCallBack; import com.kf5.sdk.system.utils.SPUtils; import com.kf5Engine.api.KF5API; import java.util.Map; /** * author:chosen * date:2016/10/14 ...
27.5
99
0.658909
9c81081d5e7c04d41d53dedf4dae23106305081c
3,628
/* * Nocturne * Copyright (c) 2015-2016, Lapis <https://github.com/LapisBlue> * * The MIT License * * 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 with...
34.884615
110
0.699559
456e064b64c6b317f892c6dad26469e45d6e2de7
169
/** * <p> * Provides the classes for testing the compatibility of an implementation * against the {@code javax.rules} package. * </p> */ package org.jcp.jsr94.tck;
21.125
74
0.686391
6c0317544400b349549c379ee565e0130ec0ce4d
2,169
package ch.epfl.vlsc.truffle.cal.shared; import org.graalvm.nativeimage.ImageInfo; public class TruffleCal { public static final String FORMAL_NAME = "TruffleCal"; public static final String LANGUAGE_ID = "cal"; public static final String EXTENSION = ".cal"; public static final String ENGINE_ID = "tr...
37.396552
99
0.631166
7828e0dd494756e9086daffce0c2293e4cf78a91
3,777
/* * Copyright (C) 2021 Dynamia Soluciones IT S.A.S - NIT 900302344-1 * Colombia / South America * * 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...
41.505495
124
0.714324
4c4d481a67d9373bc149cc7c09797908ea3b2300
2,698
/* * Copyright (c) 2017. tangzx(love.tangzx@qq.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
38
147
0.761675
ae9b1556d3d09e484b019532fb5f4ef21be65394
1,318
package UnitTest.AlgorithmTest.backtrackTest; import Algorithm.backtrack.ArrayPermutation; import TestData.DataStructureTestData.stringANDlineTestData.slidingWindowTestData.SlidingWindowTestData; import org.junit.Test; import java.util.List; /** * @author liujun * @version 1.0 * @date 2021/1/19 * @author—Email l...
29.288889
104
0.609256
68f59ac0d03989ff65f1e7bf53a52d5eaecf7e80
1,914
/* * * Copyright 2016 Robert Winkler * * 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 la...
35.444444
106
0.716301