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
bf144d107f3c540f2e2c852db50466230e06c471
1,186
/* * Copyright: mperhez (2015) * License: The Apache Software License, Version 2.0 */ package org.mp.em4so.model.common; // TODO: Auto-generated Javadoc /** * The Class MessagePeer. */ public class MessagePeer { /** The id. */ String id; /** The role. */ String role; /** The url. */ String url; /**...
12.617021
52
0.53457
f89d5affddbe435d5ba2cb55dfdfd14747731a23
29,136
/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
25.335652
129
0.452052
95e1e56438b237d32014a81306f50eb53750ace6
1,645
package com.game.persistence.models; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import j...
19.352941
69
0.737386
8d85419f26c26921598d00076bf2b4775a9f9081
8,194
/** * * 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 ...
29.905109
86
0.572004
89bb2c64fb090cb9983ba1c82d12d0576c48f869
7,023
/* * acme4j - Java ACME client * * Copyright (C) 2015 Richard "Shred" Körber * http://acme4j.shredzone.org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * This program is distributed in the hope that it will be useful,...
39.677966
116
0.675068
1a18db4bdbae37e17b13f7383efe8bb4db12af74
799
package org.springframework.samples.petclinic.converter; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.convert.converter.Converter; import org.springframework.samples.petclinic.model.DiscountVoucher; import org.springframework.samples.petclinic.service.DiscountVoucherSe...
33.291667
93
0.768461
e00958bae8abc61a231f1ac40a39b99a54d5fc29
1,255
package com.erliotto.http.integration.core; import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.ResponseEntity; import org.springframework.web.client.HttpStatusCodeException; import org.springframewo...
40.483871
150
0.724303
e312dda5c94a1aef05780c8a01a977f46807357c
10,422
package com.zandgall.arvopia; import java.awt.Color; import java.io.File; import java.util.ArrayList; import java.util.Properties; import java.util.Scanner; import javax.mail.Authenticator; import javax.mail.Message; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Transport; imp...
38.175824
138
0.649779
3ad81b48e46602af342db94a70d91a833ff286ac
144
package madgik.exareme.master.connector; /** * @author alex */ public enum DataSerialization { ldjson, avro, summary, json }
12
40
0.645833
a7ea13232b2fee2ce3c82d4c0e7bcd289537c059
363
package com.wh.gulimall.order.dao; import com.wh.gulimall.order.entity.OrderItemEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 订单项信息 * * @author wh * @email 2583661719@qq.com * @date 2022-03-24 19:50:52 */ @Mapper public interface OrderItemDao...
20.166667
67
0.757576
a9b9a1d98597623ecc9141a51d4e25f26b690dae
6,785
/** * @FileName : PPCloudCallCommander.java * @Project : Presence Pro * @Copyright : Copyright (c) 2016 People Power Company. All rights reserved. */ package com.peoplepowerco.virtuoso.network; import android.os.AsyncTask; import android.os.Handler; import com.alibaba.fastjson.JSONObject; import com.peoplepow...
34.794872
107
0.642594
6d2080a16b25c5cd749004c7b94d5f74df7d3acb
9,011
/* * 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 ...
31.840989
80
0.601487
69e023410eb08dd20e0904e5e9e3fc367cca84a2
379
package com.lambda.ticketer.projects; import com.lambda.ticketer.users.User; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import java.util.Optional; @Repository public interface ProjectsRepository extends CrudRepository<Project, Long> { Optional<Pr...
27.071429
75
0.828496
4c6675e5ab787c22ca481780c8db0a657923d6b3
3,547
package game; import javax.swing.*; import javax.swing.border.EmptyBorder; import java.awt.*; import java.awt.event.KeyEvent; import java.util.LinkedList; /** * @author ve * @date 2019/7/17 13:58 */ public class Game { // 整体框架,包含主面板 static JFrame main; // 主面板,包含游戏面板跟菜单面板 static JPanel contentPane;...
30.059322
79
0.618269
5f53ae1c074a5191bc7b5c29e1e72646d8874e65
482
package com.vladsch.flexmark.ast; import com.vladsch.flexmark.util.ast.DoNotAttributeDecorate; import com.vladsch.flexmark.util.ast.Node; import com.vladsch.flexmark.util.sequence.BasedSequence; public class SoftLineBreak extends Node implements DoNotAttributeDecorate { @Override public BasedSequence[] getSeg...
24.1
75
0.738589
9e8e1002157f33d780d9fd65ae3e226a3193d13b
406
package net.earthcomputer.multiconnect.mixin.bridge; import net.minecraft.network.packet.s2c.play.ChunkDeltaUpdateS2CPacket; import net.minecraft.util.math.ChunkSectionPos; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.gen.Accessor; @Mixin(ChunkDeltaUpdateS2CPacket.class) public interfa...
31.230769
71
0.834975
8ee72772abbde2465db96780f7121ced23117c50
2,742
/**===================================================================================== FILE: DataToProject.java DESCRIPTION: class representing the dataset to be reprojected NOTES: --- AUTHOR: Antonello Andrea EMAIL: andrea.antonello@hydrologis.com COMPANY: HydroloGIS / Engine...
34.708861
88
0.666667
bbb27eb9c3817907ebca44ff819e3bc8e9ef33db
65,209
/* * Copyright Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags and * the COPYRIGHT.txt file distributed with this work. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
48.882309
283
0.590348
8036bff415d77fd7d68e40a41fb8934d5b85ce51
1,407
package se.mejsla.game; import java.util.stream.StreamSupport; import com.badlogic.ashley.core.Component; import com.badlogic.ashley.core.ComponentMapper; import com.badlogic.ashley.core.Engine; import com.badlogic.ashley.core.Entity; import com.badlogic.ashley.core.EntitySystem; import com.badlogic.ashley.core.Famil...
32.72093
105
0.759062
89c7d2c23ffdb3ec4a98aa1b397dfff522def49b
671
package com.perforce.team.ui.c.timelapse; import org.eclipse.osgi.util.NLS; public class Messages extends NLS { private static final String BUNDLE_NAME = "com.perforce.team.ui.c.timelapse.messages"; //$NON-NLS-1$ public static String CContextHandler_NoCProjectsFoundMessage; public static String CContextH...
31.952381
104
0.76155
758cdc774bf69a9c976b8098603018ba1909ec2a
551
package plugins.haesleinhuepf.implementations.generated; import plugins.haesleinhuepf.AbstractCLIJ2Block; import net.haesleinhuepf.clij2.plugins.PointIndexListToMesh; // this is generated code. See src/test/java/net/haesleinhuepf/clicy/codegenerator for details public class CLIJ2_PointIndexListToMeshBlock extends Abstr...
36.733333
95
0.780399
a21d56edbddb042545efef57a2615368d7d84bab
841
package concurrency.cookbook.chapter4; import java.util.concurrent.Callable; import java.util.concurrent.TimeUnit; /** * Created by lhao on 6/21/17. */ public class ReportGenerator implements Callable<String> { private String sender; private String title; public ReportGenerator(String sender, String ...
25.484848
132
0.63258
680dde53aaca84264706b583b12c6aa63633667a
2,646
package org.januslabs.test.services.model; import java.util.HashMap; import java.util.Map; import javax.annotation.Generated; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.a...
19.894737
83
0.676493
ab0f654c949082b02637bf71ac3aef740b897dfc
23,324
/* * ============LICENSE_START==================================================== * org.onap.music.mdbc * ============================================================================= * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. * ==========================================================...
30.134367
140
0.735594
944f931d4419957e7ac25c8c709600f4d9d66a88
1,115
package com.mrconst.testing.model; import android.app.Activity; import android.widget.TextView; import com.mrconst.testing.CustomRobolectricRunner; import com.mrconst.testing.MainActivity; import com.mrconst.testing.R; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.Robolectric; import...
27.195122
71
0.740807
fee4e7dfaa838a4ff4ffadb2d6f58e53510deb12
1,727
package org.jutils.jutilsfx.jservices; import java.net.URL; import java.util.ResourceBundle; import com.profesorfalken.jservices.JServices; import com.profesorfalken.jservices.model.ServiceInfo; import javafx.beans.property.SimpleStringProperty; import javafx.beans.value.ObservableValue; import javafx.collections.FX...
37.543478
119
0.765489
b9ebc2ebbc333c0a7dd37996d49dfed612e2b5df
1,090
package ooga.model.engine; import java.util.ArrayList; import java.util.List; import java.util.Map; public class MockBoard implements BoardFramework { List<List<GamePiece>> myGamePieces; public MockBoard(String gameType, List<List<Integer>> startingConfiguration){ myGamePieces = new ArrayList<>(); ...
26.585366
108
0.684404
a20aaa7a92b5e55c2c9ad5f836b390157f9669f1
2,795
package com.vmware.vim25; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for HostNetworkSecurityPolicy complex type. * * <p>The following schema fragment specifies the expected content contained with...
23.888889
111
0.598569
9f956a0eaf989e91f4b343d39e4a4652240f4fc0
2,137
/* * Copyright (c) 2015 iLexiconn * * 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, modify, merge, publis...
28.878378
68
0.74029
1ec4542f41caa7f19d4a5d061c931d0844951e21
2,431
package bappleton.vocal; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.Window; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; impor...
33.763889
110
0.660222
5f7c9a6ab6a93466a63e59a9b411e664f07ca741
909
package tech.gitpicard.jcalc; /** * Represents a literal in the stream of source text. Used * to parse an expression into a list of tokens which are built * into an abstract syntax tree. */ public class Token { private final TokenType type; private final String contents; /** * Create a new to...
23.307692
64
0.666667
ebcb8be9fb01757bb7ad5246fc4527148c50f893
17,696
package com.dotcms.api.system.event; import com.dotcms.repackage.com.google.common.annotations.VisibleForTesting; import com.dotcms.rest.ErrorEntity; import com.dotmarketing.business.APILocator; import com.dotmarketing.exception.DotDataException; import java.util.*; /** * This class encapsulates the logic to create...
62.751773
216
0.698745
4947181ea9a5472d4b4ab96f281af2779310b6f0
1,345
package com.tu.FinancialQuickCheck.db; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; public interface ProductRepository extends JpaRepository<ProductEntity, Integer> { /** * Checks if product entities for project entity and product area entity in db exist. * ...
37.361111
110
0.744238
57a8c85ffe3a90bff9e4d78182887a24354ec1ea
510
package com.globalcollect.gateway.sdk.java.gc.payment.definitions; public class ThreeDSecureResults { private String cavv = null; private String eci = null; private String xid = null; public String getCavv() { return cavv; } public void setCavv(String value) { this.cavv = value; } public String getE...
14.166667
66
0.686275
075ba304192178900bf148504ab7f7f34d1aacba
889
package edu.xust.bigdata.util; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.HttpClients; import org.apache.http.util.EntityUtils; import java.io.IOException; public class HttpUtil { /** * @Des...
27.78125
69
0.663667
ec3d2ea91b1f1f1fa0576f1fa83ba15f48052a8a
2,824
package io.jenkins.plugins.appcenter.task.internal; import hudson.model.TaskListener; import io.jenkins.plugins.appcenter.AppCenterException; import io.jenkins.plugins.appcenter.api.AppCenterServiceFactory; import io.jenkins.plugins.appcenter.model.appcenter.ReleaseUploadEndRequest; import io.jenkins.plugins.appcenter...
38.162162
130
0.691572
d56f02f16334a4fe6856086bb806872fd122237d
2,025
package org.barrak.immocrawler.utils; import org.barrak.immocrawler.database.document.ProviderEnum; import org.barrak.immocrawler.database.document.RealEstateTypeEnum; import org.barrak.immocrawler.database.model.ArticleDocument; import java.util.Random; public class ArticleDocumentFactory { private Random rand...
35.526316
166
0.735802
496b6b6d364bebf9b2dbba413b56fcaa760fbcf8
2,079
/** * Copyright (C) 2014 The logback-extensions developers (logback-user@qos.ch) * * 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 ...
38.5
118
0.702742
a1d93bc5563313efc90b0875fa63cd8272493ac6
1,500
package jsat.utils.concurrent; import static java.lang.Math.min; /** * * @author Edward Raff */ public class ParallelUtils { /** * Gets the starting index (inclusive) for splitting up a list of items into * {@code P} evenly sized blocks. In the event that {@code N} is not evenly * divisible by {...
34.090909
80
0.608667
57979ab560d66faded7569d47c3e2f4b29dbda26
58
package grid; public enum GridType { FINITE, TOROIDAL }
9.666667
22
0.741379
cbfde9fe88099ff129ad87974cc66a98bdc2a334
167
package com.cloud.legacymodel.communication.command; public abstract class StorageCommand extends Command { protected StorageCommand() { super(); } }
20.875
54
0.724551
83e36594adce9201c5bd5d3b673093d261dbe9a6
1,549
package com.example.androiduiactivity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; public ...
28.685185
83
0.708199
7cb8bd6b3d6d5b7c1bc756cec84855c18306084b
112
package AST; abstract public class Statement { abstract public void genK(PW pw, boolean putParenthesis); }
18.666667
61
0.758929
b5f82c4b0164d0a46fac66ab5b437ea41e8e8aa0
668
package js.web.webrtc; import js.web.dom.Event; import org.teavm.jso.JSBody; import org.teavm.jso.JSProperty; public interface RTCIceTransportStateChangedEvent extends Event { @JSBody(script = "return RTCIceTransportStateChangedEvent.prototype") static RTCIceTransportStateChangedEvent prototype() { t...
29.043478
80
0.76497
b856e08de8aae9feeb2dada25245463d2cdcbf15
1,071
package me.eglp.genius.entity; import me.mrletsplay.mrcore.json.converter.JSONConstructor; import me.mrletsplay.mrcore.json.converter.JSONConvertible; import me.mrletsplay.mrcore.json.converter.JSONValue; public class GeniusSongArtistInfo implements JSONConvertible { @JSONValue("id") private int id; @JSONValue...
17.274194
62
0.739496
d1f72715ec859311045a07aed76cd89b42382f48
404
package com.yin.springboot.mybatis.plus.server; import java.util.List; import com.yin.springboot.mybatis.plus.domain.User; import com.baomidou.mybatisplus.extension.service.IService; public interface UserService extends IService<User>{ int updateBatch(List<User> list); int batchInsert(List<User> list); ...
22.444444
59
0.774752
c0e0d6759b8087195fc7392b6f2f8191cfbf6f6a
412
package kotlinLabSci.math.plot.plotObjects; import kotlinLabSci.math.plot.render.AbstractDrawer; import java.awt.*; // interface that an object should implement in order to be plottable public interface Plotable { public void plot(AbstractDrawer draw); public void setVisible(boolean v); public ...
27.466667
70
0.73301
1c2954df0ae2e3ef85ea81dc9ce7531df671cad1
1,719
package org.httpsknighthacks.knighthacksandroid.BarcodeScanner; /* * Copyright 2019 Google LLC * * 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/...
38.2
100
0.744619
cfafd8331408834e491c62762c29fcbd318061b8
1,335
package ch.unibas.dmi.dbis.vrem.database.codec; import ch.unibas.dmi.dbis.vrem.model.Vector3f; import ch.unibas.dmi.dbis.vrem.model.exhibition.Exhibit; import ch.unibas.dmi.dbis.vrem.model.exhibition.Exhibition; import ch.unibas.dmi.dbis.vrem.model.exhibition.Room; import ch.unibas.dmi.dbis.vrem.model.exhibition.Wall;...
41.71875
71
0.689139
47279744435fe1a81e0d958760b8c7fff8077eb1
1,760
/** * This Source Code Form is subject to the terms of the Mozilla Public License, * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under * the terms of the Healthcare Disclaimer located at http://openmrs.org/license....
35.2
125
0.744318
ae00ee9175e287556a725e5d06024adf98f2d85f
5,127
package com.smashingmods.reroll.block; import net.minecraft.block.*; import net.minecraft.block.material.Material; import net.minecraft.entity.item.ItemEntity; import net.minecraft.fluid.FluidState; import net.minecraft.fluid.Fluids; import net.minecraft.item.BlockItemUseContext; import net.minecraft.item.ItemStack; i...
36.361702
180
0.692998
1b425c5c7d7e7d84959fa2daa4032f31312d91c5
472
package wang.ismy.leyou.registry; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; /** * @author MY * @date 2019/9/17 16:49 */ @SpringBootApplication @EnableEurekaServer...
26.222222
74
0.786017
765f506fa754f8dd917d378082242b22ea6af9b0
705
package net.cassite.rudp; /** * a class containing constants */ public class Constant { public static final String PACKET_TYPE_HANDSHAKING_REQUEST = "handshaking_request"; public static final String PACKET_TYPE_ACK_OF_HANDSHAKING_REQUEST = "ack_of_handshaking_request"; public static final Str...
44.0625
105
0.744681
4dd65bbdbb4c8cf53725d43b22cab79e86e5f8e7
154
/** * Contains the pieces of the "Swarm shared objects, like the Frequency Governer * @author David Boulette * */ package com.jacamars.dsp.rtb.shared;
25.666667
80
0.733766
939951bf209e51f06313c8ebb043e2dc784bab82
1,859
package cn.cocowwy.showdbcore.entities; import cn.cocowwy.showdbcore.exception.Error; import java.io.Serializable; /** * @author Cocowwy * @create 2022-03-03-20:47 */ public class Res<T> implements Serializable { private static final long serialVersionUID = -1491499610244551029L; public static final int ...
19.164948
71
0.563744
3aa0e8129acd2be163ea32b14cf88d8aef3324a9
912
package com.riiablo.table.annotation; import javax.lang.model.element.AnnotationMirror; import javax.lang.model.element.Modifier; import javax.lang.model.element.VariableElement; final class PrimaryKeyElement extends AnnotationElement<PrimaryKey> { static PrimaryKeyElement get(Context context, VariableElement eleme...
38
96
0.76864
1152045517dde6949993daa29c758959449aafd4
7,119
/* * 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")...
24.296928
64
0.661469
1eed470e70f45a10389977c52f462b8ef2359b6d
2,252
/** * Copyright 2018-2118 the original author or authors. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless requir...
31.71831
141
0.718917
3979d4856f0721b89f511e508e4fe63fdaef914d
1,596
package org.kkp.job; import lombok.extern.slf4j.Slf4j; import org.kkp.IDbQueueLock; import org.kkp.core.job.IJobHandle; import org.kkp.core.util.CoreUtil; import org.kkp.service.DbQueueService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; im...
28
121
0.599624
021e888bdf7acac1c92ad14ab4e2c8fdb37c6c32
333
package com.revature.GameShop.Services; import com.revature.GameShop.DAOs.HistoryDAO; public class HistoryService { private final HistoryDAO historyDAO; public HistoryService(HistoryDAO historyDAO) { this.historyDAO = historyDAO; } public HistoryDAO getHistoryDAO() { return history...
18.5
50
0.717718
518ee2dd577e3652293f4f9fb07e354277d93ea6
371
package com.demo.architect.data.model; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.io.Serializable; public class ResetPasswordEntity implements Serializable { @SerializedName("data") @Expose private VerificationEntity data; public Verific...
23.1875
58
0.760108
09376a20548b9fdfd4cb728a9b2095ff3ffb2764
21,524
/* * Copyright (C) 2015 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...
49.141553
118
0.514635
dd50426370e3f7bd507697b58df8ae1412226910
833
package com.leaprnd.observer4j; import java.util.function.Function; @SuppressWarnings({ "rawtypes", "unchecked" }) enum EmptyImmutableMap implements ImmutableMap { EMPTY_IMMUTABLE_MAP; public static <T> ImmutableMap<T> emptyImmutableMap() { return EMPTY_IMMUTABLE_MAP; } @Override public Object get(Synchrono...
18.511111
99
0.758703
d21f90af95429517fc4d113a3380719ab196dd79
808
package com.questnr.common; public interface CommunityRankDependents { int PERCENT = 1; // @Todo: Set thresholds after some time of release. Double MIN_THRESHOLD = Double.valueOf(50); Double USER_FOLLOWERS = ((double)70)/PERCENT; Double POST_ACTION = ((double)70)/PERCENT; Double LIKE_ACTION ...
32.32
56
0.705446
cac88f1655b155f860bc7e099d0e925a2cfa3414
1,903
package com.ngdroidapp; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Point; import android.graphics.Rect; import com.ngdroidapp.Objects.NgObject; /** * Created by Emrullah Şahin & Güven Boz & Bahadır Yalın & Yunus Derici on 3.07.201...
28.833333
116
0.62165
fbace447e5c194007099c80086bf714e946eb575
574
package de.wwag.hackathon.team2.service.mapper; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; public class DeskgroupMapperTest { private DeskgroupMapper deskgroupMapper; @BeforeEach public void setUp() { desk...
24.956522
69
0.710801
bd0df6a7b522697d495ce1d3ba2b97697c3737a0
613
package com.company; import java.sql.*; class DBConnect { static Connection getConnection() throws Exception { try { String driver = "com.mysql.cj.jdbc.Driver"; String url = "jdbc:mysql://localhost:3306/stokyonetim?serverTimezone=GMT"; String username = "root"; ...
26.652174
86
0.554649
be5eb7ffb6867973add7c986f1d2339564a97554
2,017
/* * 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 ...
34.186441
76
0.693109
cfa561c87c45bcd153f484f58604e6ba0849072c
3,952
package com.uniquid.register.provider; import java.util.List; import org.junit.Assert; import org.junit.Test; import com.uniquid.register.exception.RegisterException; public abstract class ProviderRegisterTest { protected abstract ProviderRegister getProviderRegister() throws Exception; @Test public void test...
24.7
100
0.75
ad4d0160ed84c325a9ffc84d626037fe8bce5699
21,254
package com.cds.comb.module; import android.Manifest; import android.app.ProgressDialog; import android.bluetooth.BluetoothGatt; import android.bluetooth.BluetoothGattCharacteristic; import android.bluetooth.BluetoothGattService; import android.content.DialogInterface; import android.content.Intent; import android.con...
39.359259
157
0.565964
bd1e756497d00da94c794b2cdeafd8c81a3adc4e
1,185
package net.chrisrichardson.ftgo.restaurantorderservice.api; import io.eventuate.tram.commands.common.Command; import java.util.Map; public class BeginReviseRestaurantOrderCommand implements Command { private long restaurantId; private Long orderId; private Map<String, Integer> revisedLineItemQuantities; pr...
26.333333
125
0.774684
17ba4aa3ab85225d3b2b70323cc012be71c7f0e3
5,392
/** * Copyright (C) 2016 Zalando SE (http://tech.zalando.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 requir...
39.072464
120
0.773924
1624ff94c59ff681cb33fe184d27ab1d6a802858
7,978
package com.kuahusg.weather.UI.activities; import android.app.ProgressDialog; import android.content.Context; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.Snackbar; import android.support.v7.widget.AppCompatAutoCompleteTextView; import android.support.v7.wi...
33.521008
141
0.672725
435924a9e997b0b877aa296dc0e86d8f503c29f8
7,353
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * -----------------------...
34.848341
105
0.754386
1c42b8d678ed5a458d5122cda7c47d3590a5ee3a
1,157
/** * Project MI+ * * Copyright (c) 2013, Syed Muhammad Humayun - smhumayun@gmail.com * * This project includes software developed by Syed Muhammad Humayun - smhumayun@gmail.com * http://www.smhumayun.com * * Licensed under the Apache License, Version 2.0 (the * "License"); you may not use this file e...
32.138889
91
0.702679
51e07fc80d80265abdeed6729f414cf7b1e51da1
5,769
package seedu.address.logic.commands.cardcommands; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static seedu.address.logic.commands.CommandTestUtil.DESC_ABRA; import static seedu.address.logic.commands.CommandTestUtil.DESC_BUTTERFREE; im...
43.37594
119
0.760617
21c4a507454d75a7cb6794e9809a223389b048a6
1,586
package model; import javafx.scene.paint.Color; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Stack; public class TurtleModelContainer { private List<TurtleModel> activeTurtles; private List<TurtleModel> turtleModels; private List<Integer> turtleIds; ...
25.174603
66
0.654477
a89e3bac740d836ab297275e6e544778467aea05
4,606
package com.game.pts3; import com.badlogic.gdx.*; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.audio.Music; import com.badlogic.gdx.audio.Sound; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.s...
31.547945
151
0.62766
893da0a9dfa52511edb5e121ddfed000c7ceb266
2,269
package org.legtux.g316k.colorswitch.view; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.util.Log; import android.view.GestureDetector; import android.view.MotionEvent; import org.legtux.g316k.colorswitch.Controller; import org.legtux.g316k.colorswitch.m...
28.721519
107
0.614368
9db68c26d6c81759274975a4263516563493172b
1,431
package scoreboard; import player.Player; public class ScoreboardFactory { public Scoreboard getScoreboard(Player playerOne,Player playerTwo){ if (isDraw(playerOne, playerTwo)) { return new DrawScoreboard(playerOne); } if (isAdvantageOrWin(playerOne, playerTwo)) { ...
36.692308
92
0.700908
a39ed48e239c8898b5f87b75193298de4664ab76
965
/* * 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 org.thespheres.betula.services; import java.io.Serializable; import java.lang.annotation.ElementType; import java.lang.annotat...
23.536585
79
0.718135
b0d2f3b2650ec3ed33ea343dba5484a78cf1da24
457
package com.ejlchina.json.cases; import com.ejlchina.json.JSONKit; import org.junit.Assert; public class TestToBean { static final String case1 = "{\"name\": \"Jack\",\"age\":20}"; public void test() { User bean = JSONKit.toBean(User.class, case1); Assert.assertNotNull(bean); Assert....
22.85
66
0.632385
4ef5e431a086b7db71fec29a383509145b43bb7a
303
package io.dataglitter.PostService.dto; import java.util.List; /** * Created by reddys on 22/12/2017. */ public class IdListDTO { private List<String> ids; public List<String> getIds() { return ids; } public void setIds(List<String> ids) { this.ids = ids; } }
15.15
42
0.617162
88194fbd33e42eb5566553f35d242d1e5c9c61dc
2,189
/******************************************************************************* * Copyright 2006, 2017 Jerry Huxtable, Martin Davis * * 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 * *...
32.671642
86
0.614893
b7dea44d677cf72c9bf2e4818c6b7fbe8f88e0a3
738
package vip.justlive.storm.cas.client.shiro.web; import static vip.justlive.common.web.base.ConfigProperties.ANY_PATH; import javax.servlet.ServletContext; import javax.servlet.ServletException; import org.springframework.web.WebApplicationInitializer; import org.springframework.web.filter.DelegatingFilterProxy; impor...
26.357143
98
0.800813
2356df396e1487d5ce7418ca81b7c1fa2f000646
11,577
package com.lovejoy777.rroandlayersmanager; import android.Manifest; import android.app.Activity; import android.app.Fragment; import android.content.ContentUris; import android.content.Context; import android.content.res.AssetManager; import android.database.Cursor; import android.net.Uri; import android.os.Build; im...
33.950147
98
0.557744
7c49b42b1df886aeec1b249b93d64587116ec9dd
1,874
// Targeted by JavaCPP version 1.5.7: DO NOT EDIT THIS FILE package org.bytedeco.skia; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.javacpp.presets.javacpp.*; import static org.bytedeco.skia.global.Skia.*; @Properties(inherit = org.bytedeco...
44.619048
81
0.732657
e2267a0103f656a47732f60dbe93b1328816c50b
2,278
import java.io.File; import java.nio.file.Files; import java.nio.file.Path; import java.util.Scanner; import java.util.stream.Stream; public class FileUtils { public static long calculateFolderSize(String path) { try { long size = Files.walk(Path.of(path)) .filter(...
28.475
121
0.498244
1990ce00e0e55a6986ac1becc5a945ef3087c559
15,013
/* * Hair2 License * * Copyright (C) 2008 Mike Hummel * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. ...
25.929188
80
0.655499
7a96c8ae24906032c2da70e7fe69528bbd6798ba
318
package net.thucydides.spock; import java.lang.annotation.*; import org.spockframework.runtime.extension.ExtensionAnnotation; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @ExtensionAnnotation(ThucydidesEnabledExtension.class) public @interface ThucydidesEnabled { String driver() default ""; }
24.461538
64
0.81761
3a857efbb99fc3c22dde194270b41a155e67eb32
3,629
/** * Copyright 2018 Iconic * * 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 w...
35.578431
105
0.656104
ecbba09a8675fad21204421773b461674e6d8d1f
7,738
package net.specialattack.forge.discotek.client.renderer.light; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.Minecraft; import net.minecraft.util.AxisAlignedBB; import net.specialattack.forge.core.client.RenderHelper; import net.specialattack.forge.discotek....
40.302083
120
0.641251
ad3c307d30cda67a7468dda953e73b7f44f73adb
367
package com.marcoferraioli.SD.Interface; import com.marcoferraioli.SD.Exception.EmptyException; import com.marcoferraioli.SD.Exception.FullException; public interface Queue<E> { public void enqueue(E element) throws FullException; public E dequeue() throws EmptyException; public E front() throws EmptyException; p...
28.230769
54
0.80109
a2b77ba8c7b348449530f0d8c1d66996e7c7c8e2
10,940
/* * $Id$ * * 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 * "Lice...
27.418546
95
0.602468
30a31d5fa252045f67d55e8d52e40e62b66e83bf
1,408
/* * Copyright 2019 Miroslav Pokorny (github.com/mP1) * * 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 applic...
30.608696
114
0.676847
c6c90a663f0333bcc427a64aa3505b05f1d8cd02
472
package app.packed.cli; import static java.util.Objects.requireNonNull; import app.packed.bundle.Wirelet; public final class CliWirelets { private CliWirelets() {} public static Wirelet args(String... args) { return new MainArgsWirelet(CliArgs.of(args)); } static final class MainArgsWirelet...
21.454545
56
0.669492
39a5a5df0f9671652e44cbb5f36dd1f9beada1a3
1,151
package models; import org.junit.Test; import static org.junit.Assert.*; public class PartTest { @Test public void getManufacturer() { Part testPart = setupCpu(); assertEquals("AMD", testPart.getManufacturer()); } @Test public void setManufacturer() { Part testPart = set...
20.927273
58
0.586447
ae93d379b5e2f16043e6e91302bb4a9de5901faf
4,667
package group.purr.purrbackend.service.impl; import group.purr.purrbackend.dto.CommitDTO; import group.purr.purrbackend.entity.Commit; import group.purr.purrbackend.entity.Visit; import group.purr.purrbackend.repository.*; import group.purr.purrbackend.service.StatisticService; import org.modelmapper.ModelMapper; impo...
33.099291
266
0.690808
e218870d3066e3c17ac9d4e2d77bb3f3db24ac1c
3,627
/* * Copyright 2011, 2012 Plant Breeding, Wageningen UR. * * 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...
39
87
0.708575
47121e43cfa31c213bf01a7c892edf21fff362af
6,515
package org.apache.continuum.web.test; /* * 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 Licen...
35.601093
115
0.679662