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
2fdb3f46047e01704af2506fdeef5f244b1b9883
2,414
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 ...
22.990476
83
0.627175
2be646eb5144b50e32a55462ee3dd3fb9c74bdd7
771
package com.baeldung.timestamp; import org.junit.Assert; import org.junit.Test; import java.sql.Timestamp; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class StringToTimestampConverterUnitTest { @Test public void givenDatePattern_whenParsing_thenTimestampIsCorrect() { ...
35.045455
93
0.75227
81492acef6f2bd7590686d73e471d0cde6bbfe01
4,544
package com.icedevcloud.auth.validate; import cn.hutool.core.util.StrUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.StringRedisTemplate; i...
35.779528
157
0.68706
f2e01891ac1c2dc28b6f7557618588f040221efe
3,839
package com.romanceabroad.ui; import org.openqa.selenium.WebElement; import org.testng.Assert; import org.testng.annotations.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.concurrent.TimeUnit; public class ConditionsTest extends BaseUI { @Test public void ...
24.608974
106
0.564991
61a26f133825f743b318e716da1077bd43a4f143
1,905
package com.change_vision.astah.quick.internal.model; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import static org.mockito.Mockito.when; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import org.mocki...
28.432836
70
0.662992
eeda036a61b7776edb0b63686aaee941ba086f2f
5,727
/** * Copyright 2021 LinkedIn Corporation. All rights reserved. * Licensed under the BSD 2-Clause License. See the LICENSE file in the project root for license information. * See the NOTICE file in the project root for additional information regarding copyright ownership. */ package com.linkedin.datastream.serve...
34.920732
128
0.774053
9218a92a75f37f41c74e8d815aa9d7483aae8e01
9,799
/* * Copyright Debezium Authors. * * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package io.debezium.data; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import j...
33.789655
124
0.58955
a6a3aeedc68e3d32df4df99e2e3a7a13d1287ff7
2,443
package com.example.javaproject.models; import org.springframework.format.annotation.DateTimeFormat; import javax.persistence.*; import java.util.Date; import java.util.Objects; import java.util.Set; @Entity @Table(name = "users") public class User { private Long id; private String username; private Stri...
22.62037
131
0.627507
54bb188034ba6eed2ba1ac7a73b3c234ed7126b8
3,048
/* * Licensed to Crate under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. Crate licenses this file * to you under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compl...
36.285714
140
0.650591
6d5e5481da4630b26994b13959efa629e4a44a1f
1,663
package com.defano.hypertalk.ast.statement.command; import com.defano.hypertalk.ast.expression.Expression; import com.defano.hypertalk.ast.expression.LiteralExp; import com.defano.hypertalk.ast.model.Value; import com.defano.hypertalk.ast.statement.Command; import com.defano.hypertalk.exception.HtException; imp...
33.938776
109
0.701744
0f4662bc5734c69d626157f4ba7e1f279fa7b632
695
package com.arturo.jm2api.build.type; import javax.persistence.*; import java.io.Serializable; @Entity @Table(name = "types") public class Type implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "idType", nullable = fals...
19.305556
59
0.729496
89f319c3307e9f5c81b52cb63c54a40000b1f007
7,424
package com.thinkgem.jeesite.modules.zhifubao.web; import com.thinkgem.jeesite.modules.youhuicode.entity.Msg; import com.thinkgem.jeesite.modules.zhifubao.alipayConfig.AlipayConfig; import com.thinkgem.jeesite.modules.zhifubao.alipayConfig.AlipaySubmit; import com.thinkgem.jeesite.modules.zhifubao.entity.NumberInfo; i...
38.071795
262
0.624327
a78246e7b05d8d99ac04307ab2ed0e816a4ca2be
931
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 // 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.10.14 at 01:48:...
28.212121
162
0.754028
9e2d76d366da4b5e3fc4264c6b18e5765cf8b52d
4,635
/* * Copyright 2018 Synopsys, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
33.107143
117
0.656958
9a06ec165ba1068c7f7b749c3d4f5f1cb695c046
118
package io.aftersound.weave.service.metadata.param; public enum ParamType { Header, Path, Query, Body, Derived }
19.666667
51
0.754237
588c4330bebc4c547b2a92d6c5690158b00160cb
1,311
package testeContaCorrente; public class ContaCorrente { private String agencia; private String numeroConta; private String tipo; private float saldo; private float limite; public ContaCorrente(String agencia, String numeroConta, String tipo, float limite) { this.agencia = agencia; this.numeroConta = nume...
17.958904
86
0.694889
a4f8cbd9bd8ebc837835ea4fddc657c8ec659a71
120
package com.kathline.danmaku.model; /** * 数据源接口 */ public interface DataSource { // 返回当前的类型 int getType(); }
12
35
0.641667
b35cd2ed4c9038b773dbb5f380e07d0fa8515d31
6,581
/* * Copyright © 2013-2022 Metreeca srl * * 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 ag...
28.991189
117
0.682723
6c35bbe7e43a2e3264cab0d1d357c508bf10567a
4,187
<#assign className = table.className> <#assign classNameLowerCase = table.classNameLowerCase> <#assign classNameLower = className?uncap_first> package ${basepackage}.dao; import java.io.Serializable; import java.util.List; import java.sql.ResultSet; import java.sql.SQLException; import org.springframework.be...
28.290541
88
0.624075
c56a09ea144c2c68b251f45f020c40590787a250
10,270
/* Copyright 2006 Jerry Huxtable Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
36.548043
112
0.440798
093080a527ef02dbfeb7fd2ec74cfbfa2ca11e02
2,723
/* * Copyright 2019 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
32.807229
110
0.745134
1ab5da027ea368a09dc65f19b08bc01e8fadcff0
396
package rustjni.test; public class SubClassWithMethodAlias extends SimpleClass { public SubClassWithMethodAlias(int value) { super(value + 1); } protected SubClassWithMethodAlias(int value, boolean raw) { super(value); } public SubClassWithMethodAlias combine(SubClassWithMethodAlias other) { re...
24.75
75
0.752525
fb8250dcbcca2b6bb55e8c310757e24b59918173
2,948
package edu.bu.cs673.stockportfolio.user.api; import edu.bu.cs673.stockportfolio.user.model.persistence.User; import edu.bu.cs673.stockportfolio.portfolio.service.PortfolioService; import edu.bu.cs673.stockportfolio.user.service.UserService; import edu.bu.cs673.stockportfolio.portfolio.service.ResponseService; import ...
33.5
111
0.681818
830c8868a4dfa43ceb6a828bfd5247d136f6fe55
4,778
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 政务民生机构服务通知 * * @author auto create * @since 1.0, 2021-07-27 20:39:34 */ public class AlipayEbppInstserviceMessageNotifyModel extends AlipayObject { private static final long se...
18.098485
76
0.662411
6e9c5beb2a4181ef99d8502398e16f6b3b7496d4
3,871
/* * BSD 3-Clause License - imaJe * * Copyright (c) 2016, Michael Ludwig * 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 copyrig...
26.881944
97
0.679669
843ef8546d5ccee8bb4c26fa420fd1407cf75faf
6,413
package ProgramPackage; import java.awt.Point; import java.util.ArrayList; import CharacterPackage.Monster; import CharacterPackage.Player; public class ConsoleOutputClass { //print room desc //print room contents //print possible walking directions private Training training = new Training(); private HealingS...
31.591133
173
0.624981
907170f633d9a4897ba0e094eb2683ff30ba1ecb
996
package it.unibz.inf.ontop.dbschema.impl; import it.unibz.inf.ontop.dbschema.QuotedID; import it.unibz.inf.ontop.dbschema.QuotedIDFactory; import javax.annotation.Nonnull; import java.util.Objects; /** * Creates QuotedIDs from database records * (any quotation marks are actually part of the identifier) * * TO BE...
24.9
77
0.710843
6da74594c6447e51f9fefda2190692325f1149bf
488
package ch.squix.extraleague.rest.result; import java.util.ArrayList; import java.util.List; import lombok.Data; @Data public class SummaryDto { private List<PlayerScoreDto> playerScores = new ArrayList<>(); private List<MatchSummaryDto> matches = new ArrayList<>(); private Long gameDurationSeconds; private Li...
24.4
63
0.752049
4b2488f46050bbd2ef0c5b7129c980e0e5bb5a23
4,637
package test.wdk; import com.fasterxml.jackson.core.JsonProcessingException; import io.restassured.http.ContentType; import org.apache.http.HttpStatus; import org.gusdb.wdk.model.api.DefaultAnswerReportRequest; import org.gusdb.wdk.model.api.GenomeViewInstance; import org.gusdb.wdk.model.api.IsolateViewInstance; impor...
36.226563
94
0.762562
581cb3d7da39dea6494e5ee3be98854734b5ed99
4,494
package com.base.lib.engine.common.other; import android.opengl.GLES20; import com.base.lib.engine.BaseCamera; import com.base.lib.engine.BaseDrawable; import com.base.lib.engine.Type; import com.base.lib.engine.common.Colorf; import com.base.lib.engine.common.DrawableData; /** * Simple Bezier curve */ public clas...
26.280702
106
0.483089
bf107ef7ef35d0b6c05557f44f021bf1fedb8a8c
6,351
public class star_patterns { public static void main(String args[]) { // pattern 1 // * * * * // * * * * // * * * * // * * * * System.out.println("\nPattern 1: "); for(int i = 1 ; i <= 4; i++) { for(int j = 1 ; j <= 4; j++) ...
23.094545
61
0.279011
47b6f599ad7f3d88dbe518c563e5d06b849e7a21
215
package com.walker.designpatterns.state.optimized; /** * Created by walker on 2016/8/7. */ public interface State { void insertQuarter(); void ejectQuarter(); void turnCrank(); void dispense(); }
17.916667
50
0.674419
a628f919c4cdd2617b3026e6154bba496452d4f9
2,556
package com.mongodb.pipeline.transfer.test.operator; import com.mongodb.client.model.Field; import com.mongodb.pipeline.transfer.helper.ExpressionHelper; import com.mongodb.pipeline.transfer.util.JSONUtils; import org.bson.Document; import org.junit.Test; import java.util.Date; /** <pre> * Modify Information: * Au...
34.08
147
0.600939
08578a500c26fe75700f0fb8fc9b5b93dc481131
611
package br.com.fsilveira.finance.utils; import br.com.fsilveira.finance.utils.enums.Order; public class OrderBy { private Order order; private String field; public OrderBy(Order order, String field) { this.order = order; this.field = field; } public String getField() { return this.field...
16.078947
51
0.639935
526883cf7ad9b2a52cdf531135b2625ef37599fe
2,750
/* * 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.375
100
0.729818
7475aeabe1ef87af8365882209a1ab336191278c
72
package com.crashlytics.android.answers; public final class C1000R { }
14.4
40
0.791667
17433b96fddf14ddbc9048f1b35f49333489402f
831
package com.pecaja.app.pecajamobile.models; import java.io.Serializable; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class Estado implements Serializable { private final static long serialVersionUID = -7276334585344270081L; @SerializedName("id") @...
18.065217
71
0.608905
128322c410a1e1663f97050714475cae56f07d95
2,684
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2010, 2011 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy of the Licen...
32.731707
106
0.672504
fa74372c13d976ba9022287ace0ed3215d06d60a
870
package org.alfasoftware.astra.core.analysis.operations.methods; import org.eclipse.jdt.core.dom.ASTNode; /** * Model for method AnalysisResults showing the source of the match, * the fully qualified type of the match, and the line number at which the match starts in the source file. */ class MatchedMethod...
33.461538
108
0.726437
762bd1de179c579a20f956b8f42269025c679ad7
649
package cn.howardliu.gear.es.storm; import org.apache.storm.tuple.ITuple; /** * <br>created at 16-3-8 * * @author liuxh * @since 1.0.0 */ public class DefaultEsTupleMapper implements EsTupleMapper { @Override public String getSource(ITuple tuple) { return tuple.getStringByField("source"); } ...
20.28125
60
0.656394
a4b512c3b75324c7e471fa519d8b4aed3bfc5729
1,655
package com.ivankocijan.magicviews.views; import com.ivankocijan.magicviews.interfaces.MagicView; import com.ivankocijan.magicviews.utils.FontUtils; import android.content.Context; import android.support.design.widget.TabLayout; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup...
26.269841
91
0.659215
8e047a42d6e0ed532ddceeabb96c8393b6c52428
465
package com.kevin.mirs.dao; import com.kevin.mirs.entity.Friend; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.ArrayList; @Repository public interface FriendDao { /** * 添加一条朋友记录的信息 * @param uid 用户ID * @param ufid 用户好友ID * @retu...
17.884615
73
0.686022
9ecf889b6ef18d1dfc11a1258c16408bc10bbef8
6,826
package ru.jewelline.asana4j.api.clients; import ru.jewelline.asana4j.api.ApiException; import ru.jewelline.asana4j.api.PagedList; import ru.jewelline.asana4j.api.entity.Project; import ru.jewelline.asana4j.api.entity.Team; import ru.jewelline.asana4j.api.entity.User; import ru.jewelline.asana4j.api.entity.Workspace; ...
47.075862
120
0.687225
59817eab4249546a0f112a5ff40831ed4597f946
3,630
/*- * #%L * Mastodon * %% * Copyright (C) 2014 - 2021 Tobias Pietzsch, Jean-Yves Tinevez * %% * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright...
40.786517
148
0.752617
9b18a092721bb6698592fee966cabdd7bd8542ac
1,419
package com.imt.service; import com.imt.domain.StorageLabel; import com.imt.service.dto.StorageLabelDto; import com.imt.service.dto.StorageLabelQueryCriteria; import org.springframework.data.domain.Pageable; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.List; import java.ut...
20.867647
99
0.621564
42da2a360c73284e401a13551b1ab7cb31d42592
114
package edu.ucla.cs.wis.bigdatalog.compiler.predicate; public enum PredicateType { DERIVED, BASE, BUILT_IN; }
14.25
54
0.77193
11025bfeb7d7663740c1656d5b6c660229f98e2a
7,936
package com.radiogramviewer.client; import com.badlogic.gdx.ApplicationListener; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.backends.gwt.GwtApplication; import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; import com.badlogic.gdx.backends.gwt.preloader.Preloader; import com.badlogic.gdx.g...
44.088889
124
0.536038
1674b74287ac5fed7954798e9e340b029cf7a445
308
package com.example.ecommerceapi.repositories; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.example.ecommerceapi.domain.Pagamento; @Repository public interface PagamentoRepository extends JpaRepository<Pagamento, Integer> { }
25.666667
80
0.850649
638e3ca48f415ae3afa9dfabb337e95c06cf7af3
1,460
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://kpdus.tripod.com/jad.html // Decompiler options: packimports(3) fieldsfirst ansi space // Source File Name: DateConvertUtils.java package com.ly.base.common.util; import java.text.DateFormat; import java.text.SimpleDateFormat;...
29.795918
89
0.727397
9256bb628e0ccc61078be083b7a14438f903ed61
2,324
/* * Copyright 2012-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 ap...
33.681159
90
0.752151
815d13e155407162b46444272664e462983b2e59
24
public class Q3 { }
6
18
0.541667
d7a1c74bcadbb7c4c3ca507d18a560df96790e5e
1,203
package io.automatiko.engine.addons.persistence; import io.automatiko.engine.addons.persistence.dynamodb.DynamoDBProcessInstances; import io.automatiko.engine.api.Model; import io.automatiko.engine.api.config.DynamoDBPersistenceConfig; import io.automatiko.engine.api.workflow.Process; import io.automatiko.engine.api.w...
36.454545
107
0.793849
7cd67c2f6610bd52ea5f8ce9b46519430293697b
404
package com.sw.helpapp.activity; import java.util.ArrayList; import android.app.ListActivity; import android.os.Bundle; import android.widget.ListView; public class ContactsList extends ListActivity { ListView lv_contacts; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated met...
21.263158
53
0.792079
c8d503ab5058ed61213b25c7b00c4be21813e1f0
900
/** */ package subkdm.SimplifiedDecisionMetrics.impl; import org.eclipse.emf.ecore.EClass; import subkdm.SimplifiedDecisionMetrics.CalculatedCouplingMeasure; import subkdm.SimplifiedDecisionMetrics.SimplifiedDecisionMetricsPackage; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Calc...
22.5
101
0.704444
b447b85fdce73869d5bcc087cd4a92b3057caf85
477
package com.mauriciotogneri.dry.compiler.runtime.function; import com.mauriciotogneri.dry.compiler.runtime.constant.ArrayConstant; import com.mauriciotogneri.dry.compiler.runtime.constant.Constant; import java.util.List; public abstract class ArrayFunction extends Function { @Override public Constant apply(C...
28.058824
71
0.773585
c834ea99b85653e1f1247639a808426a6d811a63
33,369
import javax.microedition.midlet.MIDlet; import javax.microedition.rms.*; import java.lang.Math; import javax.microedition.location.*; import java.io.*; import javax.microedition.io.*; import com.sun.lwuit.*; import com.sun.lwuit.events.*; import com.sun.lwuit.layouts.GridLayout; import com.sun.lwuit.animations.*; impo...
39.119578
195
0.614013
82018dae9056f2b2329cc78fc12dd77a0b6dd213
5,133
package io.github.sac.codec; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; import org.msgpack.jac...
28.837079
94
0.564387
42e0b80ae79de9b7e478453ff3368241f38ec813
644
package org.vaadin.jonni.jamote; import java.util.ArrayList; import java.util.List; import org.springframework.stereotype.Component; import com.vaadin.flow.shared.Registration; public class LatestKeeper<K> { private K latestStatus = null; private List<StatusUpdateListener> listeners = new ArrayList<StatusUpdateL...
22.206897
86
0.76087
de6d03aac0f4e9f1a238824fe2651f5de1b15641
376
package com.github.zxh0.luago; import com.github.zxh0.luago.api.LuaState; import com.github.zxh0.luago.state.LuaStateImpl; public class Main { public static void main(String[] args) { if (args.length > 0) { LuaState ls = new LuaStateImpl(); ls.openLibs(); ls.loadFile(a...
20.888889
48
0.577128
b2c028f43454bb3e625fae0641420d819c749a65
5,098
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
35.402778
129
0.663005
ddf6682993e61a5ec1dca055ce7e0fb1515ca979
13,282
import jsr166y.forkjoin.*; /** * Class for representing the returns of a given security. * * <p>To do list: * <ol> * <li>Define a window over which the mean drift and volatility * are calculated.</li> * <li>Hash table to reference {DATE}->{pathValue-index}.</li> * </ol> * * @author H W Y...
36.489011
107
0.623927
60ff122d74afd2e7fb1dfe0d4525a3170cbf1dda
1,342
package me.vali.Virtual.main; import org.bukkit.plugin.Plugin; import me.vali.Virtual.API.CoinAPI; import me.vali.Virtual.util.VirtualInventoryUtils; import me.vali.Virtual.util.VirtualItemUtils; import me.vali.Virtual.util.VirtualJavaUtils; import me.vali.Virtual.util.VirtualLogger; import me.vali.Virtual.u...
27.387755
85
0.768256
9c377fb509e3553048eb945f9e6c7680137a724c
3,412
package com.penglecode.xmodule.samples.product.api.service; import com.penglecode.xmodule.common.model.Page; import com.penglecode.xmodule.common.model.PageResult; import com.penglecode.xmodule.common.model.Result; import com.penglecode.xmodule.common.support.BeanCopier; import com.penglecode.xmodule.common.web.servle...
42.123457
120
0.764361
39a8ef37f74374cce5dc3f7811e877ed77527498
4,025
package com.taotao.cloud.order.biz.entity.aftersale; import cn.lili.mybatis.BaseEntity; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import com.taotao.cloud.web.base.entity.BaseSuperEntity; import io.swagger.annotations.ApiModel; import io.swagger.annotation...
26.136364
147
0.710062
46acaabc9d3a4a5e64ba7d14fd5f9aee08e8d2a4
4,981
package com.tictactoe.model; public class Grid { private final Move[][] mGrid; /** * initializes the all the elements of grid with Player.NONE */ public Grid () { mGrid = new Move[3][3]; for (int row = 0; row < 3; row++) for (int column = 0; column < 3; column++) ...
34.116438
115
0.587432
cb89f60837ae3be524eb599a0aeb38e440c87b70
4,189
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
46.032967
136
0.765577
7b7ee07a0f75bc7feae74ab0428a49da63f30ed1
1,796
package net.riking.web.upload; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletRequest; import java.io.File; import java.io.IOException; import java.util.HashMap; import jav...
28.967742
172
0.701559
ded3b7eb672883690825dc958635341a71f3647e
3,978
package com.fuint.application.service.smstemplate; import com.fuint.base.annoation.OperationServiceLog; import com.fuint.base.dao.pagination.PaginationRequest; import com.fuint.base.dao.pagination.PaginationResponse; import com.fuint.base.shiro.util.ShiroUserHelper; import com.fuint.application.dao.entities.MtSmsTempl...
35.517857
146
0.730015
4dc79b1d496409873aec758b28053230f521d5c8
5,726
package com.intel.realsense.camera; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.content.Context; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.os.Bundle; import android.util.Log...
38.173333
118
0.615089
0798d408a338fea11236d0fe9d86c3b6cc704287
3,509
import java.math.BigDecimal; import java.util.*; import java.util.stream.Collector; import java.util.stream.Collectors; /** * @Auther: hsj * @Date: 2019/1/25 14:45 * @Description: */ public class Lambda { public static void main(String[] args) { Thread thread=new Thread(new Runnable() { @Ov...
37.731183
164
0.605301
aeb802929416f454eaabb356af7a844a84e06833
297
package io.sdb.service.impl; import io.sdb.dao.CampaignDao; import io.sdb.model.Campaign; import io.sdb.service.CampaignService; import org.springframework.stereotype.Service; @Service public class CampaignServiceImpl extends BaseServiceImpl<CampaignDao, Campaign> implements CampaignService { }
29.7
108
0.838384
15aa07ecc9ed1afa57193f7786572c979a80f0e5
1,829
/*- ******************************************************************************* * Copyright (c) 2011, 2018 Diamond Light Source Ltd. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, ...
25.760563
81
0.622198
49a76978b59f26bbe82858bf2b986d2349fc772a
1,726
package com.example.service.domain; import au.com.dius.pact.provider.junit5.PactVerificationContext; import au.com.dius.pact.provider.junitsupport.IgnoreNoPactsToVerify; import au.com.dius.pact.provider.junitsupport.Provider; import au.com.dius.pact.provider.junitsupport.loader.PactBroker; import au.com.dius.pact.prov...
35.22449
78
0.776941
ea8171912efac35f5f4e3c2af2af1195f627f80a
3,614
package com.yahoo.test.SelNG.YUI.library; import com.yahoo.test.SelNG.framework.core.SelNGBase; import static com.yahoo.test.SelNG.framework.util.ThreadSafeSeleniumSessionStorage.session; // import static com.thoughtworks.selenium.*; import static org.testng.Assert.*; public class ContainerPanel extends SelNGBase { ...
39.282609
110
0.702269
5a29112e035f5e946f05971417de1f2aba730a83
1,165
package com.dataart.steps; import net.thucydides.core.annotations.Step; import net.thucydides.core.pages.Pages; import net.thucydides.core.steps.ScenarioSteps; import org.junit.Assert; import com.dataart.pages.PasswordResetPage; public class UserPasswordResetSteps extends ScenarioSteps{ public UserPasswordResetSte...
25.888889
73
0.817167
f9793858b88d7140ed87b01c3c0edf7b6cc6f0dc
12,291
package com.zjclugger.oa.ui; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.widget.CheckBox; import android.widget.CompoundButton; import android.widget.HorizontalScrollView; import android.widget.ImageView; import android.widget.LinearLayout; import android.widg...
42.825784
123
0.619315
60cb1af27c84fbc49fa94a7dae2554c80bbafae1
967
package com.example.game.Presenter.Trivia; import android.content.Intent; import android.os.Bundle; import android.view.View; import androidx.appcompat.app.AppCompatActivity; import com.example.game.Model.PlayerManager.PlayerFacade; import com.example.game.Presenter.BallBumpingGame.BallIntroActivity; import com.exam...
24.175
68
0.740434
14391cc991cfd584d329dd05eae051d0e3303b20
3,753
/* * Copyright (C) 2010 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...
32.353448
95
0.693312
aa58c5ba0fe9b97c0a4c40e8d347648b34553f07
362
package serviciointerno; import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface RepositorioPistas extends JpaRepository<PistaDeportiva,Long> { Optional<PistaDeportiva> findByPista(String pista)...
25.857143
78
0.812155
c220648b6923d90843bb5eddf252d481890b222a
816
/* * * * Copyright 2020 New Relic Corporation. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * */ package com.nr.agent.instrumentation.commands; import com.netflix.hystrix.HystrixCommand; import com.netflix.hystrix.HystrixCommandGroupKey; import com.netflix.hystrix.HystrixCommandProperties; pub...
24.727273
120
0.726716
78252ad977653d2d8868da884895f2ed545c07d7
2,636
package uk.gov.hmcts.reform.sscs.service; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMappin...
45.448276
95
0.794385
b06e776b0f07d74c3e924168643b86784068881d
31,094
package org.infinispan.util; import static java.util.concurrent.TimeUnit.SECONDS; import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertFalse; import static org.testng.AssertJUnit.assertNull; import static org.testng.AssertJUnit.assertSame; import static org.testng.AssertJUnit.a...
36.28238
116
0.644755
849b40ca7526a0ae86564d9d01f4a476b529bc6a
36,188
/** * ============LICENSE_START======================================================= * org.onap.aai * ================================================================================ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. * =======================================================...
48.186418
334
0.553194
304cdf96ea0c0d57359534fd5cbb1c21e54a65c3
4,212
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
26
93
0.774929
99f03b59f9c3a69fc4d173bb0d7c86da6863cf3d
1,369
package com.github.simy4.xpath.dom4j.navigator.node; import com.github.simy4.xpath.XmlBuilderException; import com.github.simy4.xpath.navigator.Node; import org.dom4j.QName; /** * DOM4J node contract. * * @author Alex Simkin * @since 1.0 */ public interface Dom4jNode extends Node { org.dom4j.Node getNode();...
24.017544
81
0.664719
fe345c5d037c47bf5ed986c5883eaaae4fe8ed06
1,018
/******************************************************************************* * Copyright FUJITSU LIMITED 2016 *******************************************************************************/ package org.oscm.database; import java.net.URL; import org.oscm.setup.DatabaseVersionInfo; /** * Db tests for adding...
26.789474
81
0.59725
6744d34caa4a62a0e2f7ee9012a4addda56b7def
1,515
package com.nicola.monitor_10; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.preference.Preference; import android.preference.PreferenceActivity; import android.preference.PreferenceFragment; import android.support.v7.app.ActionBarActivity; import andro...
29.705882
130
0.728713
b190b54556eecb699b892603835e2ff97470196d
3,530
package cn.itcast.auth; import cn.itcast.auth.util.JsonUtils; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.core.io.ClassPathResource; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.sp...
46.447368
615
0.778754
bbf4c19d2fe7005012bdd13e41cea144705f1892
11,076
/* * Copyright 2020 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...
53.76699
162
0.75316
f8d034b8b9c67ea24964274024d4a1b655a0ee5a
671
package Everest.Framework.Mvc.Routing; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; class RouteParameterExtractorTest { @Test void getNames() { RouteParameterExtractor extractor = new RouteParameterExtractor(); String mapping = "posts/{postI...
31.952381
74
0.716841
74f0652c52c20fdef0d5e226c9026354f44bf109
340
package com.xuexiang.xpage; import android.content.Context; import com.xuexiang.xpage.model.PageInfo; import java.util.List; /** * 页面配置接口 * * @author xuexiang * @since 2018/5/24 下午3:40 */ public interface PageConfiguration { /** * 注册页面 * @param context */ List<PageInfo> registerPages(C...
13.6
50
0.667647
37368ee49c764f0ab5b8298a5f44ea5ba0c6f10a
3,699
package com.communote.server.core.note; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import javax.annotation.PostConstruct; import org.springframework.stereotype.Service; import com.communote.server.api.core.note.AutosavePropertyFilterProvi...
37.744898
104
0.67748
eba5ed33c1c743a13221775aa93b15200ea69128
283
package CardsWithPower; public class Card { private int power; public Card() { this.power = 0; } public int getPower(String rank, String suit) { return RankPowers.valueOf(rank).getPower() + SuitPowers.valueOf(suit).getPower(); } }
20.214286
90
0.607774
328a492c71378e77ded2ed7f99b33e47fce93aa1
1,847
/** * Copyright © airback * <p> * This program 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 Foundation, either version 3 of the License, or * (at your option) any later version. * <p> * This program is d...
29.790323
78
0.733081
8ea8beafb6330a8ac469cb6d5cdfc8fc00772fed
7,153
package org.gs4tr.projectdirector.model.dto.xsd; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java clas...
27.832685
169
0.582133
1749e2b9a4fedd96f4f00da04777adeeda65c2ce
5,958
/* * Copyright 2016-2019 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...
36.329268
166
0.603726
891c9d9b6b85d3488c218e16b2cdf5d8b97d9250
454
package ru.gbooking.apiv2; import com.fasterxml.jackson.annotation.*; public class PurpleDate { private String from; private String to; @JsonProperty("from") public String getFrom() { return from; } @JsonProperty("from") public void setFrom(String value) { this.from = value; } @JsonPrope...
23.894737
60
0.665198
bb94a7d9490755d9aa0c8dd18e6d40e0785406b4
697
package com.heibaiying.springboot.dao; import com.heibaiying.springboot.bean.USPopulation; import org.apache.ibatis.annotations.*; import java.util.List; @Mapper public interface PopulationDao { @Select("SELECT * from us_population") List<USPopulation> queryAll(); @Insert("UPSERT INTO us_population VAL...
27.88
83
0.728838
f761a4e8ae201365a15cece7a64e5d1234d6195a
1,191
package edu.first.team2903.robot.subsystems; import edu.first.team2903.robot.RobotMap; import edu.wpi.first.wpilibj.Servo; import edu.wpi.first.wpilibj.Victor; import edu.wpi.first.wpilibj.command.Subsystem; public class Shooter extends Subsystem { public Victor shooterWheel = new Victor(RobotMap.shoote...
31.342105
68
0.638119
87e61b17e75ec34352ce1a3b4b8bab784628f277
285
package ru.merkurev.sfgpetclinic.services; import ru.merkurev.sfgpetclinic.model.PetType; /** * Interface for CRUD operations for {@link PetType}. * * @author Merkurev Sergei * @version 0.1 * @since 0.2 */ public interface PetTypeService extends CrudService<PetType, Long> { }
20.357143
68
0.740351