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
e43ef21296449dc5b8a14cfb2b330f3e990af088
875
/******************************************************************************* * Copyright (c) 2018 Politecnico di Torino and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribu...
46.052632
92
0.601143
69b241a106a546f13a4829a91dbf3fe0df7c33e0
78
@tech.jhipster.lite.SharedKernel package tech.jhipster.lite.generator.readme;
26
44
0.846154
739f4ac5a4d24f8b956cfc2c987be5baf603cddc
1,238
/* * Owned by aizuddindeyn * Visit https://gitlab.com/group-bear/mouse-automation */ package com.aizuddindeyn.mouse; import java.util.Timer; /** * @author aizuddindeyn * @date 11/7/2020 */ class MouseInstance { private static final MouseInstance INSTANCE = new MouseInstance(); private Timer timer; ...
21.344828
97
0.606624
dda7438b222f1c69bcbaaf11cd9db1488df3a398
131
package examples.ontology.ontologyServer; import jade.content.AgentAction; public class GetTime implements AgentAction { }
18.714286
46
0.793893
205800734cecdea2b57044dbdb2beb3570975fae
486
package com.autohome.frostmourne.monitor.model.message.ding; import java.util.List; public class DingAt { private Boolean isAtAll; private List<String> atMobiles; public Boolean getAtAll() { return isAtAll; } public void setAtAll(Boolean atAll) { isAtAll = atAll; } pub...
18
60
0.650206
98dd5c9fa48207a373fd28691d928252a8d8e577
967
package com.micro.model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Index; import javax.persistence.Table; import org.hibernate.annotations.GenericGenerator; import lombok.Data; /** *...
22.488372
57
0.715615
afea47e00ca1417e885f3de96e575f3920e287b4
10,365
package br.com.chatredes.controller; import java.io.IOException; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.List; import java.util.Observable; import br.com.chatredes.app.AppCliente; import br.com.chatredes.model.MensagemGlobal; import br.co...
31.314199
182
0.664544
e8623139e1fe1c3cb602cffb838a7ffdfa389d16
4,947
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-257 // 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: 2016...
23.898551
126
0.565595
b3dc0f38e162c003c4fd9effd47758fb3f7fcd4c
5,677
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package android.support.v7.widget; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; public class ...
40.841727
141
0.602607
4eab002cf8f281f37ac47d424951f219ceaa3b95
1,542
package org.intermine.web.uri; /* * Copyright (C) 2002-2018 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.org/copyleft/lesser.html...
25.7
79
0.688067
a2bab93de125ac7c26b8321fede8a2f506032d0a
25,031
package vproxyx.websocks; import vfd.IP; import vfd.IPPort; import vjson.JSON; import vjson.util.ObjectBuilder; import vproxy.socks.Socks5ProxyProtocolHandler; import vproxy.util.CoreUtils; import vproxybase.connection.ConnectableConnection; import vproxybase.connection.ConnectionOpts; import vproxybase.connection.Con...
46.268022
159
0.544844
1017732632740aa3843a69abadd8fa6379ef6544
3,562
///* // * Copyright (c) 2020-2021 Heiko Bornholdt and Kevin Röbert // * // * 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 /...
40.022472
133
0.709152
4327c6e6a0aab578245b9919c4f69b971654b98e
643
package JAVA_20200331; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub showMyMoney1(); Main main = new Main(); main.showMyMoney1(); main.showMyMoney2(); main.showMyMoney3(); main.showMyMoney4(); main.showMyMoney5(); } public static void show...
15.682927
41
0.66563
cd0383b98ee891d6d963e4d8c6cec4f39ae2815d
5,790
/* * #%L * Wisdom-Framework * %% * Copyright (C) 2013 - 2015 Wisdom Framework * %% * 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...
49.487179
161
0.671157
355a52a4323394442ea661d16cd7cb6437b17787
3,467
/* Copyright 2017 Ericsson AB. For a full list of individual contributors, please see the commit history. 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...
37.27957
113
0.691376
38d8211020ada109a2a5a66c3e412d59ad584d86
2,331
package com.itextpdf.text.pdf; import junit.framework.Assert; import org.junit.After; import org.junit.Before; import org.junit.Test; import com.itextpdf.text.pdf.PRTokeniser.TokenType; import java.io.IOException; public class PRTokeniserTest { @Before public void setUp() throws Exception { } @After public voi...
24.28125
126
0.714286
81d2db72034494cbd02ee5c99b9f885c713c792d
836
package org.kendar.utils; import com.google.common.hash.Hashing; import org.kendar.entities.GD2DriveItem; import org.kendar.entities.GD2DriveItemUtils; import javax.inject.Named; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; @Named("gD2Md5Calculator") public class GD2Md5Calculato...
33.44
84
0.691388
224d8dc6ed5ab726a5ee60b871caf746df80966a
116
package com.semihunaldi.backendbootstrap.entitymodel.user; public enum RoleName { ROLE_USER, ROLE_ADMIN }
16.571429
58
0.767241
fe7c69d2b79a15345be63037f237dd49f400e13d
4,903
/* * 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 de.codekings.client.GUI.Katalog; import de.codekings.client.GUI.ContentView; import de.codekings.client.Controls.DataManager; ...
31.837662
150
0.570671
097475be336fee046240ec39cc51316c463bcb80
557
package ru.swayfarer.swl2.z.dependencies.org.squiddev.luaj.luajc; import ru.swayfarer.swl2.z.dependencies.org.squiddev.luaj.luajc.analysis.ProtoInfo; /** * A handler for generation errors in classes. * * @see CompileOptions#handler */ public interface ErrorHandler { /** * Handle an error in generating a class ...
29.315789
112
0.741472
aab0466fdac35cbec71276cf918f2989dceb10fe
1,540
package com.oop.memorystore.implementation.index; import java.util.List; import java.util.Objects; import java.util.Optional; public class SynchronizedIndex<T> implements Index<T> { private final Index<T> index; private final Object mutex; public SynchronizedIndex(final Index<T> index, final Object mutex) { ...
18.780488
82
0.644156
adbcb7453ed2f3c0192148df434d55ee24a9c8b8
287
package com.venafi.vcert.sdk.connectors.tpp.endpoint; import com.google.gson.annotations.SerializedName; import lombok.Data; @Data public class SetPolicyAttributeResponse { @SerializedName("Error") private String error; @SerializedName("Result") private int result; }
20.5
53
0.763066
c87c71af3a81cdcaca7f8f6634c487dea5934c41
2,729
/* * ICARUS2 Corpus Modeling Framework * Copyright (C) 2014-2022 Markus Gärtner <markus.gaertner@ims.uni-stuttgart.de> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
23.730435
92
0.662147
971271d7598b21666664378037662bb208109bf8
380
package com.study.java01; import java.util.Scanner; /*문제1. 요구사항] 횟수를 입력받아 인사를 하시오. 입력] 횟수 :3 출력] 안녕하세요~ 안녕하세요~ 안녕하세요~*/ public class For01 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("횟수 입력 : "); int n=sc.nextInt(); for (int i = 1; i <= n...
17.272727
41
0.592105
7f6d128c6a188f56563f8c4827e090971ac100a2
283
package no.nav.foreldrepenger.mottak.innsending.pdf.modell; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; @EqualsAndHashCode(callSuper = true) @Data @AllArgsConstructor public class FritekstBlokk extends Blokk { private String tekst; }
21.769231
59
0.819788
082f7311d28674b379f8cb65f88ceb385bc12d5e
6,029
/* * This file is part of bJdaUtilities, licensed under the MIT License. * * Copyright (c) 2019 bhop_ (Matt Worzala) * Copyright (c) 2019 contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal ...
48.620968
191
0.66827
f2f1b5741c96bdb819e28549a3945372342a6203
187
package biz.uro.CSVDataConverter.swing.json; @SuppressWarnings("serial") public class JSONException extends RuntimeException { JSONException( String message ) { super( message ); } }
23.375
53
0.775401
27d6682d9cfe269e2a77b6f4b3edf86f1bd215b9
907
package com.proposta.propostaservice.util; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import org.junit.jupiter.api.Test; public class OfuscamentoUtilTest { @Test public void seDadoTiverTamanhoImparOfuscaTudoMenosPrimeiraLetra() { ...
27.484848
80
0.692393
cd31a20256af063f732de63714883f3cf8f535ca
10,902
/** * Ed-Fi Operational Data Store API * The Ed-Fi ODS / API enables applications to read and write education data stored in an Ed-Fi ODS through a secure REST interface. The Ed-Fi ODS / API supports both transactional and bulk modes of operation. *** > *Note: Consumers of ODS / API information should sanitize all ...
37.081633
544
0.755641
d0a2268464e2732a3d4ea7feb6010e2202480c77
3,491
package com.dreamwalker.knu2018.dteacher.Adapter; import android.content.Context; import android.support.v4.content.ContextCompat; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android....
41.070588
109
0.717846
18400ed8f9f4a0709eef043b0c0572ca2b9daa46
1,403
package org.hammer.action; import org.hammer.dwarfs.Dwarf; import org.hammer.producao.Produto; import org.hammer.producao.game.GoldenHammer; import org.hammer.producao.game.utils.MovimentoUtils; public class Forjar implements Acao { private Produto produto; private Dwarf dwarf; private boolean terminou =...
28.06
99
0.625089
c0e101c68375ef04607bcbbf376a0c21d26364de
6,898
package kwasilewski.marketplace.dao; import kwasilewski.marketplace.dto.AdData; import kwasilewski.marketplace.dtoext.ad.AdSearchDataExt; import kwasilewski.marketplace.errors.MKTError; import kwasilewski.marketplace.errors.MKTException; import kwasilewski.marketplace.security.context.UserContext; import kwasilewski.m...
44.503226
117
0.659611
eb8b65697052038a3cf8b7bf01c2bbcc593bc9d3
220
package com.inetaddresstest; public class Student { public static void main(String[] args) { new Thread(new Demo01(6666,"127.0.0.1",9999)).start(); new Thread(new Demo02(7777,"老师")).start(); } }
24.444444
62
0.631818
649a6c3c6a0175866e4c8653643852597ed7e11e
21,279
/** * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.unionpay.serializer.thrift.dto; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; ...
30.398571
180
0.66427
a92bf179253f62e5e79d1a1caf1edcfea00e35ca
953
package hr.zg.rus; import java.util.Hashtable; public class NetworksTest { public static void main(String[] args) { Networks networks = new Networks(); Hashtable<String, Hashtable> network = networks.getNetworks(); byte value; value = (byte)network.get("bitcoin").get("...
28.878788
71
0.550892
be5add7959fa49edaa4bbb03259d0edda0aabfe5
15,427
/* * Copyright 2015-2021 Alexandr Evstigneev * * 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...
16.91557
76
0.663123
a1f8fc044bcbf91ceee4a4a820f8429700f3065a
14,072
package com.toluene.commonbatis.plugin; import com.toluene.commonbatis.util.MapperResolver; import com.toluene.commonbatis.util.ReflectionUtil; import com.toluene.commonbatis.util.SimpleCache; import com.toluene.commonbatis.util.TableNameParser; import org.apache.ibatis.executor.Executor; import org.apache.ibatis.mapp...
43.432099
128
0.554576
f0cefae1e78c63e3c0dc2f1ffa72c39ec77ec765
872
package org.ovirt.engine.core.common.validation; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import org.ovirt.engine.core.common.action.VmManagementParametersBase; import org.ovirt.engine.core.common.config.Config; import org.ovirt.engine.core.common.config.ConfigV...
39.636364
121
0.807339
aa0405cc71664cd04a064f5a9a1bc7c0617f64cb
11,300
package io.github.lizhangqu.cronetsample; import android.annotation.SuppressLint; import android.content.Context; import android.os.Build; import android.util.Log; import org.chromium.net.BuildConfig; import org.chromium.net.CronetEngine; import org.json.JSONObject; import java.io.File; import java.io.FileInputStrea...
33.13783
133
0.509735
892988690e49b249ea8cf5fdb7aa836af0ca7e22
316
package com.exasol.csv.functional_test.selector; public enum ClassName implements Selector { UPLOAD_BUTTON("ui-fileupload-upload"); private final String className; private ClassName(String className) { this.className = className; } @Override public String asString() { return this.className; } }
16.631579
48
0.75
f166a8c38d07ac0d8101c851fc74ad66278d55ac
1,926
package com.polydes.common.collections; import java.util.ArrayList; import java.util.Collection; import java.util.Timer; import java.util.TimerTask; public class CollectionObserver { private static ArrayList<CollectionObserver> observers = new ArrayList<CollectionObserver>(); private static Timer observerPollTimer;...
20.934783
98
0.724818
dff9e3a297ee633d5a2daea9f06c74b4173cfe3a
1,342
package appointmentscheduler.service.business; import appointmentscheduler.entity.business.Business; import appointmentscheduler.repository.BusinessRepository; import appointmentscheduler.service.file.FileStorageService; import org.junit.*; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.j...
26.84
69
0.76006
85efb6374f5a5c7991b5262b071229da36d0f58e
1,531
/** * NOTE: This class is auto generated by the swagger code generator program (2.3.1). * https://github.com/swagger-api/swagger-codegen * Do not edit the class manually. */ package com.adidas.sub.event.api; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestMappi...
39.25641
130
0.714566
9d32d22b7b24227373fc9c75196333fcb30ad0ff
261
package com.yomahub.fastdownload.data.exporter; /** * Xls文件底部扩展接口 * @author Bryan Zhang */ import org.apache.poi.hssf.usermodel.HSSFSheet; public interface XlsBottomDeal { public Integer dealBottom(HSSFSheet sheet, Integer rowCnt) throws Exception; }
20.076923
80
0.770115
e22348f4924cb7bfdf8808f5150c0176aed4a592
8,743
/* * Copyright 2016 SRI International * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
42.033654
121
0.68043
37b5650b866f54e3cc011c6db44553333f54a786
649
package org.iutools.webservice.spell; import org.iutools.webservice.AssertServiceInputs; import org.iutools.webservice.ServiceInputs; import org.iutools.webservice.ServiceInputsTest; import org.junit.jupiter.api.Test; public class SpellInputsTest extends ServiceInputsTest { @Override protected ServiceInputs makeIn...
23.178571
59
0.787365
7047a6f7cbeefe4579e2f53109bf373e68d2d1cd
1,211
/* * Copyright (c) 2016-2021, Inversoft Inc., All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
32.72973
84
0.73493
75c7e7eb0659ee7df0ea770b342ae33875aad0a7
6,799
/* * Copyright 2017-2019 original authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
30.488789
206
0.607001
0ec349fdb623badcda04d5563799472feeab25a6
96
package de.odysseus.el.test; public interface TestInterface { public int fourtyTwo(); }
16
33
0.71875
48d68b2948f561c3d4d24aca078a911553b6a56c
337
package com.garland.helpcenter.datastructure.tree; import java.io.Serializable; /** * Created by lemon on 11/3/2017. */ public class Color implements Serializable { private static final long serialVersionUID="Color".hashCode(); public static final boolean RED=false; public static final boole...
25.923077
67
0.727003
c50414dd8928986766f0df6e62aa4e639bd09145
6,017
package uk.ac.lincoln.games.nlfs.logic; import java.util.ArrayList; import java.util.Collections; import uk.ac.lincoln.games.nlfs.Assets; import uk.ac.lincoln.games.nlfs.logic.Footballer.Position; import uk.ac.lincoln.games.nlfs.logic.MatchEvent.MatchEventType; public class MatchResult { public transient Match matc...
39.071429
189
0.706166
0a41c9731689e7e2613df58eb434995a0bbfcb96
13,752
package com.raffler.app.utils; import android.app.Activity; import android.content.Context; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.gr...
33.705882
157
0.648706
0a78624cfc6cdbc8248be16d90137c64ea853e20
2,511
package com.ncoding.backend.user.service; import com.ncoding.backend.user.controller.request.UserRequest; import com.ncoding.backend.user.domain.User; import com.ncoding.backend.user.persistence.UserRepository; import lombok.extern.log4j.Log4j2; import org.springframework.beans.factory.annotation.Autowired; import org...
35.366197
86
0.725209
7da44d188ee7077f8f252cc09b07c5c10a0dbf22
15,597
package vektra.GUI; import java.util.Collections; import java.util.Comparator; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.geometry.VPos; import javafx.scene.control.Button; import javafx.scene.c...
36.612676
145
0.611336
79e6363f2e727945701a8f8b6df7181a0768e139
1,749
package com.tsy.sdk.social.sina; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import com.sina.weibo.sdk.api.share.BaseResponse; import com.sina.weibo.sdk.api.share.IWeiboHandler; import com.tsy.sdk.social.PlatformConfig; import com.tsy.sdk.social.PlatformType; import com.tsy.s...
32.388889
123
0.730132
c6ef5e9b829288e7de7778af3a8e36d6ef442842
4,605
/****************************************************************************** * ~ Copyright (c) 2018 [jasonandy@hotmail.com | https://github.com/Jasonandy] * * ~ * * ~ Licensed under the Apache License, Version 2.0 (the "License”); ...
39.025424
95
0.54354
0b65f993d3a8d612f37ccc0f64e7de9558a088bf
2,398
package sensor_msgs.msg.dds; /** * * Definition of the class "CompressedImage" defined in CompressedImage_.idl. * * This file was automatically generated from CompressedImage_.idl by us.ihmc.idl.generator.IDLGenerator. * Do not update this file directly, edit CompressedImage_.idl instead. * */ public class Comp...
24.222222
105
0.658882
1a462b6a62c8c0da5ed75fb65bdb26cb28915597
600
package test.api.activity.async; import javastrava.api.API; import javastrava.model.StravaActivity; import test.api.activity.DeleteActivityTest; import test.api.callback.APIDeleteCallback; /** * <p> * Tests for {@link API#deleteActivityAsync(Long)} * </p> * * @author Dan Shannon * */ public class DeleteActivit...
22.222222
78
0.746667
6756520459e40e1385e90b39547475ce197d7990
773
package com.iovation.launchkey.sdk.integration.managers; import com.google.inject.Inject; import com.google.inject.Singleton; @Singleton public class ServiceTotpManager { private final DirectoryServiceManager directoryServiceManager; private boolean currentVerifyUserTotpResponse; @Inject public Serv...
30.92
112
0.791721
22ea680326e54a2dee283cc8dce75c4470d8e13f
1,644
/* OpenRemote, the Home of the Digital Home. * Copyright 2008-2011, OpenRemote Inc. * * See the contributors.txt file in the distribution for a * full listing of individual contributors. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public Licens...
31.615385
80
0.748783
9c5dec92d67698f8445ac7fc2686c0bf7ab10071
1,957
/* * Copyright (c) 2020 Broadcom. * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. * * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifi...
33.169492
97
0.683189
38d3d5936438eddf9bc70c0d82c6303783d48456
524
package project.model.util; import project.model.gfx.Players; import project.model.gfx.Soldier.Faction; import project.model.util.Match.Mode; public class GameOptions { public Mode mode; public Faction[][] teams; public Players players; public String mapName; public int killsToWin; public GameOptions(Mode mo...
22.782609
99
0.748092
2f7ddf2b80fcf1d9f1374b73b54c33b2ddc12dc0
1,069
// This is a generated file. Not intended for manual editing. package fr.ensimag.deca.intellijplugin.psi.impl; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.lang.ASTNode; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTree...
29.694444
94
0.785781
475863dfe0d485600280a05e288c44e2d518eabd
734
package br.com.agorainvestimentos.exchange.model; import java.math.BigDecimal; public class Trade { private Order buyOrder; private Order sellOrder; private Long quantity; private BigDecimal volume; public Order getBuyOrder() { return buyOrder; } public void setBuyOrder(Order buyOrder) { this.buy...
14.68
49
0.719346
e93cf463f906b4f90021ca177c27008e7af5db6c
3,113
package at.tugraz.ist.swe; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.PointF; import android.view.Gravity; import android.view.MotionEvent; import android.widget.Toast; public class ImageImportTool extends PaintingTool { p...
28.3
155
0.564729
26a286979966024bcd76b991e934a951440adb2c
62
/* this comment spans a /* whats that? ifnore it! few lines */
10.333333
25
0.677419
5c956da432b698c900f6498e80c8718981ec6a71
863
package com.bignerdranch.android.coolweather.db; import android.content.Context; import android.database.sqlite.SQLiteDatabase; /** * Created by ericchen on 2016/11/21. */ public class CoolWeatherDB { //数据库名 public static final String DB_NAME = "cool_weather"; //数据库版本 public static final int VERSIO...
23.972222
97
0.701043
924e5b3a57aa740b9858b3e9925e9647cdf7febe
2,627
import javafx.scene.transform.Rotate; import system.SystemA; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.nio.file.FileSystem; import java.nio.file.FileSystems; import java.nio.file.FileVisitOption; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file....
38.632353
128
0.590027
da8dd422e4298cbc0263379f85f44b4546d08071
5,465
package de.marvin.merkletree; import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.Arrays; /** * Stores all relevant information for a merkle proof and provides the functio...
36.925676
146
0.603843
2e0915e288a04fc43f51eca2d2b7c1700ef48b3a
3,941
/* * Copyright 2018 Institut Laue–Langevin * * 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...
21.074866
75
0.634611
ac4ed68453efeecf5938481e7027eca02dbd7b61
294
package com.agileengine.imageparser.service; import com.agileengine.imageparser.domain.Picture; import java.util.List; public interface PictureService { List<Picture> searchPicturesByMetadata(String searchTerm); List<Picture> getAll(); Picture getPictureDetails(String id); }
19.6
62
0.782313
bae6f745618b4134d2946cae88cb2d7d7f2ca45b
2,780
package org.bougainvillea.java.basejava.codequality.chapter07; import java.util.ArrayList; import java.util.List; /** * 97.警惕泛型是不能协变和逆变的 * * 注意:Java的泛型是不支持协变和逆变的,只是能够实现协变和逆变 * * 协变(covariance)和逆变(contravariance)?Wiki上是这样定义的: * Within the type system of a programming language, * covariance and contravariance re...
26.990291
201
0.68777
388205772dfabf476feb97ad239d01a3f7649938
512
package ru.codeunited.sbapi.escrow; import java.util.UUID; public class RqUID { private final UUID uuid; public RqUID() { this(UUID.randomUUID()); } public RqUID(UUID uuid) { this.uuid = uuid; } public UUID get() { return uuid; } /** * Return without -...
15.058824
51
0.535156
c9aa2738d327f0ab4def79c48735e44cec88ef8f
142
import org.testng.annotations.Test; public class AppClass2Test { @Test public void testMain() { AppClass2.main(null); } }
17.75
35
0.65493
573dcb03822948def48ff2edd7a93f3112a3b7f9
1,303
package com.freedy.backend.config.security; import com.alibaba.fastjson.JSON; import com.freedy.backend.utils.Result; import com.freedy.backend.enumerate.ResultCode; import lombok.extern.slf4j.Slf4j; import org.springframework.security.core.AuthenticationException; import org.springframework.security.web.Authenticatio...
34.289474
148
0.76746
0f323429e757acc745fa541a05cbadfc885bb5e9
1,897
package com.techreturners.exercise004; import org.junit.Ignore; import org.junit.Test; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.Month; import static org.junit.Assert.assertEquals; public class Exercise004Test { @Test public void checkGetDateTimeWhenDateIsSpecified() { ...
30.111111
102
0.674222
d0f958050a57710d3c6242c5d19a73d0e364bc45
2,050
package net.es.oscars.topo.ent; import com.fasterxml.jackson.annotation.*; import lombok.*; import net.es.oscars.topo.beans.IntRange; import net.es.oscars.topo.enums.Layer; import org.hibernate.annotations.NaturalId; import javax.persistence.*; import java.util.ArrayList; import java.util.HashSet; import java.util.Se...
22.777778
73
0.655122
b5fc7bf42295bf6c2716eb9c644fddd28429324f
4,279
package com.trkj.framework.mybatisplus.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com...
34.788618
122
0.667446
399c792d0cb1ea18e7bfa80726a8f4dc301d3d8e
905
package com.intellij.eslint_idea.internal; import java.util.List; public class ESLintSocketResponse { private List<ESLintResult> results; public ESLintSocketResponse() { } public List<ESLintResult> getResults() { return results; } public static class ESLintResult { private String filePath; private L...
14.365079
44
0.695028
1bccec5c6e9eadac02b8c6c9c5d426a695c8a247
23,310
/* * Copyright © 2014 Cask Data, 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 t...
41.111111
119
0.679365
83c12b9062fb732141e5ea0e4e47f1c33e78bc98
4,633
/** * @package FirePass - katropine * @author Kristian Beres <kristian@katropine.com> * @copyright Katropine (c) 2014, www.katropine.com * @since March 24, 2014 * @licence MIT * * Copyright (c) 2014 Katropine - Kristian Beres, http://www.katropine.com/ * * Permission is hereby granted, free of charge, to any person obt...
29.698718
139
0.696309
94c4a1f3f04db81631b232770f259df12084438f
240
package com.study.u.service; import com.study.u.dataobject.Asset; import com.study.u.vo.WithdrawVo; public interface AssetService { Asset findByUsername(String username); void withdraw(String username, WithdrawVo withdrawVo); }
20
58
0.775
86cdae45ba817323bea107d983f376c11c5a350b
169
package hal.phpmetrics.idea.runner; public interface ResultListener { void onSuccess(String output); void onError(String error, String output, int exitCode); }
24.142857
60
0.763314
15bcf825c6a092543c592c831b5ac3d29d1fbb61
9,333
package com.toprako.application_db; import android.annotation.SuppressLint; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.g...
46.665
194
0.663024
53e5d28b79f0db301253bfcd3a197e8f1ed657e3
1,917
package com.les4elefantastiq.les4elefantcowork.models; import android.support.annotation.NonNull; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class LiveFeedMessage implements Comparable<LiveFeedMessage> { // -------------- Objects, Variables -------------- /...
29.492308
181
0.616067
eb01905bd49947e751c43cf50c0a1134f4c41d77
2,463
package com.sparrow.weixin.common; import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.lang3.StringUtils; import java.lang.reflect.InvocationTargetException; /** * Created by yuanzc on 2015/10/23. */ public class MsgFormat { public static final String format(String msg, Object var) { ...
28.976471
64
0.455136
c9b96242ae2a84154ea3112ce13f457c6ca49a2f
9,909
package com.wallpaper.anime.activity; import android.content.Intent; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.annotation.ColorInt; import android.support.annotation.ColorRes; import android.support.annotation.Nullable; import and...
36.296703
120
0.617217
157970717f7d54537cf5291762962a94b0ffa44d
7,089
/** * Copyright (c) 2002-2013 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software F...
28.243028
112
0.519961
08c9f11e492cc18a723888fd195399e9b48e6ea6
4,331
/* * Copyright 2021 ThoughtWorks, 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 agr...
36.394958
117
0.699377
2ca52ec7e6b49f614a163246b0c503f5afeed426
224
package dev.anhcraft.craftkit.callbacks.bungee; import dev.anhcraft.craftkit.common.callbacks.Callback; import java.util.List; public interface ServerListCallback extends Callback { void call(List<String> servers); }
22.4
55
0.803571
aed7ff98cbde0e6ec70825006e1331ad2fd3b550
1,307
package clinica; public class Chefe extends Funcionario { private String departamento; public Chefe (String _nome, double _identidade, Data _dataDeNascimento, double _salario, Data _dataAdmissao, String _departamento) { //super(_nome, _identidade, _dataDeNascimento, _salario, _dataAdmissao,); setPessoa(_nome, ...
25.627451
133
0.722265
81b35a2e514f691d53ad3c5a0a0435f1c7a7b95a
2,473
package uk.ac.ebi.biosamples.legacy.json.controller; import static org.hamcrest.Matchers.allOf; import static org.hamcrest.Matchers.hasKey; import static org.springframework.hateoas.MediaTypes.HAL_JSON; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframe...
29.440476
91
0.78892
c908b5ab707efa85d84726f1da30454edfafc28d
11,403
/* * 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 ...
31.941176
103
0.746909
48b68f5864badb0dbd57c3277642c4eed63cad4a
4,349
package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.bian.dto.CRDelinquentAccountProcedureInitiateOutputModelDelinquentAccountProcedureInstanceR...
38.149123
213
0.829386
9a5f60e0b83eb4d5d09c77da152e0b30279549af
1,222
package cz.cuni.mff.cgg.teichmaa.chaosultra.cudarenderer.modules; import com.google.gson.JsonObject; import cz.cuni.mff.cgg.teichmaa.chaosultra.rendering.model.DefaultFractalModel; import cz.cuni.mff.cgg.teichmaa.chaosultra.util.JsonHelpers; public class ModuleNewtonIterations extends ModuleNewtonGeneric { publi...
34.914286
81
0.726678
8302466a5d60bad906c56200d0689db1cfe3ebc2
1,370
package com.briefbytes.remoteplayer.videoplayer; import com.briefbytes.remoteplayer.utils.OsUtils; import java.io.*; /** * OMXPlayer is controlled by writing to the stdin */ public class OmxPlayer implements VideoPlayer { private Writer writer; protected OmxPlayer() { } @Override public void...
23.220339
97
0.539416
ef839f5c2350c139a94ff543ddbfc5a013685fab
3,329
package edu.msu.cse.eventual.server; import java.text.MessageFormat; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import edu.msu.cse.dkvf.ClientMessageAgent; import edu.msu.cse.dkvf.DKVFServer; import edu.msu.cse.dkvf.Storage.StorageStatus; import edu.msu.cse.dkvf.config.ConfigReader; ...
34.677083
145
0.744968
326e893a5337bab17df9a197003ea91ef497d981
5,050
// -*- mode: java; coding: utf-8; indent-tabs-mode: nil; c-basic-offset: 4 -*- // vim: set ft=c fenc=utf-8 ts=4 sw=4 et : // javac nbody.java // time java -server nbody 50000000 public final class nbody { public static void main(String[] args) { Body[] bodies = new Body[] { // sun ...
31.962025
81
0.46495
7a406a85dbc66812d97a6eb1fd0266d96a1e0482
1,178
package com.weatherapp.viewmodel; import android.app.Application; import android.arch.lifecycle.AndroidViewModel; import android.arch.lifecycle.LiveData; import android.arch.lifecycle.MediatorLiveData; import com.weatherapp.models.MapRequestResponse; import com.weatherapp.repository.RemoteDataRepository; public cla...
30.205128
111
0.748727
937259ffed2e16615608071e921f94adffcc7cf1
3,299
package com.knowledge.service.impl; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; import javax.transaction.Transactional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.knowledge.body.SubjectF...
23.06993
79
0.7184