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
02b28825cd06adb35dd6d2a4a0df297bab936789
8,100
package com.example.notes; import androidx.annotation.MainThread; import androidx.annotation.NonNull; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.ComponentActivity; import android.content.DialogInterface; import android.content.Intent; import an...
35.526316
137
0.571111
54aeef01ff3898fa6cba3a83a9ee8d4e3237a8a9
178
package io.simplelocalize.cli.processor.files; import java.nio.file.Path; import java.util.List; public interface FilesFinder { List<Path> findFilesToProcess(Path path); }
16.181818
46
0.780899
ac7dd686a7a647935f7ae621456c3a891d9fae25
1,635
/* * Copyright (C) 2017 Red Hat, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
30.849057
98
0.704587
2a1b40dae1bf4fae2e612141e67f067c7abf392e
260
package com.bin.mybatis.entity; import lombok.Data; import java.util.Date; /** * @author shaobin.qin */ @Data public class Student { private Integer id; private String name; private Integer age; private Date birthDay; private Date createTime; }
11.304348
31
0.723077
e417063321251c5e7230786c441a2627d86421c5
1,644
package com.blakebr0.extendedcrafting.client.gui; import com.blakebr0.cucumber.helper.RenderHelper; import com.blakebr0.cucumber.helper.ResourceHelper; import com.blakebr0.cucumber.util.Utils; import com.blakebr0.extendedcrafting.ExtendedCrafting; import com.blakebr0.extendedcrafting.client.container.ContainerUltimate...
37.363636
131
0.786496
3fa6697c9931cc43cea1dfaec8fa65400a163619
155
package com.brageast.blog.service; import java.util.Set; public interface GroupService { Set<String> getGroup(); Set<String> getPermissions(); }
17.222222
34
0.729032
5df8b257cee4955e5cc938cd73a97c0d62195e5a
10,927
/* * Copyright (c) 2009, Takao Sumitomo * 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, thi...
39.305755
106
0.760502
813cc51dd8f8e9b161c588331dcfd0e2c3a9e1b7
1,449
package bsoft.com.clipboard.model; import lombok.Data; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Size; import java.io.*; @Data @Entity(name = "PostMessage") @Table(name = "postmessage") public class...
28.98
93
0.712905
13c44b5d45bbb3c88bc0b98f65d6fc2d6eb3bbe4
113
package net.modificationstation.stationapi.api.common.item.tool; public interface Shovel extends ToolLevel { }
18.833333
64
0.823009
5e575092dcff9d5eab8a7f4a13be710f4bcfe7d1
5,475
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * 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 ...
14.110825
810
0.795982
c2b59db278b24be2b08babd4ef666c168317e0b3
141
package com.devteam.module.enums; public enum EditMode { DRAFT, VALIDATED, LOCKED; static public EditMode[] ALL = EditMode.values(); }
17.625
51
0.730496
ccc038cb721e53fed3d89e01418629a520850268
3,530
/* * Copyright (c) 2014, Andreas P. Koenzen <akc at apkc.net> * 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, th...
32.990654
80
0.651841
8d0546de77219fa7b89a703f774add887d6b5d55
692
package razerdp.friendcircle.app.mvp.view; import java.util.List; import razerdp.friendcircle.app.mvp.model.entity.CommentInfo; import razerdp.friendcircle.app.mvp.model.entity.LikesInfo; import razerdp.friendcircle.app.mvp.model.entity.UserInfo; import razerdp.github.com.baselibrary.mvp.IBaseView; import razerdp.fri...
26.615385
83
0.799133
1aa1c38956fba4597dd38fdb78887c67f66f28bd
3,471
/** * Package: MAG - VistA Imaging WARNING: Per VHA Directive 2004-038, this routine should not be modified. Date Created: Jun 17, 2011 Site Name: Washington OI Field Office, Silver Spring, MD Developer: VHAISWWERFEJ Description: ;; +------------------------------------------------------------...
29.922414
91
0.731201
48362e96e2305f6f869064b90dec108c80247334
10,151
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package org.redkale.source; import java.util.*; import org.redkale.convert.*; import org.redkale.convert.json.JsonConvert; ...
24.819071
108
0.540242
af158c9e7232924ec68d194adb447056584b6188
6,948
package com.momia.service.impl; import java.sql.ResultSet; import java.sql.SQLException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import org.spring...
28.359184
134
0.651267
639fc82dfbdd362775bcb916d2b7d65949c2eb57
1,023
package org.nutz.ioc.java; import org.nutz.ioc.IocMaking; import org.nutz.lang.Lang; public abstract class ChainNode { private ChainNode next; public void setNext(ChainNode next) { this.next = next; } protected abstract Object getValue(IocMaking ing, Object obj) throws Exceptio...
22.733333
84
0.537634
270b97f1e487a354795d7231821d159865d8d6e2
3,208
/* * Copyright (C) 2018 Sergej Shafarenka, www.halfbit.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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
33.072165
108
0.645574
f75427355b569ebdebb844f0a218b0e37b65c4ba
569
package dao.entities; public class ReturnNowPlayingAlbum extends ReturnNowPlaying { private final String album; public ReturnNowPlayingAlbum(ReturnNowPlaying other, String album) { this(other.getDiscordId(), other.getLastFMId(), other.getArtist(), other.getPlayNumber(), album); } public Retur...
29.947368
112
0.706503
503845a9abf4e83598463bc0a18f6eafbdd696dd
2,205
package com.uic.cs581.utils; import lombok.extern.slf4j.Slf4j; import org.codehaus.jackson.map.ObjectMapper; import org.codehaus.jackson.type.TypeReference; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java....
32.426471
97
0.577324
3d10f4877571067cba63be15dec5ec2c07783258
450
package net.aionstudios.api.errors; import net.aionstudios.api.error.AOSError; /** * An {@link AOSError} encountered when a request fails due to the absence of a request {@link Action} in the requested {@link Context}. * * @author Winter Roberts * */ public class NoSuchActionError extends AOSError { ...
25
137
0.704444
40920b3b9f24464c7b157fe8ec5e088b82ccce0e
3,228
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.highcharts.export.interceptor; import com.highcharts.export.service.MonitorService; import java.io.IOException; import java.util.Date; import java.util.Map; import java.util.logging.Level; import java.util.l...
35.086957
151
0.60316
4f8e63afe7748c289c1d8fc7efb3a44e2cc6e805
256
package spencercjh.problems; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class CanPlaceFlowersTest { private CanPlaceFlowers solution = new CanPlaceFlowers(); @Test void canPlaceFlowers() { } }
15.058824
59
0.734375
0c35388f2f838f95c5439558ebe6eaef29e34660
10,699
// Created by plusminus on 23:18:23 - 02.10.2008 package com.mapbox.mapboxsdk.overlay; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Point; import android.graphics.PointF; import android.graphics.RectF; import android.graphics.drawable.Drawable; import android.view.MotionEvent;...
36.023569
105
0.634826
5249f7710703a5f10516a558678128fbd96d2afc
4,473
package de.stevenschwenke.java.writingawesomejavacodeworkshop.part1JavaLanguageAndMethods.c05_immutable.cc2_immutablesOrg; import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.Collections; import java.util.List; import static org.junit.jupiter.api.Assertions.*; public class AmountOfMoney...
39.584071
300
0.687011
15071826c0c31618388d35c6d529f7e8d90b7f13
4,818
package kieker.tools.slastic.plugins.cloud.amazon.service.ec2ToolsIntegration; /** * * @author Florian Fittkau * */ public class AmazonCommandFactory { private final static String allocateNodeCommand = /* proxychains */"ec2-run-instances && --key && KEY-NAME && --group && GROUP-NAME && -t && m1.small && "; ...
35.955224
114
0.76484
76e29180b3716431b8e6973866c93c62d9173ea7
2,307
package org.terifan.security.messagedigest; import java.security.MessageDigest; import java.util.Arrays; public final class HMAC extends MessageDigest implements Cloneable { private transient MessageDigest mMessageDigest; private transient byte [] mInputPad; private transient byte [] mOutputPad; private HMAC(M...
16.717391
71
0.707412
8331ddcaa77f750449177c93bab899d4deef4804
2,148
/** * @see https://mit-license.org/ * The MIT License (MIT) * Copyright © 2019 <copyright holders> * * 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 wi...
32.059701
96
0.667132
0886c4336682de898d9b2b7b473830f960d2fad5
10,923
/* * Copyright 2016-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...
40.010989
183
0.624096
bff11bad64fdabfac2aa5cbf09f975e30bfd8587
107
package com.newpecunia.unicredit; public enum PackageStatus { PREPARING, ERROR, PARTLY_SIGNED, SIGNED }
21.4
41
0.794393
fac7293b35f416a70c034fbb0459e222e6c0ea90
1,195
package com.mt.main.plugin; import com.mt.mybatis.mapper.MapperData; import com.mt.mybatis.plugin.MtInterceptor; import com.mt.mybatis.plugin.MtInvocation; import com.mt.mybatis.plugin.MtPlugin; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * <p>执行日志输出插件</p> * * @author grand 2018/6/21 * @version V...
29.875
83
0.667782
dc078ca091fbb9e53f7e5be7bfa73d789905dd14
1,806
package rocks.inspectit.ui.rcp.handlers; import java.util.Iterator; import org.apache.commons.lang.StringUtils; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.commands.IHandler; import org....
34.075472
113
0.778516
9ff1c34418cce8e3de5d3e902faccdf4843706df
135
package com.algorand.prediction.service.core; public enum QuestionState { CREATED, PUBLISHED, COMPLETE, DISTRIBUTED }
15
45
0.718519
f5a48ec9fb9ceae83f5de46048fdb9d81b7a0ea0
5,422
/* ==================================================================== Copyright 2002-2004 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://w...
27.805128
133
0.578015
ad29a9da93051c358136ca9451f6add4b1be6ee9
2,845
package org.brightify.torch.util; import android.util.SparseArray; import android.util.SparseBooleanArray; import org.brightify.torch.EntityDescription; import org.brightify.torch.TorchService; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Custom implementation of {@link ArrayLis...
29.329897
104
0.602812
e030225090ac664219c8b4f5b89d3249fd2c67c1
1,626
package interview; import java.util.concurrent.ArrayBlockingQueue; /** * 要求用两个线程顺序交替打印1-26,A-Z,例如A1B2C3....Z26 * * 主要考的是线程的通信,这里我们使用BlockingQueue的方式来阻塞 * * @author wliduo[i@dolyw.com] * @date 2020/4/26 14:15 */ public class T03_3_BlockingQueue { public static class InterviewTest { public static A...
27.559322
86
0.46679
68ca9a8c21fbf428a6c3b098b8286c7b33f1585e
1,439
package com.nshirley.engine3d.entities; import java.nio.FloatBuffer; import com.nshirley.engine3d.graphics.Texture; import com.nshirley.engine3d.graphics.VertexArray; import com.nshirley.engine3d.math.Matrix4f; import com.nshirley.engine3d.math.Vector4f; public class Mesh { protected Matrix4f mlMatrix; ...
18.934211
63
0.66991
5ed00abb48c1c7e02e76e8af22f6391ad6df44b1
21,883
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.dev.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.dev.models.AgentPo...
29.216288
118
0.651099
579fbcd269c8691ba5814c50dade0be040bc99d2
248
package com.ctrip.xpipe.api.proxy; import com.ctrip.xpipe.api.command.Command; import io.netty.buffer.ByteBuf; /** * @author chen.zhu * <p> * Oct 23, 2018 */ public interface ProxyCommand<T> extends Command<T> { ByteBuf getRequest(); }
15.5
53
0.697581
ec4695c32329ab1409092e96459c5b939d77a040
620
public class MyException extends Exception{ double radius; public MyException(){ super(); } public MyException(String message) { super(message); } public void setRadius(double radius) throws MyException{ if(radius<0){ throw new MyException(" Invalid "+"...
20.666667
62
0.564516
a04126c1657679c1ff649527d0faedbc85e92a31
1,055
package com.osmino.sova.db; import androidx.lifecycle.LiveData; import androidx.room.Dao; import androidx.room.Delete; import androidx.room.Insert; import androidx.room.OnConflictStrategy; import androidx.room.Query; import androidx.room.Update; import com.osmino.sova.model.Assistant; import java.util.List; @Dao pu...
25.119048
72
0.729858
01f4c107e553a21c4aed09eb9e0ffa9c0ac944d3
1,426
package JavaCode.top_interview_questions_easy.trees; public class two { /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ class Solution { publi...
20.371429
90
0.475456
b5139354a2b9bf148b86b9fbd286ed0fa90f849d
2,265
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * (C) Copyright 2009-2020, Arnaud Roques * * Project Info: https://plantuml.com * * If you like this project or if ...
33.80597
103
0.684768
f9604c87f9b8529bd6076e2b343c90012c9c7592
6,930
package mendixsso.implementation.utils; import com.mendix.core.Core; import com.mendix.logging.ILogNode; import com.mendix.m2ee.api.IMxRuntimeRequest; import com.mendix.m2ee.api.IMxRuntimeResponse; import com.mendix.systemwideinterfaces.core.ISession; import mendixsso.implementation.handlers.OpenIDHandler; import mend...
40.764706
165
0.644156
be567abebec69e3d07236a1c1c0ea53d7aa1253f
2,423
package commandPackage; import fileSystem.Directory; import fileSystem.FileSystemEntity; import fileSystem.FileSystemErrors; import fileSystem.FileSystemTerminal; import fileSystem.Permission; public class Rmdir extends FileCommand { public Rmdir(String commandName, String commandArguments) { super(commandName, c...
26.336957
86
0.704086
c8d495bc0930ff724e5e87f4e276aafa63a87821
3,515
/** * Copyright (c) 2013-Now http://jeesite.com All rights reserved. */ package com.jeesite.modules.oy_order_management.entity; import com.jeesite.common.entity.DataEntity; import com.jeesite.common.mybatis.annotation.Column; import com.jeesite.common.mybatis.annotation.Table; import com.jeesite.common.mybatis.mappe...
27.038462
132
0.735704
8b15561fed876897816a0fd5ef67cfd2e7a6c805
1,239
package com.example.demo.controller.homework; import com.example.demo.utility.area.areaKind; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation...
28.159091
62
0.68523
059810a379b6e3a34245392a329ff37d1a1c098b
1,659
package com.orekaria.jenkins.plugins.globalprescript; import hudson.Extension; import hudson.util.FormValidation; import org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript; import org.kohsuke.stapler.DataBoundSetter; import org.kohsuke.stapler.QueryParameter; /** * @author Orekaria * Add global ...
30.163636
92
0.703436
04ecee665f8c87d9d800bb2a4b17d8b7def8a6dd
7,508
package io.github.mayunfei.rxdownload.entity; import android.content.ContentValues; import android.database.Cursor; import io.github.mayunfei.rxdownload.db.DBHelper; import java.util.List; import static io.github.mayunfei.rxdownload.entity.DownloadStatus.DOWNLOADING; import static io.github.mayunfei.rxdownload.entity...
25.026667
78
0.666889
49ff4d2b86c0d78b76b24a6704f8cf6579e34399
289
/* * 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 mx.majori.vo; /** * * @author Ricardo Hiram */ public class ClienteVO { }
19.266667
80
0.66436
fa5ffa3d38a9739f132a44865ee695242bf9308d
2,799
package com.goldze.mvvmhabit.ui.base.viewmodel; import android.app.Application; import android.databinding.ObservableField; import android.databinding.ObservableInt; import android.support.annotation.NonNull; import android.view.View; import me.goldze.mvvmhabit.base.BaseModel; import me.goldze.mvvmhabit.base.BaseView...
24.552632
86
0.658092
ccd03892ba15327bef1354c44745abb97672946b
4,013
package org.vatplanner.dataformats.vatsimpublic.entities.status; import java.util.HashMap; import java.util.Map; import java.util.TreeMap; /** * A {@link FacilityType} describes the area of responsibility of an ATC * station. * <p> * In general, all controlling facilities provide full replacement service if a * ...
32.104
103
0.670321
14b522aee7ae7de4b9b5b3e4af3295b2101d25fe
10,620
package synth.osc; import net.beadsproject.beads.core.AudioContext; import net.beadsproject.beads.core.UGen; import net.beadsproject.beads.data.Pitch; import synth.modulation.*; import synth.container.Device; import javax.sound.midi.*; public abstract class Oscillator extends UGen implements Device { protected ...
28.702703
156
0.62354
400d633b9db1029b9178012bf1c45c7114d664bc
2,012
package com.mapbox.services.android.navigation.ui.v5.map; import android.content.Context; import android.content.res.Resources; import com.mapbox.mapboxsdk.maps.MapView; import com.mapbox.mapboxsdk.maps.MapboxMap; import com.mapbox.services.android.navigation.ui.v5.R; class MapPaddingAdjustor { private static fin...
33.533333
96
0.77336
a4f2dc42c067b2d8c7148d2947d65b3c1378fee4
2,958
package com.interview.analyse; import java.util.*; public class ConnectionPoolDesign { static class ObjectsPool { // Type, instanceName, Instance Map<String, Map<String, Object>> lookup; static ObjectsPool instance = null; ObjectsPool getInstance() { if (instance ...
25.947368
89
0.463827
8b7f8a7cd97e0a3dbdec315c8eb8e6cc23377ede
3,317
/* * Copyright © ${project.inceptionYear} ismezy (ismezy@qq.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
39.488095
129
0.694001
b0c4c2ba45c3890a15035063b804f14ca7ead665
1,488
/* * Copyright © 2015 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...
31
101
0.744624
34dc24515578b67b4d7d9c28bf7d9923cd70d4ed
5,592
/* * Copyright 2014 Igor Maznitsa. * * 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...
37.530201
154
0.728362
da52f849ce5f0b08630022abdf505454e8b9aedc
3,723
package pl.grzegorz2047.databaseapi; import java.sql.*; /** * Created by grzegorz2047 on 23.04.2016 */ public class MoneyAPI { private DatabaseAPI sql; private String moneyTable; private MoneyAPI() { } public MoneyAPI(String host, int port, String db, String user, String password) { sq...
30.516393
220
0.452055
6d10751acd3179124a4af83f7e22760415a1b601
3,572
package course.examples.maps.earthquakemap; import android.app.Activity; import android.os.Bundle; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.MapFragment; import com.google.android.gms.maps.OnMapReadyCallback; import com.goo...
31.333333
135
0.630739
e3eda956eb951936517e5c7e676f46aa02628c06
1,855
package org.ovirt.engine.core.bll; import org.ovirt.engine.core.common.AuditLogType; import org.ovirt.engine.core.common.action.ChangeDiskCommandParameters; import org.ovirt.engine.core.common.businessentities.VM; import org.ovirt.engine.core.common.vdscommands.ChangeDiskVDSCommandParameters; import org.ovirt.engine.c...
41.222222
117
0.720755
1ab8a388b08eb6047b9a9918558540fa46f67438
1,301
package br.com.zup.bootcamp.domain.entity; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import java.time.LocalDateTime; // Intrinsic charge = 2 @Entity public class Question { @Id @Ge...
22.050847
91
0.668716
faf20e82e7c030cf509f161e1160e8b72dd6dca5
1,068
package cz.cuni.mff.kocur.considerations; import cz.cuni.mff.kocur.base.Location; import cz.cuni.mff.kocur.decisions.DecisionContext; import cz.cuni.mff.kocur.world.GridBase; /** * Considers distance to target. * @author kocur * */ public class ConsiderDistanceToTarget extends Consideration{ public ConsiderDis...
22.723404
65
0.712547
0397323f922b4a5c19354867f21ecadc973e57af
456
package com.faforever.client.user; import com.faforever.client.task.CompletableTask; import java.util.concurrent.CompletableFuture; public interface UserService { CompletableFuture<Void> login(String username, String password, boolean autoLogin); String getUsername(); String getPassword(); Integer getUse...
19
85
0.778509
0d8b19caf26d346798641926f51321818f5898c6
842
package com.javafortesters.chap015Stringsrevisitedclasses.examples; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertThat; public class StringReplaceTest { @Test public void replaceMethods() { String hello = "Hello fella fella fella"; ...
32.384615
89
0.667458
66911bdfdf30cbdcef82a3e25971a8ace23a95a9
174
package org.apache.sparkmeta.join.helper; import org.apache.sparkmeta.join.vo.MetaData; public class MetaDataParser { public MetaData getMetaData() { return null; } }
15.818182
45
0.764368
a4d7286f7b3bbd5f5f7d3147fb3bfafc6b3a2fe2
809
package main.model.dto.project; import lombok.Data; import lombok.EqualsAndHashCode; import main.annotations.DataBaseInsert; import main.annotations.DataBaseName; import main.annotations.DataBaseSearchable; import main.model.dto.BaseDto; import java.util.List; @Data @EqualsAndHashCode(callSuper = true) public class...
25.28125
48
0.76267
3d41d78bae5c4497a5f59ac5dab82d1806bfe6c4
3,182
/* * Copyright (C) 2009 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...
31.50495
92
0.604023
53a85244fad2b246c70607971f62fa50c8e19460
2,043
package socketsconconexion.stream; import java.net.*; import java.io.*; /** * Este ejemplo ilustra la sintaxis b�sica del socket * en modo stream. * @author M. L. Liu */ public class SolicitanteConexion { // Una aplicaci�n que solicita una conexi�n y manda un mensaje utilizand...
39.288462
77
0.596672
84438e15fe81e4d473ab350f6a160b6ba6269bff
306
package com.github.davidfantasy.mybatisplus.generatorui.strategy; import com.baomidou.mybatisplus.generator.config.ConstVal; import lombok.Data; @Data public class ServiceStrategy { /** * 自定义继承的Service类全称,带包名 */ private String superServiceClass = ConstVal.SUPER_SERVICE_CLASS; }
19.125
68
0.754902
daaccca7feb89198f6fbc5165ca4b76bde692af5
1,185
package org.otaibe.commons.quarkus.aws.extension.deployment; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.FeatureBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; import org.otaib...
37.03125
129
0.747679
2dcb0e6d209c350dcb4c8da3d2ba8a49b63c3b0f
2,687
package com.snk.door.enums; /** * 报警记录 */ public enum AlarmRecord { /** * 门磁报警 */ TYPE_1(1, "门磁报警"), /** * 匪警报警 */ TYPE_2(2, "匪警报警"), /** * 消防报警 */ TYPE_3(3, "消防报警"), /** * 非法卡刷报警 */ TYPE_4(4, "非法卡刷报警"), /** * 胁迫报警 */ TYPE_...
14.763736
72
0.453294
67b6fc46038626af1ad527a104143b02585ebf68
187
package com.sumygg.excelexportor; /** * 格式化方法接口 * * @author SumyGG * @since 2018-06-11 */ @FunctionalInterface public interface ColumnFormatter { String format(Object value); }
14.384615
34
0.71123
467a5f401e3b022959577f155557205a56c0fef6
17,573
package wassilni.pl.driver.ui; import android.Manifest; import android.app.ProgressDialog; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.Color; import android.location.Location; import android.location.LocationManager; import android.net.Uri; import android.provider.S...
44.488608
259
0.641837
1b5319fa56e037ac334f68d68c26e1efe70c4116
5,695
/* * Copyright 2017 NAVER Corp. * * 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 ...
46.300813
128
0.750834
9e1fe5529d86f7bffb612a24531186c89eb8ce4f
2,014
/* * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "licen...
33.566667
104
0.686197
a0364982df40897f927e15f8d1b476b39b057754
1,048
package cn.sakurablossom.freeblog; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class User { @Id private Integer user_id; private String user_name; private String user_password; /** * @return the user_id */ public Integer getUser_id() { retur...
19.054545
56
0.605916
43592eaf7d5a6475c6042597941d771964f6a812
728
package behavioral.observer; import java.util.LinkedList; import java.util.List; public class ObservableImpl implements ObservableContract { private List<ObserverContract> observers = new LinkedList<>(); Item item; @Override public void add(ObserverContract observer) { observers.add(observer); } @O...
19.157895
64
0.706044
4a3ab05c4ce2025c921768ec7802278d31943ff2
4,354
/* Copyright Airship and Contributors */ package com.urbanairship.automation.auth; import com.urbanairship.TestClock; import com.urbanairship.channel.AirshipChannel; import com.urbanairship.http.RequestException; import com.urbanairship.http.Response; import org.junit.Before; import org.junit.Test; import org.junit....
35.688525
94
0.629306
cb142a7f2b38fd4c9561db0876c884bee7f143d2
2,284
package cn.javareview.ssm.service.impl; import java.util.List; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import cn.javareview.ssm.exception.CustomException; import cn.javareview.ssm.mapper.ItemsMapper; import cn.javareview.ssm.mapper.ItemsMapp...
25.098901
81
0.73993
d675b32b11f6350434632fdfd5326704531dc68c
730
package wordTree.threadMgmt; import wordTree.util.FileProcessor; import wordTree.util.TreeBuilder; import wordTree.util.MyLogger; public class DeleteThread implements Runnable{ private String word = null; private TreeBuilder tb = null; /** * DeleteThread constructor * @param tbI - Tre...
27.037037
95
0.690411
bf6a69d656ead40dac14c9d5bd5efe2403325ee7
4,531
package me.braggs.BraggBot.Commands.CommandFactories; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonObject; import me.braggs.BraggBot.Commandarguments.paramType; import me.braggs.BraggBot.Commands.CommandFramework.Command; import me.braggs.BraggBot.Commands.CommandFramewor...
41.568807
138
0.589936
74005ba9633b4fd7191c60949a5ccbdf198d540a
7,235
/* * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.imageio.plugins.tiff; import java.awt.Rectangle; import java.awt.image.BufferedImage; i...
29.056225
79
0.581755
d8de0f990fbb06ceeb7e8d7db2c7579502a28a8d
858
package liber.abaci.config; import liber.abaci.controller.FibonacciSequenceController; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean; import org.springframework.v...
29.586207
83
0.806527
35ab85ce5150e4fdfd2d89e799f94ac2385c9ca0
1,628
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.subsystems; import edu.wpi.first.wpilibj2.command.SubsystemBase; import frc.robot.RobotContainer; imp...
26.688525
75
0.694717
29bb73d9073e915df59acd11ddff5d41a5acefbe
2,243
package seedu.address.logic.commands; import static java.util.Objects.requireNonNull; import java.util.List; import seedu.address.commons.core.Messages; import seedu.address.commons.core.index.Index; import seedu.address.logic.commands.exceptions.CommandException; import seedu.address.model.Model; import seedu.addre...
35.046875
107
0.693714
1055127ef85539bd7ff6019b8c41d3b2ff0922d9
936
package io.octoprime.algo.math.num; public class ZSandbox { public static int fibi(int n) { if (n <= 1) return n; return fibi(n - 1) + fibi(n - 2); } public static int fib(int n) { int a = 0; int b = 1; int c = 0; for (int i = 2; i < n; i++) { ...
16.714286
50
0.412393
1997254f5d1702a1974c2466b3a04f32aa8c47a7
1,593
package org.apereo.cas.authentication.device; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Builder; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.ToString; import lombok.experimental.SuperBuilder; import lombok.extern.j...
24.136364
80
0.700565
0ff96f1c1f75d9e371df39fcb5d0baa52b11816e
2,681
/* * Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package goodman.org.omg.CORBA; import org.omg.CORBA.CompletionStatus; import org.omg.CORBA.SystemExcep...
29.141304
105
0.682208
9e0708932d0ee760b75439eddb5f23b9868c3891
1,413
package org.usfirst.frc.team4950.robot.subsystems; import edu.wpi.first.wpilibj.command.Subsystem; import java.util.concurrent.locks.ReentrantReadWriteLock; import org.usfirst.frc.team4950.robot.Database; import org.usfirst.frc.team4950.robot.Robot; import org.usfirst.frc.team4950.robot.RobotMap; import org.usfirst....
28.26
62
0.788393
f1f02f3fb924354f2f4e43a52900ca2dccf2b018
1,246
package sasj.controller.principal; import sasj.data.course.Course; import sasj.data.course.CourseRepository; import sasj.controller.Extensions; import sasj.controller.AuthorizedController; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.spring...
34.611111
72
0.756822
3a6b845509335bf48d5281f536ffe8436048a5b8
79
package org.nanotek.entities; public interface BaseArtistCreditEntity<K> { }
13.166667
44
0.797468
678144466c3036c322097dd8af0772710209c0d6
5,735
/* * Copyright (C) 2021 stylist Development Team * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT */ package stylist.value; public class Fo...
27.440191
130
0.561465
13852bd63adfa4e339783739c2d1df38f2ea2e8c
278
package it.unibz.inf.ontop.spec.mapping.transformer; import com.google.common.collect.ImmutableSet; import it.unibz.inf.ontop.spec.mapping.Mapping; public interface MappingMerger { Mapping merge(Mapping... mappings); Mapping merge(ImmutableSet<Mapping> mappings); }
23.166667
52
0.780576
87a0d31e63c519070151300730b6825dcf916b83
2,302
package org.tatools.sunshine.core; import java.io.IOException; import java.nio.file.FileVisitResult; import java.nio.file.FileVisitor; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.attribute.BasicFileAttributes; import java.util.ArrayList; import java.util.List; import lombok.EqualsAndHas...
33.852941
96
0.560817
dda5cb5c1060f9e7b5c62aa1dee14dd6f0919f7a
5,606
package agp.ajax; import static agp.ajax.AjaxHandler.CONTENT_TYPE_HTML; import static agp.ajax.AjaxHandler.CONTENT_TYPE_JSON; import static agp.ajax.AjaxHandler.FILENAME; import static agp.ajax.AjaxHandler.FILE_PARAMETER; import static agp.ajax.AjaxHandler.PENDING; import static agp.ajax.AjaxHandler.PENDING_FIL...
41.220588
118
0.765787
567e4f49f9d3d7cd79dfbc3485c03a6c1fd46378
989
package sort_list; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; /** * @author code4crafer@gmail.com */ public class SolutionTest { private Solution solution1 = new Solution(); @Test public void test_empty_list() throws Exception { ListNode listNode = null; assertThat(so...
24.121951
66
0.751264
0f84d442f683f266dd4cef748a57f4e82e31ccc8
8,500
package org.firstinspires.ftc.teamcode.Systems.Core; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import java.util.ArrayList; import java.util.Collections; public class Positions extends LinearOpMode { /* POSITION SETUP VARIABLES */ //Position Variables: private static Robot robot = n...
27.777778
96
0.621765
64ee0d175bbf87ad2ba931057ad42b8884a03cdc
1,609
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
36.568182
87
0.768179
6bae08cc26431b242a7c0682e2e5bd23e0653539
1,474
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.editor.views.tree.commands; import org.eclipse.gef.commands.Command; import com.archimatetool.model.IFolder; ...
26.8
110
0.628901