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
74891b37af9f6afe99d150b57cc094768e34dc9f
782
import java.util.Scanner; public class Main{ public static final String INVALID_MESSAGE = "Invalid Value!"; public static Scanner input = new Scanner(System.in); public static void main(String[] args) { System.out.println("Enter Time (Min Sec): "); int min = input.nextInt(); int sec = input.nextInt(); if...
20.578947
63
0.654731
5b0ab2fe5d9a555e066af614e2b5544052277a3f
22,629
package Multidisplinary.Project.MDP_Group_9.Settings; import android.Manifest; import android.app.ProgressDialog; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.content.BroadcastReceiver; import android.content.Context; import android.content.DialogInterface; import...
43.102857
146
0.621194
3bb9158429f54099d931f7af9a378c112c2e211f
1,745
/* * Copyright 2016-2019 The Sponge 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...
27.265625
79
0.758739
eae0bebc80daad2ecaf5733d1eefa16b30a095ab
6,366
/* * Copyright 2013-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
30.605769
116
0.694156
ea6d31a7d1a3a4a9cd1907b3b17d2d407c04751c
2,858
/* A linked list of length n is given such that each node contains an additional random pointer, which could point to any node in the list, or null. Construct a deep copy of the list. The deep copy should consist of exactly n brand new nodes, where each new node has its value set to the value of its corresponding ori...
33.623529
185
0.613016
4260d73779d85f47210837e9be0004a3e11337e6
1,703
package io.dashbase.clue.commands; import java.io.PrintStream; import org.apache.lucene.index.IndexReader; import org.apache.lucene.search.IndexSearcher; import org.apache.lucene.search.MatchAllDocsQuery; import org.apache.lucene.search.Query; import org.apache.lucene.search.ScoreDoc; import org.apache.lucene.search....
25.044118
72
0.650617
e64bf91f34b9f7f3c51eda72ff2d2bed50b49a9a
440
package de.xehpuk.disassembler.codes; public abstract class FLoadAbstract extends IndexedInstruction { protected FLoadAbstract(final int index) { super(index); } public static FLoadAbstract getInstance(final int index) { switch (index) { case 0: return new FLoad0(); case 1: return new FLoad1(); ...
20
64
0.681818
dadb5554b1abecb43451d7d7c15e571c7674ee06
1,068
package org.mvel2.tests.core; import junit.framework.TestCase; import org.mvel2.integration.impl.ImmutableDefaultFactory; import org.mvel2.templates.CompiledTemplate; import org.mvel2.templates.TemplateCompiler; import org.mvel2.templates.TemplateRuntime; import org.mvel2.util.StringAppender; import java.io.File; imp...
27.384615
122
0.745318
f7e2b7d0f162d972c7224c180278f9d5bc45b55a
2,591
package com.compomics.util.io.flat.readers; import static com.compomics.util.io.IoUtil.ENCODING; import com.compomics.util.io.flat.SimpleFileReader; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamRead...
19.778626
82
0.551525
e79536aa6351414da74e844324986ada1a51fcab
3,532
package com.p_v.flexiblecalendarexample; import android.content.Intent; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.Menu; import android.view.MenuItem; import java.ut...
33.320755
120
0.64496
1cc3ffb03f4d32f20f32be03366ccfee64c3ae70
1,393
package org.apereo.cas.u2f.redis; import org.apereo.cas.adaptors.u2f.storage.AbstractU2FDeviceRepositoryTests; import org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository; import org.apereo.cas.config.U2FConfiguration; import org.apereo.cas.config.U2FRedisConfiguration; import org.apereo.cas.config.support.CasWebAp...
33.166667
85
0.806892
e43f28da42421b3058b3b5a85718ca74b3dec1c6
509
package org.tdc.filter; import org.tdc.book.TestCase; import org.tdc.book.TestDoc; import org.tdc.book.TestSet; /** * An abstract {@Filter} implementation. */ public class AbstractFilter implements Filter { @Override public boolean ignoreTestSet(TestSet testSet) { return false; } @Override public boolean i...
18.851852
84
0.75442
aaf5740f43906c5d572b01822e9623c4b710cd17
2,736
package org.fhwa.c2cri.testmodel.testcasedata; import java.util.*; /** * The Class Randomizer. * * @author TransCore ITS, LLC * Last Updated: 1/8/2014 */ public class Randomizer { /** The rn. */ private static Random rn = new Random(); /** * Instantiates a new randomizer. * * Pre-Conditions: N/A ...
18
78
0.561769
fe513222a9f5e63b2d8890b7406430faa1e9a6bc
1,277
package ubic.gemma.persistence.util; import net.sf.ehcache.Cache; import net.sf.ehcache.CacheManager; /** * Created by tesarst on 04/04/17. * Provides common methods for cache manipulation. */ public class CacheUtils { /** * Either creates new Cache instance of given name, or retrieves it from the CacheM...
36.485714
116
0.65231
fe31f6828c1b8e2090e70d20b66bc73fefdcd6a4
2,267
import org.apache.commons.lang3.text.WordUtils; import java.io.File; import java.util.ArrayList; public class SongChecker { private final static String LOCATION = "D:\\Music"; public static void main(String[] args) { File folder1 = new File(LOCATION); ArrayList<File> songs; son...
28.3375
159
0.544332
5b034b370c95308afc7d6f9e329ce1e131338a77
3,471
package com.alexei.proposta.controllers; import java.util.Optional; import javax.servlet.http.HttpServletRequest; import javax.transaction.Transactional; import javax.validation.Valid; import com.alexei.proposta.controllers.Logs.LoggerAvisoViagem; import com.alexei.proposta.controllers.client.aviso.AvisoResposta; im...
41.819277
116
0.759435
ed8671ae9a34f65bdc62d51e5ba55f6ac2e2e8c9
271
package com.zxpm.dao; import com.zxpm.entity.Bid; public interface BidDAO { /** * 添加出价记录 * */ public void addBid(Bid bid); /** * 根据编号获取出价记录 * */ public Bid getBid(int bidId); /** * 更新出价记录 * */ public void updateBid(Bid bid); }
12.904762
33
0.560886
3f35138dd8dc9c8f4f5c3160843caa521380416c
779
package net.cabezudo.sofia.core.server.html; import net.cabezudo.sofia.core.cache.Cache; import net.cabezudo.sofia.core.cache.CacheManager; /** * @author <a href="http://cabezudo.net">Esteban Cabezudo</a> * @version 0.01.00, 2020.09.01 */ class RequestData { public static final String CACHE_NAME = "requestData"...
22.911765
71
0.727856
404bd3bcffbd9255ef5f3a5082219025f5182cb6
687
package com.thaiopensource.xml.dtd.om; public class AttlistDecl extends TopLevel { private final NameSpec elementNameSpec; private final AttributeGroup attributeGroup; public AttlistDecl(NameSpec elementNameSpec, AttributeGroup attributeGroup) { this.elementNameSpec = elementNameSpec; this.attributeG...
22.9
79
0.759825
24d51cdae38be75c8cab29134a8c86fb998b4470
2,242
//https://www.hackerrank.com/challenges/little-gaurav-and-sequence import java.io.*; public class Solution { private final static byte MOD = 10; public static void main(String[] args) throws IOException { final StringBuffer sb = new StringBuffer(); //INPUT final Buffe...
31.138889
87
0.397859
aca4f35cdf1e307f3534ac15ee03f7985077dba6
32,052
/* * Cloud Resource & Information Management System (CRIMSy) * Copyright 2020 Leibniz-Institut f. Pflanzenbiochemie * * 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....
44.516667
162
0.692125
0612760bcb48d1e65eac0f1442d9a60dad5b5c3a
844
package com.mb.controller.v1; import com.mb.api.version.APIPath; import com.mb.controller.CinemaController; import com.mb.service.IScreeningService; import com.mb.service.ISeatService; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.web.bind.annotation.RequestMapping; ...
40.190476
111
0.787915
f194a721776da240c3d46239f16edf2e59e65fef
4,691
package com.leyou.item.controller; import com.leyou.item.bo.SpuBo; import com.leyou.common.pojo.PageResult; import com.leyou.item.service.GoodsService; import com.leyou.item.pojo.Sku; import com.leyou.item.pojo.Spu; import com.leyou.item.pojo.SpuDetail; import org.springframework.beans.factory.annotation.Autowired; im...
27.757396
102
0.608612
e9d8882ddf9c34cd415f5211d49a6e472c9b7674
6,554
package org.jboss.da.scm.impl; import org.apache.maven.scm.ScmException; import org.apache.maven.scm.ScmFileSet; import org.apache.maven.scm.ScmTag; import org.apache.maven.scm.command.add.AddScmResult; import org.apache.maven.scm.command.checkin.CheckInScmResult; import org.apache.maven.scm.command.checkout.CheckOutS...
39.481928
119
0.661276
290ee7870ec74dde471154cbc9be81bb139d0cfe
1,639
package gpio.example.fader; import gpio.BinaryInputPin; import gpio.Edge; import gpio.beaglebone.InputPinChangeMonitor; import java.io.IOException; import java.util.concurrent.BlockingQueue; /** * @author Koert Zeilstra */ public class PirSensorInputThread extends Thread { private BlockingQueue<Command> comma...
29.8
107
0.615619
9b4cf519d87899c18865e1f5b7205ced4c7349f6
446
package bg.sofia.uni.fmi.mjt.smartcity.device; import java.util.Comparator; public class SmartDeviceComparator implements Comparator<SmartDevice> { @Override public int compare(SmartDevice s1,SmartDevice s2) { if(s1.getPowerConsumption() > s2.getPowerConsumption()){ return 1; } ...
26.235294
71
0.64574
072288e4da8bbd7e47b24298d162b32bafad2351
398
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package madgik.exareme.master.queryProcessor.decomposer.federation; import com.foundationdb.sql.parser.SQLParser; /** * @author dimitris */ public class DistSQLParser extends SQLParser { @Override public Identif...
22.111111
67
0.741206
9b0136ee07cf3cb5f27547a590ae829b4f2e60f3
5,705
package com.flushoutsolutions.foheart.models; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import com.flushoutsolutions.foheart.appDataBase.DatabaseContract; import com.flushoutsolutions.foheart.appDataBase.DatabaseHelper; import com.flus...
29.713542
168
0.585802
0b9550f248dc7f23c54b62099dfb221ff1eece58
3,467
/* * This file was automatically generated by EvoSuite * Tue Aug 20 18:50:04 GMT 2019 */ package com.aventstack.extentreports.reporter.converters; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import com.aventstack.extentreports.reporter.converters.Ext...
43.3375
176
0.730314
7fa71a1b3cd7ab34b4dd3f1d620bab4c47a9fe65
1,406
package com.fourspaces.featherdb.document; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.util.Map; @ContentTypes({ "text/pl...
26.037037
100
0.726885
e3ad7c54ab5d7b25ee5c549fc3519b984d9c2508
229
package marco.search.index; public class IndexResponse { private IndexRequest request; public IndexResponse (IndexRequest request) { this.request = request; } public IndexRequest getRequest () { return request; } }
16.357143
46
0.742358
ab4f358052eec9468409de8bd37258ea42257a48
701
package com.me.gmall.publisher.service.impl; import com.me.gmall.publisher.bean.KeywordStats; import com.me.gmall.publisher.mapper.KeywordStatsMapper; import com.me.gmall.publisher.service.KeywordStatsService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service...
25.035714
76
0.783167
eb47cc1a76bd09d89e5c565f490a9da5b068e8e3
12,460
package com.google.android.gms.internal.ads; import android.app.Activity; import android.app.Application; import android.app.KeyguardManager; import android.content.BroadcastReceiver; import android.content.Context; import android.content.IntentFilter; import android.os.Bundle; import android.os.Handler; import androi...
36.432749
192
0.572231
39e59dbe90b28a1dcb64699fa27f602e9a62b61b
9,019
/* * Autopsy Forensic Browser * * Copyright 2012 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
38.378723
146
0.59674
aa3e110e453db10b875fa3e062470c6bf6db31af
17,655
/** * Copyright (C) 2007-2017 Tatsuo Satoh <multisqllib@gmail.com> * * This file is part of sqlapp-core-postgres. * * sqlapp-core-postgres is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either v...
29.923729
126
0.756273
462b4175c8883fe2a11705bf5801df8fc165f9ee
2,439
package info.bitrich.xchangestream.btcmarkets.dto; import com.fasterxml.jackson.annotation.JsonProperty; import java.math.BigDecimal; /** * This Class represents the trade event generated by the websocket * * <p>{@link BTCMarketsWebSocketTradeMessage#tradeId} tradeId The id of the trade * * <p>{@link BTCMarketsW...
24.636364
99
0.703567
6a6006c5567e3f62b8cb707ef066916b7cb797ae
382
package org.hswebframework.payment.api.payment.quick.channel; import org.hswebframework.payment.api.ApiRequest; import lombok.Getter; import lombok.Setter; /** * @author zhouhao * @since 1.0.0 */ @Getter @Setter public class ChannelQuickPaymentConfirmRequest extends ApiRequest { // private BindCard bindCard; ...
17.363636
67
0.76178
adf814c25413c5241b0b6da95d6d719dc48e0883
3,376
package cofh.lib.util.references; import static cofh.lib.util.constants.Constants.ID_MINECRAFT; public class EnsorcIDs { private EnsorcIDs() { } // VANILLA public static final String ID_PROTECTION = ID_MINECRAFT + ":protection"; public static final String ID_PROTECTION_BLAST = ID_MINECRAFT + ":...
40.674699
98
0.733116
98acc8adf059d5db69ebcc71e9b88f311fd874f2
4,052
/* Copyright by Barry G. Becker, 2000-2011. Licensed under MIT License: http://www.opensource.org/licenses/MIT */ package com.barrybecker4.game.multiplayer.poker.ui.dialog; import com.barrybecker4.game.common.GameContext; import com.barrybecker4.game.multiplayer.common.ui.ActionDialog; import com.barrybecker4.game.mu...
33.213115
114
0.66535
a83d035716beeb5624c060a3e5665d98dfbc6c47
590
package com.example.scandemo5.Data; import java.util.List; /** * Created by JC on 2017/9/21. */ public class LocationInfo { public Location location; public List<Goods> goods; public class Location{ public String id; public String location_no; public String desc; } pub...
19.666667
35
0.627119
3bd320822e7ababfa8240172826bb228350c6417
555
package easypatterns.creational.factory; /** * Created by wagner on 10/3/15. */ public class RobotFactory { public Robot create(RobotType robotType){ switch (robotType){ case SPEEDSTER: return new Robot("speedster robot", 100, 80, 20); case EXPLORER: ...
27.75
65
0.542342
bbd753b4a066f96500d5f0e82c1ee30ba06a160b
1,166
package dev.xframe.utils; import java.sql.Timestamp; import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneId; import java.time.format.DateTimeFormatter; import java.util.Calendar; import java.util.Date; public class XDateFormatter { static DateTimeFormatter DATETIME_FORMATTER = DateTimeFo...
24.291667
98
0.755575
efb5c11974cbefdb424c445623cc07d98dc6dc7c
1,784
package net.kemitix.checkstyle.ruleset.builder; import org.junit.jupiter.api.Test; import java.util.Arrays; import java.util.List; import java.util.Map; import static java.util.Collections.singletonList; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.BDDMockito.given; import stat...
40.545455
105
0.749439
296ab557b299f7f01dfa313fb1c079f5e4c388ce
2,162
package com.academy.stratum.dto; import java.util.ArrayList; /** * Batch request data from compatible application (like UE4) * * @author Ruslan Nazirov */ public class EtherlinkerBatchRequestData { /** * Unique sender identifier */ private String senderId; /** * User index in a projec...
23.758242
154
0.680389
aa88bfea9740720319b5a7b563d7566cec99b805
849
package com.fit.googletest; import com.fit.googletest.xmlparser.IGoogleTestTestcase; import com.fit.gui.testreport.object.IProjectReport; import java.util.List; /** * Create makefile => create file .exe => parser .exe to .xml * <p> * => Complete TestCases => fill "pass/fail" * * @author DucToan */ public inter...
22.342105
104
0.684335
fec64f28226c7f34200a019b5efc1516fe38b1bd
1,303
package vip.creatio.gca.code; import vip.creatio.gca.ClassFileParser; import vip.creatio.gca.Const; import vip.creatio.gca.ConstPool; import vip.creatio.gca.util.common.ByteVector; // this will always read a short index public class ConstOpCode extends OpCode { private final OpCodeType type; private Const co...
23.267857
96
0.646969
96dff484cec899b69f9953265ebc50a204d59e25
171
package com.winningsmiledental; import com.apple.eawt.*; public class OSXApplication extends com.apple.eawt.Application { public OSXApplication() { super(); } }
19
64
0.736842
6147692b906ae5ed9d4114d46b2a67dba6a7a53e
1,184
package tiborsimon.javagame.core; import java.util.ArrayList; import org.newdawn.slick.geom.Circle; import tiborsimon.javagame.objects.BaseObject; /** * Ütközésvizsgálat hatékony lefuttatásáért felelős osztály. * @author Tibor * */ public class CollisionDetector { /** * Statikus tagfüggvény az ütközésvizsgál...
27.534884
125
0.637669
02fa692e568f2f6d4c7f29eff492e3381c154816
1,514
/* * (c) 2016-2021 Swirlds, Inc. * * This software is owned by Swirlds, Inc., which retains title to the software. This software is protected by various * intellectual property laws throughout the world, including copyright and patent laws. This software is licensed and * not sold. You must use this software only ...
28.037037
118
0.745046
b98b07a2c0602c3a7416b073f5468a4a63549604
2,834
/* This file is part of the iText (R) project. Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. AGPL licensi...
32.574713
103
0.692308
a592323d4f6414270a541af5cc9944327d95dd2f
14,259
package org.stormroboticsnj.ui.display.whoosh; import android.graphics.Color; import android.graphics.Typeface; import android.graphics.drawable.ClipDrawable; import android.graphics.drawable.Drawable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Te...
54.632184
144
0.66863
f63a87f49e71e8557653adc3a05bc63c0fb13deb
4,080
/* Copyright 2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
30.676692
101
0.539216
e45895d2bb8742be17fdb3b71850e65cbfe57e50
5,539
package tfar.passwordtables; import com.mojang.realmsclient.util.Pair; import crafttweaker.api.item.IIngredient; import crafttweaker.api.item.IItemStack; import crafttweaker.api.minecraft.CraftTweakerMC; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.Ingredient; import net.minecraft.util.NonNu...
29.940541
148
0.697238
089e81962b5ad5ea31536dcb80f86f43fb087273
1,376
package com.matthewhatcher.lightningrods.Commands; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import com.matthewhatcher.lightningrods.LightningRods; import com.matthewhatcher.lightn...
35.282051
104
0.767442
0ab0c04efa167d26b89c0df66846339dc437634d
15,424
/* * 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 Controller; import AccesoDatos.GlobalException; import AccesoDatos.NoDataException; import Control.Control; import Entidades.C...
44.96793
123
0.475687
3e077d011386a689e41e287e050071d8fc540725
479
package com.github.dactiv.framework.spring.security; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; @SpringBootApplication(exclude = DataSourceAutoConfiguration.clas...
31.933333
79
0.822547
b042529c4fa9728ace2eb4e141e53cd2453f2318
626
package com.stardust.renai.survey.models; import java.util.List; public class Question { private String question; private String value; private List<String> values; public String getQuestion() { return question; } public void setQuestion(String question) { this.question = qu...
17.885714
48
0.619808
b39819d84c2c9e42567615f81164634b74d503f3
757
package com.senseidb.search.client.json.res; import com.senseidb.search.client.json.JsonField; public class TermFrequency { private String term; @JsonField("freq") private Integer frequency; public String getTerm() { return term; } public void setTerm(String term) { this.term = term; } public ...
21.628571
74
0.686922
1100cd628b819d0b624f666e9998b6c7f765a7ae
821
/* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ package org.apache.flink.connector.nebula.source; import com.vesoft.nebula.data.Property; import org.apache.flink.types...
32.84
93
0.690621
994343ec893448faf28c5f105757b1c8dedec733
6,371
/* * 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 ...
29.632558
86
0.665359
7a6fa12844c35a923f049f07a7aa77a07e15ff11
764
package br.com.zupacademy.natalia.casadocodigo.entities; import br.com.zupacademy.natalia.casadocodigo.dto.EstadoDtoRequest; import javax.persistence.*; @Entity public class EstadoEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String nomeEstado; @ManyTo...
20.105263
68
0.67801
43fe7804b61b359d6c433f5fb25a9447a760d49f
6,275
/* Copyright (c) 2012, Regents of the University of Colorado All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this lis...
26.816239
94
0.675697
67562987d05d888bd12a277d2a243162b446d8d1
639
package com.jsf.controller; import com.jsf.auth.AuthPassport; import org.springframework.security.core.Authentication; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; /** * Created with IntelliJ IDEA. * Description: * User: xujunfei * Date:...
22.821429
62
0.71205
8b98d3ba4b038e4023726773075750a36ab8ff75
3,293
/* ###################################################################################### ## ## ## (c) 2006-2012 Cable Television Laboratories, Inc. All rights reserved. Any use ## ## of this documentation/package is subject to the t...
36.588889
96
0.573034
1dcc3c6082ebc7ab03f29d7693a60bd1478135c0
8,188
package org.apache.cordova.engine; import android.annotation.TargetApi; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Build.VERSION; import android.view.View; import android.webkit.ConsoleMessage; import androi...
42.42487
195
0.672447
b3c8c5b6fc9541f06cbc954bc1106c750e7c984a
1,491
/* * Copyright 2016-2018 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
37.275
148
0.770624
dab3491e0e06d8637736243758ab879cdd27339f
249
package com.tigerspike.business.controller.network; /** * Copyright (c) 2017. All rights reserved. * * @author enricodelzotto * @since 09/04/16 */ public interface ErrorCallBack { void onNetworkError(); void onError(String error); }
17.785714
51
0.702811
70bbab9f4c9095bac5b06ee8c6d1415aaed7da00
61
package com.gordon.forum.Util; public class ImagePicker { }
12.2
30
0.770492
142dc18ce827c4eb088951f8b04d017ffa8f527b
746
package com.jdt.fedlearn.core.type; import org.testng.annotations.Test; import static org.testng.Assert.assertEquals; public class FGBDispatchPhaseTypeTest { private final FGBDispatchPhaseType[] algorithmTypes = {FGBDispatchPhaseType.FromInit, FGBDispatchPhaseType.ControlPhase1, FGBDispatchPhaseType.Co...
35.52381
152
0.745308
e9122d16e9794f3d7fb95055a7f6643ffc15c3c8
273
package com.javaweb.db.help; import com.javaweb.db.mybatis.api.impl.MySqlForSqlString; @FunctionalInterface public interface SqlHandle { public final MySqlForSqlString mySqlForSqlString = new MySqlForSqlString(); public String handle(SqlBuildInfo sqlBuildInfo); }
21
76
0.813187
74e6515fc63c5207f9bc918883de84c0d64397f4
2,395
import net.runelite.mapping.*; import java.util.HashMap; import java.util.Map; @ObfuscatedName("ch") @Implements("Messages") public class Messages { @ObfuscatedName("v") @Export("Messages_channels") static final Map Messages_channels; @ObfuscatedName("o") @ObfuscatedSignature(descriptor = "Lpq;") @Export("Me...
29.567901
182
0.704384
6b83d1a0dddc6974cd644cb4a6632205e8013dce
1,232
package com.cognizant.cognizantits.qcconnection.qcupdation; import com4j.Com4jObject; import com4j.DISPID; import com4j.IID; import com4j.NativeType; import com4j.ReturnValue; import com4j.VTID; @IID("{D6F05DAE-7F99-4FE0-9432-D48CAC4BA16E}") public abstract interface IComponentFolderFactory extends IBaseFactory { ...
24.156863
77
0.742695
41506dde8a5234c1bb5831aad22e38b8103325cf
4,902
package de.terrestris.shogun2.service; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.mockito.Matchers.any; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.times; import static org.mocki...
28.835294
164
0.76173
f7b6b27635104b3154ffe29ea4b6f40b9114afab
2,312
/** * Copyright (c) 2010 Perforce Software. All rights reserved. */ package com.perforce.team.ui.mylyn.preferences; import com.perforce.team.core.p4java.IP4Job; import com.perforce.team.ui.LabelProviderAdapter; import com.perforce.team.ui.mylyn.IP4MylynUiConstants; import com.perforce.team.ui.mylyn.PerforceUiMylynP...
34.507463
80
0.660467
82da263c8569dc6dcc9434b280b0d6ba144ea4d5
129
@API(owner = "Botania", apiVersion = "18", provides = "BotaniaAPI") package vazkii.botania.api; import cpw.mods.fml.common.API;
25.8
67
0.72093
4b5d19c4d97eb790dceecb59ad48600895249d72
2,733
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
34.594937
89
0.742408
11b213f2368758406207d4748530baff15a87e8f
292
package ru.stqa.training.selenium.Task19.tests; import org.junit.Test; public class AddProductToCartAndDel extends TestBase{ @Test public void addAndDelProductsToCart(){ app.openMainPage(); app.addProductToCart(3); app.deleteAllProductsFromCart(); } }
19.466667
53
0.705479
44afcf0f1f615625ff9d43dce784eec5f61a47d6
2,256
package simulator; import eduni.simjava.*; import eduni.simjava.distributions.*; class AplicationService extends Sim_entity { private Sim_port in, in2, out1AppService, out2AppService; private Sim_normal_obj delay; Sim_stat stat; AplicationService(String name, double mean, double variance, long seed...
32.228571
81
0.601507
08e9519c715f2ebbd7a740c19558e472d32e0181
14,352
/* * Copyright 2019 The gRPC 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 agree...
36.8
99
0.691263
45cae701618d040f07fa9cb472e2b4e661d88c81
15,628
package gui.tabs; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.EventQueue; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import ...
34.196937
122
0.746993
dc2af1c3073727d22973f204188f9807c866f80b
5,500
import java.lang.reflect.Field; import java.lang.reflect.Method; import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; import net.runelite.rs.Reflection; @ObfuscatedName("fx") public enum class158 implements Enumerated { @Obfuscate...
32.352941
104
0.492727
55e9150d51375ee12dd9cb0d0e2d5ee0ca961cbd
978
package de.hs_mainz.TelefonWahnsinn.objects; import de.hs_mainz.TelefonWahnsinn.objects.sensors.Telephone; import org.jsoup.nodes.Element; public class Call { private String state; // calling; alerting; connected; private int id; private long startTime; private Element partnerElement; public Call(Element ca...
21.26087
64
0.729039
fc93c99cf2da57b5ff9b9e20c991a6a5017c0c90
778
package com.zwx.gulimall.product.service; import com.baomidou.mybatisplus.extension.service.IService; import com.zwx.common.utils.PageUtils; import com.zwx.gulimall.product.entity.AttrGroupEntity; import com.zwx.gulimall.product.vo.AttrGroupWithAttrsVo; import java.util.List; import java.util.Map; /** * 属性分组 * * ...
24.3125
80
0.749357
0a60b499b6e514db04bbcd3950f11af2d64b5662
625
import java.awt.*; public class Ellipse extends Shape{ public Ellipse(int x, int y, int width, int height, Color c, int id) { super(x, y, width, height, c, id); } public void draw(Graphics g){ g.setColor(col); g.fillOval(x, y, width, height); g.setColor(Color.GRAY); ...
28.409091
96
0.5744
94b26c3ef9f2b40cabe53ce5804af0abc7398227
2,689
package com.aidansu.mall.core.mybatis.base; import com.aidansu.mall.core.api.ResultCode; import com.aidansu.mall.core.security.AuthUserDetails; import com.aidansu.mall.core.security.exception.SecureException; import com.aidansu.mall.core.security.JwtTokenUtil; import com.baomidou.mybatisplus.core.mapper.BaseMapp...
35.381579
130
0.680179
4369fba7a72d64db6dffd4e5b6fe9684b97e8817
1,735
package com.aia2122.unit5.finalactivity; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.DatePicker; import javafx.scene.control.Label; import javafx.scene.control.TextField; import javafx.scene.input.MouseEvent; import javafx.scene.layout.GridPane; import java.net.URL; import j...
24.785714
94
0.717579
a4d9932cc6b1b520f8562847b92055ecff598c3b
10,446
package es.udc.fi.dc.fd.service; import es.udc.fi.dc.fd.controller.exception.DuplicateInstanceException; import es.udc.fi.dc.fd.controller.exception.IncorrectLoginException; import es.udc.fi.dc.fd.controller.exception.InstanceNotFoundException; import es.udc.fi.dc.fd.controller.exception.InvalidAgeException; import es...
36.02069
99
0.719318
bb6859188e588bfc067806c20256642ec444ca10
12,588
package com.gd.orh.dto; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.gd.orh.entity.*; import com.google.common.base.Converter; import lombok.Data; import org.springframework.beans.BeanUtils; import java.io.IOException; import java.math.BigDe...
34.773481
116
0.520019
1ebde8604b6b20c1ef625b71c0232145385dcdb9
7,419
/** * Copyright (c) 2011, University of Konstanz, Distributed Systems Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyrigh...
38.440415
124
0.658579
c9cc21285c7dae819d962083e88d6c37b5feb6e1
4,906
// -------------------------------------------------------------------------------- // Copyright 2002-2021 Echo Three, 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 // // http:/...
38.936508
143
0.671219
3e90f8dd8a41a927db7bbbafa1804ecce2b35616
2,054
package com.highto.pub.codesys.dao.mongodb; import java.util.HashMap; import java.util.Map; import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.data.mongodb.core.query.Criteria; import org.springframework.data.mongodb.core.query.Query; import org.springframework.data.mongodb.core.qu...
32.09375
106
0.781402
c3133dbb33713e33593485659ed770ffd927578a
11,257
/* * Copyright (c) 2014 EMC Corporation * All Rights Reserved */ package com.emc.storageos.db.client; import java.net.URI; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.UUID; import java.util.regex.Match...
30.589674
111
0.571467
26e08bff862e527cd511453ad16d3325e0dcb402
3,011
/* * Copyright 2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
34.215909
131
0.749253
cc097e69b08c95539ce166884b79596ddc6130d7
3,463
package com.thinker.framework.renders.assemblys.page; import com.thinker.framework.renders.abstracts.RootRender; import com.thinker.framework.renders.aspects.ToRenderAttrs; import com.thinker.framework.renders.assemblys.slots.ElImageErrorSlot; import com.thinker.framework.renders.assemblys.slots.ElImageSlots; import c...
31.198198
72
0.536818
4dcfa4ff5c233e217352a643b3e25a6a8ac06849
1,600
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package tmddprocedures; /** * * @author TransCore ITS */ public class ProcedureStep { String stepNumber=""; String stepText=""; String action=""; String results=""; String requirements=""; St...
19.277108
56
0.62375
8488d5b0161a87a6b4b2aa64909a69d7198c96cb
8,488
package com.alibaba.testable.core.matcher; import com.alibaba.testable.core.function.MatchFunction; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; /** * @author flin */ public class InvokeMatcher { public MatchFunction matchFunction; private InvokeMatcher(...
29.068493
113
0.566918
a6d3a22f1711d3fab078f1effe98e1c8b28dc884
1,695
package com.jasonhhouse.gaps.service; import com.fasterxml.jackson.databind.ObjectMapper; import com.jasonhhouse.gaps.MovieStatus; import com.jasonhhouse.gaps.MovieStatusPayload; import com.jasonhhouse.gaps.properties.PlexProperties; import java.io.IOException; import java.util.List; import org.slf4j.Logger; import or...
35.3125
96
0.758112
185e5f67967366ae12fbbd107746ea450296c25b
2,094
package com.graphs.service; import static org.junit.Assert.assertEquals; import java.io.IOException; import java.util.Arrays; import java.util.List; import org.junit.Before; import org.junit.Test; import com.graphs.AbstractTest; public class CommandServiceTest extends AbstractTest { private CommandService comma...
33.774194
100
0.780802
a414bb26eeb5331efaf978f8cf2a74a12b6bcfde
3,776
/** */ package lu.svv.offline.tempsy.impl; import java.util.Collection; import lu.svv.offline.tempsy.TemPsyBlock; import lu.svv.offline.tempsy.TemPsyExpression; import lu.svv.offline.tempsy.TemPsyPackage; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org....
24.679739
149
0.687765
bb95a17f28c5a8419937e3b6e46368c5b926b26f
1,889
package org.javamodularity.moduleplugin.tasks; import org.gradle.api.Project; import org.gradle.api.logging.Logger; import org.gradle.api.logging.Logging; import org.gradle.api.plugins.ApplicationPlugin; import org.gradle.api.plugins.JavaPlugin; import org.javamodularity.moduleplugin.JavaProjectHelper; import org.java...
40.191489
135
0.71837