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
c986b25a9c291980632bef6a3388bfa36605ebb3
4,473
package com.chobocho.minesweeper; import java.util.ArrayList; public class MineSweeperImpl implements MineSweeper, MineSweeperNotifyCallback { private ArrayList<GameObserver> observers; private int boardWidth; private int boardHeight; private int boomCount; private int play_time = 0; private i...
23.666667
80
0.567404
326e4f7e4cdc400dd4de8d948995adc5be6acb38
24,185
/* * Copyright 2015 Max Schuster. * * 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 ...
33.920056
117
0.634691
f1ea5ac5521014112ba21ce742118e26410ffb8d
693
package com.nexidia.main; import com.nexidia.helper.InputFileHelper; /** * Nexidia Coding Test * 1. Take path to a file as a commandline argument that contains one integer per line. * 2. For each integer in the file, output console a comma-delimited list of integer's prime factors. * The list of integers on eac...
27.72
101
0.698413
cb748d007486b895b6a0bc9e5c66f0d978ce8584
2,171
package urv.olsr.mcast; import org.jgroups.Address; import org.jgroups.stack.IpAddress; import org.jgroups.util.Streamable; import java.io.*; import java.net.InetAddress; import java.net.UnknownHostException; /** * Class that represents a multicast address of a group * * @author Gerard Paris Aixala * */ public...
26.156627
104
0.740673
a37b0b41e4119e785f84a2f504837ab3a05aed38
208
package mcjty.hotspots.api; /** * Hot spots of attenuation type RADIATE and RADIATE_BLOCKER will implement this interface in addition to IHotSpot */ public interface IRadiatingHotSpot extends IHotSpot { }
26
114
0.798077
6be55637906571508432838e981a0f29ddd08993
5,919
package com.hdw.api.base.system.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.databind.annotation.JsonSerialize; imp...
18.100917
65
0.549755
f2eaa7baebd0bd9e6fd8a1c7a22050a95eb76dd0
2,098
/* * Copyright © 2020 Miroslav Pokorny * * 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...
40.346154
131
0.706387
a1b796185b9cc04974a889f2750971c8791a8236
728
package com.github.zeroone3010.yahueapi; /** * See https://developers.meethue.com/documentation/supported-lights for further specifications. */ public enum LightType { ON_OFF, DIMMABLE, COLOR_TEMPERATURE, COLOR, EXTENDED_COLOR, UNKNOWN; static LightType parseTypeString(final String type) { if (type == nul...
24.266667
96
0.648352
83b6378de87fbff1f59e0478214d627502898d93
715
package com.terryrao.shiro; import com.terryrao.admin.model.AdminLoginLog; import com.terryrao.admin.model.AdminPermission; import com.terryrao.admin.model.AdminUser; import java.util.List; /** * 登录服务 所有使用 shiro 验证系统的请实现此类 * 2018/4/24 * */ public interface AdminLoginService { /** * 使用登录名称获取用户信息 ...
15.543478
65
0.634965
62994250bb8199bc48a33c3b40d1e363c5f08511
461
package com.mall.vo; import lombok.Getter; import lombok.Setter; import java.math.BigDecimal; /** * @author ZZH * @date 2018/10/2 0002 16:26 **/ @Getter @Setter public class ProductListVo { private Integer id; private Integer categoryId; private String name; private String sub...
15.366667
32
0.659436
86b1483f308eca1ce604ace1077a29150041f36e
777
package org.intermine.web.displayer; /* * Copyright (C) 2002-2014 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.org/copyleft/lesse...
22.852941
63
0.676963
6f1c3ea829469d47177517d87e06f860915c6cfb
19,090
package seedu.testplanner.logic; import com.google.common.eventbus.Subscribe; import seedu.dailyplanner.commons.core.EventsCenter; import seedu.dailyplanner.commons.events.model.DailyPlannerChangedEvent; import seedu.dailyplanner.commons.events.ui.JumpToListRequestEvent; import seedu.dailyplanner.commons.events.ui.Sh...
38.959184
129
0.670875
6ea98bb083d57e58932f7b02a7a68c0558d4e942
1,898
package thymeleafsandbox.springsecurity.web.controller; import java.util.Locale; import java.util.Map; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.server.ServerWebExchange; import ...
24.973684
72
0.647524
3ade3609e77c4b6365591e2a3cb34e23b1299b65
2,974
/* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * unde...
34.581395
102
0.720915
9f36101c794f12e1a07ab9297f49709cdbbe1305
2,501
/* * Copyright 2014 al333z. * * 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 ...
35.728571
121
0.689324
199a75438e4c06418d563a76e8bdcb83b4cdb46f
4,062
/* * Copyright 2020 Huawei Technologies Co., Ltd. * * 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 b...
27.08
116
0.690054
c5e73abc7c083f8d1e5a6aba12bfba8b8e12bcf1
532
package de.mlessmann.totaleconomy.worker; import org.spongepowered.api.text.channel.MessageChannel; import java.io.File; import java.util.function.Consumer; /** * Created by MarkL4YG on 14-May-18 */ public class ExportWorker extends AbstractWorker { private File outputDir; public ExportWorker(File output...
21.28
99
0.710526
f8d31c297fdd4a443a5e428a99787ad0a5bb897b
1,283
package pdytr.example.grpc; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; import pdytr.example.grpc.GreeterGrpc; import pdytr.example.grpc.GreeterGrpc.GreeterBlockingStub; import pdytr.example.grpc.GreeterOuterClass.HelloRequest; import pdytr.example.grpc.GreeterOuterClass.HelloReply; public c...
40.09375
112
0.759158
676126c63f06aa6cec891d51a2cd8a690d09fd90
1,688
package nu.nerd.easyrider.commands; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import nu.nerd.easyrider.EasyRider; import nu.nerd.easyrider.PlayerState; // ------------------------------------------------------------------...
34.44898
102
0.560427
0cb891dfcb3e1306f5931d00ba97238cd3d45c1d
2,570
package com.iqarr.maven.plugin.exception; import org.mozilla.javascript.ErrorReporter; import org.mozilla.javascript.EvaluatorException; import com.iqarr.maven.plugin.support.logger.LoggerFactory; /** * @author * zhangyong */ public class YUIException implements ErrorReporter { private Str...
27.052632
126
0.550973
9b17ab5965db176fd8f5a2d97982a56728278ae8
731
package com.revature.Data; import com.revature.Classes.Employee; import com.revature.Classes.Expense; import com.revature.Classes.Manager; import java.util.List; public interface ExpenseDAO { List<Expense> getExpenses(); List<Expense> getExpenses(Employee employee); List<Expense> getDeclinedExpenses(Em...
21.5
58
0.751026
b450bfa6f661d8af724d55a54f6dd5945a1b05fb
586
package server.parser; import server.HttpMethod; import server.HttpParser; import server.HttpRequestLine; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; /** * リクエストラインのパーサ */ public class HttpRequestLineParser implements HttpParser<String, HttpRequestLine> { @Overri...
26.636364
104
0.738908
837e11040d56ab31c5acd8d9b538e071a1524ece
4,782
package io.jitstatic; /*- * #%L * jitstatic * %% * Copyright (C) 2017 - 2018 H.Hegardt * %% * 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/L...
45.980769
154
0.719783
0a954db845a09075d35210d98fde196708e1380f
1,613
package com.samsung.sec.dexter.eclipse.ui.action; import com.samsung.sec.dexter.core.config.DexterConfig; import com.samsung.sec.dexter.core.defect.Defect; import com.samsung.sec.dexter.core.exception.DexterRuntimeException; import com.samsung.sec.dexter.eclipse.ui.util.EclipseUtil; import com.samsung.sec.dexter.eclip...
32.918367
77
0.706758
f6dfd80cb1c263a064a4c6337fa85955b688096d
4,629
package org.dataalgorithms.chapB10.friendrecommendation.mapreduce; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import org.apache.hadoop.io.WritableComparable; import org.apache.hadoop.io.WritableComparator; /** * WritableComparable representing a pair of longs. * The elements ...
23.860825
102
0.597537
995b7cf0b5569ef847589227e4d5a09857870b88
479
package com.deitel.cap16.colecoesgenericas; import java.util.Arrays; import java.util.Collections; import java.util.List; public class Sort2 { public static void main(String[] args) { String[] suits = {"Hearts", "Diamonds", "Clubs", "Spades"}; List<String> list = Arrays.asList(suits); System.out.prin...
22.809524
61
0.695198
7f58d53b07582f56d02ab9577bb4ebed4f27253d
3,828
/* * Copyright 2018 Roberto Leinardi. * * 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...
30.624
112
0.662748
4bcac539159978c49ad47c965be65bc428d0d3e3
2,745
package webapp.tier.service; import java.util.Objects; import java.util.logging.Logger; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; import javax.jms.ConnectionFactory; import javax.jms.JMSConsumer; import javax.jms.JMSContext; import javax.jms.Session; import org.eclipse.microprofi...
31.918605
98
0.762477
a9b9ebe1d71877b5557d57d469592c5e3260f60e
629
package engine.player; import java.util.Collection; import java.util.List; /** * Additional methods for a player list interface, specific to this implementaiton * @author Max Smith */ public interface PlayerListInterface { /** * Set the starting position for iteration within the list * @param index ...
24.192308
82
0.686804
9a69e1f1ba7456561ae809040e0c5a63c39dd0d3
240
package com.app.jagles.networkCallback; /** * Created by Administrator on 2016/10/13. */ public interface OnOSDTextureAvaibleListener { public int OnOSDTextureAvaible(int width, int height, long frame, int length, long utcTime); }
21.818182
96
0.758333
d0e71b634a52bcb2998a681403f8736d62a624ae
1,674
/* * Copyright 2017-2020 Alfresco Software, Ltd. * * 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 ...
32.823529
92
0.751493
9e91f8ba2160a925b79c929e3f333ea30a9bb848
652
package com.java.mmzsblog.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; /** * @author :liuhongjiang * @description:TODO * @date :2020/1/16 16:09 */ @RestController public class testController { // @Resource // private D...
26.08
88
0.697853
546cd5c12a843c2290be25877b4e41477fedf682
820
package ru.job4j.array; /** * @author Sergey Shpakovsky (shpaser2@yandex.ru) * @version $Id$ * @since 04.12.2018 */ public class BubbleSort { /** * Sort array by bubble algorithm. * * @param array array to bubble sort. * @return sorted array. */ public int[] sort(int[] array) { ...
27.333333
77
0.528049
a3441fb0317ae6bd4eed93e5c44524ae0cc49721
1,014
package dataContracts; public class Product { public final boolean isTerminal; public final char symbol; public final long first, second; public Product(char symbol) { this.isTerminal = true; this.symbol = symbol; this.first = this.second = -1; } pub...
24.142857
77
0.556213
c2bdc7264fc7afeaa63c16b31c779d2f960f3435
7,461
/** * The MIT License * Copyright (c) 2018 Estonian Information System Authority (RIA), * Nordic Institute for Interoperability Solutions (NIIS), Population Register Centre (VRK) * Copyright (c) 2015-2017 Estonian Information System Authority (RIA), Population Register Centre (VRK) * * Permission is hereby grante...
37.119403
120
0.693875
986f3b3b28d779d3bb4b4549a995ebb9026886c2
3,455
/* * 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 ...
40.647059
100
0.752243
55da6052e78cb62d72f573acbddbbb05f98bf030
478
package com.dl7.mvp.module.video.player; import com.dl7.mvp.local.table.DanmakuInfo; import com.dl7.mvp.local.table.VideoInfo; import com.dl7.mvp.module.base.ILocalPresenter; /** * Created by long on 2016/12/23. * Video Presenter */ public interface IVideoPresenter extends ILocalPresenter<VideoInfo> { /** ...
19.916667
69
0.690377
9bd1fe89a4665618fdc11f01b92aaf1486f92421
309
package com.l.smartcityuniversalmarket.http; import java.io.InputStream; public class HttpClient implements IHttpClient { @Override public InputStream get(IRequest request) { return null; } @Override public InputStream post(IRequest request) { return null; } }
18.176471
48
0.682848
143dcde61e3cfa6a01f153b5f581917eb9cda0ce
861
package tech.eduardosolano.movietime.Model; import java.io.Serializable; import java.util.ArrayList; import tech.eduardosolano.movietime.Api.Response.Result; public class DiscoverMovie implements Serializable{ private float total_results; private float total_pages; private ArrayList<Result> movies= ne...
22.076923
63
0.696864
5e4e43c83466e2905bb7c60c6aa18ff9c53d0c4e
2,055
package filemanager.harshapp.hm.fileexplorer.cast; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.view.Menu; import android.widget.ImageView; import android.widget.ProgressBar; import android.widget.SeekBar; import com.google.android.gms.cast.framewo...
34.830508
94
0.758637
e86f5c93bbe672d8f8dce6123b3c76e3e2e6c889
2,054
package org.mapdb; import org.junit.Before; import java.io.IOException; import java.nio.ByteBuffer; import java.util.*; /** * JUnit test case which provides JDBM specific staff */ abstract public class StorageTestCase extends TestFile{ Storage engine; @Before public void setUp() throws Exception ...
22.571429
114
0.590555
9d8f320cfb5d963dc3639fffcc4f3364973c0ed9
2,195
package app.hand; import app.card.Ace; import app.card.Card; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class HandTest { private static Hand hand; @Before public void setUp() throws Exception { hand = new Hand(); } @Test ...
18.140496
50
0.536674
bff0dab03dcf98a258393ff4f91bfc1b315f63b2
13,787
package seedu.fast.logic.parser; import static java.util.Objects.requireNonNull; import static seedu.fast.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.fast.commons.core.Messages.MESSAGE_INVALID_HELP_COMMAND_FORMAT; import static seedu.fast.logic.parser.CliSyntax.PREFIX_INVESTMENT_PLAN_TAG;...
39.279202
114
0.657503
c44b95f0496f07f67412cf33e83074463d1b4c4a
537
package functions; public class Tools { public int somar(int x, int y){ System.out.println(x + y); return x + y; } public int subtrair(int x, int y){ System.out.println(x - y); return x - y; } public int multiplicar(int x, int y){ System.out.println(x * y); ...
20.653846
43
0.527002
00f414a755c1efc927a419fcc1afc3d73a1da681
1,161
package com.codingpan.amazon; import edu.princeton.cs.algs4.StdOut; import java.util.*; public class OA20190322 { /** * https://www.1point3acres.com/bbs/thread-501911-1-1.html * * <p>order junction boxes * * <p>input: [ykc 82 */ public static void sortBoxes(List<String> boxList,...
26.386364
75
0.490956
fc650d5542eadb44d7fd9c3f12e70740e2fd6b1e
4,741
/* * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.imagepipeline.platform; import android.graphics.Bitmap; import android.graphics.Rect; import com.facebook.common.ref...
47.41
100
0.752795
05600456a79ab66722935b7dd6b84a547ee69cbc
88
package com.treehawkmods.agexpreborn; public class ServerProxy extends CommonProxy { }
17.6
46
0.829545
9fa6979569c0fa9bc5be4c613ee472580f46596f
793
package io.logregator.collector.tailer; import io.logregator.Aggregator; import org.junit.Before; import org.junit.Test; import java.io.IOException; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import static org.mockito.Mockito.mock; public class TailCollectorTest { private...
27.344828
125
0.738966
102327ac7eb1732e9cd0a21e775c65e9e3edb42a
585
package com.xkcoding.exception.handler.exception; import com.xkcoding.exception.handler.constant.Status; import lombok.Getter; /** * <p> * 页面异常 * </p> * * @package: com.xkcoding.exception.handler.exception * @description: 页面异常 * @author: yangkai.shen * @date: Created in 2018/10/2 9:18 PM * @copyright: Copyri...
19.5
54
0.712821
39aa2399beb108a2106b78b51679929038834d1e
811
package com.shuhart.stepview.sample.examples.recyclerview; import android.os.Bundle; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import com.shuhart.stepview.sample.R; p...
36.863636
69
0.787916
f042e3b40fb9cb453041cbafdf9de2d748295573
20,677
/* * @(#)MonteCarloAlgorithmRefinement.java created 10/09/2006 Trento, Rosa's home * * Copyright (c) 1996-2006 Luca Lutterotti All Rights Reserved. * * This software is the research result of Luca Lutterotti and it is * provided as it is as confidential and proprietary information. * You shall not disclose such Confide...
33.242765
131
0.607438
491427e664d4dd7865c6a9904745bb0cd66a1baa
917
package com.example.user.ted_app_assignment_sly_v3.data.vo; import com.google.gson.annotations.SerializedName; public class TedSearchVO { @SerializedName("search_result_id") private int searchId; @SerializedName("title") private String title; @SerializedName("description") private String des...
18.34
59
0.65867
63f62fee97f96851124b8a138a66966784dc2744
81
package examples.junit.serviceclass.categories; public interface Category1 { }
13.5
47
0.814815
83726eac8f57f977b7720b38182478d95b71b052
6,647
/* * Copyright 2019, Momentum Ideas Co. * * 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...
21.37299
112
0.589288
d938dc710623086a76cc9fe837223d9104e38cee
484
package ru.atott.combiq.data.commands; import org.springframework.shell.core.CommandMarker; import org.springframework.shell.core.ExitShellRequest; import org.springframework.shell.core.annotation.CliCommand; import org.springframework.stereotype.Component; @Component public class ShellExitCommands implements Command...
30.25
63
0.789256
2f3c6da81dafdcf644f85161a649cf888fe33623
1,298
package com.vaani.leetcode.greedy; import java.util.Arrays; import java.util.PriorityQueue; /** * https://leetcode.com/problems/minimum-cost-to-connect-sticks/ * You have some sticks with positive integer lengths. * <p> * You can connect any two sticks of lengths X and Y into one stick by paying a cost of X + Y. ...
26.489796
154
0.593991
88fcde771249517f24fdf3cc7ec8de459ae160a1
1,078
package ru.liahim.mist.client.renderer.entity; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.util.ResourceLocation; import ru.liahim.mist.client.model.entity.ModelWoodlouse; import ru.liahim.mist.common.Mist; import ru.liahim.m...
39.925926
85
0.798701
d0c1173646554a3687fab7de95c03e984639223a
838
package ch.awae.mytools.security; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @Config...
36.434783
92
0.825776
f9bb01b4d9b12f989144cefc469bc0c3187de303
1,584
package org.gradle.profiler.studio; import java.nio.file.Path; import java.util.List; import java.util.Map; public class LaunchConfiguration { private final Path javaCommand; private final List<Path> classPath; private final Map<String, String> systemProperties; private final String mainClass; pri...
26.4
68
0.595328
54d09fdc8db1245608d7e94ca3dcc4b6a18bdfa3
1,620
package org.springframework.scheduling; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import org.springframework.context.ApplicationContext; import org.springframework.scheduling.quartz.QuartzJobBean;...
32.4
94
0.672222
833f29cae88ae78997990ca0081374b69ee7347e
6,241
package Sort; import Util.MySqlUtil.mySqlJDBC; import net.librec.common.LibrecException; import net.librec.conf.Configuration; import net.librec.data.DataModel; import net.librec.data.model.JDBCDataModel; import net.librec.eval.EvalContext; import net.librec.eval.RecommenderEvaluator; import net.librec.eval.ranking.AU...
39.751592
160
0.660151
50174301021b2f746590828363615d80917ba997
2,232
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Pacote br.faetec.model.dao @author Antonio Cassiano **/ package br.faetec.model.dao; import br.faetec.model.dto.CargoDTO; import java.util.List; import javax.persistence.Query; import org.eclipse.per...
30.575342
101
0.667563
0cdc630fc32a52fcd8eeca4f5eb83e28b22b7841
1,464
package com.jpattern.gwt.client.communication.direct; import com.jpattern.gwt.client.IApplicationProvider; import com.jpattern.gwt.client.communication.AProxy; import com.jpattern.gwt.client.communication.ICallbackAction; import com.jpattern.gwt.client.logger.ILogger; import com.jpattern.shared.result.facade.ICommandF...
31.826087
189
0.771858
19da9c96914f89f19c86c0db3d2542a60bc41f1a
196
package com.excilys.db.exception; public class ComputerNameStrangeException extends Exception { /** * */ private static final long serialVersionUID = 5203450451940926398L; }
17.818182
70
0.719388
e6daea4023231277c269a7eef9d294fc1edff46f
513
package com.sciatta.openmall.shared.pojo.enums; /** * Created by yangxiaoyu on 2021/8/10<br> * All Rights Reserved(C) 2017 - 2021 SCIATTA<br><p/> * OrderStatus */ public enum OrderStatus { WAIT_PAY(10, "待付款"), WAIT_DELIVER(20, "已付款,待发货"), WAIT_RECEIVE(30, "已发货,待收货"), SUCCESS(40, "交易成功"), CLOSE(...
22.304348
53
0.619883
36294beafeb94560224e5e71702df1efc4095aa7
4,933
/* * 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 ...
23.716346
175
0.667342
0854d6228d3ffa58de524732f5b3e5b5fd598777
4,361
/* * Copyright 2016 OPEN TONE 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 ...
17.584677
83
0.550791
ffe8781fd5c2a0c1fcf49c507486b14e0e4cec40
406
package br.com.centralit.citquestionario.util; public class DynamicFormJavascriptBean { private String functionName; private String corpo; public String getFunctionName() { return functionName; } public void setFunctionName(String functionName) { this.functionName = functionName; } public String getCorpo() ...
21.368421
51
0.761084
485300abb86426ba260afc88871bfe76b49a92c1
1,479
package com.enonic.harvest.harvestclient.models; import com.enonic.harvest.harvestclient.exceptions.HarvestClientException; import javax.xml.bind.JAXBContext; import javax.xml.bind.Unmarshaller; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.ann...
26.410714
92
0.69236
2ee99fed15ba2305b5f93d0f01e75f0bc5eeb736
453
package com.autentia.example.micronaut.todo; import org.junit.jupiter.api.Test; import java.time.LocalDateTime; import static org.junit.jupiter.api.Assertions.assertEquals; class TodoTest { private static final LocalDateTime TS = LocalDateTime.now(); @Test void equals() { final var todo1 = new...
20.590909
64
0.677704
b6e462e186eb552d6e8e5b722a50bbbe34862bd5
1,182
package com.qa.JavaInterviewPrograms; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; /* * Count occurances of a character in String * by using HashMap & toCharArray() - similar approach as in DuplicateCharacterInString.java * by using for loop & charAt(int index) * by using to...
24.122449
93
0.576988
2769288ce2853ae70412abbc749815e65f30b937
726
/* * Copyright (c) 2018. paascloud.net All Rights Reserved. * 项目名称:paascloud快速搭建企业级分布式微服务平台 * 类名称:OAuth2ClientProperties.java * 创建人:刘兆明 * 联系方式:paascloud.net@gmail.com * 开源地址: https://github.com/paascloud * 博客地址: http://blog.paascloud.net * 项目官网: http://paascloud.net */ package com.paascloud.config.properties;...
17.285714
57
0.717631
3bcbf8f66a1d31d1ca3e5ccba40a9dbaaea3f3bc
440
package test1.objective02.exercise11; public class Test11 { private Object o; void doSomething(Object s){ o = s; } public static void main(String[] args) { Object obj = new Object(); // 1 Test11 tc = new Test11(); //2 tc.doSomething(obj); //3 obj = new Object(); //4 obj = null; //5...
25.882353
112
0.625
01ede0a11540482d64463a445590e401f5686647
1,600
/* * Copyright © 2021 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...
40
105
0.79625
10ef7b6835420278086c9bc768d009f4a168f257
485
package TranslateTTS; import com.sun.speech.freetts.Voice; import com.sun.speech.freetts.VoiceManager; public class TextToSpeech { private String VoiceName ;// "kevin"; public void speak(String word,String name){ this.VoiceName = name; Voice voice = VoiceManager.getInstance().getVoice(Vo...
22.045455
69
0.62268
92ba50e1411a205c138669a8f07b481b68e66706
3,834
package com.github.ocraft.s2client.protocol.spatial; /*- * #%L * ocraft-s2client-protocol * %% * Copyright (C) 2017 - 2018 Ocraft Project * %% * 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 ...
39.525773
80
0.68362
83d8a113b65d669a1fc79f722746b4f8c1ede544
923
package com.blossomproject.autoconfigure.ui.common.privileges; import com.blossomproject.core.common.utils.privilege.Privilege; import com.blossomproject.core.common.utils.privilege.SimplePrivilege; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Confi...
29.774194
70
0.780065
fd4c2d2c7f200bd26b12d38c7ccacbe6a315b39b
14,779
package com.lhstack.controller.permission; import com.github.pagehelper.PageInfo; import com.lhstack.aspect.permission.DynAuthority; import com.lhstack.aspect.permission.InitAuthority; import com.lhstack.config.security.LogoutHandler; import com.lhstack.config.security.holder.SecurityContextHolder; import com.lhstack....
41.397759
138
0.654171
e87cd54fb8b0b6bede95ef67fe2bb7e2ad2bfe01
330
package ch.admin.bag.covidcode.authcodegeneration.api; import lombok.AccessLevel; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; @Getter @AllArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED) public class AuthorizationCodeOnsetResponseDto { private String...
22
54
0.836364
84775067543cbdfa3ecd73d92d7c42281394fb15
3,416
package com.jqhee.latte.core.net; import android.content.Context; import com.jqhee.latte.core.net.callback.IError; import com.jqhee.latte.core.net.callback.IFailure; import com.jqhee.latte.core.net.callback.IRequest; import com.jqhee.latte.core.net.callback.ISuccess; import com.jqhee.latte.core.ui.loader.LoaderStyle;...
26.076336
103
0.634368
8ac33369c14f600dbf52b72525b56a7a8004bd76
2,532
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See License.txt in the repository root. package com.microsoft.tfs.core.clients.versioncontrol.conflicts; import com.microsoft.tfs.core.Messages; import com.microsoft.tfs.core.clients.versioncontrol.conflicts.resolutions.ConflictResolu...
32.883117
98
0.695498
98b3c4c04680919b6d9257d6c114ef35c5142506
660
package com.andrognito.kerningviewsapp; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import com.andrognito.kerningview.KerningTextView; public class SampleActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(...
27.5
78
0.693939
15c047ab6851a647e283eba6db4e67406ce957b0
1,751
/* * Copyright (c) 2016 DreamLiner Studio * Licensed under the Apache License, Version 2.0 (the "License”); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
27.793651
91
0.695031
5974800de20a88716441a3fdff8e57973c257e34
17,560
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 ...
13.384146
806
0.792312
6aa11f814f411de180ef50d449753ea7cfdf3457
1,247
package com.techreturners.exercise003; import java.util.*; public class Exercise003 { int getIceCreamCode(String iceCreamFlavour) { int key = 0; HashMap<Integer,String> map=new HashMap<Integer,String>();//Creating HashMap map.put(1,"Raspberry Ripple"); //Put elements in Map ...
26.531915
84
0.545309
c1cd259b4199f384843f65445f2a38787a5b101a
841
package main.server.view; import javax.swing.*; import java.awt.*; /** * ServerWindowrepresent the server JFrame. * Consists of 3 panels Interactive, Detection and Console Panel. * * @author Ejaz * @version 1.0 */ public class ServerWindow extends JFrame { public ServerWindow(InteractivePanel interactiveP...
31.148148
118
0.724138
ac251ed32c1d66cecf2a2abf6239635f3e5ff493
19,785
/* * Copyright 2015 Synced Synapse. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
45.904872
125
0.642557
a98054e6f7a8ba0fa3776aa23252ad7cc268a566
1,516
package myTest; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * @author Stephen Cai * @date 2018-06-24 17:01 */ public class BatchQueue { public static void blockQueue() throws ...
29.153846
72
0.532322
3930e73ca4768ea1e699326d2ea7d48317303c04
1,733
/* * Copyright 2020 IEXEC BLOCKCHAIN TECH * * 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 ...
29.372881
98
0.691287
2aa508584fdf21d9dd29ca39b208a5cfc2a85451
4,591
/* * Copyright 2014 Guidewire Software, Inc. */ package gw.plugin.ij.lang.psi.impl.expressions; import com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl; import com.intellij.lang.ASTNode; import com.intellij.openapi.util.TextRange; import com.intellij.psi.JavaElementVisitor; import com.intellij.psi...
34.007407
184
0.767371
688304f8fab8f592deefc1869e9921f4e69f79d1
4,616
import net.runelite.mapping.Export; import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("dk") public class class104 extends class103 { @ObfuscatedName("s") @ObfuscatedGetter( intValue = 580988101 ) int field129...
25.502762
125
0.618934
e9c5bf6e590bccab1eede7ed33c3cc8306aa4fe0
372
package cn.jsprun.dao; import java.util.List; import cn.jsprun.domain.Statvars; import cn.jsprun.domain.StatvarsId; public interface StatvarsDao { public List<Statvars> getStatvarsByType(String type); public void updateStatvarsForMain(List<Statvars> statvarsList); public Statvars getStatvarsById(StatvarsId statvarsI...
33.818182
64
0.825269
4bd1f5a6b44222f74bcccdb25b654d039acc8b48
21,411
package com.oncecloud.service.impl; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; import java.util.Set; import javax.annotation.Resource; import org.json.JSONArray; import org.json.JSONObject; import org.springframework.stereotype.Component; import com.oncecloud.vsp...
31.440529
153
0.688338
a77f3dfcf05a640f725a8221908e60cfd1bcc6e5
1,503
/* * Copyright (C) J.P. Morrison, Enterprises, Ltd. 2009, 2012 All Rights Reserved. */ package com.jpmorrsn.fbp.examples.networks; import com.jpmorrsn.fbp.components.Discard; import com.jpmorrsn.fbp.engine.Network; import com.jpmorrsn.fbp.examples.components.GenerateTestData; /** This network is intended for ti...
33.4
113
0.696607
88d2f2055ef70598faf0c288258d33d188f24149
13,448
/** * Copyright (c) 2015 LingoChamp 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 agree...
23.886323
118
0.513013
da2d3e6733d2d3a82fbc8916e279d582231cf555
8,110
package edu.umass.cs.gigapaxos.paxospackets; import java.io.UnsupportedEncodingException; import java.util.HashSet; import java.util.Set; import java.util.TreeMap; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import edu.umass.cs.gigapaxos.paxosutil.Ballot; import edu.umass.cs...
28.86121
92
0.702219
8627cf1686efc76d89ffaa7dcefb3515fa8d38e5
3,796
/* * Copyright (c) 2020 Thomas Neidhart. * * 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 la...
30.126984
136
0.645943
9b413756bcf583529b3849edb6fcb0853120f52a
3,124
/** * Copyright Plugtree 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
35.101124
143
0.708067
3d5c5cc9471aa0ae6737d96836bd6c77bc187732
477
package br.com.zupacademy.apass.mercadolivre.util; import java.text.Normalizer; import java.util.regex.Pattern; public class DiacriticoUtil { public static String removeDiacriticos(String stringComDiacriticos) { String nfdNormalizedString = Normalizer.normalize(stringComDiacriticos, Normalizer.Form.NFD);...
34.071429
101
0.765199
9099a0008c6276fffaaea659777e5465dbc38f92
3,913
package com.centurylink.mdw.model.workflow; import java.text.ParseException; import java.time.Instant; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import com.centurylink.mdw.model.InstanceList; import ...
32.338843
94
0.637107