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
ad8edb6f3ff5e3c7eaf3900b03412e503ade4693
731
package com.tz.film.film.service; /** * * 项目名称:filmSystem * 类名称:FilmService * 类描述: 影片列表Service * 创建人:edwarder * 创建时间:2017年10月15日 下午1:50:51 * */ import java.util.List; import com.tz.film.film.entity.Film; import com.tz.film.film.entity.PageBean; import com.tz.film.film.vo.FilmVo; public in...
19.756757
92
0.730506
96dc0a21dc8ebc79ee5e294324135f73122c6061
418
package gov.loc.repository.bagit.hash; import gov.loc.repository.bagit.exceptions.UnsupportedAlgorithmException; /** * Implement this interface if you need to be able to use other algorithms than the {@link StandardSupportedAlgorithms} */ public interface BagitAlgorithmNameToSupportedAlgorithmMapping { SupportedA...
38
119
0.844498
2282674c6cfe998e449c0215aa9c9af2d0286d3d
1,283
package com.andyadc.ssm.persistence.entity; import com.andyadc.ssm.persistence.common.BaseEntity; import java.time.LocalDateTime; public class Demo extends BaseEntity { private static final long serialVersionUID = 1L; private Long id; private String name; private int type; private int status; private Int...
15.839506
54
0.71629
00b4ee7bebc6cb554917c284d87cbeb000b64b96
1,239
package com.github.privilege.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.github.privilege.bean.SysRole; import com.github.privilege.bean.SysUser; import com.github.privilege.bean.vo.RoleVO; import com.github.privilege.bean.v...
20.65
78
0.65456
05533ea7cc87a4212c46b07f2f47fc549c8511a0
7,376
package org.nextime.ion.framework.business.impl; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.Enumeration; import java.util.Hashtable; import java.util.Vector; import org.exolab.castor.jdo.Database; impo...
27.018315
128
0.576735
f81feaa83eeab59eb1ca3ed21a1d2581721c1b8b
31,465
/* * GridGain Community Edition Licensing * Copyright 2019 GridGain Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause * Restriction; you may not use this file except in compliance with the License. You may obtain a * c...
35.553672
150
0.621294
0cd5d07cd5d3f3c7a9285b8e9364d73b8166f97d
3,703
package mkl.testarea.pdfbox2.extract; import static org.junit.Assert.fail; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.nio.file.Files; import java.util.Collections; import org.apache.pdfbox.Loader; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmo...
42.079545
215
0.605185
e395cc6a7e898bf3d1e0d9d72efbc6e7c5e51595
1,736
/* * 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 PracticaTienda; import java.io.Serializable; /** * * @author dany */ public class Item implements Serializable{ p...
19.727273
79
0.565092
9ad446162087ccd01e2fdff8b05f2f42025aab36
1,352
public class ReverseLinkedList { protected static class LinkedNode<T> { public LinkedNode<T> next; T t; public LinkedNode(LinkedNode<T> next, T t) { this.next = next; this.t = t; } public boolean hasNext() { return next != null; } public LinkedNode<T> reverseList() { LinkedNode<T> pr...
22.533333
59
0.638314
09a52d2907e899fc62831b6e2df4fd7e500dfd65
799
package com.airbnb.aerosolve.core.features; import org.junit.Test; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; public class FeatureMappingTest { @Test public void add() throws Exception { FeatureMapping m = new FeatureMapping(100); String[] doubleNames ...
29.592593
61
0.659574
290f779ac03dc5ae2a7ce7f4648ff3c9a918ac7c
2,099
/* 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 * distribut...
31.80303
125
0.673178
9eaa5f5b3b7e4a1a0e98ecd99e93c4e6e4fab8ff
4,489
import java.util.*; import java.io.*; // ------------------------------------------------------------------------- /** * @author Daniel Nugent * @version HT 2020 */ class SortComparison { static double[] insertionSort(double a[]) { if (a != null) { int len = a.length; for (int i = 1; i < le...
24.938889
98
0.390956
6c63d7b038a35a6278436c1ad6c838975633dfed
2,993
/* * Copyright 2018 ConsenSys AG. * * 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 wr...
24.941667
118
0.695289
e929754cf7670d56251dbde91c6eb7df6fed9e88
2,319
package cn.ffcs.ms.crm_mobile_v20.entities; import android.support.annotation.NonNull; import android.util.Log; import java.util.List; import java.util.concurrent.TimeUnit; import cn.ffcs.ms.crm_mobile_v20.greendao.gen.SceneDao; import rx.Observable; import rx.Scheduler; import rx.android.schedulers.AndroidScheduler...
28.62963
74
0.496335
a80bc6096d08d42bf25b04c70f511db4e12b3be3
1,011
import java.util.*; public class LC484FindPermutation { public static int[] findPermutation(String s) { if(s==null) return new int[]{}; int n= s.length()+1; int[] res = new int[n]; for(int i=1; i<=n; i++){ res[i-1]=i; } int lasti=0; ...
19.823529
58
0.445104
59c2e76691524d73810ffcb216d6289cb8e6a1e0
805
package learn.katas.corejava.generics.simple; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class ArrayAlgTest { @SuppressWarnings("rawtypes") @Test void testMinMax() { String[] data = {"B", "C", "A", "E", "F", "D"}; Pair result = ArrayAlg.minMax(da...
26.833333
55
0.6
60d5124925aea1fe34fbb421c05b4f00f10e8ced
28,155
/** * 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 under ...
30.93956
119
0.703498
e999a8d882e4d2d873ee9c1fd5169169b5d689d8
544
package raznorazno; public class razno { public static void main(String[] args) { int n = Integer.parseInt(args[0]); int p = prastevilo(n); System.out.println(p); } private static int prastevilo(int n) { int[] pra = new int[n]; pra[0] = 2; int p = 3; for (int i = 1; i < n; i+=1) { ...
16
42
0.457721
82469abe87aea60e9c6d4ec87c413d5a6a80e04d
1,260
package dsi; import dsi.FileSystemTreeModel; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import java.io.File; import java.io.IOException; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; public class FileSystemT...
27.391304
106
0.683333
27eef298500468bfab0bb86235e7b742b7828c4a
5,425
/* * Copyright (C) 2010-2015 FBReader.ORG Limited <contact@fbreader.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later ...
33.695652
121
0.731244
52870ce7f1d637db06f3032ecb24742701aeed64
6,361
package com.hotbitmapgg.ohmybilibili.module.common; import android.annotation.SuppressLint; import android.app.Activity; import android.app.AlertDialog; import android.content.ActivityNotFoundException; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Bitmap; import androi...
26.615063
103
0.617985
dc89844f6c0bca1085c7ae092f9261e5264f08a9
3,666
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.videoanalyzer.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com...
33.633028
116
0.693672
5a6a5b844c76d6cc34de2d25fe25deb06bdb419e
2,324
/* * 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 ...
36.888889
102
0.789157
a4d77d753558f63293b63594b7728dfad232ed9c
1,541
package com.sysu.cloudgaminghub.hub.portalnetwork; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class AuthServlet extends HttpS...
30.215686
120
0.740428
43da5d42b57e89bab58dee4785657dc44e937fe2
614
package io.renren.modules.hotel.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * * * @author taoz * @email 18819175397@gmail.com * @date 2019-09-18 20:38:22 */ @Data ...
15.74359
58
0.710098
488b0844e4cf8a0619994fd41541c53c80b6b0dc
1,549
package com.cognizant.cognizantits.qcconnection.qcupdation; import com4j.Com4jObject; import com4j.DISPID; import com4j.DefaultValue; import com4j.IID; import com4j.NativeType; import com4j.Optional; import com4j.ReturnValue; import com4j.VTID; @IID("{35692E1B-C235-426A-A77B-CD0D159C4F2E}") public abstract interface ...
21.816901
123
0.719819
3f1fccc8bfc101b7a2f2ae89221feb51c645beed
1,217
package co.hrsquare.bindad.mapper; import co.hrsquare.bindad.model.company.Department; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; @Mapper public interface IDepartmentMapper { @...
32.891892
139
0.63599
fc7ff7b64bdc5fedcc56600ae7442c10855b3bdf
1,356
package garden.druid.pool.endpoints.admin; import java.util.ArrayList; import java.util.Collection; import javax.servlet.annotation.WebServlet; import garden.druid.base.http.auth.api.UserLevel; import garden.druid.base.http.rest.RestEndpoint; import garden.druid.base.http.rest.annotation.Consumes; import garden.druid...
36.648649
70
0.816372
0223bdc60814140f0236f3e19d3ba1f50cb2cac7
3,253
/* * Copyright (C) 2013-2016 Rinde van Lon, iMinds-DistriNet, KU Leuven * * 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 * * Unl...
33.536082
79
0.738088
145183be8f2a77d9df9d8fa220c877a71a6cfe6d
273
package com.caidong.common.http.entity.request; public class BaseRequest { protected String requestCode; public String getRequestCode() { return requestCode; } public void setRequestCode(String requestCode) { this.requestCode = requestCode; } }
18.2
50
0.725275
5d79e35ec9df80670eb2186796ce64121542562c
4,205
package integration; import java.io.File; import java.io.PrintWriter; import java.util.ArrayList; import org.apache.commons.io.FileUtils; import org.w3c.dom.Document; import main.Files2Facts; import util.ConfigManager; /** * Integrates Two AutomationML(ML) files based on PSL Rules. * * @author omar */ public c...
26.955128
90
0.702735
b6e1b3fa3559350010eeec7c68d7caa7d30aeb1b
3,429
/*-------------------------------------------------------------------------+ | | | Copyright 2005-2011 The ConQAT Project | | | | Licensed u...
46.337838
103
0.625838
ef79e556539df929bbc3bf278452230a28b1df0a
307
package fr.mrcubee.plugin.util.spigot.annotations; import fr.mrcubee.annotation.spigot.config.ConfigAnnotation; import org.bukkit.plugin.Plugin; public class PluginAnnotations { public static void load(Plugin plugin, Object... objects) { ConfigAnnotation.loadClass(plugin.getConfig(), objects); } }
23.615385
60
0.791531
9a74a84a8d5181a2b7c38eae2d96d4aab3874b26
761
package cz.tvrzna.pointy.exceptions; /** * The Class BadRequestException. * * @author michalt */ public class BadRequestException extends RuntimeException { private static final long serialVersionUID = 200146466614564185L; /** * Instantiates a new bad request exception. */ public BadRequestException() { ...
17.295455
66
0.674113
520afbdf520c3a4a34fa2a0b10343395ed6d5cb3
2,758
/* * 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 ...
40.558824
100
0.773387
3fef41681cb22a8e0335d57b1439846c4983da05
1,249
package au.com.codeka.warworlds.client.game.empire; import android.os.Bundle; import au.com.codeka.warworlds.client.activity.TabbedBaseFragment; import au.com.codeka.warworlds.client.game.fleets.FleetsFragment; import au.com.codeka.warworlds.common.Log; /** * This fragment shows the status of the empire. You can se...
33.756757
101
0.722978
9d2deed24ec0473ff5e53751b35b7ba84c54e891
10,723
package us.ihmc.behaviors.tools; import com.google.common.base.CaseFormat; import controller_msgs.msg.dds.*; import org.apache.commons.lang.WordUtils; import us.ihmc.avatar.drcRobot.DRCRobotModel; import us.ihmc.behaviors.BehaviorRegistry; import us.ihmc.behaviors.tools.interfaces.MessagerPublishSubscribeAPI; import u...
38.433692
143
0.770773
936fbecfbbc9998c4ef408ce37314eaed97b4615
90
public class Hello{public static void main(String[] args){System.out.println("こんにちは世界");}}
90
90
0.766667
36a1a03112209689538322dd3e8f05dd0ed372ae
2,660
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
30.930233
98
0.741353
de6c7c7363fc002b2cdc13ac1038071a9a0365e6
320
package com.morethanheroic.swords.tavern.domain.chat; import com.morethanheroic.swords.user.domain.UserEntity; import lombok.Builder; import lombok.Getter; import java.util.Date; @Builder @Getter public class ChatEntry { private UserEntity userEntity; private String message; private Date writingTime; }
18.823529
56
0.7875
8d2cb4c5a8e4f66cf0622fa94c6dbe62508dbe63
4,581
/******************************************************************************* * Copyright 2016-2019 Francesco Benincasa (info@abubusoft.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 Lic...
33.683824
134
0.716219
46523bee5db6255be520440d50787036dfbb2634
6,740
/* * LinShare is an open source filesharing software, part of the LinPKI software * suite, developed by Linagora. * * Copyright (C) 2015 LINAGORA * * 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 * So...
26.96
110
0.726113
1c22a80b29aacff7253de683eeeaa84e1571fd1b
3,675
// *************************************************************************************************************************** // * 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 regardi...
51.760563
126
0.56517
2e29d50dbdb8a2dd3ef90451ee57fd29f66c8266
3,874
/* * Copyright (c) 2017, MegaEase * 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...
37.61165
95
0.60635
29ef28b58f2379e3106b80d76f121f29eae27378
2,358
package com.github.phenomics.ontolib.io.obo; import de.charite.compbio.ontolib.io.obo.parser.Antlr4OboParser; import org.antlr.v4.runtime.BaseErrorListener; import org.antlr.v4.runtime.CharStreams; import org.antlr.v4.runtime.CodePointCharStream; import org.antlr.v4.runtime.CommonTokenStream; import org.antlr.v4.runti...
37.428571
97
0.719678
903c0fd78a5b1f1533daf8a60af39e244ed5f4e4
1,032
// This file is auto-generated, don't edit it. Thanks. package com.antgroup.antchain.openapi.iam.models; import com.aliyun.tea.*; public class Action extends TeaModel { // 操作点描述 @NameInMap("description") public String description; // 操作点ID @NameInMap("id") public String id; // 操作点名称 ...
21.061224
79
0.608527
4dd6ab8f1d085d93a9484eb5ef7f0192034a6ccd
7,266
/** * Author: Archie, Disono (webmonsph@gmail.com) * Website: http://www.webmons.com * * Created at: 12/08/2018 */ package disono.com.webmons.ruler; import android.app.Activity; import android.app.DialogFragment; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Int...
32.293333
139
0.655106
926844897151e3afd805fe3f8c30558f52267b85
613
package link.mc.lang; import java.util.ListIterator; import link.mc.util.MarkupUtil; import link.mc.util.Placeholder; public class Translator { public static String translate(String lang, String s) { ListIterator<Translation> li = Translation.translations.listIterator(Translation.translations.size());...
24.52
105
0.69168
1c8ca18f35da47bac5a0033e73297337a6e0883f
1,370
package com.ebstrada.formreturn.manager.log4j; import javax.swing.JScrollPane; import org.apache.log4j.spi.LoggingEvent; public class AbstractAppenderScrollPane extends JScrollPane { private static final long serialVersionUID = 1L; protected LoggingEventModel logModel; protected int maxEnt...
23.62069
62
0.623358
4f89b80fbf842b172157dbcbf34c1db7d785591c
1,254
package com.t0ugh.server.handler.impl.list; import com.t0ugh.sdk.proto.Proto; import com.t0ugh.server.BaseTest; import com.t0ugh.server.handler.Handler; import com.t0ugh.server.utils.TestUtils; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class LLen...
28.5
123
0.652313
e02e515b31389e45efb786768e0289d4daa8459f
3,517
/** * 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...
46.276316
123
0.715667
0718cb3df4278f716b38bbaa4790bb2718a38329
2,022
package com.androiddeft.recyclerviewdemo; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import android.widget.TextView; import com.androiddeft.recyclerviewdem...
35.473684
82
0.702275
1e510ee25286cd80deafae2c8e57834ad1c33c71
5,011
package org.adrianl.stream; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; public class NoMioDeInternet { /* ORDENAR Se crea una lista y se la añaden elementos. Collections.sort(lista, (l1,l2) -> l1.compareTo(l2)); for(String elemento : lista){ System.o...
34.798611
110
0.597086
5fe7545177d174593f53d3dfa70173cea8a86acf
761
package ru.rd.rest; import org.testng.SkipException; import org.testng.annotations.BeforeSuite; import java.io.IOException; import java.math.BigInteger; public class TestBase { protected static final ApplicationManager app = new ApplicationManager(); @BeforeSuite(alwaysRun = true) public void setUp() t...
25.366667
77
0.693824
80309ef44aa256141969b4aa47efce1dd2640aae
1,570
/** * Appia: Group communication and protocol composition framework library * Copyright 2006 University of Lisbon * * 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...
32.040816
75
0.753503
08e4fb38c080470a682b26ad41d8d366e80eeed8
8,844
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.refactoring.typeMigration.rules.guava; import com.intellij.codeInspection.AnonymousCanBeLambdaInspection; import com.intellij.openapi.diagnostic.Logger; impo...
47.042553
182
0.70251
2d196224fdd7c57e64a1afb3187b68e8f6dfd748
1,248
package com.ciphercloud.parsers; import com.ciphercloud.parsers.htmlcontentextractor.ContentNode; import com.ciphercloud.parsers.htmlcontentextractor.Node; import com.ciphercloud.parsers.htmlcontentextractor.TagNode; import com.ciphercloud.parsers.htmlstreamreader.SimpleHtmlStreamReader; public class SimpleHtmlStream...
27.733333
80
0.723558
b6a676541d1b6d9ecb3196e893a54e2b1d3163fa
183
package com.wuyi.repairer.builder.tasks; import org.gradle.api.Describable; import org.gradle.api.Task; public interface Action extends org.gradle.api.Action<Task>, Describable { }
22.875
74
0.797814
82448f41ed9293f9e05538456ee9be27768f5d27
701
package think.rpgitems.power; import org.bukkit.entity.Player; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.inventory.ItemStack; import javax.annotation.CheckReturnValue; /** * Triggers when player clicks an item in offhand */ public interface PowerOffhandClick extends Pimpl { /** ...
30.478261
94
0.736091
da72a0685675ca640b4ca5805ed0c454f323fb3f
284
package ru.job4j.pseudo; /** * Интерфейс фигуры. * * @author Alexandr Kholodov (alexandr.khol@gmail.com) on 26.04.18. * @version 1.0. * @since 0.1. */ public interface Shape { /** * Метод рисования фигуры. * * @return Результат. */ String draw(); }
15.777778
67
0.584507
a4c250c2e3bac2436647e3bf0a4f031c89a1f268
9,565
/* * ============LICENSE_START========================================== * org.onap.music * =================================================================== * Copyright (c) 2017 AT&T Intellectual Property * =================================================================== * Licensed under the Apache Licens...
37.217899
127
0.62321
93ee1238f8fface778175d69be6306dd10fe2546
835
// Problem Description: https://leetcode.com/problems/merge-two-sorted-lists/ class MergeTwoLists{ public ListNode mergeTwoLists(ListNode l1,ListNode l2){ ListNode s1=l1,s2=l2; // Dummy node to point at head of new merged list ListNode dummy=new ListNode(0); ListNode curr=dummy; //...
27.833333
91
0.541317
29ee951c501a09d156aea52a612f2f86bf5f095e
1,280
/* * 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 ap...
25.6
75
0.639844
a1918445bb993215ea85727d44487924c5f32ae9
657
package bg.softuni.programming_basics.nested_loops.lab; import java.util.Scanner; public class E03Combinations { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.nextLine()); int i, j, m; int sum; int coun...
24.333333
55
0.418569
3053a7d99387d5b29c68dd09af5136ade35de1f5
4,073
package it.finsiel.siged.mvc.presentation.action.documentale; import it.finsiel.siged.constant.Constants; import it.finsiel.siged.exception.DataException; import it.finsiel.siged.model.organizzazione.Organizzazione; import it.finsiel.siged.model.organizzazione.Utente; import it.finsiel.siged.mvc.business.DocumentaleDe...
42.427083
87
0.647189
eecb00d3f25e58d51b05cf4fae99294d77d8150c
1,473
/** * Copyright 2020 yametech. * * 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...
25.842105
75
0.727766
a4a33c3d5f0f7c917fddd65cba32d570b3317377
885
package com.fy.common.model; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @AllArgsConstructor @NoArgsConstructor public class ApiResult<T> { public static final int SUCCESS = 0; /** * 默认错误码 */ public static final int DEFAULT_ERROR = 1; public ...
22.692308
63
0.658757
ea7ff0550ce2e3446fe01846dfdcf2e3a2419afc
1,755
package doiframework.statistics.calculations; import doiframework.exceptions.DatasetNotMatchingException; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import java.util.List; public final class Covariance extends AdvancedStatistics{ /** * @param data1 double[] * ...
28.770492
85
0.635328
7c75737b4b28dc6d204e9421c254c16bfe01a5ec
1,668
package com.jonathanedgecombe.srt; import java.util.ArrayList; import java.util.List; public class Subtitle { private Timestamp startTime, endTime; private final List<String> lines; /* Create a new Subtitle with the given start and end times. */ public Subtitle(Timestamp startTime, Timestamp endTime) { this.s...
20.341463
73
0.667266
a3e279644013ee3aa601fa7a4f38435b40d7316c
20,734
package com.mercari.solution.module.transform; import com.google.cloud.spanner.Struct; import com.google.datastore.v1.Entity; import com.google.datastore.v1.Value; import com.google.gson.*; import com.google.protobuf.NullValue; import com.mercari.solution.config.TransformConfig; import com.mercari.solution.module.Data...
40.734774
136
0.580496
0f2ca34f02f6f979eb85e0c77063f8980bfbbcb9
1,376
package org.extreme.script.core.parser; import java.io.Serializable; import org.extreme.base.ColumnRow; public class LocationDim implements Cloneable, Serializable { public static final byte ABSOLUTE = 0; public static final byte PLUS = 1; public static final byte MINUS = 2; private ColumnRow column...
24.571429
93
0.632267
e4c58f020fd3e2e89408d7955da3b508ebcb4919
5,607
package com.winsun.fruitmix.video; import android.app.Activity; import android.content.Context; import android.media.MediaPlayer; import android.net.Uri; import android.support.v4.util.ArrayMap; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; impo...
25.60274
153
0.66417
31aad16b024453f57e4e2f529ecff305830426e1
20,133
/* * Copyright 2020 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 applica...
42.207547
100
0.718273
b0bdd83e8c897a2c9e7bf801aae1a352a7279fdd
347
package org.study.datamining.clustering.kmeans; /** * K-means(K均值)算法调用类 * @author lyq * */ public class Client { public static void main(String[] args){ String filePath = "C:\\Users\\lyq\\Desktop\\icon\\input.txt"; //聚类中心数量设定 int classNum = 3; KMeansTool tool = new KMeansTool(filePath, classNum); too...
19.277778
63
0.680115
192e6e83baef007699354247c6c4fc916f6d2d47
814
import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; public class MainClass { public static void main(String[] args) throws IOException, InterruptedException { BufferedWriter writer = new BufferedWriter(new FileWriter("primeNumbers")); var maxPrime = Integer.pars...
30.148148
126
0.648649
33e49f47bec0b5e0ecc446997ad66a8dabb4bc07
1,571
package com.strategyobject.substrateclient.pallet.storage; import com.google.common.annotations.Beta; import com.strategyobject.substrateclient.rpc.api.BlockHash; import com.strategyobject.substrateclient.rpc.api.section.State; import com.strategyobject.substrateclient.scale.ScaleReader; import lombok.NonNull; import ...
40.282051
108
0.676639
4dedfcaffaf76827534d0b48031cbd444e040443
864
/* * Copyright (c) 2018-2021. Ivan Vakhrushev. All rights reserved. * https://github.com/mfvanek */ package com.mfvanek.money.transfer.utils; import com.google.gson.Gson; import lombok.Getter; import lombok.ToString; public final class JsonUtils { private JsonUtils() {} public static Gson make() { ...
22.736842
68
0.65162
8acdba19771ed5cdd936c5c2cd57708cc47764e7
1,904
package chair.crud.demo.domain.dto; import chair.crud.demo.domain.Manufacturer; import chair.crud.demo.domain.extension.DestinationT; import java.util.List; public class ChairDto { private long id; private String model; private DestinationT destination; private Manufacturer manufacturer; pr...
21.885057
164
0.671218
13cf6a11ecce37a70e28b9a3d7f6e3408818411e
3,190
// Copyright (C) 2014 Guibing Guo // // This file is part of LibRec. // // LibRec is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. //...
21.70068
78
0.602194
c51c0805f005723becd1a1a9a8f1979a2dea5aaa
304
package com.goitho.customerapp.screen.blog; import com.goitho.customerapp.app.di.ActivityScope; import dagger.Subcomponent; /** * Created by MSI on 26/11/2017. */ @ActivityScope @Subcomponent(modules = {BlogModule.class}) public interface BlogComponent { void inject(BlogActivity activity); }
17.882353
51
0.763158
3f74a9af6a64586871ef4407e81c3415ea50eeb9
38,384
/** * Copyright (c) 2013, impossibl.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of cond...
21.479575
119
0.633519
56c1df09c9c28fc35695b6415663879df9f5a6c5
4,983
/* * Copyright (c) 2015 Evident Solutions Oy * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge...
31.14375
125
0.695766
45611ae5ecd167f008e6185940a95784439504c7
3,077
package com.concurrentthought.hive.udfs; import org.apache.hadoop.hive.ql.metadata.HiveException; import java.util.ArrayList; import org.junit.Test; import static org.junit.Assert.assertEquals; public class PerRecordNGramsAsArraysTest { private PerRecordNGramsAsArrays func = new PerRecordNGramsAsArrays(); p...
35.367816
89
0.668183
9e12ca4a5d0653cade1895181c113ab00d4beb74
4,169
package com.apollo.stockTrading.maxProfit04; /** * 188. 买卖股票的最佳时机 IV * dp[i][k][0] = max(dp[i-1][k][0], dp[i-1][k][1] + prices[i]) * dp[i][k][1] = max(dp[i-1][k][1], dp[i-1][k-1][0] - prices[i]) * * i == 0 * dp[0][k][0] = max(dp[-1][k][0], dp[-1][k][1] + prices[i]) * dp[0][k][1] = max(dp[-1][k][1], dp[-1]...
30.881481
91
0.332454
10c777324a0455543d7634532e590f05de0872e8
268
package react4j.examples.factory_example; import com.google.gwt.core.client.EntryPoint; import static react4j.dom.DOM.*; public class FactoryExample implements EntryPoint { public void onModuleLoad() { section( h1( "My Title" ), p( "My text..." ) ); } }
19.142857
51
0.708955
aaec904d3e223502c8cf7cf44bc3abe57ef424de
4,053
package com.hxr.lockdeeping; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; /** * synchronized 和 Lock的区别: * 一、原始构成: * 1.synchronized是java的关键字属于JVM层面 * monitorenter(底层是monitor对象来完成, * 其实waite/notify等方法都依赖monitor对象只有在同步块或方法中才能调用...
25.490566
80
0.501604
19fee29df2f89c6b4a4d42bbad607ba20ae2e0dd
964
package com.performance.liferecord.activity; import android.content.Intent; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import com.performance.liferecord.databinding.ActivityGirlBinding; import com.performance.liferecord.model.GankData; import com.squareup.picasso.Picasso; ...
31.096774
81
0.735477
7379265935d8903cf243e5d389b49b86d4c00ac8
17,027
/* * @(#)TextSearch.java * * $Date: 2015-12-27 03:42:44 +0100 (So, 27 Dez 2015) $ * * Copyright (c) 2011 by Jeremy Wood. * All rights reserved. * * The copyright of this software is owned by Jeremy Wood. * You may not use, copy or modify this software, except in * accordance with the license agreement you ...
34.054
114
0.692841
b9f1f37b64e34ff1ddbe9e5e94659a866fc6d32e
236
package statistics; import lombok.AllArgsConstructor; import lombok.Getter; @Getter @AllArgsConstructor public enum LiveReqMethod { INGEST("ingest"),//回源 PLAY("play"), PUBLISH("publish"); private String reqMethod; }
14.75
33
0.720339
1f8146cba5dac3ec4e490235bec397286bee3d93
2,998
/* * Copyright 2011 CodeGist.org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
36.560976
182
0.695464
081cb1a10f86a826411b55f8b603b742d24c308b
1,789
import java.util.Scanner; public class p10_Diamond { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.nextLine()); int sideDashCount = (n - 1) / 2; int centerDashCount = 0; for (int i = 0; i < n / 2 + n % 2;...
33.754717
87
0.4673
bd2a751afeaa42c776e99ccf5840f8139a1bdb89
5,241
/* * JBoss, Home of Professional Open Source * Copyright 2015, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
26.205
117
0.648159
89f28fc69d187b277ec90fd291d00d3f024159dd
2,661
package test; import java.util.Date; import javax.annotation.Resource; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import org.springrain.SpringrainApplication; import org.s...
24.190909
61
0.722661
7a4fbd6bb732ebc99cdb7ede48afade077ae171c
280
package Model.topology; /** * Created by lajtman on 24-04-2017. */ public class LatLng { public LatLng() { } public LatLng(double lat, double lng) { this.lat = lat; this.lng = lng; } public double lat; public double lng; }
16.470588
44
0.553571
d4f9a9dba92c2d5603cee7b89e5dfd700b6deaa3
2,122
/******************************************************************************** * Copyright (c) 2018 Cirrus Link Solutions and others * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0...
31.205882
90
0.658812
b5078c43eadbde57265dadbcf2c5756adf5b2620
543
package net.minecraft.world.gen.placement; import com.mojang.datafixers.Dynamic; import java.util.Random; import java.util.function.Function; import java.util.stream.Stream; import net.minecraft.util.math.BlockPos; public class Passthrough extends SimplePlacement<NoPlacementConfig> { public Passthrough(Function<Dy...
31.941176
101
0.777164
83fbc8d0bea44573f84089c09b4eda1026a65a0e
2,370
package ch.sourcepond.maven.release.scm.git; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertSame; import static org.junit.Assert.fail; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.mock; import static org.mock...
28.214286
92
0.753586
7a8e463cabad72661aa375a2f2e748992b992754
2,348
package net.viperfish.crawlerApp.core; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import java.nio.file.FileVisitOption; import java.nio.file.Files; import java.nio.file.Path; import java.util.Enumeration; import java.util.LinkedList; import j...
30.493506
105
0.715503
5597d0570eb06c1f384d4a3c054ca4a796b746eb
1,127
package com.uikoo9.manage.ucenter.model; import java.util.List; import com.jfinal.plugin.activerecord.Model; import com.uikoo9.util.core.annotation.QTable; import com.uikoo9.util.core.data.QStringUtil; /** * UcenterRoleRMenuModel<br> * id id<br> * ucenter_role_id 角色id<br> * ucenter_menu_id 菜单id<br> * ucenter...
23
79
0.721384
a35438ec5c29a37337b0062c5a1cd9e8813c3089
1,761
// ### TopLink Mapping Workbench 9.0.3 generated source code ### package com.profitera.descriptor.db.config; public class Holiday implements java.io.Serializable { // Generated constants public static final String HOLIDAY_DATE = "holidayDate"; public static final String HOLIDAY_DESC = "holidayDesc"; public stati...
21.740741
141
0.760363