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
d66c2bd5a9e4aa14aa0f959c53e74e0b384e7893
2,152
/* * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary, for any purpose, commercial or non-commercial, and by any * means. * * In jurisdictio...
33.107692
111
0.701673
1e97d408b355222ad3d5b8268a8b9b3429d6e076
2,049
package com.vyw.rephotoandroid; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.Typeface; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.ImageView; import androidx.ap...
27.32
91
0.678868
9cc6bf2d956b4d32d1aa80aea40b18aff03edbcd
1,637
package sdk.chat.ui.custom; import android.content.Context; import android.view.View; import sdk.chat.core.dao.Message; import sdk.chat.core.rigs.MessageSendRig; import sdk.chat.core.session.ChatSDK; import sdk.chat.core.types.MessageSendStatus; import sdk.chat.ui.R; import sdk.chat.ui.activities.ChatActivity; import...
34.104167
155
0.736103
777c025ca7a6b841325a140c996709007ad97308
668
package shapes; /** * Created by George-Lenovo on 6/29/2017. */ class Rectangle extends Shape { private double height; private double width; @Override void calculateArea() { super.setPerimeter(this.getWidth() * this.getHeight()); } @Override void calculatePerimeter() { ...
17.578947
64
0.597305
78e17490b38cde31e15c577cef34fe38371afad8
7,505
/* * Software Name : ATK * * Copyright (C) 2007 - 2012 France Télé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 *...
33.207965
205
0.551233
8bd3f5fadb3dc8824fe0b5973f74a3b3c8f2bd86
2,036
/* * CardPay REST API * Welcome to the CardPay REST API. The CardPay API uses HTTP verbs and a [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) resources endpoint structure (see more info about REST). Request and response payloads are formatted as JSON. Merchant uses API to create payments, refun...
29.941176
531
0.707269
35b46cff4c6933f02a11594c31bd002f7ed902c7
1,028
/** * * Support classes useful for encoding and processing X.509 certificates. */ package org.bouncycastle.asn1.x509; public class Time extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice { public Time(org.bouncycastle.asn1.ASN1Primitive time) { } /** * creates a time obje...
21.87234
104
0.682879
ae6d9964aa95e29485b74d6bc8e9582cf3f86381
6,392
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
33.820106
97
0.709481
25122e15f6c14593084089176f662cedd54ed4b3
1,331
package cn.yinjiahui.group_purchase.service.impl; import cn.yinjiahui.group_purchase.service.ImageService; import com.qiniu.util.Auth; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.web.multipart.Mul...
32.463415
82
0.75432
ab28cdf2e2da347abb241ab560c73d2ae023e888
4,541
/* * Copyright (C) 2010-2017 Yuri Volkov * * 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...
36.918699
117
0.627395
4c53307c1f96f96dc4db0d5673f9093437327c19
255
package com.assl.samples.server.requests.exceptions; import java.io.IOException; public class ConnectionOpenException extends Exception { public ConnectionOpenException(IOException e) { // TODO Auto-generated constructor stub } }
19.615385
57
0.74902
906e7a8ae7e17a9f6a81adbe75dcfc7d1a4a72d9
3,106
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
31.373737
98
0.731487
84c47815e20c759633f817987ffcaaee81477a9b
377
package seedu.restaurant.model.sales.exceptions; //@@author HyperionNKJ /** * Signal that the ingredients required to make the item has not been specified in menu section. */ public class RequiredIngredientsNotFoundException extends RuntimeException { public RequiredIngredientsNotFoundException() { super...
31.416667
96
0.769231
870d8cfba8274e0291c0e5f57d689b5279226443
580
package cn.stylefeng.roses.system.modular.service.impl; import cn.stylefeng.roses.system.modular.entity.SysFileinfo; import cn.stylefeng.roses.system.modular.mapper.SysFileinfoMapper; import cn.stylefeng.roses.system.modular.service.SysFileinfoService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl...
27.619048
119
0.803448
0f3ce27a378fa43e21fd0aee1fdc172c8bc36e50
547
package com.people; import java.util.ArrayList; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; public class EnemyList { //单例模式 public CopyOnWriteArrayList<Enemy> enemyList = new CopyOnWriteArrayList<>(); private static final EnemyList instance=new EnemyList(); private EnemyL...
20.259259
80
0.680073
8c33b5f753b1bb23a9ab5cf6fa46e2dd44ff97dd
4,512
/* * web: org.nrg.dcm.id.DbBackedProjectIdentifier * XNAT http://www.xnat.org * Copyright (c) 2005-2017, Washington University School of Medicine and Howard Hughes Medical Institute * All Rights Reserved * * Released under the Simplified BSD. */ package org.nrg.dcm.id; import com.google.common.collect.Immutabl...
36.682927
140
0.646277
01096dd1ba9c52074d1d3f5f0428f75dfb3186f6
339
package it.aldi.app.service.user_management; import it.aldi.app.controller.rest.dto.response.StudentDto; import it.aldi.app.controller.rest.dto.response.TutorDto; import java.util.List; public interface UserManagementService { List<TutorDto> getTutors(Long organizationId); List<StudentDto> getStudents(Long ...
26.076923
59
0.80236
c62cefa250e40a0d04d67c0fb21e060511f887ff
5,204
package gov.va.med.imaging.exchange.storage.cache; import gov.va.med.GlobalArtifactIdentifier; import gov.va.med.imaging.exchange.business.Study; import gov.va.med.imaging.exchange.business.documents.Document; import gov.va.med.imaging.storage.cache.Cache; import gov.va.med.imaging.storage.cache.Instance; import gov.v...
31.92638
121
0.761337
1bb6a9656fea2466b2fac8f5fc4ad3373310e818
4,237
/** * Copyright 2019 Pramati Prism, 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...
41.135922
130
0.695539
aa6ccf5de273e0d8b8f08d36f99e88ed1597e1bb
4,444
package io.documentnode.epub4j.fileset; import io.documentnode.epub4j.Constants; import io.documentnode.epub4j.domain.MediaTypes; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.List; import io.documentnode.epub4j.boo...
36.727273
172
0.775653
fb04e3e0fee3fc5a55fdeeadea8289af1ede92ae
679
package com.zjx.multiple.data.sources.seata.mapper; import com.zjx.multiple.data.sources.seata.commons.BaseMapper; import com.zjx.multiple.data.sources.seata.domain.Account; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; @Mapp...
21.903226
62
0.69514
4f907ccfa522546969bedc4b4f41425ed684eea1
3,944
/* * * This file is part of the iText (R) project. Copyright (c) 1998-2017 iText Group NV * Authors: Kevin Day, Bruno Lowagie, et al. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License version 3 * as published by the Free Sof...
33.423729
140
0.729716
f2ec102b28cd81ba8204d573934c3f2d98d3db47
2,301
package io.github.jhoneagle.math.calculator; import io.github.jhoneagle.math.Kombination; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; public class ProbabilityCalculatorTest { private ProbabilityCalculator calc; @Before public void setUp() { calc =...
25.285714
68
0.621034
eaec2bb5d0728ad99c0b3a0d742d932153a6d91f
98
package com.handsome.nosnhoj.impl.Nosnhoj.NosnhojInstallation.comms; public class CommsView { }
16.333333
68
0.816327
69f7f151f2da5be44cfe486159b049bb656bff3f
24,413
/** */ package de.fhdo.lemma.data.util; import de.fhdo.lemma.data.*; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.util.Switch; /** * <!-- begin-user-doc --> * The <b>Switch</b> for the model's inheritance hierarchy. * It supports the call {@link #doSw...
36.766566
118
0.696473
3adfb1eb8e63fe064da97b0c54fd480e4e8d1854
1,450
package cn.codethink.xiaoming.event; import cn.codethink.common.util.Preconditions; import cn.codethink.xiaoming.Bot; import cn.codethink.xiaoming.contact.*; import cn.codethink.xiaoming.message.compound.CompoundMessage; import lombok.Data; /** * @author Chuanwise * * @see cn.codethink.xiaoming.event.GroupMessage...
24.576271
133
0.675862
823d051d26601c70c202d0832d70a63a548663c0
253
package io.recode.decompile; import java.io.IOException; // TODO: Not a transformation public interface DecompilerElementDelegate<R> { void apply(DecompilationContext context, CodeStream codeStream, int byteCode, R result) throws IOException; }
23
111
0.794466
164d093002ebec03d03f6c75fed144602510bffa
12,272
/* * 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 ...
46.484848
126
0.625896
2504433d224fc164f07537b7bb9898f042870f75
409
package design.boilerplate.springboot.model; import lombok.*; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import java.sql.Timestamp; @Getter @Setter @Entity @Builder @NoArgsConstructor @AllArgsConstructor @Table(name = "URL") public class Url { @Id private St...
16.36
44
0.770171
cf98d31d70975e7a07c1c2bf596fe6edad416f64
3,556
package com.blogspot.abhiandroidknowledge.customlogger; import android.Manifest; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.util.Log; import android.widget.Toast; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.a...
38.236559
208
0.681384
995471318602d591cb45f58e0a034b30e3c3e4ee
2,007
package org.springseed.oss.minio.config; import java.time.Duration; import org.springframework.boot.context.properties.ConfigurationProperties; import lombok.Data; /** * 属性对象 * * @author PinWei Wan * @since 1.0.0 */ @Data @ConfigurationProperties("springseed.oss.minio") public class OSSMinioProperties { p...
23.337209
86
0.578974
780083e0e2a788e642c30681080d5220e0dd4a30
637
import java.util.List; import java.util.Map; /** * Graph_ * Used to store connected data with vertices being the entities (i.e. people) * and the edges being the relationships (i.e. friendship) */ public class Graph_ { Map<Vertex, List<Vertex>> adjacencies; } // Vertex, the entity /** * Vertex */ class Vertex...
17.694444
78
0.66876
6621e12d3abb4a4a4c9bbef374db57465168f133
2,071
package com.stevekung.fishofthieves.utils.forge; import com.stevekung.fishofthieves.forge.core.FishOfThievesForge; import com.stevekung.fishofthieves.registry.FOTItems; import net.minecraft.advancements.CriteriaTriggers; import net.minecraft.advancements.CriterionTrigger; import net.minecraft.sounds.SoundEvent; import...
36.333333
190
0.731048
e229f0670e316a822fb61a776f6299bc1daa449b
9,560
/* * 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 hr.algebra; import javax.swing.ImageIcon; import hr.algebra.model.User; import hr.algebra.utils.MessageUtils; import java.util...
42.114537
213
0.654603
10312522487cf9dd9a4b570c922c885ad95483bf
850
package cana.codelessautomation.api.resources.testcase.service.errorcodes; import cana.codelessautomation.api.commons.dtos.BaseErrorCode; import javax.enterprise.context.ApplicationScoped; @ApplicationScoped public class TestCaseErrorCode extends BaseErrorCode { public String getTestCaseNameDuplicate() { ...
34
90
0.716471
30b3386c84556bf03e2354f2851b4f4f45b41b7c
836
package com.changhong.cloud.javarestsample.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springfram...
30.962963
109
0.764354
bcfedd46b140540b248397519e228b81b50c110e
2,530
/***************************************************************** * 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 * ...
34.189189
66
0.635968
3702a185165174078c79beb26f9d3d5c848ad498
3,337
package com.wzl.wzl_vanda.vandaimlibforhub.binder; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.bumptech.glide.Glide; import com.rockerhieu.emojicon.EmojiconTextView; import com.wz...
35.88172
99
0.649386
99fa4d3b699e3b7a8b4aa65658441a55378ddf7a
1,737
package com.example.sample.adapter; /** * Created by Abu Muhsin on 26/09/2018. */ import android.annotation.SuppressLint; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.EditText; impo...
24.464789
108
0.693149
e030b13bb0e275a9d4498578356e035b69d3c284
1,335
package com.delphix.masking.initializer.maskingApi.endpointCaller; import com.delphix.masking.initializer.Constants; import com.delphix.masking.initializer.Utils; import com.delphix.masking.initializer.pojo.Environment; import com.delphix.masking.initializer.pojo.EnvironmentList; import java.util.ArrayList; import lo...
31.785714
113
0.71236
b255e86d666cf0897b10dfaa2426c4e64a96e319
81
package pizzeria.gui.panels; public interface Observer { void update(); }
10.125
28
0.703704
0559067aa8a50a6d7f1dcdc48c37fa687b52d0ca
523
package edu.zipcloud.cloudstreetmarket.core.services; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.domain.Specification; import edu.zipcloud.cloudstreetmarket.core.entities.Product; import edu.zipcloud.cloudstreetmarket.core.e...
40.230769
127
0.816444
bb740ad025f539f9fe8ce3706b9a265ed5a6f757
424
package com.solutis.clonaria.replicante.exception; public class CloneExceptions extends RuntimeException{ public CloneExceptions() { super(); } public CloneExceptions(String message, Throwable cause) { super(message, cause); } public CloneExceptions(String message) { ...
24.941176
62
0.648585
8652c4e89affa9ea2cfed781706b3e8d6b5deac6
14,757
/* * Copyright 2017 Tran Le Duy * * 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 ...
30.116327
153
0.565765
4fd1ae2984c56a0e8a54ca26fc3b61b829de0cec
637
/** * Write a description of class Pri here. * * @author (your name) * @version (a version number or a date) */ class Pri extends Thread { public void run() { System.out.println("Running thread name is:"+Thread.currentThread().getName()); System.out.println("Running thread priority i...
24.5
97
0.572998
5647e2f0795f713c646318bf1ec2add40980656d
1,800
package com.example.algorithm.primaryalgor; //桶排序和基数排序:https://blog.csdn.net/u011863767/article/details/53912543 基于桶式排序的基数排序 public class RadixSort { public static void main(String[] args){ //声明要排序的数组 int[] data = {73,22,93,867494,43,55,123,8978,10000,14,28,65,39,81,33,100,567}; //调用基数排序函数 ...
31.034483
86
0.434444
e76c038f42269c4ae240e136dcbe9b9bd9237527
968
package io.ctlove0523.spring.filter.authentication; import java.util.HashMap; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import javax.annotation.PostConstruct; import org.springframework.stereotype.Component; /** * @author chentong */ @Component public class UserService { /** * ...
23.609756
89
0.666322
93118ba7f311c15fbdaf7d1118af202ecf139d4b
4,421
/* * Copyright 2021 The caver-java 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 agr...
39.828829
185
0.736937
10c729f81de735d8fb9764304e7dbba1bc4e4521
226
package cn.myperf4j.base.metric.exporter; import cn.myperf4j.base.metric.JvmClassMetrics; /** * Created by LinShunkang on 2018/8/21 */ public interface JvmClassMetricsExporter extends MetricsExporter<JvmClassMetrics> { }
20.545455
83
0.79646
10c9622cf460209e063932691b3686d50e883844
262
package eu.drus.jpa.unit.spi; import java.util.List; import java.util.Map; public interface PersistenceUnitDescriptor { String getUnitName(); String getProviderClassName(); Map<String, Object> getProperties(); List<Class<?>> getClasses(); }
17.466667
44
0.717557
37130b668c7f220aac68c219fcf11c8c2e6b20b9
1,970
/* * Copyright (c) 2002-2015 mgm technology partners GmbH * * 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 ap...
28.550725
91
0.746701
56cdda760cd008d11796fabcb3c4ffe0bdaf5617
3,217
package com.l134046zain.mentalhealthcare; import android.app.Activity; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; public class Write_Comment extends Activity { Button cancel; Button submit;...
41.779221
292
0.617967
e9f847aab9ea4e59e13fcddb546bea56bcb9dc8a
1,798
package de.ecspride.reactor.poc.services; import android.accessibilityservice.AccessibilityService; import android.accessibilityservice.AccessibilityServiceInfo; import android.app.Notification; import android.util.Log; import android.view.accessibility.AccessibilityEvent; import de.ecspride.reactor.poc.model.Message;...
28.09375
81
0.788654
6dc6710f9929ec4800719f2773b3c9e806b27069
1,826
package com.ppj.design.builder; import lombok.Getter; import lombok.Setter; import lombok.ToString; /** * 构造器模式 * @author ppj * @since 2021/4/4 15:29 */ public class BuilderPatternDemo { public static void main(String[] args) { Product product = new Director<Product>(new ProductBuilder()).build("f1",...
22.54321
94
0.571742
7ddca28678c2327a8d6a9ae946fc656f9621332c
1,856
/* * Copyright 2016 Red Hat, 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 ...
25.777778
75
0.639009
c482a983f09c25c729cb2e68b5165b9cd2526953
1,693
package daysgame; /** * Harit Kapadia, Jack Farley * Ms. Krasteva * 2019/June/02 */ /** * Creates a tree block */ public class BlockBed extends Block implements Interactable { /** * Class constructor, calls the block constructor */ BlockBed() { super("img/bed_small.png"); } /** * @returns true if ...
21.705128
69
0.633786
2afbd3b8a91a56872abd2c07fe1634909ac73985
2,748
/* * The MIT License (MIT) * * Copyright (c) 2016 Julia * * 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, ...
25.444444
81
0.692868
7a6eab53babf6691bc659a51cce1fdc89620c3fe
21,024
package com.challengeandresponse.imoperator.agent; import java.util.*; import org.jivesoftware.smack.*; import org.jivesoftware.smack.filter.PacketFilter; import org.jivesoftware.smack.packet.*; import org.jivesoftware.smack.provider.ProviderManager; import com.challengeandresponse.appstack.*; import com.challengean...
39.005566
176
0.732449
3c167a4f5f7b936680223e12555ef20ed54d8f0f
919
package com.caidaxing.javaCommunity.utils; import com.caidaxing.javaCommunity.common.ListNode; /** * 公有方法 */ public class LinkedCode { public static ListNode parseListNode(int[] values) { ListNode head = null; ListNode tail = null; for (int value : values) { ListNode node =...
22.414634
56
0.477693
bc0606f3a054a9b9a3285f0a0b689e6d111785a6
796
package servlet; import com.google.firebase.database.*; public class fbdbrCourse extends fbdbr{ private Course tempCourse; //Constructor public fbdbrCourse (String certificate, String url){this(new fbdbw(certificate, url));} public fbdbrCourse (DatabaseReference ref){super(ref);} public fbdbrCour...
30.615385
89
0.636935
8b986e64b7a587ff6c0e98a307ae304a4bf756bd
216
package com.nrkt.userservice.repository; import com.nrkt.userservice.domain.User; import org.springframework.data.jpa.repository.JpaRepository; public interface UserRepository extends JpaRepository<User, Long> { }
27
67
0.833333
6bb2b4878ee2faea3c1ff42325be70b80b48c779
5,708
package com.data.extract; import com.data.commands.BaseCommands; import com.data.misc.ExecuteCommands; import com.data.misc.Utils; import java.io.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Set; /** * Created by mohammed.rampurawala on 5/20/2016. */ public class...
34.804878
126
0.595655
fbca0e1aa4a114dca0bd19a578c85ef4e3deb605
1,116
package models; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import j...
18.295082
49
0.709677
0a423636077dc4847b63285dc08e3b2e328a7cf8
3,024
/* * Copyright (c) 2011-2019 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 * which is available at https:...
34.758621
121
0.689153
c3a6dbe0acfd763521449be9545eb597e83260ef
2,482
package beaform.entities; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.junit.Test; @SuppressWarnings("static-method") public class BaseIngredientTest { @Test public void testAmount() { final BaseCompound water = ne...
34.472222
96
0.736503
8a686e6dda19215d5148d4d0cd7d546aaa0322f9
3,601
/** * 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 under the Lic...
39.571429
131
0.703138
8deadfa50e356d44ad4be935c38d60471d6a1b12
59
package annotatedPkg; public class ClassInAnnotatedPkg { }
14.75
34
0.830508
820ca5a08b5daa0c8b16ba5770bf2a8bea8a325b
1,888
package com.amt.schedule.impl; import com.amt.schedule.entities.Course; import com.amt.schedule.entities.Role; import com.amt.schedule.entities.User; import org.junit.Test; import static org.junit.Assert.*; public class CourseDAOTest { @Test public void creer() { } @Test public ...
25.173333
67
0.516949
2c3597824c91c9bdf8002f26fec6d5067ced835e
1,975
package br.com.conductor.heimdall.core.converter; /*- * =========================LICENSE_START================================== * heimdall-core * ======================================================================== * Copyright (C) 2018 Conductor Tecnologia SA * ==============================================...
30.384615
100
0.567595
48e30c5865b7c73680be0c975a15d16dd3e8c962
3,774
package org.concurrent_actors; // Or "Instrumentation" Actor. sue me. import akka.actor.*; import akka.routing.*; import akka.routing.Broadcast; import scala.concurrent.duration.FiniteDuration; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.concurrent.TimeUnit; public ...
30.435484
148
0.575252
7516285d5c6b46670ec476491393ed8a0a0ec995
6,339
package com.logicaldoc.util.io; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import ...
28.683258
106
0.661145
3c318eb222cb87bfa4dd76b882afa0f511b644bc
284
/** * */ package org.pjay.designpatterns.factory.example2; /** * @author Vijay * */ public class Ak47 extends Gun{ public Ak47() { setGunName("AK 47"); setAmountOfDamage("75%"); setAttackDistance("350 meters"); setNumberOfBulletsLoaded(47); } }
14.2
50
0.612676
50b74e57bd22fd7f93afb0f93a04dd0fa746f213
618
package test.schema2xd.suite; import org.junit.jupiter.api.Test; import test.schema2xd.AbstractSchema2XdTransformSuite; import java.util.Arrays; import java.util.Collections; /** * @author smid * @since 2021-05-28 */ public class NamespaceSchema2XdTest extends AbstractSchema2XdTransformSuite { public static ...
22.888889
77
0.692557
e002950674cc7c7eb75a2ce9bb74882974a5c359
4,647
package com.example.g3; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.view.View; ...
44.682692
112
0.584463
b6f7e45c53352a6b3ac67420477d99c155837833
891
/* *{ * Copyright (C) 1996 - 2000 Active Intellect, Inc. * All Rights Reserved. *} */ package com.ai.data; public class VectorIterator implements IIterator { int curIndex = -1; java.util.Vector m_v; public VectorIterator( java.util.Vector v) { ...
21.214286
52
0.410774
2c8af1ca362eca0654b8030a4f16cd46c9a98c66
290
import java.util.Deque; import java.util.Iterator; import java.util.LinkedList; public class ComputeBuildingsWithView { /* 8.6 */ public static Deque<BuildingWithHeight> examineBuildingsWithSunset(Iterator<Integer> sequence) { return new LinkedList<>(); } }
18.125
100
0.706897
208cc5786d1f63949452fa8a95191783ebc66293
404
package apis; /** * Created by joantsomw on 6/17/17. */ public class ServiceCentre { private String postalCode; private ServiceCentreDatabase database; public ServiceCentre(String postalCode, ServiceCentreDatabase database) { this.postalCode = postalCode; this.database = database; }...
20.2
77
0.690594
5a9f210b8457354ab004b20de7d06a27f6ff8872
686
package com.ahmetkaanmonun; public class Main { public static void main(String[] args) { boolean isLeapYear = isLeapYear(1924); System.out.println(isLeapYear); } public static boolean isLeapYear(int year){ if(year>=1 && year<=9999){ if(year % 4 == 0)...
14.595745
48
0.368805
f91a135fd6549b23436260e7889142adfd40de3e
877
// Package package org.centerom.almistack.ui.dialogs; // Imports import org.eclipse.jface.dialogs.Dialog; import org.eclipse.swt.graphics.Rectangle; import org.eclipse.swt.widgets.Shell; public class CenteredDialog extends Dialog { // Defatult serial Id private static final long serialVersionUID = 1L;...
26.575758
83
0.685291
6f1918caa0c4713bb24445c3c071646fd7601b99
1,012
package nl.davinci.davinciquest.Helper; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; /** * Created by nicog on 11/15/2016. */ public class StreamReader { //turn the response from the server into a readable string public static Stri...
27.351351
67
0.546443
9872e77c11f4cbbb1e2917fb9094c20dd5bc4e07
395
package com.zerdaket.agent.permission.request; /** * Created by zerdaket on 2019-11-22. */ public class InstallRequester implements Requester { private RequestFragment mRequestFragment; InstallRequester(RequestFragment requestFragment) { mRequestFragment = requestFragment; } @Override ...
20.789474
55
0.716456
1dd1df142d99239388b93fc2612387b16d024c34
1,787
package club.cybet.utils.file_utils; import club.cybet.domain.db.enums.FileWriters; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.List; /** * cybet-api (club.cybet.utils.file_utils) * Created by: cybet * On: 16 Aug, 2018 8/16/18 12:47 PM **/ public class ScedarFileW...
24.819444
93
0.559597
77b8aec685d98251d77a05636b6cd09a4df1c848
3,024
package com.spotinst.sdkjava.model.api.aws.managedInstance; import com.fasterxml.jackson.annotation.JsonFilter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.spotinst.sdkjava.client.rest....
24.387097
84
0.650132
c4b29a9784b5e1b66f3115e5ff2e169bec084dbd
18,984
package org.drools.agent; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import org.drools.CommonTestMethodBase;...
38.507099
166
0.608618
60dc0c55e14f9df6866380e8612bf22809c6ab83
4,730
/* * Copyright 2016-2026 Rogério Lecarião Leite * * 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.5
76
0.666385
b70ef0b63e0a98cc56a6f775d75fea5add94e07e
602
package jp.co.thcomp.http_abstract_layer; import java.io.IOException; import java.io.OutputStream; public class StringRequestParameter extends RequestParameter { private String mValue; public StringRequestParameter(String name, String value) { super(name); mValue = value; } @Override...
20.758621
62
0.637874
49bd068a67e122bb111b8262c0ae76339a37acd4
1,432
package frc.robot.subsystems; import com.revrobotics.CANSparkMax; import com.revrobotics.CANSparkMaxLowLevel.MotorType; import edu.wpi.first.wpilibj.DoubleSolenoid; import edu.wpi.first.wpilibj.DoubleSolenoid.Value; import edu.wpi.first.wpilibj.PneumaticsModuleType; import edu.wpi.first.wpilibj.motorcontrol.MotorContr...
29.833333
98
0.76257
82f2d848e67e722f4f2f5485289598a6a9b3d5dc
2,539
package jade.domain.FIPAAgentManagement; /** This interface contains all the string constants for frame and slot names of exceptions defined in the <code>fipa-agent-management</code> ontology. */ public interface ExceptionVocabulary { /** A symbolic constant, containing the name of this onto...
43.033898
93
0.764868
029b869c7d8af776ae15725f029323452ed294c0
3,148
/* * Copyright (c) 2018-present, RxValidation 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 by appli...
33.489362
113
0.677573
3e1a1e02e6099ad58a462f3475348556c8c9aead
1,516
package avatar.game.entity.npc.spawn; import avatar.Avatar; import avatar.game.entity.npc.NPCVillager; import avatar.game.quest.quests.test.DemoQuest; import avatar.game.user.UserPlayer; import avatar.util.misc.Qualifier; import avatar.util.text.Messager; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import o...
36.095238
159
0.729551
7c6cae7701a0258cc4b9263f2221019e6db71c52
3,979
package org.infinispan.jcache; import javax.cache.CacheException; import javax.management.MBeanServer; import javax.management.MalformedObjectNameException; import javax.management.ObjectName; /** * A convenience class for registering CacheStatisticsMBeans with an MBeanServer. * * @author Greg Luck * @since 1.0 ...
33.436975
163
0.632068
84fc072c08782927aabaa5bd3ce23418fda786fa
800
/* 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.util.pojo.descriptor.base; import java.lang.reflect.Field; import java.util.Iterator; import net.sf.mmm.util.collection.base.EmptyIterator; /** * This is a dummy implem...
23.529412
117
0.72125
1a17a808aa63d2acbfe697af193e09c92146c23d
5,280
package com.site.steel.core.dao; import com.site.steel.core.entity.User; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.InsertProvider; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Update; import org.apa...
42.580645
211
0.596402
59a73ac6ce1a3a6a0af6a10ed8e2875f62538b90
761
package org.am.web.entity; import java.sql.Timestamp; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "users") public class UserEntity...
25.366667
91
0.796321
4382340e12b4bbcf09e953cc92df6fe1dac6d50f
1,161
package CodeJudge; import java.io.*; import java.util.*; /* class Node{ Node next; int data; public Node(){ } public Node(int indata){ this.data=indata; } } class Stack { Node head; public Stack(){ head = new Node(); } public void push(int e) { Node temp = head; head = new...
17.328358
99
0.613264
0cb14b5ce9b88db1a14885aeddea22025c5152b8
894
package br.com.mercadolivre.dto.response; import br.com.mercadolivre.dto.request.CategoriaDTORequest; import br.com.mercadolivre.model.Categoria; import org.springframework.data.domain.Page; public class CategoriaDTOResponse { private Long id; private String nome; private Categoria categoria; public...
23.526316
94
0.691275
f64dfadb6e85844259fcae31c42f9451f37cb9cf
3,981
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2003-2017 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
36.861111
81
0.696307
ca7b40c2be056885fbd448f4f49768096aa76d12
1,877
package com.padcmyanmar.tedtalk.data.model; import com.padcmyanmar.tedtalk.data.vo.TalksVOs; import com.padcmyanmar.tedtalk.events.SuccessGetTedTedEvent; import com.padcmyanmar.tedtalk.network.RetorfitDataAgentImpl; import com.padcmyanmar.tedtalk.network.TedTalksNewsDataAgent; import org.greenrobot.eventbus.EventBus;...
29.328125
94
0.717635
c9a59b5f695206a82969d64f0c7f90d759c04db9
11,926
import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.Arrays; import javax.swing.BorderFactory; import javax.swing.JButton; import acm.gui.IntField; import acm.gui.TableLayout; import acm.gui.TablePanel; import acm.program.Progra...
25.482906
109
0.557689
8621112be3044bded210343fa01ce26a223b38b3
3,231
package org.elasticsoftware.sip.codec; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffers; import java.util.List; import java.util.Map; import java.util.Set; /** * An SIP message which provides common properties for {@link SipRequest} and * {@link SipResponse}. * * @author ...
25.642857
86
0.628907